// @generated by protoc-gen-es v1.10.1 with parameter "target=ts" // @generated from file timeline/v1/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, protoInt64, Timestamp } from "@bufbuild/protobuf"; import { ImageTaskAction } from "../../artworking/v1/imagetask_pb.js"; import { FileActionType } from "../../artworking/v1/artwork_pb.js"; /** * @generated from enum timeline.v1.TIMELINE_ACTOR */ export enum TIMELINE_ACTOR { /** * @generated from enum value: TIMELINE_ACTOR_UNDEFINED = 0; */ TIMELINE_ACTOR_UNDEFINED = 0, /** * @generated from enum value: TIMELINE_ACTOR_ARTWORKER = 1; */ TIMELINE_ACTOR_ARTWORKER = 1, /** * @generated from enum value: TIMELINE_ACTOR_CUSTOMER = 2; */ TIMELINE_ACTOR_CUSTOMER = 2, } // Retrieve enum metadata with: proto3.getEnumType(TIMELINE_ACTOR) proto3.util.setEnumType(TIMELINE_ACTOR, "timeline.v1.TIMELINE_ACTOR", [ { no: 0, name: "TIMELINE_ACTOR_UNDEFINED" }, { no: 1, name: "TIMELINE_ACTOR_ARTWORKER" }, { no: 2, name: "TIMELINE_ACTOR_CUSTOMER" }, ]); /** * @generated from message timeline.v1.JobTimeline */ export class JobTimeline extends Message { /** * @generated from field: string id = 1; */ id = ""; /** * @generated from field: google.protobuf.Timestamp created_at = 2; */ createdAt?: Timestamp; /** * @generated from field: google.protobuf.Timestamp updated_at = 3; */ updatedAt?: Timestamp; /** * @generated from field: string job_id = 4; */ jobId = ""; /** * @generated from field: repeated timeline.v1.TimelineItem timeline = 5; */ timeline: TimelineItem[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "timeline.v1.JobTimeline"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "created_at", kind: "message", T: Timestamp }, { no: 3, name: "updated_at", kind: "message", T: Timestamp }, { no: 4, name: "job_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 5, name: "timeline", kind: "message", T: TimelineItem, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): JobTimeline { return new JobTimeline().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): JobTimeline { return new JobTimeline().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): JobTimeline { return new JobTimeline().fromJsonString(jsonString, options); } static equals(a: JobTimeline | PlainMessage | undefined, b: JobTimeline | PlainMessage | undefined): boolean { return proto3.util.equals(JobTimeline, a, b); } } /** * @generated from message timeline.v1.TimelineItem */ export class TimelineItem extends Message { /** * @generated from field: string title = 1; */ title = ""; /** * @generated from field: google.protobuf.Timestamp created_at = 2; */ createdAt?: Timestamp; /** * @generated from field: google.protobuf.Timestamp updated_at = 3; */ updatedAt?: Timestamp; /** * @generated from field: repeated timeline.v1.TimelineItemArtworkAction artwork_actions = 4; */ artworkActions: TimelineItemArtworkAction[] = []; /** * @generated from field: repeated int64 proof_media_item_ids = 5; */ proofMediaItemIds: bigint[] = []; /** * @generated from field: repeated timeline.v1.TimelineItemEmail chaser_emails = 6; */ chaserEmails: TimelineItemEmail[] = []; /** * @generated from field: google.protobuf.Timestamp chaser_email_last_sent_at = 7; */ chaserEmailLastSentAt?: Timestamp; /** * enum TIMELINE_ITEM_TYPE { * TIMELINE_ITEM_TYPE_UNDEFINED = 0; * TIMELINE_ITEM_TYPE_ACTION = 1; * TIMELINE_ITEM_TYPE_EMAIL_EVENT = 2; * } * * @generated from field: string icon = 8; */ icon = ""; /** * @generated from field: timeline.v1.TIMELINE_ACTOR actor = 9; */ actor = TIMELINE_ACTOR.TIMELINE_ACTOR_UNDEFINED; /** * @generated from field: int64 actor_id = 10; */ actorId = protoInt64.zero; /** * @generated from field: string actor_name = 11; */ actorName = ""; /** * @generated from field: string message = 12; */ message = ""; /** * @generated from field: string theme = 13; */ theme = ""; /** * FixupTimelineConfig fixup_config = 14; * * @generated from field: map additional_info = 15; */ additionalInfo: { [key: string]: string } = {}; /** * ConversionTimelineConfig conversion_config = 16; * * TIMELINE_ITEM_TYPE type = 4; * oneof data{ * TimelineItemAction action = 5; * TimelineItemEmailEvent email_event = 6; * } * * @generated from field: artworking.v1.ImageTaskAction image_task_config = 17; */ imageTaskConfig?: ImageTaskAction; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "timeline.v1.TimelineItem"; 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: "updated_at", kind: "message", T: Timestamp }, { no: 4, name: "artwork_actions", kind: "message", T: TimelineItemArtworkAction, repeated: true }, { no: 5, name: "proof_media_item_ids", kind: "scalar", T: 3 /* ScalarType.INT64 */, repeated: true }, { no: 6, name: "chaser_emails", kind: "message", T: TimelineItemEmail, repeated: true }, { no: 7, name: "chaser_email_last_sent_at", kind: "message", T: Timestamp }, { no: 8, name: "icon", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 9, name: "actor", kind: "enum", T: proto3.getEnumType(TIMELINE_ACTOR) }, { no: 10, name: "actor_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, { no: 11, name: "actor_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 12, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 13, name: "theme", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 15, name: "additional_info", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} }, { no: 17, name: "image_task_config", kind: "message", T: ImageTaskAction }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): TimelineItem { return new TimelineItem().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): TimelineItem { return new TimelineItem().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): TimelineItem { return new TimelineItem().fromJsonString(jsonString, options); } static equals(a: TimelineItem | PlainMessage | undefined, b: TimelineItem | PlainMessage | undefined): boolean { return proto3.util.equals(TimelineItem, a, b); } } /** * @generated from message timeline.v1.TimelineItemArtworkAction */ export class TimelineItemArtworkAction extends Message { /** * @generated from field: int64 media_item_id = 1; */ mediaItemId = protoInt64.zero; /** * @generated from field: string message = 2; */ message = ""; /** * @generated from field: artworking.v1.FileActionType file_action = 3; */ fileAction = FileActionType.FILE_ACTION_UNDEFINED; /** * @generated from field: int64 job_artwork_item_id = 4; */ jobArtworkItemId = protoInt64.zero; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "timeline.v1.TimelineItemArtworkAction"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "media_item_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, { no: 2, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "file_action", kind: "enum", T: proto3.getEnumType(FileActionType) }, { no: 4, name: "job_artwork_item_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): TimelineItemArtworkAction { return new TimelineItemArtworkAction().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): TimelineItemArtworkAction { return new TimelineItemArtworkAction().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): TimelineItemArtworkAction { return new TimelineItemArtworkAction().fromJsonString(jsonString, options); } static equals(a: TimelineItemArtworkAction | PlainMessage | undefined, b: TimelineItemArtworkAction | PlainMessage | undefined): boolean { return proto3.util.equals(TimelineItemArtworkAction, a, b); } } /** * @generated from message timeline.v1.TimelineItemEmail */ export class TimelineItemEmail extends Message { /** * @generated from field: string ref = 1; */ ref = ""; /** * @generated from field: google.protobuf.Timestamp sent_at = 2; */ sentAt?: Timestamp; /** * @generated from field: google.protobuf.Timestamp delivered_at = 3; */ deliveredAt?: Timestamp; /** * @generated from field: google.protobuf.Timestamp opened_at = 4; */ openedAt?: Timestamp; /** * @generated from field: google.protobuf.Timestamp failed_at = 5; */ failedAt?: Timestamp; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "timeline.v1.TimelineItemEmail"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "ref", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "sent_at", kind: "message", T: Timestamp }, { no: 3, name: "delivered_at", kind: "message", T: Timestamp }, { no: 4, name: "opened_at", kind: "message", T: Timestamp }, { no: 5, name: "failed_at", kind: "message", T: Timestamp }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): TimelineItemEmail { return new TimelineItemEmail().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): TimelineItemEmail { return new TimelineItemEmail().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): TimelineItemEmail { return new TimelineItemEmail().fromJsonString(jsonString, options); } static equals(a: TimelineItemEmail | PlainMessage | undefined, b: TimelineItemEmail | PlainMessage | undefined): boolean { return proto3.util.equals(TimelineItemEmail, a, b); } } /** * @generated from message timeline.v1.GetTimelineRequest */ export class GetTimelineRequest extends Message { /** * @generated from field: string job_id = 1; */ jobId = ""; /** * @generated from field: string hash = 2; */ hash = ""; /** * @generated from field: optional int64 artworker_id = 3; */ artworkerId?: bigint; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "timeline.v1.GetTimelineRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "job_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "artworker_id", kind: "scalar", T: 3 /* ScalarType.INT64 */, opt: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetTimelineRequest { return new GetTimelineRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetTimelineRequest { return new GetTimelineRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetTimelineRequest { return new GetTimelineRequest().fromJsonString(jsonString, options); } static equals(a: GetTimelineRequest | PlainMessage | undefined, b: GetTimelineRequest | PlainMessage | undefined): boolean { return proto3.util.equals(GetTimelineRequest, a, b); } } /** * @generated from message timeline.v1.GetTimelineResponse */ export class GetTimelineResponse extends Message { /** * @generated from field: timeline.v1.JobTimeline job_timeline = 1; */ jobTimeline?: JobTimeline; /** * @generated from field: string hash = 2; */ hash = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "timeline.v1.GetTimelineResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "job_timeline", kind: "message", T: JobTimeline }, { no: 2, name: "hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetTimelineResponse { return new GetTimelineResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetTimelineResponse { return new GetTimelineResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetTimelineResponse { return new GetTimelineResponse().fromJsonString(jsonString, options); } static equals(a: GetTimelineResponse | PlainMessage | undefined, b: GetTimelineResponse | PlainMessage | undefined): boolean { return proto3.util.equals(GetTimelineResponse, a, b); } } /** * @generated from message timeline.v1.RecordTimelineEventRequest */ export class RecordTimelineEventRequest extends Message { /** * @generated from field: string type = 1; */ type = ""; /** * @generated from field: string data = 2; */ data = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "timeline.v1.RecordTimelineEventRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "data", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): RecordTimelineEventRequest { return new RecordTimelineEventRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): RecordTimelineEventRequest { return new RecordTimelineEventRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): RecordTimelineEventRequest { return new RecordTimelineEventRequest().fromJsonString(jsonString, options); } static equals(a: RecordTimelineEventRequest | PlainMessage | undefined, b: RecordTimelineEventRequest | PlainMessage | undefined): boolean { return proto3.util.equals(RecordTimelineEventRequest, a, b); } } /** * @generated from message timeline.v1.RecordTimelineEventResponse */ export class RecordTimelineEventResponse extends Message { constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "timeline.v1.RecordTimelineEventResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ ]); static fromBinary(bytes: Uint8Array, options?: Partial): RecordTimelineEventResponse { return new RecordTimelineEventResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): RecordTimelineEventResponse { return new RecordTimelineEventResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): RecordTimelineEventResponse { return new RecordTimelineEventResponse().fromJsonString(jsonString, options); } static equals(a: RecordTimelineEventResponse | PlainMessage | undefined, b: RecordTimelineEventResponse | PlainMessage | undefined): boolean { return proto3.util.equals(RecordTimelineEventResponse, a, b); } }