@instockng/api-client 1.0.26 → 1.0.28

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.
@@ -4991,6 +4991,23 @@ export declare function checkoutCart(cartId: string, checkoutData: {
4991
4991
  prospectReason: import("@prisma/client").$Enums.ProspectReason | null;
4992
4992
  userActionToken: string;
4993
4993
  }>;
4994
+ /**
4995
+ * Initiate checkout tracking
4996
+ *
4997
+ * @param cartId - Cart UUID
4998
+ * @param data - Checking out user data and attribution cookies
4999
+ * @returns Success status
5000
+ */
5001
+ export declare function initiateCheckout(cartId: string, data: {
5002
+ email?: string | null;
5003
+ phone?: string | null;
5004
+ fbc?: string;
5005
+ fbp?: string;
5006
+ ttp?: string;
5007
+ ttclid?: string;
5008
+ }): Promise<{
5009
+ success: true;
5010
+ }>;
4994
5011
  /**
4995
5012
  * Fetch recommended products for a cart
4996
5013
  *
@@ -5150,19 +5167,18 @@ export declare function fetchCartRecommendations(cartId: string, limit: number):
5150
5167
  };
5151
5168
  };
5152
5169
  brand: {
5153
- createdAt: string;
5154
- updatedAt: string;
5155
- deletedAt: string;
5156
5170
  id: string;
5157
5171
  name: string;
5158
5172
  slug: string;
5159
- logoUrl: string | null;
5173
+ logoUrl: string;
5160
5174
  siteUrl: string;
5161
5175
  domain: string;
5162
- metaPixelId: string | null;
5163
- tiktokPixelId: string | null;
5164
- paystackPublicKey: string | null;
5165
- paystackSecretKey: string | null;
5176
+ metaPixelId: string;
5177
+ tiktokPixelId: string;
5178
+ paystackPublicKey: string;
5179
+ createdAt: string;
5180
+ updatedAt: string;
5181
+ deletedAt: string;
5166
5182
  };
5167
5183
  variants: {
5168
5184
  createdAt: string;
@@ -171,6 +171,25 @@ export async function checkoutCart(cartId, checkoutData) {
171
171
  }
172
172
  return res.json();
173
173
  }
174
+ /**
175
+ * Initiate checkout tracking
176
+ *
177
+ * @param cartId - Cart UUID
178
+ * @param data - Checking out user data and attribution cookies
179
+ * @returns Success status
180
+ */
181
+ export async function initiateCheckout(cartId, data) {
182
+ const clients = createRpcClients(API_URL);
183
+ const res = await clients.carts[':id']['initiate-checkout'].$post({
184
+ param: { id: cartId },
185
+ // @ts-expect-error - Hono RPC type inference issue
186
+ json: data,
187
+ });
188
+ if (!res.ok) {
189
+ throw new Error(`Failed to initiate checkout intent: ${res.statusText}`);
190
+ }
191
+ return res.json();
192
+ }
174
193
  /**
175
194
  * Fetch recommended products for a cart
176
195
  *
@@ -1290,19 +1290,18 @@ export declare function fetchOrderRecommendations(orderId: string, token: string
1290
1290
  };
1291
1291
  };
1292
1292
  brand: {
1293
- createdAt: string;
1294
- updatedAt: string;
1295
- deletedAt: string;
1296
1293
  id: string;
1297
1294
  name: string;
1298
1295
  slug: string;
1299
- logoUrl: string | null;
1296
+ logoUrl: string;
1300
1297
  siteUrl: string;
1301
1298
  domain: string;
1302
- metaPixelId: string | null;
1303
- tiktokPixelId: string | null;
1304
- paystackPublicKey: string | null;
1305
- paystackSecretKey: string | null;
1299
+ metaPixelId: string;
1300
+ tiktokPixelId: string;
1301
+ paystackPublicKey: string;
1302
+ createdAt: string;
1303
+ updatedAt: string;
1304
+ deletedAt: string;
1306
1305
  };
1307
1306
  variants: {
1308
1307
  createdAt: string;
@@ -162,19 +162,18 @@ export declare function fetchProductsByBrand(brandId: string): Promise<{
162
162
  };
163
163
  };
164
164
  brand: {
165
- createdAt: string;
166
- updatedAt: string;
167
- deletedAt: string;
168
165
  id: string;
169
166
  name: string;
170
167
  slug: string;
171
- logoUrl: string | null;
168
+ logoUrl: string;
172
169
  siteUrl: string;
173
170
  domain: string;
174
- metaPixelId: string | null;
175
- tiktokPixelId: string | null;
176
- paystackPublicKey: string | null;
177
- paystackSecretKey: string | null;
171
+ metaPixelId: string;
172
+ tiktokPixelId: string;
173
+ paystackPublicKey: string;
174
+ createdAt: string;
175
+ updatedAt: string;
176
+ deletedAt: string;
178
177
  };
179
178
  variants: {
180
179
  createdAt: string;
@@ -646,19 +645,18 @@ export declare function fetchProductBySlug(slug: string): Promise<{
646
645
  };
647
646
  };
648
647
  brand: {
649
- createdAt: string;
650
- updatedAt: string;
651
- deletedAt: string;
652
648
  id: string;
653
649
  name: string;
654
650
  slug: string;
655
- logoUrl: string | null;
651
+ logoUrl: string;
656
652
  siteUrl: string;
657
653
  domain: string;
658
- metaPixelId: string | null;
659
- tiktokPixelId: string | null;
660
- paystackPublicKey: string | null;
661
- paystackSecretKey: string | null;
654
+ metaPixelId: string;
655
+ tiktokPixelId: string;
656
+ paystackPublicKey: string;
657
+ createdAt: string;
658
+ updatedAt: string;
659
+ deletedAt: string;
662
660
  };
663
661
  variants: {
664
662
  createdAt: string;
@@ -14,19 +14,18 @@ export declare function useListStates(options?: Omit<UseQueryOptions<Awaited<Ret
14
14
  updatedAt: string;
15
15
  deletedAt: string;
16
16
  brand: {
17
- createdAt: string;
18
- updatedAt: string;
19
- deletedAt: string;
20
17
  id: string;
21
18
  name: string;
22
19
  slug: string;
23
- logoUrl: string | null;
20
+ logoUrl: string;
24
21
  siteUrl: string;
25
22
  domain: string;
26
- metaPixelId: string | null;
27
- tiktokPixelId: string | null;
28
- paystackPublicKey: string | null;
29
- paystackSecretKey: string | null;
23
+ metaPixelId: string;
24
+ tiktokPixelId: string;
25
+ paystackPublicKey: string;
26
+ createdAt: string;
27
+ updatedAt: string;
28
+ deletedAt: string;
30
29
  };
31
30
  stateName: string;
32
31
  brandName: string;
@@ -126,19 +125,18 @@ export declare function useListDeliveryZones(params?: {
126
125
  updatedAt: string;
127
126
  deletedAt: string;
128
127
  brand: {
129
- createdAt: string;
130
- updatedAt: string;
131
- deletedAt: string;
132
128
  id: string;
133
129
  name: string;
134
130
  slug: string;
135
- logoUrl: string | null;
131
+ logoUrl: string;
136
132
  siteUrl: string;
137
133
  domain: string;
138
- metaPixelId: string | null;
139
- tiktokPixelId: string | null;
140
- paystackPublicKey: string | null;
141
- paystackSecretKey: string | null;
134
+ metaPixelId: string;
135
+ tiktokPixelId: string;
136
+ paystackPublicKey: string;
137
+ createdAt: string;
138
+ updatedAt: string;
139
+ deletedAt: string;
142
140
  };
143
141
  stateName: string;
144
142
  brandName: string;
@@ -172,19 +170,18 @@ export declare function useCreateDeliveryZone(options?: UseMutationOptions<Await
172
170
  updatedAt: string;
173
171
  deletedAt: string;
174
172
  brand: {
175
- createdAt: string;
176
- updatedAt: string;
177
- deletedAt: string;
178
173
  id: string;
179
174
  name: string;
180
175
  slug: string;
181
- logoUrl: string | null;
176
+ logoUrl: string;
182
177
  siteUrl: string;
183
178
  domain: string;
184
- metaPixelId: string | null;
185
- tiktokPixelId: string | null;
186
- paystackPublicKey: string | null;
187
- paystackSecretKey: string | null;
179
+ metaPixelId: string;
180
+ tiktokPixelId: string;
181
+ paystackPublicKey: string;
182
+ createdAt: string;
183
+ updatedAt: string;
184
+ deletedAt: string;
188
185
  };
189
186
  stateName: string;
190
187
  brandName: string;
@@ -233,19 +230,18 @@ export declare function useUpdateDeliveryZone(zoneId: string, options?: UseMutat
233
230
  updatedAt: string;
234
231
  deletedAt: string;
235
232
  brand: {
236
- createdAt: string;
237
- updatedAt: string;
238
- deletedAt: string;
239
233
  id: string;
240
234
  name: string;
241
235
  slug: string;
242
- logoUrl: string | null;
236
+ logoUrl: string;
243
237
  siteUrl: string;
244
238
  domain: string;
245
- metaPixelId: string | null;
246
- tiktokPixelId: string | null;
247
- paystackPublicKey: string | null;
248
- paystackSecretKey: string | null;
239
+ metaPixelId: string;
240
+ tiktokPixelId: string;
241
+ paystackPublicKey: string;
242
+ createdAt: string;
243
+ updatedAt: string;
244
+ deletedAt: string;
249
245
  };
250
246
  stateName: string;
251
247
  brandName: string;
@@ -22,19 +22,18 @@ export declare function useListDiscountCodes(params?: {
22
22
  updatedAt: string;
23
23
  deletedAt: string;
24
24
  brand: {
25
- createdAt: string;
26
- updatedAt: string;
27
- deletedAt: string;
28
25
  id: string;
29
26
  name: string;
30
27
  slug: string;
31
- logoUrl: string | null;
28
+ logoUrl: string;
32
29
  siteUrl: string;
33
30
  domain: string;
34
- metaPixelId: string | null;
35
- tiktokPixelId: string | null;
36
- paystackPublicKey: string | null;
37
- paystackSecretKey: string | null;
31
+ metaPixelId: string;
32
+ tiktokPixelId: string;
33
+ paystackPublicKey: string;
34
+ createdAt: string;
35
+ updatedAt: string;
36
+ deletedAt: string;
38
37
  };
39
38
  isExpired: boolean;
40
39
  usagePercentage: number;
@@ -75,19 +74,18 @@ export declare function useGetDiscountCode(codeId: string, options?: Omit<UseQue
75
74
  updatedAt: string;
76
75
  deletedAt: string;
77
76
  brand: {
78
- createdAt: string;
79
- updatedAt: string;
80
- deletedAt: string;
81
77
  id: string;
82
78
  name: string;
83
79
  slug: string;
84
- logoUrl: string | null;
80
+ logoUrl: string;
85
81
  siteUrl: string;
86
82
  domain: string;
87
- metaPixelId: string | null;
88
- tiktokPixelId: string | null;
89
- paystackPublicKey: string | null;
90
- paystackSecretKey: string | null;
83
+ metaPixelId: string;
84
+ tiktokPixelId: string;
85
+ paystackPublicKey: string;
86
+ createdAt: string;
87
+ updatedAt: string;
88
+ deletedAt: string;
91
89
  };
92
90
  isExpired: boolean;
93
91
  usagePercentage: number;
@@ -127,19 +125,18 @@ export declare function useCreateDiscountCode(options?: UseMutationOptions<Await
127
125
  updatedAt: string;
128
126
  deletedAt: string;
129
127
  brand: {
130
- createdAt: string;
131
- updatedAt: string;
132
- deletedAt: string;
133
128
  id: string;
134
129
  name: string;
135
130
  slug: string;
136
- logoUrl: string | null;
131
+ logoUrl: string;
137
132
  siteUrl: string;
138
133
  domain: string;
139
- metaPixelId: string | null;
140
- tiktokPixelId: string | null;
141
- paystackPublicKey: string | null;
142
- paystackSecretKey: string | null;
134
+ metaPixelId: string;
135
+ tiktokPixelId: string;
136
+ paystackPublicKey: string;
137
+ createdAt: string;
138
+ updatedAt: string;
139
+ deletedAt: string;
143
140
  };
144
141
  isExpired: boolean;
145
142
  usagePercentage: number;
@@ -174,19 +171,18 @@ export declare function useUpdateDiscountCode(codeId: string, options?: UseMutat
174
171
  updatedAt: string;
175
172
  deletedAt: string;
176
173
  brand: {
177
- createdAt: string;
178
- updatedAt: string;
179
- deletedAt: string;
180
174
  id: string;
181
175
  name: string;
182
176
  slug: string;
183
- logoUrl: string | null;
177
+ logoUrl: string;
184
178
  siteUrl: string;
185
179
  domain: string;
186
- metaPixelId: string | null;
187
- tiktokPixelId: string | null;
188
- paystackPublicKey: string | null;
189
- paystackSecretKey: string | null;
180
+ metaPixelId: string;
181
+ tiktokPixelId: string;
182
+ paystackPublicKey: string;
183
+ createdAt: string;
184
+ updatedAt: string;
185
+ deletedAt: string;
190
186
  };
191
187
  isExpired: boolean;
192
188
  usagePercentage: number;
@@ -256,19 +252,18 @@ export declare function useGetDiscountCodeAnalytics(codeId: string, options?: Om
256
252
  updatedAt: string;
257
253
  deletedAt: string;
258
254
  brand: {
259
- createdAt: string;
260
- updatedAt: string;
261
- deletedAt: string;
262
255
  id: string;
263
256
  name: string;
264
257
  slug: string;
265
- logoUrl: string | null;
258
+ logoUrl: string;
266
259
  siteUrl: string;
267
260
  domain: string;
268
- metaPixelId: string | null;
269
- tiktokPixelId: string | null;
270
- paystackPublicKey: string | null;
271
- paystackSecretKey: string | null;
261
+ metaPixelId: string;
262
+ tiktokPixelId: string;
263
+ paystackPublicKey: string;
264
+ createdAt: string;
265
+ updatedAt: string;
266
+ deletedAt: string;
272
267
  };
273
268
  isExpired: boolean;
274
269
  id: string;
@@ -155,19 +155,18 @@ export declare function useListProducts(brandId?: string, options?: Omit<UseQuer
155
155
  };
156
156
  };
157
157
  brand: {
158
- createdAt: string;
159
- updatedAt: string;
160
- deletedAt: string;
161
158
  id: string;
162
159
  name: string;
163
160
  slug: string;
164
- logoUrl: string | null;
161
+ logoUrl: string;
165
162
  siteUrl: string;
166
163
  domain: string;
167
- metaPixelId: string | null;
168
- tiktokPixelId: string | null;
169
- paystackPublicKey: string | null;
170
- paystackSecretKey: string | null;
164
+ metaPixelId: string;
165
+ tiktokPixelId: string;
166
+ paystackPublicKey: string;
167
+ createdAt: string;
168
+ updatedAt: string;
169
+ deletedAt: string;
171
170
  };
172
171
  variants: {
173
172
  createdAt: string;
@@ -633,19 +632,18 @@ export declare function useGetProduct(productId: string, options?: Omit<UseQuery
633
632
  };
634
633
  };
635
634
  brand: {
636
- createdAt: string;
637
- updatedAt: string;
638
- deletedAt: string;
639
635
  id: string;
640
636
  name: string;
641
637
  slug: string;
642
- logoUrl: string | null;
638
+ logoUrl: string;
643
639
  siteUrl: string;
644
640
  domain: string;
645
- metaPixelId: string | null;
646
- tiktokPixelId: string | null;
647
- paystackPublicKey: string | null;
648
- paystackSecretKey: string | null;
641
+ metaPixelId: string;
642
+ tiktokPixelId: string;
643
+ paystackPublicKey: string;
644
+ createdAt: string;
645
+ updatedAt: string;
646
+ deletedAt: string;
649
647
  };
650
648
  variants: {
651
649
  createdAt: string;
@@ -5,7 +5,7 @@
5
5
  * providing end-to-end type safety without code generation.
6
6
  */
7
7
  import { UseQueryOptions, UseMutationOptions } from '@tanstack/react-query';
8
- import { fetchCart, updateCart, createCart, addCartItem, updateCartItem, removeCartItem, applyDiscount, removeDiscount, checkoutCart, fetchCartRecommendations } from '../../fetchers/carts';
8
+ import { fetchCart, updateCart, createCart, addCartItem, updateCartItem, removeCartItem, applyDiscount, removeDiscount, checkoutCart, initiateCheckout, fetchCartRecommendations } from '../../fetchers/carts';
9
9
  /**
10
10
  * Hook to get cart by ID using RPC
11
11
  *
@@ -5068,6 +5068,28 @@ export declare function useCheckoutCart(cartId: string, options?: UseMutationOpt
5068
5068
  ttp?: string;
5069
5069
  ttclid?: string;
5070
5070
  }, unknown>;
5071
+ /**
5072
+ * Hook to initiate checkout tracking using RPC
5073
+ *
5074
+ * @param cartId - Cart UUID
5075
+ * @param options - React Query mutation options
5076
+ *
5077
+ * @example
5078
+ * ```tsx
5079
+ * const initiateCheckout = useInitiateCheckout('cart-123');
5080
+ * initiateCheckout.mutate({ email: 'user@example.com' });
5081
+ * ```
5082
+ */
5083
+ export declare function useInitiateCheckout(cartId: string, options?: UseMutationOptions<Awaited<ReturnType<typeof initiateCheckout>>, Error, Parameters<typeof initiateCheckout>[1]>): import("@tanstack/react-query").UseMutationResult<{
5084
+ success: true;
5085
+ }, Error, {
5086
+ email?: string | null;
5087
+ phone?: string | null;
5088
+ fbc?: string;
5089
+ fbp?: string;
5090
+ ttp?: string;
5091
+ ttclid?: string;
5092
+ }, unknown>;
5071
5093
  /**
5072
5094
  * Hook to get recommended products for a cart using RPC
5073
5095
  *
@@ -5233,19 +5255,18 @@ export declare function useGetCartRecommendations(cartId: string | null | undefi
5233
5255
  };
5234
5256
  };
5235
5257
  brand: {
5236
- createdAt: string;
5237
- updatedAt: string;
5238
- deletedAt: string;
5239
5258
  id: string;
5240
5259
  name: string;
5241
5260
  slug: string;
5242
- logoUrl: string | null;
5261
+ logoUrl: string;
5243
5262
  siteUrl: string;
5244
5263
  domain: string;
5245
- metaPixelId: string | null;
5246
- tiktokPixelId: string | null;
5247
- paystackPublicKey: string | null;
5248
- paystackSecretKey: string | null;
5264
+ metaPixelId: string;
5265
+ tiktokPixelId: string;
5266
+ paystackPublicKey: string;
5267
+ createdAt: string;
5268
+ updatedAt: string;
5269
+ deletedAt: string;
5249
5270
  };
5250
5271
  variants: {
5251
5272
  createdAt: string;
@@ -7,7 +7,7 @@
7
7
  import { useMutation, useQueryClient } from '@tanstack/react-query';
8
8
  import { useQueryUnwrapped } from '../use-query-unwrapped';
9
9
  import { queryKeys } from '../../utils/query-keys';
10
- import { fetchCart, updateCart, createCart, addCartItem, updateCartItem, removeCartItem, applyDiscount, removeDiscount, checkoutCart, fetchCartRecommendations, } from '../../fetchers/carts';
10
+ import { fetchCart, updateCart, createCart, addCartItem, updateCartItem, removeCartItem, applyDiscount, removeDiscount, checkoutCart, initiateCheckout, fetchCartRecommendations, } from '../../fetchers/carts';
11
11
  /**
12
12
  * Hook to get cart by ID using RPC
13
13
  *
@@ -217,6 +217,24 @@ export function useCheckoutCart(cartId, options) {
217
217
  ...options,
218
218
  });
219
219
  }
220
+ /**
221
+ * Hook to initiate checkout tracking using RPC
222
+ *
223
+ * @param cartId - Cart UUID
224
+ * @param options - React Query mutation options
225
+ *
226
+ * @example
227
+ * ```tsx
228
+ * const initiateCheckout = useInitiateCheckout('cart-123');
229
+ * initiateCheckout.mutate({ email: 'user@example.com' });
230
+ * ```
231
+ */
232
+ export function useInitiateCheckout(cartId, options) {
233
+ return useMutation({
234
+ mutationFn: (data) => initiateCheckout(cartId, data),
235
+ ...options,
236
+ });
237
+ }
220
238
  /**
221
239
  * Hook to get recommended products for a cart using RPC
222
240
  *
@@ -4,7 +4,7 @@
4
4
  * Export all RPC hooks for use in applications
5
5
  */
6
6
  export * from './carts';
7
- export * from './orders';
7
+ export * from './brands';
8
8
  export * from './products';
9
+ export * from './orders';
9
10
  export * from './delivery-zones';
10
- export * from './brands';
@@ -4,7 +4,7 @@
4
4
  * Export all RPC hooks for use in applications
5
5
  */
6
6
  export * from './carts';
7
- export * from './orders';
7
+ export * from './brands';
8
8
  export * from './products';
9
+ export * from './orders';
9
10
  export * from './delivery-zones';
10
- export * from './brands';
@@ -1317,19 +1317,18 @@ export declare function useGetOrderRecommendations(orderId: string | null | unde
1317
1317
  };
1318
1318
  };
1319
1319
  brand: {
1320
- createdAt: string;
1321
- updatedAt: string;
1322
- deletedAt: string;
1323
1320
  id: string;
1324
1321
  name: string;
1325
1322
  slug: string;
1326
- logoUrl: string | null;
1323
+ logoUrl: string;
1327
1324
  siteUrl: string;
1328
1325
  domain: string;
1329
- metaPixelId: string | null;
1330
- tiktokPixelId: string | null;
1331
- paystackPublicKey: string | null;
1332
- paystackSecretKey: string | null;
1326
+ metaPixelId: string;
1327
+ tiktokPixelId: string;
1328
+ paystackPublicKey: string;
1329
+ createdAt: string;
1330
+ updatedAt: string;
1331
+ deletedAt: string;
1333
1332
  };
1334
1333
  variants: {
1335
1334
  createdAt: string;
@@ -170,19 +170,18 @@ export declare function useGetProducts(brandId: string, options?: Omit<UseQueryO
170
170
  };
171
171
  };
172
172
  brand: {
173
- createdAt: string;
174
- updatedAt: string;
175
- deletedAt: string;
176
173
  id: string;
177
174
  name: string;
178
175
  slug: string;
179
- logoUrl: string | null;
176
+ logoUrl: string;
180
177
  siteUrl: string;
181
178
  domain: string;
182
- metaPixelId: string | null;
183
- tiktokPixelId: string | null;
184
- paystackPublicKey: string | null;
185
- paystackSecretKey: string | null;
179
+ metaPixelId: string;
180
+ tiktokPixelId: string;
181
+ paystackPublicKey: string;
182
+ createdAt: string;
183
+ updatedAt: string;
184
+ deletedAt: string;
186
185
  };
187
186
  variants: {
188
187
  createdAt: string;
@@ -660,19 +659,18 @@ export declare function useGetProduct(slug: string, options?: Omit<UseQueryOptio
660
659
  };
661
660
  };
662
661
  brand: {
663
- createdAt: string;
664
- updatedAt: string;
665
- deletedAt: string;
666
662
  id: string;
667
663
  name: string;
668
664
  slug: string;
669
- logoUrl: string | null;
665
+ logoUrl: string;
670
666
  siteUrl: string;
671
667
  domain: string;
672
- metaPixelId: string | null;
673
- tiktokPixelId: string | null;
674
- paystackPublicKey: string | null;
675
- paystackSecretKey: string | null;
668
+ metaPixelId: string;
669
+ tiktokPixelId: string;
670
+ paystackPublicKey: string;
671
+ createdAt: string;
672
+ updatedAt: string;
673
+ deletedAt: string;
676
674
  };
677
675
  variants: {
678
676
  createdAt: string;
@@ -4696,6 +4696,51 @@ export declare function createRpcClients(baseURL: string): {
4696
4696
  }>;
4697
4697
  };
4698
4698
  };
4699
+ } & {
4700
+ ":id": {
4701
+ "initiate-checkout": import("hono/client").ClientRequest<{
4702
+ $post: {
4703
+ input: {
4704
+ param: {
4705
+ id: string;
4706
+ };
4707
+ };
4708
+ output: {
4709
+ error: {
4710
+ code: string;
4711
+ message: string;
4712
+ };
4713
+ };
4714
+ outputFormat: "json";
4715
+ status: 404;
4716
+ } | {
4717
+ input: {
4718
+ param: {
4719
+ id: string;
4720
+ };
4721
+ };
4722
+ output: {
4723
+ success: true;
4724
+ };
4725
+ outputFormat: "json";
4726
+ status: 200;
4727
+ } | {
4728
+ input: {
4729
+ param: {
4730
+ id: string;
4731
+ };
4732
+ };
4733
+ output: {
4734
+ error: {
4735
+ code: string;
4736
+ message: any;
4737
+ };
4738
+ };
4739
+ outputFormat: "json";
4740
+ status: 500;
4741
+ };
4742
+ }>;
4743
+ };
4699
4744
  } & {
4700
4745
  ":id": {
4701
4746
  checkout: import("hono/client").ClientRequest<{
@@ -6059,19 +6104,18 @@ export declare function createRpcClients(baseURL: string): {
6059
6104
  };
6060
6105
  };
6061
6106
  brand: {
6062
- createdAt: string;
6063
- updatedAt: string;
6064
- deletedAt: string;
6065
6107
  id: string;
6066
6108
  name: string;
6067
6109
  slug: string;
6068
- logoUrl: string | null;
6110
+ logoUrl: string;
6069
6111
  siteUrl: string;
6070
6112
  domain: string;
6071
- metaPixelId: string | null;
6072
- tiktokPixelId: string | null;
6073
- paystackPublicKey: string | null;
6074
- paystackSecretKey: string | null;
6113
+ metaPixelId: string;
6114
+ tiktokPixelId: string;
6115
+ paystackPublicKey: string;
6116
+ createdAt: string;
6117
+ updatedAt: string;
6118
+ deletedAt: string;
6075
6119
  };
6076
6120
  variants: {
6077
6121
  createdAt: string;
@@ -7797,19 +7841,18 @@ export declare function createRpcClients(baseURL: string): {
7797
7841
  };
7798
7842
  };
7799
7843
  brand: {
7800
- createdAt: string;
7801
- updatedAt: string;
7802
- deletedAt: string;
7803
7844
  id: string;
7804
7845
  name: string;
7805
7846
  slug: string;
7806
- logoUrl: string | null;
7847
+ logoUrl: string;
7807
7848
  siteUrl: string;
7808
7849
  domain: string;
7809
- metaPixelId: string | null;
7810
- tiktokPixelId: string | null;
7811
- paystackPublicKey: string | null;
7812
- paystackSecretKey: string | null;
7850
+ metaPixelId: string;
7851
+ tiktokPixelId: string;
7852
+ paystackPublicKey: string;
7853
+ createdAt: string;
7854
+ updatedAt: string;
7855
+ deletedAt: string;
7813
7856
  };
7814
7857
  variants: {
7815
7858
  createdAt: string;
@@ -8321,19 +8364,18 @@ export declare function createRpcClients(baseURL: string): {
8321
8364
  };
8322
8365
  };
8323
8366
  brand: {
8324
- createdAt: string;
8325
- updatedAt: string;
8326
- deletedAt: string;
8327
8367
  id: string;
8328
8368
  name: string;
8329
8369
  slug: string;
8330
- logoUrl: string | null;
8370
+ logoUrl: string;
8331
8371
  siteUrl: string;
8332
8372
  domain: string;
8333
- metaPixelId: string | null;
8334
- tiktokPixelId: string | null;
8335
- paystackPublicKey: string | null;
8336
- paystackSecretKey: string | null;
8373
+ metaPixelId: string;
8374
+ tiktokPixelId: string;
8375
+ paystackPublicKey: string;
8376
+ createdAt: string;
8377
+ updatedAt: string;
8378
+ deletedAt: string;
8337
8379
  };
8338
8380
  variants: {
8339
8381
  createdAt: string;
@@ -8826,19 +8868,18 @@ export declare function createRpcClients(baseURL: string): {
8826
8868
  };
8827
8869
  };
8828
8870
  brand: {
8829
- createdAt: string;
8830
- updatedAt: string;
8831
- deletedAt: string;
8832
8871
  id: string;
8833
8872
  name: string;
8834
8873
  slug: string;
8835
- logoUrl: string | null;
8874
+ logoUrl: string;
8836
8875
  siteUrl: string;
8837
8876
  domain: string;
8838
- metaPixelId: string | null;
8839
- tiktokPixelId: string | null;
8840
- paystackPublicKey: string | null;
8841
- paystackSecretKey: string | null;
8877
+ metaPixelId: string;
8878
+ tiktokPixelId: string;
8879
+ paystackPublicKey: string;
8880
+ createdAt: string;
8881
+ updatedAt: string;
8882
+ deletedAt: string;
8842
8883
  };
8843
8884
  variants: {
8844
8885
  createdAt: string;
@@ -13523,19 +13564,18 @@ export declare function createAdminRpcClients(baseURL: string): {
13523
13564
  };
13524
13565
  };
13525
13566
  brand: {
13526
- createdAt: string;
13527
- updatedAt: string;
13528
- deletedAt: string;
13529
13567
  id: string;
13530
13568
  name: string;
13531
13569
  slug: string;
13532
- logoUrl: string | null;
13570
+ logoUrl: string;
13533
13571
  siteUrl: string;
13534
13572
  domain: string;
13535
- metaPixelId: string | null;
13536
- tiktokPixelId: string | null;
13537
- paystackPublicKey: string | null;
13538
- paystackSecretKey: string | null;
13573
+ metaPixelId: string;
13574
+ tiktokPixelId: string;
13575
+ paystackPublicKey: string;
13576
+ createdAt: string;
13577
+ updatedAt: string;
13578
+ deletedAt: string;
13539
13579
  };
13540
13580
  variants: {
13541
13581
  createdAt: string;
@@ -14017,19 +14057,18 @@ export declare function createAdminRpcClients(baseURL: string): {
14017
14057
  };
14018
14058
  };
14019
14059
  brand: {
14020
- createdAt: string;
14021
- updatedAt: string;
14022
- deletedAt: string;
14023
14060
  id: string;
14024
14061
  name: string;
14025
14062
  slug: string;
14026
- logoUrl: string | null;
14063
+ logoUrl: string;
14027
14064
  siteUrl: string;
14028
14065
  domain: string;
14029
- metaPixelId: string | null;
14030
- tiktokPixelId: string | null;
14031
- paystackPublicKey: string | null;
14032
- paystackSecretKey: string | null;
14066
+ metaPixelId: string;
14067
+ tiktokPixelId: string;
14068
+ paystackPublicKey: string;
14069
+ createdAt: string;
14070
+ updatedAt: string;
14071
+ deletedAt: string;
14033
14072
  };
14034
14073
  variants: {
14035
14074
  createdAt: string;
@@ -14532,19 +14571,18 @@ export declare function createAdminRpcClients(baseURL: string): {
14532
14571
  };
14533
14572
  };
14534
14573
  brand: {
14535
- createdAt: string;
14536
- updatedAt: string;
14537
- deletedAt: string;
14538
14574
  id: string;
14539
14575
  name: string;
14540
14576
  slug: string;
14541
- logoUrl: string | null;
14577
+ logoUrl: string;
14542
14578
  siteUrl: string;
14543
14579
  domain: string;
14544
- metaPixelId: string | null;
14545
- tiktokPixelId: string | null;
14546
- paystackPublicKey: string | null;
14547
- paystackSecretKey: string | null;
14580
+ metaPixelId: string;
14581
+ tiktokPixelId: string;
14582
+ paystackPublicKey: string;
14583
+ createdAt: string;
14584
+ updatedAt: string;
14585
+ deletedAt: string;
14548
14586
  };
14549
14587
  variants: {
14550
14588
  createdAt: string;
@@ -15034,19 +15072,18 @@ export declare function createAdminRpcClients(baseURL: string): {
15034
15072
  };
15035
15073
  };
15036
15074
  brand: {
15037
- createdAt: string;
15038
- updatedAt: string;
15039
- deletedAt: string;
15040
15075
  id: string;
15041
15076
  name: string;
15042
15077
  slug: string;
15043
- logoUrl: string | null;
15078
+ logoUrl: string;
15044
15079
  siteUrl: string;
15045
15080
  domain: string;
15046
- metaPixelId: string | null;
15047
- tiktokPixelId: string | null;
15048
- paystackPublicKey: string | null;
15049
- paystackSecretKey: string | null;
15081
+ metaPixelId: string;
15082
+ tiktokPixelId: string;
15083
+ paystackPublicKey: string;
15084
+ createdAt: string;
15085
+ updatedAt: string;
15086
+ deletedAt: string;
15050
15087
  };
15051
15088
  variants: {
15052
15089
  createdAt: string;
@@ -18981,19 +19018,18 @@ export declare function createAdminRpcClients(baseURL: string): {
18981
19018
  updatedAt: string;
18982
19019
  deletedAt: string;
18983
19020
  brand: {
18984
- createdAt: string;
18985
- updatedAt: string;
18986
- deletedAt: string;
18987
19021
  id: string;
18988
19022
  name: string;
18989
19023
  slug: string;
18990
- logoUrl: string | null;
19024
+ logoUrl: string;
18991
19025
  siteUrl: string;
18992
19026
  domain: string;
18993
- metaPixelId: string | null;
18994
- tiktokPixelId: string | null;
18995
- paystackPublicKey: string | null;
18996
- paystackSecretKey: string | null;
19027
+ metaPixelId: string;
19028
+ tiktokPixelId: string;
19029
+ paystackPublicKey: string;
19030
+ createdAt: string;
19031
+ updatedAt: string;
19032
+ deletedAt: string;
18997
19033
  };
18998
19034
  isExpired: boolean;
18999
19035
  usagePercentage: number;
@@ -19063,19 +19099,18 @@ export declare function createAdminRpcClients(baseURL: string): {
19063
19099
  updatedAt: string;
19064
19100
  deletedAt: string;
19065
19101
  brand: {
19066
- createdAt: string;
19067
- updatedAt: string;
19068
- deletedAt: string;
19069
19102
  id: string;
19070
19103
  name: string;
19071
19104
  slug: string;
19072
- logoUrl: string | null;
19105
+ logoUrl: string;
19073
19106
  siteUrl: string;
19074
19107
  domain: string;
19075
- metaPixelId: string | null;
19076
- tiktokPixelId: string | null;
19077
- paystackPublicKey: string | null;
19078
- paystackSecretKey: string | null;
19108
+ metaPixelId: string;
19109
+ tiktokPixelId: string;
19110
+ paystackPublicKey: string;
19111
+ createdAt: string;
19112
+ updatedAt: string;
19113
+ deletedAt: string;
19079
19114
  };
19080
19115
  isExpired: boolean;
19081
19116
  usagePercentage: number;
@@ -19142,19 +19177,18 @@ export declare function createAdminRpcClients(baseURL: string): {
19142
19177
  updatedAt: string;
19143
19178
  deletedAt: string;
19144
19179
  brand: {
19145
- createdAt: string;
19146
- updatedAt: string;
19147
- deletedAt: string;
19148
19180
  id: string;
19149
19181
  name: string;
19150
19182
  slug: string;
19151
- logoUrl: string | null;
19183
+ logoUrl: string;
19152
19184
  siteUrl: string;
19153
19185
  domain: string;
19154
- metaPixelId: string | null;
19155
- tiktokPixelId: string | null;
19156
- paystackPublicKey: string | null;
19157
- paystackSecretKey: string | null;
19186
+ metaPixelId: string;
19187
+ tiktokPixelId: string;
19188
+ paystackPublicKey: string;
19189
+ createdAt: string;
19190
+ updatedAt: string;
19191
+ deletedAt: string;
19158
19192
  };
19159
19193
  isExpired: boolean;
19160
19194
  usagePercentage: number;
@@ -19233,19 +19267,18 @@ export declare function createAdminRpcClients(baseURL: string): {
19233
19267
  updatedAt: string;
19234
19268
  deletedAt: string;
19235
19269
  brand: {
19236
- createdAt: string;
19237
- updatedAt: string;
19238
- deletedAt: string;
19239
19270
  id: string;
19240
19271
  name: string;
19241
19272
  slug: string;
19242
- logoUrl: string | null;
19273
+ logoUrl: string;
19243
19274
  siteUrl: string;
19244
19275
  domain: string;
19245
- metaPixelId: string | null;
19246
- tiktokPixelId: string | null;
19247
- paystackPublicKey: string | null;
19248
- paystackSecretKey: string | null;
19276
+ metaPixelId: string;
19277
+ tiktokPixelId: string;
19278
+ paystackPublicKey: string;
19279
+ createdAt: string;
19280
+ updatedAt: string;
19281
+ deletedAt: string;
19249
19282
  };
19250
19283
  isExpired: boolean;
19251
19284
  usagePercentage: number;
@@ -19354,19 +19387,18 @@ export declare function createAdminRpcClients(baseURL: string): {
19354
19387
  updatedAt: string;
19355
19388
  deletedAt: string;
19356
19389
  brand: {
19357
- createdAt: string;
19358
- updatedAt: string;
19359
- deletedAt: string;
19360
19390
  id: string;
19361
19391
  name: string;
19362
19392
  slug: string;
19363
- logoUrl: string | null;
19393
+ logoUrl: string;
19364
19394
  siteUrl: string;
19365
19395
  domain: string;
19366
- metaPixelId: string | null;
19367
- tiktokPixelId: string | null;
19368
- paystackPublicKey: string | null;
19369
- paystackSecretKey: string | null;
19396
+ metaPixelId: string;
19397
+ tiktokPixelId: string;
19398
+ paystackPublicKey: string;
19399
+ createdAt: string;
19400
+ updatedAt: string;
19401
+ deletedAt: string;
19370
19402
  };
19371
19403
  isExpired: boolean;
19372
19404
  id: string;
@@ -19469,19 +19501,18 @@ export declare function createAdminRpcClients(baseURL: string): {
19469
19501
  updatedAt: string;
19470
19502
  deletedAt: string;
19471
19503
  brand: {
19472
- createdAt: string;
19473
- updatedAt: string;
19474
- deletedAt: string;
19475
19504
  id: string;
19476
19505
  name: string;
19477
19506
  slug: string;
19478
- logoUrl: string | null;
19507
+ logoUrl: string;
19479
19508
  siteUrl: string;
19480
19509
  domain: string;
19481
- metaPixelId: string | null;
19482
- tiktokPixelId: string | null;
19483
- paystackPublicKey: string | null;
19484
- paystackSecretKey: string | null;
19510
+ metaPixelId: string;
19511
+ tiktokPixelId: string;
19512
+ paystackPublicKey: string;
19513
+ createdAt: string;
19514
+ updatedAt: string;
19515
+ deletedAt: string;
19485
19516
  };
19486
19517
  stateName: string;
19487
19518
  brandName: string;
@@ -19660,19 +19691,18 @@ export declare function createAdminRpcClients(baseURL: string): {
19660
19691
  updatedAt: string;
19661
19692
  deletedAt: string;
19662
19693
  brand: {
19663
- createdAt: string;
19664
- updatedAt: string;
19665
- deletedAt: string;
19666
19694
  id: string;
19667
19695
  name: string;
19668
19696
  slug: string;
19669
- logoUrl: string | null;
19697
+ logoUrl: string;
19670
19698
  siteUrl: string;
19671
19699
  domain: string;
19672
- metaPixelId: string | null;
19673
- tiktokPixelId: string | null;
19674
- paystackPublicKey: string | null;
19675
- paystackSecretKey: string | null;
19700
+ metaPixelId: string;
19701
+ tiktokPixelId: string;
19702
+ paystackPublicKey: string;
19703
+ createdAt: string;
19704
+ updatedAt: string;
19705
+ deletedAt: string;
19676
19706
  };
19677
19707
  stateName: string;
19678
19708
  brandName: string;
@@ -19739,19 +19769,18 @@ export declare function createAdminRpcClients(baseURL: string): {
19739
19769
  updatedAt: string;
19740
19770
  deletedAt: string;
19741
19771
  brand: {
19742
- createdAt: string;
19743
- updatedAt: string;
19744
- deletedAt: string;
19745
19772
  id: string;
19746
19773
  name: string;
19747
19774
  slug: string;
19748
- logoUrl: string | null;
19775
+ logoUrl: string;
19749
19776
  siteUrl: string;
19750
19777
  domain: string;
19751
- metaPixelId: string | null;
19752
- tiktokPixelId: string | null;
19753
- paystackPublicKey: string | null;
19754
- paystackSecretKey: string | null;
19778
+ metaPixelId: string;
19779
+ tiktokPixelId: string;
19780
+ paystackPublicKey: string;
19781
+ createdAt: string;
19782
+ updatedAt: string;
19783
+ deletedAt: string;
19755
19784
  };
19756
19785
  stateName: string;
19757
19786
  brandName: string;
@@ -19833,19 +19862,18 @@ export declare function createAdminRpcClients(baseURL: string): {
19833
19862
  updatedAt: string;
19834
19863
  deletedAt: string;
19835
19864
  brand: {
19836
- createdAt: string;
19837
- updatedAt: string;
19838
- deletedAt: string;
19839
19865
  id: string;
19840
19866
  name: string;
19841
19867
  slug: string;
19842
- logoUrl: string | null;
19868
+ logoUrl: string;
19843
19869
  siteUrl: string;
19844
19870
  domain: string;
19845
- metaPixelId: string | null;
19846
- tiktokPixelId: string | null;
19847
- paystackPublicKey: string | null;
19848
- paystackSecretKey: string | null;
19871
+ metaPixelId: string;
19872
+ tiktokPixelId: string;
19873
+ paystackPublicKey: string;
19874
+ createdAt: string;
19875
+ updatedAt: string;
19876
+ deletedAt: string;
19849
19877
  };
19850
19878
  stateName: string;
19851
19879
  brandName: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instockng/api-client",
3
- "version": "1.0.26",
3
+ "version": "1.0.28",
4
4
  "description": "React Query hooks for OMS API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",