@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
|
@@ -24,19 +24,19 @@ export declare function fetchOrder(orderId: string, token: string): Promise<{
|
|
|
24
24
|
prospectSince: string;
|
|
25
25
|
lastRecoveryAttemptAt: string;
|
|
26
26
|
brand: {
|
|
27
|
-
createdAt: string;
|
|
28
|
-
updatedAt: string;
|
|
29
|
-
deletedAt: string;
|
|
30
27
|
id: string;
|
|
31
28
|
name: string;
|
|
32
29
|
slug: string;
|
|
33
|
-
logoUrl: string
|
|
30
|
+
logoUrl: string;
|
|
34
31
|
siteUrl: string;
|
|
35
32
|
domain: string;
|
|
36
|
-
metaPixelId: string
|
|
37
|
-
tiktokPixelId: string
|
|
38
|
-
paystackPublicKey: string
|
|
39
|
-
|
|
33
|
+
metaPixelId: string;
|
|
34
|
+
tiktokPixelId: string;
|
|
35
|
+
paystackPublicKey: string;
|
|
36
|
+
freeShippingThreshold: number;
|
|
37
|
+
createdAt: string;
|
|
38
|
+
updatedAt: string;
|
|
39
|
+
deletedAt: string;
|
|
40
40
|
};
|
|
41
41
|
deliveryZone: {
|
|
42
42
|
deliveryCost: number;
|
|
@@ -54,6 +54,7 @@ export declare function fetchOrder(orderId: string, token: string): Promise<{
|
|
|
54
54
|
};
|
|
55
55
|
id: string;
|
|
56
56
|
name: string;
|
|
57
|
+
isActive: boolean;
|
|
57
58
|
brandId: string | null;
|
|
58
59
|
stateId: string;
|
|
59
60
|
allowCOD: boolean;
|
|
@@ -62,7 +63,6 @@ export declare function fetchOrder(orderId: string, token: string): Promise<{
|
|
|
62
63
|
estimatedDays: number | null;
|
|
63
64
|
noteTitle: string | null;
|
|
64
65
|
noteContent: string | null;
|
|
65
|
-
isActive: boolean;
|
|
66
66
|
};
|
|
67
67
|
items: {
|
|
68
68
|
priceAtPurchase: number;
|
|
@@ -78,8 +78,8 @@ export declare function fetchOrder(orderId: string, token: string): Promise<{
|
|
|
78
78
|
id: string;
|
|
79
79
|
name: string;
|
|
80
80
|
slug: string;
|
|
81
|
-
brandId: string;
|
|
82
81
|
isActive: boolean;
|
|
82
|
+
brandId: string;
|
|
83
83
|
description: string | null;
|
|
84
84
|
thumbnailUrl: string | null;
|
|
85
85
|
quantityDiscounts: string | number | boolean | {
|
|
@@ -522,8 +522,8 @@ export declare function fetchOrder(orderId: string, token: string): Promise<{
|
|
|
522
522
|
id: string;
|
|
523
523
|
name: string | null;
|
|
524
524
|
isActive: boolean;
|
|
525
|
-
thumbnailUrl: string | null;
|
|
526
525
|
productId: string;
|
|
526
|
+
thumbnailUrl: string | null;
|
|
527
527
|
sku: string;
|
|
528
528
|
compareAtPrice: string;
|
|
529
529
|
trackInventory: boolean;
|
|
@@ -535,16 +535,16 @@ export declare function fetchOrder(orderId: string, token: string): Promise<{
|
|
|
535
535
|
deletedAt: string;
|
|
536
536
|
id: string;
|
|
537
537
|
name: string;
|
|
538
|
+
state: string | null;
|
|
538
539
|
isActive: boolean;
|
|
539
540
|
address: string | null;
|
|
540
541
|
city: string | null;
|
|
541
|
-
state: string | null;
|
|
542
542
|
};
|
|
543
543
|
id: string;
|
|
544
|
-
orderId: string;
|
|
545
544
|
variantId: string;
|
|
546
|
-
warehouseId: string | null;
|
|
547
545
|
quantity: number;
|
|
546
|
+
orderId: string;
|
|
547
|
+
warehouseId: string | null;
|
|
548
548
|
}[];
|
|
549
549
|
email: string | null;
|
|
550
550
|
id: string;
|
|
@@ -586,19 +586,19 @@ export declare function confirmOrder(orderId: string, token: string): Promise<{
|
|
|
586
586
|
prospectSince: string;
|
|
587
587
|
lastRecoveryAttemptAt: string;
|
|
588
588
|
brand: {
|
|
589
|
-
createdAt: string;
|
|
590
|
-
updatedAt: string;
|
|
591
|
-
deletedAt: string;
|
|
592
589
|
id: string;
|
|
593
590
|
name: string;
|
|
594
591
|
slug: string;
|
|
595
|
-
logoUrl: string
|
|
592
|
+
logoUrl: string;
|
|
596
593
|
siteUrl: string;
|
|
597
594
|
domain: string;
|
|
598
|
-
metaPixelId: string
|
|
599
|
-
tiktokPixelId: string
|
|
600
|
-
paystackPublicKey: string
|
|
601
|
-
|
|
595
|
+
metaPixelId: string;
|
|
596
|
+
tiktokPixelId: string;
|
|
597
|
+
paystackPublicKey: string;
|
|
598
|
+
freeShippingThreshold: number;
|
|
599
|
+
createdAt: string;
|
|
600
|
+
updatedAt: string;
|
|
601
|
+
deletedAt: string;
|
|
602
602
|
};
|
|
603
603
|
deliveryZone: {
|
|
604
604
|
deliveryCost: number;
|
|
@@ -616,6 +616,7 @@ export declare function confirmOrder(orderId: string, token: string): Promise<{
|
|
|
616
616
|
};
|
|
617
617
|
id: string;
|
|
618
618
|
name: string;
|
|
619
|
+
isActive: boolean;
|
|
619
620
|
brandId: string | null;
|
|
620
621
|
stateId: string;
|
|
621
622
|
allowCOD: boolean;
|
|
@@ -624,7 +625,6 @@ export declare function confirmOrder(orderId: string, token: string): Promise<{
|
|
|
624
625
|
estimatedDays: number | null;
|
|
625
626
|
noteTitle: string | null;
|
|
626
627
|
noteContent: string | null;
|
|
627
|
-
isActive: boolean;
|
|
628
628
|
};
|
|
629
629
|
items: {
|
|
630
630
|
priceAtPurchase: number;
|
|
@@ -640,8 +640,8 @@ export declare function confirmOrder(orderId: string, token: string): Promise<{
|
|
|
640
640
|
id: string;
|
|
641
641
|
name: string;
|
|
642
642
|
slug: string;
|
|
643
|
-
brandId: string;
|
|
644
643
|
isActive: boolean;
|
|
644
|
+
brandId: string;
|
|
645
645
|
description: string | null;
|
|
646
646
|
thumbnailUrl: string | null;
|
|
647
647
|
quantityDiscounts: string | number | boolean | {
|
|
@@ -1084,8 +1084,8 @@ export declare function confirmOrder(orderId: string, token: string): Promise<{
|
|
|
1084
1084
|
id: string;
|
|
1085
1085
|
name: string | null;
|
|
1086
1086
|
isActive: boolean;
|
|
1087
|
-
thumbnailUrl: string | null;
|
|
1088
1087
|
productId: string;
|
|
1088
|
+
thumbnailUrl: string | null;
|
|
1089
1089
|
sku: string;
|
|
1090
1090
|
compareAtPrice: string;
|
|
1091
1091
|
trackInventory: boolean;
|
|
@@ -1097,16 +1097,16 @@ export declare function confirmOrder(orderId: string, token: string): Promise<{
|
|
|
1097
1097
|
deletedAt: string;
|
|
1098
1098
|
id: string;
|
|
1099
1099
|
name: string;
|
|
1100
|
+
state: string | null;
|
|
1100
1101
|
isActive: boolean;
|
|
1101
1102
|
address: string | null;
|
|
1102
1103
|
city: string | null;
|
|
1103
|
-
state: string | null;
|
|
1104
1104
|
};
|
|
1105
1105
|
id: string;
|
|
1106
|
-
orderId: string;
|
|
1107
1106
|
variantId: string;
|
|
1108
|
-
warehouseId: string | null;
|
|
1109
1107
|
quantity: number;
|
|
1108
|
+
orderId: string;
|
|
1109
|
+
warehouseId: string | null;
|
|
1110
1110
|
}[];
|
|
1111
1111
|
email: string | null;
|
|
1112
1112
|
id: string;
|
|
@@ -1139,6 +1139,10 @@ export declare function confirmOrder(orderId: string, token: string): Promise<{
|
|
|
1139
1139
|
* @returns Array of recommended products
|
|
1140
1140
|
*/
|
|
1141
1141
|
export declare function fetchOrderRecommendations(orderId: string, token: string, limit?: number): Promise<{
|
|
1142
|
+
isOnSale: boolean;
|
|
1143
|
+
saleId: string;
|
|
1144
|
+
saleName: string;
|
|
1145
|
+
saleEndsAt: string;
|
|
1142
1146
|
id: string;
|
|
1143
1147
|
name: string;
|
|
1144
1148
|
slug: string;
|
|
@@ -1299,6 +1303,7 @@ export declare function fetchOrderRecommendations(orderId: string, token: string
|
|
|
1299
1303
|
metaPixelId: string;
|
|
1300
1304
|
tiktokPixelId: string;
|
|
1301
1305
|
paystackPublicKey: string;
|
|
1306
|
+
freeShippingThreshold: number;
|
|
1302
1307
|
createdAt: string;
|
|
1303
1308
|
updatedAt: string;
|
|
1304
1309
|
deletedAt: string;
|
|
@@ -1309,10 +1314,11 @@ export declare function fetchOrderRecommendations(orderId: string, token: string
|
|
|
1309
1314
|
price: number;
|
|
1310
1315
|
compareAtPrice: number;
|
|
1311
1316
|
deletedAt: string;
|
|
1317
|
+
thumbnailUrl: string;
|
|
1318
|
+
originalPrice: number;
|
|
1312
1319
|
id: string;
|
|
1313
1320
|
name: string | null;
|
|
1314
1321
|
isActive: boolean;
|
|
1315
|
-
thumbnailUrl: string | null;
|
|
1316
1322
|
productId: string;
|
|
1317
1323
|
sku: string;
|
|
1318
1324
|
trackInventory: boolean;
|
|
@@ -1609,9 +1615,28 @@ export declare function fetchOrderRecommendations(orderId: string, token: string
|
|
|
1609
1615
|
flat?: boolean;
|
|
1610
1616
|
};
|
|
1611
1617
|
};
|
|
1618
|
+
sales: {
|
|
1619
|
+
sale: {
|
|
1620
|
+
id: string;
|
|
1621
|
+
name: string;
|
|
1622
|
+
createdAt: string;
|
|
1623
|
+
updatedAt: string;
|
|
1624
|
+
deletedAt: string;
|
|
1625
|
+
isActive: boolean;
|
|
1626
|
+
brandId: string;
|
|
1627
|
+
discountType: import("@prisma/client").$Enums.DiscountType;
|
|
1628
|
+
discountValue: string;
|
|
1629
|
+
startDate: string;
|
|
1630
|
+
endDate: string;
|
|
1631
|
+
};
|
|
1632
|
+
id: string;
|
|
1633
|
+
createdAt: string;
|
|
1634
|
+
productId: string;
|
|
1635
|
+
saleId: string;
|
|
1636
|
+
}[];
|
|
1612
1637
|
createdAt: string;
|
|
1613
1638
|
updatedAt: string;
|
|
1614
1639
|
deletedAt: string;
|
|
1615
|
-
brandId: string;
|
|
1616
1640
|
isActive: boolean;
|
|
1641
|
+
brandId: string;
|
|
1617
1642
|
}[]>;
|
|
@@ -13,19 +13,19 @@ export declare function useListAbandonedCarts(params?: {
|
|
|
13
13
|
carts: {
|
|
14
14
|
id: string;
|
|
15
15
|
brand: {
|
|
16
|
-
createdAt: string;
|
|
17
|
-
updatedAt: string;
|
|
18
|
-
deletedAt: string;
|
|
19
16
|
id: string;
|
|
20
17
|
name: string;
|
|
21
18
|
slug: string;
|
|
22
|
-
logoUrl: string
|
|
19
|
+
logoUrl: string;
|
|
23
20
|
siteUrl: string;
|
|
24
21
|
domain: string;
|
|
25
|
-
metaPixelId: string
|
|
26
|
-
tiktokPixelId: string
|
|
27
|
-
paystackPublicKey: string
|
|
28
|
-
|
|
22
|
+
metaPixelId: string;
|
|
23
|
+
tiktokPixelId: string;
|
|
24
|
+
paystackPublicKey: string;
|
|
25
|
+
freeShippingThreshold: number;
|
|
26
|
+
createdAt: string;
|
|
27
|
+
updatedAt: string;
|
|
28
|
+
deletedAt: string;
|
|
29
29
|
};
|
|
30
30
|
customerPhone: string;
|
|
31
31
|
customerEmail: string;
|
|
@@ -45,9 +45,10 @@ export declare function useListAbandonedCarts(params?: {
|
|
|
45
45
|
createdAt: string;
|
|
46
46
|
updatedAt: string;
|
|
47
47
|
deletedAt: string;
|
|
48
|
-
brandId: string | null;
|
|
49
|
-
isActive: boolean;
|
|
50
48
|
code: string;
|
|
49
|
+
isActive: boolean;
|
|
50
|
+
brandId: string | null;
|
|
51
|
+
description: string | null;
|
|
51
52
|
minPurchase: string;
|
|
52
53
|
maxDiscount: string;
|
|
53
54
|
usageLimit: number | null;
|
|
@@ -56,14 +57,12 @@ export declare function useListAbandonedCarts(params?: {
|
|
|
56
57
|
validFrom: string;
|
|
57
58
|
validUntil: string;
|
|
58
59
|
isAutoApply: boolean;
|
|
59
|
-
description: string | null;
|
|
60
60
|
category: string;
|
|
61
61
|
createdBy: string | null;
|
|
62
62
|
};
|
|
63
63
|
items: {
|
|
64
64
|
id: string;
|
|
65
65
|
variant: {
|
|
66
|
-
price: number;
|
|
67
66
|
product: {
|
|
68
67
|
id: string;
|
|
69
68
|
name: string;
|
|
@@ -71,8 +70,8 @@ export declare function useListAbandonedCarts(params?: {
|
|
|
71
70
|
createdAt: string;
|
|
72
71
|
updatedAt: string;
|
|
73
72
|
deletedAt: string;
|
|
74
|
-
brandId: string;
|
|
75
73
|
isActive: boolean;
|
|
74
|
+
brandId: string;
|
|
76
75
|
description: string | null;
|
|
77
76
|
thumbnailUrl: string | null;
|
|
78
77
|
quantityDiscounts: string | number | boolean | {
|
|
@@ -512,16 +511,18 @@ export declare function useListAbandonedCarts(params?: {
|
|
|
512
511
|
};
|
|
513
512
|
};
|
|
514
513
|
};
|
|
515
|
-
id: string;
|
|
516
|
-
name: string | null;
|
|
517
514
|
createdAt: string;
|
|
518
515
|
updatedAt: string;
|
|
516
|
+
price: number;
|
|
517
|
+
compareAtPrice: number;
|
|
519
518
|
deletedAt: string;
|
|
519
|
+
thumbnailUrl: string;
|
|
520
|
+
originalPrice: number;
|
|
521
|
+
id: string;
|
|
522
|
+
name: string | null;
|
|
520
523
|
isActive: boolean;
|
|
521
|
-
thumbnailUrl: string | null;
|
|
522
524
|
productId: string;
|
|
523
525
|
sku: string;
|
|
524
|
-
compareAtPrice: string;
|
|
525
526
|
trackInventory: boolean;
|
|
526
527
|
lowStockThreshold: number | null;
|
|
527
528
|
};
|
|
@@ -574,19 +575,19 @@ export declare function useGetAbandonedCartStats(params?: {
|
|
|
574
575
|
export declare function useGetAbandonedCart(cartId: string, options?: Omit<UseQueryOptions<Awaited<ReturnType<Awaited<ReturnType<ReturnType<typeof createAdminRpcClients>['abandonedCarts'][':id']['$get']>>['json']>>, Error>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<{
|
|
575
576
|
id: string;
|
|
576
577
|
brand: {
|
|
577
|
-
createdAt: string;
|
|
578
|
-
updatedAt: string;
|
|
579
|
-
deletedAt: string;
|
|
580
578
|
id: string;
|
|
581
579
|
name: string;
|
|
582
580
|
slug: string;
|
|
583
|
-
logoUrl: string
|
|
581
|
+
logoUrl: string;
|
|
584
582
|
siteUrl: string;
|
|
585
583
|
domain: string;
|
|
586
|
-
metaPixelId: string
|
|
587
|
-
tiktokPixelId: string
|
|
588
|
-
paystackPublicKey: string
|
|
589
|
-
|
|
584
|
+
metaPixelId: string;
|
|
585
|
+
tiktokPixelId: string;
|
|
586
|
+
paystackPublicKey: string;
|
|
587
|
+
freeShippingThreshold: number;
|
|
588
|
+
createdAt: string;
|
|
589
|
+
updatedAt: string;
|
|
590
|
+
deletedAt: string;
|
|
590
591
|
};
|
|
591
592
|
customerPhone: string;
|
|
592
593
|
customerEmail: string;
|
|
@@ -606,9 +607,10 @@ export declare function useGetAbandonedCart(cartId: string, options?: Omit<UseQu
|
|
|
606
607
|
createdAt: string;
|
|
607
608
|
updatedAt: string;
|
|
608
609
|
deletedAt: string;
|
|
609
|
-
brandId: string | null;
|
|
610
|
-
isActive: boolean;
|
|
611
610
|
code: string;
|
|
611
|
+
isActive: boolean;
|
|
612
|
+
brandId: string | null;
|
|
613
|
+
description: string | null;
|
|
612
614
|
minPurchase: string;
|
|
613
615
|
maxDiscount: string;
|
|
614
616
|
usageLimit: number | null;
|
|
@@ -617,14 +619,12 @@ export declare function useGetAbandonedCart(cartId: string, options?: Omit<UseQu
|
|
|
617
619
|
validFrom: string;
|
|
618
620
|
validUntil: string;
|
|
619
621
|
isAutoApply: boolean;
|
|
620
|
-
description: string | null;
|
|
621
622
|
category: string;
|
|
622
623
|
createdBy: string | null;
|
|
623
624
|
};
|
|
624
625
|
items: {
|
|
625
626
|
id: string;
|
|
626
627
|
variant: {
|
|
627
|
-
price: number;
|
|
628
628
|
product: {
|
|
629
629
|
id: string;
|
|
630
630
|
name: string;
|
|
@@ -632,8 +632,8 @@ export declare function useGetAbandonedCart(cartId: string, options?: Omit<UseQu
|
|
|
632
632
|
createdAt: string;
|
|
633
633
|
updatedAt: string;
|
|
634
634
|
deletedAt: string;
|
|
635
|
-
brandId: string;
|
|
636
635
|
isActive: boolean;
|
|
636
|
+
brandId: string;
|
|
637
637
|
description: string | null;
|
|
638
638
|
thumbnailUrl: string | null;
|
|
639
639
|
quantityDiscounts: string | number | boolean | {
|
|
@@ -1073,16 +1073,18 @@ export declare function useGetAbandonedCart(cartId: string, options?: Omit<UseQu
|
|
|
1073
1073
|
};
|
|
1074
1074
|
};
|
|
1075
1075
|
};
|
|
1076
|
-
id: string;
|
|
1077
|
-
name: string | null;
|
|
1078
1076
|
createdAt: string;
|
|
1079
1077
|
updatedAt: string;
|
|
1078
|
+
price: number;
|
|
1079
|
+
compareAtPrice: number;
|
|
1080
1080
|
deletedAt: string;
|
|
1081
|
+
thumbnailUrl: string;
|
|
1082
|
+
originalPrice: number;
|
|
1083
|
+
id: string;
|
|
1084
|
+
name: string | null;
|
|
1081
1085
|
isActive: boolean;
|
|
1082
|
-
thumbnailUrl: string | null;
|
|
1083
1086
|
productId: string;
|
|
1084
1087
|
sku: string;
|
|
1085
|
-
compareAtPrice: string;
|
|
1086
1088
|
trackInventory: boolean;
|
|
1087
1089
|
lowStockThreshold: number | null;
|
|
1088
1090
|
};
|
|
@@ -17,6 +17,7 @@ export declare function useListBrands(options?: Omit<UseQueryOptions<Awaited<Ret
|
|
|
17
17
|
tiktokPixelId: string | null;
|
|
18
18
|
paystackPublicKey: string | null;
|
|
19
19
|
paystackSecretKey: string | null;
|
|
20
|
+
freeShippingThreshold: string;
|
|
20
21
|
createdAt: string;
|
|
21
22
|
updatedAt: string;
|
|
22
23
|
deletedAt: string;
|
|
@@ -35,6 +36,7 @@ export declare function useGetBrand(brandId: string, options?: Omit<UseQueryOpti
|
|
|
35
36
|
tiktokPixelId: string | null;
|
|
36
37
|
paystackPublicKey: string | null;
|
|
37
38
|
paystackSecretKey: string | null;
|
|
39
|
+
freeShippingThreshold: string;
|
|
38
40
|
createdAt: string;
|
|
39
41
|
updatedAt: string;
|
|
40
42
|
deletedAt: string;
|
|
@@ -53,6 +55,7 @@ export declare function useCreateBrand(options?: UseMutationOptions<Awaited<Retu
|
|
|
53
55
|
tiktokPixelId: string | null;
|
|
54
56
|
paystackPublicKey: string | null;
|
|
55
57
|
paystackSecretKey: string | null;
|
|
58
|
+
freeShippingThreshold: string;
|
|
56
59
|
createdAt: string;
|
|
57
60
|
updatedAt: string;
|
|
58
61
|
deletedAt: string;
|
|
@@ -76,6 +79,7 @@ export declare function useUpdateBrand(brandId: string, options?: UseMutationOpt
|
|
|
76
79
|
tiktokPixelId: string | null;
|
|
77
80
|
paystackPublicKey: string | null;
|
|
78
81
|
paystackSecretKey: string | null;
|
|
82
|
+
freeShippingThreshold: string;
|
|
79
83
|
createdAt: string;
|
|
80
84
|
updatedAt: string;
|
|
81
85
|
deletedAt: string;
|
|
@@ -28,19 +28,19 @@ export declare function useGetCustomerHistory(phone: string, options?: Omit<UseQ
|
|
|
28
28
|
prospectSince: string;
|
|
29
29
|
lastRecoveryAttemptAt: string;
|
|
30
30
|
brand: {
|
|
31
|
-
createdAt: string;
|
|
32
|
-
updatedAt: string;
|
|
33
|
-
deletedAt: string;
|
|
34
31
|
id: string;
|
|
35
32
|
name: string;
|
|
36
33
|
slug: string;
|
|
37
|
-
logoUrl: string
|
|
34
|
+
logoUrl: string;
|
|
38
35
|
siteUrl: string;
|
|
39
36
|
domain: string;
|
|
40
|
-
metaPixelId: string
|
|
41
|
-
tiktokPixelId: string
|
|
42
|
-
paystackPublicKey: string
|
|
43
|
-
|
|
37
|
+
metaPixelId: string;
|
|
38
|
+
tiktokPixelId: string;
|
|
39
|
+
paystackPublicKey: string;
|
|
40
|
+
freeShippingThreshold: number;
|
|
41
|
+
createdAt: string;
|
|
42
|
+
updatedAt: string;
|
|
43
|
+
deletedAt: string;
|
|
44
44
|
};
|
|
45
45
|
deliveryZone: {
|
|
46
46
|
deliveryCost: number;
|
|
@@ -58,6 +58,7 @@ export declare function useGetCustomerHistory(phone: string, options?: Omit<UseQ
|
|
|
58
58
|
};
|
|
59
59
|
id: string;
|
|
60
60
|
name: string;
|
|
61
|
+
isActive: boolean;
|
|
61
62
|
brandId: string | null;
|
|
62
63
|
stateId: string;
|
|
63
64
|
allowCOD: boolean;
|
|
@@ -66,7 +67,6 @@ export declare function useGetCustomerHistory(phone: string, options?: Omit<UseQ
|
|
|
66
67
|
estimatedDays: number | null;
|
|
67
68
|
noteTitle: string | null;
|
|
68
69
|
noteContent: string | null;
|
|
69
|
-
isActive: boolean;
|
|
70
70
|
};
|
|
71
71
|
items: {
|
|
72
72
|
priceAtPurchase: number;
|
|
@@ -82,8 +82,8 @@ export declare function useGetCustomerHistory(phone: string, options?: Omit<UseQ
|
|
|
82
82
|
id: string;
|
|
83
83
|
name: string;
|
|
84
84
|
slug: string;
|
|
85
|
-
brandId: string;
|
|
86
85
|
isActive: boolean;
|
|
86
|
+
brandId: string;
|
|
87
87
|
description: string | null;
|
|
88
88
|
thumbnailUrl: string | null;
|
|
89
89
|
quantityDiscounts: string | number | boolean | {
|
|
@@ -526,8 +526,8 @@ export declare function useGetCustomerHistory(phone: string, options?: Omit<UseQ
|
|
|
526
526
|
id: string;
|
|
527
527
|
name: string | null;
|
|
528
528
|
isActive: boolean;
|
|
529
|
-
thumbnailUrl: string | null;
|
|
530
529
|
productId: string;
|
|
530
|
+
thumbnailUrl: string | null;
|
|
531
531
|
sku: string;
|
|
532
532
|
compareAtPrice: string;
|
|
533
533
|
trackInventory: boolean;
|
|
@@ -539,16 +539,16 @@ export declare function useGetCustomerHistory(phone: string, options?: Omit<UseQ
|
|
|
539
539
|
deletedAt: string;
|
|
540
540
|
id: string;
|
|
541
541
|
name: string;
|
|
542
|
+
state: string | null;
|
|
542
543
|
isActive: boolean;
|
|
543
544
|
address: string | null;
|
|
544
545
|
city: string | null;
|
|
545
|
-
state: string | null;
|
|
546
546
|
};
|
|
547
547
|
id: string;
|
|
548
|
-
orderId: string;
|
|
549
548
|
variantId: string;
|
|
550
|
-
warehouseId: string | null;
|
|
551
549
|
quantity: number;
|
|
550
|
+
orderId: string;
|
|
551
|
+
warehouseId: string | null;
|
|
552
552
|
}[];
|
|
553
553
|
email: string | null;
|
|
554
554
|
id: string;
|
|
@@ -9,7 +9,6 @@ import { createAdminRpcClients } from '../../rpc-client';
|
|
|
9
9
|
export declare function useListStates(options?: Omit<UseQueryOptions<Awaited<ReturnType<Awaited<ReturnType<ReturnType<typeof createAdminRpcClients>['deliveryZones']['states']['$get']>>['json']>>, Error>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<{
|
|
10
10
|
deliveryZones: {
|
|
11
11
|
deliveryCost: number;
|
|
12
|
-
freeShippingThreshold: number;
|
|
13
12
|
createdAt: string;
|
|
14
13
|
updatedAt: string;
|
|
15
14
|
deletedAt: string;
|
|
@@ -23,6 +22,7 @@ export declare function useListStates(options?: Omit<UseQueryOptions<Awaited<Ret
|
|
|
23
22
|
metaPixelId: string;
|
|
24
23
|
tiktokPixelId: string;
|
|
25
24
|
paystackPublicKey: string;
|
|
25
|
+
freeShippingThreshold: number;
|
|
26
26
|
createdAt: string;
|
|
27
27
|
updatedAt: string;
|
|
28
28
|
deletedAt: string;
|
|
@@ -39,6 +39,8 @@ export declare function useListStates(options?: Omit<UseQueryOptions<Awaited<Ret
|
|
|
39
39
|
};
|
|
40
40
|
id: string;
|
|
41
41
|
name: string;
|
|
42
|
+
freeShippingThreshold: string;
|
|
43
|
+
isActive: boolean;
|
|
42
44
|
brandId: string | null;
|
|
43
45
|
stateId: string;
|
|
44
46
|
allowCOD: boolean;
|
|
@@ -47,7 +49,6 @@ export declare function useListStates(options?: Omit<UseQueryOptions<Awaited<Ret
|
|
|
47
49
|
estimatedDays: number | null;
|
|
48
50
|
noteTitle: string | null;
|
|
49
51
|
noteContent: string | null;
|
|
50
|
-
isActive: boolean;
|
|
51
52
|
}[];
|
|
52
53
|
zonesCount: number;
|
|
53
54
|
createdAt: string;
|
|
@@ -120,7 +121,6 @@ export declare function useListDeliveryZones(params?: {
|
|
|
120
121
|
brandId?: string;
|
|
121
122
|
}, options?: Omit<UseQueryOptions<Awaited<ReturnType<Awaited<ReturnType<ReturnType<typeof createAdminRpcClients>['deliveryZones']['zones']['$get']>>['json']>>, Error>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<{
|
|
122
123
|
deliveryCost: number;
|
|
123
|
-
freeShippingThreshold: number;
|
|
124
124
|
createdAt: string;
|
|
125
125
|
updatedAt: string;
|
|
126
126
|
deletedAt: string;
|
|
@@ -134,6 +134,7 @@ export declare function useListDeliveryZones(params?: {
|
|
|
134
134
|
metaPixelId: string;
|
|
135
135
|
tiktokPixelId: string;
|
|
136
136
|
paystackPublicKey: string;
|
|
137
|
+
freeShippingThreshold: number;
|
|
137
138
|
createdAt: string;
|
|
138
139
|
updatedAt: string;
|
|
139
140
|
deletedAt: string;
|
|
@@ -150,6 +151,8 @@ export declare function useListDeliveryZones(params?: {
|
|
|
150
151
|
};
|
|
151
152
|
id: string;
|
|
152
153
|
name: string;
|
|
154
|
+
freeShippingThreshold: string;
|
|
155
|
+
isActive: boolean;
|
|
153
156
|
brandId: string | null;
|
|
154
157
|
stateId: string;
|
|
155
158
|
allowCOD: boolean;
|
|
@@ -158,14 +161,12 @@ export declare function useListDeliveryZones(params?: {
|
|
|
158
161
|
estimatedDays: number | null;
|
|
159
162
|
noteTitle: string | null;
|
|
160
163
|
noteContent: string | null;
|
|
161
|
-
isActive: boolean;
|
|
162
164
|
}[], Error>;
|
|
163
165
|
/**
|
|
164
166
|
* Hook to create a delivery zone using admin RPC
|
|
165
167
|
*/
|
|
166
168
|
export declare function useCreateDeliveryZone(options?: UseMutationOptions<Awaited<ReturnType<Awaited<ReturnType<ReturnType<typeof createAdminRpcClients>['deliveryZones']['zones']['$post']>>['json']>>, Error, any>): import("@tanstack/react-query").UseMutationResult<{
|
|
167
169
|
deliveryCost: number;
|
|
168
|
-
freeShippingThreshold: number;
|
|
169
170
|
createdAt: string;
|
|
170
171
|
updatedAt: string;
|
|
171
172
|
deletedAt: string;
|
|
@@ -179,6 +180,7 @@ export declare function useCreateDeliveryZone(options?: UseMutationOptions<Await
|
|
|
179
180
|
metaPixelId: string;
|
|
180
181
|
tiktokPixelId: string;
|
|
181
182
|
paystackPublicKey: string;
|
|
183
|
+
freeShippingThreshold: number;
|
|
182
184
|
createdAt: string;
|
|
183
185
|
updatedAt: string;
|
|
184
186
|
deletedAt: string;
|
|
@@ -195,6 +197,8 @@ export declare function useCreateDeliveryZone(options?: UseMutationOptions<Await
|
|
|
195
197
|
};
|
|
196
198
|
id: string;
|
|
197
199
|
name: string;
|
|
200
|
+
freeShippingThreshold: string;
|
|
201
|
+
isActive: boolean;
|
|
198
202
|
brandId: string | null;
|
|
199
203
|
stateId: string;
|
|
200
204
|
allowCOD: boolean;
|
|
@@ -203,7 +207,6 @@ export declare function useCreateDeliveryZone(options?: UseMutationOptions<Await
|
|
|
203
207
|
estimatedDays: number | null;
|
|
204
208
|
noteTitle: string | null;
|
|
205
209
|
noteContent: string | null;
|
|
206
|
-
isActive: boolean;
|
|
207
210
|
} | {
|
|
208
211
|
error: {
|
|
209
212
|
code: string;
|
|
@@ -225,7 +228,6 @@ export declare function useCreateDeliveryZone(options?: UseMutationOptions<Await
|
|
|
225
228
|
*/
|
|
226
229
|
export declare function useUpdateDeliveryZone(zoneId: string, options?: UseMutationOptions<Awaited<ReturnType<Awaited<ReturnType<ReturnType<typeof createAdminRpcClients>['deliveryZones']['zones'][':id']['$patch']>>['json']>>, Error, any>): import("@tanstack/react-query").UseMutationResult<{
|
|
227
230
|
deliveryCost: number;
|
|
228
|
-
freeShippingThreshold: number;
|
|
229
231
|
createdAt: string;
|
|
230
232
|
updatedAt: string;
|
|
231
233
|
deletedAt: string;
|
|
@@ -239,6 +241,7 @@ export declare function useUpdateDeliveryZone(zoneId: string, options?: UseMutat
|
|
|
239
241
|
metaPixelId: string;
|
|
240
242
|
tiktokPixelId: string;
|
|
241
243
|
paystackPublicKey: string;
|
|
244
|
+
freeShippingThreshold: number;
|
|
242
245
|
createdAt: string;
|
|
243
246
|
updatedAt: string;
|
|
244
247
|
deletedAt: string;
|
|
@@ -255,6 +258,8 @@ export declare function useUpdateDeliveryZone(zoneId: string, options?: UseMutat
|
|
|
255
258
|
};
|
|
256
259
|
id: string;
|
|
257
260
|
name: string;
|
|
261
|
+
freeShippingThreshold: string;
|
|
262
|
+
isActive: boolean;
|
|
258
263
|
brandId: string | null;
|
|
259
264
|
stateId: string;
|
|
260
265
|
allowCOD: boolean;
|
|
@@ -263,7 +268,6 @@ export declare function useUpdateDeliveryZone(zoneId: string, options?: UseMutat
|
|
|
263
268
|
estimatedDays: number | null;
|
|
264
269
|
noteTitle: string | null;
|
|
265
270
|
noteContent: string | null;
|
|
266
|
-
isActive: boolean;
|
|
267
271
|
} | {
|
|
268
272
|
error: {
|
|
269
273
|
code: string;
|