@instockng/api-client 1.0.7 → 1.0.8

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.
Files changed (66) hide show
  1. package/dist/apps/backend/src/http-app.js +28 -0
  2. package/dist/apps/backend/src/lib/brand-response.d.ts +1 -1
  3. package/dist/apps/backend/src/lib/cart-helpers.d.ts +13 -11
  4. package/dist/apps/backend/src/lib/cart-helpers.js +28 -0
  5. package/dist/apps/backend/src/lib/cart-response.d.ts +5 -5
  6. package/dist/apps/backend/src/lib/clerk.js +23 -0
  7. package/dist/apps/backend/src/lib/delivery-zone-response.d.ts +6 -4
  8. package/dist/apps/backend/src/lib/discount-code-response.d.ts +2 -2
  9. package/dist/apps/backend/src/lib/meta-capi.d.ts +5 -0
  10. package/dist/apps/backend/src/lib/meta-capi.js +33 -2
  11. package/dist/apps/backend/src/lib/order-recovery.d.ts +30 -24
  12. package/dist/apps/backend/src/lib/order-response.d.ts +9 -7
  13. package/dist/apps/backend/src/lib/product-response.d.ts +4 -4
  14. package/dist/apps/backend/src/lib/sentry.d.ts +48 -0
  15. package/dist/apps/backend/src/lib/sentry.js +180 -0
  16. package/dist/apps/backend/src/notifications/producers/meta-capi-producer.js +18 -4
  17. package/dist/apps/backend/src/routes/admin/abandoned-carts.d.ts +10 -10
  18. package/dist/apps/backend/src/routes/admin/brands.d.ts +4 -4
  19. package/dist/apps/backend/src/routes/admin/customers.d.ts +9 -7
  20. package/dist/apps/backend/src/routes/admin/delivery-zones.d.ts +23 -15
  21. package/dist/apps/backend/src/routes/admin/discount-codes.d.ts +10 -10
  22. package/dist/apps/backend/src/routes/admin/inventory.js +10 -0
  23. package/dist/apps/backend/src/routes/admin/orders.d.ts +54 -42
  24. package/dist/apps/backend/src/routes/admin/orders.js +25 -0
  25. package/dist/apps/backend/src/routes/admin/products.d.ts +12 -12
  26. package/dist/apps/backend/src/routes/admin/products.js +34 -15
  27. package/dist/apps/backend/src/routes/admin/stats.d.ts +9 -7
  28. package/dist/apps/backend/src/routes/admin/variants.d.ts +5 -5
  29. package/dist/apps/backend/src/routes/admin/variants.js +42 -18
  30. package/dist/apps/backend/src/routes/admin/warehouses.d.ts +7 -7
  31. package/dist/apps/backend/src/routes/public/brands.d.ts +1 -1
  32. package/dist/apps/backend/src/routes/public/carts.d.ts +49 -47
  33. package/dist/apps/backend/src/routes/public/carts.js +148 -1
  34. package/dist/apps/backend/src/routes/public/delivery-zones.d.ts +2 -0
  35. package/dist/apps/backend/src/routes/public/delivery-zones.js +2 -0
  36. package/dist/apps/backend/src/routes/public/orders.d.ts +18 -14
  37. package/dist/apps/backend/src/routes/public/orders.js +24 -0
  38. package/dist/apps/backend/src/routes/public/products.d.ts +6 -6
  39. package/dist/apps/backend/src/types/index.d.ts +1 -0
  40. package/dist/apps/backend/src/validators/delivery-zone.d.ts +4 -0
  41. package/dist/apps/backend/src/validators/delivery-zone.js +4 -0
  42. package/dist/apps/backend/src/validators/discount-code.d.ts +3 -3
  43. package/dist/apps/backend/src/validators/order.d.ts +3 -1
  44. package/dist/apps/backend/src/validators/order.js +3 -1
  45. package/dist/packages/api-client/src/fetchers/brands.d.ts +1 -1
  46. package/dist/packages/api-client/src/fetchers/carts.d.ts +49 -47
  47. package/dist/packages/api-client/src/fetchers/delivery-zones.d.ts +2 -0
  48. package/dist/packages/api-client/src/fetchers/orders.d.ts +18 -14
  49. package/dist/packages/api-client/src/fetchers/products.d.ts +6 -6
  50. package/dist/packages/api-client/src/hooks/admin/abandoned-carts.d.ts +10 -10
  51. package/dist/packages/api-client/src/hooks/admin/brands.d.ts +4 -4
  52. package/dist/packages/api-client/src/hooks/admin/customers.d.ts +9 -7
  53. package/dist/packages/api-client/src/hooks/admin/delivery-zones.d.ts +23 -15
  54. package/dist/packages/api-client/src/hooks/admin/discount-codes.d.ts +10 -10
  55. package/dist/packages/api-client/src/hooks/admin/orders.d.ts +54 -42
  56. package/dist/packages/api-client/src/hooks/admin/products.d.ts +6 -6
  57. package/dist/packages/api-client/src/hooks/admin/stats.d.ts +9 -7
  58. package/dist/packages/api-client/src/hooks/admin/variants.d.ts +5 -5
  59. package/dist/packages/api-client/src/hooks/admin/warehouses.d.ts +7 -7
  60. package/dist/packages/api-client/src/hooks/public/brands.d.ts +1 -1
  61. package/dist/packages/api-client/src/hooks/public/carts.d.ts +49 -47
  62. package/dist/packages/api-client/src/hooks/public/delivery-zones.d.ts +2 -0
  63. package/dist/packages/api-client/src/hooks/public/orders.d.ts +18 -14
  64. package/dist/packages/api-client/src/hooks/public/products.d.ts +6 -6
  65. package/dist/packages/api-client/src/rpc-client.d.ts +219 -187
  66. package/package.json +1 -1
@@ -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;
@@ -237,8 +239,8 @@ export declare function useListOrders(filters?: {
237
239
  };
238
240
  };
239
241
  };
240
- name: string | null;
241
242
  id: string;
243
+ name: string | null;
242
244
  isActive: boolean;
243
245
  thumbnailUrl: string | null;
244
246
  productId: string;
@@ -250,8 +252,8 @@ export declare function useListOrders(filters?: {
250
252
  createdAt: string;
251
253
  updatedAt: string;
252
254
  deletedAt: string;
253
- name: string;
254
255
  id: string;
256
+ name: string;
255
257
  isActive: boolean;
256
258
  address: string | null;
257
259
  city: string | null;
@@ -263,8 +265,8 @@ export declare function useListOrders(filters?: {
263
265
  warehouseId: string | null;
264
266
  quantity: number;
265
267
  }[];
266
- id: string;
267
268
  email: string | null;
269
+ id: string;
268
270
  brandId: string;
269
271
  deliveryZoneId: string;
270
272
  recoveryAttempts: number;
@@ -317,8 +319,8 @@ export declare function useGetOrder(orderId: string, options?: Omit<UseQueryOpti
317
319
  createdAt: string;
318
320
  updatedAt: string;
319
321
  deletedAt: string;
320
- name: string;
321
322
  id: string;
323
+ name: string;
322
324
  slug: string;
323
325
  logoUrl: string | null;
324
326
  siteUrl: string;
@@ -335,18 +337,20 @@ export declare function useGetOrder(orderId: string, options?: Omit<UseQueryOpti
335
337
  createdAt: string;
336
338
  updatedAt: string;
337
339
  deletedAt: string;
338
- name: string;
339
340
  id: string;
341
+ name: string;
340
342
  isActive: boolean;
341
343
  };
342
- name: string;
343
344
  id: string;
345
+ name: string;
344
346
  brandId: string | null;
345
347
  stateId: string;
346
348
  allowCOD: boolean;
347
349
  allowOnline: boolean;
348
350
  waybillOnly: boolean;
349
351
  estimatedDays: number | null;
352
+ noteTitle: string | null;
353
+ noteContent: string | null;
350
354
  isActive: boolean;
351
355
  };
352
356
  items: {
@@ -360,8 +364,8 @@ export declare function useGetOrder(orderId: string, options?: Omit<UseQueryOpti
360
364
  createdAt: string;
361
365
  updatedAt: string;
362
366
  deletedAt: string;
363
- name: string;
364
367
  id: string;
368
+ name: string;
365
369
  slug: string;
366
370
  brandId: string;
367
371
  isActive: boolean;
@@ -513,8 +517,8 @@ export declare function useGetOrder(orderId: string, options?: Omit<UseQueryOpti
513
517
  };
514
518
  };
515
519
  };
516
- name: string | null;
517
520
  id: string;
521
+ name: string | null;
518
522
  isActive: boolean;
519
523
  thumbnailUrl: string | null;
520
524
  productId: string;
@@ -526,8 +530,8 @@ export declare function useGetOrder(orderId: string, options?: Omit<UseQueryOpti
526
530
  createdAt: string;
527
531
  updatedAt: string;
528
532
  deletedAt: string;
529
- name: string;
530
533
  id: string;
534
+ name: string;
531
535
  isActive: boolean;
532
536
  address: string | null;
533
537
  city: string | null;
@@ -539,8 +543,8 @@ export declare function useGetOrder(orderId: string, options?: Omit<UseQueryOpti
539
543
  warehouseId: string | null;
540
544
  quantity: number;
541
545
  }[];
542
- id: string;
543
546
  email: string | null;
547
+ id: string;
544
548
  brandId: string;
545
549
  deliveryZoneId: string;
546
550
  recoveryAttempts: number;
@@ -590,8 +594,8 @@ export declare function useCreateOrder(options?: UseMutationOptions<Awaited<Retu
590
594
  createdAt: string;
591
595
  updatedAt: string;
592
596
  deletedAt: string;
593
- name: string;
594
597
  id: string;
598
+ name: string;
595
599
  slug: string;
596
600
  logoUrl: string | null;
597
601
  siteUrl: string;
@@ -608,18 +612,20 @@ export declare function useCreateOrder(options?: UseMutationOptions<Awaited<Retu
608
612
  createdAt: string;
609
613
  updatedAt: string;
610
614
  deletedAt: string;
611
- name: string;
612
615
  id: string;
616
+ name: string;
613
617
  isActive: boolean;
614
618
  };
615
- name: string;
616
619
  id: string;
620
+ name: string;
617
621
  brandId: string | null;
618
622
  stateId: string;
619
623
  allowCOD: boolean;
620
624
  allowOnline: boolean;
621
625
  waybillOnly: boolean;
622
626
  estimatedDays: number | null;
627
+ noteTitle: string | null;
628
+ noteContent: string | null;
623
629
  isActive: boolean;
624
630
  };
625
631
  items: {
@@ -633,8 +639,8 @@ export declare function useCreateOrder(options?: UseMutationOptions<Awaited<Retu
633
639
  createdAt: string;
634
640
  updatedAt: string;
635
641
  deletedAt: string;
636
- name: string;
637
642
  id: string;
643
+ name: string;
638
644
  slug: string;
639
645
  brandId: string;
640
646
  isActive: boolean;
@@ -786,8 +792,8 @@ export declare function useCreateOrder(options?: UseMutationOptions<Awaited<Retu
786
792
  };
787
793
  };
788
794
  };
789
- name: string | null;
790
795
  id: string;
796
+ name: string | null;
791
797
  isActive: boolean;
792
798
  thumbnailUrl: string | null;
793
799
  productId: string;
@@ -799,8 +805,8 @@ export declare function useCreateOrder(options?: UseMutationOptions<Awaited<Retu
799
805
  createdAt: string;
800
806
  updatedAt: string;
801
807
  deletedAt: string;
802
- name: string;
803
808
  id: string;
809
+ name: string;
804
810
  isActive: boolean;
805
811
  address: string | null;
806
812
  city: string | null;
@@ -812,8 +818,8 @@ export declare function useCreateOrder(options?: UseMutationOptions<Awaited<Retu
812
818
  warehouseId: string | null;
813
819
  quantity: number;
814
820
  }[];
815
- id: string;
816
821
  email: string | null;
822
+ id: string;
817
823
  brandId: string;
818
824
  deliveryZoneId: string;
819
825
  recoveryAttempts: number;
@@ -864,8 +870,8 @@ export declare function useUpdateOrder(orderId: string, options?: UseMutationOpt
864
870
  createdAt: string;
865
871
  updatedAt: string;
866
872
  deletedAt: string;
867
- name: string;
868
873
  id: string;
874
+ name: string;
869
875
  slug: string;
870
876
  logoUrl: string | null;
871
877
  siteUrl: string;
@@ -882,18 +888,20 @@ export declare function useUpdateOrder(orderId: string, options?: UseMutationOpt
882
888
  createdAt: string;
883
889
  updatedAt: string;
884
890
  deletedAt: string;
885
- name: string;
886
891
  id: string;
892
+ name: string;
887
893
  isActive: boolean;
888
894
  };
889
- name: string;
890
895
  id: string;
896
+ name: string;
891
897
  brandId: string | null;
892
898
  stateId: string;
893
899
  allowCOD: boolean;
894
900
  allowOnline: boolean;
895
901
  waybillOnly: boolean;
896
902
  estimatedDays: number | null;
903
+ noteTitle: string | null;
904
+ noteContent: string | null;
897
905
  isActive: boolean;
898
906
  };
899
907
  items: {
@@ -907,8 +915,8 @@ export declare function useUpdateOrder(orderId: string, options?: UseMutationOpt
907
915
  createdAt: string;
908
916
  updatedAt: string;
909
917
  deletedAt: string;
910
- name: string;
911
918
  id: string;
919
+ name: string;
912
920
  slug: string;
913
921
  brandId: string;
914
922
  isActive: boolean;
@@ -1060,8 +1068,8 @@ export declare function useUpdateOrder(orderId: string, options?: UseMutationOpt
1060
1068
  };
1061
1069
  };
1062
1070
  };
1063
- name: string | null;
1064
1071
  id: string;
1072
+ name: string | null;
1065
1073
  isActive: boolean;
1066
1074
  thumbnailUrl: string | null;
1067
1075
  productId: string;
@@ -1073,8 +1081,8 @@ export declare function useUpdateOrder(orderId: string, options?: UseMutationOpt
1073
1081
  createdAt: string;
1074
1082
  updatedAt: string;
1075
1083
  deletedAt: string;
1076
- name: string;
1077
1084
  id: string;
1085
+ name: string;
1078
1086
  isActive: boolean;
1079
1087
  address: string | null;
1080
1088
  city: string | null;
@@ -1086,8 +1094,8 @@ export declare function useUpdateOrder(orderId: string, options?: UseMutationOpt
1086
1094
  warehouseId: string | null;
1087
1095
  quantity: number;
1088
1096
  }[];
1089
- id: string;
1090
1097
  email: string | null;
1098
+ id: string;
1091
1099
  brandId: string;
1092
1100
  deliveryZoneId: string;
1093
1101
  recoveryAttempts: number;
@@ -1114,8 +1122,8 @@ export declare function useUpdateOrder(orderId: string, options?: UseMutationOpt
1114
1122
  };
1115
1123
  } | {
1116
1124
  brand: {
1117
- name: string;
1118
1125
  id: string;
1126
+ name: string;
1119
1127
  slug: string;
1120
1128
  logoUrl: string | null;
1121
1129
  siteUrl: string;
@@ -1127,15 +1135,15 @@ export declare function useUpdateOrder(orderId: string, options?: UseMutationOpt
1127
1135
  };
1128
1136
  deliveryZone: {
1129
1137
  state: {
1130
- name: string;
1131
1138
  id: string;
1139
+ name: string;
1132
1140
  createdAt: string;
1133
1141
  updatedAt: string;
1134
1142
  deletedAt: string;
1135
1143
  isActive: boolean;
1136
1144
  };
1137
- name: string;
1138
1145
  id: string;
1146
+ name: string;
1139
1147
  createdAt: string;
1140
1148
  updatedAt: string;
1141
1149
  deletedAt: string;
@@ -1147,12 +1155,14 @@ export declare function useUpdateOrder(orderId: string, options?: UseMutationOpt
1147
1155
  allowOnline: boolean;
1148
1156
  waybillOnly: boolean;
1149
1157
  estimatedDays: number | null;
1158
+ noteTitle: string | null;
1159
+ noteContent: string | null;
1150
1160
  isActive: boolean;
1151
1161
  };
1152
1162
  items: {
1153
1163
  warehouse: {
1154
- name: string;
1155
1164
  id: string;
1165
+ name: string;
1156
1166
  createdAt: string;
1157
1167
  updatedAt: string;
1158
1168
  deletedAt: string;
@@ -1163,8 +1173,8 @@ export declare function useUpdateOrder(orderId: string, options?: UseMutationOpt
1163
1173
  };
1164
1174
  variant: {
1165
1175
  product: {
1166
- name: string;
1167
1176
  id: string;
1177
+ name: string;
1168
1178
  slug: string;
1169
1179
  createdAt: string;
1170
1180
  updatedAt: string;
@@ -1319,8 +1329,8 @@ export declare function useUpdateOrder(orderId: string, options?: UseMutationOpt
1319
1329
  };
1320
1330
  };
1321
1331
  };
1322
- name: string | null;
1323
1332
  id: string;
1333
+ name: string | null;
1324
1334
  createdAt: string;
1325
1335
  updatedAt: string;
1326
1336
  deletedAt: string;
@@ -1339,8 +1349,8 @@ export declare function useUpdateOrder(orderId: string, options?: UseMutationOpt
1339
1349
  quantity: number;
1340
1350
  priceAtPurchase: string;
1341
1351
  }[];
1342
- id: string;
1343
1352
  email: string | null;
1353
+ id: string;
1344
1354
  createdAt: string;
1345
1355
  updatedAt: string;
1346
1356
  deletedAt: string;
@@ -1394,8 +1404,8 @@ export declare function useUpdateOrderStatus(orderId: string, options?: UseMutat
1394
1404
  createdAt: string;
1395
1405
  updatedAt: string;
1396
1406
  deletedAt: string;
1397
- name: string;
1398
1407
  id: string;
1408
+ name: string;
1399
1409
  slug: string;
1400
1410
  logoUrl: string | null;
1401
1411
  siteUrl: string;
@@ -1412,18 +1422,20 @@ export declare function useUpdateOrderStatus(orderId: string, options?: UseMutat
1412
1422
  createdAt: string;
1413
1423
  updatedAt: string;
1414
1424
  deletedAt: string;
1415
- name: string;
1416
1425
  id: string;
1426
+ name: string;
1417
1427
  isActive: boolean;
1418
1428
  };
1419
- name: string;
1420
1429
  id: string;
1430
+ name: string;
1421
1431
  brandId: string | null;
1422
1432
  stateId: string;
1423
1433
  allowCOD: boolean;
1424
1434
  allowOnline: boolean;
1425
1435
  waybillOnly: boolean;
1426
1436
  estimatedDays: number | null;
1437
+ noteTitle: string | null;
1438
+ noteContent: string | null;
1427
1439
  isActive: boolean;
1428
1440
  };
1429
1441
  items: {
@@ -1437,8 +1449,8 @@ export declare function useUpdateOrderStatus(orderId: string, options?: UseMutat
1437
1449
  createdAt: string;
1438
1450
  updatedAt: string;
1439
1451
  deletedAt: string;
1440
- name: string;
1441
1452
  id: string;
1453
+ name: string;
1442
1454
  slug: string;
1443
1455
  brandId: string;
1444
1456
  isActive: boolean;
@@ -1590,8 +1602,8 @@ export declare function useUpdateOrderStatus(orderId: string, options?: UseMutat
1590
1602
  };
1591
1603
  };
1592
1604
  };
1593
- name: string | null;
1594
1605
  id: string;
1606
+ name: string | null;
1595
1607
  isActive: boolean;
1596
1608
  thumbnailUrl: string | null;
1597
1609
  productId: string;
@@ -1603,8 +1615,8 @@ export declare function useUpdateOrderStatus(orderId: string, options?: UseMutat
1603
1615
  createdAt: string;
1604
1616
  updatedAt: string;
1605
1617
  deletedAt: string;
1606
- name: string;
1607
1618
  id: string;
1619
+ name: string;
1608
1620
  isActive: boolean;
1609
1621
  address: string | null;
1610
1622
  city: string | null;
@@ -1616,8 +1628,8 @@ export declare function useUpdateOrderStatus(orderId: string, options?: UseMutat
1616
1628
  warehouseId: string | null;
1617
1629
  quantity: number;
1618
1630
  }[];
1619
- id: string;
1620
1631
  email: string | null;
1632
+ id: string;
1621
1633
  brandId: string;
1622
1634
  deliveryZoneId: string;
1623
1635
  recoveryAttempts: number;
@@ -8,8 +8,8 @@ export declare function useListProducts(brandId?: string, options?: Omit<UseQuer
8
8
  createdAt: string;
9
9
  updatedAt: string;
10
10
  deletedAt: string;
11
- name: string;
12
11
  id: string;
12
+ name: string;
13
13
  slug: string;
14
14
  logoUrl: string | null;
15
15
  siteUrl: string;
@@ -21,8 +21,8 @@ export declare function useListProducts(brandId?: string, options?: Omit<UseQuer
21
21
  updatedAt: string;
22
22
  price: number;
23
23
  deletedAt: string;
24
- name: string | null;
25
24
  id: string;
25
+ name: string | null;
26
26
  isActive: boolean;
27
27
  thumbnailUrl: string | null;
28
28
  productId: string;
@@ -30,8 +30,8 @@ export declare function useListProducts(brandId?: string, options?: Omit<UseQuer
30
30
  trackInventory: boolean;
31
31
  lowStockThreshold: number | null;
32
32
  }[];
33
- name: string;
34
33
  id: string;
34
+ name: string;
35
35
  slug: string;
36
36
  createdAt: string;
37
37
  updatedAt: string;
@@ -191,8 +191,8 @@ export declare function useGetProduct(productId: string, options?: Omit<UseQuery
191
191
  createdAt: string;
192
192
  updatedAt: string;
193
193
  deletedAt: string;
194
- name: string;
195
194
  id: string;
195
+ name: string;
196
196
  slug: string;
197
197
  logoUrl: string | null;
198
198
  siteUrl: string;
@@ -204,8 +204,8 @@ export declare function useGetProduct(productId: string, options?: Omit<UseQuery
204
204
  updatedAt: string;
205
205
  price: number;
206
206
  deletedAt: string;
207
- name: string | null;
208
207
  id: string;
208
+ name: string | null;
209
209
  isActive: boolean;
210
210
  thumbnailUrl: string | null;
211
211
  productId: string;
@@ -213,8 +213,8 @@ export declare function useGetProduct(productId: string, options?: Omit<UseQuery
213
213
  trackInventory: boolean;
214
214
  lowStockThreshold: number | null;
215
215
  }[];
216
- name: string;
217
216
  id: string;
217
+ name: string;
218
218
  slug: string;
219
219
  createdAt: string;
220
220
  updatedAt: string;
@@ -30,8 +30,8 @@ export declare function useGetStats(params?: {
30
30
  createdAt: string;
31
31
  updatedAt: string;
32
32
  deletedAt: string;
33
- name: string;
34
33
  id: string;
34
+ name: string;
35
35
  slug: string;
36
36
  logoUrl: string | null;
37
37
  siteUrl: string;
@@ -48,18 +48,20 @@ export declare function useGetStats(params?: {
48
48
  createdAt: string;
49
49
  updatedAt: string;
50
50
  deletedAt: string;
51
- name: string;
52
51
  id: string;
52
+ name: string;
53
53
  isActive: boolean;
54
54
  };
55
- name: string;
56
55
  id: string;
56
+ name: string;
57
57
  brandId: string | null;
58
58
  stateId: string;
59
59
  allowCOD: boolean;
60
60
  allowOnline: boolean;
61
61
  waybillOnly: boolean;
62
62
  estimatedDays: number | null;
63
+ noteTitle: string | null;
64
+ noteContent: string | null;
63
65
  isActive: boolean;
64
66
  };
65
67
  items: {
@@ -73,8 +75,8 @@ export declare function useGetStats(params?: {
73
75
  createdAt: string;
74
76
  updatedAt: string;
75
77
  deletedAt: string;
76
- name: string;
77
78
  id: string;
79
+ name: string;
78
80
  slug: string;
79
81
  brandId: string;
80
82
  isActive: boolean;
@@ -226,8 +228,8 @@ export declare function useGetStats(params?: {
226
228
  };
227
229
  };
228
230
  };
229
- name: string | null;
230
231
  id: string;
232
+ name: string | null;
231
233
  isActive: boolean;
232
234
  thumbnailUrl: string | null;
233
235
  productId: string;
@@ -239,8 +241,8 @@ export declare function useGetStats(params?: {
239
241
  createdAt: string;
240
242
  updatedAt: string;
241
243
  deletedAt: string;
242
- name: string;
243
244
  id: string;
245
+ name: string;
244
246
  isActive: boolean;
245
247
  address: string | null;
246
248
  city: string | null;
@@ -252,8 +254,8 @@ export declare function useGetStats(params?: {
252
254
  warehouseId: string | null;
253
255
  quantity: number;
254
256
  }[];
255
- id: string;
256
257
  email: string | null;
258
+ id: string;
257
259
  brandId: string;
258
260
  deliveryZoneId: string;
259
261
  recoveryAttempts: number;
@@ -14,8 +14,8 @@ export declare function useSearchVariants(params?: {
14
14
  updatedAt: string;
15
15
  price: number;
16
16
  deletedAt: string;
17
- name: string | null;
18
17
  id: string;
18
+ name: string | null;
19
19
  isActive: boolean;
20
20
  thumbnailUrl: string | null;
21
21
  productId: string;
@@ -31,8 +31,8 @@ export declare function useListProductVariants(productId: string, options?: Omit
31
31
  updatedAt: string;
32
32
  price: number;
33
33
  deletedAt: string;
34
- name: string | null;
35
34
  id: string;
35
+ name: string | null;
36
36
  isActive: boolean;
37
37
  thumbnailUrl: string | null;
38
38
  productId: string;
@@ -48,8 +48,8 @@ export declare function useCreateVariant(productId: string, options?: UseMutatio
48
48
  updatedAt: string;
49
49
  price: number;
50
50
  deletedAt: string;
51
- name: string | null;
52
51
  id: string;
52
+ name: string | null;
53
53
  isActive: boolean;
54
54
  thumbnailUrl: string | null;
55
55
  productId: string;
@@ -70,8 +70,8 @@ export declare function useUpdateVariant(variantId: string, options?: UseMutatio
70
70
  updatedAt: string;
71
71
  price: number;
72
72
  deletedAt: string;
73
- name: string | null;
74
73
  id: string;
74
+ name: string | null;
75
75
  isActive: boolean;
76
76
  thumbnailUrl: string | null;
77
77
  productId: string;
@@ -93,8 +93,8 @@ export declare function useGetVariantInventory(variantId: string, options?: Omit
93
93
  updatedAt: string;
94
94
  price: number;
95
95
  deletedAt: string;
96
- name: string | null;
97
96
  id: string;
97
+ name: string | null;
98
98
  isActive: boolean;
99
99
  thumbnailUrl: string | null;
100
100
  productId: string;
@@ -7,8 +7,8 @@ import { createAdminRpcClients } from '../../rpc-client';
7
7
  * Hook to list all warehouses using admin RPC
8
8
  */
9
9
  export declare function useListWarehouses(options?: Omit<UseQueryOptions<Awaited<ReturnType<Awaited<ReturnType<ReturnType<typeof createAdminRpcClients>['warehouses']['index']['$get']>>['json']>>, Error>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<{
10
- name: string;
11
10
  id: string;
11
+ name: string;
12
12
  createdAt: string;
13
13
  updatedAt: string;
14
14
  deletedAt: string;
@@ -21,8 +21,8 @@ export declare function useListWarehouses(options?: Omit<UseQueryOptions<Awaited
21
21
  * Hook to create a warehouse using admin RPC
22
22
  */
23
23
  export declare function useCreateWarehouse(options?: UseMutationOptions<Awaited<ReturnType<Awaited<ReturnType<ReturnType<typeof createAdminRpcClients>['warehouses']['index']['$post']>>['json']>>, Error, any>): import("@tanstack/react-query").UseMutationResult<{
24
- name: string;
25
24
  id: string;
25
+ name: string;
26
26
  createdAt: string;
27
27
  updatedAt: string;
28
28
  deletedAt: string;
@@ -40,8 +40,8 @@ export declare function useCreateWarehouse(options?: UseMutationOptions<Awaited<
40
40
  * Hook to update a warehouse using admin RPC
41
41
  */
42
42
  export declare function useUpdateWarehouse(warehouseId: string, options?: UseMutationOptions<Awaited<ReturnType<Awaited<ReturnType<ReturnType<typeof createAdminRpcClients>['warehouses'][':id']['$patch']>>['json']>>, Error, any>): import("@tanstack/react-query").UseMutationResult<{
43
- name: string;
44
43
  id: string;
44
+ name: string;
45
45
  createdAt: string;
46
46
  updatedAt: string;
47
47
  deletedAt: string;
@@ -64,8 +64,8 @@ export declare function useGetWarehouseInventory(warehouseId: string, options?:
64
64
  variant: {
65
65
  product: {
66
66
  brand: {
67
- name: string;
68
67
  id: string;
68
+ name: string;
69
69
  slug: string;
70
70
  logoUrl: string | null;
71
71
  siteUrl: string;
@@ -75,8 +75,8 @@ export declare function useGetWarehouseInventory(warehouseId: string, options?:
75
75
  updatedAt: string;
76
76
  deletedAt: string;
77
77
  };
78
- name: string;
79
78
  id: string;
79
+ name: string;
80
80
  slug: string;
81
81
  createdAt: string;
82
82
  updatedAt: string;
@@ -231,8 +231,8 @@ export declare function useGetWarehouseInventory(warehouseId: string, options?:
231
231
  };
232
232
  };
233
233
  };
234
- name: string | null;
235
234
  id: string;
235
+ name: string | null;
236
236
  createdAt: string;
237
237
  updatedAt: string;
238
238
  deletedAt: string;
@@ -250,8 +250,8 @@ export declare function useGetWarehouseInventory(warehouseId: string, options?:
250
250
  warehouseId: string;
251
251
  inventoryCount: number;
252
252
  }[];
253
- name: string;
254
253
  id: string;
254
+ name: string;
255
255
  createdAt: string;
256
256
  updatedAt: string;
257
257
  deletedAt: string;
@@ -21,8 +21,8 @@ import { fetchBrandBySlug } from '../../fetchers/brands';
21
21
  * ```
22
22
  */
23
23
  export declare function useGetBrand(slug: string, options?: Omit<UseQueryOptions<Awaited<ReturnType<typeof fetchBrandBySlug>>, Error>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<{
24
- name: string;
25
24
  id: string;
25
+ name: string;
26
26
  slug: string;
27
27
  logoUrl: string;
28
28
  siteUrl: string;