@deepintel-ltd/farmpro-contracts 1.36.1 → 1.36.3
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/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -0
- package/dist/routes/fertilizer-stock.routes.d.ts +868 -0
- package/dist/routes/fertilizer-stock.routes.d.ts.map +1 -0
- package/dist/routes/fertilizer-stock.routes.js +56 -0
- package/dist/routes/index.d.ts +6 -0
- package/dist/routes/index.d.ts.map +1 -1
- package/dist/routes/index.js +4 -0
- package/dist/routes/orchard-plan.routes.d.ts +928 -0
- package/dist/routes/orchard-plan.routes.d.ts.map +1 -0
- package/dist/routes/orchard-plan.routes.js +29 -0
- package/dist/routes/poultry.routes.d.ts +26 -26
- package/dist/routes/trade-cash-events.routes.d.ts +36 -8
- package/dist/routes/trade-cash-events.routes.d.ts.map +1 -1
- package/dist/schemas/fertilizer-stock.schemas.d.ts +855 -0
- package/dist/schemas/fertilizer-stock.schemas.d.ts.map +1 -0
- package/dist/schemas/fertilizer-stock.schemas.js +124 -0
- package/dist/schemas/orchard-plan.schemas.d.ts +1923 -0
- package/dist/schemas/orchard-plan.schemas.d.ts.map +1 -0
- package/dist/schemas/orchard-plan.schemas.js +126 -0
- package/dist/schemas/trade-cash-events.schemas.d.ts +46 -14
- package/dist/schemas/trade-cash-events.schemas.d.ts.map +1 -1
- package/dist/schemas/trade-cash-events.schemas.js +4 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"orchard-plan.schemas.d.ts","sourceRoot":"","sources":["../../src/schemas/orchard-plan.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;EAK9B,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;EAI5B,CAAC;AAEH,eAAO,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4D5F,CAAC;AAEH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAC5D,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC"}
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
const grade = z.enum(['A', 'B', 'C']);
|
|
3
|
+
export const orchardSourceSchema = z.object({
|
|
4
|
+
id: z.string(),
|
|
5
|
+
grade,
|
|
6
|
+
title: z.string(),
|
|
7
|
+
url: z.string(),
|
|
8
|
+
});
|
|
9
|
+
export const orchardTaskSchema = z.object({
|
|
10
|
+
text: z.string(),
|
|
11
|
+
grade,
|
|
12
|
+
source: z.string(),
|
|
13
|
+
});
|
|
14
|
+
export const orchardScoutItemSchema = z.object({
|
|
15
|
+
id: z.string(),
|
|
16
|
+
name: z.string(),
|
|
17
|
+
cause: z.string(),
|
|
18
|
+
look: z.string(),
|
|
19
|
+
action: z.string(),
|
|
20
|
+
grade,
|
|
21
|
+
source: z.string(),
|
|
22
|
+
});
|
|
23
|
+
const productAmountSchema = z.object({
|
|
24
|
+
productId: z.string(),
|
|
25
|
+
label: z.string(),
|
|
26
|
+
nutrient: z.enum(['N', 'P2O5', 'K2O']),
|
|
27
|
+
gramsPerTree: z.number(),
|
|
28
|
+
/** Kilograms for the whole orchard, when the tree count is known. */
|
|
29
|
+
kgForOrchard: z.number().nullable(),
|
|
30
|
+
});
|
|
31
|
+
export const orchardApplicationSchema = z.object({
|
|
32
|
+
id: z.string(),
|
|
33
|
+
label: z.string(),
|
|
34
|
+
why: z.string(),
|
|
35
|
+
/** First and last day of the window this year, YYYY-MM-DD. */
|
|
36
|
+
windowFrom: z.string(),
|
|
37
|
+
windowTo: z.string(),
|
|
38
|
+
/** open: today is inside the window; upcoming: it opens later this year; passed: it closed. */
|
|
39
|
+
status: z.enum(['open', 'upcoming', 'passed']),
|
|
40
|
+
daysUntilOpen: z.number().int().nullable(),
|
|
41
|
+
products: z.array(productAmountSchema),
|
|
42
|
+
});
|
|
43
|
+
export const orchardNutritionSchema = z.object({
|
|
44
|
+
startingScale: z.number(),
|
|
45
|
+
scaleReason: z.string(),
|
|
46
|
+
requiresSoilTest: z.boolean(),
|
|
47
|
+
soilTestAdvice: z.string(),
|
|
48
|
+
placement: z.string(),
|
|
49
|
+
organic: z.string(),
|
|
50
|
+
/** Null in the first year: no mineral fertilizer yet. */
|
|
51
|
+
thisYear: z
|
|
52
|
+
.object({
|
|
53
|
+
completedYears: z.number().int(),
|
|
54
|
+
sharePercent: z.number(),
|
|
55
|
+
perTreeGrams: z.object({ N: z.number(), P2O5: z.number(), K2O: z.number() }),
|
|
56
|
+
applications: z.array(orchardApplicationSchema),
|
|
57
|
+
})
|
|
58
|
+
.nullable(),
|
|
59
|
+
/** Why there is no dose, or what to do instead. */
|
|
60
|
+
note: z.string().nullable(),
|
|
61
|
+
});
|
|
62
|
+
export const orchardYieldSchema = z.object({
|
|
63
|
+
seasonFrom: z.string(),
|
|
64
|
+
kgTotal: z.number(),
|
|
65
|
+
kgPerTree: z.number().nullable(),
|
|
66
|
+
harvestCount: z.number().int(),
|
|
67
|
+
skippedUnits: z.boolean(),
|
|
68
|
+
/** Per tree against the low end of CRIN's improved genotypes. Null without a tree count. */
|
|
69
|
+
percentOfImproved: z.number().nullable(),
|
|
70
|
+
typicalKgPerHa: z.tuple([z.number(), z.number()]),
|
|
71
|
+
improvedKgPerTree: z.tuple([z.number(), z.number()]),
|
|
72
|
+
note: z.string(),
|
|
73
|
+
thinningAndPruning: z.string(),
|
|
74
|
+
});
|
|
75
|
+
export const orchardPlanSchema = z.object({
|
|
76
|
+
sheet: z.object({
|
|
77
|
+
id: z.string(),
|
|
78
|
+
version: z.number().int(),
|
|
79
|
+
label: z.string(),
|
|
80
|
+
status: z.string(),
|
|
81
|
+
evidenceLevel: grade,
|
|
82
|
+
summary: z.string(),
|
|
83
|
+
sources: z.array(orchardSourceSchema),
|
|
84
|
+
}),
|
|
85
|
+
tree: z.object({
|
|
86
|
+
plantedAt: z.string(),
|
|
87
|
+
ageDays: z.number().int(),
|
|
88
|
+
completedYears: z.number().int(),
|
|
89
|
+
stage: z.object({
|
|
90
|
+
id: z.string(),
|
|
91
|
+
label: z.string(),
|
|
92
|
+
summary: z.string(),
|
|
93
|
+
fromDay: z.number().int(),
|
|
94
|
+
toDay: z.number().int(),
|
|
95
|
+
}),
|
|
96
|
+
treeCount: z.number().int().nullable(),
|
|
97
|
+
/** counted: the farmer's count; stand: stand x area; assumed: 100 trees per hectare; unknown: no area. */
|
|
98
|
+
treeCountSource: z.enum(['counted', 'stand', 'assumed', 'unknown']),
|
|
99
|
+
}),
|
|
100
|
+
month: z.object({
|
|
101
|
+
month: z.number().int(),
|
|
102
|
+
name: z.string(),
|
|
103
|
+
season: z.string(),
|
|
104
|
+
title: z.string(),
|
|
105
|
+
tasks: z.array(orchardTaskSchema),
|
|
106
|
+
scout: z.array(orchardScoutItemSchema),
|
|
107
|
+
}),
|
|
108
|
+
nutrition: orchardNutritionSchema,
|
|
109
|
+
yield: orchardYieldSchema.nullable(),
|
|
110
|
+
phenology: z.object({
|
|
111
|
+
floweringMonths: z.array(z.number().int()),
|
|
112
|
+
harvestMonths: z.array(z.number().int()),
|
|
113
|
+
confidence: z.string(),
|
|
114
|
+
note: z.string(),
|
|
115
|
+
}),
|
|
116
|
+
climate: z.object({ place: z.string(), note: z.string() }),
|
|
117
|
+
checklist: z.array(z.string()),
|
|
118
|
+
notes: z.array(z.string()),
|
|
119
|
+
});
|
|
120
|
+
export const orchardPlanResponseSchema = z.object({
|
|
121
|
+
fieldId: z.string(),
|
|
122
|
+
crop: z.string().nullable(),
|
|
123
|
+
status: z.enum(['ok', 'not-planted', 'no-plan']),
|
|
124
|
+
message: z.string().nullable(),
|
|
125
|
+
plan: orchardPlanSchema.nullable(),
|
|
126
|
+
});
|
|
@@ -23,6 +23,7 @@ export declare const tradeCashEventAttributesSchema: z.ZodObject<{
|
|
|
23
23
|
funderId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
24
|
funderName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
25
|
advanceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
+
fromSourcing: z.ZodOptional<z.ZodBoolean>;
|
|
26
27
|
voidedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
28
|
voidedById: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
29
|
voidReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -49,6 +50,7 @@ export declare const tradeCashEventAttributesSchema: z.ZodObject<{
|
|
|
49
50
|
funderId?: string | null | undefined;
|
|
50
51
|
funderName?: string | null | undefined;
|
|
51
52
|
advanceId?: string | null | undefined;
|
|
53
|
+
fromSourcing?: boolean | undefined;
|
|
52
54
|
voidedAt?: string | null | undefined;
|
|
53
55
|
voidedById?: string | null | undefined;
|
|
54
56
|
voidReason?: string | null | undefined;
|
|
@@ -72,6 +74,7 @@ export declare const tradeCashEventAttributesSchema: z.ZodObject<{
|
|
|
72
74
|
funderId?: string | null | undefined;
|
|
73
75
|
funderName?: string | null | undefined;
|
|
74
76
|
advanceId?: string | null | undefined;
|
|
77
|
+
fromSourcing?: boolean | undefined;
|
|
75
78
|
voidedAt?: string | null | undefined;
|
|
76
79
|
voidedById?: string | null | undefined;
|
|
77
80
|
voidReason?: string | null | undefined;
|
|
@@ -94,6 +97,8 @@ export declare const createTradeCashEventAttributesSchema: z.ZodObject<{
|
|
|
94
97
|
funderId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
95
98
|
funderName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
96
99
|
advanceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
100
|
+
/** False on a capital_out pays the investor without reducing In sourcing. */
|
|
101
|
+
fromSourcing: z.ZodOptional<z.ZodBoolean>;
|
|
97
102
|
}, "strip", z.ZodTypeAny, {
|
|
98
103
|
type: "capital_in" | "capital_out" | "deal_allocate" | "deal_return" | "deal_cost_adjustment" | "commission_payout" | "supplier_payment" | "buyer_receipt" | "advance_disburse" | "advance_handoff" | "advance_settle" | "advance_return" | "advance_writeoff";
|
|
99
104
|
currency: string;
|
|
@@ -111,6 +116,7 @@ export declare const createTradeCashEventAttributesSchema: z.ZodObject<{
|
|
|
111
116
|
funderId?: string | null | undefined;
|
|
112
117
|
funderName?: string | null | undefined;
|
|
113
118
|
advanceId?: string | null | undefined;
|
|
119
|
+
fromSourcing?: boolean | undefined;
|
|
114
120
|
}, {
|
|
115
121
|
type: "capital_in" | "capital_out" | "deal_allocate" | "deal_return" | "deal_cost_adjustment" | "commission_payout" | "supplier_payment" | "buyer_receipt" | "advance_disburse" | "advance_handoff" | "advance_settle" | "advance_return" | "advance_writeoff";
|
|
116
122
|
occurredAt: string;
|
|
@@ -128,6 +134,7 @@ export declare const createTradeCashEventAttributesSchema: z.ZodObject<{
|
|
|
128
134
|
funderId?: string | null | undefined;
|
|
129
135
|
funderName?: string | null | undefined;
|
|
130
136
|
advanceId?: string | null | undefined;
|
|
137
|
+
fromSourcing?: boolean | undefined;
|
|
131
138
|
}>;
|
|
132
139
|
export declare const voidTradeCashEventAttributesSchema: z.ZodObject<{
|
|
133
140
|
reason: z.ZodString;
|
|
@@ -157,6 +164,7 @@ export declare const tradeCashEventResourceSchema: z.ZodObject<{
|
|
|
157
164
|
funderId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
158
165
|
funderName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
159
166
|
advanceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
167
|
+
fromSourcing: z.ZodOptional<z.ZodBoolean>;
|
|
160
168
|
voidedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
161
169
|
voidedById: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
162
170
|
voidReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -183,6 +191,7 @@ export declare const tradeCashEventResourceSchema: z.ZodObject<{
|
|
|
183
191
|
funderId?: string | null | undefined;
|
|
184
192
|
funderName?: string | null | undefined;
|
|
185
193
|
advanceId?: string | null | undefined;
|
|
194
|
+
fromSourcing?: boolean | undefined;
|
|
186
195
|
voidedAt?: string | null | undefined;
|
|
187
196
|
voidedById?: string | null | undefined;
|
|
188
197
|
voidReason?: string | null | undefined;
|
|
@@ -206,6 +215,7 @@ export declare const tradeCashEventResourceSchema: z.ZodObject<{
|
|
|
206
215
|
funderId?: string | null | undefined;
|
|
207
216
|
funderName?: string | null | undefined;
|
|
208
217
|
advanceId?: string | null | undefined;
|
|
218
|
+
fromSourcing?: boolean | undefined;
|
|
209
219
|
voidedAt?: string | null | undefined;
|
|
210
220
|
voidedById?: string | null | undefined;
|
|
211
221
|
voidReason?: string | null | undefined;
|
|
@@ -236,6 +246,7 @@ export declare const tradeCashEventResourceSchema: z.ZodObject<{
|
|
|
236
246
|
funderId?: string | null | undefined;
|
|
237
247
|
funderName?: string | null | undefined;
|
|
238
248
|
advanceId?: string | null | undefined;
|
|
249
|
+
fromSourcing?: boolean | undefined;
|
|
239
250
|
voidedAt?: string | null | undefined;
|
|
240
251
|
voidedById?: string | null | undefined;
|
|
241
252
|
voidReason?: string | null | undefined;
|
|
@@ -266,6 +277,7 @@ export declare const tradeCashEventResourceSchema: z.ZodObject<{
|
|
|
266
277
|
funderId?: string | null | undefined;
|
|
267
278
|
funderName?: string | null | undefined;
|
|
268
279
|
advanceId?: string | null | undefined;
|
|
280
|
+
fromSourcing?: boolean | undefined;
|
|
269
281
|
voidedAt?: string | null | undefined;
|
|
270
282
|
voidedById?: string | null | undefined;
|
|
271
283
|
voidReason?: string | null | undefined;
|
|
@@ -296,6 +308,7 @@ export declare const tradeCashEventResponseSchema: z.ZodObject<{
|
|
|
296
308
|
funderId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
297
309
|
funderName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
298
310
|
advanceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
311
|
+
fromSourcing: z.ZodOptional<z.ZodBoolean>;
|
|
299
312
|
voidedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
300
313
|
voidedById: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
301
314
|
voidReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -322,6 +335,7 @@ export declare const tradeCashEventResponseSchema: z.ZodObject<{
|
|
|
322
335
|
funderId?: string | null | undefined;
|
|
323
336
|
funderName?: string | null | undefined;
|
|
324
337
|
advanceId?: string | null | undefined;
|
|
338
|
+
fromSourcing?: boolean | undefined;
|
|
325
339
|
voidedAt?: string | null | undefined;
|
|
326
340
|
voidedById?: string | null | undefined;
|
|
327
341
|
voidReason?: string | null | undefined;
|
|
@@ -345,6 +359,7 @@ export declare const tradeCashEventResponseSchema: z.ZodObject<{
|
|
|
345
359
|
funderId?: string | null | undefined;
|
|
346
360
|
funderName?: string | null | undefined;
|
|
347
361
|
advanceId?: string | null | undefined;
|
|
362
|
+
fromSourcing?: boolean | undefined;
|
|
348
363
|
voidedAt?: string | null | undefined;
|
|
349
364
|
voidedById?: string | null | undefined;
|
|
350
365
|
voidReason?: string | null | undefined;
|
|
@@ -375,6 +390,7 @@ export declare const tradeCashEventResponseSchema: z.ZodObject<{
|
|
|
375
390
|
funderId?: string | null | undefined;
|
|
376
391
|
funderName?: string | null | undefined;
|
|
377
392
|
advanceId?: string | null | undefined;
|
|
393
|
+
fromSourcing?: boolean | undefined;
|
|
378
394
|
voidedAt?: string | null | undefined;
|
|
379
395
|
voidedById?: string | null | undefined;
|
|
380
396
|
voidReason?: string | null | undefined;
|
|
@@ -405,6 +421,7 @@ export declare const tradeCashEventResponseSchema: z.ZodObject<{
|
|
|
405
421
|
funderId?: string | null | undefined;
|
|
406
422
|
funderName?: string | null | undefined;
|
|
407
423
|
advanceId?: string | null | undefined;
|
|
424
|
+
fromSourcing?: boolean | undefined;
|
|
408
425
|
voidedAt?: string | null | undefined;
|
|
409
426
|
voidedById?: string | null | undefined;
|
|
410
427
|
voidReason?: string | null | undefined;
|
|
@@ -461,6 +478,7 @@ export declare const tradeCashEventResponseSchema: z.ZodObject<{
|
|
|
461
478
|
funderId?: string | null | undefined;
|
|
462
479
|
funderName?: string | null | undefined;
|
|
463
480
|
advanceId?: string | null | undefined;
|
|
481
|
+
fromSourcing?: boolean | undefined;
|
|
464
482
|
voidedAt?: string | null | undefined;
|
|
465
483
|
voidedById?: string | null | undefined;
|
|
466
484
|
voidReason?: string | null | undefined;
|
|
@@ -503,6 +521,7 @@ export declare const tradeCashEventResponseSchema: z.ZodObject<{
|
|
|
503
521
|
funderId?: string | null | undefined;
|
|
504
522
|
funderName?: string | null | undefined;
|
|
505
523
|
advanceId?: string | null | undefined;
|
|
524
|
+
fromSourcing?: boolean | undefined;
|
|
506
525
|
voidedAt?: string | null | undefined;
|
|
507
526
|
voidedById?: string | null | undefined;
|
|
508
527
|
voidReason?: string | null | undefined;
|
|
@@ -544,6 +563,7 @@ export declare const tradeCashEventListResponseSchema: z.ZodObject<{
|
|
|
544
563
|
funderId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
545
564
|
funderName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
546
565
|
advanceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
566
|
+
fromSourcing: z.ZodOptional<z.ZodBoolean>;
|
|
547
567
|
voidedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
548
568
|
voidedById: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
549
569
|
voidReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -570,6 +590,7 @@ export declare const tradeCashEventListResponseSchema: z.ZodObject<{
|
|
|
570
590
|
funderId?: string | null | undefined;
|
|
571
591
|
funderName?: string | null | undefined;
|
|
572
592
|
advanceId?: string | null | undefined;
|
|
593
|
+
fromSourcing?: boolean | undefined;
|
|
573
594
|
voidedAt?: string | null | undefined;
|
|
574
595
|
voidedById?: string | null | undefined;
|
|
575
596
|
voidReason?: string | null | undefined;
|
|
@@ -593,6 +614,7 @@ export declare const tradeCashEventListResponseSchema: z.ZodObject<{
|
|
|
593
614
|
funderId?: string | null | undefined;
|
|
594
615
|
funderName?: string | null | undefined;
|
|
595
616
|
advanceId?: string | null | undefined;
|
|
617
|
+
fromSourcing?: boolean | undefined;
|
|
596
618
|
voidedAt?: string | null | undefined;
|
|
597
619
|
voidedById?: string | null | undefined;
|
|
598
620
|
voidReason?: string | null | undefined;
|
|
@@ -623,6 +645,7 @@ export declare const tradeCashEventListResponseSchema: z.ZodObject<{
|
|
|
623
645
|
funderId?: string | null | undefined;
|
|
624
646
|
funderName?: string | null | undefined;
|
|
625
647
|
advanceId?: string | null | undefined;
|
|
648
|
+
fromSourcing?: boolean | undefined;
|
|
626
649
|
voidedAt?: string | null | undefined;
|
|
627
650
|
voidedById?: string | null | undefined;
|
|
628
651
|
voidReason?: string | null | undefined;
|
|
@@ -653,6 +676,7 @@ export declare const tradeCashEventListResponseSchema: z.ZodObject<{
|
|
|
653
676
|
funderId?: string | null | undefined;
|
|
654
677
|
funderName?: string | null | undefined;
|
|
655
678
|
advanceId?: string | null | undefined;
|
|
679
|
+
fromSourcing?: boolean | undefined;
|
|
656
680
|
voidedAt?: string | null | undefined;
|
|
657
681
|
voidedById?: string | null | undefined;
|
|
658
682
|
voidReason?: string | null | undefined;
|
|
@@ -709,6 +733,7 @@ export declare const tradeCashEventListResponseSchema: z.ZodObject<{
|
|
|
709
733
|
funderId?: string | null | undefined;
|
|
710
734
|
funderName?: string | null | undefined;
|
|
711
735
|
advanceId?: string | null | undefined;
|
|
736
|
+
fromSourcing?: boolean | undefined;
|
|
712
737
|
voidedAt?: string | null | undefined;
|
|
713
738
|
voidedById?: string | null | undefined;
|
|
714
739
|
voidReason?: string | null | undefined;
|
|
@@ -751,6 +776,7 @@ export declare const tradeCashEventListResponseSchema: z.ZodObject<{
|
|
|
751
776
|
funderId?: string | null | undefined;
|
|
752
777
|
funderName?: string | null | undefined;
|
|
753
778
|
advanceId?: string | null | undefined;
|
|
779
|
+
fromSourcing?: boolean | undefined;
|
|
754
780
|
voidedAt?: string | null | undefined;
|
|
755
781
|
voidedById?: string | null | undefined;
|
|
756
782
|
voidReason?: string | null | undefined;
|
|
@@ -790,6 +816,8 @@ export declare const createTradeCashEventSchema: z.ZodObject<{
|
|
|
790
816
|
funderId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
791
817
|
funderName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
792
818
|
advanceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
819
|
+
/** False on a capital_out pays the investor without reducing In sourcing. */
|
|
820
|
+
fromSourcing: z.ZodOptional<z.ZodBoolean>;
|
|
793
821
|
}, "strip", z.ZodTypeAny, {
|
|
794
822
|
type: "capital_in" | "capital_out" | "deal_allocate" | "deal_return" | "deal_cost_adjustment" | "commission_payout" | "supplier_payment" | "buyer_receipt" | "advance_disburse" | "advance_handoff" | "advance_settle" | "advance_return" | "advance_writeoff";
|
|
795
823
|
currency: string;
|
|
@@ -807,6 +835,7 @@ export declare const createTradeCashEventSchema: z.ZodObject<{
|
|
|
807
835
|
funderId?: string | null | undefined;
|
|
808
836
|
funderName?: string | null | undefined;
|
|
809
837
|
advanceId?: string | null | undefined;
|
|
838
|
+
fromSourcing?: boolean | undefined;
|
|
810
839
|
}, {
|
|
811
840
|
type: "capital_in" | "capital_out" | "deal_allocate" | "deal_return" | "deal_cost_adjustment" | "commission_payout" | "supplier_payment" | "buyer_receipt" | "advance_disburse" | "advance_handoff" | "advance_settle" | "advance_return" | "advance_writeoff";
|
|
812
841
|
occurredAt: string;
|
|
@@ -824,6 +853,7 @@ export declare const createTradeCashEventSchema: z.ZodObject<{
|
|
|
824
853
|
funderId?: string | null | undefined;
|
|
825
854
|
funderName?: string | null | undefined;
|
|
826
855
|
advanceId?: string | null | undefined;
|
|
856
|
+
fromSourcing?: boolean | undefined;
|
|
827
857
|
}>;
|
|
828
858
|
}, "strip", z.ZodTypeAny, {
|
|
829
859
|
type: "trade-cash-events";
|
|
@@ -844,6 +874,7 @@ export declare const createTradeCashEventSchema: z.ZodObject<{
|
|
|
844
874
|
funderId?: string | null | undefined;
|
|
845
875
|
funderName?: string | null | undefined;
|
|
846
876
|
advanceId?: string | null | undefined;
|
|
877
|
+
fromSourcing?: boolean | undefined;
|
|
847
878
|
};
|
|
848
879
|
}, {
|
|
849
880
|
type: "trade-cash-events";
|
|
@@ -864,6 +895,7 @@ export declare const createTradeCashEventSchema: z.ZodObject<{
|
|
|
864
895
|
funderId?: string | null | undefined;
|
|
865
896
|
funderName?: string | null | undefined;
|
|
866
897
|
advanceId?: string | null | undefined;
|
|
898
|
+
fromSourcing?: boolean | undefined;
|
|
867
899
|
};
|
|
868
900
|
}>;
|
|
869
901
|
export declare const voidTradeCashEventSchema: z.ZodObject<{
|
|
@@ -1146,12 +1178,12 @@ export declare const advancePositionSchema: z.ZodObject<{
|
|
|
1146
1178
|
remaining: number;
|
|
1147
1179
|
amount: number;
|
|
1148
1180
|
overdue: boolean;
|
|
1181
|
+
ageDays: number;
|
|
1149
1182
|
funderType: "investor" | "staff" | "company" | "unattributed";
|
|
1150
1183
|
advanceId: string;
|
|
1151
1184
|
holderType: "other" | "supplier" | "staff";
|
|
1152
1185
|
holderName: string;
|
|
1153
1186
|
openedAt: string;
|
|
1154
|
-
ageDays: number;
|
|
1155
1187
|
funderId?: string | null | undefined;
|
|
1156
1188
|
funderName?: string | null | undefined;
|
|
1157
1189
|
holderId?: string | null | undefined;
|
|
@@ -1161,12 +1193,12 @@ export declare const advancePositionSchema: z.ZodObject<{
|
|
|
1161
1193
|
remaining: number;
|
|
1162
1194
|
amount: number;
|
|
1163
1195
|
overdue: boolean;
|
|
1196
|
+
ageDays: number;
|
|
1164
1197
|
funderType: "investor" | "staff" | "company" | "unattributed";
|
|
1165
1198
|
advanceId: string;
|
|
1166
1199
|
holderType: "other" | "supplier" | "staff";
|
|
1167
1200
|
holderName: string;
|
|
1168
1201
|
openedAt: string;
|
|
1169
|
-
ageDays: number;
|
|
1170
1202
|
funderId?: string | null | undefined;
|
|
1171
1203
|
funderName?: string | null | undefined;
|
|
1172
1204
|
holderId?: string | null | undefined;
|
|
@@ -1395,12 +1427,12 @@ export declare const tradeTreasuryAttributesSchema: z.ZodObject<{
|
|
|
1395
1427
|
remaining: number;
|
|
1396
1428
|
amount: number;
|
|
1397
1429
|
overdue: boolean;
|
|
1430
|
+
ageDays: number;
|
|
1398
1431
|
funderType: "investor" | "staff" | "company" | "unattributed";
|
|
1399
1432
|
advanceId: string;
|
|
1400
1433
|
holderType: "other" | "supplier" | "staff";
|
|
1401
1434
|
holderName: string;
|
|
1402
1435
|
openedAt: string;
|
|
1403
|
-
ageDays: number;
|
|
1404
1436
|
funderId?: string | null | undefined;
|
|
1405
1437
|
funderName?: string | null | undefined;
|
|
1406
1438
|
holderId?: string | null | undefined;
|
|
@@ -1410,12 +1442,12 @@ export declare const tradeTreasuryAttributesSchema: z.ZodObject<{
|
|
|
1410
1442
|
remaining: number;
|
|
1411
1443
|
amount: number;
|
|
1412
1444
|
overdue: boolean;
|
|
1445
|
+
ageDays: number;
|
|
1413
1446
|
funderType: "investor" | "staff" | "company" | "unattributed";
|
|
1414
1447
|
advanceId: string;
|
|
1415
1448
|
holderType: "other" | "supplier" | "staff";
|
|
1416
1449
|
holderName: string;
|
|
1417
1450
|
openedAt: string;
|
|
1418
|
-
ageDays: number;
|
|
1419
1451
|
funderId?: string | null | undefined;
|
|
1420
1452
|
funderName?: string | null | undefined;
|
|
1421
1453
|
holderId?: string | null | undefined;
|
|
@@ -1483,12 +1515,12 @@ export declare const tradeTreasuryAttributesSchema: z.ZodObject<{
|
|
|
1483
1515
|
remaining: number;
|
|
1484
1516
|
amount: number;
|
|
1485
1517
|
overdue: boolean;
|
|
1518
|
+
ageDays: number;
|
|
1486
1519
|
funderType: "investor" | "staff" | "company" | "unattributed";
|
|
1487
1520
|
advanceId: string;
|
|
1488
1521
|
holderType: "other" | "supplier" | "staff";
|
|
1489
1522
|
holderName: string;
|
|
1490
1523
|
openedAt: string;
|
|
1491
|
-
ageDays: number;
|
|
1492
1524
|
funderId?: string | null | undefined;
|
|
1493
1525
|
funderName?: string | null | undefined;
|
|
1494
1526
|
holderId?: string | null | undefined;
|
|
@@ -1557,12 +1589,12 @@ export declare const tradeTreasuryAttributesSchema: z.ZodObject<{
|
|
|
1557
1589
|
remaining: number;
|
|
1558
1590
|
amount: number;
|
|
1559
1591
|
overdue: boolean;
|
|
1592
|
+
ageDays: number;
|
|
1560
1593
|
funderType: "investor" | "staff" | "company" | "unattributed";
|
|
1561
1594
|
advanceId: string;
|
|
1562
1595
|
holderType: "other" | "supplier" | "staff";
|
|
1563
1596
|
holderName: string;
|
|
1564
1597
|
openedAt: string;
|
|
1565
|
-
ageDays: number;
|
|
1566
1598
|
funderId?: string | null | undefined;
|
|
1567
1599
|
funderName?: string | null | undefined;
|
|
1568
1600
|
holderId?: string | null | undefined;
|
|
@@ -1797,12 +1829,12 @@ export declare const tradeTreasuryResponseSchema: z.ZodObject<{
|
|
|
1797
1829
|
remaining: number;
|
|
1798
1830
|
amount: number;
|
|
1799
1831
|
overdue: boolean;
|
|
1832
|
+
ageDays: number;
|
|
1800
1833
|
funderType: "investor" | "staff" | "company" | "unattributed";
|
|
1801
1834
|
advanceId: string;
|
|
1802
1835
|
holderType: "other" | "supplier" | "staff";
|
|
1803
1836
|
holderName: string;
|
|
1804
1837
|
openedAt: string;
|
|
1805
|
-
ageDays: number;
|
|
1806
1838
|
funderId?: string | null | undefined;
|
|
1807
1839
|
funderName?: string | null | undefined;
|
|
1808
1840
|
holderId?: string | null | undefined;
|
|
@@ -1812,12 +1844,12 @@ export declare const tradeTreasuryResponseSchema: z.ZodObject<{
|
|
|
1812
1844
|
remaining: number;
|
|
1813
1845
|
amount: number;
|
|
1814
1846
|
overdue: boolean;
|
|
1847
|
+
ageDays: number;
|
|
1815
1848
|
funderType: "investor" | "staff" | "company" | "unattributed";
|
|
1816
1849
|
advanceId: string;
|
|
1817
1850
|
holderType: "other" | "supplier" | "staff";
|
|
1818
1851
|
holderName: string;
|
|
1819
1852
|
openedAt: string;
|
|
1820
|
-
ageDays: number;
|
|
1821
1853
|
funderId?: string | null | undefined;
|
|
1822
1854
|
funderName?: string | null | undefined;
|
|
1823
1855
|
holderId?: string | null | undefined;
|
|
@@ -1885,12 +1917,12 @@ export declare const tradeTreasuryResponseSchema: z.ZodObject<{
|
|
|
1885
1917
|
remaining: number;
|
|
1886
1918
|
amount: number;
|
|
1887
1919
|
overdue: boolean;
|
|
1920
|
+
ageDays: number;
|
|
1888
1921
|
funderType: "investor" | "staff" | "company" | "unattributed";
|
|
1889
1922
|
advanceId: string;
|
|
1890
1923
|
holderType: "other" | "supplier" | "staff";
|
|
1891
1924
|
holderName: string;
|
|
1892
1925
|
openedAt: string;
|
|
1893
|
-
ageDays: number;
|
|
1894
1926
|
funderId?: string | null | undefined;
|
|
1895
1927
|
funderName?: string | null | undefined;
|
|
1896
1928
|
holderId?: string | null | undefined;
|
|
@@ -1959,12 +1991,12 @@ export declare const tradeTreasuryResponseSchema: z.ZodObject<{
|
|
|
1959
1991
|
remaining: number;
|
|
1960
1992
|
amount: number;
|
|
1961
1993
|
overdue: boolean;
|
|
1994
|
+
ageDays: number;
|
|
1962
1995
|
funderType: "investor" | "staff" | "company" | "unattributed";
|
|
1963
1996
|
advanceId: string;
|
|
1964
1997
|
holderType: "other" | "supplier" | "staff";
|
|
1965
1998
|
holderName: string;
|
|
1966
1999
|
openedAt: string;
|
|
1967
|
-
ageDays: number;
|
|
1968
2000
|
funderId?: string | null | undefined;
|
|
1969
2001
|
funderName?: string | null | undefined;
|
|
1970
2002
|
holderId?: string | null | undefined;
|
|
@@ -2037,12 +2069,12 @@ export declare const tradeTreasuryResponseSchema: z.ZodObject<{
|
|
|
2037
2069
|
remaining: number;
|
|
2038
2070
|
amount: number;
|
|
2039
2071
|
overdue: boolean;
|
|
2072
|
+
ageDays: number;
|
|
2040
2073
|
funderType: "investor" | "staff" | "company" | "unattributed";
|
|
2041
2074
|
advanceId: string;
|
|
2042
2075
|
holderType: "other" | "supplier" | "staff";
|
|
2043
2076
|
holderName: string;
|
|
2044
2077
|
openedAt: string;
|
|
2045
|
-
ageDays: number;
|
|
2046
2078
|
funderId?: string | null | undefined;
|
|
2047
2079
|
funderName?: string | null | undefined;
|
|
2048
2080
|
holderId?: string | null | undefined;
|
|
@@ -2115,12 +2147,12 @@ export declare const tradeTreasuryResponseSchema: z.ZodObject<{
|
|
|
2115
2147
|
remaining: number;
|
|
2116
2148
|
amount: number;
|
|
2117
2149
|
overdue: boolean;
|
|
2150
|
+
ageDays: number;
|
|
2118
2151
|
funderType: "investor" | "staff" | "company" | "unattributed";
|
|
2119
2152
|
advanceId: string;
|
|
2120
2153
|
holderType: "other" | "supplier" | "staff";
|
|
2121
2154
|
holderName: string;
|
|
2122
2155
|
openedAt: string;
|
|
2123
|
-
ageDays: number;
|
|
2124
2156
|
funderId?: string | null | undefined;
|
|
2125
2157
|
funderName?: string | null | undefined;
|
|
2126
2158
|
holderId?: string | null | undefined;
|
|
@@ -2195,12 +2227,12 @@ export declare const tradeTreasuryResponseSchema: z.ZodObject<{
|
|
|
2195
2227
|
remaining: number;
|
|
2196
2228
|
amount: number;
|
|
2197
2229
|
overdue: boolean;
|
|
2230
|
+
ageDays: number;
|
|
2198
2231
|
funderType: "investor" | "staff" | "company" | "unattributed";
|
|
2199
2232
|
advanceId: string;
|
|
2200
2233
|
holderType: "other" | "supplier" | "staff";
|
|
2201
2234
|
holderName: string;
|
|
2202
2235
|
openedAt: string;
|
|
2203
|
-
ageDays: number;
|
|
2204
2236
|
funderId?: string | null | undefined;
|
|
2205
2237
|
funderName?: string | null | undefined;
|
|
2206
2238
|
holderId?: string | null | undefined;
|
|
@@ -2275,12 +2307,12 @@ export declare const tradeTreasuryResponseSchema: z.ZodObject<{
|
|
|
2275
2307
|
remaining: number;
|
|
2276
2308
|
amount: number;
|
|
2277
2309
|
overdue: boolean;
|
|
2310
|
+
ageDays: number;
|
|
2278
2311
|
funderType: "investor" | "staff" | "company" | "unattributed";
|
|
2279
2312
|
advanceId: string;
|
|
2280
2313
|
holderType: "other" | "supplier" | "staff";
|
|
2281
2314
|
holderName: string;
|
|
2282
2315
|
openedAt: string;
|
|
2283
|
-
ageDays: number;
|
|
2284
2316
|
funderId?: string | null | undefined;
|
|
2285
2317
|
funderName?: string | null | undefined;
|
|
2286
2318
|
holderId?: string | null | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trade-cash-events.schemas.d.ts","sourceRoot":"","sources":["../../src/schemas/trade-cash-events.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,eAAO,MAAM,wBAAwB,2PAcnC,CAAC;AAEH,eAAO,MAAM,wBAAwB,qFAQnC,CAAC;AAEH,eAAO,MAAM,yBAAyB,6DAKpC,CAAC;AAEH,eAAO,MAAM,gCAAgC,+EAM3C,CAAC;AAEH,eAAO,MAAM,oCAAoC,2CAI/C,CAAC;AAEH,eAA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,+BAA+B,GAAG,CAAC,CAAC,KAAK,CACnD,OAAO,qCAAqC,CAC7C,CAAC;AACF,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AACtF,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CACrD,OAAO,uCAAuC,CAC/C,CAAC;AACF,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,KAAK,CACtD,OAAO,wCAAwC,CAChD,CAAC;AACF,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AACxF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC"}
|
|
@@ -67,6 +67,8 @@ export const tradeCashEventAttributesSchema = z
|
|
|
67
67
|
funderId: z.string().max(100).nullable().optional(),
|
|
68
68
|
funderName: z.string().max(200).nullable().optional(),
|
|
69
69
|
advanceId: z.string().uuid().nullable().optional(),
|
|
70
|
+
/// capital_out only. False keeps the payout off the sourcing pool.
|
|
71
|
+
fromSourcing: z.boolean().optional(),
|
|
70
72
|
voidedAt: z.string().datetime().nullable().optional(),
|
|
71
73
|
voidedById: z.string().uuid().nullable().optional(),
|
|
72
74
|
voidReason: z.string().nullable().optional(),
|
|
@@ -90,6 +92,8 @@ export const createTradeCashEventAttributesSchema = z.object({
|
|
|
90
92
|
funderId: z.string().max(100).optional().nullable(),
|
|
91
93
|
funderName: z.string().max(200).optional().nullable(),
|
|
92
94
|
advanceId: z.string().uuid().optional().nullable(),
|
|
95
|
+
/** False on a capital_out pays the investor without reducing In sourcing. */
|
|
96
|
+
fromSourcing: z.boolean().optional(),
|
|
93
97
|
});
|
|
94
98
|
export const voidTradeCashEventAttributesSchema = z.object({
|
|
95
99
|
reason: z.string().min(1).max(500),
|