// @generated by protoc-gen-es v1.10.1 with parameter "target=ts" // @generated from file preflight/v1/customer-preflight.proto (package preflight.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 { ObjectRef } from "../../common/v1/object-ref_pb.js"; import { PreflightCheckConfig } from "./preflight-check-config_pb.js"; /** * @generated from enum preflight.v1.CustomerPreflightState */ export enum CustomerPreflightState { /** * @generated from enum value: CustomerPreflightUndefined = 0; */ CustomerPreflightUndefined = 0, /** * @generated from enum value: CustomerPreflightAwaitingArtwork = 1; */ CustomerPreflightAwaitingArtwork = 1, /** * @generated from enum value: CustomerPreflightProcessing = 2; */ CustomerPreflightProcessing = 2, /** * @generated from enum value: CustomerPreflightSuccess = 3; */ CustomerPreflightSuccess = 3, /** * @generated from enum value: CustomerPreflightFailed = 4; */ CustomerPreflightFailed = 4, /** * @generated from enum value: CustomerPreflightCorruptFiles = 6; */ CustomerPreflightCorruptFiles = 6, /** * @generated from enum value: CustomerPreflightCreated = 7; */ CustomerPreflightCreated = 7, } // Retrieve enum metadata with: proto3.getEnumType(CustomerPreflightState) proto3.util.setEnumType(CustomerPreflightState, "preflight.v1.CustomerPreflightState", [ { no: 0, name: "CustomerPreflightUndefined" }, { no: 1, name: "CustomerPreflightAwaitingArtwork" }, { no: 2, name: "CustomerPreflightProcessing" }, { no: 3, name: "CustomerPreflightSuccess" }, { no: 4, name: "CustomerPreflightFailed" }, { no: 6, name: "CustomerPreflightCorruptFiles" }, { no: 7, name: "CustomerPreflightCreated" }, ]); /** * @generated from message preflight.v1.CustomerPreflightSummary */ export class CustomerPreflightSummary extends Message { /** * @generated from field: int64 id = 1; */ id = protoInt64.zero; /** * @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: common.v1.ObjectRef object_ref = 4; */ objectRef?: ObjectRef; /** * @generated from field: int64 supplier_id = 5; */ supplierId = protoInt64.zero; /** * @generated from field: preflight.v1.CustomerPreflightState state = 6; */ state = CustomerPreflightState.CustomerPreflightUndefined; /** * @generated from field: bool preflight_enabled = 7; */ preflightEnabled = false; /** * @generated from field: preflight.v1.PreflightCheckConfig preflight_check_config = 8; */ preflightCheckConfig?: PreflightCheckConfig; /** * @generated from field: repeated int64 media_item_ids = 9; */ mediaItemIds: bigint[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v1.CustomerPreflightSummary"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, { no: 2, name: "created_at", kind: "message", T: Timestamp }, { no: 3, name: "updated_at", kind: "message", T: Timestamp }, { no: 4, name: "object_ref", kind: "message", T: ObjectRef }, { no: 5, name: "supplier_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, { no: 6, name: "state", kind: "enum", T: proto3.getEnumType(CustomerPreflightState) }, { no: 7, name: "preflight_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 8, name: "preflight_check_config", kind: "message", T: PreflightCheckConfig }, { no: 9, name: "media_item_ids", kind: "scalar", T: 3 /* ScalarType.INT64 */, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): CustomerPreflightSummary { return new CustomerPreflightSummary().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): CustomerPreflightSummary { return new CustomerPreflightSummary().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): CustomerPreflightSummary { return new CustomerPreflightSummary().fromJsonString(jsonString, options); } static equals(a: CustomerPreflightSummary | PlainMessage | undefined, b: CustomerPreflightSummary | PlainMessage | undefined): boolean { return proto3.util.equals(CustomerPreflightSummary, a, b); } } /** * @generated from message preflight.v1.CustomerPreflightPage */ export class CustomerPreflightPage extends Message { /** * @generated from field: int64 id = 1; */ id = protoInt64.zero; /** * @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: common.v1.ObjectRef object_ref = 4; */ objectRef?: ObjectRef; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v1.CustomerPreflightPage"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, { no: 2, name: "created_at", kind: "message", T: Timestamp }, { no: 3, name: "updated_at", kind: "message", T: Timestamp }, { no: 4, name: "object_ref", kind: "message", T: ObjectRef }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): CustomerPreflightPage { return new CustomerPreflightPage().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): CustomerPreflightPage { return new CustomerPreflightPage().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): CustomerPreflightPage { return new CustomerPreflightPage().fromJsonString(jsonString, options); } static equals(a: CustomerPreflightPage | PlainMessage | undefined, b: CustomerPreflightPage | PlainMessage | undefined): boolean { return proto3.util.equals(CustomerPreflightPage, a, b); } } /** * @generated from message preflight.v1.StartCustomerPreflightMocks */ export class StartCustomerPreflightMocks extends Message { /** * the amount of time the server will mock "processing" the files * * @generated from field: int32 mock_processing_length_seconds = 1; */ mockProcessingLengthSeconds = 0; /** * what state the server will respond with * * @generated from field: preflight.v1.CustomerPreflightState mock_resulting_state = 2; */ mockResultingState = CustomerPreflightState.CustomerPreflightUndefined; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v1.StartCustomerPreflightMocks"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "mock_processing_length_seconds", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, { no: 2, name: "mock_resulting_state", kind: "enum", T: proto3.getEnumType(CustomerPreflightState) }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): StartCustomerPreflightMocks { return new StartCustomerPreflightMocks().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): StartCustomerPreflightMocks { return new StartCustomerPreflightMocks().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): StartCustomerPreflightMocks { return new StartCustomerPreflightMocks().fromJsonString(jsonString, options); } static equals(a: StartCustomerPreflightMocks | PlainMessage | undefined, b: StartCustomerPreflightMocks | PlainMessage | undefined): boolean { return proto3.util.equals(StartCustomerPreflightMocks, a, b); } } /** * @generated from message preflight.v1.StartCustomerPreflightRequest */ export class StartCustomerPreflightRequest extends Message { /** * @generated from field: common.v1.ObjectRef object_ref = 1; */ objectRef?: ObjectRef; /** * @generated from field: int64 supplier_id = 2; */ supplierId = protoInt64.zero; /** * @generated from field: repeated preflight.v1.StartCustomerPreflightRequest.MediaItemObject media_item_objects = 3; */ mediaItemObjects: StartCustomerPreflightRequest_MediaItemObject[] = []; /** * if this exists the server will respond with mock results useful for testing flows * * @generated from field: preflight.v1.StartCustomerPreflightMocks mocks = 4; */ mocks?: StartCustomerPreflightMocks; /** * starts a preflight using an existing preflight check config * * @generated from field: optional common.v1.ObjectRef use_existing_preflight_check_config_object_ref = 5; */ useExistingPreflightCheckConfigObjectRef?: ObjectRef; /** * @generated from field: bool build_customer_report = 6; */ buildCustomerReport = false; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v1.StartCustomerPreflightRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "object_ref", kind: "message", T: ObjectRef }, { no: 2, name: "supplier_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, { no: 3, name: "media_item_objects", kind: "message", T: StartCustomerPreflightRequest_MediaItemObject, repeated: true }, { no: 4, name: "mocks", kind: "message", T: StartCustomerPreflightMocks }, { no: 5, name: "use_existing_preflight_check_config_object_ref", kind: "message", T: ObjectRef, opt: true }, { no: 6, name: "build_customer_report", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): StartCustomerPreflightRequest { return new StartCustomerPreflightRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): StartCustomerPreflightRequest { return new StartCustomerPreflightRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): StartCustomerPreflightRequest { return new StartCustomerPreflightRequest().fromJsonString(jsonString, options); } static equals(a: StartCustomerPreflightRequest | PlainMessage | undefined, b: StartCustomerPreflightRequest | PlainMessage | undefined): boolean { return proto3.util.equals(StartCustomerPreflightRequest, a, b); } } /** * @generated from message preflight.v1.StartCustomerPreflightRequest.MediaItemObject */ export class StartCustomerPreflightRequest_MediaItemObject extends Message { /** * @generated from field: int64 media_item_id = 1; */ mediaItemId = protoInt64.zero; /** * @generated from field: int64 pre_fixup_media_item_id = 2; */ preFixupMediaItemId = protoInt64.zero; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v1.StartCustomerPreflightRequest.MediaItemObject"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "media_item_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, { no: 2, name: "pre_fixup_media_item_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): StartCustomerPreflightRequest_MediaItemObject { return new StartCustomerPreflightRequest_MediaItemObject().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): StartCustomerPreflightRequest_MediaItemObject { return new StartCustomerPreflightRequest_MediaItemObject().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): StartCustomerPreflightRequest_MediaItemObject { return new StartCustomerPreflightRequest_MediaItemObject().fromJsonString(jsonString, options); } static equals(a: StartCustomerPreflightRequest_MediaItemObject | PlainMessage | undefined, b: StartCustomerPreflightRequest_MediaItemObject | PlainMessage | undefined): boolean { return proto3.util.equals(StartCustomerPreflightRequest_MediaItemObject, a, b); } } /** * @generated from message preflight.v1.StartCustomerPreflightResponse */ export class StartCustomerPreflightResponse extends Message { /** * @generated from field: preflight.v1.CustomerPreflightSummary summary = 1; */ summary?: CustomerPreflightSummary; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v1.StartCustomerPreflightResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "summary", kind: "message", T: CustomerPreflightSummary }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): StartCustomerPreflightResponse { return new StartCustomerPreflightResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): StartCustomerPreflightResponse { return new StartCustomerPreflightResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): StartCustomerPreflightResponse { return new StartCustomerPreflightResponse().fromJsonString(jsonString, options); } static equals(a: StartCustomerPreflightResponse | PlainMessage | undefined, b: StartCustomerPreflightResponse | PlainMessage | undefined): boolean { return proto3.util.equals(StartCustomerPreflightResponse, a, b); } } /** * @generated from message preflight.v1.GetCustomerPreflightRequest */ export class GetCustomerPreflightRequest extends Message { /** * @generated from field: common.v1.ObjectRef object_ref = 1; */ objectRef?: ObjectRef; /** * @generated from field: int64 supplier_id = 2; */ supplierId = protoInt64.zero; /** * the amount of time the server will mock "processing" the files * * @generated from field: int32 mock_processing_length_seconds = 3; */ mockProcessingLengthSeconds = 0; /** * * * @generated from field: preflight.v1.CustomerPreflightState mock_resulting_state = 4; */ mockResultingState = CustomerPreflightState.CustomerPreflightUndefined; /** * creates a preflight request first if one doesn't exist * * @generated from field: bool upsert = 5; */ upsert = false; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v1.GetCustomerPreflightRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "object_ref", kind: "message", T: ObjectRef }, { no: 2, name: "supplier_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, { no: 3, name: "mock_processing_length_seconds", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, { no: 4, name: "mock_resulting_state", kind: "enum", T: proto3.getEnumType(CustomerPreflightState) }, { no: 5, name: "upsert", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetCustomerPreflightRequest { return new GetCustomerPreflightRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetCustomerPreflightRequest { return new GetCustomerPreflightRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetCustomerPreflightRequest { return new GetCustomerPreflightRequest().fromJsonString(jsonString, options); } static equals(a: GetCustomerPreflightRequest | PlainMessage | undefined, b: GetCustomerPreflightRequest | PlainMessage | undefined): boolean { return proto3.util.equals(GetCustomerPreflightRequest, a, b); } } /** * @generated from message preflight.v1.GetCustomerPreflightResponse */ export class GetCustomerPreflightResponse extends Message { /** * @generated from field: preflight.v1.CustomerPreflightSummary summary = 1; */ summary?: CustomerPreflightSummary; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v1.GetCustomerPreflightResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "summary", kind: "message", T: CustomerPreflightSummary }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetCustomerPreflightResponse { return new GetCustomerPreflightResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetCustomerPreflightResponse { return new GetCustomerPreflightResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetCustomerPreflightResponse { return new GetCustomerPreflightResponse().fromJsonString(jsonString, options); } static equals(a: GetCustomerPreflightResponse | PlainMessage | undefined, b: GetCustomerPreflightResponse | PlainMessage | undefined): boolean { return proto3.util.equals(GetCustomerPreflightResponse, a, b); } }