@deepintel-ltd/farmpro-contracts 1.5.13 → 1.5.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/routes/agents.routes.d.ts +623 -0
- package/dist/routes/agents.routes.d.ts.map +1 -1
- package/dist/routes/agents.routes.js +18 -1
- package/dist/routes/field-monitoring.routes.d.ts +18 -18
- package/dist/schemas/agents.schemas.d.ts +916 -0
- package/dist/schemas/agents.schemas.d.ts.map +1 -1
- package/dist/schemas/agents.schemas.js +34 -0
- package/dist/schemas/field-monitoring.schemas.d.ts +18 -18
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agents.schemas.d.ts","sourceRoot":"","sources":["../../src/schemas/agents.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB;;GAEG;AAGH,eAAO,MAAM,iBAAiB,kCAAgC,CAAC;AAG/D,eAAO,MAAM,yBAAyB;;;;;;;;;EAGpC,CAAC;AAGH,eAAO,MAAM,oBAAoB;;;;;;;;;EAG/B,CAAC;AAGH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQtC,CAAC;AAGH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAG5B,CAAC;AAGH,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;EAI5C,CAAC;AAGH,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAG3C,CAAC;AAGF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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G,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAC;AAChG,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC;AAC5F,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAC9E,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC;AAC1F,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AACtF,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AACtF,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qCAAqC,CAAC,CAAC;AACpG,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC"}
|
|
@@ -75,3 +75,37 @@ export const conversationListAttributesSchema = z.object({
|
|
|
75
75
|
export const conversationListResourceSchema = createJsonApiResourceSchema('conversation-lists', conversationListAttributesSchema);
|
|
76
76
|
// Conversation list response
|
|
77
77
|
export const conversationListResponseSchema = jsonApiSingleResponseSchema(conversationListResourceSchema);
|
|
78
|
+
// Survey GeoJSON schemas
|
|
79
|
+
export const geojsonCrsSchema = z.object({
|
|
80
|
+
type: z.literal('name'),
|
|
81
|
+
properties: z.object({
|
|
82
|
+
name: z.string(),
|
|
83
|
+
}),
|
|
84
|
+
});
|
|
85
|
+
export const geojsonPolygonGeometrySchema = z.object({
|
|
86
|
+
type: z.literal('Polygon'),
|
|
87
|
+
coordinates: z.array(z.array(z.tuple([z.number(), z.number()]))), // [[[lon, lat], [lon, lat], ...]]
|
|
88
|
+
});
|
|
89
|
+
export const geojsonFeatureSchema = z.object({
|
|
90
|
+
type: z.literal('Feature'),
|
|
91
|
+
properties: z.object({
|
|
92
|
+
name: z.string(),
|
|
93
|
+
area_hectares: z.number(),
|
|
94
|
+
data_note: z.string().optional(),
|
|
95
|
+
}),
|
|
96
|
+
geometry: geojsonPolygonGeometrySchema,
|
|
97
|
+
});
|
|
98
|
+
export const geojsonFeatureCollectionSchema = z.object({
|
|
99
|
+
type: z.literal('FeatureCollection'),
|
|
100
|
+
crs: geojsonCrsSchema,
|
|
101
|
+
features: z.array(geojsonFeatureSchema),
|
|
102
|
+
});
|
|
103
|
+
// Survey GeoJSON response attributes
|
|
104
|
+
export const surveyGeoJsonResponseAttributesSchema = z.object({
|
|
105
|
+
geojson: geojsonFeatureCollectionSchema,
|
|
106
|
+
processingNotes: z.string().optional(),
|
|
107
|
+
});
|
|
108
|
+
// Survey GeoJSON response resource
|
|
109
|
+
export const surveyGeoJsonResponseResourceSchema = createJsonApiResourceSchema('survey-geojson-responses', surveyGeoJsonResponseAttributesSchema);
|
|
110
|
+
// Survey GeoJSON response
|
|
111
|
+
export const surveyGeoJsonResponseSchema = jsonApiSingleResponseSchema(surveyGeoJsonResponseResourceSchema);
|
|
@@ -1541,6 +1541,15 @@ export declare const intelligentSoilProfileSchema: z.ZodObject<{
|
|
|
1541
1541
|
confidence?: number | undefined;
|
|
1542
1542
|
}[] | undefined;
|
|
1543
1543
|
};
|
|
1544
|
+
properties: {
|
|
1545
|
+
texture: {
|
|
1546
|
+
sand: number;
|
|
1547
|
+
silt: number;
|
|
1548
|
+
clay: number;
|
|
1549
|
+
classification: string;
|
|
1550
|
+
};
|
|
1551
|
+
bulkDensity: number;
|
|
1552
|
+
};
|
|
1544
1553
|
quality: {
|
|
1545
1554
|
overall: "critical" | "poor" | "fair" | "good" | "excellent";
|
|
1546
1555
|
score: number;
|
|
@@ -1628,15 +1637,6 @@ export declare const intelligentSoilProfileSchema: z.ZodObject<{
|
|
|
1628
1637
|
sourceId?: string | undefined;
|
|
1629
1638
|
};
|
|
1630
1639
|
};
|
|
1631
|
-
properties: {
|
|
1632
|
-
texture: {
|
|
1633
|
-
sand: number;
|
|
1634
|
-
silt: number;
|
|
1635
|
-
clay: number;
|
|
1636
|
-
classification: string;
|
|
1637
|
-
};
|
|
1638
|
-
bulkDensity: number;
|
|
1639
|
-
};
|
|
1640
1640
|
dataSources: Record<string, {
|
|
1641
1641
|
date: string;
|
|
1642
1642
|
source: "manual" | "regional_api" | "global_api" | "predicted";
|
|
@@ -1727,6 +1727,15 @@ export declare const intelligentSoilProfileSchema: z.ZodObject<{
|
|
|
1727
1727
|
confidence?: number | undefined;
|
|
1728
1728
|
}[] | undefined;
|
|
1729
1729
|
};
|
|
1730
|
+
properties: {
|
|
1731
|
+
texture: {
|
|
1732
|
+
sand: number;
|
|
1733
|
+
silt: number;
|
|
1734
|
+
clay: number;
|
|
1735
|
+
classification: string;
|
|
1736
|
+
};
|
|
1737
|
+
bulkDensity: number;
|
|
1738
|
+
};
|
|
1730
1739
|
quality: {
|
|
1731
1740
|
overall: "critical" | "poor" | "fair" | "good" | "excellent";
|
|
1732
1741
|
score: number;
|
|
@@ -1814,15 +1823,6 @@ export declare const intelligentSoilProfileSchema: z.ZodObject<{
|
|
|
1814
1823
|
sourceId?: string | undefined;
|
|
1815
1824
|
};
|
|
1816
1825
|
};
|
|
1817
|
-
properties: {
|
|
1818
|
-
texture: {
|
|
1819
|
-
sand: number;
|
|
1820
|
-
silt: number;
|
|
1821
|
-
clay: number;
|
|
1822
|
-
classification: string;
|
|
1823
|
-
};
|
|
1824
|
-
bulkDensity: number;
|
|
1825
|
-
};
|
|
1826
1826
|
dataSources: Record<string, {
|
|
1827
1827
|
date: string;
|
|
1828
1828
|
source: "manual" | "regional_api" | "global_api" | "predicted";
|