@instockng/api-client 1.0.35 → 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/fetchers/brands.d.ts +1 -0
- package/dist/fetchers/carts.d.ts +113 -112
- package/dist/fetchers/delivery-zones.d.ts +0 -1
- package/dist/fetchers/orders.d.ts +31 -30
- package/dist/hooks/admin/abandoned-carts.d.ts +24 -24
- 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/orders.d.ts +79 -78
- package/dist/hooks/admin/products.d.ts +6 -4
- package/dist/hooks/admin/stats.d.ts +14 -14
- 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 +113 -112
- package/dist/hooks/public/delivery-zones.d.ts +0 -1
- package/dist/hooks/public/orders.d.ts +31 -30
- package/dist/rpc-client.d.ts +354 -330
- package/dist/rpc-types.d.ts +9 -6
- 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;
|
|
@@ -1303,6 +1303,7 @@ export declare function fetchOrderRecommendations(orderId: string, token: string
|
|
|
1303
1303
|
metaPixelId: string;
|
|
1304
1304
|
tiktokPixelId: string;
|
|
1305
1305
|
paystackPublicKey: string;
|
|
1306
|
+
freeShippingThreshold: number;
|
|
1306
1307
|
createdAt: string;
|
|
1307
1308
|
updatedAt: string;
|
|
1308
1309
|
deletedAt: string;
|
|
@@ -1621,8 +1622,8 @@ export declare function fetchOrderRecommendations(orderId: string, token: string
|
|
|
1621
1622
|
createdAt: string;
|
|
1622
1623
|
updatedAt: string;
|
|
1623
1624
|
deletedAt: string;
|
|
1624
|
-
brandId: string;
|
|
1625
1625
|
isActive: boolean;
|
|
1626
|
+
brandId: string;
|
|
1626
1627
|
discountType: import("@prisma/client").$Enums.DiscountType;
|
|
1627
1628
|
discountValue: string;
|
|
1628
1629
|
startDate: string;
|
|
@@ -1636,6 +1637,6 @@ export declare function fetchOrderRecommendations(orderId: string, token: string
|
|
|
1636
1637
|
createdAt: string;
|
|
1637
1638
|
updatedAt: string;
|
|
1638
1639
|
deletedAt: string;
|
|
1639
|
-
brandId: string;
|
|
1640
1640
|
isActive: boolean;
|
|
1641
|
+
brandId: string;
|
|
1641
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,7 +57,6 @@ 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
|
};
|
|
@@ -70,8 +70,8 @@ export declare function useListAbandonedCarts(params?: {
|
|
|
70
70
|
createdAt: string;
|
|
71
71
|
updatedAt: string;
|
|
72
72
|
deletedAt: string;
|
|
73
|
-
brandId: string;
|
|
74
73
|
isActive: boolean;
|
|
74
|
+
brandId: string;
|
|
75
75
|
description: string | null;
|
|
76
76
|
thumbnailUrl: string | null;
|
|
77
77
|
quantityDiscounts: string | number | boolean | {
|
|
@@ -575,19 +575,19 @@ export declare function useGetAbandonedCartStats(params?: {
|
|
|
575
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<{
|
|
576
576
|
id: string;
|
|
577
577
|
brand: {
|
|
578
|
-
createdAt: string;
|
|
579
|
-
updatedAt: string;
|
|
580
|
-
deletedAt: string;
|
|
581
578
|
id: string;
|
|
582
579
|
name: string;
|
|
583
580
|
slug: string;
|
|
584
|
-
logoUrl: string
|
|
581
|
+
logoUrl: string;
|
|
585
582
|
siteUrl: string;
|
|
586
583
|
domain: string;
|
|
587
|
-
metaPixelId: string
|
|
588
|
-
tiktokPixelId: string
|
|
589
|
-
paystackPublicKey: string
|
|
590
|
-
|
|
584
|
+
metaPixelId: string;
|
|
585
|
+
tiktokPixelId: string;
|
|
586
|
+
paystackPublicKey: string;
|
|
587
|
+
freeShippingThreshold: number;
|
|
588
|
+
createdAt: string;
|
|
589
|
+
updatedAt: string;
|
|
590
|
+
deletedAt: string;
|
|
591
591
|
};
|
|
592
592
|
customerPhone: string;
|
|
593
593
|
customerEmail: string;
|
|
@@ -607,9 +607,10 @@ export declare function useGetAbandonedCart(cartId: string, options?: Omit<UseQu
|
|
|
607
607
|
createdAt: string;
|
|
608
608
|
updatedAt: string;
|
|
609
609
|
deletedAt: string;
|
|
610
|
-
brandId: string | null;
|
|
611
|
-
isActive: boolean;
|
|
612
610
|
code: string;
|
|
611
|
+
isActive: boolean;
|
|
612
|
+
brandId: string | null;
|
|
613
|
+
description: string | null;
|
|
613
614
|
minPurchase: string;
|
|
614
615
|
maxDiscount: string;
|
|
615
616
|
usageLimit: number | null;
|
|
@@ -618,7 +619,6 @@ export declare function useGetAbandonedCart(cartId: string, options?: Omit<UseQu
|
|
|
618
619
|
validFrom: string;
|
|
619
620
|
validUntil: string;
|
|
620
621
|
isAutoApply: boolean;
|
|
621
|
-
description: string | null;
|
|
622
622
|
category: string;
|
|
623
623
|
createdBy: string | null;
|
|
624
624
|
};
|
|
@@ -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 | {
|
|
@@ -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;
|
|
@@ -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>;
|