@deepintel-ltd/farmpro-contracts 1.36.6 → 1.36.8
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 +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/routes/care-pillar.routes.d.ts +473 -0
- package/dist/routes/care-pillar.routes.d.ts.map +1 -0
- package/dist/routes/care-pillar.routes.js +48 -0
- package/dist/routes/crop-care.routes.d.ts +4788 -0
- package/dist/routes/crop-care.routes.d.ts.map +1 -1
- package/dist/routes/field-activities.routes.d.ts +40 -40
- package/dist/routes/index.d.ts +3 -0
- package/dist/routes/index.d.ts.map +1 -1
- package/dist/routes/index.js +2 -0
- package/dist/routes/notifications.routes.d.ts +14 -14
- package/dist/routes/nutrient-plan.routes.d.ts +232 -40
- package/dist/routes/nutrient-plan.routes.d.ts.map +1 -1
- package/dist/routes/orchard-plan.routes.d.ts +6 -6
- package/dist/schemas/care-pillar.schemas.d.ts +728 -0
- package/dist/schemas/care-pillar.schemas.d.ts.map +1 -0
- package/dist/schemas/care-pillar.schemas.js +88 -0
- package/dist/schemas/crop-care.schemas.d.ts +6664 -0
- package/dist/schemas/crop-care.schemas.d.ts.map +1 -1
- package/dist/schemas/crop-care.schemas.js +13 -0
- package/dist/schemas/fertigation-board.schemas.d.ts +66 -0
- package/dist/schemas/fertigation-board.schemas.d.ts.map +1 -1
- package/dist/schemas/fertigation-board.schemas.js +6 -0
- package/dist/schemas/field-activities.schemas.d.ts +35 -35
- package/dist/schemas/field-activities.schemas.d.ts.map +1 -1
- package/dist/schemas/field-activities.schemas.js +11 -1
- package/dist/schemas/notifications.schemas.d.ts +18 -18
- package/dist/schemas/nutrient-plan.schemas.d.ts +62 -16
- package/dist/schemas/nutrient-plan.schemas.d.ts.map +1 -1
- package/dist/schemas/nutrient-plan.schemas.js +2 -0
- package/dist/schemas/orchard-plan.schemas.d.ts +10 -10
- package/package.json +1 -1
|
@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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAuBf,CAAC;AAEjB,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
|
|
@@ -1,4 +1,16 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
export const careActionSchema = z
|
|
3
|
+
.object({
|
|
4
|
+
id: z.string(),
|
|
5
|
+
kind: z.enum(['do', 'avoid', 'scout']),
|
|
6
|
+
headline: z.string(),
|
|
7
|
+
detail: z.string().optional(),
|
|
8
|
+
cadence: z.enum(['once', 'daily', 'every-few-days', 'weekly', 'monthly', 'each-feed', 'as-needed', 'always']),
|
|
9
|
+
when: z.string().optional(),
|
|
10
|
+
dayStart: z.number().optional(),
|
|
11
|
+
dayEnd: z.number().optional(),
|
|
12
|
+
})
|
|
13
|
+
.passthrough();
|
|
2
14
|
export const careStageSchema = z
|
|
3
15
|
.object({
|
|
4
16
|
id: z.string(),
|
|
@@ -9,6 +21,7 @@ export const careStageSchema = z
|
|
|
9
21
|
summary: z.string(),
|
|
10
22
|
tasks: z.array(z.string()),
|
|
11
23
|
checks: z.array(z.string()),
|
|
24
|
+
actions: z.array(careActionSchema).optional(),
|
|
12
25
|
})
|
|
13
26
|
.passthrough();
|
|
14
27
|
export const carePhaseSchema = z
|
|
@@ -82,9 +82,24 @@ export declare const fertigationBoardRecordedSchema: z.ZodObject<{
|
|
|
82
82
|
export declare const fertigationBoardFieldSchema: z.ZodObject<{
|
|
83
83
|
fieldId: z.ZodString;
|
|
84
84
|
fieldName: z.ZodString;
|
|
85
|
+
/** field: in the open-field plan. nursery: seedlings still in the nursery. none: no plan for this field. */
|
|
86
|
+
phase: z.ZodEnum<["field", "nursery", "none"]>;
|
|
87
|
+
/** A pepper field that needs a transplant date before it can be planned. */
|
|
88
|
+
needsTransplantDate: z.ZodBoolean;
|
|
85
89
|
stageLabel: z.ZodNullable<z.ZodString>;
|
|
86
90
|
fieldDay: z.ZodNullable<z.ZodNumber>;
|
|
87
91
|
plantCount: z.ZodNullable<z.ZodNumber>;
|
|
92
|
+
/** The day the plan counts from; assumed when no transplant date is recorded. */
|
|
93
|
+
transplant: z.ZodNullable<z.ZodObject<{
|
|
94
|
+
date: z.ZodString;
|
|
95
|
+
assumed: z.ZodBoolean;
|
|
96
|
+
}, "strip", z.ZodTypeAny, {
|
|
97
|
+
date: string;
|
|
98
|
+
assumed: boolean;
|
|
99
|
+
}, {
|
|
100
|
+
date: string;
|
|
101
|
+
assumed: boolean;
|
|
102
|
+
}>>;
|
|
88
103
|
kind: z.ZodEnum<["feed", "water", "none"]>;
|
|
89
104
|
tank: z.ZodNullable<z.ZodEnum<["A", "B"]>>;
|
|
90
105
|
due: z.ZodBoolean;
|
|
@@ -215,7 +230,12 @@ export declare const fertigationBoardFieldSchema: z.ZodObject<{
|
|
|
215
230
|
fieldName: string;
|
|
216
231
|
tank: "A" | "B" | null;
|
|
217
232
|
warnings: string[];
|
|
233
|
+
phase: "field" | "none" | "nursery";
|
|
218
234
|
overdue: boolean;
|
|
235
|
+
transplant: {
|
|
236
|
+
date: string;
|
|
237
|
+
assumed: boolean;
|
|
238
|
+
} | null;
|
|
219
239
|
lines: {
|
|
220
240
|
name: string;
|
|
221
241
|
inventoryItemId: string | null;
|
|
@@ -236,6 +256,7 @@ export declare const fertigationBoardFieldSchema: z.ZodObject<{
|
|
|
236
256
|
}[];
|
|
237
257
|
plannedFor: string;
|
|
238
258
|
}[];
|
|
259
|
+
needsTransplantDate: boolean;
|
|
239
260
|
stageLabel: string | null;
|
|
240
261
|
fieldDay: number | null;
|
|
241
262
|
due: boolean;
|
|
@@ -263,7 +284,12 @@ export declare const fertigationBoardFieldSchema: z.ZodObject<{
|
|
|
263
284
|
fieldName: string;
|
|
264
285
|
tank: "A" | "B" | null;
|
|
265
286
|
warnings: string[];
|
|
287
|
+
phase: "field" | "none" | "nursery";
|
|
266
288
|
overdue: boolean;
|
|
289
|
+
transplant: {
|
|
290
|
+
date: string;
|
|
291
|
+
assumed: boolean;
|
|
292
|
+
} | null;
|
|
267
293
|
lines: {
|
|
268
294
|
name: string;
|
|
269
295
|
inventoryItemId: string | null;
|
|
@@ -284,6 +310,7 @@ export declare const fertigationBoardFieldSchema: z.ZodObject<{
|
|
|
284
310
|
}[];
|
|
285
311
|
plannedFor: string;
|
|
286
312
|
}[];
|
|
313
|
+
needsTransplantDate: boolean;
|
|
287
314
|
stageLabel: string | null;
|
|
288
315
|
fieldDay: number | null;
|
|
289
316
|
due: boolean;
|
|
@@ -387,9 +414,24 @@ export declare const fertigationBoardSchema: z.ZodObject<{
|
|
|
387
414
|
fields: z.ZodArray<z.ZodObject<{
|
|
388
415
|
fieldId: z.ZodString;
|
|
389
416
|
fieldName: z.ZodString;
|
|
417
|
+
/** field: in the open-field plan. nursery: seedlings still in the nursery. none: no plan for this field. */
|
|
418
|
+
phase: z.ZodEnum<["field", "nursery", "none"]>;
|
|
419
|
+
/** A pepper field that needs a transplant date before it can be planned. */
|
|
420
|
+
needsTransplantDate: z.ZodBoolean;
|
|
390
421
|
stageLabel: z.ZodNullable<z.ZodString>;
|
|
391
422
|
fieldDay: z.ZodNullable<z.ZodNumber>;
|
|
392
423
|
plantCount: z.ZodNullable<z.ZodNumber>;
|
|
424
|
+
/** The day the plan counts from; assumed when no transplant date is recorded. */
|
|
425
|
+
transplant: z.ZodNullable<z.ZodObject<{
|
|
426
|
+
date: z.ZodString;
|
|
427
|
+
assumed: z.ZodBoolean;
|
|
428
|
+
}, "strip", z.ZodTypeAny, {
|
|
429
|
+
date: string;
|
|
430
|
+
assumed: boolean;
|
|
431
|
+
}, {
|
|
432
|
+
date: string;
|
|
433
|
+
assumed: boolean;
|
|
434
|
+
}>>;
|
|
393
435
|
kind: z.ZodEnum<["feed", "water", "none"]>;
|
|
394
436
|
tank: z.ZodNullable<z.ZodEnum<["A", "B"]>>;
|
|
395
437
|
due: z.ZodBoolean;
|
|
@@ -520,7 +562,12 @@ export declare const fertigationBoardSchema: z.ZodObject<{
|
|
|
520
562
|
fieldName: string;
|
|
521
563
|
tank: "A" | "B" | null;
|
|
522
564
|
warnings: string[];
|
|
565
|
+
phase: "field" | "none" | "nursery";
|
|
523
566
|
overdue: boolean;
|
|
567
|
+
transplant: {
|
|
568
|
+
date: string;
|
|
569
|
+
assumed: boolean;
|
|
570
|
+
} | null;
|
|
524
571
|
lines: {
|
|
525
572
|
name: string;
|
|
526
573
|
inventoryItemId: string | null;
|
|
@@ -541,6 +588,7 @@ export declare const fertigationBoardSchema: z.ZodObject<{
|
|
|
541
588
|
}[];
|
|
542
589
|
plannedFor: string;
|
|
543
590
|
}[];
|
|
591
|
+
needsTransplantDate: boolean;
|
|
544
592
|
stageLabel: string | null;
|
|
545
593
|
fieldDay: number | null;
|
|
546
594
|
due: boolean;
|
|
@@ -568,7 +616,12 @@ export declare const fertigationBoardSchema: z.ZodObject<{
|
|
|
568
616
|
fieldName: string;
|
|
569
617
|
tank: "A" | "B" | null;
|
|
570
618
|
warnings: string[];
|
|
619
|
+
phase: "field" | "none" | "nursery";
|
|
571
620
|
overdue: boolean;
|
|
621
|
+
transplant: {
|
|
622
|
+
date: string;
|
|
623
|
+
assumed: boolean;
|
|
624
|
+
} | null;
|
|
572
625
|
lines: {
|
|
573
626
|
name: string;
|
|
574
627
|
inventoryItemId: string | null;
|
|
@@ -589,6 +642,7 @@ export declare const fertigationBoardSchema: z.ZodObject<{
|
|
|
589
642
|
}[];
|
|
590
643
|
plannedFor: string;
|
|
591
644
|
}[];
|
|
645
|
+
needsTransplantDate: boolean;
|
|
592
646
|
stageLabel: string | null;
|
|
593
647
|
fieldDay: number | null;
|
|
594
648
|
due: boolean;
|
|
@@ -666,7 +720,12 @@ export declare const fertigationBoardSchema: z.ZodObject<{
|
|
|
666
720
|
fieldName: string;
|
|
667
721
|
tank: "A" | "B" | null;
|
|
668
722
|
warnings: string[];
|
|
723
|
+
phase: "field" | "none" | "nursery";
|
|
669
724
|
overdue: boolean;
|
|
725
|
+
transplant: {
|
|
726
|
+
date: string;
|
|
727
|
+
assumed: boolean;
|
|
728
|
+
} | null;
|
|
670
729
|
lines: {
|
|
671
730
|
name: string;
|
|
672
731
|
inventoryItemId: string | null;
|
|
@@ -687,6 +746,7 @@ export declare const fertigationBoardSchema: z.ZodObject<{
|
|
|
687
746
|
}[];
|
|
688
747
|
plannedFor: string;
|
|
689
748
|
}[];
|
|
749
|
+
needsTransplantDate: boolean;
|
|
690
750
|
stageLabel: string | null;
|
|
691
751
|
fieldDay: number | null;
|
|
692
752
|
due: boolean;
|
|
@@ -738,7 +798,12 @@ export declare const fertigationBoardSchema: z.ZodObject<{
|
|
|
738
798
|
fieldName: string;
|
|
739
799
|
tank: "A" | "B" | null;
|
|
740
800
|
warnings: string[];
|
|
801
|
+
phase: "field" | "none" | "nursery";
|
|
741
802
|
overdue: boolean;
|
|
803
|
+
transplant: {
|
|
804
|
+
date: string;
|
|
805
|
+
assumed: boolean;
|
|
806
|
+
} | null;
|
|
742
807
|
lines: {
|
|
743
808
|
name: string;
|
|
744
809
|
inventoryItemId: string | null;
|
|
@@ -759,6 +824,7 @@ export declare const fertigationBoardSchema: z.ZodObject<{
|
|
|
759
824
|
}[];
|
|
760
825
|
plannedFor: string;
|
|
761
826
|
}[];
|
|
827
|
+
needsTransplantDate: boolean;
|
|
762
828
|
stageLabel: string | null;
|
|
763
829
|
fieldDay: number | null;
|
|
764
830
|
due: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fertigation-board.schemas.d.ts","sourceRoot":"","sources":["../../src/schemas/fertigation-board.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,0BAA0B;;;;;;;;;IASrC,qFAAqF;;;;;;;;;;;;;;;;;;;;;;EAErF,CAAC;AAEH,uFAAuF;AACvF,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAMxC,CAAC;AAEH,8DAA8D;AAC9D,eAAO,MAAM,8BAA8B;;;;;;;;;;;;EAIzC,CAAC;AAEH,eAAO,MAAM,2BAA2B
|
|
1
|
+
{"version":3,"file":"fertigation-board.schemas.d.ts","sourceRoot":"","sources":["../../src/schemas/fertigation-board.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,0BAA0B;;;;;;;;;IASrC,qFAAqF;;;;;;;;;;;;;;;;;;;;;;EAErF,CAAC;AAEH,uFAAuF;AACvF,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAMxC,CAAC;AAEH,8DAA8D;AAC9D,eAAO,MAAM,8BAA8B;;;;;;;;;;;;EAIzC,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;IAGtC,4GAA4G;;IAE5G,4EAA4E;;;;;IAK5E,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;;QA9BjF,qFAAqF;;;;;;;;;;;;;;;;;;;;;;;IAwCrF,qEAAqE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAErE,6CAA6C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAE7C,8CAA8C;;;;;;;;;;;;;;;;;;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;;;;;;EAIjF,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;IAMhC,oDAAoD;;;IAGpD,2GAA2G;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAY3G,CAAC;AACH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
|
|
@@ -27,9 +27,15 @@ export const fertigationBoardRecordedSchema = z.object({
|
|
|
27
27
|
export const fertigationBoardFieldSchema = z.object({
|
|
28
28
|
fieldId: z.string(),
|
|
29
29
|
fieldName: z.string(),
|
|
30
|
+
/** field: in the open-field plan. nursery: seedlings still in the nursery. none: no plan for this field. */
|
|
31
|
+
phase: z.enum(['field', 'nursery', 'none']),
|
|
32
|
+
/** A pepper field that needs a transplant date before it can be planned. */
|
|
33
|
+
needsTransplantDate: z.boolean(),
|
|
30
34
|
stageLabel: z.string().nullable(),
|
|
31
35
|
fieldDay: z.number().nullable(),
|
|
32
36
|
plantCount: z.number().nullable(),
|
|
37
|
+
/** The day the plan counts from; assumed when no transplant date is recorded. */
|
|
38
|
+
transplant: z.object({ date: z.string(), assumed: z.boolean() }).nullable(),
|
|
33
39
|
kind: z.enum(['feed', 'water', 'none']),
|
|
34
40
|
tank: tank.nullable(),
|
|
35
41
|
due: z.boolean(),
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const fieldActivityTypeSchema: z.ZodEnum<["weeding", "fertilizer"]>;
|
|
2
|
+
export declare const fieldActivityTypeSchema: z.ZodEnum<["weeding", "fertilizer", "scouting", "spray", "biocontrol", "sanitation", "irrigation", "pruning", "staking"]>;
|
|
3
3
|
export declare const fieldActivitySourceSchema: z.ZodEnum<["manual", "agent", "whatsapp"]>;
|
|
4
4
|
export declare const fieldActivityAttributesSchema: z.ZodObject<{
|
|
5
5
|
fieldId: z.ZodString;
|
|
6
6
|
fieldName: z.ZodOptional<z.ZodString>;
|
|
7
|
-
type: z.ZodEnum<["weeding", "fertilizer"]>;
|
|
7
|
+
type: z.ZodEnum<["weeding", "fertilizer", "scouting", "spray", "biocontrol", "sanitation", "irrigation", "pruning", "staking"]>;
|
|
8
8
|
occurredAt: z.ZodString;
|
|
9
9
|
method: z.ZodNullable<z.ZodString>;
|
|
10
10
|
productName: z.ZodNullable<z.ZodString>;
|
|
@@ -19,7 +19,7 @@ export declare const fieldActivityAttributesSchema: z.ZodObject<{
|
|
|
19
19
|
createdAt: z.ZodString;
|
|
20
20
|
updatedAt: z.ZodString;
|
|
21
21
|
}, "strip", z.ZodTypeAny, {
|
|
22
|
-
type: "weeding" | "fertilizer";
|
|
22
|
+
type: "weeding" | "fertilizer" | "irrigation" | "pruning" | "scouting" | "spray" | "biocontrol" | "sanitation" | "staking";
|
|
23
23
|
source: "whatsapp" | "manual" | "agent";
|
|
24
24
|
createdAt: string;
|
|
25
25
|
updatedAt: string;
|
|
@@ -35,7 +35,7 @@ export declare const fieldActivityAttributesSchema: z.ZodObject<{
|
|
|
35
35
|
fertilizerProductId: string | null;
|
|
36
36
|
fieldName?: string | undefined;
|
|
37
37
|
}, {
|
|
38
|
-
type: "weeding" | "fertilizer";
|
|
38
|
+
type: "weeding" | "fertilizer" | "irrigation" | "pruning" | "scouting" | "spray" | "biocontrol" | "sanitation" | "staking";
|
|
39
39
|
source: "whatsapp" | "manual" | "agent";
|
|
40
40
|
createdAt: string;
|
|
41
41
|
updatedAt: string;
|
|
@@ -53,7 +53,7 @@ export declare const fieldActivityAttributesSchema: z.ZodObject<{
|
|
|
53
53
|
}>;
|
|
54
54
|
export declare const createFieldActivityAttributesSchema: z.ZodEffects<z.ZodObject<{
|
|
55
55
|
fieldId: z.ZodString;
|
|
56
|
-
type: z.ZodEnum<["weeding", "fertilizer"]>;
|
|
56
|
+
type: z.ZodEnum<["weeding", "fertilizer", "scouting", "spray", "biocontrol", "sanitation", "irrigation", "pruning", "staking"]>;
|
|
57
57
|
occurredAt: z.ZodString;
|
|
58
58
|
method: z.ZodOptional<z.ZodString>;
|
|
59
59
|
productName: z.ZodOptional<z.ZodString>;
|
|
@@ -64,7 +64,7 @@ export declare const createFieldActivityAttributesSchema: z.ZodEffects<z.ZodObje
|
|
|
64
64
|
notes: z.ZodOptional<z.ZodString>;
|
|
65
65
|
source: z.ZodOptional<z.ZodEnum<["manual", "agent", "whatsapp"]>>;
|
|
66
66
|
}, "strip", z.ZodTypeAny, {
|
|
67
|
-
type: "weeding" | "fertilizer";
|
|
67
|
+
type: "weeding" | "fertilizer" | "irrigation" | "pruning" | "scouting" | "spray" | "biocontrol" | "sanitation" | "staking";
|
|
68
68
|
occurredAt: string;
|
|
69
69
|
fieldId: string;
|
|
70
70
|
source?: "whatsapp" | "manual" | "agent" | undefined;
|
|
@@ -76,7 +76,7 @@ export declare const createFieldActivityAttributesSchema: z.ZodEffects<z.ZodObje
|
|
|
76
76
|
inventoryItemId?: string | undefined;
|
|
77
77
|
fertilizerProductId?: string | undefined;
|
|
78
78
|
}, {
|
|
79
|
-
type: "weeding" | "fertilizer";
|
|
79
|
+
type: "weeding" | "fertilizer" | "irrigation" | "pruning" | "scouting" | "spray" | "biocontrol" | "sanitation" | "staking";
|
|
80
80
|
occurredAt: string;
|
|
81
81
|
fieldId: string;
|
|
82
82
|
source?: "whatsapp" | "manual" | "agent" | undefined;
|
|
@@ -88,7 +88,7 @@ export declare const createFieldActivityAttributesSchema: z.ZodEffects<z.ZodObje
|
|
|
88
88
|
inventoryItemId?: string | undefined;
|
|
89
89
|
fertilizerProductId?: string | undefined;
|
|
90
90
|
}>, {
|
|
91
|
-
type: "weeding" | "fertilizer";
|
|
91
|
+
type: "weeding" | "fertilizer" | "irrigation" | "pruning" | "scouting" | "spray" | "biocontrol" | "sanitation" | "staking";
|
|
92
92
|
occurredAt: string;
|
|
93
93
|
fieldId: string;
|
|
94
94
|
source?: "whatsapp" | "manual" | "agent" | undefined;
|
|
@@ -100,7 +100,7 @@ export declare const createFieldActivityAttributesSchema: z.ZodEffects<z.ZodObje
|
|
|
100
100
|
inventoryItemId?: string | undefined;
|
|
101
101
|
fertilizerProductId?: string | undefined;
|
|
102
102
|
}, {
|
|
103
|
-
type: "weeding" | "fertilizer";
|
|
103
|
+
type: "weeding" | "fertilizer" | "irrigation" | "pruning" | "scouting" | "spray" | "biocontrol" | "sanitation" | "staking";
|
|
104
104
|
occurredAt: string;
|
|
105
105
|
fieldId: string;
|
|
106
106
|
source?: "whatsapp" | "manual" | "agent" | undefined;
|
|
@@ -144,7 +144,7 @@ export declare const createFieldActivitySchema: z.ZodObject<{
|
|
|
144
144
|
type: z.ZodLiteral<"field-activities">;
|
|
145
145
|
attributes: z.ZodEffects<z.ZodObject<{
|
|
146
146
|
fieldId: z.ZodString;
|
|
147
|
-
type: z.ZodEnum<["weeding", "fertilizer"]>;
|
|
147
|
+
type: z.ZodEnum<["weeding", "fertilizer", "scouting", "spray", "biocontrol", "sanitation", "irrigation", "pruning", "staking"]>;
|
|
148
148
|
occurredAt: z.ZodString;
|
|
149
149
|
method: z.ZodOptional<z.ZodString>;
|
|
150
150
|
productName: z.ZodOptional<z.ZodString>;
|
|
@@ -155,7 +155,7 @@ export declare const createFieldActivitySchema: z.ZodObject<{
|
|
|
155
155
|
notes: z.ZodOptional<z.ZodString>;
|
|
156
156
|
source: z.ZodOptional<z.ZodEnum<["manual", "agent", "whatsapp"]>>;
|
|
157
157
|
}, "strip", z.ZodTypeAny, {
|
|
158
|
-
type: "weeding" | "fertilizer";
|
|
158
|
+
type: "weeding" | "fertilizer" | "irrigation" | "pruning" | "scouting" | "spray" | "biocontrol" | "sanitation" | "staking";
|
|
159
159
|
occurredAt: string;
|
|
160
160
|
fieldId: string;
|
|
161
161
|
source?: "whatsapp" | "manual" | "agent" | undefined;
|
|
@@ -167,7 +167,7 @@ export declare const createFieldActivitySchema: z.ZodObject<{
|
|
|
167
167
|
inventoryItemId?: string | undefined;
|
|
168
168
|
fertilizerProductId?: string | undefined;
|
|
169
169
|
}, {
|
|
170
|
-
type: "weeding" | "fertilizer";
|
|
170
|
+
type: "weeding" | "fertilizer" | "irrigation" | "pruning" | "scouting" | "spray" | "biocontrol" | "sanitation" | "staking";
|
|
171
171
|
occurredAt: string;
|
|
172
172
|
fieldId: string;
|
|
173
173
|
source?: "whatsapp" | "manual" | "agent" | undefined;
|
|
@@ -179,7 +179,7 @@ export declare const createFieldActivitySchema: z.ZodObject<{
|
|
|
179
179
|
inventoryItemId?: string | undefined;
|
|
180
180
|
fertilizerProductId?: string | undefined;
|
|
181
181
|
}>, {
|
|
182
|
-
type: "weeding" | "fertilizer";
|
|
182
|
+
type: "weeding" | "fertilizer" | "irrigation" | "pruning" | "scouting" | "spray" | "biocontrol" | "sanitation" | "staking";
|
|
183
183
|
occurredAt: string;
|
|
184
184
|
fieldId: string;
|
|
185
185
|
source?: "whatsapp" | "manual" | "agent" | undefined;
|
|
@@ -191,7 +191,7 @@ export declare const createFieldActivitySchema: z.ZodObject<{
|
|
|
191
191
|
inventoryItemId?: string | undefined;
|
|
192
192
|
fertilizerProductId?: string | undefined;
|
|
193
193
|
}, {
|
|
194
|
-
type: "weeding" | "fertilizer";
|
|
194
|
+
type: "weeding" | "fertilizer" | "irrigation" | "pruning" | "scouting" | "spray" | "biocontrol" | "sanitation" | "staking";
|
|
195
195
|
occurredAt: string;
|
|
196
196
|
fieldId: string;
|
|
197
197
|
source?: "whatsapp" | "manual" | "agent" | undefined;
|
|
@@ -206,7 +206,7 @@ export declare const createFieldActivitySchema: z.ZodObject<{
|
|
|
206
206
|
}, "strip", z.ZodTypeAny, {
|
|
207
207
|
type: "field-activities";
|
|
208
208
|
attributes: {
|
|
209
|
-
type: "weeding" | "fertilizer";
|
|
209
|
+
type: "weeding" | "fertilizer" | "irrigation" | "pruning" | "scouting" | "spray" | "biocontrol" | "sanitation" | "staking";
|
|
210
210
|
occurredAt: string;
|
|
211
211
|
fieldId: string;
|
|
212
212
|
source?: "whatsapp" | "manual" | "agent" | undefined;
|
|
@@ -221,7 +221,7 @@ export declare const createFieldActivitySchema: z.ZodObject<{
|
|
|
221
221
|
}, {
|
|
222
222
|
type: "field-activities";
|
|
223
223
|
attributes: {
|
|
224
|
-
type: "weeding" | "fertilizer";
|
|
224
|
+
type: "weeding" | "fertilizer" | "irrigation" | "pruning" | "scouting" | "spray" | "biocontrol" | "sanitation" | "staking";
|
|
225
225
|
occurredAt: string;
|
|
226
226
|
fieldId: string;
|
|
227
227
|
source?: "whatsapp" | "manual" | "agent" | undefined;
|
|
@@ -298,7 +298,7 @@ export declare const fieldActivityResourceSchema: z.ZodObject<{
|
|
|
298
298
|
attributes: z.ZodObject<{
|
|
299
299
|
fieldId: z.ZodString;
|
|
300
300
|
fieldName: z.ZodOptional<z.ZodString>;
|
|
301
|
-
type: z.ZodEnum<["weeding", "fertilizer"]>;
|
|
301
|
+
type: z.ZodEnum<["weeding", "fertilizer", "scouting", "spray", "biocontrol", "sanitation", "irrigation", "pruning", "staking"]>;
|
|
302
302
|
occurredAt: z.ZodString;
|
|
303
303
|
method: z.ZodNullable<z.ZodString>;
|
|
304
304
|
productName: z.ZodNullable<z.ZodString>;
|
|
@@ -313,7 +313,7 @@ export declare const fieldActivityResourceSchema: z.ZodObject<{
|
|
|
313
313
|
createdAt: z.ZodString;
|
|
314
314
|
updatedAt: z.ZodString;
|
|
315
315
|
}, "strip", z.ZodTypeAny, {
|
|
316
|
-
type: "weeding" | "fertilizer";
|
|
316
|
+
type: "weeding" | "fertilizer" | "irrigation" | "pruning" | "scouting" | "spray" | "biocontrol" | "sanitation" | "staking";
|
|
317
317
|
source: "whatsapp" | "manual" | "agent";
|
|
318
318
|
createdAt: string;
|
|
319
319
|
updatedAt: string;
|
|
@@ -329,7 +329,7 @@ export declare const fieldActivityResourceSchema: z.ZodObject<{
|
|
|
329
329
|
fertilizerProductId: string | null;
|
|
330
330
|
fieldName?: string | undefined;
|
|
331
331
|
}, {
|
|
332
|
-
type: "weeding" | "fertilizer";
|
|
332
|
+
type: "weeding" | "fertilizer" | "irrigation" | "pruning" | "scouting" | "spray" | "biocontrol" | "sanitation" | "staking";
|
|
333
333
|
source: "whatsapp" | "manual" | "agent";
|
|
334
334
|
createdAt: string;
|
|
335
335
|
updatedAt: string;
|
|
@@ -352,7 +352,7 @@ export declare const fieldActivityResourceSchema: z.ZodObject<{
|
|
|
352
352
|
type: string;
|
|
353
353
|
id: string;
|
|
354
354
|
attributes: {
|
|
355
|
-
type: "weeding" | "fertilizer";
|
|
355
|
+
type: "weeding" | "fertilizer" | "irrigation" | "pruning" | "scouting" | "spray" | "biocontrol" | "sanitation" | "staking";
|
|
356
356
|
source: "whatsapp" | "manual" | "agent";
|
|
357
357
|
createdAt: string;
|
|
358
358
|
updatedAt: string;
|
|
@@ -375,7 +375,7 @@ export declare const fieldActivityResourceSchema: z.ZodObject<{
|
|
|
375
375
|
type: string;
|
|
376
376
|
id: string;
|
|
377
377
|
attributes: {
|
|
378
|
-
type: "weeding" | "fertilizer";
|
|
378
|
+
type: "weeding" | "fertilizer" | "irrigation" | "pruning" | "scouting" | "spray" | "biocontrol" | "sanitation" | "staking";
|
|
379
379
|
source: "whatsapp" | "manual" | "agent";
|
|
380
380
|
createdAt: string;
|
|
381
381
|
updatedAt: string;
|
|
@@ -402,7 +402,7 @@ export declare const fieldActivityResponseSchema: z.ZodObject<{
|
|
|
402
402
|
attributes: z.ZodObject<{
|
|
403
403
|
fieldId: z.ZodString;
|
|
404
404
|
fieldName: z.ZodOptional<z.ZodString>;
|
|
405
|
-
type: z.ZodEnum<["weeding", "fertilizer"]>;
|
|
405
|
+
type: z.ZodEnum<["weeding", "fertilizer", "scouting", "spray", "biocontrol", "sanitation", "irrigation", "pruning", "staking"]>;
|
|
406
406
|
occurredAt: z.ZodString;
|
|
407
407
|
method: z.ZodNullable<z.ZodString>;
|
|
408
408
|
productName: z.ZodNullable<z.ZodString>;
|
|
@@ -417,7 +417,7 @@ export declare const fieldActivityResponseSchema: z.ZodObject<{
|
|
|
417
417
|
createdAt: z.ZodString;
|
|
418
418
|
updatedAt: z.ZodString;
|
|
419
419
|
}, "strip", z.ZodTypeAny, {
|
|
420
|
-
type: "weeding" | "fertilizer";
|
|
420
|
+
type: "weeding" | "fertilizer" | "irrigation" | "pruning" | "scouting" | "spray" | "biocontrol" | "sanitation" | "staking";
|
|
421
421
|
source: "whatsapp" | "manual" | "agent";
|
|
422
422
|
createdAt: string;
|
|
423
423
|
updatedAt: string;
|
|
@@ -433,7 +433,7 @@ export declare const fieldActivityResponseSchema: z.ZodObject<{
|
|
|
433
433
|
fertilizerProductId: string | null;
|
|
434
434
|
fieldName?: string | undefined;
|
|
435
435
|
}, {
|
|
436
|
-
type: "weeding" | "fertilizer";
|
|
436
|
+
type: "weeding" | "fertilizer" | "irrigation" | "pruning" | "scouting" | "spray" | "biocontrol" | "sanitation" | "staking";
|
|
437
437
|
source: "whatsapp" | "manual" | "agent";
|
|
438
438
|
createdAt: string;
|
|
439
439
|
updatedAt: string;
|
|
@@ -456,7 +456,7 @@ export declare const fieldActivityResponseSchema: z.ZodObject<{
|
|
|
456
456
|
type: string;
|
|
457
457
|
id: string;
|
|
458
458
|
attributes: {
|
|
459
|
-
type: "weeding" | "fertilizer";
|
|
459
|
+
type: "weeding" | "fertilizer" | "irrigation" | "pruning" | "scouting" | "spray" | "biocontrol" | "sanitation" | "staking";
|
|
460
460
|
source: "whatsapp" | "manual" | "agent";
|
|
461
461
|
createdAt: string;
|
|
462
462
|
updatedAt: string;
|
|
@@ -479,7 +479,7 @@ export declare const fieldActivityResponseSchema: z.ZodObject<{
|
|
|
479
479
|
type: string;
|
|
480
480
|
id: string;
|
|
481
481
|
attributes: {
|
|
482
|
-
type: "weeding" | "fertilizer";
|
|
482
|
+
type: "weeding" | "fertilizer" | "irrigation" | "pruning" | "scouting" | "spray" | "biocontrol" | "sanitation" | "staking";
|
|
483
483
|
source: "whatsapp" | "manual" | "agent";
|
|
484
484
|
createdAt: string;
|
|
485
485
|
updatedAt: string;
|
|
@@ -528,7 +528,7 @@ export declare const fieldActivityResponseSchema: z.ZodObject<{
|
|
|
528
528
|
type: string;
|
|
529
529
|
id: string;
|
|
530
530
|
attributes: {
|
|
531
|
-
type: "weeding" | "fertilizer";
|
|
531
|
+
type: "weeding" | "fertilizer" | "irrigation" | "pruning" | "scouting" | "spray" | "biocontrol" | "sanitation" | "staking";
|
|
532
532
|
source: "whatsapp" | "manual" | "agent";
|
|
533
533
|
createdAt: string;
|
|
534
534
|
updatedAt: string;
|
|
@@ -563,7 +563,7 @@ export declare const fieldActivityResponseSchema: z.ZodObject<{
|
|
|
563
563
|
type: string;
|
|
564
564
|
id: string;
|
|
565
565
|
attributes: {
|
|
566
|
-
type: "weeding" | "fertilizer";
|
|
566
|
+
type: "weeding" | "fertilizer" | "irrigation" | "pruning" | "scouting" | "spray" | "biocontrol" | "sanitation" | "staking";
|
|
567
567
|
source: "whatsapp" | "manual" | "agent";
|
|
568
568
|
createdAt: string;
|
|
569
569
|
updatedAt: string;
|
|
@@ -601,7 +601,7 @@ export declare const fieldActivityListResponseSchema: z.ZodObject<{
|
|
|
601
601
|
attributes: z.ZodObject<{
|
|
602
602
|
fieldId: z.ZodString;
|
|
603
603
|
fieldName: z.ZodOptional<z.ZodString>;
|
|
604
|
-
type: z.ZodEnum<["weeding", "fertilizer"]>;
|
|
604
|
+
type: z.ZodEnum<["weeding", "fertilizer", "scouting", "spray", "biocontrol", "sanitation", "irrigation", "pruning", "staking"]>;
|
|
605
605
|
occurredAt: z.ZodString;
|
|
606
606
|
method: z.ZodNullable<z.ZodString>;
|
|
607
607
|
productName: z.ZodNullable<z.ZodString>;
|
|
@@ -616,7 +616,7 @@ export declare const fieldActivityListResponseSchema: z.ZodObject<{
|
|
|
616
616
|
createdAt: z.ZodString;
|
|
617
617
|
updatedAt: z.ZodString;
|
|
618
618
|
}, "strip", z.ZodTypeAny, {
|
|
619
|
-
type: "weeding" | "fertilizer";
|
|
619
|
+
type: "weeding" | "fertilizer" | "irrigation" | "pruning" | "scouting" | "spray" | "biocontrol" | "sanitation" | "staking";
|
|
620
620
|
source: "whatsapp" | "manual" | "agent";
|
|
621
621
|
createdAt: string;
|
|
622
622
|
updatedAt: string;
|
|
@@ -632,7 +632,7 @@ export declare const fieldActivityListResponseSchema: z.ZodObject<{
|
|
|
632
632
|
fertilizerProductId: string | null;
|
|
633
633
|
fieldName?: string | undefined;
|
|
634
634
|
}, {
|
|
635
|
-
type: "weeding" | "fertilizer";
|
|
635
|
+
type: "weeding" | "fertilizer" | "irrigation" | "pruning" | "scouting" | "spray" | "biocontrol" | "sanitation" | "staking";
|
|
636
636
|
source: "whatsapp" | "manual" | "agent";
|
|
637
637
|
createdAt: string;
|
|
638
638
|
updatedAt: string;
|
|
@@ -655,7 +655,7 @@ export declare const fieldActivityListResponseSchema: z.ZodObject<{
|
|
|
655
655
|
type: string;
|
|
656
656
|
id: string;
|
|
657
657
|
attributes: {
|
|
658
|
-
type: "weeding" | "fertilizer";
|
|
658
|
+
type: "weeding" | "fertilizer" | "irrigation" | "pruning" | "scouting" | "spray" | "biocontrol" | "sanitation" | "staking";
|
|
659
659
|
source: "whatsapp" | "manual" | "agent";
|
|
660
660
|
createdAt: string;
|
|
661
661
|
updatedAt: string;
|
|
@@ -678,7 +678,7 @@ export declare const fieldActivityListResponseSchema: z.ZodObject<{
|
|
|
678
678
|
type: string;
|
|
679
679
|
id: string;
|
|
680
680
|
attributes: {
|
|
681
|
-
type: "weeding" | "fertilizer";
|
|
681
|
+
type: "weeding" | "fertilizer" | "irrigation" | "pruning" | "scouting" | "spray" | "biocontrol" | "sanitation" | "staking";
|
|
682
682
|
source: "whatsapp" | "manual" | "agent";
|
|
683
683
|
createdAt: string;
|
|
684
684
|
updatedAt: string;
|
|
@@ -727,7 +727,7 @@ export declare const fieldActivityListResponseSchema: z.ZodObject<{
|
|
|
727
727
|
type: string;
|
|
728
728
|
id: string;
|
|
729
729
|
attributes: {
|
|
730
|
-
type: "weeding" | "fertilizer";
|
|
730
|
+
type: "weeding" | "fertilizer" | "irrigation" | "pruning" | "scouting" | "spray" | "biocontrol" | "sanitation" | "staking";
|
|
731
731
|
source: "whatsapp" | "manual" | "agent";
|
|
732
732
|
createdAt: string;
|
|
733
733
|
updatedAt: string;
|
|
@@ -762,7 +762,7 @@ export declare const fieldActivityListResponseSchema: z.ZodObject<{
|
|
|
762
762
|
type: string;
|
|
763
763
|
id: string;
|
|
764
764
|
attributes: {
|
|
765
|
-
type: "weeding" | "fertilizer";
|
|
765
|
+
type: "weeding" | "fertilizer" | "irrigation" | "pruning" | "scouting" | "spray" | "biocontrol" | "sanitation" | "staking";
|
|
766
766
|
source: "whatsapp" | "manual" | "agent";
|
|
767
767
|
createdAt: string;
|
|
768
768
|
updatedAt: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"field-activities.schemas.d.ts","sourceRoot":"","sources":["../../src/schemas/field-activities.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,eAAO,MAAM,uBAAuB,
|
|
1
|
+
{"version":3,"file":"field-activities.schemas.d.ts","sourceRoot":"","sources":["../../src/schemas/field-activities.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,eAAO,MAAM,uBAAuB,2HAUlC,CAAC;AACH,eAAO,MAAM,yBAAyB,4CAA0C,CAAC;AAEjF,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgBhB,CAAC;AAE3B,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwB5C,CAAC;AAEL,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;EAS9C,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;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AO,mCAAmC,CAAC,CAAC;AAChG,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AACjF,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AACjF,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AACpF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAChF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAChF,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC"}
|
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { timestampsSchema, createJsonApiResourceSchema, jsonApiSingleResponseSchema, jsonApiCollectionResponseSchema, } from './common.schemas';
|
|
3
|
-
export const fieldActivityTypeSchema = z.enum([
|
|
3
|
+
export const fieldActivityTypeSchema = z.enum([
|
|
4
|
+
'weeding',
|
|
5
|
+
'fertilizer',
|
|
6
|
+
'scouting',
|
|
7
|
+
'spray',
|
|
8
|
+
'biocontrol',
|
|
9
|
+
'sanitation',
|
|
10
|
+
'irrigation',
|
|
11
|
+
'pruning',
|
|
12
|
+
'staking',
|
|
13
|
+
]);
|
|
4
14
|
export const fieldActivitySourceSchema = z.enum(['manual', 'agent', 'whatsapp']);
|
|
5
15
|
export const fieldActivityAttributesSchema = z
|
|
6
16
|
.object({
|