@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.
- package/dist/apps/backend/src/lib/brand-response.d.ts +2 -0
- package/dist/apps/backend/src/lib/cart-helpers.d.ts +4 -0
- package/dist/apps/backend/src/lib/cart-response.d.ts +2 -0
- package/dist/apps/backend/src/lib/delivery-zone-response.d.ts +2 -0
- package/dist/apps/backend/src/lib/discount-code-response.d.ts +2 -0
- package/dist/apps/backend/src/lib/order-recovery.d.ts +6 -0
- package/dist/apps/backend/src/lib/order-response.d.ts +2 -0
- package/dist/apps/backend/src/lib/product-response.d.ts +2 -0
- package/dist/apps/backend/src/routes/admin/abandoned-carts.d.ts +4 -8
- package/dist/apps/backend/src/routes/admin/brands.d.ts +8 -0
- package/dist/apps/backend/src/routes/admin/customers.d.ts +2 -4
- package/dist/apps/backend/src/routes/admin/delivery-zones.d.ts +8 -0
- package/dist/apps/backend/src/routes/admin/discount-codes.d.ts +10 -0
- package/dist/apps/backend/src/routes/admin/inventory.d.ts +0 -4
- package/dist/apps/backend/src/routes/admin/orders.d.ts +12 -24
- package/dist/apps/backend/src/routes/admin/products.d.ts +8 -16
- package/dist/apps/backend/src/routes/admin/stats.d.ts +2 -4
- package/dist/apps/backend/src/routes/admin/warehouses.d.ts +2 -4
- package/dist/apps/backend/src/routes/public/brands.d.ts +1 -0
- package/dist/apps/backend/src/routes/public/brands.js +1 -0
- package/dist/apps/backend/src/routes/public/carts.d.ts +18 -36
- package/dist/apps/backend/src/routes/public/orders.d.ts +4 -8
- package/dist/apps/backend/src/routes/public/products.d.ts +4 -8
- package/dist/apps/backend/src/validators/brand.d.ts +4 -0
- package/dist/apps/backend/src/validators/brand.js +4 -0
- package/dist/packages/api-client/src/fetchers/brands.d.ts +1 -0
- package/dist/packages/api-client/src/fetchers/carts.d.ts +18 -36
- package/dist/packages/api-client/src/fetchers/orders.d.ts +4 -8
- package/dist/packages/api-client/src/fetchers/products.d.ts +4 -8
- package/dist/packages/api-client/src/hooks/admin/abandoned-carts.d.ts +4 -8
- package/dist/packages/api-client/src/hooks/admin/brands.d.ts +8 -0
- package/dist/packages/api-client/src/hooks/admin/customers.d.ts +2 -4
- package/dist/packages/api-client/src/hooks/admin/delivery-zones.d.ts +8 -0
- package/dist/packages/api-client/src/hooks/admin/discount-codes.d.ts +10 -0
- package/dist/packages/api-client/src/hooks/admin/inventory.d.ts +0 -4
- package/dist/packages/api-client/src/hooks/admin/orders.d.ts +12 -24
- package/dist/packages/api-client/src/hooks/admin/products.d.ts +4 -8
- package/dist/packages/api-client/src/hooks/admin/stats.d.ts +2 -4
- package/dist/packages/api-client/src/hooks/admin/warehouses.d.ts +2 -4
- package/dist/packages/api-client/src/hooks/public/brands.d.ts +1 -0
- package/dist/packages/api-client/src/hooks/public/carts.d.ts +18 -36
- package/dist/packages/api-client/src/hooks/public/orders.d.ts +4 -8
- package/dist/packages/api-client/src/hooks/public/products.d.ts +4 -8
- package/dist/packages/api-client/src/rpc-client.d.ts +83 -116
- package/package.json +1 -1
- package/dist/apps/backend/src/generated/zod/index.d.ts +0 -1114
- package/dist/apps/backend/src/generated/zod/index.js +0 -670
- package/dist/backend-types.d.ts +0 -10
- package/dist/backend-types.js +0 -10
- package/dist/client.d.ts +0 -20
- package/dist/client.js +0 -40
- package/dist/enum-types.d.ts +0 -8
- package/dist/enum-types.js +0 -5
- package/dist/fetchers/brands.d.ts +0 -25
- package/dist/fetchers/brands.js +0 -26
- package/dist/fetchers/carts.d.ts +0 -2335
- package/dist/fetchers/carts.js +0 -174
- package/dist/fetchers/delivery-zones.d.ts +0 -28
- package/dist/fetchers/delivery-zones.js +0 -26
- package/dist/fetchers/index.d.ts +0 -22
- package/dist/fetchers/index.js +0 -22
- package/dist/fetchers/orders.d.ts +0 -540
- package/dist/fetchers/orders.js +0 -44
- package/dist/fetchers/products.d.ts +0 -386
- package/dist/fetchers/products.js +0 -42
- package/dist/hooks/admin/abandoned-carts.d.ts +0 -535
- package/dist/hooks/admin/abandoned-carts.js +0 -83
- package/dist/hooks/admin/brands.d.ts +0 -79
- package/dist/hooks/admin/brands.js +0 -108
- package/dist/hooks/admin/customers.d.ts +0 -278
- package/dist/hooks/admin/customers.js +0 -26
- package/dist/hooks/admin/delivery-zones.d.ts +0 -270
- package/dist/hooks/admin/delivery-zones.js +0 -176
- package/dist/hooks/admin/discount-codes.d.ts +0 -299
- package/dist/hooks/admin/discount-codes.js +0 -165
- package/dist/hooks/admin/index.d.ts +0 -16
- package/dist/hooks/admin/index.js +0 -16
- package/dist/hooks/admin/inventory.d.ts +0 -224
- package/dist/hooks/admin/inventory.js +0 -107
- package/dist/hooks/admin/orders.d.ts +0 -1662
- package/dist/hooks/admin/orders.js +0 -178
- package/dist/hooks/admin/products.d.ts +0 -374
- package/dist/hooks/admin/products.js +0 -89
- package/dist/hooks/admin/stats.d.ts +0 -277
- package/dist/hooks/admin/stats.js +0 -25
- package/dist/hooks/admin/variants.d.ts +0 -115
- package/dist/hooks/admin/variants.js +0 -127
- package/dist/hooks/admin/warehouses.d.ts +0 -277
- package/dist/hooks/admin/warehouses.js +0 -108
- package/dist/hooks/public/brands.d.ts +0 -33
- package/dist/hooks/public/brands.js +0 -30
- package/dist/hooks/public/carts.d.ts +0 -2405
- package/dist/hooks/public/carts.js +0 -213
- package/dist/hooks/public/delivery-zones.d.ts +0 -34
- package/dist/hooks/public/delivery-zones.js +0 -28
- package/dist/hooks/public/index.d.ts +0 -10
- package/dist/hooks/public/index.js +0 -10
- package/dist/hooks/public/orders.d.ts +0 -559
- package/dist/hooks/public/orders.js +0 -50
- package/dist/hooks/public/products.d.ts +0 -398
- package/dist/hooks/public/products.js +0 -47
- package/dist/hooks/use-query-unwrapped.d.ts +0 -20
- package/dist/hooks/use-query-unwrapped.js +0 -22
- package/dist/hooks/useApiConfig.d.ts +0 -12
- package/dist/hooks/useApiConfig.js +0 -14
- package/dist/index.d.ts +0 -20
- package/dist/index.js +0 -25
- package/dist/provider.d.ts +0 -36
- package/dist/provider.js +0 -54
- package/dist/rpc-client.d.ts +0 -9607
- package/dist/rpc-client.js +0 -78
- package/dist/rpc-types.d.ts +0 -76
- package/dist/rpc-types.js +0 -7
- package/dist/types.d.ts +0 -34
- package/dist/types.js +0 -16
- package/dist/utils/query-keys.d.ts +0 -106
- package/dist/utils/query-keys.js +0 -108
|
@@ -36,6 +36,8 @@ export declare function fetchOrder(orderId: string, token: string): Promise<{
|
|
|
36
36
|
siteUrl: string;
|
|
37
37
|
domain: string;
|
|
38
38
|
metaPixelId: string | null;
|
|
39
|
+
paystackPublicKey: string | null;
|
|
40
|
+
paystackSecretKey: string | null;
|
|
39
41
|
};
|
|
40
42
|
deliveryZone: {
|
|
41
43
|
deliveryCost: number;
|
|
@@ -151,9 +153,7 @@ export declare function fetchOrder(orderId: string, token: string): Promise<{
|
|
|
151
153
|
includes?: boolean;
|
|
152
154
|
flatMap?: boolean;
|
|
153
155
|
flat?: boolean;
|
|
154
|
-
at?: boolean;
|
|
155
156
|
};
|
|
156
|
-
at: never;
|
|
157
157
|
};
|
|
158
158
|
} | {
|
|
159
159
|
[x: number]: string | number | boolean | {
|
|
@@ -226,9 +226,7 @@ export declare function fetchOrder(orderId: string, token: string): Promise<{
|
|
|
226
226
|
includes?: boolean;
|
|
227
227
|
flatMap?: boolean;
|
|
228
228
|
flat?: boolean;
|
|
229
|
-
at?: boolean;
|
|
230
229
|
};
|
|
231
|
-
at: never;
|
|
232
230
|
};
|
|
233
231
|
};
|
|
234
232
|
id: string;
|
|
@@ -307,6 +305,8 @@ export declare function confirmOrder(orderId: string, token: string): Promise<{
|
|
|
307
305
|
siteUrl: string;
|
|
308
306
|
domain: string;
|
|
309
307
|
metaPixelId: string | null;
|
|
308
|
+
paystackPublicKey: string | null;
|
|
309
|
+
paystackSecretKey: string | null;
|
|
310
310
|
};
|
|
311
311
|
deliveryZone: {
|
|
312
312
|
deliveryCost: number;
|
|
@@ -422,9 +422,7 @@ export declare function confirmOrder(orderId: string, token: string): Promise<{
|
|
|
422
422
|
includes?: boolean;
|
|
423
423
|
flatMap?: boolean;
|
|
424
424
|
flat?: boolean;
|
|
425
|
-
at?: boolean;
|
|
426
425
|
};
|
|
427
|
-
at: never;
|
|
428
426
|
};
|
|
429
427
|
} | {
|
|
430
428
|
[x: number]: string | number | boolean | {
|
|
@@ -497,9 +495,7 @@ export declare function confirmOrder(orderId: string, token: string): Promise<{
|
|
|
497
495
|
includes?: boolean;
|
|
498
496
|
flatMap?: boolean;
|
|
499
497
|
flat?: boolean;
|
|
500
|
-
at?: boolean;
|
|
501
498
|
};
|
|
502
|
-
at: never;
|
|
503
499
|
};
|
|
504
500
|
};
|
|
505
501
|
id: string;
|
|
@@ -24,6 +24,8 @@ export declare function fetchProductsByBrand(brandId: string): Promise<{
|
|
|
24
24
|
siteUrl: string;
|
|
25
25
|
domain: string;
|
|
26
26
|
metaPixelId: string | null;
|
|
27
|
+
paystackPublicKey: string | null;
|
|
28
|
+
paystackSecretKey: string | null;
|
|
27
29
|
};
|
|
28
30
|
variants: {
|
|
29
31
|
createdAt: string;
|
|
@@ -119,9 +121,7 @@ export declare function fetchProductsByBrand(brandId: string): Promise<{
|
|
|
119
121
|
includes?: boolean;
|
|
120
122
|
flatMap?: boolean;
|
|
121
123
|
flat?: boolean;
|
|
122
|
-
at?: boolean;
|
|
123
124
|
};
|
|
124
|
-
at: never;
|
|
125
125
|
};
|
|
126
126
|
} | {
|
|
127
127
|
[x: number]: string | number | boolean | {
|
|
@@ -194,9 +194,7 @@ export declare function fetchProductsByBrand(brandId: string): Promise<{
|
|
|
194
194
|
includes?: boolean;
|
|
195
195
|
flatMap?: boolean;
|
|
196
196
|
flat?: boolean;
|
|
197
|
-
at?: boolean;
|
|
198
197
|
};
|
|
199
|
-
at: never;
|
|
200
198
|
};
|
|
201
199
|
}[]>;
|
|
202
200
|
/**
|
|
@@ -217,6 +215,8 @@ export declare function fetchProductBySlug(slug: string): Promise<{
|
|
|
217
215
|
siteUrl: string;
|
|
218
216
|
domain: string;
|
|
219
217
|
metaPixelId: string | null;
|
|
218
|
+
paystackPublicKey: string | null;
|
|
219
|
+
paystackSecretKey: string | null;
|
|
220
220
|
};
|
|
221
221
|
variants: {
|
|
222
222
|
createdAt: string;
|
|
@@ -312,9 +312,7 @@ export declare function fetchProductBySlug(slug: string): Promise<{
|
|
|
312
312
|
includes?: boolean;
|
|
313
313
|
flatMap?: boolean;
|
|
314
314
|
flat?: boolean;
|
|
315
|
-
at?: boolean;
|
|
316
315
|
};
|
|
317
|
-
at: never;
|
|
318
316
|
};
|
|
319
317
|
} | {
|
|
320
318
|
[x: number]: string | number | boolean | {
|
|
@@ -387,8 +385,6 @@ export declare function fetchProductBySlug(slug: string): Promise<{
|
|
|
387
385
|
includes?: boolean;
|
|
388
386
|
flatMap?: boolean;
|
|
389
387
|
flat?: boolean;
|
|
390
|
-
at?: boolean;
|
|
391
388
|
};
|
|
392
|
-
at: never;
|
|
393
389
|
};
|
|
394
390
|
}>;
|
|
@@ -23,6 +23,8 @@ export declare function useListAbandonedCarts(params?: {
|
|
|
23
23
|
siteUrl: string;
|
|
24
24
|
domain: string;
|
|
25
25
|
metaPixelId: string | null;
|
|
26
|
+
paystackPublicKey: string | null;
|
|
27
|
+
paystackSecretKey: string | null;
|
|
26
28
|
};
|
|
27
29
|
customerPhone: string;
|
|
28
30
|
customerEmail: string;
|
|
@@ -142,9 +144,7 @@ export declare function useListAbandonedCarts(params?: {
|
|
|
142
144
|
includes?: boolean;
|
|
143
145
|
flatMap?: boolean;
|
|
144
146
|
flat?: boolean;
|
|
145
|
-
at?: boolean;
|
|
146
147
|
};
|
|
147
|
-
at: never;
|
|
148
148
|
};
|
|
149
149
|
} | {
|
|
150
150
|
[x: number]: string | number | boolean | {
|
|
@@ -217,9 +217,7 @@ export declare function useListAbandonedCarts(params?: {
|
|
|
217
217
|
includes?: boolean;
|
|
218
218
|
flatMap?: boolean;
|
|
219
219
|
flat?: boolean;
|
|
220
|
-
at?: boolean;
|
|
221
220
|
};
|
|
222
|
-
at: never;
|
|
223
221
|
};
|
|
224
222
|
};
|
|
225
223
|
id: string;
|
|
@@ -293,6 +291,8 @@ export declare function useGetAbandonedCart(cartId: string, options?: Omit<UseQu
|
|
|
293
291
|
siteUrl: string;
|
|
294
292
|
domain: string;
|
|
295
293
|
metaPixelId: string | null;
|
|
294
|
+
paystackPublicKey: string | null;
|
|
295
|
+
paystackSecretKey: string | null;
|
|
296
296
|
};
|
|
297
297
|
customerPhone: string;
|
|
298
298
|
customerEmail: string;
|
|
@@ -412,9 +412,7 @@ export declare function useGetAbandonedCart(cartId: string, options?: Omit<UseQu
|
|
|
412
412
|
includes?: boolean;
|
|
413
413
|
flatMap?: boolean;
|
|
414
414
|
flat?: boolean;
|
|
415
|
-
at?: boolean;
|
|
416
415
|
};
|
|
417
|
-
at: never;
|
|
418
416
|
};
|
|
419
417
|
} | {
|
|
420
418
|
[x: number]: string | number | boolean | {
|
|
@@ -487,9 +485,7 @@ export declare function useGetAbandonedCart(cartId: string, options?: Omit<UseQu
|
|
|
487
485
|
includes?: boolean;
|
|
488
486
|
flatMap?: boolean;
|
|
489
487
|
flat?: boolean;
|
|
490
|
-
at?: boolean;
|
|
491
488
|
};
|
|
492
|
-
at: never;
|
|
493
489
|
};
|
|
494
490
|
};
|
|
495
491
|
id: string;
|
|
@@ -14,6 +14,8 @@ export declare function useListBrands(options?: Omit<UseQueryOptions<Awaited<Ret
|
|
|
14
14
|
siteUrl: string;
|
|
15
15
|
domain: string;
|
|
16
16
|
metaPixelId: string | null;
|
|
17
|
+
paystackPublicKey: string | null;
|
|
18
|
+
paystackSecretKey: string | null;
|
|
17
19
|
createdAt: string;
|
|
18
20
|
updatedAt: string;
|
|
19
21
|
deletedAt: string;
|
|
@@ -29,6 +31,8 @@ export declare function useGetBrand(brandId: string, options?: Omit<UseQueryOpti
|
|
|
29
31
|
siteUrl: string;
|
|
30
32
|
domain: string;
|
|
31
33
|
metaPixelId: string | null;
|
|
34
|
+
paystackPublicKey: string | null;
|
|
35
|
+
paystackSecretKey: string | null;
|
|
32
36
|
createdAt: string;
|
|
33
37
|
updatedAt: string;
|
|
34
38
|
deletedAt: string;
|
|
@@ -44,6 +48,8 @@ export declare function useCreateBrand(options?: UseMutationOptions<Awaited<Retu
|
|
|
44
48
|
siteUrl: string;
|
|
45
49
|
domain: string;
|
|
46
50
|
metaPixelId: string | null;
|
|
51
|
+
paystackPublicKey: string | null;
|
|
52
|
+
paystackSecretKey: string | null;
|
|
47
53
|
createdAt: string;
|
|
48
54
|
updatedAt: string;
|
|
49
55
|
deletedAt: string;
|
|
@@ -64,6 +70,8 @@ export declare function useUpdateBrand(brandId: string, options?: UseMutationOpt
|
|
|
64
70
|
siteUrl: string;
|
|
65
71
|
domain: string;
|
|
66
72
|
metaPixelId: string | null;
|
|
73
|
+
paystackPublicKey: string | null;
|
|
74
|
+
paystackSecretKey: string | null;
|
|
67
75
|
createdAt: string;
|
|
68
76
|
updatedAt: string;
|
|
69
77
|
deletedAt: string;
|
|
@@ -38,6 +38,8 @@ export declare function useGetCustomerHistory(phone: string, options?: Omit<UseQ
|
|
|
38
38
|
siteUrl: string;
|
|
39
39
|
domain: string;
|
|
40
40
|
metaPixelId: string | null;
|
|
41
|
+
paystackPublicKey: string | null;
|
|
42
|
+
paystackSecretKey: string | null;
|
|
41
43
|
};
|
|
42
44
|
deliveryZone: {
|
|
43
45
|
deliveryCost: number;
|
|
@@ -153,9 +155,7 @@ export declare function useGetCustomerHistory(phone: string, options?: Omit<UseQ
|
|
|
153
155
|
includes?: boolean;
|
|
154
156
|
flatMap?: boolean;
|
|
155
157
|
flat?: boolean;
|
|
156
|
-
at?: boolean;
|
|
157
158
|
};
|
|
158
|
-
at: never;
|
|
159
159
|
};
|
|
160
160
|
} | {
|
|
161
161
|
[x: number]: string | number | boolean | {
|
|
@@ -228,9 +228,7 @@ export declare function useGetCustomerHistory(phone: string, options?: Omit<UseQ
|
|
|
228
228
|
includes?: boolean;
|
|
229
229
|
flatMap?: boolean;
|
|
230
230
|
flat?: boolean;
|
|
231
|
-
at?: boolean;
|
|
232
231
|
};
|
|
233
|
-
at: never;
|
|
234
232
|
};
|
|
235
233
|
};
|
|
236
234
|
id: string;
|
|
@@ -24,6 +24,8 @@ export declare function useListStates(options?: Omit<UseQueryOptions<Awaited<Ret
|
|
|
24
24
|
siteUrl: string;
|
|
25
25
|
domain: string;
|
|
26
26
|
metaPixelId: string | null;
|
|
27
|
+
paystackPublicKey: string | null;
|
|
28
|
+
paystackSecretKey: string | null;
|
|
27
29
|
};
|
|
28
30
|
stateName: string;
|
|
29
31
|
brandName: string;
|
|
@@ -133,6 +135,8 @@ export declare function useListDeliveryZones(params?: {
|
|
|
133
135
|
siteUrl: string;
|
|
134
136
|
domain: string;
|
|
135
137
|
metaPixelId: string | null;
|
|
138
|
+
paystackPublicKey: string | null;
|
|
139
|
+
paystackSecretKey: string | null;
|
|
136
140
|
};
|
|
137
141
|
stateName: string;
|
|
138
142
|
brandName: string;
|
|
@@ -176,6 +180,8 @@ export declare function useCreateDeliveryZone(options?: UseMutationOptions<Await
|
|
|
176
180
|
siteUrl: string;
|
|
177
181
|
domain: string;
|
|
178
182
|
metaPixelId: string | null;
|
|
183
|
+
paystackPublicKey: string | null;
|
|
184
|
+
paystackSecretKey: string | null;
|
|
179
185
|
};
|
|
180
186
|
stateName: string;
|
|
181
187
|
brandName: string;
|
|
@@ -234,6 +240,8 @@ export declare function useUpdateDeliveryZone(zoneId: string, options?: UseMutat
|
|
|
234
240
|
siteUrl: string;
|
|
235
241
|
domain: string;
|
|
236
242
|
metaPixelId: string | null;
|
|
243
|
+
paystackPublicKey: string | null;
|
|
244
|
+
paystackSecretKey: string | null;
|
|
237
245
|
};
|
|
238
246
|
stateName: string;
|
|
239
247
|
brandName: string;
|
|
@@ -32,6 +32,8 @@ export declare function useListDiscountCodes(params?: {
|
|
|
32
32
|
siteUrl: string;
|
|
33
33
|
domain: string;
|
|
34
34
|
metaPixelId: string | null;
|
|
35
|
+
paystackPublicKey: string | null;
|
|
36
|
+
paystackSecretKey: string | null;
|
|
35
37
|
};
|
|
36
38
|
isExpired: boolean;
|
|
37
39
|
usagePercentage: number;
|
|
@@ -82,6 +84,8 @@ export declare function useGetDiscountCode(codeId: string, options?: Omit<UseQue
|
|
|
82
84
|
siteUrl: string;
|
|
83
85
|
domain: string;
|
|
84
86
|
metaPixelId: string | null;
|
|
87
|
+
paystackPublicKey: string | null;
|
|
88
|
+
paystackSecretKey: string | null;
|
|
85
89
|
};
|
|
86
90
|
isExpired: boolean;
|
|
87
91
|
usagePercentage: number;
|
|
@@ -131,6 +135,8 @@ export declare function useCreateDiscountCode(options?: UseMutationOptions<Await
|
|
|
131
135
|
siteUrl: string;
|
|
132
136
|
domain: string;
|
|
133
137
|
metaPixelId: string | null;
|
|
138
|
+
paystackPublicKey: string | null;
|
|
139
|
+
paystackSecretKey: string | null;
|
|
134
140
|
};
|
|
135
141
|
isExpired: boolean;
|
|
136
142
|
usagePercentage: number;
|
|
@@ -175,6 +181,8 @@ export declare function useUpdateDiscountCode(codeId: string, options?: UseMutat
|
|
|
175
181
|
siteUrl: string;
|
|
176
182
|
domain: string;
|
|
177
183
|
metaPixelId: string | null;
|
|
184
|
+
paystackPublicKey: string | null;
|
|
185
|
+
paystackSecretKey: string | null;
|
|
178
186
|
};
|
|
179
187
|
isExpired: boolean;
|
|
180
188
|
usagePercentage: number;
|
|
@@ -254,6 +262,8 @@ export declare function useGetDiscountCodeAnalytics(codeId: string, options?: Om
|
|
|
254
262
|
siteUrl: string;
|
|
255
263
|
domain: string;
|
|
256
264
|
metaPixelId: string | null;
|
|
265
|
+
paystackPublicKey: string | null;
|
|
266
|
+
paystackSecretKey: string | null;
|
|
257
267
|
};
|
|
258
268
|
isExpired: boolean;
|
|
259
269
|
id: string;
|
|
@@ -121,9 +121,7 @@ export declare function useGetInventoryTransactions(params?: {
|
|
|
121
121
|
includes?: boolean;
|
|
122
122
|
flatMap?: boolean;
|
|
123
123
|
flat?: boolean;
|
|
124
|
-
at?: boolean;
|
|
125
124
|
};
|
|
126
|
-
at: never;
|
|
127
125
|
};
|
|
128
126
|
} | {
|
|
129
127
|
[x: number]: string | number | boolean | {
|
|
@@ -196,9 +194,7 @@ export declare function useGetInventoryTransactions(params?: {
|
|
|
196
194
|
includes?: boolean;
|
|
197
195
|
flatMap?: boolean;
|
|
198
196
|
flat?: boolean;
|
|
199
|
-
at?: boolean;
|
|
200
197
|
};
|
|
201
|
-
at: never;
|
|
202
198
|
};
|
|
203
199
|
createdAt: string;
|
|
204
200
|
variant: {
|
|
@@ -48,6 +48,8 @@ export declare function useListOrders(filters?: {
|
|
|
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 @@ export declare function useListOrders(filters?: {
|
|
|
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 @@ export declare function useListOrders(filters?: {
|
|
|
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;
|
|
@@ -330,6 +328,8 @@ export declare function useGetOrder(orderId: string, options?: Omit<UseQueryOpti
|
|
|
330
328
|
siteUrl: string;
|
|
331
329
|
domain: string;
|
|
332
330
|
metaPixelId: string | null;
|
|
331
|
+
paystackPublicKey: string | null;
|
|
332
|
+
paystackSecretKey: string | null;
|
|
333
333
|
};
|
|
334
334
|
deliveryZone: {
|
|
335
335
|
deliveryCost: number;
|
|
@@ -445,9 +445,7 @@ export declare function useGetOrder(orderId: string, options?: Omit<UseQueryOpti
|
|
|
445
445
|
includes?: boolean;
|
|
446
446
|
flatMap?: boolean;
|
|
447
447
|
flat?: boolean;
|
|
448
|
-
at?: boolean;
|
|
449
448
|
};
|
|
450
|
-
at: never;
|
|
451
449
|
};
|
|
452
450
|
} | {
|
|
453
451
|
[x: number]: string | number | boolean | {
|
|
@@ -520,9 +518,7 @@ export declare function useGetOrder(orderId: string, options?: Omit<UseQueryOpti
|
|
|
520
518
|
includes?: boolean;
|
|
521
519
|
flatMap?: boolean;
|
|
522
520
|
flat?: boolean;
|
|
523
|
-
at?: boolean;
|
|
524
521
|
};
|
|
525
|
-
at: never;
|
|
526
522
|
};
|
|
527
523
|
};
|
|
528
524
|
id: string;
|
|
@@ -609,6 +605,8 @@ export declare function useCreateOrder(options?: UseMutationOptions<Awaited<Retu
|
|
|
609
605
|
siteUrl: string;
|
|
610
606
|
domain: string;
|
|
611
607
|
metaPixelId: string | null;
|
|
608
|
+
paystackPublicKey: string | null;
|
|
609
|
+
paystackSecretKey: string | null;
|
|
612
610
|
};
|
|
613
611
|
deliveryZone: {
|
|
614
612
|
deliveryCost: number;
|
|
@@ -724,9 +722,7 @@ export declare function useCreateOrder(options?: UseMutationOptions<Awaited<Retu
|
|
|
724
722
|
includes?: boolean;
|
|
725
723
|
flatMap?: boolean;
|
|
726
724
|
flat?: boolean;
|
|
727
|
-
at?: boolean;
|
|
728
725
|
};
|
|
729
|
-
at: never;
|
|
730
726
|
};
|
|
731
727
|
} | {
|
|
732
728
|
[x: number]: string | number | boolean | {
|
|
@@ -799,9 +795,7 @@ export declare function useCreateOrder(options?: UseMutationOptions<Awaited<Retu
|
|
|
799
795
|
includes?: boolean;
|
|
800
796
|
flatMap?: boolean;
|
|
801
797
|
flat?: boolean;
|
|
802
|
-
at?: boolean;
|
|
803
798
|
};
|
|
804
|
-
at: never;
|
|
805
799
|
};
|
|
806
800
|
};
|
|
807
801
|
id: string;
|
|
@@ -889,6 +883,8 @@ export declare function useUpdateOrder(orderId: string, options?: UseMutationOpt
|
|
|
889
883
|
siteUrl: string;
|
|
890
884
|
domain: string;
|
|
891
885
|
metaPixelId: string | null;
|
|
886
|
+
paystackPublicKey: string | null;
|
|
887
|
+
paystackSecretKey: string | null;
|
|
892
888
|
};
|
|
893
889
|
deliveryZone: {
|
|
894
890
|
deliveryCost: number;
|
|
@@ -1004,9 +1000,7 @@ export declare function useUpdateOrder(orderId: string, options?: UseMutationOpt
|
|
|
1004
1000
|
includes?: boolean;
|
|
1005
1001
|
flatMap?: boolean;
|
|
1006
1002
|
flat?: boolean;
|
|
1007
|
-
at?: boolean;
|
|
1008
1003
|
};
|
|
1009
|
-
at: never;
|
|
1010
1004
|
};
|
|
1011
1005
|
} | {
|
|
1012
1006
|
[x: number]: string | number | boolean | {
|
|
@@ -1079,9 +1073,7 @@ export declare function useUpdateOrder(orderId: string, options?: UseMutationOpt
|
|
|
1079
1073
|
includes?: boolean;
|
|
1080
1074
|
flatMap?: boolean;
|
|
1081
1075
|
flat?: boolean;
|
|
1082
|
-
at?: boolean;
|
|
1083
1076
|
};
|
|
1084
|
-
at: never;
|
|
1085
1077
|
};
|
|
1086
1078
|
};
|
|
1087
1079
|
id: string;
|
|
@@ -1145,6 +1137,8 @@ export declare function useUpdateOrder(orderId: string, options?: UseMutationOpt
|
|
|
1145
1137
|
siteUrl: string;
|
|
1146
1138
|
domain: string;
|
|
1147
1139
|
metaPixelId: string | null;
|
|
1140
|
+
paystackPublicKey: string | null;
|
|
1141
|
+
paystackSecretKey: string | null;
|
|
1148
1142
|
createdAt: string;
|
|
1149
1143
|
updatedAt: string;
|
|
1150
1144
|
deletedAt: string;
|
|
@@ -1269,9 +1263,7 @@ export declare function useUpdateOrder(orderId: string, options?: UseMutationOpt
|
|
|
1269
1263
|
includes?: boolean;
|
|
1270
1264
|
flatMap?: boolean;
|
|
1271
1265
|
flat?: boolean;
|
|
1272
|
-
at?: boolean;
|
|
1273
1266
|
};
|
|
1274
|
-
at: never;
|
|
1275
1267
|
};
|
|
1276
1268
|
} | {
|
|
1277
1269
|
[x: number]: string | number | boolean | {
|
|
@@ -1344,9 +1336,7 @@ export declare function useUpdateOrder(orderId: string, options?: UseMutationOpt
|
|
|
1344
1336
|
includes?: boolean;
|
|
1345
1337
|
flatMap?: boolean;
|
|
1346
1338
|
flat?: boolean;
|
|
1347
|
-
at?: boolean;
|
|
1348
1339
|
};
|
|
1349
|
-
at: never;
|
|
1350
1340
|
};
|
|
1351
1341
|
};
|
|
1352
1342
|
id: string;
|
|
@@ -1431,6 +1421,8 @@ export declare function useUpdateOrderStatus(orderId: string, options?: UseMutat
|
|
|
1431
1421
|
siteUrl: string;
|
|
1432
1422
|
domain: string;
|
|
1433
1423
|
metaPixelId: string | null;
|
|
1424
|
+
paystackPublicKey: string | null;
|
|
1425
|
+
paystackSecretKey: string | null;
|
|
1434
1426
|
};
|
|
1435
1427
|
deliveryZone: {
|
|
1436
1428
|
deliveryCost: number;
|
|
@@ -1546,9 +1538,7 @@ export declare function useUpdateOrderStatus(orderId: string, options?: UseMutat
|
|
|
1546
1538
|
includes?: boolean;
|
|
1547
1539
|
flatMap?: boolean;
|
|
1548
1540
|
flat?: boolean;
|
|
1549
|
-
at?: boolean;
|
|
1550
1541
|
};
|
|
1551
|
-
at: never;
|
|
1552
1542
|
};
|
|
1553
1543
|
} | {
|
|
1554
1544
|
[x: number]: string | number | boolean | {
|
|
@@ -1621,9 +1611,7 @@ export declare function useUpdateOrderStatus(orderId: string, options?: UseMutat
|
|
|
1621
1611
|
includes?: boolean;
|
|
1622
1612
|
flatMap?: boolean;
|
|
1623
1613
|
flat?: boolean;
|
|
1624
|
-
at?: boolean;
|
|
1625
1614
|
};
|
|
1626
|
-
at: never;
|
|
1627
1615
|
};
|
|
1628
1616
|
};
|
|
1629
1617
|
id: string;
|
|
@@ -15,6 +15,8 @@ export declare function useListProducts(brandId?: string, options?: Omit<UseQuer
|
|
|
15
15
|
siteUrl: string;
|
|
16
16
|
domain: string;
|
|
17
17
|
metaPixelId: string | null;
|
|
18
|
+
paystackPublicKey: string | null;
|
|
19
|
+
paystackSecretKey: string | null;
|
|
18
20
|
};
|
|
19
21
|
variants: {
|
|
20
22
|
createdAt: string;
|
|
@@ -110,9 +112,7 @@ export declare function useListProducts(brandId?: string, options?: Omit<UseQuer
|
|
|
110
112
|
includes?: boolean;
|
|
111
113
|
flatMap?: boolean;
|
|
112
114
|
flat?: boolean;
|
|
113
|
-
at?: boolean;
|
|
114
115
|
};
|
|
115
|
-
at: never;
|
|
116
116
|
};
|
|
117
117
|
} | {
|
|
118
118
|
[x: number]: string | number | boolean | {
|
|
@@ -185,9 +185,7 @@ export declare function useListProducts(brandId?: string, options?: Omit<UseQuer
|
|
|
185
185
|
includes?: boolean;
|
|
186
186
|
flatMap?: boolean;
|
|
187
187
|
flat?: boolean;
|
|
188
|
-
at?: boolean;
|
|
189
188
|
};
|
|
190
|
-
at: never;
|
|
191
189
|
};
|
|
192
190
|
}[], Error>;
|
|
193
191
|
export declare function useGetProduct(productId: string, options?: Omit<UseQueryOptions<Awaited<ReturnType<Awaited<ReturnType<ReturnType<typeof createAdminRpcClients>['products'][':id']['$get']>>['json']>>, Error>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<{
|
|
@@ -202,6 +200,8 @@ export declare function useGetProduct(productId: string, options?: Omit<UseQuery
|
|
|
202
200
|
siteUrl: string;
|
|
203
201
|
domain: string;
|
|
204
202
|
metaPixelId: string | null;
|
|
203
|
+
paystackPublicKey: string | null;
|
|
204
|
+
paystackSecretKey: string | null;
|
|
205
205
|
};
|
|
206
206
|
variants: {
|
|
207
207
|
createdAt: string;
|
|
@@ -297,9 +297,7 @@ export declare function useGetProduct(productId: string, options?: Omit<UseQuery
|
|
|
297
297
|
includes?: boolean;
|
|
298
298
|
flatMap?: boolean;
|
|
299
299
|
flat?: boolean;
|
|
300
|
-
at?: boolean;
|
|
301
300
|
};
|
|
302
|
-
at: never;
|
|
303
301
|
};
|
|
304
302
|
} | {
|
|
305
303
|
[x: number]: string | number | boolean | {
|
|
@@ -372,9 +370,7 @@ export declare function useGetProduct(productId: string, options?: Omit<UseQuery
|
|
|
372
370
|
includes?: boolean;
|
|
373
371
|
flatMap?: boolean;
|
|
374
372
|
flat?: boolean;
|
|
375
|
-
at?: boolean;
|
|
376
373
|
};
|
|
377
|
-
at: never;
|
|
378
374
|
};
|
|
379
375
|
}, Error>;
|
|
380
376
|
export declare function useCreateProduct(options?: UseMutationOptions<any, Error, any>): import("@tanstack/react-query").UseMutationResult<any, Error, any, unknown>;
|
|
@@ -37,6 +37,8 @@ export declare function useGetStats(params?: {
|
|
|
37
37
|
siteUrl: string;
|
|
38
38
|
domain: string;
|
|
39
39
|
metaPixelId: string | null;
|
|
40
|
+
paystackPublicKey: string | null;
|
|
41
|
+
paystackSecretKey: string | null;
|
|
40
42
|
};
|
|
41
43
|
deliveryZone: {
|
|
42
44
|
deliveryCost: number;
|
|
@@ -152,9 +154,7 @@ export declare function useGetStats(params?: {
|
|
|
152
154
|
includes?: boolean;
|
|
153
155
|
flatMap?: boolean;
|
|
154
156
|
flat?: boolean;
|
|
155
|
-
at?: boolean;
|
|
156
157
|
};
|
|
157
|
-
at: never;
|
|
158
158
|
};
|
|
159
159
|
} | {
|
|
160
160
|
[x: number]: string | number | boolean | {
|
|
@@ -227,9 +227,7 @@ export declare function useGetStats(params?: {
|
|
|
227
227
|
includes?: boolean;
|
|
228
228
|
flatMap?: boolean;
|
|
229
229
|
flat?: boolean;
|
|
230
|
-
at?: boolean;
|
|
231
230
|
};
|
|
232
|
-
at: never;
|
|
233
231
|
};
|
|
234
232
|
};
|
|
235
233
|
id: string;
|
|
@@ -71,6 +71,8 @@ export declare function useGetWarehouseInventory(warehouseId: string, options?:
|
|
|
71
71
|
siteUrl: string;
|
|
72
72
|
domain: string;
|
|
73
73
|
metaPixelId: string | null;
|
|
74
|
+
paystackPublicKey: string | null;
|
|
75
|
+
paystackSecretKey: string | null;
|
|
74
76
|
createdAt: string;
|
|
75
77
|
updatedAt: string;
|
|
76
78
|
deletedAt: string;
|
|
@@ -155,9 +157,7 @@ export declare function useGetWarehouseInventory(warehouseId: string, options?:
|
|
|
155
157
|
includes?: boolean;
|
|
156
158
|
flatMap?: boolean;
|
|
157
159
|
flat?: boolean;
|
|
158
|
-
at?: boolean;
|
|
159
160
|
};
|
|
160
|
-
at: never;
|
|
161
161
|
};
|
|
162
162
|
} | {
|
|
163
163
|
[x: number]: string | number | boolean | {
|
|
@@ -230,9 +230,7 @@ export declare function useGetWarehouseInventory(warehouseId: string, options?:
|
|
|
230
230
|
includes?: boolean;
|
|
231
231
|
flatMap?: boolean;
|
|
232
232
|
flat?: boolean;
|
|
233
|
-
at?: boolean;
|
|
234
233
|
};
|
|
235
|
-
at: never;
|
|
236
234
|
};
|
|
237
235
|
};
|
|
238
236
|
id: string;
|