@deepintel-ltd/farmpro-contracts 1.5.9 → 1.5.11

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
  });
@@ -2213,68 +2213,701 @@ export declare const teamRouter: {
2213
2213
  }>;
2214
2214
  };
2215
2215
  };
2216
+ checkInvitationStatus: {
2217
+ query: z.ZodObject<{
2218
+ token: z.ZodString;
2219
+ }, "strip", z.ZodTypeAny, {
2220
+ token: string;
2221
+ }, {
2222
+ token: string;
2223
+ }>;
2224
+ summary: "Check invitation status";
2225
+ description: "Check if invitation is valid and if user exists";
2226
+ method: "GET";
2227
+ path: "/team/invitations/check";
2228
+ responses: {
2229
+ 200: z.ZodObject<{} & {
2230
+ meta: z.ZodObject<{
2231
+ email: z.ZodString;
2232
+ name: z.ZodString;
2233
+ userExists: z.ZodBoolean;
2234
+ farmName: z.ZodOptional<z.ZodString>;
2235
+ }, "strip", z.ZodTypeAny, {
2236
+ email: string;
2237
+ name: string;
2238
+ userExists: boolean;
2239
+ farmName?: string | undefined;
2240
+ }, {
2241
+ email: string;
2242
+ name: string;
2243
+ userExists: boolean;
2244
+ farmName?: string | undefined;
2245
+ }>;
2246
+ }, "strip", z.ZodTypeAny, {
2247
+ meta: {
2248
+ email: string;
2249
+ name: string;
2250
+ userExists: boolean;
2251
+ farmName?: string | undefined;
2252
+ };
2253
+ }, {
2254
+ meta: {
2255
+ email: string;
2256
+ name: string;
2257
+ userExists: boolean;
2258
+ farmName?: string | undefined;
2259
+ };
2260
+ }>;
2261
+ 400: z.ZodObject<{
2262
+ errors: z.ZodArray<z.ZodObject<{
2263
+ id: z.ZodOptional<z.ZodString>;
2264
+ links: z.ZodOptional<z.ZodObject<{
2265
+ about: z.ZodOptional<z.ZodString>;
2266
+ }, "strip", z.ZodTypeAny, {
2267
+ about?: string | undefined;
2268
+ }, {
2269
+ about?: string | undefined;
2270
+ }>>;
2271
+ status: z.ZodOptional<z.ZodString>;
2272
+ code: z.ZodOptional<z.ZodString>;
2273
+ title: z.ZodOptional<z.ZodString>;
2274
+ detail: z.ZodOptional<z.ZodString>;
2275
+ source: z.ZodOptional<z.ZodObject<{
2276
+ pointer: z.ZodOptional<z.ZodString>;
2277
+ parameter: z.ZodOptional<z.ZodString>;
2278
+ }, "strip", z.ZodTypeAny, {
2279
+ pointer?: string | undefined;
2280
+ parameter?: string | undefined;
2281
+ }, {
2282
+ pointer?: string | undefined;
2283
+ parameter?: string | undefined;
2284
+ }>>;
2285
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2286
+ }, "strip", z.ZodTypeAny, {
2287
+ status?: string | undefined;
2288
+ code?: string | undefined;
2289
+ id?: string | undefined;
2290
+ links?: {
2291
+ about?: string | undefined;
2292
+ } | undefined;
2293
+ meta?: Record<string, unknown> | undefined;
2294
+ title?: string | undefined;
2295
+ detail?: string | undefined;
2296
+ source?: {
2297
+ pointer?: string | undefined;
2298
+ parameter?: string | undefined;
2299
+ } | undefined;
2300
+ }, {
2301
+ status?: string | undefined;
2302
+ code?: string | undefined;
2303
+ id?: string | undefined;
2304
+ links?: {
2305
+ about?: string | undefined;
2306
+ } | undefined;
2307
+ meta?: Record<string, unknown> | undefined;
2308
+ title?: string | undefined;
2309
+ detail?: string | undefined;
2310
+ source?: {
2311
+ pointer?: string | undefined;
2312
+ parameter?: string | undefined;
2313
+ } | undefined;
2314
+ }>, "many">;
2315
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2316
+ }, "strip", z.ZodTypeAny, {
2317
+ errors: {
2318
+ status?: string | undefined;
2319
+ code?: string | undefined;
2320
+ id?: string | undefined;
2321
+ links?: {
2322
+ about?: string | undefined;
2323
+ } | undefined;
2324
+ meta?: Record<string, unknown> | undefined;
2325
+ title?: string | undefined;
2326
+ detail?: string | undefined;
2327
+ source?: {
2328
+ pointer?: string | undefined;
2329
+ parameter?: string | undefined;
2330
+ } | undefined;
2331
+ }[];
2332
+ meta?: Record<string, unknown> | undefined;
2333
+ }, {
2334
+ errors: {
2335
+ status?: string | undefined;
2336
+ code?: string | undefined;
2337
+ id?: string | undefined;
2338
+ links?: {
2339
+ about?: string | undefined;
2340
+ } | undefined;
2341
+ meta?: Record<string, unknown> | undefined;
2342
+ title?: string | undefined;
2343
+ detail?: string | undefined;
2344
+ source?: {
2345
+ pointer?: string | undefined;
2346
+ parameter?: string | undefined;
2347
+ } | undefined;
2348
+ }[];
2349
+ meta?: Record<string, unknown> | undefined;
2350
+ }>;
2351
+ 401: z.ZodObject<{
2352
+ errors: z.ZodArray<z.ZodObject<{
2353
+ id: z.ZodOptional<z.ZodString>;
2354
+ links: z.ZodOptional<z.ZodObject<{
2355
+ about: z.ZodOptional<z.ZodString>;
2356
+ }, "strip", z.ZodTypeAny, {
2357
+ about?: string | undefined;
2358
+ }, {
2359
+ about?: string | undefined;
2360
+ }>>;
2361
+ status: z.ZodOptional<z.ZodString>;
2362
+ code: z.ZodOptional<z.ZodString>;
2363
+ title: z.ZodOptional<z.ZodString>;
2364
+ detail: z.ZodOptional<z.ZodString>;
2365
+ source: z.ZodOptional<z.ZodObject<{
2366
+ pointer: z.ZodOptional<z.ZodString>;
2367
+ parameter: z.ZodOptional<z.ZodString>;
2368
+ }, "strip", z.ZodTypeAny, {
2369
+ pointer?: string | undefined;
2370
+ parameter?: string | undefined;
2371
+ }, {
2372
+ pointer?: string | undefined;
2373
+ parameter?: string | undefined;
2374
+ }>>;
2375
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2376
+ }, "strip", z.ZodTypeAny, {
2377
+ status?: string | undefined;
2378
+ code?: string | undefined;
2379
+ id?: string | undefined;
2380
+ links?: {
2381
+ about?: string | undefined;
2382
+ } | undefined;
2383
+ meta?: Record<string, unknown> | undefined;
2384
+ title?: string | undefined;
2385
+ detail?: string | undefined;
2386
+ source?: {
2387
+ pointer?: string | undefined;
2388
+ parameter?: string | undefined;
2389
+ } | undefined;
2390
+ }, {
2391
+ status?: string | undefined;
2392
+ code?: string | undefined;
2393
+ id?: string | undefined;
2394
+ links?: {
2395
+ about?: string | undefined;
2396
+ } | undefined;
2397
+ meta?: Record<string, unknown> | undefined;
2398
+ title?: string | undefined;
2399
+ detail?: string | undefined;
2400
+ source?: {
2401
+ pointer?: string | undefined;
2402
+ parameter?: string | undefined;
2403
+ } | undefined;
2404
+ }>, "many">;
2405
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2406
+ }, "strip", z.ZodTypeAny, {
2407
+ errors: {
2408
+ status?: string | undefined;
2409
+ code?: string | undefined;
2410
+ id?: string | undefined;
2411
+ links?: {
2412
+ about?: string | undefined;
2413
+ } | undefined;
2414
+ meta?: Record<string, unknown> | undefined;
2415
+ title?: string | undefined;
2416
+ detail?: string | undefined;
2417
+ source?: {
2418
+ pointer?: string | undefined;
2419
+ parameter?: string | undefined;
2420
+ } | undefined;
2421
+ }[];
2422
+ meta?: Record<string, unknown> | undefined;
2423
+ }, {
2424
+ errors: {
2425
+ status?: string | undefined;
2426
+ code?: string | undefined;
2427
+ id?: string | undefined;
2428
+ links?: {
2429
+ about?: string | undefined;
2430
+ } | undefined;
2431
+ meta?: Record<string, unknown> | undefined;
2432
+ title?: string | undefined;
2433
+ detail?: string | undefined;
2434
+ source?: {
2435
+ pointer?: string | undefined;
2436
+ parameter?: string | undefined;
2437
+ } | undefined;
2438
+ }[];
2439
+ meta?: Record<string, unknown> | undefined;
2440
+ }>;
2441
+ 404: z.ZodObject<{
2442
+ errors: z.ZodArray<z.ZodObject<{
2443
+ id: z.ZodOptional<z.ZodString>;
2444
+ links: z.ZodOptional<z.ZodObject<{
2445
+ about: z.ZodOptional<z.ZodString>;
2446
+ }, "strip", z.ZodTypeAny, {
2447
+ about?: string | undefined;
2448
+ }, {
2449
+ about?: string | undefined;
2450
+ }>>;
2451
+ status: z.ZodOptional<z.ZodString>;
2452
+ code: z.ZodOptional<z.ZodString>;
2453
+ title: z.ZodOptional<z.ZodString>;
2454
+ detail: z.ZodOptional<z.ZodString>;
2455
+ source: z.ZodOptional<z.ZodObject<{
2456
+ pointer: z.ZodOptional<z.ZodString>;
2457
+ parameter: z.ZodOptional<z.ZodString>;
2458
+ }, "strip", z.ZodTypeAny, {
2459
+ pointer?: string | undefined;
2460
+ parameter?: string | undefined;
2461
+ }, {
2462
+ pointer?: string | undefined;
2463
+ parameter?: string | undefined;
2464
+ }>>;
2465
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2466
+ }, "strip", z.ZodTypeAny, {
2467
+ status?: string | undefined;
2468
+ code?: string | undefined;
2469
+ id?: string | undefined;
2470
+ links?: {
2471
+ about?: string | undefined;
2472
+ } | undefined;
2473
+ meta?: Record<string, unknown> | undefined;
2474
+ title?: string | undefined;
2475
+ detail?: string | undefined;
2476
+ source?: {
2477
+ pointer?: string | undefined;
2478
+ parameter?: string | undefined;
2479
+ } | undefined;
2480
+ }, {
2481
+ status?: string | undefined;
2482
+ code?: string | undefined;
2483
+ id?: string | undefined;
2484
+ links?: {
2485
+ about?: string | undefined;
2486
+ } | undefined;
2487
+ meta?: Record<string, unknown> | undefined;
2488
+ title?: string | undefined;
2489
+ detail?: string | undefined;
2490
+ source?: {
2491
+ pointer?: string | undefined;
2492
+ parameter?: string | undefined;
2493
+ } | undefined;
2494
+ }>, "many">;
2495
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2496
+ }, "strip", z.ZodTypeAny, {
2497
+ errors: {
2498
+ status?: string | undefined;
2499
+ code?: string | undefined;
2500
+ id?: string | undefined;
2501
+ links?: {
2502
+ about?: string | undefined;
2503
+ } | undefined;
2504
+ meta?: Record<string, unknown> | undefined;
2505
+ title?: string | undefined;
2506
+ detail?: string | undefined;
2507
+ source?: {
2508
+ pointer?: string | undefined;
2509
+ parameter?: string | undefined;
2510
+ } | undefined;
2511
+ }[];
2512
+ meta?: Record<string, unknown> | undefined;
2513
+ }, {
2514
+ errors: {
2515
+ status?: string | undefined;
2516
+ code?: string | undefined;
2517
+ id?: string | undefined;
2518
+ links?: {
2519
+ about?: string | undefined;
2520
+ } | undefined;
2521
+ meta?: Record<string, unknown> | undefined;
2522
+ title?: string | undefined;
2523
+ detail?: string | undefined;
2524
+ source?: {
2525
+ pointer?: string | undefined;
2526
+ parameter?: string | undefined;
2527
+ } | undefined;
2528
+ }[];
2529
+ meta?: Record<string, unknown> | undefined;
2530
+ }>;
2531
+ };
2532
+ };
2216
2533
  acceptInvitation: {
2217
2534
  summary: "Accept team invitation";
2218
- description: "Accept a team invitation by token and link to user account";
2535
+ description: "Accept a team invitation by token. If user exists, password is required. If user does not exist, password will be used to create account.";
2219
2536
  method: "POST";
2220
2537
  body: z.ZodObject<{
2221
2538
  data: z.ZodObject<{
2222
2539
  attributes: z.ZodObject<{
2223
2540
  token: z.ZodString;
2541
+ password: z.ZodOptional<z.ZodString>;
2542
+ }, "strip", z.ZodTypeAny, {
2543
+ token: string;
2544
+ password?: string | undefined;
2545
+ }, {
2546
+ token: string;
2547
+ password?: string | undefined;
2548
+ }>;
2549
+ }, "strip", z.ZodTypeAny, {
2550
+ attributes: {
2551
+ token: string;
2552
+ password?: string | undefined;
2553
+ };
2554
+ }, {
2555
+ attributes: {
2556
+ token: string;
2557
+ password?: string | undefined;
2558
+ };
2559
+ }>;
2560
+ }, "strip", z.ZodTypeAny, {
2561
+ data: {
2562
+ attributes: {
2563
+ token: string;
2564
+ password?: string | undefined;
2565
+ };
2566
+ };
2567
+ }, {
2568
+ data: {
2569
+ attributes: {
2570
+ token: string;
2571
+ password?: string | undefined;
2572
+ };
2573
+ };
2574
+ }>;
2575
+ path: "/team/invitations/accept";
2576
+ responses: {
2577
+ 200: z.ZodObject<{} & {
2578
+ meta: z.ZodObject<{
2579
+ message: z.ZodString;
2580
+ farmId: z.ZodString;
2581
+ memberId: z.ZodString;
2582
+ }, "strip", z.ZodTypeAny, {
2583
+ message: string;
2584
+ farmId: string;
2585
+ memberId: string;
2586
+ }, {
2587
+ message: string;
2588
+ farmId: string;
2589
+ memberId: string;
2590
+ }>;
2591
+ data: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
2592
+ }, "strip", z.ZodTypeAny, {
2593
+ meta: {
2594
+ message: string;
2595
+ farmId: string;
2596
+ memberId: string;
2597
+ };
2598
+ data?: any[] | undefined;
2599
+ }, {
2600
+ meta: {
2601
+ message: string;
2602
+ farmId: string;
2603
+ memberId: string;
2604
+ };
2605
+ data?: any[] | undefined;
2606
+ }>;
2607
+ 400: z.ZodObject<{
2608
+ errors: z.ZodArray<z.ZodObject<{
2609
+ id: z.ZodOptional<z.ZodString>;
2610
+ links: z.ZodOptional<z.ZodObject<{
2611
+ about: z.ZodOptional<z.ZodString>;
2612
+ }, "strip", z.ZodTypeAny, {
2613
+ about?: string | undefined;
2614
+ }, {
2615
+ about?: string | undefined;
2616
+ }>>;
2617
+ status: z.ZodOptional<z.ZodString>;
2618
+ code: z.ZodOptional<z.ZodString>;
2619
+ title: z.ZodOptional<z.ZodString>;
2620
+ detail: z.ZodOptional<z.ZodString>;
2621
+ source: z.ZodOptional<z.ZodObject<{
2622
+ pointer: z.ZodOptional<z.ZodString>;
2623
+ parameter: z.ZodOptional<z.ZodString>;
2624
+ }, "strip", z.ZodTypeAny, {
2625
+ pointer?: string | undefined;
2626
+ parameter?: string | undefined;
2627
+ }, {
2628
+ pointer?: string | undefined;
2629
+ parameter?: string | undefined;
2630
+ }>>;
2631
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2632
+ }, "strip", z.ZodTypeAny, {
2633
+ status?: string | undefined;
2634
+ code?: string | undefined;
2635
+ id?: string | undefined;
2636
+ links?: {
2637
+ about?: string | undefined;
2638
+ } | undefined;
2639
+ meta?: Record<string, unknown> | undefined;
2640
+ title?: string | undefined;
2641
+ detail?: string | undefined;
2642
+ source?: {
2643
+ pointer?: string | undefined;
2644
+ parameter?: string | undefined;
2645
+ } | undefined;
2646
+ }, {
2647
+ status?: string | undefined;
2648
+ code?: string | undefined;
2649
+ id?: string | undefined;
2650
+ links?: {
2651
+ about?: string | undefined;
2652
+ } | undefined;
2653
+ meta?: Record<string, unknown> | undefined;
2654
+ title?: string | undefined;
2655
+ detail?: string | undefined;
2656
+ source?: {
2657
+ pointer?: string | undefined;
2658
+ parameter?: string | undefined;
2659
+ } | undefined;
2660
+ }>, "many">;
2661
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2662
+ }, "strip", z.ZodTypeAny, {
2663
+ errors: {
2664
+ status?: string | undefined;
2665
+ code?: string | undefined;
2666
+ id?: string | undefined;
2667
+ links?: {
2668
+ about?: string | undefined;
2669
+ } | undefined;
2670
+ meta?: Record<string, unknown> | undefined;
2671
+ title?: string | undefined;
2672
+ detail?: string | undefined;
2673
+ source?: {
2674
+ pointer?: string | undefined;
2675
+ parameter?: string | undefined;
2676
+ } | undefined;
2677
+ }[];
2678
+ meta?: Record<string, unknown> | undefined;
2679
+ }, {
2680
+ errors: {
2681
+ status?: string | undefined;
2682
+ code?: string | undefined;
2683
+ id?: string | undefined;
2684
+ links?: {
2685
+ about?: string | undefined;
2686
+ } | undefined;
2687
+ meta?: Record<string, unknown> | undefined;
2688
+ title?: string | undefined;
2689
+ detail?: string | undefined;
2690
+ source?: {
2691
+ pointer?: string | undefined;
2692
+ parameter?: string | undefined;
2693
+ } | undefined;
2694
+ }[];
2695
+ meta?: Record<string, unknown> | undefined;
2696
+ }>;
2697
+ 401: z.ZodObject<{
2698
+ errors: z.ZodArray<z.ZodObject<{
2699
+ id: z.ZodOptional<z.ZodString>;
2700
+ links: z.ZodOptional<z.ZodObject<{
2701
+ about: z.ZodOptional<z.ZodString>;
2702
+ }, "strip", z.ZodTypeAny, {
2703
+ about?: string | undefined;
2704
+ }, {
2705
+ about?: string | undefined;
2706
+ }>>;
2707
+ status: z.ZodOptional<z.ZodString>;
2708
+ code: z.ZodOptional<z.ZodString>;
2709
+ title: z.ZodOptional<z.ZodString>;
2710
+ detail: z.ZodOptional<z.ZodString>;
2711
+ source: z.ZodOptional<z.ZodObject<{
2712
+ pointer: z.ZodOptional<z.ZodString>;
2713
+ parameter: z.ZodOptional<z.ZodString>;
2714
+ }, "strip", z.ZodTypeAny, {
2715
+ pointer?: string | undefined;
2716
+ parameter?: string | undefined;
2717
+ }, {
2718
+ pointer?: string | undefined;
2719
+ parameter?: string | undefined;
2720
+ }>>;
2721
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2224
2722
  }, "strip", z.ZodTypeAny, {
2225
- token: string;
2723
+ status?: string | undefined;
2724
+ code?: string | undefined;
2725
+ id?: string | undefined;
2726
+ links?: {
2727
+ about?: string | undefined;
2728
+ } | undefined;
2729
+ meta?: Record<string, unknown> | undefined;
2730
+ title?: string | undefined;
2731
+ detail?: string | undefined;
2732
+ source?: {
2733
+ pointer?: string | undefined;
2734
+ parameter?: string | undefined;
2735
+ } | undefined;
2226
2736
  }, {
2227
- token: string;
2228
- }>;
2737
+ status?: string | undefined;
2738
+ code?: string | undefined;
2739
+ id?: string | undefined;
2740
+ links?: {
2741
+ about?: string | undefined;
2742
+ } | undefined;
2743
+ meta?: Record<string, unknown> | undefined;
2744
+ title?: string | undefined;
2745
+ detail?: string | undefined;
2746
+ source?: {
2747
+ pointer?: string | undefined;
2748
+ parameter?: string | undefined;
2749
+ } | undefined;
2750
+ }>, "many">;
2751
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2229
2752
  }, "strip", z.ZodTypeAny, {
2230
- attributes: {
2231
- token: string;
2232
- };
2753
+ errors: {
2754
+ status?: string | undefined;
2755
+ code?: string | undefined;
2756
+ id?: string | undefined;
2757
+ links?: {
2758
+ about?: string | undefined;
2759
+ } | undefined;
2760
+ meta?: Record<string, unknown> | undefined;
2761
+ title?: string | undefined;
2762
+ detail?: string | undefined;
2763
+ source?: {
2764
+ pointer?: string | undefined;
2765
+ parameter?: string | undefined;
2766
+ } | undefined;
2767
+ }[];
2768
+ meta?: Record<string, unknown> | undefined;
2233
2769
  }, {
2234
- attributes: {
2235
- token: string;
2236
- };
2770
+ errors: {
2771
+ status?: string | undefined;
2772
+ code?: string | undefined;
2773
+ id?: string | undefined;
2774
+ links?: {
2775
+ about?: string | undefined;
2776
+ } | undefined;
2777
+ meta?: Record<string, unknown> | undefined;
2778
+ title?: string | undefined;
2779
+ detail?: string | undefined;
2780
+ source?: {
2781
+ pointer?: string | undefined;
2782
+ parameter?: string | undefined;
2783
+ } | undefined;
2784
+ }[];
2785
+ meta?: Record<string, unknown> | undefined;
2786
+ }>;
2787
+ 404: z.ZodObject<{
2788
+ errors: z.ZodArray<z.ZodObject<{
2789
+ id: z.ZodOptional<z.ZodString>;
2790
+ links: z.ZodOptional<z.ZodObject<{
2791
+ about: z.ZodOptional<z.ZodString>;
2792
+ }, "strip", z.ZodTypeAny, {
2793
+ about?: string | undefined;
2794
+ }, {
2795
+ about?: string | undefined;
2796
+ }>>;
2797
+ status: z.ZodOptional<z.ZodString>;
2798
+ code: z.ZodOptional<z.ZodString>;
2799
+ title: z.ZodOptional<z.ZodString>;
2800
+ detail: z.ZodOptional<z.ZodString>;
2801
+ source: z.ZodOptional<z.ZodObject<{
2802
+ pointer: z.ZodOptional<z.ZodString>;
2803
+ parameter: z.ZodOptional<z.ZodString>;
2804
+ }, "strip", z.ZodTypeAny, {
2805
+ pointer?: string | undefined;
2806
+ parameter?: string | undefined;
2807
+ }, {
2808
+ pointer?: string | undefined;
2809
+ parameter?: string | undefined;
2810
+ }>>;
2811
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2812
+ }, "strip", z.ZodTypeAny, {
2813
+ status?: string | undefined;
2814
+ code?: string | undefined;
2815
+ id?: string | undefined;
2816
+ links?: {
2817
+ about?: string | undefined;
2818
+ } | undefined;
2819
+ meta?: Record<string, unknown> | undefined;
2820
+ title?: string | undefined;
2821
+ detail?: string | undefined;
2822
+ source?: {
2823
+ pointer?: string | undefined;
2824
+ parameter?: string | undefined;
2825
+ } | undefined;
2826
+ }, {
2827
+ status?: string | undefined;
2828
+ code?: string | undefined;
2829
+ id?: string | undefined;
2830
+ links?: {
2831
+ about?: string | undefined;
2832
+ } | undefined;
2833
+ meta?: Record<string, unknown> | undefined;
2834
+ title?: string | undefined;
2835
+ detail?: string | undefined;
2836
+ source?: {
2837
+ pointer?: string | undefined;
2838
+ parameter?: string | undefined;
2839
+ } | undefined;
2840
+ }>, "many">;
2841
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2842
+ }, "strip", z.ZodTypeAny, {
2843
+ errors: {
2844
+ status?: string | undefined;
2845
+ code?: string | undefined;
2846
+ id?: string | undefined;
2847
+ links?: {
2848
+ about?: string | undefined;
2849
+ } | undefined;
2850
+ meta?: Record<string, unknown> | undefined;
2851
+ title?: string | undefined;
2852
+ detail?: string | undefined;
2853
+ source?: {
2854
+ pointer?: string | undefined;
2855
+ parameter?: string | undefined;
2856
+ } | undefined;
2857
+ }[];
2858
+ meta?: Record<string, unknown> | undefined;
2859
+ }, {
2860
+ errors: {
2861
+ status?: string | undefined;
2862
+ code?: string | undefined;
2863
+ id?: string | undefined;
2864
+ links?: {
2865
+ about?: string | undefined;
2866
+ } | undefined;
2867
+ meta?: Record<string, unknown> | undefined;
2868
+ title?: string | undefined;
2869
+ detail?: string | undefined;
2870
+ source?: {
2871
+ pointer?: string | undefined;
2872
+ parameter?: string | undefined;
2873
+ } | undefined;
2874
+ }[];
2875
+ meta?: Record<string, unknown> | undefined;
2237
2876
  }>;
2877
+ };
2878
+ };
2879
+ resendInvitation: {
2880
+ pathParams: z.ZodObject<{
2881
+ farmId: z.ZodString;
2882
+ id: z.ZodString;
2238
2883
  }, "strip", z.ZodTypeAny, {
2239
- data: {
2240
- attributes: {
2241
- token: string;
2242
- };
2243
- };
2884
+ id: string;
2885
+ farmId: string;
2244
2886
  }, {
2245
- data: {
2246
- attributes: {
2247
- token: string;
2248
- };
2249
- };
2887
+ id: string;
2888
+ farmId: string;
2250
2889
  }>;
2251
- path: "/team/invitations/accept";
2890
+ summary: "Resend team invitation";
2891
+ description: "Resend invitation email to a team member who has not yet accepted";
2892
+ method: "POST";
2893
+ body: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
2894
+ path: "/farms/:farmId/team/:id/resend-invitation";
2252
2895
  responses: {
2253
2896
  200: z.ZodObject<{} & {
2254
2897
  meta: z.ZodObject<{
2255
2898
  message: z.ZodString;
2256
- farmId: z.ZodString;
2257
- memberId: z.ZodString;
2258
2899
  }, "strip", z.ZodTypeAny, {
2259
2900
  message: string;
2260
- farmId: string;
2261
- memberId: string;
2262
2901
  }, {
2263
2902
  message: string;
2264
- farmId: string;
2265
- memberId: string;
2266
2903
  }>;
2267
2904
  }, "strip", z.ZodTypeAny, {
2268
2905
  meta: {
2269
2906
  message: string;
2270
- farmId: string;
2271
- memberId: string;
2272
2907
  };
2273
2908
  }, {
2274
2909
  meta: {
2275
2910
  message: string;
2276
- farmId: string;
2277
- memberId: string;
2278
2911
  };
2279
2912
  }>;
2280
2913
  400: z.ZodObject<{
@@ -2367,7 +3000,7 @@ export declare const teamRouter: {
2367
3000
  }[];
2368
3001
  meta?: Record<string, unknown> | undefined;
2369
3002
  }>;
2370
- 401: z.ZodObject<{
3003
+ 404: z.ZodObject<{
2371
3004
  errors: z.ZodArray<z.ZodObject<{
2372
3005
  id: z.ZodOptional<z.ZodString>;
2373
3006
  links: z.ZodOptional<z.ZodObject<{
@@ -2457,7 +3090,7 @@ export declare const teamRouter: {
2457
3090
  }[];
2458
3091
  meta?: Record<string, unknown> | undefined;
2459
3092
  }>;
2460
- 404: z.ZodObject<{
3093
+ 401: z.ZodObject<{
2461
3094
  errors: z.ZodArray<z.ZodObject<{
2462
3095
  id: z.ZodOptional<z.ZodString>;
2463
3096
  links: z.ZodOptional<z.ZodObject<{
@@ -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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.router({
92
92
  summary: 'Delete team member',
93
93
  description: 'Remove a team member from the farm',
94
94
  },
95
+ // Check invitation status
96
+ checkInvitationStatus: {
97
+ method: 'GET',
98
+ path: '/team/invitations/check',
99
+ query: z.object({
100
+ token: z.string().min(1),
101
+ }),
102
+ responses: {
103
+ 200: jsonApiSuccessResponseSchema.merge(z.object({
104
+ meta: z.object({
105
+ email: z.string().email(),
106
+ name: z.string(),
107
+ userExists: z.boolean(),
108
+ farmName: z.string().optional(),
109
+ }),
110
+ })),
111
+ 400: jsonApiErrorResponseSchema,
112
+ 401: jsonApiErrorResponseSchema,
113
+ 404: jsonApiErrorResponseSchema,
114
+ },
115
+ summary: 'Check invitation status',
116
+ description: 'Check if invitation is valid and if user exists',
117
+ },
95
118
  // Accept team invitation
96
119
  acceptInvitation: {
97
120
  method: 'POST',
@@ -100,6 +123,7 @@ export const teamRouter = c.router({
100
123
  data: z.object({
101
124
  attributes: z.object({
102
125
  token: z.string().min(1),
126
+ password: z.string().min(1).optional(),
103
127
  }),
104
128
  }),
105
129
  }),
@@ -110,12 +134,35 @@ export const teamRouter = c.router({
110
134
  farmId: z.string().uuid(),
111
135
  memberId: z.string().uuid(),
112
136
  }),
137
+ data: z.array(z.any()).optional(),
113
138
  })),
114
139
  400: jsonApiErrorResponseSchema,
115
140
  401: jsonApiErrorResponseSchema,
116
141
  404: jsonApiErrorResponseSchema,
117
142
  },
118
143
  summary: 'Accept team invitation',
119
- description: 'Accept a team invitation by token and link to user account',
144
+ description: 'Accept a team invitation by token. If user exists, password is required. If user does not exist, password will be used to create account.',
145
+ },
146
+ // Resend team invitation
147
+ resendInvitation: {
148
+ method: 'POST',
149
+ path: '/farms/:farmId/team/:id/resend-invitation',
150
+ pathParams: z.object({
151
+ farmId: z.string().uuid(),
152
+ id: z.string().uuid(),
153
+ }),
154
+ body: z.object({}),
155
+ responses: {
156
+ 200: jsonApiSuccessResponseSchema.merge(z.object({
157
+ meta: z.object({
158
+ message: z.string(),
159
+ }),
160
+ })),
161
+ 400: jsonApiErrorResponseSchema,
162
+ 404: jsonApiErrorResponseSchema,
163
+ 401: jsonApiErrorResponseSchema,
164
+ },
165
+ summary: 'Resend team invitation',
166
+ description: 'Resend invitation email to a team member who has not yet accepted',
120
167
  },
121
168
  });
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.11",
4
4
  "description": "Type-safe API contracts for FarmPro API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",