@deepintel-ltd/farmpro-contracts 1.23.0 → 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/routes/categories.routes.d.ts +26 -26
- package/dist/routes/commodity-deals.routes.d.ts +42 -42
- 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/invoices.routes.d.ts +63 -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/organizations.routes.d.ts +90 -47
- package/dist/routes/organizations.routes.d.ts.map +1 -1
- package/dist/routes/purchase-orders.routes.d.ts +9 -9
- 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 +46 -46
- package/dist/routes/waybills.routes.d.ts +61 -57
- 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 +18 -18
- 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 +39 -39
- package/dist/schemas/notifications.schemas.d.ts +18 -18
- 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 +9 -9
- 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 +60 -60
- package/dist/schemas/waybills.schemas.d.ts +39 -39
- package/package.json +1 -1
|
@@ -13,14 +13,18 @@ export declare const waybillsRouter: {
|
|
|
13
13
|
'page[size]': z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
14
14
|
} & {
|
|
15
15
|
sort: z.ZodOptional<z.ZodString>;
|
|
16
|
+
} & {
|
|
17
|
+
'filter[commercialIntent]': z.ZodOptional<z.ZodEnum<["farm_sale", "trade"]>>;
|
|
16
18
|
}, "strip", z.ZodTypeAny, {
|
|
17
19
|
sort?: string | undefined;
|
|
18
20
|
'page[number]'?: number | undefined;
|
|
19
21
|
'page[size]'?: number | undefined;
|
|
22
|
+
'filter[commercialIntent]'?: "trade" | "farm_sale" | undefined;
|
|
20
23
|
}, {
|
|
21
24
|
sort?: string | undefined;
|
|
22
25
|
'page[number]'?: number | undefined;
|
|
23
26
|
'page[size]'?: number | undefined;
|
|
27
|
+
'filter[commercialIntent]'?: "trade" | "farm_sale" | undefined;
|
|
24
28
|
}>;
|
|
25
29
|
summary: "List all waybills for an organization";
|
|
26
30
|
description: "Get a paginated list of waybills for the specified organization";
|
|
@@ -87,8 +91,8 @@ export declare const waybillsRouter: {
|
|
|
87
91
|
}, "strip", z.ZodTypeAny, {
|
|
88
92
|
createdAt: string;
|
|
89
93
|
updatedAt: string;
|
|
90
|
-
currency: string;
|
|
91
94
|
organizationId: string;
|
|
95
|
+
currency: string;
|
|
92
96
|
items: {
|
|
93
97
|
description: string;
|
|
94
98
|
quantity: number;
|
|
@@ -121,7 +125,7 @@ export declare const waybillsRouter: {
|
|
|
121
125
|
receivedCondition?: string | null | undefined;
|
|
122
126
|
receivedAt?: string | null | undefined;
|
|
123
127
|
receivedByName?: string | null | undefined;
|
|
124
|
-
commercialIntent?: "
|
|
128
|
+
commercialIntent?: "trade" | "farm_sale" | null | undefined;
|
|
125
129
|
}, {
|
|
126
130
|
createdAt: string;
|
|
127
131
|
updatedAt: string;
|
|
@@ -159,7 +163,7 @@ export declare const waybillsRouter: {
|
|
|
159
163
|
receivedCondition?: string | null | undefined;
|
|
160
164
|
receivedAt?: string | null | undefined;
|
|
161
165
|
receivedByName?: string | null | undefined;
|
|
162
|
-
commercialIntent?: "
|
|
166
|
+
commercialIntent?: "trade" | "farm_sale" | null | undefined;
|
|
163
167
|
}>;
|
|
164
168
|
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
165
169
|
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -170,8 +174,8 @@ export declare const waybillsRouter: {
|
|
|
170
174
|
attributes: {
|
|
171
175
|
createdAt: string;
|
|
172
176
|
updatedAt: string;
|
|
173
|
-
currency: string;
|
|
174
177
|
organizationId: string;
|
|
178
|
+
currency: string;
|
|
175
179
|
items: {
|
|
176
180
|
description: string;
|
|
177
181
|
quantity: number;
|
|
@@ -204,7 +208,7 @@ export declare const waybillsRouter: {
|
|
|
204
208
|
receivedCondition?: string | null | undefined;
|
|
205
209
|
receivedAt?: string | null | undefined;
|
|
206
210
|
receivedByName?: string | null | undefined;
|
|
207
|
-
commercialIntent?: "
|
|
211
|
+
commercialIntent?: "trade" | "farm_sale" | null | undefined;
|
|
208
212
|
};
|
|
209
213
|
relationships?: Record<string, unknown> | undefined;
|
|
210
214
|
links?: Record<string, string> | undefined;
|
|
@@ -249,7 +253,7 @@ export declare const waybillsRouter: {
|
|
|
249
253
|
receivedCondition?: string | null | undefined;
|
|
250
254
|
receivedAt?: string | null | undefined;
|
|
251
255
|
receivedByName?: string | null | undefined;
|
|
252
|
-
commercialIntent?: "
|
|
256
|
+
commercialIntent?: "trade" | "farm_sale" | null | undefined;
|
|
253
257
|
};
|
|
254
258
|
relationships?: Record<string, unknown> | undefined;
|
|
255
259
|
links?: Record<string, string> | undefined;
|
|
@@ -286,8 +290,8 @@ export declare const waybillsRouter: {
|
|
|
286
290
|
attributes: {
|
|
287
291
|
createdAt: string;
|
|
288
292
|
updatedAt: string;
|
|
289
|
-
currency: string;
|
|
290
293
|
organizationId: string;
|
|
294
|
+
currency: string;
|
|
291
295
|
items: {
|
|
292
296
|
description: string;
|
|
293
297
|
quantity: number;
|
|
@@ -320,7 +324,7 @@ export declare const waybillsRouter: {
|
|
|
320
324
|
receivedCondition?: string | null | undefined;
|
|
321
325
|
receivedAt?: string | null | undefined;
|
|
322
326
|
receivedByName?: string | null | undefined;
|
|
323
|
-
commercialIntent?: "
|
|
327
|
+
commercialIntent?: "trade" | "farm_sale" | null | undefined;
|
|
324
328
|
};
|
|
325
329
|
relationships?: Record<string, unknown> | undefined;
|
|
326
330
|
links?: Record<string, string> | undefined;
|
|
@@ -377,7 +381,7 @@ export declare const waybillsRouter: {
|
|
|
377
381
|
receivedCondition?: string | null | undefined;
|
|
378
382
|
receivedAt?: string | null | undefined;
|
|
379
383
|
receivedByName?: string | null | undefined;
|
|
380
|
-
commercialIntent?: "
|
|
384
|
+
commercialIntent?: "trade" | "farm_sale" | null | undefined;
|
|
381
385
|
};
|
|
382
386
|
relationships?: Record<string, unknown> | undefined;
|
|
383
387
|
links?: Record<string, string> | undefined;
|
|
@@ -668,7 +672,7 @@ export declare const waybillsRouter: {
|
|
|
668
672
|
receivedCondition?: string | undefined;
|
|
669
673
|
receivedAt?: string | undefined;
|
|
670
674
|
receivedByName?: string | undefined;
|
|
671
|
-
commercialIntent?: "
|
|
675
|
+
commercialIntent?: "trade" | "farm_sale" | undefined;
|
|
672
676
|
purchaseCost?: number | undefined;
|
|
673
677
|
storageCost?: number | undefined;
|
|
674
678
|
miscellaneousCost?: number | undefined;
|
|
@@ -702,7 +706,7 @@ export declare const waybillsRouter: {
|
|
|
702
706
|
receivedCondition?: string | undefined;
|
|
703
707
|
receivedAt?: string | undefined;
|
|
704
708
|
receivedByName?: string | undefined;
|
|
705
|
-
commercialIntent?: "
|
|
709
|
+
commercialIntent?: "trade" | "farm_sale" | undefined;
|
|
706
710
|
purchaseCost?: number | undefined;
|
|
707
711
|
storageCost?: number | undefined;
|
|
708
712
|
miscellaneousCost?: number | undefined;
|
|
@@ -739,7 +743,7 @@ export declare const waybillsRouter: {
|
|
|
739
743
|
receivedCondition?: string | undefined;
|
|
740
744
|
receivedAt?: string | undefined;
|
|
741
745
|
receivedByName?: string | undefined;
|
|
742
|
-
commercialIntent?: "
|
|
746
|
+
commercialIntent?: "trade" | "farm_sale" | undefined;
|
|
743
747
|
purchaseCost?: number | undefined;
|
|
744
748
|
storageCost?: number | undefined;
|
|
745
749
|
miscellaneousCost?: number | undefined;
|
|
@@ -776,7 +780,7 @@ export declare const waybillsRouter: {
|
|
|
776
780
|
receivedCondition?: string | undefined;
|
|
777
781
|
receivedAt?: string | undefined;
|
|
778
782
|
receivedByName?: string | undefined;
|
|
779
|
-
commercialIntent?: "
|
|
783
|
+
commercialIntent?: "trade" | "farm_sale" | undefined;
|
|
780
784
|
purchaseCost?: number | undefined;
|
|
781
785
|
storageCost?: number | undefined;
|
|
782
786
|
miscellaneousCost?: number | undefined;
|
|
@@ -815,7 +819,7 @@ export declare const waybillsRouter: {
|
|
|
815
819
|
receivedCondition?: string | undefined;
|
|
816
820
|
receivedAt?: string | undefined;
|
|
817
821
|
receivedByName?: string | undefined;
|
|
818
|
-
commercialIntent?: "
|
|
822
|
+
commercialIntent?: "trade" | "farm_sale" | undefined;
|
|
819
823
|
purchaseCost?: number | undefined;
|
|
820
824
|
storageCost?: number | undefined;
|
|
821
825
|
miscellaneousCost?: number | undefined;
|
|
@@ -854,7 +858,7 @@ export declare const waybillsRouter: {
|
|
|
854
858
|
receivedCondition?: string | undefined;
|
|
855
859
|
receivedAt?: string | undefined;
|
|
856
860
|
receivedByName?: string | undefined;
|
|
857
|
-
commercialIntent?: "
|
|
861
|
+
commercialIntent?: "trade" | "farm_sale" | undefined;
|
|
858
862
|
purchaseCost?: number | undefined;
|
|
859
863
|
storageCost?: number | undefined;
|
|
860
864
|
miscellaneousCost?: number | undefined;
|
|
@@ -923,8 +927,8 @@ export declare const waybillsRouter: {
|
|
|
923
927
|
}, "strip", z.ZodTypeAny, {
|
|
924
928
|
createdAt: string;
|
|
925
929
|
updatedAt: string;
|
|
926
|
-
currency: string;
|
|
927
930
|
organizationId: string;
|
|
931
|
+
currency: string;
|
|
928
932
|
items: {
|
|
929
933
|
description: string;
|
|
930
934
|
quantity: number;
|
|
@@ -957,7 +961,7 @@ export declare const waybillsRouter: {
|
|
|
957
961
|
receivedCondition?: string | null | undefined;
|
|
958
962
|
receivedAt?: string | null | undefined;
|
|
959
963
|
receivedByName?: string | null | undefined;
|
|
960
|
-
commercialIntent?: "
|
|
964
|
+
commercialIntent?: "trade" | "farm_sale" | null | undefined;
|
|
961
965
|
}, {
|
|
962
966
|
createdAt: string;
|
|
963
967
|
updatedAt: string;
|
|
@@ -995,7 +999,7 @@ export declare const waybillsRouter: {
|
|
|
995
999
|
receivedCondition?: string | null | undefined;
|
|
996
1000
|
receivedAt?: string | null | undefined;
|
|
997
1001
|
receivedByName?: string | null | undefined;
|
|
998
|
-
commercialIntent?: "
|
|
1002
|
+
commercialIntent?: "trade" | "farm_sale" | null | undefined;
|
|
999
1003
|
}>;
|
|
1000
1004
|
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1001
1005
|
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -1006,8 +1010,8 @@ export declare const waybillsRouter: {
|
|
|
1006
1010
|
attributes: {
|
|
1007
1011
|
createdAt: string;
|
|
1008
1012
|
updatedAt: string;
|
|
1009
|
-
currency: string;
|
|
1010
1013
|
organizationId: string;
|
|
1014
|
+
currency: string;
|
|
1011
1015
|
items: {
|
|
1012
1016
|
description: string;
|
|
1013
1017
|
quantity: number;
|
|
@@ -1040,7 +1044,7 @@ export declare const waybillsRouter: {
|
|
|
1040
1044
|
receivedCondition?: string | null | undefined;
|
|
1041
1045
|
receivedAt?: string | null | undefined;
|
|
1042
1046
|
receivedByName?: string | null | undefined;
|
|
1043
|
-
commercialIntent?: "
|
|
1047
|
+
commercialIntent?: "trade" | "farm_sale" | null | undefined;
|
|
1044
1048
|
};
|
|
1045
1049
|
relationships?: Record<string, unknown> | undefined;
|
|
1046
1050
|
links?: Record<string, string> | undefined;
|
|
@@ -1085,7 +1089,7 @@ export declare const waybillsRouter: {
|
|
|
1085
1089
|
receivedCondition?: string | null | undefined;
|
|
1086
1090
|
receivedAt?: string | null | undefined;
|
|
1087
1091
|
receivedByName?: string | null | undefined;
|
|
1088
|
-
commercialIntent?: "
|
|
1092
|
+
commercialIntent?: "trade" | "farm_sale" | null | undefined;
|
|
1089
1093
|
};
|
|
1090
1094
|
relationships?: Record<string, unknown> | undefined;
|
|
1091
1095
|
links?: Record<string, string> | undefined;
|
|
@@ -1122,8 +1126,8 @@ export declare const waybillsRouter: {
|
|
|
1122
1126
|
attributes: {
|
|
1123
1127
|
createdAt: string;
|
|
1124
1128
|
updatedAt: string;
|
|
1125
|
-
currency: string;
|
|
1126
1129
|
organizationId: string;
|
|
1130
|
+
currency: string;
|
|
1127
1131
|
items: {
|
|
1128
1132
|
description: string;
|
|
1129
1133
|
quantity: number;
|
|
@@ -1156,7 +1160,7 @@ export declare const waybillsRouter: {
|
|
|
1156
1160
|
receivedCondition?: string | null | undefined;
|
|
1157
1161
|
receivedAt?: string | null | undefined;
|
|
1158
1162
|
receivedByName?: string | null | undefined;
|
|
1159
|
-
commercialIntent?: "
|
|
1163
|
+
commercialIntent?: "trade" | "farm_sale" | null | undefined;
|
|
1160
1164
|
};
|
|
1161
1165
|
relationships?: Record<string, unknown> | undefined;
|
|
1162
1166
|
links?: Record<string, string> | undefined;
|
|
@@ -1213,7 +1217,7 @@ export declare const waybillsRouter: {
|
|
|
1213
1217
|
receivedCondition?: string | null | undefined;
|
|
1214
1218
|
receivedAt?: string | null | undefined;
|
|
1215
1219
|
receivedByName?: string | null | undefined;
|
|
1216
|
-
commercialIntent?: "
|
|
1220
|
+
commercialIntent?: "trade" | "farm_sale" | null | undefined;
|
|
1217
1221
|
};
|
|
1218
1222
|
relationships?: Record<string, unknown> | undefined;
|
|
1219
1223
|
links?: Record<string, string> | undefined;
|
|
@@ -1668,8 +1672,8 @@ export declare const waybillsRouter: {
|
|
|
1668
1672
|
}, "strip", z.ZodTypeAny, {
|
|
1669
1673
|
createdAt: string;
|
|
1670
1674
|
updatedAt: string;
|
|
1671
|
-
currency: string;
|
|
1672
1675
|
organizationId: string;
|
|
1676
|
+
currency: string;
|
|
1673
1677
|
items: {
|
|
1674
1678
|
description: string;
|
|
1675
1679
|
quantity: number;
|
|
@@ -1702,7 +1706,7 @@ export declare const waybillsRouter: {
|
|
|
1702
1706
|
receivedCondition?: string | null | undefined;
|
|
1703
1707
|
receivedAt?: string | null | undefined;
|
|
1704
1708
|
receivedByName?: string | null | undefined;
|
|
1705
|
-
commercialIntent?: "
|
|
1709
|
+
commercialIntent?: "trade" | "farm_sale" | null | undefined;
|
|
1706
1710
|
}, {
|
|
1707
1711
|
createdAt: string;
|
|
1708
1712
|
updatedAt: string;
|
|
@@ -1740,7 +1744,7 @@ export declare const waybillsRouter: {
|
|
|
1740
1744
|
receivedCondition?: string | null | undefined;
|
|
1741
1745
|
receivedAt?: string | null | undefined;
|
|
1742
1746
|
receivedByName?: string | null | undefined;
|
|
1743
|
-
commercialIntent?: "
|
|
1747
|
+
commercialIntent?: "trade" | "farm_sale" | null | undefined;
|
|
1744
1748
|
}>;
|
|
1745
1749
|
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1746
1750
|
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -1751,8 +1755,8 @@ export declare const waybillsRouter: {
|
|
|
1751
1755
|
attributes: {
|
|
1752
1756
|
createdAt: string;
|
|
1753
1757
|
updatedAt: string;
|
|
1754
|
-
currency: string;
|
|
1755
1758
|
organizationId: string;
|
|
1759
|
+
currency: string;
|
|
1756
1760
|
items: {
|
|
1757
1761
|
description: string;
|
|
1758
1762
|
quantity: number;
|
|
@@ -1785,7 +1789,7 @@ export declare const waybillsRouter: {
|
|
|
1785
1789
|
receivedCondition?: string | null | undefined;
|
|
1786
1790
|
receivedAt?: string | null | undefined;
|
|
1787
1791
|
receivedByName?: string | null | undefined;
|
|
1788
|
-
commercialIntent?: "
|
|
1792
|
+
commercialIntent?: "trade" | "farm_sale" | null | undefined;
|
|
1789
1793
|
};
|
|
1790
1794
|
relationships?: Record<string, unknown> | undefined;
|
|
1791
1795
|
links?: Record<string, string> | undefined;
|
|
@@ -1830,7 +1834,7 @@ export declare const waybillsRouter: {
|
|
|
1830
1834
|
receivedCondition?: string | null | undefined;
|
|
1831
1835
|
receivedAt?: string | null | undefined;
|
|
1832
1836
|
receivedByName?: string | null | undefined;
|
|
1833
|
-
commercialIntent?: "
|
|
1837
|
+
commercialIntent?: "trade" | "farm_sale" | null | undefined;
|
|
1834
1838
|
};
|
|
1835
1839
|
relationships?: Record<string, unknown> | undefined;
|
|
1836
1840
|
links?: Record<string, string> | undefined;
|
|
@@ -1867,8 +1871,8 @@ export declare const waybillsRouter: {
|
|
|
1867
1871
|
attributes: {
|
|
1868
1872
|
createdAt: string;
|
|
1869
1873
|
updatedAt: string;
|
|
1870
|
-
currency: string;
|
|
1871
1874
|
organizationId: string;
|
|
1875
|
+
currency: string;
|
|
1872
1876
|
items: {
|
|
1873
1877
|
description: string;
|
|
1874
1878
|
quantity: number;
|
|
@@ -1901,7 +1905,7 @@ export declare const waybillsRouter: {
|
|
|
1901
1905
|
receivedCondition?: string | null | undefined;
|
|
1902
1906
|
receivedAt?: string | null | undefined;
|
|
1903
1907
|
receivedByName?: string | null | undefined;
|
|
1904
|
-
commercialIntent?: "
|
|
1908
|
+
commercialIntent?: "trade" | "farm_sale" | null | undefined;
|
|
1905
1909
|
};
|
|
1906
1910
|
relationships?: Record<string, unknown> | undefined;
|
|
1907
1911
|
links?: Record<string, string> | undefined;
|
|
@@ -1958,7 +1962,7 @@ export declare const waybillsRouter: {
|
|
|
1958
1962
|
receivedCondition?: string | null | undefined;
|
|
1959
1963
|
receivedAt?: string | null | undefined;
|
|
1960
1964
|
receivedByName?: string | null | undefined;
|
|
1961
|
-
commercialIntent?: "
|
|
1965
|
+
commercialIntent?: "trade" | "farm_sale" | null | undefined;
|
|
1962
1966
|
};
|
|
1963
1967
|
relationships?: Record<string, unknown> | undefined;
|
|
1964
1968
|
links?: Record<string, string> | undefined;
|
|
@@ -2252,7 +2256,7 @@ export declare const waybillsRouter: {
|
|
|
2252
2256
|
receivedCondition?: string | undefined;
|
|
2253
2257
|
receivedAt?: string | undefined;
|
|
2254
2258
|
receivedByName?: string | undefined;
|
|
2255
|
-
commercialIntent?: "
|
|
2259
|
+
commercialIntent?: "trade" | "farm_sale" | undefined;
|
|
2256
2260
|
buyerId?: string | undefined;
|
|
2257
2261
|
purchaseCost?: number | undefined;
|
|
2258
2262
|
storageCost?: number | undefined;
|
|
@@ -2286,7 +2290,7 @@ export declare const waybillsRouter: {
|
|
|
2286
2290
|
receivedCondition?: string | undefined;
|
|
2287
2291
|
receivedAt?: string | undefined;
|
|
2288
2292
|
receivedByName?: string | undefined;
|
|
2289
|
-
commercialIntent?: "
|
|
2293
|
+
commercialIntent?: "trade" | "farm_sale" | undefined;
|
|
2290
2294
|
buyerId?: string | undefined;
|
|
2291
2295
|
purchaseCost?: number | undefined;
|
|
2292
2296
|
storageCost?: number | undefined;
|
|
@@ -2324,7 +2328,7 @@ export declare const waybillsRouter: {
|
|
|
2324
2328
|
receivedCondition?: string | undefined;
|
|
2325
2329
|
receivedAt?: string | undefined;
|
|
2326
2330
|
receivedByName?: string | undefined;
|
|
2327
|
-
commercialIntent?: "
|
|
2331
|
+
commercialIntent?: "trade" | "farm_sale" | undefined;
|
|
2328
2332
|
buyerId?: string | undefined;
|
|
2329
2333
|
purchaseCost?: number | undefined;
|
|
2330
2334
|
storageCost?: number | undefined;
|
|
@@ -2362,7 +2366,7 @@ export declare const waybillsRouter: {
|
|
|
2362
2366
|
receivedCondition?: string | undefined;
|
|
2363
2367
|
receivedAt?: string | undefined;
|
|
2364
2368
|
receivedByName?: string | undefined;
|
|
2365
|
-
commercialIntent?: "
|
|
2369
|
+
commercialIntent?: "trade" | "farm_sale" | undefined;
|
|
2366
2370
|
buyerId?: string | undefined;
|
|
2367
2371
|
purchaseCost?: number | undefined;
|
|
2368
2372
|
storageCost?: number | undefined;
|
|
@@ -2402,7 +2406,7 @@ export declare const waybillsRouter: {
|
|
|
2402
2406
|
receivedCondition?: string | undefined;
|
|
2403
2407
|
receivedAt?: string | undefined;
|
|
2404
2408
|
receivedByName?: string | undefined;
|
|
2405
|
-
commercialIntent?: "
|
|
2409
|
+
commercialIntent?: "trade" | "farm_sale" | undefined;
|
|
2406
2410
|
buyerId?: string | undefined;
|
|
2407
2411
|
purchaseCost?: number | undefined;
|
|
2408
2412
|
storageCost?: number | undefined;
|
|
@@ -2442,7 +2446,7 @@ export declare const waybillsRouter: {
|
|
|
2442
2446
|
receivedCondition?: string | undefined;
|
|
2443
2447
|
receivedAt?: string | undefined;
|
|
2444
2448
|
receivedByName?: string | undefined;
|
|
2445
|
-
commercialIntent?: "
|
|
2449
|
+
commercialIntent?: "trade" | "farm_sale" | undefined;
|
|
2446
2450
|
buyerId?: string | undefined;
|
|
2447
2451
|
purchaseCost?: number | undefined;
|
|
2448
2452
|
storageCost?: number | undefined;
|
|
@@ -2512,8 +2516,8 @@ export declare const waybillsRouter: {
|
|
|
2512
2516
|
}, "strip", z.ZodTypeAny, {
|
|
2513
2517
|
createdAt: string;
|
|
2514
2518
|
updatedAt: string;
|
|
2515
|
-
currency: string;
|
|
2516
2519
|
organizationId: string;
|
|
2520
|
+
currency: string;
|
|
2517
2521
|
items: {
|
|
2518
2522
|
description: string;
|
|
2519
2523
|
quantity: number;
|
|
@@ -2546,7 +2550,7 @@ export declare const waybillsRouter: {
|
|
|
2546
2550
|
receivedCondition?: string | null | undefined;
|
|
2547
2551
|
receivedAt?: string | null | undefined;
|
|
2548
2552
|
receivedByName?: string | null | undefined;
|
|
2549
|
-
commercialIntent?: "
|
|
2553
|
+
commercialIntent?: "trade" | "farm_sale" | null | undefined;
|
|
2550
2554
|
}, {
|
|
2551
2555
|
createdAt: string;
|
|
2552
2556
|
updatedAt: string;
|
|
@@ -2584,7 +2588,7 @@ export declare const waybillsRouter: {
|
|
|
2584
2588
|
receivedCondition?: string | null | undefined;
|
|
2585
2589
|
receivedAt?: string | null | undefined;
|
|
2586
2590
|
receivedByName?: string | null | undefined;
|
|
2587
|
-
commercialIntent?: "
|
|
2591
|
+
commercialIntent?: "trade" | "farm_sale" | null | undefined;
|
|
2588
2592
|
}>;
|
|
2589
2593
|
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2590
2594
|
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -2595,8 +2599,8 @@ export declare const waybillsRouter: {
|
|
|
2595
2599
|
attributes: {
|
|
2596
2600
|
createdAt: string;
|
|
2597
2601
|
updatedAt: string;
|
|
2598
|
-
currency: string;
|
|
2599
2602
|
organizationId: string;
|
|
2603
|
+
currency: string;
|
|
2600
2604
|
items: {
|
|
2601
2605
|
description: string;
|
|
2602
2606
|
quantity: number;
|
|
@@ -2629,7 +2633,7 @@ export declare const waybillsRouter: {
|
|
|
2629
2633
|
receivedCondition?: string | null | undefined;
|
|
2630
2634
|
receivedAt?: string | null | undefined;
|
|
2631
2635
|
receivedByName?: string | null | undefined;
|
|
2632
|
-
commercialIntent?: "
|
|
2636
|
+
commercialIntent?: "trade" | "farm_sale" | null | undefined;
|
|
2633
2637
|
};
|
|
2634
2638
|
relationships?: Record<string, unknown> | undefined;
|
|
2635
2639
|
links?: Record<string, string> | undefined;
|
|
@@ -2674,7 +2678,7 @@ export declare const waybillsRouter: {
|
|
|
2674
2678
|
receivedCondition?: string | null | undefined;
|
|
2675
2679
|
receivedAt?: string | null | undefined;
|
|
2676
2680
|
receivedByName?: string | null | undefined;
|
|
2677
|
-
commercialIntent?: "
|
|
2681
|
+
commercialIntent?: "trade" | "farm_sale" | null | undefined;
|
|
2678
2682
|
};
|
|
2679
2683
|
relationships?: Record<string, unknown> | undefined;
|
|
2680
2684
|
links?: Record<string, string> | undefined;
|
|
@@ -2711,8 +2715,8 @@ export declare const waybillsRouter: {
|
|
|
2711
2715
|
attributes: {
|
|
2712
2716
|
createdAt: string;
|
|
2713
2717
|
updatedAt: string;
|
|
2714
|
-
currency: string;
|
|
2715
2718
|
organizationId: string;
|
|
2719
|
+
currency: string;
|
|
2716
2720
|
items: {
|
|
2717
2721
|
description: string;
|
|
2718
2722
|
quantity: number;
|
|
@@ -2745,7 +2749,7 @@ export declare const waybillsRouter: {
|
|
|
2745
2749
|
receivedCondition?: string | null | undefined;
|
|
2746
2750
|
receivedAt?: string | null | undefined;
|
|
2747
2751
|
receivedByName?: string | null | undefined;
|
|
2748
|
-
commercialIntent?: "
|
|
2752
|
+
commercialIntent?: "trade" | "farm_sale" | null | undefined;
|
|
2749
2753
|
};
|
|
2750
2754
|
relationships?: Record<string, unknown> | undefined;
|
|
2751
2755
|
links?: Record<string, string> | undefined;
|
|
@@ -2802,7 +2806,7 @@ export declare const waybillsRouter: {
|
|
|
2802
2806
|
receivedCondition?: string | null | undefined;
|
|
2803
2807
|
receivedAt?: string | null | undefined;
|
|
2804
2808
|
receivedByName?: string | null | undefined;
|
|
2805
|
-
commercialIntent?: "
|
|
2809
|
+
commercialIntent?: "trade" | "farm_sale" | null | undefined;
|
|
2806
2810
|
};
|
|
2807
2811
|
relationships?: Record<string, unknown> | undefined;
|
|
2808
2812
|
links?: Record<string, string> | undefined;
|
|
@@ -3258,8 +3262,8 @@ export declare const waybillsRouter: {
|
|
|
3258
3262
|
}, "strip", z.ZodTypeAny, {
|
|
3259
3263
|
createdAt: string;
|
|
3260
3264
|
updatedAt: string;
|
|
3261
|
-
currency: string;
|
|
3262
3265
|
organizationId: string;
|
|
3266
|
+
currency: string;
|
|
3263
3267
|
items: {
|
|
3264
3268
|
description: string;
|
|
3265
3269
|
quantity: number;
|
|
@@ -3292,7 +3296,7 @@ export declare const waybillsRouter: {
|
|
|
3292
3296
|
receivedCondition?: string | null | undefined;
|
|
3293
3297
|
receivedAt?: string | null | undefined;
|
|
3294
3298
|
receivedByName?: string | null | undefined;
|
|
3295
|
-
commercialIntent?: "
|
|
3299
|
+
commercialIntent?: "trade" | "farm_sale" | null | undefined;
|
|
3296
3300
|
}, {
|
|
3297
3301
|
createdAt: string;
|
|
3298
3302
|
updatedAt: string;
|
|
@@ -3330,7 +3334,7 @@ export declare const waybillsRouter: {
|
|
|
3330
3334
|
receivedCondition?: string | null | undefined;
|
|
3331
3335
|
receivedAt?: string | null | undefined;
|
|
3332
3336
|
receivedByName?: string | null | undefined;
|
|
3333
|
-
commercialIntent?: "
|
|
3337
|
+
commercialIntent?: "trade" | "farm_sale" | null | undefined;
|
|
3334
3338
|
}>;
|
|
3335
3339
|
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3336
3340
|
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -3341,8 +3345,8 @@ export declare const waybillsRouter: {
|
|
|
3341
3345
|
attributes: {
|
|
3342
3346
|
createdAt: string;
|
|
3343
3347
|
updatedAt: string;
|
|
3344
|
-
currency: string;
|
|
3345
3348
|
organizationId: string;
|
|
3349
|
+
currency: string;
|
|
3346
3350
|
items: {
|
|
3347
3351
|
description: string;
|
|
3348
3352
|
quantity: number;
|
|
@@ -3375,7 +3379,7 @@ export declare const waybillsRouter: {
|
|
|
3375
3379
|
receivedCondition?: string | null | undefined;
|
|
3376
3380
|
receivedAt?: string | null | undefined;
|
|
3377
3381
|
receivedByName?: string | null | undefined;
|
|
3378
|
-
commercialIntent?: "
|
|
3382
|
+
commercialIntent?: "trade" | "farm_sale" | null | undefined;
|
|
3379
3383
|
};
|
|
3380
3384
|
relationships?: Record<string, unknown> | undefined;
|
|
3381
3385
|
links?: Record<string, string> | undefined;
|
|
@@ -3420,7 +3424,7 @@ export declare const waybillsRouter: {
|
|
|
3420
3424
|
receivedCondition?: string | null | undefined;
|
|
3421
3425
|
receivedAt?: string | null | undefined;
|
|
3422
3426
|
receivedByName?: string | null | undefined;
|
|
3423
|
-
commercialIntent?: "
|
|
3427
|
+
commercialIntent?: "trade" | "farm_sale" | null | undefined;
|
|
3424
3428
|
};
|
|
3425
3429
|
relationships?: Record<string, unknown> | undefined;
|
|
3426
3430
|
links?: Record<string, string> | undefined;
|
|
@@ -3457,8 +3461,8 @@ export declare const waybillsRouter: {
|
|
|
3457
3461
|
attributes: {
|
|
3458
3462
|
createdAt: string;
|
|
3459
3463
|
updatedAt: string;
|
|
3460
|
-
currency: string;
|
|
3461
3464
|
organizationId: string;
|
|
3465
|
+
currency: string;
|
|
3462
3466
|
items: {
|
|
3463
3467
|
description: string;
|
|
3464
3468
|
quantity: number;
|
|
@@ -3491,7 +3495,7 @@ export declare const waybillsRouter: {
|
|
|
3491
3495
|
receivedCondition?: string | null | undefined;
|
|
3492
3496
|
receivedAt?: string | null | undefined;
|
|
3493
3497
|
receivedByName?: string | null | undefined;
|
|
3494
|
-
commercialIntent?: "
|
|
3498
|
+
commercialIntent?: "trade" | "farm_sale" | null | undefined;
|
|
3495
3499
|
};
|
|
3496
3500
|
relationships?: Record<string, unknown> | undefined;
|
|
3497
3501
|
links?: Record<string, string> | undefined;
|
|
@@ -3548,7 +3552,7 @@ export declare const waybillsRouter: {
|
|
|
3548
3552
|
receivedCondition?: string | null | undefined;
|
|
3549
3553
|
receivedAt?: string | null | undefined;
|
|
3550
3554
|
receivedByName?: string | null | undefined;
|
|
3551
|
-
commercialIntent?: "
|
|
3555
|
+
commercialIntent?: "trade" | "farm_sale" | null | undefined;
|
|
3552
3556
|
};
|
|
3553
3557
|
relationships?: Record<string, unknown> | undefined;
|
|
3554
3558
|
links?: Record<string, string> | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"waybills.routes.d.ts","sourceRoot":"","sources":["../../src/routes/waybills.routes.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAexB,eAAO,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"waybills.routes.d.ts","sourceRoot":"","sources":["../../src/routes/waybills.routes.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAexB,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgGzB,CAAC"}
|
|
@@ -12,7 +12,10 @@ export const waybillsRouter = c.router({
|
|
|
12
12
|
organizationId: z.string().uuid(),
|
|
13
13
|
}),
|
|
14
14
|
query: jsonApiPaginationQuerySchema
|
|
15
|
-
.merge(jsonApiSortQuerySchema)
|
|
15
|
+
.merge(jsonApiSortQuerySchema)
|
|
16
|
+
.extend({
|
|
17
|
+
'filter[commercialIntent]': z.enum(['farm_sale', 'trade']).optional(),
|
|
18
|
+
}),
|
|
16
19
|
responses: {
|
|
17
20
|
200: waybillListResponseSchema,
|
|
18
21
|
401: jsonApiErrorResponseSchema,
|