@instockng/api-client 1.0.15 → 1.0.17
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 -0
- package/dist/fetchers/carts.d.ts +5 -37
- package/dist/fetchers/carts.js +4 -2
- package/dist/fetchers/orders.d.ts +0 -8
- package/dist/fetchers/products.d.ts +0 -8
- package/dist/hooks/admin/abandoned-carts.d.ts +0 -8
- package/dist/hooks/admin/customers.d.ts +0 -4
- package/dist/hooks/admin/inventory.d.ts +0 -4
- package/dist/hooks/admin/orders.d.ts +0 -32
- package/dist/hooks/admin/products.d.ts +0 -8
- package/dist/hooks/admin/stats.d.ts +0 -4
- package/dist/hooks/admin/warehouses.d.ts +0 -4
- package/dist/hooks/public/brands.d.ts +1 -0
- package/dist/hooks/public/carts.d.ts +7 -37
- package/dist/hooks/public/carts.js +2 -2
- package/dist/hooks/public/orders.d.ts +0 -8
- package/dist/hooks/public/products.d.ts +0 -8
- package/dist/rpc-client.d.ts +1 -124
- package/package.json +1 -1
package/dist/fetchers/carts.d.ts
CHANGED
|
@@ -147,9 +147,7 @@ export declare function fetchCart(cartId: string): Promise<{
|
|
|
147
147
|
includes?: boolean;
|
|
148
148
|
flatMap?: boolean;
|
|
149
149
|
flat?: boolean;
|
|
150
|
-
at?: boolean;
|
|
151
150
|
};
|
|
152
|
-
at: never;
|
|
153
151
|
};
|
|
154
152
|
} | {
|
|
155
153
|
[x: number]: string | number | boolean | {
|
|
@@ -222,9 +220,7 @@ export declare function fetchCart(cartId: string): Promise<{
|
|
|
222
220
|
includes?: boolean;
|
|
223
221
|
flatMap?: boolean;
|
|
224
222
|
flat?: boolean;
|
|
225
|
-
at?: boolean;
|
|
226
223
|
};
|
|
227
|
-
at: never;
|
|
228
224
|
};
|
|
229
225
|
};
|
|
230
226
|
id: string;
|
|
@@ -410,9 +406,7 @@ export declare function createCart(brandSlug: string): Promise<{
|
|
|
410
406
|
includes?: boolean;
|
|
411
407
|
flatMap?: boolean;
|
|
412
408
|
flat?: boolean;
|
|
413
|
-
at?: boolean;
|
|
414
409
|
};
|
|
415
|
-
at: never;
|
|
416
410
|
};
|
|
417
411
|
} | {
|
|
418
412
|
[x: number]: string | number | boolean | {
|
|
@@ -485,9 +479,7 @@ export declare function createCart(brandSlug: string): Promise<{
|
|
|
485
479
|
includes?: boolean;
|
|
486
480
|
flatMap?: boolean;
|
|
487
481
|
flat?: boolean;
|
|
488
|
-
at?: boolean;
|
|
489
482
|
};
|
|
490
|
-
at: never;
|
|
491
483
|
};
|
|
492
484
|
};
|
|
493
485
|
id: string;
|
|
@@ -676,9 +668,7 @@ export declare function updateCart(cartId: string, data: {
|
|
|
676
668
|
includes?: boolean;
|
|
677
669
|
flatMap?: boolean;
|
|
678
670
|
flat?: boolean;
|
|
679
|
-
at?: boolean;
|
|
680
671
|
};
|
|
681
|
-
at: never;
|
|
682
672
|
};
|
|
683
673
|
} | {
|
|
684
674
|
[x: number]: string | number | boolean | {
|
|
@@ -751,9 +741,7 @@ export declare function updateCart(cartId: string, data: {
|
|
|
751
741
|
includes?: boolean;
|
|
752
742
|
flatMap?: boolean;
|
|
753
743
|
flat?: boolean;
|
|
754
|
-
at?: boolean;
|
|
755
744
|
};
|
|
756
|
-
at: never;
|
|
757
745
|
};
|
|
758
746
|
};
|
|
759
747
|
id: string;
|
|
@@ -806,9 +794,11 @@ export declare function updateCart(cartId: string, data: {
|
|
|
806
794
|
* @param quantity - Quantity to add
|
|
807
795
|
* @param fbc - Facebook Click ID (optional)
|
|
808
796
|
* @param fbp - Facebook Browser ID (optional)
|
|
797
|
+
* @param ttp - TikTok Click ID (_ttp cookie) (optional)
|
|
798
|
+
* @param ttclid - TikTok Click ID (URL parameter) (optional)
|
|
809
799
|
* @returns Updated cart
|
|
810
800
|
*/
|
|
811
|
-
export declare function addCartItem(cartId: string, sku: string, quantity: number, fbc?: string, fbp?: string): Promise<{
|
|
801
|
+
export declare function addCartItem(cartId: string, sku: string, quantity: number, fbc?: string, fbp?: string, ttp?: string, ttclid?: string): Promise<{
|
|
812
802
|
id: string;
|
|
813
803
|
brand: {
|
|
814
804
|
createdAt: string;
|
|
@@ -943,9 +933,7 @@ export declare function addCartItem(cartId: string, sku: string, quantity: numbe
|
|
|
943
933
|
includes?: boolean;
|
|
944
934
|
flatMap?: boolean;
|
|
945
935
|
flat?: boolean;
|
|
946
|
-
at?: boolean;
|
|
947
936
|
};
|
|
948
|
-
at: never;
|
|
949
937
|
};
|
|
950
938
|
} | {
|
|
951
939
|
[x: number]: string | number | boolean | {
|
|
@@ -1018,9 +1006,7 @@ export declare function addCartItem(cartId: string, sku: string, quantity: numbe
|
|
|
1018
1006
|
includes?: boolean;
|
|
1019
1007
|
flatMap?: boolean;
|
|
1020
1008
|
flat?: boolean;
|
|
1021
|
-
at?: boolean;
|
|
1022
1009
|
};
|
|
1023
|
-
at: never;
|
|
1024
1010
|
};
|
|
1025
1011
|
};
|
|
1026
1012
|
id: string;
|
|
@@ -1208,9 +1194,7 @@ export declare function updateCartItem(cartId: string, itemId: string, quantity:
|
|
|
1208
1194
|
includes?: boolean;
|
|
1209
1195
|
flatMap?: boolean;
|
|
1210
1196
|
flat?: boolean;
|
|
1211
|
-
at?: boolean;
|
|
1212
1197
|
};
|
|
1213
|
-
at: never;
|
|
1214
1198
|
};
|
|
1215
1199
|
} | {
|
|
1216
1200
|
[x: number]: string | number | boolean | {
|
|
@@ -1283,9 +1267,7 @@ export declare function updateCartItem(cartId: string, itemId: string, quantity:
|
|
|
1283
1267
|
includes?: boolean;
|
|
1284
1268
|
flatMap?: boolean;
|
|
1285
1269
|
flat?: boolean;
|
|
1286
|
-
at?: boolean;
|
|
1287
1270
|
};
|
|
1288
|
-
at: never;
|
|
1289
1271
|
};
|
|
1290
1272
|
};
|
|
1291
1273
|
id: string;
|
|
@@ -1467,9 +1449,7 @@ export declare function removeCartItem(cartId: string, itemId: string): Promise<
|
|
|
1467
1449
|
includes?: boolean;
|
|
1468
1450
|
flatMap?: boolean;
|
|
1469
1451
|
flat?: boolean;
|
|
1470
|
-
at?: boolean;
|
|
1471
1452
|
};
|
|
1472
|
-
at: never;
|
|
1473
1453
|
};
|
|
1474
1454
|
} | {
|
|
1475
1455
|
[x: number]: string | number | boolean | {
|
|
@@ -1542,9 +1522,7 @@ export declare function removeCartItem(cartId: string, itemId: string): Promise<
|
|
|
1542
1522
|
includes?: boolean;
|
|
1543
1523
|
flatMap?: boolean;
|
|
1544
1524
|
flat?: boolean;
|
|
1545
|
-
at?: boolean;
|
|
1546
1525
|
};
|
|
1547
|
-
at: never;
|
|
1548
1526
|
};
|
|
1549
1527
|
};
|
|
1550
1528
|
id: string;
|
|
@@ -1726,9 +1704,7 @@ export declare function applyDiscount(cartId: string, code: string): Promise<{
|
|
|
1726
1704
|
includes?: boolean;
|
|
1727
1705
|
flatMap?: boolean;
|
|
1728
1706
|
flat?: boolean;
|
|
1729
|
-
at?: boolean;
|
|
1730
1707
|
};
|
|
1731
|
-
at: never;
|
|
1732
1708
|
};
|
|
1733
1709
|
} | {
|
|
1734
1710
|
[x: number]: string | number | boolean | {
|
|
@@ -1801,9 +1777,7 @@ export declare function applyDiscount(cartId: string, code: string): Promise<{
|
|
|
1801
1777
|
includes?: boolean;
|
|
1802
1778
|
flatMap?: boolean;
|
|
1803
1779
|
flat?: boolean;
|
|
1804
|
-
at?: boolean;
|
|
1805
1780
|
};
|
|
1806
|
-
at: never;
|
|
1807
1781
|
};
|
|
1808
1782
|
};
|
|
1809
1783
|
id: string;
|
|
@@ -1989,9 +1963,7 @@ export declare function removeDiscount(cartId: string): Promise<{
|
|
|
1989
1963
|
includes?: boolean;
|
|
1990
1964
|
flatMap?: boolean;
|
|
1991
1965
|
flat?: boolean;
|
|
1992
|
-
at?: boolean;
|
|
1993
1966
|
};
|
|
1994
|
-
at: never;
|
|
1995
1967
|
};
|
|
1996
1968
|
} | {
|
|
1997
1969
|
[x: number]: string | number | boolean | {
|
|
@@ -2064,9 +2036,7 @@ export declare function removeDiscount(cartId: string): Promise<{
|
|
|
2064
2036
|
includes?: boolean;
|
|
2065
2037
|
flatMap?: boolean;
|
|
2066
2038
|
flat?: boolean;
|
|
2067
|
-
at?: boolean;
|
|
2068
2039
|
};
|
|
2069
|
-
at: never;
|
|
2070
2040
|
};
|
|
2071
2041
|
};
|
|
2072
2042
|
id: string;
|
|
@@ -2131,6 +2101,8 @@ export declare function checkoutCart(cartId: string, checkoutData: {
|
|
|
2131
2101
|
ifUnmodifiedSince?: string;
|
|
2132
2102
|
fbc?: string;
|
|
2133
2103
|
fbp?: string;
|
|
2104
|
+
ttp?: string;
|
|
2105
|
+
ttclid?: string;
|
|
2134
2106
|
}): Promise<{
|
|
2135
2107
|
subtotal: number;
|
|
2136
2108
|
deliveryCharge: number;
|
|
@@ -2270,9 +2242,7 @@ export declare function checkoutCart(cartId: string, checkoutData: {
|
|
|
2270
2242
|
includes?: boolean;
|
|
2271
2243
|
flatMap?: boolean;
|
|
2272
2244
|
flat?: boolean;
|
|
2273
|
-
at?: boolean;
|
|
2274
2245
|
};
|
|
2275
|
-
at: never;
|
|
2276
2246
|
};
|
|
2277
2247
|
} | {
|
|
2278
2248
|
[x: number]: string | number | boolean | {
|
|
@@ -2345,9 +2315,7 @@ export declare function checkoutCart(cartId: string, checkoutData: {
|
|
|
2345
2315
|
includes?: boolean;
|
|
2346
2316
|
flatMap?: boolean;
|
|
2347
2317
|
flat?: boolean;
|
|
2348
|
-
at?: boolean;
|
|
2349
2318
|
};
|
|
2350
|
-
at: never;
|
|
2351
2319
|
};
|
|
2352
2320
|
};
|
|
2353
2321
|
id: string;
|
package/dist/fetchers/carts.js
CHANGED
|
@@ -67,14 +67,16 @@ export async function updateCart(cartId, data) {
|
|
|
67
67
|
* @param quantity - Quantity to add
|
|
68
68
|
* @param fbc - Facebook Click ID (optional)
|
|
69
69
|
* @param fbp - Facebook Browser ID (optional)
|
|
70
|
+
* @param ttp - TikTok Click ID (_ttp cookie) (optional)
|
|
71
|
+
* @param ttclid - TikTok Click ID (URL parameter) (optional)
|
|
70
72
|
* @returns Updated cart
|
|
71
73
|
*/
|
|
72
|
-
export async function addCartItem(cartId, sku, quantity, fbc, fbp) {
|
|
74
|
+
export async function addCartItem(cartId, sku, quantity, fbc, fbp, ttp, ttclid) {
|
|
73
75
|
const clients = createRpcClients(API_URL);
|
|
74
76
|
const res = await clients.carts[':id'].items.$post({
|
|
75
77
|
param: { id: cartId },
|
|
76
78
|
// @ts-expect-error - Hono RPC type inference issue
|
|
77
|
-
json: { sku, quantity, fbc, fbp },
|
|
79
|
+
json: { sku, quantity, fbc, fbp, ttp, ttclid },
|
|
78
80
|
});
|
|
79
81
|
if (!res.ok) {
|
|
80
82
|
throw new Error(`Failed to add item to cart: ${res.statusText}`);
|
|
@@ -154,9 +154,7 @@ export declare function fetchOrder(orderId: string, token: string): Promise<{
|
|
|
154
154
|
includes?: boolean;
|
|
155
155
|
flatMap?: boolean;
|
|
156
156
|
flat?: boolean;
|
|
157
|
-
at?: boolean;
|
|
158
157
|
};
|
|
159
|
-
at: never;
|
|
160
158
|
};
|
|
161
159
|
} | {
|
|
162
160
|
[x: number]: string | number | boolean | {
|
|
@@ -229,9 +227,7 @@ export declare function fetchOrder(orderId: string, token: string): Promise<{
|
|
|
229
227
|
includes?: boolean;
|
|
230
228
|
flatMap?: boolean;
|
|
231
229
|
flat?: boolean;
|
|
232
|
-
at?: boolean;
|
|
233
230
|
};
|
|
234
|
-
at: never;
|
|
235
231
|
};
|
|
236
232
|
};
|
|
237
233
|
id: string;
|
|
@@ -428,9 +424,7 @@ export declare function confirmOrder(orderId: string, token: string): Promise<{
|
|
|
428
424
|
includes?: boolean;
|
|
429
425
|
flatMap?: boolean;
|
|
430
426
|
flat?: boolean;
|
|
431
|
-
at?: boolean;
|
|
432
427
|
};
|
|
433
|
-
at: never;
|
|
434
428
|
};
|
|
435
429
|
} | {
|
|
436
430
|
[x: number]: string | number | boolean | {
|
|
@@ -503,9 +497,7 @@ export declare function confirmOrder(orderId: string, token: string): Promise<{
|
|
|
503
497
|
includes?: boolean;
|
|
504
498
|
flatMap?: boolean;
|
|
505
499
|
flat?: boolean;
|
|
506
|
-
at?: boolean;
|
|
507
500
|
};
|
|
508
|
-
at: never;
|
|
509
501
|
};
|
|
510
502
|
};
|
|
511
503
|
id: string;
|
|
@@ -122,9 +122,7 @@ export declare function fetchProductsByBrand(brandId: string): Promise<{
|
|
|
122
122
|
includes?: boolean;
|
|
123
123
|
flatMap?: boolean;
|
|
124
124
|
flat?: boolean;
|
|
125
|
-
at?: boolean;
|
|
126
125
|
};
|
|
127
|
-
at: never;
|
|
128
126
|
};
|
|
129
127
|
} | {
|
|
130
128
|
[x: number]: string | number | boolean | {
|
|
@@ -197,9 +195,7 @@ export declare function fetchProductsByBrand(brandId: string): Promise<{
|
|
|
197
195
|
includes?: boolean;
|
|
198
196
|
flatMap?: boolean;
|
|
199
197
|
flat?: boolean;
|
|
200
|
-
at?: boolean;
|
|
201
198
|
};
|
|
202
|
-
at: never;
|
|
203
199
|
};
|
|
204
200
|
}[]>;
|
|
205
201
|
/**
|
|
@@ -318,9 +314,7 @@ export declare function fetchProductBySlug(slug: string): Promise<{
|
|
|
318
314
|
includes?: boolean;
|
|
319
315
|
flatMap?: boolean;
|
|
320
316
|
flat?: boolean;
|
|
321
|
-
at?: boolean;
|
|
322
317
|
};
|
|
323
|
-
at: never;
|
|
324
318
|
};
|
|
325
319
|
} | {
|
|
326
320
|
[x: number]: string | number | boolean | {
|
|
@@ -393,8 +387,6 @@ export declare function fetchProductBySlug(slug: string): Promise<{
|
|
|
393
387
|
includes?: boolean;
|
|
394
388
|
flatMap?: boolean;
|
|
395
389
|
flat?: boolean;
|
|
396
|
-
at?: boolean;
|
|
397
390
|
};
|
|
398
|
-
at: never;
|
|
399
391
|
};
|
|
400
392
|
}>;
|
|
@@ -145,9 +145,7 @@ export declare function useListAbandonedCarts(params?: {
|
|
|
145
145
|
includes?: boolean;
|
|
146
146
|
flatMap?: boolean;
|
|
147
147
|
flat?: boolean;
|
|
148
|
-
at?: boolean;
|
|
149
148
|
};
|
|
150
|
-
at: never;
|
|
151
149
|
};
|
|
152
150
|
} | {
|
|
153
151
|
[x: number]: string | number | boolean | {
|
|
@@ -220,9 +218,7 @@ export declare function useListAbandonedCarts(params?: {
|
|
|
220
218
|
includes?: boolean;
|
|
221
219
|
flatMap?: boolean;
|
|
222
220
|
flat?: boolean;
|
|
223
|
-
at?: boolean;
|
|
224
221
|
};
|
|
225
|
-
at: never;
|
|
226
222
|
};
|
|
227
223
|
};
|
|
228
224
|
id: string;
|
|
@@ -418,9 +414,7 @@ export declare function useGetAbandonedCart(cartId: string, options?: Omit<UseQu
|
|
|
418
414
|
includes?: boolean;
|
|
419
415
|
flatMap?: boolean;
|
|
420
416
|
flat?: boolean;
|
|
421
|
-
at?: boolean;
|
|
422
417
|
};
|
|
423
|
-
at: never;
|
|
424
418
|
};
|
|
425
419
|
} | {
|
|
426
420
|
[x: number]: string | number | boolean | {
|
|
@@ -493,9 +487,7 @@ export declare function useGetAbandonedCart(cartId: string, options?: Omit<UseQu
|
|
|
493
487
|
includes?: boolean;
|
|
494
488
|
flatMap?: boolean;
|
|
495
489
|
flat?: boolean;
|
|
496
|
-
at?: boolean;
|
|
497
490
|
};
|
|
498
|
-
at: never;
|
|
499
491
|
};
|
|
500
492
|
};
|
|
501
493
|
id: string;
|
|
@@ -156,9 +156,7 @@ export declare function useGetCustomerHistory(phone: string, options?: Omit<UseQ
|
|
|
156
156
|
includes?: boolean;
|
|
157
157
|
flatMap?: boolean;
|
|
158
158
|
flat?: boolean;
|
|
159
|
-
at?: boolean;
|
|
160
159
|
};
|
|
161
|
-
at: never;
|
|
162
160
|
};
|
|
163
161
|
} | {
|
|
164
162
|
[x: number]: string | number | boolean | {
|
|
@@ -231,9 +229,7 @@ export declare function useGetCustomerHistory(phone: string, options?: Omit<UseQ
|
|
|
231
229
|
includes?: boolean;
|
|
232
230
|
flatMap?: boolean;
|
|
233
231
|
flat?: boolean;
|
|
234
|
-
at?: boolean;
|
|
235
232
|
};
|
|
236
|
-
at: never;
|
|
237
233
|
};
|
|
238
234
|
};
|
|
239
235
|
id: string;
|
|
@@ -121,9 +121,7 @@ export declare function useGetInventoryTransactions(params?: {
|
|
|
121
121
|
includes?: boolean;
|
|
122
122
|
flatMap?: boolean;
|
|
123
123
|
flat?: boolean;
|
|
124
|
-
at?: boolean;
|
|
125
124
|
};
|
|
126
|
-
at: never;
|
|
127
125
|
};
|
|
128
126
|
} | {
|
|
129
127
|
[x: number]: string | number | boolean | {
|
|
@@ -196,9 +194,7 @@ export declare function useGetInventoryTransactions(params?: {
|
|
|
196
194
|
includes?: boolean;
|
|
197
195
|
flatMap?: boolean;
|
|
198
196
|
flat?: boolean;
|
|
199
|
-
at?: boolean;
|
|
200
197
|
};
|
|
201
|
-
at: never;
|
|
202
198
|
};
|
|
203
199
|
createdAt: string;
|
|
204
200
|
variant: {
|
|
@@ -166,9 +166,7 @@ export declare function useListOrders(filters?: {
|
|
|
166
166
|
includes?: boolean;
|
|
167
167
|
flatMap?: boolean;
|
|
168
168
|
flat?: boolean;
|
|
169
|
-
at?: boolean;
|
|
170
169
|
};
|
|
171
|
-
at: never;
|
|
172
170
|
};
|
|
173
171
|
} | {
|
|
174
172
|
[x: number]: string | number | boolean | {
|
|
@@ -241,9 +239,7 @@ export declare function useListOrders(filters?: {
|
|
|
241
239
|
includes?: boolean;
|
|
242
240
|
flatMap?: boolean;
|
|
243
241
|
flat?: boolean;
|
|
244
|
-
at?: boolean;
|
|
245
242
|
};
|
|
246
|
-
at: never;
|
|
247
243
|
};
|
|
248
244
|
};
|
|
249
245
|
id: string;
|
|
@@ -451,9 +447,7 @@ export declare function useGetOrder(orderId: string, options?: Omit<UseQueryOpti
|
|
|
451
447
|
includes?: boolean;
|
|
452
448
|
flatMap?: boolean;
|
|
453
449
|
flat?: boolean;
|
|
454
|
-
at?: boolean;
|
|
455
450
|
};
|
|
456
|
-
at: never;
|
|
457
451
|
};
|
|
458
452
|
} | {
|
|
459
453
|
[x: number]: string | number | boolean | {
|
|
@@ -526,9 +520,7 @@ export declare function useGetOrder(orderId: string, options?: Omit<UseQueryOpti
|
|
|
526
520
|
includes?: boolean;
|
|
527
521
|
flatMap?: boolean;
|
|
528
522
|
flat?: boolean;
|
|
529
|
-
at?: boolean;
|
|
530
523
|
};
|
|
531
|
-
at: never;
|
|
532
524
|
};
|
|
533
525
|
};
|
|
534
526
|
id: string;
|
|
@@ -733,9 +725,7 @@ export declare function useCreateOrder(options?: UseMutationOptions<Awaited<Retu
|
|
|
733
725
|
includes?: boolean;
|
|
734
726
|
flatMap?: boolean;
|
|
735
727
|
flat?: boolean;
|
|
736
|
-
at?: boolean;
|
|
737
728
|
};
|
|
738
|
-
at: never;
|
|
739
729
|
};
|
|
740
730
|
} | {
|
|
741
731
|
[x: number]: string | number | boolean | {
|
|
@@ -808,9 +798,7 @@ export declare function useCreateOrder(options?: UseMutationOptions<Awaited<Retu
|
|
|
808
798
|
includes?: boolean;
|
|
809
799
|
flatMap?: boolean;
|
|
810
800
|
flat?: boolean;
|
|
811
|
-
at?: boolean;
|
|
812
801
|
};
|
|
813
|
-
at: never;
|
|
814
802
|
};
|
|
815
803
|
};
|
|
816
804
|
id: string;
|
|
@@ -1016,9 +1004,7 @@ export declare function useUpdateOrder(orderId: string, options?: UseMutationOpt
|
|
|
1016
1004
|
includes?: boolean;
|
|
1017
1005
|
flatMap?: boolean;
|
|
1018
1006
|
flat?: boolean;
|
|
1019
|
-
at?: boolean;
|
|
1020
1007
|
};
|
|
1021
|
-
at: never;
|
|
1022
1008
|
};
|
|
1023
1009
|
} | {
|
|
1024
1010
|
[x: number]: string | number | boolean | {
|
|
@@ -1091,9 +1077,7 @@ export declare function useUpdateOrder(orderId: string, options?: UseMutationOpt
|
|
|
1091
1077
|
includes?: boolean;
|
|
1092
1078
|
flatMap?: boolean;
|
|
1093
1079
|
flat?: boolean;
|
|
1094
|
-
at?: boolean;
|
|
1095
1080
|
};
|
|
1096
|
-
at: never;
|
|
1097
1081
|
};
|
|
1098
1082
|
};
|
|
1099
1083
|
id: string;
|
|
@@ -1284,9 +1268,7 @@ export declare function useUpdateOrder(orderId: string, options?: UseMutationOpt
|
|
|
1284
1268
|
includes?: boolean;
|
|
1285
1269
|
flatMap?: boolean;
|
|
1286
1270
|
flat?: boolean;
|
|
1287
|
-
at?: boolean;
|
|
1288
1271
|
};
|
|
1289
|
-
at: never;
|
|
1290
1272
|
};
|
|
1291
1273
|
} | {
|
|
1292
1274
|
[x: number]: string | number | boolean | {
|
|
@@ -1359,9 +1341,7 @@ export declare function useUpdateOrder(orderId: string, options?: UseMutationOpt
|
|
|
1359
1341
|
includes?: boolean;
|
|
1360
1342
|
flatMap?: boolean;
|
|
1361
1343
|
flat?: boolean;
|
|
1362
|
-
at?: boolean;
|
|
1363
1344
|
};
|
|
1364
|
-
at: never;
|
|
1365
1345
|
};
|
|
1366
1346
|
};
|
|
1367
1347
|
id: string;
|
|
@@ -1465,9 +1445,7 @@ export declare function useUpdateOrder(orderId: string, options?: UseMutationOpt
|
|
|
1465
1445
|
includes?: boolean;
|
|
1466
1446
|
flatMap?: boolean;
|
|
1467
1447
|
flat?: boolean;
|
|
1468
|
-
at?: boolean;
|
|
1469
1448
|
};
|
|
1470
|
-
at: never;
|
|
1471
1449
|
};
|
|
1472
1450
|
} | {
|
|
1473
1451
|
[x: number]: string | number | boolean | {
|
|
@@ -1540,9 +1518,7 @@ export declare function useUpdateOrder(orderId: string, options?: UseMutationOpt
|
|
|
1540
1518
|
includes?: boolean;
|
|
1541
1519
|
flatMap?: boolean;
|
|
1542
1520
|
flat?: boolean;
|
|
1543
|
-
at?: boolean;
|
|
1544
1521
|
};
|
|
1545
|
-
at: never;
|
|
1546
1522
|
};
|
|
1547
1523
|
type: import("@prisma/client").$Enums.NoteType;
|
|
1548
1524
|
createdAt: string;
|
|
@@ -1730,9 +1706,7 @@ export declare function useUpdateOrderStatus(orderId: string, options?: UseMutat
|
|
|
1730
1706
|
includes?: boolean;
|
|
1731
1707
|
flatMap?: boolean;
|
|
1732
1708
|
flat?: boolean;
|
|
1733
|
-
at?: boolean;
|
|
1734
1709
|
};
|
|
1735
|
-
at: never;
|
|
1736
1710
|
};
|
|
1737
1711
|
} | {
|
|
1738
1712
|
[x: number]: string | number | boolean | {
|
|
@@ -1805,9 +1779,7 @@ export declare function useUpdateOrderStatus(orderId: string, options?: UseMutat
|
|
|
1805
1779
|
includes?: boolean;
|
|
1806
1780
|
flatMap?: boolean;
|
|
1807
1781
|
flat?: boolean;
|
|
1808
|
-
at?: boolean;
|
|
1809
1782
|
};
|
|
1810
|
-
at: never;
|
|
1811
1783
|
};
|
|
1812
1784
|
};
|
|
1813
1785
|
id: string;
|
|
@@ -1981,9 +1953,7 @@ export declare function useAddOrderNote(orderId: string, options?: UseMutationOp
|
|
|
1981
1953
|
includes?: boolean;
|
|
1982
1954
|
flatMap?: boolean;
|
|
1983
1955
|
flat?: boolean;
|
|
1984
|
-
at?: boolean;
|
|
1985
1956
|
};
|
|
1986
|
-
at: never;
|
|
1987
1957
|
};
|
|
1988
1958
|
} | {
|
|
1989
1959
|
[x: number]: string | number | boolean | {
|
|
@@ -2056,9 +2026,7 @@ export declare function useAddOrderNote(orderId: string, options?: UseMutationOp
|
|
|
2056
2026
|
includes?: boolean;
|
|
2057
2027
|
flatMap?: boolean;
|
|
2058
2028
|
flat?: boolean;
|
|
2059
|
-
at?: boolean;
|
|
2060
2029
|
};
|
|
2061
|
-
at: never;
|
|
2062
2030
|
};
|
|
2063
2031
|
type: import("@prisma/client").$Enums.NoteType;
|
|
2064
2032
|
createdAt: string;
|
|
@@ -113,9 +113,7 @@ export declare function useListProducts(brandId?: string, options?: Omit<UseQuer
|
|
|
113
113
|
includes?: boolean;
|
|
114
114
|
flatMap?: boolean;
|
|
115
115
|
flat?: boolean;
|
|
116
|
-
at?: boolean;
|
|
117
116
|
};
|
|
118
|
-
at: never;
|
|
119
117
|
};
|
|
120
118
|
} | {
|
|
121
119
|
[x: number]: string | number | boolean | {
|
|
@@ -188,9 +186,7 @@ export declare function useListProducts(brandId?: string, options?: Omit<UseQuer
|
|
|
188
186
|
includes?: boolean;
|
|
189
187
|
flatMap?: boolean;
|
|
190
188
|
flat?: boolean;
|
|
191
|
-
at?: boolean;
|
|
192
189
|
};
|
|
193
|
-
at: never;
|
|
194
190
|
};
|
|
195
191
|
}[], Error>;
|
|
196
192
|
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<{
|
|
@@ -303,9 +299,7 @@ export declare function useGetProduct(productId: string, options?: Omit<UseQuery
|
|
|
303
299
|
includes?: boolean;
|
|
304
300
|
flatMap?: boolean;
|
|
305
301
|
flat?: boolean;
|
|
306
|
-
at?: boolean;
|
|
307
302
|
};
|
|
308
|
-
at: never;
|
|
309
303
|
};
|
|
310
304
|
} | {
|
|
311
305
|
[x: number]: string | number | boolean | {
|
|
@@ -378,9 +372,7 @@ export declare function useGetProduct(productId: string, options?: Omit<UseQuery
|
|
|
378
372
|
includes?: boolean;
|
|
379
373
|
flatMap?: boolean;
|
|
380
374
|
flat?: boolean;
|
|
381
|
-
at?: boolean;
|
|
382
375
|
};
|
|
383
|
-
at: never;
|
|
384
376
|
};
|
|
385
377
|
}, Error>;
|
|
386
378
|
export declare function useCreateProduct(options?: UseMutationOptions<any, Error, any>): import("@tanstack/react-query").UseMutationResult<any, Error, any, unknown>;
|
|
@@ -155,9 +155,7 @@ export declare function useGetStats(params?: {
|
|
|
155
155
|
includes?: boolean;
|
|
156
156
|
flatMap?: boolean;
|
|
157
157
|
flat?: boolean;
|
|
158
|
-
at?: boolean;
|
|
159
158
|
};
|
|
160
|
-
at: never;
|
|
161
159
|
};
|
|
162
160
|
} | {
|
|
163
161
|
[x: number]: string | number | boolean | {
|
|
@@ -230,9 +228,7 @@ export declare function useGetStats(params?: {
|
|
|
230
228
|
includes?: boolean;
|
|
231
229
|
flatMap?: boolean;
|
|
232
230
|
flat?: boolean;
|
|
233
|
-
at?: boolean;
|
|
234
231
|
};
|
|
235
|
-
at: never;
|
|
236
232
|
};
|
|
237
233
|
};
|
|
238
234
|
id: string;
|
|
@@ -158,9 +158,7 @@ export declare function useGetWarehouseInventory(warehouseId: string, options?:
|
|
|
158
158
|
includes?: boolean;
|
|
159
159
|
flatMap?: boolean;
|
|
160
160
|
flat?: boolean;
|
|
161
|
-
at?: boolean;
|
|
162
161
|
};
|
|
163
|
-
at: never;
|
|
164
162
|
};
|
|
165
163
|
} | {
|
|
166
164
|
[x: number]: string | number | boolean | {
|
|
@@ -233,9 +231,7 @@ export declare function useGetWarehouseInventory(warehouseId: string, options?:
|
|
|
233
231
|
includes?: boolean;
|
|
234
232
|
flatMap?: boolean;
|
|
235
233
|
flat?: boolean;
|
|
236
|
-
at?: boolean;
|
|
237
234
|
};
|
|
238
|
-
at: never;
|
|
239
235
|
};
|
|
240
236
|
};
|
|
241
237
|
id: string;
|