// @generated by protoc-gen-es v1.10.1 with parameter "target=ts" // @generated from file artworking/v1/artworklite.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 { ArtworkItemState, ArtworkState, FilterJobRequestFilter, JobAction, JobType, LeadtimeLengthUnit } from "./artwork_pb.js"; import { PaginatedQuery, PaginatedResponse } from "../../common/v1/query_pb.js"; /** * @generated from message artworking.v1.JobLite */ export class JobLite extends Message { /** * @generated from field: string id = 1; */ id = ""; /** * @generated from field: google.protobuf.Timestamp created_at = 2; */ createdAt?: Timestamp; /** * @generated from field: google.protobuf.Timestamp updated_at = 3; */ updatedAt?: Timestamp; /** * @generated from field: int64 contact_id = 7; */ contactId = protoInt64.zero; /** * @generated from field: string contact_name = 8; */ contactName = ""; /** * @generated from field: string uri = 10; */ uri = ""; /** * @generated from field: string name = 11; */ name = ""; /** * @generated from field: artworking.v1.ArtworkState state = 14; */ state = ArtworkState.UNDEFINED; /** * @generated from field: string supplier_name = 15; */ supplierName = ""; /** * @generated from field: int64 supplier_id = 16; */ supplierId = protoInt64.zero; /** * @generated from field: bool disable_proof_review = 19; */ disableProofReview = false; /** * @generated from field: bool enable_chaser_emails = 21; */ enableChaserEmails = false; /** * @generated from field: repeated artworking.v1.JobAction customer_allowed_actions = 22; */ customerAllowedActions: JobAction[] = []; /** * @generated from field: repeated artworking.v1.JobAction supplier_allowed_actions = 23; */ supplierAllowedActions: JobAction[] = []; /** * @generated from field: string latest_chaser_email_ref = 24; */ latestChaserEmailRef = ""; /** * @generated from field: bool proofs_and_artwork_out_of_sync = 26; */ proofsAndArtworkOutOfSync = false; /** * @generated from field: int32 leadtime_length = 27; */ leadtimeLength = 0; /** * @generated from field: artworking.v1.LeadtimeLengthUnit leadtime_length_unit = 28; */ leadtimeLengthUnit = LeadtimeLengthUnit.LEADTIME_UNIT_DAY; /** * for use with unauthed users * * @generated from field: string contact_ref = 31; */ contactRef = ""; /** * @generated from field: artworking.v1.ArtworkItemState fixup_state = 32; */ fixupState = ArtworkItemState.UNDEFINED; /** * @generated from field: int32 index = 33; */ index = 0; /** * @generated from field: int32 job_group_count = 34; */ jobGroupCount = 0; /** * @generated from field: string company_name = 35; */ companyName = ""; /** * @generated from field: string contact_email = 36; */ contactEmail = ""; /** * @generated from field: artworking.v1.JobType type = 37; */ type = JobType.UNDEFINED; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.JobLite"; 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: 7, name: "contact_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, { no: 8, name: "contact_name", 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: 19, name: "disable_proof_review", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { 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: 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: 31, name: "contact_ref", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 32, name: "fixup_state", kind: "enum", T: proto3.getEnumType(ArtworkItemState) }, { no: 33, name: "index", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, { no: 34, name: "job_group_count", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, { no: 35, name: "company_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 36, name: "contact_email", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 37, name: "type", kind: "enum", T: proto3.getEnumType(JobType) }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): JobLite { return new JobLite().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): JobLite { return new JobLite().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): JobLite { return new JobLite().fromJsonString(jsonString, options); } static equals(a: JobLite | PlainMessage | undefined, b: JobLite | PlainMessage | undefined): boolean { return proto3.util.equals(JobLite, a, b); } } /** * @generated from message artworking.v1.FindJobLiteRequest */ export class FindJobLiteRequest extends Message { /** * @generated from field: repeated int64 contact_ids = 7; */ contactIds: bigint[] = []; /** * @generated from field: repeated artworking.v1.ArtworkState states = 8; */ states: ArtworkState[] = []; /** * @generated from field: common.v1.PaginatedQuery query = 9; */ query?: PaginatedQuery; /** * @generated from field: repeated int64 company_ids = 10; */ companyIds: bigint[] = []; /** * @generated from field: repeated artworking.v1.FilterJobRequestFilter filters = 11; */ filters: FilterJobRequestFilter[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.FindJobLiteRequest"; 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 }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): FindJobLiteRequest { return new FindJobLiteRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): FindJobLiteRequest { return new FindJobLiteRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): FindJobLiteRequest { return new FindJobLiteRequest().fromJsonString(jsonString, options); } static equals(a: FindJobLiteRequest | PlainMessage | undefined, b: FindJobLiteRequest | PlainMessage | undefined): boolean { return proto3.util.equals(FindJobLiteRequest, a, b); } } /** * @generated from message artworking.v1.FindJobLiteResponse */ export class FindJobLiteResponse extends Message { /** * @generated from field: repeated artworking.v1.JobLite data = 1; */ data: JobLite[] = []; /** * @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.FindJobLiteResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "data", kind: "message", T: JobLite, repeated: true }, { no: 2, name: "pagination", kind: "message", T: PaginatedResponse }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): FindJobLiteResponse { return new FindJobLiteResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): FindJobLiteResponse { return new FindJobLiteResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): FindJobLiteResponse { return new FindJobLiteResponse().fromJsonString(jsonString, options); } static equals(a: FindJobLiteResponse | PlainMessage | undefined, b: FindJobLiteResponse | PlainMessage | undefined): boolean { return proto3.util.equals(FindJobLiteResponse, a, b); } } /** * @generated from message artworking.v1.GetJobLiteByIdRequest */ export class GetJobLiteByIdRequest extends Message { /** * @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.GetJobLiteByIdRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetJobLiteByIdRequest { return new GetJobLiteByIdRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetJobLiteByIdRequest { return new GetJobLiteByIdRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetJobLiteByIdRequest { return new GetJobLiteByIdRequest().fromJsonString(jsonString, options); } static equals(a: GetJobLiteByIdRequest | PlainMessage | undefined, b: GetJobLiteByIdRequest | PlainMessage | undefined): boolean { return proto3.util.equals(GetJobLiteByIdRequest, a, b); } } /** * @generated from message artworking.v1.GetJobLiteByIdResponse */ export class GetJobLiteByIdResponse extends Message { /** * @generated from field: artworking.v1.JobLite job_lite = 1; */ jobLite?: JobLite; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.GetJobLiteByIdResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "job_lite", kind: "message", T: JobLite }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetJobLiteByIdResponse { return new GetJobLiteByIdResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetJobLiteByIdResponse { return new GetJobLiteByIdResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetJobLiteByIdResponse { return new GetJobLiteByIdResponse().fromJsonString(jsonString, options); } static equals(a: GetJobLiteByIdResponse | PlainMessage | undefined, b: GetJobLiteByIdResponse | PlainMessage | undefined): boolean { return proto3.util.equals(GetJobLiteByIdResponse, a, b); } }