@deepintel-ltd/farmpro-contracts 1.36.11 → 1.36.13
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/commodity-deals.routes.d.ts +63 -63
- package/dist/routes/market-intelligence.routes.d.ts +684 -0
- package/dist/routes/market-intelligence.routes.d.ts.map +1 -1
- package/dist/routes/market-intelligence.routes.js +61 -0
- package/dist/routes/nutrient-plan.routes.d.ts +97 -0
- package/dist/routes/nutrient-plan.routes.d.ts.map +1 -1
- package/dist/routes/organizations.routes.d.ts +49 -0
- package/dist/routes/organizations.routes.d.ts.map +1 -1
- package/dist/routes/trade-cash-events.routes.d.ts +6 -6
- package/dist/schemas/commodity-deals.schemas.d.ts +39 -39
- package/dist/schemas/commodity-deals.schemas.d.ts.map +1 -1
- package/dist/schemas/commodity-deals.schemas.js +1 -0
- package/dist/schemas/farm-fertilizers.schemas.d.ts +175 -0
- package/dist/schemas/farm-fertilizers.schemas.d.ts.map +1 -1
- package/dist/schemas/farm-fertilizers.schemas.js +25 -0
- 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/trade-cash-events.schemas.d.ts +8 -8
- package/package.json +1 -1
|
@@ -572,6 +572,78 @@ export declare const fertilizerRequirementSchema: z.ZodObject<{
|
|
|
572
572
|
};
|
|
573
573
|
}>;
|
|
574
574
|
export type FertilizerRequirementContract = z.infer<typeof fertilizerRequirementSchema>;
|
|
575
|
+
/**
|
|
576
|
+
* What the rest of the season's fertilizer costs on the current set against the plain soluble-salt kit. Prices are the
|
|
577
|
+
* farm's own recorded cost where it has one, else dated reference prices; absent when a price or the plant count is
|
|
578
|
+
* not known, never filled with a guess.
|
|
579
|
+
*/
|
|
580
|
+
export declare const costCompareSchema: z.ZodObject<{
|
|
581
|
+
currency: z.ZodLiteral<"NGN">;
|
|
582
|
+
/** Date of the reference prices. */
|
|
583
|
+
asOf: z.ZodString;
|
|
584
|
+
weeksRemaining: z.ZodNumber;
|
|
585
|
+
current: z.ZodObject<{
|
|
586
|
+
setId: z.ZodString;
|
|
587
|
+
setName: z.ZodString;
|
|
588
|
+
/** Naira for the rest of the season at standard rates, to the nearest hundred. */
|
|
589
|
+
seasonCostNaira: z.ZodNumber;
|
|
590
|
+
}, "strip", z.ZodTypeAny, {
|
|
591
|
+
setId: string;
|
|
592
|
+
setName: string;
|
|
593
|
+
seasonCostNaira: number;
|
|
594
|
+
}, {
|
|
595
|
+
setId: string;
|
|
596
|
+
setName: string;
|
|
597
|
+
seasonCostNaira: number;
|
|
598
|
+
}>;
|
|
599
|
+
saltKit: z.ZodObject<{
|
|
600
|
+
setId: z.ZodString;
|
|
601
|
+
setName: z.ZodString;
|
|
602
|
+
/** Naira for the rest of the season at standard rates, to the nearest hundred. */
|
|
603
|
+
seasonCostNaira: z.ZodNumber;
|
|
604
|
+
}, "strip", z.ZodTypeAny, {
|
|
605
|
+
setId: string;
|
|
606
|
+
setName: string;
|
|
607
|
+
seasonCostNaira: number;
|
|
608
|
+
}, {
|
|
609
|
+
setId: string;
|
|
610
|
+
setName: string;
|
|
611
|
+
seasonCostNaira: number;
|
|
612
|
+
}>;
|
|
613
|
+
/** What switching to the salt kit saves for the rest of the season; 0 when it would not. */
|
|
614
|
+
savingNaira: z.ZodNumber;
|
|
615
|
+
}, "strip", z.ZodTypeAny, {
|
|
616
|
+
current: {
|
|
617
|
+
setId: string;
|
|
618
|
+
setName: string;
|
|
619
|
+
seasonCostNaira: number;
|
|
620
|
+
};
|
|
621
|
+
currency: "NGN";
|
|
622
|
+
asOf: string;
|
|
623
|
+
weeksRemaining: number;
|
|
624
|
+
saltKit: {
|
|
625
|
+
setId: string;
|
|
626
|
+
setName: string;
|
|
627
|
+
seasonCostNaira: number;
|
|
628
|
+
};
|
|
629
|
+
savingNaira: number;
|
|
630
|
+
}, {
|
|
631
|
+
current: {
|
|
632
|
+
setId: string;
|
|
633
|
+
setName: string;
|
|
634
|
+
seasonCostNaira: number;
|
|
635
|
+
};
|
|
636
|
+
currency: "NGN";
|
|
637
|
+
asOf: string;
|
|
638
|
+
weeksRemaining: number;
|
|
639
|
+
saltKit: {
|
|
640
|
+
setId: string;
|
|
641
|
+
setName: string;
|
|
642
|
+
seasonCostNaira: number;
|
|
643
|
+
};
|
|
644
|
+
savingNaira: number;
|
|
645
|
+
}>;
|
|
646
|
+
export type CostCompareContract = z.infer<typeof costCompareSchema>;
|
|
575
647
|
export declare const uncoveredRoleSchema: z.ZodObject<{
|
|
576
648
|
role: z.ZodString;
|
|
577
649
|
message: z.ZodString;
|
|
@@ -1030,6 +1102,75 @@ export declare const fertilizerRequirementsResponseSchema: z.ZodObject<{
|
|
|
1030
1102
|
suggestedProduct: string | null;
|
|
1031
1103
|
}>, "many">;
|
|
1032
1104
|
warnings: z.ZodArray<z.ZodString, "many">;
|
|
1105
|
+
/** The rest of the season on the current set against the salt kit. Null when it cannot be priced. */
|
|
1106
|
+
costCompare: z.ZodNullable<z.ZodObject<{
|
|
1107
|
+
currency: z.ZodLiteral<"NGN">;
|
|
1108
|
+
/** Date of the reference prices. */
|
|
1109
|
+
asOf: z.ZodString;
|
|
1110
|
+
weeksRemaining: z.ZodNumber;
|
|
1111
|
+
current: z.ZodObject<{
|
|
1112
|
+
setId: z.ZodString;
|
|
1113
|
+
setName: z.ZodString;
|
|
1114
|
+
/** Naira for the rest of the season at standard rates, to the nearest hundred. */
|
|
1115
|
+
seasonCostNaira: z.ZodNumber;
|
|
1116
|
+
}, "strip", z.ZodTypeAny, {
|
|
1117
|
+
setId: string;
|
|
1118
|
+
setName: string;
|
|
1119
|
+
seasonCostNaira: number;
|
|
1120
|
+
}, {
|
|
1121
|
+
setId: string;
|
|
1122
|
+
setName: string;
|
|
1123
|
+
seasonCostNaira: number;
|
|
1124
|
+
}>;
|
|
1125
|
+
saltKit: z.ZodObject<{
|
|
1126
|
+
setId: z.ZodString;
|
|
1127
|
+
setName: z.ZodString;
|
|
1128
|
+
/** Naira for the rest of the season at standard rates, to the nearest hundred. */
|
|
1129
|
+
seasonCostNaira: z.ZodNumber;
|
|
1130
|
+
}, "strip", z.ZodTypeAny, {
|
|
1131
|
+
setId: string;
|
|
1132
|
+
setName: string;
|
|
1133
|
+
seasonCostNaira: number;
|
|
1134
|
+
}, {
|
|
1135
|
+
setId: string;
|
|
1136
|
+
setName: string;
|
|
1137
|
+
seasonCostNaira: number;
|
|
1138
|
+
}>;
|
|
1139
|
+
/** What switching to the salt kit saves for the rest of the season; 0 when it would not. */
|
|
1140
|
+
savingNaira: z.ZodNumber;
|
|
1141
|
+
}, "strip", z.ZodTypeAny, {
|
|
1142
|
+
current: {
|
|
1143
|
+
setId: string;
|
|
1144
|
+
setName: string;
|
|
1145
|
+
seasonCostNaira: number;
|
|
1146
|
+
};
|
|
1147
|
+
currency: "NGN";
|
|
1148
|
+
asOf: string;
|
|
1149
|
+
weeksRemaining: number;
|
|
1150
|
+
saltKit: {
|
|
1151
|
+
setId: string;
|
|
1152
|
+
setName: string;
|
|
1153
|
+
seasonCostNaira: number;
|
|
1154
|
+
};
|
|
1155
|
+
savingNaira: number;
|
|
1156
|
+
}, {
|
|
1157
|
+
current: {
|
|
1158
|
+
setId: string;
|
|
1159
|
+
setName: string;
|
|
1160
|
+
seasonCostNaira: number;
|
|
1161
|
+
};
|
|
1162
|
+
currency: "NGN";
|
|
1163
|
+
asOf: string;
|
|
1164
|
+
weeksRemaining: number;
|
|
1165
|
+
saltKit: {
|
|
1166
|
+
setId: string;
|
|
1167
|
+
setName: string;
|
|
1168
|
+
seasonCostNaira: number;
|
|
1169
|
+
};
|
|
1170
|
+
savingNaira: number;
|
|
1171
|
+
}>>;
|
|
1172
|
+
/** Short swaps worth making when stock or brand makes the plan dearer than it needs to be. */
|
|
1173
|
+
substitutions: z.ZodArray<z.ZodString, "many">;
|
|
1033
1174
|
}, "strip", z.ZodTypeAny, {
|
|
1034
1175
|
status: "ok" | "no-plan";
|
|
1035
1176
|
message: string | null;
|
|
@@ -1163,6 +1304,23 @@ export declare const fertilizerRequirementsResponseSchema: z.ZodObject<{
|
|
|
1163
1304
|
suggestedProduct: string | null;
|
|
1164
1305
|
}[];
|
|
1165
1306
|
warnings: string[];
|
|
1307
|
+
costCompare: {
|
|
1308
|
+
current: {
|
|
1309
|
+
setId: string;
|
|
1310
|
+
setName: string;
|
|
1311
|
+
seasonCostNaira: number;
|
|
1312
|
+
};
|
|
1313
|
+
currency: "NGN";
|
|
1314
|
+
asOf: string;
|
|
1315
|
+
weeksRemaining: number;
|
|
1316
|
+
saltKit: {
|
|
1317
|
+
setId: string;
|
|
1318
|
+
setName: string;
|
|
1319
|
+
seasonCostNaira: number;
|
|
1320
|
+
};
|
|
1321
|
+
savingNaira: number;
|
|
1322
|
+
} | null;
|
|
1323
|
+
substitutions: string[];
|
|
1166
1324
|
}, {
|
|
1167
1325
|
status: "ok" | "no-plan";
|
|
1168
1326
|
message: string | null;
|
|
@@ -1296,6 +1454,23 @@ export declare const fertilizerRequirementsResponseSchema: z.ZodObject<{
|
|
|
1296
1454
|
suggestedProduct: string | null;
|
|
1297
1455
|
}[];
|
|
1298
1456
|
warnings: string[];
|
|
1457
|
+
costCompare: {
|
|
1458
|
+
current: {
|
|
1459
|
+
setId: string;
|
|
1460
|
+
setName: string;
|
|
1461
|
+
seasonCostNaira: number;
|
|
1462
|
+
};
|
|
1463
|
+
currency: "NGN";
|
|
1464
|
+
asOf: string;
|
|
1465
|
+
weeksRemaining: number;
|
|
1466
|
+
saltKit: {
|
|
1467
|
+
setId: string;
|
|
1468
|
+
setName: string;
|
|
1469
|
+
seasonCostNaira: number;
|
|
1470
|
+
};
|
|
1471
|
+
savingNaira: number;
|
|
1472
|
+
} | null;
|
|
1473
|
+
substitutions: string[];
|
|
1299
1474
|
}>;
|
|
1300
1475
|
export type FertilizerRequirementsResponse = z.infer<typeof fertilizerRequirementsResponseSchema>;
|
|
1301
1476
|
//# sourceMappingURL=farm-fertilizers.schemas.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"farm-fertilizers.schemas.d.ts","sourceRoot":"","sources":["../../src/schemas/farm-fertilizers.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,uBAAuB,8CAA4C,CAAC;AACjF,eAAO,MAAM,oBAAoB,8CAA4C,CAAC;AAiB9E,wGAAwG;AACxG,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmBrC,CAAC;AACL,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAElF,mGAAmG;AACnG,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;IAerC,uFAAuF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAOvF,CAAC;AACH,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAEtF,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;IAiB/B,4DAA4D;;IAE5D,4CAA4C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAE5C,CAAC;AACH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAE1E,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;IAPtC,4DAA4D;;IAE5D,4CAA4C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAS5C,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;QAbnC,4DAA4D;;QAE5D,4CAA4C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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QAE1D,8EAA8E;;;;QAI9E,yDAAyD;;QAEzD,6CAA6C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAoD7C,uEAAuE;;;;;;;;;;;;;;;IAGvE,qGAAqG;;;QAnCrG,oCAAoC;;;;;;YAXpC,kFAAkF;;;;;;;;;;;;;;YAAlF,kFAAkF;;;;;;;;;;;QAgBlF,4FAA4F;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAgC5F,8FAA8F;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAE9F,CAAC;AACH,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oCAAoC,CAAC,CAAC"}
|
|
@@ -148,6 +148,27 @@ export const fertilizerRequirementSchema = z.object({
|
|
|
148
148
|
labelDirections: z.string().nullable(),
|
|
149
149
|
guidance: guidanceSchema,
|
|
150
150
|
});
|
|
151
|
+
const seasonCostSchema = z.object({
|
|
152
|
+
setId: z.string(),
|
|
153
|
+
setName: z.string(),
|
|
154
|
+
/** Naira for the rest of the season at standard rates, to the nearest hundred. */
|
|
155
|
+
seasonCostNaira: z.number(),
|
|
156
|
+
});
|
|
157
|
+
/**
|
|
158
|
+
* What the rest of the season's fertilizer costs on the current set against the plain soluble-salt kit. Prices are the
|
|
159
|
+
* farm's own recorded cost where it has one, else dated reference prices; absent when a price or the plant count is
|
|
160
|
+
* not known, never filled with a guess.
|
|
161
|
+
*/
|
|
162
|
+
export const costCompareSchema = z.object({
|
|
163
|
+
currency: z.literal('NGN'),
|
|
164
|
+
/** Date of the reference prices. */
|
|
165
|
+
asOf: z.string(),
|
|
166
|
+
weeksRemaining: z.number(),
|
|
167
|
+
current: seasonCostSchema,
|
|
168
|
+
saltKit: seasonCostSchema,
|
|
169
|
+
/** What switching to the salt kit saves for the rest of the season; 0 when it would not. */
|
|
170
|
+
savingNaira: z.number(),
|
|
171
|
+
});
|
|
151
172
|
export const uncoveredRoleSchema = z.object({
|
|
152
173
|
role: z.string(),
|
|
153
174
|
message: z.string(),
|
|
@@ -172,4 +193,8 @@ export const fertilizerRequirementsResponseSchema = z.object({
|
|
|
172
193
|
/** Jobs the stage needs done that no fertilizer on the farm can do. */
|
|
173
194
|
uncoveredRoles: z.array(uncoveredRoleSchema),
|
|
174
195
|
warnings: z.array(z.string()),
|
|
196
|
+
/** The rest of the season on the current set against the salt kit. Null when it cannot be priced. */
|
|
197
|
+
costCompare: costCompareSchema.nullable(),
|
|
198
|
+
/** Short swaps worth making when stock or brand makes the plan dearer than it needs to be. */
|
|
199
|
+
substitutions: z.array(z.string()),
|
|
175
200
|
});
|
|
@@ -13,6 +13,8 @@ export declare const organizationAttributesSchema: z.ZodObject<{
|
|
|
13
13
|
companyCommissionRate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
14
14
|
/** Default % of returns (net after staff) — deal-page prefill when mode switches. */
|
|
15
15
|
companyFeePercentOfReturns: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
16
|
+
/** Default % of gross profit — new deals inherit as percent_of_gross when set. */
|
|
17
|
+
companyFeePercentOfGross: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
16
18
|
/** Default ₦ per kg company fee — deal-page prefill when mode switches. */
|
|
17
19
|
companyFeePerKg: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
18
20
|
/** ISO 4217 currency for all org money (deals, invoices, investor views). */
|
|
@@ -33,6 +35,7 @@ export declare const organizationAttributesSchema: z.ZodObject<{
|
|
|
33
35
|
commodityCommissionRate: number | null;
|
|
34
36
|
companyCommissionRate?: number | null | undefined;
|
|
35
37
|
companyFeePercentOfReturns?: number | null | undefined;
|
|
38
|
+
companyFeePercentOfGross?: number | null | undefined;
|
|
36
39
|
companyFeePerKg?: number | null | undefined;
|
|
37
40
|
currency?: string | undefined;
|
|
38
41
|
membershipRole?: "creator" | "admin" | "investor" | undefined;
|
|
@@ -47,6 +50,7 @@ export declare const organizationAttributesSchema: z.ZodObject<{
|
|
|
47
50
|
commodityCommissionRate: number | null;
|
|
48
51
|
companyCommissionRate?: number | null | undefined;
|
|
49
52
|
companyFeePercentOfReturns?: number | null | undefined;
|
|
53
|
+
companyFeePercentOfGross?: number | null | undefined;
|
|
50
54
|
companyFeePerKg?: number | null | undefined;
|
|
51
55
|
currency?: string | undefined;
|
|
52
56
|
membershipRole?: "creator" | "admin" | "investor" | undefined;
|
|
@@ -63,6 +67,7 @@ export declare const createOrganizationAttributesSchema: z.ZodObject<{
|
|
|
63
67
|
commodityCommissionRate: z.ZodOptional<z.ZodNumber>;
|
|
64
68
|
companyCommissionRate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
65
69
|
companyFeePercentOfReturns: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
70
|
+
companyFeePercentOfGross: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
66
71
|
companyFeePerKg: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
67
72
|
currency: z.ZodOptional<z.ZodString>;
|
|
68
73
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -74,6 +79,7 @@ export declare const createOrganizationAttributesSchema: z.ZodObject<{
|
|
|
74
79
|
commodityCommissionRate?: number | undefined;
|
|
75
80
|
companyCommissionRate?: number | null | undefined;
|
|
76
81
|
companyFeePercentOfReturns?: number | null | undefined;
|
|
82
|
+
companyFeePercentOfGross?: number | null | undefined;
|
|
77
83
|
companyFeePerKg?: number | null | undefined;
|
|
78
84
|
currency?: string | undefined;
|
|
79
85
|
}, {
|
|
@@ -85,6 +91,7 @@ export declare const createOrganizationAttributesSchema: z.ZodObject<{
|
|
|
85
91
|
commodityCommissionRate?: number | undefined;
|
|
86
92
|
companyCommissionRate?: number | null | undefined;
|
|
87
93
|
companyFeePercentOfReturns?: number | null | undefined;
|
|
94
|
+
companyFeePercentOfGross?: number | null | undefined;
|
|
88
95
|
companyFeePerKg?: number | null | undefined;
|
|
89
96
|
currency?: string | undefined;
|
|
90
97
|
}>;
|
|
@@ -97,6 +104,7 @@ export declare const updateOrganizationAttributesSchema: z.ZodObject<{
|
|
|
97
104
|
commodityCommissionRate: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
98
105
|
companyCommissionRate: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
99
106
|
companyFeePercentOfReturns: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
107
|
+
companyFeePercentOfGross: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
100
108
|
companyFeePerKg: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
101
109
|
currency: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
102
110
|
} & {
|
|
@@ -117,6 +125,7 @@ export declare const updateOrganizationAttributesSchema: z.ZodObject<{
|
|
|
117
125
|
commodityCommissionRate?: number | undefined;
|
|
118
126
|
companyCommissionRate?: number | null | undefined;
|
|
119
127
|
companyFeePercentOfReturns?: number | null | undefined;
|
|
128
|
+
companyFeePercentOfGross?: number | null | undefined;
|
|
120
129
|
companyFeePerKg?: number | null | undefined;
|
|
121
130
|
currency?: string | undefined;
|
|
122
131
|
commodityCommissionApplyTo?: "future" | "open_and_future" | undefined;
|
|
@@ -130,6 +139,7 @@ export declare const updateOrganizationAttributesSchema: z.ZodObject<{
|
|
|
130
139
|
commodityCommissionRate?: number | undefined;
|
|
131
140
|
companyCommissionRate?: number | null | undefined;
|
|
132
141
|
companyFeePercentOfReturns?: number | null | undefined;
|
|
142
|
+
companyFeePercentOfGross?: number | null | undefined;
|
|
133
143
|
companyFeePerKg?: number | null | undefined;
|
|
134
144
|
currency?: string | undefined;
|
|
135
145
|
commodityCommissionApplyTo?: "future" | "open_and_future" | undefined;
|
|
@@ -146,6 +156,7 @@ export declare const createOrganizationSchema: z.ZodObject<{
|
|
|
146
156
|
commodityCommissionRate: z.ZodOptional<z.ZodNumber>;
|
|
147
157
|
companyCommissionRate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
148
158
|
companyFeePercentOfReturns: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
159
|
+
companyFeePercentOfGross: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
149
160
|
companyFeePerKg: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
150
161
|
currency: z.ZodOptional<z.ZodString>;
|
|
151
162
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -157,6 +168,7 @@ export declare const createOrganizationSchema: z.ZodObject<{
|
|
|
157
168
|
commodityCommissionRate?: number | undefined;
|
|
158
169
|
companyCommissionRate?: number | null | undefined;
|
|
159
170
|
companyFeePercentOfReturns?: number | null | undefined;
|
|
171
|
+
companyFeePercentOfGross?: number | null | undefined;
|
|
160
172
|
companyFeePerKg?: number | null | undefined;
|
|
161
173
|
currency?: string | undefined;
|
|
162
174
|
}, {
|
|
@@ -168,6 +180,7 @@ export declare const createOrganizationSchema: z.ZodObject<{
|
|
|
168
180
|
commodityCommissionRate?: number | undefined;
|
|
169
181
|
companyCommissionRate?: number | null | undefined;
|
|
170
182
|
companyFeePercentOfReturns?: number | null | undefined;
|
|
183
|
+
companyFeePercentOfGross?: number | null | undefined;
|
|
171
184
|
companyFeePerKg?: number | null | undefined;
|
|
172
185
|
currency?: string | undefined;
|
|
173
186
|
}>;
|
|
@@ -182,6 +195,7 @@ export declare const createOrganizationSchema: z.ZodObject<{
|
|
|
182
195
|
commodityCommissionRate?: number | undefined;
|
|
183
196
|
companyCommissionRate?: number | null | undefined;
|
|
184
197
|
companyFeePercentOfReturns?: number | null | undefined;
|
|
198
|
+
companyFeePercentOfGross?: number | null | undefined;
|
|
185
199
|
companyFeePerKg?: number | null | undefined;
|
|
186
200
|
currency?: string | undefined;
|
|
187
201
|
};
|
|
@@ -196,6 +210,7 @@ export declare const createOrganizationSchema: z.ZodObject<{
|
|
|
196
210
|
commodityCommissionRate?: number | undefined;
|
|
197
211
|
companyCommissionRate?: number | null | undefined;
|
|
198
212
|
companyFeePercentOfReturns?: number | null | undefined;
|
|
213
|
+
companyFeePercentOfGross?: number | null | undefined;
|
|
199
214
|
companyFeePerKg?: number | null | undefined;
|
|
200
215
|
currency?: string | undefined;
|
|
201
216
|
};
|
|
@@ -212,6 +227,7 @@ export declare const updateOrganizationSchema: z.ZodObject<{
|
|
|
212
227
|
commodityCommissionRate: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
213
228
|
companyCommissionRate: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
214
229
|
companyFeePercentOfReturns: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
230
|
+
companyFeePercentOfGross: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
215
231
|
companyFeePerKg: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
216
232
|
currency: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
217
233
|
} & {
|
|
@@ -232,6 +248,7 @@ export declare const updateOrganizationSchema: z.ZodObject<{
|
|
|
232
248
|
commodityCommissionRate?: number | undefined;
|
|
233
249
|
companyCommissionRate?: number | null | undefined;
|
|
234
250
|
companyFeePercentOfReturns?: number | null | undefined;
|
|
251
|
+
companyFeePercentOfGross?: number | null | undefined;
|
|
235
252
|
companyFeePerKg?: number | null | undefined;
|
|
236
253
|
currency?: string | undefined;
|
|
237
254
|
commodityCommissionApplyTo?: "future" | "open_and_future" | undefined;
|
|
@@ -245,6 +262,7 @@ export declare const updateOrganizationSchema: z.ZodObject<{
|
|
|
245
262
|
commodityCommissionRate?: number | undefined;
|
|
246
263
|
companyCommissionRate?: number | null | undefined;
|
|
247
264
|
companyFeePercentOfReturns?: number | null | undefined;
|
|
265
|
+
companyFeePercentOfGross?: number | null | undefined;
|
|
248
266
|
companyFeePerKg?: number | null | undefined;
|
|
249
267
|
currency?: string | undefined;
|
|
250
268
|
commodityCommissionApplyTo?: "future" | "open_and_future" | undefined;
|
|
@@ -261,6 +279,7 @@ export declare const updateOrganizationSchema: z.ZodObject<{
|
|
|
261
279
|
commodityCommissionRate?: number | undefined;
|
|
262
280
|
companyCommissionRate?: number | null | undefined;
|
|
263
281
|
companyFeePercentOfReturns?: number | null | undefined;
|
|
282
|
+
companyFeePercentOfGross?: number | null | undefined;
|
|
264
283
|
companyFeePerKg?: number | null | undefined;
|
|
265
284
|
currency?: string | undefined;
|
|
266
285
|
commodityCommissionApplyTo?: "future" | "open_and_future" | undefined;
|
|
@@ -278,6 +297,7 @@ export declare const updateOrganizationSchema: z.ZodObject<{
|
|
|
278
297
|
commodityCommissionRate?: number | undefined;
|
|
279
298
|
companyCommissionRate?: number | null | undefined;
|
|
280
299
|
companyFeePercentOfReturns?: number | null | undefined;
|
|
300
|
+
companyFeePercentOfGross?: number | null | undefined;
|
|
281
301
|
companyFeePerKg?: number | null | undefined;
|
|
282
302
|
currency?: string | undefined;
|
|
283
303
|
commodityCommissionApplyTo?: "future" | "open_and_future" | undefined;
|
|
@@ -299,6 +319,8 @@ export declare const organizationResourceSchema: z.ZodObject<{
|
|
|
299
319
|
companyCommissionRate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
300
320
|
/** Default % of returns (net after staff) — deal-page prefill when mode switches. */
|
|
301
321
|
companyFeePercentOfReturns: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
322
|
+
/** Default % of gross profit — new deals inherit as percent_of_gross when set. */
|
|
323
|
+
companyFeePercentOfGross: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
302
324
|
/** Default ₦ per kg company fee — deal-page prefill when mode switches. */
|
|
303
325
|
companyFeePerKg: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
304
326
|
/** ISO 4217 currency for all org money (deals, invoices, investor views). */
|
|
@@ -319,6 +341,7 @@ export declare const organizationResourceSchema: z.ZodObject<{
|
|
|
319
341
|
commodityCommissionRate: number | null;
|
|
320
342
|
companyCommissionRate?: number | null | undefined;
|
|
321
343
|
companyFeePercentOfReturns?: number | null | undefined;
|
|
344
|
+
companyFeePercentOfGross?: number | null | undefined;
|
|
322
345
|
companyFeePerKg?: number | null | undefined;
|
|
323
346
|
currency?: string | undefined;
|
|
324
347
|
membershipRole?: "creator" | "admin" | "investor" | undefined;
|
|
@@ -333,6 +356,7 @@ export declare const organizationResourceSchema: z.ZodObject<{
|
|
|
333
356
|
commodityCommissionRate: number | null;
|
|
334
357
|
companyCommissionRate?: number | null | undefined;
|
|
335
358
|
companyFeePercentOfReturns?: number | null | undefined;
|
|
359
|
+
companyFeePercentOfGross?: number | null | undefined;
|
|
336
360
|
companyFeePerKg?: number | null | undefined;
|
|
337
361
|
currency?: string | undefined;
|
|
338
362
|
membershipRole?: "creator" | "admin" | "investor" | undefined;
|
|
@@ -354,6 +378,7 @@ export declare const organizationResourceSchema: z.ZodObject<{
|
|
|
354
378
|
commodityCommissionRate: number | null;
|
|
355
379
|
companyCommissionRate?: number | null | undefined;
|
|
356
380
|
companyFeePercentOfReturns?: number | null | undefined;
|
|
381
|
+
companyFeePercentOfGross?: number | null | undefined;
|
|
357
382
|
companyFeePerKg?: number | null | undefined;
|
|
358
383
|
currency?: string | undefined;
|
|
359
384
|
membershipRole?: "creator" | "admin" | "investor" | undefined;
|
|
@@ -375,6 +400,7 @@ export declare const organizationResourceSchema: z.ZodObject<{
|
|
|
375
400
|
commodityCommissionRate: number | null;
|
|
376
401
|
companyCommissionRate?: number | null | undefined;
|
|
377
402
|
companyFeePercentOfReturns?: number | null | undefined;
|
|
403
|
+
companyFeePercentOfGross?: number | null | undefined;
|
|
378
404
|
companyFeePerKg?: number | null | undefined;
|
|
379
405
|
currency?: string | undefined;
|
|
380
406
|
membershipRole?: "creator" | "admin" | "investor" | undefined;
|
|
@@ -398,6 +424,8 @@ export declare const organizationResponseSchema: z.ZodObject<{
|
|
|
398
424
|
companyCommissionRate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
399
425
|
/** Default % of returns (net after staff) — deal-page prefill when mode switches. */
|
|
400
426
|
companyFeePercentOfReturns: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
427
|
+
/** Default % of gross profit — new deals inherit as percent_of_gross when set. */
|
|
428
|
+
companyFeePercentOfGross: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
401
429
|
/** Default ₦ per kg company fee — deal-page prefill when mode switches. */
|
|
402
430
|
companyFeePerKg: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
403
431
|
/** ISO 4217 currency for all org money (deals, invoices, investor views). */
|
|
@@ -418,6 +446,7 @@ export declare const organizationResponseSchema: z.ZodObject<{
|
|
|
418
446
|
commodityCommissionRate: number | null;
|
|
419
447
|
companyCommissionRate?: number | null | undefined;
|
|
420
448
|
companyFeePercentOfReturns?: number | null | undefined;
|
|
449
|
+
companyFeePercentOfGross?: number | null | undefined;
|
|
421
450
|
companyFeePerKg?: number | null | undefined;
|
|
422
451
|
currency?: string | undefined;
|
|
423
452
|
membershipRole?: "creator" | "admin" | "investor" | undefined;
|
|
@@ -432,6 +461,7 @@ export declare const organizationResponseSchema: z.ZodObject<{
|
|
|
432
461
|
commodityCommissionRate: number | null;
|
|
433
462
|
companyCommissionRate?: number | null | undefined;
|
|
434
463
|
companyFeePercentOfReturns?: number | null | undefined;
|
|
464
|
+
companyFeePercentOfGross?: number | null | undefined;
|
|
435
465
|
companyFeePerKg?: number | null | undefined;
|
|
436
466
|
currency?: string | undefined;
|
|
437
467
|
membershipRole?: "creator" | "admin" | "investor" | undefined;
|
|
@@ -453,6 +483,7 @@ export declare const organizationResponseSchema: z.ZodObject<{
|
|
|
453
483
|
commodityCommissionRate: number | null;
|
|
454
484
|
companyCommissionRate?: number | null | undefined;
|
|
455
485
|
companyFeePercentOfReturns?: number | null | undefined;
|
|
486
|
+
companyFeePercentOfGross?: number | null | undefined;
|
|
456
487
|
companyFeePerKg?: number | null | undefined;
|
|
457
488
|
currency?: string | undefined;
|
|
458
489
|
membershipRole?: "creator" | "admin" | "investor" | undefined;
|
|
@@ -474,6 +505,7 @@ export declare const organizationResponseSchema: z.ZodObject<{
|
|
|
474
505
|
commodityCommissionRate: number | null;
|
|
475
506
|
companyCommissionRate?: number | null | undefined;
|
|
476
507
|
companyFeePercentOfReturns?: number | null | undefined;
|
|
508
|
+
companyFeePercentOfGross?: number | null | undefined;
|
|
477
509
|
companyFeePerKg?: number | null | undefined;
|
|
478
510
|
currency?: string | undefined;
|
|
479
511
|
membershipRole?: "creator" | "admin" | "investor" | undefined;
|
|
@@ -521,6 +553,7 @@ export declare const organizationResponseSchema: z.ZodObject<{
|
|
|
521
553
|
commodityCommissionRate: number | null;
|
|
522
554
|
companyCommissionRate?: number | null | undefined;
|
|
523
555
|
companyFeePercentOfReturns?: number | null | undefined;
|
|
556
|
+
companyFeePercentOfGross?: number | null | undefined;
|
|
524
557
|
companyFeePerKg?: number | null | undefined;
|
|
525
558
|
currency?: string | undefined;
|
|
526
559
|
membershipRole?: "creator" | "admin" | "investor" | undefined;
|
|
@@ -554,6 +587,7 @@ export declare const organizationResponseSchema: z.ZodObject<{
|
|
|
554
587
|
commodityCommissionRate: number | null;
|
|
555
588
|
companyCommissionRate?: number | null | undefined;
|
|
556
589
|
companyFeePercentOfReturns?: number | null | undefined;
|
|
590
|
+
companyFeePercentOfGross?: number | null | undefined;
|
|
557
591
|
companyFeePerKg?: number | null | undefined;
|
|
558
592
|
currency?: string | undefined;
|
|
559
593
|
membershipRole?: "creator" | "admin" | "investor" | undefined;
|
|
@@ -588,6 +622,8 @@ export declare const organizationListResponseSchema: z.ZodObject<{
|
|
|
588
622
|
companyCommissionRate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
589
623
|
/** Default % of returns (net after staff) — deal-page prefill when mode switches. */
|
|
590
624
|
companyFeePercentOfReturns: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
625
|
+
/** Default % of gross profit — new deals inherit as percent_of_gross when set. */
|
|
626
|
+
companyFeePercentOfGross: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
591
627
|
/** Default ₦ per kg company fee — deal-page prefill when mode switches. */
|
|
592
628
|
companyFeePerKg: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
593
629
|
/** ISO 4217 currency for all org money (deals, invoices, investor views). */
|
|
@@ -608,6 +644,7 @@ export declare const organizationListResponseSchema: z.ZodObject<{
|
|
|
608
644
|
commodityCommissionRate: number | null;
|
|
609
645
|
companyCommissionRate?: number | null | undefined;
|
|
610
646
|
companyFeePercentOfReturns?: number | null | undefined;
|
|
647
|
+
companyFeePercentOfGross?: number | null | undefined;
|
|
611
648
|
companyFeePerKg?: number | null | undefined;
|
|
612
649
|
currency?: string | undefined;
|
|
613
650
|
membershipRole?: "creator" | "admin" | "investor" | undefined;
|
|
@@ -622,6 +659,7 @@ export declare const organizationListResponseSchema: z.ZodObject<{
|
|
|
622
659
|
commodityCommissionRate: number | null;
|
|
623
660
|
companyCommissionRate?: number | null | undefined;
|
|
624
661
|
companyFeePercentOfReturns?: number | null | undefined;
|
|
662
|
+
companyFeePercentOfGross?: number | null | undefined;
|
|
625
663
|
companyFeePerKg?: number | null | undefined;
|
|
626
664
|
currency?: string | undefined;
|
|
627
665
|
membershipRole?: "creator" | "admin" | "investor" | undefined;
|
|
@@ -643,6 +681,7 @@ export declare const organizationListResponseSchema: z.ZodObject<{
|
|
|
643
681
|
commodityCommissionRate: number | null;
|
|
644
682
|
companyCommissionRate?: number | null | undefined;
|
|
645
683
|
companyFeePercentOfReturns?: number | null | undefined;
|
|
684
|
+
companyFeePercentOfGross?: number | null | undefined;
|
|
646
685
|
companyFeePerKg?: number | null | undefined;
|
|
647
686
|
currency?: string | undefined;
|
|
648
687
|
membershipRole?: "creator" | "admin" | "investor" | undefined;
|
|
@@ -664,6 +703,7 @@ export declare const organizationListResponseSchema: z.ZodObject<{
|
|
|
664
703
|
commodityCommissionRate: number | null;
|
|
665
704
|
companyCommissionRate?: number | null | undefined;
|
|
666
705
|
companyFeePercentOfReturns?: number | null | undefined;
|
|
706
|
+
companyFeePercentOfGross?: number | null | undefined;
|
|
667
707
|
companyFeePerKg?: number | null | undefined;
|
|
668
708
|
currency?: string | undefined;
|
|
669
709
|
membershipRole?: "creator" | "admin" | "investor" | undefined;
|
|
@@ -711,6 +751,7 @@ export declare const organizationListResponseSchema: z.ZodObject<{
|
|
|
711
751
|
commodityCommissionRate: number | null;
|
|
712
752
|
companyCommissionRate?: number | null | undefined;
|
|
713
753
|
companyFeePercentOfReturns?: number | null | undefined;
|
|
754
|
+
companyFeePercentOfGross?: number | null | undefined;
|
|
714
755
|
companyFeePerKg?: number | null | undefined;
|
|
715
756
|
currency?: string | undefined;
|
|
716
757
|
membershipRole?: "creator" | "admin" | "investor" | undefined;
|
|
@@ -744,6 +785,7 @@ export declare const organizationListResponseSchema: z.ZodObject<{
|
|
|
744
785
|
commodityCommissionRate: number | null;
|
|
745
786
|
companyCommissionRate?: number | null | undefined;
|
|
746
787
|
companyFeePercentOfReturns?: number | null | undefined;
|
|
788
|
+
companyFeePercentOfGross?: number | null | undefined;
|
|
747
789
|
companyFeePerKg?: number | null | undefined;
|
|
748
790
|
currency?: string | undefined;
|
|
749
791
|
membershipRole?: "creator" | "admin" | "investor" | 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,6EAA6E;;IAE7E,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,kFAAkF;;IAElF,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAY7C,CAAC;AAGH,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;IAG3C;;;;;OAKG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGH,CAAC;AAGL,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGnC,CAAC;AAGH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;QAjBjC;;;;;WAKG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgBL,CAAC;AAGH,eAAO,MAAM,0BAA0B;;;;;;;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4E,CAAC;AAGnH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAyD,CAAC;AAChG,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA6D,CAAC;AAGxG,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC;AAC5F,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC;AAC5F,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAC7E,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAC7E,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAChF,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC5E,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC5E,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC"}
|
|
@@ -15,6 +15,8 @@ export const organizationAttributesSchema = z.object({
|
|
|
15
15
|
companyCommissionRate: z.number().min(0).max(100).nullable().optional(),
|
|
16
16
|
/** Default % of returns (net after staff) — deal-page prefill when mode switches. */
|
|
17
17
|
companyFeePercentOfReturns: z.number().min(0).max(100).nullable().optional(),
|
|
18
|
+
/** Default % of gross profit — new deals inherit as percent_of_gross when set. */
|
|
19
|
+
companyFeePercentOfGross: z.number().min(0).max(100).nullable().optional(),
|
|
18
20
|
/** Default ₦ per kg company fee — deal-page prefill when mode switches. */
|
|
19
21
|
companyFeePerKg: z.number().min(0).nullable().optional(),
|
|
20
22
|
/** ISO 4217 currency for all org money (deals, invoices, investor views). */
|
|
@@ -35,6 +37,7 @@ export const createOrganizationAttributesSchema = z.object({
|
|
|
35
37
|
commodityCommissionRate: z.number().min(0).max(100).optional(),
|
|
36
38
|
companyCommissionRate: z.number().min(0).max(100).nullable().optional(),
|
|
37
39
|
companyFeePercentOfReturns: z.number().min(0).max(100).nullable().optional(),
|
|
40
|
+
companyFeePercentOfGross: z.number().min(0).max(100).nullable().optional(),
|
|
38
41
|
companyFeePerKg: z.number().min(0).nullable().optional(),
|
|
39
42
|
currency: z.string().length(3).toUpperCase().optional(),
|
|
40
43
|
});
|