@instockng/api-client 1.0.27 → 1.0.29

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.
@@ -5167,19 +5167,18 @@ export declare function fetchCartRecommendations(cartId: string, limit: number):
5167
5167
  };
5168
5168
  };
5169
5169
  brand: {
5170
- createdAt: string;
5171
- updatedAt: string;
5172
- deletedAt: string;
5173
5170
  id: string;
5174
5171
  name: string;
5175
5172
  slug: string;
5176
- logoUrl: string | null;
5173
+ logoUrl: string;
5177
5174
  siteUrl: string;
5178
5175
  domain: string;
5179
- metaPixelId: string | null;
5180
- tiktokPixelId: string | null;
5181
- paystackPublicKey: string | null;
5182
- paystackSecretKey: string | null;
5176
+ metaPixelId: string;
5177
+ tiktokPixelId: string;
5178
+ paystackPublicKey: string;
5179
+ createdAt: string;
5180
+ updatedAt: string;
5181
+ deletedAt: string;
5183
5182
  };
5184
5183
  variants: {
5185
5184
  createdAt: string;
@@ -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;
@@ -5,12 +5,12 @@
5
5
  * They can also be imported directly in Server Components.
6
6
  */
7
7
  /**
8
- * Fetch products by brand ID
8
+ * Fetch products by brand slug
9
9
  *
10
- * @param brandId - Brand UUID
10
+ * @param brandSlug - Brand slug (e.g., 'toyland')
11
11
  * @returns Products for the brand with variants and availability
12
12
  */
13
- export declare function fetchProductsByBrand(brandId: string): Promise<{
13
+ export declare function fetchProductsByBrand(brandSlug: string): Promise<{
14
14
  id: string;
15
15
  name: string;
16
16
  slug: 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;
@@ -7,15 +7,15 @@
7
7
  import { createRpcClients } from '../rpc-client';
8
8
  const API_URL = 'https://oms-api.instock.com.ng';
9
9
  /**
10
- * Fetch products by brand ID
10
+ * Fetch products by brand slug
11
11
  *
12
- * @param brandId - Brand UUID
12
+ * @param brandSlug - Brand slug (e.g., 'toyland')
13
13
  * @returns Products for the brand with variants and availability
14
14
  */
15
- export async function fetchProductsByBrand(brandId) {
15
+ export async function fetchProductsByBrand(brandSlug) {
16
16
  const clients = createRpcClients(API_URL);
17
- const res = await clients.products[':brandId'].$get({
18
- param: { brandId },
17
+ const res = await clients.products[':brandSlug'].$get({
18
+ param: { brandSlug },
19
19
  });
20
20
  if (!res.ok) {
21
21
  throw new Error(`Failed to fetch products: ${res.statusText}`);
@@ -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;
@@ -5255,19 +5255,18 @@ export declare function useGetCartRecommendations(cartId: string | null | undefi
5255
5255
  };
5256
5256
  };
5257
5257
  brand: {
5258
- createdAt: string;
5259
- updatedAt: string;
5260
- deletedAt: string;
5261
5258
  id: string;
5262
5259
  name: string;
5263
5260
  slug: string;
5264
- logoUrl: string | null;
5261
+ logoUrl: string;
5265
5262
  siteUrl: string;
5266
5263
  domain: string;
5267
- metaPixelId: string | null;
5268
- tiktokPixelId: string | null;
5269
- paystackPublicKey: string | null;
5270
- paystackSecretKey: string | null;
5264
+ metaPixelId: string;
5265
+ tiktokPixelId: string;
5266
+ paystackPublicKey: string;
5267
+ createdAt: string;
5268
+ updatedAt: string;
5269
+ deletedAt: string;
5271
5270
  };
5272
5271
  variants: {
5273
5272
  createdAt: string;
@@ -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;
@@ -7,18 +7,18 @@
7
7
  import { UseQueryOptions } from '@tanstack/react-query';
8
8
  import { fetchProductsByBrand, fetchProductBySlug, fetchProductAddons } from '../../fetchers/products';
9
9
  /**
10
- * Hook to get products by brand using RPC
10
+ * Hook to get products by brand slug using RPC
11
11
  *
12
- * @param brandId - Brand UUID
12
+ * @param brandSlug - Brand slug (e.g., 'toyland')
13
13
  * @param options - React Query options
14
14
  *
15
15
  * @example
16
16
  * ```tsx
17
- * const { data: products, isLoading } = useGetProducts('brand-123');
17
+ * const { data: products, isLoading } = useGetProducts('toyland');
18
18
  * console.log(products?.data[0].name); // Fully typed!
19
19
  * ```
20
20
  */
21
- export declare function useGetProducts(brandId: string, options?: Omit<UseQueryOptions<Awaited<ReturnType<typeof fetchProductsByBrand>>, Error>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<{
21
+ export declare function useGetProducts(brandSlug: string, options?: Omit<UseQueryOptions<Awaited<ReturnType<typeof fetchProductsByBrand>>, Error>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<{
22
22
  id: string;
23
23
  name: string;
24
24
  slug: 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;
@@ -8,21 +8,21 @@ import { useQueryUnwrapped } from '../use-query-unwrapped';
8
8
  import { queryKeys } from '../../utils/query-keys';
9
9
  import { fetchProductsByBrand, fetchProductBySlug, fetchProductAddons } from '../../fetchers/products';
10
10
  /**
11
- * Hook to get products by brand using RPC
11
+ * Hook to get products by brand slug using RPC
12
12
  *
13
- * @param brandId - Brand UUID
13
+ * @param brandSlug - Brand slug (e.g., 'toyland')
14
14
  * @param options - React Query options
15
15
  *
16
16
  * @example
17
17
  * ```tsx
18
- * const { data: products, isLoading } = useGetProducts('brand-123');
18
+ * const { data: products, isLoading } = useGetProducts('toyland');
19
19
  * console.log(products?.data[0].name); // Fully typed!
20
20
  * ```
21
21
  */
22
- export function useGetProducts(brandId, options) {
22
+ export function useGetProducts(brandSlug, options) {
23
23
  return useQueryUnwrapped({
24
- queryKey: queryKeys.public.products.list(brandId),
25
- queryFn: () => fetchProductsByBrand(brandId),
24
+ queryKey: queryKeys.public.products.list(brandSlug),
25
+ queryFn: () => fetchProductsByBrand(brandSlug),
26
26
  ...options,
27
27
  });
28
28
  }
@@ -6104,19 +6104,18 @@ export declare function createRpcClients(baseURL: string): {
6104
6104
  };
6105
6105
  };
6106
6106
  brand: {
6107
- createdAt: string;
6108
- updatedAt: string;
6109
- deletedAt: string;
6110
6107
  id: string;
6111
6108
  name: string;
6112
6109
  slug: string;
6113
- logoUrl: string | null;
6110
+ logoUrl: string;
6114
6111
  siteUrl: string;
6115
6112
  domain: string;
6116
- metaPixelId: string | null;
6117
- tiktokPixelId: string | null;
6118
- paystackPublicKey: string | null;
6119
- paystackSecretKey: string | null;
6113
+ metaPixelId: string;
6114
+ tiktokPixelId: string;
6115
+ paystackPublicKey: string;
6116
+ createdAt: string;
6117
+ updatedAt: string;
6118
+ deletedAt: string;
6120
6119
  };
6121
6120
  variants: {
6122
6121
  createdAt: string;
@@ -7842,19 +7841,18 @@ export declare function createRpcClients(baseURL: string): {
7842
7841
  };
7843
7842
  };
7844
7843
  brand: {
7845
- createdAt: string;
7846
- updatedAt: string;
7847
- deletedAt: string;
7848
7844
  id: string;
7849
7845
  name: string;
7850
7846
  slug: string;
7851
- logoUrl: string | null;
7847
+ logoUrl: string;
7852
7848
  siteUrl: string;
7853
7849
  domain: string;
7854
- metaPixelId: string | null;
7855
- tiktokPixelId: string | null;
7856
- paystackPublicKey: string | null;
7857
- paystackSecretKey: string | null;
7850
+ metaPixelId: string;
7851
+ tiktokPixelId: string;
7852
+ paystackPublicKey: string;
7853
+ createdAt: string;
7854
+ updatedAt: string;
7855
+ deletedAt: string;
7858
7856
  };
7859
7857
  variants: {
7860
7858
  createdAt: string;
@@ -8366,19 +8364,18 @@ export declare function createRpcClients(baseURL: string): {
8366
8364
  };
8367
8365
  };
8368
8366
  brand: {
8369
- createdAt: string;
8370
- updatedAt: string;
8371
- deletedAt: string;
8372
8367
  id: string;
8373
8368
  name: string;
8374
8369
  slug: string;
8375
- logoUrl: string | null;
8370
+ logoUrl: string;
8376
8371
  siteUrl: string;
8377
8372
  domain: string;
8378
- metaPixelId: string | null;
8379
- tiktokPixelId: string | null;
8380
- paystackPublicKey: string | null;
8381
- paystackSecretKey: string | null;
8373
+ metaPixelId: string;
8374
+ tiktokPixelId: string;
8375
+ paystackPublicKey: string;
8376
+ createdAt: string;
8377
+ updatedAt: string;
8378
+ deletedAt: string;
8382
8379
  };
8383
8380
  variants: {
8384
8381
  createdAt: string;
@@ -8712,11 +8709,11 @@ export declare function createRpcClients(baseURL: string): {
8712
8709
  }>;
8713
8710
  };
8714
8711
  } & {
8715
- ":brandId": import("hono/client").ClientRequest<{
8712
+ ":brandSlug": import("hono/client").ClientRequest<{
8716
8713
  $get: {
8717
8714
  input: {
8718
8715
  param: {
8719
- brandId: string;
8716
+ brandSlug: string;
8720
8717
  };
8721
8718
  };
8722
8719
  output: {
@@ -8871,19 +8868,18 @@ export declare function createRpcClients(baseURL: string): {
8871
8868
  };
8872
8869
  };
8873
8870
  brand: {
8874
- createdAt: string;
8875
- updatedAt: string;
8876
- deletedAt: string;
8877
8871
  id: string;
8878
8872
  name: string;
8879
8873
  slug: string;
8880
- logoUrl: string | null;
8874
+ logoUrl: string;
8881
8875
  siteUrl: string;
8882
8876
  domain: string;
8883
- metaPixelId: string | null;
8884
- tiktokPixelId: string | null;
8885
- paystackPublicKey: string | null;
8886
- paystackSecretKey: string | null;
8877
+ metaPixelId: string;
8878
+ tiktokPixelId: string;
8879
+ paystackPublicKey: string;
8880
+ createdAt: string;
8881
+ updatedAt: string;
8882
+ deletedAt: string;
8887
8883
  };
8888
8884
  variants: {
8889
8885
  createdAt: string;
@@ -9202,7 +9198,7 @@ export declare function createRpcClients(baseURL: string): {
9202
9198
  } | {
9203
9199
  input: {
9204
9200
  param: {
9205
- brandId: string;
9201
+ brandSlug: string;
9206
9202
  };
9207
9203
  };
9208
9204
  output: {
@@ -9216,7 +9212,7 @@ export declare function createRpcClients(baseURL: string): {
9216
9212
  } | {
9217
9213
  input: {
9218
9214
  param: {
9219
- brandId: string;
9215
+ brandSlug: string;
9220
9216
  };
9221
9217
  };
9222
9218
  output: {
@@ -13568,19 +13564,18 @@ export declare function createAdminRpcClients(baseURL: string): {
13568
13564
  };
13569
13565
  };
13570
13566
  brand: {
13571
- createdAt: string;
13572
- updatedAt: string;
13573
- deletedAt: string;
13574
13567
  id: string;
13575
13568
  name: string;
13576
13569
  slug: string;
13577
- logoUrl: string | null;
13570
+ logoUrl: string;
13578
13571
  siteUrl: string;
13579
13572
  domain: string;
13580
- metaPixelId: string | null;
13581
- tiktokPixelId: string | null;
13582
- paystackPublicKey: string | null;
13583
- paystackSecretKey: string | null;
13573
+ metaPixelId: string;
13574
+ tiktokPixelId: string;
13575
+ paystackPublicKey: string;
13576
+ createdAt: string;
13577
+ updatedAt: string;
13578
+ deletedAt: string;
13584
13579
  };
13585
13580
  variants: {
13586
13581
  createdAt: string;
@@ -14062,19 +14057,18 @@ export declare function createAdminRpcClients(baseURL: string): {
14062
14057
  };
14063
14058
  };
14064
14059
  brand: {
14065
- createdAt: string;
14066
- updatedAt: string;
14067
- deletedAt: string;
14068
14060
  id: string;
14069
14061
  name: string;
14070
14062
  slug: string;
14071
- logoUrl: string | null;
14063
+ logoUrl: string;
14072
14064
  siteUrl: string;
14073
14065
  domain: string;
14074
- metaPixelId: string | null;
14075
- tiktokPixelId: string | null;
14076
- paystackPublicKey: string | null;
14077
- paystackSecretKey: string | null;
14066
+ metaPixelId: string;
14067
+ tiktokPixelId: string;
14068
+ paystackPublicKey: string;
14069
+ createdAt: string;
14070
+ updatedAt: string;
14071
+ deletedAt: string;
14078
14072
  };
14079
14073
  variants: {
14080
14074
  createdAt: string;
@@ -14577,19 +14571,18 @@ export declare function createAdminRpcClients(baseURL: string): {
14577
14571
  };
14578
14572
  };
14579
14573
  brand: {
14580
- createdAt: string;
14581
- updatedAt: string;
14582
- deletedAt: string;
14583
14574
  id: string;
14584
14575
  name: string;
14585
14576
  slug: string;
14586
- logoUrl: string | null;
14577
+ logoUrl: string;
14587
14578
  siteUrl: string;
14588
14579
  domain: string;
14589
- metaPixelId: string | null;
14590
- tiktokPixelId: string | null;
14591
- paystackPublicKey: string | null;
14592
- paystackSecretKey: string | null;
14580
+ metaPixelId: string;
14581
+ tiktokPixelId: string;
14582
+ paystackPublicKey: string;
14583
+ createdAt: string;
14584
+ updatedAt: string;
14585
+ deletedAt: string;
14593
14586
  };
14594
14587
  variants: {
14595
14588
  createdAt: string;
@@ -15079,19 +15072,18 @@ export declare function createAdminRpcClients(baseURL: string): {
15079
15072
  };
15080
15073
  };
15081
15074
  brand: {
15082
- createdAt: string;
15083
- updatedAt: string;
15084
- deletedAt: string;
15085
15075
  id: string;
15086
15076
  name: string;
15087
15077
  slug: string;
15088
- logoUrl: string | null;
15078
+ logoUrl: string;
15089
15079
  siteUrl: string;
15090
15080
  domain: string;
15091
- metaPixelId: string | null;
15092
- tiktokPixelId: string | null;
15093
- paystackPublicKey: string | null;
15094
- paystackSecretKey: string | null;
15081
+ metaPixelId: string;
15082
+ tiktokPixelId: string;
15083
+ paystackPublicKey: string;
15084
+ createdAt: string;
15085
+ updatedAt: string;
15086
+ deletedAt: string;
15095
15087
  };
15096
15088
  variants: {
15097
15089
  createdAt: string;
@@ -19026,19 +19018,18 @@ export declare function createAdminRpcClients(baseURL: string): {
19026
19018
  updatedAt: string;
19027
19019
  deletedAt: string;
19028
19020
  brand: {
19029
- createdAt: string;
19030
- updatedAt: string;
19031
- deletedAt: string;
19032
19021
  id: string;
19033
19022
  name: string;
19034
19023
  slug: string;
19035
- logoUrl: string | null;
19024
+ logoUrl: string;
19036
19025
  siteUrl: string;
19037
19026
  domain: string;
19038
- metaPixelId: string | null;
19039
- tiktokPixelId: string | null;
19040
- paystackPublicKey: string | null;
19041
- paystackSecretKey: string | null;
19027
+ metaPixelId: string;
19028
+ tiktokPixelId: string;
19029
+ paystackPublicKey: string;
19030
+ createdAt: string;
19031
+ updatedAt: string;
19032
+ deletedAt: string;
19042
19033
  };
19043
19034
  isExpired: boolean;
19044
19035
  usagePercentage: number;
@@ -19108,19 +19099,18 @@ export declare function createAdminRpcClients(baseURL: string): {
19108
19099
  updatedAt: string;
19109
19100
  deletedAt: string;
19110
19101
  brand: {
19111
- createdAt: string;
19112
- updatedAt: string;
19113
- deletedAt: string;
19114
19102
  id: string;
19115
19103
  name: string;
19116
19104
  slug: string;
19117
- logoUrl: string | null;
19105
+ logoUrl: string;
19118
19106
  siteUrl: string;
19119
19107
  domain: string;
19120
- metaPixelId: string | null;
19121
- tiktokPixelId: string | null;
19122
- paystackPublicKey: string | null;
19123
- paystackSecretKey: string | null;
19108
+ metaPixelId: string;
19109
+ tiktokPixelId: string;
19110
+ paystackPublicKey: string;
19111
+ createdAt: string;
19112
+ updatedAt: string;
19113
+ deletedAt: string;
19124
19114
  };
19125
19115
  isExpired: boolean;
19126
19116
  usagePercentage: number;
@@ -19187,19 +19177,18 @@ export declare function createAdminRpcClients(baseURL: string): {
19187
19177
  updatedAt: string;
19188
19178
  deletedAt: string;
19189
19179
  brand: {
19190
- createdAt: string;
19191
- updatedAt: string;
19192
- deletedAt: string;
19193
19180
  id: string;
19194
19181
  name: string;
19195
19182
  slug: string;
19196
- logoUrl: string | null;
19183
+ logoUrl: string;
19197
19184
  siteUrl: string;
19198
19185
  domain: string;
19199
- metaPixelId: string | null;
19200
- tiktokPixelId: string | null;
19201
- paystackPublicKey: string | null;
19202
- paystackSecretKey: string | null;
19186
+ metaPixelId: string;
19187
+ tiktokPixelId: string;
19188
+ paystackPublicKey: string;
19189
+ createdAt: string;
19190
+ updatedAt: string;
19191
+ deletedAt: string;
19203
19192
  };
19204
19193
  isExpired: boolean;
19205
19194
  usagePercentage: number;
@@ -19278,19 +19267,18 @@ export declare function createAdminRpcClients(baseURL: string): {
19278
19267
  updatedAt: string;
19279
19268
  deletedAt: string;
19280
19269
  brand: {
19281
- createdAt: string;
19282
- updatedAt: string;
19283
- deletedAt: string;
19284
19270
  id: string;
19285
19271
  name: string;
19286
19272
  slug: string;
19287
- logoUrl: string | null;
19273
+ logoUrl: string;
19288
19274
  siteUrl: string;
19289
19275
  domain: string;
19290
- metaPixelId: string | null;
19291
- tiktokPixelId: string | null;
19292
- paystackPublicKey: string | null;
19293
- paystackSecretKey: string | null;
19276
+ metaPixelId: string;
19277
+ tiktokPixelId: string;
19278
+ paystackPublicKey: string;
19279
+ createdAt: string;
19280
+ updatedAt: string;
19281
+ deletedAt: string;
19294
19282
  };
19295
19283
  isExpired: boolean;
19296
19284
  usagePercentage: number;
@@ -19399,19 +19387,18 @@ export declare function createAdminRpcClients(baseURL: string): {
19399
19387
  updatedAt: string;
19400
19388
  deletedAt: string;
19401
19389
  brand: {
19402
- createdAt: string;
19403
- updatedAt: string;
19404
- deletedAt: string;
19405
19390
  id: string;
19406
19391
  name: string;
19407
19392
  slug: string;
19408
- logoUrl: string | null;
19393
+ logoUrl: string;
19409
19394
  siteUrl: string;
19410
19395
  domain: string;
19411
- metaPixelId: string | null;
19412
- tiktokPixelId: string | null;
19413
- paystackPublicKey: string | null;
19414
- paystackSecretKey: string | null;
19396
+ metaPixelId: string;
19397
+ tiktokPixelId: string;
19398
+ paystackPublicKey: string;
19399
+ createdAt: string;
19400
+ updatedAt: string;
19401
+ deletedAt: string;
19415
19402
  };
19416
19403
  isExpired: boolean;
19417
19404
  id: string;
@@ -19514,19 +19501,18 @@ export declare function createAdminRpcClients(baseURL: string): {
19514
19501
  updatedAt: string;
19515
19502
  deletedAt: string;
19516
19503
  brand: {
19517
- createdAt: string;
19518
- updatedAt: string;
19519
- deletedAt: string;
19520
19504
  id: string;
19521
19505
  name: string;
19522
19506
  slug: string;
19523
- logoUrl: string | null;
19507
+ logoUrl: string;
19524
19508
  siteUrl: string;
19525
19509
  domain: string;
19526
- metaPixelId: string | null;
19527
- tiktokPixelId: string | null;
19528
- paystackPublicKey: string | null;
19529
- paystackSecretKey: string | null;
19510
+ metaPixelId: string;
19511
+ tiktokPixelId: string;
19512
+ paystackPublicKey: string;
19513
+ createdAt: string;
19514
+ updatedAt: string;
19515
+ deletedAt: string;
19530
19516
  };
19531
19517
  stateName: string;
19532
19518
  brandName: string;
@@ -19705,19 +19691,18 @@ export declare function createAdminRpcClients(baseURL: string): {
19705
19691
  updatedAt: string;
19706
19692
  deletedAt: string;
19707
19693
  brand: {
19708
- createdAt: string;
19709
- updatedAt: string;
19710
- deletedAt: string;
19711
19694
  id: string;
19712
19695
  name: string;
19713
19696
  slug: string;
19714
- logoUrl: string | null;
19697
+ logoUrl: string;
19715
19698
  siteUrl: string;
19716
19699
  domain: string;
19717
- metaPixelId: string | null;
19718
- tiktokPixelId: string | null;
19719
- paystackPublicKey: string | null;
19720
- paystackSecretKey: string | null;
19700
+ metaPixelId: string;
19701
+ tiktokPixelId: string;
19702
+ paystackPublicKey: string;
19703
+ createdAt: string;
19704
+ updatedAt: string;
19705
+ deletedAt: string;
19721
19706
  };
19722
19707
  stateName: string;
19723
19708
  brandName: string;
@@ -19784,19 +19769,18 @@ export declare function createAdminRpcClients(baseURL: string): {
19784
19769
  updatedAt: string;
19785
19770
  deletedAt: string;
19786
19771
  brand: {
19787
- createdAt: string;
19788
- updatedAt: string;
19789
- deletedAt: string;
19790
19772
  id: string;
19791
19773
  name: string;
19792
19774
  slug: string;
19793
- logoUrl: string | null;
19775
+ logoUrl: string;
19794
19776
  siteUrl: string;
19795
19777
  domain: string;
19796
- metaPixelId: string | null;
19797
- tiktokPixelId: string | null;
19798
- paystackPublicKey: string | null;
19799
- paystackSecretKey: string | null;
19778
+ metaPixelId: string;
19779
+ tiktokPixelId: string;
19780
+ paystackPublicKey: string;
19781
+ createdAt: string;
19782
+ updatedAt: string;
19783
+ deletedAt: string;
19800
19784
  };
19801
19785
  stateName: string;
19802
19786
  brandName: string;
@@ -19878,19 +19862,18 @@ export declare function createAdminRpcClients(baseURL: string): {
19878
19862
  updatedAt: string;
19879
19863
  deletedAt: string;
19880
19864
  brand: {
19881
- createdAt: string;
19882
- updatedAt: string;
19883
- deletedAt: string;
19884
19865
  id: string;
19885
19866
  name: string;
19886
19867
  slug: string;
19887
- logoUrl: string | null;
19868
+ logoUrl: string;
19888
19869
  siteUrl: string;
19889
19870
  domain: string;
19890
- metaPixelId: string | null;
19891
- tiktokPixelId: string | null;
19892
- paystackPublicKey: string | null;
19893
- paystackSecretKey: string | null;
19871
+ metaPixelId: string;
19872
+ tiktokPixelId: string;
19873
+ paystackPublicKey: string;
19874
+ createdAt: string;
19875
+ updatedAt: string;
19876
+ deletedAt: string;
19894
19877
  };
19895
19878
  stateName: string;
19896
19879
  brandName: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instockng/api-client",
3
- "version": "1.0.27",
3
+ "version": "1.0.29",
4
4
  "description": "React Query hooks for OMS API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",