@arascreative/erp-api-client 1.2.0 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -29,64 +29,10 @@ interface AddressSearchResultItemDto {
29
29
  interface AntiforgeryTokenResponse {
30
30
  requestToken: string;
31
31
  }
32
- interface CatalogAttributeRequest {
33
- name: string;
34
- value: string;
35
- }
36
- interface CatalogItemResponse {
37
- id: string;
38
- categoryId: string;
39
- name: string;
40
- slug: string;
41
- status: string;
42
- classification: string;
43
- variants: CatalogVariantRequest[];
44
- }
45
- interface CatalogListItemResponse {
46
- id: string;
47
- categoryId: string;
48
- name: string;
49
- slug: string;
50
- status: string;
51
- classification: string;
52
- variantCount: number;
53
- }
54
- type CatalogPriceRequestSale = null | CatalogSalePriceRequest;
55
- type CatalogPriceRequestWholesale = null | CatalogWholesalePriceRequest[];
56
- interface CatalogPriceRequest {
57
- baseAmount: number;
58
- baseCurrency: string;
59
- sale?: CatalogPriceRequestSale;
60
- wholesale?: CatalogPriceRequestWholesale;
61
- }
62
- interface CatalogSalePriceRequest {
63
- amount: number;
64
- currency: string;
65
- startAt: string;
66
- endAt: string;
67
- }
68
- type CatalogVariantRequestId = null | string;
69
- interface CatalogVariantRequest {
70
- id?: CatalogVariantRequestId;
71
- code: string;
72
- itemId: string;
73
- multiplier: number;
74
- attributes: CatalogAttributeRequest[];
75
- weight: CatalogWeightRequest;
76
- price: CatalogPriceRequest;
77
- }
78
- interface CatalogWeightRequest {
79
- value: number;
80
- unit: string;
81
- }
82
- interface CatalogWholesalePriceRequest {
83
- minQty: number;
84
- amount: number;
85
- currency: string;
86
- }
87
32
  type ConsumeBatchRequestExternalReferenceNo = null | string;
88
33
  type ConsumeBatchRequestNote = null | string;
89
34
  interface ConsumeBatchRequest {
35
+ warehouseId: string;
90
36
  quantity: number;
91
37
  sourceType: ConsumeBatchSourceType;
92
38
  externalReferenceNo?: ConsumeBatchRequestExternalReferenceNo;
@@ -117,11 +63,23 @@ interface CreateBatchRequest {
117
63
  note?: CreateBatchRequestNote;
118
64
  receivedBy?: CreateBatchRequestReceivedBy;
119
65
  }
66
+ interface CreateProductRequest {
67
+ categoryId: string;
68
+ name: string;
69
+ slug: string;
70
+ status?: ProductStatus;
71
+ classification: ProductClassification;
72
+ }
120
73
  interface CreateStockItemCommand {
121
74
  name: string;
122
75
  sku: string;
123
76
  unit: string;
124
77
  }
78
+ interface CreateVariantRequest {
79
+ code: string;
80
+ attributes?: VariantAttributeRequest[];
81
+ weight: VariantWeightRequest;
82
+ }
125
83
  type CreateWarehouseCommandFullAddressText = null | string;
126
84
  interface CreateWarehouseCommand {
127
85
  name: string;
@@ -143,8 +101,8 @@ interface LoginRequest {
143
101
  interface LoginTwoFactorResponse {
144
102
  requiresTwoFactor: boolean;
145
103
  }
146
- interface PagedListOfCatalogListItemResponse {
147
- items: CatalogListItemResponse[];
104
+ interface PagedListOfProductResponse {
105
+ items: ProductResponse[];
148
106
  page: number;
149
107
  pageSize: number;
150
108
  totalCount: number;
@@ -170,6 +128,15 @@ interface PagedListOfStockMovementResponse {
170
128
  hasNextPage?: boolean;
171
129
  hasPreviousPage?: boolean;
172
130
  }
131
+ interface PagedListOfVariantResponse {
132
+ items: VariantResponse[];
133
+ page: number;
134
+ pageSize: number;
135
+ totalCount: number;
136
+ totalPages?: number;
137
+ hasNextPage?: boolean;
138
+ hasPreviousPage?: boolean;
139
+ }
173
140
  interface PagedListOfWarehouseResponse {
174
141
  items: WarehouseResponse[];
175
142
  page: number;
@@ -200,6 +167,26 @@ interface ProblemDetails {
200
167
  detail?: ProblemDetailsDetail;
201
168
  instance?: ProblemDetailsInstance;
202
169
  }
170
+ type ProductClassification = (typeof ProductClassification)[keyof typeof ProductClassification];
171
+ declare const ProductClassification: {
172
+ readonly Physical: "Physical";
173
+ readonly Digital: "Digital";
174
+ };
175
+ interface ProductResponse {
176
+ id: string;
177
+ categoryId: string;
178
+ name: string;
179
+ slug: string;
180
+ status: ProductStatus;
181
+ classification: ProductClassification;
182
+ variantCount: number;
183
+ }
184
+ type ProductStatus = (typeof ProductStatus)[keyof typeof ProductStatus];
185
+ declare const ProductStatus: {
186
+ readonly Tes: "Tes";
187
+ readonly Live: "Live";
188
+ readonly Archived: "Archived";
189
+ };
203
190
  interface ResetPasswordRequest {
204
191
  email: string;
205
192
  resetCode: string;
@@ -293,6 +280,18 @@ interface UpdateAccountRequest {
293
280
  newPassword: UpdateAccountRequestNewPassword;
294
281
  oldPassword: UpdateAccountRequestOldPassword;
295
282
  }
283
+ interface UpdateProductRequest {
284
+ categoryId: string;
285
+ name: string;
286
+ slug: string;
287
+ status: ProductStatus;
288
+ classification: ProductClassification;
289
+ }
290
+ interface UpdateVariantRequest {
291
+ code: string;
292
+ attributes?: VariantAttributeRequest[];
293
+ weight: VariantWeightRequest;
294
+ }
296
295
  type UpdateWarehouseCommandFullAddressText = null | string;
297
296
  interface UpdateWarehouseCommand {
298
297
  warehouseId?: string;
@@ -301,19 +300,74 @@ interface UpdateWarehouseCommand {
301
300
  personInCharge: PersonInChargeData;
302
301
  fullAddressText?: UpdateWarehouseCommandFullAddressText;
303
302
  }
304
- interface UpsertCatalogItemRequest {
305
- categoryId: string;
306
- name: string;
307
- slug: string;
308
- status: string;
309
- classification: string;
310
- variants: CatalogVariantRequest[];
303
+ type UpsertVariantPricingRequestSale = null | VariantSalePriceRequest;
304
+ interface UpsertVariantPricingRequest {
305
+ baseAmount: number;
306
+ baseCurrency: string;
307
+ sale?: UpsertVariantPricingRequestSale;
308
+ wholesale?: VariantWholesalePriceRequest[];
311
309
  }
312
310
  interface UserInfo {
313
311
  id: string;
314
312
  email: string;
315
313
  isActive: boolean;
316
314
  }
315
+ interface VariantAttributeRequest {
316
+ name: string;
317
+ value: string;
318
+ }
319
+ interface VariantAttributeResponse {
320
+ name: string;
321
+ value: string;
322
+ }
323
+ type VariantPricingResponseSale = null | VariantSalePriceResponse;
324
+ interface VariantPricingResponse {
325
+ variantId: string;
326
+ baseAmount: number;
327
+ baseCurrency: string;
328
+ effectiveAmount: number;
329
+ effectiveCurrency: string;
330
+ sale?: VariantPricingResponseSale;
331
+ wholesale?: VariantWholesalePriceResponse[];
332
+ }
333
+ interface VariantResponse {
334
+ id: string;
335
+ productId: string;
336
+ code: string;
337
+ attributes?: VariantAttributeResponse[];
338
+ weight: VariantWeightResponse;
339
+ }
340
+ interface VariantSalePriceRequest {
341
+ amount: number;
342
+ currency: string;
343
+ startAt: string;
344
+ endAt: string;
345
+ }
346
+ interface VariantSalePriceResponse {
347
+ amount: number;
348
+ currency: string;
349
+ startAt: string;
350
+ endAt: string;
351
+ isActive: boolean;
352
+ }
353
+ interface VariantWeightRequest {
354
+ value: number;
355
+ unit: string;
356
+ }
357
+ interface VariantWeightResponse {
358
+ value: number;
359
+ unit: string;
360
+ }
361
+ interface VariantWholesalePriceRequest {
362
+ minQty: number;
363
+ amount: number;
364
+ currency: string;
365
+ }
366
+ interface VariantWholesalePriceResponse {
367
+ minQty: number;
368
+ amount: number;
369
+ currency: string;
370
+ }
317
371
  interface WarehouseOptionResponse {
318
372
  warehouseId: string;
319
373
  name: string;
@@ -341,7 +395,11 @@ type SearchAddressesParams = {
341
395
  keyword: string;
342
396
  limit?: number;
343
397
  };
344
- type ListCatalogItemsParams = {
398
+ type ListProductsParams = {
399
+ page?: number;
400
+ pageSize?: number;
401
+ };
402
+ type ListVariantsParams = {
345
403
  page?: number;
346
404
  pageSize?: number;
347
405
  };
@@ -671,152 +729,401 @@ declare function useSearchAddresses<TData = Awaited<ReturnType<typeof searchAddr
671
729
  queryKey: DataTag<QueryKey, TData>;
672
730
  };
673
731
  /**
674
- * Accepts a catalog item and its variants. This operation is not implemented yet.
675
- * @summary Create a catalog item
732
+ * Creates the product shell only. Add variants and pricing through their own resources.
733
+ * @summary Create a product
676
734
  */
677
- declare const createCatalogItem: (upsertCatalogItemRequest: UpsertCatalogItemRequest, options?: AxiosRequestConfig) => Promise<AxiosResponse<CatalogItemResponse>>;
678
- declare const getCreateCatalogItemMutationOptions: <TError = AxiosError<ProblemDetails>, TContext = unknown>(options?: {
679
- mutation?: UseMutationOptions<Awaited<ReturnType<typeof createCatalogItem>>, TError, {
680
- data: UpsertCatalogItemRequest;
735
+ declare const createProduct: (createProductRequest: CreateProductRequest, options?: AxiosRequestConfig) => Promise<AxiosResponse<ProductResponse>>;
736
+ declare const getCreateProductMutationOptions: <TError = AxiosError<ProblemDetails>, TContext = unknown>(options?: {
737
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof createProduct>>, TError, {
738
+ data: CreateProductRequest;
681
739
  }, TContext>;
682
740
  axios?: AxiosRequestConfig;
683
- }) => UseMutationOptions<Awaited<ReturnType<typeof createCatalogItem>>, TError, {
684
- data: UpsertCatalogItemRequest;
741
+ }) => UseMutationOptions<Awaited<ReturnType<typeof createProduct>>, TError, {
742
+ data: CreateProductRequest;
685
743
  }, TContext>;
686
- type CreateCatalogItemMutationResult = NonNullable<Awaited<ReturnType<typeof createCatalogItem>>>;
687
- type CreateCatalogItemMutationBody = UpsertCatalogItemRequest;
688
- type CreateCatalogItemMutationError = AxiosError<ProblemDetails>;
744
+ type CreateProductMutationResult = NonNullable<Awaited<ReturnType<typeof createProduct>>>;
745
+ type CreateProductMutationBody = CreateProductRequest;
746
+ type CreateProductMutationError = AxiosError<ProblemDetails>;
689
747
  /**
690
- * @summary Create a catalog item
748
+ * @summary Create a product
691
749
  */
692
- declare const useCreateCatalogItem: <TError = AxiosError<ProblemDetails>, TContext = unknown>(options?: {
693
- mutation?: UseMutationOptions<Awaited<ReturnType<typeof createCatalogItem>>, TError, {
694
- data: UpsertCatalogItemRequest;
750
+ declare const useCreateProduct: <TError = AxiosError<ProblemDetails>, TContext = unknown>(options?: {
751
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof createProduct>>, TError, {
752
+ data: CreateProductRequest;
695
753
  }, TContext>;
696
754
  axios?: AxiosRequestConfig;
697
- }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof createCatalogItem>>, TError, {
698
- data: UpsertCatalogItemRequest;
755
+ }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof createProduct>>, TError, {
756
+ data: CreateProductRequest;
699
757
  }, TContext>;
700
758
  /**
701
- * Returns a paginated list of catalog items. This operation is not implemented yet.
702
- * @summary List catalog items
759
+ * Returns a paginated list of products with their variant count.
760
+ * @summary List products
761
+ */
762
+ declare const listProducts: (params?: ListProductsParams, options?: AxiosRequestConfig) => Promise<AxiosResponse<PagedListOfProductResponse>>;
763
+ declare const getListProductsQueryKey: (params?: ListProductsParams) => readonly ["/api/catalog/products", ...ListProductsParams[]];
764
+ declare const getListProductsQueryOptions: <TData = Awaited<ReturnType<typeof listProducts>>, TError = AxiosError<ProblemDetails>>(params?: ListProductsParams, options?: {
765
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof listProducts>>, TError, TData>>;
766
+ axios?: AxiosRequestConfig;
767
+ }) => UseQueryOptions<Awaited<ReturnType<typeof listProducts>>, TError, TData> & {
768
+ queryKey: DataTag<QueryKey, TData>;
769
+ };
770
+ type ListProductsQueryResult = NonNullable<Awaited<ReturnType<typeof listProducts>>>;
771
+ type ListProductsQueryError = AxiosError<ProblemDetails>;
772
+ declare function useListProducts<TData = Awaited<ReturnType<typeof listProducts>>, TError = AxiosError<ProblemDetails>>(params: undefined | ListProductsParams, options: {
773
+ query: Partial<UseQueryOptions<Awaited<ReturnType<typeof listProducts>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof listProducts>>, TError, Awaited<ReturnType<typeof listProducts>>>, 'initialData'>;
774
+ axios?: AxiosRequestConfig;
775
+ }, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
776
+ queryKey: DataTag<QueryKey, TData>;
777
+ };
778
+ declare function useListProducts<TData = Awaited<ReturnType<typeof listProducts>>, TError = AxiosError<ProblemDetails>>(params?: ListProductsParams, options?: {
779
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof listProducts>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof listProducts>>, TError, Awaited<ReturnType<typeof listProducts>>>, 'initialData'>;
780
+ axios?: AxiosRequestConfig;
781
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
782
+ queryKey: DataTag<QueryKey, TData>;
783
+ };
784
+ declare function useListProducts<TData = Awaited<ReturnType<typeof listProducts>>, TError = AxiosError<ProblemDetails>>(params?: ListProductsParams, options?: {
785
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof listProducts>>, TError, TData>>;
786
+ axios?: AxiosRequestConfig;
787
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
788
+ queryKey: DataTag<QueryKey, TData>;
789
+ };
790
+ /**
791
+ * Returns one product. Variants are listed from the nested variants resource.
792
+ * @summary Get product by id
703
793
  */
704
- declare const listCatalogItems: (params?: ListCatalogItemsParams, options?: AxiosRequestConfig) => Promise<AxiosResponse<PagedListOfCatalogListItemResponse>>;
705
- declare const getListCatalogItemsQueryKey: (params?: ListCatalogItemsParams) => readonly ["/api/catalog", ...ListCatalogItemsParams[]];
706
- declare const getListCatalogItemsQueryOptions: <TData = Awaited<ReturnType<typeof listCatalogItems>>, TError = AxiosError<ProblemDetails>>(params?: ListCatalogItemsParams, options?: {
707
- query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof listCatalogItems>>, TError, TData>>;
794
+ declare const getProduct: (id: string, options?: AxiosRequestConfig) => Promise<AxiosResponse<ProductResponse>>;
795
+ declare const getGetProductQueryKey: (id?: string) => readonly [`/api/catalog/products/${string}`];
796
+ declare const getGetProductQueryOptions: <TData = Awaited<ReturnType<typeof getProduct>>, TError = AxiosError<ProblemDetails>>(id: string, options?: {
797
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getProduct>>, TError, TData>>;
708
798
  axios?: AxiosRequestConfig;
709
- }) => UseQueryOptions<Awaited<ReturnType<typeof listCatalogItems>>, TError, TData> & {
799
+ }) => UseQueryOptions<Awaited<ReturnType<typeof getProduct>>, TError, TData> & {
710
800
  queryKey: DataTag<QueryKey, TData>;
711
801
  };
712
- type ListCatalogItemsQueryResult = NonNullable<Awaited<ReturnType<typeof listCatalogItems>>>;
713
- type ListCatalogItemsQueryError = AxiosError<ProblemDetails>;
714
- declare function useListCatalogItems<TData = Awaited<ReturnType<typeof listCatalogItems>>, TError = AxiosError<ProblemDetails>>(params: undefined | ListCatalogItemsParams, options: {
715
- query: Partial<UseQueryOptions<Awaited<ReturnType<typeof listCatalogItems>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof listCatalogItems>>, TError, Awaited<ReturnType<typeof listCatalogItems>>>, 'initialData'>;
802
+ type GetProductQueryResult = NonNullable<Awaited<ReturnType<typeof getProduct>>>;
803
+ type GetProductQueryError = AxiosError<ProblemDetails>;
804
+ declare function useGetProduct<TData = Awaited<ReturnType<typeof getProduct>>, TError = AxiosError<ProblemDetails>>(id: string, options: {
805
+ query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getProduct>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof getProduct>>, TError, Awaited<ReturnType<typeof getProduct>>>, 'initialData'>;
716
806
  axios?: AxiosRequestConfig;
717
807
  }, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
718
808
  queryKey: DataTag<QueryKey, TData>;
719
809
  };
720
- declare function useListCatalogItems<TData = Awaited<ReturnType<typeof listCatalogItems>>, TError = AxiosError<ProblemDetails>>(params?: ListCatalogItemsParams, options?: {
721
- query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof listCatalogItems>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof listCatalogItems>>, TError, Awaited<ReturnType<typeof listCatalogItems>>>, 'initialData'>;
810
+ declare function useGetProduct<TData = Awaited<ReturnType<typeof getProduct>>, TError = AxiosError<ProblemDetails>>(id: string, options?: {
811
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getProduct>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof getProduct>>, TError, Awaited<ReturnType<typeof getProduct>>>, 'initialData'>;
722
812
  axios?: AxiosRequestConfig;
723
813
  }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
724
814
  queryKey: DataTag<QueryKey, TData>;
725
815
  };
726
- declare function useListCatalogItems<TData = Awaited<ReturnType<typeof listCatalogItems>>, TError = AxiosError<ProblemDetails>>(params?: ListCatalogItemsParams, options?: {
727
- query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof listCatalogItems>>, TError, TData>>;
816
+ declare function useGetProduct<TData = Awaited<ReturnType<typeof getProduct>>, TError = AxiosError<ProblemDetails>>(id: string, options?: {
817
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getProduct>>, TError, TData>>;
728
818
  axios?: AxiosRequestConfig;
729
819
  }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
730
820
  queryKey: DataTag<QueryKey, TData>;
731
821
  };
732
822
  /**
733
- * Replaces a catalog item and its variants. This operation is not implemented yet.
734
- * @summary Update a catalog item
823
+ * Replaces the product shell. Variants and pricing are left untouched.
824
+ * @summary Update a product
735
825
  */
736
- declare const updateCatalogItem: (id: string, upsertCatalogItemRequest: UpsertCatalogItemRequest, options?: AxiosRequestConfig) => Promise<AxiosResponse<CatalogItemResponse>>;
737
- declare const getUpdateCatalogItemMutationOptions: <TError = AxiosError<ProblemDetails>, TContext = unknown>(options?: {
738
- mutation?: UseMutationOptions<Awaited<ReturnType<typeof updateCatalogItem>>, TError, {
826
+ declare const updateProduct: (id: string, updateProductRequest: UpdateProductRequest, options?: AxiosRequestConfig) => Promise<AxiosResponse<ProductResponse>>;
827
+ declare const getUpdateProductMutationOptions: <TError = AxiosError<ProblemDetails>, TContext = unknown>(options?: {
828
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof updateProduct>>, TError, {
739
829
  id: string;
740
- data: UpsertCatalogItemRequest;
830
+ data: UpdateProductRequest;
741
831
  }, TContext>;
742
832
  axios?: AxiosRequestConfig;
743
- }) => UseMutationOptions<Awaited<ReturnType<typeof updateCatalogItem>>, TError, {
833
+ }) => UseMutationOptions<Awaited<ReturnType<typeof updateProduct>>, TError, {
744
834
  id: string;
745
- data: UpsertCatalogItemRequest;
835
+ data: UpdateProductRequest;
746
836
  }, TContext>;
747
- type UpdateCatalogItemMutationResult = NonNullable<Awaited<ReturnType<typeof updateCatalogItem>>>;
748
- type UpdateCatalogItemMutationBody = UpsertCatalogItemRequest;
749
- type UpdateCatalogItemMutationError = AxiosError<ProblemDetails>;
837
+ type UpdateProductMutationResult = NonNullable<Awaited<ReturnType<typeof updateProduct>>>;
838
+ type UpdateProductMutationBody = UpdateProductRequest;
839
+ type UpdateProductMutationError = AxiosError<ProblemDetails>;
750
840
  /**
751
- * @summary Update a catalog item
841
+ * @summary Update a product
752
842
  */
753
- declare const useUpdateCatalogItem: <TError = AxiosError<ProblemDetails>, TContext = unknown>(options?: {
754
- mutation?: UseMutationOptions<Awaited<ReturnType<typeof updateCatalogItem>>, TError, {
843
+ declare const useUpdateProduct: <TError = AxiosError<ProblemDetails>, TContext = unknown>(options?: {
844
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof updateProduct>>, TError, {
755
845
  id: string;
756
- data: UpsertCatalogItemRequest;
846
+ data: UpdateProductRequest;
757
847
  }, TContext>;
758
848
  axios?: AxiosRequestConfig;
759
- }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof updateCatalogItem>>, TError, {
849
+ }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof updateProduct>>, TError, {
760
850
  id: string;
761
- data: UpsertCatalogItemRequest;
851
+ data: UpdateProductRequest;
762
852
  }, TContext>;
763
853
  /**
764
- * Returns one catalog item with its variants. This operation is not implemented yet.
765
- * @summary Get catalog item details
854
+ * Deletes a product. Variants and their pricing are removed with it.
855
+ * @summary Delete a product
856
+ */
857
+ declare const deleteProduct: (id: string, options?: AxiosRequestConfig) => Promise<AxiosResponse<void>>;
858
+ declare const getDeleteProductMutationOptions: <TError = AxiosError<ProblemDetails>, TContext = unknown>(options?: {
859
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof deleteProduct>>, TError, {
860
+ id: string;
861
+ }, TContext>;
862
+ axios?: AxiosRequestConfig;
863
+ }) => UseMutationOptions<Awaited<ReturnType<typeof deleteProduct>>, TError, {
864
+ id: string;
865
+ }, TContext>;
866
+ type DeleteProductMutationResult = NonNullable<Awaited<ReturnType<typeof deleteProduct>>>;
867
+ type DeleteProductMutationError = AxiosError<ProblemDetails>;
868
+ /**
869
+ * @summary Delete a product
870
+ */
871
+ declare const useDeleteProduct: <TError = AxiosError<ProblemDetails>, TContext = unknown>(options?: {
872
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof deleteProduct>>, TError, {
873
+ id: string;
874
+ }, TContext>;
875
+ axios?: AxiosRequestConfig;
876
+ }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof deleteProduct>>, TError, {
877
+ id: string;
878
+ }, TContext>;
879
+ /**
880
+ * Adds a variant to the product given by productId. Pricing is set separately.
881
+ * @summary Create a variant
882
+ */
883
+ declare const createVariant: (productId: string, createVariantRequest: CreateVariantRequest, options?: AxiosRequestConfig) => Promise<AxiosResponse<VariantResponse>>;
884
+ declare const getCreateVariantMutationOptions: <TError = AxiosError<ProblemDetails>, TContext = unknown>(options?: {
885
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof createVariant>>, TError, {
886
+ productId: string;
887
+ data: CreateVariantRequest;
888
+ }, TContext>;
889
+ axios?: AxiosRequestConfig;
890
+ }) => UseMutationOptions<Awaited<ReturnType<typeof createVariant>>, TError, {
891
+ productId: string;
892
+ data: CreateVariantRequest;
893
+ }, TContext>;
894
+ type CreateVariantMutationResult = NonNullable<Awaited<ReturnType<typeof createVariant>>>;
895
+ type CreateVariantMutationBody = CreateVariantRequest;
896
+ type CreateVariantMutationError = AxiosError<ProblemDetails>;
897
+ /**
898
+ * @summary Create a variant
899
+ */
900
+ declare const useCreateVariant: <TError = AxiosError<ProblemDetails>, TContext = unknown>(options?: {
901
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof createVariant>>, TError, {
902
+ productId: string;
903
+ data: CreateVariantRequest;
904
+ }, TContext>;
905
+ axios?: AxiosRequestConfig;
906
+ }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof createVariant>>, TError, {
907
+ productId: string;
908
+ data: CreateVariantRequest;
909
+ }, TContext>;
910
+ /**
911
+ * Returns a paginated list of variants belonging to one product.
912
+ * @summary List variants of a product
913
+ */
914
+ declare const listVariants: (productId: string, params?: ListVariantsParams, options?: AxiosRequestConfig) => Promise<AxiosResponse<PagedListOfVariantResponse>>;
915
+ declare const getListVariantsQueryKey: (productId?: string, params?: ListVariantsParams) => readonly [`/api/catalog/products/${string}/variants`, ...ListVariantsParams[]];
916
+ declare const getListVariantsQueryOptions: <TData = Awaited<ReturnType<typeof listVariants>>, TError = AxiosError<ProblemDetails>>(productId: string, params?: ListVariantsParams, options?: {
917
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof listVariants>>, TError, TData>>;
918
+ axios?: AxiosRequestConfig;
919
+ }) => UseQueryOptions<Awaited<ReturnType<typeof listVariants>>, TError, TData> & {
920
+ queryKey: DataTag<QueryKey, TData>;
921
+ };
922
+ type ListVariantsQueryResult = NonNullable<Awaited<ReturnType<typeof listVariants>>>;
923
+ type ListVariantsQueryError = AxiosError<ProblemDetails>;
924
+ declare function useListVariants<TData = Awaited<ReturnType<typeof listVariants>>, TError = AxiosError<ProblemDetails>>(productId: string, params: undefined | ListVariantsParams, options: {
925
+ query: Partial<UseQueryOptions<Awaited<ReturnType<typeof listVariants>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof listVariants>>, TError, Awaited<ReturnType<typeof listVariants>>>, 'initialData'>;
926
+ axios?: AxiosRequestConfig;
927
+ }, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
928
+ queryKey: DataTag<QueryKey, TData>;
929
+ };
930
+ declare function useListVariants<TData = Awaited<ReturnType<typeof listVariants>>, TError = AxiosError<ProblemDetails>>(productId: string, params?: ListVariantsParams, options?: {
931
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof listVariants>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof listVariants>>, TError, Awaited<ReturnType<typeof listVariants>>>, 'initialData'>;
932
+ axios?: AxiosRequestConfig;
933
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
934
+ queryKey: DataTag<QueryKey, TData>;
935
+ };
936
+ declare function useListVariants<TData = Awaited<ReturnType<typeof listVariants>>, TError = AxiosError<ProblemDetails>>(productId: string, params?: ListVariantsParams, options?: {
937
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof listVariants>>, TError, TData>>;
938
+ axios?: AxiosRequestConfig;
939
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
940
+ queryKey: DataTag<QueryKey, TData>;
941
+ };
942
+ /**
943
+ * Returns one variant of the given product. Pricing is fetched separately.
944
+ * @summary Get variant by id
766
945
  */
767
- declare const getCatalogItem: (id: string, options?: AxiosRequestConfig) => Promise<AxiosResponse<CatalogItemResponse>>;
768
- declare const getGetCatalogItemQueryKey: (id?: string) => readonly [`/api/catalog/${string}`];
769
- declare const getGetCatalogItemQueryOptions: <TData = Awaited<ReturnType<typeof getCatalogItem>>, TError = AxiosError<ProblemDetails>>(id: string, options?: {
770
- query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getCatalogItem>>, TError, TData>>;
946
+ declare const getVariant: (productId: string, id: string, options?: AxiosRequestConfig) => Promise<AxiosResponse<VariantResponse>>;
947
+ declare const getGetVariantQueryKey: (productId?: string, id?: string) => readonly [`/api/catalog/products/undefined/variants/${string}` | `/api/catalog/products/${string}/variants/undefined` | `/api/catalog/products/${string}/variants/${string}`];
948
+ declare const getGetVariantQueryOptions: <TData = Awaited<ReturnType<typeof getVariant>>, TError = AxiosError<ProblemDetails>>(productId: string, id: string, options?: {
949
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getVariant>>, TError, TData>>;
771
950
  axios?: AxiosRequestConfig;
772
- }) => UseQueryOptions<Awaited<ReturnType<typeof getCatalogItem>>, TError, TData> & {
951
+ }) => UseQueryOptions<Awaited<ReturnType<typeof getVariant>>, TError, TData> & {
773
952
  queryKey: DataTag<QueryKey, TData>;
774
953
  };
775
- type GetCatalogItemQueryResult = NonNullable<Awaited<ReturnType<typeof getCatalogItem>>>;
776
- type GetCatalogItemQueryError = AxiosError<ProblemDetails>;
777
- declare function useGetCatalogItem<TData = Awaited<ReturnType<typeof getCatalogItem>>, TError = AxiosError<ProblemDetails>>(id: string, options: {
778
- query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getCatalogItem>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof getCatalogItem>>, TError, Awaited<ReturnType<typeof getCatalogItem>>>, 'initialData'>;
954
+ type GetVariantQueryResult = NonNullable<Awaited<ReturnType<typeof getVariant>>>;
955
+ type GetVariantQueryError = AxiosError<ProblemDetails>;
956
+ declare function useGetVariant<TData = Awaited<ReturnType<typeof getVariant>>, TError = AxiosError<ProblemDetails>>(productId: string, id: string, options: {
957
+ query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getVariant>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof getVariant>>, TError, Awaited<ReturnType<typeof getVariant>>>, 'initialData'>;
779
958
  axios?: AxiosRequestConfig;
780
959
  }, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
781
960
  queryKey: DataTag<QueryKey, TData>;
782
961
  };
783
- declare function useGetCatalogItem<TData = Awaited<ReturnType<typeof getCatalogItem>>, TError = AxiosError<ProblemDetails>>(id: string, options?: {
784
- query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getCatalogItem>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof getCatalogItem>>, TError, Awaited<ReturnType<typeof getCatalogItem>>>, 'initialData'>;
962
+ declare function useGetVariant<TData = Awaited<ReturnType<typeof getVariant>>, TError = AxiosError<ProblemDetails>>(productId: string, id: string, options?: {
963
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getVariant>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof getVariant>>, TError, Awaited<ReturnType<typeof getVariant>>>, 'initialData'>;
785
964
  axios?: AxiosRequestConfig;
786
965
  }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
787
966
  queryKey: DataTag<QueryKey, TData>;
788
967
  };
789
- declare function useGetCatalogItem<TData = Awaited<ReturnType<typeof getCatalogItem>>, TError = AxiosError<ProblemDetails>>(id: string, options?: {
790
- query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getCatalogItem>>, TError, TData>>;
968
+ declare function useGetVariant<TData = Awaited<ReturnType<typeof getVariant>>, TError = AxiosError<ProblemDetails>>(productId: string, id: string, options?: {
969
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getVariant>>, TError, TData>>;
791
970
  axios?: AxiosRequestConfig;
792
971
  }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
793
972
  queryKey: DataTag<QueryKey, TData>;
794
973
  };
795
974
  /**
796
- * Deletes a catalog item. This operation is not implemented yet.
797
- * @summary Delete a catalog item
975
+ * Replaces a variant of the given product. Pricing is left untouched.
976
+ * @summary Update a variant
798
977
  */
799
- declare const deleteCatalogItem: (id: string, options?: AxiosRequestConfig) => Promise<AxiosResponse<void>>;
800
- declare const getDeleteCatalogItemMutationOptions: <TError = AxiosError<ProblemDetails>, TContext = unknown>(options?: {
801
- mutation?: UseMutationOptions<Awaited<ReturnType<typeof deleteCatalogItem>>, TError, {
978
+ declare const updateVariant: (productId: string, id: string, updateVariantRequest: UpdateVariantRequest, options?: AxiosRequestConfig) => Promise<AxiosResponse<VariantResponse>>;
979
+ declare const getUpdateVariantMutationOptions: <TError = AxiosError<ProblemDetails>, TContext = unknown>(options?: {
980
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof updateVariant>>, TError, {
981
+ productId: string;
802
982
  id: string;
983
+ data: UpdateVariantRequest;
803
984
  }, TContext>;
804
985
  axios?: AxiosRequestConfig;
805
- }) => UseMutationOptions<Awaited<ReturnType<typeof deleteCatalogItem>>, TError, {
986
+ }) => UseMutationOptions<Awaited<ReturnType<typeof updateVariant>>, TError, {
987
+ productId: string;
806
988
  id: string;
989
+ data: UpdateVariantRequest;
807
990
  }, TContext>;
808
- type DeleteCatalogItemMutationResult = NonNullable<Awaited<ReturnType<typeof deleteCatalogItem>>>;
809
- type DeleteCatalogItemMutationError = AxiosError<ProblemDetails>;
991
+ type UpdateVariantMutationResult = NonNullable<Awaited<ReturnType<typeof updateVariant>>>;
992
+ type UpdateVariantMutationBody = UpdateVariantRequest;
993
+ type UpdateVariantMutationError = AxiosError<ProblemDetails>;
810
994
  /**
811
- * @summary Delete a catalog item
995
+ * @summary Update a variant
812
996
  */
813
- declare const useDeleteCatalogItem: <TError = AxiosError<ProblemDetails>, TContext = unknown>(options?: {
814
- mutation?: UseMutationOptions<Awaited<ReturnType<typeof deleteCatalogItem>>, TError, {
997
+ declare const useUpdateVariant: <TError = AxiosError<ProblemDetails>, TContext = unknown>(options?: {
998
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof updateVariant>>, TError, {
999
+ productId: string;
815
1000
  id: string;
1001
+ data: UpdateVariantRequest;
816
1002
  }, TContext>;
817
1003
  axios?: AxiosRequestConfig;
818
- }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof deleteCatalogItem>>, TError, {
1004
+ }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof updateVariant>>, TError, {
1005
+ productId: string;
819
1006
  id: string;
1007
+ data: UpdateVariantRequest;
1008
+ }, TContext>;
1009
+ /**
1010
+ * Deletes a variant of the given product together with its pricing.
1011
+ * @summary Delete a variant
1012
+ */
1013
+ declare const deleteVariant: (productId: string, id: string, options?: AxiosRequestConfig) => Promise<AxiosResponse<void>>;
1014
+ declare const getDeleteVariantMutationOptions: <TError = AxiosError<ProblemDetails>, TContext = unknown>(options?: {
1015
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof deleteVariant>>, TError, {
1016
+ productId: string;
1017
+ id: string;
1018
+ }, TContext>;
1019
+ axios?: AxiosRequestConfig;
1020
+ }) => UseMutationOptions<Awaited<ReturnType<typeof deleteVariant>>, TError, {
1021
+ productId: string;
1022
+ id: string;
1023
+ }, TContext>;
1024
+ type DeleteVariantMutationResult = NonNullable<Awaited<ReturnType<typeof deleteVariant>>>;
1025
+ type DeleteVariantMutationError = AxiosError<ProblemDetails>;
1026
+ /**
1027
+ * @summary Delete a variant
1028
+ */
1029
+ declare const useDeleteVariant: <TError = AxiosError<ProblemDetails>, TContext = unknown>(options?: {
1030
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof deleteVariant>>, TError, {
1031
+ productId: string;
1032
+ id: string;
1033
+ }, TContext>;
1034
+ axios?: AxiosRequestConfig;
1035
+ }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof deleteVariant>>, TError, {
1036
+ productId: string;
1037
+ id: string;
1038
+ }, TContext>;
1039
+ /**
1040
+ * Returns the base amount, the sale window and the wholesale tiers of one variant, including the amount that applies right now.
1041
+ * @summary Get variant pricing
1042
+ */
1043
+ declare const getVariantPricing: (variantId: string, options?: AxiosRequestConfig) => Promise<AxiosResponse<VariantPricingResponse>>;
1044
+ declare const getGetVariantPricingQueryKey: (variantId?: string) => readonly [`/api/catalog/variants/${string}/pricing`];
1045
+ declare const getGetVariantPricingQueryOptions: <TData = Awaited<ReturnType<typeof getVariantPricing>>, TError = AxiosError<ProblemDetails>>(variantId: string, options?: {
1046
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getVariantPricing>>, TError, TData>>;
1047
+ axios?: AxiosRequestConfig;
1048
+ }) => UseQueryOptions<Awaited<ReturnType<typeof getVariantPricing>>, TError, TData> & {
1049
+ queryKey: DataTag<QueryKey, TData>;
1050
+ };
1051
+ type GetVariantPricingQueryResult = NonNullable<Awaited<ReturnType<typeof getVariantPricing>>>;
1052
+ type GetVariantPricingQueryError = AxiosError<ProblemDetails>;
1053
+ declare function useGetVariantPricing<TData = Awaited<ReturnType<typeof getVariantPricing>>, TError = AxiosError<ProblemDetails>>(variantId: string, options: {
1054
+ query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getVariantPricing>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof getVariantPricing>>, TError, Awaited<ReturnType<typeof getVariantPricing>>>, 'initialData'>;
1055
+ axios?: AxiosRequestConfig;
1056
+ }, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
1057
+ queryKey: DataTag<QueryKey, TData>;
1058
+ };
1059
+ declare function useGetVariantPricing<TData = Awaited<ReturnType<typeof getVariantPricing>>, TError = AxiosError<ProblemDetails>>(variantId: string, options?: {
1060
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getVariantPricing>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof getVariantPricing>>, TError, Awaited<ReturnType<typeof getVariantPricing>>>, 'initialData'>;
1061
+ axios?: AxiosRequestConfig;
1062
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
1063
+ queryKey: DataTag<QueryKey, TData>;
1064
+ };
1065
+ declare function useGetVariantPricing<TData = Awaited<ReturnType<typeof getVariantPricing>>, TError = AxiosError<ProblemDetails>>(variantId: string, options?: {
1066
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getVariantPricing>>, TError, TData>>;
1067
+ axios?: AxiosRequestConfig;
1068
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
1069
+ queryKey: DataTag<QueryKey, TData>;
1070
+ };
1071
+ /**
1072
+ * Replaces the whole price list of one variant. Omitting sale or wholesale clears them.
1073
+ * @summary Replace variant pricing
1074
+ */
1075
+ declare const upsertVariantPricing: (variantId: string, upsertVariantPricingRequest: UpsertVariantPricingRequest, options?: AxiosRequestConfig) => Promise<AxiosResponse<VariantPricingResponse>>;
1076
+ declare const getUpsertVariantPricingMutationOptions: <TError = AxiosError<ProblemDetails>, TContext = unknown>(options?: {
1077
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof upsertVariantPricing>>, TError, {
1078
+ variantId: string;
1079
+ data: UpsertVariantPricingRequest;
1080
+ }, TContext>;
1081
+ axios?: AxiosRequestConfig;
1082
+ }) => UseMutationOptions<Awaited<ReturnType<typeof upsertVariantPricing>>, TError, {
1083
+ variantId: string;
1084
+ data: UpsertVariantPricingRequest;
1085
+ }, TContext>;
1086
+ type UpsertVariantPricingMutationResult = NonNullable<Awaited<ReturnType<typeof upsertVariantPricing>>>;
1087
+ type UpsertVariantPricingMutationBody = UpsertVariantPricingRequest;
1088
+ type UpsertVariantPricingMutationError = AxiosError<ProblemDetails>;
1089
+ /**
1090
+ * @summary Replace variant pricing
1091
+ */
1092
+ declare const useUpsertVariantPricing: <TError = AxiosError<ProblemDetails>, TContext = unknown>(options?: {
1093
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof upsertVariantPricing>>, TError, {
1094
+ variantId: string;
1095
+ data: UpsertVariantPricingRequest;
1096
+ }, TContext>;
1097
+ axios?: AxiosRequestConfig;
1098
+ }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof upsertVariantPricing>>, TError, {
1099
+ variantId: string;
1100
+ data: UpsertVariantPricingRequest;
1101
+ }, TContext>;
1102
+ /**
1103
+ * Removes the price list of one variant.
1104
+ * @summary Delete variant pricing
1105
+ */
1106
+ declare const deleteVariantPricing: (variantId: string, options?: AxiosRequestConfig) => Promise<AxiosResponse<void>>;
1107
+ declare const getDeleteVariantPricingMutationOptions: <TError = AxiosError<ProblemDetails>, TContext = unknown>(options?: {
1108
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof deleteVariantPricing>>, TError, {
1109
+ variantId: string;
1110
+ }, TContext>;
1111
+ axios?: AxiosRequestConfig;
1112
+ }) => UseMutationOptions<Awaited<ReturnType<typeof deleteVariantPricing>>, TError, {
1113
+ variantId: string;
1114
+ }, TContext>;
1115
+ type DeleteVariantPricingMutationResult = NonNullable<Awaited<ReturnType<typeof deleteVariantPricing>>>;
1116
+ type DeleteVariantPricingMutationError = AxiosError<ProblemDetails>;
1117
+ /**
1118
+ * @summary Delete variant pricing
1119
+ */
1120
+ declare const useDeleteVariantPricing: <TError = AxiosError<ProblemDetails>, TContext = unknown>(options?: {
1121
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof deleteVariantPricing>>, TError, {
1122
+ variantId: string;
1123
+ }, TContext>;
1124
+ axios?: AxiosRequestConfig;
1125
+ }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof deleteVariantPricing>>, TError, {
1126
+ variantId: string;
820
1127
  }, TContext>;
821
1128
  /**
822
1129
  * Creates a new stock item with a unique SKU. Validation failures return 400.
@@ -905,34 +1212,34 @@ declare const useCreateBatch: <TError = AxiosError<ProblemDetails>, TContext = u
905
1212
  data: CreateBatchRequest;
906
1213
  }, TContext>;
907
1214
  /**
908
- * Consumes quantity from a batch and records a stock movement. Returns 400 for invalid input, 404 when the batch is missing and 409 when stock is insufficient.
909
- * @summary Consume a batch
1215
+ * Consumes an item's unreserved batches in FIFO order within the requested warehouse and records a movement for each batch. Returns 400 for invalid input or inactive item/warehouse and 409 when stock is insufficient.
1216
+ * @summary Consume item stock
910
1217
  */
911
- declare const consumeBatch: (id: string, consumeBatchRequest: ConsumeBatchRequest, options?: AxiosRequestConfig) => Promise<AxiosResponse<void>>;
1218
+ declare const consumeBatch: (itemId: string, consumeBatchRequest: ConsumeBatchRequest, options?: AxiosRequestConfig) => Promise<AxiosResponse<void>>;
912
1219
  declare const getConsumeBatchMutationOptions: <TError = AxiosError<ProblemDetails>, TContext = unknown>(options?: {
913
1220
  mutation?: UseMutationOptions<Awaited<ReturnType<typeof consumeBatch>>, TError, {
914
- id: string;
1221
+ itemId: string;
915
1222
  data: ConsumeBatchRequest;
916
1223
  }, TContext>;
917
1224
  axios?: AxiosRequestConfig;
918
1225
  }) => UseMutationOptions<Awaited<ReturnType<typeof consumeBatch>>, TError, {
919
- id: string;
1226
+ itemId: string;
920
1227
  data: ConsumeBatchRequest;
921
1228
  }, TContext>;
922
1229
  type ConsumeBatchMutationResult = NonNullable<Awaited<ReturnType<typeof consumeBatch>>>;
923
1230
  type ConsumeBatchMutationBody = ConsumeBatchRequest;
924
1231
  type ConsumeBatchMutationError = AxiosError<ProblemDetails>;
925
1232
  /**
926
- * @summary Consume a batch
1233
+ * @summary Consume item stock
927
1234
  */
928
1235
  declare const useConsumeBatch: <TError = AxiosError<ProblemDetails>, TContext = unknown>(options?: {
929
1236
  mutation?: UseMutationOptions<Awaited<ReturnType<typeof consumeBatch>>, TError, {
930
- id: string;
1237
+ itemId: string;
931
1238
  data: ConsumeBatchRequest;
932
1239
  }, TContext>;
933
1240
  axios?: AxiosRequestConfig;
934
1241
  }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof consumeBatch>>, TError, {
935
- id: string;
1242
+ itemId: string;
936
1243
  data: ConsumeBatchRequest;
937
1244
  }, TContext>;
938
1245
  /**
@@ -1638,63 +1945,48 @@ declare const searchAddressesResponse: zod.ZodArray<zod.ZodObject<{
1638
1945
  zipCode: zod.ZodOptional<zod.ZodString>;
1639
1946
  }, zod.z.core.$strict>>;
1640
1947
  /**
1641
- * Accepts a catalog item and its variants. This operation is not implemented yet.
1642
- * @summary Create a catalog item
1948
+ * Creates the product shell only. Add variants and pricing through their own resources.
1949
+ * @summary Create a product
1643
1950
  */
1644
- declare const createCatalogItemBody: zod.ZodObject<{
1951
+ declare const createProductBody: zod.ZodObject<{
1645
1952
  categoryId: zod.ZodUUID;
1646
1953
  name: zod.ZodString;
1647
1954
  slug: zod.ZodString;
1648
- status: zod.ZodString;
1649
- classification: zod.ZodString;
1650
- variants: zod.ZodArray<zod.ZodObject<{
1651
- id: zod.ZodOptional<zod.ZodNullable<zod.ZodUUID>>;
1652
- code: zod.ZodString;
1653
- itemId: zod.ZodUUID;
1654
- multiplier: zod.ZodNumber;
1655
- attributes: zod.ZodArray<zod.ZodObject<{
1656
- name: zod.ZodString;
1657
- value: zod.ZodString;
1658
- }, zod.z.core.$strict>>;
1659
- weight: zod.ZodObject<{
1660
- value: zod.ZodNumber;
1661
- unit: zod.ZodString;
1662
- }, zod.z.core.$strict>;
1663
- price: zod.ZodObject<{
1664
- baseAmount: zod.ZodNumber;
1665
- baseCurrency: zod.ZodString;
1666
- sale: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodNull, zod.ZodObject<{
1667
- amount: zod.ZodNumber;
1668
- currency: zod.ZodString;
1669
- startAt: zod.z.ZodISODateTime;
1670
- endAt: zod.z.ZodISODateTime;
1671
- }, zod.z.core.$strict>]>>;
1672
- wholesale: zod.ZodOptional<zod.ZodNullable<zod.ZodArray<zod.ZodObject<{
1673
- minQty: zod.ZodNumber;
1674
- amount: zod.ZodNumber;
1675
- currency: zod.ZodString;
1676
- }, zod.z.core.$strict>>>>;
1677
- }, zod.z.core.$strict>;
1678
- }, zod.z.core.$strict>>;
1955
+ status: zod.ZodOptional<zod.ZodEnum<{
1956
+ Tes: "Tes";
1957
+ Live: "Live";
1958
+ Archived: "Archived";
1959
+ }>>;
1960
+ classification: zod.ZodEnum<{
1961
+ Physical: "Physical";
1962
+ Digital: "Digital";
1963
+ }>;
1679
1964
  }, zod.z.core.$strict>;
1680
1965
  /**
1681
- * Returns a paginated list of catalog items. This operation is not implemented yet.
1682
- * @summary List catalog items
1966
+ * Returns a paginated list of products with their variant count.
1967
+ * @summary List products
1683
1968
  */
1684
- declare const listCatalogItemsQueryPageDefault = 1;
1685
- declare const listCatalogItemsQueryPageSizeDefault = 10;
1686
- declare const listCatalogItemsQueryParams: zod.ZodObject<{
1969
+ declare const listProductsQueryPageDefault = 1;
1970
+ declare const listProductsQueryPageSizeDefault = 10;
1971
+ declare const listProductsQueryParams: zod.ZodObject<{
1687
1972
  page: zod.ZodDefault<zod.z.ZodCoercedNumber<unknown>>;
1688
1973
  pageSize: zod.ZodDefault<zod.z.ZodCoercedNumber<unknown>>;
1689
1974
  }, zod.z.core.$strict>;
1690
- declare const listCatalogItemsResponse: zod.ZodObject<{
1975
+ declare const listProductsResponse: zod.ZodObject<{
1691
1976
  items: zod.ZodArray<zod.ZodObject<{
1692
1977
  id: zod.ZodUUID;
1693
1978
  categoryId: zod.ZodUUID;
1694
1979
  name: zod.ZodString;
1695
1980
  slug: zod.ZodString;
1696
- status: zod.ZodString;
1697
- classification: zod.ZodString;
1981
+ status: zod.ZodEnum<{
1982
+ Tes: "Tes";
1983
+ Live: "Live";
1984
+ Archived: "Archived";
1985
+ }>;
1986
+ classification: zod.ZodEnum<{
1987
+ Physical: "Physical";
1988
+ Digital: "Digital";
1989
+ }>;
1698
1990
  variantCount: zod.ZodNumber;
1699
1991
  }, zod.z.core.$strict>>;
1700
1992
  page: zod.ZodNumber;
@@ -1705,136 +1997,259 @@ declare const listCatalogItemsResponse: zod.ZodObject<{
1705
1997
  hasPreviousPage: zod.ZodOptional<zod.ZodBoolean>;
1706
1998
  }, zod.z.core.$strict>;
1707
1999
  /**
1708
- * Replaces a catalog item and its variants. This operation is not implemented yet.
1709
- * @summary Update a catalog item
2000
+ * Returns one product. Variants are listed from the nested variants resource.
2001
+ * @summary Get product by id
1710
2002
  */
1711
- declare const updateCatalogItemParams: zod.ZodObject<{
2003
+ declare const getProductParams: zod.ZodObject<{
1712
2004
  id: zod.ZodUUID;
1713
2005
  }, zod.z.core.$strict>;
1714
- declare const updateCatalogItemBody: zod.ZodObject<{
2006
+ declare const getProductResponse: zod.ZodObject<{
2007
+ id: zod.ZodUUID;
1715
2008
  categoryId: zod.ZodUUID;
1716
2009
  name: zod.ZodString;
1717
2010
  slug: zod.ZodString;
1718
- status: zod.ZodString;
1719
- classification: zod.ZodString;
1720
- variants: zod.ZodArray<zod.ZodObject<{
1721
- id: zod.ZodOptional<zod.ZodNullable<zod.ZodUUID>>;
1722
- code: zod.ZodString;
1723
- itemId: zod.ZodUUID;
1724
- multiplier: zod.ZodNumber;
1725
- attributes: zod.ZodArray<zod.ZodObject<{
1726
- name: zod.ZodString;
1727
- value: zod.ZodString;
1728
- }, zod.z.core.$strict>>;
1729
- weight: zod.ZodObject<{
1730
- value: zod.ZodNumber;
1731
- unit: zod.ZodString;
1732
- }, zod.z.core.$strict>;
1733
- price: zod.ZodObject<{
1734
- baseAmount: zod.ZodNumber;
1735
- baseCurrency: zod.ZodString;
1736
- sale: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodNull, zod.ZodObject<{
1737
- amount: zod.ZodNumber;
1738
- currency: zod.ZodString;
1739
- startAt: zod.z.ZodISODateTime;
1740
- endAt: zod.z.ZodISODateTime;
1741
- }, zod.z.core.$strict>]>>;
1742
- wholesale: zod.ZodOptional<zod.ZodNullable<zod.ZodArray<zod.ZodObject<{
1743
- minQty: zod.ZodNumber;
1744
- amount: zod.ZodNumber;
1745
- currency: zod.ZodString;
1746
- }, zod.z.core.$strict>>>>;
1747
- }, zod.z.core.$strict>;
1748
- }, zod.z.core.$strict>>;
2011
+ status: zod.ZodEnum<{
2012
+ Tes: "Tes";
2013
+ Live: "Live";
2014
+ Archived: "Archived";
2015
+ }>;
2016
+ classification: zod.ZodEnum<{
2017
+ Physical: "Physical";
2018
+ Digital: "Digital";
2019
+ }>;
2020
+ variantCount: zod.ZodNumber;
1749
2021
  }, zod.z.core.$strict>;
1750
- declare const updateCatalogItemResponse: zod.ZodObject<{
2022
+ /**
2023
+ * Replaces the product shell. Variants and pricing are left untouched.
2024
+ * @summary Update a product
2025
+ */
2026
+ declare const updateProductParams: zod.ZodObject<{
1751
2027
  id: zod.ZodUUID;
2028
+ }, zod.z.core.$strict>;
2029
+ declare const updateProductBody: zod.ZodObject<{
1752
2030
  categoryId: zod.ZodUUID;
1753
2031
  name: zod.ZodString;
1754
2032
  slug: zod.ZodString;
1755
- status: zod.ZodString;
1756
- classification: zod.ZodString;
1757
- variants: zod.ZodArray<zod.ZodObject<{
1758
- id: zod.ZodOptional<zod.ZodNullable<zod.ZodUUID>>;
2033
+ status: zod.ZodEnum<{
2034
+ Tes: "Tes";
2035
+ Live: "Live";
2036
+ Archived: "Archived";
2037
+ }>;
2038
+ classification: zod.ZodEnum<{
2039
+ Physical: "Physical";
2040
+ Digital: "Digital";
2041
+ }>;
2042
+ }, zod.z.core.$strict>;
2043
+ declare const updateProductResponse: zod.ZodObject<{
2044
+ id: zod.ZodUUID;
2045
+ categoryId: zod.ZodUUID;
2046
+ name: zod.ZodString;
2047
+ slug: zod.ZodString;
2048
+ status: zod.ZodEnum<{
2049
+ Tes: "Tes";
2050
+ Live: "Live";
2051
+ Archived: "Archived";
2052
+ }>;
2053
+ classification: zod.ZodEnum<{
2054
+ Physical: "Physical";
2055
+ Digital: "Digital";
2056
+ }>;
2057
+ variantCount: zod.ZodNumber;
2058
+ }, zod.z.core.$strict>;
2059
+ /**
2060
+ * Deletes a product. Variants and their pricing are removed with it.
2061
+ * @summary Delete a product
2062
+ */
2063
+ declare const deleteProductParams: zod.ZodObject<{
2064
+ id: zod.ZodUUID;
2065
+ }, zod.z.core.$strict>;
2066
+ /**
2067
+ * Adds a variant to the product given by productId. Pricing is set separately.
2068
+ * @summary Create a variant
2069
+ */
2070
+ declare const createVariantParams: zod.ZodObject<{
2071
+ productId: zod.ZodUUID;
2072
+ }, zod.z.core.$strict>;
2073
+ declare const createVariantBody: zod.ZodObject<{
2074
+ code: zod.ZodString;
2075
+ attributes: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
2076
+ name: zod.ZodString;
2077
+ value: zod.ZodString;
2078
+ }, zod.z.core.$strict>>>;
2079
+ weight: zod.ZodObject<{
2080
+ value: zod.ZodNumber;
2081
+ unit: zod.ZodString;
2082
+ }, zod.z.core.$strict>;
2083
+ }, zod.z.core.$strict>;
2084
+ /**
2085
+ * Returns a paginated list of variants belonging to one product.
2086
+ * @summary List variants of a product
2087
+ */
2088
+ declare const listVariantsParams: zod.ZodObject<{
2089
+ productId: zod.ZodUUID;
2090
+ }, zod.z.core.$strict>;
2091
+ declare const listVariantsQueryPageDefault = 1;
2092
+ declare const listVariantsQueryPageSizeDefault = 10;
2093
+ declare const listVariantsQueryParams: zod.ZodObject<{
2094
+ page: zod.ZodDefault<zod.z.ZodCoercedNumber<unknown>>;
2095
+ pageSize: zod.ZodDefault<zod.z.ZodCoercedNumber<unknown>>;
2096
+ }, zod.z.core.$strict>;
2097
+ declare const listVariantsResponse: zod.ZodObject<{
2098
+ items: zod.ZodArray<zod.ZodObject<{
2099
+ id: zod.ZodUUID;
2100
+ productId: zod.ZodUUID;
1759
2101
  code: zod.ZodString;
1760
- itemId: zod.ZodUUID;
1761
- multiplier: zod.ZodNumber;
1762
- attributes: zod.ZodArray<zod.ZodObject<{
2102
+ attributes: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
1763
2103
  name: zod.ZodString;
1764
2104
  value: zod.ZodString;
1765
- }, zod.z.core.$strict>>;
2105
+ }, zod.z.core.$strict>>>;
1766
2106
  weight: zod.ZodObject<{
1767
2107
  value: zod.ZodNumber;
1768
2108
  unit: zod.ZodString;
1769
2109
  }, zod.z.core.$strict>;
1770
- price: zod.ZodObject<{
1771
- baseAmount: zod.ZodNumber;
1772
- baseCurrency: zod.ZodString;
1773
- sale: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodNull, zod.ZodObject<{
1774
- amount: zod.ZodNumber;
1775
- currency: zod.ZodString;
1776
- startAt: zod.z.ZodISODateTime;
1777
- endAt: zod.z.ZodISODateTime;
1778
- }, zod.z.core.$strict>]>>;
1779
- wholesale: zod.ZodOptional<zod.ZodNullable<zod.ZodArray<zod.ZodObject<{
1780
- minQty: zod.ZodNumber;
1781
- amount: zod.ZodNumber;
1782
- currency: zod.ZodString;
1783
- }, zod.z.core.$strict>>>>;
1784
- }, zod.z.core.$strict>;
1785
2110
  }, zod.z.core.$strict>>;
2111
+ page: zod.ZodNumber;
2112
+ pageSize: zod.ZodNumber;
2113
+ totalCount: zod.ZodNumber;
2114
+ totalPages: zod.ZodOptional<zod.ZodNumber>;
2115
+ hasNextPage: zod.ZodOptional<zod.ZodBoolean>;
2116
+ hasPreviousPage: zod.ZodOptional<zod.ZodBoolean>;
1786
2117
  }, zod.z.core.$strict>;
1787
2118
  /**
1788
- * Returns one catalog item with its variants. This operation is not implemented yet.
1789
- * @summary Get catalog item details
2119
+ * Returns one variant of the given product. Pricing is fetched separately.
2120
+ * @summary Get variant by id
1790
2121
  */
1791
- declare const getCatalogItemParams: zod.ZodObject<{
2122
+ declare const getVariantParams: zod.ZodObject<{
2123
+ productId: zod.ZodUUID;
1792
2124
  id: zod.ZodUUID;
1793
2125
  }, zod.z.core.$strict>;
1794
- declare const getCatalogItemResponse: zod.ZodObject<{
2126
+ declare const getVariantResponse: zod.ZodObject<{
1795
2127
  id: zod.ZodUUID;
1796
- categoryId: zod.ZodUUID;
1797
- name: zod.ZodString;
1798
- slug: zod.ZodString;
1799
- status: zod.ZodString;
1800
- classification: zod.ZodString;
1801
- variants: zod.ZodArray<zod.ZodObject<{
1802
- id: zod.ZodOptional<zod.ZodNullable<zod.ZodUUID>>;
1803
- code: zod.ZodString;
1804
- itemId: zod.ZodUUID;
1805
- multiplier: zod.ZodNumber;
1806
- attributes: zod.ZodArray<zod.ZodObject<{
1807
- name: zod.ZodString;
1808
- value: zod.ZodString;
1809
- }, zod.z.core.$strict>>;
1810
- weight: zod.ZodObject<{
1811
- value: zod.ZodNumber;
1812
- unit: zod.ZodString;
1813
- }, zod.z.core.$strict>;
1814
- price: zod.ZodObject<{
1815
- baseAmount: zod.ZodNumber;
1816
- baseCurrency: zod.ZodString;
1817
- sale: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodNull, zod.ZodObject<{
1818
- amount: zod.ZodNumber;
1819
- currency: zod.ZodString;
1820
- startAt: zod.z.ZodISODateTime;
1821
- endAt: zod.z.ZodISODateTime;
1822
- }, zod.z.core.$strict>]>>;
1823
- wholesale: zod.ZodOptional<zod.ZodNullable<zod.ZodArray<zod.ZodObject<{
1824
- minQty: zod.ZodNumber;
1825
- amount: zod.ZodNumber;
1826
- currency: zod.ZodString;
1827
- }, zod.z.core.$strict>>>>;
1828
- }, zod.z.core.$strict>;
1829
- }, zod.z.core.$strict>>;
2128
+ productId: zod.ZodUUID;
2129
+ code: zod.ZodString;
2130
+ attributes: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
2131
+ name: zod.ZodString;
2132
+ value: zod.ZodString;
2133
+ }, zod.z.core.$strict>>>;
2134
+ weight: zod.ZodObject<{
2135
+ value: zod.ZodNumber;
2136
+ unit: zod.ZodString;
2137
+ }, zod.z.core.$strict>;
2138
+ }, zod.z.core.$strict>;
2139
+ /**
2140
+ * Replaces a variant of the given product. Pricing is left untouched.
2141
+ * @summary Update a variant
2142
+ */
2143
+ declare const updateVariantParams: zod.ZodObject<{
2144
+ productId: zod.ZodUUID;
2145
+ id: zod.ZodUUID;
2146
+ }, zod.z.core.$strict>;
2147
+ declare const updateVariantBody: zod.ZodObject<{
2148
+ code: zod.ZodString;
2149
+ attributes: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
2150
+ name: zod.ZodString;
2151
+ value: zod.ZodString;
2152
+ }, zod.z.core.$strict>>>;
2153
+ weight: zod.ZodObject<{
2154
+ value: zod.ZodNumber;
2155
+ unit: zod.ZodString;
2156
+ }, zod.z.core.$strict>;
2157
+ }, zod.z.core.$strict>;
2158
+ declare const updateVariantResponse: zod.ZodObject<{
2159
+ id: zod.ZodUUID;
2160
+ productId: zod.ZodUUID;
2161
+ code: zod.ZodString;
2162
+ attributes: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
2163
+ name: zod.ZodString;
2164
+ value: zod.ZodString;
2165
+ }, zod.z.core.$strict>>>;
2166
+ weight: zod.ZodObject<{
2167
+ value: zod.ZodNumber;
2168
+ unit: zod.ZodString;
2169
+ }, zod.z.core.$strict>;
1830
2170
  }, zod.z.core.$strict>;
1831
2171
  /**
1832
- * Deletes a catalog item. This operation is not implemented yet.
1833
- * @summary Delete a catalog item
2172
+ * Deletes a variant of the given product together with its pricing.
2173
+ * @summary Delete a variant
1834
2174
  */
1835
- declare const deleteCatalogItemParams: zod.ZodObject<{
2175
+ declare const deleteVariantParams: zod.ZodObject<{
2176
+ productId: zod.ZodUUID;
1836
2177
  id: zod.ZodUUID;
1837
2178
  }, zod.z.core.$strict>;
2179
+ /**
2180
+ * Returns the base amount, the sale window and the wholesale tiers of one variant, including the amount that applies right now.
2181
+ * @summary Get variant pricing
2182
+ */
2183
+ declare const getVariantPricingParams: zod.ZodObject<{
2184
+ variantId: zod.ZodUUID;
2185
+ }, zod.z.core.$strict>;
2186
+ declare const getVariantPricingResponse: zod.ZodObject<{
2187
+ variantId: zod.ZodUUID;
2188
+ baseAmount: zod.ZodNumber;
2189
+ baseCurrency: zod.ZodString;
2190
+ effectiveAmount: zod.ZodNumber;
2191
+ effectiveCurrency: zod.ZodString;
2192
+ sale: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodNull, zod.ZodObject<{
2193
+ amount: zod.ZodNumber;
2194
+ currency: zod.ZodString;
2195
+ startAt: zod.z.ZodISODateTime;
2196
+ endAt: zod.z.ZodISODateTime;
2197
+ isActive: zod.ZodBoolean;
2198
+ }, zod.z.core.$strict>]>>;
2199
+ wholesale: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
2200
+ minQty: zod.ZodNumber;
2201
+ amount: zod.ZodNumber;
2202
+ currency: zod.ZodString;
2203
+ }, zod.z.core.$strict>>>;
2204
+ }, zod.z.core.$strict>;
2205
+ /**
2206
+ * Replaces the whole price list of one variant. Omitting sale or wholesale clears them.
2207
+ * @summary Replace variant pricing
2208
+ */
2209
+ declare const upsertVariantPricingParams: zod.ZodObject<{
2210
+ variantId: zod.ZodUUID;
2211
+ }, zod.z.core.$strict>;
2212
+ declare const upsertVariantPricingBody: zod.ZodObject<{
2213
+ baseAmount: zod.ZodNumber;
2214
+ baseCurrency: zod.ZodString;
2215
+ sale: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodNull, zod.ZodObject<{
2216
+ amount: zod.ZodNumber;
2217
+ currency: zod.ZodString;
2218
+ startAt: zod.z.ZodISODateTime;
2219
+ endAt: zod.z.ZodISODateTime;
2220
+ }, zod.z.core.$strict>]>>;
2221
+ wholesale: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
2222
+ minQty: zod.ZodNumber;
2223
+ amount: zod.ZodNumber;
2224
+ currency: zod.ZodString;
2225
+ }, zod.z.core.$strict>>>;
2226
+ }, zod.z.core.$strict>;
2227
+ declare const upsertVariantPricingResponse: zod.ZodObject<{
2228
+ variantId: zod.ZodUUID;
2229
+ baseAmount: zod.ZodNumber;
2230
+ baseCurrency: zod.ZodString;
2231
+ effectiveAmount: zod.ZodNumber;
2232
+ effectiveCurrency: zod.ZodString;
2233
+ sale: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodNull, zod.ZodObject<{
2234
+ amount: zod.ZodNumber;
2235
+ currency: zod.ZodString;
2236
+ startAt: zod.z.ZodISODateTime;
2237
+ endAt: zod.z.ZodISODateTime;
2238
+ isActive: zod.ZodBoolean;
2239
+ }, zod.z.core.$strict>]>>;
2240
+ wholesale: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
2241
+ minQty: zod.ZodNumber;
2242
+ amount: zod.ZodNumber;
2243
+ currency: zod.ZodString;
2244
+ }, zod.z.core.$strict>>>;
2245
+ }, zod.z.core.$strict>;
2246
+ /**
2247
+ * Removes the price list of one variant.
2248
+ * @summary Delete variant pricing
2249
+ */
2250
+ declare const deleteVariantPricingParams: zod.ZodObject<{
2251
+ variantId: zod.ZodUUID;
2252
+ }, zod.z.core.$strict>;
1838
2253
  /**
1839
2254
  * Creates a new stock item with a unique SKU. Validation failures return 400.
1840
2255
  * @summary Create a stock item
@@ -1901,13 +2316,14 @@ declare const createBatchBody: zod.ZodObject<{
1901
2316
  receivedBy: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
1902
2317
  }, zod.z.core.$strict>;
1903
2318
  /**
1904
- * Consumes quantity from a batch and records a stock movement. Returns 400 for invalid input, 404 when the batch is missing and 409 when stock is insufficient.
1905
- * @summary Consume a batch
2319
+ * Consumes an item's unreserved batches in FIFO order within the requested warehouse and records a movement for each batch. Returns 400 for invalid input or inactive item/warehouse and 409 when stock is insufficient.
2320
+ * @summary Consume item stock
1906
2321
  */
1907
2322
  declare const consumeBatchParams: zod.ZodObject<{
1908
- id: zod.ZodUUID;
2323
+ itemId: zod.ZodUUID;
1909
2324
  }, zod.z.core.$strict>;
1910
2325
  declare const consumeBatchBody: zod.ZodObject<{
2326
+ warehouseId: zod.ZodUUID;
1911
2327
  quantity: zod.ZodNumber;
1912
2328
  sourceType: zod.ZodEnum<{
1913
2329
  LOAN_OUT: "LOAN_OUT";
@@ -2096,4 +2512,4 @@ declare const postApiIdentityAdminUsersIdLogoutParams: zod.ZodObject<{
2096
2512
  id: zod.ZodUUID;
2097
2513
  }, zod.z.core.$strict>;
2098
2514
 
2099
- export { type AccountInfo, type AddressData, type AddressSearchResultItemDto, type AddressSearchResultItemDtoExternalId, type AntiforgeryTokenResponse, type CatalogAttributeRequest, type CatalogItemResponse, type CatalogListItemResponse, type CatalogPriceRequest, type CatalogPriceRequestSale, type CatalogPriceRequestWholesale, type CatalogSalePriceRequest, type CatalogVariantRequest, type CatalogVariantRequestId, type CatalogWeightRequest, type CatalogWholesalePriceRequest, type ConsumeBatchMutationBody, type ConsumeBatchMutationError, type ConsumeBatchMutationResult, type ConsumeBatchRequest, type ConsumeBatchRequestExternalReferenceNo, type ConsumeBatchRequestNote, ConsumeBatchSourceType, type CreateBatchMutationBody, type CreateBatchMutationError, type CreateBatchMutationResult, type CreateBatchRequest, type CreateBatchRequestExpiresOn, type CreateBatchRequestExternalReferenceNo, type CreateBatchRequestNote, type CreateBatchRequestReceivedBy, type CreateCatalogItemMutationBody, type CreateCatalogItemMutationError, type CreateCatalogItemMutationResult, type CreateStockItemCommand, type CreateStockItemsMutationBody, type CreateStockItemsMutationError, type CreateStockItemsMutationResult, type CreateWarehouseCommand, type CreateWarehouseCommandFullAddressText, type CreateWarehouseMutationBody, type CreateWarehouseMutationError, type CreateWarehouseMutationResult, type DeleteApiIdentityAdminRolesIdMutationError, type DeleteApiIdentityAdminRolesIdMutationResult, type DeleteCatalogItemMutationError, type DeleteCatalogItemMutationResult, type DeleteWarehouseMutationError, type DeleteWarehouseMutationResult, type EmailRequest, type GetApiIdentityAdminPermissionsQueryError, type GetApiIdentityAdminPermissionsQueryResult, type GetApiIdentityAdminRolesIdQueryError, type GetApiIdentityAdminRolesIdQueryResult, type GetApiIdentityAdminRolesQueryError, type GetApiIdentityAdminRolesQueryResult, type GetApiIdentityAdminUsersIdPermissionsQueryError, type GetApiIdentityAdminUsersIdPermissionsQueryResult, type GetApiIdentityAdminUsersIdRolesQueryError, type GetApiIdentityAdminUsersIdRolesQueryResult, type GetApiIdentityAdminUsersParams, type GetApiIdentityAdminUsersQueryError, type GetApiIdentityAdminUsersQueryResult, type GetApiIdentityAntiforgeryQueryError, type GetApiIdentityAntiforgeryQueryResult, type GetApiIdentityManage2faQueryError, type GetApiIdentityManage2faQueryResult, type GetApiIdentityManageInfoQueryError, type GetApiIdentityManageInfoQueryResult, type GetCatalogItemQueryError, type GetCatalogItemQueryResult, type GetHealthQueryError, type GetHealthQueryResult, type GetWarehouseByIdQueryError, type GetWarehouseByIdQueryResult, type GetWarehouseOptionsQueryError, type GetWarehouseOptionsQueryResult, type ListCatalogItemsParams, type ListCatalogItemsQueryError, type ListCatalogItemsQueryResult, type ListStockItemsParams, type ListStockItemsQueryError, type ListStockItemsQueryResult, type ListStockMovementsParams, type ListStockMovementsQueryError, type ListStockMovementsQueryResult, type ListWarehousesParams, type ListWarehousesQueryError, type ListWarehousesQueryResult, type LoginRequest, type LoginRequestTwoFactorCode, type LoginRequestTwoFactorRecoveryCode, type LoginTwoFactorResponse, type PagedListOfCatalogListItemResponse, type PagedListOfStockItemResponse, type PagedListOfStockMovementResponse, type PagedListOfWarehouseResponse, type PermissionInfo, type PersonInChargeData, type PersonInChargeDataPhone, type PostApiIdentityAdminRolesMutationBody, type PostApiIdentityAdminRolesMutationError, type PostApiIdentityAdminRolesMutationResult, type PostApiIdentityAdminUsersIdLogoutMutationError, type PostApiIdentityAdminUsersIdLogoutMutationResult, type PostApiIdentityForgotPasswordMutationBody, type PostApiIdentityForgotPasswordMutationError, type PostApiIdentityForgotPasswordMutationResult, type PostApiIdentityLoginMutationBody, type PostApiIdentityLoginMutationError, type PostApiIdentityLoginMutationResult, type PostApiIdentityLogoutMutationError, type PostApiIdentityLogoutMutationResult, type PostApiIdentityManage2faMutationBody, type PostApiIdentityManage2faMutationError, type PostApiIdentityManage2faMutationResult, type PostApiIdentityManageInfoMutationBody, type PostApiIdentityManageInfoMutationError, type PostApiIdentityManageInfoMutationResult, type PostApiIdentityResetPasswordMutationBody, type PostApiIdentityResetPasswordMutationError, type PostApiIdentityResetPasswordMutationResult, type ProblemDetails, type ProblemDetailsDetail, type ProblemDetailsInstance, type ProblemDetailsTitle, type ProblemDetailsType, type PutApiIdentityAdminRolesIdMutationBody, type PutApiIdentityAdminRolesIdMutationError, type PutApiIdentityAdminRolesIdMutationResult, type PutApiIdentityAdminRolesIdPermissionsMutationBody, type PutApiIdentityAdminRolesIdPermissionsMutationError, type PutApiIdentityAdminRolesIdPermissionsMutationResult, type PutApiIdentityAdminUsersIdActiveMutationBody, type PutApiIdentityAdminUsersIdActiveMutationError, type PutApiIdentityAdminUsersIdActiveMutationResult, type PutApiIdentityAdminUsersIdRolesMutationBody, type PutApiIdentityAdminUsersIdRolesMutationError, type PutApiIdentityAdminUsersIdRolesMutationResult, type ResetPasswordRequest, type RoleInfo, type RoleNameRequest, type SearchAddressesParams, type SearchAddressesQueryError, type SearchAddressesQueryResult, type SetPermissionsRequest, type SetUserActiveRequest, type SetUserRolesRequest, SourceTypeEnum, type StockItemResponse, type StockItemResponseWarehouseId, type StockItemResponseWarehouseName, type StockMovementResponse, type StockMovementResponseBatchId, type StockMovementResponseExternalReferenceNo, type StockMovementResponseNote, type StockMovementResponseReceivedBy, type StockMovementResponseSourceReferenceId, type StockMovementResponseWarehouseName, type ToggleWarehouseStatusMutationError, type ToggleWarehouseStatusMutationResult, type TwoFactorRequest, type TwoFactorRequestEnable, type TwoFactorRequestPassword, type TwoFactorRequestTwoFactorCode, type TwoFactorState, type TwoFactorStateRecoveryCodes, type TwoFactorStateSharedKey, type UpdateAccountRequest, type UpdateAccountRequestNewEmail, type UpdateAccountRequestNewPassword, type UpdateAccountRequestOldPassword, type UpdateCatalogItemMutationBody, type UpdateCatalogItemMutationError, type UpdateCatalogItemMutationResult, type UpdateWarehouseCommand, type UpdateWarehouseCommandFullAddressText, type UpdateWarehouseMutationBody, type UpdateWarehouseMutationError, type UpdateWarehouseMutationResult, type UpsertCatalogItemRequest, type UserInfo, type WarehouseOptionResponse, type WarehouseResponse, type WarehouseResponseFullAddressText, consumeBatch, consumeBatchBody, consumeBatchParams, createBatch, createBatchBody, createCatalogItem, createCatalogItemBody, createStockItems, createStockItemsBody, createWarehouse, createWarehouseBody, deleteApiIdentityAdminRolesId, deleteApiIdentityAdminRolesIdParams, deleteCatalogItem, deleteCatalogItemParams, deleteWarehouse, deleteWarehouseParams, getApiIdentityAdminPermissions, getApiIdentityAdminPermissionsResponse, getApiIdentityAdminPermissionsResponseItem, getApiIdentityAdminRoles, getApiIdentityAdminRolesId, getApiIdentityAdminRolesIdParams, getApiIdentityAdminRolesIdResponse, getApiIdentityAdminRolesResponse, getApiIdentityAdminRolesResponseItem, getApiIdentityAdminUsers, getApiIdentityAdminUsersIdPermissions, getApiIdentityAdminUsersIdPermissionsParams, getApiIdentityAdminUsersIdPermissionsResponse, getApiIdentityAdminUsersIdPermissionsResponseItem, getApiIdentityAdminUsersIdRoles, getApiIdentityAdminUsersIdRolesParams, getApiIdentityAdminUsersIdRolesResponse, getApiIdentityAdminUsersIdRolesResponseItem, getApiIdentityAdminUsersQueryParams, getApiIdentityAdminUsersResponse, getApiIdentityAntiforgery, getApiIdentityAntiforgeryResponse, getApiIdentityManage2fa, getApiIdentityManage2faResponse, getApiIdentityManageInfo, getApiIdentityManageInfoResponse, getCatalogItem, getCatalogItemParams, getCatalogItemResponse, getConsumeBatchMutationOptions, getCreateBatchMutationOptions, getCreateCatalogItemMutationOptions, getCreateStockItemsMutationOptions, getCreateWarehouseMutationOptions, getDeleteApiIdentityAdminRolesIdMutationOptions, getDeleteCatalogItemMutationOptions, getDeleteWarehouseMutationOptions, getGetApiIdentityAdminPermissionsQueryKey, getGetApiIdentityAdminPermissionsQueryOptions, getGetApiIdentityAdminRolesIdQueryKey, getGetApiIdentityAdminRolesIdQueryOptions, getGetApiIdentityAdminRolesQueryKey, getGetApiIdentityAdminRolesQueryOptions, getGetApiIdentityAdminUsersIdPermissionsQueryKey, getGetApiIdentityAdminUsersIdPermissionsQueryOptions, getGetApiIdentityAdminUsersIdRolesQueryKey, getGetApiIdentityAdminUsersIdRolesQueryOptions, getGetApiIdentityAdminUsersQueryKey, getGetApiIdentityAdminUsersQueryOptions, getGetApiIdentityAntiforgeryQueryKey, getGetApiIdentityAntiforgeryQueryOptions, getGetApiIdentityManage2faQueryKey, getGetApiIdentityManage2faQueryOptions, getGetApiIdentityManageInfoQueryKey, getGetApiIdentityManageInfoQueryOptions, getGetCatalogItemQueryKey, getGetCatalogItemQueryOptions, getGetHealthQueryKey, getGetHealthQueryOptions, getGetWarehouseByIdQueryKey, getGetWarehouseByIdQueryOptions, getGetWarehouseOptionsQueryKey, getGetWarehouseOptionsQueryOptions, getHealth, getListCatalogItemsQueryKey, getListCatalogItemsQueryOptions, getListStockItemsQueryKey, getListStockItemsQueryOptions, getListStockMovementsQueryKey, getListStockMovementsQueryOptions, getListWarehousesQueryKey, getListWarehousesQueryOptions, getPostApiIdentityAdminRolesMutationOptions, getPostApiIdentityAdminUsersIdLogoutMutationOptions, getPostApiIdentityForgotPasswordMutationOptions, getPostApiIdentityLoginMutationOptions, getPostApiIdentityLogoutMutationOptions, getPostApiIdentityManage2faMutationOptions, getPostApiIdentityManageInfoMutationOptions, getPostApiIdentityResetPasswordMutationOptions, getPutApiIdentityAdminRolesIdMutationOptions, getPutApiIdentityAdminRolesIdPermissionsMutationOptions, getPutApiIdentityAdminUsersIdActiveMutationOptions, getPutApiIdentityAdminUsersIdRolesMutationOptions, getSearchAddressesQueryKey, getSearchAddressesQueryOptions, getToggleWarehouseStatusMutationOptions, getUpdateCatalogItemMutationOptions, getUpdateWarehouseMutationOptions, getWarehouseById, getWarehouseByIdParams, getWarehouseByIdResponse, getWarehouseOptions, getWarehouseOptionsResponse, getWarehouseOptionsResponseItem, listCatalogItems, listCatalogItemsQueryPageDefault, listCatalogItemsQueryPageSizeDefault, listCatalogItemsQueryParams, listCatalogItemsResponse, listStockItems, listStockItemsQueryDescendingDefault, listStockItemsQueryPageDefault, listStockItemsQueryPageSizeDefault, listStockItemsQueryParams, listStockItemsResponse, listStockMovements, listStockMovementsQueryDescendingDefault, listStockMovementsQueryPageDefault, listStockMovementsQueryPageSizeDefault, listStockMovementsQueryParams, listStockMovementsResponse, listWarehouses, listWarehousesQueryPageDefault, listWarehousesQueryPageSizeDefault, listWarehousesQueryParams, listWarehousesResponse, postApiIdentityAdminRoles, postApiIdentityAdminRolesBody, postApiIdentityAdminUsersIdLogout, postApiIdentityAdminUsersIdLogoutParams, postApiIdentityForgotPassword, postApiIdentityForgotPasswordBody, postApiIdentityLogin, postApiIdentityLoginBody, postApiIdentityLoginResponse, postApiIdentityLogout, postApiIdentityManage2fa, postApiIdentityManage2faBody, postApiIdentityManage2faResponse, postApiIdentityManageInfo, postApiIdentityManageInfoBody, postApiIdentityManageInfoResponse, postApiIdentityResetPassword, postApiIdentityResetPasswordBody, putApiIdentityAdminRolesId, putApiIdentityAdminRolesIdBody, putApiIdentityAdminRolesIdParams, putApiIdentityAdminRolesIdPermissions, putApiIdentityAdminRolesIdPermissionsBody, putApiIdentityAdminRolesIdPermissionsParams, putApiIdentityAdminUsersIdActive, putApiIdentityAdminUsersIdActiveBody, putApiIdentityAdminUsersIdActiveParams, putApiIdentityAdminUsersIdRoles, putApiIdentityAdminUsersIdRolesBody, putApiIdentityAdminUsersIdRolesParams, searchAddresses, searchAddressesQueryLimitDefault, searchAddressesQueryParams, searchAddressesResponse, searchAddressesResponseItem, toggleWarehouseStatus, toggleWarehouseStatusParams, updateCatalogItem, updateCatalogItemBody, updateCatalogItemParams, updateCatalogItemResponse, updateWarehouse, updateWarehouseBody, updateWarehouseParams, useConsumeBatch, useCreateBatch, useCreateCatalogItem, useCreateStockItems, useCreateWarehouse, useDeleteApiIdentityAdminRolesId, useDeleteCatalogItem, useDeleteWarehouse, useGetApiIdentityAdminPermissions, useGetApiIdentityAdminRoles, useGetApiIdentityAdminRolesId, useGetApiIdentityAdminUsers, useGetApiIdentityAdminUsersIdPermissions, useGetApiIdentityAdminUsersIdRoles, useGetApiIdentityAntiforgery, useGetApiIdentityManage2fa, useGetApiIdentityManageInfo, useGetCatalogItem, useGetHealth, useGetWarehouseById, useGetWarehouseOptions, useListCatalogItems, useListStockItems, useListStockMovements, useListWarehouses, usePostApiIdentityAdminRoles, usePostApiIdentityAdminUsersIdLogout, usePostApiIdentityForgotPassword, usePostApiIdentityLogin, usePostApiIdentityLogout, usePostApiIdentityManage2fa, usePostApiIdentityManageInfo, usePostApiIdentityResetPassword, usePutApiIdentityAdminRolesId, usePutApiIdentityAdminRolesIdPermissions, usePutApiIdentityAdminUsersIdActive, usePutApiIdentityAdminUsersIdRoles, useSearchAddresses, useToggleWarehouseStatus, useUpdateCatalogItem, useUpdateWarehouse };
2515
+ export { type AccountInfo, type AddressData, type AddressSearchResultItemDto, type AddressSearchResultItemDtoExternalId, type AntiforgeryTokenResponse, type ConsumeBatchMutationBody, type ConsumeBatchMutationError, type ConsumeBatchMutationResult, type ConsumeBatchRequest, type ConsumeBatchRequestExternalReferenceNo, type ConsumeBatchRequestNote, ConsumeBatchSourceType, type CreateBatchMutationBody, type CreateBatchMutationError, type CreateBatchMutationResult, type CreateBatchRequest, type CreateBatchRequestExpiresOn, type CreateBatchRequestExternalReferenceNo, type CreateBatchRequestNote, type CreateBatchRequestReceivedBy, type CreateProductMutationBody, type CreateProductMutationError, type CreateProductMutationResult, type CreateProductRequest, type CreateStockItemCommand, type CreateStockItemsMutationBody, type CreateStockItemsMutationError, type CreateStockItemsMutationResult, type CreateVariantMutationBody, type CreateVariantMutationError, type CreateVariantMutationResult, type CreateVariantRequest, type CreateWarehouseCommand, type CreateWarehouseCommandFullAddressText, type CreateWarehouseMutationBody, type CreateWarehouseMutationError, type CreateWarehouseMutationResult, type DeleteApiIdentityAdminRolesIdMutationError, type DeleteApiIdentityAdminRolesIdMutationResult, type DeleteProductMutationError, type DeleteProductMutationResult, type DeleteVariantMutationError, type DeleteVariantMutationResult, type DeleteVariantPricingMutationError, type DeleteVariantPricingMutationResult, type DeleteWarehouseMutationError, type DeleteWarehouseMutationResult, type EmailRequest, type GetApiIdentityAdminPermissionsQueryError, type GetApiIdentityAdminPermissionsQueryResult, type GetApiIdentityAdminRolesIdQueryError, type GetApiIdentityAdminRolesIdQueryResult, type GetApiIdentityAdminRolesQueryError, type GetApiIdentityAdminRolesQueryResult, type GetApiIdentityAdminUsersIdPermissionsQueryError, type GetApiIdentityAdminUsersIdPermissionsQueryResult, type GetApiIdentityAdminUsersIdRolesQueryError, type GetApiIdentityAdminUsersIdRolesQueryResult, type GetApiIdentityAdminUsersParams, type GetApiIdentityAdminUsersQueryError, type GetApiIdentityAdminUsersQueryResult, type GetApiIdentityAntiforgeryQueryError, type GetApiIdentityAntiforgeryQueryResult, type GetApiIdentityManage2faQueryError, type GetApiIdentityManage2faQueryResult, type GetApiIdentityManageInfoQueryError, type GetApiIdentityManageInfoQueryResult, type GetHealthQueryError, type GetHealthQueryResult, type GetProductQueryError, type GetProductQueryResult, type GetVariantPricingQueryError, type GetVariantPricingQueryResult, type GetVariantQueryError, type GetVariantQueryResult, type GetWarehouseByIdQueryError, type GetWarehouseByIdQueryResult, type GetWarehouseOptionsQueryError, type GetWarehouseOptionsQueryResult, type ListProductsParams, type ListProductsQueryError, type ListProductsQueryResult, type ListStockItemsParams, type ListStockItemsQueryError, type ListStockItemsQueryResult, type ListStockMovementsParams, type ListStockMovementsQueryError, type ListStockMovementsQueryResult, type ListVariantsParams, type ListVariantsQueryError, type ListVariantsQueryResult, type ListWarehousesParams, type ListWarehousesQueryError, type ListWarehousesQueryResult, type LoginRequest, type LoginRequestTwoFactorCode, type LoginRequestTwoFactorRecoveryCode, type LoginTwoFactorResponse, type PagedListOfProductResponse, type PagedListOfStockItemResponse, type PagedListOfStockMovementResponse, type PagedListOfVariantResponse, type PagedListOfWarehouseResponse, type PermissionInfo, type PersonInChargeData, type PersonInChargeDataPhone, type PostApiIdentityAdminRolesMutationBody, type PostApiIdentityAdminRolesMutationError, type PostApiIdentityAdminRolesMutationResult, type PostApiIdentityAdminUsersIdLogoutMutationError, type PostApiIdentityAdminUsersIdLogoutMutationResult, type PostApiIdentityForgotPasswordMutationBody, type PostApiIdentityForgotPasswordMutationError, type PostApiIdentityForgotPasswordMutationResult, type PostApiIdentityLoginMutationBody, type PostApiIdentityLoginMutationError, type PostApiIdentityLoginMutationResult, type PostApiIdentityLogoutMutationError, type PostApiIdentityLogoutMutationResult, type PostApiIdentityManage2faMutationBody, type PostApiIdentityManage2faMutationError, type PostApiIdentityManage2faMutationResult, type PostApiIdentityManageInfoMutationBody, type PostApiIdentityManageInfoMutationError, type PostApiIdentityManageInfoMutationResult, type PostApiIdentityResetPasswordMutationBody, type PostApiIdentityResetPasswordMutationError, type PostApiIdentityResetPasswordMutationResult, type ProblemDetails, type ProblemDetailsDetail, type ProblemDetailsInstance, type ProblemDetailsTitle, type ProblemDetailsType, ProductClassification, type ProductResponse, ProductStatus, type PutApiIdentityAdminRolesIdMutationBody, type PutApiIdentityAdminRolesIdMutationError, type PutApiIdentityAdminRolesIdMutationResult, type PutApiIdentityAdminRolesIdPermissionsMutationBody, type PutApiIdentityAdminRolesIdPermissionsMutationError, type PutApiIdentityAdminRolesIdPermissionsMutationResult, type PutApiIdentityAdminUsersIdActiveMutationBody, type PutApiIdentityAdminUsersIdActiveMutationError, type PutApiIdentityAdminUsersIdActiveMutationResult, type PutApiIdentityAdminUsersIdRolesMutationBody, type PutApiIdentityAdminUsersIdRolesMutationError, type PutApiIdentityAdminUsersIdRolesMutationResult, type ResetPasswordRequest, type RoleInfo, type RoleNameRequest, type SearchAddressesParams, type SearchAddressesQueryError, type SearchAddressesQueryResult, type SetPermissionsRequest, type SetUserActiveRequest, type SetUserRolesRequest, SourceTypeEnum, type StockItemResponse, type StockItemResponseWarehouseId, type StockItemResponseWarehouseName, type StockMovementResponse, type StockMovementResponseBatchId, type StockMovementResponseExternalReferenceNo, type StockMovementResponseNote, type StockMovementResponseReceivedBy, type StockMovementResponseSourceReferenceId, type StockMovementResponseWarehouseName, type ToggleWarehouseStatusMutationError, type ToggleWarehouseStatusMutationResult, type TwoFactorRequest, type TwoFactorRequestEnable, type TwoFactorRequestPassword, type TwoFactorRequestTwoFactorCode, type TwoFactorState, type TwoFactorStateRecoveryCodes, type TwoFactorStateSharedKey, type UpdateAccountRequest, type UpdateAccountRequestNewEmail, type UpdateAccountRequestNewPassword, type UpdateAccountRequestOldPassword, type UpdateProductMutationBody, type UpdateProductMutationError, type UpdateProductMutationResult, type UpdateProductRequest, type UpdateVariantMutationBody, type UpdateVariantMutationError, type UpdateVariantMutationResult, type UpdateVariantRequest, type UpdateWarehouseCommand, type UpdateWarehouseCommandFullAddressText, type UpdateWarehouseMutationBody, type UpdateWarehouseMutationError, type UpdateWarehouseMutationResult, type UpsertVariantPricingMutationBody, type UpsertVariantPricingMutationError, type UpsertVariantPricingMutationResult, type UpsertVariantPricingRequest, type UpsertVariantPricingRequestSale, type UserInfo, type VariantAttributeRequest, type VariantAttributeResponse, type VariantPricingResponse, type VariantPricingResponseSale, type VariantResponse, type VariantSalePriceRequest, type VariantSalePriceResponse, type VariantWeightRequest, type VariantWeightResponse, type VariantWholesalePriceRequest, type VariantWholesalePriceResponse, type WarehouseOptionResponse, type WarehouseResponse, type WarehouseResponseFullAddressText, consumeBatch, consumeBatchBody, consumeBatchParams, createBatch, createBatchBody, createProduct, createProductBody, createStockItems, createStockItemsBody, createVariant, createVariantBody, createVariantParams, createWarehouse, createWarehouseBody, deleteApiIdentityAdminRolesId, deleteApiIdentityAdminRolesIdParams, deleteProduct, deleteProductParams, deleteVariant, deleteVariantParams, deleteVariantPricing, deleteVariantPricingParams, deleteWarehouse, deleteWarehouseParams, getApiIdentityAdminPermissions, getApiIdentityAdminPermissionsResponse, getApiIdentityAdminPermissionsResponseItem, getApiIdentityAdminRoles, getApiIdentityAdminRolesId, getApiIdentityAdminRolesIdParams, getApiIdentityAdminRolesIdResponse, getApiIdentityAdminRolesResponse, getApiIdentityAdminRolesResponseItem, getApiIdentityAdminUsers, getApiIdentityAdminUsersIdPermissions, getApiIdentityAdminUsersIdPermissionsParams, getApiIdentityAdminUsersIdPermissionsResponse, getApiIdentityAdminUsersIdPermissionsResponseItem, getApiIdentityAdminUsersIdRoles, getApiIdentityAdminUsersIdRolesParams, getApiIdentityAdminUsersIdRolesResponse, getApiIdentityAdminUsersIdRolesResponseItem, getApiIdentityAdminUsersQueryParams, getApiIdentityAdminUsersResponse, getApiIdentityAntiforgery, getApiIdentityAntiforgeryResponse, getApiIdentityManage2fa, getApiIdentityManage2faResponse, getApiIdentityManageInfo, getApiIdentityManageInfoResponse, getConsumeBatchMutationOptions, getCreateBatchMutationOptions, getCreateProductMutationOptions, getCreateStockItemsMutationOptions, getCreateVariantMutationOptions, getCreateWarehouseMutationOptions, getDeleteApiIdentityAdminRolesIdMutationOptions, getDeleteProductMutationOptions, getDeleteVariantMutationOptions, getDeleteVariantPricingMutationOptions, getDeleteWarehouseMutationOptions, getGetApiIdentityAdminPermissionsQueryKey, getGetApiIdentityAdminPermissionsQueryOptions, getGetApiIdentityAdminRolesIdQueryKey, getGetApiIdentityAdminRolesIdQueryOptions, getGetApiIdentityAdminRolesQueryKey, getGetApiIdentityAdminRolesQueryOptions, getGetApiIdentityAdminUsersIdPermissionsQueryKey, getGetApiIdentityAdminUsersIdPermissionsQueryOptions, getGetApiIdentityAdminUsersIdRolesQueryKey, getGetApiIdentityAdminUsersIdRolesQueryOptions, getGetApiIdentityAdminUsersQueryKey, getGetApiIdentityAdminUsersQueryOptions, getGetApiIdentityAntiforgeryQueryKey, getGetApiIdentityAntiforgeryQueryOptions, getGetApiIdentityManage2faQueryKey, getGetApiIdentityManage2faQueryOptions, getGetApiIdentityManageInfoQueryKey, getGetApiIdentityManageInfoQueryOptions, getGetHealthQueryKey, getGetHealthQueryOptions, getGetProductQueryKey, getGetProductQueryOptions, getGetVariantPricingQueryKey, getGetVariantPricingQueryOptions, getGetVariantQueryKey, getGetVariantQueryOptions, getGetWarehouseByIdQueryKey, getGetWarehouseByIdQueryOptions, getGetWarehouseOptionsQueryKey, getGetWarehouseOptionsQueryOptions, getHealth, getListProductsQueryKey, getListProductsQueryOptions, getListStockItemsQueryKey, getListStockItemsQueryOptions, getListStockMovementsQueryKey, getListStockMovementsQueryOptions, getListVariantsQueryKey, getListVariantsQueryOptions, getListWarehousesQueryKey, getListWarehousesQueryOptions, getPostApiIdentityAdminRolesMutationOptions, getPostApiIdentityAdminUsersIdLogoutMutationOptions, getPostApiIdentityForgotPasswordMutationOptions, getPostApiIdentityLoginMutationOptions, getPostApiIdentityLogoutMutationOptions, getPostApiIdentityManage2faMutationOptions, getPostApiIdentityManageInfoMutationOptions, getPostApiIdentityResetPasswordMutationOptions, getProduct, getProductParams, getProductResponse, getPutApiIdentityAdminRolesIdMutationOptions, getPutApiIdentityAdminRolesIdPermissionsMutationOptions, getPutApiIdentityAdminUsersIdActiveMutationOptions, getPutApiIdentityAdminUsersIdRolesMutationOptions, getSearchAddressesQueryKey, getSearchAddressesQueryOptions, getToggleWarehouseStatusMutationOptions, getUpdateProductMutationOptions, getUpdateVariantMutationOptions, getUpdateWarehouseMutationOptions, getUpsertVariantPricingMutationOptions, getVariant, getVariantParams, getVariantPricing, getVariantPricingParams, getVariantPricingResponse, getVariantResponse, getWarehouseById, getWarehouseByIdParams, getWarehouseByIdResponse, getWarehouseOptions, getWarehouseOptionsResponse, getWarehouseOptionsResponseItem, listProducts, listProductsQueryPageDefault, listProductsQueryPageSizeDefault, listProductsQueryParams, listProductsResponse, listStockItems, listStockItemsQueryDescendingDefault, listStockItemsQueryPageDefault, listStockItemsQueryPageSizeDefault, listStockItemsQueryParams, listStockItemsResponse, listStockMovements, listStockMovementsQueryDescendingDefault, listStockMovementsQueryPageDefault, listStockMovementsQueryPageSizeDefault, listStockMovementsQueryParams, listStockMovementsResponse, listVariants, listVariantsParams, listVariantsQueryPageDefault, listVariantsQueryPageSizeDefault, listVariantsQueryParams, listVariantsResponse, listWarehouses, listWarehousesQueryPageDefault, listWarehousesQueryPageSizeDefault, listWarehousesQueryParams, listWarehousesResponse, postApiIdentityAdminRoles, postApiIdentityAdminRolesBody, postApiIdentityAdminUsersIdLogout, postApiIdentityAdminUsersIdLogoutParams, postApiIdentityForgotPassword, postApiIdentityForgotPasswordBody, postApiIdentityLogin, postApiIdentityLoginBody, postApiIdentityLoginResponse, postApiIdentityLogout, postApiIdentityManage2fa, postApiIdentityManage2faBody, postApiIdentityManage2faResponse, postApiIdentityManageInfo, postApiIdentityManageInfoBody, postApiIdentityManageInfoResponse, postApiIdentityResetPassword, postApiIdentityResetPasswordBody, putApiIdentityAdminRolesId, putApiIdentityAdminRolesIdBody, putApiIdentityAdminRolesIdParams, putApiIdentityAdminRolesIdPermissions, putApiIdentityAdminRolesIdPermissionsBody, putApiIdentityAdminRolesIdPermissionsParams, putApiIdentityAdminUsersIdActive, putApiIdentityAdminUsersIdActiveBody, putApiIdentityAdminUsersIdActiveParams, putApiIdentityAdminUsersIdRoles, putApiIdentityAdminUsersIdRolesBody, putApiIdentityAdminUsersIdRolesParams, searchAddresses, searchAddressesQueryLimitDefault, searchAddressesQueryParams, searchAddressesResponse, searchAddressesResponseItem, toggleWarehouseStatus, toggleWarehouseStatusParams, updateProduct, updateProductBody, updateProductParams, updateProductResponse, updateVariant, updateVariantBody, updateVariantParams, updateVariantResponse, updateWarehouse, updateWarehouseBody, updateWarehouseParams, upsertVariantPricing, upsertVariantPricingBody, upsertVariantPricingParams, upsertVariantPricingResponse, useConsumeBatch, useCreateBatch, useCreateProduct, useCreateStockItems, useCreateVariant, useCreateWarehouse, useDeleteApiIdentityAdminRolesId, useDeleteProduct, useDeleteVariant, useDeleteVariantPricing, useDeleteWarehouse, useGetApiIdentityAdminPermissions, useGetApiIdentityAdminRoles, useGetApiIdentityAdminRolesId, useGetApiIdentityAdminUsers, useGetApiIdentityAdminUsersIdPermissions, useGetApiIdentityAdminUsersIdRoles, useGetApiIdentityAntiforgery, useGetApiIdentityManage2fa, useGetApiIdentityManageInfo, useGetHealth, useGetProduct, useGetVariant, useGetVariantPricing, useGetWarehouseById, useGetWarehouseOptions, useListProducts, useListStockItems, useListStockMovements, useListVariants, useListWarehouses, usePostApiIdentityAdminRoles, usePostApiIdentityAdminUsersIdLogout, usePostApiIdentityForgotPassword, usePostApiIdentityLogin, usePostApiIdentityLogout, usePostApiIdentityManage2fa, usePostApiIdentityManageInfo, usePostApiIdentityResetPassword, usePutApiIdentityAdminRolesId, usePutApiIdentityAdminRolesIdPermissions, usePutApiIdentityAdminUsersIdActive, usePutApiIdentityAdminUsersIdRoles, useSearchAddresses, useToggleWarehouseStatus, useUpdateProduct, useUpdateVariant, useUpdateWarehouse, useUpsertVariantPricing };