@arascreative/erp-api-client 1.1.0 → 2.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 +837 -1
- package/dist/index.d.ts +837 -1
- package/dist/index.js +643 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +566 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -62,11 +62,23 @@ interface CreateBatchRequest {
|
|
|
62
62
|
note?: CreateBatchRequestNote;
|
|
63
63
|
receivedBy?: CreateBatchRequestReceivedBy;
|
|
64
64
|
}
|
|
65
|
+
interface CreateProductRequest {
|
|
66
|
+
categoryId: string;
|
|
67
|
+
name: string;
|
|
68
|
+
slug: string;
|
|
69
|
+
status?: ProductStatus;
|
|
70
|
+
classification: ProductClassification;
|
|
71
|
+
}
|
|
65
72
|
interface CreateStockItemCommand {
|
|
66
73
|
name: string;
|
|
67
74
|
sku: string;
|
|
68
75
|
unit: string;
|
|
69
76
|
}
|
|
77
|
+
interface CreateVariantRequest {
|
|
78
|
+
code: string;
|
|
79
|
+
attributes?: VariantAttributeRequest[];
|
|
80
|
+
weight: VariantWeightRequest;
|
|
81
|
+
}
|
|
70
82
|
type CreateWarehouseCommandFullAddressText = null | string;
|
|
71
83
|
interface CreateWarehouseCommand {
|
|
72
84
|
name: string;
|
|
@@ -88,6 +100,15 @@ interface LoginRequest {
|
|
|
88
100
|
interface LoginTwoFactorResponse {
|
|
89
101
|
requiresTwoFactor: boolean;
|
|
90
102
|
}
|
|
103
|
+
interface PagedListOfProductResponse {
|
|
104
|
+
items: ProductResponse[];
|
|
105
|
+
page: number;
|
|
106
|
+
pageSize: number;
|
|
107
|
+
totalCount: number;
|
|
108
|
+
totalPages?: number;
|
|
109
|
+
hasNextPage?: boolean;
|
|
110
|
+
hasPreviousPage?: boolean;
|
|
111
|
+
}
|
|
91
112
|
interface PagedListOfStockItemResponse {
|
|
92
113
|
items: StockItemResponse[];
|
|
93
114
|
page: number;
|
|
@@ -106,6 +127,15 @@ interface PagedListOfStockMovementResponse {
|
|
|
106
127
|
hasNextPage?: boolean;
|
|
107
128
|
hasPreviousPage?: boolean;
|
|
108
129
|
}
|
|
130
|
+
interface PagedListOfVariantResponse {
|
|
131
|
+
items: VariantResponse[];
|
|
132
|
+
page: number;
|
|
133
|
+
pageSize: number;
|
|
134
|
+
totalCount: number;
|
|
135
|
+
totalPages?: number;
|
|
136
|
+
hasNextPage?: boolean;
|
|
137
|
+
hasPreviousPage?: boolean;
|
|
138
|
+
}
|
|
109
139
|
interface PagedListOfWarehouseResponse {
|
|
110
140
|
items: WarehouseResponse[];
|
|
111
141
|
page: number;
|
|
@@ -136,6 +166,26 @@ interface ProblemDetails {
|
|
|
136
166
|
detail?: ProblemDetailsDetail;
|
|
137
167
|
instance?: ProblemDetailsInstance;
|
|
138
168
|
}
|
|
169
|
+
type ProductClassification = (typeof ProductClassification)[keyof typeof ProductClassification];
|
|
170
|
+
declare const ProductClassification: {
|
|
171
|
+
readonly Physical: "Physical";
|
|
172
|
+
readonly Digital: "Digital";
|
|
173
|
+
};
|
|
174
|
+
interface ProductResponse {
|
|
175
|
+
id: string;
|
|
176
|
+
categoryId: string;
|
|
177
|
+
name: string;
|
|
178
|
+
slug: string;
|
|
179
|
+
status: ProductStatus;
|
|
180
|
+
classification: ProductClassification;
|
|
181
|
+
variantCount: number;
|
|
182
|
+
}
|
|
183
|
+
type ProductStatus = (typeof ProductStatus)[keyof typeof ProductStatus];
|
|
184
|
+
declare const ProductStatus: {
|
|
185
|
+
readonly Tes: "Tes";
|
|
186
|
+
readonly Live: "Live";
|
|
187
|
+
readonly Archived: "Archived";
|
|
188
|
+
};
|
|
139
189
|
interface ResetPasswordRequest {
|
|
140
190
|
email: string;
|
|
141
191
|
resetCode: string;
|
|
@@ -229,6 +279,18 @@ interface UpdateAccountRequest {
|
|
|
229
279
|
newPassword: UpdateAccountRequestNewPassword;
|
|
230
280
|
oldPassword: UpdateAccountRequestOldPassword;
|
|
231
281
|
}
|
|
282
|
+
interface UpdateProductRequest {
|
|
283
|
+
categoryId: string;
|
|
284
|
+
name: string;
|
|
285
|
+
slug: string;
|
|
286
|
+
status: ProductStatus;
|
|
287
|
+
classification: ProductClassification;
|
|
288
|
+
}
|
|
289
|
+
interface UpdateVariantRequest {
|
|
290
|
+
code: string;
|
|
291
|
+
attributes?: VariantAttributeRequest[];
|
|
292
|
+
weight: VariantWeightRequest;
|
|
293
|
+
}
|
|
232
294
|
type UpdateWarehouseCommandFullAddressText = null | string;
|
|
233
295
|
interface UpdateWarehouseCommand {
|
|
234
296
|
warehouseId?: string;
|
|
@@ -237,11 +299,74 @@ interface UpdateWarehouseCommand {
|
|
|
237
299
|
personInCharge: PersonInChargeData;
|
|
238
300
|
fullAddressText?: UpdateWarehouseCommandFullAddressText;
|
|
239
301
|
}
|
|
302
|
+
type UpsertVariantPricingRequestSale = null | VariantSalePriceRequest;
|
|
303
|
+
interface UpsertVariantPricingRequest {
|
|
304
|
+
baseAmount: number;
|
|
305
|
+
baseCurrency: string;
|
|
306
|
+
sale?: UpsertVariantPricingRequestSale;
|
|
307
|
+
wholesale?: VariantWholesalePriceRequest[];
|
|
308
|
+
}
|
|
240
309
|
interface UserInfo {
|
|
241
310
|
id: string;
|
|
242
311
|
email: string;
|
|
243
312
|
isActive: boolean;
|
|
244
313
|
}
|
|
314
|
+
interface VariantAttributeRequest {
|
|
315
|
+
name: string;
|
|
316
|
+
value: string;
|
|
317
|
+
}
|
|
318
|
+
interface VariantAttributeResponse {
|
|
319
|
+
name: string;
|
|
320
|
+
value: string;
|
|
321
|
+
}
|
|
322
|
+
type VariantPricingResponseSale = null | VariantSalePriceResponse;
|
|
323
|
+
interface VariantPricingResponse {
|
|
324
|
+
variantId: string;
|
|
325
|
+
baseAmount: number;
|
|
326
|
+
baseCurrency: string;
|
|
327
|
+
effectiveAmount: number;
|
|
328
|
+
effectiveCurrency: string;
|
|
329
|
+
sale?: VariantPricingResponseSale;
|
|
330
|
+
wholesale?: VariantWholesalePriceResponse[];
|
|
331
|
+
}
|
|
332
|
+
interface VariantResponse {
|
|
333
|
+
id: string;
|
|
334
|
+
productId: string;
|
|
335
|
+
code: string;
|
|
336
|
+
attributes?: VariantAttributeResponse[];
|
|
337
|
+
weight: VariantWeightResponse;
|
|
338
|
+
}
|
|
339
|
+
interface VariantSalePriceRequest {
|
|
340
|
+
amount: number;
|
|
341
|
+
currency: string;
|
|
342
|
+
startAt: string;
|
|
343
|
+
endAt: string;
|
|
344
|
+
}
|
|
345
|
+
interface VariantSalePriceResponse {
|
|
346
|
+
amount: number;
|
|
347
|
+
currency: string;
|
|
348
|
+
startAt: string;
|
|
349
|
+
endAt: string;
|
|
350
|
+
isActive: boolean;
|
|
351
|
+
}
|
|
352
|
+
interface VariantWeightRequest {
|
|
353
|
+
value: number;
|
|
354
|
+
unit: string;
|
|
355
|
+
}
|
|
356
|
+
interface VariantWeightResponse {
|
|
357
|
+
value: number;
|
|
358
|
+
unit: string;
|
|
359
|
+
}
|
|
360
|
+
interface VariantWholesalePriceRequest {
|
|
361
|
+
minQty: number;
|
|
362
|
+
amount: number;
|
|
363
|
+
currency: string;
|
|
364
|
+
}
|
|
365
|
+
interface VariantWholesalePriceResponse {
|
|
366
|
+
minQty: number;
|
|
367
|
+
amount: number;
|
|
368
|
+
currency: string;
|
|
369
|
+
}
|
|
245
370
|
interface WarehouseOptionResponse {
|
|
246
371
|
warehouseId: string;
|
|
247
372
|
name: string;
|
|
@@ -269,6 +394,14 @@ type SearchAddressesParams = {
|
|
|
269
394
|
keyword: string;
|
|
270
395
|
limit?: number;
|
|
271
396
|
};
|
|
397
|
+
type ListProductsParams = {
|
|
398
|
+
page?: number;
|
|
399
|
+
pageSize?: number;
|
|
400
|
+
};
|
|
401
|
+
type ListVariantsParams = {
|
|
402
|
+
page?: number;
|
|
403
|
+
pageSize?: number;
|
|
404
|
+
};
|
|
272
405
|
type ListStockItemsParams = {
|
|
273
406
|
/**
|
|
274
407
|
* Free-text search on name or SKU.
|
|
@@ -594,6 +727,403 @@ declare function useSearchAddresses<TData = Awaited<ReturnType<typeof searchAddr
|
|
|
594
727
|
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
595
728
|
queryKey: DataTag<QueryKey, TData>;
|
|
596
729
|
};
|
|
730
|
+
/**
|
|
731
|
+
* Creates the product shell only. Add variants and pricing through their own resources.
|
|
732
|
+
* @summary Create a product
|
|
733
|
+
*/
|
|
734
|
+
declare const createProduct: (createProductRequest: CreateProductRequest, options?: AxiosRequestConfig) => Promise<AxiosResponse<ProductResponse>>;
|
|
735
|
+
declare const getCreateProductMutationOptions: <TError = AxiosError<ProblemDetails>, TContext = unknown>(options?: {
|
|
736
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof createProduct>>, TError, {
|
|
737
|
+
data: CreateProductRequest;
|
|
738
|
+
}, TContext>;
|
|
739
|
+
axios?: AxiosRequestConfig;
|
|
740
|
+
}) => UseMutationOptions<Awaited<ReturnType<typeof createProduct>>, TError, {
|
|
741
|
+
data: CreateProductRequest;
|
|
742
|
+
}, TContext>;
|
|
743
|
+
type CreateProductMutationResult = NonNullable<Awaited<ReturnType<typeof createProduct>>>;
|
|
744
|
+
type CreateProductMutationBody = CreateProductRequest;
|
|
745
|
+
type CreateProductMutationError = AxiosError<ProblemDetails>;
|
|
746
|
+
/**
|
|
747
|
+
* @summary Create a product
|
|
748
|
+
*/
|
|
749
|
+
declare const useCreateProduct: <TError = AxiosError<ProblemDetails>, TContext = unknown>(options?: {
|
|
750
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof createProduct>>, TError, {
|
|
751
|
+
data: CreateProductRequest;
|
|
752
|
+
}, TContext>;
|
|
753
|
+
axios?: AxiosRequestConfig;
|
|
754
|
+
}, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof createProduct>>, TError, {
|
|
755
|
+
data: CreateProductRequest;
|
|
756
|
+
}, TContext>;
|
|
757
|
+
/**
|
|
758
|
+
* Returns a paginated list of products with their variant count.
|
|
759
|
+
* @summary List products
|
|
760
|
+
*/
|
|
761
|
+
declare const listProducts: (params?: ListProductsParams, options?: AxiosRequestConfig) => Promise<AxiosResponse<PagedListOfProductResponse>>;
|
|
762
|
+
declare const getListProductsQueryKey: (params?: ListProductsParams) => readonly ["/api/catalog/products", ...ListProductsParams[]];
|
|
763
|
+
declare const getListProductsQueryOptions: <TData = Awaited<ReturnType<typeof listProducts>>, TError = AxiosError<ProblemDetails>>(params?: ListProductsParams, options?: {
|
|
764
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof listProducts>>, TError, TData>>;
|
|
765
|
+
axios?: AxiosRequestConfig;
|
|
766
|
+
}) => UseQueryOptions<Awaited<ReturnType<typeof listProducts>>, TError, TData> & {
|
|
767
|
+
queryKey: DataTag<QueryKey, TData>;
|
|
768
|
+
};
|
|
769
|
+
type ListProductsQueryResult = NonNullable<Awaited<ReturnType<typeof listProducts>>>;
|
|
770
|
+
type ListProductsQueryError = AxiosError<ProblemDetails>;
|
|
771
|
+
declare function useListProducts<TData = Awaited<ReturnType<typeof listProducts>>, TError = AxiosError<ProblemDetails>>(params: undefined | ListProductsParams, options: {
|
|
772
|
+
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof listProducts>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof listProducts>>, TError, Awaited<ReturnType<typeof listProducts>>>, 'initialData'>;
|
|
773
|
+
axios?: AxiosRequestConfig;
|
|
774
|
+
}, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
|
|
775
|
+
queryKey: DataTag<QueryKey, TData>;
|
|
776
|
+
};
|
|
777
|
+
declare function useListProducts<TData = Awaited<ReturnType<typeof listProducts>>, TError = AxiosError<ProblemDetails>>(params?: ListProductsParams, options?: {
|
|
778
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof listProducts>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof listProducts>>, TError, Awaited<ReturnType<typeof listProducts>>>, 'initialData'>;
|
|
779
|
+
axios?: AxiosRequestConfig;
|
|
780
|
+
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
781
|
+
queryKey: DataTag<QueryKey, TData>;
|
|
782
|
+
};
|
|
783
|
+
declare function useListProducts<TData = Awaited<ReturnType<typeof listProducts>>, TError = AxiosError<ProblemDetails>>(params?: ListProductsParams, options?: {
|
|
784
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof listProducts>>, TError, TData>>;
|
|
785
|
+
axios?: AxiosRequestConfig;
|
|
786
|
+
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
787
|
+
queryKey: DataTag<QueryKey, TData>;
|
|
788
|
+
};
|
|
789
|
+
/**
|
|
790
|
+
* Returns one product. Variants are listed from the nested variants resource.
|
|
791
|
+
* @summary Get product by id
|
|
792
|
+
*/
|
|
793
|
+
declare const getProduct: (id: string, options?: AxiosRequestConfig) => Promise<AxiosResponse<ProductResponse>>;
|
|
794
|
+
declare const getGetProductQueryKey: (id?: string) => readonly [`/api/catalog/products/${string}`];
|
|
795
|
+
declare const getGetProductQueryOptions: <TData = Awaited<ReturnType<typeof getProduct>>, TError = AxiosError<ProblemDetails>>(id: string, options?: {
|
|
796
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getProduct>>, TError, TData>>;
|
|
797
|
+
axios?: AxiosRequestConfig;
|
|
798
|
+
}) => UseQueryOptions<Awaited<ReturnType<typeof getProduct>>, TError, TData> & {
|
|
799
|
+
queryKey: DataTag<QueryKey, TData>;
|
|
800
|
+
};
|
|
801
|
+
type GetProductQueryResult = NonNullable<Awaited<ReturnType<typeof getProduct>>>;
|
|
802
|
+
type GetProductQueryError = AxiosError<ProblemDetails>;
|
|
803
|
+
declare function useGetProduct<TData = Awaited<ReturnType<typeof getProduct>>, TError = AxiosError<ProblemDetails>>(id: string, options: {
|
|
804
|
+
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getProduct>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof getProduct>>, TError, Awaited<ReturnType<typeof getProduct>>>, 'initialData'>;
|
|
805
|
+
axios?: AxiosRequestConfig;
|
|
806
|
+
}, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
|
|
807
|
+
queryKey: DataTag<QueryKey, TData>;
|
|
808
|
+
};
|
|
809
|
+
declare function useGetProduct<TData = Awaited<ReturnType<typeof getProduct>>, TError = AxiosError<ProblemDetails>>(id: string, options?: {
|
|
810
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getProduct>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof getProduct>>, TError, Awaited<ReturnType<typeof getProduct>>>, 'initialData'>;
|
|
811
|
+
axios?: AxiosRequestConfig;
|
|
812
|
+
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
813
|
+
queryKey: DataTag<QueryKey, TData>;
|
|
814
|
+
};
|
|
815
|
+
declare function useGetProduct<TData = Awaited<ReturnType<typeof getProduct>>, TError = AxiosError<ProblemDetails>>(id: string, options?: {
|
|
816
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getProduct>>, TError, TData>>;
|
|
817
|
+
axios?: AxiosRequestConfig;
|
|
818
|
+
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
819
|
+
queryKey: DataTag<QueryKey, TData>;
|
|
820
|
+
};
|
|
821
|
+
/**
|
|
822
|
+
* Replaces the product shell. Variants and pricing are left untouched.
|
|
823
|
+
* @summary Update a product
|
|
824
|
+
*/
|
|
825
|
+
declare const updateProduct: (id: string, updateProductRequest: UpdateProductRequest, options?: AxiosRequestConfig) => Promise<AxiosResponse<ProductResponse>>;
|
|
826
|
+
declare const getUpdateProductMutationOptions: <TError = AxiosError<ProblemDetails>, TContext = unknown>(options?: {
|
|
827
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof updateProduct>>, TError, {
|
|
828
|
+
id: string;
|
|
829
|
+
data: UpdateProductRequest;
|
|
830
|
+
}, TContext>;
|
|
831
|
+
axios?: AxiosRequestConfig;
|
|
832
|
+
}) => UseMutationOptions<Awaited<ReturnType<typeof updateProduct>>, TError, {
|
|
833
|
+
id: string;
|
|
834
|
+
data: UpdateProductRequest;
|
|
835
|
+
}, TContext>;
|
|
836
|
+
type UpdateProductMutationResult = NonNullable<Awaited<ReturnType<typeof updateProduct>>>;
|
|
837
|
+
type UpdateProductMutationBody = UpdateProductRequest;
|
|
838
|
+
type UpdateProductMutationError = AxiosError<ProblemDetails>;
|
|
839
|
+
/**
|
|
840
|
+
* @summary Update a product
|
|
841
|
+
*/
|
|
842
|
+
declare const useUpdateProduct: <TError = AxiosError<ProblemDetails>, TContext = unknown>(options?: {
|
|
843
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof updateProduct>>, TError, {
|
|
844
|
+
id: string;
|
|
845
|
+
data: UpdateProductRequest;
|
|
846
|
+
}, TContext>;
|
|
847
|
+
axios?: AxiosRequestConfig;
|
|
848
|
+
}, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof updateProduct>>, TError, {
|
|
849
|
+
id: string;
|
|
850
|
+
data: UpdateProductRequest;
|
|
851
|
+
}, TContext>;
|
|
852
|
+
/**
|
|
853
|
+
* Deletes a product. Variants and their pricing are removed with it.
|
|
854
|
+
* @summary Delete a product
|
|
855
|
+
*/
|
|
856
|
+
declare const deleteProduct: (id: string, options?: AxiosRequestConfig) => Promise<AxiosResponse<void>>;
|
|
857
|
+
declare const getDeleteProductMutationOptions: <TError = AxiosError<ProblemDetails>, TContext = unknown>(options?: {
|
|
858
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof deleteProduct>>, TError, {
|
|
859
|
+
id: string;
|
|
860
|
+
}, TContext>;
|
|
861
|
+
axios?: AxiosRequestConfig;
|
|
862
|
+
}) => UseMutationOptions<Awaited<ReturnType<typeof deleteProduct>>, TError, {
|
|
863
|
+
id: string;
|
|
864
|
+
}, TContext>;
|
|
865
|
+
type DeleteProductMutationResult = NonNullable<Awaited<ReturnType<typeof deleteProduct>>>;
|
|
866
|
+
type DeleteProductMutationError = AxiosError<ProblemDetails>;
|
|
867
|
+
/**
|
|
868
|
+
* @summary Delete a product
|
|
869
|
+
*/
|
|
870
|
+
declare const useDeleteProduct: <TError = AxiosError<ProblemDetails>, TContext = unknown>(options?: {
|
|
871
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof deleteProduct>>, TError, {
|
|
872
|
+
id: string;
|
|
873
|
+
}, TContext>;
|
|
874
|
+
axios?: AxiosRequestConfig;
|
|
875
|
+
}, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof deleteProduct>>, TError, {
|
|
876
|
+
id: string;
|
|
877
|
+
}, TContext>;
|
|
878
|
+
/**
|
|
879
|
+
* Adds a variant to the product given by productId. Pricing is set separately.
|
|
880
|
+
* @summary Create a variant
|
|
881
|
+
*/
|
|
882
|
+
declare const createVariant: (productId: string, createVariantRequest: CreateVariantRequest, options?: AxiosRequestConfig) => Promise<AxiosResponse<VariantResponse>>;
|
|
883
|
+
declare const getCreateVariantMutationOptions: <TError = AxiosError<ProblemDetails>, TContext = unknown>(options?: {
|
|
884
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof createVariant>>, TError, {
|
|
885
|
+
productId: string;
|
|
886
|
+
data: CreateVariantRequest;
|
|
887
|
+
}, TContext>;
|
|
888
|
+
axios?: AxiosRequestConfig;
|
|
889
|
+
}) => UseMutationOptions<Awaited<ReturnType<typeof createVariant>>, TError, {
|
|
890
|
+
productId: string;
|
|
891
|
+
data: CreateVariantRequest;
|
|
892
|
+
}, TContext>;
|
|
893
|
+
type CreateVariantMutationResult = NonNullable<Awaited<ReturnType<typeof createVariant>>>;
|
|
894
|
+
type CreateVariantMutationBody = CreateVariantRequest;
|
|
895
|
+
type CreateVariantMutationError = AxiosError<ProblemDetails>;
|
|
896
|
+
/**
|
|
897
|
+
* @summary Create a variant
|
|
898
|
+
*/
|
|
899
|
+
declare const useCreateVariant: <TError = AxiosError<ProblemDetails>, TContext = unknown>(options?: {
|
|
900
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof createVariant>>, TError, {
|
|
901
|
+
productId: string;
|
|
902
|
+
data: CreateVariantRequest;
|
|
903
|
+
}, TContext>;
|
|
904
|
+
axios?: AxiosRequestConfig;
|
|
905
|
+
}, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof createVariant>>, TError, {
|
|
906
|
+
productId: string;
|
|
907
|
+
data: CreateVariantRequest;
|
|
908
|
+
}, TContext>;
|
|
909
|
+
/**
|
|
910
|
+
* Returns a paginated list of variants belonging to one product.
|
|
911
|
+
* @summary List variants of a product
|
|
912
|
+
*/
|
|
913
|
+
declare const listVariants: (productId: string, params?: ListVariantsParams, options?: AxiosRequestConfig) => Promise<AxiosResponse<PagedListOfVariantResponse>>;
|
|
914
|
+
declare const getListVariantsQueryKey: (productId?: string, params?: ListVariantsParams) => readonly [`/api/catalog/products/${string}/variants`, ...ListVariantsParams[]];
|
|
915
|
+
declare const getListVariantsQueryOptions: <TData = Awaited<ReturnType<typeof listVariants>>, TError = AxiosError<ProblemDetails>>(productId: string, params?: ListVariantsParams, options?: {
|
|
916
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof listVariants>>, TError, TData>>;
|
|
917
|
+
axios?: AxiosRequestConfig;
|
|
918
|
+
}) => UseQueryOptions<Awaited<ReturnType<typeof listVariants>>, TError, TData> & {
|
|
919
|
+
queryKey: DataTag<QueryKey, TData>;
|
|
920
|
+
};
|
|
921
|
+
type ListVariantsQueryResult = NonNullable<Awaited<ReturnType<typeof listVariants>>>;
|
|
922
|
+
type ListVariantsQueryError = AxiosError<ProblemDetails>;
|
|
923
|
+
declare function useListVariants<TData = Awaited<ReturnType<typeof listVariants>>, TError = AxiosError<ProblemDetails>>(productId: string, params: undefined | ListVariantsParams, options: {
|
|
924
|
+
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof listVariants>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof listVariants>>, TError, Awaited<ReturnType<typeof listVariants>>>, 'initialData'>;
|
|
925
|
+
axios?: AxiosRequestConfig;
|
|
926
|
+
}, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
|
|
927
|
+
queryKey: DataTag<QueryKey, TData>;
|
|
928
|
+
};
|
|
929
|
+
declare function useListVariants<TData = Awaited<ReturnType<typeof listVariants>>, TError = AxiosError<ProblemDetails>>(productId: string, params?: ListVariantsParams, options?: {
|
|
930
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof listVariants>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof listVariants>>, TError, Awaited<ReturnType<typeof listVariants>>>, 'initialData'>;
|
|
931
|
+
axios?: AxiosRequestConfig;
|
|
932
|
+
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
933
|
+
queryKey: DataTag<QueryKey, TData>;
|
|
934
|
+
};
|
|
935
|
+
declare function useListVariants<TData = Awaited<ReturnType<typeof listVariants>>, TError = AxiosError<ProblemDetails>>(productId: string, params?: ListVariantsParams, options?: {
|
|
936
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof listVariants>>, TError, TData>>;
|
|
937
|
+
axios?: AxiosRequestConfig;
|
|
938
|
+
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
939
|
+
queryKey: DataTag<QueryKey, TData>;
|
|
940
|
+
};
|
|
941
|
+
/**
|
|
942
|
+
* Returns one variant of the given product. Pricing is fetched separately.
|
|
943
|
+
* @summary Get variant by id
|
|
944
|
+
*/
|
|
945
|
+
declare const getVariant: (productId: string, id: string, options?: AxiosRequestConfig) => Promise<AxiosResponse<VariantResponse>>;
|
|
946
|
+
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}`];
|
|
947
|
+
declare const getGetVariantQueryOptions: <TData = Awaited<ReturnType<typeof getVariant>>, TError = AxiosError<ProblemDetails>>(productId: string, id: string, options?: {
|
|
948
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getVariant>>, TError, TData>>;
|
|
949
|
+
axios?: AxiosRequestConfig;
|
|
950
|
+
}) => UseQueryOptions<Awaited<ReturnType<typeof getVariant>>, TError, TData> & {
|
|
951
|
+
queryKey: DataTag<QueryKey, TData>;
|
|
952
|
+
};
|
|
953
|
+
type GetVariantQueryResult = NonNullable<Awaited<ReturnType<typeof getVariant>>>;
|
|
954
|
+
type GetVariantQueryError = AxiosError<ProblemDetails>;
|
|
955
|
+
declare function useGetVariant<TData = Awaited<ReturnType<typeof getVariant>>, TError = AxiosError<ProblemDetails>>(productId: string, id: string, options: {
|
|
956
|
+
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getVariant>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof getVariant>>, TError, Awaited<ReturnType<typeof getVariant>>>, 'initialData'>;
|
|
957
|
+
axios?: AxiosRequestConfig;
|
|
958
|
+
}, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
|
|
959
|
+
queryKey: DataTag<QueryKey, TData>;
|
|
960
|
+
};
|
|
961
|
+
declare function useGetVariant<TData = Awaited<ReturnType<typeof getVariant>>, TError = AxiosError<ProblemDetails>>(productId: string, id: string, options?: {
|
|
962
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getVariant>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof getVariant>>, TError, Awaited<ReturnType<typeof getVariant>>>, 'initialData'>;
|
|
963
|
+
axios?: AxiosRequestConfig;
|
|
964
|
+
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
965
|
+
queryKey: DataTag<QueryKey, TData>;
|
|
966
|
+
};
|
|
967
|
+
declare function useGetVariant<TData = Awaited<ReturnType<typeof getVariant>>, TError = AxiosError<ProblemDetails>>(productId: string, id: string, options?: {
|
|
968
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getVariant>>, TError, TData>>;
|
|
969
|
+
axios?: AxiosRequestConfig;
|
|
970
|
+
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
971
|
+
queryKey: DataTag<QueryKey, TData>;
|
|
972
|
+
};
|
|
973
|
+
/**
|
|
974
|
+
* Replaces a variant of the given product. Pricing is left untouched.
|
|
975
|
+
* @summary Update a variant
|
|
976
|
+
*/
|
|
977
|
+
declare const updateVariant: (productId: string, id: string, updateVariantRequest: UpdateVariantRequest, options?: AxiosRequestConfig) => Promise<AxiosResponse<VariantResponse>>;
|
|
978
|
+
declare const getUpdateVariantMutationOptions: <TError = AxiosError<ProblemDetails>, TContext = unknown>(options?: {
|
|
979
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof updateVariant>>, TError, {
|
|
980
|
+
productId: string;
|
|
981
|
+
id: string;
|
|
982
|
+
data: UpdateVariantRequest;
|
|
983
|
+
}, TContext>;
|
|
984
|
+
axios?: AxiosRequestConfig;
|
|
985
|
+
}) => UseMutationOptions<Awaited<ReturnType<typeof updateVariant>>, TError, {
|
|
986
|
+
productId: string;
|
|
987
|
+
id: string;
|
|
988
|
+
data: UpdateVariantRequest;
|
|
989
|
+
}, TContext>;
|
|
990
|
+
type UpdateVariantMutationResult = NonNullable<Awaited<ReturnType<typeof updateVariant>>>;
|
|
991
|
+
type UpdateVariantMutationBody = UpdateVariantRequest;
|
|
992
|
+
type UpdateVariantMutationError = AxiosError<ProblemDetails>;
|
|
993
|
+
/**
|
|
994
|
+
* @summary Update a variant
|
|
995
|
+
*/
|
|
996
|
+
declare const useUpdateVariant: <TError = AxiosError<ProblemDetails>, TContext = unknown>(options?: {
|
|
997
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof updateVariant>>, TError, {
|
|
998
|
+
productId: string;
|
|
999
|
+
id: string;
|
|
1000
|
+
data: UpdateVariantRequest;
|
|
1001
|
+
}, TContext>;
|
|
1002
|
+
axios?: AxiosRequestConfig;
|
|
1003
|
+
}, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof updateVariant>>, TError, {
|
|
1004
|
+
productId: string;
|
|
1005
|
+
id: string;
|
|
1006
|
+
data: UpdateVariantRequest;
|
|
1007
|
+
}, TContext>;
|
|
1008
|
+
/**
|
|
1009
|
+
* Deletes a variant of the given product together with its pricing.
|
|
1010
|
+
* @summary Delete a variant
|
|
1011
|
+
*/
|
|
1012
|
+
declare const deleteVariant: (productId: string, id: string, options?: AxiosRequestConfig) => Promise<AxiosResponse<void>>;
|
|
1013
|
+
declare const getDeleteVariantMutationOptions: <TError = AxiosError<ProblemDetails>, TContext = unknown>(options?: {
|
|
1014
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof deleteVariant>>, TError, {
|
|
1015
|
+
productId: string;
|
|
1016
|
+
id: string;
|
|
1017
|
+
}, TContext>;
|
|
1018
|
+
axios?: AxiosRequestConfig;
|
|
1019
|
+
}) => UseMutationOptions<Awaited<ReturnType<typeof deleteVariant>>, TError, {
|
|
1020
|
+
productId: string;
|
|
1021
|
+
id: string;
|
|
1022
|
+
}, TContext>;
|
|
1023
|
+
type DeleteVariantMutationResult = NonNullable<Awaited<ReturnType<typeof deleteVariant>>>;
|
|
1024
|
+
type DeleteVariantMutationError = AxiosError<ProblemDetails>;
|
|
1025
|
+
/**
|
|
1026
|
+
* @summary Delete a variant
|
|
1027
|
+
*/
|
|
1028
|
+
declare const useDeleteVariant: <TError = AxiosError<ProblemDetails>, TContext = unknown>(options?: {
|
|
1029
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof deleteVariant>>, TError, {
|
|
1030
|
+
productId: string;
|
|
1031
|
+
id: string;
|
|
1032
|
+
}, TContext>;
|
|
1033
|
+
axios?: AxiosRequestConfig;
|
|
1034
|
+
}, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof deleteVariant>>, TError, {
|
|
1035
|
+
productId: string;
|
|
1036
|
+
id: string;
|
|
1037
|
+
}, TContext>;
|
|
1038
|
+
/**
|
|
1039
|
+
* Returns the base amount, the sale window and the wholesale tiers of one variant, including the amount that applies right now.
|
|
1040
|
+
* @summary Get variant pricing
|
|
1041
|
+
*/
|
|
1042
|
+
declare const getVariantPricing: (variantId: string, options?: AxiosRequestConfig) => Promise<AxiosResponse<VariantPricingResponse>>;
|
|
1043
|
+
declare const getGetVariantPricingQueryKey: (variantId?: string) => readonly [`/api/catalog/variants/${string}/pricing`];
|
|
1044
|
+
declare const getGetVariantPricingQueryOptions: <TData = Awaited<ReturnType<typeof getVariantPricing>>, TError = AxiosError<ProblemDetails>>(variantId: string, options?: {
|
|
1045
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getVariantPricing>>, TError, TData>>;
|
|
1046
|
+
axios?: AxiosRequestConfig;
|
|
1047
|
+
}) => UseQueryOptions<Awaited<ReturnType<typeof getVariantPricing>>, TError, TData> & {
|
|
1048
|
+
queryKey: DataTag<QueryKey, TData>;
|
|
1049
|
+
};
|
|
1050
|
+
type GetVariantPricingQueryResult = NonNullable<Awaited<ReturnType<typeof getVariantPricing>>>;
|
|
1051
|
+
type GetVariantPricingQueryError = AxiosError<ProblemDetails>;
|
|
1052
|
+
declare function useGetVariantPricing<TData = Awaited<ReturnType<typeof getVariantPricing>>, TError = AxiosError<ProblemDetails>>(variantId: string, options: {
|
|
1053
|
+
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getVariantPricing>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof getVariantPricing>>, TError, Awaited<ReturnType<typeof getVariantPricing>>>, 'initialData'>;
|
|
1054
|
+
axios?: AxiosRequestConfig;
|
|
1055
|
+
}, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
|
|
1056
|
+
queryKey: DataTag<QueryKey, TData>;
|
|
1057
|
+
};
|
|
1058
|
+
declare function useGetVariantPricing<TData = Awaited<ReturnType<typeof getVariantPricing>>, TError = AxiosError<ProblemDetails>>(variantId: string, options?: {
|
|
1059
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getVariantPricing>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof getVariantPricing>>, TError, Awaited<ReturnType<typeof getVariantPricing>>>, 'initialData'>;
|
|
1060
|
+
axios?: AxiosRequestConfig;
|
|
1061
|
+
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
1062
|
+
queryKey: DataTag<QueryKey, TData>;
|
|
1063
|
+
};
|
|
1064
|
+
declare function useGetVariantPricing<TData = Awaited<ReturnType<typeof getVariantPricing>>, TError = AxiosError<ProblemDetails>>(variantId: string, options?: {
|
|
1065
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getVariantPricing>>, TError, TData>>;
|
|
1066
|
+
axios?: AxiosRequestConfig;
|
|
1067
|
+
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
1068
|
+
queryKey: DataTag<QueryKey, TData>;
|
|
1069
|
+
};
|
|
1070
|
+
/**
|
|
1071
|
+
* Replaces the whole price list of one variant. Omitting sale or wholesale clears them.
|
|
1072
|
+
* @summary Replace variant pricing
|
|
1073
|
+
*/
|
|
1074
|
+
declare const upsertVariantPricing: (variantId: string, upsertVariantPricingRequest: UpsertVariantPricingRequest, options?: AxiosRequestConfig) => Promise<AxiosResponse<VariantPricingResponse>>;
|
|
1075
|
+
declare const getUpsertVariantPricingMutationOptions: <TError = AxiosError<ProblemDetails>, TContext = unknown>(options?: {
|
|
1076
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof upsertVariantPricing>>, TError, {
|
|
1077
|
+
variantId: string;
|
|
1078
|
+
data: UpsertVariantPricingRequest;
|
|
1079
|
+
}, TContext>;
|
|
1080
|
+
axios?: AxiosRequestConfig;
|
|
1081
|
+
}) => UseMutationOptions<Awaited<ReturnType<typeof upsertVariantPricing>>, TError, {
|
|
1082
|
+
variantId: string;
|
|
1083
|
+
data: UpsertVariantPricingRequest;
|
|
1084
|
+
}, TContext>;
|
|
1085
|
+
type UpsertVariantPricingMutationResult = NonNullable<Awaited<ReturnType<typeof upsertVariantPricing>>>;
|
|
1086
|
+
type UpsertVariantPricingMutationBody = UpsertVariantPricingRequest;
|
|
1087
|
+
type UpsertVariantPricingMutationError = AxiosError<ProblemDetails>;
|
|
1088
|
+
/**
|
|
1089
|
+
* @summary Replace variant pricing
|
|
1090
|
+
*/
|
|
1091
|
+
declare const useUpsertVariantPricing: <TError = AxiosError<ProblemDetails>, TContext = unknown>(options?: {
|
|
1092
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof upsertVariantPricing>>, TError, {
|
|
1093
|
+
variantId: string;
|
|
1094
|
+
data: UpsertVariantPricingRequest;
|
|
1095
|
+
}, TContext>;
|
|
1096
|
+
axios?: AxiosRequestConfig;
|
|
1097
|
+
}, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof upsertVariantPricing>>, TError, {
|
|
1098
|
+
variantId: string;
|
|
1099
|
+
data: UpsertVariantPricingRequest;
|
|
1100
|
+
}, TContext>;
|
|
1101
|
+
/**
|
|
1102
|
+
* Removes the price list of one variant.
|
|
1103
|
+
* @summary Delete variant pricing
|
|
1104
|
+
*/
|
|
1105
|
+
declare const deleteVariantPricing: (variantId: string, options?: AxiosRequestConfig) => Promise<AxiosResponse<void>>;
|
|
1106
|
+
declare const getDeleteVariantPricingMutationOptions: <TError = AxiosError<ProblemDetails>, TContext = unknown>(options?: {
|
|
1107
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof deleteVariantPricing>>, TError, {
|
|
1108
|
+
variantId: string;
|
|
1109
|
+
}, TContext>;
|
|
1110
|
+
axios?: AxiosRequestConfig;
|
|
1111
|
+
}) => UseMutationOptions<Awaited<ReturnType<typeof deleteVariantPricing>>, TError, {
|
|
1112
|
+
variantId: string;
|
|
1113
|
+
}, TContext>;
|
|
1114
|
+
type DeleteVariantPricingMutationResult = NonNullable<Awaited<ReturnType<typeof deleteVariantPricing>>>;
|
|
1115
|
+
type DeleteVariantPricingMutationError = AxiosError<ProblemDetails>;
|
|
1116
|
+
/**
|
|
1117
|
+
* @summary Delete variant pricing
|
|
1118
|
+
*/
|
|
1119
|
+
declare const useDeleteVariantPricing: <TError = AxiosError<ProblemDetails>, TContext = unknown>(options?: {
|
|
1120
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof deleteVariantPricing>>, TError, {
|
|
1121
|
+
variantId: string;
|
|
1122
|
+
}, TContext>;
|
|
1123
|
+
axios?: AxiosRequestConfig;
|
|
1124
|
+
}, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof deleteVariantPricing>>, TError, {
|
|
1125
|
+
variantId: string;
|
|
1126
|
+
}, TContext>;
|
|
597
1127
|
/**
|
|
598
1128
|
* Creates a new stock item with a unique SKU. Validation failures return 400.
|
|
599
1129
|
* @summary Create a stock item
|
|
@@ -1413,6 +1943,312 @@ declare const searchAddressesResponse: zod.ZodArray<zod.ZodObject<{
|
|
|
1413
1943
|
subDistrictName: zod.ZodOptional<zod.ZodString>;
|
|
1414
1944
|
zipCode: zod.ZodOptional<zod.ZodString>;
|
|
1415
1945
|
}, zod.z.core.$strict>>;
|
|
1946
|
+
/**
|
|
1947
|
+
* Creates the product shell only. Add variants and pricing through their own resources.
|
|
1948
|
+
* @summary Create a product
|
|
1949
|
+
*/
|
|
1950
|
+
declare const createProductBody: zod.ZodObject<{
|
|
1951
|
+
categoryId: zod.ZodUUID;
|
|
1952
|
+
name: zod.ZodString;
|
|
1953
|
+
slug: zod.ZodString;
|
|
1954
|
+
status: zod.ZodOptional<zod.ZodEnum<{
|
|
1955
|
+
Tes: "Tes";
|
|
1956
|
+
Live: "Live";
|
|
1957
|
+
Archived: "Archived";
|
|
1958
|
+
}>>;
|
|
1959
|
+
classification: zod.ZodEnum<{
|
|
1960
|
+
Physical: "Physical";
|
|
1961
|
+
Digital: "Digital";
|
|
1962
|
+
}>;
|
|
1963
|
+
}, zod.z.core.$strict>;
|
|
1964
|
+
/**
|
|
1965
|
+
* Returns a paginated list of products with their variant count.
|
|
1966
|
+
* @summary List products
|
|
1967
|
+
*/
|
|
1968
|
+
declare const listProductsQueryPageDefault = 1;
|
|
1969
|
+
declare const listProductsQueryPageSizeDefault = 10;
|
|
1970
|
+
declare const listProductsQueryParams: zod.ZodObject<{
|
|
1971
|
+
page: zod.ZodDefault<zod.z.ZodCoercedNumber<unknown>>;
|
|
1972
|
+
pageSize: zod.ZodDefault<zod.z.ZodCoercedNumber<unknown>>;
|
|
1973
|
+
}, zod.z.core.$strict>;
|
|
1974
|
+
declare const listProductsResponse: zod.ZodObject<{
|
|
1975
|
+
items: zod.ZodArray<zod.ZodObject<{
|
|
1976
|
+
id: zod.ZodUUID;
|
|
1977
|
+
categoryId: zod.ZodUUID;
|
|
1978
|
+
name: zod.ZodString;
|
|
1979
|
+
slug: zod.ZodString;
|
|
1980
|
+
status: zod.ZodEnum<{
|
|
1981
|
+
Tes: "Tes";
|
|
1982
|
+
Live: "Live";
|
|
1983
|
+
Archived: "Archived";
|
|
1984
|
+
}>;
|
|
1985
|
+
classification: zod.ZodEnum<{
|
|
1986
|
+
Physical: "Physical";
|
|
1987
|
+
Digital: "Digital";
|
|
1988
|
+
}>;
|
|
1989
|
+
variantCount: zod.ZodNumber;
|
|
1990
|
+
}, zod.z.core.$strict>>;
|
|
1991
|
+
page: zod.ZodNumber;
|
|
1992
|
+
pageSize: zod.ZodNumber;
|
|
1993
|
+
totalCount: zod.ZodNumber;
|
|
1994
|
+
totalPages: zod.ZodOptional<zod.ZodNumber>;
|
|
1995
|
+
hasNextPage: zod.ZodOptional<zod.ZodBoolean>;
|
|
1996
|
+
hasPreviousPage: zod.ZodOptional<zod.ZodBoolean>;
|
|
1997
|
+
}, zod.z.core.$strict>;
|
|
1998
|
+
/**
|
|
1999
|
+
* Returns one product. Variants are listed from the nested variants resource.
|
|
2000
|
+
* @summary Get product by id
|
|
2001
|
+
*/
|
|
2002
|
+
declare const getProductParams: zod.ZodObject<{
|
|
2003
|
+
id: zod.ZodUUID;
|
|
2004
|
+
}, zod.z.core.$strict>;
|
|
2005
|
+
declare const getProductResponse: zod.ZodObject<{
|
|
2006
|
+
id: zod.ZodUUID;
|
|
2007
|
+
categoryId: zod.ZodUUID;
|
|
2008
|
+
name: zod.ZodString;
|
|
2009
|
+
slug: zod.ZodString;
|
|
2010
|
+
status: zod.ZodEnum<{
|
|
2011
|
+
Tes: "Tes";
|
|
2012
|
+
Live: "Live";
|
|
2013
|
+
Archived: "Archived";
|
|
2014
|
+
}>;
|
|
2015
|
+
classification: zod.ZodEnum<{
|
|
2016
|
+
Physical: "Physical";
|
|
2017
|
+
Digital: "Digital";
|
|
2018
|
+
}>;
|
|
2019
|
+
variantCount: zod.ZodNumber;
|
|
2020
|
+
}, zod.z.core.$strict>;
|
|
2021
|
+
/**
|
|
2022
|
+
* Replaces the product shell. Variants and pricing are left untouched.
|
|
2023
|
+
* @summary Update a product
|
|
2024
|
+
*/
|
|
2025
|
+
declare const updateProductParams: zod.ZodObject<{
|
|
2026
|
+
id: zod.ZodUUID;
|
|
2027
|
+
}, zod.z.core.$strict>;
|
|
2028
|
+
declare const updateProductBody: zod.ZodObject<{
|
|
2029
|
+
categoryId: zod.ZodUUID;
|
|
2030
|
+
name: zod.ZodString;
|
|
2031
|
+
slug: zod.ZodString;
|
|
2032
|
+
status: zod.ZodEnum<{
|
|
2033
|
+
Tes: "Tes";
|
|
2034
|
+
Live: "Live";
|
|
2035
|
+
Archived: "Archived";
|
|
2036
|
+
}>;
|
|
2037
|
+
classification: zod.ZodEnum<{
|
|
2038
|
+
Physical: "Physical";
|
|
2039
|
+
Digital: "Digital";
|
|
2040
|
+
}>;
|
|
2041
|
+
}, zod.z.core.$strict>;
|
|
2042
|
+
declare const updateProductResponse: zod.ZodObject<{
|
|
2043
|
+
id: zod.ZodUUID;
|
|
2044
|
+
categoryId: zod.ZodUUID;
|
|
2045
|
+
name: zod.ZodString;
|
|
2046
|
+
slug: zod.ZodString;
|
|
2047
|
+
status: zod.ZodEnum<{
|
|
2048
|
+
Tes: "Tes";
|
|
2049
|
+
Live: "Live";
|
|
2050
|
+
Archived: "Archived";
|
|
2051
|
+
}>;
|
|
2052
|
+
classification: zod.ZodEnum<{
|
|
2053
|
+
Physical: "Physical";
|
|
2054
|
+
Digital: "Digital";
|
|
2055
|
+
}>;
|
|
2056
|
+
variantCount: zod.ZodNumber;
|
|
2057
|
+
}, zod.z.core.$strict>;
|
|
2058
|
+
/**
|
|
2059
|
+
* Deletes a product. Variants and their pricing are removed with it.
|
|
2060
|
+
* @summary Delete a product
|
|
2061
|
+
*/
|
|
2062
|
+
declare const deleteProductParams: zod.ZodObject<{
|
|
2063
|
+
id: zod.ZodUUID;
|
|
2064
|
+
}, zod.z.core.$strict>;
|
|
2065
|
+
/**
|
|
2066
|
+
* Adds a variant to the product given by productId. Pricing is set separately.
|
|
2067
|
+
* @summary Create a variant
|
|
2068
|
+
*/
|
|
2069
|
+
declare const createVariantParams: zod.ZodObject<{
|
|
2070
|
+
productId: zod.ZodUUID;
|
|
2071
|
+
}, zod.z.core.$strict>;
|
|
2072
|
+
declare const createVariantBody: zod.ZodObject<{
|
|
2073
|
+
code: zod.ZodString;
|
|
2074
|
+
attributes: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
2075
|
+
name: zod.ZodString;
|
|
2076
|
+
value: zod.ZodString;
|
|
2077
|
+
}, zod.z.core.$strict>>>;
|
|
2078
|
+
weight: zod.ZodObject<{
|
|
2079
|
+
value: zod.ZodNumber;
|
|
2080
|
+
unit: zod.ZodString;
|
|
2081
|
+
}, zod.z.core.$strict>;
|
|
2082
|
+
}, zod.z.core.$strict>;
|
|
2083
|
+
/**
|
|
2084
|
+
* Returns a paginated list of variants belonging to one product.
|
|
2085
|
+
* @summary List variants of a product
|
|
2086
|
+
*/
|
|
2087
|
+
declare const listVariantsParams: zod.ZodObject<{
|
|
2088
|
+
productId: zod.ZodUUID;
|
|
2089
|
+
}, zod.z.core.$strict>;
|
|
2090
|
+
declare const listVariantsQueryPageDefault = 1;
|
|
2091
|
+
declare const listVariantsQueryPageSizeDefault = 10;
|
|
2092
|
+
declare const listVariantsQueryParams: zod.ZodObject<{
|
|
2093
|
+
page: zod.ZodDefault<zod.z.ZodCoercedNumber<unknown>>;
|
|
2094
|
+
pageSize: zod.ZodDefault<zod.z.ZodCoercedNumber<unknown>>;
|
|
2095
|
+
}, zod.z.core.$strict>;
|
|
2096
|
+
declare const listVariantsResponse: zod.ZodObject<{
|
|
2097
|
+
items: zod.ZodArray<zod.ZodObject<{
|
|
2098
|
+
id: zod.ZodUUID;
|
|
2099
|
+
productId: zod.ZodUUID;
|
|
2100
|
+
code: zod.ZodString;
|
|
2101
|
+
attributes: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
2102
|
+
name: zod.ZodString;
|
|
2103
|
+
value: zod.ZodString;
|
|
2104
|
+
}, zod.z.core.$strict>>>;
|
|
2105
|
+
weight: zod.ZodObject<{
|
|
2106
|
+
value: zod.ZodNumber;
|
|
2107
|
+
unit: zod.ZodString;
|
|
2108
|
+
}, zod.z.core.$strict>;
|
|
2109
|
+
}, zod.z.core.$strict>>;
|
|
2110
|
+
page: zod.ZodNumber;
|
|
2111
|
+
pageSize: zod.ZodNumber;
|
|
2112
|
+
totalCount: zod.ZodNumber;
|
|
2113
|
+
totalPages: zod.ZodOptional<zod.ZodNumber>;
|
|
2114
|
+
hasNextPage: zod.ZodOptional<zod.ZodBoolean>;
|
|
2115
|
+
hasPreviousPage: zod.ZodOptional<zod.ZodBoolean>;
|
|
2116
|
+
}, zod.z.core.$strict>;
|
|
2117
|
+
/**
|
|
2118
|
+
* Returns one variant of the given product. Pricing is fetched separately.
|
|
2119
|
+
* @summary Get variant by id
|
|
2120
|
+
*/
|
|
2121
|
+
declare const getVariantParams: zod.ZodObject<{
|
|
2122
|
+
productId: zod.ZodUUID;
|
|
2123
|
+
id: zod.ZodUUID;
|
|
2124
|
+
}, zod.z.core.$strict>;
|
|
2125
|
+
declare const getVariantResponse: zod.ZodObject<{
|
|
2126
|
+
id: zod.ZodUUID;
|
|
2127
|
+
productId: zod.ZodUUID;
|
|
2128
|
+
code: zod.ZodString;
|
|
2129
|
+
attributes: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
2130
|
+
name: zod.ZodString;
|
|
2131
|
+
value: zod.ZodString;
|
|
2132
|
+
}, zod.z.core.$strict>>>;
|
|
2133
|
+
weight: zod.ZodObject<{
|
|
2134
|
+
value: zod.ZodNumber;
|
|
2135
|
+
unit: zod.ZodString;
|
|
2136
|
+
}, zod.z.core.$strict>;
|
|
2137
|
+
}, zod.z.core.$strict>;
|
|
2138
|
+
/**
|
|
2139
|
+
* Replaces a variant of the given product. Pricing is left untouched.
|
|
2140
|
+
* @summary Update a variant
|
|
2141
|
+
*/
|
|
2142
|
+
declare const updateVariantParams: zod.ZodObject<{
|
|
2143
|
+
productId: zod.ZodUUID;
|
|
2144
|
+
id: zod.ZodUUID;
|
|
2145
|
+
}, zod.z.core.$strict>;
|
|
2146
|
+
declare const updateVariantBody: zod.ZodObject<{
|
|
2147
|
+
code: zod.ZodString;
|
|
2148
|
+
attributes: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
2149
|
+
name: zod.ZodString;
|
|
2150
|
+
value: zod.ZodString;
|
|
2151
|
+
}, zod.z.core.$strict>>>;
|
|
2152
|
+
weight: zod.ZodObject<{
|
|
2153
|
+
value: zod.ZodNumber;
|
|
2154
|
+
unit: zod.ZodString;
|
|
2155
|
+
}, zod.z.core.$strict>;
|
|
2156
|
+
}, zod.z.core.$strict>;
|
|
2157
|
+
declare const updateVariantResponse: zod.ZodObject<{
|
|
2158
|
+
id: zod.ZodUUID;
|
|
2159
|
+
productId: zod.ZodUUID;
|
|
2160
|
+
code: zod.ZodString;
|
|
2161
|
+
attributes: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
2162
|
+
name: zod.ZodString;
|
|
2163
|
+
value: zod.ZodString;
|
|
2164
|
+
}, zod.z.core.$strict>>>;
|
|
2165
|
+
weight: zod.ZodObject<{
|
|
2166
|
+
value: zod.ZodNumber;
|
|
2167
|
+
unit: zod.ZodString;
|
|
2168
|
+
}, zod.z.core.$strict>;
|
|
2169
|
+
}, zod.z.core.$strict>;
|
|
2170
|
+
/**
|
|
2171
|
+
* Deletes a variant of the given product together with its pricing.
|
|
2172
|
+
* @summary Delete a variant
|
|
2173
|
+
*/
|
|
2174
|
+
declare const deleteVariantParams: zod.ZodObject<{
|
|
2175
|
+
productId: zod.ZodUUID;
|
|
2176
|
+
id: zod.ZodUUID;
|
|
2177
|
+
}, zod.z.core.$strict>;
|
|
2178
|
+
/**
|
|
2179
|
+
* Returns the base amount, the sale window and the wholesale tiers of one variant, including the amount that applies right now.
|
|
2180
|
+
* @summary Get variant pricing
|
|
2181
|
+
*/
|
|
2182
|
+
declare const getVariantPricingParams: zod.ZodObject<{
|
|
2183
|
+
variantId: zod.ZodUUID;
|
|
2184
|
+
}, zod.z.core.$strict>;
|
|
2185
|
+
declare const getVariantPricingResponse: zod.ZodObject<{
|
|
2186
|
+
variantId: zod.ZodUUID;
|
|
2187
|
+
baseAmount: zod.ZodNumber;
|
|
2188
|
+
baseCurrency: zod.ZodString;
|
|
2189
|
+
effectiveAmount: zod.ZodNumber;
|
|
2190
|
+
effectiveCurrency: zod.ZodString;
|
|
2191
|
+
sale: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodNull, zod.ZodObject<{
|
|
2192
|
+
amount: zod.ZodNumber;
|
|
2193
|
+
currency: zod.ZodString;
|
|
2194
|
+
startAt: zod.z.ZodISODateTime;
|
|
2195
|
+
endAt: zod.z.ZodISODateTime;
|
|
2196
|
+
isActive: zod.ZodBoolean;
|
|
2197
|
+
}, zod.z.core.$strict>]>>;
|
|
2198
|
+
wholesale: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
2199
|
+
minQty: zod.ZodNumber;
|
|
2200
|
+
amount: zod.ZodNumber;
|
|
2201
|
+
currency: zod.ZodString;
|
|
2202
|
+
}, zod.z.core.$strict>>>;
|
|
2203
|
+
}, zod.z.core.$strict>;
|
|
2204
|
+
/**
|
|
2205
|
+
* Replaces the whole price list of one variant. Omitting sale or wholesale clears them.
|
|
2206
|
+
* @summary Replace variant pricing
|
|
2207
|
+
*/
|
|
2208
|
+
declare const upsertVariantPricingParams: zod.ZodObject<{
|
|
2209
|
+
variantId: zod.ZodUUID;
|
|
2210
|
+
}, zod.z.core.$strict>;
|
|
2211
|
+
declare const upsertVariantPricingBody: zod.ZodObject<{
|
|
2212
|
+
baseAmount: zod.ZodNumber;
|
|
2213
|
+
baseCurrency: zod.ZodString;
|
|
2214
|
+
sale: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodNull, zod.ZodObject<{
|
|
2215
|
+
amount: zod.ZodNumber;
|
|
2216
|
+
currency: zod.ZodString;
|
|
2217
|
+
startAt: zod.z.ZodISODateTime;
|
|
2218
|
+
endAt: zod.z.ZodISODateTime;
|
|
2219
|
+
}, zod.z.core.$strict>]>>;
|
|
2220
|
+
wholesale: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
2221
|
+
minQty: zod.ZodNumber;
|
|
2222
|
+
amount: zod.ZodNumber;
|
|
2223
|
+
currency: zod.ZodString;
|
|
2224
|
+
}, zod.z.core.$strict>>>;
|
|
2225
|
+
}, zod.z.core.$strict>;
|
|
2226
|
+
declare const upsertVariantPricingResponse: zod.ZodObject<{
|
|
2227
|
+
variantId: zod.ZodUUID;
|
|
2228
|
+
baseAmount: zod.ZodNumber;
|
|
2229
|
+
baseCurrency: zod.ZodString;
|
|
2230
|
+
effectiveAmount: zod.ZodNumber;
|
|
2231
|
+
effectiveCurrency: zod.ZodString;
|
|
2232
|
+
sale: zod.ZodOptional<zod.ZodUnion<readonly [zod.ZodNull, zod.ZodObject<{
|
|
2233
|
+
amount: zod.ZodNumber;
|
|
2234
|
+
currency: zod.ZodString;
|
|
2235
|
+
startAt: zod.z.ZodISODateTime;
|
|
2236
|
+
endAt: zod.z.ZodISODateTime;
|
|
2237
|
+
isActive: zod.ZodBoolean;
|
|
2238
|
+
}, zod.z.core.$strict>]>>;
|
|
2239
|
+
wholesale: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
2240
|
+
minQty: zod.ZodNumber;
|
|
2241
|
+
amount: zod.ZodNumber;
|
|
2242
|
+
currency: zod.ZodString;
|
|
2243
|
+
}, zod.z.core.$strict>>>;
|
|
2244
|
+
}, zod.z.core.$strict>;
|
|
2245
|
+
/**
|
|
2246
|
+
* Removes the price list of one variant.
|
|
2247
|
+
* @summary Delete variant pricing
|
|
2248
|
+
*/
|
|
2249
|
+
declare const deleteVariantPricingParams: zod.ZodObject<{
|
|
2250
|
+
variantId: zod.ZodUUID;
|
|
2251
|
+
}, zod.z.core.$strict>;
|
|
1416
2252
|
/**
|
|
1417
2253
|
* Creates a new stock item with a unique SKU. Validation failures return 400.
|
|
1418
2254
|
* @summary Create a stock item
|
|
@@ -1674,4 +2510,4 @@ declare const postApiIdentityAdminUsersIdLogoutParams: zod.ZodObject<{
|
|
|
1674
2510
|
id: zod.ZodUUID;
|
|
1675
2511
|
}, zod.z.core.$strict>;
|
|
1676
2512
|
|
|
1677
|
-
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 CreateStockItemCommand, type CreateStockItemsMutationBody, type CreateStockItemsMutationError, type CreateStockItemsMutationResult, type CreateWarehouseCommand, type CreateWarehouseCommandFullAddressText, type CreateWarehouseMutationBody, type CreateWarehouseMutationError, type CreateWarehouseMutationResult, type DeleteApiIdentityAdminRolesIdMutationError, type DeleteApiIdentityAdminRolesIdMutationResult, 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 GetWarehouseByIdQueryError, type GetWarehouseByIdQueryResult, type GetWarehouseOptionsQueryError, type GetWarehouseOptionsQueryResult, 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 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 UpdateWarehouseCommand, type UpdateWarehouseCommandFullAddressText, type UpdateWarehouseMutationBody, type UpdateWarehouseMutationError, type UpdateWarehouseMutationResult, type UserInfo, type WarehouseOptionResponse, type WarehouseResponse, type WarehouseResponseFullAddressText, consumeBatch, consumeBatchBody, consumeBatchParams, createBatch, createBatchBody, createStockItems, createStockItemsBody, createWarehouse, createWarehouseBody, deleteApiIdentityAdminRolesId, deleteApiIdentityAdminRolesIdParams, 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, getCreateStockItemsMutationOptions, getCreateWarehouseMutationOptions, getDeleteApiIdentityAdminRolesIdMutationOptions, getDeleteWarehouseMutationOptions, getGetApiIdentityAdminPermissionsQueryKey, getGetApiIdentityAdminPermissionsQueryOptions, getGetApiIdentityAdminRolesIdQueryKey, getGetApiIdentityAdminRolesIdQueryOptions, getGetApiIdentityAdminRolesQueryKey, getGetApiIdentityAdminRolesQueryOptions, getGetApiIdentityAdminUsersIdPermissionsQueryKey, getGetApiIdentityAdminUsersIdPermissionsQueryOptions, getGetApiIdentityAdminUsersIdRolesQueryKey, getGetApiIdentityAdminUsersIdRolesQueryOptions, getGetApiIdentityAdminUsersQueryKey, getGetApiIdentityAdminUsersQueryOptions, getGetApiIdentityAntiforgeryQueryKey, getGetApiIdentityAntiforgeryQueryOptions, getGetApiIdentityManage2faQueryKey, getGetApiIdentityManage2faQueryOptions, getGetApiIdentityManageInfoQueryKey, getGetApiIdentityManageInfoQueryOptions, getGetHealthQueryKey, getGetHealthQueryOptions, getGetWarehouseByIdQueryKey, getGetWarehouseByIdQueryOptions, getGetWarehouseOptionsQueryKey, getGetWarehouseOptionsQueryOptions, getHealth, getListStockItemsQueryKey, getListStockItemsQueryOptions, getListStockMovementsQueryKey, getListStockMovementsQueryOptions, getListWarehousesQueryKey, getListWarehousesQueryOptions, getPostApiIdentityAdminRolesMutationOptions, getPostApiIdentityAdminUsersIdLogoutMutationOptions, getPostApiIdentityForgotPasswordMutationOptions, getPostApiIdentityLoginMutationOptions, getPostApiIdentityLogoutMutationOptions, getPostApiIdentityManage2faMutationOptions, getPostApiIdentityManageInfoMutationOptions, getPostApiIdentityResetPasswordMutationOptions, getPutApiIdentityAdminRolesIdMutationOptions, getPutApiIdentityAdminRolesIdPermissionsMutationOptions, getPutApiIdentityAdminUsersIdActiveMutationOptions, getPutApiIdentityAdminUsersIdRolesMutationOptions, getSearchAddressesQueryKey, getSearchAddressesQueryOptions, getToggleWarehouseStatusMutationOptions, getUpdateWarehouseMutationOptions, getWarehouseById, getWarehouseByIdParams, getWarehouseByIdResponse, getWarehouseOptions, getWarehouseOptionsResponse, getWarehouseOptionsResponseItem, 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, updateWarehouse, updateWarehouseBody, updateWarehouseParams, useConsumeBatch, useCreateBatch, useCreateStockItems, useCreateWarehouse, useDeleteApiIdentityAdminRolesId, useDeleteWarehouse, useGetApiIdentityAdminPermissions, useGetApiIdentityAdminRoles, useGetApiIdentityAdminRolesId, useGetApiIdentityAdminUsers, useGetApiIdentityAdminUsersIdPermissions, useGetApiIdentityAdminUsersIdRoles, useGetApiIdentityAntiforgery, useGetApiIdentityManage2fa, useGetApiIdentityManageInfo, useGetHealth, useGetWarehouseById, useGetWarehouseOptions, useListStockItems, useListStockMovements, useListWarehouses, usePostApiIdentityAdminRoles, usePostApiIdentityAdminUsersIdLogout, usePostApiIdentityForgotPassword, usePostApiIdentityLogin, usePostApiIdentityLogout, usePostApiIdentityManage2fa, usePostApiIdentityManageInfo, usePostApiIdentityResetPassword, usePutApiIdentityAdminRolesId, usePutApiIdentityAdminRolesIdPermissions, usePutApiIdentityAdminUsersIdActive, usePutApiIdentityAdminUsersIdRoles, useSearchAddresses, useToggleWarehouseStatus, useUpdateWarehouse };
|
|
2513
|
+
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 };
|