// @generated by protoc-gen-es v1.10.1 with parameter "target=ts" // @generated from file artworking/v1/leadtime.proto (package artworking.v1, syntax proto3) /* eslint-disable */ // @ts-nocheck import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { BoolValue, Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf"; import { Job, LeadtimeLengthUnit } from "./artwork_pb.js"; /** * @generated from message artworking.v1.SetJobLeadtimeRequest */ export class SetJobLeadtimeRequest extends Message { /** * id of job * * @generated from field: string job_id = 1; */ jobId = ""; /** * estimated number of days to recieve print after artwork and proofs approved * * @generated from field: int32 leadtime_length = 2; */ leadtimeLength = 0; /** * @generated from field: artworking.v1.LeadtimeLengthUnit leadtime_length_unit = 3; */ leadtimeLengthUnit = LeadtimeLengthUnit.LEADTIME_UNIT_DAY; /** * @generated from field: bool requires_proof = 4; */ requiresProof = false; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.SetJobLeadtimeRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "job_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "leadtime_length", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, { no: 3, name: "leadtime_length_unit", kind: "enum", T: proto3.getEnumType(LeadtimeLengthUnit) }, { no: 4, name: "requires_proof", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): SetJobLeadtimeRequest { return new SetJobLeadtimeRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): SetJobLeadtimeRequest { return new SetJobLeadtimeRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): SetJobLeadtimeRequest { return new SetJobLeadtimeRequest().fromJsonString(jsonString, options); } static equals(a: SetJobLeadtimeRequest | PlainMessage | undefined, b: SetJobLeadtimeRequest | PlainMessage | undefined): boolean { return proto3.util.equals(SetJobLeadtimeRequest, a, b); } } /** * @generated from message artworking.v1.SetJobLeadtimeResponse */ export class SetJobLeadtimeResponse 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.SetJobLeadtimeResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "job", kind: "message", T: Job }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): SetJobLeadtimeResponse { return new SetJobLeadtimeResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): SetJobLeadtimeResponse { return new SetJobLeadtimeResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): SetJobLeadtimeResponse { return new SetJobLeadtimeResponse().fromJsonString(jsonString, options); } static equals(a: SetJobLeadtimeResponse | PlainMessage | undefined, b: SetJobLeadtimeResponse | PlainMessage | undefined): boolean { return proto3.util.equals(SetJobLeadtimeResponse, a, b); } } /** * @generated from message artworking.v1.GetLeadtimeInfoRequest */ export class GetLeadtimeInfoRequest extends Message { /** * @generated from field: string job_id = 1; */ jobId = ""; /** * @generated from field: int64 supplier_id = 2; */ supplierId = protoInt64.zero; /** * @generated from field: int32 leadtime_length_override = 3; */ leadtimeLengthOverride = 0; /** * @generated from field: artworking.v1.LeadtimeLengthUnit leadtime_length_unit_override = 4; */ leadtimeLengthUnitOverride = LeadtimeLengthUnit.LEADTIME_UNIT_DAY; /** * get what the leadtime will be n minutes from now * * @generated from field: int32 in_n_minutes = 5; */ inNMinutes = 0; /** * @generated from field: google.protobuf.BoolValue requires_proof_override = 6; */ requiresProofOverride?: boolean; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.GetLeadtimeInfoRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "job_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "supplier_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, { no: 3, name: "leadtime_length_override", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, { no: 4, name: "leadtime_length_unit_override", kind: "enum", T: proto3.getEnumType(LeadtimeLengthUnit) }, { no: 5, name: "in_n_minutes", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, { no: 6, name: "requires_proof_override", kind: "message", T: BoolValue }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetLeadtimeInfoRequest { return new GetLeadtimeInfoRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetLeadtimeInfoRequest { return new GetLeadtimeInfoRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetLeadtimeInfoRequest { return new GetLeadtimeInfoRequest().fromJsonString(jsonString, options); } static equals(a: GetLeadtimeInfoRequest | PlainMessage | undefined, b: GetLeadtimeInfoRequest | PlainMessage | undefined): boolean { return proto3.util.equals(GetLeadtimeInfoRequest, a, b); } } /** * @generated from message artworking.v1.GetLeadtimeInfoResponse */ export class GetLeadtimeInfoResponse extends Message { /** * @generated from field: google.protobuf.Timestamp deadline = 1; */ deadline?: Timestamp; /** * @generated from field: google.protobuf.Timestamp estimated_delivery_date = 2; */ estimatedDeliveryDate?: Timestamp; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.GetLeadtimeInfoResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "deadline", kind: "message", T: Timestamp }, { no: 2, name: "estimated_delivery_date", kind: "message", T: Timestamp }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetLeadtimeInfoResponse { return new GetLeadtimeInfoResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetLeadtimeInfoResponse { return new GetLeadtimeInfoResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetLeadtimeInfoResponse { return new GetLeadtimeInfoResponse().fromJsonString(jsonString, options); } static equals(a: GetLeadtimeInfoResponse | PlainMessage | undefined, b: GetLeadtimeInfoResponse | PlainMessage | undefined): boolean { return proto3.util.equals(GetLeadtimeInfoResponse, a, b); } } /** * Leadtime settings * * @generated from message artworking.v1.Deadline */ export class Deadline extends Message { /** * @generated from field: int32 day = 1; */ day = 0; /** * @generated from field: int32 end_time_hours = 2; */ endTimeHours = 0; /** * @generated from field: int32 end_time_minutes = 3; */ endTimeMinutes = 0; /** * @generated from field: bool open = 4; */ open = false; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.Deadline"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "day", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, { no: 2, name: "end_time_hours", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, { no: 3, name: "end_time_minutes", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, { no: 4, name: "open", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): Deadline { return new Deadline().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): Deadline { return new Deadline().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): Deadline { return new Deadline().fromJsonString(jsonString, options); } static equals(a: Deadline | PlainMessage | undefined, b: Deadline | PlainMessage | undefined): boolean { return proto3.util.equals(Deadline, a, b); } } /** * @generated from message artworking.v1.UploadArtworkDeadlines */ export class UploadArtworkDeadlines extends Message { /** * @generated from field: bool use_studio_hours = 1; */ useStudioHours = false; /** * @generated from field: repeated artworking.v1.Deadline custom_deadlines = 2; */ customDeadlines: Deadline[] = []; /** * if a proof is required for a job, use custom_proof_deadlines to calculate deadline instead * * @generated from field: bool different_deadlines_when_proof_required = 3; */ differentDeadlinesWhenProofRequired = false; /** * @generated from field: repeated artworking.v1.Deadline custom_proof_deadlines = 4; */ customProofDeadlines: Deadline[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.UploadArtworkDeadlines"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "use_studio_hours", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 2, name: "custom_deadlines", kind: "message", T: Deadline, repeated: true }, { no: 3, name: "different_deadlines_when_proof_required", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 4, name: "custom_proof_deadlines", kind: "message", T: Deadline, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): UploadArtworkDeadlines { return new UploadArtworkDeadlines().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): UploadArtworkDeadlines { return new UploadArtworkDeadlines().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): UploadArtworkDeadlines { return new UploadArtworkDeadlines().fromJsonString(jsonString, options); } static equals(a: UploadArtworkDeadlines | PlainMessage | undefined, b: UploadArtworkDeadlines | PlainMessage | undefined): boolean { return proto3.util.equals(UploadArtworkDeadlines, a, b); } } /** * @generated from message artworking.v1.ProofApprovalDeadlines */ export class ProofApprovalDeadlines extends Message { /** * @generated from field: bool use_studio_hours = 1; */ useStudioHours = false; /** * @generated from field: repeated artworking.v1.Deadline custom_deadlines = 2; */ customDeadlines: Deadline[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.ProofApprovalDeadlines"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "use_studio_hours", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 2, name: "custom_deadlines", kind: "message", T: Deadline, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): ProofApprovalDeadlines { return new ProofApprovalDeadlines().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): ProofApprovalDeadlines { return new ProofApprovalDeadlines().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): ProofApprovalDeadlines { return new ProofApprovalDeadlines().fromJsonString(jsonString, options); } static equals(a: ProofApprovalDeadlines | PlainMessage | undefined, b: ProofApprovalDeadlines | PlainMessage | undefined): boolean { return proto3.util.equals(ProofApprovalDeadlines, a, b); } } /** * @generated from message artworking.v1.LeadtimeSettings */ export class LeadtimeSettings 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: artworking.v1.UploadArtworkDeadlines upload_artwork_deadlines = 4; */ uploadArtworkDeadlines?: UploadArtworkDeadlines; /** * @generated from field: artworking.v1.ProofApprovalDeadlines proof_approval_deadlines = 5; */ proofApprovalDeadlines?: ProofApprovalDeadlines; /** * if enabled, bank holidays will be taken into account when calculating deadlines and holidays * * @generated from field: bool enable_bank_holidays = 6; */ enableBankHolidays = false; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.LeadtimeSettings"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "created_at", kind: "message", T: Timestamp }, { no: 3, name: "updated_at", kind: "message", T: Timestamp }, { no: 4, name: "upload_artwork_deadlines", kind: "message", T: UploadArtworkDeadlines }, { no: 5, name: "proof_approval_deadlines", kind: "message", T: ProofApprovalDeadlines }, { no: 6, name: "enable_bank_holidays", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): LeadtimeSettings { return new LeadtimeSettings().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): LeadtimeSettings { return new LeadtimeSettings().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): LeadtimeSettings { return new LeadtimeSettings().fromJsonString(jsonString, options); } static equals(a: LeadtimeSettings | PlainMessage | undefined, b: LeadtimeSettings | PlainMessage | undefined): boolean { return proto3.util.equals(LeadtimeSettings, a, b); } } /** * @generated from message artworking.v1.SetLeadtimeSettingsRequest */ export class SetLeadtimeSettingsRequest extends Message { /** * @generated from field: artworking.v1.LeadtimeSettings leadtime_settings = 1; */ leadtimeSettings?: LeadtimeSettings; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.SetLeadtimeSettingsRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "leadtime_settings", kind: "message", T: LeadtimeSettings }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): SetLeadtimeSettingsRequest { return new SetLeadtimeSettingsRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): SetLeadtimeSettingsRequest { return new SetLeadtimeSettingsRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): SetLeadtimeSettingsRequest { return new SetLeadtimeSettingsRequest().fromJsonString(jsonString, options); } static equals(a: SetLeadtimeSettingsRequest | PlainMessage | undefined, b: SetLeadtimeSettingsRequest | PlainMessage | undefined): boolean { return proto3.util.equals(SetLeadtimeSettingsRequest, a, b); } } /** * @generated from message artworking.v1.SetLeadtimeSettingsResponse */ export class SetLeadtimeSettingsResponse extends Message { /** * @generated from field: artworking.v1.LeadtimeSettings leadtime_settings = 1; */ leadtimeSettings?: LeadtimeSettings; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.SetLeadtimeSettingsResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "leadtime_settings", kind: "message", T: LeadtimeSettings }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): SetLeadtimeSettingsResponse { return new SetLeadtimeSettingsResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): SetLeadtimeSettingsResponse { return new SetLeadtimeSettingsResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): SetLeadtimeSettingsResponse { return new SetLeadtimeSettingsResponse().fromJsonString(jsonString, options); } static equals(a: SetLeadtimeSettingsResponse | PlainMessage | undefined, b: SetLeadtimeSettingsResponse | PlainMessage | undefined): boolean { return proto3.util.equals(SetLeadtimeSettingsResponse, a, b); } } /** * @generated from message artworking.v1.GetLeadtimeSettingsRequest */ export class GetLeadtimeSettingsRequest extends Message { constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.GetLeadtimeSettingsRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetLeadtimeSettingsRequest { return new GetLeadtimeSettingsRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetLeadtimeSettingsRequest { return new GetLeadtimeSettingsRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetLeadtimeSettingsRequest { return new GetLeadtimeSettingsRequest().fromJsonString(jsonString, options); } static equals(a: GetLeadtimeSettingsRequest | PlainMessage | undefined, b: GetLeadtimeSettingsRequest | PlainMessage | undefined): boolean { return proto3.util.equals(GetLeadtimeSettingsRequest, a, b); } } /** * @generated from message artworking.v1.GetLeadtimeSettingsResponse */ export class GetLeadtimeSettingsResponse extends Message { /** * @generated from field: artworking.v1.LeadtimeSettings leadtime_settings = 1; */ leadtimeSettings?: LeadtimeSettings; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "artworking.v1.GetLeadtimeSettingsResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "leadtime_settings", kind: "message", T: LeadtimeSettings }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetLeadtimeSettingsResponse { return new GetLeadtimeSettingsResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetLeadtimeSettingsResponse { return new GetLeadtimeSettingsResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetLeadtimeSettingsResponse { return new GetLeadtimeSettingsResponse().fromJsonString(jsonString, options); } static equals(a: GetLeadtimeSettingsResponse | PlainMessage | undefined, b: GetLeadtimeSettingsResponse | PlainMessage | undefined): boolean { return proto3.util.equals(GetLeadtimeSettingsResponse, a, b); } }