@instockng/api-client 1.0.8 → 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/lib/utils.d.ts +1 -1
- package/dist/apps/backend/src/lib/utils.js +1 -1
- package/dist/apps/backend/src/routes/admin/abandoned-carts.d.ts +8 -0
- package/dist/apps/backend/src/routes/admin/customers.d.ts +4 -0
- package/dist/apps/backend/src/routes/admin/inventory.d.ts +4 -0
- package/dist/apps/backend/src/routes/admin/orders.d.ts +24 -0
- package/dist/apps/backend/src/routes/admin/products.d.ts +16 -0
- package/dist/apps/backend/src/routes/admin/stats.d.ts +4 -0
- package/dist/apps/backend/src/routes/admin/warehouses.d.ts +4 -0
- package/dist/apps/backend/src/routes/public/carts.d.ts +36 -0
- package/dist/apps/backend/src/routes/public/orders.d.ts +8 -0
- package/dist/apps/backend/src/routes/public/products.d.ts +8 -0
- package/dist/packages/api-client/src/fetchers/carts.d.ts +36 -0
- package/dist/packages/api-client/src/fetchers/orders.d.ts +8 -0
- package/dist/packages/api-client/src/fetchers/products.d.ts +8 -0
- package/dist/packages/api-client/src/hooks/admin/abandoned-carts.d.ts +8 -0
- package/dist/packages/api-client/src/hooks/admin/customers.d.ts +4 -0
- package/dist/packages/api-client/src/hooks/admin/inventory.d.ts +4 -0
- package/dist/packages/api-client/src/hooks/admin/orders.d.ts +24 -0
- package/dist/packages/api-client/src/hooks/admin/products.d.ts +8 -0
- package/dist/packages/api-client/src/hooks/admin/stats.d.ts +4 -0
- package/dist/packages/api-client/src/hooks/admin/warehouses.d.ts +4 -0
- package/dist/packages/api-client/src/hooks/public/carts.d.ts +36 -0
- package/dist/packages/api-client/src/hooks/public/orders.d.ts +8 -0
- package/dist/packages/api-client/src/hooks/public/products.d.ts +8 -0
- package/dist/packages/api-client/src/rpc-client.d.ts +116 -0
- package/package.json +1 -1
|
@@ -144,7 +144,9 @@ export declare function fetchCart(cartId: string): Promise<{
|
|
|
144
144
|
includes?: boolean;
|
|
145
145
|
flatMap?: boolean;
|
|
146
146
|
flat?: boolean;
|
|
147
|
+
at?: boolean;
|
|
147
148
|
};
|
|
149
|
+
at: never;
|
|
148
150
|
};
|
|
149
151
|
} | {
|
|
150
152
|
[x: number]: string | number | boolean | {
|
|
@@ -217,7 +219,9 @@ export declare function fetchCart(cartId: string): Promise<{
|
|
|
217
219
|
includes?: boolean;
|
|
218
220
|
flatMap?: boolean;
|
|
219
221
|
flat?: boolean;
|
|
222
|
+
at?: boolean;
|
|
220
223
|
};
|
|
224
|
+
at: never;
|
|
221
225
|
};
|
|
222
226
|
};
|
|
223
227
|
id: string;
|
|
@@ -400,7 +404,9 @@ export declare function createCart(brandSlug: string): Promise<{
|
|
|
400
404
|
includes?: boolean;
|
|
401
405
|
flatMap?: boolean;
|
|
402
406
|
flat?: boolean;
|
|
407
|
+
at?: boolean;
|
|
403
408
|
};
|
|
409
|
+
at: never;
|
|
404
410
|
};
|
|
405
411
|
} | {
|
|
406
412
|
[x: number]: string | number | boolean | {
|
|
@@ -473,7 +479,9 @@ export declare function createCart(brandSlug: string): Promise<{
|
|
|
473
479
|
includes?: boolean;
|
|
474
480
|
flatMap?: boolean;
|
|
475
481
|
flat?: boolean;
|
|
482
|
+
at?: boolean;
|
|
476
483
|
};
|
|
484
|
+
at: never;
|
|
477
485
|
};
|
|
478
486
|
};
|
|
479
487
|
id: string;
|
|
@@ -659,7 +667,9 @@ export declare function updateCart(cartId: string, data: {
|
|
|
659
667
|
includes?: boolean;
|
|
660
668
|
flatMap?: boolean;
|
|
661
669
|
flat?: boolean;
|
|
670
|
+
at?: boolean;
|
|
662
671
|
};
|
|
672
|
+
at: never;
|
|
663
673
|
};
|
|
664
674
|
} | {
|
|
665
675
|
[x: number]: string | number | boolean | {
|
|
@@ -732,7 +742,9 @@ export declare function updateCart(cartId: string, data: {
|
|
|
732
742
|
includes?: boolean;
|
|
733
743
|
flatMap?: boolean;
|
|
734
744
|
flat?: boolean;
|
|
745
|
+
at?: boolean;
|
|
735
746
|
};
|
|
747
|
+
at: never;
|
|
736
748
|
};
|
|
737
749
|
};
|
|
738
750
|
id: string;
|
|
@@ -919,7 +931,9 @@ export declare function addCartItem(cartId: string, sku: string, quantity: numbe
|
|
|
919
931
|
includes?: boolean;
|
|
920
932
|
flatMap?: boolean;
|
|
921
933
|
flat?: boolean;
|
|
934
|
+
at?: boolean;
|
|
922
935
|
};
|
|
936
|
+
at: never;
|
|
923
937
|
};
|
|
924
938
|
} | {
|
|
925
939
|
[x: number]: string | number | boolean | {
|
|
@@ -992,7 +1006,9 @@ export declare function addCartItem(cartId: string, sku: string, quantity: numbe
|
|
|
992
1006
|
includes?: boolean;
|
|
993
1007
|
flatMap?: boolean;
|
|
994
1008
|
flat?: boolean;
|
|
1009
|
+
at?: boolean;
|
|
995
1010
|
};
|
|
1011
|
+
at: never;
|
|
996
1012
|
};
|
|
997
1013
|
};
|
|
998
1014
|
id: string;
|
|
@@ -1177,7 +1193,9 @@ export declare function updateCartItem(cartId: string, itemId: string, quantity:
|
|
|
1177
1193
|
includes?: boolean;
|
|
1178
1194
|
flatMap?: boolean;
|
|
1179
1195
|
flat?: boolean;
|
|
1196
|
+
at?: boolean;
|
|
1180
1197
|
};
|
|
1198
|
+
at: never;
|
|
1181
1199
|
};
|
|
1182
1200
|
} | {
|
|
1183
1201
|
[x: number]: string | number | boolean | {
|
|
@@ -1250,7 +1268,9 @@ export declare function updateCartItem(cartId: string, itemId: string, quantity:
|
|
|
1250
1268
|
includes?: boolean;
|
|
1251
1269
|
flatMap?: boolean;
|
|
1252
1270
|
flat?: boolean;
|
|
1271
|
+
at?: boolean;
|
|
1253
1272
|
};
|
|
1273
|
+
at: never;
|
|
1254
1274
|
};
|
|
1255
1275
|
};
|
|
1256
1276
|
id: string;
|
|
@@ -1429,7 +1449,9 @@ export declare function removeCartItem(cartId: string, itemId: string): Promise<
|
|
|
1429
1449
|
includes?: boolean;
|
|
1430
1450
|
flatMap?: boolean;
|
|
1431
1451
|
flat?: boolean;
|
|
1452
|
+
at?: boolean;
|
|
1432
1453
|
};
|
|
1454
|
+
at: never;
|
|
1433
1455
|
};
|
|
1434
1456
|
} | {
|
|
1435
1457
|
[x: number]: string | number | boolean | {
|
|
@@ -1502,7 +1524,9 @@ export declare function removeCartItem(cartId: string, itemId: string): Promise<
|
|
|
1502
1524
|
includes?: boolean;
|
|
1503
1525
|
flatMap?: boolean;
|
|
1504
1526
|
flat?: boolean;
|
|
1527
|
+
at?: boolean;
|
|
1505
1528
|
};
|
|
1529
|
+
at: never;
|
|
1506
1530
|
};
|
|
1507
1531
|
};
|
|
1508
1532
|
id: string;
|
|
@@ -1681,7 +1705,9 @@ export declare function applyDiscount(cartId: string, code: string): Promise<{
|
|
|
1681
1705
|
includes?: boolean;
|
|
1682
1706
|
flatMap?: boolean;
|
|
1683
1707
|
flat?: boolean;
|
|
1708
|
+
at?: boolean;
|
|
1684
1709
|
};
|
|
1710
|
+
at: never;
|
|
1685
1711
|
};
|
|
1686
1712
|
} | {
|
|
1687
1713
|
[x: number]: string | number | boolean | {
|
|
@@ -1754,7 +1780,9 @@ export declare function applyDiscount(cartId: string, code: string): Promise<{
|
|
|
1754
1780
|
includes?: boolean;
|
|
1755
1781
|
flatMap?: boolean;
|
|
1756
1782
|
flat?: boolean;
|
|
1783
|
+
at?: boolean;
|
|
1757
1784
|
};
|
|
1785
|
+
at: never;
|
|
1758
1786
|
};
|
|
1759
1787
|
};
|
|
1760
1788
|
id: string;
|
|
@@ -1937,7 +1965,9 @@ export declare function removeDiscount(cartId: string): Promise<{
|
|
|
1937
1965
|
includes?: boolean;
|
|
1938
1966
|
flatMap?: boolean;
|
|
1939
1967
|
flat?: boolean;
|
|
1968
|
+
at?: boolean;
|
|
1940
1969
|
};
|
|
1970
|
+
at: never;
|
|
1941
1971
|
};
|
|
1942
1972
|
} | {
|
|
1943
1973
|
[x: number]: string | number | boolean | {
|
|
@@ -2010,7 +2040,9 @@ export declare function removeDiscount(cartId: string): Promise<{
|
|
|
2010
2040
|
includes?: boolean;
|
|
2011
2041
|
flatMap?: boolean;
|
|
2012
2042
|
flat?: boolean;
|
|
2043
|
+
at?: boolean;
|
|
2013
2044
|
};
|
|
2045
|
+
at: never;
|
|
2014
2046
|
};
|
|
2015
2047
|
};
|
|
2016
2048
|
id: string;
|
|
@@ -2211,7 +2243,9 @@ export declare function checkoutCart(cartId: string, checkoutData: {
|
|
|
2211
2243
|
includes?: boolean;
|
|
2212
2244
|
flatMap?: boolean;
|
|
2213
2245
|
flat?: boolean;
|
|
2246
|
+
at?: boolean;
|
|
2214
2247
|
};
|
|
2248
|
+
at: never;
|
|
2215
2249
|
};
|
|
2216
2250
|
} | {
|
|
2217
2251
|
[x: number]: string | number | boolean | {
|
|
@@ -2284,7 +2318,9 @@ export declare function checkoutCart(cartId: string, checkoutData: {
|
|
|
2284
2318
|
includes?: boolean;
|
|
2285
2319
|
flatMap?: boolean;
|
|
2286
2320
|
flat?: boolean;
|
|
2321
|
+
at?: boolean;
|
|
2287
2322
|
};
|
|
2323
|
+
at: never;
|
|
2288
2324
|
};
|
|
2289
2325
|
};
|
|
2290
2326
|
id: string;
|
|
@@ -151,7 +151,9 @@ export declare function fetchOrder(orderId: string, token: string): Promise<{
|
|
|
151
151
|
includes?: boolean;
|
|
152
152
|
flatMap?: boolean;
|
|
153
153
|
flat?: boolean;
|
|
154
|
+
at?: boolean;
|
|
154
155
|
};
|
|
156
|
+
at: never;
|
|
155
157
|
};
|
|
156
158
|
} | {
|
|
157
159
|
[x: number]: string | number | boolean | {
|
|
@@ -224,7 +226,9 @@ export declare function fetchOrder(orderId: string, token: string): Promise<{
|
|
|
224
226
|
includes?: boolean;
|
|
225
227
|
flatMap?: boolean;
|
|
226
228
|
flat?: boolean;
|
|
229
|
+
at?: boolean;
|
|
227
230
|
};
|
|
231
|
+
at: never;
|
|
228
232
|
};
|
|
229
233
|
};
|
|
230
234
|
id: string;
|
|
@@ -418,7 +422,9 @@ export declare function confirmOrder(orderId: string, token: string): Promise<{
|
|
|
418
422
|
includes?: boolean;
|
|
419
423
|
flatMap?: boolean;
|
|
420
424
|
flat?: boolean;
|
|
425
|
+
at?: boolean;
|
|
421
426
|
};
|
|
427
|
+
at: never;
|
|
422
428
|
};
|
|
423
429
|
} | {
|
|
424
430
|
[x: number]: string | number | boolean | {
|
|
@@ -491,7 +497,9 @@ export declare function confirmOrder(orderId: string, token: string): Promise<{
|
|
|
491
497
|
includes?: boolean;
|
|
492
498
|
flatMap?: boolean;
|
|
493
499
|
flat?: boolean;
|
|
500
|
+
at?: boolean;
|
|
494
501
|
};
|
|
502
|
+
at: never;
|
|
495
503
|
};
|
|
496
504
|
};
|
|
497
505
|
id: string;
|
|
@@ -119,7 +119,9 @@ export declare function fetchProductsByBrand(brandId: string): Promise<{
|
|
|
119
119
|
includes?: boolean;
|
|
120
120
|
flatMap?: boolean;
|
|
121
121
|
flat?: boolean;
|
|
122
|
+
at?: boolean;
|
|
122
123
|
};
|
|
124
|
+
at: never;
|
|
123
125
|
};
|
|
124
126
|
} | {
|
|
125
127
|
[x: number]: string | number | boolean | {
|
|
@@ -192,7 +194,9 @@ export declare function fetchProductsByBrand(brandId: string): Promise<{
|
|
|
192
194
|
includes?: boolean;
|
|
193
195
|
flatMap?: boolean;
|
|
194
196
|
flat?: boolean;
|
|
197
|
+
at?: boolean;
|
|
195
198
|
};
|
|
199
|
+
at: never;
|
|
196
200
|
};
|
|
197
201
|
}[]>;
|
|
198
202
|
/**
|
|
@@ -308,7 +312,9 @@ export declare function fetchProductBySlug(slug: string): Promise<{
|
|
|
308
312
|
includes?: boolean;
|
|
309
313
|
flatMap?: boolean;
|
|
310
314
|
flat?: boolean;
|
|
315
|
+
at?: boolean;
|
|
311
316
|
};
|
|
317
|
+
at: never;
|
|
312
318
|
};
|
|
313
319
|
} | {
|
|
314
320
|
[x: number]: string | number | boolean | {
|
|
@@ -381,6 +387,8 @@ export declare function fetchProductBySlug(slug: string): Promise<{
|
|
|
381
387
|
includes?: boolean;
|
|
382
388
|
flatMap?: boolean;
|
|
383
389
|
flat?: boolean;
|
|
390
|
+
at?: boolean;
|
|
384
391
|
};
|
|
392
|
+
at: never;
|
|
385
393
|
};
|
|
386
394
|
}>;
|
|
@@ -142,7 +142,9 @@ export declare function useListAbandonedCarts(params?: {
|
|
|
142
142
|
includes?: boolean;
|
|
143
143
|
flatMap?: boolean;
|
|
144
144
|
flat?: boolean;
|
|
145
|
+
at?: boolean;
|
|
145
146
|
};
|
|
147
|
+
at: never;
|
|
146
148
|
};
|
|
147
149
|
} | {
|
|
148
150
|
[x: number]: string | number | boolean | {
|
|
@@ -215,7 +217,9 @@ export declare function useListAbandonedCarts(params?: {
|
|
|
215
217
|
includes?: boolean;
|
|
216
218
|
flatMap?: boolean;
|
|
217
219
|
flat?: boolean;
|
|
220
|
+
at?: boolean;
|
|
218
221
|
};
|
|
222
|
+
at: never;
|
|
219
223
|
};
|
|
220
224
|
};
|
|
221
225
|
id: string;
|
|
@@ -408,7 +412,9 @@ export declare function useGetAbandonedCart(cartId: string, options?: Omit<UseQu
|
|
|
408
412
|
includes?: boolean;
|
|
409
413
|
flatMap?: boolean;
|
|
410
414
|
flat?: boolean;
|
|
415
|
+
at?: boolean;
|
|
411
416
|
};
|
|
417
|
+
at: never;
|
|
412
418
|
};
|
|
413
419
|
} | {
|
|
414
420
|
[x: number]: string | number | boolean | {
|
|
@@ -481,7 +487,9 @@ export declare function useGetAbandonedCart(cartId: string, options?: Omit<UseQu
|
|
|
481
487
|
includes?: boolean;
|
|
482
488
|
flatMap?: boolean;
|
|
483
489
|
flat?: boolean;
|
|
490
|
+
at?: boolean;
|
|
484
491
|
};
|
|
492
|
+
at: never;
|
|
485
493
|
};
|
|
486
494
|
};
|
|
487
495
|
id: string;
|
|
@@ -153,7 +153,9 @@ export declare function useGetCustomerHistory(phone: string, options?: Omit<UseQ
|
|
|
153
153
|
includes?: boolean;
|
|
154
154
|
flatMap?: boolean;
|
|
155
155
|
flat?: boolean;
|
|
156
|
+
at?: boolean;
|
|
156
157
|
};
|
|
158
|
+
at: never;
|
|
157
159
|
};
|
|
158
160
|
} | {
|
|
159
161
|
[x: number]: string | number | boolean | {
|
|
@@ -226,7 +228,9 @@ export declare function useGetCustomerHistory(phone: string, options?: Omit<UseQ
|
|
|
226
228
|
includes?: boolean;
|
|
227
229
|
flatMap?: boolean;
|
|
228
230
|
flat?: boolean;
|
|
231
|
+
at?: boolean;
|
|
229
232
|
};
|
|
233
|
+
at: never;
|
|
230
234
|
};
|
|
231
235
|
};
|
|
232
236
|
id: string;
|
|
@@ -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: {
|
|
@@ -163,7 +163,9 @@ export declare function useListOrders(filters?: {
|
|
|
163
163
|
includes?: boolean;
|
|
164
164
|
flatMap?: boolean;
|
|
165
165
|
flat?: boolean;
|
|
166
|
+
at?: boolean;
|
|
166
167
|
};
|
|
168
|
+
at: never;
|
|
167
169
|
};
|
|
168
170
|
} | {
|
|
169
171
|
[x: number]: string | number | boolean | {
|
|
@@ -236,7 +238,9 @@ export declare function useListOrders(filters?: {
|
|
|
236
238
|
includes?: boolean;
|
|
237
239
|
flatMap?: boolean;
|
|
238
240
|
flat?: boolean;
|
|
241
|
+
at?: boolean;
|
|
239
242
|
};
|
|
243
|
+
at: never;
|
|
240
244
|
};
|
|
241
245
|
};
|
|
242
246
|
id: string;
|
|
@@ -441,7 +445,9 @@ export declare function useGetOrder(orderId: string, options?: Omit<UseQueryOpti
|
|
|
441
445
|
includes?: boolean;
|
|
442
446
|
flatMap?: boolean;
|
|
443
447
|
flat?: boolean;
|
|
448
|
+
at?: boolean;
|
|
444
449
|
};
|
|
450
|
+
at: never;
|
|
445
451
|
};
|
|
446
452
|
} | {
|
|
447
453
|
[x: number]: string | number | boolean | {
|
|
@@ -514,7 +520,9 @@ export declare function useGetOrder(orderId: string, options?: Omit<UseQueryOpti
|
|
|
514
520
|
includes?: boolean;
|
|
515
521
|
flatMap?: boolean;
|
|
516
522
|
flat?: boolean;
|
|
523
|
+
at?: boolean;
|
|
517
524
|
};
|
|
525
|
+
at: never;
|
|
518
526
|
};
|
|
519
527
|
};
|
|
520
528
|
id: string;
|
|
@@ -716,7 +724,9 @@ export declare function useCreateOrder(options?: UseMutationOptions<Awaited<Retu
|
|
|
716
724
|
includes?: boolean;
|
|
717
725
|
flatMap?: boolean;
|
|
718
726
|
flat?: boolean;
|
|
727
|
+
at?: boolean;
|
|
719
728
|
};
|
|
729
|
+
at: never;
|
|
720
730
|
};
|
|
721
731
|
} | {
|
|
722
732
|
[x: number]: string | number | boolean | {
|
|
@@ -789,7 +799,9 @@ export declare function useCreateOrder(options?: UseMutationOptions<Awaited<Retu
|
|
|
789
799
|
includes?: boolean;
|
|
790
800
|
flatMap?: boolean;
|
|
791
801
|
flat?: boolean;
|
|
802
|
+
at?: boolean;
|
|
792
803
|
};
|
|
804
|
+
at: never;
|
|
793
805
|
};
|
|
794
806
|
};
|
|
795
807
|
id: string;
|
|
@@ -992,7 +1004,9 @@ export declare function useUpdateOrder(orderId: string, options?: UseMutationOpt
|
|
|
992
1004
|
includes?: boolean;
|
|
993
1005
|
flatMap?: boolean;
|
|
994
1006
|
flat?: boolean;
|
|
1007
|
+
at?: boolean;
|
|
995
1008
|
};
|
|
1009
|
+
at: never;
|
|
996
1010
|
};
|
|
997
1011
|
} | {
|
|
998
1012
|
[x: number]: string | number | boolean | {
|
|
@@ -1065,7 +1079,9 @@ export declare function useUpdateOrder(orderId: string, options?: UseMutationOpt
|
|
|
1065
1079
|
includes?: boolean;
|
|
1066
1080
|
flatMap?: boolean;
|
|
1067
1081
|
flat?: boolean;
|
|
1082
|
+
at?: boolean;
|
|
1068
1083
|
};
|
|
1084
|
+
at: never;
|
|
1069
1085
|
};
|
|
1070
1086
|
};
|
|
1071
1087
|
id: string;
|
|
@@ -1253,7 +1269,9 @@ export declare function useUpdateOrder(orderId: string, options?: UseMutationOpt
|
|
|
1253
1269
|
includes?: boolean;
|
|
1254
1270
|
flatMap?: boolean;
|
|
1255
1271
|
flat?: boolean;
|
|
1272
|
+
at?: boolean;
|
|
1256
1273
|
};
|
|
1274
|
+
at: never;
|
|
1257
1275
|
};
|
|
1258
1276
|
} | {
|
|
1259
1277
|
[x: number]: string | number | boolean | {
|
|
@@ -1326,7 +1344,9 @@ export declare function useUpdateOrder(orderId: string, options?: UseMutationOpt
|
|
|
1326
1344
|
includes?: boolean;
|
|
1327
1345
|
flatMap?: boolean;
|
|
1328
1346
|
flat?: boolean;
|
|
1347
|
+
at?: boolean;
|
|
1329
1348
|
};
|
|
1349
|
+
at: never;
|
|
1330
1350
|
};
|
|
1331
1351
|
};
|
|
1332
1352
|
id: string;
|
|
@@ -1526,7 +1546,9 @@ export declare function useUpdateOrderStatus(orderId: string, options?: UseMutat
|
|
|
1526
1546
|
includes?: boolean;
|
|
1527
1547
|
flatMap?: boolean;
|
|
1528
1548
|
flat?: boolean;
|
|
1549
|
+
at?: boolean;
|
|
1529
1550
|
};
|
|
1551
|
+
at: never;
|
|
1530
1552
|
};
|
|
1531
1553
|
} | {
|
|
1532
1554
|
[x: number]: string | number | boolean | {
|
|
@@ -1599,7 +1621,9 @@ export declare function useUpdateOrderStatus(orderId: string, options?: UseMutat
|
|
|
1599
1621
|
includes?: boolean;
|
|
1600
1622
|
flatMap?: boolean;
|
|
1601
1623
|
flat?: boolean;
|
|
1624
|
+
at?: boolean;
|
|
1602
1625
|
};
|
|
1626
|
+
at: never;
|
|
1603
1627
|
};
|
|
1604
1628
|
};
|
|
1605
1629
|
id: string;
|
|
@@ -110,7 +110,9 @@ export declare function useListProducts(brandId?: string, options?: Omit<UseQuer
|
|
|
110
110
|
includes?: boolean;
|
|
111
111
|
flatMap?: boolean;
|
|
112
112
|
flat?: boolean;
|
|
113
|
+
at?: boolean;
|
|
113
114
|
};
|
|
115
|
+
at: never;
|
|
114
116
|
};
|
|
115
117
|
} | {
|
|
116
118
|
[x: number]: string | number | boolean | {
|
|
@@ -183,7 +185,9 @@ export declare function useListProducts(brandId?: string, options?: Omit<UseQuer
|
|
|
183
185
|
includes?: boolean;
|
|
184
186
|
flatMap?: boolean;
|
|
185
187
|
flat?: boolean;
|
|
188
|
+
at?: boolean;
|
|
186
189
|
};
|
|
190
|
+
at: never;
|
|
187
191
|
};
|
|
188
192
|
}[], Error>;
|
|
189
193
|
export declare function useGetProduct(productId: string, options?: Omit<UseQueryOptions<Awaited<ReturnType<Awaited<ReturnType<ReturnType<typeof createAdminRpcClients>['products'][':id']['$get']>>['json']>>, Error>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<{
|
|
@@ -293,7 +297,9 @@ export declare function useGetProduct(productId: string, options?: Omit<UseQuery
|
|
|
293
297
|
includes?: boolean;
|
|
294
298
|
flatMap?: boolean;
|
|
295
299
|
flat?: boolean;
|
|
300
|
+
at?: boolean;
|
|
296
301
|
};
|
|
302
|
+
at: never;
|
|
297
303
|
};
|
|
298
304
|
} | {
|
|
299
305
|
[x: number]: string | number | boolean | {
|
|
@@ -366,7 +372,9 @@ export declare function useGetProduct(productId: string, options?: Omit<UseQuery
|
|
|
366
372
|
includes?: boolean;
|
|
367
373
|
flatMap?: boolean;
|
|
368
374
|
flat?: boolean;
|
|
375
|
+
at?: boolean;
|
|
369
376
|
};
|
|
377
|
+
at: never;
|
|
370
378
|
};
|
|
371
379
|
}, Error>;
|
|
372
380
|
export declare function useCreateProduct(options?: UseMutationOptions<any, Error, any>): import("@tanstack/react-query").UseMutationResult<any, Error, any, unknown>;
|
|
@@ -152,7 +152,9 @@ export declare function useGetStats(params?: {
|
|
|
152
152
|
includes?: boolean;
|
|
153
153
|
flatMap?: boolean;
|
|
154
154
|
flat?: boolean;
|
|
155
|
+
at?: boolean;
|
|
155
156
|
};
|
|
157
|
+
at: never;
|
|
156
158
|
};
|
|
157
159
|
} | {
|
|
158
160
|
[x: number]: string | number | boolean | {
|
|
@@ -225,7 +227,9 @@ export declare function useGetStats(params?: {
|
|
|
225
227
|
includes?: boolean;
|
|
226
228
|
flatMap?: boolean;
|
|
227
229
|
flat?: boolean;
|
|
230
|
+
at?: boolean;
|
|
228
231
|
};
|
|
232
|
+
at: never;
|
|
229
233
|
};
|
|
230
234
|
};
|
|
231
235
|
id: string;
|
|
@@ -155,7 +155,9 @@ export declare function useGetWarehouseInventory(warehouseId: string, options?:
|
|
|
155
155
|
includes?: boolean;
|
|
156
156
|
flatMap?: boolean;
|
|
157
157
|
flat?: boolean;
|
|
158
|
+
at?: boolean;
|
|
158
159
|
};
|
|
160
|
+
at: never;
|
|
159
161
|
};
|
|
160
162
|
} | {
|
|
161
163
|
[x: number]: string | number | boolean | {
|
|
@@ -228,7 +230,9 @@ export declare function useGetWarehouseInventory(warehouseId: string, options?:
|
|
|
228
230
|
includes?: boolean;
|
|
229
231
|
flatMap?: boolean;
|
|
230
232
|
flat?: boolean;
|
|
233
|
+
at?: boolean;
|
|
231
234
|
};
|
|
235
|
+
at: never;
|
|
232
236
|
};
|
|
233
237
|
};
|
|
234
238
|
id: string;
|