@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.
@@ -153,9 +153,7 @@ export declare function useGetCart(cartId: string, options?: Omit<UseQueryOption
153
153
  includes?: boolean;
154
154
  flatMap?: boolean;
155
155
  flat?: boolean;
156
- at?: boolean;
157
156
  };
158
- at: never;
159
157
  };
160
158
  } | {
161
159
  [x: number]: string | number | boolean | {
@@ -228,9 +226,7 @@ export declare function useGetCart(cartId: string, options?: Omit<UseQueryOption
228
226
  includes?: boolean;
229
227
  flatMap?: boolean;
230
228
  flat?: boolean;
231
- at?: boolean;
232
229
  };
233
- at: never;
234
230
  };
235
231
  };
236
232
  id: string;
@@ -420,9 +416,7 @@ export declare function useUpdateCart(cartId: string, options?: UseMutationOptio
420
416
  includes?: boolean;
421
417
  flatMap?: boolean;
422
418
  flat?: boolean;
423
- at?: boolean;
424
419
  };
425
- at: never;
426
420
  };
427
421
  } | {
428
422
  [x: number]: string | number | boolean | {
@@ -495,9 +489,7 @@ export declare function useUpdateCart(cartId: string, options?: UseMutationOptio
495
489
  includes?: boolean;
496
490
  flatMap?: boolean;
497
491
  flat?: boolean;
498
- at?: boolean;
499
492
  };
500
- at: never;
501
493
  };
502
494
  };
503
495
  id: string;
@@ -695,9 +687,7 @@ export declare function useCreateCart(options?: UseMutationOptions<Awaited<Retur
695
687
  includes?: boolean;
696
688
  flatMap?: boolean;
697
689
  flat?: boolean;
698
- at?: boolean;
699
690
  };
700
- at: never;
701
691
  };
702
692
  } | {
703
693
  [x: number]: string | number | boolean | {
@@ -770,9 +760,7 @@ export declare function useCreateCart(options?: UseMutationOptions<Awaited<Retur
770
760
  includes?: boolean;
771
761
  flatMap?: boolean;
772
762
  flat?: boolean;
773
- at?: boolean;
774
763
  };
775
- at: never;
776
764
  };
777
765
  };
778
766
  id: string;
@@ -961,9 +949,7 @@ export declare function useApplyDiscount(cartId: string, options?: UseMutationOp
961
949
  includes?: boolean;
962
950
  flatMap?: boolean;
963
951
  flat?: boolean;
964
- at?: boolean;
965
952
  };
966
- at: never;
967
953
  };
968
954
  } | {
969
955
  [x: number]: string | number | boolean | {
@@ -1036,9 +1022,7 @@ export declare function useApplyDiscount(cartId: string, options?: UseMutationOp
1036
1022
  includes?: boolean;
1037
1023
  flatMap?: boolean;
1038
1024
  flat?: boolean;
1039
- at?: boolean;
1040
1025
  };
1041
- at: never;
1042
1026
  };
1043
1027
  };
1044
1028
  id: string;
@@ -1232,9 +1216,7 @@ export declare function useRemoveDiscount(cartId: string, options?: UseMutationO
1232
1216
  includes?: boolean;
1233
1217
  flatMap?: boolean;
1234
1218
  flat?: boolean;
1235
- at?: boolean;
1236
1219
  };
1237
- at: never;
1238
1220
  };
1239
1221
  } | {
1240
1222
  [x: number]: string | number | boolean | {
@@ -1307,9 +1289,7 @@ export declare function useRemoveDiscount(cartId: string, options?: UseMutationO
1307
1289
  includes?: boolean;
1308
1290
  flatMap?: boolean;
1309
1291
  flat?: boolean;
1310
- at?: boolean;
1311
1292
  };
1312
- at: never;
1313
1293
  };
1314
1294
  };
1315
1295
  id: string;
@@ -1363,7 +1343,7 @@ export declare function useRemoveDiscount(cartId: string, options?: UseMutationO
1363
1343
  * @example
1364
1344
  * ```tsx
1365
1345
  * const addItem = useAddCartItem('cart-123');
1366
- * addItem.mutate({ sku: 'PROD-001', quantity: 2, fbc: '_fbc_cookie', fbp: '_fbp_cookie' });
1346
+ * addItem.mutate({ sku: 'PROD-001', quantity: 2, fbc: '_fbc_cookie', fbp: '_fbp_cookie', ttp: '_ttp_cookie', ttclid: 'tiktok_click_id' });
1367
1347
  * ```
1368
1348
  */
1369
1349
  export declare function useAddCartItem(cartId: string, options?: UseMutationOptions<Awaited<ReturnType<typeof addCartItem>>, Error, {
@@ -1371,6 +1351,8 @@ export declare function useAddCartItem(cartId: string, options?: UseMutationOpti
1371
1351
  quantity: number;
1372
1352
  fbc?: string;
1373
1353
  fbp?: string;
1354
+ ttp?: string;
1355
+ ttclid?: string;
1374
1356
  }>): import("@tanstack/react-query").UseMutationResult<{
1375
1357
  id: string;
1376
1358
  brand: {
@@ -1506,9 +1488,7 @@ export declare function useAddCartItem(cartId: string, options?: UseMutationOpti
1506
1488
  includes?: boolean;
1507
1489
  flatMap?: boolean;
1508
1490
  flat?: boolean;
1509
- at?: boolean;
1510
1491
  };
1511
- at: never;
1512
1492
  };
1513
1493
  } | {
1514
1494
  [x: number]: string | number | boolean | {
@@ -1581,9 +1561,7 @@ export declare function useAddCartItem(cartId: string, options?: UseMutationOpti
1581
1561
  includes?: boolean;
1582
1562
  flatMap?: boolean;
1583
1563
  flat?: boolean;
1584
- at?: boolean;
1585
1564
  };
1586
- at: never;
1587
1565
  };
1588
1566
  };
1589
1567
  id: string;
@@ -1632,6 +1610,8 @@ export declare function useAddCartItem(cartId: string, options?: UseMutationOpti
1632
1610
  quantity: number;
1633
1611
  fbc?: string;
1634
1612
  fbp?: string;
1613
+ ttp?: string;
1614
+ ttclid?: string;
1635
1615
  }, unknown>;
1636
1616
  /**
1637
1617
  * Hook to update cart item quantity using RPC
@@ -1783,9 +1763,7 @@ export declare function useUpdateCartItem(cartId: string, options?: UseMutationO
1783
1763
  includes?: boolean;
1784
1764
  flatMap?: boolean;
1785
1765
  flat?: boolean;
1786
- at?: boolean;
1787
1766
  };
1788
- at: never;
1789
1767
  };
1790
1768
  } | {
1791
1769
  [x: number]: string | number | boolean | {
@@ -1858,9 +1836,7 @@ export declare function useUpdateCartItem(cartId: string, options?: UseMutationO
1858
1836
  includes?: boolean;
1859
1837
  flatMap?: boolean;
1860
1838
  flat?: boolean;
1861
- at?: boolean;
1862
1839
  };
1863
- at: never;
1864
1840
  };
1865
1841
  };
1866
1842
  id: string;
@@ -2050,9 +2026,7 @@ export declare function useRemoveCartItem(cartId: string, options?: UseMutationO
2050
2026
  includes?: boolean;
2051
2027
  flatMap?: boolean;
2052
2028
  flat?: boolean;
2053
- at?: boolean;
2054
2029
  };
2055
- at: never;
2056
2030
  };
2057
2031
  } | {
2058
2032
  [x: number]: string | number | boolean | {
@@ -2125,9 +2099,7 @@ export declare function useRemoveCartItem(cartId: string, options?: UseMutationO
2125
2099
  includes?: boolean;
2126
2100
  flatMap?: boolean;
2127
2101
  flat?: boolean;
2128
- at?: boolean;
2129
2102
  };
2130
- at: never;
2131
2103
  };
2132
2104
  };
2133
2105
  id: string;
@@ -2327,9 +2299,7 @@ export declare function useCheckoutCart(cartId: string, options?: UseMutationOpt
2327
2299
  includes?: boolean;
2328
2300
  flatMap?: boolean;
2329
2301
  flat?: boolean;
2330
- at?: boolean;
2331
2302
  };
2332
- at: never;
2333
2303
  };
2334
2304
  } | {
2335
2305
  [x: number]: string | number | boolean | {
@@ -2402,9 +2372,7 @@ export declare function useCheckoutCart(cartId: string, options?: UseMutationOpt
2402
2372
  includes?: boolean;
2403
2373
  flatMap?: boolean;
2404
2374
  flat?: boolean;
2405
- at?: boolean;
2406
2375
  };
2407
- at: never;
2408
2376
  };
2409
2377
  };
2410
2378
  id: string;
@@ -2467,4 +2435,6 @@ export declare function useCheckoutCart(cartId: string, options?: UseMutationOpt
2467
2435
  ifUnmodifiedSince?: string;
2468
2436
  fbc?: string;
2469
2437
  fbp?: string;
2438
+ ttp?: string;
2439
+ ttclid?: string;
2470
2440
  }, unknown>;
@@ -122,13 +122,13 @@ export function useRemoveDiscount(cartId, options) {
122
122
  * @example
123
123
  * ```tsx
124
124
  * const addItem = useAddCartItem('cart-123');
125
- * addItem.mutate({ sku: 'PROD-001', quantity: 2, fbc: '_fbc_cookie', fbp: '_fbp_cookie' });
125
+ * addItem.mutate({ sku: 'PROD-001', quantity: 2, fbc: '_fbc_cookie', fbp: '_fbp_cookie', ttp: '_ttp_cookie', ttclid: 'tiktok_click_id' });
126
126
  * ```
127
127
  */
128
128
  export function useAddCartItem(cartId, options) {
129
129
  const queryClient = useQueryClient();
130
130
  return useMutation({
131
- mutationFn: (data) => addCartItem(cartId, data.sku, data.quantity, data.fbc, data.fbp),
131
+ mutationFn: (data) => addCartItem(cartId, data.sku, data.quantity, data.fbc, data.fbp, data.ttp, data.ttclid),
132
132
  onSuccess: () => {
133
133
  queryClient.invalidateQueries({ queryKey: queryKeys.public.carts.detail(cartId) });
134
134
  },
@@ -160,9 +160,7 @@ export declare function useGetOrder(orderId: string, token: string, options?: Om
160
160
  includes?: boolean;
161
161
  flatMap?: boolean;
162
162
  flat?: boolean;
163
- at?: boolean;
164
163
  };
165
- at: never;
166
164
  };
167
165
  } | {
168
166
  [x: number]: string | number | boolean | {
@@ -235,9 +233,7 @@ export declare function useGetOrder(orderId: string, token: string, options?: Om
235
233
  includes?: boolean;
236
234
  flatMap?: boolean;
237
235
  flat?: boolean;
238
- at?: boolean;
239
236
  };
240
- at: never;
241
237
  };
242
238
  };
243
239
  id: string;
@@ -444,9 +440,7 @@ export declare function useConfirmOrder(options?: UseMutationOptions<Awaited<Ret
444
440
  includes?: boolean;
445
441
  flatMap?: boolean;
446
442
  flat?: boolean;
447
- at?: boolean;
448
443
  };
449
- at: never;
450
444
  };
451
445
  } | {
452
446
  [x: number]: string | number | boolean | {
@@ -519,9 +513,7 @@ export declare function useConfirmOrder(options?: UseMutationOptions<Awaited<Ret
519
513
  includes?: boolean;
520
514
  flatMap?: boolean;
521
515
  flat?: boolean;
522
- at?: boolean;
523
516
  };
524
- at: never;
525
517
  };
526
518
  };
527
519
  id: string;
@@ -128,9 +128,7 @@ export declare function useGetProducts(brandId: string, options?: Omit<UseQueryO
128
128
  includes?: boolean;
129
129
  flatMap?: boolean;
130
130
  flat?: boolean;
131
- at?: boolean;
132
131
  };
133
- at: never;
134
132
  };
135
133
  } | {
136
134
  [x: number]: string | number | boolean | {
@@ -203,9 +201,7 @@ export declare function useGetProducts(brandId: string, options?: Omit<UseQueryO
203
201
  includes?: boolean;
204
202
  flatMap?: boolean;
205
203
  flat?: boolean;
206
- at?: boolean;
207
204
  };
208
- at: never;
209
205
  };
210
206
  }[], Error>;
211
207
  /**
@@ -330,9 +326,7 @@ export declare function useGetProduct(slug: string, options?: Omit<UseQueryOptio
330
326
  includes?: boolean;
331
327
  flatMap?: boolean;
332
328
  flat?: boolean;
333
- at?: boolean;
334
329
  };
335
- at: never;
336
330
  };
337
331
  } | {
338
332
  [x: number]: string | number | boolean | {
@@ -405,8 +399,6 @@ export declare function useGetProduct(slug: string, options?: Omit<UseQueryOptio
405
399
  includes?: boolean;
406
400
  flatMap?: boolean;
407
401
  flat?: boolean;
408
- at?: boolean;
409
402
  };
410
- at: never;
411
403
  };
412
404
  }, Error>;