@deepintel-ltd/farmpro-contracts 1.23.2 → 1.24.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 +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/routes/commodity-deals.routes.d.ts +1339 -0
- package/dist/routes/commodity-deals.routes.d.ts.map +1 -1
- package/dist/routes/commodity-deals.routes.js +49 -1
- package/dist/routes/documents.routes.d.ts +6 -0
- package/dist/routes/documents.routes.d.ts.map +1 -1
- package/dist/routes/documents.routes.js +2 -0
- package/dist/routes/finance.routes.d.ts +68 -68
- package/dist/routes/index.d.ts +2 -0
- package/dist/routes/index.d.ts.map +1 -1
- package/dist/routes/index.js +2 -0
- package/dist/routes/inventory.routes.d.ts +584 -0
- package/dist/routes/inventory.routes.d.ts.map +1 -1
- package/dist/routes/inventory.routes.js +26 -1
- package/dist/routes/live-monitor.routes.d.ts +15 -10
- package/dist/routes/live-monitor.routes.d.ts.map +1 -1
- package/dist/routes/monitoring-visualization.routes.d.ts +3 -0
- package/dist/routes/monitoring-visualization.routes.d.ts.map +1 -1
- package/dist/routes/poultry.routes.d.ts +3318 -0
- package/dist/routes/poultry.routes.d.ts.map +1 -0
- package/dist/routes/poultry.routes.js +195 -0
- package/dist/routes/team-payments.routes.d.ts +42 -42
- package/dist/routes/trade-cash-events.routes.d.ts +20 -20
- package/dist/routes/waybills.routes.d.ts +14 -0
- package/dist/routes/waybills.routes.d.ts.map +1 -1
- package/dist/schemas/commodity-deals.schemas.d.ts +484 -0
- package/dist/schemas/commodity-deals.schemas.d.ts.map +1 -1
- package/dist/schemas/commodity-deals.schemas.js +34 -0
- package/dist/schemas/finance.schemas.d.ts +78 -78
- package/dist/schemas/inventory.schemas.d.ts +122 -0
- package/dist/schemas/inventory.schemas.d.ts.map +1 -1
- package/dist/schemas/inventory.schemas.js +35 -0
- package/dist/schemas/live-monitor.schemas.d.ts +24 -16
- package/dist/schemas/live-monitor.schemas.d.ts.map +1 -1
- package/dist/schemas/live-monitor.schemas.js +3 -2
- package/dist/schemas/monitoring-visualization.schemas.d.ts +64 -0
- package/dist/schemas/monitoring-visualization.schemas.d.ts.map +1 -1
- package/dist/schemas/monitoring-visualization.schemas.js +25 -1
- package/dist/schemas/team-payments.schemas.d.ts +30 -30
- package/dist/schemas/trade-cash-events.schemas.d.ts +24 -24
- package/dist/schemas/waybills.schemas.d.ts +16 -0
- package/dist/schemas/waybills.schemas.d.ts.map +1 -1
- package/dist/schemas/waybills.schemas.js +1 -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;
|
|
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;AA0BxB,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8O/B,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { initContract } from '@ts-rest/core';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { createCommodityDealSchema, updateCommodityDealSchema, commodityDealResponseSchema, commodityDealListResponseSchema, commodityDealSummaryResponseSchema, commodityDealInsightsResponseSchema, commodityDealInsightsPeriodSchema, commodityDealStatusSchema, createDealParticipantSchema, updateDealParticipantSchema, myEarningsResponseSchema, payAllStaffCommissionsResponseSchema, } from '../schemas/commodity-deals.schemas';
|
|
3
|
+
import { createCommodityDealSchema, updateCommodityDealSchema, commodityDealResponseSchema, commodityDealListResponseSchema, commodityDealSummaryResponseSchema, commodityDealInsightsResponseSchema, commodityDealInsightsPeriodSchema, commodityDealStatusSchema, createDealParticipantSchema, updateDealParticipantSchema, myEarningsResponseSchema, payAllStaffCommissionsResponseSchema, createTradeCostLineSchema, tradeCostLineListResponseSchema, tradeCostLineResponseSchema, } from '../schemas/commodity-deals.schemas';
|
|
4
4
|
import { jsonApiErrorResponseSchema, jsonApiPaginationQuerySchema, jsonApiSortQuerySchema, } from '../schemas/common.schemas';
|
|
5
5
|
const c = initContract();
|
|
6
6
|
export const commodityDealsRouter = c.router({
|
|
@@ -180,4 +180,52 @@ export const commodityDealsRouter = c.router({
|
|
|
180
180
|
},
|
|
181
181
|
summary: 'Remove a participant from a commodity deal',
|
|
182
182
|
},
|
|
183
|
+
listTradeCostLines: {
|
|
184
|
+
method: 'GET',
|
|
185
|
+
path: '/organizations/:organizationId/commodity-deals/:id/cost-lines',
|
|
186
|
+
pathParams: z.object({
|
|
187
|
+
organizationId: z.string().uuid(),
|
|
188
|
+
id: z.string().uuid(),
|
|
189
|
+
}),
|
|
190
|
+
responses: {
|
|
191
|
+
200: tradeCostLineListResponseSchema,
|
|
192
|
+
401: jsonApiErrorResponseSchema,
|
|
193
|
+
403: jsonApiErrorResponseSchema,
|
|
194
|
+
404: jsonApiErrorResponseSchema,
|
|
195
|
+
},
|
|
196
|
+
summary: 'List landed-cost line items for a deal (audit detail; does not alter margin math)',
|
|
197
|
+
},
|
|
198
|
+
createTradeCostLine: {
|
|
199
|
+
method: 'POST',
|
|
200
|
+
path: '/organizations/:organizationId/commodity-deals/:id/cost-lines',
|
|
201
|
+
pathParams: z.object({
|
|
202
|
+
organizationId: z.string().uuid(),
|
|
203
|
+
id: z.string().uuid(),
|
|
204
|
+
}),
|
|
205
|
+
body: z.object({ data: createTradeCostLineSchema }),
|
|
206
|
+
responses: {
|
|
207
|
+
201: tradeCostLineResponseSchema,
|
|
208
|
+
400: jsonApiErrorResponseSchema,
|
|
209
|
+
401: jsonApiErrorResponseSchema,
|
|
210
|
+
403: jsonApiErrorResponseSchema,
|
|
211
|
+
404: jsonApiErrorResponseSchema,
|
|
212
|
+
},
|
|
213
|
+
summary: 'Add a landed-cost line item to a deal',
|
|
214
|
+
},
|
|
215
|
+
deleteTradeCostLine: {
|
|
216
|
+
method: 'DELETE',
|
|
217
|
+
path: '/organizations/:organizationId/commodity-deals/:id/cost-lines/:lineId',
|
|
218
|
+
pathParams: z.object({
|
|
219
|
+
organizationId: z.string().uuid(),
|
|
220
|
+
id: z.string().uuid(),
|
|
221
|
+
lineId: z.string().uuid(),
|
|
222
|
+
}),
|
|
223
|
+
responses: {
|
|
224
|
+
200: z.object({ data: z.null() }),
|
|
225
|
+
401: jsonApiErrorResponseSchema,
|
|
226
|
+
403: jsonApiErrorResponseSchema,
|
|
227
|
+
404: jsonApiErrorResponseSchema,
|
|
228
|
+
},
|
|
229
|
+
summary: 'Delete a landed-cost line item',
|
|
230
|
+
},
|
|
183
231
|
});
|
|
@@ -24,6 +24,8 @@ export declare const documentsRouter: {
|
|
|
24
24
|
'filter[type]': z.ZodOptional<z.ZodEnum<["receipt", "certificate", "land-document", "insurance", "contract", "invoice", "other"]>>;
|
|
25
25
|
'filter[relatedToType]': z.ZodOptional<z.ZodEnum<["farm", "field", "purchase", "expense", "equipment", "other"]>>;
|
|
26
26
|
'filter[relatedToId]': z.ZodOptional<z.ZodString>;
|
|
27
|
+
'filter[tag]': z.ZodOptional<z.ZodString>;
|
|
28
|
+
'filter[excludeTag]': z.ZodOptional<z.ZodString>;
|
|
27
29
|
}, "strip", z.ZodTypeAny, {
|
|
28
30
|
sort?: string | undefined;
|
|
29
31
|
'page[number]'?: number | undefined;
|
|
@@ -36,6 +38,8 @@ export declare const documentsRouter: {
|
|
|
36
38
|
'filter[type]'?: "other" | "receipt" | "certificate" | "land-document" | "insurance" | "contract" | "invoice" | undefined;
|
|
37
39
|
'filter[relatedToType]'?: "other" | "farm" | "field" | "expense" | "equipment" | "purchase" | undefined;
|
|
38
40
|
'filter[relatedToId]'?: string | undefined;
|
|
41
|
+
'filter[tag]'?: string | undefined;
|
|
42
|
+
'filter[excludeTag]'?: string | undefined;
|
|
39
43
|
}, {
|
|
40
44
|
sort?: string | undefined;
|
|
41
45
|
'page[number]'?: number | undefined;
|
|
@@ -48,6 +52,8 @@ export declare const documentsRouter: {
|
|
|
48
52
|
'filter[type]'?: "other" | "receipt" | "certificate" | "land-document" | "insurance" | "contract" | "invoice" | undefined;
|
|
49
53
|
'filter[relatedToType]'?: "other" | "farm" | "field" | "expense" | "equipment" | "purchase" | undefined;
|
|
50
54
|
'filter[relatedToId]'?: string | undefined;
|
|
55
|
+
'filter[tag]'?: string | undefined;
|
|
56
|
+
'filter[excludeTag]'?: string | undefined;
|
|
51
57
|
}>;
|
|
52
58
|
summary: "List documents";
|
|
53
59
|
description: "Get all documents for a farm with optional filtering";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"documents.routes.d.ts","sourceRoot":"","sources":["../../src/routes/documents.routes.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAyBxB,eAAO,MAAM,eAAe
|
|
1
|
+
{"version":3,"file":"documents.routes.d.ts","sourceRoot":"","sources":["../../src/routes/documents.routes.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAyBxB,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgM1B,CAAC"}
|
|
@@ -17,6 +17,8 @@ export const documentsRouter = c.router({
|
|
|
17
17
|
'filter[type]': documentTypeSchema.optional(),
|
|
18
18
|
'filter[relatedToType]': relatedEntityTypeSchema.optional(),
|
|
19
19
|
'filter[relatedToId]': z.string().uuid().optional(),
|
|
20
|
+
'filter[tag]': z.string().min(1).max(100).optional(),
|
|
21
|
+
'filter[excludeTag]': z.string().min(1).max(100).optional(),
|
|
20
22
|
})),
|
|
21
23
|
responses: {
|
|
22
24
|
200: documentListResponseSchema,
|