@instockng/api-client 1.0.9 → 1.0.11

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 (117) hide show
  1. package/dist/apps/backend/src/lib/brand-response.d.ts +2 -0
  2. package/dist/apps/backend/src/lib/cart-helpers.d.ts +4 -0
  3. package/dist/apps/backend/src/lib/cart-response.d.ts +2 -0
  4. package/dist/apps/backend/src/lib/delivery-zone-response.d.ts +2 -0
  5. package/dist/apps/backend/src/lib/discount-code-response.d.ts +2 -0
  6. package/dist/apps/backend/src/lib/order-recovery.d.ts +6 -0
  7. package/dist/apps/backend/src/lib/order-response.d.ts +2 -0
  8. package/dist/apps/backend/src/lib/product-response.d.ts +2 -0
  9. package/dist/apps/backend/src/routes/admin/abandoned-carts.d.ts +4 -8
  10. package/dist/apps/backend/src/routes/admin/brands.d.ts +8 -0
  11. package/dist/apps/backend/src/routes/admin/customers.d.ts +2 -4
  12. package/dist/apps/backend/src/routes/admin/delivery-zones.d.ts +8 -0
  13. package/dist/apps/backend/src/routes/admin/discount-codes.d.ts +10 -0
  14. package/dist/apps/backend/src/routes/admin/inventory.d.ts +0 -4
  15. package/dist/apps/backend/src/routes/admin/orders.d.ts +12 -24
  16. package/dist/apps/backend/src/routes/admin/products.d.ts +8 -16
  17. package/dist/apps/backend/src/routes/admin/stats.d.ts +2 -4
  18. package/dist/apps/backend/src/routes/admin/warehouses.d.ts +2 -4
  19. package/dist/apps/backend/src/routes/public/brands.d.ts +1 -0
  20. package/dist/apps/backend/src/routes/public/brands.js +1 -0
  21. package/dist/apps/backend/src/routes/public/carts.d.ts +18 -36
  22. package/dist/apps/backend/src/routes/public/orders.d.ts +4 -8
  23. package/dist/apps/backend/src/routes/public/products.d.ts +4 -8
  24. package/dist/apps/backend/src/validators/brand.d.ts +4 -0
  25. package/dist/apps/backend/src/validators/brand.js +4 -0
  26. package/dist/packages/api-client/src/fetchers/brands.d.ts +1 -0
  27. package/dist/packages/api-client/src/fetchers/carts.d.ts +18 -36
  28. package/dist/packages/api-client/src/fetchers/orders.d.ts +4 -8
  29. package/dist/packages/api-client/src/fetchers/products.d.ts +4 -8
  30. package/dist/packages/api-client/src/hooks/admin/abandoned-carts.d.ts +4 -8
  31. package/dist/packages/api-client/src/hooks/admin/brands.d.ts +8 -0
  32. package/dist/packages/api-client/src/hooks/admin/customers.d.ts +2 -4
  33. package/dist/packages/api-client/src/hooks/admin/delivery-zones.d.ts +8 -0
  34. package/dist/packages/api-client/src/hooks/admin/discount-codes.d.ts +10 -0
  35. package/dist/packages/api-client/src/hooks/admin/inventory.d.ts +0 -4
  36. package/dist/packages/api-client/src/hooks/admin/orders.d.ts +12 -24
  37. package/dist/packages/api-client/src/hooks/admin/products.d.ts +4 -8
  38. package/dist/packages/api-client/src/hooks/admin/stats.d.ts +2 -4
  39. package/dist/packages/api-client/src/hooks/admin/warehouses.d.ts +2 -4
  40. package/dist/packages/api-client/src/hooks/public/brands.d.ts +1 -0
  41. package/dist/packages/api-client/src/hooks/public/carts.d.ts +18 -36
  42. package/dist/packages/api-client/src/hooks/public/orders.d.ts +4 -8
  43. package/dist/packages/api-client/src/hooks/public/products.d.ts +4 -8
  44. package/dist/packages/api-client/src/rpc-client.d.ts +83 -116
  45. package/package.json +1 -1
  46. package/dist/apps/backend/src/generated/zod/index.d.ts +0 -1114
  47. package/dist/apps/backend/src/generated/zod/index.js +0 -670
  48. package/dist/backend-types.d.ts +0 -10
  49. package/dist/backend-types.js +0 -10
  50. package/dist/client.d.ts +0 -20
  51. package/dist/client.js +0 -40
  52. package/dist/enum-types.d.ts +0 -8
  53. package/dist/enum-types.js +0 -5
  54. package/dist/fetchers/brands.d.ts +0 -25
  55. package/dist/fetchers/brands.js +0 -26
  56. package/dist/fetchers/carts.d.ts +0 -2335
  57. package/dist/fetchers/carts.js +0 -174
  58. package/dist/fetchers/delivery-zones.d.ts +0 -28
  59. package/dist/fetchers/delivery-zones.js +0 -26
  60. package/dist/fetchers/index.d.ts +0 -22
  61. package/dist/fetchers/index.js +0 -22
  62. package/dist/fetchers/orders.d.ts +0 -540
  63. package/dist/fetchers/orders.js +0 -44
  64. package/dist/fetchers/products.d.ts +0 -386
  65. package/dist/fetchers/products.js +0 -42
  66. package/dist/hooks/admin/abandoned-carts.d.ts +0 -535
  67. package/dist/hooks/admin/abandoned-carts.js +0 -83
  68. package/dist/hooks/admin/brands.d.ts +0 -79
  69. package/dist/hooks/admin/brands.js +0 -108
  70. package/dist/hooks/admin/customers.d.ts +0 -278
  71. package/dist/hooks/admin/customers.js +0 -26
  72. package/dist/hooks/admin/delivery-zones.d.ts +0 -270
  73. package/dist/hooks/admin/delivery-zones.js +0 -176
  74. package/dist/hooks/admin/discount-codes.d.ts +0 -299
  75. package/dist/hooks/admin/discount-codes.js +0 -165
  76. package/dist/hooks/admin/index.d.ts +0 -16
  77. package/dist/hooks/admin/index.js +0 -16
  78. package/dist/hooks/admin/inventory.d.ts +0 -224
  79. package/dist/hooks/admin/inventory.js +0 -107
  80. package/dist/hooks/admin/orders.d.ts +0 -1662
  81. package/dist/hooks/admin/orders.js +0 -178
  82. package/dist/hooks/admin/products.d.ts +0 -374
  83. package/dist/hooks/admin/products.js +0 -89
  84. package/dist/hooks/admin/stats.d.ts +0 -277
  85. package/dist/hooks/admin/stats.js +0 -25
  86. package/dist/hooks/admin/variants.d.ts +0 -115
  87. package/dist/hooks/admin/variants.js +0 -127
  88. package/dist/hooks/admin/warehouses.d.ts +0 -277
  89. package/dist/hooks/admin/warehouses.js +0 -108
  90. package/dist/hooks/public/brands.d.ts +0 -33
  91. package/dist/hooks/public/brands.js +0 -30
  92. package/dist/hooks/public/carts.d.ts +0 -2405
  93. package/dist/hooks/public/carts.js +0 -213
  94. package/dist/hooks/public/delivery-zones.d.ts +0 -34
  95. package/dist/hooks/public/delivery-zones.js +0 -28
  96. package/dist/hooks/public/index.d.ts +0 -10
  97. package/dist/hooks/public/index.js +0 -10
  98. package/dist/hooks/public/orders.d.ts +0 -559
  99. package/dist/hooks/public/orders.js +0 -50
  100. package/dist/hooks/public/products.d.ts +0 -398
  101. package/dist/hooks/public/products.js +0 -47
  102. package/dist/hooks/use-query-unwrapped.d.ts +0 -20
  103. package/dist/hooks/use-query-unwrapped.js +0 -22
  104. package/dist/hooks/useApiConfig.d.ts +0 -12
  105. package/dist/hooks/useApiConfig.js +0 -14
  106. package/dist/index.d.ts +0 -20
  107. package/dist/index.js +0 -25
  108. package/dist/provider.d.ts +0 -36
  109. package/dist/provider.js +0 -54
  110. package/dist/rpc-client.d.ts +0 -9607
  111. package/dist/rpc-client.js +0 -78
  112. package/dist/rpc-types.d.ts +0 -76
  113. package/dist/rpc-types.js +0 -7
  114. package/dist/types.d.ts +0 -34
  115. package/dist/types.js +0 -16
  116. package/dist/utils/query-keys.d.ts +0 -106
  117. package/dist/utils/query-keys.js +0 -108
@@ -29,6 +29,7 @@ declare const app: import("hono/hono-base").HonoBase<AppContext, {
29
29
  siteUrl: string;
30
30
  domain: string;
31
31
  metaPixelId: string;
32
+ paystackPublicKey: string;
32
33
  createdAt: string;
33
34
  updatedAt: string;
34
35
  };
@@ -21,6 +21,7 @@ const app = new Hono()
21
21
  siteUrl: true,
22
22
  domain: true,
23
23
  metaPixelId: true,
24
+ paystackPublicKey: true,
24
25
  createdAt: true,
25
26
  updatedAt: true,
26
27
  },
@@ -26,6 +26,8 @@ declare const app: import("hono/hono-base").HonoBase<AppContext, {
26
26
  siteUrl: string;
27
27
  domain: string;
28
28
  metaPixelId: string | null;
29
+ paystackPublicKey: string | null;
30
+ paystackSecretKey: string | null;
29
31
  };
30
32
  customerPhone: string;
31
33
  customerEmail: string;
@@ -145,9 +147,7 @@ declare const app: import("hono/hono-base").HonoBase<AppContext, {
145
147
  includes?: boolean;
146
148
  flatMap?: boolean;
147
149
  flat?: boolean;
148
- at?: boolean;
149
150
  };
150
- at: never;
151
151
  };
152
152
  } | {
153
153
  [x: number]: string | number | boolean | {
@@ -220,9 +220,7 @@ declare const app: import("hono/hono-base").HonoBase<AppContext, {
220
220
  includes?: boolean;
221
221
  flatMap?: boolean;
222
222
  flat?: boolean;
223
- at?: boolean;
224
223
  };
225
- at: never;
226
224
  };
227
225
  };
228
226
  id: string;
@@ -311,6 +309,8 @@ declare const app: import("hono/hono-base").HonoBase<AppContext, {
311
309
  siteUrl: string;
312
310
  domain: string;
313
311
  metaPixelId: string | null;
312
+ paystackPublicKey: string | null;
313
+ paystackSecretKey: string | null;
314
314
  };
315
315
  customerPhone: string;
316
316
  customerEmail: string;
@@ -430,9 +430,7 @@ declare const app: import("hono/hono-base").HonoBase<AppContext, {
430
430
  includes?: boolean;
431
431
  flatMap?: boolean;
432
432
  flat?: boolean;
433
- at?: boolean;
434
433
  };
435
- at: never;
436
434
  };
437
435
  } | {
438
436
  [x: number]: string | number | boolean | {
@@ -505,9 +503,7 @@ declare const app: import("hono/hono-base").HonoBase<AppContext, {
505
503
  includes?: boolean;
506
504
  flatMap?: boolean;
507
505
  flat?: boolean;
508
- at?: boolean;
509
506
  };
510
- at: never;
511
507
  };
512
508
  };
513
509
  id: string;
@@ -586,6 +582,8 @@ declare const app: import("hono/hono-base").HonoBase<AppContext, {
586
582
  siteUrl: string;
587
583
  domain: string;
588
584
  metaPixelId: string | null;
585
+ paystackPublicKey: string | null;
586
+ paystackSecretKey: string | null;
589
587
  };
590
588
  customerPhone: string;
591
589
  customerEmail: string;
@@ -705,9 +703,7 @@ declare const app: import("hono/hono-base").HonoBase<AppContext, {
705
703
  includes?: boolean;
706
704
  flatMap?: boolean;
707
705
  flat?: boolean;
708
- at?: boolean;
709
706
  };
710
- at: never;
711
707
  };
712
708
  } | {
713
709
  [x: number]: string | number | boolean | {
@@ -780,9 +776,7 @@ declare const app: import("hono/hono-base").HonoBase<AppContext, {
780
776
  includes?: boolean;
781
777
  flatMap?: boolean;
782
778
  flat?: boolean;
783
- at?: boolean;
784
779
  };
785
- at: never;
786
780
  };
787
781
  };
788
782
  id: string;
@@ -875,6 +869,8 @@ declare const app: import("hono/hono-base").HonoBase<AppContext, {
875
869
  siteUrl: string;
876
870
  domain: string;
877
871
  metaPixelId: string | null;
872
+ paystackPublicKey: string | null;
873
+ paystackSecretKey: string | null;
878
874
  };
879
875
  customerPhone: string;
880
876
  customerEmail: string;
@@ -994,9 +990,7 @@ declare const app: import("hono/hono-base").HonoBase<AppContext, {
994
990
  includes?: boolean;
995
991
  flatMap?: boolean;
996
992
  flat?: boolean;
997
- at?: boolean;
998
993
  };
999
- at: never;
1000
994
  };
1001
995
  } | {
1002
996
  [x: number]: string | number | boolean | {
@@ -1069,9 +1063,7 @@ declare const app: import("hono/hono-base").HonoBase<AppContext, {
1069
1063
  includes?: boolean;
1070
1064
  flatMap?: boolean;
1071
1065
  flat?: boolean;
1072
- at?: boolean;
1073
1066
  };
1074
- at: never;
1075
1067
  };
1076
1068
  };
1077
1069
  id: string;
@@ -1164,6 +1156,8 @@ declare const app: import("hono/hono-base").HonoBase<AppContext, {
1164
1156
  siteUrl: string;
1165
1157
  domain: string;
1166
1158
  metaPixelId: string | null;
1159
+ paystackPublicKey: string | null;
1160
+ paystackSecretKey: string | null;
1167
1161
  };
1168
1162
  customerPhone: string;
1169
1163
  customerEmail: string;
@@ -1283,9 +1277,7 @@ declare const app: import("hono/hono-base").HonoBase<AppContext, {
1283
1277
  includes?: boolean;
1284
1278
  flatMap?: boolean;
1285
1279
  flat?: boolean;
1286
- at?: boolean;
1287
1280
  };
1288
- at: never;
1289
1281
  };
1290
1282
  } | {
1291
1283
  [x: number]: string | number | boolean | {
@@ -1358,9 +1350,7 @@ declare const app: import("hono/hono-base").HonoBase<AppContext, {
1358
1350
  includes?: boolean;
1359
1351
  flatMap?: boolean;
1360
1352
  flat?: boolean;
1361
- at?: boolean;
1362
1353
  };
1363
- at: never;
1364
1354
  };
1365
1355
  };
1366
1356
  id: string;
@@ -1453,6 +1443,8 @@ declare const app: import("hono/hono-base").HonoBase<AppContext, {
1453
1443
  siteUrl: string;
1454
1444
  domain: string;
1455
1445
  metaPixelId: string | null;
1446
+ paystackPublicKey: string | null;
1447
+ paystackSecretKey: string | null;
1456
1448
  };
1457
1449
  customerPhone: string;
1458
1450
  customerEmail: string;
@@ -1572,9 +1564,7 @@ declare const app: import("hono/hono-base").HonoBase<AppContext, {
1572
1564
  includes?: boolean;
1573
1565
  flatMap?: boolean;
1574
1566
  flat?: boolean;
1575
- at?: boolean;
1576
1567
  };
1577
- at: never;
1578
1568
  };
1579
1569
  } | {
1580
1570
  [x: number]: string | number | boolean | {
@@ -1647,9 +1637,7 @@ declare const app: import("hono/hono-base").HonoBase<AppContext, {
1647
1637
  includes?: boolean;
1648
1638
  flatMap?: boolean;
1649
1639
  flat?: boolean;
1650
- at?: boolean;
1651
1640
  };
1652
- at: never;
1653
1641
  };
1654
1642
  };
1655
1643
  id: string;
@@ -1744,6 +1732,8 @@ declare const app: import("hono/hono-base").HonoBase<AppContext, {
1744
1732
  siteUrl: string;
1745
1733
  domain: string;
1746
1734
  metaPixelId: string | null;
1735
+ paystackPublicKey: string | null;
1736
+ paystackSecretKey: string | null;
1747
1737
  };
1748
1738
  customerPhone: string;
1749
1739
  customerEmail: string;
@@ -1863,9 +1853,7 @@ declare const app: import("hono/hono-base").HonoBase<AppContext, {
1863
1853
  includes?: boolean;
1864
1854
  flatMap?: boolean;
1865
1855
  flat?: boolean;
1866
- at?: boolean;
1867
1856
  };
1868
- at: never;
1869
1857
  };
1870
1858
  } | {
1871
1859
  [x: number]: string | number | boolean | {
@@ -1938,9 +1926,7 @@ declare const app: import("hono/hono-base").HonoBase<AppContext, {
1938
1926
  includes?: boolean;
1939
1927
  flatMap?: boolean;
1940
1928
  flat?: boolean;
1941
- at?: boolean;
1942
1929
  };
1943
- at: never;
1944
1930
  };
1945
1931
  };
1946
1932
  id: string;
@@ -2055,6 +2041,8 @@ declare const app: import("hono/hono-base").HonoBase<AppContext, {
2055
2041
  siteUrl: string;
2056
2042
  domain: string;
2057
2043
  metaPixelId: string | null;
2044
+ paystackPublicKey: string | null;
2045
+ paystackSecretKey: string | null;
2058
2046
  };
2059
2047
  customerPhone: string;
2060
2048
  customerEmail: string;
@@ -2174,9 +2162,7 @@ declare const app: import("hono/hono-base").HonoBase<AppContext, {
2174
2162
  includes?: boolean;
2175
2163
  flatMap?: boolean;
2176
2164
  flat?: boolean;
2177
- at?: boolean;
2178
2165
  };
2179
- at: never;
2180
2166
  };
2181
2167
  } | {
2182
2168
  [x: number]: string | number | boolean | {
@@ -2249,9 +2235,7 @@ declare const app: import("hono/hono-base").HonoBase<AppContext, {
2249
2235
  includes?: boolean;
2250
2236
  flatMap?: boolean;
2251
2237
  flat?: boolean;
2252
- at?: boolean;
2253
2238
  };
2254
- at: never;
2255
2239
  };
2256
2240
  };
2257
2241
  id: string;
@@ -2428,6 +2412,8 @@ declare const app: import("hono/hono-base").HonoBase<AppContext, {
2428
2412
  siteUrl: string;
2429
2413
  domain: string;
2430
2414
  metaPixelId: string | null;
2415
+ paystackPublicKey: string | null;
2416
+ paystackSecretKey: string | null;
2431
2417
  };
2432
2418
  deliveryZone: {
2433
2419
  deliveryCost: number;
@@ -2543,9 +2529,7 @@ declare const app: import("hono/hono-base").HonoBase<AppContext, {
2543
2529
  includes?: boolean;
2544
2530
  flatMap?: boolean;
2545
2531
  flat?: boolean;
2546
- at?: boolean;
2547
2532
  };
2548
- at: never;
2549
2533
  };
2550
2534
  } | {
2551
2535
  [x: number]: string | number | boolean | {
@@ -2618,9 +2602,7 @@ declare const app: import("hono/hono-base").HonoBase<AppContext, {
2618
2602
  includes?: boolean;
2619
2603
  flatMap?: boolean;
2620
2604
  flat?: boolean;
2621
- at?: boolean;
2622
2605
  };
2623
- at: never;
2624
2606
  };
2625
2607
  };
2626
2608
  id: string;
@@ -48,6 +48,8 @@ declare const app: import("hono/hono-base").HonoBase<AppContext, {
48
48
  siteUrl: string;
49
49
  domain: string;
50
50
  metaPixelId: string | null;
51
+ paystackPublicKey: string | null;
52
+ paystackSecretKey: string | null;
51
53
  };
52
54
  deliveryZone: {
53
55
  deliveryCost: number;
@@ -163,9 +165,7 @@ declare const app: import("hono/hono-base").HonoBase<AppContext, {
163
165
  includes?: boolean;
164
166
  flatMap?: boolean;
165
167
  flat?: boolean;
166
- at?: boolean;
167
168
  };
168
- at: never;
169
169
  };
170
170
  } | {
171
171
  [x: number]: string | number | boolean | {
@@ -238,9 +238,7 @@ declare const app: import("hono/hono-base").HonoBase<AppContext, {
238
238
  includes?: boolean;
239
239
  flatMap?: boolean;
240
240
  flat?: boolean;
241
- at?: boolean;
242
241
  };
243
- at: never;
244
242
  };
245
243
  };
246
244
  id: string;
@@ -356,6 +354,8 @@ declare const app: import("hono/hono-base").HonoBase<AppContext, {
356
354
  siteUrl: string;
357
355
  domain: string;
358
356
  metaPixelId: string | null;
357
+ paystackPublicKey: string | null;
358
+ paystackSecretKey: string | null;
359
359
  };
360
360
  deliveryZone: {
361
361
  deliveryCost: number;
@@ -471,9 +471,7 @@ declare const app: import("hono/hono-base").HonoBase<AppContext, {
471
471
  includes?: boolean;
472
472
  flatMap?: boolean;
473
473
  flat?: boolean;
474
- at?: boolean;
475
474
  };
476
- at: never;
477
475
  };
478
476
  } | {
479
477
  [x: number]: string | number | boolean | {
@@ -546,9 +544,7 @@ declare const app: import("hono/hono-base").HonoBase<AppContext, {
546
544
  includes?: boolean;
547
545
  flatMap?: boolean;
548
546
  flat?: boolean;
549
- at?: boolean;
550
547
  };
551
- at: never;
552
548
  };
553
549
  };
554
550
  id: string;
@@ -33,6 +33,8 @@ declare const app: import("hono/hono-base").HonoBase<AppContext, {
33
33
  siteUrl: string;
34
34
  domain: string;
35
35
  metaPixelId: string | null;
36
+ paystackPublicKey: string | null;
37
+ paystackSecretKey: string | null;
36
38
  };
37
39
  variants: {
38
40
  createdAt: string;
@@ -128,9 +130,7 @@ declare const app: import("hono/hono-base").HonoBase<AppContext, {
128
130
  includes?: boolean;
129
131
  flatMap?: boolean;
130
132
  flat?: boolean;
131
- at?: boolean;
132
133
  };
133
- at: never;
134
134
  };
135
135
  } | {
136
136
  [x: number]: string | number | boolean | {
@@ -203,9 +203,7 @@ declare const app: import("hono/hono-base").HonoBase<AppContext, {
203
203
  includes?: boolean;
204
204
  flatMap?: boolean;
205
205
  flat?: boolean;
206
- at?: boolean;
207
206
  };
208
- at: never;
209
207
  };
210
208
  };
211
209
  outputFormat: "json";
@@ -260,6 +258,8 @@ declare const app: import("hono/hono-base").HonoBase<AppContext, {
260
258
  siteUrl: string;
261
259
  domain: string;
262
260
  metaPixelId: string | null;
261
+ paystackPublicKey: string | null;
262
+ paystackSecretKey: string | null;
263
263
  };
264
264
  variants: {
265
265
  createdAt: string;
@@ -355,9 +355,7 @@ declare const app: import("hono/hono-base").HonoBase<AppContext, {
355
355
  includes?: boolean;
356
356
  flatMap?: boolean;
357
357
  flat?: boolean;
358
- at?: boolean;
359
358
  };
360
- at: never;
361
359
  };
362
360
  } | {
363
361
  [x: number]: string | number | boolean | {
@@ -430,9 +428,7 @@ declare const app: import("hono/hono-base").HonoBase<AppContext, {
430
428
  includes?: boolean;
431
429
  flatMap?: boolean;
432
430
  flat?: boolean;
433
- at?: boolean;
434
431
  };
435
- at: never;
436
432
  };
437
433
  }[];
438
434
  outputFormat: "json";
@@ -5,6 +5,8 @@ export declare const createBrandSchema: z.ZodObject<{
5
5
  siteUrl: z.ZodURL;
6
6
  domain: z.ZodString;
7
7
  metaPixelId: z.ZodOptional<z.ZodString>;
8
+ paystackPublicKey: z.ZodOptional<z.ZodString>;
9
+ paystackSecretKey: z.ZodOptional<z.ZodString>;
8
10
  }, z.core.$strip>;
9
11
  export type CreateBrandInput = z.infer<typeof createBrandSchema>;
10
12
  export declare const updateBrandSchema: z.ZodObject<{
@@ -13,5 +15,7 @@ export declare const updateBrandSchema: z.ZodObject<{
13
15
  siteUrl: z.ZodOptional<z.ZodURL>;
14
16
  domain: z.ZodOptional<z.ZodString>;
15
17
  metaPixelId: z.ZodOptional<z.ZodString>;
18
+ paystackPublicKey: z.ZodOptional<z.ZodString>;
19
+ paystackSecretKey: z.ZodOptional<z.ZodString>;
16
20
  }, z.core.$strip>;
17
21
  export type UpdateBrandInput = z.infer<typeof updateBrandSchema>;
@@ -5,6 +5,8 @@ export const createBrandSchema = z.object({
5
5
  siteUrl: z.url(),
6
6
  domain: z.string().min(1),
7
7
  metaPixelId: z.string().optional(),
8
+ paystackPublicKey: z.string().optional(),
9
+ paystackSecretKey: z.string().optional(),
8
10
  });
9
11
  export const updateBrandSchema = z.object({
10
12
  name: z.string().min(1).optional(),
@@ -12,4 +14,6 @@ export const updateBrandSchema = z.object({
12
14
  siteUrl: z.url().optional(),
13
15
  domain: z.string().min(1).optional(),
14
16
  metaPixelId: z.string().optional(),
17
+ paystackPublicKey: z.string().optional(),
18
+ paystackSecretKey: z.string().optional(),
15
19
  });
@@ -20,6 +20,7 @@ export declare function fetchBrandBySlug(slug: string): Promise<{
20
20
  siteUrl: string;
21
21
  domain: string;
22
22
  metaPixelId: string;
23
+ paystackPublicKey: string;
23
24
  createdAt: string;
24
25
  updatedAt: string;
25
26
  }>;
@@ -25,6 +25,8 @@ export declare function fetchCart(cartId: string): Promise<{
25
25
  siteUrl: string;
26
26
  domain: string;
27
27
  metaPixelId: string | null;
28
+ paystackPublicKey: string | null;
29
+ paystackSecretKey: string | null;
28
30
  };
29
31
  customerPhone: string;
30
32
  customerEmail: string;
@@ -144,9 +146,7 @@ export declare function fetchCart(cartId: string): Promise<{
144
146
  includes?: boolean;
145
147
  flatMap?: boolean;
146
148
  flat?: boolean;
147
- at?: boolean;
148
149
  };
149
- at: never;
150
150
  };
151
151
  } | {
152
152
  [x: number]: string | number | boolean | {
@@ -219,9 +219,7 @@ export declare function fetchCart(cartId: string): Promise<{
219
219
  includes?: boolean;
220
220
  flatMap?: boolean;
221
221
  flat?: boolean;
222
- at?: boolean;
223
222
  };
224
- at: never;
225
223
  };
226
224
  };
227
225
  id: string;
@@ -285,6 +283,8 @@ export declare function createCart(brandSlug: string): Promise<{
285
283
  siteUrl: string;
286
284
  domain: string;
287
285
  metaPixelId: string | null;
286
+ paystackPublicKey: string | null;
287
+ paystackSecretKey: string | null;
288
288
  };
289
289
  customerPhone: string;
290
290
  customerEmail: string;
@@ -404,9 +404,7 @@ export declare function createCart(brandSlug: string): Promise<{
404
404
  includes?: boolean;
405
405
  flatMap?: boolean;
406
406
  flat?: boolean;
407
- at?: boolean;
408
407
  };
409
- at: never;
410
408
  };
411
409
  } | {
412
410
  [x: number]: string | number | boolean | {
@@ -479,9 +477,7 @@ export declare function createCart(brandSlug: string): Promise<{
479
477
  includes?: boolean;
480
478
  flatMap?: boolean;
481
479
  flat?: boolean;
482
- at?: boolean;
483
480
  };
484
- at: never;
485
481
  };
486
482
  };
487
483
  id: string;
@@ -548,6 +544,8 @@ export declare function updateCart(cartId: string, data: {
548
544
  siteUrl: string;
549
545
  domain: string;
550
546
  metaPixelId: string | null;
547
+ paystackPublicKey: string | null;
548
+ paystackSecretKey: string | null;
551
549
  };
552
550
  customerPhone: string;
553
551
  customerEmail: string;
@@ -667,9 +665,7 @@ export declare function updateCart(cartId: string, data: {
667
665
  includes?: boolean;
668
666
  flatMap?: boolean;
669
667
  flat?: boolean;
670
- at?: boolean;
671
668
  };
672
- at: never;
673
669
  };
674
670
  } | {
675
671
  [x: number]: string | number | boolean | {
@@ -742,9 +738,7 @@ export declare function updateCart(cartId: string, data: {
742
738
  includes?: boolean;
743
739
  flatMap?: boolean;
744
740
  flat?: boolean;
745
- at?: boolean;
746
741
  };
747
- at: never;
748
742
  };
749
743
  };
750
744
  id: string;
@@ -812,6 +806,8 @@ export declare function addCartItem(cartId: string, sku: string, quantity: numbe
812
806
  siteUrl: string;
813
807
  domain: string;
814
808
  metaPixelId: string | null;
809
+ paystackPublicKey: string | null;
810
+ paystackSecretKey: string | null;
815
811
  };
816
812
  customerPhone: string;
817
813
  customerEmail: string;
@@ -931,9 +927,7 @@ export declare function addCartItem(cartId: string, sku: string, quantity: numbe
931
927
  includes?: boolean;
932
928
  flatMap?: boolean;
933
929
  flat?: boolean;
934
- at?: boolean;
935
930
  };
936
- at: never;
937
931
  };
938
932
  } | {
939
933
  [x: number]: string | number | boolean | {
@@ -1006,9 +1000,7 @@ export declare function addCartItem(cartId: string, sku: string, quantity: numbe
1006
1000
  includes?: boolean;
1007
1001
  flatMap?: boolean;
1008
1002
  flat?: boolean;
1009
- at?: boolean;
1010
1003
  };
1011
- at: never;
1012
1004
  };
1013
1005
  };
1014
1006
  id: string;
@@ -1074,6 +1066,8 @@ export declare function updateCartItem(cartId: string, itemId: string, quantity:
1074
1066
  siteUrl: string;
1075
1067
  domain: string;
1076
1068
  metaPixelId: string | null;
1069
+ paystackPublicKey: string | null;
1070
+ paystackSecretKey: string | null;
1077
1071
  };
1078
1072
  customerPhone: string;
1079
1073
  customerEmail: string;
@@ -1193,9 +1187,7 @@ export declare function updateCartItem(cartId: string, itemId: string, quantity:
1193
1187
  includes?: boolean;
1194
1188
  flatMap?: boolean;
1195
1189
  flat?: boolean;
1196
- at?: boolean;
1197
1190
  };
1198
- at: never;
1199
1191
  };
1200
1192
  } | {
1201
1193
  [x: number]: string | number | boolean | {
@@ -1268,9 +1260,7 @@ export declare function updateCartItem(cartId: string, itemId: string, quantity:
1268
1260
  includes?: boolean;
1269
1261
  flatMap?: boolean;
1270
1262
  flat?: boolean;
1271
- at?: boolean;
1272
1263
  };
1273
- at: never;
1274
1264
  };
1275
1265
  };
1276
1266
  id: string;
@@ -1330,6 +1320,8 @@ export declare function removeCartItem(cartId: string, itemId: string): Promise<
1330
1320
  siteUrl: string;
1331
1321
  domain: string;
1332
1322
  metaPixelId: string | null;
1323
+ paystackPublicKey: string | null;
1324
+ paystackSecretKey: string | null;
1333
1325
  };
1334
1326
  customerPhone: string;
1335
1327
  customerEmail: string;
@@ -1449,9 +1441,7 @@ export declare function removeCartItem(cartId: string, itemId: string): Promise<
1449
1441
  includes?: boolean;
1450
1442
  flatMap?: boolean;
1451
1443
  flat?: boolean;
1452
- at?: boolean;
1453
1444
  };
1454
- at: never;
1455
1445
  };
1456
1446
  } | {
1457
1447
  [x: number]: string | number | boolean | {
@@ -1524,9 +1514,7 @@ export declare function removeCartItem(cartId: string, itemId: string): Promise<
1524
1514
  includes?: boolean;
1525
1515
  flatMap?: boolean;
1526
1516
  flat?: boolean;
1527
- at?: boolean;
1528
1517
  };
1529
- at: never;
1530
1518
  };
1531
1519
  };
1532
1520
  id: string;
@@ -1586,6 +1574,8 @@ export declare function applyDiscount(cartId: string, code: string): Promise<{
1586
1574
  siteUrl: string;
1587
1575
  domain: string;
1588
1576
  metaPixelId: string | null;
1577
+ paystackPublicKey: string | null;
1578
+ paystackSecretKey: string | null;
1589
1579
  };
1590
1580
  customerPhone: string;
1591
1581
  customerEmail: string;
@@ -1705,9 +1695,7 @@ export declare function applyDiscount(cartId: string, code: string): Promise<{
1705
1695
  includes?: boolean;
1706
1696
  flatMap?: boolean;
1707
1697
  flat?: boolean;
1708
- at?: boolean;
1709
1698
  };
1710
- at: never;
1711
1699
  };
1712
1700
  } | {
1713
1701
  [x: number]: string | number | boolean | {
@@ -1780,9 +1768,7 @@ export declare function applyDiscount(cartId: string, code: string): Promise<{
1780
1768
  includes?: boolean;
1781
1769
  flatMap?: boolean;
1782
1770
  flat?: boolean;
1783
- at?: boolean;
1784
1771
  };
1785
- at: never;
1786
1772
  };
1787
1773
  };
1788
1774
  id: string;
@@ -1846,6 +1832,8 @@ export declare function removeDiscount(cartId: string): Promise<{
1846
1832
  siteUrl: string;
1847
1833
  domain: string;
1848
1834
  metaPixelId: string | null;
1835
+ paystackPublicKey: string | null;
1836
+ paystackSecretKey: string | null;
1849
1837
  };
1850
1838
  customerPhone: string;
1851
1839
  customerEmail: string;
@@ -1965,9 +1953,7 @@ export declare function removeDiscount(cartId: string): Promise<{
1965
1953
  includes?: boolean;
1966
1954
  flatMap?: boolean;
1967
1955
  flat?: boolean;
1968
- at?: boolean;
1969
1956
  };
1970
- at: never;
1971
1957
  };
1972
1958
  } | {
1973
1959
  [x: number]: string | number | boolean | {
@@ -2040,9 +2026,7 @@ export declare function removeDiscount(cartId: string): Promise<{
2040
2026
  includes?: boolean;
2041
2027
  flatMap?: boolean;
2042
2028
  flat?: boolean;
2043
- at?: boolean;
2044
2029
  };
2045
- at: never;
2046
2030
  };
2047
2031
  };
2048
2032
  id: string;
@@ -2128,6 +2112,8 @@ export declare function checkoutCart(cartId: string, checkoutData: {
2128
2112
  siteUrl: string;
2129
2113
  domain: string;
2130
2114
  metaPixelId: string | null;
2115
+ paystackPublicKey: string | null;
2116
+ paystackSecretKey: string | null;
2131
2117
  };
2132
2118
  deliveryZone: {
2133
2119
  deliveryCost: number;
@@ -2243,9 +2229,7 @@ export declare function checkoutCart(cartId: string, checkoutData: {
2243
2229
  includes?: boolean;
2244
2230
  flatMap?: boolean;
2245
2231
  flat?: boolean;
2246
- at?: boolean;
2247
2232
  };
2248
- at: never;
2249
2233
  };
2250
2234
  } | {
2251
2235
  [x: number]: string | number | boolean | {
@@ -2318,9 +2302,7 @@ export declare function checkoutCart(cartId: string, checkoutData: {
2318
2302
  includes?: boolean;
2319
2303
  flatMap?: boolean;
2320
2304
  flat?: boolean;
2321
- at?: boolean;
2322
2305
  };
2323
- at: never;
2324
2306
  };
2325
2307
  };
2326
2308
  id: string;