// @generated by protoc-gen-es v1.10.1 with parameter "target=ts" // @generated from file preflight/v2/config.proto (package preflight.v2, 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 { FileType, Orientation, PresetTemplate } from "./preset-template_pb.js"; import { MeasurementUnit } from "../../common/v1/unit_pb.js"; import { Size } from "./size_pb.js"; import { Guide } from "./guide_pb.js"; /** * @generated from message preflight.v2.PreflightCheckConfig */ export class PreflightCheckConfig 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; /** * Image Resolution Check * * @generated from field: uint32 image_res_error_below = 6; */ imageResErrorBelow = 0; /** * @generated from field: uint32 image_res_warn_below = 7; */ imageResWarnBelow = 0; /** * @generated from field: uint32 image_res_recommended = 8; */ imageResRecommended = 0; /** * @generated from field: repeated preflight.v2.FileType allowed_file_types = 9; */ allowedFileTypes: FileType[] = []; /** * @generated from field: bool require_embedded_fonts = 10; */ requireEmbeddedFonts = false; /** * @generated from field: bool enabled = 11; */ enabled = false; /** * @generated from field: optional int32 page_count = 12; */ pageCount?: number; /** * @generated from field: bool visible_to_customer = 13; */ visibleToCustomer = false; /** * Trim Size Check * * @generated from field: optional double trim_size_height = 14; */ trimSizeHeight?: number; /** * @generated from field: optional double trim_size_width = 15; */ trimSizeWidth?: number; /** * Orientation Check * * @generated from field: preflight.v2.Orientation orientation = 16; */ orientation = Orientation.UNSPECIFIED; /** * Bleed Size Check * * @generated from field: double bleed_size_top = 17; */ bleedSizeTop = 0; /** * @generated from field: double bleed_size_bottom = 18; */ bleedSizeBottom = 0; /** * @generated from field: double bleed_size_left = 19; */ bleedSizeLeft = 0; /** * @generated from field: double bleed_size_right = 20; */ bleedSizeRight = 0; /** * Safe Zone Check * * @generated from field: double safe_zone_top = 21; */ safeZoneTop = 0; /** * @generated from field: double safe_zone_bottom = 22; */ safeZoneBottom = 0; /** * @generated from field: double safe_zone_left = 23; */ safeZoneLeft = 0; /** * @generated from field: double safe_zone_right = 24; */ safeZoneRight = 0; /** * @generated from field: common.v1.MeasurementUnit measurement_unit = 25; */ measurementUnit = MeasurementUnit.UNKNOWN; /** * @generated from field: int64 preset_template_id = 26; */ presetTemplateId = protoInt64.zero; /** * @generated from field: preflight.v2.PresetTemplate preset_template = 27; */ presetTemplate?: PresetTemplate; /** * @generated from field: int64 selected_size_preset_id = 28; */ selectedSizePresetId = protoInt64.zero; /** * @generated from field: preflight.v2.Size selected_size_preset = 29; */ selectedSizePreset?: Size; /** * @generated from field: bool enable_page_count_check = 30; */ enablePageCountCheck = false; /** * @generated from field: bool enable_allowed_file_types = 31; */ enableAllowedFileTypes = false; /** * @generated from field: bool enable_trim_size_check = 32; */ enableTrimSizeCheck = false; /** * @generated from field: bool enable_require_fixed_orientation = 33; */ enableRequireFixedOrientation = false; /** * @generated from field: bool enable_bleed_size_check = 34; */ enableBleedSizeCheck = false; /** * @generated from field: bool enable_set_safe_zone = 35; */ enableSetSafeZone = false; /** * @generated from field: bool enable_image_res_check = 36; */ enableImageResCheck = false; /** * Guide reference * * @generated from field: optional int64 guide_id = 37; */ guideId?: bigint; /** * @generated from field: optional preflight.v2.Guide guide = 38; */ guide?: Guide; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.PreflightCheckConfig"; 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: "image_res_error_below", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, { no: 7, name: "image_res_warn_below", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, { no: 8, name: "image_res_recommended", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, { no: 9, name: "allowed_file_types", kind: "message", T: FileType, repeated: true }, { no: 10, name: "require_embedded_fonts", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 11, name: "enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 12, name: "page_count", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true }, { no: 13, name: "visible_to_customer", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 14, name: "trim_size_height", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true }, { no: 15, name: "trim_size_width", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true }, { no: 16, name: "orientation", kind: "enum", T: proto3.getEnumType(Orientation) }, { no: 17, name: "bleed_size_top", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, { no: 18, name: "bleed_size_bottom", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, { no: 19, name: "bleed_size_left", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, { no: 20, name: "bleed_size_right", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, { no: 21, name: "safe_zone_top", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, { no: 22, name: "safe_zone_bottom", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, { no: 23, name: "safe_zone_left", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, { no: 24, name: "safe_zone_right", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, { no: 25, name: "measurement_unit", kind: "enum", T: proto3.getEnumType(MeasurementUnit) }, { no: 26, name: "preset_template_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, { no: 27, name: "preset_template", kind: "message", T: PresetTemplate }, { no: 28, name: "selected_size_preset_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, { no: 29, name: "selected_size_preset", kind: "message", T: Size }, { no: 30, name: "enable_page_count_check", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 31, name: "enable_allowed_file_types", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 32, name: "enable_trim_size_check", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 33, name: "enable_require_fixed_orientation", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 34, name: "enable_bleed_size_check", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 35, name: "enable_set_safe_zone", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 36, name: "enable_image_res_check", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 37, name: "guide_id", kind: "scalar", T: 3 /* ScalarType.INT64 */, opt: true }, { no: 38, name: "guide", kind: "message", T: Guide, opt: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): PreflightCheckConfig { return new PreflightCheckConfig().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): PreflightCheckConfig { return new PreflightCheckConfig().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): PreflightCheckConfig { return new PreflightCheckConfig().fromJsonString(jsonString, options); } static equals(a: PreflightCheckConfig | PlainMessage | undefined, b: PreflightCheckConfig | PlainMessage | undefined): boolean { return proto3.util.equals(PreflightCheckConfig, a, b); } } /** * @generated from message preflight.v2.GetAvailableFileTypesRequest */ export class GetAvailableFileTypesRequest extends Message { constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.GetAvailableFileTypesRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetAvailableFileTypesRequest { return new GetAvailableFileTypesRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetAvailableFileTypesRequest { return new GetAvailableFileTypesRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetAvailableFileTypesRequest { return new GetAvailableFileTypesRequest().fromJsonString(jsonString, options); } static equals(a: GetAvailableFileTypesRequest | PlainMessage | undefined, b: GetAvailableFileTypesRequest | PlainMessage | undefined): boolean { return proto3.util.equals(GetAvailableFileTypesRequest, a, b); } } /** * @generated from message preflight.v2.GetAvailableFileTypesResponse */ export class GetAvailableFileTypesResponse extends Message { /** * @generated from field: repeated preflight.v2.FileType filetypes = 1; */ filetypes: FileType[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.GetAvailableFileTypesResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "filetypes", kind: "message", T: FileType, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetAvailableFileTypesResponse { return new GetAvailableFileTypesResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetAvailableFileTypesResponse { return new GetAvailableFileTypesResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetAvailableFileTypesResponse { return new GetAvailableFileTypesResponse().fromJsonString(jsonString, options); } static equals(a: GetAvailableFileTypesResponse | PlainMessage | undefined, b: GetAvailableFileTypesResponse | PlainMessage | undefined): boolean { return proto3.util.equals(GetAvailableFileTypesResponse, a, b); } } /** * @generated from message preflight.v2.SavePreflightCheckConfigRequest */ export class SavePreflightCheckConfigRequest extends Message { /** * @generated from field: common.v1.ObjectRef object_ref = 1; */ objectRef?: ObjectRef; /** * @generated from field: preflight.v2.PreflightCheckConfig config = 2; */ config?: PreflightCheckConfig; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.SavePreflightCheckConfigRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "object_ref", kind: "message", T: ObjectRef }, { no: 2, name: "config", kind: "message", T: PreflightCheckConfig }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): SavePreflightCheckConfigRequest { return new SavePreflightCheckConfigRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): SavePreflightCheckConfigRequest { return new SavePreflightCheckConfigRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): SavePreflightCheckConfigRequest { return new SavePreflightCheckConfigRequest().fromJsonString(jsonString, options); } static equals(a: SavePreflightCheckConfigRequest | PlainMessage | undefined, b: SavePreflightCheckConfigRequest | PlainMessage | undefined): boolean { return proto3.util.equals(SavePreflightCheckConfigRequest, a, b); } } /** * @generated from message preflight.v2.SavePreflightCheckConfigResponse */ export class SavePreflightCheckConfigResponse extends Message { /** * @generated from field: preflight.v2.PreflightCheckConfig config = 1; */ config?: PreflightCheckConfig; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.SavePreflightCheckConfigResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "config", kind: "message", T: PreflightCheckConfig }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): SavePreflightCheckConfigResponse { return new SavePreflightCheckConfigResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): SavePreflightCheckConfigResponse { return new SavePreflightCheckConfigResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): SavePreflightCheckConfigResponse { return new SavePreflightCheckConfigResponse().fromJsonString(jsonString, options); } static equals(a: SavePreflightCheckConfigResponse | PlainMessage | undefined, b: SavePreflightCheckConfigResponse | PlainMessage | undefined): boolean { return proto3.util.equals(SavePreflightCheckConfigResponse, a, b); } } /** * @generated from message preflight.v2.GetPreflightCheckConfigRequest */ export class GetPreflightCheckConfigRequest extends Message { /** * @generated from field: common.v1.ObjectRef object_ref = 1; */ objectRef?: ObjectRef; /** * @generated from field: int64 artworker_id = 2; */ artworkerId = protoInt64.zero; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.GetPreflightCheckConfigRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "object_ref", kind: "message", T: ObjectRef }, { no: 2, name: "artworker_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetPreflightCheckConfigRequest { return new GetPreflightCheckConfigRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetPreflightCheckConfigRequest { return new GetPreflightCheckConfigRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetPreflightCheckConfigRequest { return new GetPreflightCheckConfigRequest().fromJsonString(jsonString, options); } static equals(a: GetPreflightCheckConfigRequest | PlainMessage | undefined, b: GetPreflightCheckConfigRequest | PlainMessage | undefined): boolean { return proto3.util.equals(GetPreflightCheckConfigRequest, a, b); } } /** * @generated from message preflight.v2.GetPreflightCheckConfigResponse */ export class GetPreflightCheckConfigResponse extends Message { /** * @generated from field: preflight.v2.PreflightCheckConfig config = 1; */ config?: PreflightCheckConfig; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.GetPreflightCheckConfigResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "config", kind: "message", T: PreflightCheckConfig }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetPreflightCheckConfigResponse { return new GetPreflightCheckConfigResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetPreflightCheckConfigResponse { return new GetPreflightCheckConfigResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetPreflightCheckConfigResponse { return new GetPreflightCheckConfigResponse().fromJsonString(jsonString, options); } static equals(a: GetPreflightCheckConfigResponse | PlainMessage | undefined, b: GetPreflightCheckConfigResponse | PlainMessage | undefined): boolean { return proto3.util.equals(GetPreflightCheckConfigResponse, a, b); } }