@deepintel-ltd/farmpro-contracts 1.22.4 → 1.23.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/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -0
- package/dist/routes/categories.routes.d.ts +26 -26
- package/dist/routes/commodity-deals.routes.d.ts +217 -42
- package/dist/routes/commodity-deals.routes.d.ts.map +1 -1
- package/dist/routes/crop-profile.routes.d.ts +8 -8
- package/dist/routes/farm-enterprises.routes.d.ts +395 -0
- package/dist/routes/farm-enterprises.routes.d.ts.map +1 -1
- package/dist/routes/farm-enterprises.routes.js +14 -1
- package/dist/routes/farms.routes.d.ts +73 -20
- package/dist/routes/farms.routes.d.ts.map +1 -1
- package/dist/routes/fertigation.routes.d.ts +96 -96
- package/dist/routes/field-monitoring.routes.d.ts +2 -2
- package/dist/routes/finance.routes.d.ts +8 -8
- package/dist/routes/index.d.ts +9 -0
- package/dist/routes/index.d.ts.map +1 -1
- package/dist/routes/index.js +6 -0
- package/dist/routes/invoices.routes.d.ts +210 -60
- package/dist/routes/invoices.routes.d.ts.map +1 -1
- package/dist/routes/invoices.routes.js +4 -1
- package/dist/routes/monitoring-visualization.routes.d.ts +2 -2
- package/dist/routes/notifications.routes.d.ts +12 -12
- package/dist/routes/organization-capabilities.routes.d.ts +1671 -0
- package/dist/routes/organization-capabilities.routes.d.ts.map +1 -0
- package/dist/routes/organization-capabilities.routes.js +74 -0
- package/dist/routes/organizations.routes.d.ts +90 -47
- package/dist/routes/organizations.routes.d.ts.map +1 -1
- package/dist/routes/purchase-orders.routes.d.ts +2061 -0
- package/dist/routes/purchase-orders.routes.d.ts.map +1 -0
- package/dist/routes/purchase-orders.routes.js +55 -0
- package/dist/routes/suppliers.routes.d.ts +96 -96
- package/dist/routes/team-payments.routes.d.ts +105 -105
- package/dist/routes/team.routes.d.ts +125 -25
- package/dist/routes/team.routes.d.ts.map +1 -1
- package/dist/routes/trade-cash-events.routes.d.ts +3837 -0
- package/dist/routes/trade-cash-events.routes.d.ts.map +1 -0
- package/dist/routes/trade-cash-events.routes.js +126 -0
- package/dist/routes/waybills.routes.d.ts +229 -15
- package/dist/routes/waybills.routes.d.ts.map +1 -1
- package/dist/routes/waybills.routes.js +4 -1
- package/dist/schemas/categories.schemas.d.ts +21 -21
- package/dist/schemas/commodity-deals.schemas.d.ts +116 -18
- package/dist/schemas/commodity-deals.schemas.d.ts.map +1 -1
- package/dist/schemas/commodity-deals.schemas.js +7 -0
- package/dist/schemas/crop-profile.schemas.d.ts +12 -12
- package/dist/schemas/farm-enterprises.schemas.d.ts +185 -0
- package/dist/schemas/farm-enterprises.schemas.d.ts.map +1 -1
- package/dist/schemas/farm-enterprises.schemas.js +21 -0
- package/dist/schemas/farms.schemas.d.ts +121 -19
- package/dist/schemas/farms.schemas.d.ts.map +1 -1
- package/dist/schemas/farms.schemas.js +15 -1
- package/dist/schemas/fertigation.schemas.d.ts +36 -36
- package/dist/schemas/field-monitoring.schemas.d.ts +2 -2
- package/dist/schemas/finance.schemas.d.ts +8 -8
- package/dist/schemas/invoices.schemas.d.ts +153 -39
- package/dist/schemas/invoices.schemas.d.ts.map +1 -1
- package/dist/schemas/invoices.schemas.js +8 -2
- package/dist/schemas/notifications.schemas.d.ts +18 -18
- package/dist/schemas/organization-capabilities.schemas.d.ts +355 -0
- package/dist/schemas/organization-capabilities.schemas.d.ts.map +1 -0
- package/dist/schemas/organization-capabilities.schemas.js +19 -0
- package/dist/schemas/organizations.schemas.d.ts +105 -46
- package/dist/schemas/organizations.schemas.d.ts.map +1 -1
- package/dist/schemas/organizations.schemas.js +8 -1
- package/dist/schemas/purchase-orders.schemas.d.ts +1031 -0
- package/dist/schemas/purchase-orders.schemas.d.ts.map +1 -0
- package/dist/schemas/purchase-orders.schemas.js +49 -0
- package/dist/schemas/suppliers.schemas.d.ts +96 -96
- package/dist/schemas/team-payments.schemas.d.ts +87 -87
- package/dist/schemas/team.schemas.d.ts +137 -20
- package/dist/schemas/team.schemas.d.ts.map +1 -1
- package/dist/schemas/team.schemas.js +29 -1
- package/dist/schemas/trade-cash-events.schemas.d.ts +1524 -0
- package/dist/schemas/trade-cash-events.schemas.d.ts.map +1 -0
- package/dist/schemas/trade-cash-events.schemas.js +131 -0
- package/dist/schemas/waybills.schemas.d.ts +177 -9
- package/dist/schemas/waybills.schemas.d.ts.map +1 -1
- package/dist/schemas/waybills.schemas.js +9 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commodity-deals.routes.d.ts","sourceRoot":"","sources":["../../src/routes/commodity-deals.routes.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAuBxB,eAAO,MAAM,oBAAoB
|
|
1
|
+
{"version":3,"file":"commodity-deals.routes.d.ts","sourceRoot":"","sources":["../../src/routes/commodity-deals.routes.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAuBxB,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2L/B,CAAC"}
|
|
@@ -57,13 +57,13 @@ export declare const cropProfilesRouter: {
|
|
|
57
57
|
}, "strip", z.ZodTypeAny, {
|
|
58
58
|
id: string;
|
|
59
59
|
source: string | null;
|
|
60
|
+
isDefault: boolean;
|
|
60
61
|
alerts: {
|
|
61
62
|
message: string;
|
|
62
63
|
condition: string;
|
|
63
64
|
actions: string[];
|
|
64
65
|
severity?: "critical" | "warning" | "info" | undefined;
|
|
65
66
|
}[] | null;
|
|
66
|
-
isDefault: boolean;
|
|
67
67
|
cropVariety: string | null;
|
|
68
68
|
cropType: string;
|
|
69
69
|
stages: {
|
|
@@ -80,13 +80,13 @@ export declare const cropProfilesRouter: {
|
|
|
80
80
|
}, {
|
|
81
81
|
id: string;
|
|
82
82
|
source: string | null;
|
|
83
|
+
isDefault: boolean;
|
|
83
84
|
alerts: {
|
|
84
85
|
message: string;
|
|
85
86
|
condition: string;
|
|
86
87
|
actions: string[];
|
|
87
88
|
severity?: "critical" | "warning" | "info" | undefined;
|
|
88
89
|
}[] | null;
|
|
89
|
-
isDefault: boolean;
|
|
90
90
|
cropVariety: string | null;
|
|
91
91
|
cropType: string;
|
|
92
92
|
stages: {
|
|
@@ -177,13 +177,13 @@ export declare const cropProfilesRouter: {
|
|
|
177
177
|
}, "strip", z.ZodTypeAny, {
|
|
178
178
|
id: string;
|
|
179
179
|
source: string | null;
|
|
180
|
+
isDefault: boolean;
|
|
180
181
|
alerts: {
|
|
181
182
|
message: string;
|
|
182
183
|
condition: string;
|
|
183
184
|
actions: string[];
|
|
184
185
|
severity?: "critical" | "warning" | "info" | undefined;
|
|
185
186
|
}[] | null;
|
|
186
|
-
isDefault: boolean;
|
|
187
187
|
cropVariety: string | null;
|
|
188
188
|
cropType: string;
|
|
189
189
|
stages: {
|
|
@@ -200,13 +200,13 @@ export declare const cropProfilesRouter: {
|
|
|
200
200
|
}, {
|
|
201
201
|
id: string;
|
|
202
202
|
source: string | null;
|
|
203
|
+
isDefault: boolean;
|
|
203
204
|
alerts: {
|
|
204
205
|
message: string;
|
|
205
206
|
condition: string;
|
|
206
207
|
actions: string[];
|
|
207
208
|
severity?: "critical" | "warning" | "info" | undefined;
|
|
208
209
|
}[] | null;
|
|
209
|
-
isDefault: boolean;
|
|
210
210
|
cropVariety: string | null;
|
|
211
211
|
cropType: string;
|
|
212
212
|
stages: {
|
|
@@ -364,13 +364,13 @@ export declare const cropProfilesRouter: {
|
|
|
364
364
|
}, "strip", z.ZodTypeAny, {
|
|
365
365
|
id: string;
|
|
366
366
|
source: string | null;
|
|
367
|
+
isDefault: boolean;
|
|
367
368
|
alerts: {
|
|
368
369
|
message: string;
|
|
369
370
|
condition: string;
|
|
370
371
|
actions: string[];
|
|
371
372
|
severity?: "critical" | "warning" | "info" | undefined;
|
|
372
373
|
}[] | null;
|
|
373
|
-
isDefault: boolean;
|
|
374
374
|
cropVariety: string | null;
|
|
375
375
|
cropType: string;
|
|
376
376
|
stages: {
|
|
@@ -387,13 +387,13 @@ export declare const cropProfilesRouter: {
|
|
|
387
387
|
}, {
|
|
388
388
|
id: string;
|
|
389
389
|
source: string | null;
|
|
390
|
+
isDefault: boolean;
|
|
390
391
|
alerts: {
|
|
391
392
|
message: string;
|
|
392
393
|
condition: string;
|
|
393
394
|
actions: string[];
|
|
394
395
|
severity?: "critical" | "warning" | "info" | undefined;
|
|
395
396
|
}[] | null;
|
|
396
|
-
isDefault: boolean;
|
|
397
397
|
cropVariety: string | null;
|
|
398
398
|
cropType: string;
|
|
399
399
|
stages: {
|
|
@@ -502,13 +502,13 @@ export declare const cropProfilesRouter: {
|
|
|
502
502
|
cropProfile: {
|
|
503
503
|
id: string;
|
|
504
504
|
source: string | null;
|
|
505
|
+
isDefault: boolean;
|
|
505
506
|
alerts: {
|
|
506
507
|
message: string;
|
|
507
508
|
condition: string;
|
|
508
509
|
actions: string[];
|
|
509
510
|
severity?: "critical" | "warning" | "info" | undefined;
|
|
510
511
|
}[] | null;
|
|
511
|
-
isDefault: boolean;
|
|
512
512
|
cropVariety: string | null;
|
|
513
513
|
cropType: string;
|
|
514
514
|
stages: {
|
|
@@ -554,13 +554,13 @@ export declare const cropProfilesRouter: {
|
|
|
554
554
|
cropProfile: {
|
|
555
555
|
id: string;
|
|
556
556
|
source: string | null;
|
|
557
|
+
isDefault: boolean;
|
|
557
558
|
alerts: {
|
|
558
559
|
message: string;
|
|
559
560
|
condition: string;
|
|
560
561
|
actions: string[];
|
|
561
562
|
severity?: "critical" | "warning" | "info" | undefined;
|
|
562
563
|
}[] | null;
|
|
563
|
-
isDefault: boolean;
|
|
564
564
|
cropVariety: string | null;
|
|
565
565
|
cropType: string;
|
|
566
566
|
stages: {
|
|
@@ -1,5 +1,400 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const farmEnterprisesRouter: {
|
|
3
|
+
getEffectiveWorkspacePacks: {
|
|
4
|
+
pathParams: z.ZodObject<{
|
|
5
|
+
farmId: z.ZodString;
|
|
6
|
+
}, "strip", z.ZodTypeAny, {
|
|
7
|
+
farmId: string;
|
|
8
|
+
}, {
|
|
9
|
+
farmId: string;
|
|
10
|
+
}>;
|
|
11
|
+
summary: "Effective packs the current user may switch into for this farm";
|
|
12
|
+
description: "Intersection of farm-enabled enterprises and user grants, plus Commodity Trade when org-enabled and granted.";
|
|
13
|
+
method: "GET";
|
|
14
|
+
path: "/farms/:farmId/effective-workspace";
|
|
15
|
+
responses: {
|
|
16
|
+
200: z.ZodObject<{
|
|
17
|
+
data: z.ZodObject<{
|
|
18
|
+
farmId: z.ZodString;
|
|
19
|
+
organizationId: z.ZodNullable<z.ZodString>;
|
|
20
|
+
enabledFarmPacks: z.ZodArray<z.ZodEnum<["CROPS", "POULTRY", "AQUACULTURE", "CATTLE", "GOAT"]>, "many">;
|
|
21
|
+
grantedFarmPacks: z.ZodArray<z.ZodEnum<["CROPS", "POULTRY", "AQUACULTURE", "CATTLE", "GOAT"]>, "many">;
|
|
22
|
+
effectiveFarmPacks: z.ZodArray<z.ZodEnum<["CROPS", "POULTRY", "AQUACULTURE", "CATTLE", "GOAT"]>, "many">;
|
|
23
|
+
trade: z.ZodObject<{
|
|
24
|
+
enabled: z.ZodBoolean;
|
|
25
|
+
granted: z.ZodBoolean;
|
|
26
|
+
effective: z.ZodBoolean;
|
|
27
|
+
}, "strip", z.ZodTypeAny, {
|
|
28
|
+
enabled: boolean;
|
|
29
|
+
granted: boolean;
|
|
30
|
+
effective: boolean;
|
|
31
|
+
}, {
|
|
32
|
+
enabled: boolean;
|
|
33
|
+
granted: boolean;
|
|
34
|
+
effective: boolean;
|
|
35
|
+
}>;
|
|
36
|
+
effectiveWorkspaces: z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
37
|
+
kind: z.ZodLiteral<"farm">;
|
|
38
|
+
pack: z.ZodEnum<["CROPS", "POULTRY", "AQUACULTURE", "CATTLE", "GOAT"]>;
|
|
39
|
+
}, "strip", z.ZodTypeAny, {
|
|
40
|
+
kind: "farm";
|
|
41
|
+
pack: "CROPS" | "POULTRY" | "AQUACULTURE" | "CATTLE" | "GOAT";
|
|
42
|
+
}, {
|
|
43
|
+
kind: "farm";
|
|
44
|
+
pack: "CROPS" | "POULTRY" | "AQUACULTURE" | "CATTLE" | "GOAT";
|
|
45
|
+
}>, z.ZodObject<{
|
|
46
|
+
kind: z.ZodLiteral<"trade">;
|
|
47
|
+
}, "strip", z.ZodTypeAny, {
|
|
48
|
+
kind: "trade";
|
|
49
|
+
}, {
|
|
50
|
+
kind: "trade";
|
|
51
|
+
}>]>, "many">;
|
|
52
|
+
}, "strip", z.ZodTypeAny, {
|
|
53
|
+
organizationId: string | null;
|
|
54
|
+
farmId: string;
|
|
55
|
+
enabledFarmPacks: ("CROPS" | "POULTRY" | "AQUACULTURE" | "CATTLE" | "GOAT")[];
|
|
56
|
+
grantedFarmPacks: ("CROPS" | "POULTRY" | "AQUACULTURE" | "CATTLE" | "GOAT")[];
|
|
57
|
+
effectiveFarmPacks: ("CROPS" | "POULTRY" | "AQUACULTURE" | "CATTLE" | "GOAT")[];
|
|
58
|
+
trade: {
|
|
59
|
+
enabled: boolean;
|
|
60
|
+
granted: boolean;
|
|
61
|
+
effective: boolean;
|
|
62
|
+
};
|
|
63
|
+
effectiveWorkspaces: ({
|
|
64
|
+
kind: "farm";
|
|
65
|
+
pack: "CROPS" | "POULTRY" | "AQUACULTURE" | "CATTLE" | "GOAT";
|
|
66
|
+
} | {
|
|
67
|
+
kind: "trade";
|
|
68
|
+
})[];
|
|
69
|
+
}, {
|
|
70
|
+
organizationId: string | null;
|
|
71
|
+
farmId: string;
|
|
72
|
+
enabledFarmPacks: ("CROPS" | "POULTRY" | "AQUACULTURE" | "CATTLE" | "GOAT")[];
|
|
73
|
+
grantedFarmPacks: ("CROPS" | "POULTRY" | "AQUACULTURE" | "CATTLE" | "GOAT")[];
|
|
74
|
+
effectiveFarmPacks: ("CROPS" | "POULTRY" | "AQUACULTURE" | "CATTLE" | "GOAT")[];
|
|
75
|
+
trade: {
|
|
76
|
+
enabled: boolean;
|
|
77
|
+
granted: boolean;
|
|
78
|
+
effective: boolean;
|
|
79
|
+
};
|
|
80
|
+
effectiveWorkspaces: ({
|
|
81
|
+
kind: "farm";
|
|
82
|
+
pack: "CROPS" | "POULTRY" | "AQUACULTURE" | "CATTLE" | "GOAT";
|
|
83
|
+
} | {
|
|
84
|
+
kind: "trade";
|
|
85
|
+
})[];
|
|
86
|
+
}>;
|
|
87
|
+
}, "strip", z.ZodTypeAny, {
|
|
88
|
+
data: {
|
|
89
|
+
organizationId: string | null;
|
|
90
|
+
farmId: string;
|
|
91
|
+
enabledFarmPacks: ("CROPS" | "POULTRY" | "AQUACULTURE" | "CATTLE" | "GOAT")[];
|
|
92
|
+
grantedFarmPacks: ("CROPS" | "POULTRY" | "AQUACULTURE" | "CATTLE" | "GOAT")[];
|
|
93
|
+
effectiveFarmPacks: ("CROPS" | "POULTRY" | "AQUACULTURE" | "CATTLE" | "GOAT")[];
|
|
94
|
+
trade: {
|
|
95
|
+
enabled: boolean;
|
|
96
|
+
granted: boolean;
|
|
97
|
+
effective: boolean;
|
|
98
|
+
};
|
|
99
|
+
effectiveWorkspaces: ({
|
|
100
|
+
kind: "farm";
|
|
101
|
+
pack: "CROPS" | "POULTRY" | "AQUACULTURE" | "CATTLE" | "GOAT";
|
|
102
|
+
} | {
|
|
103
|
+
kind: "trade";
|
|
104
|
+
})[];
|
|
105
|
+
};
|
|
106
|
+
}, {
|
|
107
|
+
data: {
|
|
108
|
+
organizationId: string | null;
|
|
109
|
+
farmId: string;
|
|
110
|
+
enabledFarmPacks: ("CROPS" | "POULTRY" | "AQUACULTURE" | "CATTLE" | "GOAT")[];
|
|
111
|
+
grantedFarmPacks: ("CROPS" | "POULTRY" | "AQUACULTURE" | "CATTLE" | "GOAT")[];
|
|
112
|
+
effectiveFarmPacks: ("CROPS" | "POULTRY" | "AQUACULTURE" | "CATTLE" | "GOAT")[];
|
|
113
|
+
trade: {
|
|
114
|
+
enabled: boolean;
|
|
115
|
+
granted: boolean;
|
|
116
|
+
effective: boolean;
|
|
117
|
+
};
|
|
118
|
+
effectiveWorkspaces: ({
|
|
119
|
+
kind: "farm";
|
|
120
|
+
pack: "CROPS" | "POULTRY" | "AQUACULTURE" | "CATTLE" | "GOAT";
|
|
121
|
+
} | {
|
|
122
|
+
kind: "trade";
|
|
123
|
+
})[];
|
|
124
|
+
};
|
|
125
|
+
}>;
|
|
126
|
+
401: z.ZodObject<{
|
|
127
|
+
errors: z.ZodArray<z.ZodObject<{
|
|
128
|
+
id: z.ZodOptional<z.ZodString>;
|
|
129
|
+
links: z.ZodOptional<z.ZodObject<{
|
|
130
|
+
about: z.ZodOptional<z.ZodString>;
|
|
131
|
+
}, "strip", z.ZodTypeAny, {
|
|
132
|
+
about?: string | undefined;
|
|
133
|
+
}, {
|
|
134
|
+
about?: string | undefined;
|
|
135
|
+
}>>;
|
|
136
|
+
status: z.ZodOptional<z.ZodString>;
|
|
137
|
+
code: z.ZodOptional<z.ZodString>;
|
|
138
|
+
title: z.ZodOptional<z.ZodString>;
|
|
139
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
140
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
141
|
+
pointer: z.ZodOptional<z.ZodString>;
|
|
142
|
+
parameter: z.ZodOptional<z.ZodString>;
|
|
143
|
+
}, "strip", z.ZodTypeAny, {
|
|
144
|
+
pointer?: string | undefined;
|
|
145
|
+
parameter?: string | undefined;
|
|
146
|
+
}, {
|
|
147
|
+
pointer?: string | undefined;
|
|
148
|
+
parameter?: string | undefined;
|
|
149
|
+
}>>;
|
|
150
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
151
|
+
}, "strip", z.ZodTypeAny, {
|
|
152
|
+
status?: string | undefined;
|
|
153
|
+
code?: string | undefined;
|
|
154
|
+
id?: string | undefined;
|
|
155
|
+
links?: {
|
|
156
|
+
about?: string | undefined;
|
|
157
|
+
} | undefined;
|
|
158
|
+
meta?: Record<string, unknown> | undefined;
|
|
159
|
+
title?: string | undefined;
|
|
160
|
+
detail?: string | undefined;
|
|
161
|
+
source?: {
|
|
162
|
+
pointer?: string | undefined;
|
|
163
|
+
parameter?: string | undefined;
|
|
164
|
+
} | undefined;
|
|
165
|
+
}, {
|
|
166
|
+
status?: string | undefined;
|
|
167
|
+
code?: string | undefined;
|
|
168
|
+
id?: string | undefined;
|
|
169
|
+
links?: {
|
|
170
|
+
about?: string | undefined;
|
|
171
|
+
} | undefined;
|
|
172
|
+
meta?: Record<string, unknown> | undefined;
|
|
173
|
+
title?: string | undefined;
|
|
174
|
+
detail?: string | undefined;
|
|
175
|
+
source?: {
|
|
176
|
+
pointer?: string | undefined;
|
|
177
|
+
parameter?: string | undefined;
|
|
178
|
+
} | undefined;
|
|
179
|
+
}>, "many">;
|
|
180
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
181
|
+
}, "strip", z.ZodTypeAny, {
|
|
182
|
+
errors: {
|
|
183
|
+
status?: string | undefined;
|
|
184
|
+
code?: string | undefined;
|
|
185
|
+
id?: string | undefined;
|
|
186
|
+
links?: {
|
|
187
|
+
about?: string | undefined;
|
|
188
|
+
} | undefined;
|
|
189
|
+
meta?: Record<string, unknown> | undefined;
|
|
190
|
+
title?: string | undefined;
|
|
191
|
+
detail?: string | undefined;
|
|
192
|
+
source?: {
|
|
193
|
+
pointer?: string | undefined;
|
|
194
|
+
parameter?: string | undefined;
|
|
195
|
+
} | undefined;
|
|
196
|
+
}[];
|
|
197
|
+
meta?: Record<string, unknown> | undefined;
|
|
198
|
+
}, {
|
|
199
|
+
errors: {
|
|
200
|
+
status?: string | undefined;
|
|
201
|
+
code?: string | undefined;
|
|
202
|
+
id?: string | undefined;
|
|
203
|
+
links?: {
|
|
204
|
+
about?: string | undefined;
|
|
205
|
+
} | undefined;
|
|
206
|
+
meta?: Record<string, unknown> | undefined;
|
|
207
|
+
title?: string | undefined;
|
|
208
|
+
detail?: string | undefined;
|
|
209
|
+
source?: {
|
|
210
|
+
pointer?: string | undefined;
|
|
211
|
+
parameter?: string | undefined;
|
|
212
|
+
} | undefined;
|
|
213
|
+
}[];
|
|
214
|
+
meta?: Record<string, unknown> | undefined;
|
|
215
|
+
}>;
|
|
216
|
+
403: z.ZodObject<{
|
|
217
|
+
errors: z.ZodArray<z.ZodObject<{
|
|
218
|
+
id: z.ZodOptional<z.ZodString>;
|
|
219
|
+
links: z.ZodOptional<z.ZodObject<{
|
|
220
|
+
about: z.ZodOptional<z.ZodString>;
|
|
221
|
+
}, "strip", z.ZodTypeAny, {
|
|
222
|
+
about?: string | undefined;
|
|
223
|
+
}, {
|
|
224
|
+
about?: string | undefined;
|
|
225
|
+
}>>;
|
|
226
|
+
status: z.ZodOptional<z.ZodString>;
|
|
227
|
+
code: z.ZodOptional<z.ZodString>;
|
|
228
|
+
title: z.ZodOptional<z.ZodString>;
|
|
229
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
230
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
231
|
+
pointer: z.ZodOptional<z.ZodString>;
|
|
232
|
+
parameter: z.ZodOptional<z.ZodString>;
|
|
233
|
+
}, "strip", z.ZodTypeAny, {
|
|
234
|
+
pointer?: string | undefined;
|
|
235
|
+
parameter?: string | undefined;
|
|
236
|
+
}, {
|
|
237
|
+
pointer?: string | undefined;
|
|
238
|
+
parameter?: string | undefined;
|
|
239
|
+
}>>;
|
|
240
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
241
|
+
}, "strip", z.ZodTypeAny, {
|
|
242
|
+
status?: string | undefined;
|
|
243
|
+
code?: string | undefined;
|
|
244
|
+
id?: string | undefined;
|
|
245
|
+
links?: {
|
|
246
|
+
about?: string | undefined;
|
|
247
|
+
} | undefined;
|
|
248
|
+
meta?: Record<string, unknown> | undefined;
|
|
249
|
+
title?: string | undefined;
|
|
250
|
+
detail?: string | undefined;
|
|
251
|
+
source?: {
|
|
252
|
+
pointer?: string | undefined;
|
|
253
|
+
parameter?: string | undefined;
|
|
254
|
+
} | undefined;
|
|
255
|
+
}, {
|
|
256
|
+
status?: string | undefined;
|
|
257
|
+
code?: string | undefined;
|
|
258
|
+
id?: string | undefined;
|
|
259
|
+
links?: {
|
|
260
|
+
about?: string | undefined;
|
|
261
|
+
} | undefined;
|
|
262
|
+
meta?: Record<string, unknown> | undefined;
|
|
263
|
+
title?: string | undefined;
|
|
264
|
+
detail?: string | undefined;
|
|
265
|
+
source?: {
|
|
266
|
+
pointer?: string | undefined;
|
|
267
|
+
parameter?: string | undefined;
|
|
268
|
+
} | undefined;
|
|
269
|
+
}>, "many">;
|
|
270
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
271
|
+
}, "strip", z.ZodTypeAny, {
|
|
272
|
+
errors: {
|
|
273
|
+
status?: string | undefined;
|
|
274
|
+
code?: string | undefined;
|
|
275
|
+
id?: string | undefined;
|
|
276
|
+
links?: {
|
|
277
|
+
about?: string | undefined;
|
|
278
|
+
} | undefined;
|
|
279
|
+
meta?: Record<string, unknown> | undefined;
|
|
280
|
+
title?: string | undefined;
|
|
281
|
+
detail?: string | undefined;
|
|
282
|
+
source?: {
|
|
283
|
+
pointer?: string | undefined;
|
|
284
|
+
parameter?: string | undefined;
|
|
285
|
+
} | undefined;
|
|
286
|
+
}[];
|
|
287
|
+
meta?: Record<string, unknown> | undefined;
|
|
288
|
+
}, {
|
|
289
|
+
errors: {
|
|
290
|
+
status?: string | undefined;
|
|
291
|
+
code?: string | undefined;
|
|
292
|
+
id?: string | undefined;
|
|
293
|
+
links?: {
|
|
294
|
+
about?: string | undefined;
|
|
295
|
+
} | undefined;
|
|
296
|
+
meta?: Record<string, unknown> | undefined;
|
|
297
|
+
title?: string | undefined;
|
|
298
|
+
detail?: string | undefined;
|
|
299
|
+
source?: {
|
|
300
|
+
pointer?: string | undefined;
|
|
301
|
+
parameter?: string | undefined;
|
|
302
|
+
} | undefined;
|
|
303
|
+
}[];
|
|
304
|
+
meta?: Record<string, unknown> | undefined;
|
|
305
|
+
}>;
|
|
306
|
+
404: z.ZodObject<{
|
|
307
|
+
errors: z.ZodArray<z.ZodObject<{
|
|
308
|
+
id: z.ZodOptional<z.ZodString>;
|
|
309
|
+
links: z.ZodOptional<z.ZodObject<{
|
|
310
|
+
about: z.ZodOptional<z.ZodString>;
|
|
311
|
+
}, "strip", z.ZodTypeAny, {
|
|
312
|
+
about?: string | undefined;
|
|
313
|
+
}, {
|
|
314
|
+
about?: string | undefined;
|
|
315
|
+
}>>;
|
|
316
|
+
status: z.ZodOptional<z.ZodString>;
|
|
317
|
+
code: z.ZodOptional<z.ZodString>;
|
|
318
|
+
title: z.ZodOptional<z.ZodString>;
|
|
319
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
320
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
321
|
+
pointer: z.ZodOptional<z.ZodString>;
|
|
322
|
+
parameter: z.ZodOptional<z.ZodString>;
|
|
323
|
+
}, "strip", z.ZodTypeAny, {
|
|
324
|
+
pointer?: string | undefined;
|
|
325
|
+
parameter?: string | undefined;
|
|
326
|
+
}, {
|
|
327
|
+
pointer?: string | undefined;
|
|
328
|
+
parameter?: string | undefined;
|
|
329
|
+
}>>;
|
|
330
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
331
|
+
}, "strip", z.ZodTypeAny, {
|
|
332
|
+
status?: string | undefined;
|
|
333
|
+
code?: string | undefined;
|
|
334
|
+
id?: string | undefined;
|
|
335
|
+
links?: {
|
|
336
|
+
about?: string | undefined;
|
|
337
|
+
} | undefined;
|
|
338
|
+
meta?: Record<string, unknown> | undefined;
|
|
339
|
+
title?: string | undefined;
|
|
340
|
+
detail?: string | undefined;
|
|
341
|
+
source?: {
|
|
342
|
+
pointer?: string | undefined;
|
|
343
|
+
parameter?: string | undefined;
|
|
344
|
+
} | undefined;
|
|
345
|
+
}, {
|
|
346
|
+
status?: string | undefined;
|
|
347
|
+
code?: string | undefined;
|
|
348
|
+
id?: string | undefined;
|
|
349
|
+
links?: {
|
|
350
|
+
about?: string | undefined;
|
|
351
|
+
} | undefined;
|
|
352
|
+
meta?: Record<string, unknown> | undefined;
|
|
353
|
+
title?: string | undefined;
|
|
354
|
+
detail?: string | undefined;
|
|
355
|
+
source?: {
|
|
356
|
+
pointer?: string | undefined;
|
|
357
|
+
parameter?: string | undefined;
|
|
358
|
+
} | undefined;
|
|
359
|
+
}>, "many">;
|
|
360
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
361
|
+
}, "strip", z.ZodTypeAny, {
|
|
362
|
+
errors: {
|
|
363
|
+
status?: string | undefined;
|
|
364
|
+
code?: string | undefined;
|
|
365
|
+
id?: string | undefined;
|
|
366
|
+
links?: {
|
|
367
|
+
about?: string | undefined;
|
|
368
|
+
} | undefined;
|
|
369
|
+
meta?: Record<string, unknown> | undefined;
|
|
370
|
+
title?: string | undefined;
|
|
371
|
+
detail?: string | undefined;
|
|
372
|
+
source?: {
|
|
373
|
+
pointer?: string | undefined;
|
|
374
|
+
parameter?: string | undefined;
|
|
375
|
+
} | undefined;
|
|
376
|
+
}[];
|
|
377
|
+
meta?: Record<string, unknown> | undefined;
|
|
378
|
+
}, {
|
|
379
|
+
errors: {
|
|
380
|
+
status?: string | undefined;
|
|
381
|
+
code?: string | undefined;
|
|
382
|
+
id?: string | undefined;
|
|
383
|
+
links?: {
|
|
384
|
+
about?: string | undefined;
|
|
385
|
+
} | undefined;
|
|
386
|
+
meta?: Record<string, unknown> | undefined;
|
|
387
|
+
title?: string | undefined;
|
|
388
|
+
detail?: string | undefined;
|
|
389
|
+
source?: {
|
|
390
|
+
pointer?: string | undefined;
|
|
391
|
+
parameter?: string | undefined;
|
|
392
|
+
} | undefined;
|
|
393
|
+
}[];
|
|
394
|
+
meta?: Record<string, unknown> | undefined;
|
|
395
|
+
}>;
|
|
396
|
+
};
|
|
397
|
+
};
|
|
3
398
|
listFarmEnterprises: {
|
|
4
399
|
pathParams: z.ZodObject<{
|
|
5
400
|
farmId: z.ZodString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"farm-enterprises.routes.d.ts","sourceRoot":"","sources":["../../src/routes/farm-enterprises.routes.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,C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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyEhC,CAAC"}
|
|
@@ -1,12 +1,25 @@
|
|
|
1
1
|
import { initContract } from '@ts-rest/core';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { createFarmEnterpriseSchema, farmEnterpriseListResponseSchema, farmEnterpriseResponseSchema, replaceFarmEnterprisesSchema, } from '../schemas/farm-enterprises.schemas';
|
|
3
|
+
import { createFarmEnterpriseSchema, effectiveWorkspacePacksResponseSchema, farmEnterpriseListResponseSchema, farmEnterpriseResponseSchema, replaceFarmEnterprisesSchema, } from '../schemas/farm-enterprises.schemas';
|
|
4
4
|
import { jsonApiErrorResponseSchema, idParamSchema, } from '../schemas/common.schemas';
|
|
5
5
|
const c = initContract();
|
|
6
6
|
const farmIdParamSchema = z.object({
|
|
7
7
|
farmId: z.string().uuid(),
|
|
8
8
|
});
|
|
9
9
|
export const farmEnterprisesRouter = c.router({
|
|
10
|
+
getEffectiveWorkspacePacks: {
|
|
11
|
+
method: 'GET',
|
|
12
|
+
path: '/farms/:farmId/effective-workspace',
|
|
13
|
+
pathParams: farmIdParamSchema,
|
|
14
|
+
responses: {
|
|
15
|
+
200: effectiveWorkspacePacksResponseSchema,
|
|
16
|
+
401: jsonApiErrorResponseSchema,
|
|
17
|
+
403: jsonApiErrorResponseSchema,
|
|
18
|
+
404: jsonApiErrorResponseSchema,
|
|
19
|
+
},
|
|
20
|
+
summary: 'Effective packs the current user may switch into for this farm',
|
|
21
|
+
description: 'Intersection of farm-enabled enterprises and user grants, plus Commodity Trade when org-enabled and granted.',
|
|
22
|
+
},
|
|
10
23
|
listFarmEnterprises: {
|
|
11
24
|
method: 'GET',
|
|
12
25
|
path: '/farms/:farmId/enterprises',
|