@instockng/api-client 1.0.7 → 1.0.9
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/apps/backend/src/http-app.js +28 -0
- package/dist/apps/backend/src/lib/brand-response.d.ts +1 -1
- package/dist/apps/backend/src/lib/cart-helpers.d.ts +13 -11
- package/dist/apps/backend/src/lib/cart-helpers.js +28 -0
- package/dist/apps/backend/src/lib/cart-response.d.ts +5 -5
- package/dist/apps/backend/src/lib/clerk.js +23 -0
- package/dist/apps/backend/src/lib/delivery-zone-response.d.ts +6 -4
- package/dist/apps/backend/src/lib/discount-code-response.d.ts +2 -2
- package/dist/apps/backend/src/lib/meta-capi.d.ts +5 -0
- package/dist/apps/backend/src/lib/meta-capi.js +33 -2
- package/dist/apps/backend/src/lib/order-recovery.d.ts +30 -24
- package/dist/apps/backend/src/lib/order-response.d.ts +9 -7
- package/dist/apps/backend/src/lib/product-response.d.ts +4 -4
- package/dist/apps/backend/src/lib/sentry.d.ts +48 -0
- package/dist/apps/backend/src/lib/sentry.js +180 -0
- package/dist/apps/backend/src/lib/utils.d.ts +1 -1
- package/dist/apps/backend/src/lib/utils.js +1 -1
- package/dist/apps/backend/src/notifications/producers/meta-capi-producer.js +18 -4
- package/dist/apps/backend/src/routes/admin/abandoned-carts.d.ts +18 -10
- package/dist/apps/backend/src/routes/admin/brands.d.ts +4 -4
- package/dist/apps/backend/src/routes/admin/customers.d.ts +13 -7
- package/dist/apps/backend/src/routes/admin/delivery-zones.d.ts +23 -15
- package/dist/apps/backend/src/routes/admin/discount-codes.d.ts +10 -10
- package/dist/apps/backend/src/routes/admin/inventory.d.ts +4 -0
- package/dist/apps/backend/src/routes/admin/inventory.js +10 -0
- package/dist/apps/backend/src/routes/admin/orders.d.ts +78 -42
- package/dist/apps/backend/src/routes/admin/orders.js +25 -0
- package/dist/apps/backend/src/routes/admin/products.d.ts +28 -12
- package/dist/apps/backend/src/routes/admin/products.js +34 -15
- package/dist/apps/backend/src/routes/admin/stats.d.ts +13 -7
- package/dist/apps/backend/src/routes/admin/variants.d.ts +5 -5
- package/dist/apps/backend/src/routes/admin/variants.js +42 -18
- package/dist/apps/backend/src/routes/admin/warehouses.d.ts +11 -7
- package/dist/apps/backend/src/routes/public/brands.d.ts +1 -1
- package/dist/apps/backend/src/routes/public/carts.d.ts +85 -47
- package/dist/apps/backend/src/routes/public/carts.js +148 -1
- package/dist/apps/backend/src/routes/public/delivery-zones.d.ts +2 -0
- package/dist/apps/backend/src/routes/public/delivery-zones.js +2 -0
- package/dist/apps/backend/src/routes/public/orders.d.ts +26 -14
- package/dist/apps/backend/src/routes/public/orders.js +24 -0
- package/dist/apps/backend/src/routes/public/products.d.ts +14 -6
- package/dist/apps/backend/src/types/index.d.ts +1 -0
- package/dist/apps/backend/src/validators/delivery-zone.d.ts +4 -0
- package/dist/apps/backend/src/validators/delivery-zone.js +4 -0
- package/dist/apps/backend/src/validators/discount-code.d.ts +3 -3
- package/dist/apps/backend/src/validators/order.d.ts +3 -1
- package/dist/apps/backend/src/validators/order.js +3 -1
- package/dist/packages/api-client/src/fetchers/brands.d.ts +1 -1
- package/dist/packages/api-client/src/fetchers/carts.d.ts +85 -47
- package/dist/packages/api-client/src/fetchers/delivery-zones.d.ts +2 -0
- package/dist/packages/api-client/src/fetchers/orders.d.ts +26 -14
- package/dist/packages/api-client/src/fetchers/products.d.ts +14 -6
- package/dist/packages/api-client/src/hooks/admin/abandoned-carts.d.ts +18 -10
- package/dist/packages/api-client/src/hooks/admin/brands.d.ts +4 -4
- package/dist/packages/api-client/src/hooks/admin/customers.d.ts +13 -7
- package/dist/packages/api-client/src/hooks/admin/delivery-zones.d.ts +23 -15
- package/dist/packages/api-client/src/hooks/admin/discount-codes.d.ts +10 -10
- package/dist/packages/api-client/src/hooks/admin/inventory.d.ts +4 -0
- package/dist/packages/api-client/src/hooks/admin/orders.d.ts +78 -42
- package/dist/packages/api-client/src/hooks/admin/products.d.ts +14 -6
- package/dist/packages/api-client/src/hooks/admin/stats.d.ts +13 -7
- package/dist/packages/api-client/src/hooks/admin/variants.d.ts +5 -5
- package/dist/packages/api-client/src/hooks/admin/warehouses.d.ts +11 -7
- package/dist/packages/api-client/src/hooks/public/brands.d.ts +1 -1
- package/dist/packages/api-client/src/hooks/public/carts.d.ts +85 -47
- package/dist/packages/api-client/src/hooks/public/delivery-zones.d.ts +2 -0
- package/dist/packages/api-client/src/hooks/public/orders.d.ts +26 -14
- package/dist/packages/api-client/src/hooks/public/products.d.ts +14 -6
- package/dist/packages/api-client/src/rpc-client.d.ts +335 -187
- package/package.json +1 -1
|
@@ -25,8 +25,8 @@ export declare function useListDiscountCodes(params?: {
|
|
|
25
25
|
createdAt: string;
|
|
26
26
|
updatedAt: string;
|
|
27
27
|
deletedAt: string;
|
|
28
|
-
name: string;
|
|
29
28
|
id: string;
|
|
29
|
+
name: string;
|
|
30
30
|
slug: string;
|
|
31
31
|
logoUrl: string | null;
|
|
32
32
|
siteUrl: string;
|
|
@@ -36,10 +36,10 @@ export declare function useListDiscountCodes(params?: {
|
|
|
36
36
|
isExpired: boolean;
|
|
37
37
|
usagePercentage: number;
|
|
38
38
|
id: string;
|
|
39
|
+
type: string;
|
|
39
40
|
brandId: string | null;
|
|
40
41
|
isActive: boolean;
|
|
41
42
|
code: string;
|
|
42
|
-
type: string;
|
|
43
43
|
usageLimit: number | null;
|
|
44
44
|
usageCount: number;
|
|
45
45
|
perCustomerLimit: number | null;
|
|
@@ -75,8 +75,8 @@ export declare function useGetDiscountCode(codeId: string, options?: Omit<UseQue
|
|
|
75
75
|
createdAt: string;
|
|
76
76
|
updatedAt: string;
|
|
77
77
|
deletedAt: string;
|
|
78
|
-
name: string;
|
|
79
78
|
id: string;
|
|
79
|
+
name: string;
|
|
80
80
|
slug: string;
|
|
81
81
|
logoUrl: string | null;
|
|
82
82
|
siteUrl: string;
|
|
@@ -86,10 +86,10 @@ export declare function useGetDiscountCode(codeId: string, options?: Omit<UseQue
|
|
|
86
86
|
isExpired: boolean;
|
|
87
87
|
usagePercentage: number;
|
|
88
88
|
id: string;
|
|
89
|
+
type: string;
|
|
89
90
|
brandId: string | null;
|
|
90
91
|
isActive: boolean;
|
|
91
92
|
code: string;
|
|
92
|
-
type: string;
|
|
93
93
|
usageLimit: number | null;
|
|
94
94
|
usageCount: number;
|
|
95
95
|
perCustomerLimit: number | null;
|
|
@@ -124,8 +124,8 @@ export declare function useCreateDiscountCode(options?: UseMutationOptions<Await
|
|
|
124
124
|
createdAt: string;
|
|
125
125
|
updatedAt: string;
|
|
126
126
|
deletedAt: string;
|
|
127
|
-
name: string;
|
|
128
127
|
id: string;
|
|
128
|
+
name: string;
|
|
129
129
|
slug: string;
|
|
130
130
|
logoUrl: string | null;
|
|
131
131
|
siteUrl: string;
|
|
@@ -135,10 +135,10 @@ export declare function useCreateDiscountCode(options?: UseMutationOptions<Await
|
|
|
135
135
|
isExpired: boolean;
|
|
136
136
|
usagePercentage: number;
|
|
137
137
|
id: string;
|
|
138
|
+
type: string;
|
|
138
139
|
brandId: string | null;
|
|
139
140
|
isActive: boolean;
|
|
140
141
|
code: string;
|
|
141
|
-
type: string;
|
|
142
142
|
usageLimit: number | null;
|
|
143
143
|
usageCount: number;
|
|
144
144
|
perCustomerLimit: number | null;
|
|
@@ -168,8 +168,8 @@ export declare function useUpdateDiscountCode(codeId: string, options?: UseMutat
|
|
|
168
168
|
createdAt: string;
|
|
169
169
|
updatedAt: string;
|
|
170
170
|
deletedAt: string;
|
|
171
|
-
name: string;
|
|
172
171
|
id: string;
|
|
172
|
+
name: string;
|
|
173
173
|
slug: string;
|
|
174
174
|
logoUrl: string | null;
|
|
175
175
|
siteUrl: string;
|
|
@@ -179,10 +179,10 @@ export declare function useUpdateDiscountCode(codeId: string, options?: UseMutat
|
|
|
179
179
|
isExpired: boolean;
|
|
180
180
|
usagePercentage: number;
|
|
181
181
|
id: string;
|
|
182
|
+
type: string;
|
|
182
183
|
brandId: string | null;
|
|
183
184
|
isActive: boolean;
|
|
184
185
|
code: string;
|
|
185
|
-
type: string;
|
|
186
186
|
usageLimit: number | null;
|
|
187
187
|
usageCount: number;
|
|
188
188
|
perCustomerLimit: number | null;
|
|
@@ -247,8 +247,8 @@ export declare function useGetDiscountCodeAnalytics(codeId: string, options?: Om
|
|
|
247
247
|
createdAt: string;
|
|
248
248
|
updatedAt: string;
|
|
249
249
|
deletedAt: string;
|
|
250
|
-
name: string;
|
|
251
250
|
id: string;
|
|
251
|
+
name: string;
|
|
252
252
|
slug: string;
|
|
253
253
|
logoUrl: string | null;
|
|
254
254
|
siteUrl: string;
|
|
@@ -257,10 +257,10 @@ export declare function useGetDiscountCodeAnalytics(codeId: string, options?: Om
|
|
|
257
257
|
};
|
|
258
258
|
isExpired: boolean;
|
|
259
259
|
id: string;
|
|
260
|
+
type: string;
|
|
260
261
|
brandId: string | null;
|
|
261
262
|
isActive: boolean;
|
|
262
263
|
code: string;
|
|
263
|
-
type: string;
|
|
264
264
|
usageLimit: number | null;
|
|
265
265
|
usageCount: number;
|
|
266
266
|
perCustomerLimit: number | null;
|
|
@@ -121,7 +121,9 @@ export declare function useGetInventoryTransactions(params?: {
|
|
|
121
121
|
includes?: boolean;
|
|
122
122
|
flatMap?: boolean;
|
|
123
123
|
flat?: boolean;
|
|
124
|
+
at?: boolean;
|
|
124
125
|
};
|
|
126
|
+
at: never;
|
|
125
127
|
};
|
|
126
128
|
} | {
|
|
127
129
|
[x: number]: string | number | boolean | {
|
|
@@ -194,7 +196,9 @@ export declare function useGetInventoryTransactions(params?: {
|
|
|
194
196
|
includes?: boolean;
|
|
195
197
|
flatMap?: boolean;
|
|
196
198
|
flat?: boolean;
|
|
199
|
+
at?: boolean;
|
|
197
200
|
};
|
|
201
|
+
at: never;
|
|
198
202
|
};
|
|
199
203
|
createdAt: string;
|
|
200
204
|
variant: {
|
|
@@ -41,8 +41,8 @@ export declare function useListOrders(filters?: {
|
|
|
41
41
|
createdAt: string;
|
|
42
42
|
updatedAt: string;
|
|
43
43
|
deletedAt: string;
|
|
44
|
-
name: string;
|
|
45
44
|
id: string;
|
|
45
|
+
name: string;
|
|
46
46
|
slug: string;
|
|
47
47
|
logoUrl: string | null;
|
|
48
48
|
siteUrl: string;
|
|
@@ -59,18 +59,20 @@ export declare function useListOrders(filters?: {
|
|
|
59
59
|
createdAt: string;
|
|
60
60
|
updatedAt: string;
|
|
61
61
|
deletedAt: string;
|
|
62
|
-
name: string;
|
|
63
62
|
id: string;
|
|
63
|
+
name: string;
|
|
64
64
|
isActive: boolean;
|
|
65
65
|
};
|
|
66
|
-
name: string;
|
|
67
66
|
id: string;
|
|
67
|
+
name: string;
|
|
68
68
|
brandId: string | null;
|
|
69
69
|
stateId: string;
|
|
70
70
|
allowCOD: boolean;
|
|
71
71
|
allowOnline: boolean;
|
|
72
72
|
waybillOnly: boolean;
|
|
73
73
|
estimatedDays: number | null;
|
|
74
|
+
noteTitle: string | null;
|
|
75
|
+
noteContent: string | null;
|
|
74
76
|
isActive: boolean;
|
|
75
77
|
};
|
|
76
78
|
items: {
|
|
@@ -84,8 +86,8 @@ export declare function useListOrders(filters?: {
|
|
|
84
86
|
createdAt: string;
|
|
85
87
|
updatedAt: string;
|
|
86
88
|
deletedAt: string;
|
|
87
|
-
name: string;
|
|
88
89
|
id: string;
|
|
90
|
+
name: string;
|
|
89
91
|
slug: string;
|
|
90
92
|
brandId: string;
|
|
91
93
|
isActive: boolean;
|
|
@@ -161,7 +163,9 @@ export declare function useListOrders(filters?: {
|
|
|
161
163
|
includes?: boolean;
|
|
162
164
|
flatMap?: boolean;
|
|
163
165
|
flat?: boolean;
|
|
166
|
+
at?: boolean;
|
|
164
167
|
};
|
|
168
|
+
at: never;
|
|
165
169
|
};
|
|
166
170
|
} | {
|
|
167
171
|
[x: number]: string | number | boolean | {
|
|
@@ -234,11 +238,13 @@ export declare function useListOrders(filters?: {
|
|
|
234
238
|
includes?: boolean;
|
|
235
239
|
flatMap?: boolean;
|
|
236
240
|
flat?: boolean;
|
|
241
|
+
at?: boolean;
|
|
237
242
|
};
|
|
243
|
+
at: never;
|
|
238
244
|
};
|
|
239
245
|
};
|
|
240
|
-
name: string | null;
|
|
241
246
|
id: string;
|
|
247
|
+
name: string | null;
|
|
242
248
|
isActive: boolean;
|
|
243
249
|
thumbnailUrl: string | null;
|
|
244
250
|
productId: string;
|
|
@@ -250,8 +256,8 @@ export declare function useListOrders(filters?: {
|
|
|
250
256
|
createdAt: string;
|
|
251
257
|
updatedAt: string;
|
|
252
258
|
deletedAt: string;
|
|
253
|
-
name: string;
|
|
254
259
|
id: string;
|
|
260
|
+
name: string;
|
|
255
261
|
isActive: boolean;
|
|
256
262
|
address: string | null;
|
|
257
263
|
city: string | null;
|
|
@@ -263,8 +269,8 @@ export declare function useListOrders(filters?: {
|
|
|
263
269
|
warehouseId: string | null;
|
|
264
270
|
quantity: number;
|
|
265
271
|
}[];
|
|
266
|
-
id: string;
|
|
267
272
|
email: string | null;
|
|
273
|
+
id: string;
|
|
268
274
|
brandId: string;
|
|
269
275
|
deliveryZoneId: string;
|
|
270
276
|
recoveryAttempts: number;
|
|
@@ -317,8 +323,8 @@ export declare function useGetOrder(orderId: string, options?: Omit<UseQueryOpti
|
|
|
317
323
|
createdAt: string;
|
|
318
324
|
updatedAt: string;
|
|
319
325
|
deletedAt: string;
|
|
320
|
-
name: string;
|
|
321
326
|
id: string;
|
|
327
|
+
name: string;
|
|
322
328
|
slug: string;
|
|
323
329
|
logoUrl: string | null;
|
|
324
330
|
siteUrl: string;
|
|
@@ -335,18 +341,20 @@ export declare function useGetOrder(orderId: string, options?: Omit<UseQueryOpti
|
|
|
335
341
|
createdAt: string;
|
|
336
342
|
updatedAt: string;
|
|
337
343
|
deletedAt: string;
|
|
338
|
-
name: string;
|
|
339
344
|
id: string;
|
|
345
|
+
name: string;
|
|
340
346
|
isActive: boolean;
|
|
341
347
|
};
|
|
342
|
-
name: string;
|
|
343
348
|
id: string;
|
|
349
|
+
name: string;
|
|
344
350
|
brandId: string | null;
|
|
345
351
|
stateId: string;
|
|
346
352
|
allowCOD: boolean;
|
|
347
353
|
allowOnline: boolean;
|
|
348
354
|
waybillOnly: boolean;
|
|
349
355
|
estimatedDays: number | null;
|
|
356
|
+
noteTitle: string | null;
|
|
357
|
+
noteContent: string | null;
|
|
350
358
|
isActive: boolean;
|
|
351
359
|
};
|
|
352
360
|
items: {
|
|
@@ -360,8 +368,8 @@ export declare function useGetOrder(orderId: string, options?: Omit<UseQueryOpti
|
|
|
360
368
|
createdAt: string;
|
|
361
369
|
updatedAt: string;
|
|
362
370
|
deletedAt: string;
|
|
363
|
-
name: string;
|
|
364
371
|
id: string;
|
|
372
|
+
name: string;
|
|
365
373
|
slug: string;
|
|
366
374
|
brandId: string;
|
|
367
375
|
isActive: boolean;
|
|
@@ -437,7 +445,9 @@ export declare function useGetOrder(orderId: string, options?: Omit<UseQueryOpti
|
|
|
437
445
|
includes?: boolean;
|
|
438
446
|
flatMap?: boolean;
|
|
439
447
|
flat?: boolean;
|
|
448
|
+
at?: boolean;
|
|
440
449
|
};
|
|
450
|
+
at: never;
|
|
441
451
|
};
|
|
442
452
|
} | {
|
|
443
453
|
[x: number]: string | number | boolean | {
|
|
@@ -510,11 +520,13 @@ export declare function useGetOrder(orderId: string, options?: Omit<UseQueryOpti
|
|
|
510
520
|
includes?: boolean;
|
|
511
521
|
flatMap?: boolean;
|
|
512
522
|
flat?: boolean;
|
|
523
|
+
at?: boolean;
|
|
513
524
|
};
|
|
525
|
+
at: never;
|
|
514
526
|
};
|
|
515
527
|
};
|
|
516
|
-
name: string | null;
|
|
517
528
|
id: string;
|
|
529
|
+
name: string | null;
|
|
518
530
|
isActive: boolean;
|
|
519
531
|
thumbnailUrl: string | null;
|
|
520
532
|
productId: string;
|
|
@@ -526,8 +538,8 @@ export declare function useGetOrder(orderId: string, options?: Omit<UseQueryOpti
|
|
|
526
538
|
createdAt: string;
|
|
527
539
|
updatedAt: string;
|
|
528
540
|
deletedAt: string;
|
|
529
|
-
name: string;
|
|
530
541
|
id: string;
|
|
542
|
+
name: string;
|
|
531
543
|
isActive: boolean;
|
|
532
544
|
address: string | null;
|
|
533
545
|
city: string | null;
|
|
@@ -539,8 +551,8 @@ export declare function useGetOrder(orderId: string, options?: Omit<UseQueryOpti
|
|
|
539
551
|
warehouseId: string | null;
|
|
540
552
|
quantity: number;
|
|
541
553
|
}[];
|
|
542
|
-
id: string;
|
|
543
554
|
email: string | null;
|
|
555
|
+
id: string;
|
|
544
556
|
brandId: string;
|
|
545
557
|
deliveryZoneId: string;
|
|
546
558
|
recoveryAttempts: number;
|
|
@@ -590,8 +602,8 @@ export declare function useCreateOrder(options?: UseMutationOptions<Awaited<Retu
|
|
|
590
602
|
createdAt: string;
|
|
591
603
|
updatedAt: string;
|
|
592
604
|
deletedAt: string;
|
|
593
|
-
name: string;
|
|
594
605
|
id: string;
|
|
606
|
+
name: string;
|
|
595
607
|
slug: string;
|
|
596
608
|
logoUrl: string | null;
|
|
597
609
|
siteUrl: string;
|
|
@@ -608,18 +620,20 @@ export declare function useCreateOrder(options?: UseMutationOptions<Awaited<Retu
|
|
|
608
620
|
createdAt: string;
|
|
609
621
|
updatedAt: string;
|
|
610
622
|
deletedAt: string;
|
|
611
|
-
name: string;
|
|
612
623
|
id: string;
|
|
624
|
+
name: string;
|
|
613
625
|
isActive: boolean;
|
|
614
626
|
};
|
|
615
|
-
name: string;
|
|
616
627
|
id: string;
|
|
628
|
+
name: string;
|
|
617
629
|
brandId: string | null;
|
|
618
630
|
stateId: string;
|
|
619
631
|
allowCOD: boolean;
|
|
620
632
|
allowOnline: boolean;
|
|
621
633
|
waybillOnly: boolean;
|
|
622
634
|
estimatedDays: number | null;
|
|
635
|
+
noteTitle: string | null;
|
|
636
|
+
noteContent: string | null;
|
|
623
637
|
isActive: boolean;
|
|
624
638
|
};
|
|
625
639
|
items: {
|
|
@@ -633,8 +647,8 @@ export declare function useCreateOrder(options?: UseMutationOptions<Awaited<Retu
|
|
|
633
647
|
createdAt: string;
|
|
634
648
|
updatedAt: string;
|
|
635
649
|
deletedAt: string;
|
|
636
|
-
name: string;
|
|
637
650
|
id: string;
|
|
651
|
+
name: string;
|
|
638
652
|
slug: string;
|
|
639
653
|
brandId: string;
|
|
640
654
|
isActive: boolean;
|
|
@@ -710,7 +724,9 @@ export declare function useCreateOrder(options?: UseMutationOptions<Awaited<Retu
|
|
|
710
724
|
includes?: boolean;
|
|
711
725
|
flatMap?: boolean;
|
|
712
726
|
flat?: boolean;
|
|
727
|
+
at?: boolean;
|
|
713
728
|
};
|
|
729
|
+
at: never;
|
|
714
730
|
};
|
|
715
731
|
} | {
|
|
716
732
|
[x: number]: string | number | boolean | {
|
|
@@ -783,11 +799,13 @@ export declare function useCreateOrder(options?: UseMutationOptions<Awaited<Retu
|
|
|
783
799
|
includes?: boolean;
|
|
784
800
|
flatMap?: boolean;
|
|
785
801
|
flat?: boolean;
|
|
802
|
+
at?: boolean;
|
|
786
803
|
};
|
|
804
|
+
at: never;
|
|
787
805
|
};
|
|
788
806
|
};
|
|
789
|
-
name: string | null;
|
|
790
807
|
id: string;
|
|
808
|
+
name: string | null;
|
|
791
809
|
isActive: boolean;
|
|
792
810
|
thumbnailUrl: string | null;
|
|
793
811
|
productId: string;
|
|
@@ -799,8 +817,8 @@ export declare function useCreateOrder(options?: UseMutationOptions<Awaited<Retu
|
|
|
799
817
|
createdAt: string;
|
|
800
818
|
updatedAt: string;
|
|
801
819
|
deletedAt: string;
|
|
802
|
-
name: string;
|
|
803
820
|
id: string;
|
|
821
|
+
name: string;
|
|
804
822
|
isActive: boolean;
|
|
805
823
|
address: string | null;
|
|
806
824
|
city: string | null;
|
|
@@ -812,8 +830,8 @@ export declare function useCreateOrder(options?: UseMutationOptions<Awaited<Retu
|
|
|
812
830
|
warehouseId: string | null;
|
|
813
831
|
quantity: number;
|
|
814
832
|
}[];
|
|
815
|
-
id: string;
|
|
816
833
|
email: string | null;
|
|
834
|
+
id: string;
|
|
817
835
|
brandId: string;
|
|
818
836
|
deliveryZoneId: string;
|
|
819
837
|
recoveryAttempts: number;
|
|
@@ -864,8 +882,8 @@ export declare function useUpdateOrder(orderId: string, options?: UseMutationOpt
|
|
|
864
882
|
createdAt: string;
|
|
865
883
|
updatedAt: string;
|
|
866
884
|
deletedAt: string;
|
|
867
|
-
name: string;
|
|
868
885
|
id: string;
|
|
886
|
+
name: string;
|
|
869
887
|
slug: string;
|
|
870
888
|
logoUrl: string | null;
|
|
871
889
|
siteUrl: string;
|
|
@@ -882,18 +900,20 @@ export declare function useUpdateOrder(orderId: string, options?: UseMutationOpt
|
|
|
882
900
|
createdAt: string;
|
|
883
901
|
updatedAt: string;
|
|
884
902
|
deletedAt: string;
|
|
885
|
-
name: string;
|
|
886
903
|
id: string;
|
|
904
|
+
name: string;
|
|
887
905
|
isActive: boolean;
|
|
888
906
|
};
|
|
889
|
-
name: string;
|
|
890
907
|
id: string;
|
|
908
|
+
name: string;
|
|
891
909
|
brandId: string | null;
|
|
892
910
|
stateId: string;
|
|
893
911
|
allowCOD: boolean;
|
|
894
912
|
allowOnline: boolean;
|
|
895
913
|
waybillOnly: boolean;
|
|
896
914
|
estimatedDays: number | null;
|
|
915
|
+
noteTitle: string | null;
|
|
916
|
+
noteContent: string | null;
|
|
897
917
|
isActive: boolean;
|
|
898
918
|
};
|
|
899
919
|
items: {
|
|
@@ -907,8 +927,8 @@ export declare function useUpdateOrder(orderId: string, options?: UseMutationOpt
|
|
|
907
927
|
createdAt: string;
|
|
908
928
|
updatedAt: string;
|
|
909
929
|
deletedAt: string;
|
|
910
|
-
name: string;
|
|
911
930
|
id: string;
|
|
931
|
+
name: string;
|
|
912
932
|
slug: string;
|
|
913
933
|
brandId: string;
|
|
914
934
|
isActive: boolean;
|
|
@@ -984,7 +1004,9 @@ export declare function useUpdateOrder(orderId: string, options?: UseMutationOpt
|
|
|
984
1004
|
includes?: boolean;
|
|
985
1005
|
flatMap?: boolean;
|
|
986
1006
|
flat?: boolean;
|
|
1007
|
+
at?: boolean;
|
|
987
1008
|
};
|
|
1009
|
+
at: never;
|
|
988
1010
|
};
|
|
989
1011
|
} | {
|
|
990
1012
|
[x: number]: string | number | boolean | {
|
|
@@ -1057,11 +1079,13 @@ export declare function useUpdateOrder(orderId: string, options?: UseMutationOpt
|
|
|
1057
1079
|
includes?: boolean;
|
|
1058
1080
|
flatMap?: boolean;
|
|
1059
1081
|
flat?: boolean;
|
|
1082
|
+
at?: boolean;
|
|
1060
1083
|
};
|
|
1084
|
+
at: never;
|
|
1061
1085
|
};
|
|
1062
1086
|
};
|
|
1063
|
-
name: string | null;
|
|
1064
1087
|
id: string;
|
|
1088
|
+
name: string | null;
|
|
1065
1089
|
isActive: boolean;
|
|
1066
1090
|
thumbnailUrl: string | null;
|
|
1067
1091
|
productId: string;
|
|
@@ -1073,8 +1097,8 @@ export declare function useUpdateOrder(orderId: string, options?: UseMutationOpt
|
|
|
1073
1097
|
createdAt: string;
|
|
1074
1098
|
updatedAt: string;
|
|
1075
1099
|
deletedAt: string;
|
|
1076
|
-
name: string;
|
|
1077
1100
|
id: string;
|
|
1101
|
+
name: string;
|
|
1078
1102
|
isActive: boolean;
|
|
1079
1103
|
address: string | null;
|
|
1080
1104
|
city: string | null;
|
|
@@ -1086,8 +1110,8 @@ export declare function useUpdateOrder(orderId: string, options?: UseMutationOpt
|
|
|
1086
1110
|
warehouseId: string | null;
|
|
1087
1111
|
quantity: number;
|
|
1088
1112
|
}[];
|
|
1089
|
-
id: string;
|
|
1090
1113
|
email: string | null;
|
|
1114
|
+
id: string;
|
|
1091
1115
|
brandId: string;
|
|
1092
1116
|
deliveryZoneId: string;
|
|
1093
1117
|
recoveryAttempts: number;
|
|
@@ -1114,8 +1138,8 @@ export declare function useUpdateOrder(orderId: string, options?: UseMutationOpt
|
|
|
1114
1138
|
};
|
|
1115
1139
|
} | {
|
|
1116
1140
|
brand: {
|
|
1117
|
-
name: string;
|
|
1118
1141
|
id: string;
|
|
1142
|
+
name: string;
|
|
1119
1143
|
slug: string;
|
|
1120
1144
|
logoUrl: string | null;
|
|
1121
1145
|
siteUrl: string;
|
|
@@ -1127,15 +1151,15 @@ export declare function useUpdateOrder(orderId: string, options?: UseMutationOpt
|
|
|
1127
1151
|
};
|
|
1128
1152
|
deliveryZone: {
|
|
1129
1153
|
state: {
|
|
1130
|
-
name: string;
|
|
1131
1154
|
id: string;
|
|
1155
|
+
name: string;
|
|
1132
1156
|
createdAt: string;
|
|
1133
1157
|
updatedAt: string;
|
|
1134
1158
|
deletedAt: string;
|
|
1135
1159
|
isActive: boolean;
|
|
1136
1160
|
};
|
|
1137
|
-
name: string;
|
|
1138
1161
|
id: string;
|
|
1162
|
+
name: string;
|
|
1139
1163
|
createdAt: string;
|
|
1140
1164
|
updatedAt: string;
|
|
1141
1165
|
deletedAt: string;
|
|
@@ -1147,12 +1171,14 @@ export declare function useUpdateOrder(orderId: string, options?: UseMutationOpt
|
|
|
1147
1171
|
allowOnline: boolean;
|
|
1148
1172
|
waybillOnly: boolean;
|
|
1149
1173
|
estimatedDays: number | null;
|
|
1174
|
+
noteTitle: string | null;
|
|
1175
|
+
noteContent: string | null;
|
|
1150
1176
|
isActive: boolean;
|
|
1151
1177
|
};
|
|
1152
1178
|
items: {
|
|
1153
1179
|
warehouse: {
|
|
1154
|
-
name: string;
|
|
1155
1180
|
id: string;
|
|
1181
|
+
name: string;
|
|
1156
1182
|
createdAt: string;
|
|
1157
1183
|
updatedAt: string;
|
|
1158
1184
|
deletedAt: string;
|
|
@@ -1163,8 +1189,8 @@ export declare function useUpdateOrder(orderId: string, options?: UseMutationOpt
|
|
|
1163
1189
|
};
|
|
1164
1190
|
variant: {
|
|
1165
1191
|
product: {
|
|
1166
|
-
name: string;
|
|
1167
1192
|
id: string;
|
|
1193
|
+
name: string;
|
|
1168
1194
|
slug: string;
|
|
1169
1195
|
createdAt: string;
|
|
1170
1196
|
updatedAt: string;
|
|
@@ -1243,7 +1269,9 @@ export declare function useUpdateOrder(orderId: string, options?: UseMutationOpt
|
|
|
1243
1269
|
includes?: boolean;
|
|
1244
1270
|
flatMap?: boolean;
|
|
1245
1271
|
flat?: boolean;
|
|
1272
|
+
at?: boolean;
|
|
1246
1273
|
};
|
|
1274
|
+
at: never;
|
|
1247
1275
|
};
|
|
1248
1276
|
} | {
|
|
1249
1277
|
[x: number]: string | number | boolean | {
|
|
@@ -1316,11 +1344,13 @@ export declare function useUpdateOrder(orderId: string, options?: UseMutationOpt
|
|
|
1316
1344
|
includes?: boolean;
|
|
1317
1345
|
flatMap?: boolean;
|
|
1318
1346
|
flat?: boolean;
|
|
1347
|
+
at?: boolean;
|
|
1319
1348
|
};
|
|
1349
|
+
at: never;
|
|
1320
1350
|
};
|
|
1321
1351
|
};
|
|
1322
|
-
name: string | null;
|
|
1323
1352
|
id: string;
|
|
1353
|
+
name: string | null;
|
|
1324
1354
|
createdAt: string;
|
|
1325
1355
|
updatedAt: string;
|
|
1326
1356
|
deletedAt: string;
|
|
@@ -1339,8 +1369,8 @@ export declare function useUpdateOrder(orderId: string, options?: UseMutationOpt
|
|
|
1339
1369
|
quantity: number;
|
|
1340
1370
|
priceAtPurchase: string;
|
|
1341
1371
|
}[];
|
|
1342
|
-
id: string;
|
|
1343
1372
|
email: string | null;
|
|
1373
|
+
id: string;
|
|
1344
1374
|
createdAt: string;
|
|
1345
1375
|
updatedAt: string;
|
|
1346
1376
|
deletedAt: string;
|
|
@@ -1394,8 +1424,8 @@ export declare function useUpdateOrderStatus(orderId: string, options?: UseMutat
|
|
|
1394
1424
|
createdAt: string;
|
|
1395
1425
|
updatedAt: string;
|
|
1396
1426
|
deletedAt: string;
|
|
1397
|
-
name: string;
|
|
1398
1427
|
id: string;
|
|
1428
|
+
name: string;
|
|
1399
1429
|
slug: string;
|
|
1400
1430
|
logoUrl: string | null;
|
|
1401
1431
|
siteUrl: string;
|
|
@@ -1412,18 +1442,20 @@ export declare function useUpdateOrderStatus(orderId: string, options?: UseMutat
|
|
|
1412
1442
|
createdAt: string;
|
|
1413
1443
|
updatedAt: string;
|
|
1414
1444
|
deletedAt: string;
|
|
1415
|
-
name: string;
|
|
1416
1445
|
id: string;
|
|
1446
|
+
name: string;
|
|
1417
1447
|
isActive: boolean;
|
|
1418
1448
|
};
|
|
1419
|
-
name: string;
|
|
1420
1449
|
id: string;
|
|
1450
|
+
name: string;
|
|
1421
1451
|
brandId: string | null;
|
|
1422
1452
|
stateId: string;
|
|
1423
1453
|
allowCOD: boolean;
|
|
1424
1454
|
allowOnline: boolean;
|
|
1425
1455
|
waybillOnly: boolean;
|
|
1426
1456
|
estimatedDays: number | null;
|
|
1457
|
+
noteTitle: string | null;
|
|
1458
|
+
noteContent: string | null;
|
|
1427
1459
|
isActive: boolean;
|
|
1428
1460
|
};
|
|
1429
1461
|
items: {
|
|
@@ -1437,8 +1469,8 @@ export declare function useUpdateOrderStatus(orderId: string, options?: UseMutat
|
|
|
1437
1469
|
createdAt: string;
|
|
1438
1470
|
updatedAt: string;
|
|
1439
1471
|
deletedAt: string;
|
|
1440
|
-
name: string;
|
|
1441
1472
|
id: string;
|
|
1473
|
+
name: string;
|
|
1442
1474
|
slug: string;
|
|
1443
1475
|
brandId: string;
|
|
1444
1476
|
isActive: boolean;
|
|
@@ -1514,7 +1546,9 @@ export declare function useUpdateOrderStatus(orderId: string, options?: UseMutat
|
|
|
1514
1546
|
includes?: boolean;
|
|
1515
1547
|
flatMap?: boolean;
|
|
1516
1548
|
flat?: boolean;
|
|
1549
|
+
at?: boolean;
|
|
1517
1550
|
};
|
|
1551
|
+
at: never;
|
|
1518
1552
|
};
|
|
1519
1553
|
} | {
|
|
1520
1554
|
[x: number]: string | number | boolean | {
|
|
@@ -1587,11 +1621,13 @@ export declare function useUpdateOrderStatus(orderId: string, options?: UseMutat
|
|
|
1587
1621
|
includes?: boolean;
|
|
1588
1622
|
flatMap?: boolean;
|
|
1589
1623
|
flat?: boolean;
|
|
1624
|
+
at?: boolean;
|
|
1590
1625
|
};
|
|
1626
|
+
at: never;
|
|
1591
1627
|
};
|
|
1592
1628
|
};
|
|
1593
|
-
name: string | null;
|
|
1594
1629
|
id: string;
|
|
1630
|
+
name: string | null;
|
|
1595
1631
|
isActive: boolean;
|
|
1596
1632
|
thumbnailUrl: string | null;
|
|
1597
1633
|
productId: string;
|
|
@@ -1603,8 +1639,8 @@ export declare function useUpdateOrderStatus(orderId: string, options?: UseMutat
|
|
|
1603
1639
|
createdAt: string;
|
|
1604
1640
|
updatedAt: string;
|
|
1605
1641
|
deletedAt: string;
|
|
1606
|
-
name: string;
|
|
1607
1642
|
id: string;
|
|
1643
|
+
name: string;
|
|
1608
1644
|
isActive: boolean;
|
|
1609
1645
|
address: string | null;
|
|
1610
1646
|
city: string | null;
|
|
@@ -1616,8 +1652,8 @@ export declare function useUpdateOrderStatus(orderId: string, options?: UseMutat
|
|
|
1616
1652
|
warehouseId: string | null;
|
|
1617
1653
|
quantity: number;
|
|
1618
1654
|
}[];
|
|
1619
|
-
id: string;
|
|
1620
1655
|
email: string | null;
|
|
1656
|
+
id: string;
|
|
1621
1657
|
brandId: string;
|
|
1622
1658
|
deliveryZoneId: string;
|
|
1623
1659
|
recoveryAttempts: number;
|