@arascreative/erp-api-client 3.0.0 → 4.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 +908 -396
- package/dist/index.d.ts +908 -396
- package/dist/index.js +738 -334
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +671 -287
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -30,32 +30,36 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
30
30
|
// src/index.ts
|
|
31
31
|
var index_exports = {};
|
|
32
32
|
__export(index_exports, {
|
|
33
|
+
AdminFeeBorneBy: () => AdminFeeBorneBy,
|
|
34
|
+
AssignmentDistributionKind: () => AssignmentDistributionKind,
|
|
35
|
+
CodFeeType: () => CodFeeType,
|
|
33
36
|
ConsumeBatchSourceType: () => ConsumeBatchSourceType,
|
|
37
|
+
PaymentMethodType: () => PaymentMethodType,
|
|
34
38
|
ProductClassification: () => ProductClassification,
|
|
35
39
|
ProductStatus: () => ProductStatus,
|
|
40
|
+
ShippingCoverageAction: () => ShippingCoverageAction,
|
|
41
|
+
ShippingDiscountType: () => ShippingDiscountType,
|
|
42
|
+
ShippingMode: () => ShippingMode,
|
|
36
43
|
SourceTypeEnum: () => SourceTypeEnum,
|
|
44
|
+
UniqueCodeDirection: () => UniqueCodeDirection,
|
|
37
45
|
consumeBatch: () => consumeBatch,
|
|
38
46
|
consumeBatchBody: () => consumeBatchBody,
|
|
39
47
|
consumeBatchParams: () => consumeBatchParams,
|
|
48
|
+
createBankAccount: () => createBankAccount,
|
|
49
|
+
createBankAccountBody: () => createBankAccountBody,
|
|
40
50
|
createBatch: () => createBatch,
|
|
41
51
|
createBatchBody: () => createBatchBody,
|
|
42
52
|
createProduct: () => createProduct,
|
|
43
53
|
createProductBody: () => createProductBody,
|
|
54
|
+
createProductBodyVariantsItemSourcesItemQuantityPerUnitDefault: () => createProductBodyVariantsItemSourcesItemQuantityPerUnitDefault,
|
|
44
55
|
createStockItems: () => createStockItems,
|
|
45
56
|
createStockItemsBody: () => createStockItemsBody,
|
|
46
|
-
createVariant: () => createVariant,
|
|
47
|
-
createVariantBody: () => createVariantBody,
|
|
48
|
-
createVariantParams: () => createVariantParams,
|
|
49
57
|
createWarehouse: () => createWarehouse,
|
|
50
58
|
createWarehouseBody: () => createWarehouseBody,
|
|
51
59
|
deleteApiIdentityAdminRolesId: () => deleteApiIdentityAdminRolesId,
|
|
52
60
|
deleteApiIdentityAdminRolesIdParams: () => deleteApiIdentityAdminRolesIdParams,
|
|
53
61
|
deleteProduct: () => deleteProduct,
|
|
54
62
|
deleteProductParams: () => deleteProductParams,
|
|
55
|
-
deleteVariant: () => deleteVariant,
|
|
56
|
-
deleteVariantParams: () => deleteVariantParams,
|
|
57
|
-
deleteVariantPricing: () => deleteVariantPricing,
|
|
58
|
-
deleteVariantPricingParams: () => deleteVariantPricingParams,
|
|
59
63
|
deleteWarehouse: () => deleteWarehouse,
|
|
60
64
|
deleteWarehouseParams: () => deleteWarehouseParams,
|
|
61
65
|
getApiIdentityAdminPermissions: () => getApiIdentityAdminPermissions,
|
|
@@ -84,16 +88,20 @@ __export(index_exports, {
|
|
|
84
88
|
getApiIdentityManage2faResponse: () => getApiIdentityManage2faResponse,
|
|
85
89
|
getApiIdentityManageInfo: () => getApiIdentityManageInfo,
|
|
86
90
|
getApiIdentityManageInfoResponse: () => getApiIdentityManageInfoResponse,
|
|
91
|
+
getBankByCode: () => getBankByCode,
|
|
92
|
+
getBankByCodeParams: () => getBankByCodeParams,
|
|
93
|
+
getBankByCodeResponse: () => getBankByCodeResponse,
|
|
87
94
|
getConsumeBatchMutationOptions: () => getConsumeBatchMutationOptions,
|
|
95
|
+
getCourierByCode: () => getCourierByCode,
|
|
96
|
+
getCourierByCodeParams: () => getCourierByCodeParams,
|
|
97
|
+
getCourierByCodeResponse: () => getCourierByCodeResponse,
|
|
98
|
+
getCreateBankAccountMutationOptions: () => getCreateBankAccountMutationOptions,
|
|
88
99
|
getCreateBatchMutationOptions: () => getCreateBatchMutationOptions,
|
|
89
100
|
getCreateProductMutationOptions: () => getCreateProductMutationOptions,
|
|
90
101
|
getCreateStockItemsMutationOptions: () => getCreateStockItemsMutationOptions,
|
|
91
|
-
getCreateVariantMutationOptions: () => getCreateVariantMutationOptions,
|
|
92
102
|
getCreateWarehouseMutationOptions: () => getCreateWarehouseMutationOptions,
|
|
93
103
|
getDeleteApiIdentityAdminRolesIdMutationOptions: () => getDeleteApiIdentityAdminRolesIdMutationOptions,
|
|
94
104
|
getDeleteProductMutationOptions: () => getDeleteProductMutationOptions,
|
|
95
|
-
getDeleteVariantMutationOptions: () => getDeleteVariantMutationOptions,
|
|
96
|
-
getDeleteVariantPricingMutationOptions: () => getDeleteVariantPricingMutationOptions,
|
|
97
105
|
getDeleteWarehouseMutationOptions: () => getDeleteWarehouseMutationOptions,
|
|
98
106
|
getGetApiIdentityAdminPermissionsQueryKey: () => getGetApiIdentityAdminPermissionsQueryKey,
|
|
99
107
|
getGetApiIdentityAdminPermissionsQueryOptions: () => getGetApiIdentityAdminPermissionsQueryOptions,
|
|
@@ -113,27 +121,35 @@ __export(index_exports, {
|
|
|
113
121
|
getGetApiIdentityManage2faQueryOptions: () => getGetApiIdentityManage2faQueryOptions,
|
|
114
122
|
getGetApiIdentityManageInfoQueryKey: () => getGetApiIdentityManageInfoQueryKey,
|
|
115
123
|
getGetApiIdentityManageInfoQueryOptions: () => getGetApiIdentityManageInfoQueryOptions,
|
|
124
|
+
getGetBankByCodeQueryKey: () => getGetBankByCodeQueryKey,
|
|
125
|
+
getGetBankByCodeQueryOptions: () => getGetBankByCodeQueryOptions,
|
|
126
|
+
getGetCourierByCodeQueryKey: () => getGetCourierByCodeQueryKey,
|
|
127
|
+
getGetCourierByCodeQueryOptions: () => getGetCourierByCodeQueryOptions,
|
|
116
128
|
getGetHealthQueryKey: () => getGetHealthQueryKey,
|
|
117
129
|
getGetHealthQueryOptions: () => getGetHealthQueryOptions,
|
|
130
|
+
getGetProductAssignmentQueryKey: () => getGetProductAssignmentQueryKey,
|
|
131
|
+
getGetProductAssignmentQueryOptions: () => getGetProductAssignmentQueryOptions,
|
|
132
|
+
getGetProductPaymentConfigQueryKey: () => getGetProductPaymentConfigQueryKey,
|
|
133
|
+
getGetProductPaymentConfigQueryOptions: () => getGetProductPaymentConfigQueryOptions,
|
|
118
134
|
getGetProductQueryKey: () => getGetProductQueryKey,
|
|
119
135
|
getGetProductQueryOptions: () => getGetProductQueryOptions,
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
getGetVariantQueryKey: () => getGetVariantQueryKey,
|
|
123
|
-
getGetVariantQueryOptions: () => getGetVariantQueryOptions,
|
|
136
|
+
getGetProductShippingConfigQueryKey: () => getGetProductShippingConfigQueryKey,
|
|
137
|
+
getGetProductShippingConfigQueryOptions: () => getGetProductShippingConfigQueryOptions,
|
|
124
138
|
getGetWarehouseByIdQueryKey: () => getGetWarehouseByIdQueryKey,
|
|
125
139
|
getGetWarehouseByIdQueryOptions: () => getGetWarehouseByIdQueryOptions,
|
|
126
140
|
getGetWarehouseOptionsQueryKey: () => getGetWarehouseOptionsQueryKey,
|
|
127
141
|
getGetWarehouseOptionsQueryOptions: () => getGetWarehouseOptionsQueryOptions,
|
|
128
142
|
getHealth: () => getHealth,
|
|
143
|
+
getListBanksQueryKey: () => getListBanksQueryKey,
|
|
144
|
+
getListBanksQueryOptions: () => getListBanksQueryOptions,
|
|
145
|
+
getListCouriersQueryKey: () => getListCouriersQueryKey,
|
|
146
|
+
getListCouriersQueryOptions: () => getListCouriersQueryOptions,
|
|
129
147
|
getListProductsQueryKey: () => getListProductsQueryKey,
|
|
130
148
|
getListProductsQueryOptions: () => getListProductsQueryOptions,
|
|
131
149
|
getListStockItemsQueryKey: () => getListStockItemsQueryKey,
|
|
132
150
|
getListStockItemsQueryOptions: () => getListStockItemsQueryOptions,
|
|
133
151
|
getListStockMovementsQueryKey: () => getListStockMovementsQueryKey,
|
|
134
152
|
getListStockMovementsQueryOptions: () => getListStockMovementsQueryOptions,
|
|
135
|
-
getListVariantsQueryKey: () => getListVariantsQueryKey,
|
|
136
|
-
getListVariantsQueryOptions: () => getListVariantsQueryOptions,
|
|
137
153
|
getListWarehousesQueryKey: () => getListWarehousesQueryKey,
|
|
138
154
|
getListWarehousesQueryOptions: () => getListWarehousesQueryOptions,
|
|
139
155
|
getPostApiIdentityAdminRolesMutationOptions: () => getPostApiIdentityAdminRolesMutationOptions,
|
|
@@ -145,31 +161,40 @@ __export(index_exports, {
|
|
|
145
161
|
getPostApiIdentityManageInfoMutationOptions: () => getPostApiIdentityManageInfoMutationOptions,
|
|
146
162
|
getPostApiIdentityResetPasswordMutationOptions: () => getPostApiIdentityResetPasswordMutationOptions,
|
|
147
163
|
getProduct: () => getProduct,
|
|
164
|
+
getProductAssignment: () => getProductAssignment,
|
|
165
|
+
getProductAssignmentParams: () => getProductAssignmentParams,
|
|
166
|
+
getProductAssignmentResponse: () => getProductAssignmentResponse,
|
|
148
167
|
getProductParams: () => getProductParams,
|
|
168
|
+
getProductPaymentConfig: () => getProductPaymentConfig,
|
|
169
|
+
getProductPaymentConfigParams: () => getProductPaymentConfigParams,
|
|
170
|
+
getProductPaymentConfigResponse: () => getProductPaymentConfigResponse,
|
|
149
171
|
getProductResponse: () => getProductResponse,
|
|
172
|
+
getProductShippingConfig: () => getProductShippingConfig,
|
|
173
|
+
getProductShippingConfigParams: () => getProductShippingConfigParams,
|
|
174
|
+
getProductShippingConfigResponse: () => getProductShippingConfigResponse,
|
|
150
175
|
getPutApiIdentityAdminRolesIdMutationOptions: () => getPutApiIdentityAdminRolesIdMutationOptions,
|
|
151
176
|
getPutApiIdentityAdminRolesIdPermissionsMutationOptions: () => getPutApiIdentityAdminRolesIdPermissionsMutationOptions,
|
|
152
177
|
getPutApiIdentityAdminUsersIdActiveMutationOptions: () => getPutApiIdentityAdminUsersIdActiveMutationOptions,
|
|
153
178
|
getPutApiIdentityAdminUsersIdRolesMutationOptions: () => getPutApiIdentityAdminUsersIdRolesMutationOptions,
|
|
154
179
|
getSearchAddressesQueryKey: () => getSearchAddressesQueryKey,
|
|
155
180
|
getSearchAddressesQueryOptions: () => getSearchAddressesQueryOptions,
|
|
181
|
+
getSetProductAssignmentMutationOptions: () => getSetProductAssignmentMutationOptions,
|
|
182
|
+
getSetProductShippingConfigMutationOptions: () => getSetProductShippingConfigMutationOptions,
|
|
156
183
|
getToggleWarehouseStatusMutationOptions: () => getToggleWarehouseStatusMutationOptions,
|
|
157
184
|
getUpdateProductMutationOptions: () => getUpdateProductMutationOptions,
|
|
158
|
-
getUpdateVariantMutationOptions: () => getUpdateVariantMutationOptions,
|
|
159
185
|
getUpdateWarehouseMutationOptions: () => getUpdateWarehouseMutationOptions,
|
|
160
|
-
getUpsertVariantPricingMutationOptions: () => getUpsertVariantPricingMutationOptions,
|
|
161
|
-
getVariant: () => getVariant,
|
|
162
|
-
getVariantParams: () => getVariantParams,
|
|
163
|
-
getVariantPricing: () => getVariantPricing,
|
|
164
|
-
getVariantPricingParams: () => getVariantPricingParams,
|
|
165
|
-
getVariantPricingResponse: () => getVariantPricingResponse,
|
|
166
|
-
getVariantResponse: () => getVariantResponse,
|
|
167
186
|
getWarehouseById: () => getWarehouseById,
|
|
168
187
|
getWarehouseByIdParams: () => getWarehouseByIdParams,
|
|
169
188
|
getWarehouseByIdResponse: () => getWarehouseByIdResponse,
|
|
170
189
|
getWarehouseOptions: () => getWarehouseOptions,
|
|
171
190
|
getWarehouseOptionsResponse: () => getWarehouseOptionsResponse,
|
|
172
191
|
getWarehouseOptionsResponseItem: () => getWarehouseOptionsResponseItem,
|
|
192
|
+
listBanks: () => listBanks,
|
|
193
|
+
listBanksResponse: () => listBanksResponse,
|
|
194
|
+
listBanksResponseItem: () => listBanksResponseItem,
|
|
195
|
+
listCouriers: () => listCouriers,
|
|
196
|
+
listCouriersResponse: () => listCouriersResponse,
|
|
197
|
+
listCouriersResponseItem: () => listCouriersResponseItem,
|
|
173
198
|
listProducts: () => listProducts,
|
|
174
199
|
listProductsQueryPageDefault: () => listProductsQueryPageDefault,
|
|
175
200
|
listProductsQueryPageSizeDefault: () => listProductsQueryPageSizeDefault,
|
|
@@ -187,12 +212,6 @@ __export(index_exports, {
|
|
|
187
212
|
listStockMovementsQueryPageSizeDefault: () => listStockMovementsQueryPageSizeDefault,
|
|
188
213
|
listStockMovementsQueryParams: () => listStockMovementsQueryParams,
|
|
189
214
|
listStockMovementsResponse: () => listStockMovementsResponse,
|
|
190
|
-
listVariants: () => listVariants,
|
|
191
|
-
listVariantsParams: () => listVariantsParams,
|
|
192
|
-
listVariantsQueryPageDefault: () => listVariantsQueryPageDefault,
|
|
193
|
-
listVariantsQueryPageSizeDefault: () => listVariantsQueryPageSizeDefault,
|
|
194
|
-
listVariantsQueryParams: () => listVariantsQueryParams,
|
|
195
|
-
listVariantsResponse: () => listVariantsResponse,
|
|
196
215
|
listWarehouses: () => listWarehouses,
|
|
197
216
|
listWarehousesQueryPageDefault: () => listWarehousesQueryPageDefault,
|
|
198
217
|
listWarehousesQueryPageSizeDefault: () => listWarehousesQueryPageSizeDefault,
|
|
@@ -233,33 +252,30 @@ __export(index_exports, {
|
|
|
233
252
|
searchAddressesQueryParams: () => searchAddressesQueryParams,
|
|
234
253
|
searchAddressesResponse: () => searchAddressesResponse,
|
|
235
254
|
searchAddressesResponseItem: () => searchAddressesResponseItem,
|
|
255
|
+
setProductAssignment: () => setProductAssignment,
|
|
256
|
+
setProductAssignmentBody: () => setProductAssignmentBody,
|
|
257
|
+
setProductAssignmentParams: () => setProductAssignmentParams,
|
|
258
|
+
setProductShippingConfig: () => setProductShippingConfig,
|
|
259
|
+
setProductShippingConfigBody: () => setProductShippingConfigBody,
|
|
260
|
+
setProductShippingConfigParams: () => setProductShippingConfigParams,
|
|
236
261
|
toggleWarehouseStatus: () => toggleWarehouseStatus,
|
|
237
262
|
toggleWarehouseStatusParams: () => toggleWarehouseStatusParams,
|
|
238
263
|
updateProduct: () => updateProduct,
|
|
239
264
|
updateProductBody: () => updateProductBody,
|
|
265
|
+
updateProductBodyVariantsItemSourcesItemQuantityPerUnitDefault: () => updateProductBodyVariantsItemSourcesItemQuantityPerUnitDefault,
|
|
240
266
|
updateProductParams: () => updateProductParams,
|
|
241
267
|
updateProductResponse: () => updateProductResponse,
|
|
242
|
-
updateVariant: () => updateVariant,
|
|
243
|
-
updateVariantBody: () => updateVariantBody,
|
|
244
|
-
updateVariantParams: () => updateVariantParams,
|
|
245
|
-
updateVariantResponse: () => updateVariantResponse,
|
|
246
268
|
updateWarehouse: () => updateWarehouse,
|
|
247
269
|
updateWarehouseBody: () => updateWarehouseBody,
|
|
248
270
|
updateWarehouseParams: () => updateWarehouseParams,
|
|
249
|
-
upsertVariantPricing: () => upsertVariantPricing,
|
|
250
|
-
upsertVariantPricingBody: () => upsertVariantPricingBody,
|
|
251
|
-
upsertVariantPricingParams: () => upsertVariantPricingParams,
|
|
252
|
-
upsertVariantPricingResponse: () => upsertVariantPricingResponse,
|
|
253
271
|
useConsumeBatch: () => useConsumeBatch,
|
|
272
|
+
useCreateBankAccount: () => useCreateBankAccount,
|
|
254
273
|
useCreateBatch: () => useCreateBatch,
|
|
255
274
|
useCreateProduct: () => useCreateProduct,
|
|
256
275
|
useCreateStockItems: () => useCreateStockItems,
|
|
257
|
-
useCreateVariant: () => useCreateVariant,
|
|
258
276
|
useCreateWarehouse: () => useCreateWarehouse,
|
|
259
277
|
useDeleteApiIdentityAdminRolesId: () => useDeleteApiIdentityAdminRolesId,
|
|
260
278
|
useDeleteProduct: () => useDeleteProduct,
|
|
261
|
-
useDeleteVariant: () => useDeleteVariant,
|
|
262
|
-
useDeleteVariantPricing: () => useDeleteVariantPricing,
|
|
263
279
|
useDeleteWarehouse: () => useDeleteWarehouse,
|
|
264
280
|
useGetApiIdentityAdminPermissions: () => useGetApiIdentityAdminPermissions,
|
|
265
281
|
useGetApiIdentityAdminRoles: () => useGetApiIdentityAdminRoles,
|
|
@@ -270,16 +286,20 @@ __export(index_exports, {
|
|
|
270
286
|
useGetApiIdentityAntiforgery: () => useGetApiIdentityAntiforgery,
|
|
271
287
|
useGetApiIdentityManage2fa: () => useGetApiIdentityManage2fa,
|
|
272
288
|
useGetApiIdentityManageInfo: () => useGetApiIdentityManageInfo,
|
|
289
|
+
useGetBankByCode: () => useGetBankByCode,
|
|
290
|
+
useGetCourierByCode: () => useGetCourierByCode,
|
|
273
291
|
useGetHealth: () => useGetHealth,
|
|
274
292
|
useGetProduct: () => useGetProduct,
|
|
275
|
-
|
|
276
|
-
|
|
293
|
+
useGetProductAssignment: () => useGetProductAssignment,
|
|
294
|
+
useGetProductPaymentConfig: () => useGetProductPaymentConfig,
|
|
295
|
+
useGetProductShippingConfig: () => useGetProductShippingConfig,
|
|
277
296
|
useGetWarehouseById: () => useGetWarehouseById,
|
|
278
297
|
useGetWarehouseOptions: () => useGetWarehouseOptions,
|
|
298
|
+
useListBanks: () => useListBanks,
|
|
299
|
+
useListCouriers: () => useListCouriers,
|
|
279
300
|
useListProducts: () => useListProducts,
|
|
280
301
|
useListStockItems: () => useListStockItems,
|
|
281
302
|
useListStockMovements: () => useListStockMovements,
|
|
282
|
-
useListVariants: () => useListVariants,
|
|
283
303
|
useListWarehouses: () => useListWarehouses,
|
|
284
304
|
usePostApiIdentityAdminRoles: () => usePostApiIdentityAdminRoles,
|
|
285
305
|
usePostApiIdentityAdminUsersIdLogout: () => usePostApiIdentityAdminUsersIdLogout,
|
|
@@ -294,17 +314,31 @@ __export(index_exports, {
|
|
|
294
314
|
usePutApiIdentityAdminUsersIdActive: () => usePutApiIdentityAdminUsersIdActive,
|
|
295
315
|
usePutApiIdentityAdminUsersIdRoles: () => usePutApiIdentityAdminUsersIdRoles,
|
|
296
316
|
useSearchAddresses: () => useSearchAddresses,
|
|
317
|
+
useSetProductAssignment: () => useSetProductAssignment,
|
|
318
|
+
useSetProductShippingConfig: () => useSetProductShippingConfig,
|
|
297
319
|
useToggleWarehouseStatus: () => useToggleWarehouseStatus,
|
|
298
320
|
useUpdateProduct: () => useUpdateProduct,
|
|
299
|
-
|
|
300
|
-
useUpdateWarehouse: () => useUpdateWarehouse,
|
|
301
|
-
useUpsertVariantPricing: () => useUpsertVariantPricing
|
|
321
|
+
useUpdateWarehouse: () => useUpdateWarehouse
|
|
302
322
|
});
|
|
303
323
|
module.exports = __toCommonJS(index_exports);
|
|
304
324
|
|
|
305
325
|
// src/gen/v1.ts
|
|
306
326
|
var import_react_query = require("@tanstack/react-query");
|
|
307
327
|
var import_axios = __toESM(require("axios"));
|
|
328
|
+
var AdminFeeBorneBy = {
|
|
329
|
+
Seller: "Seller",
|
|
330
|
+
Buyer: "Buyer"
|
|
331
|
+
};
|
|
332
|
+
var AssignmentDistributionKind = {
|
|
333
|
+
Equal: "Equal",
|
|
334
|
+
Percentage: "Percentage",
|
|
335
|
+
Fixed: "Fixed"
|
|
336
|
+
};
|
|
337
|
+
var CodFeeType = {
|
|
338
|
+
Product: "Product",
|
|
339
|
+
Shipping: "Shipping",
|
|
340
|
+
ProductAndShipping: "ProductAndShipping"
|
|
341
|
+
};
|
|
308
342
|
var ConsumeBatchSourceType = {
|
|
309
343
|
LOAN_OUT: "LOAN_OUT",
|
|
310
344
|
TRANSFER_OUT: "TRANSFER_OUT",
|
|
@@ -313,6 +347,11 @@ var ConsumeBatchSourceType = {
|
|
|
313
347
|
DAMAGED: "DAMAGED",
|
|
314
348
|
INTERNAL_USE: "INTERNAL_USE"
|
|
315
349
|
};
|
|
350
|
+
var PaymentMethodType = {
|
|
351
|
+
BankTransfer: "BankTransfer",
|
|
352
|
+
Cod: "Cod",
|
|
353
|
+
EPayment: "EPayment"
|
|
354
|
+
};
|
|
316
355
|
var ProductClassification = {
|
|
317
356
|
Physical: "Physical",
|
|
318
357
|
Digital: "Digital"
|
|
@@ -322,11 +361,28 @@ var ProductStatus = {
|
|
|
322
361
|
Live: "Live",
|
|
323
362
|
Archived: "Archived"
|
|
324
363
|
};
|
|
364
|
+
var ShippingCoverageAction = {
|
|
365
|
+
Block: "Block",
|
|
366
|
+
Allow: "Allow"
|
|
367
|
+
};
|
|
368
|
+
var ShippingDiscountType = {
|
|
369
|
+
Fixed: "Fixed",
|
|
370
|
+
Percent: "Percent"
|
|
371
|
+
};
|
|
372
|
+
var ShippingMode = {
|
|
373
|
+
Auto: "Auto",
|
|
374
|
+
Flat: "Flat",
|
|
375
|
+
Free: "Free"
|
|
376
|
+
};
|
|
325
377
|
var SourceTypeEnum = {
|
|
326
378
|
PURCHASE: "PURCHASE",
|
|
327
379
|
CUSTOMER_RETURN: "CUSTOMER_RETURN",
|
|
328
380
|
LOAN_RETURN: "LOAN_RETURN"
|
|
329
381
|
};
|
|
382
|
+
var UniqueCodeDirection = {
|
|
383
|
+
Increase: "Increase",
|
|
384
|
+
Decrease: "Decrease"
|
|
385
|
+
};
|
|
330
386
|
var getHealth = (options) => {
|
|
331
387
|
return import_axios.default.get(`/health`, options);
|
|
332
388
|
};
|
|
@@ -574,149 +630,190 @@ var useDeleteProduct = (options, queryClient) => {
|
|
|
574
630
|
const mutationOptions = getDeleteProductMutationOptions(options);
|
|
575
631
|
return (0, import_react_query.useMutation)(mutationOptions, queryClient);
|
|
576
632
|
};
|
|
577
|
-
var
|
|
578
|
-
return import_axios.default.
|
|
633
|
+
var listCouriers = (options) => {
|
|
634
|
+
return import_axios.default.get(`/api/shipping/couriers`, options);
|
|
579
635
|
};
|
|
580
|
-
var
|
|
581
|
-
|
|
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 };
|
|
636
|
+
var getListCouriersQueryKey = () => {
|
|
637
|
+
return [`/api/shipping/couriers`];
|
|
588
638
|
};
|
|
589
|
-
var
|
|
590
|
-
const
|
|
591
|
-
|
|
639
|
+
var getListCouriersQueryOptions = (options) => {
|
|
640
|
+
const { query: queryOptions, axios: axiosOptions } = options ?? {};
|
|
641
|
+
const queryKey = queryOptions?.queryKey ?? getListCouriersQueryKey();
|
|
642
|
+
const queryFn = ({ signal }) => listCouriers({ signal, ...axiosOptions });
|
|
643
|
+
return { queryKey, queryFn, ...queryOptions };
|
|
592
644
|
};
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
645
|
+
function useListCouriers(options, queryClient) {
|
|
646
|
+
const queryOptions = getListCouriersQueryOptions(options);
|
|
647
|
+
const query = (0, import_react_query.useQuery)(queryOptions, queryClient);
|
|
648
|
+
query.queryKey = queryOptions.queryKey;
|
|
649
|
+
return query;
|
|
650
|
+
}
|
|
651
|
+
var getCourierByCode = (code, options) => {
|
|
652
|
+
return import_axios.default.get(`/api/shipping/couriers/${code}`, options);
|
|
598
653
|
};
|
|
599
|
-
var
|
|
600
|
-
return [`/api/
|
|
654
|
+
var getGetCourierByCodeQueryKey = (code) => {
|
|
655
|
+
return [`/api/shipping/couriers/${code}`];
|
|
601
656
|
};
|
|
602
|
-
var
|
|
657
|
+
var getGetCourierByCodeQueryOptions = (code, options) => {
|
|
603
658
|
const { query: queryOptions, axios: axiosOptions } = options ?? {};
|
|
604
|
-
const queryKey = queryOptions?.queryKey ??
|
|
605
|
-
const queryFn = ({ signal }) =>
|
|
606
|
-
return { queryKey, queryFn, enabled: !!
|
|
659
|
+
const queryKey = queryOptions?.queryKey ?? getGetCourierByCodeQueryKey(code);
|
|
660
|
+
const queryFn = ({ signal }) => getCourierByCode(code, { signal, ...axiosOptions });
|
|
661
|
+
return { queryKey, queryFn, enabled: !!code, ...queryOptions };
|
|
607
662
|
};
|
|
608
|
-
function
|
|
609
|
-
const queryOptions =
|
|
663
|
+
function useGetCourierByCode(code, options, queryClient) {
|
|
664
|
+
const queryOptions = getGetCourierByCodeQueryOptions(code, options);
|
|
610
665
|
const query = (0, import_react_query.useQuery)(queryOptions, queryClient);
|
|
611
666
|
query.queryKey = queryOptions.queryKey;
|
|
612
667
|
return query;
|
|
613
668
|
}
|
|
614
|
-
var
|
|
615
|
-
return import_axios.default.get(`/api/
|
|
669
|
+
var getProductShippingConfig = (productId, options) => {
|
|
670
|
+
return import_axios.default.get(`/api/shipping/products/${productId}/shipping-config`, options);
|
|
616
671
|
};
|
|
617
|
-
var
|
|
618
|
-
return [`/api/
|
|
672
|
+
var getGetProductShippingConfigQueryKey = (productId) => {
|
|
673
|
+
return [`/api/shipping/products/${productId}/shipping-config`];
|
|
619
674
|
};
|
|
620
|
-
var
|
|
675
|
+
var getGetProductShippingConfigQueryOptions = (productId, options) => {
|
|
621
676
|
const { query: queryOptions, axios: axiosOptions } = options ?? {};
|
|
622
|
-
const queryKey = queryOptions?.queryKey ??
|
|
623
|
-
const queryFn = ({
|
|
624
|
-
|
|
677
|
+
const queryKey = queryOptions?.queryKey ?? getGetProductShippingConfigQueryKey(productId);
|
|
678
|
+
const queryFn = ({
|
|
679
|
+
signal
|
|
680
|
+
}) => getProductShippingConfig(productId, { signal, ...axiosOptions });
|
|
681
|
+
return { queryKey, queryFn, enabled: !!productId, ...queryOptions };
|
|
625
682
|
};
|
|
626
|
-
function
|
|
627
|
-
const queryOptions =
|
|
683
|
+
function useGetProductShippingConfig(productId, options, queryClient) {
|
|
684
|
+
const queryOptions = getGetProductShippingConfigQueryOptions(productId, options);
|
|
628
685
|
const query = (0, import_react_query.useQuery)(queryOptions, queryClient);
|
|
629
686
|
query.queryKey = queryOptions.queryKey;
|
|
630
687
|
return query;
|
|
631
688
|
}
|
|
632
|
-
var
|
|
689
|
+
var setProductShippingConfig = (productId, productShippingInput, options) => {
|
|
633
690
|
return import_axios.default.put(
|
|
634
|
-
`/api/
|
|
635
|
-
|
|
691
|
+
`/api/shipping/products/${productId}/shipping-config`,
|
|
692
|
+
productShippingInput,
|
|
636
693
|
options
|
|
637
694
|
);
|
|
638
695
|
};
|
|
639
|
-
var
|
|
640
|
-
const mutationKey = ["
|
|
696
|
+
var getSetProductShippingConfigMutationOptions = (options) => {
|
|
697
|
+
const mutationKey = ["setProductShippingConfig"];
|
|
641
698
|
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
699
|
const mutationFn = (props) => {
|
|
643
|
-
const { productId,
|
|
644
|
-
return
|
|
700
|
+
const { productId, data } = props ?? {};
|
|
701
|
+
return setProductShippingConfig(productId, data, axiosOptions);
|
|
645
702
|
};
|
|
646
703
|
return { mutationFn, ...mutationOptions };
|
|
647
704
|
};
|
|
648
|
-
var
|
|
649
|
-
const mutationOptions =
|
|
705
|
+
var useSetProductShippingConfig = (options, queryClient) => {
|
|
706
|
+
const mutationOptions = getSetProductShippingConfigMutationOptions(options);
|
|
650
707
|
return (0, import_react_query.useMutation)(mutationOptions, queryClient);
|
|
651
708
|
};
|
|
652
|
-
var
|
|
653
|
-
return import_axios.default.
|
|
709
|
+
var listBanks = (options) => {
|
|
710
|
+
return import_axios.default.get(`/api/payments/banks`, options);
|
|
654
711
|
};
|
|
655
|
-
var
|
|
656
|
-
|
|
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 };
|
|
712
|
+
var getListBanksQueryKey = () => {
|
|
713
|
+
return [`/api/payments/banks`];
|
|
663
714
|
};
|
|
664
|
-
var
|
|
665
|
-
const
|
|
666
|
-
|
|
715
|
+
var getListBanksQueryOptions = (options) => {
|
|
716
|
+
const { query: queryOptions, axios: axiosOptions } = options ?? {};
|
|
717
|
+
const queryKey = queryOptions?.queryKey ?? getListBanksQueryKey();
|
|
718
|
+
const queryFn = ({ signal }) => listBanks({ signal, ...axiosOptions });
|
|
719
|
+
return { queryKey, queryFn, ...queryOptions };
|
|
667
720
|
};
|
|
668
|
-
|
|
669
|
-
|
|
721
|
+
function useListBanks(options, queryClient) {
|
|
722
|
+
const queryOptions = getListBanksQueryOptions(options);
|
|
723
|
+
const query = (0, import_react_query.useQuery)(queryOptions, queryClient);
|
|
724
|
+
query.queryKey = queryOptions.queryKey;
|
|
725
|
+
return query;
|
|
726
|
+
}
|
|
727
|
+
var getBankByCode = (code, options) => {
|
|
728
|
+
return import_axios.default.get(`/api/payments/banks/${code}`, options);
|
|
670
729
|
};
|
|
671
|
-
var
|
|
672
|
-
return [`/api/
|
|
730
|
+
var getGetBankByCodeQueryKey = (code) => {
|
|
731
|
+
return [`/api/payments/banks/${code}`];
|
|
673
732
|
};
|
|
674
|
-
var
|
|
733
|
+
var getGetBankByCodeQueryOptions = (code, options) => {
|
|
675
734
|
const { query: queryOptions, axios: axiosOptions } = options ?? {};
|
|
676
|
-
const queryKey = queryOptions?.queryKey ??
|
|
677
|
-
const queryFn = ({ signal }) =>
|
|
678
|
-
return { queryKey, queryFn, enabled: !!
|
|
735
|
+
const queryKey = queryOptions?.queryKey ?? getGetBankByCodeQueryKey(code);
|
|
736
|
+
const queryFn = ({ signal }) => getBankByCode(code, { signal, ...axiosOptions });
|
|
737
|
+
return { queryKey, queryFn, enabled: !!code, ...queryOptions };
|
|
679
738
|
};
|
|
680
|
-
function
|
|
681
|
-
const queryOptions =
|
|
739
|
+
function useGetBankByCode(code, options, queryClient) {
|
|
740
|
+
const queryOptions = getGetBankByCodeQueryOptions(code, options);
|
|
682
741
|
const query = (0, import_react_query.useQuery)(queryOptions, queryClient);
|
|
683
742
|
query.queryKey = queryOptions.queryKey;
|
|
684
743
|
return query;
|
|
685
744
|
}
|
|
686
|
-
var
|
|
687
|
-
return import_axios.default.
|
|
688
|
-
`/api/catalog/variants/${variantId}/pricing`,
|
|
689
|
-
upsertVariantPricingRequest,
|
|
690
|
-
options
|
|
691
|
-
);
|
|
745
|
+
var createBankAccount = (createBankAccountCommand, options) => {
|
|
746
|
+
return import_axios.default.post(`/api/payments/bank-accounts`, createBankAccountCommand, options);
|
|
692
747
|
};
|
|
693
|
-
var
|
|
694
|
-
const mutationKey = ["
|
|
748
|
+
var getCreateBankAccountMutationOptions = (options) => {
|
|
749
|
+
const mutationKey = ["createBankAccount"];
|
|
695
750
|
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
751
|
const mutationFn = (props) => {
|
|
697
|
-
const {
|
|
698
|
-
return
|
|
752
|
+
const { data } = props ?? {};
|
|
753
|
+
return createBankAccount(data, axiosOptions);
|
|
699
754
|
};
|
|
700
755
|
return { mutationFn, ...mutationOptions };
|
|
701
756
|
};
|
|
702
|
-
var
|
|
703
|
-
const mutationOptions =
|
|
757
|
+
var useCreateBankAccount = (options, queryClient) => {
|
|
758
|
+
const mutationOptions = getCreateBankAccountMutationOptions(options);
|
|
704
759
|
return (0, import_react_query.useMutation)(mutationOptions, queryClient);
|
|
705
760
|
};
|
|
706
|
-
var
|
|
707
|
-
return import_axios.default.
|
|
761
|
+
var getProductPaymentConfig = (productId, options) => {
|
|
762
|
+
return import_axios.default.get(`/api/payments/products/${productId}/payment-config`, options);
|
|
763
|
+
};
|
|
764
|
+
var getGetProductPaymentConfigQueryKey = (productId) => {
|
|
765
|
+
return [`/api/payments/products/${productId}/payment-config`];
|
|
766
|
+
};
|
|
767
|
+
var getGetProductPaymentConfigQueryOptions = (productId, options) => {
|
|
768
|
+
const { query: queryOptions, axios: axiosOptions } = options ?? {};
|
|
769
|
+
const queryKey = queryOptions?.queryKey ?? getGetProductPaymentConfigQueryKey(productId);
|
|
770
|
+
const queryFn = ({
|
|
771
|
+
signal
|
|
772
|
+
}) => getProductPaymentConfig(productId, { signal, ...axiosOptions });
|
|
773
|
+
return { queryKey, queryFn, enabled: !!productId, ...queryOptions };
|
|
774
|
+
};
|
|
775
|
+
function useGetProductPaymentConfig(productId, options, queryClient) {
|
|
776
|
+
const queryOptions = getGetProductPaymentConfigQueryOptions(productId, options);
|
|
777
|
+
const query = (0, import_react_query.useQuery)(queryOptions, queryClient);
|
|
778
|
+
query.queryKey = queryOptions.queryKey;
|
|
779
|
+
return query;
|
|
780
|
+
}
|
|
781
|
+
var getProductAssignment = (productId, options) => {
|
|
782
|
+
return import_axios.default.get(`/api/assignment/products/${productId}/assignment`, options);
|
|
783
|
+
};
|
|
784
|
+
var getGetProductAssignmentQueryKey = (productId) => {
|
|
785
|
+
return [`/api/assignment/products/${productId}/assignment`];
|
|
786
|
+
};
|
|
787
|
+
var getGetProductAssignmentQueryOptions = (productId, options) => {
|
|
788
|
+
const { query: queryOptions, axios: axiosOptions } = options ?? {};
|
|
789
|
+
const queryKey = queryOptions?.queryKey ?? getGetProductAssignmentQueryKey(productId);
|
|
790
|
+
const queryFn = ({ signal }) => getProductAssignment(productId, { signal, ...axiosOptions });
|
|
791
|
+
return { queryKey, queryFn, enabled: !!productId, ...queryOptions };
|
|
792
|
+
};
|
|
793
|
+
function useGetProductAssignment(productId, options, queryClient) {
|
|
794
|
+
const queryOptions = getGetProductAssignmentQueryOptions(productId, options);
|
|
795
|
+
const query = (0, import_react_query.useQuery)(queryOptions, queryClient);
|
|
796
|
+
query.queryKey = queryOptions.queryKey;
|
|
797
|
+
return query;
|
|
798
|
+
}
|
|
799
|
+
var setProductAssignment = (productId, productAssignmentInput, options) => {
|
|
800
|
+
return import_axios.default.put(
|
|
801
|
+
`/api/assignment/products/${productId}/assignment`,
|
|
802
|
+
productAssignmentInput,
|
|
803
|
+
options
|
|
804
|
+
);
|
|
708
805
|
};
|
|
709
|
-
var
|
|
710
|
-
const mutationKey = ["
|
|
806
|
+
var getSetProductAssignmentMutationOptions = (options) => {
|
|
807
|
+
const mutationKey = ["setProductAssignment"];
|
|
711
808
|
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
809
|
const mutationFn = (props) => {
|
|
713
|
-
const {
|
|
714
|
-
return
|
|
810
|
+
const { productId, data } = props ?? {};
|
|
811
|
+
return setProductAssignment(productId, data, axiosOptions);
|
|
715
812
|
};
|
|
716
813
|
return { mutationFn, ...mutationOptions };
|
|
717
814
|
};
|
|
718
|
-
var
|
|
719
|
-
const mutationOptions =
|
|
815
|
+
var useSetProductAssignment = (options, queryClient) => {
|
|
816
|
+
const mutationOptions = getSetProductAssignmentMutationOptions(options);
|
|
720
817
|
return (0, import_react_query.useMutation)(mutationOptions, queryClient);
|
|
721
818
|
};
|
|
722
819
|
var createStockItems = (createStockItemCommand, options) => {
|
|
@@ -1305,12 +1402,64 @@ var searchAddressesResponseItem = zod.strictObject({
|
|
|
1305
1402
|
zipCode: zod.string().optional()
|
|
1306
1403
|
});
|
|
1307
1404
|
var searchAddressesResponse = zod.array(searchAddressesResponseItem);
|
|
1405
|
+
var createProductBodyVariantsItemSourcesItemQuantityPerUnitDefault = 1;
|
|
1308
1406
|
var createProductBody = zod.strictObject({
|
|
1309
1407
|
categoryId: zod.uuid(),
|
|
1310
1408
|
name: zod.string(),
|
|
1311
1409
|
slug: zod.string(),
|
|
1312
1410
|
status: zod.enum(["Tes", "Live", "Archived"]).optional(),
|
|
1313
|
-
classification: zod.enum(["Physical", "Digital"])
|
|
1411
|
+
classification: zod.enum(["Physical", "Digital"]),
|
|
1412
|
+
variants: zod.array(
|
|
1413
|
+
zod.strictObject({
|
|
1414
|
+
code: zod.string(),
|
|
1415
|
+
attributes: zod.array(
|
|
1416
|
+
zod.strictObject({
|
|
1417
|
+
name: zod.string(),
|
|
1418
|
+
value: zod.string()
|
|
1419
|
+
})
|
|
1420
|
+
).optional(),
|
|
1421
|
+
sources: zod.array(
|
|
1422
|
+
zod.strictObject({
|
|
1423
|
+
warehouseId: zod.uuid(),
|
|
1424
|
+
masterItemId: zod.uuid(),
|
|
1425
|
+
quantityPerUnit: zod.number().default(createProductBodyVariantsItemSourcesItemQuantityPerUnitDefault)
|
|
1426
|
+
})
|
|
1427
|
+
).optional(),
|
|
1428
|
+
weight: zod.union([
|
|
1429
|
+
zod.null(),
|
|
1430
|
+
zod.strictObject({
|
|
1431
|
+
value: zod.number(),
|
|
1432
|
+
unit: zod.string()
|
|
1433
|
+
})
|
|
1434
|
+
]).optional(),
|
|
1435
|
+
pricing: zod.strictObject({
|
|
1436
|
+
baseAmount: zod.number(),
|
|
1437
|
+
baseCurrency: zod.string(),
|
|
1438
|
+
sale: zod.union([
|
|
1439
|
+
zod.null(),
|
|
1440
|
+
zod.strictObject({
|
|
1441
|
+
amount: zod.number(),
|
|
1442
|
+
currency: zod.string(),
|
|
1443
|
+
startAt: zod.iso.datetime({}),
|
|
1444
|
+
endAt: zod.iso.datetime({})
|
|
1445
|
+
})
|
|
1446
|
+
]).optional(),
|
|
1447
|
+
wholesale: zod.array(
|
|
1448
|
+
zod.strictObject({
|
|
1449
|
+
minQty: zod.number(),
|
|
1450
|
+
amount: zod.number(),
|
|
1451
|
+
currency: zod.string()
|
|
1452
|
+
})
|
|
1453
|
+
).optional()
|
|
1454
|
+
})
|
|
1455
|
+
})
|
|
1456
|
+
).optional(),
|
|
1457
|
+
images: zod.array(
|
|
1458
|
+
zod.strictObject({
|
|
1459
|
+
fileId: zod.uuid(),
|
|
1460
|
+
sortOrder: zod.number()
|
|
1461
|
+
})
|
|
1462
|
+
).optional()
|
|
1314
1463
|
});
|
|
1315
1464
|
var listProductsQueryPageDefault = 1;
|
|
1316
1465
|
var listProductsQueryPageSizeDefault = 10;
|
|
@@ -1327,7 +1476,64 @@ var listProductsResponse = zod.strictObject({
|
|
|
1327
1476
|
slug: zod.string(),
|
|
1328
1477
|
status: zod.enum(["Tes", "Live", "Archived"]),
|
|
1329
1478
|
classification: zod.enum(["Physical", "Digital"]),
|
|
1330
|
-
variantCount: zod.number()
|
|
1479
|
+
variantCount: zod.number(),
|
|
1480
|
+
variants: zod.array(
|
|
1481
|
+
zod.strictObject({
|
|
1482
|
+
id: zod.uuid(),
|
|
1483
|
+
code: zod.string(),
|
|
1484
|
+
weight: zod.union([
|
|
1485
|
+
zod.null(),
|
|
1486
|
+
zod.strictObject({
|
|
1487
|
+
value: zod.number(),
|
|
1488
|
+
unit: zod.string()
|
|
1489
|
+
})
|
|
1490
|
+
]),
|
|
1491
|
+
attributes: zod.array(
|
|
1492
|
+
zod.strictObject({
|
|
1493
|
+
id: zod.uuid(),
|
|
1494
|
+
name: zod.string(),
|
|
1495
|
+
value: zod.string(),
|
|
1496
|
+
position: zod.number()
|
|
1497
|
+
})
|
|
1498
|
+
),
|
|
1499
|
+
pricing: zod.strictObject({
|
|
1500
|
+
id: zod.uuid(),
|
|
1501
|
+
baseAmount: zod.number(),
|
|
1502
|
+
baseCurrency: zod.string(),
|
|
1503
|
+
sale: zod.union([
|
|
1504
|
+
zod.null(),
|
|
1505
|
+
zod.strictObject({
|
|
1506
|
+
amount: zod.number(),
|
|
1507
|
+
currency: zod.string(),
|
|
1508
|
+
startAt: zod.iso.datetime({}),
|
|
1509
|
+
endAt: zod.iso.datetime({})
|
|
1510
|
+
})
|
|
1511
|
+
]),
|
|
1512
|
+
wholesale: zod.array(
|
|
1513
|
+
zod.strictObject({
|
|
1514
|
+
minQty: zod.number(),
|
|
1515
|
+
amount: zod.number(),
|
|
1516
|
+
currency: zod.string(),
|
|
1517
|
+
position: zod.number()
|
|
1518
|
+
})
|
|
1519
|
+
)
|
|
1520
|
+
}),
|
|
1521
|
+
sources: zod.array(
|
|
1522
|
+
zod.strictObject({
|
|
1523
|
+
warehouseId: zod.uuid(),
|
|
1524
|
+
masterItemId: zod.uuid(),
|
|
1525
|
+
quantityPerUnit: zod.number()
|
|
1526
|
+
})
|
|
1527
|
+
),
|
|
1528
|
+
pricingId: zod.uuid().optional()
|
|
1529
|
+
})
|
|
1530
|
+
),
|
|
1531
|
+
images: zod.array(
|
|
1532
|
+
zod.strictObject({
|
|
1533
|
+
fileId: zod.uuid(),
|
|
1534
|
+
sortOrder: zod.number()
|
|
1535
|
+
})
|
|
1536
|
+
)
|
|
1331
1537
|
})
|
|
1332
1538
|
),
|
|
1333
1539
|
page: zod.number(),
|
|
@@ -1347,17 +1553,127 @@ var getProductResponse = zod.strictObject({
|
|
|
1347
1553
|
slug: zod.string(),
|
|
1348
1554
|
status: zod.enum(["Tes", "Live", "Archived"]),
|
|
1349
1555
|
classification: zod.enum(["Physical", "Digital"]),
|
|
1350
|
-
variantCount: zod.number()
|
|
1556
|
+
variantCount: zod.number(),
|
|
1557
|
+
variants: zod.array(
|
|
1558
|
+
zod.strictObject({
|
|
1559
|
+
id: zod.uuid(),
|
|
1560
|
+
code: zod.string(),
|
|
1561
|
+
weight: zod.union([
|
|
1562
|
+
zod.null(),
|
|
1563
|
+
zod.strictObject({
|
|
1564
|
+
value: zod.number(),
|
|
1565
|
+
unit: zod.string()
|
|
1566
|
+
})
|
|
1567
|
+
]),
|
|
1568
|
+
attributes: zod.array(
|
|
1569
|
+
zod.strictObject({
|
|
1570
|
+
id: zod.uuid(),
|
|
1571
|
+
name: zod.string(),
|
|
1572
|
+
value: zod.string(),
|
|
1573
|
+
position: zod.number()
|
|
1574
|
+
})
|
|
1575
|
+
),
|
|
1576
|
+
pricing: zod.strictObject({
|
|
1577
|
+
id: zod.uuid(),
|
|
1578
|
+
baseAmount: zod.number(),
|
|
1579
|
+
baseCurrency: zod.string(),
|
|
1580
|
+
sale: zod.union([
|
|
1581
|
+
zod.null(),
|
|
1582
|
+
zod.strictObject({
|
|
1583
|
+
amount: zod.number(),
|
|
1584
|
+
currency: zod.string(),
|
|
1585
|
+
startAt: zod.iso.datetime({}),
|
|
1586
|
+
endAt: zod.iso.datetime({})
|
|
1587
|
+
})
|
|
1588
|
+
]),
|
|
1589
|
+
wholesale: zod.array(
|
|
1590
|
+
zod.strictObject({
|
|
1591
|
+
minQty: zod.number(),
|
|
1592
|
+
amount: zod.number(),
|
|
1593
|
+
currency: zod.string(),
|
|
1594
|
+
position: zod.number()
|
|
1595
|
+
})
|
|
1596
|
+
)
|
|
1597
|
+
}),
|
|
1598
|
+
sources: zod.array(
|
|
1599
|
+
zod.strictObject({
|
|
1600
|
+
warehouseId: zod.uuid(),
|
|
1601
|
+
masterItemId: zod.uuid(),
|
|
1602
|
+
quantityPerUnit: zod.number()
|
|
1603
|
+
})
|
|
1604
|
+
),
|
|
1605
|
+
pricingId: zod.uuid().optional()
|
|
1606
|
+
})
|
|
1607
|
+
),
|
|
1608
|
+
images: zod.array(
|
|
1609
|
+
zod.strictObject({
|
|
1610
|
+
fileId: zod.uuid(),
|
|
1611
|
+
sortOrder: zod.number()
|
|
1612
|
+
})
|
|
1613
|
+
)
|
|
1351
1614
|
});
|
|
1352
1615
|
var updateProductParams = zod.strictObject({
|
|
1353
1616
|
id: zod.uuid()
|
|
1354
1617
|
});
|
|
1618
|
+
var updateProductBodyVariantsItemSourcesItemQuantityPerUnitDefault = 1;
|
|
1355
1619
|
var updateProductBody = zod.strictObject({
|
|
1356
1620
|
categoryId: zod.uuid(),
|
|
1357
1621
|
name: zod.string(),
|
|
1358
1622
|
slug: zod.string(),
|
|
1359
1623
|
status: zod.enum(["Tes", "Live", "Archived"]),
|
|
1360
|
-
classification: zod.enum(["Physical", "Digital"])
|
|
1624
|
+
classification: zod.enum(["Physical", "Digital"]),
|
|
1625
|
+
images: zod.array(
|
|
1626
|
+
zod.strictObject({
|
|
1627
|
+
fileId: zod.uuid(),
|
|
1628
|
+
sortOrder: zod.number()
|
|
1629
|
+
})
|
|
1630
|
+
).nullish(),
|
|
1631
|
+
variants: zod.array(
|
|
1632
|
+
zod.strictObject({
|
|
1633
|
+
id: zod.uuid().nullish(),
|
|
1634
|
+
code: zod.string(),
|
|
1635
|
+
attributes: zod.array(
|
|
1636
|
+
zod.strictObject({
|
|
1637
|
+
name: zod.string(),
|
|
1638
|
+
value: zod.string()
|
|
1639
|
+
})
|
|
1640
|
+
).optional(),
|
|
1641
|
+
sources: zod.array(
|
|
1642
|
+
zod.strictObject({
|
|
1643
|
+
warehouseId: zod.uuid(),
|
|
1644
|
+
masterItemId: zod.uuid(),
|
|
1645
|
+
quantityPerUnit: zod.number().default(updateProductBodyVariantsItemSourcesItemQuantityPerUnitDefault)
|
|
1646
|
+
})
|
|
1647
|
+
).optional(),
|
|
1648
|
+
weight: zod.union([
|
|
1649
|
+
zod.null(),
|
|
1650
|
+
zod.strictObject({
|
|
1651
|
+
value: zod.number(),
|
|
1652
|
+
unit: zod.string()
|
|
1653
|
+
})
|
|
1654
|
+
]).optional(),
|
|
1655
|
+
pricing: zod.strictObject({
|
|
1656
|
+
baseAmount: zod.number(),
|
|
1657
|
+
baseCurrency: zod.string(),
|
|
1658
|
+
sale: zod.union([
|
|
1659
|
+
zod.null(),
|
|
1660
|
+
zod.strictObject({
|
|
1661
|
+
amount: zod.number(),
|
|
1662
|
+
currency: zod.string(),
|
|
1663
|
+
startAt: zod.iso.datetime({}),
|
|
1664
|
+
endAt: zod.iso.datetime({})
|
|
1665
|
+
})
|
|
1666
|
+
]).optional(),
|
|
1667
|
+
wholesale: zod.array(
|
|
1668
|
+
zod.strictObject({
|
|
1669
|
+
minQty: zod.number(),
|
|
1670
|
+
amount: zod.number(),
|
|
1671
|
+
currency: zod.string()
|
|
1672
|
+
})
|
|
1673
|
+
).optional()
|
|
1674
|
+
})
|
|
1675
|
+
})
|
|
1676
|
+
).optional()
|
|
1361
1677
|
});
|
|
1362
1678
|
var updateProductResponse = zod.strictObject({
|
|
1363
1679
|
id: zod.uuid(),
|
|
@@ -1366,192 +1682,260 @@ var updateProductResponse = zod.strictObject({
|
|
|
1366
1682
|
slug: zod.string(),
|
|
1367
1683
|
status: zod.enum(["Tes", "Live", "Archived"]),
|
|
1368
1684
|
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(
|
|
1685
|
+
variantCount: zod.number(),
|
|
1686
|
+
variants: zod.array(
|
|
1401
1687
|
zod.strictObject({
|
|
1402
1688
|
id: zod.uuid(),
|
|
1403
|
-
productId: zod.uuid(),
|
|
1404
1689
|
code: zod.string(),
|
|
1690
|
+
weight: zod.union([
|
|
1691
|
+
zod.null(),
|
|
1692
|
+
zod.strictObject({
|
|
1693
|
+
value: zod.number(),
|
|
1694
|
+
unit: zod.string()
|
|
1695
|
+
})
|
|
1696
|
+
]),
|
|
1405
1697
|
attributes: zod.array(
|
|
1406
1698
|
zod.strictObject({
|
|
1699
|
+
id: zod.uuid(),
|
|
1407
1700
|
name: zod.string(),
|
|
1408
|
-
value: zod.string()
|
|
1701
|
+
value: zod.string(),
|
|
1702
|
+
position: zod.number()
|
|
1409
1703
|
})
|
|
1410
|
-
)
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1704
|
+
),
|
|
1705
|
+
pricing: zod.strictObject({
|
|
1706
|
+
id: zod.uuid(),
|
|
1707
|
+
baseAmount: zod.number(),
|
|
1708
|
+
baseCurrency: zod.string(),
|
|
1709
|
+
sale: zod.union([
|
|
1710
|
+
zod.null(),
|
|
1711
|
+
zod.strictObject({
|
|
1712
|
+
amount: zod.number(),
|
|
1713
|
+
currency: zod.string(),
|
|
1714
|
+
startAt: zod.iso.datetime({}),
|
|
1715
|
+
endAt: zod.iso.datetime({})
|
|
1716
|
+
})
|
|
1717
|
+
]),
|
|
1718
|
+
wholesale: zod.array(
|
|
1719
|
+
zod.strictObject({
|
|
1720
|
+
minQty: zod.number(),
|
|
1721
|
+
amount: zod.number(),
|
|
1722
|
+
currency: zod.string(),
|
|
1723
|
+
position: zod.number()
|
|
1724
|
+
})
|
|
1725
|
+
)
|
|
1726
|
+
}),
|
|
1727
|
+
sources: zod.array(
|
|
1728
|
+
zod.strictObject({
|
|
1729
|
+
warehouseId: zod.uuid(),
|
|
1730
|
+
masterItemId: zod.uuid(),
|
|
1731
|
+
quantityPerUnit: zod.number()
|
|
1732
|
+
})
|
|
1733
|
+
),
|
|
1734
|
+
pricingId: zod.uuid().optional()
|
|
1415
1735
|
})
|
|
1416
1736
|
),
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1737
|
+
images: zod.array(
|
|
1738
|
+
zod.strictObject({
|
|
1739
|
+
fileId: zod.uuid(),
|
|
1740
|
+
sortOrder: zod.number()
|
|
1741
|
+
})
|
|
1742
|
+
)
|
|
1423
1743
|
});
|
|
1424
|
-
var
|
|
1425
|
-
productId: zod.uuid(),
|
|
1744
|
+
var deleteProductParams = zod.strictObject({
|
|
1426
1745
|
id: zod.uuid()
|
|
1427
1746
|
});
|
|
1428
|
-
var
|
|
1429
|
-
id: zod.uuid(),
|
|
1430
|
-
productId: zod.uuid(),
|
|
1747
|
+
var listCouriersResponseItem = zod.strictObject({
|
|
1431
1748
|
code: zod.string(),
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
name: zod.string(),
|
|
1435
|
-
value: zod.string()
|
|
1436
|
-
})
|
|
1437
|
-
).optional(),
|
|
1438
|
-
weight: zod.strictObject({
|
|
1439
|
-
value: zod.number(),
|
|
1440
|
-
unit: zod.string()
|
|
1441
|
-
})
|
|
1749
|
+
name: zod.string(),
|
|
1750
|
+
services: zod.array(zod.string())
|
|
1442
1751
|
});
|
|
1443
|
-
var
|
|
1444
|
-
|
|
1445
|
-
|
|
1752
|
+
var listCouriersResponse = zod.array(listCouriersResponseItem);
|
|
1753
|
+
var getCourierByCodeParams = zod.strictObject({
|
|
1754
|
+
code: zod.string()
|
|
1446
1755
|
});
|
|
1447
|
-
var
|
|
1756
|
+
var getCourierByCodeResponse = zod.strictObject({
|
|
1448
1757
|
code: zod.string(),
|
|
1449
|
-
|
|
1758
|
+
name: zod.string(),
|
|
1759
|
+
services: zod.array(zod.string())
|
|
1760
|
+
});
|
|
1761
|
+
var getProductShippingConfigParams = zod.strictObject({
|
|
1762
|
+
productId: zod.uuid()
|
|
1763
|
+
});
|
|
1764
|
+
var getProductShippingConfigResponse = zod.strictObject({
|
|
1765
|
+
mode: zod.enum(["Auto", "Flat", "Free"]),
|
|
1766
|
+
flatAmount: zod.number(),
|
|
1767
|
+
useStoreDefaults: zod.boolean(),
|
|
1768
|
+
services: zod.array(
|
|
1450
1769
|
zod.strictObject({
|
|
1451
|
-
|
|
1452
|
-
|
|
1770
|
+
code: zod.string(),
|
|
1771
|
+
enabled: zod.boolean(),
|
|
1772
|
+
couriers: zod.array(zod.string())
|
|
1453
1773
|
})
|
|
1454
|
-
)
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
})
|
|
1459
|
-
});
|
|
1460
|
-
var updateVariantResponse = zod.strictObject({
|
|
1461
|
-
id: zod.uuid(),
|
|
1462
|
-
productId: zod.uuid(),
|
|
1463
|
-
code: zod.string(),
|
|
1464
|
-
attributes: zod.array(
|
|
1774
|
+
),
|
|
1775
|
+
extraFee: zod.number(),
|
|
1776
|
+
discount: zod.union([
|
|
1777
|
+
zod.null(),
|
|
1465
1778
|
zod.strictObject({
|
|
1466
|
-
|
|
1467
|
-
value: zod.
|
|
1779
|
+
type: zod.enum(["Fixed", "Percent"]),
|
|
1780
|
+
value: zod.number()
|
|
1468
1781
|
})
|
|
1469
|
-
)
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1782
|
+
]),
|
|
1783
|
+
display: zod.strictObject({
|
|
1784
|
+
mergeExtraFee: zod.boolean(),
|
|
1785
|
+
showOriginalPrice: zod.boolean(),
|
|
1786
|
+
hideCouriers: zod.boolean(),
|
|
1787
|
+
hideOrigin: zod.boolean()
|
|
1788
|
+
}),
|
|
1789
|
+
coverageCheck: zod.strictObject({
|
|
1790
|
+
enabled: zod.boolean(),
|
|
1791
|
+
onUncovered: zod.union([
|
|
1792
|
+
zod.null(),
|
|
1793
|
+
zod.union([zod.literal("Block"), zod.literal("Allow"), zod.literal(null)])
|
|
1794
|
+
])
|
|
1473
1795
|
})
|
|
1474
1796
|
});
|
|
1475
|
-
var
|
|
1476
|
-
productId: zod.uuid()
|
|
1477
|
-
id: zod.uuid()
|
|
1478
|
-
});
|
|
1479
|
-
var getVariantPricingParams = zod.strictObject({
|
|
1480
|
-
variantId: zod.uuid()
|
|
1797
|
+
var setProductShippingConfigParams = zod.strictObject({
|
|
1798
|
+
productId: zod.uuid()
|
|
1481
1799
|
});
|
|
1482
|
-
var
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
effectiveCurrency: zod.string(),
|
|
1488
|
-
sale: zod.union([
|
|
1489
|
-
zod.null(),
|
|
1800
|
+
var setProductShippingConfigBody = zod.strictObject({
|
|
1801
|
+
mode: zod.union([zod.null(), zod.enum(["Auto", "Flat", "Free"])]),
|
|
1802
|
+
flatAmount: zod.number(),
|
|
1803
|
+
useStoreDefaults: zod.boolean(),
|
|
1804
|
+
services: zod.array(
|
|
1490
1805
|
zod.strictObject({
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
endAt: zod.iso.datetime({}),
|
|
1495
|
-
isActive: zod.boolean()
|
|
1806
|
+
code: zod.string(),
|
|
1807
|
+
enabled: zod.boolean(),
|
|
1808
|
+
couriers: zod.array(zod.string()).nullable()
|
|
1496
1809
|
})
|
|
1497
|
-
|
|
1498
|
-
|
|
1810
|
+
).nullable(),
|
|
1811
|
+
extraFee: zod.number(),
|
|
1812
|
+
discount: zod.union([
|
|
1813
|
+
zod.null(),
|
|
1499
1814
|
zod.strictObject({
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
currency: zod.string()
|
|
1815
|
+
type: zod.enum(["Fixed", "Percent"]),
|
|
1816
|
+
value: zod.number()
|
|
1503
1817
|
})
|
|
1504
|
-
)
|
|
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([
|
|
1818
|
+
]),
|
|
1819
|
+
display: zod.union([
|
|
1513
1820
|
zod.null(),
|
|
1514
1821
|
zod.strictObject({
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1822
|
+
mergeExtraFee: zod.boolean(),
|
|
1823
|
+
showOriginalPrice: zod.boolean(),
|
|
1824
|
+
hideCouriers: zod.boolean(),
|
|
1825
|
+
hideOrigin: zod.boolean()
|
|
1519
1826
|
})
|
|
1520
|
-
])
|
|
1521
|
-
|
|
1827
|
+
]),
|
|
1828
|
+
coverageCheck: zod.union([
|
|
1829
|
+
zod.null(),
|
|
1522
1830
|
zod.strictObject({
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1831
|
+
enabled: zod.boolean(),
|
|
1832
|
+
onUncovered: zod.union([
|
|
1833
|
+
zod.null(),
|
|
1834
|
+
zod.union([zod.literal("Block"), zod.literal("Allow"), zod.literal(null)])
|
|
1835
|
+
])
|
|
1526
1836
|
})
|
|
1527
|
-
)
|
|
1837
|
+
])
|
|
1528
1838
|
});
|
|
1529
|
-
var
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1839
|
+
var listBanksResponseItem = zod.strictObject({
|
|
1840
|
+
code: zod.string(),
|
|
1841
|
+
name: zod.string().nullable()
|
|
1842
|
+
});
|
|
1843
|
+
var listBanksResponse = zod.array(listBanksResponseItem);
|
|
1844
|
+
var getBankByCodeParams = zod.strictObject({
|
|
1845
|
+
code: zod.string()
|
|
1846
|
+
});
|
|
1847
|
+
var getBankByCodeResponse = zod.strictObject({
|
|
1848
|
+
code: zod.string(),
|
|
1849
|
+
name: zod.string().nullable()
|
|
1850
|
+
});
|
|
1851
|
+
var createBankAccountBody = zod.strictObject({
|
|
1852
|
+
bankCode: zod.string(),
|
|
1853
|
+
accountNumber: zod.string(),
|
|
1854
|
+
accountHolderName: zod.string(),
|
|
1855
|
+
customBankName: zod.string().nullish(),
|
|
1856
|
+
isActive: zod.boolean().optional()
|
|
1857
|
+
});
|
|
1858
|
+
var getProductPaymentConfigParams = zod.strictObject({
|
|
1859
|
+
productId: zod.uuid()
|
|
1860
|
+
});
|
|
1861
|
+
var getProductPaymentConfigResponse = zod.strictObject({
|
|
1862
|
+
useStoreDefaults: zod.boolean(),
|
|
1863
|
+
methods: zod.array(
|
|
1537
1864
|
zod.strictObject({
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1865
|
+
type: zod.enum(["BankTransfer", "Cod", "EPayment"]),
|
|
1866
|
+
enabled: zod.boolean(),
|
|
1867
|
+
accounts: zod.array(
|
|
1868
|
+
zod.strictObject({
|
|
1869
|
+
bankAccountId: zod.uuid(),
|
|
1870
|
+
enabled: zod.boolean(),
|
|
1871
|
+
sortOrder: zod.number()
|
|
1872
|
+
})
|
|
1873
|
+
),
|
|
1874
|
+
uniqueCode: zod.union([
|
|
1875
|
+
zod.null(),
|
|
1876
|
+
zod.strictObject({
|
|
1877
|
+
enabled: zod.boolean(),
|
|
1878
|
+
direction: zod.union([
|
|
1879
|
+
zod.null(),
|
|
1880
|
+
zod.union([zod.literal("Increase"), zod.literal("Decrease"), zod.literal(null)])
|
|
1881
|
+
])
|
|
1882
|
+
})
|
|
1883
|
+
]),
|
|
1884
|
+
courierFeePercent: zod.number(),
|
|
1885
|
+
feeType: zod.union([
|
|
1886
|
+
zod.null(),
|
|
1887
|
+
zod.union([
|
|
1888
|
+
zod.literal("Product"),
|
|
1889
|
+
zod.literal("Shipping"),
|
|
1890
|
+
zod.literal("ProductAndShipping"),
|
|
1891
|
+
zod.literal(null)
|
|
1892
|
+
])
|
|
1893
|
+
]),
|
|
1894
|
+
minFee: zod.number(),
|
|
1895
|
+
maxFee: zod.number(),
|
|
1896
|
+
adminFeeBorneBy: zod.union([
|
|
1897
|
+
zod.null(),
|
|
1898
|
+
zod.union([zod.literal("Seller"), zod.literal("Buyer"), zod.literal(null)])
|
|
1899
|
+
]),
|
|
1900
|
+
channels: zod.array(
|
|
1901
|
+
zod.strictObject({
|
|
1902
|
+
code: zod.string(),
|
|
1903
|
+
enabled: zod.boolean(),
|
|
1904
|
+
sortOrder: zod.number()
|
|
1905
|
+
})
|
|
1906
|
+
)
|
|
1543
1907
|
})
|
|
1544
|
-
|
|
1545
|
-
|
|
1908
|
+
),
|
|
1909
|
+
tax: zod.strictObject({
|
|
1910
|
+
enabled: zod.boolean(),
|
|
1911
|
+
ratePercent: zod.number(),
|
|
1912
|
+
priceIncludesTax: zod.boolean()
|
|
1913
|
+
})
|
|
1914
|
+
});
|
|
1915
|
+
var getProductAssignmentParams = zod.strictObject({
|
|
1916
|
+
productId: zod.uuid()
|
|
1917
|
+
});
|
|
1918
|
+
var getProductAssignmentResponse = zod.strictObject({
|
|
1919
|
+
distribution: zod.enum(["Equal", "Percentage", "Fixed"]),
|
|
1920
|
+
members: zod.array(
|
|
1546
1921
|
zod.strictObject({
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
currency: zod.string()
|
|
1922
|
+
userId: zod.uuid(),
|
|
1923
|
+
value: zod.number()
|
|
1550
1924
|
})
|
|
1551
|
-
)
|
|
1925
|
+
),
|
|
1926
|
+
nextMemberIndex: zod.number()
|
|
1552
1927
|
});
|
|
1553
|
-
var
|
|
1554
|
-
|
|
1928
|
+
var setProductAssignmentParams = zod.strictObject({
|
|
1929
|
+
productId: zod.uuid()
|
|
1930
|
+
});
|
|
1931
|
+
var setProductAssignmentBody = zod.strictObject({
|
|
1932
|
+
distribution: zod.union([zod.null(), zod.enum(["Equal", "Percentage", "Fixed"])]),
|
|
1933
|
+
members: zod.array(
|
|
1934
|
+
zod.strictObject({
|
|
1935
|
+
userId: zod.uuid(),
|
|
1936
|
+
value: zod.number()
|
|
1937
|
+
})
|
|
1938
|
+
).nullable()
|
|
1555
1939
|
});
|
|
1556
1940
|
var createStockItemsBody = zod.strictObject({
|
|
1557
1941
|
name: zod.string(),
|
|
@@ -1794,32 +2178,36 @@ var postApiIdentityAdminUsersIdLogoutParams = zod.strictObject({
|
|
|
1794
2178
|
});
|
|
1795
2179
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1796
2180
|
0 && (module.exports = {
|
|
2181
|
+
AdminFeeBorneBy,
|
|
2182
|
+
AssignmentDistributionKind,
|
|
2183
|
+
CodFeeType,
|
|
1797
2184
|
ConsumeBatchSourceType,
|
|
2185
|
+
PaymentMethodType,
|
|
1798
2186
|
ProductClassification,
|
|
1799
2187
|
ProductStatus,
|
|
2188
|
+
ShippingCoverageAction,
|
|
2189
|
+
ShippingDiscountType,
|
|
2190
|
+
ShippingMode,
|
|
1800
2191
|
SourceTypeEnum,
|
|
2192
|
+
UniqueCodeDirection,
|
|
1801
2193
|
consumeBatch,
|
|
1802
2194
|
consumeBatchBody,
|
|
1803
2195
|
consumeBatchParams,
|
|
2196
|
+
createBankAccount,
|
|
2197
|
+
createBankAccountBody,
|
|
1804
2198
|
createBatch,
|
|
1805
2199
|
createBatchBody,
|
|
1806
2200
|
createProduct,
|
|
1807
2201
|
createProductBody,
|
|
2202
|
+
createProductBodyVariantsItemSourcesItemQuantityPerUnitDefault,
|
|
1808
2203
|
createStockItems,
|
|
1809
2204
|
createStockItemsBody,
|
|
1810
|
-
createVariant,
|
|
1811
|
-
createVariantBody,
|
|
1812
|
-
createVariantParams,
|
|
1813
2205
|
createWarehouse,
|
|
1814
2206
|
createWarehouseBody,
|
|
1815
2207
|
deleteApiIdentityAdminRolesId,
|
|
1816
2208
|
deleteApiIdentityAdminRolesIdParams,
|
|
1817
2209
|
deleteProduct,
|
|
1818
2210
|
deleteProductParams,
|
|
1819
|
-
deleteVariant,
|
|
1820
|
-
deleteVariantParams,
|
|
1821
|
-
deleteVariantPricing,
|
|
1822
|
-
deleteVariantPricingParams,
|
|
1823
2211
|
deleteWarehouse,
|
|
1824
2212
|
deleteWarehouseParams,
|
|
1825
2213
|
getApiIdentityAdminPermissions,
|
|
@@ -1848,16 +2236,20 @@ var postApiIdentityAdminUsersIdLogoutParams = zod.strictObject({
|
|
|
1848
2236
|
getApiIdentityManage2faResponse,
|
|
1849
2237
|
getApiIdentityManageInfo,
|
|
1850
2238
|
getApiIdentityManageInfoResponse,
|
|
2239
|
+
getBankByCode,
|
|
2240
|
+
getBankByCodeParams,
|
|
2241
|
+
getBankByCodeResponse,
|
|
1851
2242
|
getConsumeBatchMutationOptions,
|
|
2243
|
+
getCourierByCode,
|
|
2244
|
+
getCourierByCodeParams,
|
|
2245
|
+
getCourierByCodeResponse,
|
|
2246
|
+
getCreateBankAccountMutationOptions,
|
|
1852
2247
|
getCreateBatchMutationOptions,
|
|
1853
2248
|
getCreateProductMutationOptions,
|
|
1854
2249
|
getCreateStockItemsMutationOptions,
|
|
1855
|
-
getCreateVariantMutationOptions,
|
|
1856
2250
|
getCreateWarehouseMutationOptions,
|
|
1857
2251
|
getDeleteApiIdentityAdminRolesIdMutationOptions,
|
|
1858
2252
|
getDeleteProductMutationOptions,
|
|
1859
|
-
getDeleteVariantMutationOptions,
|
|
1860
|
-
getDeleteVariantPricingMutationOptions,
|
|
1861
2253
|
getDeleteWarehouseMutationOptions,
|
|
1862
2254
|
getGetApiIdentityAdminPermissionsQueryKey,
|
|
1863
2255
|
getGetApiIdentityAdminPermissionsQueryOptions,
|
|
@@ -1877,27 +2269,35 @@ var postApiIdentityAdminUsersIdLogoutParams = zod.strictObject({
|
|
|
1877
2269
|
getGetApiIdentityManage2faQueryOptions,
|
|
1878
2270
|
getGetApiIdentityManageInfoQueryKey,
|
|
1879
2271
|
getGetApiIdentityManageInfoQueryOptions,
|
|
2272
|
+
getGetBankByCodeQueryKey,
|
|
2273
|
+
getGetBankByCodeQueryOptions,
|
|
2274
|
+
getGetCourierByCodeQueryKey,
|
|
2275
|
+
getGetCourierByCodeQueryOptions,
|
|
1880
2276
|
getGetHealthQueryKey,
|
|
1881
2277
|
getGetHealthQueryOptions,
|
|
2278
|
+
getGetProductAssignmentQueryKey,
|
|
2279
|
+
getGetProductAssignmentQueryOptions,
|
|
2280
|
+
getGetProductPaymentConfigQueryKey,
|
|
2281
|
+
getGetProductPaymentConfigQueryOptions,
|
|
1882
2282
|
getGetProductQueryKey,
|
|
1883
2283
|
getGetProductQueryOptions,
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
getGetVariantQueryKey,
|
|
1887
|
-
getGetVariantQueryOptions,
|
|
2284
|
+
getGetProductShippingConfigQueryKey,
|
|
2285
|
+
getGetProductShippingConfigQueryOptions,
|
|
1888
2286
|
getGetWarehouseByIdQueryKey,
|
|
1889
2287
|
getGetWarehouseByIdQueryOptions,
|
|
1890
2288
|
getGetWarehouseOptionsQueryKey,
|
|
1891
2289
|
getGetWarehouseOptionsQueryOptions,
|
|
1892
2290
|
getHealth,
|
|
2291
|
+
getListBanksQueryKey,
|
|
2292
|
+
getListBanksQueryOptions,
|
|
2293
|
+
getListCouriersQueryKey,
|
|
2294
|
+
getListCouriersQueryOptions,
|
|
1893
2295
|
getListProductsQueryKey,
|
|
1894
2296
|
getListProductsQueryOptions,
|
|
1895
2297
|
getListStockItemsQueryKey,
|
|
1896
2298
|
getListStockItemsQueryOptions,
|
|
1897
2299
|
getListStockMovementsQueryKey,
|
|
1898
2300
|
getListStockMovementsQueryOptions,
|
|
1899
|
-
getListVariantsQueryKey,
|
|
1900
|
-
getListVariantsQueryOptions,
|
|
1901
2301
|
getListWarehousesQueryKey,
|
|
1902
2302
|
getListWarehousesQueryOptions,
|
|
1903
2303
|
getPostApiIdentityAdminRolesMutationOptions,
|
|
@@ -1909,31 +2309,40 @@ var postApiIdentityAdminUsersIdLogoutParams = zod.strictObject({
|
|
|
1909
2309
|
getPostApiIdentityManageInfoMutationOptions,
|
|
1910
2310
|
getPostApiIdentityResetPasswordMutationOptions,
|
|
1911
2311
|
getProduct,
|
|
2312
|
+
getProductAssignment,
|
|
2313
|
+
getProductAssignmentParams,
|
|
2314
|
+
getProductAssignmentResponse,
|
|
1912
2315
|
getProductParams,
|
|
2316
|
+
getProductPaymentConfig,
|
|
2317
|
+
getProductPaymentConfigParams,
|
|
2318
|
+
getProductPaymentConfigResponse,
|
|
1913
2319
|
getProductResponse,
|
|
2320
|
+
getProductShippingConfig,
|
|
2321
|
+
getProductShippingConfigParams,
|
|
2322
|
+
getProductShippingConfigResponse,
|
|
1914
2323
|
getPutApiIdentityAdminRolesIdMutationOptions,
|
|
1915
2324
|
getPutApiIdentityAdminRolesIdPermissionsMutationOptions,
|
|
1916
2325
|
getPutApiIdentityAdminUsersIdActiveMutationOptions,
|
|
1917
2326
|
getPutApiIdentityAdminUsersIdRolesMutationOptions,
|
|
1918
2327
|
getSearchAddressesQueryKey,
|
|
1919
2328
|
getSearchAddressesQueryOptions,
|
|
2329
|
+
getSetProductAssignmentMutationOptions,
|
|
2330
|
+
getSetProductShippingConfigMutationOptions,
|
|
1920
2331
|
getToggleWarehouseStatusMutationOptions,
|
|
1921
2332
|
getUpdateProductMutationOptions,
|
|
1922
|
-
getUpdateVariantMutationOptions,
|
|
1923
2333
|
getUpdateWarehouseMutationOptions,
|
|
1924
|
-
getUpsertVariantPricingMutationOptions,
|
|
1925
|
-
getVariant,
|
|
1926
|
-
getVariantParams,
|
|
1927
|
-
getVariantPricing,
|
|
1928
|
-
getVariantPricingParams,
|
|
1929
|
-
getVariantPricingResponse,
|
|
1930
|
-
getVariantResponse,
|
|
1931
2334
|
getWarehouseById,
|
|
1932
2335
|
getWarehouseByIdParams,
|
|
1933
2336
|
getWarehouseByIdResponse,
|
|
1934
2337
|
getWarehouseOptions,
|
|
1935
2338
|
getWarehouseOptionsResponse,
|
|
1936
2339
|
getWarehouseOptionsResponseItem,
|
|
2340
|
+
listBanks,
|
|
2341
|
+
listBanksResponse,
|
|
2342
|
+
listBanksResponseItem,
|
|
2343
|
+
listCouriers,
|
|
2344
|
+
listCouriersResponse,
|
|
2345
|
+
listCouriersResponseItem,
|
|
1937
2346
|
listProducts,
|
|
1938
2347
|
listProductsQueryPageDefault,
|
|
1939
2348
|
listProductsQueryPageSizeDefault,
|
|
@@ -1951,12 +2360,6 @@ var postApiIdentityAdminUsersIdLogoutParams = zod.strictObject({
|
|
|
1951
2360
|
listStockMovementsQueryPageSizeDefault,
|
|
1952
2361
|
listStockMovementsQueryParams,
|
|
1953
2362
|
listStockMovementsResponse,
|
|
1954
|
-
listVariants,
|
|
1955
|
-
listVariantsParams,
|
|
1956
|
-
listVariantsQueryPageDefault,
|
|
1957
|
-
listVariantsQueryPageSizeDefault,
|
|
1958
|
-
listVariantsQueryParams,
|
|
1959
|
-
listVariantsResponse,
|
|
1960
2363
|
listWarehouses,
|
|
1961
2364
|
listWarehousesQueryPageDefault,
|
|
1962
2365
|
listWarehousesQueryPageSizeDefault,
|
|
@@ -1997,33 +2400,30 @@ var postApiIdentityAdminUsersIdLogoutParams = zod.strictObject({
|
|
|
1997
2400
|
searchAddressesQueryParams,
|
|
1998
2401
|
searchAddressesResponse,
|
|
1999
2402
|
searchAddressesResponseItem,
|
|
2403
|
+
setProductAssignment,
|
|
2404
|
+
setProductAssignmentBody,
|
|
2405
|
+
setProductAssignmentParams,
|
|
2406
|
+
setProductShippingConfig,
|
|
2407
|
+
setProductShippingConfigBody,
|
|
2408
|
+
setProductShippingConfigParams,
|
|
2000
2409
|
toggleWarehouseStatus,
|
|
2001
2410
|
toggleWarehouseStatusParams,
|
|
2002
2411
|
updateProduct,
|
|
2003
2412
|
updateProductBody,
|
|
2413
|
+
updateProductBodyVariantsItemSourcesItemQuantityPerUnitDefault,
|
|
2004
2414
|
updateProductParams,
|
|
2005
2415
|
updateProductResponse,
|
|
2006
|
-
updateVariant,
|
|
2007
|
-
updateVariantBody,
|
|
2008
|
-
updateVariantParams,
|
|
2009
|
-
updateVariantResponse,
|
|
2010
2416
|
updateWarehouse,
|
|
2011
2417
|
updateWarehouseBody,
|
|
2012
2418
|
updateWarehouseParams,
|
|
2013
|
-
upsertVariantPricing,
|
|
2014
|
-
upsertVariantPricingBody,
|
|
2015
|
-
upsertVariantPricingParams,
|
|
2016
|
-
upsertVariantPricingResponse,
|
|
2017
2419
|
useConsumeBatch,
|
|
2420
|
+
useCreateBankAccount,
|
|
2018
2421
|
useCreateBatch,
|
|
2019
2422
|
useCreateProduct,
|
|
2020
2423
|
useCreateStockItems,
|
|
2021
|
-
useCreateVariant,
|
|
2022
2424
|
useCreateWarehouse,
|
|
2023
2425
|
useDeleteApiIdentityAdminRolesId,
|
|
2024
2426
|
useDeleteProduct,
|
|
2025
|
-
useDeleteVariant,
|
|
2026
|
-
useDeleteVariantPricing,
|
|
2027
2427
|
useDeleteWarehouse,
|
|
2028
2428
|
useGetApiIdentityAdminPermissions,
|
|
2029
2429
|
useGetApiIdentityAdminRoles,
|
|
@@ -2034,16 +2434,20 @@ var postApiIdentityAdminUsersIdLogoutParams = zod.strictObject({
|
|
|
2034
2434
|
useGetApiIdentityAntiforgery,
|
|
2035
2435
|
useGetApiIdentityManage2fa,
|
|
2036
2436
|
useGetApiIdentityManageInfo,
|
|
2437
|
+
useGetBankByCode,
|
|
2438
|
+
useGetCourierByCode,
|
|
2037
2439
|
useGetHealth,
|
|
2038
2440
|
useGetProduct,
|
|
2039
|
-
|
|
2040
|
-
|
|
2441
|
+
useGetProductAssignment,
|
|
2442
|
+
useGetProductPaymentConfig,
|
|
2443
|
+
useGetProductShippingConfig,
|
|
2041
2444
|
useGetWarehouseById,
|
|
2042
2445
|
useGetWarehouseOptions,
|
|
2446
|
+
useListBanks,
|
|
2447
|
+
useListCouriers,
|
|
2043
2448
|
useListProducts,
|
|
2044
2449
|
useListStockItems,
|
|
2045
2450
|
useListStockMovements,
|
|
2046
|
-
useListVariants,
|
|
2047
2451
|
useListWarehouses,
|
|
2048
2452
|
usePostApiIdentityAdminRoles,
|
|
2049
2453
|
usePostApiIdentityAdminUsersIdLogout,
|
|
@@ -2058,10 +2462,10 @@ var postApiIdentityAdminUsersIdLogoutParams = zod.strictObject({
|
|
|
2058
2462
|
usePutApiIdentityAdminUsersIdActive,
|
|
2059
2463
|
usePutApiIdentityAdminUsersIdRoles,
|
|
2060
2464
|
useSearchAddresses,
|
|
2465
|
+
useSetProductAssignment,
|
|
2466
|
+
useSetProductShippingConfig,
|
|
2061
2467
|
useToggleWarehouseStatus,
|
|
2062
2468
|
useUpdateProduct,
|
|
2063
|
-
|
|
2064
|
-
useUpdateWarehouse,
|
|
2065
|
-
useUpsertVariantPricing
|
|
2469
|
+
useUpdateWarehouse
|
|
2066
2470
|
});
|
|
2067
2471
|
//# sourceMappingURL=index.js.map
|