// @generated by protoc-gen-es v1.10.1 with parameter "target=ts" // @generated from file preflight/v2/size.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 } from "@bufbuild/protobuf"; /** * Size represents a size definition with dimensions in millimeters * * @generated from message preflight.v2.Size */ export class Size extends Message { /** * @generated from field: int64 id = 1; */ id = protoInt64.zero; /** * @generated from field: int64 artworker_id = 2; */ artworkerId = protoInt64.zero; /** * @generated from field: string name = 3; */ name = ""; /** * @generated from field: double width_mm = 4; */ widthMm = 0; /** * @generated from field: double height_mm = 5; */ heightMm = 0; /** * @generated from field: string description = 6; */ description = ""; /** * @generated from field: int64 created_by = 7; */ createdBy = protoInt64.zero; /** * @generated from field: int64 created_at = 8; */ createdAt = protoInt64.zero; /** * @generated from field: int64 updated_at = 9; */ updatedAt = protoInt64.zero; /** * @generated from field: int64 original_size_id = 10; */ originalSizeId = protoInt64.zero; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.Size"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, { no: 2, name: "artworker_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, { no: 3, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 4, name: "width_mm", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, { no: 5, name: "height_mm", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, { no: 6, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 7, name: "created_by", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, { no: 8, name: "created_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, { no: 9, name: "updated_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, { no: 10, name: "original_size_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): Size { return new Size().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): Size { return new Size().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): Size { return new Size().fromJsonString(jsonString, options); } static equals(a: Size | PlainMessage | undefined, b: Size | PlainMessage | undefined): boolean { return proto3.util.equals(Size, a, b); } } /** * SizeCategory represents a category of sizes * * @generated from message preflight.v2.SizeCategory */ export class SizeCategory extends Message { /** * @generated from field: int64 id = 1; */ id = protoInt64.zero; /** * @generated from field: int64 artworker_id = 2; */ artworkerId = protoInt64.zero; /** * @generated from field: string name = 3; */ name = ""; /** * @generated from field: string description = 4; */ description = ""; /** * @generated from field: bool is_enabled = 5; */ isEnabled = false; /** * @generated from field: bool is_default = 6; */ isDefault = false; /** * @generated from field: bool is_preset = 7; */ isPreset = false; /** * @generated from field: int64 created_by = 8; */ createdBy = protoInt64.zero; /** * @generated from field: int64 created_at = 9; */ createdAt = protoInt64.zero; /** * @generated from field: int64 updated_at = 10; */ updatedAt = protoInt64.zero; /** * @generated from field: repeated preflight.v2.Size sizes = 11; */ sizes: Size[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.SizeCategory"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, { no: 2, name: "artworker_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, { no: 3, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 4, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 5, name: "is_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 6, name: "is_default", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 7, name: "is_preset", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 8, name: "created_by", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, { no: 9, name: "created_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, { no: 10, name: "updated_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, { no: 11, name: "sizes", kind: "message", T: Size, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): SizeCategory { return new SizeCategory().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): SizeCategory { return new SizeCategory().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): SizeCategory { return new SizeCategory().fromJsonString(jsonString, options); } static equals(a: SizeCategory | PlainMessage | undefined, b: SizeCategory | PlainMessage | undefined): boolean { return proto3.util.equals(SizeCategory, a, b); } } /** * ListSizeCategoriesRequest represents a request to list size categories * * @generated from message preflight.v2.ListSizeCategoriesRequest */ export class ListSizeCategoriesRequest extends Message { /** * @generated from field: bool populate_sizes = 1; */ populateSizes = false; /** * @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.ListSizeCategoriesRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "populate_sizes", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 2, name: "artworker_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): ListSizeCategoriesRequest { return new ListSizeCategoriesRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): ListSizeCategoriesRequest { return new ListSizeCategoriesRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): ListSizeCategoriesRequest { return new ListSizeCategoriesRequest().fromJsonString(jsonString, options); } static equals(a: ListSizeCategoriesRequest | PlainMessage | undefined, b: ListSizeCategoriesRequest | PlainMessage | undefined): boolean { return proto3.util.equals(ListSizeCategoriesRequest, a, b); } } /** * ListSizeCategoriesResponse represents a response containing a list of size categories * * @generated from message preflight.v2.ListSizeCategoriesResponse */ export class ListSizeCategoriesResponse extends Message { /** * @generated from field: repeated preflight.v2.SizeCategory categories = 1; */ categories: SizeCategory[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.ListSizeCategoriesResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "categories", kind: "message", T: SizeCategory, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): ListSizeCategoriesResponse { return new ListSizeCategoriesResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): ListSizeCategoriesResponse { return new ListSizeCategoriesResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): ListSizeCategoriesResponse { return new ListSizeCategoriesResponse().fromJsonString(jsonString, options); } static equals(a: ListSizeCategoriesResponse | PlainMessage | undefined, b: ListSizeCategoriesResponse | PlainMessage | undefined): boolean { return proto3.util.equals(ListSizeCategoriesResponse, a, b); } } /** * GetSizeCategoryRequest represents a request to get a size category * * @generated from message preflight.v2.GetSizeCategoryRequest */ export class GetSizeCategoryRequest extends Message { /** * @generated from field: int64 category_id = 1; */ categoryId = protoInt64.zero; /** * @generated from field: bool populate_sizes = 2; */ populateSizes = false; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.GetSizeCategoryRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "category_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, { no: 2, name: "populate_sizes", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetSizeCategoryRequest { return new GetSizeCategoryRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetSizeCategoryRequest { return new GetSizeCategoryRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetSizeCategoryRequest { return new GetSizeCategoryRequest().fromJsonString(jsonString, options); } static equals(a: GetSizeCategoryRequest | PlainMessage | undefined, b: GetSizeCategoryRequest | PlainMessage | undefined): boolean { return proto3.util.equals(GetSizeCategoryRequest, a, b); } } /** * GetSizeCategoryResponse represents a response containing a size category * * @generated from message preflight.v2.GetSizeCategoryResponse */ export class GetSizeCategoryResponse extends Message { /** * @generated from field: preflight.v2.SizeCategory category = 1; */ category?: SizeCategory; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.GetSizeCategoryResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "category", kind: "message", T: SizeCategory }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetSizeCategoryResponse { return new GetSizeCategoryResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetSizeCategoryResponse { return new GetSizeCategoryResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetSizeCategoryResponse { return new GetSizeCategoryResponse().fromJsonString(jsonString, options); } static equals(a: GetSizeCategoryResponse | PlainMessage | undefined, b: GetSizeCategoryResponse | PlainMessage | undefined): boolean { return proto3.util.equals(GetSizeCategoryResponse, a, b); } } /** * CreateSizeCategoryRequest represents a request to create a size category * * @generated from message preflight.v2.CreateSizeCategoryRequest */ export class CreateSizeCategoryRequest extends Message { /** * @generated from field: string name = 1; */ name = ""; /** * @generated from field: string description = 2; */ description = ""; /** * @generated from field: bool is_enabled = 3; */ isEnabled = false; /** * @generated from field: repeated preflight.v2.Size sizes = 4; */ sizes: Size[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.CreateSizeCategoryRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "is_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 4, name: "sizes", kind: "message", T: Size, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): CreateSizeCategoryRequest { return new CreateSizeCategoryRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): CreateSizeCategoryRequest { return new CreateSizeCategoryRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): CreateSizeCategoryRequest { return new CreateSizeCategoryRequest().fromJsonString(jsonString, options); } static equals(a: CreateSizeCategoryRequest | PlainMessage | undefined, b: CreateSizeCategoryRequest | PlainMessage | undefined): boolean { return proto3.util.equals(CreateSizeCategoryRequest, a, b); } } /** * CreateSizeCategoryResponse represents a response containing a created size category * * @generated from message preflight.v2.CreateSizeCategoryResponse */ export class CreateSizeCategoryResponse extends Message { /** * @generated from field: preflight.v2.SizeCategory category = 1; */ category?: SizeCategory; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.CreateSizeCategoryResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "category", kind: "message", T: SizeCategory }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): CreateSizeCategoryResponse { return new CreateSizeCategoryResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): CreateSizeCategoryResponse { return new CreateSizeCategoryResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): CreateSizeCategoryResponse { return new CreateSizeCategoryResponse().fromJsonString(jsonString, options); } static equals(a: CreateSizeCategoryResponse | PlainMessage | undefined, b: CreateSizeCategoryResponse | PlainMessage | undefined): boolean { return proto3.util.equals(CreateSizeCategoryResponse, a, b); } } /** * UpdateSizeCategoryRequest represents a request to update a size category * * @generated from message preflight.v2.UpdateSizeCategoryRequest */ export class UpdateSizeCategoryRequest extends Message { /** * @generated from field: int64 category_id = 1; */ categoryId = protoInt64.zero; /** * @generated from field: string name = 2; */ name = ""; /** * @generated from field: string description = 3; */ description = ""; /** * @generated from field: bool is_enabled = 4; */ isEnabled = false; /** * @generated from field: repeated preflight.v2.Size sizes = 5; */ sizes: Size[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.UpdateSizeCategoryRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "category_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 4, name: "is_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 5, name: "sizes", kind: "message", T: Size, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): UpdateSizeCategoryRequest { return new UpdateSizeCategoryRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): UpdateSizeCategoryRequest { return new UpdateSizeCategoryRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): UpdateSizeCategoryRequest { return new UpdateSizeCategoryRequest().fromJsonString(jsonString, options); } static equals(a: UpdateSizeCategoryRequest | PlainMessage | undefined, b: UpdateSizeCategoryRequest | PlainMessage | undefined): boolean { return proto3.util.equals(UpdateSizeCategoryRequest, a, b); } } /** * UpdateSizeCategoryResponse represents a response containing an updated size category * * @generated from message preflight.v2.UpdateSizeCategoryResponse */ export class UpdateSizeCategoryResponse extends Message { /** * @generated from field: preflight.v2.SizeCategory category = 1; */ category?: SizeCategory; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.UpdateSizeCategoryResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "category", kind: "message", T: SizeCategory }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): UpdateSizeCategoryResponse { return new UpdateSizeCategoryResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): UpdateSizeCategoryResponse { return new UpdateSizeCategoryResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): UpdateSizeCategoryResponse { return new UpdateSizeCategoryResponse().fromJsonString(jsonString, options); } static equals(a: UpdateSizeCategoryResponse | PlainMessage | undefined, b: UpdateSizeCategoryResponse | PlainMessage | undefined): boolean { return proto3.util.equals(UpdateSizeCategoryResponse, a, b); } } /** * Delete a size category by ID, only if it is not the default size category * * @generated from message preflight.v2.DeleteSizeCategoryRequest */ export class DeleteSizeCategoryRequest extends Message { /** * @generated from field: int64 id = 1; */ id = protoInt64.zero; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.DeleteSizeCategoryRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): DeleteSizeCategoryRequest { return new DeleteSizeCategoryRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): DeleteSizeCategoryRequest { return new DeleteSizeCategoryRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): DeleteSizeCategoryRequest { return new DeleteSizeCategoryRequest().fromJsonString(jsonString, options); } static equals(a: DeleteSizeCategoryRequest | PlainMessage | undefined, b: DeleteSizeCategoryRequest | PlainMessage | undefined): boolean { return proto3.util.equals(DeleteSizeCategoryRequest, a, b); } } /** * Returns true if the size category was deleted successfully * * @generated from message preflight.v2.DeleteSizeCategoryResponse */ export class DeleteSizeCategoryResponse extends Message { /** * @generated from field: bool success = 1; */ success = false; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "preflight.v2.DeleteSizeCategoryResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "success", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): DeleteSizeCategoryResponse { return new DeleteSizeCategoryResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): DeleteSizeCategoryResponse { return new DeleteSizeCategoryResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): DeleteSizeCategoryResponse { return new DeleteSizeCategoryResponse().fromJsonString(jsonString, options); } static equals(a: DeleteSizeCategoryResponse | PlainMessage | undefined, b: DeleteSizeCategoryResponse | PlainMessage | undefined): boolean { return proto3.util.equals(DeleteSizeCategoryResponse, a, b); } }