@instockng/api-client 1.0.8 → 1.0.10
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/fetchers/brands.d.ts +1 -1
- package/dist/fetchers/carts.d.ts +85 -47
- package/dist/fetchers/delivery-zones.d.ts +2 -0
- package/dist/fetchers/orders.d.ts +26 -14
- package/dist/fetchers/products.d.ts +14 -6
- package/dist/hooks/admin/abandoned-carts.d.ts +18 -10
- package/dist/hooks/admin/brands.d.ts +4 -4
- package/dist/hooks/admin/customers.d.ts +13 -7
- package/dist/hooks/admin/delivery-zones.d.ts +23 -15
- package/dist/hooks/admin/discount-codes.d.ts +10 -10
- package/dist/hooks/admin/inventory.d.ts +4 -0
- package/dist/hooks/admin/orders.d.ts +78 -42
- package/dist/hooks/admin/products.d.ts +14 -6
- package/dist/hooks/admin/stats.d.ts +13 -7
- package/dist/hooks/admin/variants.d.ts +5 -5
- package/dist/hooks/admin/warehouses.d.ts +11 -7
- package/dist/hooks/public/brands.d.ts +1 -1
- package/dist/hooks/public/carts.d.ts +85 -47
- package/dist/hooks/public/delivery-zones.d.ts +2 -0
- package/dist/hooks/public/orders.d.ts +26 -14
- package/dist/hooks/public/products.d.ts +14 -6
- package/dist/rpc-client.d.ts +335 -187
- package/package.json +1 -1
- package/dist/apps/backend/src/generated/zod/index.d.ts +0 -1114
- package/dist/apps/backend/src/generated/zod/index.js +0 -670
- package/dist/apps/backend/src/http-app.d.ts +0 -40
- package/dist/apps/backend/src/http-app.js +0 -134
- package/dist/apps/backend/src/lib/brand-response.d.ts +0 -14
- package/dist/apps/backend/src/lib/brand-response.js +0 -8
- package/dist/apps/backend/src/lib/cart-helpers.d.ts +0 -282
- package/dist/apps/backend/src/lib/cart-helpers.js +0 -121
- package/dist/apps/backend/src/lib/cart-recovery.d.ts +0 -30
- package/dist/apps/backend/src/lib/cart-recovery.js +0 -147
- package/dist/apps/backend/src/lib/cart-response.d.ts +0 -121
- package/dist/apps/backend/src/lib/cart-response.js +0 -150
- package/dist/apps/backend/src/lib/clerk.d.ts +0 -18
- package/dist/apps/backend/src/lib/clerk.js +0 -190
- package/dist/apps/backend/src/lib/delivery-zone-response.d.ts +0 -64
- package/dist/apps/backend/src/lib/delivery-zone-response.js +0 -24
- package/dist/apps/backend/src/lib/discount-code-response.d.ts +0 -42
- package/dist/apps/backend/src/lib/discount-code-response.js +0 -19
- package/dist/apps/backend/src/lib/discount.d.ts +0 -20
- package/dist/apps/backend/src/lib/discount.js +0 -35
- package/dist/apps/backend/src/lib/inventory.d.ts +0 -26
- package/dist/apps/backend/src/lib/inventory.js +0 -160
- package/dist/apps/backend/src/lib/meta-capi.d.ts +0 -53
- package/dist/apps/backend/src/lib/meta-capi.js +0 -151
- package/dist/apps/backend/src/lib/openapi.d.ts +0 -36
- package/dist/apps/backend/src/lib/openapi.js +0 -69
- package/dist/apps/backend/src/lib/order-recovery.d.ts +0 -459
- package/dist/apps/backend/src/lib/order-recovery.js +0 -378
- package/dist/apps/backend/src/lib/order-response.d.ts +0 -138
- package/dist/apps/backend/src/lib/order-response.js +0 -61
- package/dist/apps/backend/src/lib/pricing.d.ts +0 -39
- package/dist/apps/backend/src/lib/pricing.js +0 -62
- package/dist/apps/backend/src/lib/prisma.d.ts +0 -9
- package/dist/apps/backend/src/lib/prisma.js +0 -30
- package/dist/apps/backend/src/lib/product-response.d.ts +0 -82
- package/dist/apps/backend/src/lib/product-response.js +0 -29
- package/dist/apps/backend/src/lib/sentry.d.ts +0 -48
- package/dist/apps/backend/src/lib/sentry.js +0 -180
- package/dist/apps/backend/src/lib/utils.d.ts +0 -32
- package/dist/apps/backend/src/lib/utils.js +0 -63
- package/dist/apps/backend/src/middleware/clerk-auth.d.ts +0 -8
- package/dist/apps/backend/src/middleware/clerk-auth.js +0 -89
- package/dist/apps/backend/src/middleware/cors.d.ts +0 -8
- package/dist/apps/backend/src/middleware/cors.js +0 -11
- package/dist/apps/backend/src/notifications/producers/meta-capi-producer.d.ts +0 -62
- package/dist/apps/backend/src/notifications/producers/meta-capi-producer.js +0 -180
- package/dist/apps/backend/src/notifications/producers/order-notification.d.ts +0 -9
- package/dist/apps/backend/src/notifications/producers/order-notification.js +0 -18
- package/dist/apps/backend/src/notifications/producers/prospect-recovery-notification.d.ts +0 -10
- package/dist/apps/backend/src/notifications/producers/prospect-recovery-notification.js +0 -11
- package/dist/apps/backend/src/routes/admin/abandoned-carts.d.ts +0 -605
- package/dist/apps/backend/src/routes/admin/abandoned-carts.js +0 -194
- package/dist/apps/backend/src/routes/admin/brands.d.ts +0 -175
- package/dist/apps/backend/src/routes/admin/brands.js +0 -118
- package/dist/apps/backend/src/routes/admin/customers.d.ts +0 -308
- package/dist/apps/backend/src/routes/admin/customers.js +0 -39
- package/dist/apps/backend/src/routes/admin/delivery-zones.d.ts +0 -446
- package/dist/apps/backend/src/routes/admin/delivery-zones.js +0 -300
- package/dist/apps/backend/src/routes/admin/discount-codes.d.ts +0 -478
- package/dist/apps/backend/src/routes/admin/discount-codes.js +0 -418
- package/dist/apps/backend/src/routes/admin/inventory.d.ts +0 -273
- package/dist/apps/backend/src/routes/admin/inventory.js +0 -199
- package/dist/apps/backend/src/routes/admin/orders.d.ts +0 -1780
- package/dist/apps/backend/src/routes/admin/orders.js +0 -552
- package/dist/apps/backend/src/routes/admin/products.d.ts +0 -860
- package/dist/apps/backend/src/routes/admin/products.js +0 -126
- package/dist/apps/backend/src/routes/admin/stats.d.ts +0 -290
- package/dist/apps/backend/src/routes/admin/stats.js +0 -55
- package/dist/apps/backend/src/routes/admin/variants.d.ts +0 -239
- package/dist/apps/backend/src/routes/admin/variants.js +0 -197
- package/dist/apps/backend/src/routes/admin/warehouses.d.ts +0 -373
- package/dist/apps/backend/src/routes/admin/warehouses.js +0 -123
- package/dist/apps/backend/src/routes/public/brands.d.ts +0 -40
- package/dist/apps/backend/src/routes/public/brands.js +0 -38
- package/dist/apps/backend/src/routes/public/carts.d.ts +0 -2657
- package/dist/apps/backend/src/routes/public/carts.js +0 -778
- package/dist/apps/backend/src/routes/public/delivery-zones.d.ts +0 -37
- package/dist/apps/backend/src/routes/public/delivery-zones.js +0 -64
- package/dist/apps/backend/src/routes/public/orders.d.ts +0 -609
- package/dist/apps/backend/src/routes/public/orders.js +0 -184
- package/dist/apps/backend/src/routes/public/products.d.ts +0 -449
- package/dist/apps/backend/src/routes/public/products.js +0 -133
- package/dist/apps/backend/src/types/index.d.ts +0 -43
- package/dist/apps/backend/src/types/index.js +0 -2
- package/dist/apps/backend/src/validators/brand.d.ts +0 -17
- package/dist/apps/backend/src/validators/brand.js +0 -15
- package/dist/apps/backend/src/validators/delivery-zone.d.ts +0 -35
- package/dist/apps/backend/src/validators/delivery-zone.js +0 -55
- package/dist/apps/backend/src/validators/discount-code.d.ts +0 -74
- package/dist/apps/backend/src/validators/discount-code.js +0 -50
- package/dist/apps/backend/src/validators/inventory.d.ts +0 -20
- package/dist/apps/backend/src/validators/inventory.js +0 -15
- package/dist/apps/backend/src/validators/order.d.ts +0 -58
- package/dist/apps/backend/src/validators/order.js +0 -62
- package/dist/apps/backend/src/validators/product.d.ts +0 -18
- package/dist/apps/backend/src/validators/product.js +0 -19
- package/dist/apps/backend/src/validators/variant.d.ts +0 -19
- package/dist/apps/backend/src/validators/variant.js +0 -19
- package/dist/apps/backend/src/validators/warehouse.d.ts +0 -15
- package/dist/apps/backend/src/validators/warehouse.js +0 -15
- package/dist/packages/api-client/src/backend-types.d.ts +0 -10
- package/dist/packages/api-client/src/backend-types.js +0 -10
- package/dist/packages/api-client/src/client.d.ts +0 -20
- package/dist/packages/api-client/src/client.js +0 -40
- package/dist/packages/api-client/src/enum-types.d.ts +0 -8
- package/dist/packages/api-client/src/enum-types.js +0 -5
- package/dist/packages/api-client/src/fetchers/brands.d.ts +0 -25
- package/dist/packages/api-client/src/fetchers/brands.js +0 -26
- package/dist/packages/api-client/src/fetchers/carts.d.ts +0 -2337
- package/dist/packages/api-client/src/fetchers/carts.js +0 -174
- package/dist/packages/api-client/src/fetchers/delivery-zones.d.ts +0 -30
- package/dist/packages/api-client/src/fetchers/delivery-zones.js +0 -26
- package/dist/packages/api-client/src/fetchers/index.d.ts +0 -22
- package/dist/packages/api-client/src/fetchers/index.js +0 -22
- package/dist/packages/api-client/src/fetchers/orders.d.ts +0 -544
- package/dist/packages/api-client/src/fetchers/orders.js +0 -44
- package/dist/packages/api-client/src/fetchers/products.d.ts +0 -386
- package/dist/packages/api-client/src/fetchers/products.js +0 -42
- package/dist/packages/api-client/src/hooks/admin/abandoned-carts.d.ts +0 -535
- package/dist/packages/api-client/src/hooks/admin/abandoned-carts.js +0 -83
- package/dist/packages/api-client/src/hooks/admin/brands.d.ts +0 -79
- package/dist/packages/api-client/src/hooks/admin/brands.js +0 -108
- package/dist/packages/api-client/src/hooks/admin/customers.d.ts +0 -280
- package/dist/packages/api-client/src/hooks/admin/customers.js +0 -26
- package/dist/packages/api-client/src/hooks/admin/delivery-zones.d.ts +0 -278
- package/dist/packages/api-client/src/hooks/admin/delivery-zones.js +0 -176
- package/dist/packages/api-client/src/hooks/admin/discount-codes.d.ts +0 -299
- package/dist/packages/api-client/src/hooks/admin/discount-codes.js +0 -165
- package/dist/packages/api-client/src/hooks/admin/index.d.ts +0 -16
- package/dist/packages/api-client/src/hooks/admin/index.js +0 -16
- package/dist/packages/api-client/src/hooks/admin/inventory.d.ts +0 -224
- package/dist/packages/api-client/src/hooks/admin/inventory.js +0 -107
- package/dist/packages/api-client/src/hooks/admin/orders.d.ts +0 -1674
- package/dist/packages/api-client/src/hooks/admin/orders.js +0 -178
- package/dist/packages/api-client/src/hooks/admin/products.d.ts +0 -374
- package/dist/packages/api-client/src/hooks/admin/products.js +0 -89
- package/dist/packages/api-client/src/hooks/admin/stats.d.ts +0 -279
- package/dist/packages/api-client/src/hooks/admin/stats.js +0 -25
- package/dist/packages/api-client/src/hooks/admin/variants.d.ts +0 -115
- package/dist/packages/api-client/src/hooks/admin/variants.js +0 -127
- package/dist/packages/api-client/src/hooks/admin/warehouses.d.ts +0 -277
- package/dist/packages/api-client/src/hooks/admin/warehouses.js +0 -108
- package/dist/packages/api-client/src/hooks/public/brands.d.ts +0 -33
- package/dist/packages/api-client/src/hooks/public/brands.js +0 -30
- package/dist/packages/api-client/src/hooks/public/carts.d.ts +0 -2407
- package/dist/packages/api-client/src/hooks/public/carts.js +0 -213
- package/dist/packages/api-client/src/hooks/public/delivery-zones.d.ts +0 -36
- package/dist/packages/api-client/src/hooks/public/delivery-zones.js +0 -28
- package/dist/packages/api-client/src/hooks/public/index.d.ts +0 -10
- package/dist/packages/api-client/src/hooks/public/index.js +0 -10
- package/dist/packages/api-client/src/hooks/public/orders.d.ts +0 -563
- package/dist/packages/api-client/src/hooks/public/orders.js +0 -50
- package/dist/packages/api-client/src/hooks/public/products.d.ts +0 -398
- package/dist/packages/api-client/src/hooks/public/products.js +0 -47
- package/dist/packages/api-client/src/hooks/use-query-unwrapped.d.ts +0 -20
- package/dist/packages/api-client/src/hooks/use-query-unwrapped.js +0 -22
- package/dist/packages/api-client/src/hooks/useApiConfig.d.ts +0 -12
- package/dist/packages/api-client/src/hooks/useApiConfig.js +0 -14
- package/dist/packages/api-client/src/index.d.ts +0 -20
- package/dist/packages/api-client/src/index.js +0 -25
- package/dist/packages/api-client/src/provider.d.ts +0 -36
- package/dist/packages/api-client/src/provider.js +0 -54
- package/dist/packages/api-client/src/rpc-client.d.ts +0 -9639
- package/dist/packages/api-client/src/rpc-client.js +0 -78
- package/dist/packages/api-client/src/rpc-types.d.ts +0 -76
- package/dist/packages/api-client/src/rpc-types.js +0 -7
- package/dist/packages/api-client/src/types.d.ts +0 -34
- package/dist/packages/api-client/src/types.js +0 -16
- package/dist/packages/api-client/src/utils/query-keys.d.ts +0 -106
- package/dist/packages/api-client/src/utils/query-keys.js +0 -108
|
@@ -24,8 +24,8 @@ export declare function useGetCart(cartId: string, options?: Omit<UseQueryOption
|
|
|
24
24
|
createdAt: string;
|
|
25
25
|
updatedAt: string;
|
|
26
26
|
deletedAt: string;
|
|
27
|
-
name: string;
|
|
28
27
|
id: string;
|
|
28
|
+
name: string;
|
|
29
29
|
slug: string;
|
|
30
30
|
logoUrl: string | null;
|
|
31
31
|
siteUrl: string;
|
|
@@ -45,14 +45,14 @@ export declare function useGetCart(cartId: string, options?: Omit<UseQueryOption
|
|
|
45
45
|
lastRecoveryAttemptAt: string;
|
|
46
46
|
recoveryDiscountCode: {
|
|
47
47
|
id: string;
|
|
48
|
+
type: string;
|
|
49
|
+
value: string;
|
|
48
50
|
createdAt: string;
|
|
49
51
|
updatedAt: string;
|
|
50
52
|
deletedAt: string;
|
|
51
53
|
brandId: string | null;
|
|
52
54
|
isActive: boolean;
|
|
53
55
|
code: string;
|
|
54
|
-
type: string;
|
|
55
|
-
value: string;
|
|
56
56
|
minPurchase: string;
|
|
57
57
|
maxDiscount: string;
|
|
58
58
|
usageLimit: number | null;
|
|
@@ -70,8 +70,8 @@ export declare function useGetCart(cartId: string, options?: Omit<UseQueryOption
|
|
|
70
70
|
variant: {
|
|
71
71
|
price: number;
|
|
72
72
|
product: {
|
|
73
|
-
name: string;
|
|
74
73
|
id: string;
|
|
74
|
+
name: string;
|
|
75
75
|
slug: string;
|
|
76
76
|
createdAt: string;
|
|
77
77
|
updatedAt: string;
|
|
@@ -150,7 +150,9 @@ export declare function useGetCart(cartId: string, options?: Omit<UseQueryOption
|
|
|
150
150
|
includes?: boolean;
|
|
151
151
|
flatMap?: boolean;
|
|
152
152
|
flat?: boolean;
|
|
153
|
+
at?: boolean;
|
|
153
154
|
};
|
|
155
|
+
at: never;
|
|
154
156
|
};
|
|
155
157
|
} | {
|
|
156
158
|
[x: number]: string | number | boolean | {
|
|
@@ -223,11 +225,13 @@ export declare function useGetCart(cartId: string, options?: Omit<UseQueryOption
|
|
|
223
225
|
includes?: boolean;
|
|
224
226
|
flatMap?: boolean;
|
|
225
227
|
flat?: boolean;
|
|
228
|
+
at?: boolean;
|
|
226
229
|
};
|
|
230
|
+
at: never;
|
|
227
231
|
};
|
|
228
232
|
};
|
|
229
|
-
name: string | null;
|
|
230
233
|
id: string;
|
|
234
|
+
name: string | null;
|
|
231
235
|
createdAt: string;
|
|
232
236
|
updatedAt: string;
|
|
233
237
|
deletedAt: string;
|
|
@@ -284,8 +288,8 @@ export declare function useUpdateCart(cartId: string, options?: UseMutationOptio
|
|
|
284
288
|
createdAt: string;
|
|
285
289
|
updatedAt: string;
|
|
286
290
|
deletedAt: string;
|
|
287
|
-
name: string;
|
|
288
291
|
id: string;
|
|
292
|
+
name: string;
|
|
289
293
|
slug: string;
|
|
290
294
|
logoUrl: string | null;
|
|
291
295
|
siteUrl: string;
|
|
@@ -305,14 +309,14 @@ export declare function useUpdateCart(cartId: string, options?: UseMutationOptio
|
|
|
305
309
|
lastRecoveryAttemptAt: string;
|
|
306
310
|
recoveryDiscountCode: {
|
|
307
311
|
id: string;
|
|
312
|
+
type: string;
|
|
313
|
+
value: string;
|
|
308
314
|
createdAt: string;
|
|
309
315
|
updatedAt: string;
|
|
310
316
|
deletedAt: string;
|
|
311
317
|
brandId: string | null;
|
|
312
318
|
isActive: boolean;
|
|
313
319
|
code: string;
|
|
314
|
-
type: string;
|
|
315
|
-
value: string;
|
|
316
320
|
minPurchase: string;
|
|
317
321
|
maxDiscount: string;
|
|
318
322
|
usageLimit: number | null;
|
|
@@ -330,8 +334,8 @@ export declare function useUpdateCart(cartId: string, options?: UseMutationOptio
|
|
|
330
334
|
variant: {
|
|
331
335
|
price: number;
|
|
332
336
|
product: {
|
|
333
|
-
name: string;
|
|
334
337
|
id: string;
|
|
338
|
+
name: string;
|
|
335
339
|
slug: string;
|
|
336
340
|
createdAt: string;
|
|
337
341
|
updatedAt: string;
|
|
@@ -410,7 +414,9 @@ export declare function useUpdateCart(cartId: string, options?: UseMutationOptio
|
|
|
410
414
|
includes?: boolean;
|
|
411
415
|
flatMap?: boolean;
|
|
412
416
|
flat?: boolean;
|
|
417
|
+
at?: boolean;
|
|
413
418
|
};
|
|
419
|
+
at: never;
|
|
414
420
|
};
|
|
415
421
|
} | {
|
|
416
422
|
[x: number]: string | number | boolean | {
|
|
@@ -483,11 +489,13 @@ export declare function useUpdateCart(cartId: string, options?: UseMutationOptio
|
|
|
483
489
|
includes?: boolean;
|
|
484
490
|
flatMap?: boolean;
|
|
485
491
|
flat?: boolean;
|
|
492
|
+
at?: boolean;
|
|
486
493
|
};
|
|
494
|
+
at: never;
|
|
487
495
|
};
|
|
488
496
|
};
|
|
489
|
-
name: string | null;
|
|
490
497
|
id: string;
|
|
498
|
+
name: string | null;
|
|
491
499
|
createdAt: string;
|
|
492
500
|
updatedAt: string;
|
|
493
501
|
deletedAt: string;
|
|
@@ -552,8 +560,8 @@ export declare function useCreateCart(options?: UseMutationOptions<Awaited<Retur
|
|
|
552
560
|
createdAt: string;
|
|
553
561
|
updatedAt: string;
|
|
554
562
|
deletedAt: string;
|
|
555
|
-
name: string;
|
|
556
563
|
id: string;
|
|
564
|
+
name: string;
|
|
557
565
|
slug: string;
|
|
558
566
|
logoUrl: string | null;
|
|
559
567
|
siteUrl: string;
|
|
@@ -573,14 +581,14 @@ export declare function useCreateCart(options?: UseMutationOptions<Awaited<Retur
|
|
|
573
581
|
lastRecoveryAttemptAt: string;
|
|
574
582
|
recoveryDiscountCode: {
|
|
575
583
|
id: string;
|
|
584
|
+
type: string;
|
|
585
|
+
value: string;
|
|
576
586
|
createdAt: string;
|
|
577
587
|
updatedAt: string;
|
|
578
588
|
deletedAt: string;
|
|
579
589
|
brandId: string | null;
|
|
580
590
|
isActive: boolean;
|
|
581
591
|
code: string;
|
|
582
|
-
type: string;
|
|
583
|
-
value: string;
|
|
584
592
|
minPurchase: string;
|
|
585
593
|
maxDiscount: string;
|
|
586
594
|
usageLimit: number | null;
|
|
@@ -598,8 +606,8 @@ export declare function useCreateCart(options?: UseMutationOptions<Awaited<Retur
|
|
|
598
606
|
variant: {
|
|
599
607
|
price: number;
|
|
600
608
|
product: {
|
|
601
|
-
name: string;
|
|
602
609
|
id: string;
|
|
610
|
+
name: string;
|
|
603
611
|
slug: string;
|
|
604
612
|
createdAt: string;
|
|
605
613
|
updatedAt: string;
|
|
@@ -678,7 +686,9 @@ export declare function useCreateCart(options?: UseMutationOptions<Awaited<Retur
|
|
|
678
686
|
includes?: boolean;
|
|
679
687
|
flatMap?: boolean;
|
|
680
688
|
flat?: boolean;
|
|
689
|
+
at?: boolean;
|
|
681
690
|
};
|
|
691
|
+
at: never;
|
|
682
692
|
};
|
|
683
693
|
} | {
|
|
684
694
|
[x: number]: string | number | boolean | {
|
|
@@ -751,11 +761,13 @@ export declare function useCreateCart(options?: UseMutationOptions<Awaited<Retur
|
|
|
751
761
|
includes?: boolean;
|
|
752
762
|
flatMap?: boolean;
|
|
753
763
|
flat?: boolean;
|
|
764
|
+
at?: boolean;
|
|
754
765
|
};
|
|
766
|
+
at: never;
|
|
755
767
|
};
|
|
756
768
|
};
|
|
757
|
-
name: string | null;
|
|
758
769
|
id: string;
|
|
770
|
+
name: string | null;
|
|
759
771
|
createdAt: string;
|
|
760
772
|
updatedAt: string;
|
|
761
773
|
deletedAt: string;
|
|
@@ -811,8 +823,8 @@ export declare function useApplyDiscount(cartId: string, options?: UseMutationOp
|
|
|
811
823
|
createdAt: string;
|
|
812
824
|
updatedAt: string;
|
|
813
825
|
deletedAt: string;
|
|
814
|
-
name: string;
|
|
815
826
|
id: string;
|
|
827
|
+
name: string;
|
|
816
828
|
slug: string;
|
|
817
829
|
logoUrl: string | null;
|
|
818
830
|
siteUrl: string;
|
|
@@ -832,14 +844,14 @@ export declare function useApplyDiscount(cartId: string, options?: UseMutationOp
|
|
|
832
844
|
lastRecoveryAttemptAt: string;
|
|
833
845
|
recoveryDiscountCode: {
|
|
834
846
|
id: string;
|
|
847
|
+
type: string;
|
|
848
|
+
value: string;
|
|
835
849
|
createdAt: string;
|
|
836
850
|
updatedAt: string;
|
|
837
851
|
deletedAt: string;
|
|
838
852
|
brandId: string | null;
|
|
839
853
|
isActive: boolean;
|
|
840
854
|
code: string;
|
|
841
|
-
type: string;
|
|
842
|
-
value: string;
|
|
843
855
|
minPurchase: string;
|
|
844
856
|
maxDiscount: string;
|
|
845
857
|
usageLimit: number | null;
|
|
@@ -857,8 +869,8 @@ export declare function useApplyDiscount(cartId: string, options?: UseMutationOp
|
|
|
857
869
|
variant: {
|
|
858
870
|
price: number;
|
|
859
871
|
product: {
|
|
860
|
-
name: string;
|
|
861
872
|
id: string;
|
|
873
|
+
name: string;
|
|
862
874
|
slug: string;
|
|
863
875
|
createdAt: string;
|
|
864
876
|
updatedAt: string;
|
|
@@ -937,7 +949,9 @@ export declare function useApplyDiscount(cartId: string, options?: UseMutationOp
|
|
|
937
949
|
includes?: boolean;
|
|
938
950
|
flatMap?: boolean;
|
|
939
951
|
flat?: boolean;
|
|
952
|
+
at?: boolean;
|
|
940
953
|
};
|
|
954
|
+
at: never;
|
|
941
955
|
};
|
|
942
956
|
} | {
|
|
943
957
|
[x: number]: string | number | boolean | {
|
|
@@ -1010,11 +1024,13 @@ export declare function useApplyDiscount(cartId: string, options?: UseMutationOp
|
|
|
1010
1024
|
includes?: boolean;
|
|
1011
1025
|
flatMap?: boolean;
|
|
1012
1026
|
flat?: boolean;
|
|
1027
|
+
at?: boolean;
|
|
1013
1028
|
};
|
|
1029
|
+
at: never;
|
|
1014
1030
|
};
|
|
1015
1031
|
};
|
|
1016
|
-
name: string | null;
|
|
1017
1032
|
id: string;
|
|
1033
|
+
name: string | null;
|
|
1018
1034
|
createdAt: string;
|
|
1019
1035
|
updatedAt: string;
|
|
1020
1036
|
deletedAt: string;
|
|
@@ -1075,8 +1091,8 @@ export declare function useRemoveDiscount(cartId: string, options?: UseMutationO
|
|
|
1075
1091
|
createdAt: string;
|
|
1076
1092
|
updatedAt: string;
|
|
1077
1093
|
deletedAt: string;
|
|
1078
|
-
name: string;
|
|
1079
1094
|
id: string;
|
|
1095
|
+
name: string;
|
|
1080
1096
|
slug: string;
|
|
1081
1097
|
logoUrl: string | null;
|
|
1082
1098
|
siteUrl: string;
|
|
@@ -1096,14 +1112,14 @@ export declare function useRemoveDiscount(cartId: string, options?: UseMutationO
|
|
|
1096
1112
|
lastRecoveryAttemptAt: string;
|
|
1097
1113
|
recoveryDiscountCode: {
|
|
1098
1114
|
id: string;
|
|
1115
|
+
type: string;
|
|
1116
|
+
value: string;
|
|
1099
1117
|
createdAt: string;
|
|
1100
1118
|
updatedAt: string;
|
|
1101
1119
|
deletedAt: string;
|
|
1102
1120
|
brandId: string | null;
|
|
1103
1121
|
isActive: boolean;
|
|
1104
1122
|
code: string;
|
|
1105
|
-
type: string;
|
|
1106
|
-
value: string;
|
|
1107
1123
|
minPurchase: string;
|
|
1108
1124
|
maxDiscount: string;
|
|
1109
1125
|
usageLimit: number | null;
|
|
@@ -1121,8 +1137,8 @@ export declare function useRemoveDiscount(cartId: string, options?: UseMutationO
|
|
|
1121
1137
|
variant: {
|
|
1122
1138
|
price: number;
|
|
1123
1139
|
product: {
|
|
1124
|
-
name: string;
|
|
1125
1140
|
id: string;
|
|
1141
|
+
name: string;
|
|
1126
1142
|
slug: string;
|
|
1127
1143
|
createdAt: string;
|
|
1128
1144
|
updatedAt: string;
|
|
@@ -1201,7 +1217,9 @@ export declare function useRemoveDiscount(cartId: string, options?: UseMutationO
|
|
|
1201
1217
|
includes?: boolean;
|
|
1202
1218
|
flatMap?: boolean;
|
|
1203
1219
|
flat?: boolean;
|
|
1220
|
+
at?: boolean;
|
|
1204
1221
|
};
|
|
1222
|
+
at: never;
|
|
1205
1223
|
};
|
|
1206
1224
|
} | {
|
|
1207
1225
|
[x: number]: string | number | boolean | {
|
|
@@ -1274,11 +1292,13 @@ export declare function useRemoveDiscount(cartId: string, options?: UseMutationO
|
|
|
1274
1292
|
includes?: boolean;
|
|
1275
1293
|
flatMap?: boolean;
|
|
1276
1294
|
flat?: boolean;
|
|
1295
|
+
at?: boolean;
|
|
1277
1296
|
};
|
|
1297
|
+
at: never;
|
|
1278
1298
|
};
|
|
1279
1299
|
};
|
|
1280
|
-
name: string | null;
|
|
1281
1300
|
id: string;
|
|
1301
|
+
name: string | null;
|
|
1282
1302
|
createdAt: string;
|
|
1283
1303
|
updatedAt: string;
|
|
1284
1304
|
deletedAt: string;
|
|
@@ -1342,8 +1362,8 @@ export declare function useAddCartItem(cartId: string, options?: UseMutationOpti
|
|
|
1342
1362
|
createdAt: string;
|
|
1343
1363
|
updatedAt: string;
|
|
1344
1364
|
deletedAt: string;
|
|
1345
|
-
name: string;
|
|
1346
1365
|
id: string;
|
|
1366
|
+
name: string;
|
|
1347
1367
|
slug: string;
|
|
1348
1368
|
logoUrl: string | null;
|
|
1349
1369
|
siteUrl: string;
|
|
@@ -1363,14 +1383,14 @@ export declare function useAddCartItem(cartId: string, options?: UseMutationOpti
|
|
|
1363
1383
|
lastRecoveryAttemptAt: string;
|
|
1364
1384
|
recoveryDiscountCode: {
|
|
1365
1385
|
id: string;
|
|
1386
|
+
type: string;
|
|
1387
|
+
value: string;
|
|
1366
1388
|
createdAt: string;
|
|
1367
1389
|
updatedAt: string;
|
|
1368
1390
|
deletedAt: string;
|
|
1369
1391
|
brandId: string | null;
|
|
1370
1392
|
isActive: boolean;
|
|
1371
1393
|
code: string;
|
|
1372
|
-
type: string;
|
|
1373
|
-
value: string;
|
|
1374
1394
|
minPurchase: string;
|
|
1375
1395
|
maxDiscount: string;
|
|
1376
1396
|
usageLimit: number | null;
|
|
@@ -1388,8 +1408,8 @@ export declare function useAddCartItem(cartId: string, options?: UseMutationOpti
|
|
|
1388
1408
|
variant: {
|
|
1389
1409
|
price: number;
|
|
1390
1410
|
product: {
|
|
1391
|
-
name: string;
|
|
1392
1411
|
id: string;
|
|
1412
|
+
name: string;
|
|
1393
1413
|
slug: string;
|
|
1394
1414
|
createdAt: string;
|
|
1395
1415
|
updatedAt: string;
|
|
@@ -1468,7 +1488,9 @@ export declare function useAddCartItem(cartId: string, options?: UseMutationOpti
|
|
|
1468
1488
|
includes?: boolean;
|
|
1469
1489
|
flatMap?: boolean;
|
|
1470
1490
|
flat?: boolean;
|
|
1491
|
+
at?: boolean;
|
|
1471
1492
|
};
|
|
1493
|
+
at: never;
|
|
1472
1494
|
};
|
|
1473
1495
|
} | {
|
|
1474
1496
|
[x: number]: string | number | boolean | {
|
|
@@ -1541,11 +1563,13 @@ export declare function useAddCartItem(cartId: string, options?: UseMutationOpti
|
|
|
1541
1563
|
includes?: boolean;
|
|
1542
1564
|
flatMap?: boolean;
|
|
1543
1565
|
flat?: boolean;
|
|
1566
|
+
at?: boolean;
|
|
1544
1567
|
};
|
|
1568
|
+
at: never;
|
|
1545
1569
|
};
|
|
1546
1570
|
};
|
|
1547
|
-
name: string | null;
|
|
1548
1571
|
id: string;
|
|
1572
|
+
name: string | null;
|
|
1549
1573
|
createdAt: string;
|
|
1550
1574
|
updatedAt: string;
|
|
1551
1575
|
deletedAt: string;
|
|
@@ -1612,8 +1636,8 @@ export declare function useUpdateCartItem(cartId: string, options?: UseMutationO
|
|
|
1612
1636
|
createdAt: string;
|
|
1613
1637
|
updatedAt: string;
|
|
1614
1638
|
deletedAt: string;
|
|
1615
|
-
name: string;
|
|
1616
1639
|
id: string;
|
|
1640
|
+
name: string;
|
|
1617
1641
|
slug: string;
|
|
1618
1642
|
logoUrl: string | null;
|
|
1619
1643
|
siteUrl: string;
|
|
@@ -1633,14 +1657,14 @@ export declare function useUpdateCartItem(cartId: string, options?: UseMutationO
|
|
|
1633
1657
|
lastRecoveryAttemptAt: string;
|
|
1634
1658
|
recoveryDiscountCode: {
|
|
1635
1659
|
id: string;
|
|
1660
|
+
type: string;
|
|
1661
|
+
value: string;
|
|
1636
1662
|
createdAt: string;
|
|
1637
1663
|
updatedAt: string;
|
|
1638
1664
|
deletedAt: string;
|
|
1639
1665
|
brandId: string | null;
|
|
1640
1666
|
isActive: boolean;
|
|
1641
1667
|
code: string;
|
|
1642
|
-
type: string;
|
|
1643
|
-
value: string;
|
|
1644
1668
|
minPurchase: string;
|
|
1645
1669
|
maxDiscount: string;
|
|
1646
1670
|
usageLimit: number | null;
|
|
@@ -1658,8 +1682,8 @@ export declare function useUpdateCartItem(cartId: string, options?: UseMutationO
|
|
|
1658
1682
|
variant: {
|
|
1659
1683
|
price: number;
|
|
1660
1684
|
product: {
|
|
1661
|
-
name: string;
|
|
1662
1685
|
id: string;
|
|
1686
|
+
name: string;
|
|
1663
1687
|
slug: string;
|
|
1664
1688
|
createdAt: string;
|
|
1665
1689
|
updatedAt: string;
|
|
@@ -1738,7 +1762,9 @@ export declare function useUpdateCartItem(cartId: string, options?: UseMutationO
|
|
|
1738
1762
|
includes?: boolean;
|
|
1739
1763
|
flatMap?: boolean;
|
|
1740
1764
|
flat?: boolean;
|
|
1765
|
+
at?: boolean;
|
|
1741
1766
|
};
|
|
1767
|
+
at: never;
|
|
1742
1768
|
};
|
|
1743
1769
|
} | {
|
|
1744
1770
|
[x: number]: string | number | boolean | {
|
|
@@ -1811,11 +1837,13 @@ export declare function useUpdateCartItem(cartId: string, options?: UseMutationO
|
|
|
1811
1837
|
includes?: boolean;
|
|
1812
1838
|
flatMap?: boolean;
|
|
1813
1839
|
flat?: boolean;
|
|
1840
|
+
at?: boolean;
|
|
1814
1841
|
};
|
|
1842
|
+
at: never;
|
|
1815
1843
|
};
|
|
1816
1844
|
};
|
|
1817
|
-
name: string | null;
|
|
1818
1845
|
id: string;
|
|
1846
|
+
name: string | null;
|
|
1819
1847
|
createdAt: string;
|
|
1820
1848
|
updatedAt: string;
|
|
1821
1849
|
deletedAt: string;
|
|
@@ -1872,8 +1900,8 @@ export declare function useRemoveCartItem(cartId: string, options?: UseMutationO
|
|
|
1872
1900
|
createdAt: string;
|
|
1873
1901
|
updatedAt: string;
|
|
1874
1902
|
deletedAt: string;
|
|
1875
|
-
name: string;
|
|
1876
1903
|
id: string;
|
|
1904
|
+
name: string;
|
|
1877
1905
|
slug: string;
|
|
1878
1906
|
logoUrl: string | null;
|
|
1879
1907
|
siteUrl: string;
|
|
@@ -1893,14 +1921,14 @@ export declare function useRemoveCartItem(cartId: string, options?: UseMutationO
|
|
|
1893
1921
|
lastRecoveryAttemptAt: string;
|
|
1894
1922
|
recoveryDiscountCode: {
|
|
1895
1923
|
id: string;
|
|
1924
|
+
type: string;
|
|
1925
|
+
value: string;
|
|
1896
1926
|
createdAt: string;
|
|
1897
1927
|
updatedAt: string;
|
|
1898
1928
|
deletedAt: string;
|
|
1899
1929
|
brandId: string | null;
|
|
1900
1930
|
isActive: boolean;
|
|
1901
1931
|
code: string;
|
|
1902
|
-
type: string;
|
|
1903
|
-
value: string;
|
|
1904
1932
|
minPurchase: string;
|
|
1905
1933
|
maxDiscount: string;
|
|
1906
1934
|
usageLimit: number | null;
|
|
@@ -1918,8 +1946,8 @@ export declare function useRemoveCartItem(cartId: string, options?: UseMutationO
|
|
|
1918
1946
|
variant: {
|
|
1919
1947
|
price: number;
|
|
1920
1948
|
product: {
|
|
1921
|
-
name: string;
|
|
1922
1949
|
id: string;
|
|
1950
|
+
name: string;
|
|
1923
1951
|
slug: string;
|
|
1924
1952
|
createdAt: string;
|
|
1925
1953
|
updatedAt: string;
|
|
@@ -1998,7 +2026,9 @@ export declare function useRemoveCartItem(cartId: string, options?: UseMutationO
|
|
|
1998
2026
|
includes?: boolean;
|
|
1999
2027
|
flatMap?: boolean;
|
|
2000
2028
|
flat?: boolean;
|
|
2029
|
+
at?: boolean;
|
|
2001
2030
|
};
|
|
2031
|
+
at: never;
|
|
2002
2032
|
};
|
|
2003
2033
|
} | {
|
|
2004
2034
|
[x: number]: string | number | boolean | {
|
|
@@ -2071,11 +2101,13 @@ export declare function useRemoveCartItem(cartId: string, options?: UseMutationO
|
|
|
2071
2101
|
includes?: boolean;
|
|
2072
2102
|
flatMap?: boolean;
|
|
2073
2103
|
flat?: boolean;
|
|
2104
|
+
at?: boolean;
|
|
2074
2105
|
};
|
|
2106
|
+
at: never;
|
|
2075
2107
|
};
|
|
2076
2108
|
};
|
|
2077
|
-
name: string | null;
|
|
2078
2109
|
id: string;
|
|
2110
|
+
name: string | null;
|
|
2079
2111
|
createdAt: string;
|
|
2080
2112
|
updatedAt: string;
|
|
2081
2113
|
deletedAt: string;
|
|
@@ -2146,8 +2178,8 @@ export declare function useCheckoutCart(cartId: string, options?: UseMutationOpt
|
|
|
2146
2178
|
createdAt: string;
|
|
2147
2179
|
updatedAt: string;
|
|
2148
2180
|
deletedAt: string;
|
|
2149
|
-
name: string;
|
|
2150
2181
|
id: string;
|
|
2182
|
+
name: string;
|
|
2151
2183
|
slug: string;
|
|
2152
2184
|
logoUrl: string | null;
|
|
2153
2185
|
siteUrl: string;
|
|
@@ -2164,18 +2196,20 @@ export declare function useCheckoutCart(cartId: string, options?: UseMutationOpt
|
|
|
2164
2196
|
createdAt: string;
|
|
2165
2197
|
updatedAt: string;
|
|
2166
2198
|
deletedAt: string;
|
|
2167
|
-
name: string;
|
|
2168
2199
|
id: string;
|
|
2200
|
+
name: string;
|
|
2169
2201
|
isActive: boolean;
|
|
2170
2202
|
};
|
|
2171
|
-
name: string;
|
|
2172
2203
|
id: string;
|
|
2204
|
+
name: string;
|
|
2173
2205
|
brandId: string | null;
|
|
2174
2206
|
stateId: string;
|
|
2175
2207
|
allowCOD: boolean;
|
|
2176
2208
|
allowOnline: boolean;
|
|
2177
2209
|
waybillOnly: boolean;
|
|
2178
2210
|
estimatedDays: number | null;
|
|
2211
|
+
noteTitle: string | null;
|
|
2212
|
+
noteContent: string | null;
|
|
2179
2213
|
isActive: boolean;
|
|
2180
2214
|
};
|
|
2181
2215
|
items: {
|
|
@@ -2189,8 +2223,8 @@ export declare function useCheckoutCart(cartId: string, options?: UseMutationOpt
|
|
|
2189
2223
|
createdAt: string;
|
|
2190
2224
|
updatedAt: string;
|
|
2191
2225
|
deletedAt: string;
|
|
2192
|
-
name: string;
|
|
2193
2226
|
id: string;
|
|
2227
|
+
name: string;
|
|
2194
2228
|
slug: string;
|
|
2195
2229
|
brandId: string;
|
|
2196
2230
|
isActive: boolean;
|
|
@@ -2266,7 +2300,9 @@ export declare function useCheckoutCart(cartId: string, options?: UseMutationOpt
|
|
|
2266
2300
|
includes?: boolean;
|
|
2267
2301
|
flatMap?: boolean;
|
|
2268
2302
|
flat?: boolean;
|
|
2303
|
+
at?: boolean;
|
|
2269
2304
|
};
|
|
2305
|
+
at: never;
|
|
2270
2306
|
};
|
|
2271
2307
|
} | {
|
|
2272
2308
|
[x: number]: string | number | boolean | {
|
|
@@ -2339,11 +2375,13 @@ export declare function useCheckoutCart(cartId: string, options?: UseMutationOpt
|
|
|
2339
2375
|
includes?: boolean;
|
|
2340
2376
|
flatMap?: boolean;
|
|
2341
2377
|
flat?: boolean;
|
|
2378
|
+
at?: boolean;
|
|
2342
2379
|
};
|
|
2380
|
+
at: never;
|
|
2343
2381
|
};
|
|
2344
2382
|
};
|
|
2345
|
-
name: string | null;
|
|
2346
2383
|
id: string;
|
|
2384
|
+
name: string | null;
|
|
2347
2385
|
isActive: boolean;
|
|
2348
2386
|
thumbnailUrl: string | null;
|
|
2349
2387
|
productId: string;
|
|
@@ -2355,8 +2393,8 @@ export declare function useCheckoutCart(cartId: string, options?: UseMutationOpt
|
|
|
2355
2393
|
createdAt: string;
|
|
2356
2394
|
updatedAt: string;
|
|
2357
2395
|
deletedAt: string;
|
|
2358
|
-
name: string;
|
|
2359
2396
|
id: string;
|
|
2397
|
+
name: string;
|
|
2360
2398
|
isActive: boolean;
|
|
2361
2399
|
address: string | null;
|
|
2362
2400
|
city: string | null;
|
|
@@ -2368,8 +2406,8 @@ export declare function useCheckoutCart(cartId: string, options?: UseMutationOpt
|
|
|
2368
2406
|
warehouseId: string | null;
|
|
2369
2407
|
quantity: number;
|
|
2370
2408
|
}[];
|
|
2371
|
-
id: string;
|
|
2372
2409
|
email: string | null;
|
|
2410
|
+
id: string;
|
|
2373
2411
|
brandId: string;
|
|
2374
2412
|
deliveryZoneId: string;
|
|
2375
2413
|
recoveryAttempts: number;
|