// @generated by protoc-gen-es v1.10.1 with parameter "target=ts" // @generated from file artworking/v1/artwork.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 { Media } from "../../media/v1/media_pb.js"; import { ImageTaskAction } from "./imagetask_pb.js"; import { PreflightResult } from "../../common/v1/preflight-warning_pb.js"; import { EmailStatus } from "../../common/v1/email_pb.js"; import { MeasurementUnit } from "../../common/v1/unit_pb.js"; import { PaginatedQuery, PaginatedResponse } from "../../common/v1/query_pb.js"; import { PdfSplitAction } from "./pdfsplit_pb.js"; import { StatsTotals } from "../../common/v1/stats_pb.js"; /** * @generated from enum artworking.v1.SelectedGuideType */ export enum SelectedGuideType { /** * @generated from enum value: SELECTED_GUIDE_TYPE_NONE = 0; */ NONE = 0, /** * @generated from enum value: SELECTED_GUIDE_TYPE_EXPECTED_SIZE = 1; */ EXPECTED_SIZE = 1, /** * @generated from enum value: SELECTED_GUIDE_TYPE_NATIVE_BOUNDING_BOX = 2; */ NATIVE_BOUNDING_BOX = 2, /** * @generated from enum value: SELECTED_GUIDE_TYPE_CUSTOM = 3; */ CUSTOM = 3, } // Retrieve enum metadata with: proto3.getEnumType(SelectedGuideType) proto3.util.setEnumType(SelectedGuideType, "artworking.v1.SelectedGuideType", [ { no: 0, name: "SELECTED_GUIDE_TYPE_NONE" }, { no: 1, name: "SELECTED_GUIDE_TYPE_EXPECTED_SIZE" }, { no: 2, name: "SELECTED_GUIDE_TYPE_NATIVE_BOUNDING_BOX" }, { no: 3, name: "SELECTED_GUIDE_TYPE_CUSTOM" }, ]); /** * @generated from enum artworking.v1.ArtworkActor */ export enum ArtworkActor { /** * @generated from enum value: ARTWORK_ACTOR_UNDEFINED = 0; */ UNDEFINED = 0, /** * @generated from enum value: ARTWORK_ACTOR_CUSTOMER = 1; */ CUSTOMER = 1, /** * @generated from enum value: ARTWORK_ACTOR_SUPPLIER = 2; */ SUPPLIER = 2, } // Retrieve enum metadata with: proto3.getEnumType(ArtworkActor) proto3.util.setEnumType(ArtworkActor, "artworking.v1.ArtworkActor", [ { no: 0, name: "ARTWORK_ACTOR_UNDEFINED" }, { no: 1, name: "ARTWORK_ACTOR_CUSTOMER" }, { no: 2, name: "ARTWORK_ACTOR_SUPPLIER" }, ]); /** * current state of a Job * * @generated from enum artworking.v1.ArtworkState */ export enum ArtworkState { /** * @generated from enum value: ARTWORK_STATE_UNDEFINED = 0; */ UNDEFINED = 0, /** * job is awaiting artwork * * @generated from enum value: ARTWORK_STATE_AWAITING_ARTWORK = 1; */ AWAITING_ARTWORK = 1, /** * at least on file in the job has been rejected by printer * * @generated from enum value: ARTWORK_STATE_REJECTED = 2; */ REJECTED = 2, /** * artwork files have been uploaded and are pending review * * @generated from enum value: ARTWORK_STATE_PENDING_APPROVAL = 3; */ PENDING_APPROVAL = 3, /** * ARTWORK_STATE_READY_FOR_PRODUCTION = 4; // artwork files have all been approved and are ready for production * * job is complete * * @generated from enum value: ARTWORK_STATE_COMPLETE = 5; */ COMPLETE = 5, /** * a proof(s) has been sent to the customer and is awaiting approval * * @generated from enum value: ARTWORK_STATE_PENDING_PROOF_APPROVAL = 6; */ PENDING_PROOF_APPROVAL = 6, /** * customer has rejected (or requested channges to) the proof(s) * * @generated from enum value: ARTWORK_STATE_PROOF_REJECTED = 7; */ PROOF_REJECTED = 7, /** * customer has accepted the proof(s) * * @generated from enum value: ARTWORK_STATE_PROOF_ACCEPTED = 8; */ PROOF_ACCEPTED = 8, /** * job was created * * @generated from enum value: ARTWORK_STATE_CREATED = 9; */ CREATED = 9, /** * // legacy * * @generated from enum value: ARTWORK_STATE_RESET = 10; */ RESET = 10, /** * job is awaiting artwork from customer * * @generated from enum value: ARTWORK_STATE_ARTWORK_REQUESTED = 11; */ ARTWORK_REQUESTED = 11, /** * job has been cancelled * * @generated from enum value: ARTWORK_STATE_CANCELLED = 12; */ CANCELLED = 12, /** * job has been archived * * @generated from enum value: ARTWORK_STATE_ARCHIVED = 13; */ ARCHIVED = 13, /** * job has been approved * * @generated from enum value: ARTWORK_STATE_ARTWORK_APPROVED = 14; */ ARTWORK_APPROVED = 14, } // Retrieve enum metadata with: proto3.getEnumType(ArtworkState) proto3.util.setEnumType(ArtworkState, "artworking.v1.ArtworkState", [ { no: 0, name: "ARTWORK_STATE_UNDEFINED" }, { no: 1, name: "ARTWORK_STATE_AWAITING_ARTWORK" }, { no: 2, name: "ARTWORK_STATE_REJECTED" }, { no: 3, name: "ARTWORK_STATE_PENDING_APPROVAL" }, { no: 5, name: "ARTWORK_STATE_COMPLETE" }, { no: 6, name: "ARTWORK_STATE_PENDING_PROOF_APPROVAL" }, { no: 7, name: "ARTWORK_STATE_PROOF_REJECTED" }, { no: 8, name: "ARTWORK_STATE_PROOF_ACCEPTED" }, { no: 9, name: "ARTWORK_STATE_CREATED" }, { no: 10, name: "ARTWORK_STATE_RESET" }, { no: 11, name: "ARTWORK_STATE_ARTWORK_REQUESTED" }, { no: 12, name: "ARTWORK_STATE_CANCELLED" }, { no: 13, name: "ARTWORK_STATE_ARCHIVED" }, { no: 14, name: "ARTWORK_STATE_ARTWORK_APPROVED" }, ]); /** * state for an individual file within a Job * * @generated from enum artworking.v1.JobAction */ export enum JobAction { /** * Default unknown state * * @generated from enum value: JOB_ACTION_UNKNOWN = 0; */ UNKNOWN = 0, /** * Request artwork from customer * * @generated from enum value: JOB_ACTION_REQUESTARTWORK = 1; */ REQUESTARTWORK = 1, /** * Upload artwork to the job * * @generated from enum value: JOB_ACTION_UPLOADARTWORK = 2; */ UPLOADARTWORK = 2, /** * Update multiple files in a batch * * @generated from enum value: JOB_ACTION_BATCHFILEUPDATE = 3; */ BATCHFILEUPDATE = 3, /** * Submit proof for customer review * * @generated from enum value: JOB_ACTION_PROOFSUBMIT = 4; */ PROOFSUBMIT = 4, /** * Reject the submitted proof * * @generated from enum value: JOB_ACTION_PROOFREJECT = 5; */ PROOFREJECT = 5, /** * Accept the submitted proof * * @generated from enum value: JOB_ACTION_PROOFACCEPT = 6; */ PROOFACCEPT = 6, /** * Mark the job as complete * * @generated from enum value: JOB_ACTION_COMPLETE = 7; */ COMPLETE = 7, /** * Create a new job * * @generated from enum value: JOB_ACTION_CREATE = 8; */ CREATE = 8, /** * Allow downloading of job files * * @generated from enum value: Job_ACTION_ALLOW_DOWNLOAD = 9; */ ALLOW_DOWNLOAD = 9, /** * Cancel a job * * @generated from enum value: JOB_ACTION_CANCEL = 10; */ CANCEL = 10, /** * Reactivate a cancelled job * * @generated from enum value: JOB_ACTION_REACTIVATE = 11; */ REACTIVATE = 11, /** * Archive a job once complete * * @generated from enum value: JOB_ACTION_ARCHIVE = 12; */ ARCHIVE = 12, /** * Start an image task * * @generated from enum value: JOB_ACTION_CAN_START_IMAGE_TASK = 13; */ CAN_START_IMAGE_TASK = 13, /** * Unarchive a job to return it to its previous state * * @generated from enum value: JOB_ACTION_UNARCHIVE = 14; */ UNARCHIVE = 14, /** * Reopen a completed job to return it to its previous state * * @generated from enum value: JOB_ACTION_REOPEN = 15; */ REOPEN = 15, /** * Reset a job to its original review state * * @generated from enum value: JOB_ACTION_CAN_RESET_REVIEW = 16; */ CAN_RESET_REVIEW = 16, } // Retrieve enum metadata with: proto3.getEnumType(JobAction) proto3.util.setEnumType(JobAction, "artworking.v1.JobAction", [ { no: 0, name: "JOB_ACTION_UNKNOWN" }, { no: 1, name: "JOB_ACTION_REQUESTARTWORK" }, { no: 2, name: "JOB_ACTION_UPLOADARTWORK" }, { no: 3, name: "JOB_ACTION_BATCHFILEUPDATE" }, { no: 4, name: "JOB_ACTION_PROOFSUBMIT" }, { no: 5, name: "JOB_ACTION_PROOFREJECT" }, { no: 6, name: "JOB_ACTION_PROOFACCEPT" }, { no: 7, name: "JOB_ACTION_COMPLETE" }, { no: 8, name: "JOB_ACTION_CREATE" }, { no: 9, name: "Job_ACTION_ALLOW_DOWNLOAD" }, { no: 10, name: "JOB_ACTION_CANCEL" }, { no: 11, name: "JOB_ACTION_REACTIVATE" }, { no: 12, name: "JOB_ACTION_ARCHIVE" }, { no: 13, name: "JOB_ACTION_CAN_START_IMAGE_TASK" }, { no: 14, name: "JOB_ACTION_UNARCHIVE" }, { no: 15, name: "JOB_ACTION_REOPEN" }, { no: 16, name: "JOB_ACTION_CAN_RESET_REVIEW" }, ]); /** * state for an individual file within a Job * * @generated from enum artworking.v1.ArtworkItemState */ export enum ArtworkItemState { /** * @generated from enum value: ARTWORK_ITEM_STATE_UNDEFINED = 0; */ UNDEFINED = 0, /** * legacy * * @generated from enum value: ARTWORK_ITEM_STATE_AWAITING_ARTWORK = 1; */ AWAITING_ARTWORK = 1, /** * file approved by printer * * @generated from enum value: ARTWORK_ITEM_STATE_APPROVED = 2; */ APPROVED = 2, /** * file rejected by printer * * @generated from enum value: ARTWORK_ITEM_STATE_REJECTED = 3; */ REJECTED = 3, /** * file is pending approval by printer * * @generated from enum value: ARTWORK_ITEM_STATE_PENDING_APPROVAL = 4; */ PENDING_APPROVAL = 4, /** * file approved by customer * * @generated from enum value: ARTWORK_ITEM_STATE_CUSTOMER_APPROVED = 5; */ CUSTOMER_APPROVED = 5, /** * file approved and complete * * @generated from enum value: ARTWORK_ITEM_STATE_COMPLETE = 6; */ COMPLETE = 6, /** * file moved to assets * * @generated from enum value: ARTWORK_ITEM_STATE_MARKED_AS_ASSET = 7; */ MARKED_AS_ASSET = 7, /** * file archived * * @generated from enum value: ARTWORK_ITEM_STATE_ARCHIVED = 8; */ ARCHIVED = 8, /** * image task in progress * * @generated from enum value: ARTWORK_ITEM_STATE_IMAGE_TASK_IN_PROGRESS = 14; */ IMAGE_TASK_IN_PROGRESS = 14, /** * image task is pending review * * @generated from enum value: ARTWORK_ITEM_STATE_IMAGE_TASK_PENDING_REVIEW = 15; */ IMAGE_TASK_PENDING_REVIEW = 15, /** * image task has failed * * @generated from enum value: ARTWORK_ITEM_STATE_IMAGE_TASK_FAILED = 16; */ IMAGE_TASK_FAILED = 16, /** * image task has failed with profile report * * @generated from enum value: ARTWORK_ITEM_STATE_IMAGE_TASK_FAILED_WITH_PROFILE_REPORT = 17; */ IMAGE_TASK_FAILED_WITH_PROFILE_REPORT = 17, /** * PDF split operation in progress * * @generated from enum value: ARTWORK_ITEM_STATE_PDF_SPLIT_IN_PROGRESS = 18; */ PDF_SPLIT_IN_PROGRESS = 18, /** * PDF split operation failed * * @generated from enum value: ARTWORK_ITEM_STATE_PDF_SPLIT_FAILED = 19; */ PDF_SPLIT_FAILED = 19, } // Retrieve enum metadata with: proto3.getEnumType(ArtworkItemState) proto3.util.setEnumType(ArtworkItemState, "artworking.v1.ArtworkItemState", [ { no: 0, name: "ARTWORK_ITEM_STATE_UNDEFINED" }, { no: 1, name: "ARTWORK_ITEM_STATE_AWAITING_ARTWORK" }, { no: 2, name: "ARTWORK_ITEM_STATE_APPROVED" }, { no: 3, name: "ARTWORK_ITEM_STATE_REJECTED" }, { no: 4, name: "ARTWORK_ITEM_STATE_PENDING_APPROVAL" }, { no: 5, name: "ARTWORK_ITEM_STATE_CUSTOMER_APPROVED" }, { no: 6, name: "ARTWORK_ITEM_STATE_COMPLETE" }, { no: 7, name: "ARTWORK_ITEM_STATE_MARKED_AS_ASSET" }, { no: 8, name: "ARTWORK_ITEM_STATE_ARCHIVED" }, { no: 14, name: "ARTWORK_ITEM_STATE_IMAGE_TASK_IN_PROGRESS" }, { no: 15, name: "ARTWORK_ITEM_STATE_IMAGE_TASK_PENDING_REVIEW" }, { no: 16, name: "ARTWORK_ITEM_STATE_IMAGE_TASK_FAILED" }, { no: 17, name: "ARTWORK_ITEM_STATE_IMAGE_TASK_FAILED_WITH_PROFILE_REPORT" }, { no: 18, name: "ARTWORK_ITEM_STATE_PDF_SPLIT_IN_PROGRESS" }, { no: 19, name: "ARTWORK_ITEM_STATE_PDF_SPLIT_FAILED" }, ]); /** * actions that can be taken on an individual file * * @generated from enum artworking.v1.FileActionType */ export enum FileActionType { /** * Default undefined state * * @generated from enum value: FILE_ACTION_UNDEFINED = 0; */ FILE_ACTION_UNDEFINED = 0, /** * Submit a file for review * * @generated from enum value: FILE_ACTION_SUBMIT = 1; */ FILE_ACTION_SUBMIT = 1, /** * Approve the file as a printer * * @generated from enum value: FILE_ACTION_APPROVE = 2; */ FILE_ACTION_APPROVE = 2, /** * Approve the file with a revision for the customer to review * * @generated from enum value: FILE_ACTION_APPROVE_WITH_REVISION = 3; */ FILE_ACTION_APPROVE_WITH_REVISION = 3, /** * Request significant revisions to the file * * @generated from enum value: FILE_ACTION_REQUEST_REVISION = 4; */ FILE_ACTION_REQUEST_REVISION = 4, /** * Request acknowledgment for overriding a warning * * @generated from enum value: FILE_ACTION_REQUEST_ACKOWLEDGE_OVERRIDE = 5; */ FILE_ACTION_REQUEST_ACKOWLEDGE_OVERRIDE = 5, /** * Request acknowledgment from the customer for replacing a file as a printer * * @generated from enum value: FILE_ACTION_REQUEST_ACKOWLEDGE_REPLACEMENT = 6; */ FILE_ACTION_REQUEST_ACKOWLEDGE_REPLACEMENT = 6, /** * Customer accepts a file replacement * * @generated from enum value: FILE_ACTION_ACCEPT_REPLACEMENT_AS_CUSTOMER = 7; */ FILE_ACTION_ACCEPT_REPLACEMENT_AS_CUSTOMER = 7, /** * Customer accepts an override of a warning * * @generated from enum value: FILE_ACTION_ACCEPT_OVERRIDE_AS_CUSTOMER = 8; */ FILE_ACTION_ACCEPT_OVERRIDE_AS_CUSTOMER = 8, /** * Move file to assets library * * @generated from enum value: FILE_ACTION_MARK_AS_ASSET = 9; */ FILE_ACTION_MARK_AS_ASSET = 9, /** * Move file from assets/archived to active state * * @generated from enum value: FILE_ACTION_MARK_AS_ACTIVE = 10; */ FILE_ACTION_MARK_AS_ACTIVE = 10, /** * Move file to archived state * * @generated from enum value: FILE_ACTION_MARK_AS_ARCHIVE = 11; */ FILE_ACTION_MARK_AS_ARCHIVE = 11, /** * Replace the current file with a new version * * @generated from enum value: FILE_ACTION_REPLACE = 12; */ FILE_ACTION_REPLACE = 12, /** * Start an image task with confirmation * * @generated from enum value: FILE_ACTION_START_IMAGE_TASK_WITH_CONFIRMATION = 23; */ FILE_ACTION_START_IMAGE_TASK_WITH_CONFIRMATION = 23, /** * Start an image task without confirmation * * @generated from enum value: FILE_ACTION_START_IMAGE_TASK_WITHOUT_CONFIRMATION = 24; */ FILE_ACTION_START_IMAGE_TASK_WITHOUT_CONFIRMATION = 24, /** * Abort an image task * * @generated from enum value: FILE_ACTION_ABORT_IMAGE_TASK = 25; */ FILE_ACTION_ABORT_IMAGE_TASK = 25, /** * Reject an image task * * @generated from enum value: FILE_ACTION_REJECT_IMAGE_TASK = 26; */ FILE_ACTION_REJECT_IMAGE_TASK = 26, /** * Accept an image task * * @generated from enum value: FILE_ACTION_ACCEPT_IMAGE_TASK = 27; */ FILE_ACTION_ACCEPT_IMAGE_TASK = 27, /** * Mark image task as complete * * @generated from enum value: FILE_ACTION_IMAGE_TASK_COMPLETE = 28; */ FILE_ACTION_IMAGE_TASK_COMPLETE = 28, /** * Mark image task as failed * * @generated from enum value: FILE_ACTION_IMAGE_TASK_FAILED = 29; */ FILE_ACTION_IMAGE_TASK_FAILED = 29, /** * Image task is awaiting confirmation * * @generated from enum value: FILE_ACTION_IMAGE_TASK_AWAITING_CONFIRMATION = 30; */ FILE_ACTION_IMAGE_TASK_AWAITING_CONFIRMATION = 30, /** * Reset the file to its original state * * @generated from enum value: FILE_ACTION_RESET = 31; */ FILE_ACTION_RESET = 31, /** * Mark image task as failed with profile report * * @generated from enum value: FILE_ACTION_IMAGE_TASK_FAILED_WITH_PROFILE_REPORT = 32; */ FILE_ACTION_IMAGE_TASK_FAILED_WITH_PROFILE_REPORT = 32, /** * Start splitting PDF into individual pages * * @generated from enum value: FILE_ACTION_START_PDF_SPLIT = 33; */ FILE_ACTION_START_PDF_SPLIT = 33, /** * PDF split completed successfully * * @generated from enum value: FILE_ACTION_PDF_SPLIT_COMPLETE = 34; */ FILE_ACTION_PDF_SPLIT_COMPLETE = 34, /** * PDF split failed * * @generated from enum value: FILE_ACTION_PDF_SPLIT_FAILED = 35; */ FILE_ACTION_PDF_SPLIT_FAILED = 35, } // Retrieve enum metadata with: proto3.getEnumType(FileActionType) proto3.util.setEnumType(FileActionType, "artworking.v1.FileActionType", [ { no: 0, name: "FILE_ACTION_UNDEFINED" }, { no: 1, name: "FILE_ACTION_SUBMIT" }, { no: 2, name: "FILE_ACTION_APPROVE" }, { no: 3, name: "FILE_ACTION_APPROVE_WITH_REVISION" }, { no: 4, name: "FILE_ACTION_REQUEST_REVISION" }, { no: 5, name: "FILE_ACTION_REQUEST_ACKOWLEDGE_OVERRIDE" }, { no: 6, name: "FILE_ACTION_REQUEST_ACKOWLEDGE_REPLACEMENT" }, { no: 7, name: "FILE_ACTION_ACCEPT_REPLACEMENT_AS_CUSTOMER" }, { no: 8, name: "FILE_ACTION_ACCEPT_OVERRIDE_AS_CUSTOMER" }, { no: 9, name: "FILE_ACTION_MARK_AS_ASSET" }, { no: 10, name: "FILE_ACTION_MARK_AS_ACTIVE" }, { no: 11, name: "FILE_ACTION_MARK_AS_ARCHIVE" }, { no: 12, name: "FILE_ACTION_REPLACE" }, { no: 23, name: "FILE_ACTION_START_IMAGE_TASK_WITH_CONFIRMATION" }, { no: 24, name: "FILE_ACTION_START_IMAGE_TASK_WITHOUT_CONFIRMATION" }, { no: 25, name: "FILE_ACTION_ABORT_IMAGE_TASK" }, { no: 26, name: "FILE_ACTION_REJECT_IMAGE_TASK" }, { no: 27, name: "FILE_ACTION_ACCEPT_IMAGE_TASK" }, { no: 28, name: "FILE_ACTION_IMAGE_TASK_COMPLETE" }, { no: 29, name: "FILE_ACTION_IMAGE_TASK_FAILED" }, { no: 30, name: "FILE_ACTION_IMAGE_TASK_AWAITING_CONFIRMATION" }, { no: 31, name: "FILE_ACTION_RESET" }, { no: 32, name: "FILE_ACTION_IMAGE_TASK_FAILED_WITH_PROFILE_REPORT" }, { no: 33, name: "FILE_ACTION_START_PDF_SPLIT" }, { no: 34, name: "FILE_ACTION_PDF_SPLIT_COMPLETE" }, { no: 35, name: "FILE_ACTION_PDF_SPLIT_FAILED" }, ]); /** * actions that can be taken on an individual file * * @generated from enum artworking.v1.LeadtimeLengthUnit */ export enum LeadtimeLengthUnit { /** * @generated from enum value: LEADTIME_UNIT_DAY = 0; */ LEADTIME_UNIT_DAY = 0, /** * submit a file * * @generated from enum value: LEADTIME_UNIT_WEEK = 1; */ LEADTIME_UNIT_WEEK = 1, } // Retrieve enum metadata with: proto3.getEnumType(LeadtimeLengthUnit) proto3.util.setEnumType(LeadtimeLengthUnit, "artworking.v1.LeadtimeLengthUnit", [ { no: 0, name: "LEADTIME_UNIT_DAY" }, { no: 1, name: "LEADTIME_UNIT_WEEK" }, ]); /** * @generated from enum artworking.v1.JobType */ export enum JobType { /** * @generated from enum value: JOB_TYPE_UNDEFINED = 0; */ UNDEFINED = 0, /** * @generated from enum value: JOB_TYPE_JOB = 1; */ JOB = 1, /** * @generated from enum value: JOB_TYPE_TRANSFER = 2; */ TRANSFER = 2, /** * @generated from enum value: JOB_TYPE_FILES = 3; */ FILES = 3, } // Retrieve enum metadata with: proto3.getEnumType(JobType) proto3.util.setEnumType(JobType, "artworking.v1.JobType", [ { no: 0, name: "JOB_TYPE_UNDEFINED" }, { no: 1, name: "JOB_TYPE_JOB" }, { no: 2, name: "JOB_TYPE_TRANSFER" }, { no: 3, name: "JOB_TYPE_FILES" }, ]); /** * @generated from enum artworking.v1.JobFilterType */ export enum JobFilterType { /** * @generated from enum value: FILTER_TYPE_UNDEFINED = 0; */ FILTER_TYPE_UNDEFINED = 0, /** * @generated from enum value: FILTER_TYPE_JOB_NAME = 1; */ FILTER_TYPE_JOB_NAME = 1, /** * @generated from enum value: FILTER_TYPE_COMPANY_NAME = 2; */ FILTER_TYPE_COMPANY_NAME = 2, /** * @generated from enum value: FILTER_TYPE_CONTACT_NAME = 3; */ FILTER_TYPE_CONTACT_NAME = 3, /** * @generated from enum value: FILTER_TYPE_CONTACT_EMAIL = 4; */ FILTER_TYPE_CONTACT_EMAIL = 4, /** * @generated from enum value: FILTER_TYPE_ORDER_REF = 5; */ FILTER_TYPE_ORDER_REF = 5, /** * @generated from enum value: FILTER_TYPE_JOB_GROUP_REF = 6; */ FILTER_TYPE_JOB_GROUP_REF = 6, /** * @generated from enum value: FILTER_TYPE_TAG = 7; */ FILTER_TYPE_TAG = 7, } // Retrieve enum metadata with: proto3.getEnumType(JobFilterType) proto3.util.setEnumType(JobFilterType, "artworking.v1.JobFilterType", [ { no: 0, name: "FILTER_TYPE_UNDEFINED" }, { no: 1, name: "FILTER_TYPE_JOB_NAME" }, { no: 2, name: "FILTER_TYPE_COMPANY_NAME" }, { no: 3, name: "FILTER_TYPE_CONTACT_NAME" }, { no: 4, name: "FILTER_TYPE_CONTACT_EMAIL" }, { no: 5, name: "FILTER_TYPE_ORDER_REF" }, { no: 6, name: "FILTER_TYPE_JOB_GROUP_REF" }, { no: 7, name: "FILTER_TYPE_TAG" }, ]); /** * @generated from enum artworking.v1.JobFilterCondition */ export enum JobFilterCondition { /** * @generated from enum value: FILTER_CONDITION_UNDEFINED = 0; */ FILTER_CONDITION_UNDEFINED = 0, /** * @generated from enum value: FILTER_CONDITION_EQUALS = 1; */ FILTER_CONDITION_EQUALS = 1, /** * @generated from enum value: FILTER_CONDITION_CONTAINS = 2; */ FILTER_CONDITION_CONTAINS = 2, /** * used for string arrays, eg match when "tag1" is in { tags: ["tag1", "tag2"]} * * @generated from enum value: FILTER_CONDITION_IN = 3; */ FILTER_CONDITION_IN = 3, } // Retrieve enum metadata with: proto3.getEnumType(JobFilterCondition) proto3.util.setEnumType(JobFilterCondition, "artworking.v1.JobFilterCondition", [ { no: 0, name: "FILTER_CONDITION_UNDEFINED" }, { no: 1, name: "FILTER_CONDITION_EQUALS" }, { no: 2, name: "FILTER_CONDITION_CONTAINS" }, { no: 3, name: "FILTER_CONDITION_IN" }, ]); /** * @generated from message artworking.v1.ArtworkRejectionReason */ export class ArtworkRejectionReason extends Message { /** * @generated from field: string reason_code = 1; */ reasonCode = ""; /** * @generated from field: string reason = 2; */ reason = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.ArtworkRejectionReason"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "reason_code", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "reason", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): ArtworkRejectionReason { return new ArtworkRejectionReason().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): ArtworkRejectionReason { return new ArtworkRejectionReason().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): ArtworkRejectionReason { return new ArtworkRejectionReason().fromJsonString(jsonString, options); } static equals(a: ArtworkRejectionReason | PlainMessage | undefined, b: ArtworkRejectionReason | PlainMessage | undefined): boolean { return proto3.util.equals(ArtworkRejectionReason, a, b); } } /** * Typed settings for JobActionTypeProofSubmit * * @generated from message artworking.v1.ProofSubmitSettings */ export class ProofSubmitSettings extends Message { /** * @generated from field: bool enable_flipbook = 1; */ enableFlipbook = false; /** * @generated from field: int64 custom_guide_id = 2; */ customGuideId = protoInt64.zero; /** * @generated from field: artworking.v1.SelectedGuideType selected_guide_type = 3; */ selectedGuideType = SelectedGuideType.NONE; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.ProofSubmitSettings"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "enable_flipbook", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 2, name: "custom_guide_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, { no: 3, name: "selected_guide_type", kind: "enum", T: proto3.getEnumType(SelectedGuideType) }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): ProofSubmitSettings { return new ProofSubmitSettings().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): ProofSubmitSettings { return new ProofSubmitSettings().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): ProofSubmitSettings { return new ProofSubmitSettings().fromJsonString(jsonString, options); } static equals(a: ProofSubmitSettings | PlainMessage | undefined, b: ProofSubmitSettings | PlainMessage | undefined): boolean { return proto3.util.equals(ProofSubmitSettings, a, b); } } /** * Typed settings for FileActionTypeApprove * * @generated from message artworking.v1.FileApprovalSettings */ export class FileApprovalSettings extends Message { constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.FileApprovalSettings"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ ]); static fromBinary(bytes: Uint8Array, options?: Partial): FileApprovalSettings { return new FileApprovalSettings().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): FileApprovalSettings { return new FileApprovalSettings().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): FileApprovalSettings { return new FileApprovalSettings().fromJsonString(jsonString, options); } static equals(a: FileApprovalSettings | PlainMessage | undefined, b: FileApprovalSettings | PlainMessage | undefined): boolean { return proto3.util.equals(FileApprovalSettings, a, b); } } /** * Typed settings for FileActionTypeSubmit * * @generated from message artworking.v1.FileSubmitSettings */ export class FileSubmitSettings extends Message { constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.FileSubmitSettings"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ ]); static fromBinary(bytes: Uint8Array, options?: Partial): FileSubmitSettings { return new FileSubmitSettings().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): FileSubmitSettings { return new FileSubmitSettings().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): FileSubmitSettings { return new FileSubmitSettings().fromJsonString(jsonString, options); } static equals(a: FileSubmitSettings | PlainMessage | undefined, b: FileSubmitSettings | PlainMessage | undefined): boolean { return proto3.util.equals(FileSubmitSettings, a, b); } } /** * Typed settings for JobActionTypeComplete * * @generated from message artworking.v1.CompleteJobSettings */ export class CompleteJobSettings extends Message { constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.CompleteJobSettings"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ ]); static fromBinary(bytes: Uint8Array, options?: Partial): CompleteJobSettings { return new CompleteJobSettings().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): CompleteJobSettings { return new CompleteJobSettings().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): CompleteJobSettings { return new CompleteJobSettings().fromJsonString(jsonString, options); } static equals(a: CompleteJobSettings | PlainMessage | undefined, b: CompleteJobSettings | PlainMessage | undefined): boolean { return proto3.util.equals(CompleteJobSettings, a, b); } } /** * Typed settings for JobActionUploadArtwork * * @generated from message artworking.v1.ArtworkUploadSettings */ export class ArtworkUploadSettings extends Message { constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.ArtworkUploadSettings"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ ]); static fromBinary(bytes: Uint8Array, options?: Partial): ArtworkUploadSettings { return new ArtworkUploadSettings().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): ArtworkUploadSettings { return new ArtworkUploadSettings().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): ArtworkUploadSettings { return new ArtworkUploadSettings().fromJsonString(jsonString, options); } static equals(a: ArtworkUploadSettings | PlainMessage | undefined, b: ArtworkUploadSettings | PlainMessage | undefined): boolean { return proto3.util.equals(ArtworkUploadSettings, a, b); } } /** * @generated from message artworking.v1.DraftAction */ export class DraftAction extends Message { /** * hex ObjectID string * * @generated from field: string job_id = 1; */ jobId = ""; /** * @generated from field: int32 artwork_item_id = 2; */ artworkItemId = 0; /** * @generated from field: artworking.v1.FileActionType action = 3; */ action = FileActionType.FILE_ACTION_UNDEFINED; /** * @generated from field: bool allow_override = 4; */ allowOverride = false; /** * @generated from field: artworking.v1.RejectionReasons rejection_reasons = 5; */ rejectionReasons?: RejectionReasons; /** * creator/owner * * @generated from field: int64 artworker_id = 6; */ artworkerId = protoInt64.zero; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.DraftAction"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "job_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "artwork_item_id", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, { no: 3, name: "action", kind: "enum", T: proto3.getEnumType(FileActionType) }, { no: 4, name: "allow_override", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 5, name: "rejection_reasons", kind: "message", T: RejectionReasons }, { no: 6, name: "artworker_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): DraftAction { return new DraftAction().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): DraftAction { return new DraftAction().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): DraftAction { return new DraftAction().fromJsonString(jsonString, options); } static equals(a: DraftAction | PlainMessage | undefined, b: DraftAction | PlainMessage | undefined): boolean { return proto3.util.equals(DraftAction, a, b); } } /** * An artwork item is a single file (piece of artwork) in a job * * @generated from message artworking.v1.ArtworkItem */ export class ArtworkItem extends Message { /** * The main media file associated with this artwork item * * @generated from field: media.v1.Media media_item = 3; */ mediaItem?: Media; /** * Current state of the artwork item * * @generated from field: artworking.v1.ArtworkItemState state = 5; */ state = ArtworkItemState.UNDEFINED; /** * Optional message or note associated with the artwork item * * @generated from field: string message = 6; */ message = ""; /** * The modified version of the media file, if any changes were made by the printer * * @generated from field: media.v1.Media changed_media_item = 8; */ changedMediaItem?: Media; /** * Gives the latest relavent action taking context into account. For example, if an item is rejected, moved to assets, then moved to active; the last_action_performed is moved-to-active but the "latest_action" is "rejected" * * @generated from field: artworking.v1.FileActionType latest_relevant_action = 9; */ latestRelevantAction = FileActionType.FILE_ACTION_UNDEFINED; /** * Timestamp of the last update to this artwork item * * @generated from field: google.protobuf.Timestamp updated_at = 10; */ updatedAt?: Timestamp; /** * Display name of the artwork item * * @generated from field: string name = 11; */ name = ""; /** * Unique identifier for this artwork item * * @generated from field: int32 id = 13; */ id = 0; /** * List of actions that customers are allowed to perform on this item * * @generated from field: repeated artworking.v1.FileActionType customer_allowed_actions = 14; */ customerAllowedActions: FileActionType[] = []; /** * List of actions that suppliers are allowed to perform on this item * * @generated from field: repeated artworking.v1.FileActionType supplier_allowed_actions = 15; */ supplierAllowedActions: FileActionType[] = []; /** * ID of the associated media item * * @generated from field: int64 media_item_id = 16; */ mediaItemId = protoInt64.zero; /** * Reasons for rejection if the item was rejected * * @generated from field: artworking.v1.RejectionReasons rejection_reasons = 17; */ rejectionReasons?: RejectionReasons; /** * The last action performed. Differs from "latest_relevant_action" in that "latest_relevant_action" gives the latest relavent action taking context into account. For example, if an item is rejected, moved to assets, then moved to active; the last_action_performed is moved-to-active but the "latest_action" is "rejected" * * @generated from field: artworking.v1.FileActionType last_action_performed = 19; */ lastActionPerformed = FileActionType.FILE_ACTION_UNDEFINED; /** * Information about any image task applied to this item * * @generated from field: optional artworking.v1.ImageTaskAction image_task = 21; */ imageTask?: ImageTaskAction; /** * Custom reference for external systems to identify this file * * @generated from field: string custom_ref = 22; */ customRef = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.ArtworkItem"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 3, name: "media_item", kind: "message", T: Media }, { no: 5, name: "state", kind: "enum", T: proto3.getEnumType(ArtworkItemState) }, { no: 6, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 8, name: "changed_media_item", kind: "message", T: Media }, { no: 9, name: "latest_relevant_action", kind: "enum", T: proto3.getEnumType(FileActionType) }, { no: 10, name: "updated_at", kind: "message", T: Timestamp }, { no: 11, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 13, name: "id", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, { no: 14, name: "customer_allowed_actions", kind: "enum", T: proto3.getEnumType(FileActionType), repeated: true }, { no: 15, name: "supplier_allowed_actions", kind: "enum", T: proto3.getEnumType(FileActionType), repeated: true }, { no: 16, name: "media_item_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, { no: 17, name: "rejection_reasons", kind: "message", T: RejectionReasons }, { no: 19, name: "last_action_performed", kind: "enum", T: proto3.getEnumType(FileActionType) }, { no: 21, name: "image_task", kind: "message", T: ImageTaskAction, opt: true }, { no: 22, name: "custom_ref", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): ArtworkItem { return new ArtworkItem().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): ArtworkItem { return new ArtworkItem().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): ArtworkItem { return new ArtworkItem().fromJsonString(jsonString, options); } static equals(a: ArtworkItem | PlainMessage | undefined, b: ArtworkItem | PlainMessage | undefined): boolean { return proto3.util.equals(ArtworkItem, a, b); } } /** * @generated from message artworking.v1.RejectionReasons */ export class RejectionReasons extends Message { /** * @generated from field: repeated common.v1.PreflightResult preflight_rejection_reasons = 1; */ preflightRejectionReasons: PreflightResult[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.RejectionReasons"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "preflight_rejection_reasons", kind: "message", T: PreflightResult, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): RejectionReasons { return new RejectionReasons().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): RejectionReasons { return new RejectionReasons().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): RejectionReasons { return new RejectionReasons().fromJsonString(jsonString, options); } static equals(a: RejectionReasons | PlainMessage | undefined, b: RejectionReasons | PlainMessage | undefined): boolean { return proto3.util.equals(RejectionReasons, a, b); } } /** * @generated from message artworking.v1.SelectedFileRequirement */ export class SelectedFileRequirement extends Message { /** * @generated from field: string requirement_code = 1; */ requirementCode = ""; /** * @generated from field: string requirement = 2; */ requirement = ""; /** * @generated from field: string option_code = 3; */ optionCode = ""; /** * @generated from field: string option = 4; */ option = ""; /** * @generated from field: artworking.v1.SelectedFileRequirement.Meta meta = 5; */ meta?: SelectedFileRequirement_Meta; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.SelectedFileRequirement"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "requirement_code", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "requirement", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "option_code", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 4, name: "option", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 5, name: "meta", kind: "message", T: SelectedFileRequirement_Meta }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): SelectedFileRequirement { return new SelectedFileRequirement().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): SelectedFileRequirement { return new SelectedFileRequirement().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): SelectedFileRequirement { return new SelectedFileRequirement().fromJsonString(jsonString, options); } static equals(a: SelectedFileRequirement | PlainMessage | undefined, b: SelectedFileRequirement | PlainMessage | undefined): boolean { return proto3.util.equals(SelectedFileRequirement, a, b); } } /** * @generated from message artworking.v1.SelectedFileRequirement.Meta */ export class SelectedFileRequirement_Meta extends Message { /** * @generated from field: string context = 1; */ context = ""; /** * @generated from field: string id = 2; */ id = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.SelectedFileRequirement.Meta"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "context", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): SelectedFileRequirement_Meta { return new SelectedFileRequirement_Meta().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): SelectedFileRequirement_Meta { return new SelectedFileRequirement_Meta().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): SelectedFileRequirement_Meta { return new SelectedFileRequirement_Meta().fromJsonString(jsonString, options); } static equals(a: SelectedFileRequirement_Meta | PlainMessage | undefined, b: SelectedFileRequirement_Meta | PlainMessage | undefined): boolean { return proto3.util.equals(SelectedFileRequirement_Meta, a, b); } } /** * @generated from message artworking.v1.Proofs */ export class Proofs extends Message { /** * @generated from field: google.protobuf.Timestamp updated_at = 1; */ updatedAt?: Timestamp; /** * @generated from field: repeated media.v1.Media media_items = 3; */ mediaItems: Media[] = []; /** * @generated from field: string message = 4; */ message = ""; /** * @generated from field: bool allow_download = 5; */ allowDownload = false; /** * @generated from field: artworking.v1.ProofSubmitSettings settings = 6; */ settings?: ProofSubmitSettings; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.Proofs"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "updated_at", kind: "message", T: Timestamp }, { no: 3, name: "media_items", kind: "message", T: Media, repeated: true }, { no: 4, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 5, name: "allow_download", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 6, name: "settings", kind: "message", T: ProofSubmitSettings }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): Proofs { return new Proofs().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): Proofs { return new Proofs().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): Proofs { return new Proofs().fromJsonString(jsonString, options); } static equals(a: Proofs | PlainMessage | undefined, b: Proofs | PlainMessage | undefined): boolean { return proto3.util.equals(Proofs, a, b); } } /** * @generated from message artworking.v1.ArtworkStateHistoryEntry */ export class ArtworkStateHistoryEntry extends Message { /** * @generated from field: google.protobuf.Timestamp created_at = 1; */ createdAt?: Timestamp; /** * @generated from field: artworking.v1.ArtworkState state = 2; */ state = ArtworkState.UNDEFINED; /** * @generated from field: string message = 3; */ message = ""; /** * @generated from field: common.v1.EmailStatus email_status = 4; */ emailStatus?: EmailStatus; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.ArtworkStateHistoryEntry"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "created_at", kind: "message", T: Timestamp }, { no: 2, name: "state", kind: "enum", T: proto3.getEnumType(ArtworkState) }, { no: 3, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 4, name: "email_status", kind: "message", T: EmailStatus }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): ArtworkStateHistoryEntry { return new ArtworkStateHistoryEntry().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): ArtworkStateHistoryEntry { return new ArtworkStateHistoryEntry().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): ArtworkStateHistoryEntry { return new ArtworkStateHistoryEntry().fromJsonString(jsonString, options); } static equals(a: ArtworkStateHistoryEntry | PlainMessage | undefined, b: ArtworkStateHistoryEntry | PlainMessage | undefined): boolean { return proto3.util.equals(ArtworkStateHistoryEntry, a, b); } } /** * @generated from message artworking.v1.ArtworkMessage */ export class ArtworkMessage extends Message { /** * @generated from field: google.protobuf.Timestamp created_at = 1; */ createdAt?: Timestamp; /** * @generated from field: string message = 2; */ message = ""; /** * @generated from field: artworking.v1.ArtworkActor actor = 3; */ actor = ArtworkActor.UNDEFINED; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.ArtworkMessage"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "created_at", kind: "message", T: Timestamp }, { no: 2, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "actor", kind: "enum", T: proto3.getEnumType(ArtworkActor) }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): ArtworkMessage { return new ArtworkMessage().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): ArtworkMessage { return new ArtworkMessage().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): ArtworkMessage { return new ArtworkMessage().fromJsonString(jsonString, options); } static equals(a: ArtworkMessage | PlainMessage | undefined, b: ArtworkMessage | PlainMessage | undefined): boolean { return proto3.util.equals(ArtworkMessage, a, b); } } /** * A job is a collection of artwork items * * @generated from message artworking.v1.Job */ export class Job extends Message { /** * Unique identifier for the job * * @generated from field: string id = 1; */ id = ""; /** * Timestamp of when the job was created * * @generated from field: google.protobuf.Timestamp created_at = 2; */ createdAt?: Timestamp; /** * Timestamp of when the job was last updated * * @generated from field: google.protobuf.Timestamp updated_at = 3; */ updatedAt?: Timestamp; /** * List of artwork items in the job * * @generated from field: repeated artworking.v1.ArtworkItem items = 5; */ items: ArtworkItem[] = []; /** * no artwork has been uploaded * * @generated from field: bool pristine = 6; */ pristine = false; /** * ID of the contact associated with the job * * @generated from field: int64 contact_id = 7; */ contactId = protoInt64.zero; /** * Name of the contact associated with the job * * @generated from field: string contact_name = 8; */ contactName = ""; /** * Reference number for the order associated with the job * * @generated from field: string order_ref = 9; */ orderRef = ""; /** * URI of the job * * @generated from field: string uri = 10; */ uri = ""; /** * Name of the job * * @generated from field: string name = 11; */ name = ""; /** * ArtworkType type = 12; // Type of artwork * * Current state of the job * * @generated from field: artworking.v1.ArtworkState state = 14; */ state = ArtworkState.UNDEFINED; /** * Name of the supplier associated with the job * * @generated from field: string supplier_name = 15; */ supplierName = ""; /** * ID of the supplier associated with the job * * @generated from field: int64 supplier_id = 16; */ supplierId = protoInt64.zero; /** * Proofs associated with the job * * @generated from field: artworking.v1.Proofs proofs = 17; */ proofs?: Proofs; /** * Messages associated with the job * * @generated from field: repeated artworking.v1.ArtworkMessage messages = 18; */ messages: ArtworkMessage[] = []; /** * Whether to disable proof review for the job * * @generated from field: bool disable_proof_review = 19; */ disableProofReview = false; /** * Configuration for the job * * @generated from field: artworking.v1.JobConfig config = 20; */ config?: JobConfig; /** * Whether to enable chaser emails for the job * * @generated from field: bool enable_chaser_emails = 21; */ enableChaserEmails = false; /** * List of actions that customers are allowed to perform on the job * * @generated from field: repeated artworking.v1.JobAction customer_allowed_actions = 22; */ customerAllowedActions: JobAction[] = []; /** * List of actions that suppliers are allowed to perform on the job * * @generated from field: repeated artworking.v1.JobAction supplier_allowed_actions = 23; */ supplierAllowedActions: JobAction[] = []; /** * Reference number for the latest chaser email sent to the customer * * @generated from field: string latest_chaser_email_ref = 24; */ latestChaserEmailRef = ""; /** * Internal notes associated with the job * * @generated from field: repeated artworking.v1.ArtworkMessage internal_notes = 25; */ internalNotes: ArtworkMessage[] = []; /** * Whether the proofs and artwork are out of sync * * @generated from field: bool proofs_and_artwork_out_of_sync = 26; */ proofsAndArtworkOutOfSync = false; /** * Length of the leadtime for the job * * @generated from field: int32 leadtime_length = 27; */ leadtimeLength = 0; /** * Unit of the leadtime for the job * * @generated from field: artworking.v1.LeadtimeLengthUnit leadtime_length_unit = 28; */ leadtimeLengthUnit = LeadtimeLengthUnit.LEADTIME_UNIT_DAY; /** * Whether the job requires proofs * * @generated from field: bool requires_proof = 29; */ requiresProof = false; /** * Measurement unit for the job * * @generated from field: common.v1.MeasurementUnit measurement_unit = 30; */ measurementUnit = MeasurementUnit.UNKNOWN; /** * for use with unauthed users * * @generated from field: string contact_ref = 31; */ contactRef = ""; /** * State of the fixup for the job * * @generated from field: artworking.v1.ArtworkItemState fixup_state = 32; */ fixupState = ArtworkItemState.UNDEFINED; /** * External link for the job * * @generated from field: optional artworking.v1.ExternalLink external_link = 33; */ externalLink?: ExternalLink; /** * Reason for cancelling the job * * @generated from field: optional string cancelled_reason = 34; */ cancelledReason?: string; /** * Tags associated with the job * * @generated from field: repeated string tags = 35; */ tags: string[] = []; /** * Index of the job in the job group * * @generated from field: int32 index = 36; */ index = 0; /** * Number of jobs in the job group * * @generated from field: int32 job_group_count = 37; */ jobGroupCount = 0; /** * Email address of the contact associated with the job * * @generated from field: string contact_email = 38; */ contactEmail = ""; /** * Reference number for the job group * * @generated from field: string job_group_ref = 39; */ jobGroupRef = ""; /** * Name of the company associated with the job * * @generated from field: string company_name = 40; */ companyName = ""; /** * State of the conversion for the job * * @generated from field: artworking.v1.ArtworkItemState conversion_state = 41; */ conversionState = ArtworkItemState.UNDEFINED; /** * Type of job * * @generated from field: artworking.v1.JobType type = 42; */ type = JobType.UNDEFINED; /** * ID of the job share associated with the job * * @generated from field: optional string share_id = 43; */ shareId?: string; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.Job"; 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: 5, name: "items", kind: "message", T: ArtworkItem, repeated: true }, { no: 6, name: "pristine", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 7, name: "contact_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, { no: 8, name: "contact_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 9, name: "order_ref", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 10, name: "uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 11, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 14, name: "state", kind: "enum", T: proto3.getEnumType(ArtworkState) }, { no: 15, name: "supplier_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 16, name: "supplier_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, { no: 17, name: "proofs", kind: "message", T: Proofs }, { no: 18, name: "messages", kind: "message", T: ArtworkMessage, repeated: true }, { no: 19, name: "disable_proof_review", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 20, name: "config", kind: "message", T: JobConfig }, { no: 21, name: "enable_chaser_emails", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 22, name: "customer_allowed_actions", kind: "enum", T: proto3.getEnumType(JobAction), repeated: true }, { no: 23, name: "supplier_allowed_actions", kind: "enum", T: proto3.getEnumType(JobAction), repeated: true }, { no: 24, name: "latest_chaser_email_ref", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 25, name: "internal_notes", kind: "message", T: ArtworkMessage, repeated: true }, { no: 26, name: "proofs_and_artwork_out_of_sync", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 27, name: "leadtime_length", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, { no: 28, name: "leadtime_length_unit", kind: "enum", T: proto3.getEnumType(LeadtimeLengthUnit) }, { no: 29, name: "requires_proof", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 30, name: "measurement_unit", kind: "enum", T: proto3.getEnumType(MeasurementUnit) }, { no: 31, name: "contact_ref", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 32, name: "fixup_state", kind: "enum", T: proto3.getEnumType(ArtworkItemState) }, { no: 33, name: "external_link", kind: "message", T: ExternalLink, opt: true }, { no: 34, name: "cancelled_reason", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, { no: 35, name: "tags", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, { no: 36, name: "index", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, { no: 37, name: "job_group_count", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, { no: 38, name: "contact_email", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 39, name: "job_group_ref", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 40, name: "company_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 41, name: "conversion_state", kind: "enum", T: proto3.getEnumType(ArtworkItemState) }, { no: 42, name: "type", kind: "enum", T: proto3.getEnumType(JobType) }, { no: 43, name: "share_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): Job { return new Job().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): Job { return new Job().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): Job { return new Job().fromJsonString(jsonString, options); } static equals(a: Job | PlainMessage | undefined, b: Job | PlainMessage | undefined): boolean { return proto3.util.equals(Job, a, b); } } /** * @generated from message artworking.v1.FlowConfig */ export class FlowConfig extends Message { /** * @generated from field: string flow = 1; */ flow = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.FlowConfig"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "flow", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): FlowConfig { return new FlowConfig().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): FlowConfig { return new FlowConfig().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): FlowConfig { return new FlowConfig().fromJsonString(jsonString, options); } static equals(a: FlowConfig | PlainMessage | undefined, b: FlowConfig | PlainMessage | undefined): boolean { return proto3.util.equals(FlowConfig, a, b); } } /** * @generated from message artworking.v1.JobConfig */ export class JobConfig extends Message { /** * repeated FileAction allowed_artwork_item_actions = 2; * repeated ProofsAction allowed_proof_actions = 3; * * @generated from field: artworking.v1.FlowConfig flow_config = 1; */ flowConfig?: FlowConfig; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.JobConfig"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "flow_config", kind: "message", T: FlowConfig }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): JobConfig { return new JobConfig().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): JobConfig { return new JobConfig().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): JobConfig { return new JobConfig().fromJsonString(jsonString, options); } static equals(a: JobConfig | PlainMessage | undefined, b: JobConfig | PlainMessage | undefined): boolean { return proto3.util.equals(JobConfig, a, b); } } /** * @generated from message artworking.v1.ExternalLink */ export class ExternalLink extends Message { /** * @generated from field: string url = 1; */ url = ""; /** * @generated from field: string button_text = 2; */ buttonText = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.ExternalLink"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "url", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "button_text", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): ExternalLink { return new ExternalLink().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): ExternalLink { return new ExternalLink().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): ExternalLink { return new ExternalLink().fromJsonString(jsonString, options); } static equals(a: ExternalLink | PlainMessage | undefined, b: ExternalLink | PlainMessage | undefined): boolean { return proto3.util.equals(ExternalLink, a, b); } } /** * Request to update an existing job's basic information * * @generated from message artworking.v1.UpdateJobRequest */ export class UpdateJobRequest extends Message { /** * ID of the job to update * * @generated from field: string id = 1; */ id = ""; /** * New name for the job * * @generated from field: string name = 2; */ name = ""; /** * New order reference for the job * * @generated from field: string order_ref = 3; */ orderRef = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.UpdateJobRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "order_ref", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): UpdateJobRequest { return new UpdateJobRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): UpdateJobRequest { return new UpdateJobRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): UpdateJobRequest { return new UpdateJobRequest().fromJsonString(jsonString, options); } static equals(a: UpdateJobRequest | PlainMessage | undefined, b: UpdateJobRequest | PlainMessage | undefined): boolean { return proto3.util.equals(UpdateJobRequest, a, b); } } /** * @generated from message artworking.v1.UpdateJobResponse */ export class UpdateJobResponse extends Message { /** * @generated from field: artworking.v1.Job job = 1; */ job?: Job; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.UpdateJobResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "job", kind: "message", T: Job }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): UpdateJobResponse { return new UpdateJobResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): UpdateJobResponse { return new UpdateJobResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): UpdateJobResponse { return new UpdateJobResponse().fromJsonString(jsonString, options); } static equals(a: UpdateJobResponse | PlainMessage | undefined, b: UpdateJobResponse | PlainMessage | undefined): boolean { return proto3.util.equals(UpdateJobResponse, a, b); } } /** * Request to convert a temporary job to an active job * * @generated from message artworking.v1.PromoteTempJobToActiveRequest */ export class PromoteTempJobToActiveRequest extends Message { /** * Custom unique identifier of the temporary job to promote * * @generated from field: string custom_uid = 1; */ customUid = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.PromoteTempJobToActiveRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "custom_uid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): PromoteTempJobToActiveRequest { return new PromoteTempJobToActiveRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): PromoteTempJobToActiveRequest { return new PromoteTempJobToActiveRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): PromoteTempJobToActiveRequest { return new PromoteTempJobToActiveRequest().fromJsonString(jsonString, options); } static equals(a: PromoteTempJobToActiveRequest | PlainMessage | undefined, b: PromoteTempJobToActiveRequest | PlainMessage | undefined): boolean { return proto3.util.equals(PromoteTempJobToActiveRequest, a, b); } } /** * @generated from message artworking.v1.PromoteTempJobToActiveResponse */ export class PromoteTempJobToActiveResponse extends Message { /** * @generated from field: bool ok = 1; */ ok = false; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.PromoteTempJobToActiveResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "ok", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): PromoteTempJobToActiveResponse { return new PromoteTempJobToActiveResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): PromoteTempJobToActiveResponse { return new PromoteTempJobToActiveResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): PromoteTempJobToActiveResponse { return new PromoteTempJobToActiveResponse().fromJsonString(jsonString, options); } static equals(a: PromoteTempJobToActiveResponse | PlainMessage | undefined, b: PromoteTempJobToActiveResponse | PlainMessage | undefined): boolean { return proto3.util.equals(PromoteTempJobToActiveResponse, a, b); } } /** * Request to update job-specific settings * * @generated from message artworking.v1.SetJobSettingsRequest */ export class SetJobSettingsRequest extends Message { /** * ID of the job to update settings for * * @generated from field: string id = 1; */ id = ""; /** * Whether to enable automatic reminder emails for this job * * @generated from field: bool enable_chaser_emails = 2; */ enableChaserEmails = false; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.SetJobSettingsRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "enable_chaser_emails", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): SetJobSettingsRequest { return new SetJobSettingsRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): SetJobSettingsRequest { return new SetJobSettingsRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): SetJobSettingsRequest { return new SetJobSettingsRequest().fromJsonString(jsonString, options); } static equals(a: SetJobSettingsRequest | PlainMessage | undefined, b: SetJobSettingsRequest | PlainMessage | undefined): boolean { return proto3.util.equals(SetJobSettingsRequest, a, b); } } /** * @generated from message artworking.v1.SetJobSettingsResponse */ export class SetJobSettingsResponse extends Message { /** * @generated from field: artworking.v1.Job job = 1; */ job?: Job; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.SetJobSettingsResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "job", kind: "message", T: Job }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): SetJobSettingsResponse { return new SetJobSettingsResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): SetJobSettingsResponse { return new SetJobSettingsResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): SetJobSettingsResponse { return new SetJobSettingsResponse().fromJsonString(jsonString, options); } static equals(a: SetJobSettingsResponse | PlainMessage | undefined, b: SetJobSettingsResponse | PlainMessage | undefined): boolean { return proto3.util.equals(SetJobSettingsResponse, a, b); } } /** * Request to delete a job * * @generated from message artworking.v1.DeleteJobRequest */ export class DeleteJobRequest extends Message { /** * ID of the job to delete * * @generated from field: string id = 1; */ id = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.DeleteJobRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): DeleteJobRequest { return new DeleteJobRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): DeleteJobRequest { return new DeleteJobRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): DeleteJobRequest { return new DeleteJobRequest().fromJsonString(jsonString, options); } static equals(a: DeleteJobRequest | PlainMessage | undefined, b: DeleteJobRequest | PlainMessage | undefined): boolean { return proto3.util.equals(DeleteJobRequest, a, b); } } /** * @generated from message artworking.v1.DeleteJobResponse */ export class DeleteJobResponse extends Message { /** * @generated from field: bool ok = 1; */ ok = false; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.DeleteJobResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "ok", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): DeleteJobResponse { return new DeleteJobResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): DeleteJobResponse { return new DeleteJobResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): DeleteJobResponse { return new DeleteJobResponse().fromJsonString(jsonString, options); } static equals(a: DeleteJobResponse | PlainMessage | undefined, b: DeleteJobResponse | PlainMessage | undefined): boolean { return proto3.util.equals(DeleteJobResponse, a, b); } } /** * Request to delete multiple jobs in a single operation * * @generated from message artworking.v1.BulkDeleteJobsRequest */ export class BulkDeleteJobsRequest extends Message { /** * List of job IDs to delete * * @generated from field: repeated string ids = 1; */ ids: string[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.BulkDeleteJobsRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): BulkDeleteJobsRequest { return new BulkDeleteJobsRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): BulkDeleteJobsRequest { return new BulkDeleteJobsRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): BulkDeleteJobsRequest { return new BulkDeleteJobsRequest().fromJsonString(jsonString, options); } static equals(a: BulkDeleteJobsRequest | PlainMessage | undefined, b: BulkDeleteJobsRequest | PlainMessage | undefined): boolean { return proto3.util.equals(BulkDeleteJobsRequest, a, b); } } /** * @generated from message artworking.v1.BulkDeleteJobsResponse */ export class BulkDeleteJobsResponse extends Message { /** * @generated from field: bool ok = 1; */ ok = false; /** * @generated from field: repeated artworking.v1.BulkDeleteJobsResponse.Error errors = 2; */ errors: BulkDeleteJobsResponse_Error[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.BulkDeleteJobsResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "ok", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 2, name: "errors", kind: "message", T: BulkDeleteJobsResponse_Error, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): BulkDeleteJobsResponse { return new BulkDeleteJobsResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): BulkDeleteJobsResponse { return new BulkDeleteJobsResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): BulkDeleteJobsResponse { return new BulkDeleteJobsResponse().fromJsonString(jsonString, options); } static equals(a: BulkDeleteJobsResponse | PlainMessage | undefined, b: BulkDeleteJobsResponse | PlainMessage | undefined): boolean { return proto3.util.equals(BulkDeleteJobsResponse, a, b); } } /** * @generated from message artworking.v1.BulkDeleteJobsResponse.Error */ export class BulkDeleteJobsResponse_Error extends Message { /** * @generated from field: string id = 1; */ id = ""; /** * @generated from field: string error = 2; */ error = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.BulkDeleteJobsResponse.Error"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): BulkDeleteJobsResponse_Error { return new BulkDeleteJobsResponse_Error().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): BulkDeleteJobsResponse_Error { return new BulkDeleteJobsResponse_Error().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): BulkDeleteJobsResponse_Error { return new BulkDeleteJobsResponse_Error().fromJsonString(jsonString, options); } static equals(a: BulkDeleteJobsResponse_Error | PlainMessage | undefined, b: BulkDeleteJobsResponse_Error | PlainMessage | undefined): boolean { return proto3.util.equals(BulkDeleteJobsResponse_Error, a, b); } } /** * @generated from message artworking.v1.FilterJobRequestFilter */ export class FilterJobRequestFilter extends Message { /** * @generated from field: string value = 1; */ value = ""; /** * @generated from field: artworking.v1.JobFilterType filter_type = 2; */ filterType = JobFilterType.FILTER_TYPE_UNDEFINED; /** * @generated from field: artworking.v1.JobFilterCondition filter_condition = 3; */ filterCondition = JobFilterCondition.FILTER_CONDITION_UNDEFINED; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.FilterJobRequestFilter"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "value", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "filter_type", kind: "enum", T: proto3.getEnumType(JobFilterType) }, { no: 3, name: "filter_condition", kind: "enum", T: proto3.getEnumType(JobFilterCondition) }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): FilterJobRequestFilter { return new FilterJobRequestFilter().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): FilterJobRequestFilter { return new FilterJobRequestFilter().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): FilterJobRequestFilter { return new FilterJobRequestFilter().fromJsonString(jsonString, options); } static equals(a: FilterJobRequestFilter | PlainMessage | undefined, b: FilterJobRequestFilter | PlainMessage | undefined): boolean { return proto3.util.equals(FilterJobRequestFilter, a, b); } } /** * Request to search for jobs with various filters * * @generated from message artworking.v1.FindJobRequest */ export class FindJobRequest extends Message { /** * Filter by specific contact IDs * * @generated from field: repeated int64 contact_ids = 7; */ contactIds: bigint[] = []; /** * Filter by specific job states * * @generated from field: repeated artworking.v1.ArtworkState states = 8; */ states: ArtworkState[] = []; /** * Pagination and sorting parameters * * @generated from field: common.v1.PaginatedQuery query = 9; */ query?: PaginatedQuery; /** * Filter by specific company IDs * * @generated from field: repeated int64 company_ids = 10; */ companyIds: bigint[] = []; /** * Additional custom filters to apply * * @generated from field: repeated artworking.v1.FilterJobRequestFilter filters = 11; */ filters: FilterJobRequestFilter[] = []; /** * Filter by job type * * @generated from field: artworking.v1.JobType type = 12; */ type = JobType.UNDEFINED; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.FindJobRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 7, name: "contact_ids", kind: "scalar", T: 3 /* ScalarType.INT64 */, repeated: true }, { no: 8, name: "states", kind: "enum", T: proto3.getEnumType(ArtworkState), repeated: true }, { no: 9, name: "query", kind: "message", T: PaginatedQuery }, { no: 10, name: "company_ids", kind: "scalar", T: 3 /* ScalarType.INT64 */, repeated: true }, { no: 11, name: "filters", kind: "message", T: FilterJobRequestFilter, repeated: true }, { no: 12, name: "type", kind: "enum", T: proto3.getEnumType(JobType) }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): FindJobRequest { return new FindJobRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): FindJobRequest { return new FindJobRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): FindJobRequest { return new FindJobRequest().fromJsonString(jsonString, options); } static equals(a: FindJobRequest | PlainMessage | undefined, b: FindJobRequest | PlainMessage | undefined): boolean { return proto3.util.equals(FindJobRequest, a, b); } } /** * @generated from message artworking.v1.FindJobResponse */ export class FindJobResponse extends Message { /** * @generated from field: repeated artworking.v1.Job data = 1; */ data: Job[] = []; /** * @generated from field: common.v1.PaginatedResponse pagination = 2; */ pagination?: PaginatedResponse; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.FindJobResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "data", kind: "message", T: Job, repeated: true }, { no: 2, name: "pagination", kind: "message", T: PaginatedResponse }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): FindJobResponse { return new FindJobResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): FindJobResponse { return new FindJobResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): FindJobResponse { return new FindJobResponse().fromJsonString(jsonString, options); } static equals(a: FindJobResponse | PlainMessage | undefined, b: FindJobResponse | PlainMessage | undefined): boolean { return proto3.util.equals(FindJobResponse, a, b); } } /** * Request to get unique values for a specific field * * @generated from message artworking.v1.GetDistinctFieldMatchesRequest */ export class GetDistinctFieldMatchesRequest extends Message { /** * Type of field to get distinct values for * * @generated from field: artworking.v1.JobFilterType filter_type = 1; */ filterType = JobFilterType.FILTER_TYPE_UNDEFINED; /** * Partial value to match against * * @generated from field: string partial_value = 2; */ partialValue = ""; /** * Maximum number of results to return * * @generated from field: int32 limit = 3; */ limit = 0; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.GetDistinctFieldMatchesRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "filter_type", kind: "enum", T: proto3.getEnumType(JobFilterType) }, { no: 2, name: "partial_value", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetDistinctFieldMatchesRequest { return new GetDistinctFieldMatchesRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetDistinctFieldMatchesRequest { return new GetDistinctFieldMatchesRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetDistinctFieldMatchesRequest { return new GetDistinctFieldMatchesRequest().fromJsonString(jsonString, options); } static equals(a: GetDistinctFieldMatchesRequest | PlainMessage | undefined, b: GetDistinctFieldMatchesRequest | PlainMessage | undefined): boolean { return proto3.util.equals(GetDistinctFieldMatchesRequest, a, b); } } /** * @generated from message artworking.v1.GetDistinctFieldMatchesResponse */ export class GetDistinctFieldMatchesResponse extends Message { /** * @generated from field: repeated string matches = 1; */ matches: string[] = []; /** * @generated from field: int32 count = 2; */ count = 0; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.GetDistinctFieldMatchesResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "matches", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, { no: 2, name: "count", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetDistinctFieldMatchesResponse { return new GetDistinctFieldMatchesResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetDistinctFieldMatchesResponse { return new GetDistinctFieldMatchesResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetDistinctFieldMatchesResponse { return new GetDistinctFieldMatchesResponse().fromJsonString(jsonString, options); } static equals(a: GetDistinctFieldMatchesResponse | PlainMessage | undefined, b: GetDistinctFieldMatchesResponse | PlainMessage | undefined): boolean { return proto3.util.equals(GetDistinctFieldMatchesResponse, a, b); } } /** * Request to get a job by its ID * * @generated from message artworking.v1.GetJobByIdRequest */ export class GetJobByIdRequest extends Message { /** * ID of the job to retrieve * * @generated from field: string id = 1; */ id = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.GetJobByIdRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetJobByIdRequest { return new GetJobByIdRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetJobByIdRequest { return new GetJobByIdRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetJobByIdRequest { return new GetJobByIdRequest().fromJsonString(jsonString, options); } static equals(a: GetJobByIdRequest | PlainMessage | undefined, b: GetJobByIdRequest | PlainMessage | undefined): boolean { return proto3.util.equals(GetJobByIdRequest, a, b); } } /** * @generated from message artworking.v1.GetJobByIdResponse */ export class GetJobByIdResponse extends Message { /** * @generated from field: artworking.v1.Job job = 1; */ job?: Job; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.GetJobByIdResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "job", kind: "message", T: Job }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetJobByIdResponse { return new GetJobByIdResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetJobByIdResponse { return new GetJobByIdResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetJobByIdResponse { return new GetJobByIdResponse().fromJsonString(jsonString, options); } static equals(a: GetJobByIdResponse | PlainMessage | undefined, b: GetJobByIdResponse | PlainMessage | undefined): boolean { return proto3.util.equals(GetJobByIdResponse, a, b); } } /** * Request to get a job by its URI * * @generated from message artworking.v1.GetJobByUriRequest */ export class GetJobByUriRequest extends Message { /** * URI of the job to retrieve * * @generated from field: string uri = 1; */ uri = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.GetJobByUriRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetJobByUriRequest { return new GetJobByUriRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetJobByUriRequest { return new GetJobByUriRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetJobByUriRequest { return new GetJobByUriRequest().fromJsonString(jsonString, options); } static equals(a: GetJobByUriRequest | PlainMessage | undefined, b: GetJobByUriRequest | PlainMessage | undefined): boolean { return proto3.util.equals(GetJobByUriRequest, a, b); } } /** * @generated from message artworking.v1.GetJobByUriResponse */ export class GetJobByUriResponse extends Message { /** * @generated from field: artworking.v1.Job job = 1; */ job?: Job; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.GetJobByUriResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "job", kind: "message", T: Job }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetJobByUriResponse { return new GetJobByUriResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetJobByUriResponse { return new GetJobByUriResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetJobByUriResponse { return new GetJobByUriResponse().fromJsonString(jsonString, options); } static equals(a: GetJobByUriResponse | PlainMessage | undefined, b: GetJobByUriResponse | PlainMessage | undefined): boolean { return proto3.util.equals(GetJobByUriResponse, a, b); } } /** * Request to get a job by its custom unique identifier * * @generated from message artworking.v1.GetJobByCustomUIDRequest */ export class GetJobByCustomUIDRequest extends Message { /** * Custom unique identifier of the job * * @generated from field: string custom_uid = 1; */ customUid = ""; /** * API key for authentication * * @generated from field: string api_key = 2; */ apiKey = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.GetJobByCustomUIDRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "custom_uid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "api_key", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetJobByCustomUIDRequest { return new GetJobByCustomUIDRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetJobByCustomUIDRequest { return new GetJobByCustomUIDRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetJobByCustomUIDRequest { return new GetJobByCustomUIDRequest().fromJsonString(jsonString, options); } static equals(a: GetJobByCustomUIDRequest | PlainMessage | undefined, b: GetJobByCustomUIDRequest | PlainMessage | undefined): boolean { return proto3.util.equals(GetJobByCustomUIDRequest, a, b); } } /** * @generated from message artworking.v1.GetJobByCustomUIDResponse */ export class GetJobByCustomUIDResponse extends Message { /** * @generated from field: artworking.v1.Job job = 1; */ job?: Job; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.GetJobByCustomUIDResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "job", kind: "message", T: Job }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetJobByCustomUIDResponse { return new GetJobByCustomUIDResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetJobByCustomUIDResponse { return new GetJobByCustomUIDResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetJobByCustomUIDResponse { return new GetJobByCustomUIDResponse().fromJsonString(jsonString, options); } static equals(a: GetJobByCustomUIDResponse | PlainMessage | undefined, b: GetJobByCustomUIDResponse | PlainMessage | undefined): boolean { return proto3.util.equals(GetJobByCustomUIDResponse, a, b); } } /** * Request to get multiple jobs by their IDs * * @generated from message artworking.v1.GetJobByIdsRequest */ export class GetJobByIdsRequest extends Message { /** * List of job IDs to retrieve * * @generated from field: repeated string ids = 1; */ ids: string[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.GetJobByIdsRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetJobByIdsRequest { return new GetJobByIdsRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetJobByIdsRequest { return new GetJobByIdsRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetJobByIdsRequest { return new GetJobByIdsRequest().fromJsonString(jsonString, options); } static equals(a: GetJobByIdsRequest | PlainMessage | undefined, b: GetJobByIdsRequest | PlainMessage | undefined): boolean { return proto3.util.equals(GetJobByIdsRequest, a, b); } } /** * @generated from message artworking.v1.GetJobByIdsResponse */ export class GetJobByIdsResponse extends Message { /** * @generated from field: repeated artworking.v1.Job jobs = 1; */ jobs: Job[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.GetJobByIdsResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "jobs", kind: "message", T: Job, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetJobByIdsResponse { return new GetJobByIdsResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetJobByIdsResponse { return new GetJobByIdsResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetJobByIdsResponse { return new GetJobByIdsResponse().fromJsonString(jsonString, options); } static equals(a: GetJobByIdsResponse | PlainMessage | undefined, b: GetJobByIdsResponse | PlainMessage | undefined): boolean { return proto3.util.equals(GetJobByIdsResponse, a, b); } } /** * @generated from message artworking.v1.GetJobRejectionReasonListRequest */ export class GetJobRejectionReasonListRequest extends Message { constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.GetJobRejectionReasonListRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetJobRejectionReasonListRequest { return new GetJobRejectionReasonListRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetJobRejectionReasonListRequest { return new GetJobRejectionReasonListRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetJobRejectionReasonListRequest { return new GetJobRejectionReasonListRequest().fromJsonString(jsonString, options); } static equals(a: GetJobRejectionReasonListRequest | PlainMessage | undefined, b: GetJobRejectionReasonListRequest | PlainMessage | undefined): boolean { return proto3.util.equals(GetJobRejectionReasonListRequest, a, b); } } /** * @generated from message artworking.v1.GetJobRejectionReasonListResponse */ export class GetJobRejectionReasonListResponse extends Message { /** * @generated from field: repeated artworking.v1.ArtworkRejectionReason data = 1; */ data: ArtworkRejectionReason[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.GetJobRejectionReasonListResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "data", kind: "message", T: ArtworkRejectionReason, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetJobRejectionReasonListResponse { return new GetJobRejectionReasonListResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetJobRejectionReasonListResponse { return new GetJobRejectionReasonListResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetJobRejectionReasonListResponse { return new GetJobRejectionReasonListResponse().fromJsonString(jsonString, options); } static equals(a: GetJobRejectionReasonListResponse | PlainMessage | undefined, b: GetJobRejectionReasonListResponse | PlainMessage | undefined): boolean { return proto3.util.equals(GetJobRejectionReasonListResponse, a, b); } } /** * Request to perform one or more actions on a job. Each action (JobActionItem) can be either: 1. A simple job action (e.g., request artwork, submit proof, complete job) 2. A batch file update (JOB_ACTION_BATCHFILEUPDATE) that includes a list of FileActions to perform on specific files. When using JOB_ACTION_BATCHFILEUPDATE, each FileAction specifies the file ID, action type, and optional metadata like messages or rejection reasons. * * @generated from message artworking.v1.SubmitJobActionRequest */ export class SubmitJobActionRequest extends Message { /** * ID of the artwork to act upon * * @generated from field: string artwork_id = 1; */ artworkId = ""; /** * List of actions to perform * * @generated from field: repeated artworking.v1.SubmitJobActionRequest.JobActionItem actions = 2; */ actions: SubmitJobActionRequest_JobActionItem[] = []; /** * Whether to perform a dry run without making changes * * @generated from field: bool is_dry_run = 3; */ isDryRun = false; /** * Optional note about the action * * @generated from field: string note = 5; */ note = ""; /** * API key for authentication * * @generated from field: string api_key = 6; */ apiKey = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.SubmitJobActionRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "artwork_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "actions", kind: "message", T: SubmitJobActionRequest_JobActionItem, repeated: true }, { no: 3, name: "is_dry_run", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 5, name: "note", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 6, name: "api_key", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): SubmitJobActionRequest { return new SubmitJobActionRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): SubmitJobActionRequest { return new SubmitJobActionRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): SubmitJobActionRequest { return new SubmitJobActionRequest().fromJsonString(jsonString, options); } static equals(a: SubmitJobActionRequest | PlainMessage | undefined, b: SubmitJobActionRequest | PlainMessage | undefined): boolean { return proto3.util.equals(SubmitJobActionRequest, a, b); } } /** * Action to perform on a specific file within a job. When submitting a new file, use FILE_ACTION_SUBMIT and set the ID to the next available number (e.g., if there are 2 existing files, the new file should have ID 3). For existing files, specify the file's current ID and the desired action type (e.g., approve, reject, request revision). * * @generated from message artworking.v1.SubmitJobActionRequest.FileAction */ export class SubmitJobActionRequest_FileAction extends Message { /** * ID of the file to act upon * * @generated from field: int32 id = 1; */ id = 0; /** * ID of the media item * * @generated from field: int64 media_item_id = 2; */ mediaItemId = protoInt64.zero; /** * Type of action to perform * * @generated from field: artworking.v1.FileActionType action = 3; */ action = FileActionType.FILE_ACTION_UNDEFINED; /** * Optional message explaining the action * * @generated from field: string message = 4; */ message = ""; /** * Actions that should be disabled after this action * * @generated from field: repeated artworking.v1.FileActionType disabled_file_actions = 5; */ disabledFileActions: FileActionType[] = []; /** * Reasons for rejection if applicable * * @generated from field: artworking.v1.RejectionReasons rejection_reasons = 6; */ rejectionReasons?: RejectionReasons; /** * Image task action details if applicable * * @generated from field: artworking.v1.ImageTaskAction image_task_action = 9; */ imageTaskAction?: ImageTaskAction; /** * PDF split action details if applicable * * @generated from field: artworking.v1.PdfSplitAction pdf_split_action = 10; */ pdfSplitAction?: PdfSplitAction; /** * Typed settings based on action type * * @generated from oneof artworking.v1.SubmitJobActionRequest.FileAction.action_settings */ actionSettings: { /** * @generated from field: artworking.v1.FileApprovalSettings file_approval_settings = 11; */ value: FileApprovalSettings; case: "fileApprovalSettings"; } | { /** * @generated from field: artworking.v1.FileSubmitSettings file_submit_settings = 12; */ value: FileSubmitSettings; case: "fileSubmitSettings"; } | { case: undefined; value?: undefined } = { case: undefined }; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.SubmitJobActionRequest.FileAction"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "id", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, { no: 2, name: "media_item_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, { no: 3, name: "action", kind: "enum", T: proto3.getEnumType(FileActionType) }, { no: 4, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 5, name: "disabled_file_actions", kind: "enum", T: proto3.getEnumType(FileActionType), repeated: true }, { no: 6, name: "rejection_reasons", kind: "message", T: RejectionReasons }, { no: 9, name: "image_task_action", kind: "message", T: ImageTaskAction }, { no: 10, name: "pdf_split_action", kind: "message", T: PdfSplitAction }, { no: 11, name: "file_approval_settings", kind: "message", T: FileApprovalSettings, oneof: "action_settings" }, { no: 12, name: "file_submit_settings", kind: "message", T: FileSubmitSettings, oneof: "action_settings" }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): SubmitJobActionRequest_FileAction { return new SubmitJobActionRequest_FileAction().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): SubmitJobActionRequest_FileAction { return new SubmitJobActionRequest_FileAction().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): SubmitJobActionRequest_FileAction { return new SubmitJobActionRequest_FileAction().fromJsonString(jsonString, options); } static equals(a: SubmitJobActionRequest_FileAction | PlainMessage | undefined, b: SubmitJobActionRequest_FileAction | PlainMessage | undefined): boolean { return proto3.util.equals(SubmitJobActionRequest_FileAction, a, b); } } /** * Action to perform on the job. Can include: - A list of file actions (when using JOB_ACTION_BATCHFILEUPDATE) - A specific job action (e.g., request artwork, submit proof) - Optional metadata like messages, disabled actions, and workflow configuration * * @generated from message artworking.v1.SubmitJobActionRequest.JobActionItem */ export class SubmitJobActionRequest_JobActionItem extends Message { /** * List of file actions to perform * * @generated from field: repeated artworking.v1.SubmitJobActionRequest.FileAction file_actions = 1; */ fileActions: SubmitJobActionRequest_FileAction[] = []; /** * Type of job action to perform * * @generated from field: artworking.v1.JobAction action = 2; */ action = JobAction.UNKNOWN; /** * IDs of media items to group together * * @generated from field: repeated int64 group_media_ids = 3; */ groupMediaIds: bigint[] = []; /** * Workflow to follow * * @generated from field: string flow = 4; */ flow = ""; /** * Job actions that should be disabled after this action * * @generated from field: repeated artworking.v1.JobAction disabled_job_actions = 5; */ disabledJobActions: JobAction[] = []; /** * Optional message explaining the action * * @generated from field: string message = 6; */ message = ""; /** * Customer's signature if required * * @generated from field: string customer_signature = 7; */ customerSignature = ""; /** * Additional information for the action * * @generated from field: map additional_info = 8; */ additionalInfo: { [key: string]: string } = {}; /** * Typed settings based on action type * * @generated from oneof artworking.v1.SubmitJobActionRequest.JobActionItem.action_settings */ actionSettings: { /** * @generated from field: artworking.v1.ProofSubmitSettings proof_submit_settings = 10; */ value: ProofSubmitSettings; case: "proofSubmitSettings"; } | { /** * @generated from field: artworking.v1.CompleteJobSettings complete_job_settings = 11; */ value: CompleteJobSettings; case: "completeJobSettings"; } | { /** * @generated from field: artworking.v1.ArtworkUploadSettings artwork_upload_settings = 12; */ value: ArtworkUploadSettings; case: "artworkUploadSettings"; } | { case: undefined; value?: undefined } = { case: undefined }; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.SubmitJobActionRequest.JobActionItem"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "file_actions", kind: "message", T: SubmitJobActionRequest_FileAction, repeated: true }, { no: 2, name: "action", kind: "enum", T: proto3.getEnumType(JobAction) }, { no: 3, name: "group_media_ids", kind: "scalar", T: 3 /* ScalarType.INT64 */, repeated: true }, { no: 4, name: "flow", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 5, name: "disabled_job_actions", kind: "enum", T: proto3.getEnumType(JobAction), repeated: true }, { no: 6, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 7, name: "customer_signature", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 8, name: "additional_info", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} }, { no: 10, name: "proof_submit_settings", kind: "message", T: ProofSubmitSettings, oneof: "action_settings" }, { no: 11, name: "complete_job_settings", kind: "message", T: CompleteJobSettings, oneof: "action_settings" }, { no: 12, name: "artwork_upload_settings", kind: "message", T: ArtworkUploadSettings, oneof: "action_settings" }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): SubmitJobActionRequest_JobActionItem { return new SubmitJobActionRequest_JobActionItem().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): SubmitJobActionRequest_JobActionItem { return new SubmitJobActionRequest_JobActionItem().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): SubmitJobActionRequest_JobActionItem { return new SubmitJobActionRequest_JobActionItem().fromJsonString(jsonString, options); } static equals(a: SubmitJobActionRequest_JobActionItem | PlainMessage | undefined, b: SubmitJobActionRequest_JobActionItem | PlainMessage | undefined): boolean { return proto3.util.equals(SubmitJobActionRequest_JobActionItem, a, b); } } /** * @generated from message artworking.v1.SubmitJobActionResponse */ export class SubmitJobActionResponse extends Message { /** * @generated from field: artworking.v1.Job job = 1; */ job?: Job; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.SubmitJobActionResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "job", kind: "message", T: Job }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): SubmitJobActionResponse { return new SubmitJobActionResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): SubmitJobActionResponse { return new SubmitJobActionResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): SubmitJobActionResponse { return new SubmitJobActionResponse().fromJsonString(jsonString, options); } static equals(a: SubmitJobActionResponse | PlainMessage | undefined, b: SubmitJobActionResponse | PlainMessage | undefined): boolean { return proto3.util.equals(SubmitJobActionResponse, a, b); } } /** * Request to submit an action for multiple jobs * * @generated from message artworking.v1.SubmitBulkJobActionRequest */ export class SubmitBulkJobActionRequest extends Message { /** * List of job IDs to act upon * * @generated from field: repeated string job_ids = 1; */ jobIds: string[] = []; /** * Action to perform * * @generated from field: artworking.v1.SubmitBulkJobActionRequest.JobActionItem action = 3; */ action?: SubmitBulkJobActionRequest_JobActionItem; /** * Whether to perform a dry run without making changes * * @generated from field: bool is_dry_run = 4; */ isDryRun = false; /** * Optional note about the action * * @generated from field: string note = 5; */ note = ""; /** * API key for authentication * * @generated from field: string api_key = 6; */ apiKey = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.SubmitBulkJobActionRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "job_ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, { no: 3, name: "action", kind: "message", T: SubmitBulkJobActionRequest_JobActionItem }, { no: 4, name: "is_dry_run", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 5, name: "note", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 6, name: "api_key", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): SubmitBulkJobActionRequest { return new SubmitBulkJobActionRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): SubmitBulkJobActionRequest { return new SubmitBulkJobActionRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): SubmitBulkJobActionRequest { return new SubmitBulkJobActionRequest().fromJsonString(jsonString, options); } static equals(a: SubmitBulkJobActionRequest | PlainMessage | undefined, b: SubmitBulkJobActionRequest | PlainMessage | undefined): boolean { return proto3.util.equals(SubmitBulkJobActionRequest, a, b); } } /** * Action to perform on the jobs * * @generated from message artworking.v1.SubmitBulkJobActionRequest.JobActionItem */ export class SubmitBulkJobActionRequest_JobActionItem extends Message { /** * Type of job action to perform * * @generated from field: artworking.v1.JobAction action = 1; */ action = JobAction.UNKNOWN; /** * IDs of media items to group together * * @generated from field: repeated int64 group_media_ids = 2; */ groupMediaIds: bigint[] = []; /** * Workflow to follow * * @generated from field: string flow = 3; */ flow = ""; /** * Job actions that should be disabled after this action * * @generated from field: repeated artworking.v1.JobAction disabled_job_actions = 4; */ disabledJobActions: JobAction[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.SubmitBulkJobActionRequest.JobActionItem"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "action", kind: "enum", T: proto3.getEnumType(JobAction) }, { no: 2, name: "group_media_ids", kind: "scalar", T: 3 /* ScalarType.INT64 */, repeated: true }, { no: 3, name: "flow", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 4, name: "disabled_job_actions", kind: "enum", T: proto3.getEnumType(JobAction), repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): SubmitBulkJobActionRequest_JobActionItem { return new SubmitBulkJobActionRequest_JobActionItem().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): SubmitBulkJobActionRequest_JobActionItem { return new SubmitBulkJobActionRequest_JobActionItem().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): SubmitBulkJobActionRequest_JobActionItem { return new SubmitBulkJobActionRequest_JobActionItem().fromJsonString(jsonString, options); } static equals(a: SubmitBulkJobActionRequest_JobActionItem | PlainMessage | undefined, b: SubmitBulkJobActionRequest_JobActionItem | PlainMessage | undefined): boolean { return proto3.util.equals(SubmitBulkJobActionRequest_JobActionItem, a, b); } } /** * @generated from message artworking.v1.SubmitBulkJobActionResponse */ export class SubmitBulkJobActionResponse extends Message { /** * @generated from field: artworking.v1.SubmitBulkJobActionResponse.BulkActionResults results = 1; */ results?: SubmitBulkJobActionResponse_BulkActionResults; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.SubmitBulkJobActionResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "results", kind: "message", T: SubmitBulkJobActionResponse_BulkActionResults }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): SubmitBulkJobActionResponse { return new SubmitBulkJobActionResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): SubmitBulkJobActionResponse { return new SubmitBulkJobActionResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): SubmitBulkJobActionResponse { return new SubmitBulkJobActionResponse().fromJsonString(jsonString, options); } static equals(a: SubmitBulkJobActionResponse | PlainMessage | undefined, b: SubmitBulkJobActionResponse | PlainMessage | undefined): boolean { return proto3.util.equals(SubmitBulkJobActionResponse, a, b); } } /** * @generated from message artworking.v1.SubmitBulkJobActionResponse.BulkActionResultFailure */ export class SubmitBulkJobActionResponse_BulkActionResultFailure extends Message { /** * @generated from field: string job_id = 1; */ jobId = ""; /** * @generated from field: string error = 2; */ error = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.SubmitBulkJobActionResponse.BulkActionResultFailure"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "job_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): SubmitBulkJobActionResponse_BulkActionResultFailure { return new SubmitBulkJobActionResponse_BulkActionResultFailure().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): SubmitBulkJobActionResponse_BulkActionResultFailure { return new SubmitBulkJobActionResponse_BulkActionResultFailure().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): SubmitBulkJobActionResponse_BulkActionResultFailure { return new SubmitBulkJobActionResponse_BulkActionResultFailure().fromJsonString(jsonString, options); } static equals(a: SubmitBulkJobActionResponse_BulkActionResultFailure | PlainMessage | undefined, b: SubmitBulkJobActionResponse_BulkActionResultFailure | PlainMessage | undefined): boolean { return proto3.util.equals(SubmitBulkJobActionResponse_BulkActionResultFailure, a, b); } } /** * @generated from message artworking.v1.SubmitBulkJobActionResponse.BulkActionResults */ export class SubmitBulkJobActionResponse_BulkActionResults extends Message { /** * @generated from field: repeated artworking.v1.SubmitBulkJobActionResponse.BulkActionResultFailure failures = 1; */ failures: SubmitBulkJobActionResponse_BulkActionResultFailure[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.SubmitBulkJobActionResponse.BulkActionResults"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "failures", kind: "message", T: SubmitBulkJobActionResponse_BulkActionResultFailure, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): SubmitBulkJobActionResponse_BulkActionResults { return new SubmitBulkJobActionResponse_BulkActionResults().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): SubmitBulkJobActionResponse_BulkActionResults { return new SubmitBulkJobActionResponse_BulkActionResults().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): SubmitBulkJobActionResponse_BulkActionResults { return new SubmitBulkJobActionResponse_BulkActionResults().fromJsonString(jsonString, options); } static equals(a: SubmitBulkJobActionResponse_BulkActionResults | PlainMessage | undefined, b: SubmitBulkJobActionResponse_BulkActionResults | PlainMessage | undefined): boolean { return proto3.util.equals(SubmitBulkJobActionResponse_BulkActionResults, a, b); } } /** * @generated from message artworking.v1.JobStats */ export class JobStats extends Message { /** * @generated from field: int32 awaiting_artwork = 1; */ awaitingArtwork = 0; /** * @generated from field: int32 awaiting_approval = 2; */ awaitingApproval = 0; /** * @generated from field: int32 rejected = 3; */ rejected = 0; /** * @generated from field: int32 ready_for_production = 4; */ readyForProduction = 0; /** * @generated from field: int32 complete = 5; */ complete = 0; /** * @generated from field: int32 proof_awaiting_approval = 6; */ proofAwaitingApproval = 0; /** * @generated from field: common.v1.StatsTotals totals = 7; */ totals?: StatsTotals; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.JobStats"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "awaiting_artwork", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, { no: 2, name: "awaiting_approval", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, { no: 3, name: "rejected", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, { no: 4, name: "ready_for_production", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, { no: 5, name: "complete", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, { no: 6, name: "proof_awaiting_approval", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, { no: 7, name: "totals", kind: "message", T: StatsTotals }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): JobStats { return new JobStats().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): JobStats { return new JobStats().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): JobStats { return new JobStats().fromJsonString(jsonString, options); } static equals(a: JobStats | PlainMessage | undefined, b: JobStats | PlainMessage | undefined): boolean { return proto3.util.equals(JobStats, a, b); } } /** * @generated from message artworking.v1.GetJobStatsRequest */ export class GetJobStatsRequest extends Message { constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.GetJobStatsRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetJobStatsRequest { return new GetJobStatsRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetJobStatsRequest { return new GetJobStatsRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetJobStatsRequest { return new GetJobStatsRequest().fromJsonString(jsonString, options); } static equals(a: GetJobStatsRequest | PlainMessage | undefined, b: GetJobStatsRequest | PlainMessage | undefined): boolean { return proto3.util.equals(GetJobStatsRequest, a, b); } } /** * @generated from message artworking.v1.GetJobStatsResponse */ export class GetJobStatsResponse extends Message { /** * @generated from field: artworking.v1.JobStats stats = 1; */ stats?: JobStats; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.GetJobStatsResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "stats", kind: "message", T: JobStats }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetJobStatsResponse { return new GetJobStatsResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetJobStatsResponse { return new GetJobStatsResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetJobStatsResponse { return new GetJobStatsResponse().fromJsonString(jsonString, options); } static equals(a: GetJobStatsResponse | PlainMessage | undefined, b: GetJobStatsResponse | PlainMessage | undefined): boolean { return proto3.util.equals(GetJobStatsResponse, a, b); } } /** * @generated from message artworking.v1.JobFilterSummary */ export class JobFilterSummary extends Message { /** * @generated from field: int32 all_jobs = 1; */ allJobs = 0; /** * @generated from field: int32 action_required = 2; */ actionRequired = 0; /** * @generated from field: int32 with_customer = 3; */ withCustomer = 0; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.JobFilterSummary"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "all_jobs", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, { no: 2, name: "action_required", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, { no: 3, name: "with_customer", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): JobFilterSummary { return new JobFilterSummary().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): JobFilterSummary { return new JobFilterSummary().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): JobFilterSummary { return new JobFilterSummary().fromJsonString(jsonString, options); } static equals(a: JobFilterSummary | PlainMessage | undefined, b: JobFilterSummary | PlainMessage | undefined): boolean { return proto3.util.equals(JobFilterSummary, a, b); } } /** * @generated from message artworking.v1.GetJobFilterSummaryRequest */ export class GetJobFilterSummaryRequest extends Message { constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.GetJobFilterSummaryRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetJobFilterSummaryRequest { return new GetJobFilterSummaryRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetJobFilterSummaryRequest { return new GetJobFilterSummaryRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetJobFilterSummaryRequest { return new GetJobFilterSummaryRequest().fromJsonString(jsonString, options); } static equals(a: GetJobFilterSummaryRequest | PlainMessage | undefined, b: GetJobFilterSummaryRequest | PlainMessage | undefined): boolean { return proto3.util.equals(GetJobFilterSummaryRequest, a, b); } } /** * @generated from message artworking.v1.GetJobFilterSummaryResponse */ export class GetJobFilterSummaryResponse extends Message { /** * @generated from field: artworking.v1.JobFilterSummary counts = 1; */ counts?: JobFilterSummary; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.GetJobFilterSummaryResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "counts", kind: "message", T: JobFilterSummary }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetJobFilterSummaryResponse { return new GetJobFilterSummaryResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetJobFilterSummaryResponse { return new GetJobFilterSummaryResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetJobFilterSummaryResponse { return new GetJobFilterSummaryResponse().fromJsonString(jsonString, options); } static equals(a: GetJobFilterSummaryResponse | PlainMessage | undefined, b: GetJobFilterSummaryResponse | PlainMessage | undefined): boolean { return proto3.util.equals(GetJobFilterSummaryResponse, a, b); } } /** * Request to mark a job as complete * * @generated from message artworking.v1.MarkAsCompleteRequest */ export class MarkAsCompleteRequest extends Message { /** * ID of the artwork to mark as complete * * @generated from field: string artwork_id = 1; */ artworkId = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.MarkAsCompleteRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "artwork_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): MarkAsCompleteRequest { return new MarkAsCompleteRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): MarkAsCompleteRequest { return new MarkAsCompleteRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): MarkAsCompleteRequest { return new MarkAsCompleteRequest().fromJsonString(jsonString, options); } static equals(a: MarkAsCompleteRequest | PlainMessage | undefined, b: MarkAsCompleteRequest | PlainMessage | undefined): boolean { return proto3.util.equals(MarkAsCompleteRequest, a, b); } } /** * @generated from message artworking.v1.MarkAsCompleteResponse */ export class MarkAsCompleteResponse extends Message { /** * @generated from field: artworking.v1.Job job = 1; */ job?: Job; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.MarkAsCompleteResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "job", kind: "message", T: Job }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): MarkAsCompleteResponse { return new MarkAsCompleteResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): MarkAsCompleteResponse { return new MarkAsCompleteResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): MarkAsCompleteResponse { return new MarkAsCompleteResponse().fromJsonString(jsonString, options); } static equals(a: MarkAsCompleteResponse | PlainMessage | undefined, b: MarkAsCompleteResponse | PlainMessage | undefined): boolean { return proto3.util.equals(MarkAsCompleteResponse, a, b); } } /** * Request to add an internal note to a job * * @generated from message artworking.v1.AddInternalJobNoteRequest */ export class AddInternalJobNoteRequest extends Message { /** * ID of the job to add note to * * @generated from field: string id = 1; */ id = ""; /** * Note content to add * * @generated from field: string note = 2; */ note = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.AddInternalJobNoteRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "note", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): AddInternalJobNoteRequest { return new AddInternalJobNoteRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): AddInternalJobNoteRequest { return new AddInternalJobNoteRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): AddInternalJobNoteRequest { return new AddInternalJobNoteRequest().fromJsonString(jsonString, options); } static equals(a: AddInternalJobNoteRequest | PlainMessage | undefined, b: AddInternalJobNoteRequest | PlainMessage | undefined): boolean { return proto3.util.equals(AddInternalJobNoteRequest, a, b); } } /** * @generated from message artworking.v1.AddInternalJobNoteResponse */ export class AddInternalJobNoteResponse extends Message { /** * @generated from field: artworking.v1.Job job = 1; */ job?: Job; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.AddInternalJobNoteResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "job", kind: "message", T: Job }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): AddInternalJobNoteResponse { return new AddInternalJobNoteResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): AddInternalJobNoteResponse { return new AddInternalJobNoteResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): AddInternalJobNoteResponse { return new AddInternalJobNoteResponse().fromJsonString(jsonString, options); } static equals(a: AddInternalJobNoteResponse | PlainMessage | undefined, b: AddInternalJobNoteResponse | PlainMessage | undefined): boolean { return proto3.util.equals(AddInternalJobNoteResponse, a, b); } } /** * Request to change the contact associated with a job * * @generated from message artworking.v1.ChangeJobsContactRequest */ export class ChangeJobsContactRequest extends Message { /** * ID of the job to update * * @generated from field: string job_id = 1; */ jobId = ""; /** * ID of the new contact * * @generated from field: int64 contact_id = 2; */ contactId = protoInt64.zero; /** * Whether to resend the latest notification to the new contact * * @generated from field: bool resend_latest_notification = 3; */ resendLatestNotification = false; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.ChangeJobsContactRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "job_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "contact_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, { no: 3, name: "resend_latest_notification", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): ChangeJobsContactRequest { return new ChangeJobsContactRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): ChangeJobsContactRequest { return new ChangeJobsContactRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): ChangeJobsContactRequest { return new ChangeJobsContactRequest().fromJsonString(jsonString, options); } static equals(a: ChangeJobsContactRequest | PlainMessage | undefined, b: ChangeJobsContactRequest | PlainMessage | undefined): boolean { return proto3.util.equals(ChangeJobsContactRequest, a, b); } } /** * @generated from message artworking.v1.ChangeJobsContactResponse */ export class ChangeJobsContactResponse extends Message { /** * @generated from field: artworking.v1.Job job = 1; */ job?: Job; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.ChangeJobsContactResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "job", kind: "message", T: Job }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): ChangeJobsContactResponse { return new ChangeJobsContactResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): ChangeJobsContactResponse { return new ChangeJobsContactResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): ChangeJobsContactResponse { return new ChangeJobsContactResponse().fromJsonString(jsonString, options); } static equals(a: ChangeJobsContactResponse | PlainMessage | undefined, b: ChangeJobsContactResponse | PlainMessage | undefined): boolean { return proto3.util.equals(ChangeJobsContactResponse, a, b); } } /** * Request to change the contact for all jobs of a specific contact * * @generated from message artworking.v1.ChangeAllContactsJobsRequest */ export class ChangeAllContactsJobsRequest extends Message { /** * ID of the current contact * * @generated from field: int64 current_contact_id = 1; */ currentContactId = protoInt64.zero; /** * ID of the new contact * * @generated from field: int64 new_contact_id = 2; */ newContactId = protoInt64.zero; /** * Whether to resend the latest notification to the new contact * * @generated from field: bool resend_latest_notification = 3; */ resendLatestNotification = false; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.ChangeAllContactsJobsRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "current_contact_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, { no: 2, name: "new_contact_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, { no: 3, name: "resend_latest_notification", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): ChangeAllContactsJobsRequest { return new ChangeAllContactsJobsRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): ChangeAllContactsJobsRequest { return new ChangeAllContactsJobsRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): ChangeAllContactsJobsRequest { return new ChangeAllContactsJobsRequest().fromJsonString(jsonString, options); } static equals(a: ChangeAllContactsJobsRequest | PlainMessage | undefined, b: ChangeAllContactsJobsRequest | PlainMessage | undefined): boolean { return proto3.util.equals(ChangeAllContactsJobsRequest, a, b); } } /** * @generated from message artworking.v1.ChangeAllContactsJobsResponse */ export class ChangeAllContactsJobsResponse extends Message { constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.ChangeAllContactsJobsResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ ]); static fromBinary(bytes: Uint8Array, options?: Partial): ChangeAllContactsJobsResponse { return new ChangeAllContactsJobsResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): ChangeAllContactsJobsResponse { return new ChangeAllContactsJobsResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): ChangeAllContactsJobsResponse { return new ChangeAllContactsJobsResponse().fromJsonString(jsonString, options); } static equals(a: ChangeAllContactsJobsResponse | PlainMessage | undefined, b: ChangeAllContactsJobsResponse | PlainMessage | undefined): boolean { return proto3.util.equals(ChangeAllContactsJobsResponse, a, b); } } /** * Request to get the current state of a job * * @generated from message artworking.v1.GetJobStateRequest */ export class GetJobStateRequest extends Message { /** * ID of the job to get state for * * @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 = "artworking.v1.GetJobStateRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "job_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetJobStateRequest { return new GetJobStateRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetJobStateRequest { return new GetJobStateRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetJobStateRequest { return new GetJobStateRequest().fromJsonString(jsonString, options); } static equals(a: GetJobStateRequest | PlainMessage | undefined, b: GetJobStateRequest | PlainMessage | undefined): boolean { return proto3.util.equals(GetJobStateRequest, a, b); } } /** * @generated from message artworking.v1.GetJobStateResponse */ export class GetJobStateResponse extends Message { /** * @generated from field: artworking.v1.ArtworkState job_state = 1; */ jobState = ArtworkState.UNDEFINED; /** * @generated from field: bool is_with_customer = 2; */ isWithCustomer = false; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.GetJobStateResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "job_state", kind: "enum", T: proto3.getEnumType(ArtworkState) }, { no: 2, name: "is_with_customer", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetJobStateResponse { return new GetJobStateResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetJobStateResponse { return new GetJobStateResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetJobStateResponse { return new GetJobStateResponse().fromJsonString(jsonString, options); } static equals(a: GetJobStateResponse | PlainMessage | undefined, b: GetJobStateResponse | PlainMessage | undefined): boolean { return proto3.util.equals(GetJobStateResponse, a, b); } } /** * Request to get all media items associated with a job * * @generated from message artworking.v1.GetAllMediaItemsForJobRequest */ export class GetAllMediaItemsForJobRequest extends Message { /** * ID of the job to get media items for * * @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 = "artworking.v1.GetAllMediaItemsForJobRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "job_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetAllMediaItemsForJobRequest { return new GetAllMediaItemsForJobRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetAllMediaItemsForJobRequest { return new GetAllMediaItemsForJobRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetAllMediaItemsForJobRequest { return new GetAllMediaItemsForJobRequest().fromJsonString(jsonString, options); } static equals(a: GetAllMediaItemsForJobRequest | PlainMessage | undefined, b: GetAllMediaItemsForJobRequest | PlainMessage | undefined): boolean { return proto3.util.equals(GetAllMediaItemsForJobRequest, a, b); } } /** * @generated from message artworking.v1.GetAllMediaItemsForJobResponse */ export class GetAllMediaItemsForJobResponse extends Message { /** * @generated from field: repeated int64 media_item_ids = 1; */ mediaItemIds: bigint[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.GetAllMediaItemsForJobResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "media_item_ids", kind: "scalar", T: 3 /* ScalarType.INT64 */, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetAllMediaItemsForJobResponse { return new GetAllMediaItemsForJobResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetAllMediaItemsForJobResponse { return new GetAllMediaItemsForJobResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetAllMediaItemsForJobResponse { return new GetAllMediaItemsForJobResponse().fromJsonString(jsonString, options); } static equals(a: GetAllMediaItemsForJobResponse | PlainMessage | undefined, b: GetAllMediaItemsForJobResponse | PlainMessage | undefined): boolean { return proto3.util.equals(GetAllMediaItemsForJobResponse, a, b); } } /** * Request to set the measurement unit for a job * * @generated from message artworking.v1.SetMeasurementUnitRequest */ export class SetMeasurementUnitRequest extends Message { /** * ID of the job to update * * @generated from field: string job_id = 1; */ jobId = ""; /** * New measurement unit to set * * @generated from field: common.v1.MeasurementUnit measurement_unit = 2; */ measurementUnit = MeasurementUnit.UNKNOWN; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.SetMeasurementUnitRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "job_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "measurement_unit", kind: "enum", T: proto3.getEnumType(MeasurementUnit) }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): SetMeasurementUnitRequest { return new SetMeasurementUnitRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): SetMeasurementUnitRequest { return new SetMeasurementUnitRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): SetMeasurementUnitRequest { return new SetMeasurementUnitRequest().fromJsonString(jsonString, options); } static equals(a: SetMeasurementUnitRequest | PlainMessage | undefined, b: SetMeasurementUnitRequest | PlainMessage | undefined): boolean { return proto3.util.equals(SetMeasurementUnitRequest, a, b); } } /** * @generated from message artworking.v1.SetMeasurementUnitResponse */ export class SetMeasurementUnitResponse extends Message { /** * @generated from field: artworking.v1.Job job = 1; */ job?: Job; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.SetMeasurementUnitResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "job", kind: "message", T: Job }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): SetMeasurementUnitResponse { return new SetMeasurementUnitResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): SetMeasurementUnitResponse { return new SetMeasurementUnitResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): SetMeasurementUnitResponse { return new SetMeasurementUnitResponse().fromJsonString(jsonString, options); } static equals(a: SetMeasurementUnitResponse | PlainMessage | undefined, b: SetMeasurementUnitResponse | PlainMessage | undefined): boolean { return proto3.util.equals(SetMeasurementUnitResponse, a, b); } } /** * Request to get job count statistics for a customer * * @generated from message artworking.v1.CustomerJobCountRequest */ export class CustomerJobCountRequest extends Message { /** * ID of the contact to get statistics for * * @generated from field: int64 contact_id = 1; */ contactId = protoInt64.zero; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.CustomerJobCountRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "contact_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): CustomerJobCountRequest { return new CustomerJobCountRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): CustomerJobCountRequest { return new CustomerJobCountRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): CustomerJobCountRequest { return new CustomerJobCountRequest().fromJsonString(jsonString, options); } static equals(a: CustomerJobCountRequest | PlainMessage | undefined, b: CustomerJobCountRequest | PlainMessage | undefined): boolean { return proto3.util.equals(CustomerJobCountRequest, a, b); } } /** * @generated from message artworking.v1.CustomerJobCountResponse */ export class CustomerJobCountResponse extends Message { /** * @generated from field: int32 job_count = 1; */ jobCount = 0; /** * @generated from field: int32 files_count = 2; */ filesCount = 0; /** * @generated from field: int32 transfers_count = 3; */ transfersCount = 0; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.CustomerJobCountResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "job_count", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, { no: 2, name: "files_count", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, { no: 3, name: "transfers_count", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): CustomerJobCountResponse { return new CustomerJobCountResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): CustomerJobCountResponse { return new CustomerJobCountResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): CustomerJobCountResponse { return new CustomerJobCountResponse().fromJsonString(jsonString, options); } static equals(a: CustomerJobCountResponse | PlainMessage | undefined, b: CustomerJobCountResponse | PlainMessage | undefined): boolean { return proto3.util.equals(CustomerJobCountResponse, a, b); } } /** * Request to get job count statistics for a company * * @generated from message artworking.v1.CompanyJobCountRequest */ export class CompanyJobCountRequest extends Message { /** * ID of the company to get statistics for * * @generated from field: int64 company_id = 1; */ companyId = protoInt64.zero; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.CompanyJobCountRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "company_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): CompanyJobCountRequest { return new CompanyJobCountRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): CompanyJobCountRequest { return new CompanyJobCountRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): CompanyJobCountRequest { return new CompanyJobCountRequest().fromJsonString(jsonString, options); } static equals(a: CompanyJobCountRequest | PlainMessage | undefined, b: CompanyJobCountRequest | PlainMessage | undefined): boolean { return proto3.util.equals(CompanyJobCountRequest, a, b); } } /** * @generated from message artworking.v1.CompanyJobCountResponse */ export class CompanyJobCountResponse extends Message { /** * @generated from field: int32 job_count = 1; */ jobCount = 0; /** * @generated from field: int32 files_count = 2; */ filesCount = 0; /** * @generated from field: int32 transfers_count = 3; */ transfersCount = 0; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.CompanyJobCountResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "job_count", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, { no: 2, name: "files_count", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, { no: 3, name: "transfers_count", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): CompanyJobCountResponse { return new CompanyJobCountResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): CompanyJobCountResponse { return new CompanyJobCountResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): CompanyJobCountResponse { return new CompanyJobCountResponse().fromJsonString(jsonString, options); } static equals(a: CompanyJobCountResponse | PlainMessage | undefined, b: CompanyJobCountResponse | PlainMessage | undefined): boolean { return proto3.util.equals(CompanyJobCountResponse, a, b); } } /** * Request to get job count statistics by job type * * @generated from message artworking.v1.GetJobTypeCountsRequest */ export class GetJobTypeCountsRequest extends Message { /** * Optional: filter by specific contact ID * * @generated from field: optional int64 contact_id = 1; */ contactId?: bigint; /** * Optional: filter by specific company ID * * @generated from field: optional int64 company_id = 2; */ companyId?: bigint; /** * Optional: filter by specific supplier ID * * @generated from field: optional int64 supplier_id = 3; */ supplierId?: bigint; /** * Optional: filter by job states * * @generated from field: repeated artworking.v1.ArtworkState states = 4; */ states: ArtworkState[] = []; /** * Optional: filter jobs created from this date * * @generated from field: google.protobuf.Timestamp date_from = 5; */ dateFrom?: Timestamp; /** * Optional: filter jobs created until this date * * @generated from field: google.protobuf.Timestamp date_to = 6; */ dateTo?: Timestamp; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.GetJobTypeCountsRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "contact_id", kind: "scalar", T: 3 /* ScalarType.INT64 */, opt: true }, { no: 2, name: "company_id", kind: "scalar", T: 3 /* ScalarType.INT64 */, opt: true }, { no: 3, name: "supplier_id", kind: "scalar", T: 3 /* ScalarType.INT64 */, opt: true }, { no: 4, name: "states", kind: "enum", T: proto3.getEnumType(ArtworkState), repeated: true }, { no: 5, name: "date_from", kind: "message", T: Timestamp }, { no: 6, name: "date_to", kind: "message", T: Timestamp }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetJobTypeCountsRequest { return new GetJobTypeCountsRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetJobTypeCountsRequest { return new GetJobTypeCountsRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetJobTypeCountsRequest { return new GetJobTypeCountsRequest().fromJsonString(jsonString, options); } static equals(a: GetJobTypeCountsRequest | PlainMessage | undefined, b: GetJobTypeCountsRequest | PlainMessage | undefined): boolean { return proto3.util.equals(GetJobTypeCountsRequest, a, b); } } /** * @generated from message artworking.v1.GetJobTypeCountsResponse */ export class GetJobTypeCountsResponse extends Message { /** * Map of job type name to count (e.g., "JOB_TYPE_JOB" -> 150) * * @generated from field: map counts = 1; */ counts: { [key: string]: number } = {}; /** * Total number of jobs across all types * * @generated from field: int32 total_count = 2; */ totalCount = 0; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.GetJobTypeCountsResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "counts", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 5 /* ScalarType.INT32 */} }, { no: 2, name: "total_count", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetJobTypeCountsResponse { return new GetJobTypeCountsResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetJobTypeCountsResponse { return new GetJobTypeCountsResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetJobTypeCountsResponse { return new GetJobTypeCountsResponse().fromJsonString(jsonString, options); } static equals(a: GetJobTypeCountsResponse | PlainMessage | undefined, b: GetJobTypeCountsResponse | PlainMessage | undefined): boolean { return proto3.util.equals(GetJobTypeCountsResponse, a, b); } } /** * Request to add a job to a job group * * @generated from message artworking.v1.AddJobToJobGroupRequest */ export class AddJobToJobGroupRequest extends Message { /** * @generated from field: string job_group_id = 1; */ jobGroupId = ""; /** * @generated from field: string name = 2; */ name = ""; /** * alternative to job_group_id * * @generated from field: string job_group_ref = 3; */ jobGroupRef = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.AddJobToJobGroupRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "job_group_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "job_group_ref", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): AddJobToJobGroupRequest { return new AddJobToJobGroupRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): AddJobToJobGroupRequest { return new AddJobToJobGroupRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): AddJobToJobGroupRequest { return new AddJobToJobGroupRequest().fromJsonString(jsonString, options); } static equals(a: AddJobToJobGroupRequest | PlainMessage | undefined, b: AddJobToJobGroupRequest | PlainMessage | undefined): boolean { return proto3.util.equals(AddJobToJobGroupRequest, a, b); } } /** * @generated from message artworking.v1.AddJobToJobGroupResponse */ export class AddJobToJobGroupResponse extends Message { /** * @generated from field: artworking.v1.Job job = 1; */ job?: Job; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.AddJobToJobGroupResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "job", kind: "message", T: Job }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): AddJobToJobGroupResponse { return new AddJobToJobGroupResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): AddJobToJobGroupResponse { return new AddJobToJobGroupResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): AddJobToJobGroupResponse { return new AddJobToJobGroupResponse().fromJsonString(jsonString, options); } static equals(a: AddJobToJobGroupResponse | PlainMessage | undefined, b: AddJobToJobGroupResponse | PlainMessage | undefined): boolean { return proto3.util.equals(AddJobToJobGroupResponse, a, b); } } /** * Request to change the type of a job * * @generated from message artworking.v1.ChangeJobTypeRequest */ export class ChangeJobTypeRequest extends Message { /** * ID of the job to change type for * * @generated from field: string job_id = 1; */ jobId = ""; /** * New job type to set * * @generated from field: artworking.v1.JobType job_type = 2; */ jobType = JobType.UNDEFINED; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.ChangeJobTypeRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "job_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "job_type", kind: "enum", T: proto3.getEnumType(JobType) }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): ChangeJobTypeRequest { return new ChangeJobTypeRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): ChangeJobTypeRequest { return new ChangeJobTypeRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): ChangeJobTypeRequest { return new ChangeJobTypeRequest().fromJsonString(jsonString, options); } static equals(a: ChangeJobTypeRequest | PlainMessage | undefined, b: ChangeJobTypeRequest | PlainMessage | undefined): boolean { return proto3.util.equals(ChangeJobTypeRequest, a, b); } } /** * @generated from message artworking.v1.ChangeJobTypeResponse */ export class ChangeJobTypeResponse extends Message { /** * @generated from field: artworking.v1.Job job = 1; */ job?: Job; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.ChangeJobTypeResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "job", kind: "message", T: Job }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): ChangeJobTypeResponse { return new ChangeJobTypeResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): ChangeJobTypeResponse { return new ChangeJobTypeResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): ChangeJobTypeResponse { return new ChangeJobTypeResponse().fromJsonString(jsonString, options); } static equals(a: ChangeJobTypeResponse | PlainMessage | undefined, b: ChangeJobTypeResponse | PlainMessage | undefined): boolean { return proto3.util.equals(ChangeJobTypeResponse, a, b); } } /** * @generated from message artworking.v1.ClearDraftActionsRequest */ export class ClearDraftActionsRequest 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 = "artworking.v1.ClearDraftActionsRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "job_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): ClearDraftActionsRequest { return new ClearDraftActionsRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): ClearDraftActionsRequest { return new ClearDraftActionsRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): ClearDraftActionsRequest { return new ClearDraftActionsRequest().fromJsonString(jsonString, options); } static equals(a: ClearDraftActionsRequest | PlainMessage | undefined, b: ClearDraftActionsRequest | PlainMessage | undefined): boolean { return proto3.util.equals(ClearDraftActionsRequest, a, b); } } /** * @generated from message artworking.v1.ClearDraftActionsResponse */ export class ClearDraftActionsResponse extends Message { constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.ClearDraftActionsResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ ]); static fromBinary(bytes: Uint8Array, options?: Partial): ClearDraftActionsResponse { return new ClearDraftActionsResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): ClearDraftActionsResponse { return new ClearDraftActionsResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): ClearDraftActionsResponse { return new ClearDraftActionsResponse().fromJsonString(jsonString, options); } static equals(a: ClearDraftActionsResponse | PlainMessage | undefined, b: ClearDraftActionsResponse | PlainMessage | undefined): boolean { return proto3.util.equals(ClearDraftActionsResponse, a, b); } } /** * @generated from message artworking.v1.Testing */ export class Testing extends Message { /** * @generated from field: int64 testing = 1; */ testing = protoInt64.zero; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.Testing"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "testing", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): Testing { return new Testing().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): Testing { return new Testing().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): Testing { return new Testing().fromJsonString(jsonString, options); } static equals(a: Testing | PlainMessage | undefined, b: Testing | PlainMessage | undefined): boolean { return proto3.util.equals(Testing, a, b); } } /** * New Draft Action RPC messages * * @generated from message artworking.v1.UpsertDraftActionRequest */ export class UpsertDraftActionRequest extends Message { /** * full replacement by key (job_id, artwork_item_id) * * @generated from field: artworking.v1.DraftAction draft_action = 1; */ draftAction?: DraftAction; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.UpsertDraftActionRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "draft_action", kind: "message", T: DraftAction }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): UpsertDraftActionRequest { return new UpsertDraftActionRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): UpsertDraftActionRequest { return new UpsertDraftActionRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): UpsertDraftActionRequest { return new UpsertDraftActionRequest().fromJsonString(jsonString, options); } static equals(a: UpsertDraftActionRequest | PlainMessage | undefined, b: UpsertDraftActionRequest | PlainMessage | undefined): boolean { return proto3.util.equals(UpsertDraftActionRequest, a, b); } } /** * @generated from message artworking.v1.UpsertDraftActionResponse */ export class UpsertDraftActionResponse extends Message { constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.UpsertDraftActionResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ ]); static fromBinary(bytes: Uint8Array, options?: Partial): UpsertDraftActionResponse { return new UpsertDraftActionResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): UpsertDraftActionResponse { return new UpsertDraftActionResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): UpsertDraftActionResponse { return new UpsertDraftActionResponse().fromJsonString(jsonString, options); } static equals(a: UpsertDraftActionResponse | PlainMessage | undefined, b: UpsertDraftActionResponse | PlainMessage | undefined): boolean { return proto3.util.equals(UpsertDraftActionResponse, a, b); } } /** * @generated from message artworking.v1.GetDraftActionRequest */ export class GetDraftActionRequest extends Message { /** * @generated from field: string job_id = 1; */ jobId = ""; /** * @generated from field: int32 artwork_item_id = 2; */ artworkItemId = 0; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.GetDraftActionRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "job_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "artwork_item_id", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetDraftActionRequest { return new GetDraftActionRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetDraftActionRequest { return new GetDraftActionRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetDraftActionRequest { return new GetDraftActionRequest().fromJsonString(jsonString, options); } static equals(a: GetDraftActionRequest | PlainMessage | undefined, b: GetDraftActionRequest | PlainMessage | undefined): boolean { return proto3.util.equals(GetDraftActionRequest, a, b); } } /** * @generated from message artworking.v1.GetDraftActionResponse */ export class GetDraftActionResponse extends Message { /** * absent when none * * @generated from field: artworking.v1.DraftAction draft_action = 1; */ draftAction?: DraftAction; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.GetDraftActionResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "draft_action", kind: "message", T: DraftAction }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetDraftActionResponse { return new GetDraftActionResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetDraftActionResponse { return new GetDraftActionResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetDraftActionResponse { return new GetDraftActionResponse().fromJsonString(jsonString, options); } static equals(a: GetDraftActionResponse | PlainMessage | undefined, b: GetDraftActionResponse | PlainMessage | undefined): boolean { return proto3.util.equals(GetDraftActionResponse, a, b); } } /** * @generated from message artworking.v1.ClearDraftActionRequest */ export class ClearDraftActionRequest extends Message { /** * @generated from field: string job_id = 1; */ jobId = ""; /** * @generated from field: int32 artwork_item_id = 2; */ artworkItemId = 0; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.ClearDraftActionRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "job_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "artwork_item_id", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): ClearDraftActionRequest { return new ClearDraftActionRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): ClearDraftActionRequest { return new ClearDraftActionRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): ClearDraftActionRequest { return new ClearDraftActionRequest().fromJsonString(jsonString, options); } static equals(a: ClearDraftActionRequest | PlainMessage | undefined, b: ClearDraftActionRequest | PlainMessage | undefined): boolean { return proto3.util.equals(ClearDraftActionRequest, a, b); } } /** * @generated from message artworking.v1.ClearDraftActionResponse */ export class ClearDraftActionResponse extends Message { constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.ClearDraftActionResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ ]); static fromBinary(bytes: Uint8Array, options?: Partial): ClearDraftActionResponse { return new ClearDraftActionResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): ClearDraftActionResponse { return new ClearDraftActionResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): ClearDraftActionResponse { return new ClearDraftActionResponse().fromJsonString(jsonString, options); } static equals(a: ClearDraftActionResponse | PlainMessage | undefined, b: ClearDraftActionResponse | PlainMessage | undefined): boolean { return proto3.util.equals(ClearDraftActionResponse, a, b); } } /** * @generated from message artworking.v1.ListDraftActionsRequest */ export class ListDraftActionsRequest 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 = "artworking.v1.ListDraftActionsRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "job_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): ListDraftActionsRequest { return new ListDraftActionsRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): ListDraftActionsRequest { return new ListDraftActionsRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): ListDraftActionsRequest { return new ListDraftActionsRequest().fromJsonString(jsonString, options); } static equals(a: ListDraftActionsRequest | PlainMessage | undefined, b: ListDraftActionsRequest | PlainMessage | undefined): boolean { return proto3.util.equals(ListDraftActionsRequest, a, b); } } /** * @generated from message artworking.v1.ListDraftActionsResponse */ export class ListDraftActionsResponse extends Message { /** * @generated from field: repeated artworking.v1.DraftAction entries = 1; */ entries: DraftAction[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.ListDraftActionsResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "entries", kind: "message", T: DraftAction, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): ListDraftActionsResponse { return new ListDraftActionsResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): ListDraftActionsResponse { return new ListDraftActionsResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): ListDraftActionsResponse { return new ListDraftActionsResponse().fromJsonString(jsonString, options); } static equals(a: ListDraftActionsResponse | PlainMessage | undefined, b: ListDraftActionsResponse | PlainMessage | undefined): boolean { return proto3.util.equals(ListDraftActionsResponse, a, b); } }