// @generated by protoc-gen-es v1.10.1 with parameter "target=ts" // @generated from file timeline/v1/customer-timeline.proto (package timeline.v1, syntax proto3) /* eslint-disable */ // @ts-nocheck import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Message, proto3, Timestamp } from "@bufbuild/protobuf"; /** * @generated from message timeline.v1.CustomerTimelineItem */ export class CustomerTimelineItem extends Message { /** * @generated from field: string title = 1; */ title = ""; /** * @generated from field: google.protobuf.Timestamp created_at = 2; */ createdAt?: Timestamp; /** * @generated from field: string colour = 3; */ colour = ""; /** * @generated from field: string icon = 4; */ icon = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "timeline.v1.CustomerTimelineItem"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "created_at", kind: "message", T: Timestamp }, { no: 3, name: "colour", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 4, name: "icon", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): CustomerTimelineItem { return new CustomerTimelineItem().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): CustomerTimelineItem { return new CustomerTimelineItem().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): CustomerTimelineItem { return new CustomerTimelineItem().fromJsonString(jsonString, options); } static equals(a: CustomerTimelineItem | PlainMessage | undefined, b: CustomerTimelineItem | PlainMessage | undefined): boolean { return proto3.util.equals(CustomerTimelineItem, a, b); } } /** * @generated from message timeline.v1.GetCustomerTimelineRequest */ export class GetCustomerTimelineRequest extends Message { /** * @generated from field: string job_id = 1; */ jobId = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "timeline.v1.GetCustomerTimelineRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "job_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetCustomerTimelineRequest { return new GetCustomerTimelineRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetCustomerTimelineRequest { return new GetCustomerTimelineRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetCustomerTimelineRequest { return new GetCustomerTimelineRequest().fromJsonString(jsonString, options); } static equals(a: GetCustomerTimelineRequest | PlainMessage | undefined, b: GetCustomerTimelineRequest | PlainMessage | undefined): boolean { return proto3.util.equals(GetCustomerTimelineRequest, a, b); } } /** * @generated from message timeline.v1.GetCustomerTimelineResponse */ export class GetCustomerTimelineResponse extends Message { /** * @generated from field: repeated timeline.v1.CustomerTimelineItem timeline = 1; */ timeline: CustomerTimelineItem[] = []; /** * @generated from field: int32 latest_uploaded_index = 2; */ latestUploadedIndex = 0; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "timeline.v1.GetCustomerTimelineResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "timeline", kind: "message", T: CustomerTimelineItem, repeated: true }, { no: 2, name: "latest_uploaded_index", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetCustomerTimelineResponse { return new GetCustomerTimelineResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetCustomerTimelineResponse { return new GetCustomerTimelineResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetCustomerTimelineResponse { return new GetCustomerTimelineResponse().fromJsonString(jsonString, options); } static equals(a: GetCustomerTimelineResponse | PlainMessage | undefined, b: GetCustomerTimelineResponse | PlainMessage | undefined): boolean { return proto3.util.equals(GetCustomerTimelineResponse, a, b); } }