@deepintel-ltd/farmpro-contracts 1.5.9 → 1.5.10

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.
@@ -1252,7 +1252,14 @@ export declare const fieldMonitoringRouter: {
1252
1252
  };
1253
1253
  };
1254
1254
  getIntelligentSoilProfile: {
1255
- summary: "Get intelligent unified soil profile aggregating all data sources with LLM-powered recommendations";
1255
+ query: z.ZodObject<{
1256
+ forceRefresh: z.ZodEffects<z.ZodOptional<z.ZodString>, boolean, string | undefined>;
1257
+ }, "strip", z.ZodTypeAny, {
1258
+ forceRefresh: boolean;
1259
+ }, {
1260
+ forceRefresh?: string | undefined;
1261
+ }>;
1262
+ summary: "Get intelligent unified soil profile aggregating all data sources with LLM-powered recommendations. Cached for 2 days unless forceRefresh=true";
1256
1263
  method: "GET";
1257
1264
  path: "/farms/:farmId/fields/:fieldId/monitoring/soil/profile/intelligent";
1258
1265
  responses: {
@@ -1 +1 @@
1
- {"version":3,"file":"field-monitoring.routes.d.ts","sourceRoot":"","sources":["../../src/routes/field-monitoring.routes.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAoBxB,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsOhC,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,OAAO,qBAAqB,CAAC"}
@@ -204,11 +204,17 @@ export const fieldMonitoringRouter = c.router({
204
204
  getIntelligentSoilProfile: {
205
205
  method: 'GET',
206
206
  path: '/farms/:farmId/fields/:fieldId/monitoring/soil/profile/intelligent',
207
+ query: z.object({
208
+ forceRefresh: z
209
+ .string()
210
+ .optional()
211
+ .transform((val) => val === 'true' || val === '1'),
212
+ }),
207
213
  responses: {
208
214
  200: intelligentSoilProfileSchema,
209
215
  404: fieldMonitoringErrorResponseSchema,
210
216
  400: fieldMonitoringErrorResponseSchema,
211
217
  },
212
- summary: 'Get intelligent unified soil profile aggregating all data sources with LLM-powered recommendations',
218
+ summary: 'Get intelligent unified soil profile aggregating all data sources with LLM-powered recommendations. Cached for 2 days unless forceRefresh=true',
213
219
  },
214
220
  });
@@ -2549,5 +2549,311 @@ export declare const teamRouter: {
2549
2549
  }>;
2550
2550
  };
2551
2551
  };
2552
+ resendInvitation: {
2553
+ pathParams: z.ZodObject<{
2554
+ farmId: z.ZodString;
2555
+ id: z.ZodString;
2556
+ }, "strip", z.ZodTypeAny, {
2557
+ id: string;
2558
+ farmId: string;
2559
+ }, {
2560
+ id: string;
2561
+ farmId: string;
2562
+ }>;
2563
+ summary: "Resend team invitation";
2564
+ description: "Resend invitation email to a team member who has not yet accepted";
2565
+ method: "POST";
2566
+ body: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
2567
+ path: "/farms/:farmId/team/:id/resend-invitation";
2568
+ responses: {
2569
+ 200: z.ZodObject<{} & {
2570
+ meta: z.ZodObject<{
2571
+ message: z.ZodString;
2572
+ }, "strip", z.ZodTypeAny, {
2573
+ message: string;
2574
+ }, {
2575
+ message: string;
2576
+ }>;
2577
+ }, "strip", z.ZodTypeAny, {
2578
+ meta: {
2579
+ message: string;
2580
+ };
2581
+ }, {
2582
+ meta: {
2583
+ message: string;
2584
+ };
2585
+ }>;
2586
+ 400: z.ZodObject<{
2587
+ errors: z.ZodArray<z.ZodObject<{
2588
+ id: z.ZodOptional<z.ZodString>;
2589
+ links: z.ZodOptional<z.ZodObject<{
2590
+ about: z.ZodOptional<z.ZodString>;
2591
+ }, "strip", z.ZodTypeAny, {
2592
+ about?: string | undefined;
2593
+ }, {
2594
+ about?: string | undefined;
2595
+ }>>;
2596
+ status: z.ZodOptional<z.ZodString>;
2597
+ code: z.ZodOptional<z.ZodString>;
2598
+ title: z.ZodOptional<z.ZodString>;
2599
+ detail: z.ZodOptional<z.ZodString>;
2600
+ source: z.ZodOptional<z.ZodObject<{
2601
+ pointer: z.ZodOptional<z.ZodString>;
2602
+ parameter: z.ZodOptional<z.ZodString>;
2603
+ }, "strip", z.ZodTypeAny, {
2604
+ pointer?: string | undefined;
2605
+ parameter?: string | undefined;
2606
+ }, {
2607
+ pointer?: string | undefined;
2608
+ parameter?: string | undefined;
2609
+ }>>;
2610
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2611
+ }, "strip", z.ZodTypeAny, {
2612
+ status?: string | undefined;
2613
+ code?: string | undefined;
2614
+ id?: string | undefined;
2615
+ links?: {
2616
+ about?: string | undefined;
2617
+ } | undefined;
2618
+ meta?: Record<string, unknown> | undefined;
2619
+ title?: string | undefined;
2620
+ detail?: string | undefined;
2621
+ source?: {
2622
+ pointer?: string | undefined;
2623
+ parameter?: string | undefined;
2624
+ } | undefined;
2625
+ }, {
2626
+ status?: string | undefined;
2627
+ code?: string | undefined;
2628
+ id?: string | undefined;
2629
+ links?: {
2630
+ about?: string | undefined;
2631
+ } | undefined;
2632
+ meta?: Record<string, unknown> | undefined;
2633
+ title?: string | undefined;
2634
+ detail?: string | undefined;
2635
+ source?: {
2636
+ pointer?: string | undefined;
2637
+ parameter?: string | undefined;
2638
+ } | undefined;
2639
+ }>, "many">;
2640
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2641
+ }, "strip", z.ZodTypeAny, {
2642
+ errors: {
2643
+ status?: string | undefined;
2644
+ code?: string | undefined;
2645
+ id?: string | undefined;
2646
+ links?: {
2647
+ about?: string | undefined;
2648
+ } | undefined;
2649
+ meta?: Record<string, unknown> | undefined;
2650
+ title?: string | undefined;
2651
+ detail?: string | undefined;
2652
+ source?: {
2653
+ pointer?: string | undefined;
2654
+ parameter?: string | undefined;
2655
+ } | undefined;
2656
+ }[];
2657
+ meta?: Record<string, unknown> | undefined;
2658
+ }, {
2659
+ errors: {
2660
+ status?: string | undefined;
2661
+ code?: string | undefined;
2662
+ id?: string | undefined;
2663
+ links?: {
2664
+ about?: string | undefined;
2665
+ } | undefined;
2666
+ meta?: Record<string, unknown> | undefined;
2667
+ title?: string | undefined;
2668
+ detail?: string | undefined;
2669
+ source?: {
2670
+ pointer?: string | undefined;
2671
+ parameter?: string | undefined;
2672
+ } | undefined;
2673
+ }[];
2674
+ meta?: Record<string, unknown> | undefined;
2675
+ }>;
2676
+ 404: z.ZodObject<{
2677
+ errors: z.ZodArray<z.ZodObject<{
2678
+ id: z.ZodOptional<z.ZodString>;
2679
+ links: z.ZodOptional<z.ZodObject<{
2680
+ about: z.ZodOptional<z.ZodString>;
2681
+ }, "strip", z.ZodTypeAny, {
2682
+ about?: string | undefined;
2683
+ }, {
2684
+ about?: string | undefined;
2685
+ }>>;
2686
+ status: z.ZodOptional<z.ZodString>;
2687
+ code: z.ZodOptional<z.ZodString>;
2688
+ title: z.ZodOptional<z.ZodString>;
2689
+ detail: z.ZodOptional<z.ZodString>;
2690
+ source: z.ZodOptional<z.ZodObject<{
2691
+ pointer: z.ZodOptional<z.ZodString>;
2692
+ parameter: z.ZodOptional<z.ZodString>;
2693
+ }, "strip", z.ZodTypeAny, {
2694
+ pointer?: string | undefined;
2695
+ parameter?: string | undefined;
2696
+ }, {
2697
+ pointer?: string | undefined;
2698
+ parameter?: string | undefined;
2699
+ }>>;
2700
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2701
+ }, "strip", z.ZodTypeAny, {
2702
+ status?: string | undefined;
2703
+ code?: string | undefined;
2704
+ id?: string | undefined;
2705
+ links?: {
2706
+ about?: string | undefined;
2707
+ } | undefined;
2708
+ meta?: Record<string, unknown> | undefined;
2709
+ title?: string | undefined;
2710
+ detail?: string | undefined;
2711
+ source?: {
2712
+ pointer?: string | undefined;
2713
+ parameter?: string | undefined;
2714
+ } | undefined;
2715
+ }, {
2716
+ status?: string | undefined;
2717
+ code?: string | undefined;
2718
+ id?: string | undefined;
2719
+ links?: {
2720
+ about?: string | undefined;
2721
+ } | undefined;
2722
+ meta?: Record<string, unknown> | undefined;
2723
+ title?: string | undefined;
2724
+ detail?: string | undefined;
2725
+ source?: {
2726
+ pointer?: string | undefined;
2727
+ parameter?: string | undefined;
2728
+ } | undefined;
2729
+ }>, "many">;
2730
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2731
+ }, "strip", z.ZodTypeAny, {
2732
+ errors: {
2733
+ status?: string | undefined;
2734
+ code?: string | undefined;
2735
+ id?: string | undefined;
2736
+ links?: {
2737
+ about?: string | undefined;
2738
+ } | undefined;
2739
+ meta?: Record<string, unknown> | undefined;
2740
+ title?: string | undefined;
2741
+ detail?: string | undefined;
2742
+ source?: {
2743
+ pointer?: string | undefined;
2744
+ parameter?: string | undefined;
2745
+ } | undefined;
2746
+ }[];
2747
+ meta?: Record<string, unknown> | undefined;
2748
+ }, {
2749
+ errors: {
2750
+ status?: string | undefined;
2751
+ code?: string | undefined;
2752
+ id?: string | undefined;
2753
+ links?: {
2754
+ about?: string | undefined;
2755
+ } | undefined;
2756
+ meta?: Record<string, unknown> | undefined;
2757
+ title?: string | undefined;
2758
+ detail?: string | undefined;
2759
+ source?: {
2760
+ pointer?: string | undefined;
2761
+ parameter?: string | undefined;
2762
+ } | undefined;
2763
+ }[];
2764
+ meta?: Record<string, unknown> | undefined;
2765
+ }>;
2766
+ 401: z.ZodObject<{
2767
+ errors: z.ZodArray<z.ZodObject<{
2768
+ id: z.ZodOptional<z.ZodString>;
2769
+ links: z.ZodOptional<z.ZodObject<{
2770
+ about: z.ZodOptional<z.ZodString>;
2771
+ }, "strip", z.ZodTypeAny, {
2772
+ about?: string | undefined;
2773
+ }, {
2774
+ about?: string | undefined;
2775
+ }>>;
2776
+ status: z.ZodOptional<z.ZodString>;
2777
+ code: z.ZodOptional<z.ZodString>;
2778
+ title: z.ZodOptional<z.ZodString>;
2779
+ detail: z.ZodOptional<z.ZodString>;
2780
+ source: z.ZodOptional<z.ZodObject<{
2781
+ pointer: z.ZodOptional<z.ZodString>;
2782
+ parameter: z.ZodOptional<z.ZodString>;
2783
+ }, "strip", z.ZodTypeAny, {
2784
+ pointer?: string | undefined;
2785
+ parameter?: string | undefined;
2786
+ }, {
2787
+ pointer?: string | undefined;
2788
+ parameter?: string | undefined;
2789
+ }>>;
2790
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2791
+ }, "strip", z.ZodTypeAny, {
2792
+ status?: string | undefined;
2793
+ code?: string | undefined;
2794
+ id?: string | undefined;
2795
+ links?: {
2796
+ about?: string | undefined;
2797
+ } | undefined;
2798
+ meta?: Record<string, unknown> | undefined;
2799
+ title?: string | undefined;
2800
+ detail?: string | undefined;
2801
+ source?: {
2802
+ pointer?: string | undefined;
2803
+ parameter?: string | undefined;
2804
+ } | undefined;
2805
+ }, {
2806
+ status?: string | undefined;
2807
+ code?: string | undefined;
2808
+ id?: string | undefined;
2809
+ links?: {
2810
+ about?: string | undefined;
2811
+ } | undefined;
2812
+ meta?: Record<string, unknown> | undefined;
2813
+ title?: string | undefined;
2814
+ detail?: string | undefined;
2815
+ source?: {
2816
+ pointer?: string | undefined;
2817
+ parameter?: string | undefined;
2818
+ } | undefined;
2819
+ }>, "many">;
2820
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2821
+ }, "strip", z.ZodTypeAny, {
2822
+ errors: {
2823
+ status?: string | undefined;
2824
+ code?: string | undefined;
2825
+ id?: string | undefined;
2826
+ links?: {
2827
+ about?: string | undefined;
2828
+ } | undefined;
2829
+ meta?: Record<string, unknown> | undefined;
2830
+ title?: string | undefined;
2831
+ detail?: string | undefined;
2832
+ source?: {
2833
+ pointer?: string | undefined;
2834
+ parameter?: string | undefined;
2835
+ } | undefined;
2836
+ }[];
2837
+ meta?: Record<string, unknown> | undefined;
2838
+ }, {
2839
+ errors: {
2840
+ status?: string | undefined;
2841
+ code?: string | undefined;
2842
+ id?: string | undefined;
2843
+ links?: {
2844
+ about?: string | undefined;
2845
+ } | undefined;
2846
+ meta?: Record<string, unknown> | undefined;
2847
+ title?: string | undefined;
2848
+ detail?: string | undefined;
2849
+ source?: {
2850
+ pointer?: string | undefined;
2851
+ parameter?: string | undefined;
2852
+ } | undefined;
2853
+ }[];
2854
+ meta?: Record<string, unknown> | undefined;
2855
+ }>;
2856
+ };
2857
+ };
2552
2858
  };
2553
2859
  //# sourceMappingURL=team.routes.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"team.routes.d.ts","sourceRoot":"","sources":["../../src/routes/team.routes.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAmBxB,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmJrB,CAAC"}
@@ -118,4 +118,26 @@ export const teamRouter = c.router({
118
118
  summary: 'Accept team invitation',
119
119
  description: 'Accept a team invitation by token and link to user account',
120
120
  },
121
+ // Resend team invitation
122
+ resendInvitation: {
123
+ method: 'POST',
124
+ path: '/farms/:farmId/team/:id/resend-invitation',
125
+ pathParams: z.object({
126
+ farmId: z.string().uuid(),
127
+ id: z.string().uuid(),
128
+ }),
129
+ body: z.object({}),
130
+ responses: {
131
+ 200: jsonApiSuccessResponseSchema.merge(z.object({
132
+ meta: z.object({
133
+ message: z.string(),
134
+ }),
135
+ })),
136
+ 400: jsonApiErrorResponseSchema,
137
+ 404: jsonApiErrorResponseSchema,
138
+ 401: jsonApiErrorResponseSchema,
139
+ },
140
+ summary: 'Resend team invitation',
141
+ description: 'Resend invitation email to a team member who has not yet accepted',
142
+ },
121
143
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deepintel-ltd/farmpro-contracts",
3
- "version": "1.5.9",
3
+ "version": "1.5.10",
4
4
  "description": "Type-safe API contracts for FarmPro API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",