@agroshine/ags-web-http 1.12.2
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/README.md +492 -0
- package/dist/auth/index.cjs +1 -0
- package/dist/auth/index.d.cts +14 -0
- package/dist/auth/index.d.ts +14 -0
- package/dist/auth/index.js +1 -0
- package/dist/chunk-ACO6G7O2.js +1 -0
- package/dist/chunk-DJ5M3T5L.js +1 -0
- package/dist/crop-Dd6QL8u1.d.cts +19 -0
- package/dist/crop-Dd6QL8u1.d.ts +19 -0
- package/dist/crops/index.cjs +1 -0
- package/dist/crops/index.d.cts +14 -0
- package/dist/crops/index.d.ts +14 -0
- package/dist/crops/index.js +1 -0
- package/dist/customer-CgeUUBHe.d.cts +119 -0
- package/dist/customer-CgeUUBHe.d.ts +119 -0
- package/dist/customers/index.cjs +1 -0
- package/dist/customers/index.d.cts +66 -0
- package/dist/customers/index.d.ts +66 -0
- package/dist/customers/index.js +1 -0
- package/dist/group-CnJEil9u.d.cts +14 -0
- package/dist/group-CnJEil9u.d.ts +14 -0
- package/dist/groups/index.cjs +1 -0
- package/dist/groups/index.d.cts +14 -0
- package/dist/groups/index.d.ts +14 -0
- package/dist/groups/index.js +1 -0
- package/dist/index.cjs +1 -0
- package/dist/index.d.cts +73 -0
- package/dist/index.d.ts +73 -0
- package/dist/index.js +1 -0
- package/dist/indicator-BI8cP2F2.d.cts +62 -0
- package/dist/indicator-BI8cP2F2.d.ts +62 -0
- package/dist/indicators/index.cjs +1 -0
- package/dist/indicators/index.d.cts +15 -0
- package/dist/indicators/index.d.ts +15 -0
- package/dist/indicators/index.js +1 -0
- package/dist/layer/index.cjs +1 -0
- package/dist/layer/index.d.cts +18 -0
- package/dist/layer/index.d.ts +18 -0
- package/dist/layer/index.js +1 -0
- package/dist/layer-C4sBuqRI.d.cts +9 -0
- package/dist/layer-C4sBuqRI.d.ts +9 -0
- package/dist/login-Dq5rerGn.d.cts +6 -0
- package/dist/login-Dq5rerGn.d.ts +6 -0
- package/dist/modules/index.cjs +1 -0
- package/dist/modules/index.d.cts +6 -0
- package/dist/modules/index.d.ts +6 -0
- package/dist/modules/index.js +1 -0
- package/dist/permission-Dxx9IAbQ.d.cts +9 -0
- package/dist/permission-Dxx9IAbQ.d.ts +9 -0
- package/dist/permissions/index.cjs +1 -0
- package/dist/permissions/index.d.cts +14 -0
- package/dist/permissions/index.d.ts +14 -0
- package/dist/permissions/index.js +1 -0
- package/dist/role-Bimwb-vf.d.cts +10 -0
- package/dist/role-Bimwb-vf.d.ts +10 -0
- package/dist/roles/index.cjs +1 -0
- package/dist/roles/index.d.cts +14 -0
- package/dist/roles/index.d.ts +14 -0
- package/dist/roles/index.js +1 -0
- package/dist/structure/index.cjs +1 -0
- package/dist/structure/index.d.cts +176 -0
- package/dist/structure/index.d.ts +176 -0
- package/dist/structure/index.js +1 -0
- package/dist/structure-CNfJ_8fX.d.cts +218 -0
- package/dist/structure-CNfJ_8fX.d.ts +218 -0
- package/dist/user-FIov3LUo.d.cts +29 -0
- package/dist/user-FIov3LUo.d.ts +29 -0
- package/dist/users/index.cjs +1 -0
- package/dist/users/index.d.cts +14 -0
- package/dist/users/index.d.ts +14 -0
- package/dist/users/index.js +1 -0
- package/dist/varieties/index.cjs +1 -0
- package/dist/varieties/index.d.cts +20 -0
- package/dist/varieties/index.d.ts +20 -0
- package/dist/varieties/index.js +1 -0
- package/dist/variety-nx4Q5Ncw.d.cts +25 -0
- package/dist/variety-nx4Q5Ncw.d.ts +25 -0
- package/package.json +151 -0
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
import * as axios from 'axios';
|
|
2
|
+
import { t as IStructure, O as ObservationStatus, l as INote, v as IVersionSummary, I as IBulkCaptureInput, d as IBulkCaptureResponse, f as ICommitListResponse, g as IDraftReadiness, i as IGeoUnitsResponse, j as ILineageAuditResponse, m as IObservationTask, N as Nave, r as IRuntimeBoundaryReadiness, q as IPlantingValidationResponse, n as IPlantingBatchItem, p as IPlantingBatchResponse, u as IVersionDetail } from '../structure-CNfJ_8fX.cjs';
|
|
3
|
+
|
|
4
|
+
declare function fetchStructure({ _id }: {
|
|
5
|
+
_id: string;
|
|
6
|
+
}): Promise<axios.AxiosResponse<IStructure[], any, {}>>;
|
|
7
|
+
declare function fetchStructureById({ _id }: {
|
|
8
|
+
_id: string;
|
|
9
|
+
}): Promise<axios.AxiosResponse<IStructure, any, {}>>;
|
|
10
|
+
declare function fetchUpdateStructure({ id, data, }: {
|
|
11
|
+
id: string;
|
|
12
|
+
data: Partial<IStructure>;
|
|
13
|
+
}): Promise<axios.AxiosResponse<IStructure, any, {}>>;
|
|
14
|
+
declare function fetchCreateStructure(data: Partial<IStructure>): Promise<axios.AxiosResponse<IStructure, any, {}>>;
|
|
15
|
+
declare function fetchConfirmedStructures({ _id }: {
|
|
16
|
+
_id: string;
|
|
17
|
+
}): Promise<axios.AxiosResponse<IStructure[], any, {}>>;
|
|
18
|
+
declare function fetchObservations({ blockId }: {
|
|
19
|
+
blockId: string;
|
|
20
|
+
}): Promise<axios.AxiosResponse<INote[], any, {}>>;
|
|
21
|
+
declare function fetchObservationById({ id }: {
|
|
22
|
+
id: string;
|
|
23
|
+
}): Promise<axios.AxiosResponse<INote, any, {}>>;
|
|
24
|
+
declare function fetchObservationTasks({ blockId }: {
|
|
25
|
+
blockId: string;
|
|
26
|
+
}): Promise<axios.AxiosResponse<IObservationTask[], any, {}>>;
|
|
27
|
+
declare function patchObservationStatus({ id, status, }: {
|
|
28
|
+
id: string;
|
|
29
|
+
status: ObservationStatus;
|
|
30
|
+
}): Promise<axios.AxiosResponse<INote, any, {}>>;
|
|
31
|
+
declare function createObservation(data: {
|
|
32
|
+
farmId: string;
|
|
33
|
+
blockId: string;
|
|
34
|
+
level: string;
|
|
35
|
+
message: string;
|
|
36
|
+
entityId?: string;
|
|
37
|
+
status?: ObservationStatus;
|
|
38
|
+
createdBy?: string;
|
|
39
|
+
}): Promise<axios.AxiosResponse<INote, any, {}>>;
|
|
40
|
+
declare function confirmStructure({ blockId, implemented, }: {
|
|
41
|
+
blockId: string;
|
|
42
|
+
implemented?: number;
|
|
43
|
+
}): Promise<axios.AxiosResponse<IStructure, any, {}>>;
|
|
44
|
+
declare function editFromConfirmed({ blockId }: {
|
|
45
|
+
blockId: string;
|
|
46
|
+
}): Promise<axios.AxiosResponse<IStructure, any, {}>>;
|
|
47
|
+
declare function fetchCommits({ blockId, limit, offset, }: {
|
|
48
|
+
blockId: string;
|
|
49
|
+
limit?: number;
|
|
50
|
+
offset?: number;
|
|
51
|
+
}): Promise<axios.AxiosResponse<ICommitListResponse, any, {}>>;
|
|
52
|
+
declare function fetchDraftReadiness({ blockId }: {
|
|
53
|
+
blockId: string;
|
|
54
|
+
}): Promise<axios.AxiosResponse<IDraftReadiness, any, {}>>;
|
|
55
|
+
declare function fetchVersionsByBlock({ blockId }: {
|
|
56
|
+
blockId: string;
|
|
57
|
+
}): Promise<axios.AxiosResponse<IVersionSummary[], any, {}>>;
|
|
58
|
+
declare function fetchVersionByNumber({ blockId, version, }: {
|
|
59
|
+
blockId: string;
|
|
60
|
+
version: number;
|
|
61
|
+
}): Promise<axios.AxiosResponse<IVersionDetail, any, {}>>;
|
|
62
|
+
declare function fetchLatestConfirmedVersions({ farmId, asOfDate, }: {
|
|
63
|
+
farmId: string;
|
|
64
|
+
asOfDate?: string;
|
|
65
|
+
}): Promise<axios.AxiosResponse<IVersionSummary[], any, {}>>;
|
|
66
|
+
declare function fetchLatestVersionsWithAlignment({ farmId }: {
|
|
67
|
+
farmId: string;
|
|
68
|
+
}): Promise<axios.AxiosResponse<IStructure[], any, {}>>;
|
|
69
|
+
declare function fetchLatestVersionForBlock({ blockId, asOfDate, }: {
|
|
70
|
+
blockId: string;
|
|
71
|
+
asOfDate?: string;
|
|
72
|
+
}): Promise<axios.AxiosResponse<IVersionSummary, any, {}>>;
|
|
73
|
+
declare function fetchBasicVersionsByFarm({ farmId }: {
|
|
74
|
+
farmId: string;
|
|
75
|
+
}): Promise<axios.AxiosResponse<IVersionSummary[], any, {}>>;
|
|
76
|
+
declare function updateBlock({ blockId, data, }: {
|
|
77
|
+
blockId: string;
|
|
78
|
+
data: {
|
|
79
|
+
blockName?: string;
|
|
80
|
+
sides?: number;
|
|
81
|
+
bedsPerNave?: number;
|
|
82
|
+
maxTotalBeds?: number;
|
|
83
|
+
maxTotalNaves?: number;
|
|
84
|
+
centralRoadSize?: number;
|
|
85
|
+
widthBed?: number;
|
|
86
|
+
lengthBed?: number;
|
|
87
|
+
bedRoadSize?: number;
|
|
88
|
+
pointA?: [number, number];
|
|
89
|
+
pointB?: [number, number];
|
|
90
|
+
};
|
|
91
|
+
}): Promise<axios.AxiosResponse<IStructure, any, {}>>;
|
|
92
|
+
declare function updateNave({ naveId, data, }: {
|
|
93
|
+
naveId: string;
|
|
94
|
+
data: {
|
|
95
|
+
name?: string;
|
|
96
|
+
orderIndex?: number;
|
|
97
|
+
};
|
|
98
|
+
}): Promise<axios.AxiosResponse<Record<string, unknown>, any, {}>>;
|
|
99
|
+
declare function updateBed({ bedId, data, }: {
|
|
100
|
+
bedId: string;
|
|
101
|
+
data: {
|
|
102
|
+
name?: string;
|
|
103
|
+
orderIndex?: number;
|
|
104
|
+
};
|
|
105
|
+
}): Promise<axios.AxiosResponse<Record<string, unknown>, any, {}>>;
|
|
106
|
+
declare function updateSquare({ squareId, data, }: {
|
|
107
|
+
squareId: string;
|
|
108
|
+
data: {
|
|
109
|
+
number?: number;
|
|
110
|
+
orderIndex?: number;
|
|
111
|
+
};
|
|
112
|
+
}): Promise<axios.AxiosResponse<Record<string, unknown>, any, {}>>;
|
|
113
|
+
declare function updateCell({ cellId, data, }: {
|
|
114
|
+
cellId: string;
|
|
115
|
+
data: {
|
|
116
|
+
lineNumber?: number;
|
|
117
|
+
rowNumber?: number;
|
|
118
|
+
colNumber?: number;
|
|
119
|
+
};
|
|
120
|
+
}): Promise<axios.AxiosResponse<Record<string, unknown>, any, {}>>;
|
|
121
|
+
declare function applyDraftOperations({ blockId, data, }: {
|
|
122
|
+
blockId: string;
|
|
123
|
+
data: {
|
|
124
|
+
baseDraftUpdatedAt?: string;
|
|
125
|
+
operations: Record<string, unknown>[];
|
|
126
|
+
};
|
|
127
|
+
}): Promise<axios.AxiosResponse<IStructure, any, {}>>;
|
|
128
|
+
declare function replaceDraft({ blockId, data, }: {
|
|
129
|
+
blockId: string;
|
|
130
|
+
data: {
|
|
131
|
+
alignment: unknown[][];
|
|
132
|
+
};
|
|
133
|
+
}): Promise<axios.AxiosResponse<IStructure, any, {}>>;
|
|
134
|
+
declare function fetchDraftsByFarm({ farmId }: {
|
|
135
|
+
farmId: string;
|
|
136
|
+
}): Promise<axios.AxiosResponse<IStructure[], any, {}>>;
|
|
137
|
+
declare function fetchLatestDraftsByFarm({ farmId }: {
|
|
138
|
+
farmId: string;
|
|
139
|
+
}): Promise<axios.AxiosResponse<IStructure[], any, {}>>;
|
|
140
|
+
declare function fetchLineageAuditPreview({ farmId, blockName, mode, limit, }: {
|
|
141
|
+
farmId: string;
|
|
142
|
+
blockName?: string;
|
|
143
|
+
mode?: 'block' | 'leaf';
|
|
144
|
+
limit?: number;
|
|
145
|
+
}): Promise<axios.AxiosResponse<ILineageAuditResponse, any, {}>>;
|
|
146
|
+
declare function fetchGeoUnits({ farmId, limit, cursor, asOfDate, blockId, }: {
|
|
147
|
+
farmId: string;
|
|
148
|
+
limit?: number;
|
|
149
|
+
cursor?: string;
|
|
150
|
+
asOfDate?: string;
|
|
151
|
+
blockId?: string;
|
|
152
|
+
}): Promise<axios.AxiosResponse<IGeoUnitsResponse, any, {}>>;
|
|
153
|
+
declare function fetchRuntimeBoundaryReadiness(): Promise<axios.AxiosResponse<IRuntimeBoundaryReadiness, any, {}>>;
|
|
154
|
+
declare function fetchBulkCapture(items: IBulkCaptureInput[]): Promise<axios.AxiosResponse<IBulkCaptureResponse, any, {}>>;
|
|
155
|
+
declare function fetchBulkCaptureStatus({ jobId }: {
|
|
156
|
+
jobId: string;
|
|
157
|
+
}): Promise<axios.AxiosResponse<IBulkCaptureResponse, any, {}>>;
|
|
158
|
+
declare function fetchValidatePlantingUnit({ structureId, structureVersion, geoUnitId, geoUnitType, farmId, }: {
|
|
159
|
+
structureId: string;
|
|
160
|
+
structureVersion: number;
|
|
161
|
+
geoUnitId: string;
|
|
162
|
+
geoUnitType: 'SQUARE' | 'CELL';
|
|
163
|
+
farmId?: string;
|
|
164
|
+
}): Promise<axios.AxiosResponse<IPlantingValidationResponse, any, {}>>;
|
|
165
|
+
declare function fetchValidatePlantingUnitsBatch(data: {
|
|
166
|
+
farmId: string;
|
|
167
|
+
items: IPlantingBatchItem[];
|
|
168
|
+
asOfDate?: string;
|
|
169
|
+
requestedStructureVersion?: number;
|
|
170
|
+
}): Promise<axios.AxiosResponse<IPlantingBatchResponse, any, {}>>;
|
|
171
|
+
declare function generateAlignment(data: Partial<IStructure>): Promise<axios.AxiosResponse<Nave[][], any, {}>>;
|
|
172
|
+
declare function fetchRegenerateAlignment({ blockId }: {
|
|
173
|
+
blockId: string;
|
|
174
|
+
}): Promise<axios.AxiosResponse<Nave[][], any, {}>>;
|
|
175
|
+
|
|
176
|
+
export { applyDraftOperations, confirmStructure, createObservation, editFromConfirmed, fetchBasicVersionsByFarm, fetchBulkCapture, fetchBulkCaptureStatus, fetchCommits, fetchConfirmedStructures, fetchCreateStructure, fetchDraftReadiness, fetchDraftsByFarm, fetchGeoUnits, fetchLatestConfirmedVersions, fetchLatestDraftsByFarm, fetchLatestVersionForBlock, fetchLatestVersionsWithAlignment, fetchLineageAuditPreview, fetchObservationById, fetchObservationTasks, fetchObservations, fetchRegenerateAlignment, fetchRuntimeBoundaryReadiness, fetchStructure, fetchStructureById, fetchUpdateStructure, fetchValidatePlantingUnit, fetchValidatePlantingUnitsBatch, fetchVersionByNumber, fetchVersionsByBlock, generateAlignment, patchObservationStatus, replaceDraft, updateBed, updateBlock, updateCell, updateNave, updateSquare };
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
import * as axios from 'axios';
|
|
2
|
+
import { t as IStructure, O as ObservationStatus, l as INote, v as IVersionSummary, I as IBulkCaptureInput, d as IBulkCaptureResponse, f as ICommitListResponse, g as IDraftReadiness, i as IGeoUnitsResponse, j as ILineageAuditResponse, m as IObservationTask, N as Nave, r as IRuntimeBoundaryReadiness, q as IPlantingValidationResponse, n as IPlantingBatchItem, p as IPlantingBatchResponse, u as IVersionDetail } from '../structure-CNfJ_8fX.js';
|
|
3
|
+
|
|
4
|
+
declare function fetchStructure({ _id }: {
|
|
5
|
+
_id: string;
|
|
6
|
+
}): Promise<axios.AxiosResponse<IStructure[], any, {}>>;
|
|
7
|
+
declare function fetchStructureById({ _id }: {
|
|
8
|
+
_id: string;
|
|
9
|
+
}): Promise<axios.AxiosResponse<IStructure, any, {}>>;
|
|
10
|
+
declare function fetchUpdateStructure({ id, data, }: {
|
|
11
|
+
id: string;
|
|
12
|
+
data: Partial<IStructure>;
|
|
13
|
+
}): Promise<axios.AxiosResponse<IStructure, any, {}>>;
|
|
14
|
+
declare function fetchCreateStructure(data: Partial<IStructure>): Promise<axios.AxiosResponse<IStructure, any, {}>>;
|
|
15
|
+
declare function fetchConfirmedStructures({ _id }: {
|
|
16
|
+
_id: string;
|
|
17
|
+
}): Promise<axios.AxiosResponse<IStructure[], any, {}>>;
|
|
18
|
+
declare function fetchObservations({ blockId }: {
|
|
19
|
+
blockId: string;
|
|
20
|
+
}): Promise<axios.AxiosResponse<INote[], any, {}>>;
|
|
21
|
+
declare function fetchObservationById({ id }: {
|
|
22
|
+
id: string;
|
|
23
|
+
}): Promise<axios.AxiosResponse<INote, any, {}>>;
|
|
24
|
+
declare function fetchObservationTasks({ blockId }: {
|
|
25
|
+
blockId: string;
|
|
26
|
+
}): Promise<axios.AxiosResponse<IObservationTask[], any, {}>>;
|
|
27
|
+
declare function patchObservationStatus({ id, status, }: {
|
|
28
|
+
id: string;
|
|
29
|
+
status: ObservationStatus;
|
|
30
|
+
}): Promise<axios.AxiosResponse<INote, any, {}>>;
|
|
31
|
+
declare function createObservation(data: {
|
|
32
|
+
farmId: string;
|
|
33
|
+
blockId: string;
|
|
34
|
+
level: string;
|
|
35
|
+
message: string;
|
|
36
|
+
entityId?: string;
|
|
37
|
+
status?: ObservationStatus;
|
|
38
|
+
createdBy?: string;
|
|
39
|
+
}): Promise<axios.AxiosResponse<INote, any, {}>>;
|
|
40
|
+
declare function confirmStructure({ blockId, implemented, }: {
|
|
41
|
+
blockId: string;
|
|
42
|
+
implemented?: number;
|
|
43
|
+
}): Promise<axios.AxiosResponse<IStructure, any, {}>>;
|
|
44
|
+
declare function editFromConfirmed({ blockId }: {
|
|
45
|
+
blockId: string;
|
|
46
|
+
}): Promise<axios.AxiosResponse<IStructure, any, {}>>;
|
|
47
|
+
declare function fetchCommits({ blockId, limit, offset, }: {
|
|
48
|
+
blockId: string;
|
|
49
|
+
limit?: number;
|
|
50
|
+
offset?: number;
|
|
51
|
+
}): Promise<axios.AxiosResponse<ICommitListResponse, any, {}>>;
|
|
52
|
+
declare function fetchDraftReadiness({ blockId }: {
|
|
53
|
+
blockId: string;
|
|
54
|
+
}): Promise<axios.AxiosResponse<IDraftReadiness, any, {}>>;
|
|
55
|
+
declare function fetchVersionsByBlock({ blockId }: {
|
|
56
|
+
blockId: string;
|
|
57
|
+
}): Promise<axios.AxiosResponse<IVersionSummary[], any, {}>>;
|
|
58
|
+
declare function fetchVersionByNumber({ blockId, version, }: {
|
|
59
|
+
blockId: string;
|
|
60
|
+
version: number;
|
|
61
|
+
}): Promise<axios.AxiosResponse<IVersionDetail, any, {}>>;
|
|
62
|
+
declare function fetchLatestConfirmedVersions({ farmId, asOfDate, }: {
|
|
63
|
+
farmId: string;
|
|
64
|
+
asOfDate?: string;
|
|
65
|
+
}): Promise<axios.AxiosResponse<IVersionSummary[], any, {}>>;
|
|
66
|
+
declare function fetchLatestVersionsWithAlignment({ farmId }: {
|
|
67
|
+
farmId: string;
|
|
68
|
+
}): Promise<axios.AxiosResponse<IStructure[], any, {}>>;
|
|
69
|
+
declare function fetchLatestVersionForBlock({ blockId, asOfDate, }: {
|
|
70
|
+
blockId: string;
|
|
71
|
+
asOfDate?: string;
|
|
72
|
+
}): Promise<axios.AxiosResponse<IVersionSummary, any, {}>>;
|
|
73
|
+
declare function fetchBasicVersionsByFarm({ farmId }: {
|
|
74
|
+
farmId: string;
|
|
75
|
+
}): Promise<axios.AxiosResponse<IVersionSummary[], any, {}>>;
|
|
76
|
+
declare function updateBlock({ blockId, data, }: {
|
|
77
|
+
blockId: string;
|
|
78
|
+
data: {
|
|
79
|
+
blockName?: string;
|
|
80
|
+
sides?: number;
|
|
81
|
+
bedsPerNave?: number;
|
|
82
|
+
maxTotalBeds?: number;
|
|
83
|
+
maxTotalNaves?: number;
|
|
84
|
+
centralRoadSize?: number;
|
|
85
|
+
widthBed?: number;
|
|
86
|
+
lengthBed?: number;
|
|
87
|
+
bedRoadSize?: number;
|
|
88
|
+
pointA?: [number, number];
|
|
89
|
+
pointB?: [number, number];
|
|
90
|
+
};
|
|
91
|
+
}): Promise<axios.AxiosResponse<IStructure, any, {}>>;
|
|
92
|
+
declare function updateNave({ naveId, data, }: {
|
|
93
|
+
naveId: string;
|
|
94
|
+
data: {
|
|
95
|
+
name?: string;
|
|
96
|
+
orderIndex?: number;
|
|
97
|
+
};
|
|
98
|
+
}): Promise<axios.AxiosResponse<Record<string, unknown>, any, {}>>;
|
|
99
|
+
declare function updateBed({ bedId, data, }: {
|
|
100
|
+
bedId: string;
|
|
101
|
+
data: {
|
|
102
|
+
name?: string;
|
|
103
|
+
orderIndex?: number;
|
|
104
|
+
};
|
|
105
|
+
}): Promise<axios.AxiosResponse<Record<string, unknown>, any, {}>>;
|
|
106
|
+
declare function updateSquare({ squareId, data, }: {
|
|
107
|
+
squareId: string;
|
|
108
|
+
data: {
|
|
109
|
+
number?: number;
|
|
110
|
+
orderIndex?: number;
|
|
111
|
+
};
|
|
112
|
+
}): Promise<axios.AxiosResponse<Record<string, unknown>, any, {}>>;
|
|
113
|
+
declare function updateCell({ cellId, data, }: {
|
|
114
|
+
cellId: string;
|
|
115
|
+
data: {
|
|
116
|
+
lineNumber?: number;
|
|
117
|
+
rowNumber?: number;
|
|
118
|
+
colNumber?: number;
|
|
119
|
+
};
|
|
120
|
+
}): Promise<axios.AxiosResponse<Record<string, unknown>, any, {}>>;
|
|
121
|
+
declare function applyDraftOperations({ blockId, data, }: {
|
|
122
|
+
blockId: string;
|
|
123
|
+
data: {
|
|
124
|
+
baseDraftUpdatedAt?: string;
|
|
125
|
+
operations: Record<string, unknown>[];
|
|
126
|
+
};
|
|
127
|
+
}): Promise<axios.AxiosResponse<IStructure, any, {}>>;
|
|
128
|
+
declare function replaceDraft({ blockId, data, }: {
|
|
129
|
+
blockId: string;
|
|
130
|
+
data: {
|
|
131
|
+
alignment: unknown[][];
|
|
132
|
+
};
|
|
133
|
+
}): Promise<axios.AxiosResponse<IStructure, any, {}>>;
|
|
134
|
+
declare function fetchDraftsByFarm({ farmId }: {
|
|
135
|
+
farmId: string;
|
|
136
|
+
}): Promise<axios.AxiosResponse<IStructure[], any, {}>>;
|
|
137
|
+
declare function fetchLatestDraftsByFarm({ farmId }: {
|
|
138
|
+
farmId: string;
|
|
139
|
+
}): Promise<axios.AxiosResponse<IStructure[], any, {}>>;
|
|
140
|
+
declare function fetchLineageAuditPreview({ farmId, blockName, mode, limit, }: {
|
|
141
|
+
farmId: string;
|
|
142
|
+
blockName?: string;
|
|
143
|
+
mode?: 'block' | 'leaf';
|
|
144
|
+
limit?: number;
|
|
145
|
+
}): Promise<axios.AxiosResponse<ILineageAuditResponse, any, {}>>;
|
|
146
|
+
declare function fetchGeoUnits({ farmId, limit, cursor, asOfDate, blockId, }: {
|
|
147
|
+
farmId: string;
|
|
148
|
+
limit?: number;
|
|
149
|
+
cursor?: string;
|
|
150
|
+
asOfDate?: string;
|
|
151
|
+
blockId?: string;
|
|
152
|
+
}): Promise<axios.AxiosResponse<IGeoUnitsResponse, any, {}>>;
|
|
153
|
+
declare function fetchRuntimeBoundaryReadiness(): Promise<axios.AxiosResponse<IRuntimeBoundaryReadiness, any, {}>>;
|
|
154
|
+
declare function fetchBulkCapture(items: IBulkCaptureInput[]): Promise<axios.AxiosResponse<IBulkCaptureResponse, any, {}>>;
|
|
155
|
+
declare function fetchBulkCaptureStatus({ jobId }: {
|
|
156
|
+
jobId: string;
|
|
157
|
+
}): Promise<axios.AxiosResponse<IBulkCaptureResponse, any, {}>>;
|
|
158
|
+
declare function fetchValidatePlantingUnit({ structureId, structureVersion, geoUnitId, geoUnitType, farmId, }: {
|
|
159
|
+
structureId: string;
|
|
160
|
+
structureVersion: number;
|
|
161
|
+
geoUnitId: string;
|
|
162
|
+
geoUnitType: 'SQUARE' | 'CELL';
|
|
163
|
+
farmId?: string;
|
|
164
|
+
}): Promise<axios.AxiosResponse<IPlantingValidationResponse, any, {}>>;
|
|
165
|
+
declare function fetchValidatePlantingUnitsBatch(data: {
|
|
166
|
+
farmId: string;
|
|
167
|
+
items: IPlantingBatchItem[];
|
|
168
|
+
asOfDate?: string;
|
|
169
|
+
requestedStructureVersion?: number;
|
|
170
|
+
}): Promise<axios.AxiosResponse<IPlantingBatchResponse, any, {}>>;
|
|
171
|
+
declare function generateAlignment(data: Partial<IStructure>): Promise<axios.AxiosResponse<Nave[][], any, {}>>;
|
|
172
|
+
declare function fetchRegenerateAlignment({ blockId }: {
|
|
173
|
+
blockId: string;
|
|
174
|
+
}): Promise<axios.AxiosResponse<Nave[][], any, {}>>;
|
|
175
|
+
|
|
176
|
+
export { applyDraftOperations, confirmStructure, createObservation, editFromConfirmed, fetchBasicVersionsByFarm, fetchBulkCapture, fetchBulkCaptureStatus, fetchCommits, fetchConfirmedStructures, fetchCreateStructure, fetchDraftReadiness, fetchDraftsByFarm, fetchGeoUnits, fetchLatestConfirmedVersions, fetchLatestDraftsByFarm, fetchLatestVersionForBlock, fetchLatestVersionsWithAlignment, fetchLineageAuditPreview, fetchObservationById, fetchObservationTasks, fetchObservations, fetchRegenerateAlignment, fetchRuntimeBoundaryReadiness, fetchStructure, fetchStructureById, fetchUpdateStructure, fetchValidatePlantingUnit, fetchValidatePlantingUnitsBatch, fetchVersionByNumber, fetchVersionsByBlock, generateAlignment, patchObservationStatus, replaceDraft, updateBed, updateBlock, updateCell, updateNave, updateSquare };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(_0x1bf917,_0x1c3456){const _0x1e027a=_0x337e,_0x1573b0=_0x1bf917();while(!![]){try{const _0x13a327=parseInt(_0x1e027a(0x1ba))/(0x195*-0x13+-0x1e6f+-0x11*-0x38f)*(parseInt(_0x1e027a(0x1c1))/(-0x11*0xbf+-0x11b0+0x1e61))+-parseInt(_0x1e027a(0x1ce))/(-0x2328+-0xd68+-0x1031*-0x3)*(parseInt(_0x1e027a(0x1e7))/(-0x114a*-0x2+0x1489+-0x3719))+-parseInt(_0x1e027a(0x1cc))/(-0x4*-0x231+0x1*-0x2513+0x40c*0x7)*(parseInt(_0x1e027a(0x199))/(-0x156c+0x1dce+-0x85c))+-parseInt(_0x1e027a(0x1f7))/(0x1e8a+0x1547+-0x33ca)*(parseInt(_0x1e027a(0x1a9))/(0x139*0x17+-0x1354+0x1*-0x8c3))+parseInt(_0x1e027a(0x1c6))/(-0xea3+0x2362+-0x14b6)+parseInt(_0x1e027a(0x1a8))/(-0x7*0x7+0x20dc+0x1*-0x20a1)*(parseInt(_0x1e027a(0x1da))/(-0x18fd+-0x2*0xb6f+0x2fe6))+parseInt(_0x1e027a(0x1ea))/(-0x1e4c+-0xe3f*-0x1+0x1019);if(_0x13a327===_0x1c3456)break;else _0x1573b0['push'](_0x1573b0['shift']());}catch(_0x55677a){_0x1573b0['push'](_0x1573b0['shift']());}}}(_0x5562,-0x15066+-0x9*-0x7255+0x3b37*-0x1));import{b as _0x1f47e7}from'../chunk-ACO6G7O2.js';import'../chunk-DJ5M3T5L.js';async function i({_id:_0x188d55}){const _0xcf870b=_0x337e,_0x26fd11={};_0x26fd11[_0xcf870b(0x201)]=_0xcf870b(0x204)+'re',_0x26fd11[_0xcf870b(0x1fa)]='all';const _0x2f9d27=_0x26fd11;return _0x1f47e7(_0x2f9d27['Uydnr'],!![])['GET']({'path':_0xcf870b(0x1e8)+_0x188d55,'params':{'status':_0x2f9d27[_0xcf870b(0x1fa)]}});}async function o({_id:_0xcced31}){const _0x3ca634=_0x337e,_0x3cdacf={'nzOAf':function(_0x233a64,_0x59e608,_0x2e49c3){return _0x233a64(_0x59e608,_0x2e49c3);},'aZFfo':_0x3ca634(0x204)+'re'},_0x336ee4={};return _0x336ee4[_0x3ca634(0x1cf)]=_0x3ca634(0x1af)+_0x3ca634(0x1be)+_0xcced31,_0x3cdacf[_0x3ca634(0x206)](_0x1f47e7,_0x3cdacf['aZFfo'],!![])['GET'](_0x336ee4);}async function c({id:_0x3a7525,data:_0x3a515e}){const _0x7c953a=_0x337e,_0x383507={'ChgKX':function(_0x51d38e,_0x36cc06,_0x424ad3){return _0x51d38e(_0x36cc06,_0x424ad3);}};let _0xc59ade=_0x3a515e[_0x7c953a(0x1f0)+'t']?.[_0x7c953a(0x19a)]()[_0x7c953a(0x1f6)]();const _0x29b01d={..._0x3a515e};_0x29b01d['alignmen'+'t']=_0xc59ade;const _0x1c80e7={};return _0x1c80e7[_0x7c953a(0x1cf)]=_0x7c953a(0x1f0)+_0x7c953a(0x1bf)+'e/'+_0x3a7525,_0x1c80e7[_0x7c953a(0x1e0)]=_0x29b01d,_0x383507['ChgKX'](_0x1f47e7,'/structu'+'re',!![])['PATCH'](_0x1c80e7);}async function d(_0x1548b5){const _0x5f4449=_0x337e,_0x369724={};_0x369724[_0x5f4449(0x1c2)]=_0x5f4449(0x204)+'re',_0x369724[_0x5f4449(0x1b2)]='/units';const _0x4bbaf8=_0x369724;return _0x1f47e7(_0x4bbaf8[_0x5f4449(0x1c2)],!![])[_0x5f4449(0x1c5)]({'path':_0x4bbaf8[_0x5f4449(0x1b2)],'data':_0x1548b5});}async function p({_id:_0x363862}){const _0xa2fc1=_0x337e,_0x4b38cd={'OWLlQ':function(_0x860ea2,_0x3d53ed,_0x43236b){return _0x860ea2(_0x3d53ed,_0x43236b);},'BqrUt':_0xa2fc1(0x204)+'re'},_0x5e207b={};_0x5e207b[_0xa2fc1(0x1b5)]=_0xa2fc1(0x1fc)+'d';const _0x4d6c62={};return _0x4d6c62['path']=_0xa2fc1(0x1e8)+_0x363862,_0x4d6c62[_0xa2fc1(0x1f1)]=_0x5e207b,_0x4b38cd['OWLlQ'](_0x1f47e7,_0x4b38cd[_0xa2fc1(0x1c7)],!![])[_0xa2fc1(0x1c9)](_0x4d6c62);}async function m({blockId:_0x2a4893}){const _0x945c5d=_0x337e,_0x51e9b7={'aRWRs':function(_0x56dbcc,_0x400ab0,_0x2155bd){return _0x56dbcc(_0x400ab0,_0x2155bd);},'pcPOr':_0x945c5d(0x1f8)+_0x945c5d(0x1c4)},_0x1d681d={};return _0x1d681d[_0x945c5d(0x1b9)]=_0x2a4893,_0x51e9b7[_0x945c5d(0x1a2)](_0x1f47e7,_0x945c5d(0x204)+'re',!![])[_0x945c5d(0x1c9)]({'path':_0x51e9b7[_0x945c5d(0x1dd)],'params':_0x1d681d});}async function b({id:_0x3ac4b4}){const _0x3995c2=_0x337e,_0x1d3989={'CXROQ':function(_0x3cad27,_0x3e010a,_0x10da52){return _0x3cad27(_0x3e010a,_0x10da52);}},_0x38cf80={};return _0x38cf80[_0x3995c2(0x1cf)]='/observa'+'tions/'+_0x3ac4b4,_0x1d3989[_0x3995c2(0x1a3)](_0x1f47e7,_0x3995c2(0x204)+'re',!![])[_0x3995c2(0x1c9)](_0x38cf80);}async function f({blockId:_0x372c92}){const _0x5e4ee8=_0x337e,_0x26ee2f={'dYFxP':function(_0x5ff987,_0x24b096,_0x3acbcc){return _0x5ff987(_0x24b096,_0x3acbcc);}},_0x5e2c59={};return _0x5e2c59[_0x5e4ee8(0x1cf)]=_0x5e4ee8(0x1f8)+_0x5e4ee8(0x1b4)+'afts/'+_0x372c92+'/tasks',_0x26ee2f[_0x5e4ee8(0x198)](_0x1f47e7,_0x5e4ee8(0x204)+'re',!![])['GET'](_0x5e2c59);}async function l({id:_0x5a3e4e,status:_0x26fdd9}){const _0xe02f38=_0x337e,_0x40db5a={};_0x40db5a['QQzOQ']=_0xe02f38(0x204)+'re';const _0x3eee81=_0x40db5a,_0x2b269c={};_0x2b269c[_0xe02f38(0x1b5)]=_0x26fdd9;const _0x4a4252={};return _0x4a4252['path']=_0xe02f38(0x1f8)+'tions/'+_0x5a3e4e+_0xe02f38(0x1dc),_0x4a4252['data']=_0x2b269c,_0x1f47e7(_0x3eee81[_0xe02f38(0x19e)],!![])['PATCH'](_0x4a4252);}async function g(_0xd8d8b7){const _0x212252=_0x337e,_0x2ff24e={'bmVuv':function(_0x547c76,_0x43db50,_0x26fbf4){return _0x547c76(_0x43db50,_0x26fbf4);}},_0x7e32ee={};return _0x7e32ee['path']=_0x212252(0x1f8)+'tions',_0x7e32ee['data']=_0xd8d8b7,_0x2ff24e['bmVuv'](_0x1f47e7,_0x212252(0x204)+'re',!![])[_0x212252(0x1c5)](_0x7e32ee);}async function I({blockId:_0x333454,implemented:_0x157ae1}){const _0x5c42e1=_0x337e,_0x345bb0={'puvPb':function(_0x2ea580,_0x489833,_0x3fdb60){return _0x2ea580(_0x489833,_0x3fdb60);}},_0x121864={};_0x121864[_0x5c42e1(0x1e9)+_0x5c42e1(0x1a1)]=_0x157ae1;const _0x428598={};return _0x428598[_0x5c42e1(0x1cf)]=_0x5c42e1(0x1d3)+_0x5c42e1(0x1e6)+_0x333454,_0x428598[_0x5c42e1(0x1e0)]=_0x121864,_0x345bb0[_0x5c42e1(0x1ac)](_0x1f47e7,_0x5c42e1(0x204)+'re',!![])['PATCH'](_0x428598);}async function h({blockId:_0x1c59be}){const _0x13c3df=_0x337e,_0x5cbf6c={};_0x5cbf6c[_0x13c3df(0x19d)]=_0x13c3df(0x204)+'re';const _0x13006f=_0x5cbf6c,_0x51c0a2={};return _0x51c0a2[_0x13c3df(0x1cf)]='/units/b'+_0x13c3df(0x1be)+_0x1c59be+('/edit-fr'+_0x13c3df(0x1fd)+_0x13c3df(0x1d6)),_0x51c0a2['data']={},_0x1f47e7(_0x13006f[_0x13c3df(0x19d)],!![])[_0x13c3df(0x1c5)](_0x51c0a2);}async function y({blockId:_0x1d90b4,limit:_0x3a27ef,offset:_0x16ceb0}){const _0x3f3a12=_0x337e,_0x82bf04={};_0x82bf04[_0x3f3a12(0x1bc)]=_0x3f3a12(0x204)+'re';const _0x3b3b7f=_0x82bf04,_0x324963={};_0x324963[_0x3f3a12(0x1e1)]=_0x3a27ef,_0x324963[_0x3f3a12(0x1d4)]=_0x16ceb0;const _0x3cced1={};return _0x3cced1[_0x3f3a12(0x1cf)]=_0x3f3a12(0x1af)+'lock/'+_0x1d90b4+_0x3f3a12(0x1b8),_0x3cced1[_0x3f3a12(0x1f1)]=_0x324963,_0x1f47e7(_0x3b3b7f['QEJDe'],!![])[_0x3f3a12(0x1c9)](_0x3cced1);}async function k({blockId:_0x55d5af}){const _0x457f1e=_0x337e,_0x4d7677={'giBPU':function(_0x4ff7ec,_0x2f25d3,_0x28acf9){return _0x4ff7ec(_0x2f25d3,_0x28acf9);}},_0x2ff67e={};return _0x2ff67e[_0x457f1e(0x1cf)]=_0x457f1e(0x1b6)+_0x457f1e(0x1d8)+_0x55d5af+(_0x457f1e(0x1ad)+'ss'),_0x4d7677[_0x457f1e(0x1f4)](_0x1f47e7,'/structu'+'re',!![])[_0x457f1e(0x1c9)](_0x2ff67e);}async function S({blockId:_0x4600a4}){const _0x2923fc=_0x337e,_0x323232={'RFIPH':function(_0x1c6c65,_0x2baac1,_0x18ae8c){return _0x1c6c65(_0x2baac1,_0x18ae8c);}},_0x24afff={};return _0x24afff[_0x2923fc(0x1cf)]=_0x2923fc(0x1c8)+_0x2923fc(0x19c)+_0x4600a4,_0x323232['RFIPH'](_0x1f47e7,_0x2923fc(0x204)+'re',!![])[_0x2923fc(0x1c9)](_0x24afff);}async function x({blockId:_0x5eb6fa,version:_0x307838}){const _0x1b3dfa=_0x337e,_0x21c367={'wcFPu':function(_0x5503ba,_0x135d0b,_0x1ae085){return _0x5503ba(_0x135d0b,_0x1ae085);}},_0x28817c={};return _0x28817c[_0x1b3dfa(0x1cf)]=_0x1b3dfa(0x1c8)+'s/block/'+_0x5eb6fa+('/version'+'/')+_0x307838,_0x21c367[_0x1b3dfa(0x1ec)](_0x1f47e7,'/structu'+'re',!![])['GET'](_0x28817c);}async function T({farmId:_0x2810a5,asOfDate:_0x31d085}){const _0x2e5c26=_0x337e,_0x238a3f={'nnsmj':function(_0x12e066,_0x345109,_0x5b3330){return _0x12e066(_0x345109,_0x5b3330);},'mbkoL':'/structu'+'re'},_0x210f19={};_0x210f19[_0x2e5c26(0x1eb)]=_0x31d085;const _0x57f32f={};return _0x57f32f[_0x2e5c26(0x1cf)]=_0x2e5c26(0x1c8)+'s/latest'+_0x2e5c26(0x1ee)+_0x2e5c26(0x1ae)+_0x2810a5,_0x57f32f['params']=_0x210f19,_0x238a3f[_0x2e5c26(0x200)](_0x1f47e7,_0x238a3f['mbkoL'],!![])[_0x2e5c26(0x1c9)](_0x57f32f);}async function v({farmId:_0xdb8bdb}){const _0x37584f=_0x337e,_0x533b0c={'mwBkw':function(_0x261441,_0x2a486d,_0x34eb18){return _0x261441(_0x2a486d,_0x34eb18);},'MjhFV':_0x37584f(0x204)+'re'},_0x52c218={};return _0x52c218['path']=_0x37584f(0x1c8)+_0x37584f(0x19b)+_0x37584f(0x1f2)+_0x37584f(0x1f5)+_0xdb8bdb,_0x533b0c[_0x37584f(0x1e4)](_0x1f47e7,_0x533b0c[_0x37584f(0x1b0)],!![])[_0x37584f(0x1c9)](_0x52c218);}async function B({blockId:_0x1e9dff,asOfDate:_0x54af79}){const _0x3d0ba2=_0x337e,_0xe6f5ef={};_0xe6f5ef[_0x3d0ba2(0x1eb)]=_0x54af79;const _0x44d7b6={};return _0x44d7b6['path']=_0x3d0ba2(0x1c8)+'s/block/'+_0x1e9dff+_0x3d0ba2(0x196),_0x44d7b6[_0x3d0ba2(0x1f1)]=_0xe6f5ef,_0x1f47e7(_0x3d0ba2(0x204)+'re',!![])[_0x3d0ba2(0x1c9)](_0x44d7b6);}async function R({farmId:_0x45c792}){const _0x22849e=_0x337e,_0x3780f2={'KugaQ':function(_0xf3769,_0x5839d6,_0x1785d8){return _0xf3769(_0x5839d6,_0x1785d8);}},_0x53563d={};return _0x53563d['path']=_0x22849e(0x1c8)+_0x22849e(0x1a4)+_0x45c792,_0x3780f2[_0x22849e(0x1df)](_0x1f47e7,_0x22849e(0x204)+'re',!![])[_0x22849e(0x1c9)](_0x53563d);}async function P({blockId:_0xcfc56e,data:_0x5f2685}){const _0x19c640=_0x337e,_0xd91f40={'knOyv':function(_0x82027d,_0x399e69,_0x3bd7ff){return _0x82027d(_0x399e69,_0x3bd7ff);},'ShfJz':_0x19c640(0x204)+'re'},_0x5daf91={};return _0x5daf91[_0x19c640(0x1cf)]='/units/b'+_0x19c640(0x1be)+_0xcfc56e,_0x5daf91['data']=_0x5f2685,_0xd91f40[_0x19c640(0x1fe)](_0x1f47e7,_0xd91f40[_0x19c640(0x1cb)],!![])[_0x19c640(0x1b1)](_0x5daf91);}async function $({naveId:_0x5d2423,data:_0x4f211d}){const _0x431bd2=_0x337e,_0xeba592={};return _0xeba592[_0x431bd2(0x1cf)]=_0x431bd2(0x1b7)+_0x431bd2(0x195)+_0x5d2423,_0xeba592[_0x431bd2(0x1e0)]=_0x4f211d,_0x1f47e7(_0x431bd2(0x204)+'re',!![])[_0x431bd2(0x1b1)](_0xeba592);}async function C({bedId:_0x392064,data:_0x404468}){const _0x33cd0d=_0x337e,_0x593e15={'SqRgp':function(_0x2a6a80,_0xc24008,_0x3dd38c){return _0x2a6a80(_0xc24008,_0x3dd38c);},'xKFgp':'/structu'+'re'},_0x2181c8={};return _0x2181c8['path']=_0x33cd0d(0x1af)+_0x33cd0d(0x1ae)+_0x392064,_0x2181c8[_0x33cd0d(0x1e0)]=_0x404468,_0x593e15[_0x33cd0d(0x1d1)](_0x1f47e7,_0x593e15[_0x33cd0d(0x1fb)],!![])[_0x33cd0d(0x1b1)](_0x2181c8);}async function G({squareId:_0x176b8a,data:_0x10eb82}){const _0xd6600f=_0x337e,_0x303eb3={};_0x303eb3[_0xd6600f(0x1e3)]='/structu'+'re';const _0x2f8307=_0x303eb3,_0x64c116={};return _0x64c116[_0xd6600f(0x1cf)]='/units/s'+_0xd6600f(0x1cd)+_0x176b8a,_0x64c116[_0xd6600f(0x1e0)]=_0x10eb82,_0x1f47e7(_0x2f8307['hlxKP'],!![])[_0xd6600f(0x1b1)](_0x64c116);}async function E({cellId:_0x2d16a2,data:_0xfe5dd5}){const _0x2b69d5=_0x337e,_0x257549={'sswGR':function(_0x39ba11,_0x482009,_0x277044){return _0x39ba11(_0x482009,_0x277044);}},_0x59028a={};return _0x59028a['path']='/units/c'+'ell/'+_0x2d16a2,_0x59028a['data']=_0xfe5dd5,_0x257549['sswGR'](_0x1f47e7,_0x2b69d5(0x204)+'re',!![])[_0x2b69d5(0x1b1)](_0x59028a);}async function O({blockId:_0xd2c404,data:_0x31d89c}){const _0xdf4abf=_0x337e,_0x3adeec={'uRTxJ':function(_0x4312b4,_0x3c9802,_0x5c63ef){return _0x4312b4(_0x3c9802,_0x5c63ef);}},_0x1f6e70={};return _0x1f6e70['path']='/units/d'+'rafts/'+_0xd2c404+(_0xdf4abf(0x207)+_0xdf4abf(0x1ca)),_0x1f6e70[_0xdf4abf(0x1e0)]=_0x31d89c,_0x3adeec['uRTxJ'](_0x1f47e7,'/structu'+'re',!![])['PATCH'](_0x1f6e70);}async function N({blockId:_0x47f7d1,data:_0x331024}){const _0x42fc09=_0x337e,_0x6875dc={'syvpU':function(_0x1c9055,_0x16fbd8,_0x33b852){return _0x1c9055(_0x16fbd8,_0x33b852);}},_0x4cbfb0={};return _0x4cbfb0[_0x42fc09(0x1cf)]=_0x42fc09(0x1b6)+_0x42fc09(0x1d8)+_0x47f7d1+'/replace',_0x4cbfb0['data']=_0x331024,_0x6875dc[_0x42fc09(0x1d0)](_0x1f47e7,_0x42fc09(0x204)+'re',!![])['PUT'](_0x4cbfb0);}async function A({farmId:_0x21856c}){const _0x3db6f7=_0x337e,_0x5e9b19={};return _0x5e9b19['path']=_0x3db6f7(0x1b6)+'rafts/'+_0x21856c,_0x1f47e7(_0x3db6f7(0x204)+'re',!![])[_0x3db6f7(0x1c9)](_0x5e9b19);}async function V({farmId:_0x225681}){const _0x4cf4b7=_0x337e,_0x2c6ddf={};_0x2c6ddf[_0x4cf4b7(0x1ab)]=_0x4cf4b7(0x204)+'re';const _0x3eaaad=_0x2c6ddf,_0x24ec1a={};return _0x24ec1a['path']=_0x4cf4b7(0x1b6)+'rafts/la'+_0x4cf4b7(0x1e2)+_0x225681,_0x1f47e7(_0x3eaaad['rMAto'],!![])['GET'](_0x24ec1a);}async function j({farmId:_0x36ce01,blockName:_0x202acd,mode:_0xbf392a,limit:_0x3301b7}){const _0x10a0eb=_0x337e,_0x2a24a3={'fRUYc':function(_0x232e46,_0x327e8a,_0x59f4c1){return _0x232e46(_0x327e8a,_0x59f4c1);}},_0x31ad2f={};_0x31ad2f['farmId']=_0x36ce01,_0x31ad2f[_0x10a0eb(0x1db)+'e']=_0x202acd,_0x31ad2f['mode']=_0xbf392a,_0x31ad2f[_0x10a0eb(0x1e1)]=_0x3301b7;const _0x5d0a9c={};return _0x5d0a9c[_0x10a0eb(0x1cf)]='/lineage'+_0x10a0eb(0x1b3),_0x5d0a9c[_0x10a0eb(0x1f1)]=_0x31ad2f,_0x2a24a3['fRUYc'](_0x1f47e7,_0x10a0eb(0x204)+'re',!![])['GET'](_0x5d0a9c);}async function D({farmId:_0x399d24,limit:_0x51ec26,cursor:_0x4988cb,asOfDate:_0x268bb0,blockId:_0x20161d}){const _0x41b82e=_0x337e,_0x4c14da={'byrIE':function(_0x112fe4,_0x269339,_0x523593){return _0x112fe4(_0x269339,_0x523593);},'SqCMt':function(_0x1d11e7,_0x2e1800){return _0x1d11e7!==_0x2e1800;},'cYBhy':function(_0x1c3003,_0x27fdb7){return _0x1c3003!==_0x27fdb7;}};return _0x4c14da[_0x41b82e(0x1bd)](_0x1f47e7,'/structu'+'re',!![])[_0x41b82e(0x1c9)]({'path':'/geo-uni'+_0x41b82e(0x1ed)+_0x399d24,'params':{..._0x51ec26!==void(-0x1bf6+0x2*-0xdef+0x37d4)&&{'limit':_0x51ec26},..._0x4988cb!==void(-0x12c0+-0x1*0x1924+0x2be4*0x1)&&{'cursor':_0x4988cb},..._0x4c14da[_0x41b82e(0x1e5)](_0x268bb0,void(-0x1*-0x22ab+-0x4*0x948+-0x1*-0x275))&&{'asOfDate':_0x268bb0},..._0x4c14da[_0x41b82e(0x1f9)](_0x20161d,void(-0x2f3*-0x5+-0xa0f+-0x4b0))&&{'blockId':_0x20161d}}});}async function w(){const _0x59eeb3=_0x337e,_0xc120be={};_0xc120be[_0x59eeb3(0x1a5)]=_0x59eeb3(0x1a7)+_0x59eeb3(0x1c3)+_0x59eeb3(0x1c0)+_0x59eeb3(0x1bb);const _0x32663f=_0xc120be,_0x3cc4cf={};return _0x3cc4cf[_0x59eeb3(0x1cf)]=_0x32663f[_0x59eeb3(0x1a5)],_0x1f47e7('/structu'+'re',!![])[_0x59eeb3(0x1c9)](_0x3cc4cf);}async function U(_0x39267d){const _0x746b75=_0x337e,_0x445413={};_0x445413[_0x746b75(0x1aa)]='/structu'+'re',_0x445413['TNgjU']='/bulk';const _0xbbc127=_0x445413;return _0x1f47e7(_0xbbc127['vVIMw'],!![])[_0x746b75(0x1c5)]({'path':_0xbbc127[_0x746b75(0x197)],'data':_0x39267d});}async function L({jobId:_0x2de9fc}){const _0x595147=_0x337e,_0x30ea14={'NTCSP':function(_0xae1130,_0x43165b,_0x5984d6){return _0xae1130(_0x43165b,_0x5984d6);}},_0x360ac5={};return _0x360ac5[_0x595147(0x1cf)]='/bulk/'+_0x2de9fc,_0x30ea14['NTCSP'](_0x1f47e7,'/structu'+'re',!![])[_0x595147(0x1c9)](_0x360ac5);}async function H({structureId:_0x35bcea,structureVersion:_0x5a93cb,geoUnitId:_0x2c49ed,geoUnitType:_0x1668f9,farmId:_0x452af0}){const _0x12d9c6=_0x337e,_0x4f712f={'ceOUj':function(_0x4ab083,_0x423dcc,_0x2e908d){return _0x4ab083(_0x423dcc,_0x2e908d);},'Iijgc':_0x12d9c6(0x1ef)+'e-planti'+_0x12d9c6(0x1d9),'vedzr':function(_0x935438,_0x42ba02){return _0x935438!==_0x42ba02;}};return _0x4f712f[_0x12d9c6(0x1d2)](_0x1f47e7,_0x12d9c6(0x204)+'re',!![])['GET']({'path':_0x4f712f[_0x12d9c6(0x194)],'params':{'structureId':_0x35bcea,'structureVersion':_0x5a93cb,'geoUnitId':_0x2c49ed,'geoUnitType':_0x1668f9,..._0x4f712f['vedzr'](_0x452af0,void(0x765*-0x1+0x16bd+-0xf58))&&{'farmId':_0x452af0}}});}async function F(_0x98ecf1){const _0x5d0d33=_0x337e,_0x2a04a2={};_0x2a04a2['GpBvA']=_0x5d0d33(0x204)+'re',_0x2a04a2[_0x5d0d33(0x205)]=_0x5d0d33(0x1ef)+_0x5d0d33(0x1d5)+_0x5d0d33(0x1f3);const _0x64869d=_0x2a04a2;return _0x1f47e7(_0x64869d[_0x5d0d33(0x1ff)],!![])[_0x5d0d33(0x1c5)]({'path':_0x64869d['kaEAc'],'data':_0x98ecf1});}function _0x5562(){const _0x37cf30=['C3rHDhvZ','l3vUAxrZl2q','l3vUAxrZl24','l2nVBw1PDhm','yMXVy2Tjza','muLqywXwDW','zxnZ','uuvkrgu','yNLYsuu','Bg9JAY8','DhmVDxbKyxq','Es9YzwfKAw4','nZK0ntrOCejgDKW','yK5xtuq','lwjVDw5Kyxi','DgLVBNm','ue9tva','mJi0otaXmgX5qu1pra','qNfYvxq','l3zLCNnPB24','r0vu','B25Z','u2HMsNO','mtCWwNzrAuvi','CxvHCMuV','mtCZndi3ru1wshr1','Cgf0Aa','C3L2Cfu','u3fsz3a','y2vpvwO','l3vUAxrZl2m','B2zMC2v0','zs1WBgfUDgK','CM1Lza','l2fSAwDUBwu','CMfMDhmV','BMCTDw5PDa','mtfXAMPMChO','yMXVy2Toyw0','l3n0yxr1CW','Cgnqt3i','tMHrAfq','s3vNyve','zgf0yq','BgLTAxq','DgvZDc8','AgX4s1a','BxDcA3C','u3fdtxq','B25MAxjTlW','ngLpzM1HqG','l3vUAxrZlW','Aw1WBgvTzw4','mZiWnZi1mK9Nz3H0sa','yxnpzKrHDgu','D2nguhu','DhmV','l2nVBMzPCM0','l3zHBgLKyxq','ywXPz25Tzw4','CgfYyw1Z','l3DPDgGTywW','BMCTDw5PDhm','z2Lcufu','AwDUBwvUDc8','CMv2zxjZzq','mZK3mJuWAKLzyKHk','l29IC2vYDMe','y1LcAhK','yvLhwgi','EeTgz3a','y29UzMLYBwu','B20Ty29UzMK','A25pExy','r3bcDKe','BM5ZBwO','vxLKBNi','BNrZl2DLBMu','BMvYyxrLlW','l3n0CNvJDhu','A2ffqwm','BNPpqwy','l29WzxjHDgK','swLQz2m','yxzLlW','l2XHDgvZDa','ve5NALu','zfLgEfa','mJKXnJzzy21sBeu','C2XPy2u','CY9SyxrLC3q','CY9IBg9JAY8','uLfeDvu','uvf6t1e','vKLevhy','uLvmsvK','DgvK','yvjxuNm','q1Hst1e','CY9IyxnPyY8','twHrEvm','CMf0zq','l3j1BNrPBwu','ntuZmZKWqun6Du1r','mZjIBNPXuKi','DLzjtxC','CK1bDg8','Chv2ugi','l3jLywrPBMu','zwqV','l3vUAxrZl2i','twPOrLy','uefuq0G','ug9zEMe','l3bYzxzPzxC','DgLVBNmVzhi'];_0x5562=function(){return _0x37cf30;};return _0x5562();}async function q(_0x28b3a5){const _0x29a7dc=_0x337e,_0x3a1a9e={};_0x3a1a9e[_0x29a7dc(0x1a0)]=_0x29a7dc(0x1d7)+_0x29a7dc(0x202)+_0x29a7dc(0x1a6);const _0x2e1838=_0x3a1a9e,_0x9e71d9={};return _0x9e71d9['path']=_0x2e1838[_0x29a7dc(0x1a0)],_0x9e71d9[_0x29a7dc(0x1e0)]=_0x28b3a5,_0x1f47e7(_0x29a7dc(0x204)+'re',!![])[_0x29a7dc(0x1c5)](_0x9e71d9);}function _0x337e(_0x466d58,_0x9d5053){_0x466d58=_0x466d58-(0x1*-0x152c+0x17c2+-0x102);const _0xbb64ed=_0x5562();let _0x1b2291=_0xbb64ed[_0x466d58];if(_0x337e['sHNWia']===undefined){var _0x935c9d=function(_0x40d4ae){const _0x5c91e6='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x46e414='',_0x11bb5a='';for(let _0x3c4d11=-0x1e2+-0x1*-0x1392+0x10*-0x11b,_0x4462d9,_0xae727c,_0x51d6d1=-0x4ae*0x3+0x3*-0x8db+0xf*0x2b5;_0xae727c=_0x40d4ae['charAt'](_0x51d6d1++);~_0xae727c&&(_0x4462d9=_0x3c4d11%(-0x9e5+-0x161a+0x2003)?_0x4462d9*(0x8*0x167+-0x3*0xbaa+0x1806)+_0xae727c:_0xae727c,_0x3c4d11++%(-0x209f+0x1dfa+0x2a9))?_0x46e414+=String['fromCharCode'](0x31f*0x1+-0x4*-0x2b0+-0x338*0x4&_0x4462d9>>(-(-0xa47+-0x7*-0x46+0x85f)*_0x3c4d11&-0x1f36+0x1*-0xde7+0x2d23*0x1)):-0x904+-0x2*-0xde9+-0x1d*0xa6){_0xae727c=_0x5c91e6['indexOf'](_0xae727c);}for(let _0x32dc78=0x19c+-0x19*0x33+-0x1*-0x35f,_0x24f3cf=_0x46e414['length'];_0x32dc78<_0x24f3cf;_0x32dc78++){_0x11bb5a+='%'+('00'+_0x46e414['charCodeAt'](_0x32dc78)['toString'](-0x2642+-0x513*-0x5+0x33*0x41))['slice'](-(0x840+-0x21*-0xb5+-0x89*0x3b));}return decodeURIComponent(_0x11bb5a);};_0x337e['fSlXdb']=_0x935c9d,_0x337e['EIUlrz']={},_0x337e['sHNWia']=!![];}const _0x282f3f=_0xbb64ed[0xd3*-0x1+0x1a9c+0x19c9*-0x1],_0x50e73a=_0x466d58+_0x282f3f,_0x30d596=_0x337e['EIUlrz'][_0x50e73a];return!_0x30d596?(_0x1b2291=_0x337e['fSlXdb'](_0x1b2291),_0x337e['EIUlrz'][_0x50e73a]=_0x1b2291):_0x1b2291=_0x30d596,_0x1b2291;}async function _({blockId:_0x3c6018}){const _0x51f073=_0x337e,_0xf5df5d={'VIDTv':function(_0x203f20,_0x463fa2,_0x3e46f5){return _0x203f20(_0x463fa2,_0x3e46f5);},'NhQhT':_0x51f073(0x204)+'re'},_0x3f1811={};return _0x3f1811['path']=_0x51f073(0x1d7)+'nts/rege'+_0x51f073(0x203)+_0x3c6018,_0xf5df5d[_0x51f073(0x19f)](_0x1f47e7,_0xf5df5d[_0x51f073(0x1de)],!![])[_0x51f073(0x1c9)](_0x3f1811);}export{O as applyDraftOperations,I as confirmStructure,g as createObservation,h as editFromConfirmed,R as fetchBasicVersionsByFarm,U as fetchBulkCapture,L as fetchBulkCaptureStatus,y as fetchCommits,p as fetchConfirmedStructures,d as fetchCreateStructure,k as fetchDraftReadiness,A as fetchDraftsByFarm,D as fetchGeoUnits,T as fetchLatestConfirmedVersions,V as fetchLatestDraftsByFarm,B as fetchLatestVersionForBlock,v as fetchLatestVersionsWithAlignment,j as fetchLineageAuditPreview,b as fetchObservationById,f as fetchObservationTasks,m as fetchObservations,_ as fetchRegenerateAlignment,w as fetchRuntimeBoundaryReadiness,i as fetchStructure,o as fetchStructureById,c as fetchUpdateStructure,H as fetchValidatePlantingUnit,F as fetchValidatePlantingUnitsBatch,x as fetchVersionByNumber,S as fetchVersionsByBlock,q as generateAlignment,l as patchObservationStatus,N as replaceDraft,C as updateBed,P as updateBlock,E as updateCell,$ as updateNave,G as updateSquare};
|
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
type Square = number | null;
|
|
2
|
+
interface Bed {
|
|
3
|
+
name: string;
|
|
4
|
+
active: boolean;
|
|
5
|
+
squares: Square[];
|
|
6
|
+
}
|
|
7
|
+
interface Nave {
|
|
8
|
+
name: string;
|
|
9
|
+
maxSquares: number;
|
|
10
|
+
leftPath: boolean;
|
|
11
|
+
active: boolean;
|
|
12
|
+
beds: Bed[];
|
|
13
|
+
}
|
|
14
|
+
interface IStructure {
|
|
15
|
+
_id?: string;
|
|
16
|
+
farmId?: string;
|
|
17
|
+
blockName?: string;
|
|
18
|
+
sides?: number;
|
|
19
|
+
bedsNave?: number;
|
|
20
|
+
maxTotalBeds?: number;
|
|
21
|
+
maxTotalNaves?: number;
|
|
22
|
+
centralRoadSize?: number;
|
|
23
|
+
widthBed?: number;
|
|
24
|
+
lengthBed?: number;
|
|
25
|
+
bedRoadSize?: number;
|
|
26
|
+
pointA?: [number, number];
|
|
27
|
+
pointB?: [number, number];
|
|
28
|
+
startPoint?: [number, number];
|
|
29
|
+
implemented?: number;
|
|
30
|
+
alignment?: Nave[][];
|
|
31
|
+
draft?: boolean;
|
|
32
|
+
version?: number | null;
|
|
33
|
+
}
|
|
34
|
+
type ObservationStatus = 'open' | 'in_progress' | 'resolved' | 'dismissed';
|
|
35
|
+
interface INote {
|
|
36
|
+
id: string;
|
|
37
|
+
blockId: string;
|
|
38
|
+
level: string;
|
|
39
|
+
entityId?: string | null;
|
|
40
|
+
message: string;
|
|
41
|
+
status: ObservationStatus;
|
|
42
|
+
createdBy?: string | null;
|
|
43
|
+
createdAt: string;
|
|
44
|
+
}
|
|
45
|
+
interface IObservationTask {
|
|
46
|
+
id: string;
|
|
47
|
+
blockId: string;
|
|
48
|
+
level: string;
|
|
49
|
+
message: string;
|
|
50
|
+
status: ObservationStatus;
|
|
51
|
+
entityId?: string;
|
|
52
|
+
createdAt: string;
|
|
53
|
+
}
|
|
54
|
+
interface IDraftReadiness {
|
|
55
|
+
blockId: string;
|
|
56
|
+
readyToConfirm: boolean;
|
|
57
|
+
openCount: number;
|
|
58
|
+
orphanCount: number;
|
|
59
|
+
bulkState?: string | null;
|
|
60
|
+
bulkFailureCount?: number;
|
|
61
|
+
}
|
|
62
|
+
type CommitChangeLevel = 'BLOCK' | 'NAVE' | 'BED' | 'SQUARE' | 'CELL';
|
|
63
|
+
type CommitChangeAction = 'CREATE' | 'UPDATE' | 'DELETE' | 'ACTIVATE' | 'DEACTIVATE';
|
|
64
|
+
interface ICommitChange {
|
|
65
|
+
id: string;
|
|
66
|
+
commitId: string;
|
|
67
|
+
level: CommitChangeLevel;
|
|
68
|
+
entityId: string;
|
|
69
|
+
action: CommitChangeAction;
|
|
70
|
+
beforeJson: Record<string, unknown> | null;
|
|
71
|
+
afterJson: Record<string, unknown> | null;
|
|
72
|
+
createdAt: string;
|
|
73
|
+
}
|
|
74
|
+
interface ICommit {
|
|
75
|
+
id: string;
|
|
76
|
+
commitKey: string;
|
|
77
|
+
farmId: string;
|
|
78
|
+
blockId: string;
|
|
79
|
+
message: string;
|
|
80
|
+
occurredAt: string;
|
|
81
|
+
createdAt: string;
|
|
82
|
+
changes?: ICommitChange[];
|
|
83
|
+
}
|
|
84
|
+
interface ICommitListResponse {
|
|
85
|
+
items: ICommit[];
|
|
86
|
+
total: number;
|
|
87
|
+
limit: number;
|
|
88
|
+
offset: number;
|
|
89
|
+
}
|
|
90
|
+
interface IVersionSummary {
|
|
91
|
+
id: string;
|
|
92
|
+
lineageId: string;
|
|
93
|
+
blockName: string;
|
|
94
|
+
version: number;
|
|
95
|
+
draft: boolean;
|
|
96
|
+
implementedAt: string | null;
|
|
97
|
+
implemented: number | null;
|
|
98
|
+
createdAt: string;
|
|
99
|
+
updatedAt: string;
|
|
100
|
+
}
|
|
101
|
+
type IVersionDetail = IStructure & {
|
|
102
|
+
version: number;
|
|
103
|
+
implementedAt: string | null;
|
|
104
|
+
};
|
|
105
|
+
type LineageClassification = 'SAFE_CANDIDATE' | 'QUARANTINE';
|
|
106
|
+
type LineageConfidence = 'HIGH' | 'MEDIUM' | 'LOW';
|
|
107
|
+
interface ILineageEntry {
|
|
108
|
+
lineageId: string;
|
|
109
|
+
blockName: string;
|
|
110
|
+
latestVersion: number;
|
|
111
|
+
implementedAt: string | null;
|
|
112
|
+
implemented: number | null;
|
|
113
|
+
draft: boolean;
|
|
114
|
+
totalVersions: number;
|
|
115
|
+
classification?: LineageClassification;
|
|
116
|
+
confidence?: LineageConfidence;
|
|
117
|
+
reason_codes?: string[];
|
|
118
|
+
rule_ids?: string[];
|
|
119
|
+
evidence?: Record<string, unknown>;
|
|
120
|
+
}
|
|
121
|
+
interface ILineageAuditResponse {
|
|
122
|
+
items: ILineageEntry[];
|
|
123
|
+
total: number;
|
|
124
|
+
farmId: string;
|
|
125
|
+
mode: 'block' | 'leaf';
|
|
126
|
+
}
|
|
127
|
+
type GeoUnitType = 'NAVE' | 'BED' | 'SQUARE' | 'CELL';
|
|
128
|
+
type IdentityQuality = 'authoritative' | 'derived' | 'unavailable';
|
|
129
|
+
type GeoUnitGranularity = 'squares' | 'cells' | 'lines';
|
|
130
|
+
interface IGeoUnit {
|
|
131
|
+
farmId: string;
|
|
132
|
+
structureId: string;
|
|
133
|
+
structureVersion: number;
|
|
134
|
+
blockName: string;
|
|
135
|
+
granularity: GeoUnitGranularity;
|
|
136
|
+
geoUnitId: string;
|
|
137
|
+
structureLineageId?: string | null;
|
|
138
|
+
identityQuality?: IdentityQuality;
|
|
139
|
+
geoUnitType: 'SQUARE' | 'CELL';
|
|
140
|
+
parentGeoUnitId?: string;
|
|
141
|
+
}
|
|
142
|
+
interface IGeoUnitsResponse {
|
|
143
|
+
farmId: string;
|
|
144
|
+
asOfDateApplied: string | null;
|
|
145
|
+
items: IGeoUnit[];
|
|
146
|
+
limit: number;
|
|
147
|
+
nextCursor: string | null;
|
|
148
|
+
}
|
|
149
|
+
interface IRuntimeSurfaceSnapshot {
|
|
150
|
+
canonicalCount: number;
|
|
151
|
+
fallbackCount: number;
|
|
152
|
+
incoherentCount: number;
|
|
153
|
+
total: number;
|
|
154
|
+
fallbackRate: number;
|
|
155
|
+
mismatchRate: number;
|
|
156
|
+
warningCodes: Record<string, number>;
|
|
157
|
+
}
|
|
158
|
+
interface IRuntimeBoundaryReadiness {
|
|
159
|
+
observations: IRuntimeSurfaceSnapshot;
|
|
160
|
+
layers: IRuntimeSurfaceSnapshot;
|
|
161
|
+
blocks: IRuntimeSurfaceSnapshot;
|
|
162
|
+
}
|
|
163
|
+
type BulkCaptureStatus = 'captured' | 'processing' | 'ready' | 'failed' | 'partial';
|
|
164
|
+
interface IBulkCaptureItem {
|
|
165
|
+
index: number;
|
|
166
|
+
blockName: string;
|
|
167
|
+
captureId: string;
|
|
168
|
+
status: BulkCaptureStatus;
|
|
169
|
+
draftBlockId?: string;
|
|
170
|
+
error?: string;
|
|
171
|
+
}
|
|
172
|
+
interface IBulkCaptureResponse {
|
|
173
|
+
jobId: string;
|
|
174
|
+
status: BulkCaptureStatus;
|
|
175
|
+
items: IBulkCaptureItem[];
|
|
176
|
+
}
|
|
177
|
+
interface IBulkCaptureInput {
|
|
178
|
+
structure: Partial<IStructure>;
|
|
179
|
+
idempotencyKey?: string;
|
|
180
|
+
}
|
|
181
|
+
type PlantingBatchCode = 'VALID_EXACT' | 'VALID_LATEST_EQUIVALENT' | 'STRUCTURE_VERSION_OUTDATED_BUT_EQUIVALENT' | 'STRUCTURE_VERSION_OUTDATED_AND_CHANGED' | 'STRUCTURE_NOT_FOUND' | 'STRUCTURE_VERSION_NOT_FOUND' | 'GEO_UNIT_NOT_FOUND' | 'GEO_UNIT_NOT_IN_STRUCTURE' | 'GEO_UNIT_INACTIVE' | 'INVALID_GEO_UNIT_TYPE' | 'AS_OF_DATE_OUT_OF_RANGE';
|
|
182
|
+
interface IPlantingValidationResponse {
|
|
183
|
+
farmId: string;
|
|
184
|
+
squareId: string;
|
|
185
|
+
isValid: boolean;
|
|
186
|
+
structureId: string | null;
|
|
187
|
+
structureVersion: number | null;
|
|
188
|
+
geoUnitId: string | null;
|
|
189
|
+
geoUnitType: 'SQUARE' | 'CELL' | null;
|
|
190
|
+
}
|
|
191
|
+
interface IPlantingBatchItem {
|
|
192
|
+
structureId: string;
|
|
193
|
+
structureVersion: number;
|
|
194
|
+
geoUnitType: 'SQUARE' | 'CELL';
|
|
195
|
+
geoUnitId: string;
|
|
196
|
+
}
|
|
197
|
+
interface IPlantingBatchItemResult {
|
|
198
|
+
index: number;
|
|
199
|
+
requested: IPlantingBatchItem;
|
|
200
|
+
status: 'valid' | 'invalid';
|
|
201
|
+
code: PlantingBatchCode;
|
|
202
|
+
message: string;
|
|
203
|
+
latestStructureVersion?: number | null;
|
|
204
|
+
isLatestVersion?: boolean;
|
|
205
|
+
isEquivalentInLatest?: boolean;
|
|
206
|
+
}
|
|
207
|
+
interface IPlantingBatchResponse {
|
|
208
|
+
farmId: string;
|
|
209
|
+
asOfDate?: string | null;
|
|
210
|
+
requestedStructureVersion?: number | null;
|
|
211
|
+
validatedAt: string;
|
|
212
|
+
total: number;
|
|
213
|
+
validCount: number;
|
|
214
|
+
invalidCount: number;
|
|
215
|
+
items: IPlantingBatchItemResult[];
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
export type { Bed as B, CommitChangeAction as C, GeoUnitGranularity as G, IBulkCaptureInput as I, LineageClassification as L, Nave as N, ObservationStatus as O, PlantingBatchCode as P, Square as S, BulkCaptureStatus as a, GeoUnitType as b, IBulkCaptureItem as c, IBulkCaptureResponse as d, ICommit as e, ICommitListResponse as f, IDraftReadiness as g, IGeoUnit as h, IGeoUnitsResponse as i, ILineageAuditResponse as j, ILineageEntry as k, INote as l, IObservationTask as m, IPlantingBatchItem as n, IPlantingBatchItemResult as o, IPlantingBatchResponse as p, IPlantingValidationResponse as q, IRuntimeBoundaryReadiness as r, IRuntimeSurfaceSnapshot as s, IStructure as t, IVersionDetail as u, IVersionSummary as v, IdentityQuality as w, LineageConfidence as x };
|