// @generated by protoc-gen-es v1.10.1 with parameter "target=ts" // @generated from file artworking/v1/job-group.proto (package artworking.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 { ExternalLink, Job, JobType, LeadtimeLengthUnit } from "./artwork_pb.js"; /** * @generated from message artworking.v1.JobGroup */ export class JobGroup 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 custom_uid = 4; */ customUid = ""; /** * @generated from field: string ref = 5; */ ref = ""; /** * @generated from field: int64 contact_id = 6; */ contactId = protoInt64.zero; /** * @generated from field: string contact_ref = 7; */ contactRef = ""; /** * @generated from field: string contact_name = 8; */ contactName = ""; /** * @generated from field: int64 company_id = 9; */ companyId = protoInt64.zero; /** * @generated from field: string company_name = 10; */ companyName = ""; /** * @generated from field: int64 supplier_id = 11; */ supplierId = protoInt64.zero; /** * @generated from field: string supplier_name = 12; */ supplierName = ""; /** * @generated from field: string order_ref = 13; */ orderRef = ""; /** * @generated from field: int32 leadtime_length = 14; */ leadtimeLength = 0; /** * @generated from field: artworking.v1.LeadtimeLengthUnit leadtime_length_unit = 15; */ leadtimeLengthUnit = LeadtimeLengthUnit.LEADTIME_UNIT_DAY; /** * @generated from field: bool temporary = 16; */ temporary = false; /** * @generated from field: int32 job_count = 17; */ jobCount = 0; /** * @generated from field: artworking.v1.ExternalLink external_link = 18; */ externalLink?: ExternalLink; /** * @generated from field: string contact_email = 19; */ contactEmail = ""; /** * @generated from field: artworking.v1.JobType job_type = 20; */ jobType = JobType.UNDEFINED; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.JobGroup"; 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: "custom_uid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 5, name: "ref", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 6, name: "contact_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, { no: 7, name: "contact_ref", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 8, name: "contact_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 9, name: "company_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, { no: 10, name: "company_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 11, name: "supplier_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, { no: 12, name: "supplier_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 13, name: "order_ref", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 14, name: "leadtime_length", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, { no: 15, name: "leadtime_length_unit", kind: "enum", T: proto3.getEnumType(LeadtimeLengthUnit) }, { no: 16, name: "temporary", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 17, name: "job_count", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, { no: 18, name: "external_link", kind: "message", T: ExternalLink }, { no: 19, name: "contact_email", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 20, name: "job_type", kind: "enum", T: proto3.getEnumType(JobType) }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): JobGroup { return new JobGroup().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): JobGroup { return new JobGroup().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): JobGroup { return new JobGroup().fromJsonString(jsonString, options); } static equals(a: JobGroup | PlainMessage | undefined, b: JobGroup | PlainMessage | undefined): boolean { return proto3.util.equals(JobGroup, a, b); } } /** * @generated from message artworking.v1.IntegrationData */ export class IntegrationData extends Message { /** * @generated from field: string custom_ref = 1; */ customRef = ""; /** * @generated from field: map custom_data = 2; */ customData: { [key: string]: string } = {}; /** * @generated from field: string integration_name = 3; */ integrationName = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.IntegrationData"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "custom_ref", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "custom_data", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} }, { no: 3, name: "integration_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): IntegrationData { return new IntegrationData().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): IntegrationData { return new IntegrationData().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): IntegrationData { return new IntegrationData().fromJsonString(jsonString, options); } static equals(a: IntegrationData | PlainMessage | undefined, b: IntegrationData | PlainMessage | undefined): boolean { return proto3.util.equals(IntegrationData, a, b); } } /** * @generated from message artworking.v1.IntegrationJobGroupData */ export class IntegrationJobGroupData extends Message { /** * @generated from field: string custom_ref = 1; */ customRef = ""; /** * @generated from field: map custom_data = 2; */ customData: { [key: string]: string } = {}; /** * @generated from field: string integration_name = 3; */ integrationName = ""; /** * @generated from field: map jobs = 4; */ jobs: { [key: string]: IntegrationData } = {}; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.IntegrationJobGroupData"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "custom_ref", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "custom_data", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} }, { no: 3, name: "integration_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 4, name: "jobs", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "message", T: IntegrationData} }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): IntegrationJobGroupData { return new IntegrationJobGroupData().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): IntegrationJobGroupData { return new IntegrationJobGroupData().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): IntegrationJobGroupData { return new IntegrationJobGroupData().fromJsonString(jsonString, options); } static equals(a: IntegrationJobGroupData | PlainMessage | undefined, b: IntegrationJobGroupData | PlainMessage | undefined): boolean { return proto3.util.equals(IntegrationJobGroupData, a, b); } } /** * @generated from message artworking.v1.CreateJobGroupRequest */ export class CreateJobGroupRequest extends Message { /** * @generated from field: int64 contact_id = 1; */ contactId = protoInt64.zero; /** * @generated from field: string contact_name = 2; */ contactName = ""; /** * @generated from field: string order_ref = 3; */ orderRef = ""; /** * @generated from field: repeated artworking.v1.CreateJobGroupRequest.JobGroupJobParams jobParams = 4; */ jobParams: CreateJobGroupRequest_JobGroupJobParams[] = []; /** * @generated from field: bool temporary = 5; */ temporary = false; /** * optional, for use without auth token * * @generated from field: string api_key = 6; */ apiKey = ""; /** * optional, useful for 3rd party integrations * * @generated from field: string custom_uid = 7; */ customUid = ""; /** * @generated from field: int64 company_id = 8; */ companyId = protoInt64.zero; /** * @generated from field: string company_name = 9; */ companyName = ""; /** * @generated from field: string contact_ref = 10; */ contactRef = ""; /** * @generated from field: optional artworking.v1.ExternalLink external_link = 11; */ externalLink?: ExternalLink; /** * @generated from field: string contact_email = 12; */ contactEmail = ""; /** * @generated from field: optional artworking.v1.IntegrationJobGroupData integration_data = 13; */ integrationData?: IntegrationJobGroupData; /** * @generated from field: artworking.v1.JobType job_type = 14; */ jobType = JobType.UNDEFINED; /** * @generated from field: int64 supplier_id = 15; */ supplierId = protoInt64.zero; /** * @generated from field: string supplier_email = 16; */ supplierEmail = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.CreateJobGroupRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "contact_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, { no: 2, name: "contact_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "order_ref", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 4, name: "jobParams", kind: "message", T: CreateJobGroupRequest_JobGroupJobParams, repeated: true }, { no: 5, name: "temporary", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 6, name: "api_key", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 7, name: "custom_uid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 8, name: "company_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, { no: 9, name: "company_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 10, name: "contact_ref", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 11, name: "external_link", kind: "message", T: ExternalLink, opt: true }, { no: 12, name: "contact_email", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 13, name: "integration_data", kind: "message", T: IntegrationJobGroupData, opt: true }, { no: 14, name: "job_type", kind: "enum", T: proto3.getEnumType(JobType) }, { no: 15, name: "supplier_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, { no: 16, name: "supplier_email", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): CreateJobGroupRequest { return new CreateJobGroupRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): CreateJobGroupRequest { return new CreateJobGroupRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): CreateJobGroupRequest { return new CreateJobGroupRequest().fromJsonString(jsonString, options); } static equals(a: CreateJobGroupRequest | PlainMessage | undefined, b: CreateJobGroupRequest | PlainMessage | undefined): boolean { return proto3.util.equals(CreateJobGroupRequest, a, b); } } /** * @generated from message artworking.v1.CreateJobGroupRequest.JobGroupJobParams */ export class CreateJobGroupRequest_JobGroupJobParams extends Message { /** * @generated from field: string name = 1; */ name = ""; /** * @generated from field: optional string message = 2; */ message?: string; /** * @generated from field: repeated int64 media_item_ids = 3; */ mediaItemIds: bigint[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.CreateJobGroupRequest.JobGroupJobParams"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, { no: 3, name: "media_item_ids", kind: "scalar", T: 3 /* ScalarType.INT64 */, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): CreateJobGroupRequest_JobGroupJobParams { return new CreateJobGroupRequest_JobGroupJobParams().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): CreateJobGroupRequest_JobGroupJobParams { return new CreateJobGroupRequest_JobGroupJobParams().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): CreateJobGroupRequest_JobGroupJobParams { return new CreateJobGroupRequest_JobGroupJobParams().fromJsonString(jsonString, options); } static equals(a: CreateJobGroupRequest_JobGroupJobParams | PlainMessage | undefined, b: CreateJobGroupRequest_JobGroupJobParams | PlainMessage | undefined): boolean { return proto3.util.equals(CreateJobGroupRequest_JobGroupJobParams, a, b); } } /** * @generated from message artworking.v1.CreateJobGroupResponse */ export class CreateJobGroupResponse extends Message { /** * @generated from field: artworking.v1.JobGroup job_group = 1; */ jobGroup?: JobGroup; /** * @generated from field: repeated artworking.v1.Job jobs = 2; */ jobs: Job[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.CreateJobGroupResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "job_group", kind: "message", T: JobGroup }, { no: 2, name: "jobs", kind: "message", T: Job, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): CreateJobGroupResponse { return new CreateJobGroupResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): CreateJobGroupResponse { return new CreateJobGroupResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): CreateJobGroupResponse { return new CreateJobGroupResponse().fromJsonString(jsonString, options); } static equals(a: CreateJobGroupResponse | PlainMessage | undefined, b: CreateJobGroupResponse | PlainMessage | undefined): boolean { return proto3.util.equals(CreateJobGroupResponse, a, b); } }