@instockng/api-client 1.0.34 → 1.0.36
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/backend-types.d.ts +1 -1
- package/dist/fetchers/brands.d.ts +1 -0
- package/dist/fetchers/carts.d.ts +185 -152
- package/dist/fetchers/delivery-zones.d.ts +0 -1
- package/dist/fetchers/orders.d.ts +55 -30
- package/dist/hooks/admin/abandoned-carts.d.ts +36 -34
- package/dist/hooks/admin/brands.d.ts +4 -0
- package/dist/hooks/admin/customers.d.ts +14 -14
- package/dist/hooks/admin/delivery-zones.d.ts +12 -8
- package/dist/hooks/admin/discount-codes.d.ts +20 -15
- package/dist/hooks/admin/index.d.ts +1 -0
- package/dist/hooks/admin/index.js +1 -0
- package/dist/hooks/admin/orders.d.ts +79 -78
- package/dist/hooks/admin/products.d.ts +54 -4
- package/dist/hooks/admin/sales.d.ts +46 -0
- package/dist/hooks/admin/sales.js +180 -0
- package/dist/hooks/admin/stats.d.ts +14 -14
- package/dist/hooks/admin/variants.d.ts +13 -6
- package/dist/hooks/admin/variants.js +6 -5
- package/dist/hooks/admin/warehouses.d.ts +7 -6
- package/dist/hooks/public/brands.d.ts +1 -0
- package/dist/hooks/public/carts.d.ts +185 -152
- package/dist/hooks/public/delivery-zones.d.ts +0 -1
- package/dist/hooks/public/orders.d.ts +55 -30
- package/dist/rpc-client.d.ts +1121 -427
- package/dist/rpc-client.js +1 -0
- package/dist/rpc-types.d.ts +81 -6
- package/dist/utils/query-keys.d.ts +6 -0
- package/dist/utils/query-keys.js +6 -0
- package/package.json +1 -1
|
@@ -31,6 +31,7 @@ export declare function useListDiscountCodes(params?: {
|
|
|
31
31
|
metaPixelId: string;
|
|
32
32
|
tiktokPixelId: string;
|
|
33
33
|
paystackPublicKey: string;
|
|
34
|
+
freeShippingThreshold: number;
|
|
34
35
|
createdAt: string;
|
|
35
36
|
updatedAt: string;
|
|
36
37
|
deletedAt: string;
|
|
@@ -39,16 +40,16 @@ export declare function useListDiscountCodes(params?: {
|
|
|
39
40
|
usagePercentage: number;
|
|
40
41
|
id: string;
|
|
41
42
|
type: string;
|
|
42
|
-
brandId: string | null;
|
|
43
|
-
isActive: boolean;
|
|
44
43
|
code: string;
|
|
44
|
+
isActive: boolean;
|
|
45
|
+
brandId: string | null;
|
|
46
|
+
description: string | null;
|
|
45
47
|
usageLimit: number | null;
|
|
46
48
|
usageCount: number;
|
|
47
49
|
perCustomerLimit: number | null;
|
|
48
50
|
validFrom: string;
|
|
49
51
|
validUntil: string;
|
|
50
52
|
isAutoApply: boolean;
|
|
51
|
-
description: string | null;
|
|
52
53
|
category: string;
|
|
53
54
|
createdBy: string | null;
|
|
54
55
|
}[];
|
|
@@ -83,6 +84,7 @@ export declare function useGetDiscountCode(codeId: string, options?: Omit<UseQue
|
|
|
83
84
|
metaPixelId: string;
|
|
84
85
|
tiktokPixelId: string;
|
|
85
86
|
paystackPublicKey: string;
|
|
87
|
+
freeShippingThreshold: number;
|
|
86
88
|
createdAt: string;
|
|
87
89
|
updatedAt: string;
|
|
88
90
|
deletedAt: string;
|
|
@@ -91,16 +93,16 @@ export declare function useGetDiscountCode(codeId: string, options?: Omit<UseQue
|
|
|
91
93
|
usagePercentage: number;
|
|
92
94
|
id: string;
|
|
93
95
|
type: string;
|
|
94
|
-
brandId: string | null;
|
|
95
|
-
isActive: boolean;
|
|
96
96
|
code: string;
|
|
97
|
+
isActive: boolean;
|
|
98
|
+
brandId: string | null;
|
|
99
|
+
description: string | null;
|
|
97
100
|
usageLimit: number | null;
|
|
98
101
|
usageCount: number;
|
|
99
102
|
perCustomerLimit: number | null;
|
|
100
103
|
validFrom: string;
|
|
101
104
|
validUntil: string;
|
|
102
105
|
isAutoApply: boolean;
|
|
103
|
-
description: string | null;
|
|
104
106
|
category: string;
|
|
105
107
|
createdBy: string | null;
|
|
106
108
|
}, Error>;
|
|
@@ -134,6 +136,7 @@ export declare function useCreateDiscountCode(options?: UseMutationOptions<Await
|
|
|
134
136
|
metaPixelId: string;
|
|
135
137
|
tiktokPixelId: string;
|
|
136
138
|
paystackPublicKey: string;
|
|
139
|
+
freeShippingThreshold: number;
|
|
137
140
|
createdAt: string;
|
|
138
141
|
updatedAt: string;
|
|
139
142
|
deletedAt: string;
|
|
@@ -142,16 +145,16 @@ export declare function useCreateDiscountCode(options?: UseMutationOptions<Await
|
|
|
142
145
|
usagePercentage: number;
|
|
143
146
|
id: string;
|
|
144
147
|
type: string;
|
|
145
|
-
brandId: string | null;
|
|
146
|
-
isActive: boolean;
|
|
147
148
|
code: string;
|
|
149
|
+
isActive: boolean;
|
|
150
|
+
brandId: string | null;
|
|
151
|
+
description: string | null;
|
|
148
152
|
usageLimit: number | null;
|
|
149
153
|
usageCount: number;
|
|
150
154
|
perCustomerLimit: number | null;
|
|
151
155
|
validFrom: string;
|
|
152
156
|
validUntil: string;
|
|
153
157
|
isAutoApply: boolean;
|
|
154
|
-
description: string | null;
|
|
155
158
|
category: string;
|
|
156
159
|
createdBy: string | null;
|
|
157
160
|
} | {
|
|
@@ -180,6 +183,7 @@ export declare function useUpdateDiscountCode(codeId: string, options?: UseMutat
|
|
|
180
183
|
metaPixelId: string;
|
|
181
184
|
tiktokPixelId: string;
|
|
182
185
|
paystackPublicKey: string;
|
|
186
|
+
freeShippingThreshold: number;
|
|
183
187
|
createdAt: string;
|
|
184
188
|
updatedAt: string;
|
|
185
189
|
deletedAt: string;
|
|
@@ -188,16 +192,16 @@ export declare function useUpdateDiscountCode(codeId: string, options?: UseMutat
|
|
|
188
192
|
usagePercentage: number;
|
|
189
193
|
id: string;
|
|
190
194
|
type: string;
|
|
191
|
-
brandId: string | null;
|
|
192
|
-
isActive: boolean;
|
|
193
195
|
code: string;
|
|
196
|
+
isActive: boolean;
|
|
197
|
+
brandId: string | null;
|
|
198
|
+
description: string | null;
|
|
194
199
|
usageLimit: number | null;
|
|
195
200
|
usageCount: number;
|
|
196
201
|
perCustomerLimit: number | null;
|
|
197
202
|
validFrom: string;
|
|
198
203
|
validUntil: string;
|
|
199
204
|
isAutoApply: boolean;
|
|
200
|
-
description: string | null;
|
|
201
205
|
category: string;
|
|
202
206
|
createdBy: string | null;
|
|
203
207
|
} | {
|
|
@@ -261,6 +265,7 @@ export declare function useGetDiscountCodeAnalytics(codeId: string, options?: Om
|
|
|
261
265
|
metaPixelId: string;
|
|
262
266
|
tiktokPixelId: string;
|
|
263
267
|
paystackPublicKey: string;
|
|
268
|
+
freeShippingThreshold: number;
|
|
264
269
|
createdAt: string;
|
|
265
270
|
updatedAt: string;
|
|
266
271
|
deletedAt: string;
|
|
@@ -268,16 +273,16 @@ export declare function useGetDiscountCodeAnalytics(codeId: string, options?: Om
|
|
|
268
273
|
isExpired: boolean;
|
|
269
274
|
id: string;
|
|
270
275
|
type: string;
|
|
271
|
-
brandId: string | null;
|
|
272
|
-
isActive: boolean;
|
|
273
276
|
code: string;
|
|
277
|
+
isActive: boolean;
|
|
278
|
+
brandId: string | null;
|
|
279
|
+
description: string | null;
|
|
274
280
|
usageLimit: number | null;
|
|
275
281
|
usageCount: number;
|
|
276
282
|
perCustomerLimit: number | null;
|
|
277
283
|
validFrom: string;
|
|
278
284
|
validUntil: string;
|
|
279
285
|
isAutoApply: boolean;
|
|
280
|
-
description: string | null;
|
|
281
286
|
category: string;
|
|
282
287
|
createdBy: string | null;
|
|
283
288
|
}, Error>;
|
|
@@ -38,19 +38,19 @@ export declare function useListOrders(filters?: {
|
|
|
38
38
|
prospectSince: string;
|
|
39
39
|
lastRecoveryAttemptAt: string;
|
|
40
40
|
brand: {
|
|
41
|
-
createdAt: string;
|
|
42
|
-
updatedAt: string;
|
|
43
|
-
deletedAt: string;
|
|
44
41
|
id: string;
|
|
45
42
|
name: string;
|
|
46
43
|
slug: string;
|
|
47
|
-
logoUrl: string
|
|
44
|
+
logoUrl: string;
|
|
48
45
|
siteUrl: string;
|
|
49
46
|
domain: string;
|
|
50
|
-
metaPixelId: string
|
|
51
|
-
tiktokPixelId: string
|
|
52
|
-
paystackPublicKey: string
|
|
53
|
-
|
|
47
|
+
metaPixelId: string;
|
|
48
|
+
tiktokPixelId: string;
|
|
49
|
+
paystackPublicKey: string;
|
|
50
|
+
freeShippingThreshold: number;
|
|
51
|
+
createdAt: string;
|
|
52
|
+
updatedAt: string;
|
|
53
|
+
deletedAt: string;
|
|
54
54
|
};
|
|
55
55
|
deliveryZone: {
|
|
56
56
|
deliveryCost: number;
|
|
@@ -68,6 +68,7 @@ export declare function useListOrders(filters?: {
|
|
|
68
68
|
};
|
|
69
69
|
id: string;
|
|
70
70
|
name: string;
|
|
71
|
+
isActive: boolean;
|
|
71
72
|
brandId: string | null;
|
|
72
73
|
stateId: string;
|
|
73
74
|
allowCOD: boolean;
|
|
@@ -76,7 +77,6 @@ export declare function useListOrders(filters?: {
|
|
|
76
77
|
estimatedDays: number | null;
|
|
77
78
|
noteTitle: string | null;
|
|
78
79
|
noteContent: string | null;
|
|
79
|
-
isActive: boolean;
|
|
80
80
|
};
|
|
81
81
|
items: {
|
|
82
82
|
priceAtPurchase: number;
|
|
@@ -92,8 +92,8 @@ export declare function useListOrders(filters?: {
|
|
|
92
92
|
id: string;
|
|
93
93
|
name: string;
|
|
94
94
|
slug: string;
|
|
95
|
-
brandId: string;
|
|
96
95
|
isActive: boolean;
|
|
96
|
+
brandId: string;
|
|
97
97
|
description: string | null;
|
|
98
98
|
thumbnailUrl: string | null;
|
|
99
99
|
quantityDiscounts: string | number | boolean | {
|
|
@@ -536,8 +536,8 @@ export declare function useListOrders(filters?: {
|
|
|
536
536
|
id: string;
|
|
537
537
|
name: string | null;
|
|
538
538
|
isActive: boolean;
|
|
539
|
-
thumbnailUrl: string | null;
|
|
540
539
|
productId: string;
|
|
540
|
+
thumbnailUrl: string | null;
|
|
541
541
|
sku: string;
|
|
542
542
|
compareAtPrice: string;
|
|
543
543
|
trackInventory: boolean;
|
|
@@ -549,16 +549,16 @@ export declare function useListOrders(filters?: {
|
|
|
549
549
|
deletedAt: string;
|
|
550
550
|
id: string;
|
|
551
551
|
name: string;
|
|
552
|
+
state: string | null;
|
|
552
553
|
isActive: boolean;
|
|
553
554
|
address: string | null;
|
|
554
555
|
city: string | null;
|
|
555
|
-
state: string | null;
|
|
556
556
|
};
|
|
557
557
|
id: string;
|
|
558
|
-
orderId: string;
|
|
559
558
|
variantId: string;
|
|
560
|
-
warehouseId: string | null;
|
|
561
559
|
quantity: number;
|
|
560
|
+
orderId: string;
|
|
561
|
+
warehouseId: string | null;
|
|
562
562
|
}[];
|
|
563
563
|
email: string | null;
|
|
564
564
|
id: string;
|
|
@@ -611,19 +611,19 @@ export declare function useGetOrder(orderId: string, options?: Omit<UseQueryOpti
|
|
|
611
611
|
prospectSince: string;
|
|
612
612
|
lastRecoveryAttemptAt: string;
|
|
613
613
|
brand: {
|
|
614
|
-
createdAt: string;
|
|
615
|
-
updatedAt: string;
|
|
616
|
-
deletedAt: string;
|
|
617
614
|
id: string;
|
|
618
615
|
name: string;
|
|
619
616
|
slug: string;
|
|
620
|
-
logoUrl: string
|
|
617
|
+
logoUrl: string;
|
|
621
618
|
siteUrl: string;
|
|
622
619
|
domain: string;
|
|
623
|
-
metaPixelId: string
|
|
624
|
-
tiktokPixelId: string
|
|
625
|
-
paystackPublicKey: string
|
|
626
|
-
|
|
620
|
+
metaPixelId: string;
|
|
621
|
+
tiktokPixelId: string;
|
|
622
|
+
paystackPublicKey: string;
|
|
623
|
+
freeShippingThreshold: number;
|
|
624
|
+
createdAt: string;
|
|
625
|
+
updatedAt: string;
|
|
626
|
+
deletedAt: string;
|
|
627
627
|
};
|
|
628
628
|
deliveryZone: {
|
|
629
629
|
deliveryCost: number;
|
|
@@ -641,6 +641,7 @@ export declare function useGetOrder(orderId: string, options?: Omit<UseQueryOpti
|
|
|
641
641
|
};
|
|
642
642
|
id: string;
|
|
643
643
|
name: string;
|
|
644
|
+
isActive: boolean;
|
|
644
645
|
brandId: string | null;
|
|
645
646
|
stateId: string;
|
|
646
647
|
allowCOD: boolean;
|
|
@@ -649,7 +650,6 @@ export declare function useGetOrder(orderId: string, options?: Omit<UseQueryOpti
|
|
|
649
650
|
estimatedDays: number | null;
|
|
650
651
|
noteTitle: string | null;
|
|
651
652
|
noteContent: string | null;
|
|
652
|
-
isActive: boolean;
|
|
653
653
|
};
|
|
654
654
|
items: {
|
|
655
655
|
priceAtPurchase: number;
|
|
@@ -665,8 +665,8 @@ export declare function useGetOrder(orderId: string, options?: Omit<UseQueryOpti
|
|
|
665
665
|
id: string;
|
|
666
666
|
name: string;
|
|
667
667
|
slug: string;
|
|
668
|
-
brandId: string;
|
|
669
668
|
isActive: boolean;
|
|
669
|
+
brandId: string;
|
|
670
670
|
description: string | null;
|
|
671
671
|
thumbnailUrl: string | null;
|
|
672
672
|
quantityDiscounts: string | number | boolean | {
|
|
@@ -1109,8 +1109,8 @@ export declare function useGetOrder(orderId: string, options?: Omit<UseQueryOpti
|
|
|
1109
1109
|
id: string;
|
|
1110
1110
|
name: string | null;
|
|
1111
1111
|
isActive: boolean;
|
|
1112
|
-
thumbnailUrl: string | null;
|
|
1113
1112
|
productId: string;
|
|
1113
|
+
thumbnailUrl: string | null;
|
|
1114
1114
|
sku: string;
|
|
1115
1115
|
compareAtPrice: string;
|
|
1116
1116
|
trackInventory: boolean;
|
|
@@ -1122,16 +1122,16 @@ export declare function useGetOrder(orderId: string, options?: Omit<UseQueryOpti
|
|
|
1122
1122
|
deletedAt: string;
|
|
1123
1123
|
id: string;
|
|
1124
1124
|
name: string;
|
|
1125
|
+
state: string | null;
|
|
1125
1126
|
isActive: boolean;
|
|
1126
1127
|
address: string | null;
|
|
1127
1128
|
city: string | null;
|
|
1128
|
-
state: string | null;
|
|
1129
1129
|
};
|
|
1130
1130
|
id: string;
|
|
1131
|
-
orderId: string;
|
|
1132
1131
|
variantId: string;
|
|
1133
|
-
warehouseId: string | null;
|
|
1134
1132
|
quantity: number;
|
|
1133
|
+
orderId: string;
|
|
1134
|
+
warehouseId: string | null;
|
|
1135
1135
|
}[];
|
|
1136
1136
|
email: string | null;
|
|
1137
1137
|
id: string;
|
|
@@ -1181,19 +1181,19 @@ export declare function useCreateOrder(options?: UseMutationOptions<Awaited<Retu
|
|
|
1181
1181
|
prospectSince: string;
|
|
1182
1182
|
lastRecoveryAttemptAt: string;
|
|
1183
1183
|
brand: {
|
|
1184
|
-
createdAt: string;
|
|
1185
|
-
updatedAt: string;
|
|
1186
|
-
deletedAt: string;
|
|
1187
1184
|
id: string;
|
|
1188
1185
|
name: string;
|
|
1189
1186
|
slug: string;
|
|
1190
|
-
logoUrl: string
|
|
1187
|
+
logoUrl: string;
|
|
1191
1188
|
siteUrl: string;
|
|
1192
1189
|
domain: string;
|
|
1193
|
-
metaPixelId: string
|
|
1194
|
-
tiktokPixelId: string
|
|
1195
|
-
paystackPublicKey: string
|
|
1196
|
-
|
|
1190
|
+
metaPixelId: string;
|
|
1191
|
+
tiktokPixelId: string;
|
|
1192
|
+
paystackPublicKey: string;
|
|
1193
|
+
freeShippingThreshold: number;
|
|
1194
|
+
createdAt: string;
|
|
1195
|
+
updatedAt: string;
|
|
1196
|
+
deletedAt: string;
|
|
1197
1197
|
};
|
|
1198
1198
|
deliveryZone: {
|
|
1199
1199
|
deliveryCost: number;
|
|
@@ -1211,6 +1211,7 @@ export declare function useCreateOrder(options?: UseMutationOptions<Awaited<Retu
|
|
|
1211
1211
|
};
|
|
1212
1212
|
id: string;
|
|
1213
1213
|
name: string;
|
|
1214
|
+
isActive: boolean;
|
|
1214
1215
|
brandId: string | null;
|
|
1215
1216
|
stateId: string;
|
|
1216
1217
|
allowCOD: boolean;
|
|
@@ -1219,7 +1220,6 @@ export declare function useCreateOrder(options?: UseMutationOptions<Awaited<Retu
|
|
|
1219
1220
|
estimatedDays: number | null;
|
|
1220
1221
|
noteTitle: string | null;
|
|
1221
1222
|
noteContent: string | null;
|
|
1222
|
-
isActive: boolean;
|
|
1223
1223
|
};
|
|
1224
1224
|
items: {
|
|
1225
1225
|
priceAtPurchase: number;
|
|
@@ -1235,8 +1235,8 @@ export declare function useCreateOrder(options?: UseMutationOptions<Awaited<Retu
|
|
|
1235
1235
|
id: string;
|
|
1236
1236
|
name: string;
|
|
1237
1237
|
slug: string;
|
|
1238
|
-
brandId: string;
|
|
1239
1238
|
isActive: boolean;
|
|
1239
|
+
brandId: string;
|
|
1240
1240
|
description: string | null;
|
|
1241
1241
|
thumbnailUrl: string | null;
|
|
1242
1242
|
quantityDiscounts: string | number | boolean | {
|
|
@@ -1679,8 +1679,8 @@ export declare function useCreateOrder(options?: UseMutationOptions<Awaited<Retu
|
|
|
1679
1679
|
id: string;
|
|
1680
1680
|
name: string | null;
|
|
1681
1681
|
isActive: boolean;
|
|
1682
|
-
thumbnailUrl: string | null;
|
|
1683
1682
|
productId: string;
|
|
1683
|
+
thumbnailUrl: string | null;
|
|
1684
1684
|
sku: string;
|
|
1685
1685
|
compareAtPrice: string;
|
|
1686
1686
|
trackInventory: boolean;
|
|
@@ -1692,16 +1692,16 @@ export declare function useCreateOrder(options?: UseMutationOptions<Awaited<Retu
|
|
|
1692
1692
|
deletedAt: string;
|
|
1693
1693
|
id: string;
|
|
1694
1694
|
name: string;
|
|
1695
|
+
state: string | null;
|
|
1695
1696
|
isActive: boolean;
|
|
1696
1697
|
address: string | null;
|
|
1697
1698
|
city: string | null;
|
|
1698
|
-
state: string | null;
|
|
1699
1699
|
};
|
|
1700
1700
|
id: string;
|
|
1701
|
-
orderId: string;
|
|
1702
1701
|
variantId: string;
|
|
1703
|
-
warehouseId: string | null;
|
|
1704
1702
|
quantity: number;
|
|
1703
|
+
orderId: string;
|
|
1704
|
+
warehouseId: string | null;
|
|
1705
1705
|
}[];
|
|
1706
1706
|
email: string | null;
|
|
1707
1707
|
id: string;
|
|
@@ -1752,19 +1752,19 @@ export declare function useUpdateOrder(orderId: string, options?: UseMutationOpt
|
|
|
1752
1752
|
prospectSince: string;
|
|
1753
1753
|
lastRecoveryAttemptAt: string;
|
|
1754
1754
|
brand: {
|
|
1755
|
-
createdAt: string;
|
|
1756
|
-
updatedAt: string;
|
|
1757
|
-
deletedAt: string;
|
|
1758
1755
|
id: string;
|
|
1759
1756
|
name: string;
|
|
1760
1757
|
slug: string;
|
|
1761
|
-
logoUrl: string
|
|
1758
|
+
logoUrl: string;
|
|
1762
1759
|
siteUrl: string;
|
|
1763
1760
|
domain: string;
|
|
1764
|
-
metaPixelId: string
|
|
1765
|
-
tiktokPixelId: string
|
|
1766
|
-
paystackPublicKey: string
|
|
1767
|
-
|
|
1761
|
+
metaPixelId: string;
|
|
1762
|
+
tiktokPixelId: string;
|
|
1763
|
+
paystackPublicKey: string;
|
|
1764
|
+
freeShippingThreshold: number;
|
|
1765
|
+
createdAt: string;
|
|
1766
|
+
updatedAt: string;
|
|
1767
|
+
deletedAt: string;
|
|
1768
1768
|
};
|
|
1769
1769
|
deliveryZone: {
|
|
1770
1770
|
deliveryCost: number;
|
|
@@ -1782,6 +1782,7 @@ export declare function useUpdateOrder(orderId: string, options?: UseMutationOpt
|
|
|
1782
1782
|
};
|
|
1783
1783
|
id: string;
|
|
1784
1784
|
name: string;
|
|
1785
|
+
isActive: boolean;
|
|
1785
1786
|
brandId: string | null;
|
|
1786
1787
|
stateId: string;
|
|
1787
1788
|
allowCOD: boolean;
|
|
@@ -1790,7 +1791,6 @@ export declare function useUpdateOrder(orderId: string, options?: UseMutationOpt
|
|
|
1790
1791
|
estimatedDays: number | null;
|
|
1791
1792
|
noteTitle: string | null;
|
|
1792
1793
|
noteContent: string | null;
|
|
1793
|
-
isActive: boolean;
|
|
1794
1794
|
};
|
|
1795
1795
|
items: {
|
|
1796
1796
|
priceAtPurchase: number;
|
|
@@ -1806,8 +1806,8 @@ export declare function useUpdateOrder(orderId: string, options?: UseMutationOpt
|
|
|
1806
1806
|
id: string;
|
|
1807
1807
|
name: string;
|
|
1808
1808
|
slug: string;
|
|
1809
|
-
brandId: string;
|
|
1810
1809
|
isActive: boolean;
|
|
1810
|
+
brandId: string;
|
|
1811
1811
|
description: string | null;
|
|
1812
1812
|
thumbnailUrl: string | null;
|
|
1813
1813
|
quantityDiscounts: string | number | boolean | {
|
|
@@ -2250,8 +2250,8 @@ export declare function useUpdateOrder(orderId: string, options?: UseMutationOpt
|
|
|
2250
2250
|
id: string;
|
|
2251
2251
|
name: string | null;
|
|
2252
2252
|
isActive: boolean;
|
|
2253
|
-
thumbnailUrl: string | null;
|
|
2254
2253
|
productId: string;
|
|
2254
|
+
thumbnailUrl: string | null;
|
|
2255
2255
|
sku: string;
|
|
2256
2256
|
compareAtPrice: string;
|
|
2257
2257
|
trackInventory: boolean;
|
|
@@ -2263,16 +2263,16 @@ export declare function useUpdateOrder(orderId: string, options?: UseMutationOpt
|
|
|
2263
2263
|
deletedAt: string;
|
|
2264
2264
|
id: string;
|
|
2265
2265
|
name: string;
|
|
2266
|
+
state: string | null;
|
|
2266
2267
|
isActive: boolean;
|
|
2267
2268
|
address: string | null;
|
|
2268
2269
|
city: string | null;
|
|
2269
|
-
state: string | null;
|
|
2270
2270
|
};
|
|
2271
2271
|
id: string;
|
|
2272
|
-
orderId: string;
|
|
2273
2272
|
variantId: string;
|
|
2274
|
-
warehouseId: string | null;
|
|
2275
2273
|
quantity: number;
|
|
2274
|
+
orderId: string;
|
|
2275
|
+
warehouseId: string | null;
|
|
2276
2276
|
}[];
|
|
2277
2277
|
email: string | null;
|
|
2278
2278
|
id: string;
|
|
@@ -2312,6 +2312,7 @@ export declare function useUpdateOrder(orderId: string, options?: UseMutationOpt
|
|
|
2312
2312
|
tiktokPixelId: string | null;
|
|
2313
2313
|
paystackPublicKey: string | null;
|
|
2314
2314
|
paystackSecretKey: string | null;
|
|
2315
|
+
freeShippingThreshold: string;
|
|
2315
2316
|
createdAt: string;
|
|
2316
2317
|
updatedAt: string;
|
|
2317
2318
|
deletedAt: string;
|
|
@@ -2327,20 +2328,20 @@ export declare function useUpdateOrder(orderId: string, options?: UseMutationOpt
|
|
|
2327
2328
|
};
|
|
2328
2329
|
id: string;
|
|
2329
2330
|
name: string;
|
|
2331
|
+
freeShippingThreshold: string;
|
|
2330
2332
|
createdAt: string;
|
|
2331
2333
|
updatedAt: string;
|
|
2332
2334
|
deletedAt: string;
|
|
2335
|
+
isActive: boolean;
|
|
2333
2336
|
brandId: string | null;
|
|
2334
2337
|
stateId: string;
|
|
2335
2338
|
deliveryCost: string;
|
|
2336
|
-
freeShippingThreshold: string;
|
|
2337
2339
|
allowCOD: boolean;
|
|
2338
2340
|
allowOnline: boolean;
|
|
2339
2341
|
waybillOnly: boolean;
|
|
2340
2342
|
estimatedDays: number | null;
|
|
2341
2343
|
noteTitle: string | null;
|
|
2342
2344
|
noteContent: string | null;
|
|
2343
|
-
isActive: boolean;
|
|
2344
2345
|
};
|
|
2345
2346
|
items: {
|
|
2346
2347
|
warehouse: {
|
|
@@ -2349,10 +2350,10 @@ export declare function useUpdateOrder(orderId: string, options?: UseMutationOpt
|
|
|
2349
2350
|
createdAt: string;
|
|
2350
2351
|
updatedAt: string;
|
|
2351
2352
|
deletedAt: string;
|
|
2353
|
+
state: string | null;
|
|
2352
2354
|
isActive: boolean;
|
|
2353
2355
|
address: string | null;
|
|
2354
2356
|
city: string | null;
|
|
2355
|
-
state: string | null;
|
|
2356
2357
|
};
|
|
2357
2358
|
variant: {
|
|
2358
2359
|
product: {
|
|
@@ -2362,8 +2363,8 @@ export declare function useUpdateOrder(orderId: string, options?: UseMutationOpt
|
|
|
2362
2363
|
createdAt: string;
|
|
2363
2364
|
updatedAt: string;
|
|
2364
2365
|
deletedAt: string;
|
|
2365
|
-
brandId: string;
|
|
2366
2366
|
isActive: boolean;
|
|
2367
|
+
brandId: string;
|
|
2367
2368
|
description: string | null;
|
|
2368
2369
|
thumbnailUrl: string | null;
|
|
2369
2370
|
quantityDiscounts: string | number | boolean | {
|
|
@@ -2809,8 +2810,8 @@ export declare function useUpdateOrder(orderId: string, options?: UseMutationOpt
|
|
|
2809
2810
|
updatedAt: string;
|
|
2810
2811
|
deletedAt: string;
|
|
2811
2812
|
isActive: boolean;
|
|
2812
|
-
thumbnailUrl: string | null;
|
|
2813
2813
|
productId: string;
|
|
2814
|
+
thumbnailUrl: string | null;
|
|
2814
2815
|
sku: string;
|
|
2815
2816
|
price: string;
|
|
2816
2817
|
compareAtPrice: string;
|
|
@@ -2818,10 +2819,10 @@ export declare function useUpdateOrder(orderId: string, options?: UseMutationOpt
|
|
|
2818
2819
|
lowStockThreshold: number | null;
|
|
2819
2820
|
};
|
|
2820
2821
|
id: string;
|
|
2821
|
-
orderId: string;
|
|
2822
2822
|
variantId: string;
|
|
2823
|
-
warehouseId: string | null;
|
|
2824
2823
|
quantity: number;
|
|
2824
|
+
orderId: string;
|
|
2825
|
+
warehouseId: string | null;
|
|
2825
2826
|
priceAtPurchase: string;
|
|
2826
2827
|
}[];
|
|
2827
2828
|
notes: {
|
|
@@ -2998,6 +2999,7 @@ export declare function useUpdateOrder(orderId: string, options?: UseMutationOpt
|
|
|
2998
2999
|
recoveryDiscountCodeId: string | null;
|
|
2999
3000
|
wasRecovered: boolean;
|
|
3000
3001
|
estimatedDays: number | null;
|
|
3002
|
+
discountAmount: string;
|
|
3001
3003
|
orderNumber: number;
|
|
3002
3004
|
firstName: string;
|
|
3003
3005
|
lastName: string;
|
|
@@ -3007,7 +3009,6 @@ export declare function useUpdateOrder(orderId: string, options?: UseMutationOpt
|
|
|
3007
3009
|
deliveryCharge: string;
|
|
3008
3010
|
totalPrice: string;
|
|
3009
3011
|
discountCodeId: string | null;
|
|
3010
|
-
discountAmount: string;
|
|
3011
3012
|
paymentMethod: import("@prisma/client").$Enums.PaymentMethod;
|
|
3012
3013
|
paystackReference: string | null;
|
|
3013
3014
|
status: import("@prisma/client").$Enums.OrderStatus;
|
|
@@ -3038,19 +3039,19 @@ export declare function useUpdateOrderStatus(orderId: string, options?: UseMutat
|
|
|
3038
3039
|
prospectSince: string;
|
|
3039
3040
|
lastRecoveryAttemptAt: string;
|
|
3040
3041
|
brand: {
|
|
3041
|
-
createdAt: string;
|
|
3042
|
-
updatedAt: string;
|
|
3043
|
-
deletedAt: string;
|
|
3044
3042
|
id: string;
|
|
3045
3043
|
name: string;
|
|
3046
3044
|
slug: string;
|
|
3047
|
-
logoUrl: string
|
|
3045
|
+
logoUrl: string;
|
|
3048
3046
|
siteUrl: string;
|
|
3049
3047
|
domain: string;
|
|
3050
|
-
metaPixelId: string
|
|
3051
|
-
tiktokPixelId: string
|
|
3052
|
-
paystackPublicKey: string
|
|
3053
|
-
|
|
3048
|
+
metaPixelId: string;
|
|
3049
|
+
tiktokPixelId: string;
|
|
3050
|
+
paystackPublicKey: string;
|
|
3051
|
+
freeShippingThreshold: number;
|
|
3052
|
+
createdAt: string;
|
|
3053
|
+
updatedAt: string;
|
|
3054
|
+
deletedAt: string;
|
|
3054
3055
|
};
|
|
3055
3056
|
deliveryZone: {
|
|
3056
3057
|
deliveryCost: number;
|
|
@@ -3068,6 +3069,7 @@ export declare function useUpdateOrderStatus(orderId: string, options?: UseMutat
|
|
|
3068
3069
|
};
|
|
3069
3070
|
id: string;
|
|
3070
3071
|
name: string;
|
|
3072
|
+
isActive: boolean;
|
|
3071
3073
|
brandId: string | null;
|
|
3072
3074
|
stateId: string;
|
|
3073
3075
|
allowCOD: boolean;
|
|
@@ -3076,7 +3078,6 @@ export declare function useUpdateOrderStatus(orderId: string, options?: UseMutat
|
|
|
3076
3078
|
estimatedDays: number | null;
|
|
3077
3079
|
noteTitle: string | null;
|
|
3078
3080
|
noteContent: string | null;
|
|
3079
|
-
isActive: boolean;
|
|
3080
3081
|
};
|
|
3081
3082
|
items: {
|
|
3082
3083
|
priceAtPurchase: number;
|
|
@@ -3092,8 +3093,8 @@ export declare function useUpdateOrderStatus(orderId: string, options?: UseMutat
|
|
|
3092
3093
|
id: string;
|
|
3093
3094
|
name: string;
|
|
3094
3095
|
slug: string;
|
|
3095
|
-
brandId: string;
|
|
3096
3096
|
isActive: boolean;
|
|
3097
|
+
brandId: string;
|
|
3097
3098
|
description: string | null;
|
|
3098
3099
|
thumbnailUrl: string | null;
|
|
3099
3100
|
quantityDiscounts: string | number | boolean | {
|
|
@@ -3536,8 +3537,8 @@ export declare function useUpdateOrderStatus(orderId: string, options?: UseMutat
|
|
|
3536
3537
|
id: string;
|
|
3537
3538
|
name: string | null;
|
|
3538
3539
|
isActive: boolean;
|
|
3539
|
-
thumbnailUrl: string | null;
|
|
3540
3540
|
productId: string;
|
|
3541
|
+
thumbnailUrl: string | null;
|
|
3541
3542
|
sku: string;
|
|
3542
3543
|
compareAtPrice: string;
|
|
3543
3544
|
trackInventory: boolean;
|
|
@@ -3549,16 +3550,16 @@ export declare function useUpdateOrderStatus(orderId: string, options?: UseMutat
|
|
|
3549
3550
|
deletedAt: string;
|
|
3550
3551
|
id: string;
|
|
3551
3552
|
name: string;
|
|
3553
|
+
state: string | null;
|
|
3552
3554
|
isActive: boolean;
|
|
3553
3555
|
address: string | null;
|
|
3554
3556
|
city: string | null;
|
|
3555
|
-
state: string | null;
|
|
3556
3557
|
};
|
|
3557
3558
|
id: string;
|
|
3558
|
-
orderId: string;
|
|
3559
3559
|
variantId: string;
|
|
3560
|
-
warehouseId: string | null;
|
|
3561
3560
|
quantity: number;
|
|
3561
|
+
orderId: string;
|
|
3562
|
+
warehouseId: string | null;
|
|
3562
3563
|
}[];
|
|
3563
3564
|
email: string | null;
|
|
3564
3565
|
id: string;
|