@deepintel-ltd/farmpro-contracts 1.16.15 → 1.18.0

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 (47) hide show
  1. package/dist/index.d.ts +4 -1
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +3 -0
  4. package/dist/routes/accounting.routes.d.ts +13861 -0
  5. package/dist/routes/accounting.routes.d.ts.map +1 -0
  6. package/dist/routes/accounting.routes.js +448 -0
  7. package/dist/routes/commodity-deals.routes.d.ts +48 -48
  8. package/dist/routes/farms.routes.d.ts +523 -70
  9. package/dist/routes/farms.routes.d.ts.map +1 -1
  10. package/dist/routes/field-activities.routes.d.ts +32 -32
  11. package/dist/routes/finance.routes.d.ts +235 -38
  12. package/dist/routes/finance.routes.d.ts.map +1 -1
  13. package/dist/routes/index.d.ts +3 -0
  14. package/dist/routes/index.d.ts.map +1 -1
  15. package/dist/routes/index.js +2 -0
  16. package/dist/routes/live-monitor.routes.d.ts +4 -4
  17. package/dist/routes/monitoring-visualization.routes.d.ts +16 -10
  18. package/dist/routes/monitoring-visualization.routes.d.ts.map +1 -1
  19. package/dist/routes/payments.routes.d.ts +22 -22
  20. package/dist/routes/staff.routes.d.ts +36 -36
  21. package/dist/routes/subscriptions.routes.d.ts +52 -16
  22. package/dist/routes/subscriptions.routes.d.ts.map +1 -1
  23. package/dist/routes/subscriptions.routes.js +2 -1
  24. package/dist/schemas/accounting.schemas.d.ts +6002 -0
  25. package/dist/schemas/accounting.schemas.d.ts.map +1 -0
  26. package/dist/schemas/accounting.schemas.js +341 -0
  27. package/dist/schemas/commodity-deals.schemas.d.ts +24 -24
  28. package/dist/schemas/farms.schemas.d.ts +610 -84
  29. package/dist/schemas/farms.schemas.d.ts.map +1 -1
  30. package/dist/schemas/farms.schemas.js +25 -4
  31. package/dist/schemas/field-activities.schemas.d.ts +28 -28
  32. package/dist/schemas/finance.schemas.d.ts +304 -46
  33. package/dist/schemas/finance.schemas.d.ts.map +1 -1
  34. package/dist/schemas/finance.schemas.js +23 -9
  35. package/dist/schemas/live-monitor.schemas.d.ts +6 -6
  36. package/dist/schemas/locale.schemas.d.ts +98 -0
  37. package/dist/schemas/locale.schemas.d.ts.map +1 -0
  38. package/dist/schemas/locale.schemas.js +55 -0
  39. package/dist/schemas/monitoring-visualization.schemas.d.ts +43 -12
  40. package/dist/schemas/monitoring-visualization.schemas.d.ts.map +1 -1
  41. package/dist/schemas/monitoring-visualization.schemas.js +5 -1
  42. package/dist/schemas/payments.schemas.d.ts +22 -22
  43. package/dist/schemas/staff.schemas.d.ts +30 -30
  44. package/dist/schemas/subscriptions.schemas.d.ts +77 -13
  45. package/dist/schemas/subscriptions.schemas.d.ts.map +1 -1
  46. package/dist/schemas/subscriptions.schemas.js +11 -10
  47. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"farms.schemas.d.ts","sourceRoot":"","sources":["../../src/schemas/farms.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAUxB;;GAEG;AAGH,eAAO,MAAM,cAAc,2BAAyB,CAAC;AAGrD,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;IAM/B,yDAAyD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEjC,CAAC;AAG3B,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAMrC,CAAC;AAGH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAuC,CAAC;AAG/E,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAG3B,CAAC;AAGH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAI3B,CAAC;AAGH,eAAO,MAAM,kBAAkB;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGpC,CAAC;AAEH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;YA5GvC,yDAAyD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiIzD,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAC9D,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAC9E,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC5E,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC"}
@@ -1,11 +1,12 @@
1
1
  import { z } from 'zod';
2
2
  import { geoJSONGeometrySchema, timestampsSchema, createJsonApiResourceSchema, jsonApiSingleResponseSchema, jsonApiCollectionResponseSchema } from './common.schemas';
3
3
  import { teamMemberRoleSchema } from './team.schemas';
4
+ import { iso4217CurrencySchema, countryCodeSchema, unitSystemSchema, areaUnitSchema, } from './locale.schemas';
4
5
  /**
5
6
  * Farm schemas - JSON:API compliant
6
7
  */
7
- // Currency enum for supported currencies
8
- export const currencySchema = z.enum(['NGN', 'USD']);
8
+ // Currency ISO 4217 codes supported by RegionPacks
9
+ export const currencySchema = iso4217CurrencySchema;
9
10
  // Farm attributes schema (for JSON:API attributes object)
10
11
  export const farmAttributesSchema = z.object({
11
12
  name: z.string().min(1).max(100),
@@ -13,6 +14,15 @@ export const farmAttributesSchema = z.object({
13
14
  size: z.number().nullable(),
14
15
  boundary: geoJSONGeometrySchema.nullable(),
15
16
  currency: currencySchema,
17
+ countryCode: countryCodeSchema,
18
+ regionCode: z.string().max(20).nullable(),
19
+ subRegionCode: z.string().max(100).nullable(),
20
+ timezone: z.string().min(1).max(64),
21
+ locale: z.string().min(2).max(10),
22
+ unitSystem: unitSystemSchema,
23
+ areaUnit: areaUnitSchema,
24
+ lat: z.number().min(-90).max(90).nullable(),
25
+ lng: z.number().min(-180).max(180).nullable(),
16
26
  /** Current user's team role on this farm, when known. */
17
27
  myTeamRole: teamMemberRoleSchema.nullable().optional(),
18
28
  }).merge(timestampsSchema);
@@ -22,7 +32,16 @@ export const createFarmAttributesSchema = z.object({
22
32
  location: z.string().min(1),
23
33
  size: z.number().positive().optional(),
24
34
  boundary: geoJSONGeometrySchema.optional(),
25
- currency: currencySchema.optional().default('NGN'),
35
+ currency: currencySchema.optional(),
36
+ countryCode: countryCodeSchema.optional(),
37
+ regionCode: z.string().max(20).optional(),
38
+ subRegionCode: z.string().max(100).optional(),
39
+ timezone: z.string().min(1).max(64).optional(),
40
+ locale: z.string().min(2).max(10).optional(),
41
+ unitSystem: unitSystemSchema.optional(),
42
+ areaUnit: areaUnitSchema.optional(),
43
+ lat: z.number().min(-90).max(90).optional(),
44
+ lng: z.number().min(-180).max(180).optional(),
26
45
  });
27
46
  // Farm attributes for update (input)
28
47
  export const updateFarmAttributesSchema = createFarmAttributesSchema.partial();
@@ -78,10 +97,11 @@ export const onboardingFirstFieldSchema = z.object({
78
97
  });
79
98
  export const farmOnboardingAttributesSchema = z.object({
80
99
  name: z.string().min(1).max(100),
100
+ countryCode: countryCodeSchema.optional().default('NG'),
81
101
  location: farmLocationSchema,
82
102
  boundary: geoJSONGeometrySchema,
83
103
  firstField: onboardingFirstFieldSchema,
84
- currency: currencySchema.optional().default('NGN'),
104
+ currency: currencySchema.optional(),
85
105
  });
86
106
  export const farmOnboardingInputSchema = z.object({
87
107
  type: z.literal('farm-onboarding'),
@@ -106,5 +126,6 @@ export const farmOnboardingResponseSchema = z.object({
106
126
  meta: z.object({
107
127
  onboardingCompleted: z.boolean(),
108
128
  location: farmLocationSchema,
129
+ countryCode: countryCodeSchema.optional(),
109
130
  }),
110
131
  });
@@ -20,7 +20,7 @@ export declare const fieldActivityAttributesSchema: z.ZodObject<{
20
20
  updatedAt: z.ZodString;
21
21
  }, "strip", z.ZodTypeAny, {
22
22
  type: "weeding" | "fertilizer";
23
- source: "manual" | "agent" | "whatsapp";
23
+ source: "whatsapp" | "manual" | "agent";
24
24
  createdAt: string;
25
25
  updatedAt: string;
26
26
  method: string | null;
@@ -36,7 +36,7 @@ export declare const fieldActivityAttributesSchema: z.ZodObject<{
36
36
  fieldName?: string | undefined;
37
37
  }, {
38
38
  type: "weeding" | "fertilizer";
39
- source: "manual" | "agent" | "whatsapp";
39
+ source: "whatsapp" | "manual" | "agent";
40
40
  createdAt: string;
41
41
  updatedAt: string;
42
42
  method: string | null;
@@ -67,7 +67,7 @@ export declare const createFieldActivityAttributesSchema: z.ZodEffects<z.ZodObje
67
67
  type: "weeding" | "fertilizer";
68
68
  occurredAt: string;
69
69
  fieldId: string;
70
- source?: "manual" | "agent" | "whatsapp" | undefined;
70
+ source?: "whatsapp" | "manual" | "agent" | undefined;
71
71
  method?: string | undefined;
72
72
  notes?: string | undefined;
73
73
  quantity?: number | undefined;
@@ -79,7 +79,7 @@ export declare const createFieldActivityAttributesSchema: z.ZodEffects<z.ZodObje
79
79
  type: "weeding" | "fertilizer";
80
80
  occurredAt: string;
81
81
  fieldId: string;
82
- source?: "manual" | "agent" | "whatsapp" | undefined;
82
+ source?: "whatsapp" | "manual" | "agent" | undefined;
83
83
  method?: string | undefined;
84
84
  notes?: string | undefined;
85
85
  quantity?: number | undefined;
@@ -91,7 +91,7 @@ export declare const createFieldActivityAttributesSchema: z.ZodEffects<z.ZodObje
91
91
  type: "weeding" | "fertilizer";
92
92
  occurredAt: string;
93
93
  fieldId: string;
94
- source?: "manual" | "agent" | "whatsapp" | undefined;
94
+ source?: "whatsapp" | "manual" | "agent" | undefined;
95
95
  method?: string | undefined;
96
96
  notes?: string | undefined;
97
97
  quantity?: number | undefined;
@@ -103,7 +103,7 @@ export declare const createFieldActivityAttributesSchema: z.ZodEffects<z.ZodObje
103
103
  type: "weeding" | "fertilizer";
104
104
  occurredAt: string;
105
105
  fieldId: string;
106
- source?: "manual" | "agent" | "whatsapp" | undefined;
106
+ source?: "whatsapp" | "manual" | "agent" | undefined;
107
107
  method?: string | undefined;
108
108
  notes?: string | undefined;
109
109
  quantity?: number | undefined;
@@ -158,7 +158,7 @@ export declare const createFieldActivitySchema: z.ZodObject<{
158
158
  type: "weeding" | "fertilizer";
159
159
  occurredAt: string;
160
160
  fieldId: string;
161
- source?: "manual" | "agent" | "whatsapp" | undefined;
161
+ source?: "whatsapp" | "manual" | "agent" | undefined;
162
162
  method?: string | undefined;
163
163
  notes?: string | undefined;
164
164
  quantity?: number | undefined;
@@ -170,7 +170,7 @@ export declare const createFieldActivitySchema: z.ZodObject<{
170
170
  type: "weeding" | "fertilizer";
171
171
  occurredAt: string;
172
172
  fieldId: string;
173
- source?: "manual" | "agent" | "whatsapp" | undefined;
173
+ source?: "whatsapp" | "manual" | "agent" | undefined;
174
174
  method?: string | undefined;
175
175
  notes?: string | undefined;
176
176
  quantity?: number | undefined;
@@ -182,7 +182,7 @@ export declare const createFieldActivitySchema: z.ZodObject<{
182
182
  type: "weeding" | "fertilizer";
183
183
  occurredAt: string;
184
184
  fieldId: string;
185
- source?: "manual" | "agent" | "whatsapp" | undefined;
185
+ source?: "whatsapp" | "manual" | "agent" | undefined;
186
186
  method?: string | undefined;
187
187
  notes?: string | undefined;
188
188
  quantity?: number | undefined;
@@ -194,7 +194,7 @@ export declare const createFieldActivitySchema: z.ZodObject<{
194
194
  type: "weeding" | "fertilizer";
195
195
  occurredAt: string;
196
196
  fieldId: string;
197
- source?: "manual" | "agent" | "whatsapp" | undefined;
197
+ source?: "whatsapp" | "manual" | "agent" | undefined;
198
198
  method?: string | undefined;
199
199
  notes?: string | undefined;
200
200
  quantity?: number | undefined;
@@ -209,7 +209,7 @@ export declare const createFieldActivitySchema: z.ZodObject<{
209
209
  type: "weeding" | "fertilizer";
210
210
  occurredAt: string;
211
211
  fieldId: string;
212
- source?: "manual" | "agent" | "whatsapp" | undefined;
212
+ source?: "whatsapp" | "manual" | "agent" | undefined;
213
213
  method?: string | undefined;
214
214
  notes?: string | undefined;
215
215
  quantity?: number | undefined;
@@ -224,7 +224,7 @@ export declare const createFieldActivitySchema: z.ZodObject<{
224
224
  type: "weeding" | "fertilizer";
225
225
  occurredAt: string;
226
226
  fieldId: string;
227
- source?: "manual" | "agent" | "whatsapp" | undefined;
227
+ source?: "whatsapp" | "manual" | "agent" | undefined;
228
228
  method?: string | undefined;
229
229
  notes?: string | undefined;
230
230
  quantity?: number | undefined;
@@ -314,7 +314,7 @@ export declare const fieldActivityResourceSchema: z.ZodObject<{
314
314
  updatedAt: z.ZodString;
315
315
  }, "strip", z.ZodTypeAny, {
316
316
  type: "weeding" | "fertilizer";
317
- source: "manual" | "agent" | "whatsapp";
317
+ source: "whatsapp" | "manual" | "agent";
318
318
  createdAt: string;
319
319
  updatedAt: string;
320
320
  method: string | null;
@@ -330,7 +330,7 @@ export declare const fieldActivityResourceSchema: z.ZodObject<{
330
330
  fieldName?: string | undefined;
331
331
  }, {
332
332
  type: "weeding" | "fertilizer";
333
- source: "manual" | "agent" | "whatsapp";
333
+ source: "whatsapp" | "manual" | "agent";
334
334
  createdAt: string;
335
335
  updatedAt: string;
336
336
  method: string | null;
@@ -353,7 +353,7 @@ export declare const fieldActivityResourceSchema: z.ZodObject<{
353
353
  id: string;
354
354
  attributes: {
355
355
  type: "weeding" | "fertilizer";
356
- source: "manual" | "agent" | "whatsapp";
356
+ source: "whatsapp" | "manual" | "agent";
357
357
  createdAt: string;
358
358
  updatedAt: string;
359
359
  method: string | null;
@@ -376,7 +376,7 @@ export declare const fieldActivityResourceSchema: z.ZodObject<{
376
376
  id: string;
377
377
  attributes: {
378
378
  type: "weeding" | "fertilizer";
379
- source: "manual" | "agent" | "whatsapp";
379
+ source: "whatsapp" | "manual" | "agent";
380
380
  createdAt: string;
381
381
  updatedAt: string;
382
382
  method: string | null;
@@ -418,7 +418,7 @@ export declare const fieldActivityResponseSchema: z.ZodObject<{
418
418
  updatedAt: z.ZodString;
419
419
  }, "strip", z.ZodTypeAny, {
420
420
  type: "weeding" | "fertilizer";
421
- source: "manual" | "agent" | "whatsapp";
421
+ source: "whatsapp" | "manual" | "agent";
422
422
  createdAt: string;
423
423
  updatedAt: string;
424
424
  method: string | null;
@@ -434,7 +434,7 @@ export declare const fieldActivityResponseSchema: z.ZodObject<{
434
434
  fieldName?: string | undefined;
435
435
  }, {
436
436
  type: "weeding" | "fertilizer";
437
- source: "manual" | "agent" | "whatsapp";
437
+ source: "whatsapp" | "manual" | "agent";
438
438
  createdAt: string;
439
439
  updatedAt: string;
440
440
  method: string | null;
@@ -457,7 +457,7 @@ export declare const fieldActivityResponseSchema: z.ZodObject<{
457
457
  id: string;
458
458
  attributes: {
459
459
  type: "weeding" | "fertilizer";
460
- source: "manual" | "agent" | "whatsapp";
460
+ source: "whatsapp" | "manual" | "agent";
461
461
  createdAt: string;
462
462
  updatedAt: string;
463
463
  method: string | null;
@@ -480,7 +480,7 @@ export declare const fieldActivityResponseSchema: z.ZodObject<{
480
480
  id: string;
481
481
  attributes: {
482
482
  type: "weeding" | "fertilizer";
483
- source: "manual" | "agent" | "whatsapp";
483
+ source: "whatsapp" | "manual" | "agent";
484
484
  createdAt: string;
485
485
  updatedAt: string;
486
486
  method: string | null;
@@ -529,7 +529,7 @@ export declare const fieldActivityResponseSchema: z.ZodObject<{
529
529
  id: string;
530
530
  attributes: {
531
531
  type: "weeding" | "fertilizer";
532
- source: "manual" | "agent" | "whatsapp";
532
+ source: "whatsapp" | "manual" | "agent";
533
533
  createdAt: string;
534
534
  updatedAt: string;
535
535
  method: string | null;
@@ -564,7 +564,7 @@ export declare const fieldActivityResponseSchema: z.ZodObject<{
564
564
  id: string;
565
565
  attributes: {
566
566
  type: "weeding" | "fertilizer";
567
- source: "manual" | "agent" | "whatsapp";
567
+ source: "whatsapp" | "manual" | "agent";
568
568
  createdAt: string;
569
569
  updatedAt: string;
570
570
  method: string | null;
@@ -617,7 +617,7 @@ export declare const fieldActivityListResponseSchema: z.ZodObject<{
617
617
  updatedAt: z.ZodString;
618
618
  }, "strip", z.ZodTypeAny, {
619
619
  type: "weeding" | "fertilizer";
620
- source: "manual" | "agent" | "whatsapp";
620
+ source: "whatsapp" | "manual" | "agent";
621
621
  createdAt: string;
622
622
  updatedAt: string;
623
623
  method: string | null;
@@ -633,7 +633,7 @@ export declare const fieldActivityListResponseSchema: z.ZodObject<{
633
633
  fieldName?: string | undefined;
634
634
  }, {
635
635
  type: "weeding" | "fertilizer";
636
- source: "manual" | "agent" | "whatsapp";
636
+ source: "whatsapp" | "manual" | "agent";
637
637
  createdAt: string;
638
638
  updatedAt: string;
639
639
  method: string | null;
@@ -656,7 +656,7 @@ export declare const fieldActivityListResponseSchema: z.ZodObject<{
656
656
  id: string;
657
657
  attributes: {
658
658
  type: "weeding" | "fertilizer";
659
- source: "manual" | "agent" | "whatsapp";
659
+ source: "whatsapp" | "manual" | "agent";
660
660
  createdAt: string;
661
661
  updatedAt: string;
662
662
  method: string | null;
@@ -679,7 +679,7 @@ export declare const fieldActivityListResponseSchema: z.ZodObject<{
679
679
  id: string;
680
680
  attributes: {
681
681
  type: "weeding" | "fertilizer";
682
- source: "manual" | "agent" | "whatsapp";
682
+ source: "whatsapp" | "manual" | "agent";
683
683
  createdAt: string;
684
684
  updatedAt: string;
685
685
  method: string | null;
@@ -728,7 +728,7 @@ export declare const fieldActivityListResponseSchema: z.ZodObject<{
728
728
  id: string;
729
729
  attributes: {
730
730
  type: "weeding" | "fertilizer";
731
- source: "manual" | "agent" | "whatsapp";
731
+ source: "whatsapp" | "manual" | "agent";
732
732
  createdAt: string;
733
733
  updatedAt: string;
734
734
  method: string | null;
@@ -763,7 +763,7 @@ export declare const fieldActivityListResponseSchema: z.ZodObject<{
763
763
  id: string;
764
764
  attributes: {
765
765
  type: "weeding" | "fertilizer";
766
- source: "manual" | "agent" | "whatsapp";
766
+ source: "whatsapp" | "manual" | "agent";
767
767
  createdAt: string;
768
768
  updatedAt: string;
769
769
  method: string | null;