@deepintel-ltd/farmpro-contracts 1.5.12 → 1.5.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"agents.schemas.d.ts","sourceRoot":"","sources":["../../src/schemas/agents.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB;;GAEG;AAGH,eAAO,MAAM,iBAAiB,kCAAgC,CAAC;AAG/D,eAAO,MAAM,yBAAyB;;;;;;;;;EAGpC,CAAC;AAGH,eAAO,MAAM,oBAAoB;;;;;;;;;EAG/B,CAAC;AAGH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQtC,CAAC;AAGH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAG5B,CAAC;AAGH,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;EAI5C,CAAC;AAGH,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAG3C,CAAC;AAGF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEnC,CAAC;AAGF,eAAO,MAAM,gCAAgC;;;;;;;;;;;;EAI3C,CAAC;AAGH,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAG9C,CAAC;AAGH,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;E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CAAC,CAAC;AAC1F,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AACtF,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AACtF,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qCAAqC,CAAC,CAAC;AACpG,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC"}
@@ -75,3 +75,37 @@ export const conversationListAttributesSchema = z.object({
75
75
  export const conversationListResourceSchema = createJsonApiResourceSchema('conversation-lists', conversationListAttributesSchema);
76
76
  // Conversation list response
77
77
  export const conversationListResponseSchema = jsonApiSingleResponseSchema(conversationListResourceSchema);
78
+ // Survey GeoJSON schemas
79
+ export const geojsonCrsSchema = z.object({
80
+ type: z.literal('name'),
81
+ properties: z.object({
82
+ name: z.string(),
83
+ }),
84
+ });
85
+ export const geojsonPolygonGeometrySchema = z.object({
86
+ type: z.literal('Polygon'),
87
+ coordinates: z.array(z.array(z.tuple([z.number(), z.number()]))), // [[[lon, lat], [lon, lat], ...]]
88
+ });
89
+ export const geojsonFeatureSchema = z.object({
90
+ type: z.literal('Feature'),
91
+ properties: z.object({
92
+ name: z.string(),
93
+ area_hectares: z.number(),
94
+ data_note: z.string().optional(),
95
+ }),
96
+ geometry: geojsonPolygonGeometrySchema,
97
+ });
98
+ export const geojsonFeatureCollectionSchema = z.object({
99
+ type: z.literal('FeatureCollection'),
100
+ crs: geojsonCrsSchema,
101
+ features: z.array(geojsonFeatureSchema),
102
+ });
103
+ // Survey GeoJSON response attributes
104
+ export const surveyGeoJsonResponseAttributesSchema = z.object({
105
+ geojson: geojsonFeatureCollectionSchema,
106
+ processingNotes: z.string().optional(),
107
+ });
108
+ // Survey GeoJSON response resource
109
+ export const surveyGeoJsonResponseResourceSchema = createJsonApiResourceSchema('survey-geojson-responses', surveyGeoJsonResponseAttributesSchema);
110
+ // Survey GeoJSON response
111
+ export const surveyGeoJsonResponseSchema = jsonApiSingleResponseSchema(surveyGeoJsonResponseResourceSchema);
@@ -1541,6 +1541,15 @@ export declare const intelligentSoilProfileSchema: z.ZodObject<{
1541
1541
  confidence?: number | undefined;
1542
1542
  }[] | undefined;
1543
1543
  };
1544
+ properties: {
1545
+ texture: {
1546
+ sand: number;
1547
+ silt: number;
1548
+ clay: number;
1549
+ classification: string;
1550
+ };
1551
+ bulkDensity: number;
1552
+ };
1544
1553
  quality: {
1545
1554
  overall: "critical" | "poor" | "fair" | "good" | "excellent";
1546
1555
  score: number;
@@ -1628,15 +1637,6 @@ export declare const intelligentSoilProfileSchema: z.ZodObject<{
1628
1637
  sourceId?: string | undefined;
1629
1638
  };
1630
1639
  };
1631
- properties: {
1632
- texture: {
1633
- sand: number;
1634
- silt: number;
1635
- clay: number;
1636
- classification: string;
1637
- };
1638
- bulkDensity: number;
1639
- };
1640
1640
  dataSources: Record<string, {
1641
1641
  date: string;
1642
1642
  source: "manual" | "regional_api" | "global_api" | "predicted";
@@ -1727,6 +1727,15 @@ export declare const intelligentSoilProfileSchema: z.ZodObject<{
1727
1727
  confidence?: number | undefined;
1728
1728
  }[] | undefined;
1729
1729
  };
1730
+ properties: {
1731
+ texture: {
1732
+ sand: number;
1733
+ silt: number;
1734
+ clay: number;
1735
+ classification: string;
1736
+ };
1737
+ bulkDensity: number;
1738
+ };
1730
1739
  quality: {
1731
1740
  overall: "critical" | "poor" | "fair" | "good" | "excellent";
1732
1741
  score: number;
@@ -1814,15 +1823,6 @@ export declare const intelligentSoilProfileSchema: z.ZodObject<{
1814
1823
  sourceId?: string | undefined;
1815
1824
  };
1816
1825
  };
1817
- properties: {
1818
- texture: {
1819
- sand: number;
1820
- silt: number;
1821
- clay: number;
1822
- classification: string;
1823
- };
1824
- bulkDensity: number;
1825
- };
1826
1826
  dataSources: Record<string, {
1827
1827
  date: string;
1828
1828
  source: "manual" | "regional_api" | "global_api" | "predicted";
@@ -2816,32 +2816,36 @@ export declare const observationListResponseSchema: z.ZodObject<{
2816
2816
  }[] | undefined;
2817
2817
  }>;
2818
2818
  export declare const observationListQuerySchema: z.ZodObject<{
2819
- fieldId: z.ZodOptional<z.ZodString>;
2820
- status: z.ZodOptional<z.ZodEnum<["pending", "processing", "completed", "failed"]>>;
2821
- observationType: z.ZodOptional<z.ZodString>;
2822
- severity: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "critical"]>>;
2823
- startDate: z.ZodOptional<z.ZodString>;
2824
- endDate: z.ZodOptional<z.ZodString>;
2825
- page: z.ZodDefault<z.ZodString>;
2826
- pageSize: z.ZodDefault<z.ZodString>;
2819
+ 'page[number]': z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
2820
+ 'page[size]': z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
2821
+ 'filter[startDate]': z.ZodOptional<z.ZodString>;
2822
+ 'filter[endDate]': z.ZodOptional<z.ZodString>;
2823
+ 'filter[crop]': z.ZodOptional<z.ZodString>;
2824
+ } & {
2825
+ 'filter[fieldId]': z.ZodOptional<z.ZodString>;
2826
+ 'filter[status]': z.ZodOptional<z.ZodEnum<["pending", "processing", "completed", "failed"]>>;
2827
+ 'filter[observationType]': z.ZodOptional<z.ZodString>;
2828
+ 'filter[severity]': z.ZodOptional<z.ZodEnum<["low", "medium", "high", "critical"]>>;
2827
2829
  }, "strip", z.ZodTypeAny, {
2828
- pageSize: string;
2829
- page: string;
2830
- status?: "pending" | "completed" | "failed" | "processing" | undefined;
2831
- fieldId?: string | undefined;
2832
- severity?: "critical" | "low" | "medium" | "high" | undefined;
2833
- startDate?: string | undefined;
2834
- endDate?: string | undefined;
2835
- observationType?: string | undefined;
2830
+ 'page[number]'?: number | undefined;
2831
+ 'page[size]'?: number | undefined;
2832
+ 'filter[startDate]'?: string | undefined;
2833
+ 'filter[endDate]'?: string | undefined;
2834
+ 'filter[status]'?: "pending" | "completed" | "failed" | "processing" | undefined;
2835
+ 'filter[crop]'?: string | undefined;
2836
+ 'filter[fieldId]'?: string | undefined;
2837
+ 'filter[observationType]'?: string | undefined;
2838
+ 'filter[severity]'?: "critical" | "low" | "medium" | "high" | undefined;
2836
2839
  }, {
2837
- status?: "pending" | "completed" | "failed" | "processing" | undefined;
2838
- pageSize?: string | undefined;
2839
- fieldId?: string | undefined;
2840
- severity?: "critical" | "low" | "medium" | "high" | undefined;
2841
- startDate?: string | undefined;
2842
- endDate?: string | undefined;
2843
- observationType?: string | undefined;
2844
- page?: string | undefined;
2840
+ 'page[number]'?: number | undefined;
2841
+ 'page[size]'?: number | undefined;
2842
+ 'filter[startDate]'?: string | undefined;
2843
+ 'filter[endDate]'?: string | undefined;
2844
+ 'filter[status]'?: "pending" | "completed" | "failed" | "processing" | undefined;
2845
+ 'filter[crop]'?: string | undefined;
2846
+ 'filter[fieldId]'?: string | undefined;
2847
+ 'filter[observationType]'?: string | undefined;
2848
+ 'filter[severity]'?: "critical" | "low" | "medium" | "high" | undefined;
2845
2849
  }>;
2846
2850
  export declare const observationStatsQuerySchema: z.ZodObject<{
2847
2851
  startDate: z.ZodOptional<z.ZodString>;
@@ -2862,5 +2866,15 @@ export type UpdateObservationActionInput = z.infer<typeof updateObservationActio
2862
2866
  export type ObservationResponse = z.infer<typeof observationResponseSchema>;
2863
2867
  export type ObservationListResponse = z.infer<typeof observationListResponseSchema>;
2864
2868
  export type ObservationListQuery = z.infer<typeof observationListQuerySchema>;
2869
+ export type ObservationListQueryInternal = {
2870
+ page: number;
2871
+ pageSize: number;
2872
+ fieldId?: string;
2873
+ status?: 'pending' | 'processing' | 'completed' | 'failed';
2874
+ observationType?: string;
2875
+ severity?: 'low' | 'medium' | 'high' | 'critical';
2876
+ startDate?: string;
2877
+ endDate?: string;
2878
+ };
2865
2879
  export type ObservationStatsQuery = z.infer<typeof observationStatsQuerySchema>;
2866
2880
  //# sourceMappingURL=field-observations.schemas.d.ts.map
@@ -1 +1 @@
1
-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AAG,MAAM,GAAG,UAAU,CAAC;IAClD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AACF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { timestampsSchema, createJsonApiResourceSchema, jsonApiSingleResponseSchema, jsonApiCollectionResponseSchema, } from './common.schemas';
2
+ import { timestampsSchema, createJsonApiResourceSchema, jsonApiSingleResponseSchema, jsonApiCollectionResponseSchema, jsonApiPaginationQuerySchema, jsonApiFilterQuerySchema, } from './common.schemas';
3
3
  import { recommendationSchema } from './recommendations.schemas';
4
4
  /**
5
5
  * Field Observation schemas - JSON:API compliant
@@ -144,16 +144,14 @@ export const updateObservationActionInputSchema = createJsonApiResourceSchema('o
144
144
  export const observationResponseSchema = jsonApiSingleResponseSchema(observationResourceSchema);
145
145
  export const observationListResponseSchema = jsonApiCollectionResponseSchema(observationResourceSchema);
146
146
  // Query schemas
147
- export const observationListQuerySchema = z.object({
148
- fieldId: z.string().uuid().optional(),
149
- status: z.enum(['pending', 'processing', 'completed', 'failed']).optional(),
150
- observationType: z.string().optional(),
151
- severity: z.enum(['low', 'medium', 'high', 'critical']).optional(),
152
- startDate: z.string().datetime().optional(),
153
- endDate: z.string().datetime().optional(),
154
- page: z.string().default('1'),
155
- pageSize: z.string().default('20'),
156
- });
147
+ export const observationListQuerySchema = jsonApiPaginationQuerySchema
148
+ .merge(jsonApiFilterQuerySchema)
149
+ .merge(z.object({
150
+ 'filter[fieldId]': z.string().uuid().optional(),
151
+ 'filter[status]': z.enum(['pending', 'processing', 'completed', 'failed']).optional(),
152
+ 'filter[observationType]': z.string().optional(),
153
+ 'filter[severity]': z.enum(['low', 'medium', 'high', 'critical']).optional(),
154
+ }));
157
155
  export const observationStatsQuerySchema = z.object({
158
156
  startDate: z.string().datetime().optional(),
159
157
  endDate: z.string().datetime().optional(),
@@ -3,11 +3,15 @@ import { z } from 'zod';
3
3
  * Finance schemas - JSON:API compliant
4
4
  */
5
5
  export declare const expenseAllocationTypeSchema: z.ZodEnum<["field", "crop", "general"]>;
6
+ export declare const budgetPeriodSchema: z.ZodEnum<["monthly", "quarterly", "annual", "custom", "legacy"]>;
6
7
  export declare const budgetAttributesSchema: z.ZodObject<{
7
8
  category: z.ZodString;
8
9
  planned: z.ZodNumber;
9
10
  actual: z.ZodOptional<z.ZodNumber>;
10
11
  remaining: z.ZodOptional<z.ZodNumber>;
12
+ startDate: z.ZodString;
13
+ endDate: z.ZodString;
14
+ period: z.ZodOptional<z.ZodEnum<["monthly", "quarterly", "annual", "custom", "legacy"]>>;
11
15
  } & {
12
16
  createdAt: z.ZodString;
13
17
  updatedAt: z.ZodString;
@@ -16,35 +20,59 @@ export declare const budgetAttributesSchema: z.ZodObject<{
16
20
  updatedAt: string;
17
21
  category: string;
18
22
  planned: number;
23
+ startDate: string;
24
+ endDate: string;
19
25
  actual?: number | undefined;
20
26
  remaining?: number | undefined;
27
+ period?: "custom" | "monthly" | "quarterly" | "annual" | "legacy" | undefined;
21
28
  }, {
22
29
  createdAt: string;
23
30
  updatedAt: string;
24
31
  category: string;
25
32
  planned: number;
33
+ startDate: string;
34
+ endDate: string;
26
35
  actual?: number | undefined;
27
36
  remaining?: number | undefined;
37
+ period?: "custom" | "monthly" | "quarterly" | "annual" | "legacy" | undefined;
28
38
  }>;
29
39
  export declare const createBudgetAttributesSchema: z.ZodObject<{
30
40
  category: z.ZodString;
31
41
  planned: z.ZodNumber;
42
+ startDate: z.ZodString;
43
+ endDate: z.ZodString;
44
+ period: z.ZodOptional<z.ZodEnum<["monthly", "quarterly", "annual", "custom", "legacy"]>>;
32
45
  }, "strip", z.ZodTypeAny, {
33
46
  category: string;
34
47
  planned: number;
48
+ startDate: string;
49
+ endDate: string;
50
+ period?: "custom" | "monthly" | "quarterly" | "annual" | "legacy" | undefined;
35
51
  }, {
36
52
  category: string;
37
53
  planned: number;
54
+ startDate: string;
55
+ endDate: string;
56
+ period?: "custom" | "monthly" | "quarterly" | "annual" | "legacy" | undefined;
38
57
  }>;
39
58
  export declare const updateBudgetAttributesSchema: z.ZodObject<{
40
59
  category: z.ZodOptional<z.ZodString>;
41
60
  planned: z.ZodOptional<z.ZodNumber>;
61
+ startDate: z.ZodOptional<z.ZodString>;
62
+ endDate: z.ZodOptional<z.ZodString>;
63
+ period: z.ZodOptional<z.ZodEnum<["monthly", "quarterly", "annual", "custom", "legacy"]>>;
42
64
  }, "strip", z.ZodTypeAny, {
43
65
  category?: string | undefined;
44
66
  planned?: number | undefined;
67
+ startDate?: string | undefined;
68
+ endDate?: string | undefined;
69
+ period?: "custom" | "monthly" | "quarterly" | "annual" | "legacy" | undefined;
45
70
  }, {
46
71
  category?: string | undefined;
47
72
  planned?: number | undefined;
73
+ startDate?: string | undefined;
74
+ endDate?: string | undefined;
75
+ period?: "custom" | "monthly" | "quarterly" | "annual" | "legacy" | undefined;
48
76
  }>;
49
77
  export declare const expenseAttributesSchema: z.ZodObject<{
50
78
  date: z.ZodString;
@@ -258,24 +286,39 @@ export declare const createBudgetSchema: z.ZodObject<{
258
286
  attributes: z.ZodObject<{
259
287
  category: z.ZodString;
260
288
  planned: z.ZodNumber;
289
+ startDate: z.ZodString;
290
+ endDate: z.ZodString;
291
+ period: z.ZodOptional<z.ZodEnum<["monthly", "quarterly", "annual", "custom", "legacy"]>>;
261
292
  }, "strip", z.ZodTypeAny, {
262
293
  category: string;
263
294
  planned: number;
295
+ startDate: string;
296
+ endDate: string;
297
+ period?: "custom" | "monthly" | "quarterly" | "annual" | "legacy" | undefined;
264
298
  }, {
265
299
  category: string;
266
300
  planned: number;
301
+ startDate: string;
302
+ endDate: string;
303
+ period?: "custom" | "monthly" | "quarterly" | "annual" | "legacy" | undefined;
267
304
  }>;
268
305
  }, "strip", z.ZodTypeAny, {
269
306
  type: "budgets";
270
307
  attributes: {
271
308
  category: string;
272
309
  planned: number;
310
+ startDate: string;
311
+ endDate: string;
312
+ period?: "custom" | "monthly" | "quarterly" | "annual" | "legacy" | undefined;
273
313
  };
274
314
  }, {
275
315
  type: "budgets";
276
316
  attributes: {
277
317
  category: string;
278
318
  planned: number;
319
+ startDate: string;
320
+ endDate: string;
321
+ period?: "custom" | "monthly" | "quarterly" | "annual" | "legacy" | undefined;
279
322
  };
280
323
  }>;
281
324
  export declare const updateBudgetSchema: z.ZodObject<{
@@ -284,12 +327,21 @@ export declare const updateBudgetSchema: z.ZodObject<{
284
327
  attributes: z.ZodObject<{
285
328
  category: z.ZodOptional<z.ZodString>;
286
329
  planned: z.ZodOptional<z.ZodNumber>;
330
+ startDate: z.ZodOptional<z.ZodString>;
331
+ endDate: z.ZodOptional<z.ZodString>;
332
+ period: z.ZodOptional<z.ZodEnum<["monthly", "quarterly", "annual", "custom", "legacy"]>>;
287
333
  }, "strip", z.ZodTypeAny, {
288
334
  category?: string | undefined;
289
335
  planned?: number | undefined;
336
+ startDate?: string | undefined;
337
+ endDate?: string | undefined;
338
+ period?: "custom" | "monthly" | "quarterly" | "annual" | "legacy" | undefined;
290
339
  }, {
291
340
  category?: string | undefined;
292
341
  planned?: number | undefined;
342
+ startDate?: string | undefined;
343
+ endDate?: string | undefined;
344
+ period?: "custom" | "monthly" | "quarterly" | "annual" | "legacy" | undefined;
293
345
  }>;
294
346
  }, "strip", z.ZodTypeAny, {
295
347
  type: "budgets";
@@ -297,6 +349,9 @@ export declare const updateBudgetSchema: z.ZodObject<{
297
349
  attributes: {
298
350
  category?: string | undefined;
299
351
  planned?: number | undefined;
352
+ startDate?: string | undefined;
353
+ endDate?: string | undefined;
354
+ period?: "custom" | "monthly" | "quarterly" | "annual" | "legacy" | undefined;
300
355
  };
301
356
  }, {
302
357
  type: "budgets";
@@ -304,6 +359,9 @@ export declare const updateBudgetSchema: z.ZodObject<{
304
359
  attributes: {
305
360
  category?: string | undefined;
306
361
  planned?: number | undefined;
362
+ startDate?: string | undefined;
363
+ endDate?: string | undefined;
364
+ period?: "custom" | "monthly" | "quarterly" | "annual" | "legacy" | undefined;
307
365
  };
308
366
  }>;
309
367
  export declare const createExpenseSchema: z.ZodObject<{
@@ -556,6 +614,9 @@ export declare const budgetResourceSchema: z.ZodObject<{
556
614
  planned: z.ZodNumber;
557
615
  actual: z.ZodOptional<z.ZodNumber>;
558
616
  remaining: z.ZodOptional<z.ZodNumber>;
617
+ startDate: z.ZodString;
618
+ endDate: z.ZodString;
619
+ period: z.ZodOptional<z.ZodEnum<["monthly", "quarterly", "annual", "custom", "legacy"]>>;
559
620
  } & {
560
621
  createdAt: z.ZodString;
561
622
  updatedAt: z.ZodString;
@@ -564,15 +625,21 @@ export declare const budgetResourceSchema: z.ZodObject<{
564
625
  updatedAt: string;
565
626
  category: string;
566
627
  planned: number;
628
+ startDate: string;
629
+ endDate: string;
567
630
  actual?: number | undefined;
568
631
  remaining?: number | undefined;
632
+ period?: "custom" | "monthly" | "quarterly" | "annual" | "legacy" | undefined;
569
633
  }, {
570
634
  createdAt: string;
571
635
  updatedAt: string;
572
636
  category: string;
573
637
  planned: number;
638
+ startDate: string;
639
+ endDate: string;
574
640
  actual?: number | undefined;
575
641
  remaining?: number | undefined;
642
+ period?: "custom" | "monthly" | "quarterly" | "annual" | "legacy" | undefined;
576
643
  }>;
577
644
  relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
578
645
  links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -585,8 +652,11 @@ export declare const budgetResourceSchema: z.ZodObject<{
585
652
  updatedAt: string;
586
653
  category: string;
587
654
  planned: number;
655
+ startDate: string;
656
+ endDate: string;
588
657
  actual?: number | undefined;
589
658
  remaining?: number | undefined;
659
+ period?: "custom" | "monthly" | "quarterly" | "annual" | "legacy" | undefined;
590
660
  };
591
661
  relationships?: Record<string, unknown> | undefined;
592
662
  links?: Record<string, string> | undefined;
@@ -599,8 +669,11 @@ export declare const budgetResourceSchema: z.ZodObject<{
599
669
  updatedAt: string;
600
670
  category: string;
601
671
  planned: number;
672
+ startDate: string;
673
+ endDate: string;
602
674
  actual?: number | undefined;
603
675
  remaining?: number | undefined;
676
+ period?: "custom" | "monthly" | "quarterly" | "annual" | "legacy" | undefined;
604
677
  };
605
678
  relationships?: Record<string, unknown> | undefined;
606
679
  links?: Record<string, string> | undefined;
@@ -1080,6 +1153,9 @@ export declare const budgetResponseSchema: z.ZodObject<{
1080
1153
  planned: z.ZodNumber;
1081
1154
  actual: z.ZodOptional<z.ZodNumber>;
1082
1155
  remaining: z.ZodOptional<z.ZodNumber>;
1156
+ startDate: z.ZodString;
1157
+ endDate: z.ZodString;
1158
+ period: z.ZodOptional<z.ZodEnum<["monthly", "quarterly", "annual", "custom", "legacy"]>>;
1083
1159
  } & {
1084
1160
  createdAt: z.ZodString;
1085
1161
  updatedAt: z.ZodString;
@@ -1088,15 +1164,21 @@ export declare const budgetResponseSchema: z.ZodObject<{
1088
1164
  updatedAt: string;
1089
1165
  category: string;
1090
1166
  planned: number;
1167
+ startDate: string;
1168
+ endDate: string;
1091
1169
  actual?: number | undefined;
1092
1170
  remaining?: number | undefined;
1171
+ period?: "custom" | "monthly" | "quarterly" | "annual" | "legacy" | undefined;
1093
1172
  }, {
1094
1173
  createdAt: string;
1095
1174
  updatedAt: string;
1096
1175
  category: string;
1097
1176
  planned: number;
1177
+ startDate: string;
1178
+ endDate: string;
1098
1179
  actual?: number | undefined;
1099
1180
  remaining?: number | undefined;
1181
+ period?: "custom" | "monthly" | "quarterly" | "annual" | "legacy" | undefined;
1100
1182
  }>;
1101
1183
  relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1102
1184
  links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -1109,8 +1191,11 @@ export declare const budgetResponseSchema: z.ZodObject<{
1109
1191
  updatedAt: string;
1110
1192
  category: string;
1111
1193
  planned: number;
1194
+ startDate: string;
1195
+ endDate: string;
1112
1196
  actual?: number | undefined;
1113
1197
  remaining?: number | undefined;
1198
+ period?: "custom" | "monthly" | "quarterly" | "annual" | "legacy" | undefined;
1114
1199
  };
1115
1200
  relationships?: Record<string, unknown> | undefined;
1116
1201
  links?: Record<string, string> | undefined;
@@ -1123,8 +1208,11 @@ export declare const budgetResponseSchema: z.ZodObject<{
1123
1208
  updatedAt: string;
1124
1209
  category: string;
1125
1210
  planned: number;
1211
+ startDate: string;
1212
+ endDate: string;
1126
1213
  actual?: number | undefined;
1127
1214
  remaining?: number | undefined;
1215
+ period?: "custom" | "monthly" | "quarterly" | "annual" | "legacy" | undefined;
1128
1216
  };
1129
1217
  relationships?: Record<string, unknown> | undefined;
1130
1218
  links?: Record<string, string> | undefined;
@@ -1163,8 +1251,11 @@ export declare const budgetResponseSchema: z.ZodObject<{
1163
1251
  updatedAt: string;
1164
1252
  category: string;
1165
1253
  planned: number;
1254
+ startDate: string;
1255
+ endDate: string;
1166
1256
  actual?: number | undefined;
1167
1257
  remaining?: number | undefined;
1258
+ period?: "custom" | "monthly" | "quarterly" | "annual" | "legacy" | undefined;
1168
1259
  };
1169
1260
  relationships?: Record<string, unknown> | undefined;
1170
1261
  links?: Record<string, string> | undefined;
@@ -1189,8 +1280,11 @@ export declare const budgetResponseSchema: z.ZodObject<{
1189
1280
  updatedAt: string;
1190
1281
  category: string;
1191
1282
  planned: number;
1283
+ startDate: string;
1284
+ endDate: string;
1192
1285
  actual?: number | undefined;
1193
1286
  remaining?: number | undefined;
1287
+ period?: "custom" | "monthly" | "quarterly" | "annual" | "legacy" | undefined;
1194
1288
  };
1195
1289
  relationships?: Record<string, unknown> | undefined;
1196
1290
  links?: Record<string, string> | undefined;
@@ -1216,6 +1310,9 @@ export declare const budgetListResponseSchema: z.ZodObject<{
1216
1310
  planned: z.ZodNumber;
1217
1311
  actual: z.ZodOptional<z.ZodNumber>;
1218
1312
  remaining: z.ZodOptional<z.ZodNumber>;
1313
+ startDate: z.ZodString;
1314
+ endDate: z.ZodString;
1315
+ period: z.ZodOptional<z.ZodEnum<["monthly", "quarterly", "annual", "custom", "legacy"]>>;
1219
1316
  } & {
1220
1317
  createdAt: z.ZodString;
1221
1318
  updatedAt: z.ZodString;
@@ -1224,15 +1321,21 @@ export declare const budgetListResponseSchema: z.ZodObject<{
1224
1321
  updatedAt: string;
1225
1322
  category: string;
1226
1323
  planned: number;
1324
+ startDate: string;
1325
+ endDate: string;
1227
1326
  actual?: number | undefined;
1228
1327
  remaining?: number | undefined;
1328
+ period?: "custom" | "monthly" | "quarterly" | "annual" | "legacy" | undefined;
1229
1329
  }, {
1230
1330
  createdAt: string;
1231
1331
  updatedAt: string;
1232
1332
  category: string;
1233
1333
  planned: number;
1334
+ startDate: string;
1335
+ endDate: string;
1234
1336
  actual?: number | undefined;
1235
1337
  remaining?: number | undefined;
1338
+ period?: "custom" | "monthly" | "quarterly" | "annual" | "legacy" | undefined;
1236
1339
  }>;
1237
1340
  relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1238
1341
  links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -1245,8 +1348,11 @@ export declare const budgetListResponseSchema: z.ZodObject<{
1245
1348
  updatedAt: string;
1246
1349
  category: string;
1247
1350
  planned: number;
1351
+ startDate: string;
1352
+ endDate: string;
1248
1353
  actual?: number | undefined;
1249
1354
  remaining?: number | undefined;
1355
+ period?: "custom" | "monthly" | "quarterly" | "annual" | "legacy" | undefined;
1250
1356
  };
1251
1357
  relationships?: Record<string, unknown> | undefined;
1252
1358
  links?: Record<string, string> | undefined;
@@ -1259,8 +1365,11 @@ export declare const budgetListResponseSchema: z.ZodObject<{
1259
1365
  updatedAt: string;
1260
1366
  category: string;
1261
1367
  planned: number;
1368
+ startDate: string;
1369
+ endDate: string;
1262
1370
  actual?: number | undefined;
1263
1371
  remaining?: number | undefined;
1372
+ period?: "custom" | "monthly" | "quarterly" | "annual" | "legacy" | undefined;
1264
1373
  };
1265
1374
  relationships?: Record<string, unknown> | undefined;
1266
1375
  links?: Record<string, string> | undefined;
@@ -1299,8 +1408,11 @@ export declare const budgetListResponseSchema: z.ZodObject<{
1299
1408
  updatedAt: string;
1300
1409
  category: string;
1301
1410
  planned: number;
1411
+ startDate: string;
1412
+ endDate: string;
1302
1413
  actual?: number | undefined;
1303
1414
  remaining?: number | undefined;
1415
+ period?: "custom" | "monthly" | "quarterly" | "annual" | "legacy" | undefined;
1304
1416
  };
1305
1417
  relationships?: Record<string, unknown> | undefined;
1306
1418
  links?: Record<string, string> | undefined;
@@ -1325,8 +1437,11 @@ export declare const budgetListResponseSchema: z.ZodObject<{
1325
1437
  updatedAt: string;
1326
1438
  category: string;
1327
1439
  planned: number;
1440
+ startDate: string;
1441
+ endDate: string;
1328
1442
  actual?: number | undefined;
1329
1443
  remaining?: number | undefined;
1444
+ period?: "custom" | "monthly" | "quarterly" | "annual" | "legacy" | undefined;
1330
1445
  };
1331
1446
  relationships?: Record<string, unknown> | undefined;
1332
1447
  links?: Record<string, string> | undefined;
@@ -2837,6 +2952,7 @@ export declare const financeSummaryResponseSchema: z.ZodObject<{
2837
2952
  }[] | undefined;
2838
2953
  }>;
2839
2954
  export type ExpenseAllocationType = z.infer<typeof expenseAllocationTypeSchema>;
2955
+ export type BudgetPeriod = z.infer<typeof budgetPeriodSchema>;
2840
2956
  export type CreateBudgetAttributes = z.infer<typeof createBudgetAttributesSchema>;
2841
2957
  export type UpdateBudgetAttributes = z.infer<typeof updateBudgetAttributesSchema>;
2842
2958
  export type CreateExpenseAttributes = z.infer<typeof createExpenseAttributesSchema>;