@arascreative/erp-api-client 2.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.mjs CHANGED
@@ -1,6 +1,20 @@
1
1
  // src/gen/v1.ts
2
2
  import { useMutation, useQuery } from "@tanstack/react-query";
3
3
  import axios from "axios";
4
+ var AdminFeeBorneBy = {
5
+ Seller: "Seller",
6
+ Buyer: "Buyer"
7
+ };
8
+ var AssignmentDistributionKind = {
9
+ Equal: "Equal",
10
+ Percentage: "Percentage",
11
+ Fixed: "Fixed"
12
+ };
13
+ var CodFeeType = {
14
+ Product: "Product",
15
+ Shipping: "Shipping",
16
+ ProductAndShipping: "ProductAndShipping"
17
+ };
4
18
  var ConsumeBatchSourceType = {
5
19
  LOAN_OUT: "LOAN_OUT",
6
20
  TRANSFER_OUT: "TRANSFER_OUT",
@@ -9,6 +23,11 @@ var ConsumeBatchSourceType = {
9
23
  DAMAGED: "DAMAGED",
10
24
  INTERNAL_USE: "INTERNAL_USE"
11
25
  };
26
+ var PaymentMethodType = {
27
+ BankTransfer: "BankTransfer",
28
+ Cod: "Cod",
29
+ EPayment: "EPayment"
30
+ };
12
31
  var ProductClassification = {
13
32
  Physical: "Physical",
14
33
  Digital: "Digital"
@@ -18,11 +37,28 @@ var ProductStatus = {
18
37
  Live: "Live",
19
38
  Archived: "Archived"
20
39
  };
40
+ var ShippingCoverageAction = {
41
+ Block: "Block",
42
+ Allow: "Allow"
43
+ };
44
+ var ShippingDiscountType = {
45
+ Fixed: "Fixed",
46
+ Percent: "Percent"
47
+ };
48
+ var ShippingMode = {
49
+ Auto: "Auto",
50
+ Flat: "Flat",
51
+ Free: "Free"
52
+ };
21
53
  var SourceTypeEnum = {
22
54
  PURCHASE: "PURCHASE",
23
55
  CUSTOMER_RETURN: "CUSTOMER_RETURN",
24
56
  LOAN_RETURN: "LOAN_RETURN"
25
57
  };
58
+ var UniqueCodeDirection = {
59
+ Increase: "Increase",
60
+ Decrease: "Decrease"
61
+ };
26
62
  var getHealth = (options) => {
27
63
  return axios.get(`/health`, options);
28
64
  };
@@ -270,149 +306,190 @@ var useDeleteProduct = (options, queryClient) => {
270
306
  const mutationOptions = getDeleteProductMutationOptions(options);
271
307
  return useMutation(mutationOptions, queryClient);
272
308
  };
273
- var createVariant = (productId, createVariantRequest, options) => {
274
- return axios.post(`/api/catalog/products/${productId}/variants`, createVariantRequest, options);
309
+ var listCouriers = (options) => {
310
+ return axios.get(`/api/shipping/couriers`, options);
275
311
  };
276
- var getCreateVariantMutationOptions = (options) => {
277
- const mutationKey = ["createVariant"];
278
- 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 };
279
- const mutationFn = (props) => {
280
- const { productId, data } = props ?? {};
281
- return createVariant(productId, data, axiosOptions);
282
- };
283
- return { mutationFn, ...mutationOptions };
312
+ var getListCouriersQueryKey = () => {
313
+ return [`/api/shipping/couriers`];
284
314
  };
285
- var useCreateVariant = (options, queryClient) => {
286
- const mutationOptions = getCreateVariantMutationOptions(options);
287
- return useMutation(mutationOptions, queryClient);
315
+ var getListCouriersQueryOptions = (options) => {
316
+ const { query: queryOptions, axios: axiosOptions } = options ?? {};
317
+ const queryKey = queryOptions?.queryKey ?? getListCouriersQueryKey();
318
+ const queryFn = ({ signal }) => listCouriers({ signal, ...axiosOptions });
319
+ return { queryKey, queryFn, ...queryOptions };
288
320
  };
289
- var listVariants = (productId, params, options) => {
290
- return axios.get(`/api/catalog/products/${productId}/variants`, {
291
- ...options,
292
- params: { ...params, ...options?.params }
293
- });
321
+ function useListCouriers(options, queryClient) {
322
+ const queryOptions = getListCouriersQueryOptions(options);
323
+ const query = useQuery(queryOptions, queryClient);
324
+ query.queryKey = queryOptions.queryKey;
325
+ return query;
326
+ }
327
+ var getCourierByCode = (code, options) => {
328
+ return axios.get(`/api/shipping/couriers/${code}`, options);
294
329
  };
295
- var getListVariantsQueryKey = (productId, params) => {
296
- return [`/api/catalog/products/${productId}/variants`, ...params ? [params] : []];
330
+ var getGetCourierByCodeQueryKey = (code) => {
331
+ return [`/api/shipping/couriers/${code}`];
297
332
  };
298
- var getListVariantsQueryOptions = (productId, params, options) => {
333
+ var getGetCourierByCodeQueryOptions = (code, options) => {
299
334
  const { query: queryOptions, axios: axiosOptions } = options ?? {};
300
- const queryKey = queryOptions?.queryKey ?? getListVariantsQueryKey(productId, params);
301
- const queryFn = ({ signal }) => listVariants(productId, params, { signal, ...axiosOptions });
302
- return { queryKey, queryFn, enabled: !!productId, ...queryOptions };
335
+ const queryKey = queryOptions?.queryKey ?? getGetCourierByCodeQueryKey(code);
336
+ const queryFn = ({ signal }) => getCourierByCode(code, { signal, ...axiosOptions });
337
+ return { queryKey, queryFn, enabled: !!code, ...queryOptions };
303
338
  };
304
- function useListVariants(productId, params, options, queryClient) {
305
- const queryOptions = getListVariantsQueryOptions(productId, params, options);
339
+ function useGetCourierByCode(code, options, queryClient) {
340
+ const queryOptions = getGetCourierByCodeQueryOptions(code, options);
306
341
  const query = useQuery(queryOptions, queryClient);
307
342
  query.queryKey = queryOptions.queryKey;
308
343
  return query;
309
344
  }
310
- var getVariant = (productId, id, options) => {
311
- return axios.get(`/api/catalog/products/${productId}/variants/${id}`, options);
345
+ var getProductShippingConfig = (productId, options) => {
346
+ return axios.get(`/api/shipping/products/${productId}/shipping-config`, options);
312
347
  };
313
- var getGetVariantQueryKey = (productId, id) => {
314
- return [`/api/catalog/products/${productId}/variants/${id}`];
348
+ var getGetProductShippingConfigQueryKey = (productId) => {
349
+ return [`/api/shipping/products/${productId}/shipping-config`];
315
350
  };
316
- var getGetVariantQueryOptions = (productId, id, options) => {
351
+ var getGetProductShippingConfigQueryOptions = (productId, options) => {
317
352
  const { query: queryOptions, axios: axiosOptions } = options ?? {};
318
- const queryKey = queryOptions?.queryKey ?? getGetVariantQueryKey(productId, id);
319
- const queryFn = ({ signal }) => getVariant(productId, id, { signal, ...axiosOptions });
320
- return { queryKey, queryFn, enabled: !!(productId && id), ...queryOptions };
353
+ const queryKey = queryOptions?.queryKey ?? getGetProductShippingConfigQueryKey(productId);
354
+ const queryFn = ({
355
+ signal
356
+ }) => getProductShippingConfig(productId, { signal, ...axiosOptions });
357
+ return { queryKey, queryFn, enabled: !!productId, ...queryOptions };
321
358
  };
322
- function useGetVariant(productId, id, options, queryClient) {
323
- const queryOptions = getGetVariantQueryOptions(productId, id, options);
359
+ function useGetProductShippingConfig(productId, options, queryClient) {
360
+ const queryOptions = getGetProductShippingConfigQueryOptions(productId, options);
324
361
  const query = useQuery(queryOptions, queryClient);
325
362
  query.queryKey = queryOptions.queryKey;
326
363
  return query;
327
364
  }
328
- var updateVariant = (productId, id, updateVariantRequest, options) => {
365
+ var setProductShippingConfig = (productId, productShippingInput, options) => {
329
366
  return axios.put(
330
- `/api/catalog/products/${productId}/variants/${id}`,
331
- updateVariantRequest,
367
+ `/api/shipping/products/${productId}/shipping-config`,
368
+ productShippingInput,
332
369
  options
333
370
  );
334
371
  };
335
- var getUpdateVariantMutationOptions = (options) => {
336
- const mutationKey = ["updateVariant"];
372
+ var getSetProductShippingConfigMutationOptions = (options) => {
373
+ const mutationKey = ["setProductShippingConfig"];
337
374
  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 };
338
375
  const mutationFn = (props) => {
339
- const { productId, id, data } = props ?? {};
340
- return updateVariant(productId, id, data, axiosOptions);
376
+ const { productId, data } = props ?? {};
377
+ return setProductShippingConfig(productId, data, axiosOptions);
341
378
  };
342
379
  return { mutationFn, ...mutationOptions };
343
380
  };
344
- var useUpdateVariant = (options, queryClient) => {
345
- const mutationOptions = getUpdateVariantMutationOptions(options);
381
+ var useSetProductShippingConfig = (options, queryClient) => {
382
+ const mutationOptions = getSetProductShippingConfigMutationOptions(options);
346
383
  return useMutation(mutationOptions, queryClient);
347
384
  };
348
- var deleteVariant = (productId, id, options) => {
349
- return axios.delete(`/api/catalog/products/${productId}/variants/${id}`, options);
385
+ var listBanks = (options) => {
386
+ return axios.get(`/api/payments/banks`, options);
350
387
  };
351
- var getDeleteVariantMutationOptions = (options) => {
352
- const mutationKey = ["deleteVariant"];
353
- 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 };
354
- const mutationFn = (props) => {
355
- const { productId, id } = props ?? {};
356
- return deleteVariant(productId, id, axiosOptions);
357
- };
358
- return { mutationFn, ...mutationOptions };
388
+ var getListBanksQueryKey = () => {
389
+ return [`/api/payments/banks`];
359
390
  };
360
- var useDeleteVariant = (options, queryClient) => {
361
- const mutationOptions = getDeleteVariantMutationOptions(options);
362
- return useMutation(mutationOptions, queryClient);
391
+ var getListBanksQueryOptions = (options) => {
392
+ const { query: queryOptions, axios: axiosOptions } = options ?? {};
393
+ const queryKey = queryOptions?.queryKey ?? getListBanksQueryKey();
394
+ const queryFn = ({ signal }) => listBanks({ signal, ...axiosOptions });
395
+ return { queryKey, queryFn, ...queryOptions };
363
396
  };
364
- var getVariantPricing = (variantId, options) => {
365
- return axios.get(`/api/catalog/variants/${variantId}/pricing`, options);
397
+ function useListBanks(options, queryClient) {
398
+ const queryOptions = getListBanksQueryOptions(options);
399
+ const query = useQuery(queryOptions, queryClient);
400
+ query.queryKey = queryOptions.queryKey;
401
+ return query;
402
+ }
403
+ var getBankByCode = (code, options) => {
404
+ return axios.get(`/api/payments/banks/${code}`, options);
366
405
  };
367
- var getGetVariantPricingQueryKey = (variantId) => {
368
- return [`/api/catalog/variants/${variantId}/pricing`];
406
+ var getGetBankByCodeQueryKey = (code) => {
407
+ return [`/api/payments/banks/${code}`];
369
408
  };
370
- var getGetVariantPricingQueryOptions = (variantId, options) => {
409
+ var getGetBankByCodeQueryOptions = (code, options) => {
371
410
  const { query: queryOptions, axios: axiosOptions } = options ?? {};
372
- const queryKey = queryOptions?.queryKey ?? getGetVariantPricingQueryKey(variantId);
373
- const queryFn = ({ signal }) => getVariantPricing(variantId, { signal, ...axiosOptions });
374
- return { queryKey, queryFn, enabled: !!variantId, ...queryOptions };
411
+ const queryKey = queryOptions?.queryKey ?? getGetBankByCodeQueryKey(code);
412
+ const queryFn = ({ signal }) => getBankByCode(code, { signal, ...axiosOptions });
413
+ return { queryKey, queryFn, enabled: !!code, ...queryOptions };
375
414
  };
376
- function useGetVariantPricing(variantId, options, queryClient) {
377
- const queryOptions = getGetVariantPricingQueryOptions(variantId, options);
415
+ function useGetBankByCode(code, options, queryClient) {
416
+ const queryOptions = getGetBankByCodeQueryOptions(code, options);
378
417
  const query = useQuery(queryOptions, queryClient);
379
418
  query.queryKey = queryOptions.queryKey;
380
419
  return query;
381
420
  }
382
- var upsertVariantPricing = (variantId, upsertVariantPricingRequest, options) => {
383
- return axios.put(
384
- `/api/catalog/variants/${variantId}/pricing`,
385
- upsertVariantPricingRequest,
386
- options
387
- );
421
+ var createBankAccount = (createBankAccountCommand, options) => {
422
+ return axios.post(`/api/payments/bank-accounts`, createBankAccountCommand, options);
388
423
  };
389
- var getUpsertVariantPricingMutationOptions = (options) => {
390
- const mutationKey = ["upsertVariantPricing"];
424
+ var getCreateBankAccountMutationOptions = (options) => {
425
+ const mutationKey = ["createBankAccount"];
391
426
  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 };
392
427
  const mutationFn = (props) => {
393
- const { variantId, data } = props ?? {};
394
- return upsertVariantPricing(variantId, data, axiosOptions);
428
+ const { data } = props ?? {};
429
+ return createBankAccount(data, axiosOptions);
395
430
  };
396
431
  return { mutationFn, ...mutationOptions };
397
432
  };
398
- var useUpsertVariantPricing = (options, queryClient) => {
399
- const mutationOptions = getUpsertVariantPricingMutationOptions(options);
433
+ var useCreateBankAccount = (options, queryClient) => {
434
+ const mutationOptions = getCreateBankAccountMutationOptions(options);
400
435
  return useMutation(mutationOptions, queryClient);
401
436
  };
402
- var deleteVariantPricing = (variantId, options) => {
403
- return axios.delete(`/api/catalog/variants/${variantId}/pricing`, options);
437
+ var getProductPaymentConfig = (productId, options) => {
438
+ return axios.get(`/api/payments/products/${productId}/payment-config`, options);
404
439
  };
405
- var getDeleteVariantPricingMutationOptions = (options) => {
406
- const mutationKey = ["deleteVariantPricing"];
440
+ var getGetProductPaymentConfigQueryKey = (productId) => {
441
+ return [`/api/payments/products/${productId}/payment-config`];
442
+ };
443
+ var getGetProductPaymentConfigQueryOptions = (productId, options) => {
444
+ const { query: queryOptions, axios: axiosOptions } = options ?? {};
445
+ const queryKey = queryOptions?.queryKey ?? getGetProductPaymentConfigQueryKey(productId);
446
+ const queryFn = ({
447
+ signal
448
+ }) => getProductPaymentConfig(productId, { signal, ...axiosOptions });
449
+ return { queryKey, queryFn, enabled: !!productId, ...queryOptions };
450
+ };
451
+ function useGetProductPaymentConfig(productId, options, queryClient) {
452
+ const queryOptions = getGetProductPaymentConfigQueryOptions(productId, options);
453
+ const query = useQuery(queryOptions, queryClient);
454
+ query.queryKey = queryOptions.queryKey;
455
+ return query;
456
+ }
457
+ var getProductAssignment = (productId, options) => {
458
+ return axios.get(`/api/assignment/products/${productId}/assignment`, options);
459
+ };
460
+ var getGetProductAssignmentQueryKey = (productId) => {
461
+ return [`/api/assignment/products/${productId}/assignment`];
462
+ };
463
+ var getGetProductAssignmentQueryOptions = (productId, options) => {
464
+ const { query: queryOptions, axios: axiosOptions } = options ?? {};
465
+ const queryKey = queryOptions?.queryKey ?? getGetProductAssignmentQueryKey(productId);
466
+ const queryFn = ({ signal }) => getProductAssignment(productId, { signal, ...axiosOptions });
467
+ return { queryKey, queryFn, enabled: !!productId, ...queryOptions };
468
+ };
469
+ function useGetProductAssignment(productId, options, queryClient) {
470
+ const queryOptions = getGetProductAssignmentQueryOptions(productId, options);
471
+ const query = useQuery(queryOptions, queryClient);
472
+ query.queryKey = queryOptions.queryKey;
473
+ return query;
474
+ }
475
+ var setProductAssignment = (productId, productAssignmentInput, options) => {
476
+ return axios.put(
477
+ `/api/assignment/products/${productId}/assignment`,
478
+ productAssignmentInput,
479
+ options
480
+ );
481
+ };
482
+ var getSetProductAssignmentMutationOptions = (options) => {
483
+ const mutationKey = ["setProductAssignment"];
407
484
  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 };
408
485
  const mutationFn = (props) => {
409
- const { variantId } = props ?? {};
410
- return deleteVariantPricing(variantId, axiosOptions);
486
+ const { productId, data } = props ?? {};
487
+ return setProductAssignment(productId, data, axiosOptions);
411
488
  };
412
489
  return { mutationFn, ...mutationOptions };
413
490
  };
414
- var useDeleteVariantPricing = (options, queryClient) => {
415
- const mutationOptions = getDeleteVariantPricingMutationOptions(options);
491
+ var useSetProductAssignment = (options, queryClient) => {
492
+ const mutationOptions = getSetProductAssignmentMutationOptions(options);
416
493
  return useMutation(mutationOptions, queryClient);
417
494
  };
418
495
  var createStockItems = (createStockItemCommand, options) => {
@@ -468,15 +545,15 @@ var useCreateBatch = (options, queryClient) => {
468
545
  const mutationOptions = getCreateBatchMutationOptions(options);
469
546
  return useMutation(mutationOptions, queryClient);
470
547
  };
471
- var consumeBatch = (id, consumeBatchRequest, options) => {
472
- return axios.post(`/api/batches/${id}/consume`, consumeBatchRequest, options);
548
+ var consumeBatch = (itemId, consumeBatchRequest, options) => {
549
+ return axios.post(`/api/batches/${itemId}/consume`, consumeBatchRequest, options);
473
550
  };
474
551
  var getConsumeBatchMutationOptions = (options) => {
475
552
  const mutationKey = ["consumeBatch"];
476
553
  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 };
477
554
  const mutationFn = (props) => {
478
- const { id, data } = props ?? {};
479
- return consumeBatch(id, data, axiosOptions);
555
+ const { itemId, data } = props ?? {};
556
+ return consumeBatch(itemId, data, axiosOptions);
480
557
  };
481
558
  return { mutationFn, ...mutationOptions };
482
559
  };
@@ -1001,12 +1078,64 @@ var searchAddressesResponseItem = zod.strictObject({
1001
1078
  zipCode: zod.string().optional()
1002
1079
  });
1003
1080
  var searchAddressesResponse = zod.array(searchAddressesResponseItem);
1081
+ var createProductBodyVariantsItemSourcesItemQuantityPerUnitDefault = 1;
1004
1082
  var createProductBody = zod.strictObject({
1005
1083
  categoryId: zod.uuid(),
1006
1084
  name: zod.string(),
1007
1085
  slug: zod.string(),
1008
1086
  status: zod.enum(["Tes", "Live", "Archived"]).optional(),
1009
- classification: zod.enum(["Physical", "Digital"])
1087
+ classification: zod.enum(["Physical", "Digital"]),
1088
+ variants: zod.array(
1089
+ zod.strictObject({
1090
+ code: zod.string(),
1091
+ attributes: zod.array(
1092
+ zod.strictObject({
1093
+ name: zod.string(),
1094
+ value: zod.string()
1095
+ })
1096
+ ).optional(),
1097
+ sources: zod.array(
1098
+ zod.strictObject({
1099
+ warehouseId: zod.uuid(),
1100
+ masterItemId: zod.uuid(),
1101
+ quantityPerUnit: zod.number().default(createProductBodyVariantsItemSourcesItemQuantityPerUnitDefault)
1102
+ })
1103
+ ).optional(),
1104
+ weight: zod.union([
1105
+ zod.null(),
1106
+ zod.strictObject({
1107
+ value: zod.number(),
1108
+ unit: zod.string()
1109
+ })
1110
+ ]).optional(),
1111
+ pricing: zod.strictObject({
1112
+ baseAmount: zod.number(),
1113
+ baseCurrency: zod.string(),
1114
+ sale: zod.union([
1115
+ zod.null(),
1116
+ zod.strictObject({
1117
+ amount: zod.number(),
1118
+ currency: zod.string(),
1119
+ startAt: zod.iso.datetime({}),
1120
+ endAt: zod.iso.datetime({})
1121
+ })
1122
+ ]).optional(),
1123
+ wholesale: zod.array(
1124
+ zod.strictObject({
1125
+ minQty: zod.number(),
1126
+ amount: zod.number(),
1127
+ currency: zod.string()
1128
+ })
1129
+ ).optional()
1130
+ })
1131
+ })
1132
+ ).optional(),
1133
+ images: zod.array(
1134
+ zod.strictObject({
1135
+ fileId: zod.uuid(),
1136
+ sortOrder: zod.number()
1137
+ })
1138
+ ).optional()
1010
1139
  });
1011
1140
  var listProductsQueryPageDefault = 1;
1012
1141
  var listProductsQueryPageSizeDefault = 10;
@@ -1023,7 +1152,64 @@ var listProductsResponse = zod.strictObject({
1023
1152
  slug: zod.string(),
1024
1153
  status: zod.enum(["Tes", "Live", "Archived"]),
1025
1154
  classification: zod.enum(["Physical", "Digital"]),
1026
- variantCount: zod.number()
1155
+ variantCount: zod.number(),
1156
+ variants: zod.array(
1157
+ zod.strictObject({
1158
+ id: zod.uuid(),
1159
+ code: zod.string(),
1160
+ weight: zod.union([
1161
+ zod.null(),
1162
+ zod.strictObject({
1163
+ value: zod.number(),
1164
+ unit: zod.string()
1165
+ })
1166
+ ]),
1167
+ attributes: zod.array(
1168
+ zod.strictObject({
1169
+ id: zod.uuid(),
1170
+ name: zod.string(),
1171
+ value: zod.string(),
1172
+ position: zod.number()
1173
+ })
1174
+ ),
1175
+ pricing: zod.strictObject({
1176
+ id: zod.uuid(),
1177
+ baseAmount: zod.number(),
1178
+ baseCurrency: zod.string(),
1179
+ sale: zod.union([
1180
+ zod.null(),
1181
+ zod.strictObject({
1182
+ amount: zod.number(),
1183
+ currency: zod.string(),
1184
+ startAt: zod.iso.datetime({}),
1185
+ endAt: zod.iso.datetime({})
1186
+ })
1187
+ ]),
1188
+ wholesale: zod.array(
1189
+ zod.strictObject({
1190
+ minQty: zod.number(),
1191
+ amount: zod.number(),
1192
+ currency: zod.string(),
1193
+ position: zod.number()
1194
+ })
1195
+ )
1196
+ }),
1197
+ sources: zod.array(
1198
+ zod.strictObject({
1199
+ warehouseId: zod.uuid(),
1200
+ masterItemId: zod.uuid(),
1201
+ quantityPerUnit: zod.number()
1202
+ })
1203
+ ),
1204
+ pricingId: zod.uuid().optional()
1205
+ })
1206
+ ),
1207
+ images: zod.array(
1208
+ zod.strictObject({
1209
+ fileId: zod.uuid(),
1210
+ sortOrder: zod.number()
1211
+ })
1212
+ )
1027
1213
  })
1028
1214
  ),
1029
1215
  page: zod.number(),
@@ -1043,17 +1229,127 @@ var getProductResponse = zod.strictObject({
1043
1229
  slug: zod.string(),
1044
1230
  status: zod.enum(["Tes", "Live", "Archived"]),
1045
1231
  classification: zod.enum(["Physical", "Digital"]),
1046
- variantCount: zod.number()
1232
+ variantCount: zod.number(),
1233
+ variants: zod.array(
1234
+ zod.strictObject({
1235
+ id: zod.uuid(),
1236
+ code: zod.string(),
1237
+ weight: zod.union([
1238
+ zod.null(),
1239
+ zod.strictObject({
1240
+ value: zod.number(),
1241
+ unit: zod.string()
1242
+ })
1243
+ ]),
1244
+ attributes: zod.array(
1245
+ zod.strictObject({
1246
+ id: zod.uuid(),
1247
+ name: zod.string(),
1248
+ value: zod.string(),
1249
+ position: zod.number()
1250
+ })
1251
+ ),
1252
+ pricing: zod.strictObject({
1253
+ id: zod.uuid(),
1254
+ baseAmount: zod.number(),
1255
+ baseCurrency: zod.string(),
1256
+ sale: zod.union([
1257
+ zod.null(),
1258
+ zod.strictObject({
1259
+ amount: zod.number(),
1260
+ currency: zod.string(),
1261
+ startAt: zod.iso.datetime({}),
1262
+ endAt: zod.iso.datetime({})
1263
+ })
1264
+ ]),
1265
+ wholesale: zod.array(
1266
+ zod.strictObject({
1267
+ minQty: zod.number(),
1268
+ amount: zod.number(),
1269
+ currency: zod.string(),
1270
+ position: zod.number()
1271
+ })
1272
+ )
1273
+ }),
1274
+ sources: zod.array(
1275
+ zod.strictObject({
1276
+ warehouseId: zod.uuid(),
1277
+ masterItemId: zod.uuid(),
1278
+ quantityPerUnit: zod.number()
1279
+ })
1280
+ ),
1281
+ pricingId: zod.uuid().optional()
1282
+ })
1283
+ ),
1284
+ images: zod.array(
1285
+ zod.strictObject({
1286
+ fileId: zod.uuid(),
1287
+ sortOrder: zod.number()
1288
+ })
1289
+ )
1047
1290
  });
1048
1291
  var updateProductParams = zod.strictObject({
1049
1292
  id: zod.uuid()
1050
1293
  });
1294
+ var updateProductBodyVariantsItemSourcesItemQuantityPerUnitDefault = 1;
1051
1295
  var updateProductBody = zod.strictObject({
1052
1296
  categoryId: zod.uuid(),
1053
1297
  name: zod.string(),
1054
1298
  slug: zod.string(),
1055
1299
  status: zod.enum(["Tes", "Live", "Archived"]),
1056
- classification: zod.enum(["Physical", "Digital"])
1300
+ classification: zod.enum(["Physical", "Digital"]),
1301
+ images: zod.array(
1302
+ zod.strictObject({
1303
+ fileId: zod.uuid(),
1304
+ sortOrder: zod.number()
1305
+ })
1306
+ ).nullish(),
1307
+ variants: zod.array(
1308
+ zod.strictObject({
1309
+ id: zod.uuid().nullish(),
1310
+ code: zod.string(),
1311
+ attributes: zod.array(
1312
+ zod.strictObject({
1313
+ name: zod.string(),
1314
+ value: zod.string()
1315
+ })
1316
+ ).optional(),
1317
+ sources: zod.array(
1318
+ zod.strictObject({
1319
+ warehouseId: zod.uuid(),
1320
+ masterItemId: zod.uuid(),
1321
+ quantityPerUnit: zod.number().default(updateProductBodyVariantsItemSourcesItemQuantityPerUnitDefault)
1322
+ })
1323
+ ).optional(),
1324
+ weight: zod.union([
1325
+ zod.null(),
1326
+ zod.strictObject({
1327
+ value: zod.number(),
1328
+ unit: zod.string()
1329
+ })
1330
+ ]).optional(),
1331
+ pricing: zod.strictObject({
1332
+ baseAmount: zod.number(),
1333
+ baseCurrency: zod.string(),
1334
+ sale: zod.union([
1335
+ zod.null(),
1336
+ zod.strictObject({
1337
+ amount: zod.number(),
1338
+ currency: zod.string(),
1339
+ startAt: zod.iso.datetime({}),
1340
+ endAt: zod.iso.datetime({})
1341
+ })
1342
+ ]).optional(),
1343
+ wholesale: zod.array(
1344
+ zod.strictObject({
1345
+ minQty: zod.number(),
1346
+ amount: zod.number(),
1347
+ currency: zod.string()
1348
+ })
1349
+ ).optional()
1350
+ })
1351
+ })
1352
+ ).optional()
1057
1353
  });
1058
1354
  var updateProductResponse = zod.strictObject({
1059
1355
  id: zod.uuid(),
@@ -1062,192 +1358,260 @@ var updateProductResponse = zod.strictObject({
1062
1358
  slug: zod.string(),
1063
1359
  status: zod.enum(["Tes", "Live", "Archived"]),
1064
1360
  classification: zod.enum(["Physical", "Digital"]),
1065
- variantCount: zod.number()
1066
- });
1067
- var deleteProductParams = zod.strictObject({
1068
- id: zod.uuid()
1069
- });
1070
- var createVariantParams = zod.strictObject({
1071
- productId: zod.uuid()
1072
- });
1073
- var createVariantBody = zod.strictObject({
1074
- code: zod.string(),
1075
- attributes: zod.array(
1076
- zod.strictObject({
1077
- name: zod.string(),
1078
- value: zod.string()
1079
- })
1080
- ).optional(),
1081
- weight: zod.strictObject({
1082
- value: zod.number(),
1083
- unit: zod.string()
1084
- })
1085
- });
1086
- var listVariantsParams = zod.strictObject({
1087
- productId: zod.uuid()
1088
- });
1089
- var listVariantsQueryPageDefault = 1;
1090
- var listVariantsQueryPageSizeDefault = 10;
1091
- var listVariantsQueryParams = zod.strictObject({
1092
- page: zod.coerce.number().default(listVariantsQueryPageDefault),
1093
- pageSize: zod.coerce.number().default(listVariantsQueryPageSizeDefault)
1094
- });
1095
- var listVariantsResponse = zod.strictObject({
1096
- items: zod.array(
1361
+ variantCount: zod.number(),
1362
+ variants: zod.array(
1097
1363
  zod.strictObject({
1098
1364
  id: zod.uuid(),
1099
- productId: zod.uuid(),
1100
1365
  code: zod.string(),
1366
+ weight: zod.union([
1367
+ zod.null(),
1368
+ zod.strictObject({
1369
+ value: zod.number(),
1370
+ unit: zod.string()
1371
+ })
1372
+ ]),
1101
1373
  attributes: zod.array(
1102
1374
  zod.strictObject({
1375
+ id: zod.uuid(),
1103
1376
  name: zod.string(),
1104
- value: zod.string()
1377
+ value: zod.string(),
1378
+ position: zod.number()
1105
1379
  })
1106
- ).optional(),
1107
- weight: zod.strictObject({
1108
- value: zod.number(),
1109
- unit: zod.string()
1110
- })
1380
+ ),
1381
+ pricing: zod.strictObject({
1382
+ id: zod.uuid(),
1383
+ baseAmount: zod.number(),
1384
+ baseCurrency: zod.string(),
1385
+ sale: zod.union([
1386
+ zod.null(),
1387
+ zod.strictObject({
1388
+ amount: zod.number(),
1389
+ currency: zod.string(),
1390
+ startAt: zod.iso.datetime({}),
1391
+ endAt: zod.iso.datetime({})
1392
+ })
1393
+ ]),
1394
+ wholesale: zod.array(
1395
+ zod.strictObject({
1396
+ minQty: zod.number(),
1397
+ amount: zod.number(),
1398
+ currency: zod.string(),
1399
+ position: zod.number()
1400
+ })
1401
+ )
1402
+ }),
1403
+ sources: zod.array(
1404
+ zod.strictObject({
1405
+ warehouseId: zod.uuid(),
1406
+ masterItemId: zod.uuid(),
1407
+ quantityPerUnit: zod.number()
1408
+ })
1409
+ ),
1410
+ pricingId: zod.uuid().optional()
1111
1411
  })
1112
1412
  ),
1113
- page: zod.number(),
1114
- pageSize: zod.number(),
1115
- totalCount: zod.number(),
1116
- totalPages: zod.number().optional(),
1117
- hasNextPage: zod.boolean().optional(),
1118
- hasPreviousPage: zod.boolean().optional()
1413
+ images: zod.array(
1414
+ zod.strictObject({
1415
+ fileId: zod.uuid(),
1416
+ sortOrder: zod.number()
1417
+ })
1418
+ )
1119
1419
  });
1120
- var getVariantParams = zod.strictObject({
1121
- productId: zod.uuid(),
1420
+ var deleteProductParams = zod.strictObject({
1122
1421
  id: zod.uuid()
1123
1422
  });
1124
- var getVariantResponse = zod.strictObject({
1125
- id: zod.uuid(),
1126
- productId: zod.uuid(),
1423
+ var listCouriersResponseItem = zod.strictObject({
1127
1424
  code: zod.string(),
1128
- attributes: zod.array(
1129
- zod.strictObject({
1130
- name: zod.string(),
1131
- value: zod.string()
1132
- })
1133
- ).optional(),
1134
- weight: zod.strictObject({
1135
- value: zod.number(),
1136
- unit: zod.string()
1137
- })
1425
+ name: zod.string(),
1426
+ services: zod.array(zod.string())
1138
1427
  });
1139
- var updateVariantParams = zod.strictObject({
1140
- productId: zod.uuid(),
1141
- id: zod.uuid()
1428
+ var listCouriersResponse = zod.array(listCouriersResponseItem);
1429
+ var getCourierByCodeParams = zod.strictObject({
1430
+ code: zod.string()
1142
1431
  });
1143
- var updateVariantBody = zod.strictObject({
1432
+ var getCourierByCodeResponse = zod.strictObject({
1144
1433
  code: zod.string(),
1145
- attributes: zod.array(
1434
+ name: zod.string(),
1435
+ services: zod.array(zod.string())
1436
+ });
1437
+ var getProductShippingConfigParams = zod.strictObject({
1438
+ productId: zod.uuid()
1439
+ });
1440
+ var getProductShippingConfigResponse = zod.strictObject({
1441
+ mode: zod.enum(["Auto", "Flat", "Free"]),
1442
+ flatAmount: zod.number(),
1443
+ useStoreDefaults: zod.boolean(),
1444
+ services: zod.array(
1146
1445
  zod.strictObject({
1147
- name: zod.string(),
1148
- value: zod.string()
1446
+ code: zod.string(),
1447
+ enabled: zod.boolean(),
1448
+ couriers: zod.array(zod.string())
1149
1449
  })
1150
- ).optional(),
1151
- weight: zod.strictObject({
1152
- value: zod.number(),
1153
- unit: zod.string()
1154
- })
1155
- });
1156
- var updateVariantResponse = zod.strictObject({
1157
- id: zod.uuid(),
1158
- productId: zod.uuid(),
1159
- code: zod.string(),
1160
- attributes: zod.array(
1450
+ ),
1451
+ extraFee: zod.number(),
1452
+ discount: zod.union([
1453
+ zod.null(),
1161
1454
  zod.strictObject({
1162
- name: zod.string(),
1163
- value: zod.string()
1455
+ type: zod.enum(["Fixed", "Percent"]),
1456
+ value: zod.number()
1164
1457
  })
1165
- ).optional(),
1166
- weight: zod.strictObject({
1167
- value: zod.number(),
1168
- unit: zod.string()
1458
+ ]),
1459
+ display: zod.strictObject({
1460
+ mergeExtraFee: zod.boolean(),
1461
+ showOriginalPrice: zod.boolean(),
1462
+ hideCouriers: zod.boolean(),
1463
+ hideOrigin: zod.boolean()
1464
+ }),
1465
+ coverageCheck: zod.strictObject({
1466
+ enabled: zod.boolean(),
1467
+ onUncovered: zod.union([
1468
+ zod.null(),
1469
+ zod.union([zod.literal("Block"), zod.literal("Allow"), zod.literal(null)])
1470
+ ])
1169
1471
  })
1170
1472
  });
1171
- var deleteVariantParams = zod.strictObject({
1172
- productId: zod.uuid(),
1173
- id: zod.uuid()
1174
- });
1175
- var getVariantPricingParams = zod.strictObject({
1176
- variantId: zod.uuid()
1473
+ var setProductShippingConfigParams = zod.strictObject({
1474
+ productId: zod.uuid()
1177
1475
  });
1178
- var getVariantPricingResponse = zod.strictObject({
1179
- variantId: zod.uuid(),
1180
- baseAmount: zod.number(),
1181
- baseCurrency: zod.string(),
1182
- effectiveAmount: zod.number(),
1183
- effectiveCurrency: zod.string(),
1184
- sale: zod.union([
1185
- zod.null(),
1476
+ var setProductShippingConfigBody = zod.strictObject({
1477
+ mode: zod.union([zod.null(), zod.enum(["Auto", "Flat", "Free"])]),
1478
+ flatAmount: zod.number(),
1479
+ useStoreDefaults: zod.boolean(),
1480
+ services: zod.array(
1186
1481
  zod.strictObject({
1187
- amount: zod.number(),
1188
- currency: zod.string(),
1189
- startAt: zod.iso.datetime({}),
1190
- endAt: zod.iso.datetime({}),
1191
- isActive: zod.boolean()
1482
+ code: zod.string(),
1483
+ enabled: zod.boolean(),
1484
+ couriers: zod.array(zod.string()).nullable()
1192
1485
  })
1193
- ]).optional(),
1194
- wholesale: zod.array(
1486
+ ).nullable(),
1487
+ extraFee: zod.number(),
1488
+ discount: zod.union([
1489
+ zod.null(),
1195
1490
  zod.strictObject({
1196
- minQty: zod.number(),
1197
- amount: zod.number(),
1198
- currency: zod.string()
1491
+ type: zod.enum(["Fixed", "Percent"]),
1492
+ value: zod.number()
1199
1493
  })
1200
- ).optional()
1201
- });
1202
- var upsertVariantPricingParams = zod.strictObject({
1203
- variantId: zod.uuid()
1204
- });
1205
- var upsertVariantPricingBody = zod.strictObject({
1206
- baseAmount: zod.number(),
1207
- baseCurrency: zod.string(),
1208
- sale: zod.union([
1494
+ ]),
1495
+ display: zod.union([
1209
1496
  zod.null(),
1210
1497
  zod.strictObject({
1211
- amount: zod.number(),
1212
- currency: zod.string(),
1213
- startAt: zod.iso.datetime({}),
1214
- endAt: zod.iso.datetime({})
1498
+ mergeExtraFee: zod.boolean(),
1499
+ showOriginalPrice: zod.boolean(),
1500
+ hideCouriers: zod.boolean(),
1501
+ hideOrigin: zod.boolean()
1215
1502
  })
1216
- ]).optional(),
1217
- wholesale: zod.array(
1503
+ ]),
1504
+ coverageCheck: zod.union([
1505
+ zod.null(),
1218
1506
  zod.strictObject({
1219
- minQty: zod.number(),
1220
- amount: zod.number(),
1221
- currency: zod.string()
1507
+ enabled: zod.boolean(),
1508
+ onUncovered: zod.union([
1509
+ zod.null(),
1510
+ zod.union([zod.literal("Block"), zod.literal("Allow"), zod.literal(null)])
1511
+ ])
1222
1512
  })
1223
- ).optional()
1513
+ ])
1224
1514
  });
1225
- var upsertVariantPricingResponse = zod.strictObject({
1226
- variantId: zod.uuid(),
1227
- baseAmount: zod.number(),
1228
- baseCurrency: zod.string(),
1229
- effectiveAmount: zod.number(),
1230
- effectiveCurrency: zod.string(),
1231
- sale: zod.union([
1232
- zod.null(),
1515
+ var listBanksResponseItem = zod.strictObject({
1516
+ code: zod.string(),
1517
+ name: zod.string().nullable()
1518
+ });
1519
+ var listBanksResponse = zod.array(listBanksResponseItem);
1520
+ var getBankByCodeParams = zod.strictObject({
1521
+ code: zod.string()
1522
+ });
1523
+ var getBankByCodeResponse = zod.strictObject({
1524
+ code: zod.string(),
1525
+ name: zod.string().nullable()
1526
+ });
1527
+ var createBankAccountBody = zod.strictObject({
1528
+ bankCode: zod.string(),
1529
+ accountNumber: zod.string(),
1530
+ accountHolderName: zod.string(),
1531
+ customBankName: zod.string().nullish(),
1532
+ isActive: zod.boolean().optional()
1533
+ });
1534
+ var getProductPaymentConfigParams = zod.strictObject({
1535
+ productId: zod.uuid()
1536
+ });
1537
+ var getProductPaymentConfigResponse = zod.strictObject({
1538
+ useStoreDefaults: zod.boolean(),
1539
+ methods: zod.array(
1233
1540
  zod.strictObject({
1234
- amount: zod.number(),
1235
- currency: zod.string(),
1236
- startAt: zod.iso.datetime({}),
1237
- endAt: zod.iso.datetime({}),
1238
- isActive: zod.boolean()
1541
+ type: zod.enum(["BankTransfer", "Cod", "EPayment"]),
1542
+ enabled: zod.boolean(),
1543
+ accounts: zod.array(
1544
+ zod.strictObject({
1545
+ bankAccountId: zod.uuid(),
1546
+ enabled: zod.boolean(),
1547
+ sortOrder: zod.number()
1548
+ })
1549
+ ),
1550
+ uniqueCode: zod.union([
1551
+ zod.null(),
1552
+ zod.strictObject({
1553
+ enabled: zod.boolean(),
1554
+ direction: zod.union([
1555
+ zod.null(),
1556
+ zod.union([zod.literal("Increase"), zod.literal("Decrease"), zod.literal(null)])
1557
+ ])
1558
+ })
1559
+ ]),
1560
+ courierFeePercent: zod.number(),
1561
+ feeType: zod.union([
1562
+ zod.null(),
1563
+ zod.union([
1564
+ zod.literal("Product"),
1565
+ zod.literal("Shipping"),
1566
+ zod.literal("ProductAndShipping"),
1567
+ zod.literal(null)
1568
+ ])
1569
+ ]),
1570
+ minFee: zod.number(),
1571
+ maxFee: zod.number(),
1572
+ adminFeeBorneBy: zod.union([
1573
+ zod.null(),
1574
+ zod.union([zod.literal("Seller"), zod.literal("Buyer"), zod.literal(null)])
1575
+ ]),
1576
+ channels: zod.array(
1577
+ zod.strictObject({
1578
+ code: zod.string(),
1579
+ enabled: zod.boolean(),
1580
+ sortOrder: zod.number()
1581
+ })
1582
+ )
1239
1583
  })
1240
- ]).optional(),
1241
- wholesale: zod.array(
1584
+ ),
1585
+ tax: zod.strictObject({
1586
+ enabled: zod.boolean(),
1587
+ ratePercent: zod.number(),
1588
+ priceIncludesTax: zod.boolean()
1589
+ })
1590
+ });
1591
+ var getProductAssignmentParams = zod.strictObject({
1592
+ productId: zod.uuid()
1593
+ });
1594
+ var getProductAssignmentResponse = zod.strictObject({
1595
+ distribution: zod.enum(["Equal", "Percentage", "Fixed"]),
1596
+ members: zod.array(
1242
1597
  zod.strictObject({
1243
- minQty: zod.number(),
1244
- amount: zod.number(),
1245
- currency: zod.string()
1598
+ userId: zod.uuid(),
1599
+ value: zod.number()
1246
1600
  })
1247
- ).optional()
1601
+ ),
1602
+ nextMemberIndex: zod.number()
1248
1603
  });
1249
- var deleteVariantPricingParams = zod.strictObject({
1250
- variantId: zod.uuid()
1604
+ var setProductAssignmentParams = zod.strictObject({
1605
+ productId: zod.uuid()
1606
+ });
1607
+ var setProductAssignmentBody = zod.strictObject({
1608
+ distribution: zod.union([zod.null(), zod.enum(["Equal", "Percentage", "Fixed"])]),
1609
+ members: zod.array(
1610
+ zod.strictObject({
1611
+ userId: zod.uuid(),
1612
+ value: zod.number()
1613
+ })
1614
+ ).nullable()
1251
1615
  });
1252
1616
  var createStockItemsBody = zod.strictObject({
1253
1617
  name: zod.string(),
@@ -1301,9 +1665,10 @@ var createBatchBody = zod.strictObject({
1301
1665
  receivedBy: zod.string().nullish()
1302
1666
  });
1303
1667
  var consumeBatchParams = zod.strictObject({
1304
- id: zod.uuid().describe("Batch identifier.")
1668
+ itemId: zod.uuid().describe("Stock item identifier.")
1305
1669
  });
1306
1670
  var consumeBatchBody = zod.strictObject({
1671
+ warehouseId: zod.uuid(),
1307
1672
  quantity: zod.number(),
1308
1673
  sourceType: zod.enum([
1309
1674
  "LOAN_OUT",
@@ -1488,32 +1853,36 @@ var postApiIdentityAdminUsersIdLogoutParams = zod.strictObject({
1488
1853
  id: zod.uuid()
1489
1854
  });
1490
1855
  export {
1856
+ AdminFeeBorneBy,
1857
+ AssignmentDistributionKind,
1858
+ CodFeeType,
1491
1859
  ConsumeBatchSourceType,
1860
+ PaymentMethodType,
1492
1861
  ProductClassification,
1493
1862
  ProductStatus,
1863
+ ShippingCoverageAction,
1864
+ ShippingDiscountType,
1865
+ ShippingMode,
1494
1866
  SourceTypeEnum,
1867
+ UniqueCodeDirection,
1495
1868
  consumeBatch,
1496
1869
  consumeBatchBody,
1497
1870
  consumeBatchParams,
1871
+ createBankAccount,
1872
+ createBankAccountBody,
1498
1873
  createBatch,
1499
1874
  createBatchBody,
1500
1875
  createProduct,
1501
1876
  createProductBody,
1877
+ createProductBodyVariantsItemSourcesItemQuantityPerUnitDefault,
1502
1878
  createStockItems,
1503
1879
  createStockItemsBody,
1504
- createVariant,
1505
- createVariantBody,
1506
- createVariantParams,
1507
1880
  createWarehouse,
1508
1881
  createWarehouseBody,
1509
1882
  deleteApiIdentityAdminRolesId,
1510
1883
  deleteApiIdentityAdminRolesIdParams,
1511
1884
  deleteProduct,
1512
1885
  deleteProductParams,
1513
- deleteVariant,
1514
- deleteVariantParams,
1515
- deleteVariantPricing,
1516
- deleteVariantPricingParams,
1517
1886
  deleteWarehouse,
1518
1887
  deleteWarehouseParams,
1519
1888
  getApiIdentityAdminPermissions,
@@ -1542,16 +1911,20 @@ export {
1542
1911
  getApiIdentityManage2faResponse,
1543
1912
  getApiIdentityManageInfo,
1544
1913
  getApiIdentityManageInfoResponse,
1914
+ getBankByCode,
1915
+ getBankByCodeParams,
1916
+ getBankByCodeResponse,
1545
1917
  getConsumeBatchMutationOptions,
1918
+ getCourierByCode,
1919
+ getCourierByCodeParams,
1920
+ getCourierByCodeResponse,
1921
+ getCreateBankAccountMutationOptions,
1546
1922
  getCreateBatchMutationOptions,
1547
1923
  getCreateProductMutationOptions,
1548
1924
  getCreateStockItemsMutationOptions,
1549
- getCreateVariantMutationOptions,
1550
1925
  getCreateWarehouseMutationOptions,
1551
1926
  getDeleteApiIdentityAdminRolesIdMutationOptions,
1552
1927
  getDeleteProductMutationOptions,
1553
- getDeleteVariantMutationOptions,
1554
- getDeleteVariantPricingMutationOptions,
1555
1928
  getDeleteWarehouseMutationOptions,
1556
1929
  getGetApiIdentityAdminPermissionsQueryKey,
1557
1930
  getGetApiIdentityAdminPermissionsQueryOptions,
@@ -1571,27 +1944,35 @@ export {
1571
1944
  getGetApiIdentityManage2faQueryOptions,
1572
1945
  getGetApiIdentityManageInfoQueryKey,
1573
1946
  getGetApiIdentityManageInfoQueryOptions,
1947
+ getGetBankByCodeQueryKey,
1948
+ getGetBankByCodeQueryOptions,
1949
+ getGetCourierByCodeQueryKey,
1950
+ getGetCourierByCodeQueryOptions,
1574
1951
  getGetHealthQueryKey,
1575
1952
  getGetHealthQueryOptions,
1953
+ getGetProductAssignmentQueryKey,
1954
+ getGetProductAssignmentQueryOptions,
1955
+ getGetProductPaymentConfigQueryKey,
1956
+ getGetProductPaymentConfigQueryOptions,
1576
1957
  getGetProductQueryKey,
1577
1958
  getGetProductQueryOptions,
1578
- getGetVariantPricingQueryKey,
1579
- getGetVariantPricingQueryOptions,
1580
- getGetVariantQueryKey,
1581
- getGetVariantQueryOptions,
1959
+ getGetProductShippingConfigQueryKey,
1960
+ getGetProductShippingConfigQueryOptions,
1582
1961
  getGetWarehouseByIdQueryKey,
1583
1962
  getGetWarehouseByIdQueryOptions,
1584
1963
  getGetWarehouseOptionsQueryKey,
1585
1964
  getGetWarehouseOptionsQueryOptions,
1586
1965
  getHealth,
1966
+ getListBanksQueryKey,
1967
+ getListBanksQueryOptions,
1968
+ getListCouriersQueryKey,
1969
+ getListCouriersQueryOptions,
1587
1970
  getListProductsQueryKey,
1588
1971
  getListProductsQueryOptions,
1589
1972
  getListStockItemsQueryKey,
1590
1973
  getListStockItemsQueryOptions,
1591
1974
  getListStockMovementsQueryKey,
1592
1975
  getListStockMovementsQueryOptions,
1593
- getListVariantsQueryKey,
1594
- getListVariantsQueryOptions,
1595
1976
  getListWarehousesQueryKey,
1596
1977
  getListWarehousesQueryOptions,
1597
1978
  getPostApiIdentityAdminRolesMutationOptions,
@@ -1603,31 +1984,40 @@ export {
1603
1984
  getPostApiIdentityManageInfoMutationOptions,
1604
1985
  getPostApiIdentityResetPasswordMutationOptions,
1605
1986
  getProduct,
1987
+ getProductAssignment,
1988
+ getProductAssignmentParams,
1989
+ getProductAssignmentResponse,
1606
1990
  getProductParams,
1991
+ getProductPaymentConfig,
1992
+ getProductPaymentConfigParams,
1993
+ getProductPaymentConfigResponse,
1607
1994
  getProductResponse,
1995
+ getProductShippingConfig,
1996
+ getProductShippingConfigParams,
1997
+ getProductShippingConfigResponse,
1608
1998
  getPutApiIdentityAdminRolesIdMutationOptions,
1609
1999
  getPutApiIdentityAdminRolesIdPermissionsMutationOptions,
1610
2000
  getPutApiIdentityAdminUsersIdActiveMutationOptions,
1611
2001
  getPutApiIdentityAdminUsersIdRolesMutationOptions,
1612
2002
  getSearchAddressesQueryKey,
1613
2003
  getSearchAddressesQueryOptions,
2004
+ getSetProductAssignmentMutationOptions,
2005
+ getSetProductShippingConfigMutationOptions,
1614
2006
  getToggleWarehouseStatusMutationOptions,
1615
2007
  getUpdateProductMutationOptions,
1616
- getUpdateVariantMutationOptions,
1617
2008
  getUpdateWarehouseMutationOptions,
1618
- getUpsertVariantPricingMutationOptions,
1619
- getVariant,
1620
- getVariantParams,
1621
- getVariantPricing,
1622
- getVariantPricingParams,
1623
- getVariantPricingResponse,
1624
- getVariantResponse,
1625
2009
  getWarehouseById,
1626
2010
  getWarehouseByIdParams,
1627
2011
  getWarehouseByIdResponse,
1628
2012
  getWarehouseOptions,
1629
2013
  getWarehouseOptionsResponse,
1630
2014
  getWarehouseOptionsResponseItem,
2015
+ listBanks,
2016
+ listBanksResponse,
2017
+ listBanksResponseItem,
2018
+ listCouriers,
2019
+ listCouriersResponse,
2020
+ listCouriersResponseItem,
1631
2021
  listProducts,
1632
2022
  listProductsQueryPageDefault,
1633
2023
  listProductsQueryPageSizeDefault,
@@ -1645,12 +2035,6 @@ export {
1645
2035
  listStockMovementsQueryPageSizeDefault,
1646
2036
  listStockMovementsQueryParams,
1647
2037
  listStockMovementsResponse,
1648
- listVariants,
1649
- listVariantsParams,
1650
- listVariantsQueryPageDefault,
1651
- listVariantsQueryPageSizeDefault,
1652
- listVariantsQueryParams,
1653
- listVariantsResponse,
1654
2038
  listWarehouses,
1655
2039
  listWarehousesQueryPageDefault,
1656
2040
  listWarehousesQueryPageSizeDefault,
@@ -1691,33 +2075,30 @@ export {
1691
2075
  searchAddressesQueryParams,
1692
2076
  searchAddressesResponse,
1693
2077
  searchAddressesResponseItem,
2078
+ setProductAssignment,
2079
+ setProductAssignmentBody,
2080
+ setProductAssignmentParams,
2081
+ setProductShippingConfig,
2082
+ setProductShippingConfigBody,
2083
+ setProductShippingConfigParams,
1694
2084
  toggleWarehouseStatus,
1695
2085
  toggleWarehouseStatusParams,
1696
2086
  updateProduct,
1697
2087
  updateProductBody,
2088
+ updateProductBodyVariantsItemSourcesItemQuantityPerUnitDefault,
1698
2089
  updateProductParams,
1699
2090
  updateProductResponse,
1700
- updateVariant,
1701
- updateVariantBody,
1702
- updateVariantParams,
1703
- updateVariantResponse,
1704
2091
  updateWarehouse,
1705
2092
  updateWarehouseBody,
1706
2093
  updateWarehouseParams,
1707
- upsertVariantPricing,
1708
- upsertVariantPricingBody,
1709
- upsertVariantPricingParams,
1710
- upsertVariantPricingResponse,
1711
2094
  useConsumeBatch,
2095
+ useCreateBankAccount,
1712
2096
  useCreateBatch,
1713
2097
  useCreateProduct,
1714
2098
  useCreateStockItems,
1715
- useCreateVariant,
1716
2099
  useCreateWarehouse,
1717
2100
  useDeleteApiIdentityAdminRolesId,
1718
2101
  useDeleteProduct,
1719
- useDeleteVariant,
1720
- useDeleteVariantPricing,
1721
2102
  useDeleteWarehouse,
1722
2103
  useGetApiIdentityAdminPermissions,
1723
2104
  useGetApiIdentityAdminRoles,
@@ -1728,16 +2109,20 @@ export {
1728
2109
  useGetApiIdentityAntiforgery,
1729
2110
  useGetApiIdentityManage2fa,
1730
2111
  useGetApiIdentityManageInfo,
2112
+ useGetBankByCode,
2113
+ useGetCourierByCode,
1731
2114
  useGetHealth,
1732
2115
  useGetProduct,
1733
- useGetVariant,
1734
- useGetVariantPricing,
2116
+ useGetProductAssignment,
2117
+ useGetProductPaymentConfig,
2118
+ useGetProductShippingConfig,
1735
2119
  useGetWarehouseById,
1736
2120
  useGetWarehouseOptions,
2121
+ useListBanks,
2122
+ useListCouriers,
1737
2123
  useListProducts,
1738
2124
  useListStockItems,
1739
2125
  useListStockMovements,
1740
- useListVariants,
1741
2126
  useListWarehouses,
1742
2127
  usePostApiIdentityAdminRoles,
1743
2128
  usePostApiIdentityAdminUsersIdLogout,
@@ -1752,10 +2137,10 @@ export {
1752
2137
  usePutApiIdentityAdminUsersIdActive,
1753
2138
  usePutApiIdentityAdminUsersIdRoles,
1754
2139
  useSearchAddresses,
2140
+ useSetProductAssignment,
2141
+ useSetProductShippingConfig,
1755
2142
  useToggleWarehouseStatus,
1756
2143
  useUpdateProduct,
1757
- useUpdateVariant,
1758
- useUpdateWarehouse,
1759
- useUpsertVariantPricing
2144
+ useUpdateWarehouse
1760
2145
  };
1761
2146
  //# sourceMappingURL=index.mjs.map