@deepintel-ltd/farmpro-contracts 1.26.0 → 1.27.1
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/routes/agents.routes.d.ts +681 -12
- package/dist/routes/agents.routes.d.ts.map +1 -1
- package/dist/routes/agents.routes.js +21 -1
- package/dist/routes/commodity-deals.routes.d.ts +27 -27
- package/dist/routes/farms.routes.d.ts +46 -46
- package/dist/routes/field-observations.routes.d.ts +34 -34
- package/dist/routes/invoices.routes.d.ts +39 -39
- package/dist/routes/livestock-groups.routes.d.ts +27 -27
- package/dist/routes/livestock.routes.d.ts +21 -21
- package/dist/routes/market-intelligence.routes.d.ts +8 -8
- package/dist/routes/organizations.routes.d.ts +49 -0
- package/dist/routes/organizations.routes.d.ts.map +1 -1
- package/dist/routes/poultry.routes.d.ts +22 -22
- package/dist/routes/purchase-orders.routes.d.ts +9 -9
- package/dist/routes/subscriptions.routes.d.ts +8 -8
- package/dist/routes/team-payments.routes.d.ts +36 -36
- package/dist/routes/trade-cash-events.routes.d.ts +82 -39
- package/dist/routes/trade-cash-events.routes.d.ts.map +1 -1
- package/dist/routes/waybills.routes.d.ts +39 -39
- package/dist/schemas/agents.schemas.d.ts +718 -12
- package/dist/schemas/agents.schemas.d.ts.map +1 -1
- package/dist/schemas/agents.schemas.js +41 -0
- package/dist/schemas/commodity-deals.schemas.d.ts +18 -18
- package/dist/schemas/farms.schemas.d.ts +51 -51
- package/dist/schemas/field-observations.schemas.d.ts +24 -24
- package/dist/schemas/invoices.schemas.d.ts +27 -27
- package/dist/schemas/livestock-groups.schemas.d.ts +20 -20
- package/dist/schemas/livestock.schemas.d.ts +18 -18
- package/dist/schemas/organizations.schemas.d.ts +42 -0
- package/dist/schemas/organizations.schemas.d.ts.map +1 -1
- package/dist/schemas/organizations.schemas.js +3 -0
- package/dist/schemas/purchase-orders.schemas.d.ts +9 -9
- package/dist/schemas/subscriptions.schemas.d.ts +6 -6
- package/dist/schemas/team-payments.schemas.d.ts +24 -24
- package/dist/schemas/trade-cash-events.schemas.d.ts +67 -27
- package/dist/schemas/trade-cash-events.schemas.d.ts.map +1 -1
- package/dist/schemas/trade-cash-events.schemas.js +6 -0
- package/dist/schemas/waybills.schemas.d.ts +27 -27
- package/package.json +1 -1
|
@@ -301,9 +301,9 @@ export declare const livestockAttributesSchema: z.ZodObject<{
|
|
|
301
301
|
createdAt: string;
|
|
302
302
|
updatedAt: string;
|
|
303
303
|
name: string | null;
|
|
304
|
+
currency: string;
|
|
304
305
|
farmId: string;
|
|
305
306
|
location: string | null;
|
|
306
|
-
currency: string;
|
|
307
307
|
notes: string | null;
|
|
308
308
|
category: "POULTRY" | "CATTLE" | "GOAT" | "SHEEP" | "OTHER" | "PIG" | "FISH" | "RABBIT";
|
|
309
309
|
groupId: string | null;
|
|
@@ -506,8 +506,8 @@ export declare const createLivestockAttributesSchema: z.ZodObject<{
|
|
|
506
506
|
tagId: string;
|
|
507
507
|
status?: "ACTIVE" | "SOLD" | "DECEASED" | "TRANSFERRED" | "QUARANTINE" | undefined;
|
|
508
508
|
name?: string | undefined;
|
|
509
|
-
location?: string | undefined;
|
|
510
509
|
currency?: string | undefined;
|
|
510
|
+
location?: string | undefined;
|
|
511
511
|
notes?: string | undefined;
|
|
512
512
|
groupId?: string | undefined;
|
|
513
513
|
purchasePrice?: number | undefined;
|
|
@@ -554,8 +554,8 @@ export declare const updateLivestockAttributesSchema: z.ZodObject<{
|
|
|
554
554
|
}, "strip", z.ZodTypeAny, {
|
|
555
555
|
status?: "ACTIVE" | "SOLD" | "DECEASED" | "TRANSFERRED" | "QUARANTINE" | undefined;
|
|
556
556
|
name?: string | null | undefined;
|
|
557
|
-
location?: string | null | undefined;
|
|
558
557
|
currency?: string | undefined;
|
|
558
|
+
location?: string | null | undefined;
|
|
559
559
|
notes?: string | null | undefined;
|
|
560
560
|
category?: "POULTRY" | "CATTLE" | "GOAT" | "SHEEP" | "OTHER" | "PIG" | "FISH" | "RABBIT" | undefined;
|
|
561
561
|
groupId?: string | null | undefined;
|
|
@@ -578,8 +578,8 @@ export declare const updateLivestockAttributesSchema: z.ZodObject<{
|
|
|
578
578
|
}, {
|
|
579
579
|
status?: "ACTIVE" | "SOLD" | "DECEASED" | "TRANSFERRED" | "QUARANTINE" | undefined;
|
|
580
580
|
name?: string | null | undefined;
|
|
581
|
-
location?: string | null | undefined;
|
|
582
581
|
currency?: string | undefined;
|
|
582
|
+
location?: string | null | undefined;
|
|
583
583
|
notes?: string | null | undefined;
|
|
584
584
|
category?: "POULTRY" | "CATTLE" | "GOAT" | "SHEEP" | "OTHER" | "PIG" | "FISH" | "RABBIT" | undefined;
|
|
585
585
|
groupId?: string | null | undefined;
|
|
@@ -2139,8 +2139,8 @@ export declare const createLivestockSchema: z.ZodObject<{
|
|
|
2139
2139
|
tagId: string;
|
|
2140
2140
|
status?: "ACTIVE" | "SOLD" | "DECEASED" | "TRANSFERRED" | "QUARANTINE" | undefined;
|
|
2141
2141
|
name?: string | undefined;
|
|
2142
|
-
location?: string | undefined;
|
|
2143
2142
|
currency?: string | undefined;
|
|
2143
|
+
location?: string | undefined;
|
|
2144
2144
|
notes?: string | undefined;
|
|
2145
2145
|
groupId?: string | undefined;
|
|
2146
2146
|
purchasePrice?: number | undefined;
|
|
@@ -2195,8 +2195,8 @@ export declare const createLivestockSchema: z.ZodObject<{
|
|
|
2195
2195
|
tagId: string;
|
|
2196
2196
|
status?: "ACTIVE" | "SOLD" | "DECEASED" | "TRANSFERRED" | "QUARANTINE" | undefined;
|
|
2197
2197
|
name?: string | undefined;
|
|
2198
|
-
location?: string | undefined;
|
|
2199
2198
|
currency?: string | undefined;
|
|
2199
|
+
location?: string | undefined;
|
|
2200
2200
|
notes?: string | undefined;
|
|
2201
2201
|
groupId?: string | undefined;
|
|
2202
2202
|
purchasePrice?: number | undefined;
|
|
@@ -2247,8 +2247,8 @@ export declare const updateLivestockSchema: z.ZodObject<{
|
|
|
2247
2247
|
}, "strip", z.ZodTypeAny, {
|
|
2248
2248
|
status?: "ACTIVE" | "SOLD" | "DECEASED" | "TRANSFERRED" | "QUARANTINE" | undefined;
|
|
2249
2249
|
name?: string | null | undefined;
|
|
2250
|
-
location?: string | null | undefined;
|
|
2251
2250
|
currency?: string | undefined;
|
|
2251
|
+
location?: string | null | undefined;
|
|
2252
2252
|
notes?: string | null | undefined;
|
|
2253
2253
|
category?: "POULTRY" | "CATTLE" | "GOAT" | "SHEEP" | "OTHER" | "PIG" | "FISH" | "RABBIT" | undefined;
|
|
2254
2254
|
groupId?: string | null | undefined;
|
|
@@ -2271,8 +2271,8 @@ export declare const updateLivestockSchema: z.ZodObject<{
|
|
|
2271
2271
|
}, {
|
|
2272
2272
|
status?: "ACTIVE" | "SOLD" | "DECEASED" | "TRANSFERRED" | "QUARANTINE" | undefined;
|
|
2273
2273
|
name?: string | null | undefined;
|
|
2274
|
-
location?: string | null | undefined;
|
|
2275
2274
|
currency?: string | undefined;
|
|
2275
|
+
location?: string | null | undefined;
|
|
2276
2276
|
notes?: string | null | undefined;
|
|
2277
2277
|
category?: "POULTRY" | "CATTLE" | "GOAT" | "SHEEP" | "OTHER" | "PIG" | "FISH" | "RABBIT" | undefined;
|
|
2278
2278
|
groupId?: string | null | undefined;
|
|
@@ -2299,8 +2299,8 @@ export declare const updateLivestockSchema: z.ZodObject<{
|
|
|
2299
2299
|
attributes: {
|
|
2300
2300
|
status?: "ACTIVE" | "SOLD" | "DECEASED" | "TRANSFERRED" | "QUARANTINE" | undefined;
|
|
2301
2301
|
name?: string | null | undefined;
|
|
2302
|
-
location?: string | null | undefined;
|
|
2303
2302
|
currency?: string | undefined;
|
|
2303
|
+
location?: string | null | undefined;
|
|
2304
2304
|
notes?: string | null | undefined;
|
|
2305
2305
|
category?: "POULTRY" | "CATTLE" | "GOAT" | "SHEEP" | "OTHER" | "PIG" | "FISH" | "RABBIT" | undefined;
|
|
2306
2306
|
groupId?: string | null | undefined;
|
|
@@ -2327,8 +2327,8 @@ export declare const updateLivestockSchema: z.ZodObject<{
|
|
|
2327
2327
|
attributes: {
|
|
2328
2328
|
status?: "ACTIVE" | "SOLD" | "DECEASED" | "TRANSFERRED" | "QUARANTINE" | undefined;
|
|
2329
2329
|
name?: string | null | undefined;
|
|
2330
|
-
location?: string | null | undefined;
|
|
2331
2330
|
currency?: string | undefined;
|
|
2331
|
+
location?: string | null | undefined;
|
|
2332
2332
|
notes?: string | null | undefined;
|
|
2333
2333
|
category?: "POULTRY" | "CATTLE" | "GOAT" | "SHEEP" | "OTHER" | "PIG" | "FISH" | "RABBIT" | undefined;
|
|
2334
2334
|
groupId?: string | null | undefined;
|
|
@@ -2733,9 +2733,9 @@ export declare const livestockResourceSchema: z.ZodObject<{
|
|
|
2733
2733
|
createdAt: string;
|
|
2734
2734
|
updatedAt: string;
|
|
2735
2735
|
name: string | null;
|
|
2736
|
+
currency: string;
|
|
2736
2737
|
farmId: string;
|
|
2737
2738
|
location: string | null;
|
|
2738
|
-
currency: string;
|
|
2739
2739
|
notes: string | null;
|
|
2740
2740
|
category: "POULTRY" | "CATTLE" | "GOAT" | "SHEEP" | "OTHER" | "PIG" | "FISH" | "RABBIT";
|
|
2741
2741
|
groupId: string | null;
|
|
@@ -2894,9 +2894,9 @@ export declare const livestockResourceSchema: z.ZodObject<{
|
|
|
2894
2894
|
createdAt: string;
|
|
2895
2895
|
updatedAt: string;
|
|
2896
2896
|
name: string | null;
|
|
2897
|
+
currency: string;
|
|
2897
2898
|
farmId: string;
|
|
2898
2899
|
location: string | null;
|
|
2899
|
-
currency: string;
|
|
2900
2900
|
notes: string | null;
|
|
2901
2901
|
category: "POULTRY" | "CATTLE" | "GOAT" | "SHEEP" | "OTHER" | "PIG" | "FISH" | "RABBIT";
|
|
2902
2902
|
groupId: string | null;
|
|
@@ -3495,9 +3495,9 @@ export declare const livestockResponseSchema: z.ZodObject<{
|
|
|
3495
3495
|
createdAt: string;
|
|
3496
3496
|
updatedAt: string;
|
|
3497
3497
|
name: string | null;
|
|
3498
|
+
currency: string;
|
|
3498
3499
|
farmId: string;
|
|
3499
3500
|
location: string | null;
|
|
3500
|
-
currency: string;
|
|
3501
3501
|
notes: string | null;
|
|
3502
3502
|
category: "POULTRY" | "CATTLE" | "GOAT" | "SHEEP" | "OTHER" | "PIG" | "FISH" | "RABBIT";
|
|
3503
3503
|
groupId: string | null;
|
|
@@ -3656,9 +3656,9 @@ export declare const livestockResponseSchema: z.ZodObject<{
|
|
|
3656
3656
|
createdAt: string;
|
|
3657
3657
|
updatedAt: string;
|
|
3658
3658
|
name: string | null;
|
|
3659
|
+
currency: string;
|
|
3659
3660
|
farmId: string;
|
|
3660
3661
|
location: string | null;
|
|
3661
|
-
currency: string;
|
|
3662
3662
|
notes: string | null;
|
|
3663
3663
|
category: "POULTRY" | "CATTLE" | "GOAT" | "SHEEP" | "OTHER" | "PIG" | "FISH" | "RABBIT";
|
|
3664
3664
|
groupId: string | null;
|
|
@@ -3850,9 +3850,9 @@ export declare const livestockResponseSchema: z.ZodObject<{
|
|
|
3850
3850
|
createdAt: string;
|
|
3851
3851
|
updatedAt: string;
|
|
3852
3852
|
name: string | null;
|
|
3853
|
+
currency: string;
|
|
3853
3854
|
farmId: string;
|
|
3854
3855
|
location: string | null;
|
|
3855
|
-
currency: string;
|
|
3856
3856
|
notes: string | null;
|
|
3857
3857
|
category: "POULTRY" | "CATTLE" | "GOAT" | "SHEEP" | "OTHER" | "PIG" | "FISH" | "RABBIT";
|
|
3858
3858
|
groupId: string | null;
|
|
@@ -4203,9 +4203,9 @@ export declare const livestockListResponseSchema: z.ZodObject<{
|
|
|
4203
4203
|
createdAt: string;
|
|
4204
4204
|
updatedAt: string;
|
|
4205
4205
|
name: string | null;
|
|
4206
|
+
currency: string;
|
|
4206
4207
|
farmId: string;
|
|
4207
4208
|
location: string | null;
|
|
4208
|
-
currency: string;
|
|
4209
4209
|
notes: string | null;
|
|
4210
4210
|
category: "POULTRY" | "CATTLE" | "GOAT" | "SHEEP" | "OTHER" | "PIG" | "FISH" | "RABBIT";
|
|
4211
4211
|
groupId: string | null;
|
|
@@ -4364,9 +4364,9 @@ export declare const livestockListResponseSchema: z.ZodObject<{
|
|
|
4364
4364
|
createdAt: string;
|
|
4365
4365
|
updatedAt: string;
|
|
4366
4366
|
name: string | null;
|
|
4367
|
+
currency: string;
|
|
4367
4368
|
farmId: string;
|
|
4368
4369
|
location: string | null;
|
|
4369
|
-
currency: string;
|
|
4370
4370
|
notes: string | null;
|
|
4371
4371
|
category: "POULTRY" | "CATTLE" | "GOAT" | "SHEEP" | "OTHER" | "PIG" | "FISH" | "RABBIT";
|
|
4372
4372
|
groupId: string | null;
|
|
@@ -4558,9 +4558,9 @@ export declare const livestockListResponseSchema: z.ZodObject<{
|
|
|
4558
4558
|
createdAt: string;
|
|
4559
4559
|
updatedAt: string;
|
|
4560
4560
|
name: string | null;
|
|
4561
|
+
currency: string;
|
|
4561
4562
|
farmId: string;
|
|
4562
4563
|
location: string | null;
|
|
4563
|
-
currency: string;
|
|
4564
4564
|
notes: string | null;
|
|
4565
4565
|
category: "POULTRY" | "CATTLE" | "GOAT" | "SHEEP" | "OTHER" | "PIG" | "FISH" | "RABBIT";
|
|
4566
4566
|
groupId: string | null;
|
|
@@ -15,6 +15,8 @@ export declare const organizationAttributesSchema: z.ZodObject<{
|
|
|
15
15
|
companyFeePercentOfReturns: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
16
16
|
/** Default ₦ per kg company fee — deal-page prefill when mode switches. */
|
|
17
17
|
companyFeePerKg: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
18
|
+
/** ISO 4217 currency for all org money (deals, invoices, investor views). */
|
|
19
|
+
currency: z.ZodOptional<z.ZodString>;
|
|
18
20
|
/** Membership role for the current user when listing orgs */
|
|
19
21
|
membershipRole: z.ZodOptional<z.ZodEnum<["creator", "admin", "investor"]>>;
|
|
20
22
|
} & {
|
|
@@ -32,6 +34,7 @@ export declare const organizationAttributesSchema: z.ZodObject<{
|
|
|
32
34
|
companyCommissionRate?: number | null | undefined;
|
|
33
35
|
companyFeePercentOfReturns?: number | null | undefined;
|
|
34
36
|
companyFeePerKg?: number | null | undefined;
|
|
37
|
+
currency?: string | undefined;
|
|
35
38
|
membershipRole?: "creator" | "admin" | "investor" | undefined;
|
|
36
39
|
}, {
|
|
37
40
|
email: string | null;
|
|
@@ -45,6 +48,7 @@ export declare const organizationAttributesSchema: z.ZodObject<{
|
|
|
45
48
|
companyCommissionRate?: number | null | undefined;
|
|
46
49
|
companyFeePercentOfReturns?: number | null | undefined;
|
|
47
50
|
companyFeePerKg?: number | null | undefined;
|
|
51
|
+
currency?: string | undefined;
|
|
48
52
|
membershipRole?: "creator" | "admin" | "investor" | undefined;
|
|
49
53
|
}>;
|
|
50
54
|
/** Where to apply a new commodity commission rate. Paid deals are never rewritten. */
|
|
@@ -60,6 +64,7 @@ export declare const createOrganizationAttributesSchema: z.ZodObject<{
|
|
|
60
64
|
companyCommissionRate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
61
65
|
companyFeePercentOfReturns: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
62
66
|
companyFeePerKg: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
67
|
+
currency: z.ZodOptional<z.ZodString>;
|
|
63
68
|
}, "strip", z.ZodTypeAny, {
|
|
64
69
|
name: string;
|
|
65
70
|
email?: string | undefined;
|
|
@@ -70,6 +75,7 @@ export declare const createOrganizationAttributesSchema: z.ZodObject<{
|
|
|
70
75
|
companyCommissionRate?: number | null | undefined;
|
|
71
76
|
companyFeePercentOfReturns?: number | null | undefined;
|
|
72
77
|
companyFeePerKg?: number | null | undefined;
|
|
78
|
+
currency?: string | undefined;
|
|
73
79
|
}, {
|
|
74
80
|
name: string;
|
|
75
81
|
email?: string | undefined;
|
|
@@ -80,6 +86,7 @@ export declare const createOrganizationAttributesSchema: z.ZodObject<{
|
|
|
80
86
|
companyCommissionRate?: number | null | undefined;
|
|
81
87
|
companyFeePercentOfReturns?: number | null | undefined;
|
|
82
88
|
companyFeePerKg?: number | null | undefined;
|
|
89
|
+
currency?: string | undefined;
|
|
83
90
|
}>;
|
|
84
91
|
export declare const updateOrganizationAttributesSchema: z.ZodObject<{
|
|
85
92
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -91,6 +98,7 @@ export declare const updateOrganizationAttributesSchema: z.ZodObject<{
|
|
|
91
98
|
companyCommissionRate: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
92
99
|
companyFeePercentOfReturns: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
93
100
|
companyFeePerKg: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
101
|
+
currency: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
94
102
|
} & {
|
|
95
103
|
/**
|
|
96
104
|
* When updating commodityCommissionRate:
|
|
@@ -110,6 +118,7 @@ export declare const updateOrganizationAttributesSchema: z.ZodObject<{
|
|
|
110
118
|
companyCommissionRate?: number | null | undefined;
|
|
111
119
|
companyFeePercentOfReturns?: number | null | undefined;
|
|
112
120
|
companyFeePerKg?: number | null | undefined;
|
|
121
|
+
currency?: string | undefined;
|
|
113
122
|
commodityCommissionApplyTo?: "future" | "open_and_future" | undefined;
|
|
114
123
|
companyCommissionApplyTo?: "future" | "open_and_future" | undefined;
|
|
115
124
|
}, {
|
|
@@ -122,6 +131,7 @@ export declare const updateOrganizationAttributesSchema: z.ZodObject<{
|
|
|
122
131
|
companyCommissionRate?: number | null | undefined;
|
|
123
132
|
companyFeePercentOfReturns?: number | null | undefined;
|
|
124
133
|
companyFeePerKg?: number | null | undefined;
|
|
134
|
+
currency?: string | undefined;
|
|
125
135
|
commodityCommissionApplyTo?: "future" | "open_and_future" | undefined;
|
|
126
136
|
companyCommissionApplyTo?: "future" | "open_and_future" | undefined;
|
|
127
137
|
}>;
|
|
@@ -137,6 +147,7 @@ export declare const createOrganizationSchema: z.ZodObject<{
|
|
|
137
147
|
companyCommissionRate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
138
148
|
companyFeePercentOfReturns: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
139
149
|
companyFeePerKg: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
150
|
+
currency: z.ZodOptional<z.ZodString>;
|
|
140
151
|
}, "strip", z.ZodTypeAny, {
|
|
141
152
|
name: string;
|
|
142
153
|
email?: string | undefined;
|
|
@@ -147,6 +158,7 @@ export declare const createOrganizationSchema: z.ZodObject<{
|
|
|
147
158
|
companyCommissionRate?: number | null | undefined;
|
|
148
159
|
companyFeePercentOfReturns?: number | null | undefined;
|
|
149
160
|
companyFeePerKg?: number | null | undefined;
|
|
161
|
+
currency?: string | undefined;
|
|
150
162
|
}, {
|
|
151
163
|
name: string;
|
|
152
164
|
email?: string | undefined;
|
|
@@ -157,6 +169,7 @@ export declare const createOrganizationSchema: z.ZodObject<{
|
|
|
157
169
|
companyCommissionRate?: number | null | undefined;
|
|
158
170
|
companyFeePercentOfReturns?: number | null | undefined;
|
|
159
171
|
companyFeePerKg?: number | null | undefined;
|
|
172
|
+
currency?: string | undefined;
|
|
160
173
|
}>;
|
|
161
174
|
}, "strip", z.ZodTypeAny, {
|
|
162
175
|
type: "organizations";
|
|
@@ -170,6 +183,7 @@ export declare const createOrganizationSchema: z.ZodObject<{
|
|
|
170
183
|
companyCommissionRate?: number | null | undefined;
|
|
171
184
|
companyFeePercentOfReturns?: number | null | undefined;
|
|
172
185
|
companyFeePerKg?: number | null | undefined;
|
|
186
|
+
currency?: string | undefined;
|
|
173
187
|
};
|
|
174
188
|
}, {
|
|
175
189
|
type: "organizations";
|
|
@@ -183,6 +197,7 @@ export declare const createOrganizationSchema: z.ZodObject<{
|
|
|
183
197
|
companyCommissionRate?: number | null | undefined;
|
|
184
198
|
companyFeePercentOfReturns?: number | null | undefined;
|
|
185
199
|
companyFeePerKg?: number | null | undefined;
|
|
200
|
+
currency?: string | undefined;
|
|
186
201
|
};
|
|
187
202
|
}>;
|
|
188
203
|
export declare const updateOrganizationSchema: z.ZodObject<{
|
|
@@ -198,6 +213,7 @@ export declare const updateOrganizationSchema: z.ZodObject<{
|
|
|
198
213
|
companyCommissionRate: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
199
214
|
companyFeePercentOfReturns: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
200
215
|
companyFeePerKg: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
216
|
+
currency: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
201
217
|
} & {
|
|
202
218
|
/**
|
|
203
219
|
* When updating commodityCommissionRate:
|
|
@@ -217,6 +233,7 @@ export declare const updateOrganizationSchema: z.ZodObject<{
|
|
|
217
233
|
companyCommissionRate?: number | null | undefined;
|
|
218
234
|
companyFeePercentOfReturns?: number | null | undefined;
|
|
219
235
|
companyFeePerKg?: number | null | undefined;
|
|
236
|
+
currency?: string | undefined;
|
|
220
237
|
commodityCommissionApplyTo?: "future" | "open_and_future" | undefined;
|
|
221
238
|
companyCommissionApplyTo?: "future" | "open_and_future" | undefined;
|
|
222
239
|
}, {
|
|
@@ -229,6 +246,7 @@ export declare const updateOrganizationSchema: z.ZodObject<{
|
|
|
229
246
|
companyCommissionRate?: number | null | undefined;
|
|
230
247
|
companyFeePercentOfReturns?: number | null | undefined;
|
|
231
248
|
companyFeePerKg?: number | null | undefined;
|
|
249
|
+
currency?: string | undefined;
|
|
232
250
|
commodityCommissionApplyTo?: "future" | "open_and_future" | undefined;
|
|
233
251
|
companyCommissionApplyTo?: "future" | "open_and_future" | undefined;
|
|
234
252
|
}>;
|
|
@@ -244,6 +262,7 @@ export declare const updateOrganizationSchema: z.ZodObject<{
|
|
|
244
262
|
companyCommissionRate?: number | null | undefined;
|
|
245
263
|
companyFeePercentOfReturns?: number | null | undefined;
|
|
246
264
|
companyFeePerKg?: number | null | undefined;
|
|
265
|
+
currency?: string | undefined;
|
|
247
266
|
commodityCommissionApplyTo?: "future" | "open_and_future" | undefined;
|
|
248
267
|
companyCommissionApplyTo?: "future" | "open_and_future" | undefined;
|
|
249
268
|
};
|
|
@@ -260,6 +279,7 @@ export declare const updateOrganizationSchema: z.ZodObject<{
|
|
|
260
279
|
companyCommissionRate?: number | null | undefined;
|
|
261
280
|
companyFeePercentOfReturns?: number | null | undefined;
|
|
262
281
|
companyFeePerKg?: number | null | undefined;
|
|
282
|
+
currency?: string | undefined;
|
|
263
283
|
commodityCommissionApplyTo?: "future" | "open_and_future" | undefined;
|
|
264
284
|
companyCommissionApplyTo?: "future" | "open_and_future" | undefined;
|
|
265
285
|
};
|
|
@@ -281,6 +301,8 @@ export declare const organizationResourceSchema: z.ZodObject<{
|
|
|
281
301
|
companyFeePercentOfReturns: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
282
302
|
/** Default ₦ per kg company fee — deal-page prefill when mode switches. */
|
|
283
303
|
companyFeePerKg: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
304
|
+
/** ISO 4217 currency for all org money (deals, invoices, investor views). */
|
|
305
|
+
currency: z.ZodOptional<z.ZodString>;
|
|
284
306
|
/** Membership role for the current user when listing orgs */
|
|
285
307
|
membershipRole: z.ZodOptional<z.ZodEnum<["creator", "admin", "investor"]>>;
|
|
286
308
|
} & {
|
|
@@ -298,6 +320,7 @@ export declare const organizationResourceSchema: z.ZodObject<{
|
|
|
298
320
|
companyCommissionRate?: number | null | undefined;
|
|
299
321
|
companyFeePercentOfReturns?: number | null | undefined;
|
|
300
322
|
companyFeePerKg?: number | null | undefined;
|
|
323
|
+
currency?: string | undefined;
|
|
301
324
|
membershipRole?: "creator" | "admin" | "investor" | undefined;
|
|
302
325
|
}, {
|
|
303
326
|
email: string | null;
|
|
@@ -311,6 +334,7 @@ export declare const organizationResourceSchema: z.ZodObject<{
|
|
|
311
334
|
companyCommissionRate?: number | null | undefined;
|
|
312
335
|
companyFeePercentOfReturns?: number | null | undefined;
|
|
313
336
|
companyFeePerKg?: number | null | undefined;
|
|
337
|
+
currency?: string | undefined;
|
|
314
338
|
membershipRole?: "creator" | "admin" | "investor" | undefined;
|
|
315
339
|
}>;
|
|
316
340
|
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -331,6 +355,7 @@ export declare const organizationResourceSchema: z.ZodObject<{
|
|
|
331
355
|
companyCommissionRate?: number | null | undefined;
|
|
332
356
|
companyFeePercentOfReturns?: number | null | undefined;
|
|
333
357
|
companyFeePerKg?: number | null | undefined;
|
|
358
|
+
currency?: string | undefined;
|
|
334
359
|
membershipRole?: "creator" | "admin" | "investor" | undefined;
|
|
335
360
|
};
|
|
336
361
|
relationships?: Record<string, unknown> | undefined;
|
|
@@ -351,6 +376,7 @@ export declare const organizationResourceSchema: z.ZodObject<{
|
|
|
351
376
|
companyCommissionRate?: number | null | undefined;
|
|
352
377
|
companyFeePercentOfReturns?: number | null | undefined;
|
|
353
378
|
companyFeePerKg?: number | null | undefined;
|
|
379
|
+
currency?: string | undefined;
|
|
354
380
|
membershipRole?: "creator" | "admin" | "investor" | undefined;
|
|
355
381
|
};
|
|
356
382
|
relationships?: Record<string, unknown> | undefined;
|
|
@@ -374,6 +400,8 @@ export declare const organizationResponseSchema: z.ZodObject<{
|
|
|
374
400
|
companyFeePercentOfReturns: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
375
401
|
/** Default ₦ per kg company fee — deal-page prefill when mode switches. */
|
|
376
402
|
companyFeePerKg: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
403
|
+
/** ISO 4217 currency for all org money (deals, invoices, investor views). */
|
|
404
|
+
currency: z.ZodOptional<z.ZodString>;
|
|
377
405
|
/** Membership role for the current user when listing orgs */
|
|
378
406
|
membershipRole: z.ZodOptional<z.ZodEnum<["creator", "admin", "investor"]>>;
|
|
379
407
|
} & {
|
|
@@ -391,6 +419,7 @@ export declare const organizationResponseSchema: z.ZodObject<{
|
|
|
391
419
|
companyCommissionRate?: number | null | undefined;
|
|
392
420
|
companyFeePercentOfReturns?: number | null | undefined;
|
|
393
421
|
companyFeePerKg?: number | null | undefined;
|
|
422
|
+
currency?: string | undefined;
|
|
394
423
|
membershipRole?: "creator" | "admin" | "investor" | undefined;
|
|
395
424
|
}, {
|
|
396
425
|
email: string | null;
|
|
@@ -404,6 +433,7 @@ export declare const organizationResponseSchema: z.ZodObject<{
|
|
|
404
433
|
companyCommissionRate?: number | null | undefined;
|
|
405
434
|
companyFeePercentOfReturns?: number | null | undefined;
|
|
406
435
|
companyFeePerKg?: number | null | undefined;
|
|
436
|
+
currency?: string | undefined;
|
|
407
437
|
membershipRole?: "creator" | "admin" | "investor" | undefined;
|
|
408
438
|
}>;
|
|
409
439
|
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -424,6 +454,7 @@ export declare const organizationResponseSchema: z.ZodObject<{
|
|
|
424
454
|
companyCommissionRate?: number | null | undefined;
|
|
425
455
|
companyFeePercentOfReturns?: number | null | undefined;
|
|
426
456
|
companyFeePerKg?: number | null | undefined;
|
|
457
|
+
currency?: string | undefined;
|
|
427
458
|
membershipRole?: "creator" | "admin" | "investor" | undefined;
|
|
428
459
|
};
|
|
429
460
|
relationships?: Record<string, unknown> | undefined;
|
|
@@ -444,6 +475,7 @@ export declare const organizationResponseSchema: z.ZodObject<{
|
|
|
444
475
|
companyCommissionRate?: number | null | undefined;
|
|
445
476
|
companyFeePercentOfReturns?: number | null | undefined;
|
|
446
477
|
companyFeePerKg?: number | null | undefined;
|
|
478
|
+
currency?: string | undefined;
|
|
447
479
|
membershipRole?: "creator" | "admin" | "investor" | undefined;
|
|
448
480
|
};
|
|
449
481
|
relationships?: Record<string, unknown> | undefined;
|
|
@@ -490,6 +522,7 @@ export declare const organizationResponseSchema: z.ZodObject<{
|
|
|
490
522
|
companyCommissionRate?: number | null | undefined;
|
|
491
523
|
companyFeePercentOfReturns?: number | null | undefined;
|
|
492
524
|
companyFeePerKg?: number | null | undefined;
|
|
525
|
+
currency?: string | undefined;
|
|
493
526
|
membershipRole?: "creator" | "admin" | "investor" | undefined;
|
|
494
527
|
};
|
|
495
528
|
relationships?: Record<string, unknown> | undefined;
|
|
@@ -522,6 +555,7 @@ export declare const organizationResponseSchema: z.ZodObject<{
|
|
|
522
555
|
companyCommissionRate?: number | null | undefined;
|
|
523
556
|
companyFeePercentOfReturns?: number | null | undefined;
|
|
524
557
|
companyFeePerKg?: number | null | undefined;
|
|
558
|
+
currency?: string | undefined;
|
|
525
559
|
membershipRole?: "creator" | "admin" | "investor" | undefined;
|
|
526
560
|
};
|
|
527
561
|
relationships?: Record<string, unknown> | undefined;
|
|
@@ -556,6 +590,8 @@ export declare const organizationListResponseSchema: z.ZodObject<{
|
|
|
556
590
|
companyFeePercentOfReturns: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
557
591
|
/** Default ₦ per kg company fee — deal-page prefill when mode switches. */
|
|
558
592
|
companyFeePerKg: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
593
|
+
/** ISO 4217 currency for all org money (deals, invoices, investor views). */
|
|
594
|
+
currency: z.ZodOptional<z.ZodString>;
|
|
559
595
|
/** Membership role for the current user when listing orgs */
|
|
560
596
|
membershipRole: z.ZodOptional<z.ZodEnum<["creator", "admin", "investor"]>>;
|
|
561
597
|
} & {
|
|
@@ -573,6 +609,7 @@ export declare const organizationListResponseSchema: z.ZodObject<{
|
|
|
573
609
|
companyCommissionRate?: number | null | undefined;
|
|
574
610
|
companyFeePercentOfReturns?: number | null | undefined;
|
|
575
611
|
companyFeePerKg?: number | null | undefined;
|
|
612
|
+
currency?: string | undefined;
|
|
576
613
|
membershipRole?: "creator" | "admin" | "investor" | undefined;
|
|
577
614
|
}, {
|
|
578
615
|
email: string | null;
|
|
@@ -586,6 +623,7 @@ export declare const organizationListResponseSchema: z.ZodObject<{
|
|
|
586
623
|
companyCommissionRate?: number | null | undefined;
|
|
587
624
|
companyFeePercentOfReturns?: number | null | undefined;
|
|
588
625
|
companyFeePerKg?: number | null | undefined;
|
|
626
|
+
currency?: string | undefined;
|
|
589
627
|
membershipRole?: "creator" | "admin" | "investor" | undefined;
|
|
590
628
|
}>;
|
|
591
629
|
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -606,6 +644,7 @@ export declare const organizationListResponseSchema: z.ZodObject<{
|
|
|
606
644
|
companyCommissionRate?: number | null | undefined;
|
|
607
645
|
companyFeePercentOfReturns?: number | null | undefined;
|
|
608
646
|
companyFeePerKg?: number | null | undefined;
|
|
647
|
+
currency?: string | undefined;
|
|
609
648
|
membershipRole?: "creator" | "admin" | "investor" | undefined;
|
|
610
649
|
};
|
|
611
650
|
relationships?: Record<string, unknown> | undefined;
|
|
@@ -626,6 +665,7 @@ export declare const organizationListResponseSchema: z.ZodObject<{
|
|
|
626
665
|
companyCommissionRate?: number | null | undefined;
|
|
627
666
|
companyFeePercentOfReturns?: number | null | undefined;
|
|
628
667
|
companyFeePerKg?: number | null | undefined;
|
|
668
|
+
currency?: string | undefined;
|
|
629
669
|
membershipRole?: "creator" | "admin" | "investor" | undefined;
|
|
630
670
|
};
|
|
631
671
|
relationships?: Record<string, unknown> | undefined;
|
|
@@ -672,6 +712,7 @@ export declare const organizationListResponseSchema: z.ZodObject<{
|
|
|
672
712
|
companyCommissionRate?: number | null | undefined;
|
|
673
713
|
companyFeePercentOfReturns?: number | null | undefined;
|
|
674
714
|
companyFeePerKg?: number | null | undefined;
|
|
715
|
+
currency?: string | undefined;
|
|
675
716
|
membershipRole?: "creator" | "admin" | "investor" | undefined;
|
|
676
717
|
};
|
|
677
718
|
relationships?: Record<string, unknown> | undefined;
|
|
@@ -704,6 +745,7 @@ export declare const organizationListResponseSchema: z.ZodObject<{
|
|
|
704
745
|
companyCommissionRate?: number | null | undefined;
|
|
705
746
|
companyFeePercentOfReturns?: number | null | undefined;
|
|
706
747
|
companyFeePerKg?: number | null | undefined;
|
|
748
|
+
currency?: string | undefined;
|
|
707
749
|
membershipRole?: "creator" | "admin" | "investor" | undefined;
|
|
708
750
|
};
|
|
709
751
|
relationships?: Record<string, unknown> | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organizations.schemas.d.ts","sourceRoot":"","sources":["../../src/schemas/organizations.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB;;GAEG;AAGH,eAAO,MAAM,4BAA4B;;;;;;;IAOvC,kFAAkF;;IAElF,qFAAqF;;IAErF,2EAA2E;;IAE3E,6DAA6D
|
|
1
|
+
{"version":3,"file":"organizations.schemas.d.ts","sourceRoot":"","sources":["../../src/schemas/organizations.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB;;GAEG;AAGH,eAAO,MAAM,4BAA4B;;;;;;;IAOvC,kFAAkF;;IAElF,qFAAqF;;IAErF,2EAA2E;;IAE3E,6EAA6E;;IAE7E,6DAA6D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAErC,CAAC;AAE3B,sFAAsF;AACtF,eAAO,MAAM,gCAAgC,0CAAwC,CAAC;AAEtF,eAAO,MAAM,6BAA6B,kCAAgC,CAAC;AAG3E,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAW7C,CAAC;AAGH,eAAO,MAAM,kCAAkC;;;;;;;;;;;;IAG3C;;;;;OAKG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGH,CAAC;AAGL,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGnC,CAAC;AAGH,eAAO,MAAM,wBAAwB;;;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17
17
|
companyFeePercentOfReturns: z.number().min(0).max(100).nullable().optional(),
|
|
18
18
|
/** Default ₦ per kg company fee — deal-page prefill when mode switches. */
|
|
19
19
|
companyFeePerKg: z.number().min(0).nullable().optional(),
|
|
20
|
+
/** ISO 4217 currency for all org money (deals, invoices, investor views). */
|
|
21
|
+
currency: z.string().length(3).optional(),
|
|
20
22
|
/** Membership role for the current user when listing orgs */
|
|
21
23
|
membershipRole: z.enum(['creator', 'admin', 'investor']).optional(),
|
|
22
24
|
}).merge(timestampsSchema);
|
|
@@ -34,6 +36,7 @@ export const createOrganizationAttributesSchema = z.object({
|
|
|
34
36
|
companyCommissionRate: z.number().min(0).max(100).nullable().optional(),
|
|
35
37
|
companyFeePercentOfReturns: z.number().min(0).max(100).nullable().optional(),
|
|
36
38
|
companyFeePerKg: z.number().min(0).nullable().optional(),
|
|
39
|
+
currency: z.string().length(3).toUpperCase().optional(),
|
|
37
40
|
});
|
|
38
41
|
// Organization attributes for update (input)
|
|
39
42
|
export const updateOrganizationAttributesSchema = createOrganizationAttributesSchema
|
|
@@ -55,8 +55,8 @@ export declare const purchaseOrderAttributesSchema: z.ZodObject<{
|
|
|
55
55
|
status: "received" | "cancelled" | "draft" | "ordered";
|
|
56
56
|
createdAt: string;
|
|
57
57
|
updatedAt: string;
|
|
58
|
-
organizationId: string;
|
|
59
58
|
currency: string;
|
|
59
|
+
organizationId: string;
|
|
60
60
|
items: {
|
|
61
61
|
description: string;
|
|
62
62
|
quantity: number;
|
|
@@ -252,8 +252,8 @@ export declare const purchaseOrderResourceSchema: z.ZodObject<{
|
|
|
252
252
|
status: "received" | "cancelled" | "draft" | "ordered";
|
|
253
253
|
createdAt: string;
|
|
254
254
|
updatedAt: string;
|
|
255
|
-
organizationId: string;
|
|
256
255
|
currency: string;
|
|
256
|
+
organizationId: string;
|
|
257
257
|
items: {
|
|
258
258
|
description: string;
|
|
259
259
|
quantity: number;
|
|
@@ -299,8 +299,8 @@ export declare const purchaseOrderResourceSchema: z.ZodObject<{
|
|
|
299
299
|
status: "received" | "cancelled" | "draft" | "ordered";
|
|
300
300
|
createdAt: string;
|
|
301
301
|
updatedAt: string;
|
|
302
|
-
organizationId: string;
|
|
303
302
|
currency: string;
|
|
303
|
+
organizationId: string;
|
|
304
304
|
items: {
|
|
305
305
|
description: string;
|
|
306
306
|
quantity: number;
|
|
@@ -388,8 +388,8 @@ export declare const purchaseOrderResponseSchema: z.ZodObject<{
|
|
|
388
388
|
status: "received" | "cancelled" | "draft" | "ordered";
|
|
389
389
|
createdAt: string;
|
|
390
390
|
updatedAt: string;
|
|
391
|
-
organizationId: string;
|
|
392
391
|
currency: string;
|
|
392
|
+
organizationId: string;
|
|
393
393
|
items: {
|
|
394
394
|
description: string;
|
|
395
395
|
quantity: number;
|
|
@@ -435,8 +435,8 @@ export declare const purchaseOrderResponseSchema: z.ZodObject<{
|
|
|
435
435
|
status: "received" | "cancelled" | "draft" | "ordered";
|
|
436
436
|
createdAt: string;
|
|
437
437
|
updatedAt: string;
|
|
438
|
-
organizationId: string;
|
|
439
438
|
currency: string;
|
|
439
|
+
organizationId: string;
|
|
440
440
|
items: {
|
|
441
441
|
description: string;
|
|
442
442
|
quantity: number;
|
|
@@ -515,8 +515,8 @@ export declare const purchaseOrderResponseSchema: z.ZodObject<{
|
|
|
515
515
|
status: "received" | "cancelled" | "draft" | "ordered";
|
|
516
516
|
createdAt: string;
|
|
517
517
|
updatedAt: string;
|
|
518
|
-
organizationId: string;
|
|
519
518
|
currency: string;
|
|
519
|
+
organizationId: string;
|
|
520
520
|
items: {
|
|
521
521
|
description: string;
|
|
522
522
|
quantity: number;
|
|
@@ -627,8 +627,8 @@ export declare const purchaseOrderListResponseSchema: z.ZodObject<{
|
|
|
627
627
|
status: "received" | "cancelled" | "draft" | "ordered";
|
|
628
628
|
createdAt: string;
|
|
629
629
|
updatedAt: string;
|
|
630
|
-
organizationId: string;
|
|
631
630
|
currency: string;
|
|
631
|
+
organizationId: string;
|
|
632
632
|
items: {
|
|
633
633
|
description: string;
|
|
634
634
|
quantity: number;
|
|
@@ -674,8 +674,8 @@ export declare const purchaseOrderListResponseSchema: z.ZodObject<{
|
|
|
674
674
|
status: "received" | "cancelled" | "draft" | "ordered";
|
|
675
675
|
createdAt: string;
|
|
676
676
|
updatedAt: string;
|
|
677
|
-
organizationId: string;
|
|
678
677
|
currency: string;
|
|
678
|
+
organizationId: string;
|
|
679
679
|
items: {
|
|
680
680
|
description: string;
|
|
681
681
|
quantity: number;
|
|
@@ -754,8 +754,8 @@ export declare const purchaseOrderListResponseSchema: z.ZodObject<{
|
|
|
754
754
|
status: "received" | "cancelled" | "draft" | "ordered";
|
|
755
755
|
createdAt: string;
|
|
756
756
|
updatedAt: string;
|
|
757
|
-
organizationId: string;
|
|
758
757
|
currency: string;
|
|
758
|
+
organizationId: string;
|
|
759
759
|
items: {
|
|
760
760
|
description: string;
|
|
761
761
|
quantity: number;
|
|
@@ -1325,24 +1325,24 @@ export declare const availablePlansResponseSchema: z.ZodObject<{
|
|
|
1325
1325
|
countryName: z.ZodString;
|
|
1326
1326
|
currency: z.ZodEnum<["NGN", "USD", "GHS", "KES", "CAD", "AED", "GBP", "EUR"]>;
|
|
1327
1327
|
}, "strip", z.ZodTypeAny, {
|
|
1328
|
-
countryName: string;
|
|
1329
1328
|
currency: "NGN" | "USD" | "GHS" | "KES" | "CAD" | "AED" | "GBP" | "EUR";
|
|
1329
|
+
countryName: string;
|
|
1330
1330
|
country: string;
|
|
1331
1331
|
}, {
|
|
1332
|
-
countryName: string;
|
|
1333
1332
|
currency: "NGN" | "USD" | "GHS" | "KES" | "CAD" | "AED" | "GBP" | "EUR";
|
|
1333
|
+
countryName: string;
|
|
1334
1334
|
country: string;
|
|
1335
1335
|
}>;
|
|
1336
1336
|
}, "strip", z.ZodTypeAny, {
|
|
1337
1337
|
detectedLocation: {
|
|
1338
|
-
countryName: string;
|
|
1339
1338
|
currency: "NGN" | "USD" | "GHS" | "KES" | "CAD" | "AED" | "GBP" | "EUR";
|
|
1339
|
+
countryName: string;
|
|
1340
1340
|
country: string;
|
|
1341
1341
|
};
|
|
1342
1342
|
}, {
|
|
1343
1343
|
detectedLocation: {
|
|
1344
|
-
countryName: string;
|
|
1345
1344
|
currency: "NGN" | "USD" | "GHS" | "KES" | "CAD" | "AED" | "GBP" | "EUR";
|
|
1345
|
+
countryName: string;
|
|
1346
1346
|
country: string;
|
|
1347
1347
|
};
|
|
1348
1348
|
}>>;
|
|
@@ -1385,8 +1385,8 @@ export declare const availablePlansResponseSchema: z.ZodObject<{
|
|
|
1385
1385
|
}[];
|
|
1386
1386
|
meta?: {
|
|
1387
1387
|
detectedLocation: {
|
|
1388
|
-
countryName: string;
|
|
1389
1388
|
currency: "NGN" | "USD" | "GHS" | "KES" | "CAD" | "AED" | "GBP" | "EUR";
|
|
1389
|
+
countryName: string;
|
|
1390
1390
|
country: string;
|
|
1391
1391
|
};
|
|
1392
1392
|
} | undefined;
|
|
@@ -1429,8 +1429,8 @@ export declare const availablePlansResponseSchema: z.ZodObject<{
|
|
|
1429
1429
|
}[];
|
|
1430
1430
|
meta?: {
|
|
1431
1431
|
detectedLocation: {
|
|
1432
|
-
countryName: string;
|
|
1433
1432
|
currency: "NGN" | "USD" | "GHS" | "KES" | "CAD" | "AED" | "GBP" | "EUR";
|
|
1433
|
+
countryName: string;
|
|
1434
1434
|
country: string;
|
|
1435
1435
|
};
|
|
1436
1436
|
} | undefined;
|