@deepintel-ltd/farmpro-contracts 1.16.0 → 1.16.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.
Files changed (51) hide show
  1. package/dist/routes/agents.routes.d.ts +8 -8
  2. package/dist/routes/documents.routes.d.ts +78 -78
  3. package/dist/routes/fertigation.routes.d.ts +4 -4
  4. package/dist/routes/field-observations.routes.d.ts +174 -28
  5. package/dist/routes/field-observations.routes.d.ts.map +1 -1
  6. package/dist/routes/field-observations.routes.js +7 -4
  7. package/dist/routes/fields.routes.d.ts +797 -0
  8. package/dist/routes/fields.routes.d.ts.map +1 -1
  9. package/dist/routes/fields.routes.js +23 -1
  10. package/dist/routes/files.routes.d.ts +6 -6
  11. package/dist/routes/finance.routes.d.ts +30 -30
  12. package/dist/routes/inventory.routes.d.ts +6 -6
  13. package/dist/routes/irrigation.routes.d.ts +2 -2
  14. package/dist/routes/live-monitor.routes.d.ts +29 -9
  15. package/dist/routes/live-monitor.routes.d.ts.map +1 -1
  16. package/dist/routes/monitoring-visualization.routes.d.ts +173 -45
  17. package/dist/routes/monitoring-visualization.routes.d.ts.map +1 -1
  18. package/dist/routes/monitoring-visualization.routes.js +4 -4
  19. package/dist/routes/pest-disease-risk.routes.d.ts +66 -66
  20. package/dist/routes/prescription-maps.routes.d.ts +4 -4
  21. package/dist/routes/subscriptions.routes.d.ts +4 -4
  22. package/dist/routes/tasks.routes.d.ts +108 -108
  23. package/dist/routes/team-payments.routes.d.ts +72 -72
  24. package/dist/routes/weather.routes.d.ts +42 -42
  25. package/dist/schemas/agents.schemas.d.ts +152 -8
  26. package/dist/schemas/agents.schemas.d.ts.map +1 -1
  27. package/dist/schemas/agents.schemas.js +35 -0
  28. package/dist/schemas/common.schemas.d.ts +32 -0
  29. package/dist/schemas/common.schemas.d.ts.map +1 -1
  30. package/dist/schemas/common.schemas.js +14 -0
  31. package/dist/schemas/documents.schemas.d.ts +48 -48
  32. package/dist/schemas/fertigation.schemas.d.ts +2 -2
  33. package/dist/schemas/fields.schemas.d.ts +42 -0
  34. package/dist/schemas/fields.schemas.d.ts.map +1 -1
  35. package/dist/schemas/fields.schemas.js +4 -0
  36. package/dist/schemas/files.schemas.d.ts +12 -12
  37. package/dist/schemas/finance.schemas.d.ts +34 -34
  38. package/dist/schemas/inventory.schemas.d.ts +6 -6
  39. package/dist/schemas/irrigation.schemas.d.ts +2 -2
  40. package/dist/schemas/live-monitor.schemas.d.ts +44 -12
  41. package/dist/schemas/live-monitor.schemas.d.ts.map +1 -1
  42. package/dist/schemas/monitoring-visualization.schemas.d.ts +329 -46
  43. package/dist/schemas/monitoring-visualization.schemas.d.ts.map +1 -1
  44. package/dist/schemas/monitoring-visualization.schemas.js +30 -0
  45. package/dist/schemas/pest-disease-risk.schemas.d.ts +56 -56
  46. package/dist/schemas/prescription-maps.schemas.d.ts +4 -4
  47. package/dist/schemas/subscriptions.schemas.d.ts +2 -2
  48. package/dist/schemas/tasks.schemas.d.ts +96 -96
  49. package/dist/schemas/team-payments.schemas.d.ts +54 -54
  50. package/dist/schemas/weather.schemas.d.ts +84 -84
  51. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"fields.routes.d.ts","sourceRoot":"","sources":["../../src/routes/fields.routes.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAqBxB,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;CA2JvB,CAAC"}
@@ -1,7 +1,8 @@
1
1
  import { initContract } from '@ts-rest/core';
2
2
  import { z } from 'zod';
3
3
  import { createFieldSchema, updateFieldSchema, recordPlantingSchema, fieldResponseSchema, fieldDetailResponseSchema, fieldListResponseSchema, seasonTimelineListResponseSchema, } from '../schemas/fields.schemas';
4
- import { jsonApiErrorResponseSchema, jsonApiSuccessResponseSchema, jsonApiPaginationQuerySchema, jsonApiSortQuerySchema, jsonApiIncludeQuerySchema, jsonApiFilterQuerySchema } from '../schemas/common.schemas';
4
+ import { jsonApiErrorResponseSchema, jsonApiSuccessResponseSchema, jsonApiPaginationQuerySchema, jsonApiSortQuerySchema, jsonApiIncludeQuerySchema, jsonApiFilterQuerySchema, simpleApiErrorSchema, } from '../schemas/common.schemas';
5
+ import { uploadFileBodySchema } from '../schemas/files.schemas';
5
6
  const c = initContract();
6
7
  export const fieldsRouter = c.router({
7
8
  // List fields for a farm
@@ -31,6 +32,8 @@ export const fieldsRouter = c.router({
31
32
  responses: {
32
33
  201: fieldResponseSchema,
33
34
  400: jsonApiErrorResponseSchema,
35
+ // Guard returns flat Nest body; controller catch uses JSON:API
36
+ 403: z.union([simpleApiErrorSchema, jsonApiErrorResponseSchema]),
34
37
  404: jsonApiErrorResponseSchema,
35
38
  401: jsonApiErrorResponseSchema,
36
39
  422: jsonApiErrorResponseSchema,
@@ -127,4 +130,23 @@ export const fieldsRouter = c.router({
127
130
  summary: 'Delete field',
128
131
  description: 'Delete a field and all associated data',
129
132
  },
133
+ // Upload field cover image
134
+ uploadFieldCover: {
135
+ method: 'POST',
136
+ path: '/farms/:farmId/fields/:id/cover',
137
+ contentType: 'multipart/form-data',
138
+ pathParams: z.object({
139
+ farmId: z.string().uuid(),
140
+ id: z.string().uuid(),
141
+ }),
142
+ body: z.union([uploadFileBodySchema, z.undefined()]),
143
+ responses: {
144
+ 200: fieldResponseSchema,
145
+ 400: jsonApiErrorResponseSchema,
146
+ 404: jsonApiErrorResponseSchema,
147
+ 401: jsonApiErrorResponseSchema,
148
+ },
149
+ summary: 'Upload field cover image',
150
+ description: 'Upload a custom cover photo for a field card. Stores a proxy URL on coverImage.',
151
+ },
130
152
  });
@@ -26,14 +26,14 @@ export declare const filesRouter: {
26
26
  uploadedAt: z.ZodString;
27
27
  }, "strip", z.ZodTypeAny, {
28
28
  fileUrl: string;
29
- fileName: string;
30
29
  fileSize: number;
30
+ fileName: string;
31
31
  uploadedAt: string;
32
32
  contentType?: string | undefined;
33
33
  }, {
34
34
  fileUrl: string;
35
- fileName: string;
36
35
  fileSize: number;
36
+ fileName: string;
37
37
  uploadedAt: string;
38
38
  contentType?: string | undefined;
39
39
  }>;
@@ -45,8 +45,8 @@ export declare const filesRouter: {
45
45
  id: string;
46
46
  attributes: {
47
47
  fileUrl: string;
48
- fileName: string;
49
48
  fileSize: number;
49
+ fileName: string;
50
50
  uploadedAt: string;
51
51
  contentType?: string | undefined;
52
52
  };
@@ -58,8 +58,8 @@ export declare const filesRouter: {
58
58
  id: string;
59
59
  attributes: {
60
60
  fileUrl: string;
61
- fileName: string;
62
61
  fileSize: number;
62
+ fileName: string;
63
63
  uploadedAt: string;
64
64
  contentType?: string | undefined;
65
65
  };
@@ -97,8 +97,8 @@ export declare const filesRouter: {
97
97
  id: string;
98
98
  attributes: {
99
99
  fileUrl: string;
100
- fileName: string;
101
100
  fileSize: number;
101
+ fileName: string;
102
102
  uploadedAt: string;
103
103
  contentType?: string | undefined;
104
104
  };
@@ -122,8 +122,8 @@ export declare const filesRouter: {
122
122
  id: string;
123
123
  attributes: {
124
124
  fileUrl: string;
125
- fileName: string;
126
125
  fileSize: number;
126
+ fileName: string;
127
127
  uploadedAt: string;
128
128
  contentType?: string | undefined;
129
129
  };
@@ -1863,8 +1863,8 @@ export declare const financeRouter: {
1863
1863
  createdAt: string;
1864
1864
  updatedAt: string;
1865
1865
  description: string;
1866
- fieldId: string | null;
1867
1866
  category: string;
1867
+ fieldId: string | null;
1868
1868
  cropId: string | null;
1869
1869
  amount: number;
1870
1870
  allocationType: "crop" | "field" | "general";
@@ -1877,8 +1877,8 @@ export declare const financeRouter: {
1877
1877
  createdAt: string;
1878
1878
  updatedAt: string;
1879
1879
  description: string;
1880
- fieldId: string | null;
1881
1880
  category: string;
1881
+ fieldId: string | null;
1882
1882
  cropId: string | null;
1883
1883
  amount: number;
1884
1884
  allocationType: "crop" | "field" | "general";
@@ -1898,8 +1898,8 @@ export declare const financeRouter: {
1898
1898
  createdAt: string;
1899
1899
  updatedAt: string;
1900
1900
  description: string;
1901
- fieldId: string | null;
1902
1901
  category: string;
1902
+ fieldId: string | null;
1903
1903
  cropId: string | null;
1904
1904
  amount: number;
1905
1905
  allocationType: "crop" | "field" | "general";
@@ -1919,8 +1919,8 @@ export declare const financeRouter: {
1919
1919
  createdAt: string;
1920
1920
  updatedAt: string;
1921
1921
  description: string;
1922
- fieldId: string | null;
1923
1922
  category: string;
1923
+ fieldId: string | null;
1924
1924
  cropId: string | null;
1925
1925
  amount: number;
1926
1926
  allocationType: "crop" | "field" | "general";
@@ -1966,8 +1966,8 @@ export declare const financeRouter: {
1966
1966
  createdAt: string;
1967
1967
  updatedAt: string;
1968
1968
  description: string;
1969
- fieldId: string | null;
1970
1969
  category: string;
1970
+ fieldId: string | null;
1971
1971
  cropId: string | null;
1972
1972
  amount: number;
1973
1973
  allocationType: "crop" | "field" | "general";
@@ -1999,8 +1999,8 @@ export declare const financeRouter: {
1999
1999
  createdAt: string;
2000
2000
  updatedAt: string;
2001
2001
  description: string;
2002
- fieldId: string | null;
2003
2002
  category: string;
2003
+ fieldId: string | null;
2004
2004
  cropId: string | null;
2005
2005
  amount: number;
2006
2006
  allocationType: "crop" | "field" | "general";
@@ -2337,8 +2337,8 @@ export declare const financeRouter: {
2337
2337
  createdAt: string;
2338
2338
  updatedAt: string;
2339
2339
  description: string;
2340
- fieldId: string | null;
2341
2340
  category: string;
2341
+ fieldId: string | null;
2342
2342
  cropId: string | null;
2343
2343
  amount: number;
2344
2344
  allocationType: "crop" | "field" | "general";
@@ -2351,8 +2351,8 @@ export declare const financeRouter: {
2351
2351
  createdAt: string;
2352
2352
  updatedAt: string;
2353
2353
  description: string;
2354
- fieldId: string | null;
2355
2354
  category: string;
2355
+ fieldId: string | null;
2356
2356
  cropId: string | null;
2357
2357
  amount: number;
2358
2358
  allocationType: "crop" | "field" | "general";
@@ -2372,8 +2372,8 @@ export declare const financeRouter: {
2372
2372
  createdAt: string;
2373
2373
  updatedAt: string;
2374
2374
  description: string;
2375
- fieldId: string | null;
2376
2375
  category: string;
2376
+ fieldId: string | null;
2377
2377
  cropId: string | null;
2378
2378
  amount: number;
2379
2379
  allocationType: "crop" | "field" | "general";
@@ -2393,8 +2393,8 @@ export declare const financeRouter: {
2393
2393
  createdAt: string;
2394
2394
  updatedAt: string;
2395
2395
  description: string;
2396
- fieldId: string | null;
2397
2396
  category: string;
2397
+ fieldId: string | null;
2398
2398
  cropId: string | null;
2399
2399
  amount: number;
2400
2400
  allocationType: "crop" | "field" | "general";
@@ -2440,8 +2440,8 @@ export declare const financeRouter: {
2440
2440
  createdAt: string;
2441
2441
  updatedAt: string;
2442
2442
  description: string;
2443
- fieldId: string | null;
2444
2443
  category: string;
2444
+ fieldId: string | null;
2445
2445
  cropId: string | null;
2446
2446
  amount: number;
2447
2447
  allocationType: "crop" | "field" | "general";
@@ -2473,8 +2473,8 @@ export declare const financeRouter: {
2473
2473
  createdAt: string;
2474
2474
  updatedAt: string;
2475
2475
  description: string;
2476
- fieldId: string | null;
2477
2476
  category: string;
2477
+ fieldId: string | null;
2478
2478
  cropId: string | null;
2479
2479
  amount: number;
2480
2480
  allocationType: "crop" | "field" | "general";
@@ -2907,8 +2907,8 @@ export declare const financeRouter: {
2907
2907
  createdAt: string;
2908
2908
  updatedAt: string;
2909
2909
  description: string;
2910
- fieldId: string | null;
2911
2910
  category: string;
2911
+ fieldId: string | null;
2912
2912
  cropId: string | null;
2913
2913
  amount: number;
2914
2914
  allocationType: "crop" | "field" | "general";
@@ -2921,8 +2921,8 @@ export declare const financeRouter: {
2921
2921
  createdAt: string;
2922
2922
  updatedAt: string;
2923
2923
  description: string;
2924
- fieldId: string | null;
2925
2924
  category: string;
2925
+ fieldId: string | null;
2926
2926
  cropId: string | null;
2927
2927
  amount: number;
2928
2928
  allocationType: "crop" | "field" | "general";
@@ -2973,8 +2973,8 @@ export declare const financeRouter: {
2973
2973
  createdAt: string;
2974
2974
  updatedAt: string;
2975
2975
  description: string;
2976
- fieldId: string | null;
2977
2976
  category: string;
2977
+ fieldId: string | null;
2978
2978
  cropId: string | null;
2979
2979
  amount: number;
2980
2980
  allocationType: "crop" | "field" | "general";
@@ -3000,8 +3000,8 @@ export declare const financeRouter: {
3000
3000
  createdAt: string;
3001
3001
  updatedAt: string;
3002
3002
  description: string;
3003
- fieldId: string | null;
3004
3003
  category: string;
3004
+ fieldId: string | null;
3005
3005
  cropId: string | null;
3006
3006
  amount: number;
3007
3007
  allocationType: "crop" | "field" | "general";
@@ -3053,8 +3053,8 @@ export declare const financeRouter: {
3053
3053
  createdAt: string;
3054
3054
  updatedAt: string;
3055
3055
  description: string;
3056
- fieldId: string | null;
3057
3056
  category: string;
3057
+ fieldId: string | null;
3058
3058
  cropId: string | null;
3059
3059
  amount: number;
3060
3060
  allocationType: "crop" | "field" | "general";
@@ -3092,8 +3092,8 @@ export declare const financeRouter: {
3092
3092
  createdAt: string;
3093
3093
  updatedAt: string;
3094
3094
  description: string;
3095
- fieldId: string | null;
3096
3095
  category: string;
3096
+ fieldId: string | null;
3097
3097
  cropId: string | null;
3098
3098
  amount: number;
3099
3099
  allocationType: "crop" | "field" | "general";
@@ -3334,16 +3334,16 @@ export declare const financeRouter: {
3334
3334
  }, "strip", z.ZodTypeAny, {
3335
3335
  date?: string | undefined;
3336
3336
  description?: string | undefined;
3337
- fieldId?: string | null | undefined;
3338
3337
  category?: string | undefined;
3338
+ fieldId?: string | null | undefined;
3339
3339
  cropId?: string | null | undefined;
3340
3340
  amount?: number | undefined;
3341
3341
  allocationType?: "crop" | "field" | "general" | undefined;
3342
3342
  }, {
3343
3343
  date?: string | undefined;
3344
3344
  description?: string | undefined;
3345
- fieldId?: string | null | undefined;
3346
3345
  category?: string | undefined;
3346
+ fieldId?: string | null | undefined;
3347
3347
  cropId?: string | null | undefined;
3348
3348
  amount?: number | undefined;
3349
3349
  allocationType?: "crop" | "field" | "general" | undefined;
@@ -3354,8 +3354,8 @@ export declare const financeRouter: {
3354
3354
  attributes: {
3355
3355
  date?: string | undefined;
3356
3356
  description?: string | undefined;
3357
- fieldId?: string | null | undefined;
3358
3357
  category?: string | undefined;
3358
+ fieldId?: string | null | undefined;
3359
3359
  cropId?: string | null | undefined;
3360
3360
  amount?: number | undefined;
3361
3361
  allocationType?: "crop" | "field" | "general" | undefined;
@@ -3366,8 +3366,8 @@ export declare const financeRouter: {
3366
3366
  attributes: {
3367
3367
  date?: string | undefined;
3368
3368
  description?: string | undefined;
3369
- fieldId?: string | null | undefined;
3370
3369
  category?: string | undefined;
3370
+ fieldId?: string | null | undefined;
3371
3371
  cropId?: string | null | undefined;
3372
3372
  amount?: number | undefined;
3373
3373
  allocationType?: "crop" | "field" | "general" | undefined;
@@ -3380,8 +3380,8 @@ export declare const financeRouter: {
3380
3380
  attributes: {
3381
3381
  date?: string | undefined;
3382
3382
  description?: string | undefined;
3383
- fieldId?: string | null | undefined;
3384
3383
  category?: string | undefined;
3384
+ fieldId?: string | null | undefined;
3385
3385
  cropId?: string | null | undefined;
3386
3386
  amount?: number | undefined;
3387
3387
  allocationType?: "crop" | "field" | "general" | undefined;
@@ -3394,8 +3394,8 @@ export declare const financeRouter: {
3394
3394
  attributes: {
3395
3395
  date?: string | undefined;
3396
3396
  description?: string | undefined;
3397
- fieldId?: string | null | undefined;
3398
3397
  category?: string | undefined;
3398
+ fieldId?: string | null | undefined;
3399
3399
  cropId?: string | null | undefined;
3400
3400
  amount?: number | undefined;
3401
3401
  allocationType?: "crop" | "field" | "general" | undefined;
@@ -3428,8 +3428,8 @@ export declare const financeRouter: {
3428
3428
  createdAt: string;
3429
3429
  updatedAt: string;
3430
3430
  description: string;
3431
- fieldId: string | null;
3432
3431
  category: string;
3432
+ fieldId: string | null;
3433
3433
  cropId: string | null;
3434
3434
  amount: number;
3435
3435
  allocationType: "crop" | "field" | "general";
@@ -3442,8 +3442,8 @@ export declare const financeRouter: {
3442
3442
  createdAt: string;
3443
3443
  updatedAt: string;
3444
3444
  description: string;
3445
- fieldId: string | null;
3446
3445
  category: string;
3446
+ fieldId: string | null;
3447
3447
  cropId: string | null;
3448
3448
  amount: number;
3449
3449
  allocationType: "crop" | "field" | "general";
@@ -3463,8 +3463,8 @@ export declare const financeRouter: {
3463
3463
  createdAt: string;
3464
3464
  updatedAt: string;
3465
3465
  description: string;
3466
- fieldId: string | null;
3467
3466
  category: string;
3467
+ fieldId: string | null;
3468
3468
  cropId: string | null;
3469
3469
  amount: number;
3470
3470
  allocationType: "crop" | "field" | "general";
@@ -3484,8 +3484,8 @@ export declare const financeRouter: {
3484
3484
  createdAt: string;
3485
3485
  updatedAt: string;
3486
3486
  description: string;
3487
- fieldId: string | null;
3488
3487
  category: string;
3488
+ fieldId: string | null;
3489
3489
  cropId: string | null;
3490
3490
  amount: number;
3491
3491
  allocationType: "crop" | "field" | "general";
@@ -3531,8 +3531,8 @@ export declare const financeRouter: {
3531
3531
  createdAt: string;
3532
3532
  updatedAt: string;
3533
3533
  description: string;
3534
- fieldId: string | null;
3535
3534
  category: string;
3535
+ fieldId: string | null;
3536
3536
  cropId: string | null;
3537
3537
  amount: number;
3538
3538
  allocationType: "crop" | "field" | "general";
@@ -3564,8 +3564,8 @@ export declare const financeRouter: {
3564
3564
  createdAt: string;
3565
3565
  updatedAt: string;
3566
3566
  description: string;
3567
- fieldId: string | null;
3568
3567
  category: string;
3568
+ fieldId: string | null;
3569
3569
  cropId: string | null;
3570
3570
  amount: number;
3571
3571
  allocationType: "crop" | "field" | "general";
@@ -2309,8 +2309,8 @@ export declare const inventoryRouter: {
2309
2309
  unitCost: number;
2310
2310
  totalCost: number;
2311
2311
  name?: string | undefined;
2312
- fieldId?: string | undefined;
2313
2312
  category?: string | undefined;
2313
+ fieldId?: string | undefined;
2314
2314
  itemId?: string | undefined;
2315
2315
  supplier?: string | undefined;
2316
2316
  cropId?: string | undefined;
@@ -2321,8 +2321,8 @@ export declare const inventoryRouter: {
2321
2321
  unitCost: number;
2322
2322
  totalCost: number;
2323
2323
  name?: string | undefined;
2324
- fieldId?: string | undefined;
2325
2324
  category?: string | undefined;
2325
+ fieldId?: string | undefined;
2326
2326
  itemId?: string | undefined;
2327
2327
  supplier?: string | undefined;
2328
2328
  cropId?: string | undefined;
@@ -2336,8 +2336,8 @@ export declare const inventoryRouter: {
2336
2336
  unitCost: number;
2337
2337
  totalCost: number;
2338
2338
  name?: string | undefined;
2339
- fieldId?: string | undefined;
2340
2339
  category?: string | undefined;
2340
+ fieldId?: string | undefined;
2341
2341
  itemId?: string | undefined;
2342
2342
  supplier?: string | undefined;
2343
2343
  cropId?: string | undefined;
@@ -2351,8 +2351,8 @@ export declare const inventoryRouter: {
2351
2351
  unitCost: number;
2352
2352
  totalCost: number;
2353
2353
  name?: string | undefined;
2354
- fieldId?: string | undefined;
2355
2354
  category?: string | undefined;
2355
+ fieldId?: string | undefined;
2356
2356
  itemId?: string | undefined;
2357
2357
  supplier?: string | undefined;
2358
2358
  cropId?: string | undefined;
@@ -2368,8 +2368,8 @@ export declare const inventoryRouter: {
2368
2368
  unitCost: number;
2369
2369
  totalCost: number;
2370
2370
  name?: string | undefined;
2371
- fieldId?: string | undefined;
2372
2371
  category?: string | undefined;
2372
+ fieldId?: string | undefined;
2373
2373
  itemId?: string | undefined;
2374
2374
  supplier?: string | undefined;
2375
2375
  cropId?: string | undefined;
@@ -2385,8 +2385,8 @@ export declare const inventoryRouter: {
2385
2385
  unitCost: number;
2386
2386
  totalCost: number;
2387
2387
  name?: string | undefined;
2388
- fieldId?: string | undefined;
2389
2388
  category?: string | undefined;
2389
+ fieldId?: string | undefined;
2390
2390
  itemId?: string | undefined;
2391
2391
  supplier?: string | undefined;
2392
2392
  cropId?: string | undefined;
@@ -1094,11 +1094,11 @@ export declare const irrigationRouter: {
1094
1094
  days: z.ZodDefault<z.ZodNumber>;
1095
1095
  limit: z.ZodDefault<z.ZodNumber>;
1096
1096
  }, "strip", z.ZodTypeAny, {
1097
- days: number;
1098
1097
  limit: number;
1098
+ days: number;
1099
1099
  }, {
1100
- days?: number | undefined;
1101
1100
  limit?: number | undefined;
1101
+ days?: number | undefined;
1102
1102
  }>;
1103
1103
  summary: "Get upcoming irrigation events across all schedules";
1104
1104
  method: "GET";
@@ -67,7 +67,7 @@ export declare const liveMonitorRouter: {
67
67
  cameras: z.ZodArray<z.ZodObject<{
68
68
  id: z.ZodString;
69
69
  name: z.ZodString;
70
- type: z.ZodEnum<["IP_CAMERA", "WEBCAM", "TRAIL_CAM", "DRONE", "PHONE"]>;
70
+ type: z.ZodEnum<["IP_CAMERA", "WEBCAM", "TRAIL_CAM", "DRONE", "PHONE", "PTZ"]>;
71
71
  location: z.ZodObject<{
72
72
  lat: z.ZodNumber;
73
73
  lng: z.ZodNumber;
@@ -84,11 +84,15 @@ export declare const liveMonitorRouter: {
84
84
  direction: z.ZodNullable<z.ZodNumber>;
85
85
  fieldOfView: z.ZodNullable<z.ZodNumber>;
86
86
  streamEnabled: z.ZodBoolean;
87
+ ingestMode: z.ZodOptional<z.ZodEnum<["ftp_push", "device_agent"]>>;
88
+ expectedIntervalSeconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
89
+ lastIngestAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
90
+ ftpUsername: z.ZodOptional<z.ZodNullable<z.ZodString>>;
87
91
  } & {
88
92
  fieldId: z.ZodString;
89
93
  fieldName: z.ZodString;
90
94
  }, "strip", z.ZodTypeAny, {
91
- type: "IP_CAMERA" | "WEBCAM" | "TRAIL_CAM" | "DRONE" | "PHONE";
95
+ type: "IP_CAMERA" | "WEBCAM" | "TRAIL_CAM" | "DRONE" | "PHONE" | "PTZ";
92
96
  status: "ERROR" | "MAINTENANCE" | "ONLINE" | "OFFLINE" | "RECORDING";
93
97
  id: string;
94
98
  name: string;
@@ -103,8 +107,12 @@ export declare const liveMonitorRouter: {
103
107
  lastFrameAt: string | null;
104
108
  fieldOfView: number | null;
105
109
  streamEnabled: boolean;
110
+ ingestMode?: "ftp_push" | "device_agent" | undefined;
111
+ expectedIntervalSeconds?: number | null | undefined;
112
+ lastIngestAt?: string | null | undefined;
113
+ ftpUsername?: string | null | undefined;
106
114
  }, {
107
- type: "IP_CAMERA" | "WEBCAM" | "TRAIL_CAM" | "DRONE" | "PHONE";
115
+ type: "IP_CAMERA" | "WEBCAM" | "TRAIL_CAM" | "DRONE" | "PHONE" | "PTZ";
108
116
  status: "ERROR" | "MAINTENANCE" | "ONLINE" | "OFFLINE" | "RECORDING";
109
117
  id: string;
110
118
  name: string;
@@ -119,12 +127,16 @@ export declare const liveMonitorRouter: {
119
127
  lastFrameAt: string | null;
120
128
  fieldOfView: number | null;
121
129
  streamEnabled: boolean;
130
+ ingestMode?: "ftp_push" | "device_agent" | undefined;
131
+ expectedIntervalSeconds?: number | null | undefined;
132
+ lastIngestAt?: string | null | undefined;
133
+ ftpUsername?: string | null | undefined;
122
134
  }>, "many">;
123
135
  totalCameras: z.ZodNumber;
124
136
  }, "strip", z.ZodTypeAny, {
125
137
  farmId: string;
126
138
  cameras: {
127
- type: "IP_CAMERA" | "WEBCAM" | "TRAIL_CAM" | "DRONE" | "PHONE";
139
+ type: "IP_CAMERA" | "WEBCAM" | "TRAIL_CAM" | "DRONE" | "PHONE" | "PTZ";
128
140
  status: "ERROR" | "MAINTENANCE" | "ONLINE" | "OFFLINE" | "RECORDING";
129
141
  id: string;
130
142
  name: string;
@@ -139,12 +151,16 @@ export declare const liveMonitorRouter: {
139
151
  lastFrameAt: string | null;
140
152
  fieldOfView: number | null;
141
153
  streamEnabled: boolean;
154
+ ingestMode?: "ftp_push" | "device_agent" | undefined;
155
+ expectedIntervalSeconds?: number | null | undefined;
156
+ lastIngestAt?: string | null | undefined;
157
+ ftpUsername?: string | null | undefined;
142
158
  }[];
143
159
  totalCameras: number;
144
160
  }, {
145
161
  farmId: string;
146
162
  cameras: {
147
- type: "IP_CAMERA" | "WEBCAM" | "TRAIL_CAM" | "DRONE" | "PHONE";
163
+ type: "IP_CAMERA" | "WEBCAM" | "TRAIL_CAM" | "DRONE" | "PHONE" | "PTZ";
148
164
  status: "ERROR" | "MAINTENANCE" | "ONLINE" | "OFFLINE" | "RECORDING";
149
165
  id: string;
150
166
  name: string;
@@ -159,6 +175,10 @@ export declare const liveMonitorRouter: {
159
175
  lastFrameAt: string | null;
160
176
  fieldOfView: number | null;
161
177
  streamEnabled: boolean;
178
+ ingestMode?: "ftp_push" | "device_agent" | undefined;
179
+ expectedIntervalSeconds?: number | null | undefined;
180
+ lastIngestAt?: string | null | undefined;
181
+ ftpUsername?: string | null | undefined;
162
182
  }[];
163
183
  totalCameras: number;
164
184
  }>;
@@ -479,22 +499,22 @@ export declare const liveMonitorRouter: {
479
499
  resolution: z.ZodNullable<z.ZodString>;
480
500
  }, "strip", z.ZodTypeAny, {
481
501
  farmId: string;
502
+ imageUrl: string;
482
503
  capturedAt: string;
483
504
  resolution: string | null;
484
- imageUrl: string;
505
+ triggerType: "manual" | "scheduled" | "motion";
485
506
  cameraId: string;
486
507
  dataSaver: boolean;
487
508
  snapshotId: string;
488
- triggerType: "manual" | "scheduled" | "motion";
489
509
  }, {
490
510
  farmId: string;
511
+ imageUrl: string;
491
512
  capturedAt: string;
492
513
  resolution: string | null;
493
- imageUrl: string;
514
+ triggerType: "manual" | "scheduled" | "motion";
494
515
  cameraId: string;
495
516
  dataSaver: boolean;
496
517
  snapshotId: string;
497
- triggerType: "manual" | "scheduled" | "motion";
498
518
  }>;
499
519
  404: z.ZodObject<{
500
520
  message: z.ZodString;
@@ -1 +1 @@
1
- {"version":3,"file":"live-monitor.routes.d.ts","sourceRoot":"","sources":["../../src/routes/live-monitor.routes.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAexB,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiF5B,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,OAAO,iBAAiB,CAAC"}
1
+ {"version":3,"file":"live-monitor.routes.d.ts","sourceRoot":"","sources":["../../src/routes/live-monitor.routes.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAexB,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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