@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.js
CHANGED
|
@@ -31,18 +31,31 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
31
31
|
var index_exports = {};
|
|
32
32
|
__export(index_exports, {
|
|
33
33
|
ConsumeBatchSourceType: () => ConsumeBatchSourceType,
|
|
34
|
+
ProductClassification: () => ProductClassification,
|
|
35
|
+
ProductStatus: () => ProductStatus,
|
|
34
36
|
SourceTypeEnum: () => SourceTypeEnum,
|
|
35
37
|
consumeBatch: () => consumeBatch,
|
|
36
38
|
consumeBatchBody: () => consumeBatchBody,
|
|
37
39
|
consumeBatchParams: () => consumeBatchParams,
|
|
38
40
|
createBatch: () => createBatch,
|
|
39
41
|
createBatchBody: () => createBatchBody,
|
|
42
|
+
createProduct: () => createProduct,
|
|
43
|
+
createProductBody: () => createProductBody,
|
|
40
44
|
createStockItems: () => createStockItems,
|
|
41
45
|
createStockItemsBody: () => createStockItemsBody,
|
|
46
|
+
createVariant: () => createVariant,
|
|
47
|
+
createVariantBody: () => createVariantBody,
|
|
48
|
+
createVariantParams: () => createVariantParams,
|
|
42
49
|
createWarehouse: () => createWarehouse,
|
|
43
50
|
createWarehouseBody: () => createWarehouseBody,
|
|
44
51
|
deleteApiIdentityAdminRolesId: () => deleteApiIdentityAdminRolesId,
|
|
45
52
|
deleteApiIdentityAdminRolesIdParams: () => deleteApiIdentityAdminRolesIdParams,
|
|
53
|
+
deleteProduct: () => deleteProduct,
|
|
54
|
+
deleteProductParams: () => deleteProductParams,
|
|
55
|
+
deleteVariant: () => deleteVariant,
|
|
56
|
+
deleteVariantParams: () => deleteVariantParams,
|
|
57
|
+
deleteVariantPricing: () => deleteVariantPricing,
|
|
58
|
+
deleteVariantPricingParams: () => deleteVariantPricingParams,
|
|
46
59
|
deleteWarehouse: () => deleteWarehouse,
|
|
47
60
|
deleteWarehouseParams: () => deleteWarehouseParams,
|
|
48
61
|
getApiIdentityAdminPermissions: () => getApiIdentityAdminPermissions,
|
|
@@ -73,9 +86,14 @@ __export(index_exports, {
|
|
|
73
86
|
getApiIdentityManageInfoResponse: () => getApiIdentityManageInfoResponse,
|
|
74
87
|
getConsumeBatchMutationOptions: () => getConsumeBatchMutationOptions,
|
|
75
88
|
getCreateBatchMutationOptions: () => getCreateBatchMutationOptions,
|
|
89
|
+
getCreateProductMutationOptions: () => getCreateProductMutationOptions,
|
|
76
90
|
getCreateStockItemsMutationOptions: () => getCreateStockItemsMutationOptions,
|
|
91
|
+
getCreateVariantMutationOptions: () => getCreateVariantMutationOptions,
|
|
77
92
|
getCreateWarehouseMutationOptions: () => getCreateWarehouseMutationOptions,
|
|
78
93
|
getDeleteApiIdentityAdminRolesIdMutationOptions: () => getDeleteApiIdentityAdminRolesIdMutationOptions,
|
|
94
|
+
getDeleteProductMutationOptions: () => getDeleteProductMutationOptions,
|
|
95
|
+
getDeleteVariantMutationOptions: () => getDeleteVariantMutationOptions,
|
|
96
|
+
getDeleteVariantPricingMutationOptions: () => getDeleteVariantPricingMutationOptions,
|
|
79
97
|
getDeleteWarehouseMutationOptions: () => getDeleteWarehouseMutationOptions,
|
|
80
98
|
getGetApiIdentityAdminPermissionsQueryKey: () => getGetApiIdentityAdminPermissionsQueryKey,
|
|
81
99
|
getGetApiIdentityAdminPermissionsQueryOptions: () => getGetApiIdentityAdminPermissionsQueryOptions,
|
|
@@ -97,15 +115,25 @@ __export(index_exports, {
|
|
|
97
115
|
getGetApiIdentityManageInfoQueryOptions: () => getGetApiIdentityManageInfoQueryOptions,
|
|
98
116
|
getGetHealthQueryKey: () => getGetHealthQueryKey,
|
|
99
117
|
getGetHealthQueryOptions: () => getGetHealthQueryOptions,
|
|
118
|
+
getGetProductQueryKey: () => getGetProductQueryKey,
|
|
119
|
+
getGetProductQueryOptions: () => getGetProductQueryOptions,
|
|
120
|
+
getGetVariantPricingQueryKey: () => getGetVariantPricingQueryKey,
|
|
121
|
+
getGetVariantPricingQueryOptions: () => getGetVariantPricingQueryOptions,
|
|
122
|
+
getGetVariantQueryKey: () => getGetVariantQueryKey,
|
|
123
|
+
getGetVariantQueryOptions: () => getGetVariantQueryOptions,
|
|
100
124
|
getGetWarehouseByIdQueryKey: () => getGetWarehouseByIdQueryKey,
|
|
101
125
|
getGetWarehouseByIdQueryOptions: () => getGetWarehouseByIdQueryOptions,
|
|
102
126
|
getGetWarehouseOptionsQueryKey: () => getGetWarehouseOptionsQueryKey,
|
|
103
127
|
getGetWarehouseOptionsQueryOptions: () => getGetWarehouseOptionsQueryOptions,
|
|
104
128
|
getHealth: () => getHealth,
|
|
129
|
+
getListProductsQueryKey: () => getListProductsQueryKey,
|
|
130
|
+
getListProductsQueryOptions: () => getListProductsQueryOptions,
|
|
105
131
|
getListStockItemsQueryKey: () => getListStockItemsQueryKey,
|
|
106
132
|
getListStockItemsQueryOptions: () => getListStockItemsQueryOptions,
|
|
107
133
|
getListStockMovementsQueryKey: () => getListStockMovementsQueryKey,
|
|
108
134
|
getListStockMovementsQueryOptions: () => getListStockMovementsQueryOptions,
|
|
135
|
+
getListVariantsQueryKey: () => getListVariantsQueryKey,
|
|
136
|
+
getListVariantsQueryOptions: () => getListVariantsQueryOptions,
|
|
109
137
|
getListWarehousesQueryKey: () => getListWarehousesQueryKey,
|
|
110
138
|
getListWarehousesQueryOptions: () => getListWarehousesQueryOptions,
|
|
111
139
|
getPostApiIdentityAdminRolesMutationOptions: () => getPostApiIdentityAdminRolesMutationOptions,
|
|
@@ -116,6 +144,9 @@ __export(index_exports, {
|
|
|
116
144
|
getPostApiIdentityManage2faMutationOptions: () => getPostApiIdentityManage2faMutationOptions,
|
|
117
145
|
getPostApiIdentityManageInfoMutationOptions: () => getPostApiIdentityManageInfoMutationOptions,
|
|
118
146
|
getPostApiIdentityResetPasswordMutationOptions: () => getPostApiIdentityResetPasswordMutationOptions,
|
|
147
|
+
getProduct: () => getProduct,
|
|
148
|
+
getProductParams: () => getProductParams,
|
|
149
|
+
getProductResponse: () => getProductResponse,
|
|
119
150
|
getPutApiIdentityAdminRolesIdMutationOptions: () => getPutApiIdentityAdminRolesIdMutationOptions,
|
|
120
151
|
getPutApiIdentityAdminRolesIdPermissionsMutationOptions: () => getPutApiIdentityAdminRolesIdPermissionsMutationOptions,
|
|
121
152
|
getPutApiIdentityAdminUsersIdActiveMutationOptions: () => getPutApiIdentityAdminUsersIdActiveMutationOptions,
|
|
@@ -123,13 +154,27 @@ __export(index_exports, {
|
|
|
123
154
|
getSearchAddressesQueryKey: () => getSearchAddressesQueryKey,
|
|
124
155
|
getSearchAddressesQueryOptions: () => getSearchAddressesQueryOptions,
|
|
125
156
|
getToggleWarehouseStatusMutationOptions: () => getToggleWarehouseStatusMutationOptions,
|
|
157
|
+
getUpdateProductMutationOptions: () => getUpdateProductMutationOptions,
|
|
158
|
+
getUpdateVariantMutationOptions: () => getUpdateVariantMutationOptions,
|
|
126
159
|
getUpdateWarehouseMutationOptions: () => getUpdateWarehouseMutationOptions,
|
|
160
|
+
getUpsertVariantPricingMutationOptions: () => getUpsertVariantPricingMutationOptions,
|
|
161
|
+
getVariant: () => getVariant,
|
|
162
|
+
getVariantParams: () => getVariantParams,
|
|
163
|
+
getVariantPricing: () => getVariantPricing,
|
|
164
|
+
getVariantPricingParams: () => getVariantPricingParams,
|
|
165
|
+
getVariantPricingResponse: () => getVariantPricingResponse,
|
|
166
|
+
getVariantResponse: () => getVariantResponse,
|
|
127
167
|
getWarehouseById: () => getWarehouseById,
|
|
128
168
|
getWarehouseByIdParams: () => getWarehouseByIdParams,
|
|
129
169
|
getWarehouseByIdResponse: () => getWarehouseByIdResponse,
|
|
130
170
|
getWarehouseOptions: () => getWarehouseOptions,
|
|
131
171
|
getWarehouseOptionsResponse: () => getWarehouseOptionsResponse,
|
|
132
172
|
getWarehouseOptionsResponseItem: () => getWarehouseOptionsResponseItem,
|
|
173
|
+
listProducts: () => listProducts,
|
|
174
|
+
listProductsQueryPageDefault: () => listProductsQueryPageDefault,
|
|
175
|
+
listProductsQueryPageSizeDefault: () => listProductsQueryPageSizeDefault,
|
|
176
|
+
listProductsQueryParams: () => listProductsQueryParams,
|
|
177
|
+
listProductsResponse: () => listProductsResponse,
|
|
133
178
|
listStockItems: () => listStockItems,
|
|
134
179
|
listStockItemsQueryDescendingDefault: () => listStockItemsQueryDescendingDefault,
|
|
135
180
|
listStockItemsQueryPageDefault: () => listStockItemsQueryPageDefault,
|
|
@@ -142,6 +187,12 @@ __export(index_exports, {
|
|
|
142
187
|
listStockMovementsQueryPageSizeDefault: () => listStockMovementsQueryPageSizeDefault,
|
|
143
188
|
listStockMovementsQueryParams: () => listStockMovementsQueryParams,
|
|
144
189
|
listStockMovementsResponse: () => listStockMovementsResponse,
|
|
190
|
+
listVariants: () => listVariants,
|
|
191
|
+
listVariantsParams: () => listVariantsParams,
|
|
192
|
+
listVariantsQueryPageDefault: () => listVariantsQueryPageDefault,
|
|
193
|
+
listVariantsQueryPageSizeDefault: () => listVariantsQueryPageSizeDefault,
|
|
194
|
+
listVariantsQueryParams: () => listVariantsQueryParams,
|
|
195
|
+
listVariantsResponse: () => listVariantsResponse,
|
|
145
196
|
listWarehouses: () => listWarehouses,
|
|
146
197
|
listWarehousesQueryPageDefault: () => listWarehousesQueryPageDefault,
|
|
147
198
|
listWarehousesQueryPageSizeDefault: () => listWarehousesQueryPageSizeDefault,
|
|
@@ -184,14 +235,31 @@ __export(index_exports, {
|
|
|
184
235
|
searchAddressesResponseItem: () => searchAddressesResponseItem,
|
|
185
236
|
toggleWarehouseStatus: () => toggleWarehouseStatus,
|
|
186
237
|
toggleWarehouseStatusParams: () => toggleWarehouseStatusParams,
|
|
238
|
+
updateProduct: () => updateProduct,
|
|
239
|
+
updateProductBody: () => updateProductBody,
|
|
240
|
+
updateProductParams: () => updateProductParams,
|
|
241
|
+
updateProductResponse: () => updateProductResponse,
|
|
242
|
+
updateVariant: () => updateVariant,
|
|
243
|
+
updateVariantBody: () => updateVariantBody,
|
|
244
|
+
updateVariantParams: () => updateVariantParams,
|
|
245
|
+
updateVariantResponse: () => updateVariantResponse,
|
|
187
246
|
updateWarehouse: () => updateWarehouse,
|
|
188
247
|
updateWarehouseBody: () => updateWarehouseBody,
|
|
189
248
|
updateWarehouseParams: () => updateWarehouseParams,
|
|
249
|
+
upsertVariantPricing: () => upsertVariantPricing,
|
|
250
|
+
upsertVariantPricingBody: () => upsertVariantPricingBody,
|
|
251
|
+
upsertVariantPricingParams: () => upsertVariantPricingParams,
|
|
252
|
+
upsertVariantPricingResponse: () => upsertVariantPricingResponse,
|
|
190
253
|
useConsumeBatch: () => useConsumeBatch,
|
|
191
254
|
useCreateBatch: () => useCreateBatch,
|
|
255
|
+
useCreateProduct: () => useCreateProduct,
|
|
192
256
|
useCreateStockItems: () => useCreateStockItems,
|
|
257
|
+
useCreateVariant: () => useCreateVariant,
|
|
193
258
|
useCreateWarehouse: () => useCreateWarehouse,
|
|
194
259
|
useDeleteApiIdentityAdminRolesId: () => useDeleteApiIdentityAdminRolesId,
|
|
260
|
+
useDeleteProduct: () => useDeleteProduct,
|
|
261
|
+
useDeleteVariant: () => useDeleteVariant,
|
|
262
|
+
useDeleteVariantPricing: () => useDeleteVariantPricing,
|
|
195
263
|
useDeleteWarehouse: () => useDeleteWarehouse,
|
|
196
264
|
useGetApiIdentityAdminPermissions: () => useGetApiIdentityAdminPermissions,
|
|
197
265
|
useGetApiIdentityAdminRoles: () => useGetApiIdentityAdminRoles,
|
|
@@ -203,10 +271,15 @@ __export(index_exports, {
|
|
|
203
271
|
useGetApiIdentityManage2fa: () => useGetApiIdentityManage2fa,
|
|
204
272
|
useGetApiIdentityManageInfo: () => useGetApiIdentityManageInfo,
|
|
205
273
|
useGetHealth: () => useGetHealth,
|
|
274
|
+
useGetProduct: () => useGetProduct,
|
|
275
|
+
useGetVariant: () => useGetVariant,
|
|
276
|
+
useGetVariantPricing: () => useGetVariantPricing,
|
|
206
277
|
useGetWarehouseById: () => useGetWarehouseById,
|
|
207
278
|
useGetWarehouseOptions: () => useGetWarehouseOptions,
|
|
279
|
+
useListProducts: () => useListProducts,
|
|
208
280
|
useListStockItems: () => useListStockItems,
|
|
209
281
|
useListStockMovements: () => useListStockMovements,
|
|
282
|
+
useListVariants: () => useListVariants,
|
|
210
283
|
useListWarehouses: () => useListWarehouses,
|
|
211
284
|
usePostApiIdentityAdminRoles: () => usePostApiIdentityAdminRoles,
|
|
212
285
|
usePostApiIdentityAdminUsersIdLogout: () => usePostApiIdentityAdminUsersIdLogout,
|
|
@@ -222,7 +295,10 @@ __export(index_exports, {
|
|
|
222
295
|
usePutApiIdentityAdminUsersIdRoles: () => usePutApiIdentityAdminUsersIdRoles,
|
|
223
296
|
useSearchAddresses: () => useSearchAddresses,
|
|
224
297
|
useToggleWarehouseStatus: () => useToggleWarehouseStatus,
|
|
225
|
-
|
|
298
|
+
useUpdateProduct: () => useUpdateProduct,
|
|
299
|
+
useUpdateVariant: () => useUpdateVariant,
|
|
300
|
+
useUpdateWarehouse: () => useUpdateWarehouse,
|
|
301
|
+
useUpsertVariantPricing: () => useUpsertVariantPricing
|
|
226
302
|
});
|
|
227
303
|
module.exports = __toCommonJS(index_exports);
|
|
228
304
|
|
|
@@ -237,6 +313,15 @@ var ConsumeBatchSourceType = {
|
|
|
237
313
|
DAMAGED: "DAMAGED",
|
|
238
314
|
INTERNAL_USE: "INTERNAL_USE"
|
|
239
315
|
};
|
|
316
|
+
var ProductClassification = {
|
|
317
|
+
Physical: "Physical",
|
|
318
|
+
Digital: "Digital"
|
|
319
|
+
};
|
|
320
|
+
var ProductStatus = {
|
|
321
|
+
Tes: "Tes",
|
|
322
|
+
Live: "Live",
|
|
323
|
+
Archived: "Archived"
|
|
324
|
+
};
|
|
240
325
|
var SourceTypeEnum = {
|
|
241
326
|
PURCHASE: "PURCHASE",
|
|
242
327
|
CUSTOMER_RETURN: "CUSTOMER_RETURN",
|
|
@@ -402,6 +487,238 @@ function useSearchAddresses(params, options, queryClient) {
|
|
|
402
487
|
query.queryKey = queryOptions.queryKey;
|
|
403
488
|
return query;
|
|
404
489
|
}
|
|
490
|
+
var createProduct = (createProductRequest, options) => {
|
|
491
|
+
return import_axios.default.post(`/api/catalog/products`, createProductRequest, options);
|
|
492
|
+
};
|
|
493
|
+
var getCreateProductMutationOptions = (options) => {
|
|
494
|
+
const mutationKey = ["createProduct"];
|
|
495
|
+
const { mutation: mutationOptions, axios: axiosOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey }, axios: void 0 };
|
|
496
|
+
const mutationFn = (props) => {
|
|
497
|
+
const { data } = props ?? {};
|
|
498
|
+
return createProduct(data, axiosOptions);
|
|
499
|
+
};
|
|
500
|
+
return { mutationFn, ...mutationOptions };
|
|
501
|
+
};
|
|
502
|
+
var useCreateProduct = (options, queryClient) => {
|
|
503
|
+
const mutationOptions = getCreateProductMutationOptions(options);
|
|
504
|
+
return (0, import_react_query.useMutation)(mutationOptions, queryClient);
|
|
505
|
+
};
|
|
506
|
+
var listProducts = (params, options) => {
|
|
507
|
+
return import_axios.default.get(`/api/catalog/products`, {
|
|
508
|
+
...options,
|
|
509
|
+
params: { ...params, ...options?.params }
|
|
510
|
+
});
|
|
511
|
+
};
|
|
512
|
+
var getListProductsQueryKey = (params) => {
|
|
513
|
+
return [`/api/catalog/products`, ...params ? [params] : []];
|
|
514
|
+
};
|
|
515
|
+
var getListProductsQueryOptions = (params, options) => {
|
|
516
|
+
const { query: queryOptions, axios: axiosOptions } = options ?? {};
|
|
517
|
+
const queryKey = queryOptions?.queryKey ?? getListProductsQueryKey(params);
|
|
518
|
+
const queryFn = ({ signal }) => listProducts(params, { signal, ...axiosOptions });
|
|
519
|
+
return { queryKey, queryFn, ...queryOptions };
|
|
520
|
+
};
|
|
521
|
+
function useListProducts(params, options, queryClient) {
|
|
522
|
+
const queryOptions = getListProductsQueryOptions(params, options);
|
|
523
|
+
const query = (0, import_react_query.useQuery)(queryOptions, queryClient);
|
|
524
|
+
query.queryKey = queryOptions.queryKey;
|
|
525
|
+
return query;
|
|
526
|
+
}
|
|
527
|
+
var getProduct = (id, options) => {
|
|
528
|
+
return import_axios.default.get(`/api/catalog/products/${id}`, options);
|
|
529
|
+
};
|
|
530
|
+
var getGetProductQueryKey = (id) => {
|
|
531
|
+
return [`/api/catalog/products/${id}`];
|
|
532
|
+
};
|
|
533
|
+
var getGetProductQueryOptions = (id, options) => {
|
|
534
|
+
const { query: queryOptions, axios: axiosOptions } = options ?? {};
|
|
535
|
+
const queryKey = queryOptions?.queryKey ?? getGetProductQueryKey(id);
|
|
536
|
+
const queryFn = ({ signal }) => getProduct(id, { signal, ...axiosOptions });
|
|
537
|
+
return { queryKey, queryFn, enabled: !!id, ...queryOptions };
|
|
538
|
+
};
|
|
539
|
+
function useGetProduct(id, options, queryClient) {
|
|
540
|
+
const queryOptions = getGetProductQueryOptions(id, options);
|
|
541
|
+
const query = (0, import_react_query.useQuery)(queryOptions, queryClient);
|
|
542
|
+
query.queryKey = queryOptions.queryKey;
|
|
543
|
+
return query;
|
|
544
|
+
}
|
|
545
|
+
var updateProduct = (id, updateProductRequest, options) => {
|
|
546
|
+
return import_axios.default.put(`/api/catalog/products/${id}`, updateProductRequest, options);
|
|
547
|
+
};
|
|
548
|
+
var getUpdateProductMutationOptions = (options) => {
|
|
549
|
+
const mutationKey = ["updateProduct"];
|
|
550
|
+
const { mutation: mutationOptions, axios: axiosOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey }, axios: void 0 };
|
|
551
|
+
const mutationFn = (props) => {
|
|
552
|
+
const { id, data } = props ?? {};
|
|
553
|
+
return updateProduct(id, data, axiosOptions);
|
|
554
|
+
};
|
|
555
|
+
return { mutationFn, ...mutationOptions };
|
|
556
|
+
};
|
|
557
|
+
var useUpdateProduct = (options, queryClient) => {
|
|
558
|
+
const mutationOptions = getUpdateProductMutationOptions(options);
|
|
559
|
+
return (0, import_react_query.useMutation)(mutationOptions, queryClient);
|
|
560
|
+
};
|
|
561
|
+
var deleteProduct = (id, options) => {
|
|
562
|
+
return import_axios.default.delete(`/api/catalog/products/${id}`, options);
|
|
563
|
+
};
|
|
564
|
+
var getDeleteProductMutationOptions = (options) => {
|
|
565
|
+
const mutationKey = ["deleteProduct"];
|
|
566
|
+
const { mutation: mutationOptions, axios: axiosOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey }, axios: void 0 };
|
|
567
|
+
const mutationFn = (props) => {
|
|
568
|
+
const { id } = props ?? {};
|
|
569
|
+
return deleteProduct(id, axiosOptions);
|
|
570
|
+
};
|
|
571
|
+
return { mutationFn, ...mutationOptions };
|
|
572
|
+
};
|
|
573
|
+
var useDeleteProduct = (options, queryClient) => {
|
|
574
|
+
const mutationOptions = getDeleteProductMutationOptions(options);
|
|
575
|
+
return (0, import_react_query.useMutation)(mutationOptions, queryClient);
|
|
576
|
+
};
|
|
577
|
+
var createVariant = (productId, createVariantRequest, options) => {
|
|
578
|
+
return import_axios.default.post(`/api/catalog/products/${productId}/variants`, createVariantRequest, options);
|
|
579
|
+
};
|
|
580
|
+
var getCreateVariantMutationOptions = (options) => {
|
|
581
|
+
const mutationKey = ["createVariant"];
|
|
582
|
+
const { mutation: mutationOptions, axios: axiosOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey }, axios: void 0 };
|
|
583
|
+
const mutationFn = (props) => {
|
|
584
|
+
const { productId, data } = props ?? {};
|
|
585
|
+
return createVariant(productId, data, axiosOptions);
|
|
586
|
+
};
|
|
587
|
+
return { mutationFn, ...mutationOptions };
|
|
588
|
+
};
|
|
589
|
+
var useCreateVariant = (options, queryClient) => {
|
|
590
|
+
const mutationOptions = getCreateVariantMutationOptions(options);
|
|
591
|
+
return (0, import_react_query.useMutation)(mutationOptions, queryClient);
|
|
592
|
+
};
|
|
593
|
+
var listVariants = (productId, params, options) => {
|
|
594
|
+
return import_axios.default.get(`/api/catalog/products/${productId}/variants`, {
|
|
595
|
+
...options,
|
|
596
|
+
params: { ...params, ...options?.params }
|
|
597
|
+
});
|
|
598
|
+
};
|
|
599
|
+
var getListVariantsQueryKey = (productId, params) => {
|
|
600
|
+
return [`/api/catalog/products/${productId}/variants`, ...params ? [params] : []];
|
|
601
|
+
};
|
|
602
|
+
var getListVariantsQueryOptions = (productId, params, options) => {
|
|
603
|
+
const { query: queryOptions, axios: axiosOptions } = options ?? {};
|
|
604
|
+
const queryKey = queryOptions?.queryKey ?? getListVariantsQueryKey(productId, params);
|
|
605
|
+
const queryFn = ({ signal }) => listVariants(productId, params, { signal, ...axiosOptions });
|
|
606
|
+
return { queryKey, queryFn, enabled: !!productId, ...queryOptions };
|
|
607
|
+
};
|
|
608
|
+
function useListVariants(productId, params, options, queryClient) {
|
|
609
|
+
const queryOptions = getListVariantsQueryOptions(productId, params, options);
|
|
610
|
+
const query = (0, import_react_query.useQuery)(queryOptions, queryClient);
|
|
611
|
+
query.queryKey = queryOptions.queryKey;
|
|
612
|
+
return query;
|
|
613
|
+
}
|
|
614
|
+
var getVariant = (productId, id, options) => {
|
|
615
|
+
return import_axios.default.get(`/api/catalog/products/${productId}/variants/${id}`, options);
|
|
616
|
+
};
|
|
617
|
+
var getGetVariantQueryKey = (productId, id) => {
|
|
618
|
+
return [`/api/catalog/products/${productId}/variants/${id}`];
|
|
619
|
+
};
|
|
620
|
+
var getGetVariantQueryOptions = (productId, id, options) => {
|
|
621
|
+
const { query: queryOptions, axios: axiosOptions } = options ?? {};
|
|
622
|
+
const queryKey = queryOptions?.queryKey ?? getGetVariantQueryKey(productId, id);
|
|
623
|
+
const queryFn = ({ signal }) => getVariant(productId, id, { signal, ...axiosOptions });
|
|
624
|
+
return { queryKey, queryFn, enabled: !!(productId && id), ...queryOptions };
|
|
625
|
+
};
|
|
626
|
+
function useGetVariant(productId, id, options, queryClient) {
|
|
627
|
+
const queryOptions = getGetVariantQueryOptions(productId, id, options);
|
|
628
|
+
const query = (0, import_react_query.useQuery)(queryOptions, queryClient);
|
|
629
|
+
query.queryKey = queryOptions.queryKey;
|
|
630
|
+
return query;
|
|
631
|
+
}
|
|
632
|
+
var updateVariant = (productId, id, updateVariantRequest, options) => {
|
|
633
|
+
return import_axios.default.put(
|
|
634
|
+
`/api/catalog/products/${productId}/variants/${id}`,
|
|
635
|
+
updateVariantRequest,
|
|
636
|
+
options
|
|
637
|
+
);
|
|
638
|
+
};
|
|
639
|
+
var getUpdateVariantMutationOptions = (options) => {
|
|
640
|
+
const mutationKey = ["updateVariant"];
|
|
641
|
+
const { mutation: mutationOptions, axios: axiosOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey }, axios: void 0 };
|
|
642
|
+
const mutationFn = (props) => {
|
|
643
|
+
const { productId, id, data } = props ?? {};
|
|
644
|
+
return updateVariant(productId, id, data, axiosOptions);
|
|
645
|
+
};
|
|
646
|
+
return { mutationFn, ...mutationOptions };
|
|
647
|
+
};
|
|
648
|
+
var useUpdateVariant = (options, queryClient) => {
|
|
649
|
+
const mutationOptions = getUpdateVariantMutationOptions(options);
|
|
650
|
+
return (0, import_react_query.useMutation)(mutationOptions, queryClient);
|
|
651
|
+
};
|
|
652
|
+
var deleteVariant = (productId, id, options) => {
|
|
653
|
+
return import_axios.default.delete(`/api/catalog/products/${productId}/variants/${id}`, options);
|
|
654
|
+
};
|
|
655
|
+
var getDeleteVariantMutationOptions = (options) => {
|
|
656
|
+
const mutationKey = ["deleteVariant"];
|
|
657
|
+
const { mutation: mutationOptions, axios: axiosOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey }, axios: void 0 };
|
|
658
|
+
const mutationFn = (props) => {
|
|
659
|
+
const { productId, id } = props ?? {};
|
|
660
|
+
return deleteVariant(productId, id, axiosOptions);
|
|
661
|
+
};
|
|
662
|
+
return { mutationFn, ...mutationOptions };
|
|
663
|
+
};
|
|
664
|
+
var useDeleteVariant = (options, queryClient) => {
|
|
665
|
+
const mutationOptions = getDeleteVariantMutationOptions(options);
|
|
666
|
+
return (0, import_react_query.useMutation)(mutationOptions, queryClient);
|
|
667
|
+
};
|
|
668
|
+
var getVariantPricing = (variantId, options) => {
|
|
669
|
+
return import_axios.default.get(`/api/catalog/variants/${variantId}/pricing`, options);
|
|
670
|
+
};
|
|
671
|
+
var getGetVariantPricingQueryKey = (variantId) => {
|
|
672
|
+
return [`/api/catalog/variants/${variantId}/pricing`];
|
|
673
|
+
};
|
|
674
|
+
var getGetVariantPricingQueryOptions = (variantId, options) => {
|
|
675
|
+
const { query: queryOptions, axios: axiosOptions } = options ?? {};
|
|
676
|
+
const queryKey = queryOptions?.queryKey ?? getGetVariantPricingQueryKey(variantId);
|
|
677
|
+
const queryFn = ({ signal }) => getVariantPricing(variantId, { signal, ...axiosOptions });
|
|
678
|
+
return { queryKey, queryFn, enabled: !!variantId, ...queryOptions };
|
|
679
|
+
};
|
|
680
|
+
function useGetVariantPricing(variantId, options, queryClient) {
|
|
681
|
+
const queryOptions = getGetVariantPricingQueryOptions(variantId, options);
|
|
682
|
+
const query = (0, import_react_query.useQuery)(queryOptions, queryClient);
|
|
683
|
+
query.queryKey = queryOptions.queryKey;
|
|
684
|
+
return query;
|
|
685
|
+
}
|
|
686
|
+
var upsertVariantPricing = (variantId, upsertVariantPricingRequest, options) => {
|
|
687
|
+
return import_axios.default.put(
|
|
688
|
+
`/api/catalog/variants/${variantId}/pricing`,
|
|
689
|
+
upsertVariantPricingRequest,
|
|
690
|
+
options
|
|
691
|
+
);
|
|
692
|
+
};
|
|
693
|
+
var getUpsertVariantPricingMutationOptions = (options) => {
|
|
694
|
+
const mutationKey = ["upsertVariantPricing"];
|
|
695
|
+
const { mutation: mutationOptions, axios: axiosOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey }, axios: void 0 };
|
|
696
|
+
const mutationFn = (props) => {
|
|
697
|
+
const { variantId, data } = props ?? {};
|
|
698
|
+
return upsertVariantPricing(variantId, data, axiosOptions);
|
|
699
|
+
};
|
|
700
|
+
return { mutationFn, ...mutationOptions };
|
|
701
|
+
};
|
|
702
|
+
var useUpsertVariantPricing = (options, queryClient) => {
|
|
703
|
+
const mutationOptions = getUpsertVariantPricingMutationOptions(options);
|
|
704
|
+
return (0, import_react_query.useMutation)(mutationOptions, queryClient);
|
|
705
|
+
};
|
|
706
|
+
var deleteVariantPricing = (variantId, options) => {
|
|
707
|
+
return import_axios.default.delete(`/api/catalog/variants/${variantId}/pricing`, options);
|
|
708
|
+
};
|
|
709
|
+
var getDeleteVariantPricingMutationOptions = (options) => {
|
|
710
|
+
const mutationKey = ["deleteVariantPricing"];
|
|
711
|
+
const { mutation: mutationOptions, axios: axiosOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey }, axios: void 0 };
|
|
712
|
+
const mutationFn = (props) => {
|
|
713
|
+
const { variantId } = props ?? {};
|
|
714
|
+
return deleteVariantPricing(variantId, axiosOptions);
|
|
715
|
+
};
|
|
716
|
+
return { mutationFn, ...mutationOptions };
|
|
717
|
+
};
|
|
718
|
+
var useDeleteVariantPricing = (options, queryClient) => {
|
|
719
|
+
const mutationOptions = getDeleteVariantPricingMutationOptions(options);
|
|
720
|
+
return (0, import_react_query.useMutation)(mutationOptions, queryClient);
|
|
721
|
+
};
|
|
405
722
|
var createStockItems = (createStockItemCommand, options) => {
|
|
406
723
|
return import_axios.default.post(`/api/stock-items`, createStockItemCommand, options);
|
|
407
724
|
};
|
|
@@ -988,6 +1305,254 @@ var searchAddressesResponseItem = zod.strictObject({
|
|
|
988
1305
|
zipCode: zod.string().optional()
|
|
989
1306
|
});
|
|
990
1307
|
var searchAddressesResponse = zod.array(searchAddressesResponseItem);
|
|
1308
|
+
var createProductBody = zod.strictObject({
|
|
1309
|
+
categoryId: zod.uuid(),
|
|
1310
|
+
name: zod.string(),
|
|
1311
|
+
slug: zod.string(),
|
|
1312
|
+
status: zod.enum(["Tes", "Live", "Archived"]).optional(),
|
|
1313
|
+
classification: zod.enum(["Physical", "Digital"])
|
|
1314
|
+
});
|
|
1315
|
+
var listProductsQueryPageDefault = 1;
|
|
1316
|
+
var listProductsQueryPageSizeDefault = 10;
|
|
1317
|
+
var listProductsQueryParams = zod.strictObject({
|
|
1318
|
+
page: zod.coerce.number().default(listProductsQueryPageDefault),
|
|
1319
|
+
pageSize: zod.coerce.number().default(listProductsQueryPageSizeDefault)
|
|
1320
|
+
});
|
|
1321
|
+
var listProductsResponse = zod.strictObject({
|
|
1322
|
+
items: zod.array(
|
|
1323
|
+
zod.strictObject({
|
|
1324
|
+
id: zod.uuid(),
|
|
1325
|
+
categoryId: zod.uuid(),
|
|
1326
|
+
name: zod.string(),
|
|
1327
|
+
slug: zod.string(),
|
|
1328
|
+
status: zod.enum(["Tes", "Live", "Archived"]),
|
|
1329
|
+
classification: zod.enum(["Physical", "Digital"]),
|
|
1330
|
+
variantCount: zod.number()
|
|
1331
|
+
})
|
|
1332
|
+
),
|
|
1333
|
+
page: zod.number(),
|
|
1334
|
+
pageSize: zod.number(),
|
|
1335
|
+
totalCount: zod.number(),
|
|
1336
|
+
totalPages: zod.number().optional(),
|
|
1337
|
+
hasNextPage: zod.boolean().optional(),
|
|
1338
|
+
hasPreviousPage: zod.boolean().optional()
|
|
1339
|
+
});
|
|
1340
|
+
var getProductParams = zod.strictObject({
|
|
1341
|
+
id: zod.uuid()
|
|
1342
|
+
});
|
|
1343
|
+
var getProductResponse = zod.strictObject({
|
|
1344
|
+
id: zod.uuid(),
|
|
1345
|
+
categoryId: zod.uuid(),
|
|
1346
|
+
name: zod.string(),
|
|
1347
|
+
slug: zod.string(),
|
|
1348
|
+
status: zod.enum(["Tes", "Live", "Archived"]),
|
|
1349
|
+
classification: zod.enum(["Physical", "Digital"]),
|
|
1350
|
+
variantCount: zod.number()
|
|
1351
|
+
});
|
|
1352
|
+
var updateProductParams = zod.strictObject({
|
|
1353
|
+
id: zod.uuid()
|
|
1354
|
+
});
|
|
1355
|
+
var updateProductBody = zod.strictObject({
|
|
1356
|
+
categoryId: zod.uuid(),
|
|
1357
|
+
name: zod.string(),
|
|
1358
|
+
slug: zod.string(),
|
|
1359
|
+
status: zod.enum(["Tes", "Live", "Archived"]),
|
|
1360
|
+
classification: zod.enum(["Physical", "Digital"])
|
|
1361
|
+
});
|
|
1362
|
+
var updateProductResponse = zod.strictObject({
|
|
1363
|
+
id: zod.uuid(),
|
|
1364
|
+
categoryId: zod.uuid(),
|
|
1365
|
+
name: zod.string(),
|
|
1366
|
+
slug: zod.string(),
|
|
1367
|
+
status: zod.enum(["Tes", "Live", "Archived"]),
|
|
1368
|
+
classification: zod.enum(["Physical", "Digital"]),
|
|
1369
|
+
variantCount: zod.number()
|
|
1370
|
+
});
|
|
1371
|
+
var deleteProductParams = zod.strictObject({
|
|
1372
|
+
id: zod.uuid()
|
|
1373
|
+
});
|
|
1374
|
+
var createVariantParams = zod.strictObject({
|
|
1375
|
+
productId: zod.uuid()
|
|
1376
|
+
});
|
|
1377
|
+
var createVariantBody = zod.strictObject({
|
|
1378
|
+
code: zod.string(),
|
|
1379
|
+
attributes: zod.array(
|
|
1380
|
+
zod.strictObject({
|
|
1381
|
+
name: zod.string(),
|
|
1382
|
+
value: zod.string()
|
|
1383
|
+
})
|
|
1384
|
+
).optional(),
|
|
1385
|
+
weight: zod.strictObject({
|
|
1386
|
+
value: zod.number(),
|
|
1387
|
+
unit: zod.string()
|
|
1388
|
+
})
|
|
1389
|
+
});
|
|
1390
|
+
var listVariantsParams = zod.strictObject({
|
|
1391
|
+
productId: zod.uuid()
|
|
1392
|
+
});
|
|
1393
|
+
var listVariantsQueryPageDefault = 1;
|
|
1394
|
+
var listVariantsQueryPageSizeDefault = 10;
|
|
1395
|
+
var listVariantsQueryParams = zod.strictObject({
|
|
1396
|
+
page: zod.coerce.number().default(listVariantsQueryPageDefault),
|
|
1397
|
+
pageSize: zod.coerce.number().default(listVariantsQueryPageSizeDefault)
|
|
1398
|
+
});
|
|
1399
|
+
var listVariantsResponse = zod.strictObject({
|
|
1400
|
+
items: zod.array(
|
|
1401
|
+
zod.strictObject({
|
|
1402
|
+
id: zod.uuid(),
|
|
1403
|
+
productId: zod.uuid(),
|
|
1404
|
+
code: zod.string(),
|
|
1405
|
+
attributes: zod.array(
|
|
1406
|
+
zod.strictObject({
|
|
1407
|
+
name: zod.string(),
|
|
1408
|
+
value: zod.string()
|
|
1409
|
+
})
|
|
1410
|
+
).optional(),
|
|
1411
|
+
weight: zod.strictObject({
|
|
1412
|
+
value: zod.number(),
|
|
1413
|
+
unit: zod.string()
|
|
1414
|
+
})
|
|
1415
|
+
})
|
|
1416
|
+
),
|
|
1417
|
+
page: zod.number(),
|
|
1418
|
+
pageSize: zod.number(),
|
|
1419
|
+
totalCount: zod.number(),
|
|
1420
|
+
totalPages: zod.number().optional(),
|
|
1421
|
+
hasNextPage: zod.boolean().optional(),
|
|
1422
|
+
hasPreviousPage: zod.boolean().optional()
|
|
1423
|
+
});
|
|
1424
|
+
var getVariantParams = zod.strictObject({
|
|
1425
|
+
productId: zod.uuid(),
|
|
1426
|
+
id: zod.uuid()
|
|
1427
|
+
});
|
|
1428
|
+
var getVariantResponse = zod.strictObject({
|
|
1429
|
+
id: zod.uuid(),
|
|
1430
|
+
productId: zod.uuid(),
|
|
1431
|
+
code: zod.string(),
|
|
1432
|
+
attributes: zod.array(
|
|
1433
|
+
zod.strictObject({
|
|
1434
|
+
name: zod.string(),
|
|
1435
|
+
value: zod.string()
|
|
1436
|
+
})
|
|
1437
|
+
).optional(),
|
|
1438
|
+
weight: zod.strictObject({
|
|
1439
|
+
value: zod.number(),
|
|
1440
|
+
unit: zod.string()
|
|
1441
|
+
})
|
|
1442
|
+
});
|
|
1443
|
+
var updateVariantParams = zod.strictObject({
|
|
1444
|
+
productId: zod.uuid(),
|
|
1445
|
+
id: zod.uuid()
|
|
1446
|
+
});
|
|
1447
|
+
var updateVariantBody = zod.strictObject({
|
|
1448
|
+
code: zod.string(),
|
|
1449
|
+
attributes: zod.array(
|
|
1450
|
+
zod.strictObject({
|
|
1451
|
+
name: zod.string(),
|
|
1452
|
+
value: zod.string()
|
|
1453
|
+
})
|
|
1454
|
+
).optional(),
|
|
1455
|
+
weight: zod.strictObject({
|
|
1456
|
+
value: zod.number(),
|
|
1457
|
+
unit: zod.string()
|
|
1458
|
+
})
|
|
1459
|
+
});
|
|
1460
|
+
var updateVariantResponse = zod.strictObject({
|
|
1461
|
+
id: zod.uuid(),
|
|
1462
|
+
productId: zod.uuid(),
|
|
1463
|
+
code: zod.string(),
|
|
1464
|
+
attributes: zod.array(
|
|
1465
|
+
zod.strictObject({
|
|
1466
|
+
name: zod.string(),
|
|
1467
|
+
value: zod.string()
|
|
1468
|
+
})
|
|
1469
|
+
).optional(),
|
|
1470
|
+
weight: zod.strictObject({
|
|
1471
|
+
value: zod.number(),
|
|
1472
|
+
unit: zod.string()
|
|
1473
|
+
})
|
|
1474
|
+
});
|
|
1475
|
+
var deleteVariantParams = zod.strictObject({
|
|
1476
|
+
productId: zod.uuid(),
|
|
1477
|
+
id: zod.uuid()
|
|
1478
|
+
});
|
|
1479
|
+
var getVariantPricingParams = zod.strictObject({
|
|
1480
|
+
variantId: zod.uuid()
|
|
1481
|
+
});
|
|
1482
|
+
var getVariantPricingResponse = zod.strictObject({
|
|
1483
|
+
variantId: zod.uuid(),
|
|
1484
|
+
baseAmount: zod.number(),
|
|
1485
|
+
baseCurrency: zod.string(),
|
|
1486
|
+
effectiveAmount: zod.number(),
|
|
1487
|
+
effectiveCurrency: zod.string(),
|
|
1488
|
+
sale: zod.union([
|
|
1489
|
+
zod.null(),
|
|
1490
|
+
zod.strictObject({
|
|
1491
|
+
amount: zod.number(),
|
|
1492
|
+
currency: zod.string(),
|
|
1493
|
+
startAt: zod.iso.datetime({}),
|
|
1494
|
+
endAt: zod.iso.datetime({}),
|
|
1495
|
+
isActive: zod.boolean()
|
|
1496
|
+
})
|
|
1497
|
+
]).optional(),
|
|
1498
|
+
wholesale: zod.array(
|
|
1499
|
+
zod.strictObject({
|
|
1500
|
+
minQty: zod.number(),
|
|
1501
|
+
amount: zod.number(),
|
|
1502
|
+
currency: zod.string()
|
|
1503
|
+
})
|
|
1504
|
+
).optional()
|
|
1505
|
+
});
|
|
1506
|
+
var upsertVariantPricingParams = zod.strictObject({
|
|
1507
|
+
variantId: zod.uuid()
|
|
1508
|
+
});
|
|
1509
|
+
var upsertVariantPricingBody = zod.strictObject({
|
|
1510
|
+
baseAmount: zod.number(),
|
|
1511
|
+
baseCurrency: zod.string(),
|
|
1512
|
+
sale: zod.union([
|
|
1513
|
+
zod.null(),
|
|
1514
|
+
zod.strictObject({
|
|
1515
|
+
amount: zod.number(),
|
|
1516
|
+
currency: zod.string(),
|
|
1517
|
+
startAt: zod.iso.datetime({}),
|
|
1518
|
+
endAt: zod.iso.datetime({})
|
|
1519
|
+
})
|
|
1520
|
+
]).optional(),
|
|
1521
|
+
wholesale: zod.array(
|
|
1522
|
+
zod.strictObject({
|
|
1523
|
+
minQty: zod.number(),
|
|
1524
|
+
amount: zod.number(),
|
|
1525
|
+
currency: zod.string()
|
|
1526
|
+
})
|
|
1527
|
+
).optional()
|
|
1528
|
+
});
|
|
1529
|
+
var upsertVariantPricingResponse = zod.strictObject({
|
|
1530
|
+
variantId: zod.uuid(),
|
|
1531
|
+
baseAmount: zod.number(),
|
|
1532
|
+
baseCurrency: zod.string(),
|
|
1533
|
+
effectiveAmount: zod.number(),
|
|
1534
|
+
effectiveCurrency: zod.string(),
|
|
1535
|
+
sale: zod.union([
|
|
1536
|
+
zod.null(),
|
|
1537
|
+
zod.strictObject({
|
|
1538
|
+
amount: zod.number(),
|
|
1539
|
+
currency: zod.string(),
|
|
1540
|
+
startAt: zod.iso.datetime({}),
|
|
1541
|
+
endAt: zod.iso.datetime({}),
|
|
1542
|
+
isActive: zod.boolean()
|
|
1543
|
+
})
|
|
1544
|
+
]).optional(),
|
|
1545
|
+
wholesale: zod.array(
|
|
1546
|
+
zod.strictObject({
|
|
1547
|
+
minQty: zod.number(),
|
|
1548
|
+
amount: zod.number(),
|
|
1549
|
+
currency: zod.string()
|
|
1550
|
+
})
|
|
1551
|
+
).optional()
|
|
1552
|
+
});
|
|
1553
|
+
var deleteVariantPricingParams = zod.strictObject({
|
|
1554
|
+
variantId: zod.uuid()
|
|
1555
|
+
});
|
|
991
1556
|
var createStockItemsBody = zod.strictObject({
|
|
992
1557
|
name: zod.string(),
|
|
993
1558
|
sku: zod.string(),
|
|
@@ -1229,18 +1794,31 @@ var postApiIdentityAdminUsersIdLogoutParams = zod.strictObject({
|
|
|
1229
1794
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1230
1795
|
0 && (module.exports = {
|
|
1231
1796
|
ConsumeBatchSourceType,
|
|
1797
|
+
ProductClassification,
|
|
1798
|
+
ProductStatus,
|
|
1232
1799
|
SourceTypeEnum,
|
|
1233
1800
|
consumeBatch,
|
|
1234
1801
|
consumeBatchBody,
|
|
1235
1802
|
consumeBatchParams,
|
|
1236
1803
|
createBatch,
|
|
1237
1804
|
createBatchBody,
|
|
1805
|
+
createProduct,
|
|
1806
|
+
createProductBody,
|
|
1238
1807
|
createStockItems,
|
|
1239
1808
|
createStockItemsBody,
|
|
1809
|
+
createVariant,
|
|
1810
|
+
createVariantBody,
|
|
1811
|
+
createVariantParams,
|
|
1240
1812
|
createWarehouse,
|
|
1241
1813
|
createWarehouseBody,
|
|
1242
1814
|
deleteApiIdentityAdminRolesId,
|
|
1243
1815
|
deleteApiIdentityAdminRolesIdParams,
|
|
1816
|
+
deleteProduct,
|
|
1817
|
+
deleteProductParams,
|
|
1818
|
+
deleteVariant,
|
|
1819
|
+
deleteVariantParams,
|
|
1820
|
+
deleteVariantPricing,
|
|
1821
|
+
deleteVariantPricingParams,
|
|
1244
1822
|
deleteWarehouse,
|
|
1245
1823
|
deleteWarehouseParams,
|
|
1246
1824
|
getApiIdentityAdminPermissions,
|
|
@@ -1271,9 +1849,14 @@ var postApiIdentityAdminUsersIdLogoutParams = zod.strictObject({
|
|
|
1271
1849
|
getApiIdentityManageInfoResponse,
|
|
1272
1850
|
getConsumeBatchMutationOptions,
|
|
1273
1851
|
getCreateBatchMutationOptions,
|
|
1852
|
+
getCreateProductMutationOptions,
|
|
1274
1853
|
getCreateStockItemsMutationOptions,
|
|
1854
|
+
getCreateVariantMutationOptions,
|
|
1275
1855
|
getCreateWarehouseMutationOptions,
|
|
1276
1856
|
getDeleteApiIdentityAdminRolesIdMutationOptions,
|
|
1857
|
+
getDeleteProductMutationOptions,
|
|
1858
|
+
getDeleteVariantMutationOptions,
|
|
1859
|
+
getDeleteVariantPricingMutationOptions,
|
|
1277
1860
|
getDeleteWarehouseMutationOptions,
|
|
1278
1861
|
getGetApiIdentityAdminPermissionsQueryKey,
|
|
1279
1862
|
getGetApiIdentityAdminPermissionsQueryOptions,
|
|
@@ -1295,15 +1878,25 @@ var postApiIdentityAdminUsersIdLogoutParams = zod.strictObject({
|
|
|
1295
1878
|
getGetApiIdentityManageInfoQueryOptions,
|
|
1296
1879
|
getGetHealthQueryKey,
|
|
1297
1880
|
getGetHealthQueryOptions,
|
|
1881
|
+
getGetProductQueryKey,
|
|
1882
|
+
getGetProductQueryOptions,
|
|
1883
|
+
getGetVariantPricingQueryKey,
|
|
1884
|
+
getGetVariantPricingQueryOptions,
|
|
1885
|
+
getGetVariantQueryKey,
|
|
1886
|
+
getGetVariantQueryOptions,
|
|
1298
1887
|
getGetWarehouseByIdQueryKey,
|
|
1299
1888
|
getGetWarehouseByIdQueryOptions,
|
|
1300
1889
|
getGetWarehouseOptionsQueryKey,
|
|
1301
1890
|
getGetWarehouseOptionsQueryOptions,
|
|
1302
1891
|
getHealth,
|
|
1892
|
+
getListProductsQueryKey,
|
|
1893
|
+
getListProductsQueryOptions,
|
|
1303
1894
|
getListStockItemsQueryKey,
|
|
1304
1895
|
getListStockItemsQueryOptions,
|
|
1305
1896
|
getListStockMovementsQueryKey,
|
|
1306
1897
|
getListStockMovementsQueryOptions,
|
|
1898
|
+
getListVariantsQueryKey,
|
|
1899
|
+
getListVariantsQueryOptions,
|
|
1307
1900
|
getListWarehousesQueryKey,
|
|
1308
1901
|
getListWarehousesQueryOptions,
|
|
1309
1902
|
getPostApiIdentityAdminRolesMutationOptions,
|
|
@@ -1314,6 +1907,9 @@ var postApiIdentityAdminUsersIdLogoutParams = zod.strictObject({
|
|
|
1314
1907
|
getPostApiIdentityManage2faMutationOptions,
|
|
1315
1908
|
getPostApiIdentityManageInfoMutationOptions,
|
|
1316
1909
|
getPostApiIdentityResetPasswordMutationOptions,
|
|
1910
|
+
getProduct,
|
|
1911
|
+
getProductParams,
|
|
1912
|
+
getProductResponse,
|
|
1317
1913
|
getPutApiIdentityAdminRolesIdMutationOptions,
|
|
1318
1914
|
getPutApiIdentityAdminRolesIdPermissionsMutationOptions,
|
|
1319
1915
|
getPutApiIdentityAdminUsersIdActiveMutationOptions,
|
|
@@ -1321,13 +1917,27 @@ var postApiIdentityAdminUsersIdLogoutParams = zod.strictObject({
|
|
|
1321
1917
|
getSearchAddressesQueryKey,
|
|
1322
1918
|
getSearchAddressesQueryOptions,
|
|
1323
1919
|
getToggleWarehouseStatusMutationOptions,
|
|
1920
|
+
getUpdateProductMutationOptions,
|
|
1921
|
+
getUpdateVariantMutationOptions,
|
|
1324
1922
|
getUpdateWarehouseMutationOptions,
|
|
1923
|
+
getUpsertVariantPricingMutationOptions,
|
|
1924
|
+
getVariant,
|
|
1925
|
+
getVariantParams,
|
|
1926
|
+
getVariantPricing,
|
|
1927
|
+
getVariantPricingParams,
|
|
1928
|
+
getVariantPricingResponse,
|
|
1929
|
+
getVariantResponse,
|
|
1325
1930
|
getWarehouseById,
|
|
1326
1931
|
getWarehouseByIdParams,
|
|
1327
1932
|
getWarehouseByIdResponse,
|
|
1328
1933
|
getWarehouseOptions,
|
|
1329
1934
|
getWarehouseOptionsResponse,
|
|
1330
1935
|
getWarehouseOptionsResponseItem,
|
|
1936
|
+
listProducts,
|
|
1937
|
+
listProductsQueryPageDefault,
|
|
1938
|
+
listProductsQueryPageSizeDefault,
|
|
1939
|
+
listProductsQueryParams,
|
|
1940
|
+
listProductsResponse,
|
|
1331
1941
|
listStockItems,
|
|
1332
1942
|
listStockItemsQueryDescendingDefault,
|
|
1333
1943
|
listStockItemsQueryPageDefault,
|
|
@@ -1340,6 +1950,12 @@ var postApiIdentityAdminUsersIdLogoutParams = zod.strictObject({
|
|
|
1340
1950
|
listStockMovementsQueryPageSizeDefault,
|
|
1341
1951
|
listStockMovementsQueryParams,
|
|
1342
1952
|
listStockMovementsResponse,
|
|
1953
|
+
listVariants,
|
|
1954
|
+
listVariantsParams,
|
|
1955
|
+
listVariantsQueryPageDefault,
|
|
1956
|
+
listVariantsQueryPageSizeDefault,
|
|
1957
|
+
listVariantsQueryParams,
|
|
1958
|
+
listVariantsResponse,
|
|
1343
1959
|
listWarehouses,
|
|
1344
1960
|
listWarehousesQueryPageDefault,
|
|
1345
1961
|
listWarehousesQueryPageSizeDefault,
|
|
@@ -1382,14 +1998,31 @@ var postApiIdentityAdminUsersIdLogoutParams = zod.strictObject({
|
|
|
1382
1998
|
searchAddressesResponseItem,
|
|
1383
1999
|
toggleWarehouseStatus,
|
|
1384
2000
|
toggleWarehouseStatusParams,
|
|
2001
|
+
updateProduct,
|
|
2002
|
+
updateProductBody,
|
|
2003
|
+
updateProductParams,
|
|
2004
|
+
updateProductResponse,
|
|
2005
|
+
updateVariant,
|
|
2006
|
+
updateVariantBody,
|
|
2007
|
+
updateVariantParams,
|
|
2008
|
+
updateVariantResponse,
|
|
1385
2009
|
updateWarehouse,
|
|
1386
2010
|
updateWarehouseBody,
|
|
1387
2011
|
updateWarehouseParams,
|
|
2012
|
+
upsertVariantPricing,
|
|
2013
|
+
upsertVariantPricingBody,
|
|
2014
|
+
upsertVariantPricingParams,
|
|
2015
|
+
upsertVariantPricingResponse,
|
|
1388
2016
|
useConsumeBatch,
|
|
1389
2017
|
useCreateBatch,
|
|
2018
|
+
useCreateProduct,
|
|
1390
2019
|
useCreateStockItems,
|
|
2020
|
+
useCreateVariant,
|
|
1391
2021
|
useCreateWarehouse,
|
|
1392
2022
|
useDeleteApiIdentityAdminRolesId,
|
|
2023
|
+
useDeleteProduct,
|
|
2024
|
+
useDeleteVariant,
|
|
2025
|
+
useDeleteVariantPricing,
|
|
1393
2026
|
useDeleteWarehouse,
|
|
1394
2027
|
useGetApiIdentityAdminPermissions,
|
|
1395
2028
|
useGetApiIdentityAdminRoles,
|
|
@@ -1401,10 +2034,15 @@ var postApiIdentityAdminUsersIdLogoutParams = zod.strictObject({
|
|
|
1401
2034
|
useGetApiIdentityManage2fa,
|
|
1402
2035
|
useGetApiIdentityManageInfo,
|
|
1403
2036
|
useGetHealth,
|
|
2037
|
+
useGetProduct,
|
|
2038
|
+
useGetVariant,
|
|
2039
|
+
useGetVariantPricing,
|
|
1404
2040
|
useGetWarehouseById,
|
|
1405
2041
|
useGetWarehouseOptions,
|
|
2042
|
+
useListProducts,
|
|
1406
2043
|
useListStockItems,
|
|
1407
2044
|
useListStockMovements,
|
|
2045
|
+
useListVariants,
|
|
1408
2046
|
useListWarehouses,
|
|
1409
2047
|
usePostApiIdentityAdminRoles,
|
|
1410
2048
|
usePostApiIdentityAdminUsersIdLogout,
|
|
@@ -1420,6 +2058,9 @@ var postApiIdentityAdminUsersIdLogoutParams = zod.strictObject({
|
|
|
1420
2058
|
usePutApiIdentityAdminUsersIdRoles,
|
|
1421
2059
|
useSearchAddresses,
|
|
1422
2060
|
useToggleWarehouseStatus,
|
|
1423
|
-
|
|
2061
|
+
useUpdateProduct,
|
|
2062
|
+
useUpdateVariant,
|
|
2063
|
+
useUpdateWarehouse,
|
|
2064
|
+
useUpsertVariantPricing
|
|
1424
2065
|
});
|
|
1425
2066
|
//# sourceMappingURL=index.js.map
|