import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Message, proto3 } from "@bufbuild/protobuf"; /** * Size represents a size definition with dimensions in millimeters * * @generated from message preflight.v2.Size */ export declare class Size extends Message { /** * @generated from field: int64 id = 1; */ id: bigint; /** * @generated from field: int64 artworker_id = 2; */ artworkerId: bigint; /** * @generated from field: string name = 3; */ name: string; /** * @generated from field: double width_mm = 4; */ widthMm: number; /** * @generated from field: double height_mm = 5; */ heightMm: number; /** * @generated from field: string description = 6; */ description: string; /** * @generated from field: int64 created_by = 7; */ createdBy: bigint; /** * @generated from field: int64 created_at = 8; */ createdAt: bigint; /** * @generated from field: int64 updated_at = 9; */ updatedAt: bigint; /** * @generated from field: int64 original_size_id = 10; */ originalSizeId: bigint; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "preflight.v2.Size"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): Size; static fromJson(jsonValue: JsonValue, options?: Partial): Size; static fromJsonString(jsonString: string, options?: Partial): Size; static equals(a: Size | PlainMessage | undefined, b: Size | PlainMessage | undefined): boolean; } /** * SizeCategory represents a category of sizes * * @generated from message preflight.v2.SizeCategory */ export declare class SizeCategory extends Message { /** * @generated from field: int64 id = 1; */ id: bigint; /** * @generated from field: int64 artworker_id = 2; */ artworkerId: bigint; /** * @generated from field: string name = 3; */ name: string; /** * @generated from field: string description = 4; */ description: string; /** * @generated from field: bool is_enabled = 5; */ isEnabled: boolean; /** * @generated from field: bool is_default = 6; */ isDefault: boolean; /** * @generated from field: bool is_preset = 7; */ isPreset: boolean; /** * @generated from field: int64 created_by = 8; */ createdBy: bigint; /** * @generated from field: int64 created_at = 9; */ createdAt: bigint; /** * @generated from field: int64 updated_at = 10; */ updatedAt: bigint; /** * @generated from field: repeated preflight.v2.Size sizes = 11; */ sizes: Size[]; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "preflight.v2.SizeCategory"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): SizeCategory; static fromJson(jsonValue: JsonValue, options?: Partial): SizeCategory; static fromJsonString(jsonString: string, options?: Partial): SizeCategory; static equals(a: SizeCategory | PlainMessage | undefined, b: SizeCategory | PlainMessage | undefined): boolean; } /** * ListSizeCategoriesRequest represents a request to list size categories * * @generated from message preflight.v2.ListSizeCategoriesRequest */ export declare class ListSizeCategoriesRequest extends Message { /** * @generated from field: bool populate_sizes = 1; */ populateSizes: boolean; /** * @generated from field: int64 artworker_id = 2; */ artworkerId: bigint; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "preflight.v2.ListSizeCategoriesRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): ListSizeCategoriesRequest; static fromJson(jsonValue: JsonValue, options?: Partial): ListSizeCategoriesRequest; static fromJsonString(jsonString: string, options?: Partial): ListSizeCategoriesRequest; static equals(a: ListSizeCategoriesRequest | PlainMessage | undefined, b: ListSizeCategoriesRequest | PlainMessage | undefined): boolean; } /** * ListSizeCategoriesResponse represents a response containing a list of size categories * * @generated from message preflight.v2.ListSizeCategoriesResponse */ export declare class ListSizeCategoriesResponse extends Message { /** * @generated from field: repeated preflight.v2.SizeCategory categories = 1; */ categories: SizeCategory[]; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "preflight.v2.ListSizeCategoriesResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): ListSizeCategoriesResponse; static fromJson(jsonValue: JsonValue, options?: Partial): ListSizeCategoriesResponse; static fromJsonString(jsonString: string, options?: Partial): ListSizeCategoriesResponse; static equals(a: ListSizeCategoriesResponse | PlainMessage | undefined, b: ListSizeCategoriesResponse | PlainMessage | undefined): boolean; } /** * GetSizeCategoryRequest represents a request to get a size category * * @generated from message preflight.v2.GetSizeCategoryRequest */ export declare class GetSizeCategoryRequest extends Message { /** * @generated from field: int64 category_id = 1; */ categoryId: bigint; /** * @generated from field: bool populate_sizes = 2; */ populateSizes: boolean; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "preflight.v2.GetSizeCategoryRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): GetSizeCategoryRequest; static fromJson(jsonValue: JsonValue, options?: Partial): GetSizeCategoryRequest; static fromJsonString(jsonString: string, options?: Partial): GetSizeCategoryRequest; static equals(a: GetSizeCategoryRequest | PlainMessage | undefined, b: GetSizeCategoryRequest | PlainMessage | undefined): boolean; } /** * GetSizeCategoryResponse represents a response containing a size category * * @generated from message preflight.v2.GetSizeCategoryResponse */ export declare class GetSizeCategoryResponse extends Message { /** * @generated from field: preflight.v2.SizeCategory category = 1; */ category?: SizeCategory; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "preflight.v2.GetSizeCategoryResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): GetSizeCategoryResponse; static fromJson(jsonValue: JsonValue, options?: Partial): GetSizeCategoryResponse; static fromJsonString(jsonString: string, options?: Partial): GetSizeCategoryResponse; static equals(a: GetSizeCategoryResponse | PlainMessage | undefined, b: GetSizeCategoryResponse | PlainMessage | undefined): boolean; } /** * CreateSizeCategoryRequest represents a request to create a size category * * @generated from message preflight.v2.CreateSizeCategoryRequest */ export declare class CreateSizeCategoryRequest extends Message { /** * @generated from field: string name = 1; */ name: string; /** * @generated from field: string description = 2; */ description: string; /** * @generated from field: bool is_enabled = 3; */ isEnabled: boolean; /** * @generated from field: repeated preflight.v2.Size sizes = 4; */ sizes: Size[]; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "preflight.v2.CreateSizeCategoryRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): CreateSizeCategoryRequest; static fromJson(jsonValue: JsonValue, options?: Partial): CreateSizeCategoryRequest; static fromJsonString(jsonString: string, options?: Partial): CreateSizeCategoryRequest; static equals(a: CreateSizeCategoryRequest | PlainMessage | undefined, b: CreateSizeCategoryRequest | PlainMessage | undefined): boolean; } /** * CreateSizeCategoryResponse represents a response containing a created size category * * @generated from message preflight.v2.CreateSizeCategoryResponse */ export declare class CreateSizeCategoryResponse extends Message { /** * @generated from field: preflight.v2.SizeCategory category = 1; */ category?: SizeCategory; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "preflight.v2.CreateSizeCategoryResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): CreateSizeCategoryResponse; static fromJson(jsonValue: JsonValue, options?: Partial): CreateSizeCategoryResponse; static fromJsonString(jsonString: string, options?: Partial): CreateSizeCategoryResponse; static equals(a: CreateSizeCategoryResponse | PlainMessage | undefined, b: CreateSizeCategoryResponse | PlainMessage | undefined): boolean; } /** * UpdateSizeCategoryRequest represents a request to update a size category * * @generated from message preflight.v2.UpdateSizeCategoryRequest */ export declare class UpdateSizeCategoryRequest extends Message { /** * @generated from field: int64 category_id = 1; */ categoryId: bigint; /** * @generated from field: string name = 2; */ name: string; /** * @generated from field: string description = 3; */ description: string; /** * @generated from field: bool is_enabled = 4; */ isEnabled: boolean; /** * @generated from field: repeated preflight.v2.Size sizes = 5; */ sizes: Size[]; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "preflight.v2.UpdateSizeCategoryRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): UpdateSizeCategoryRequest; static fromJson(jsonValue: JsonValue, options?: Partial): UpdateSizeCategoryRequest; static fromJsonString(jsonString: string, options?: Partial): UpdateSizeCategoryRequest; static equals(a: UpdateSizeCategoryRequest | PlainMessage | undefined, b: UpdateSizeCategoryRequest | PlainMessage | undefined): boolean; } /** * UpdateSizeCategoryResponse represents a response containing an updated size category * * @generated from message preflight.v2.UpdateSizeCategoryResponse */ export declare class UpdateSizeCategoryResponse extends Message { /** * @generated from field: preflight.v2.SizeCategory category = 1; */ category?: SizeCategory; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "preflight.v2.UpdateSizeCategoryResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): UpdateSizeCategoryResponse; static fromJson(jsonValue: JsonValue, options?: Partial): UpdateSizeCategoryResponse; static fromJsonString(jsonString: string, options?: Partial): UpdateSizeCategoryResponse; static equals(a: UpdateSizeCategoryResponse | PlainMessage | undefined, b: UpdateSizeCategoryResponse | PlainMessage | undefined): boolean; } /** * Delete a size category by ID, only if it is not the default size category * * @generated from message preflight.v2.DeleteSizeCategoryRequest */ export declare class DeleteSizeCategoryRequest extends Message { /** * @generated from field: int64 id = 1; */ id: bigint; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "preflight.v2.DeleteSizeCategoryRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): DeleteSizeCategoryRequest; static fromJson(jsonValue: JsonValue, options?: Partial): DeleteSizeCategoryRequest; static fromJsonString(jsonString: string, options?: Partial): DeleteSizeCategoryRequest; static equals(a: DeleteSizeCategoryRequest | PlainMessage | undefined, b: DeleteSizeCategoryRequest | PlainMessage | undefined): boolean; } /** * Returns true if the size category was deleted successfully * * @generated from message preflight.v2.DeleteSizeCategoryResponse */ export declare class DeleteSizeCategoryResponse extends Message { /** * @generated from field: bool success = 1; */ success: boolean; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "preflight.v2.DeleteSizeCategoryResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): DeleteSizeCategoryResponse; static fromJson(jsonValue: JsonValue, options?: Partial): DeleteSizeCategoryResponse; static fromJsonString(jsonString: string, options?: Partial): DeleteSizeCategoryResponse; static equals(a: DeleteSizeCategoryResponse | PlainMessage | undefined, b: DeleteSizeCategoryResponse | PlainMessage | undefined): boolean; }