@deepintel-ltd/farmpro-contracts 1.5.24 → 1.5.25
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/invoices.routes.d.ts +44 -100
- package/dist/routes/invoices.routes.d.ts.map +1 -1
- package/dist/routes/organizations.routes.d.ts +377 -1
- package/dist/routes/organizations.routes.d.ts.map +1 -1
- package/dist/routes/organizations.routes.js +16 -1
- package/dist/routes/suppliers.routes.d.ts +76 -76
- package/dist/routes/suppliers.routes.js +18 -18
- package/dist/routes/waybills.routes.d.ts +44 -86
- package/dist/routes/waybills.routes.d.ts.map +1 -1
- package/dist/schemas/invoices.schemas.d.ts +34 -98
- package/dist/schemas/invoices.schemas.d.ts.map +1 -1
- package/dist/schemas/invoices.schemas.js +1 -5
- package/dist/schemas/suppliers.schemas.d.ts +44 -44
- package/dist/schemas/suppliers.schemas.js +2 -2
- package/dist/schemas/waybills.schemas.d.ts +34 -82
- package/dist/schemas/waybills.schemas.d.ts.map +1 -1
- package/dist/schemas/waybills.schemas.js +1 -4
- package/package.json +1 -1
|
@@ -2,11 +2,11 @@ import { z } from 'zod';
|
|
|
2
2
|
export declare const suppliersRouter: {
|
|
3
3
|
listSuppliers: {
|
|
4
4
|
pathParams: z.ZodObject<{
|
|
5
|
-
|
|
5
|
+
organizationId: z.ZodString;
|
|
6
6
|
}, "strip", z.ZodTypeAny, {
|
|
7
|
-
|
|
7
|
+
organizationId: string;
|
|
8
8
|
}, {
|
|
9
|
-
|
|
9
|
+
organizationId: string;
|
|
10
10
|
}>;
|
|
11
11
|
query: z.ZodObject<{
|
|
12
12
|
'page[number]': z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
@@ -44,16 +44,16 @@ export declare const suppliersRouter: {
|
|
|
44
44
|
'filter[type]'?: "other" | "equipment" | "seed" | "fertilizer" | "pesticide" | "labor" | undefined;
|
|
45
45
|
}>;
|
|
46
46
|
summary: "List suppliers";
|
|
47
|
-
description: "Get all suppliers for
|
|
47
|
+
description: "Get all suppliers for an organization with optional filtering";
|
|
48
48
|
method: "GET";
|
|
49
|
-
path: "/
|
|
49
|
+
path: "/organizations/:organizationId/suppliers";
|
|
50
50
|
responses: {
|
|
51
51
|
200: z.ZodObject<{
|
|
52
52
|
data: z.ZodArray<z.ZodObject<{
|
|
53
53
|
type: z.ZodLiteral<string>;
|
|
54
54
|
id: z.ZodString;
|
|
55
55
|
attributes: z.ZodObject<{
|
|
56
|
-
|
|
56
|
+
organizationId: z.ZodString;
|
|
57
57
|
name: z.ZodString;
|
|
58
58
|
type: z.ZodEnum<["seed", "fertilizer", "pesticide", "equipment", "labor", "other"]>;
|
|
59
59
|
contactPerson: z.ZodNullable<z.ZodString>;
|
|
@@ -94,8 +94,8 @@ export declare const suppliersRouter: {
|
|
|
94
94
|
updatedAt: string;
|
|
95
95
|
name: string;
|
|
96
96
|
phone: string | null;
|
|
97
|
-
farmId: string;
|
|
98
97
|
notes: string | null;
|
|
98
|
+
organizationId: string;
|
|
99
99
|
contactPerson: string | null;
|
|
100
100
|
address: string | null;
|
|
101
101
|
rating: number | null;
|
|
@@ -114,8 +114,8 @@ export declare const suppliersRouter: {
|
|
|
114
114
|
updatedAt: string;
|
|
115
115
|
name: string;
|
|
116
116
|
phone: string | null;
|
|
117
|
-
farmId: string;
|
|
118
117
|
notes: string | null;
|
|
118
|
+
organizationId: string;
|
|
119
119
|
contactPerson: string | null;
|
|
120
120
|
address: string | null;
|
|
121
121
|
rating: number | null;
|
|
@@ -141,8 +141,8 @@ export declare const suppliersRouter: {
|
|
|
141
141
|
updatedAt: string;
|
|
142
142
|
name: string;
|
|
143
143
|
phone: string | null;
|
|
144
|
-
farmId: string;
|
|
145
144
|
notes: string | null;
|
|
145
|
+
organizationId: string;
|
|
146
146
|
contactPerson: string | null;
|
|
147
147
|
address: string | null;
|
|
148
148
|
rating: number | null;
|
|
@@ -168,8 +168,8 @@ export declare const suppliersRouter: {
|
|
|
168
168
|
updatedAt: string;
|
|
169
169
|
name: string;
|
|
170
170
|
phone: string | null;
|
|
171
|
-
farmId: string;
|
|
172
171
|
notes: string | null;
|
|
172
|
+
organizationId: string;
|
|
173
173
|
contactPerson: string | null;
|
|
174
174
|
address: string | null;
|
|
175
175
|
rating: number | null;
|
|
@@ -221,8 +221,8 @@ export declare const suppliersRouter: {
|
|
|
221
221
|
updatedAt: string;
|
|
222
222
|
name: string;
|
|
223
223
|
phone: string | null;
|
|
224
|
-
farmId: string;
|
|
225
224
|
notes: string | null;
|
|
225
|
+
organizationId: string;
|
|
226
226
|
contactPerson: string | null;
|
|
227
227
|
address: string | null;
|
|
228
228
|
rating: number | null;
|
|
@@ -260,8 +260,8 @@ export declare const suppliersRouter: {
|
|
|
260
260
|
updatedAt: string;
|
|
261
261
|
name: string;
|
|
262
262
|
phone: string | null;
|
|
263
|
-
farmId: string;
|
|
264
263
|
notes: string | null;
|
|
264
|
+
organizationId: string;
|
|
265
265
|
contactPerson: string | null;
|
|
266
266
|
address: string | null;
|
|
267
267
|
rating: number | null;
|
|
@@ -473,11 +473,11 @@ export declare const suppliersRouter: {
|
|
|
473
473
|
};
|
|
474
474
|
createSupplier: {
|
|
475
475
|
pathParams: z.ZodObject<{
|
|
476
|
-
|
|
476
|
+
organizationId: z.ZodString;
|
|
477
477
|
}, "strip", z.ZodTypeAny, {
|
|
478
|
-
|
|
478
|
+
organizationId: string;
|
|
479
479
|
}, {
|
|
480
|
-
|
|
480
|
+
organizationId: string;
|
|
481
481
|
}>;
|
|
482
482
|
summary: "Create supplier";
|
|
483
483
|
description: "Add a new supplier";
|
|
@@ -567,14 +567,14 @@ export declare const suppliersRouter: {
|
|
|
567
567
|
};
|
|
568
568
|
};
|
|
569
569
|
}>;
|
|
570
|
-
path: "/
|
|
570
|
+
path: "/organizations/:organizationId/suppliers";
|
|
571
571
|
responses: {
|
|
572
572
|
201: z.ZodObject<{
|
|
573
573
|
data: z.ZodObject<{
|
|
574
574
|
type: z.ZodLiteral<string>;
|
|
575
575
|
id: z.ZodString;
|
|
576
576
|
attributes: z.ZodObject<{
|
|
577
|
-
|
|
577
|
+
organizationId: z.ZodString;
|
|
578
578
|
name: z.ZodString;
|
|
579
579
|
type: z.ZodEnum<["seed", "fertilizer", "pesticide", "equipment", "labor", "other"]>;
|
|
580
580
|
contactPerson: z.ZodNullable<z.ZodString>;
|
|
@@ -615,8 +615,8 @@ export declare const suppliersRouter: {
|
|
|
615
615
|
updatedAt: string;
|
|
616
616
|
name: string;
|
|
617
617
|
phone: string | null;
|
|
618
|
-
farmId: string;
|
|
619
618
|
notes: string | null;
|
|
619
|
+
organizationId: string;
|
|
620
620
|
contactPerson: string | null;
|
|
621
621
|
address: string | null;
|
|
622
622
|
rating: number | null;
|
|
@@ -635,8 +635,8 @@ export declare const suppliersRouter: {
|
|
|
635
635
|
updatedAt: string;
|
|
636
636
|
name: string;
|
|
637
637
|
phone: string | null;
|
|
638
|
-
farmId: string;
|
|
639
638
|
notes: string | null;
|
|
639
|
+
organizationId: string;
|
|
640
640
|
contactPerson: string | null;
|
|
641
641
|
address: string | null;
|
|
642
642
|
rating: number | null;
|
|
@@ -662,8 +662,8 @@ export declare const suppliersRouter: {
|
|
|
662
662
|
updatedAt: string;
|
|
663
663
|
name: string;
|
|
664
664
|
phone: string | null;
|
|
665
|
-
farmId: string;
|
|
666
665
|
notes: string | null;
|
|
666
|
+
organizationId: string;
|
|
667
667
|
contactPerson: string | null;
|
|
668
668
|
address: string | null;
|
|
669
669
|
rating: number | null;
|
|
@@ -689,8 +689,8 @@ export declare const suppliersRouter: {
|
|
|
689
689
|
updatedAt: string;
|
|
690
690
|
name: string;
|
|
691
691
|
phone: string | null;
|
|
692
|
-
farmId: string;
|
|
693
692
|
notes: string | null;
|
|
693
|
+
organizationId: string;
|
|
694
694
|
contactPerson: string | null;
|
|
695
695
|
address: string | null;
|
|
696
696
|
rating: number | null;
|
|
@@ -742,8 +742,8 @@ export declare const suppliersRouter: {
|
|
|
742
742
|
updatedAt: string;
|
|
743
743
|
name: string;
|
|
744
744
|
phone: string | null;
|
|
745
|
-
farmId: string;
|
|
746
745
|
notes: string | null;
|
|
746
|
+
organizationId: string;
|
|
747
747
|
contactPerson: string | null;
|
|
748
748
|
address: string | null;
|
|
749
749
|
rating: number | null;
|
|
@@ -781,8 +781,8 @@ export declare const suppliersRouter: {
|
|
|
781
781
|
updatedAt: string;
|
|
782
782
|
name: string;
|
|
783
783
|
phone: string | null;
|
|
784
|
-
farmId: string;
|
|
785
784
|
notes: string | null;
|
|
785
|
+
organizationId: string;
|
|
786
786
|
contactPerson: string | null;
|
|
787
787
|
address: string | null;
|
|
788
788
|
rating: number | null;
|
|
@@ -1174,14 +1174,14 @@ export declare const suppliersRouter: {
|
|
|
1174
1174
|
};
|
|
1175
1175
|
updateSupplier: {
|
|
1176
1176
|
pathParams: z.ZodObject<{
|
|
1177
|
-
|
|
1177
|
+
organizationId: z.ZodString;
|
|
1178
1178
|
id: z.ZodString;
|
|
1179
1179
|
}, "strip", z.ZodTypeAny, {
|
|
1180
1180
|
id: string;
|
|
1181
|
-
|
|
1181
|
+
organizationId: string;
|
|
1182
1182
|
}, {
|
|
1183
1183
|
id: string;
|
|
1184
|
-
|
|
1184
|
+
organizationId: string;
|
|
1185
1185
|
}>;
|
|
1186
1186
|
summary: "Update supplier";
|
|
1187
1187
|
description: "Update supplier information";
|
|
@@ -1276,14 +1276,14 @@ export declare const suppliersRouter: {
|
|
|
1276
1276
|
};
|
|
1277
1277
|
};
|
|
1278
1278
|
}>;
|
|
1279
|
-
path: "/
|
|
1279
|
+
path: "/organizations/:organizationId/suppliers/:id";
|
|
1280
1280
|
responses: {
|
|
1281
1281
|
200: z.ZodObject<{
|
|
1282
1282
|
data: z.ZodObject<{
|
|
1283
1283
|
type: z.ZodLiteral<string>;
|
|
1284
1284
|
id: z.ZodString;
|
|
1285
1285
|
attributes: z.ZodObject<{
|
|
1286
|
-
|
|
1286
|
+
organizationId: z.ZodString;
|
|
1287
1287
|
name: z.ZodString;
|
|
1288
1288
|
type: z.ZodEnum<["seed", "fertilizer", "pesticide", "equipment", "labor", "other"]>;
|
|
1289
1289
|
contactPerson: z.ZodNullable<z.ZodString>;
|
|
@@ -1324,8 +1324,8 @@ export declare const suppliersRouter: {
|
|
|
1324
1324
|
updatedAt: string;
|
|
1325
1325
|
name: string;
|
|
1326
1326
|
phone: string | null;
|
|
1327
|
-
farmId: string;
|
|
1328
1327
|
notes: string | null;
|
|
1328
|
+
organizationId: string;
|
|
1329
1329
|
contactPerson: string | null;
|
|
1330
1330
|
address: string | null;
|
|
1331
1331
|
rating: number | null;
|
|
@@ -1344,8 +1344,8 @@ export declare const suppliersRouter: {
|
|
|
1344
1344
|
updatedAt: string;
|
|
1345
1345
|
name: string;
|
|
1346
1346
|
phone: string | null;
|
|
1347
|
-
farmId: string;
|
|
1348
1347
|
notes: string | null;
|
|
1348
|
+
organizationId: string;
|
|
1349
1349
|
contactPerson: string | null;
|
|
1350
1350
|
address: string | null;
|
|
1351
1351
|
rating: number | null;
|
|
@@ -1371,8 +1371,8 @@ export declare const suppliersRouter: {
|
|
|
1371
1371
|
updatedAt: string;
|
|
1372
1372
|
name: string;
|
|
1373
1373
|
phone: string | null;
|
|
1374
|
-
farmId: string;
|
|
1375
1374
|
notes: string | null;
|
|
1375
|
+
organizationId: string;
|
|
1376
1376
|
contactPerson: string | null;
|
|
1377
1377
|
address: string | null;
|
|
1378
1378
|
rating: number | null;
|
|
@@ -1398,8 +1398,8 @@ export declare const suppliersRouter: {
|
|
|
1398
1398
|
updatedAt: string;
|
|
1399
1399
|
name: string;
|
|
1400
1400
|
phone: string | null;
|
|
1401
|
-
farmId: string;
|
|
1402
1401
|
notes: string | null;
|
|
1402
|
+
organizationId: string;
|
|
1403
1403
|
contactPerson: string | null;
|
|
1404
1404
|
address: string | null;
|
|
1405
1405
|
rating: number | null;
|
|
@@ -1451,8 +1451,8 @@ export declare const suppliersRouter: {
|
|
|
1451
1451
|
updatedAt: string;
|
|
1452
1452
|
name: string;
|
|
1453
1453
|
phone: string | null;
|
|
1454
|
-
farmId: string;
|
|
1455
1454
|
notes: string | null;
|
|
1455
|
+
organizationId: string;
|
|
1456
1456
|
contactPerson: string | null;
|
|
1457
1457
|
address: string | null;
|
|
1458
1458
|
rating: number | null;
|
|
@@ -1490,8 +1490,8 @@ export declare const suppliersRouter: {
|
|
|
1490
1490
|
updatedAt: string;
|
|
1491
1491
|
name: string;
|
|
1492
1492
|
phone: string | null;
|
|
1493
|
-
farmId: string;
|
|
1494
1493
|
notes: string | null;
|
|
1494
|
+
organizationId: string;
|
|
1495
1495
|
contactPerson: string | null;
|
|
1496
1496
|
address: string | null;
|
|
1497
1497
|
rating: number | null;
|
|
@@ -1883,19 +1883,19 @@ export declare const suppliersRouter: {
|
|
|
1883
1883
|
};
|
|
1884
1884
|
deleteSupplier: {
|
|
1885
1885
|
pathParams: z.ZodObject<{
|
|
1886
|
-
|
|
1886
|
+
organizationId: z.ZodString;
|
|
1887
1887
|
id: z.ZodString;
|
|
1888
1888
|
}, "strip", z.ZodTypeAny, {
|
|
1889
1889
|
id: string;
|
|
1890
|
-
|
|
1890
|
+
organizationId: string;
|
|
1891
1891
|
}, {
|
|
1892
1892
|
id: string;
|
|
1893
|
-
|
|
1893
|
+
organizationId: string;
|
|
1894
1894
|
}>;
|
|
1895
1895
|
summary: "Delete supplier";
|
|
1896
1896
|
description: "Delete a supplier";
|
|
1897
1897
|
method: "DELETE";
|
|
1898
|
-
path: "/
|
|
1898
|
+
path: "/organizations/:organizationId/suppliers/:id";
|
|
1899
1899
|
responses: {
|
|
1900
1900
|
204: z.ZodObject<{
|
|
1901
1901
|
meta: z.ZodObject<{
|
|
@@ -2098,11 +2098,11 @@ export declare const suppliersRouter: {
|
|
|
2098
2098
|
};
|
|
2099
2099
|
listBuyers: {
|
|
2100
2100
|
pathParams: z.ZodObject<{
|
|
2101
|
-
|
|
2101
|
+
organizationId: z.ZodString;
|
|
2102
2102
|
}, "strip", z.ZodTypeAny, {
|
|
2103
|
-
|
|
2103
|
+
organizationId: string;
|
|
2104
2104
|
}, {
|
|
2105
|
-
|
|
2105
|
+
organizationId: string;
|
|
2106
2106
|
}>;
|
|
2107
2107
|
query: z.ZodObject<{
|
|
2108
2108
|
'page[number]': z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
@@ -2134,16 +2134,16 @@ export declare const suppliersRouter: {
|
|
|
2134
2134
|
include?: string | undefined;
|
|
2135
2135
|
}>;
|
|
2136
2136
|
summary: "List buyers";
|
|
2137
|
-
description: "Get all buyers for
|
|
2137
|
+
description: "Get all buyers for an organization with optional filtering";
|
|
2138
2138
|
method: "GET";
|
|
2139
|
-
path: "/
|
|
2139
|
+
path: "/organizations/:organizationId/buyers";
|
|
2140
2140
|
responses: {
|
|
2141
2141
|
200: z.ZodObject<{
|
|
2142
2142
|
data: z.ZodArray<z.ZodObject<{
|
|
2143
2143
|
type: z.ZodLiteral<string>;
|
|
2144
2144
|
id: z.ZodString;
|
|
2145
2145
|
attributes: z.ZodObject<{
|
|
2146
|
-
|
|
2146
|
+
organizationId: z.ZodString;
|
|
2147
2147
|
name: z.ZodString;
|
|
2148
2148
|
contactPerson: z.ZodNullable<z.ZodString>;
|
|
2149
2149
|
email: z.ZodNullable<z.ZodString>;
|
|
@@ -2183,8 +2183,8 @@ export declare const suppliersRouter: {
|
|
|
2183
2183
|
updatedAt: string;
|
|
2184
2184
|
name: string;
|
|
2185
2185
|
phone: string | null;
|
|
2186
|
-
farmId: string;
|
|
2187
2186
|
notes: string | null;
|
|
2187
|
+
organizationId: string;
|
|
2188
2188
|
contactPerson: string | null;
|
|
2189
2189
|
address: string | null;
|
|
2190
2190
|
rating: number | null;
|
|
@@ -2203,8 +2203,8 @@ export declare const suppliersRouter: {
|
|
|
2203
2203
|
updatedAt: string;
|
|
2204
2204
|
name: string;
|
|
2205
2205
|
phone: string | null;
|
|
2206
|
-
farmId: string;
|
|
2207
2206
|
notes: string | null;
|
|
2207
|
+
organizationId: string;
|
|
2208
2208
|
contactPerson: string | null;
|
|
2209
2209
|
address: string | null;
|
|
2210
2210
|
rating: number | null;
|
|
@@ -2230,8 +2230,8 @@ export declare const suppliersRouter: {
|
|
|
2230
2230
|
updatedAt: string;
|
|
2231
2231
|
name: string;
|
|
2232
2232
|
phone: string | null;
|
|
2233
|
-
farmId: string;
|
|
2234
2233
|
notes: string | null;
|
|
2234
|
+
organizationId: string;
|
|
2235
2235
|
contactPerson: string | null;
|
|
2236
2236
|
address: string | null;
|
|
2237
2237
|
rating: number | null;
|
|
@@ -2257,8 +2257,8 @@ export declare const suppliersRouter: {
|
|
|
2257
2257
|
updatedAt: string;
|
|
2258
2258
|
name: string;
|
|
2259
2259
|
phone: string | null;
|
|
2260
|
-
farmId: string;
|
|
2261
2260
|
notes: string | null;
|
|
2261
|
+
organizationId: string;
|
|
2262
2262
|
contactPerson: string | null;
|
|
2263
2263
|
address: string | null;
|
|
2264
2264
|
rating: number | null;
|
|
@@ -2310,8 +2310,8 @@ export declare const suppliersRouter: {
|
|
|
2310
2310
|
updatedAt: string;
|
|
2311
2311
|
name: string;
|
|
2312
2312
|
phone: string | null;
|
|
2313
|
-
farmId: string;
|
|
2314
2313
|
notes: string | null;
|
|
2314
|
+
organizationId: string;
|
|
2315
2315
|
contactPerson: string | null;
|
|
2316
2316
|
address: string | null;
|
|
2317
2317
|
rating: number | null;
|
|
@@ -2349,8 +2349,8 @@ export declare const suppliersRouter: {
|
|
|
2349
2349
|
updatedAt: string;
|
|
2350
2350
|
name: string;
|
|
2351
2351
|
phone: string | null;
|
|
2352
|
-
farmId: string;
|
|
2353
2352
|
notes: string | null;
|
|
2353
|
+
organizationId: string;
|
|
2354
2354
|
contactPerson: string | null;
|
|
2355
2355
|
address: string | null;
|
|
2356
2356
|
rating: number | null;
|
|
@@ -2563,11 +2563,11 @@ export declare const suppliersRouter: {
|
|
|
2563
2563
|
};
|
|
2564
2564
|
createBuyer: {
|
|
2565
2565
|
pathParams: z.ZodObject<{
|
|
2566
|
-
|
|
2566
|
+
organizationId: z.ZodString;
|
|
2567
2567
|
}, "strip", z.ZodTypeAny, {
|
|
2568
|
-
|
|
2568
|
+
organizationId: string;
|
|
2569
2569
|
}, {
|
|
2570
|
-
|
|
2570
|
+
organizationId: string;
|
|
2571
2571
|
}>;
|
|
2572
2572
|
summary: "Create buyer";
|
|
2573
2573
|
description: "Add a new buyer";
|
|
@@ -2657,14 +2657,14 @@ export declare const suppliersRouter: {
|
|
|
2657
2657
|
};
|
|
2658
2658
|
};
|
|
2659
2659
|
}>;
|
|
2660
|
-
path: "/
|
|
2660
|
+
path: "/organizations/:organizationId/buyers";
|
|
2661
2661
|
responses: {
|
|
2662
2662
|
201: z.ZodObject<{
|
|
2663
2663
|
data: z.ZodObject<{
|
|
2664
2664
|
type: z.ZodLiteral<string>;
|
|
2665
2665
|
id: z.ZodString;
|
|
2666
2666
|
attributes: z.ZodObject<{
|
|
2667
|
-
|
|
2667
|
+
organizationId: z.ZodString;
|
|
2668
2668
|
name: z.ZodString;
|
|
2669
2669
|
contactPerson: z.ZodNullable<z.ZodString>;
|
|
2670
2670
|
email: z.ZodNullable<z.ZodString>;
|
|
@@ -2704,8 +2704,8 @@ export declare const suppliersRouter: {
|
|
|
2704
2704
|
updatedAt: string;
|
|
2705
2705
|
name: string;
|
|
2706
2706
|
phone: string | null;
|
|
2707
|
-
farmId: string;
|
|
2708
2707
|
notes: string | null;
|
|
2708
|
+
organizationId: string;
|
|
2709
2709
|
contactPerson: string | null;
|
|
2710
2710
|
address: string | null;
|
|
2711
2711
|
rating: number | null;
|
|
@@ -2724,8 +2724,8 @@ export declare const suppliersRouter: {
|
|
|
2724
2724
|
updatedAt: string;
|
|
2725
2725
|
name: string;
|
|
2726
2726
|
phone: string | null;
|
|
2727
|
-
farmId: string;
|
|
2728
2727
|
notes: string | null;
|
|
2728
|
+
organizationId: string;
|
|
2729
2729
|
contactPerson: string | null;
|
|
2730
2730
|
address: string | null;
|
|
2731
2731
|
rating: number | null;
|
|
@@ -2751,8 +2751,8 @@ export declare const suppliersRouter: {
|
|
|
2751
2751
|
updatedAt: string;
|
|
2752
2752
|
name: string;
|
|
2753
2753
|
phone: string | null;
|
|
2754
|
-
farmId: string;
|
|
2755
2754
|
notes: string | null;
|
|
2755
|
+
organizationId: string;
|
|
2756
2756
|
contactPerson: string | null;
|
|
2757
2757
|
address: string | null;
|
|
2758
2758
|
rating: number | null;
|
|
@@ -2778,8 +2778,8 @@ export declare const suppliersRouter: {
|
|
|
2778
2778
|
updatedAt: string;
|
|
2779
2779
|
name: string;
|
|
2780
2780
|
phone: string | null;
|
|
2781
|
-
farmId: string;
|
|
2782
2781
|
notes: string | null;
|
|
2782
|
+
organizationId: string;
|
|
2783
2783
|
contactPerson: string | null;
|
|
2784
2784
|
address: string | null;
|
|
2785
2785
|
rating: number | null;
|
|
@@ -2831,8 +2831,8 @@ export declare const suppliersRouter: {
|
|
|
2831
2831
|
updatedAt: string;
|
|
2832
2832
|
name: string;
|
|
2833
2833
|
phone: string | null;
|
|
2834
|
-
farmId: string;
|
|
2835
2834
|
notes: string | null;
|
|
2835
|
+
organizationId: string;
|
|
2836
2836
|
contactPerson: string | null;
|
|
2837
2837
|
address: string | null;
|
|
2838
2838
|
rating: number | null;
|
|
@@ -2870,8 +2870,8 @@ export declare const suppliersRouter: {
|
|
|
2870
2870
|
updatedAt: string;
|
|
2871
2871
|
name: string;
|
|
2872
2872
|
phone: string | null;
|
|
2873
|
-
farmId: string;
|
|
2874
2873
|
notes: string | null;
|
|
2874
|
+
organizationId: string;
|
|
2875
2875
|
contactPerson: string | null;
|
|
2876
2876
|
address: string | null;
|
|
2877
2877
|
rating: number | null;
|
|
@@ -3264,14 +3264,14 @@ export declare const suppliersRouter: {
|
|
|
3264
3264
|
};
|
|
3265
3265
|
updateBuyer: {
|
|
3266
3266
|
pathParams: z.ZodObject<{
|
|
3267
|
-
|
|
3267
|
+
organizationId: z.ZodString;
|
|
3268
3268
|
id: z.ZodString;
|
|
3269
3269
|
}, "strip", z.ZodTypeAny, {
|
|
3270
3270
|
id: string;
|
|
3271
|
-
|
|
3271
|
+
organizationId: string;
|
|
3272
3272
|
}, {
|
|
3273
3273
|
id: string;
|
|
3274
|
-
|
|
3274
|
+
organizationId: string;
|
|
3275
3275
|
}>;
|
|
3276
3276
|
summary: "Update buyer";
|
|
3277
3277
|
description: "Update buyer information";
|
|
@@ -3366,14 +3366,14 @@ export declare const suppliersRouter: {
|
|
|
3366
3366
|
};
|
|
3367
3367
|
};
|
|
3368
3368
|
}>;
|
|
3369
|
-
path: "/
|
|
3369
|
+
path: "/organizations/:organizationId/buyers/:id";
|
|
3370
3370
|
responses: {
|
|
3371
3371
|
200: z.ZodObject<{
|
|
3372
3372
|
data: z.ZodObject<{
|
|
3373
3373
|
type: z.ZodLiteral<string>;
|
|
3374
3374
|
id: z.ZodString;
|
|
3375
3375
|
attributes: z.ZodObject<{
|
|
3376
|
-
|
|
3376
|
+
organizationId: z.ZodString;
|
|
3377
3377
|
name: z.ZodString;
|
|
3378
3378
|
contactPerson: z.ZodNullable<z.ZodString>;
|
|
3379
3379
|
email: z.ZodNullable<z.ZodString>;
|
|
@@ -3413,8 +3413,8 @@ export declare const suppliersRouter: {
|
|
|
3413
3413
|
updatedAt: string;
|
|
3414
3414
|
name: string;
|
|
3415
3415
|
phone: string | null;
|
|
3416
|
-
farmId: string;
|
|
3417
3416
|
notes: string | null;
|
|
3417
|
+
organizationId: string;
|
|
3418
3418
|
contactPerson: string | null;
|
|
3419
3419
|
address: string | null;
|
|
3420
3420
|
rating: number | null;
|
|
@@ -3433,8 +3433,8 @@ export declare const suppliersRouter: {
|
|
|
3433
3433
|
updatedAt: string;
|
|
3434
3434
|
name: string;
|
|
3435
3435
|
phone: string | null;
|
|
3436
|
-
farmId: string;
|
|
3437
3436
|
notes: string | null;
|
|
3437
|
+
organizationId: string;
|
|
3438
3438
|
contactPerson: string | null;
|
|
3439
3439
|
address: string | null;
|
|
3440
3440
|
rating: number | null;
|
|
@@ -3460,8 +3460,8 @@ export declare const suppliersRouter: {
|
|
|
3460
3460
|
updatedAt: string;
|
|
3461
3461
|
name: string;
|
|
3462
3462
|
phone: string | null;
|
|
3463
|
-
farmId: string;
|
|
3464
3463
|
notes: string | null;
|
|
3464
|
+
organizationId: string;
|
|
3465
3465
|
contactPerson: string | null;
|
|
3466
3466
|
address: string | null;
|
|
3467
3467
|
rating: number | null;
|
|
@@ -3487,8 +3487,8 @@ export declare const suppliersRouter: {
|
|
|
3487
3487
|
updatedAt: string;
|
|
3488
3488
|
name: string;
|
|
3489
3489
|
phone: string | null;
|
|
3490
|
-
farmId: string;
|
|
3491
3490
|
notes: string | null;
|
|
3491
|
+
organizationId: string;
|
|
3492
3492
|
contactPerson: string | null;
|
|
3493
3493
|
address: string | null;
|
|
3494
3494
|
rating: number | null;
|
|
@@ -3540,8 +3540,8 @@ export declare const suppliersRouter: {
|
|
|
3540
3540
|
updatedAt: string;
|
|
3541
3541
|
name: string;
|
|
3542
3542
|
phone: string | null;
|
|
3543
|
-
farmId: string;
|
|
3544
3543
|
notes: string | null;
|
|
3544
|
+
organizationId: string;
|
|
3545
3545
|
contactPerson: string | null;
|
|
3546
3546
|
address: string | null;
|
|
3547
3547
|
rating: number | null;
|
|
@@ -3579,8 +3579,8 @@ export declare const suppliersRouter: {
|
|
|
3579
3579
|
updatedAt: string;
|
|
3580
3580
|
name: string;
|
|
3581
3581
|
phone: string | null;
|
|
3582
|
-
farmId: string;
|
|
3583
3582
|
notes: string | null;
|
|
3583
|
+
organizationId: string;
|
|
3584
3584
|
contactPerson: string | null;
|
|
3585
3585
|
address: string | null;
|
|
3586
3586
|
rating: number | null;
|
|
@@ -3973,19 +3973,19 @@ export declare const suppliersRouter: {
|
|
|
3973
3973
|
};
|
|
3974
3974
|
deleteBuyer: {
|
|
3975
3975
|
pathParams: z.ZodObject<{
|
|
3976
|
-
|
|
3976
|
+
organizationId: z.ZodString;
|
|
3977
3977
|
id: z.ZodString;
|
|
3978
3978
|
}, "strip", z.ZodTypeAny, {
|
|
3979
3979
|
id: string;
|
|
3980
|
-
|
|
3980
|
+
organizationId: string;
|
|
3981
3981
|
}, {
|
|
3982
3982
|
id: string;
|
|
3983
|
-
|
|
3983
|
+
organizationId: string;
|
|
3984
3984
|
}>;
|
|
3985
3985
|
summary: "Delete buyer";
|
|
3986
3986
|
description: "Delete a buyer";
|
|
3987
3987
|
method: "DELETE";
|
|
3988
|
-
path: "/
|
|
3988
|
+
path: "/organizations/:organizationId/buyers/:id";
|
|
3989
3989
|
responses: {
|
|
3990
3990
|
204: z.ZodObject<{
|
|
3991
3991
|
meta: z.ZodObject<{
|