@deepintel-ltd/farmpro-contracts 1.11.2 → 1.11.4
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/admin.routes.d.ts +3947 -187
- package/dist/routes/admin.routes.d.ts.map +1 -1
- package/dist/routes/admin.routes.js +106 -4
- package/dist/routes/agent-workflows.routes.d.ts +140 -140
- package/dist/routes/agents.routes.d.ts +6 -6
- package/dist/routes/analytics.routes.d.ts +6 -6
- package/dist/routes/auth.routes.d.ts +999 -0
- package/dist/routes/auth.routes.d.ts.map +1 -1
- package/dist/routes/auth.routes.js +30 -1
- package/dist/routes/crop-profile.routes.d.ts +18 -18
- package/dist/routes/documents.routes.d.ts +58 -58
- package/dist/routes/equipment.routes.d.ts +62 -62
- package/dist/routes/extension.routes.d.ts +6 -6
- package/dist/routes/farm-status.routes.d.ts +6 -6
- package/dist/routes/farms.routes.d.ts +35 -0
- package/dist/routes/farms.routes.d.ts.map +1 -1
- package/dist/routes/fertigation.routes.d.ts +76 -76
- package/dist/routes/field-monitoring.routes.d.ts +34 -34
- package/dist/routes/field-observations.routes.d.ts +170 -170
- package/dist/routes/finance.routes.d.ts +6 -6
- package/dist/routes/geofences.routes.d.ts +8 -8
- package/dist/routes/irrigation.routes.d.ts +22 -22
- package/dist/routes/live-monitor.routes.d.ts +2 -2
- package/dist/routes/livestock-groups.routes.d.ts +30 -30
- package/dist/routes/livestock.routes.d.ts +24 -24
- package/dist/routes/monitoring-visualization.routes.d.ts +4 -4
- package/dist/routes/pest-disease-risk.routes.d.ts +48 -48
- package/dist/routes/prescription-maps.routes.d.ts +2 -2
- package/dist/routes/seasonal-plans.routes.d.ts +6 -6
- package/dist/routes/soil-tests.routes.d.ts +30 -30
- package/dist/routes/subscriptions.routes.d.ts +2 -2
- package/dist/routes/team-payments.routes.d.ts +36 -36
- package/dist/routes/team.routes.d.ts +24 -24
- package/dist/routes/users.routes.d.ts +14 -0
- package/dist/routes/users.routes.d.ts.map +1 -1
- package/dist/routes/weather.routes.d.ts +14 -14
- package/dist/routes/yield-prediction.routes.d.ts +48 -48
- package/dist/schemas/admin.schemas.d.ts +843 -81
- package/dist/schemas/admin.schemas.d.ts.map +1 -1
- package/dist/schemas/admin.schemas.js +58 -1
- package/dist/schemas/agent-workflows.schemas.d.ts +111 -111
- package/dist/schemas/agents.schemas.d.ts +6 -6
- package/dist/schemas/analytics.schemas.d.ts +12 -12
- package/dist/schemas/auth.schemas.d.ts +28 -0
- package/dist/schemas/auth.schemas.d.ts.map +1 -1
- package/dist/schemas/auth.schemas.js +8 -0
- package/dist/schemas/crop-profile.schemas.d.ts +26 -26
- package/dist/schemas/documents.schemas.d.ts +48 -48
- package/dist/schemas/equipment.schemas.d.ts +48 -48
- package/dist/schemas/extension.schemas.d.ts +12 -12
- package/dist/schemas/farm-status.schemas.d.ts +8 -8
- package/dist/schemas/farms.schemas.d.ts +48 -0
- package/dist/schemas/farms.schemas.d.ts.map +1 -1
- package/dist/schemas/farms.schemas.js +3 -0
- package/dist/schemas/fertigation.schemas.d.ts +20 -20
- package/dist/schemas/field-monitoring.schemas.d.ts +26 -26
- package/dist/schemas/field-observations.schemas.d.ts +126 -126
- package/dist/schemas/finance.schemas.d.ts +6 -6
- package/dist/schemas/geofences.schemas.d.ts +6 -6
- package/dist/schemas/irrigation.schemas.d.ts +12 -12
- package/dist/schemas/live-monitor.schemas.d.ts +2 -2
- package/dist/schemas/livestock-groups.schemas.d.ts +18 -18
- package/dist/schemas/livestock.schemas.d.ts +18 -18
- package/dist/schemas/monitoring-visualization.schemas.d.ts +4 -4
- package/dist/schemas/pest-disease-risk.schemas.d.ts +32 -32
- package/dist/schemas/prescription-maps.schemas.d.ts +2 -2
- package/dist/schemas/seasonal-plans.schemas.d.ts +12 -12
- package/dist/schemas/soil-tests.schemas.d.ts +28 -28
- package/dist/schemas/team-payments.schemas.d.ts +24 -24
- package/dist/schemas/team.schemas.d.ts +18 -18
- package/dist/schemas/users.schemas.d.ts +15 -0
- package/dist/schemas/users.schemas.d.ts.map +1 -1
- package/dist/schemas/users.schemas.js +1 -0
- package/dist/schemas/weather.schemas.d.ts +28 -28
- package/dist/schemas/yield-prediction.schemas.d.ts +8 -8
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.routes.d.ts","sourceRoot":"","sources":["../../src/routes/auth.routes.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"auth.routes.d.ts","sourceRoot":"","sources":["../../src/routes/auth.routes.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA4BxB,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuNrB,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { initContract } from '@ts-rest/core';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { loginSchema, signupSchema, googleAuthInitiateSchema, googleAuthCallbackSchema, refreshTokenSchema, requestPasswordResetSchema, resetPasswordSchema, changePasswordSchema, verifyEmailSchema, resendVerificationSchema, logoutSchema, completeOnboardingSchema, authResponseSchema, googleAuthInitiateResponseSchema, refreshTokenResponseSchema, passwordResetResponseSchema, logoutResponseSchema, emailVerificationResponseSchema, onboardingStatusResponseSchema, } from '../schemas/auth.schemas';
|
|
3
|
+
import { loginSchema, signupSchema, googleAuthInitiateSchema, googleAuthCallbackSchema, refreshTokenSchema, requestPasswordResetSchema, resetPasswordSchema, changePasswordSchema, verifyEmailSchema, consumeLoginLinkSchema, resendVerificationSchema, logoutSchema, completeOnboardingSchema, authResponseSchema, googleAuthInitiateResponseSchema, refreshTokenResponseSchema, passwordResetResponseSchema, logoutResponseSchema, emailVerificationResponseSchema, onboardingStatusResponseSchema, } from '../schemas/auth.schemas';
|
|
4
|
+
import { acceptAdminInviteSchema } from '../schemas/admin.schemas';
|
|
4
5
|
import { jsonApiErrorResponseSchema, jsonApiSuccessResponseSchema } from '../schemas/common.schemas';
|
|
5
6
|
const c = initContract();
|
|
6
7
|
export const authRouter = c.router({
|
|
@@ -139,6 +140,34 @@ export const authRouter = c.router({
|
|
|
139
140
|
summary: 'Verify email address',
|
|
140
141
|
description: 'Verify email address using token from email',
|
|
141
142
|
},
|
|
143
|
+
// Consume one-time admin login link
|
|
144
|
+
consumeLoginLink: {
|
|
145
|
+
method: 'POST',
|
|
146
|
+
path: '/auth/login-link/consume',
|
|
147
|
+
body: z.object({ data: consumeLoginLinkSchema }),
|
|
148
|
+
responses: {
|
|
149
|
+
200: authResponseSchema,
|
|
150
|
+
400: jsonApiErrorResponseSchema,
|
|
151
|
+
401: jsonApiErrorResponseSchema,
|
|
152
|
+
422: jsonApiErrorResponseSchema,
|
|
153
|
+
},
|
|
154
|
+
summary: 'Consume one-time login link',
|
|
155
|
+
description: 'Exchange a valid one-time login token for a user session',
|
|
156
|
+
},
|
|
157
|
+
// Accept super-admin invite and set password
|
|
158
|
+
acceptAdminInvite: {
|
|
159
|
+
method: 'POST',
|
|
160
|
+
path: '/auth/admin-invite/accept',
|
|
161
|
+
body: z.object({ data: acceptAdminInviteSchema }),
|
|
162
|
+
responses: {
|
|
163
|
+
200: authResponseSchema,
|
|
164
|
+
400: jsonApiErrorResponseSchema,
|
|
165
|
+
401: jsonApiErrorResponseSchema,
|
|
166
|
+
422: jsonApiErrorResponseSchema,
|
|
167
|
+
},
|
|
168
|
+
summary: 'Accept super admin invite',
|
|
169
|
+
description: 'Set password from invite email token and return a session',
|
|
170
|
+
},
|
|
142
171
|
// Resend verification email
|
|
143
172
|
resendVerification: {
|
|
144
173
|
method: 'POST',
|
|
@@ -23,16 +23,16 @@ export declare const cropProfilesRouter: {
|
|
|
23
23
|
healthyRange: [number, number];
|
|
24
24
|
warningRange: [number, number];
|
|
25
25
|
criticalBelow: number;
|
|
26
|
-
description?: string | undefined;
|
|
27
26
|
recommendations?: string[] | undefined;
|
|
27
|
+
description?: string | undefined;
|
|
28
28
|
}, {
|
|
29
29
|
stage: string;
|
|
30
30
|
daysFromPlanting: [number, number];
|
|
31
31
|
healthyRange: [number, number];
|
|
32
32
|
warningRange: [number, number];
|
|
33
33
|
criticalBelow: number;
|
|
34
|
-
description?: string | undefined;
|
|
35
34
|
recommendations?: string[] | undefined;
|
|
35
|
+
description?: string | undefined;
|
|
36
36
|
}>, "many">;
|
|
37
37
|
alerts: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
38
38
|
condition: z.ZodString;
|
|
@@ -72,8 +72,8 @@ export declare const cropProfilesRouter: {
|
|
|
72
72
|
healthyRange: [number, number];
|
|
73
73
|
warningRange: [number, number];
|
|
74
74
|
criticalBelow: number;
|
|
75
|
-
description?: string | undefined;
|
|
76
75
|
recommendations?: string[] | undefined;
|
|
76
|
+
description?: string | undefined;
|
|
77
77
|
}[];
|
|
78
78
|
region: string | null;
|
|
79
79
|
totalDays: number;
|
|
@@ -95,8 +95,8 @@ export declare const cropProfilesRouter: {
|
|
|
95
95
|
healthyRange: [number, number];
|
|
96
96
|
warningRange: [number, number];
|
|
97
97
|
criticalBelow: number;
|
|
98
|
-
description?: string | undefined;
|
|
99
98
|
recommendations?: string[] | undefined;
|
|
99
|
+
description?: string | undefined;
|
|
100
100
|
}[];
|
|
101
101
|
region: string | null;
|
|
102
102
|
totalDays: number;
|
|
@@ -143,16 +143,16 @@ export declare const cropProfilesRouter: {
|
|
|
143
143
|
healthyRange: [number, number];
|
|
144
144
|
warningRange: [number, number];
|
|
145
145
|
criticalBelow: number;
|
|
146
|
-
description?: string | undefined;
|
|
147
146
|
recommendations?: string[] | undefined;
|
|
147
|
+
description?: string | undefined;
|
|
148
148
|
}, {
|
|
149
149
|
stage: string;
|
|
150
150
|
daysFromPlanting: [number, number];
|
|
151
151
|
healthyRange: [number, number];
|
|
152
152
|
warningRange: [number, number];
|
|
153
153
|
criticalBelow: number;
|
|
154
|
-
description?: string | undefined;
|
|
155
154
|
recommendations?: string[] | undefined;
|
|
155
|
+
description?: string | undefined;
|
|
156
156
|
}>, "many">;
|
|
157
157
|
alerts: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
158
158
|
condition: z.ZodString;
|
|
@@ -192,8 +192,8 @@ export declare const cropProfilesRouter: {
|
|
|
192
192
|
healthyRange: [number, number];
|
|
193
193
|
warningRange: [number, number];
|
|
194
194
|
criticalBelow: number;
|
|
195
|
-
description?: string | undefined;
|
|
196
195
|
recommendations?: string[] | undefined;
|
|
196
|
+
description?: string | undefined;
|
|
197
197
|
}[];
|
|
198
198
|
region: string | null;
|
|
199
199
|
totalDays: number;
|
|
@@ -215,8 +215,8 @@ export declare const cropProfilesRouter: {
|
|
|
215
215
|
healthyRange: [number, number];
|
|
216
216
|
warningRange: [number, number];
|
|
217
217
|
criticalBelow: number;
|
|
218
|
-
description?: string | undefined;
|
|
219
218
|
recommendations?: string[] | undefined;
|
|
219
|
+
description?: string | undefined;
|
|
220
220
|
}[];
|
|
221
221
|
region: string | null;
|
|
222
222
|
totalDays: number;
|
|
@@ -330,16 +330,16 @@ export declare const cropProfilesRouter: {
|
|
|
330
330
|
healthyRange: [number, number];
|
|
331
331
|
warningRange: [number, number];
|
|
332
332
|
criticalBelow: number;
|
|
333
|
-
description?: string | undefined;
|
|
334
333
|
recommendations?: string[] | undefined;
|
|
334
|
+
description?: string | undefined;
|
|
335
335
|
}, {
|
|
336
336
|
stage: string;
|
|
337
337
|
daysFromPlanting: [number, number];
|
|
338
338
|
healthyRange: [number, number];
|
|
339
339
|
warningRange: [number, number];
|
|
340
340
|
criticalBelow: number;
|
|
341
|
-
description?: string | undefined;
|
|
342
341
|
recommendations?: string[] | undefined;
|
|
342
|
+
description?: string | undefined;
|
|
343
343
|
}>, "many">;
|
|
344
344
|
alerts: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
345
345
|
condition: z.ZodString;
|
|
@@ -379,8 +379,8 @@ export declare const cropProfilesRouter: {
|
|
|
379
379
|
healthyRange: [number, number];
|
|
380
380
|
warningRange: [number, number];
|
|
381
381
|
criticalBelow: number;
|
|
382
|
-
description?: string | undefined;
|
|
383
382
|
recommendations?: string[] | undefined;
|
|
383
|
+
description?: string | undefined;
|
|
384
384
|
}[];
|
|
385
385
|
region: string | null;
|
|
386
386
|
totalDays: number;
|
|
@@ -402,8 +402,8 @@ export declare const cropProfilesRouter: {
|
|
|
402
402
|
healthyRange: [number, number];
|
|
403
403
|
warningRange: [number, number];
|
|
404
404
|
criticalBelow: number;
|
|
405
|
-
description?: string | undefined;
|
|
406
405
|
recommendations?: string[] | undefined;
|
|
406
|
+
description?: string | undefined;
|
|
407
407
|
}[];
|
|
408
408
|
region: string | null;
|
|
409
409
|
totalDays: number;
|
|
@@ -448,8 +448,8 @@ export declare const cropProfilesRouter: {
|
|
|
448
448
|
region: string | null;
|
|
449
449
|
}>;
|
|
450
450
|
}, "strip", z.ZodTypeAny, {
|
|
451
|
-
expectedHarvestDate: string | null;
|
|
452
451
|
recommendations: string[];
|
|
452
|
+
expectedHarvestDate: string | null;
|
|
453
453
|
alerts: {
|
|
454
454
|
type: "critical" | "warning" | "info";
|
|
455
455
|
message: string;
|
|
@@ -471,8 +471,8 @@ export declare const cropProfilesRouter: {
|
|
|
471
471
|
region: string | null;
|
|
472
472
|
};
|
|
473
473
|
}, {
|
|
474
|
-
expectedHarvestDate: string | null;
|
|
475
474
|
recommendations: string[];
|
|
475
|
+
expectedHarvestDate: string | null;
|
|
476
476
|
alerts: {
|
|
477
477
|
type: "critical" | "warning" | "info";
|
|
478
478
|
message: string;
|
|
@@ -517,15 +517,15 @@ export declare const cropProfilesRouter: {
|
|
|
517
517
|
healthyRange: [number, number];
|
|
518
518
|
warningRange: [number, number];
|
|
519
519
|
criticalBelow: number;
|
|
520
|
-
description?: string | undefined;
|
|
521
520
|
recommendations?: string[] | undefined;
|
|
521
|
+
description?: string | undefined;
|
|
522
522
|
}[];
|
|
523
523
|
region: string | null;
|
|
524
524
|
totalDays: number;
|
|
525
525
|
} | null;
|
|
526
526
|
currentAssessment: {
|
|
527
|
-
expectedHarvestDate: string | null;
|
|
528
527
|
recommendations: string[];
|
|
528
|
+
expectedHarvestDate: string | null;
|
|
529
529
|
alerts: {
|
|
530
530
|
type: "critical" | "warning" | "info";
|
|
531
531
|
message: string;
|
|
@@ -569,15 +569,15 @@ export declare const cropProfilesRouter: {
|
|
|
569
569
|
healthyRange: [number, number];
|
|
570
570
|
warningRange: [number, number];
|
|
571
571
|
criticalBelow: number;
|
|
572
|
-
description?: string | undefined;
|
|
573
572
|
recommendations?: string[] | undefined;
|
|
573
|
+
description?: string | undefined;
|
|
574
574
|
}[];
|
|
575
575
|
region: string | null;
|
|
576
576
|
totalDays: number;
|
|
577
577
|
} | null;
|
|
578
578
|
currentAssessment: {
|
|
579
|
-
expectedHarvestDate: string | null;
|
|
580
579
|
recommendations: string[];
|
|
580
|
+
expectedHarvestDate: string | null;
|
|
581
581
|
alerts: {
|
|
582
582
|
type: "critical" | "warning" | "info";
|
|
583
583
|
message: string;
|