@deepintel-ltd/farmpro-contracts 1.4.2 → 1.5.1
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.
- package/dist/routes/agent-workflows.routes.js +6 -6
- package/dist/routes/documents.routes.d.ts +378 -15
- package/dist/routes/documents.routes.d.ts.map +1 -1
- package/dist/routes/documents.routes.js +16 -1
- package/dist/routes/farms.routes.d.ts +42 -0
- package/dist/routes/farms.routes.d.ts.map +1 -1
- package/dist/routes/field-monitoring.routes.d.ts +290 -4
- package/dist/routes/field-monitoring.routes.d.ts.map +1 -1
- package/dist/routes/field-monitoring.routes.js +48 -1
- package/dist/routes/field-observations.routes.d.ts +6 -6
- package/dist/routes/tasks.routes.d.ts +10 -4
- package/dist/routes/tasks.routes.d.ts.map +1 -1
- package/dist/routes/team.routes.d.ts +343 -0
- package/dist/routes/team.routes.d.ts.map +1 -1
- package/dist/routes/team.routes.js +26 -0
- package/dist/schemas/documents.schemas.d.ts +77 -18
- package/dist/schemas/documents.schemas.d.ts.map +1 -1
- package/dist/schemas/documents.schemas.js +6 -3
- package/dist/schemas/farms.schemas.d.ts +51 -0
- package/dist/schemas/farms.schemas.d.ts.map +1 -1
- package/dist/schemas/farms.schemas.js +5 -1
- package/dist/schemas/field-monitoring.schemas.d.ts +9 -3
- package/dist/schemas/field-monitoring.schemas.d.ts.map +1 -1
- package/dist/schemas/field-monitoring.schemas.js +3 -1
- package/dist/schemas/field-observations.schemas.d.ts +3 -3
- package/dist/schemas/field-observations.schemas.js +1 -1
- package/dist/schemas/tasks.schemas.d.ts +17 -5
- package/dist/schemas/tasks.schemas.d.ts.map +1 -1
- package/dist/schemas/tasks.schemas.js +9 -1
- package/dist/schemas/team.schemas.d.ts +8 -0
- package/dist/schemas/team.schemas.d.ts.map +1 -1
- package/dist/schemas/team.schemas.js +1 -0
- package/package.json +1 -1
|
@@ -420,15 +420,18 @@ export declare const teamRouter: {
|
|
|
420
420
|
email: z.ZodString;
|
|
421
421
|
role: z.ZodEnum<["owner", "farm-manager", "agronomist", "field-worker", "accountant", "other"]>;
|
|
422
422
|
phone: z.ZodOptional<z.ZodString>;
|
|
423
|
+
message: z.ZodOptional<z.ZodString>;
|
|
423
424
|
}, "strip", z.ZodTypeAny, {
|
|
424
425
|
email: string;
|
|
425
426
|
name: string;
|
|
426
427
|
role: "owner" | "farm-manager" | "agronomist" | "field-worker" | "accountant" | "other";
|
|
428
|
+
message?: string | undefined;
|
|
427
429
|
phone?: string | undefined;
|
|
428
430
|
}, {
|
|
429
431
|
email: string;
|
|
430
432
|
name: string;
|
|
431
433
|
role: "owner" | "farm-manager" | "agronomist" | "field-worker" | "accountant" | "other";
|
|
434
|
+
message?: string | undefined;
|
|
432
435
|
phone?: string | undefined;
|
|
433
436
|
}>;
|
|
434
437
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -437,6 +440,7 @@ export declare const teamRouter: {
|
|
|
437
440
|
email: string;
|
|
438
441
|
name: string;
|
|
439
442
|
role: "owner" | "farm-manager" | "agronomist" | "field-worker" | "accountant" | "other";
|
|
443
|
+
message?: string | undefined;
|
|
440
444
|
phone?: string | undefined;
|
|
441
445
|
};
|
|
442
446
|
}, {
|
|
@@ -445,6 +449,7 @@ export declare const teamRouter: {
|
|
|
445
449
|
email: string;
|
|
446
450
|
name: string;
|
|
447
451
|
role: "owner" | "farm-manager" | "agronomist" | "field-worker" | "accountant" | "other";
|
|
452
|
+
message?: string | undefined;
|
|
448
453
|
phone?: string | undefined;
|
|
449
454
|
};
|
|
450
455
|
}>;
|
|
@@ -455,6 +460,7 @@ export declare const teamRouter: {
|
|
|
455
460
|
email: string;
|
|
456
461
|
name: string;
|
|
457
462
|
role: "owner" | "farm-manager" | "agronomist" | "field-worker" | "accountant" | "other";
|
|
463
|
+
message?: string | undefined;
|
|
458
464
|
phone?: string | undefined;
|
|
459
465
|
};
|
|
460
466
|
};
|
|
@@ -465,6 +471,7 @@ export declare const teamRouter: {
|
|
|
465
471
|
email: string;
|
|
466
472
|
name: string;
|
|
467
473
|
role: "owner" | "farm-manager" | "agronomist" | "field-worker" | "accountant" | "other";
|
|
474
|
+
message?: string | undefined;
|
|
468
475
|
phone?: string | undefined;
|
|
469
476
|
};
|
|
470
477
|
};
|
|
@@ -2206,5 +2213,341 @@ export declare const teamRouter: {
|
|
|
2206
2213
|
}>;
|
|
2207
2214
|
};
|
|
2208
2215
|
};
|
|
2216
|
+
acceptInvitation: {
|
|
2217
|
+
summary: "Accept team invitation";
|
|
2218
|
+
description: "Accept a team invitation by token and link to user account";
|
|
2219
|
+
method: "POST";
|
|
2220
|
+
body: z.ZodObject<{
|
|
2221
|
+
data: z.ZodObject<{
|
|
2222
|
+
attributes: z.ZodObject<{
|
|
2223
|
+
token: z.ZodString;
|
|
2224
|
+
}, "strip", z.ZodTypeAny, {
|
|
2225
|
+
token: string;
|
|
2226
|
+
}, {
|
|
2227
|
+
token: string;
|
|
2228
|
+
}>;
|
|
2229
|
+
}, "strip", z.ZodTypeAny, {
|
|
2230
|
+
attributes: {
|
|
2231
|
+
token: string;
|
|
2232
|
+
};
|
|
2233
|
+
}, {
|
|
2234
|
+
attributes: {
|
|
2235
|
+
token: string;
|
|
2236
|
+
};
|
|
2237
|
+
}>;
|
|
2238
|
+
}, "strip", z.ZodTypeAny, {
|
|
2239
|
+
data: {
|
|
2240
|
+
attributes: {
|
|
2241
|
+
token: string;
|
|
2242
|
+
};
|
|
2243
|
+
};
|
|
2244
|
+
}, {
|
|
2245
|
+
data: {
|
|
2246
|
+
attributes: {
|
|
2247
|
+
token: string;
|
|
2248
|
+
};
|
|
2249
|
+
};
|
|
2250
|
+
}>;
|
|
2251
|
+
path: "/team/invitations/accept";
|
|
2252
|
+
responses: {
|
|
2253
|
+
200: z.ZodObject<{} & {
|
|
2254
|
+
meta: z.ZodObject<{
|
|
2255
|
+
message: z.ZodString;
|
|
2256
|
+
farmId: z.ZodString;
|
|
2257
|
+
memberId: z.ZodString;
|
|
2258
|
+
}, "strip", z.ZodTypeAny, {
|
|
2259
|
+
message: string;
|
|
2260
|
+
farmId: string;
|
|
2261
|
+
memberId: string;
|
|
2262
|
+
}, {
|
|
2263
|
+
message: string;
|
|
2264
|
+
farmId: string;
|
|
2265
|
+
memberId: string;
|
|
2266
|
+
}>;
|
|
2267
|
+
}, "strip", z.ZodTypeAny, {
|
|
2268
|
+
meta: {
|
|
2269
|
+
message: string;
|
|
2270
|
+
farmId: string;
|
|
2271
|
+
memberId: string;
|
|
2272
|
+
};
|
|
2273
|
+
}, {
|
|
2274
|
+
meta: {
|
|
2275
|
+
message: string;
|
|
2276
|
+
farmId: string;
|
|
2277
|
+
memberId: string;
|
|
2278
|
+
};
|
|
2279
|
+
}>;
|
|
2280
|
+
400: z.ZodObject<{
|
|
2281
|
+
errors: z.ZodArray<z.ZodObject<{
|
|
2282
|
+
id: z.ZodOptional<z.ZodString>;
|
|
2283
|
+
links: z.ZodOptional<z.ZodObject<{
|
|
2284
|
+
about: z.ZodOptional<z.ZodString>;
|
|
2285
|
+
}, "strip", z.ZodTypeAny, {
|
|
2286
|
+
about?: string | undefined;
|
|
2287
|
+
}, {
|
|
2288
|
+
about?: string | undefined;
|
|
2289
|
+
}>>;
|
|
2290
|
+
status: z.ZodOptional<z.ZodString>;
|
|
2291
|
+
code: z.ZodOptional<z.ZodString>;
|
|
2292
|
+
title: z.ZodOptional<z.ZodString>;
|
|
2293
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
2294
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
2295
|
+
pointer: z.ZodOptional<z.ZodString>;
|
|
2296
|
+
parameter: z.ZodOptional<z.ZodString>;
|
|
2297
|
+
}, "strip", z.ZodTypeAny, {
|
|
2298
|
+
pointer?: string | undefined;
|
|
2299
|
+
parameter?: string | undefined;
|
|
2300
|
+
}, {
|
|
2301
|
+
pointer?: string | undefined;
|
|
2302
|
+
parameter?: string | undefined;
|
|
2303
|
+
}>>;
|
|
2304
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2305
|
+
}, "strip", z.ZodTypeAny, {
|
|
2306
|
+
status?: string | undefined;
|
|
2307
|
+
code?: string | undefined;
|
|
2308
|
+
id?: string | undefined;
|
|
2309
|
+
links?: {
|
|
2310
|
+
about?: string | undefined;
|
|
2311
|
+
} | undefined;
|
|
2312
|
+
meta?: Record<string, unknown> | undefined;
|
|
2313
|
+
title?: string | undefined;
|
|
2314
|
+
detail?: string | undefined;
|
|
2315
|
+
source?: {
|
|
2316
|
+
pointer?: string | undefined;
|
|
2317
|
+
parameter?: string | undefined;
|
|
2318
|
+
} | undefined;
|
|
2319
|
+
}, {
|
|
2320
|
+
status?: string | undefined;
|
|
2321
|
+
code?: string | undefined;
|
|
2322
|
+
id?: string | undefined;
|
|
2323
|
+
links?: {
|
|
2324
|
+
about?: string | undefined;
|
|
2325
|
+
} | undefined;
|
|
2326
|
+
meta?: Record<string, unknown> | undefined;
|
|
2327
|
+
title?: string | undefined;
|
|
2328
|
+
detail?: string | undefined;
|
|
2329
|
+
source?: {
|
|
2330
|
+
pointer?: string | undefined;
|
|
2331
|
+
parameter?: string | undefined;
|
|
2332
|
+
} | undefined;
|
|
2333
|
+
}>, "many">;
|
|
2334
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2335
|
+
}, "strip", z.ZodTypeAny, {
|
|
2336
|
+
errors: {
|
|
2337
|
+
status?: string | undefined;
|
|
2338
|
+
code?: string | undefined;
|
|
2339
|
+
id?: string | undefined;
|
|
2340
|
+
links?: {
|
|
2341
|
+
about?: string | undefined;
|
|
2342
|
+
} | undefined;
|
|
2343
|
+
meta?: Record<string, unknown> | undefined;
|
|
2344
|
+
title?: string | undefined;
|
|
2345
|
+
detail?: string | undefined;
|
|
2346
|
+
source?: {
|
|
2347
|
+
pointer?: string | undefined;
|
|
2348
|
+
parameter?: string | undefined;
|
|
2349
|
+
} | undefined;
|
|
2350
|
+
}[];
|
|
2351
|
+
meta?: Record<string, unknown> | undefined;
|
|
2352
|
+
}, {
|
|
2353
|
+
errors: {
|
|
2354
|
+
status?: string | undefined;
|
|
2355
|
+
code?: string | undefined;
|
|
2356
|
+
id?: string | undefined;
|
|
2357
|
+
links?: {
|
|
2358
|
+
about?: string | undefined;
|
|
2359
|
+
} | undefined;
|
|
2360
|
+
meta?: Record<string, unknown> | undefined;
|
|
2361
|
+
title?: string | undefined;
|
|
2362
|
+
detail?: string | undefined;
|
|
2363
|
+
source?: {
|
|
2364
|
+
pointer?: string | undefined;
|
|
2365
|
+
parameter?: string | undefined;
|
|
2366
|
+
} | undefined;
|
|
2367
|
+
}[];
|
|
2368
|
+
meta?: Record<string, unknown> | undefined;
|
|
2369
|
+
}>;
|
|
2370
|
+
401: z.ZodObject<{
|
|
2371
|
+
errors: z.ZodArray<z.ZodObject<{
|
|
2372
|
+
id: z.ZodOptional<z.ZodString>;
|
|
2373
|
+
links: z.ZodOptional<z.ZodObject<{
|
|
2374
|
+
about: z.ZodOptional<z.ZodString>;
|
|
2375
|
+
}, "strip", z.ZodTypeAny, {
|
|
2376
|
+
about?: string | undefined;
|
|
2377
|
+
}, {
|
|
2378
|
+
about?: string | undefined;
|
|
2379
|
+
}>>;
|
|
2380
|
+
status: z.ZodOptional<z.ZodString>;
|
|
2381
|
+
code: z.ZodOptional<z.ZodString>;
|
|
2382
|
+
title: z.ZodOptional<z.ZodString>;
|
|
2383
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
2384
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
2385
|
+
pointer: z.ZodOptional<z.ZodString>;
|
|
2386
|
+
parameter: z.ZodOptional<z.ZodString>;
|
|
2387
|
+
}, "strip", z.ZodTypeAny, {
|
|
2388
|
+
pointer?: string | undefined;
|
|
2389
|
+
parameter?: string | undefined;
|
|
2390
|
+
}, {
|
|
2391
|
+
pointer?: string | undefined;
|
|
2392
|
+
parameter?: string | undefined;
|
|
2393
|
+
}>>;
|
|
2394
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2395
|
+
}, "strip", z.ZodTypeAny, {
|
|
2396
|
+
status?: string | undefined;
|
|
2397
|
+
code?: string | undefined;
|
|
2398
|
+
id?: string | undefined;
|
|
2399
|
+
links?: {
|
|
2400
|
+
about?: string | undefined;
|
|
2401
|
+
} | undefined;
|
|
2402
|
+
meta?: Record<string, unknown> | undefined;
|
|
2403
|
+
title?: string | undefined;
|
|
2404
|
+
detail?: string | undefined;
|
|
2405
|
+
source?: {
|
|
2406
|
+
pointer?: string | undefined;
|
|
2407
|
+
parameter?: string | undefined;
|
|
2408
|
+
} | undefined;
|
|
2409
|
+
}, {
|
|
2410
|
+
status?: string | undefined;
|
|
2411
|
+
code?: string | undefined;
|
|
2412
|
+
id?: string | undefined;
|
|
2413
|
+
links?: {
|
|
2414
|
+
about?: string | undefined;
|
|
2415
|
+
} | undefined;
|
|
2416
|
+
meta?: Record<string, unknown> | undefined;
|
|
2417
|
+
title?: string | undefined;
|
|
2418
|
+
detail?: string | undefined;
|
|
2419
|
+
source?: {
|
|
2420
|
+
pointer?: string | undefined;
|
|
2421
|
+
parameter?: string | undefined;
|
|
2422
|
+
} | undefined;
|
|
2423
|
+
}>, "many">;
|
|
2424
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2425
|
+
}, "strip", z.ZodTypeAny, {
|
|
2426
|
+
errors: {
|
|
2427
|
+
status?: string | undefined;
|
|
2428
|
+
code?: string | undefined;
|
|
2429
|
+
id?: string | undefined;
|
|
2430
|
+
links?: {
|
|
2431
|
+
about?: string | undefined;
|
|
2432
|
+
} | undefined;
|
|
2433
|
+
meta?: Record<string, unknown> | undefined;
|
|
2434
|
+
title?: string | undefined;
|
|
2435
|
+
detail?: string | undefined;
|
|
2436
|
+
source?: {
|
|
2437
|
+
pointer?: string | undefined;
|
|
2438
|
+
parameter?: string | undefined;
|
|
2439
|
+
} | undefined;
|
|
2440
|
+
}[];
|
|
2441
|
+
meta?: Record<string, unknown> | undefined;
|
|
2442
|
+
}, {
|
|
2443
|
+
errors: {
|
|
2444
|
+
status?: string | undefined;
|
|
2445
|
+
code?: string | undefined;
|
|
2446
|
+
id?: string | undefined;
|
|
2447
|
+
links?: {
|
|
2448
|
+
about?: string | undefined;
|
|
2449
|
+
} | undefined;
|
|
2450
|
+
meta?: Record<string, unknown> | undefined;
|
|
2451
|
+
title?: string | undefined;
|
|
2452
|
+
detail?: string | undefined;
|
|
2453
|
+
source?: {
|
|
2454
|
+
pointer?: string | undefined;
|
|
2455
|
+
parameter?: string | undefined;
|
|
2456
|
+
} | undefined;
|
|
2457
|
+
}[];
|
|
2458
|
+
meta?: Record<string, unknown> | undefined;
|
|
2459
|
+
}>;
|
|
2460
|
+
404: z.ZodObject<{
|
|
2461
|
+
errors: z.ZodArray<z.ZodObject<{
|
|
2462
|
+
id: z.ZodOptional<z.ZodString>;
|
|
2463
|
+
links: z.ZodOptional<z.ZodObject<{
|
|
2464
|
+
about: z.ZodOptional<z.ZodString>;
|
|
2465
|
+
}, "strip", z.ZodTypeAny, {
|
|
2466
|
+
about?: string | undefined;
|
|
2467
|
+
}, {
|
|
2468
|
+
about?: string | undefined;
|
|
2469
|
+
}>>;
|
|
2470
|
+
status: z.ZodOptional<z.ZodString>;
|
|
2471
|
+
code: z.ZodOptional<z.ZodString>;
|
|
2472
|
+
title: z.ZodOptional<z.ZodString>;
|
|
2473
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
2474
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
2475
|
+
pointer: z.ZodOptional<z.ZodString>;
|
|
2476
|
+
parameter: z.ZodOptional<z.ZodString>;
|
|
2477
|
+
}, "strip", z.ZodTypeAny, {
|
|
2478
|
+
pointer?: string | undefined;
|
|
2479
|
+
parameter?: string | undefined;
|
|
2480
|
+
}, {
|
|
2481
|
+
pointer?: string | undefined;
|
|
2482
|
+
parameter?: string | undefined;
|
|
2483
|
+
}>>;
|
|
2484
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2485
|
+
}, "strip", z.ZodTypeAny, {
|
|
2486
|
+
status?: string | undefined;
|
|
2487
|
+
code?: string | undefined;
|
|
2488
|
+
id?: string | undefined;
|
|
2489
|
+
links?: {
|
|
2490
|
+
about?: string | undefined;
|
|
2491
|
+
} | undefined;
|
|
2492
|
+
meta?: Record<string, unknown> | undefined;
|
|
2493
|
+
title?: string | undefined;
|
|
2494
|
+
detail?: string | undefined;
|
|
2495
|
+
source?: {
|
|
2496
|
+
pointer?: string | undefined;
|
|
2497
|
+
parameter?: string | undefined;
|
|
2498
|
+
} | undefined;
|
|
2499
|
+
}, {
|
|
2500
|
+
status?: string | undefined;
|
|
2501
|
+
code?: string | undefined;
|
|
2502
|
+
id?: string | undefined;
|
|
2503
|
+
links?: {
|
|
2504
|
+
about?: string | undefined;
|
|
2505
|
+
} | undefined;
|
|
2506
|
+
meta?: Record<string, unknown> | undefined;
|
|
2507
|
+
title?: string | undefined;
|
|
2508
|
+
detail?: string | undefined;
|
|
2509
|
+
source?: {
|
|
2510
|
+
pointer?: string | undefined;
|
|
2511
|
+
parameter?: string | undefined;
|
|
2512
|
+
} | undefined;
|
|
2513
|
+
}>, "many">;
|
|
2514
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2515
|
+
}, "strip", z.ZodTypeAny, {
|
|
2516
|
+
errors: {
|
|
2517
|
+
status?: string | undefined;
|
|
2518
|
+
code?: string | undefined;
|
|
2519
|
+
id?: string | undefined;
|
|
2520
|
+
links?: {
|
|
2521
|
+
about?: string | undefined;
|
|
2522
|
+
} | undefined;
|
|
2523
|
+
meta?: Record<string, unknown> | undefined;
|
|
2524
|
+
title?: string | undefined;
|
|
2525
|
+
detail?: string | undefined;
|
|
2526
|
+
source?: {
|
|
2527
|
+
pointer?: string | undefined;
|
|
2528
|
+
parameter?: string | undefined;
|
|
2529
|
+
} | undefined;
|
|
2530
|
+
}[];
|
|
2531
|
+
meta?: Record<string, unknown> | undefined;
|
|
2532
|
+
}, {
|
|
2533
|
+
errors: {
|
|
2534
|
+
status?: string | undefined;
|
|
2535
|
+
code?: string | undefined;
|
|
2536
|
+
id?: string | undefined;
|
|
2537
|
+
links?: {
|
|
2538
|
+
about?: string | undefined;
|
|
2539
|
+
} | undefined;
|
|
2540
|
+
meta?: Record<string, unknown> | undefined;
|
|
2541
|
+
title?: string | undefined;
|
|
2542
|
+
detail?: string | undefined;
|
|
2543
|
+
source?: {
|
|
2544
|
+
pointer?: string | undefined;
|
|
2545
|
+
parameter?: string | undefined;
|
|
2546
|
+
} | undefined;
|
|
2547
|
+
}[];
|
|
2548
|
+
meta?: Record<string, unknown> | undefined;
|
|
2549
|
+
}>;
|
|
2550
|
+
};
|
|
2551
|
+
};
|
|
2209
2552
|
};
|
|
2210
2553
|
//# 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
|
|
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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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0HrB,CAAC"}
|
|
@@ -95,4 +95,30 @@ exports.teamRouter = c.router({
|
|
|
95
95
|
summary: 'Delete team member',
|
|
96
96
|
description: 'Remove a team member from the farm',
|
|
97
97
|
},
|
|
98
|
+
// Accept team invitation
|
|
99
|
+
acceptInvitation: {
|
|
100
|
+
method: 'POST',
|
|
101
|
+
path: '/team/invitations/accept',
|
|
102
|
+
body: zod_1.z.object({
|
|
103
|
+
data: zod_1.z.object({
|
|
104
|
+
attributes: zod_1.z.object({
|
|
105
|
+
token: zod_1.z.string().min(1),
|
|
106
|
+
}),
|
|
107
|
+
}),
|
|
108
|
+
}),
|
|
109
|
+
responses: {
|
|
110
|
+
200: common_schemas_1.jsonApiSuccessResponseSchema.merge(zod_1.z.object({
|
|
111
|
+
meta: zod_1.z.object({
|
|
112
|
+
message: zod_1.z.string(),
|
|
113
|
+
farmId: zod_1.z.string().uuid(),
|
|
114
|
+
memberId: zod_1.z.string().uuid(),
|
|
115
|
+
}),
|
|
116
|
+
})),
|
|
117
|
+
400: common_schemas_1.jsonApiErrorResponseSchema,
|
|
118
|
+
401: common_schemas_1.jsonApiErrorResponseSchema,
|
|
119
|
+
404: common_schemas_1.jsonApiErrorResponseSchema,
|
|
120
|
+
},
|
|
121
|
+
summary: 'Accept team invitation',
|
|
122
|
+
description: 'Accept a team invitation by token and link to user account',
|
|
123
|
+
},
|
|
98
124
|
});
|