@deepintel-ltd/farmpro-contracts 1.27.0 → 1.27.2
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/agents.routes.d.ts +681 -12
- package/dist/routes/agents.routes.d.ts.map +1 -1
- package/dist/routes/agents.routes.js +21 -1
- package/dist/routes/commodity-deals.routes.d.ts +27 -27
- package/dist/routes/farms.routes.d.ts +46 -46
- package/dist/routes/field-observations.routes.d.ts +34 -34
- package/dist/routes/invoices.routes.d.ts +39 -39
- package/dist/routes/livestock-groups.routes.d.ts +27 -27
- package/dist/routes/livestock.routes.d.ts +21 -21
- package/dist/routes/market-intelligence.routes.d.ts +8 -8
- package/dist/routes/organizations.routes.d.ts +49 -0
- package/dist/routes/organizations.routes.d.ts.map +1 -1
- package/dist/routes/poultry.routes.d.ts +22 -22
- package/dist/routes/purchase-orders.routes.d.ts +9 -9
- package/dist/routes/subscriptions.routes.d.ts +8 -8
- package/dist/routes/tasks.routes.d.ts +90 -0
- package/dist/routes/tasks.routes.d.ts.map +1 -1
- package/dist/routes/tasks.routes.js +1 -0
- package/dist/routes/team-payments.routes.d.ts +36 -36
- package/dist/routes/trade-cash-events.routes.d.ts +39 -39
- package/dist/routes/waybills.routes.d.ts +39 -39
- package/dist/schemas/agents.schemas.d.ts +718 -12
- package/dist/schemas/agents.schemas.d.ts.map +1 -1
- package/dist/schemas/agents.schemas.js +41 -0
- package/dist/schemas/commodity-deals.schemas.d.ts +18 -18
- package/dist/schemas/farms.schemas.d.ts +51 -51
- package/dist/schemas/field-observations.schemas.d.ts +24 -24
- package/dist/schemas/invoices.schemas.d.ts +27 -27
- package/dist/schemas/livestock-groups.schemas.d.ts +20 -20
- package/dist/schemas/livestock.schemas.d.ts +18 -18
- package/dist/schemas/organizations.schemas.d.ts +42 -0
- package/dist/schemas/organizations.schemas.d.ts.map +1 -1
- package/dist/schemas/organizations.schemas.js +3 -0
- package/dist/schemas/purchase-orders.schemas.d.ts +9 -9
- package/dist/schemas/subscriptions.schemas.d.ts +6 -6
- package/dist/schemas/team-payments.schemas.d.ts +24 -24
- package/dist/schemas/trade-cash-events.schemas.d.ts +29 -27
- package/dist/schemas/trade-cash-events.schemas.d.ts.map +1 -1
- package/dist/schemas/trade-cash-events.schemas.js +1 -0
- package/dist/schemas/waybills.schemas.d.ts +27 -27
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agents.schemas.d.ts","sourceRoot":"","sources":["../../src/schemas/agents.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB;;GAEG;AAGH,eAAO,MAAM,iBAAiB,kCAAgC,CAAC;AAG/D,eAAO,MAAM,yBAAyB;;;;;;;;;EAGpC,CAAC;AAGH,eAAO,MAAM,oBAAoB;;;;;;;;;EAG/B,CAAC;AAGH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQtC,CAAC;AAGH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAG5B,CAAC;AAGH,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;EAI5C,CAAC;AAGH,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAG3C,CAAC;AAGF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEnC,CAAC;AAGF,eAAO,MAAM,gCAAgC;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"agents.schemas.d.ts","sourceRoot":"","sources":["../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,OAAO,wBAAwB,CAAC,CAAC;AAC1E,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AACpF,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AACtF,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAChD,OAAO,kCAAkC,CAC1C,CAAC;AACF,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAC5C,OAAO,8BAA8B,CACtC,CAAC;AACF,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAC9E,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAChF,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AACpF,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAClE,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAChF,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AACxF,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC"}
|
|
@@ -41,15 +41,37 @@ export const agentChatResponseResourceSchema = createJsonApiResourceSchema('agen
|
|
|
41
41
|
// Agent chat response (JSON:API single response)
|
|
42
42
|
export const agentChatResponseSchema = jsonApiSingleResponseSchema(agentChatResponseResourceSchema);
|
|
43
43
|
// Conversation history message schema (with timestamp)
|
|
44
|
+
export const farmBrainRouteSchema = z.enum(['agronomics', 'finance', 'operations', 'general']);
|
|
45
|
+
/** Accept / Dismiss persisted on a proposed action (shared across devices). */
|
|
46
|
+
export const proposedActionStatusSchema = z.enum(['accepted', 'dismissed']);
|
|
44
47
|
export const conversationHistoryMessageSchema = z.object({
|
|
48
|
+
id: z.string().optional(),
|
|
45
49
|
role: messageRoleSchema,
|
|
46
50
|
content: z.string(),
|
|
47
51
|
createdAt: z.string().datetime().optional(),
|
|
52
|
+
/** Specialist that answered (assistant messages from Farm Brain). */
|
|
53
|
+
route: z.string().optional(),
|
|
54
|
+
/** Supervised actions proposed with this reply; may carry `status`. */
|
|
55
|
+
proposedActions: z.array(z.record(z.unknown())).optional(),
|
|
56
|
+
advisoryReports: z.array(z.record(z.unknown())).optional(),
|
|
57
|
+
});
|
|
58
|
+
/** In-flight Farm Brain run — client disconnected or reply still generating. */
|
|
59
|
+
export const farmBrainPendingRunSchema = z.object({
|
|
60
|
+
message: z.string(),
|
|
61
|
+
route: z.string().nullable(),
|
|
62
|
+
startedAt: z.string(),
|
|
63
|
+
});
|
|
64
|
+
export const farmBrainRunErrorSchema = z.object({
|
|
65
|
+
message: z.string(),
|
|
66
|
+
at: z.string(),
|
|
48
67
|
});
|
|
49
68
|
// Conversation history response attributes
|
|
50
69
|
export const conversationHistoryAttributesSchema = z.object({
|
|
51
70
|
messages: z.array(conversationHistoryMessageSchema),
|
|
52
71
|
conversationId: z.string().uuid(),
|
|
72
|
+
title: z.string().nullable().optional(),
|
|
73
|
+
pendingRun: farmBrainPendingRunSchema.nullable().optional(),
|
|
74
|
+
lastRunError: farmBrainRunErrorSchema.nullable().optional(),
|
|
53
75
|
});
|
|
54
76
|
// Conversation history resource
|
|
55
77
|
export const conversationHistoryResourceSchema = createJsonApiResourceSchema('conversation-histories', conversationHistoryAttributesSchema);
|
|
@@ -65,6 +87,12 @@ export const conversationListItemSchema = z.object({
|
|
|
65
87
|
lastMessageAt: z.string().datetime().nullable(),
|
|
66
88
|
createdAt: z.string().datetime(),
|
|
67
89
|
updatedAt: z.string().datetime(),
|
|
90
|
+
/** Specialist on the latest assistant reply, when known. */
|
|
91
|
+
lastRoute: z.string().nullable().optional(),
|
|
92
|
+
/** Single-line snippet of the latest message. */
|
|
93
|
+
preview: z.string().nullable().optional(),
|
|
94
|
+
pendingRun: farmBrainPendingRunSchema.nullable().optional(),
|
|
95
|
+
lastRunError: farmBrainRunErrorSchema.nullable().optional(),
|
|
68
96
|
});
|
|
69
97
|
// Conversation list response attributes
|
|
70
98
|
export const conversationListAttributesSchema = z.object({
|
|
@@ -75,6 +103,19 @@ export const conversationListAttributesSchema = z.object({
|
|
|
75
103
|
export const conversationListResourceSchema = createJsonApiResourceSchema('conversation-lists', conversationListAttributesSchema);
|
|
76
104
|
// Conversation list response
|
|
77
105
|
export const conversationListResponseSchema = jsonApiSingleResponseSchema(conversationListResourceSchema);
|
|
106
|
+
export const updateProposedActionStatusRequestSchema = z.object({
|
|
107
|
+
status: proposedActionStatusSchema,
|
|
108
|
+
});
|
|
109
|
+
export const updateProposedActionStatusResponseSchema = z.object({
|
|
110
|
+
data: z.object({
|
|
111
|
+
type: z.literal('proposed-action-statuses'),
|
|
112
|
+
id: z.string(),
|
|
113
|
+
attributes: z.object({
|
|
114
|
+
conversationId: z.string().uuid(),
|
|
115
|
+
status: proposedActionStatusSchema,
|
|
116
|
+
}),
|
|
117
|
+
}),
|
|
118
|
+
});
|
|
78
119
|
export const updateConversationTitleRequestSchema = z.object({
|
|
79
120
|
title: z.string().min(1).max(200),
|
|
80
121
|
});
|
|
@@ -193,8 +193,8 @@ export declare const commodityDealAttributesSchema: z.ZodObject<{
|
|
|
193
193
|
status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
|
|
194
194
|
createdAt: string;
|
|
195
195
|
updatedAt: string;
|
|
196
|
-
organizationId: string;
|
|
197
196
|
currency: string;
|
|
197
|
+
organizationId: string;
|
|
198
198
|
notes: string | null;
|
|
199
199
|
invoiceId: string | null;
|
|
200
200
|
buyerName: string | null;
|
|
@@ -739,8 +739,8 @@ export declare const commodityDealResourceSchema: z.ZodObject<{
|
|
|
739
739
|
status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
|
|
740
740
|
createdAt: string;
|
|
741
741
|
updatedAt: string;
|
|
742
|
-
organizationId: string;
|
|
743
742
|
currency: string;
|
|
743
|
+
organizationId: string;
|
|
744
744
|
notes: string | null;
|
|
745
745
|
invoiceId: string | null;
|
|
746
746
|
buyerName: string | null;
|
|
@@ -854,8 +854,8 @@ export declare const commodityDealResourceSchema: z.ZodObject<{
|
|
|
854
854
|
status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
|
|
855
855
|
createdAt: string;
|
|
856
856
|
updatedAt: string;
|
|
857
|
-
organizationId: string;
|
|
858
857
|
currency: string;
|
|
858
|
+
organizationId: string;
|
|
859
859
|
notes: string | null;
|
|
860
860
|
invoiceId: string | null;
|
|
861
861
|
buyerName: string | null;
|
|
@@ -1088,8 +1088,8 @@ export declare const commodityDealResponseSchema: z.ZodObject<{
|
|
|
1088
1088
|
status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
|
|
1089
1089
|
createdAt: string;
|
|
1090
1090
|
updatedAt: string;
|
|
1091
|
-
organizationId: string;
|
|
1092
1091
|
currency: string;
|
|
1092
|
+
organizationId: string;
|
|
1093
1093
|
notes: string | null;
|
|
1094
1094
|
invoiceId: string | null;
|
|
1095
1095
|
buyerName: string | null;
|
|
@@ -1203,8 +1203,8 @@ export declare const commodityDealResponseSchema: z.ZodObject<{
|
|
|
1203
1203
|
status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
|
|
1204
1204
|
createdAt: string;
|
|
1205
1205
|
updatedAt: string;
|
|
1206
|
-
organizationId: string;
|
|
1207
1206
|
currency: string;
|
|
1207
|
+
organizationId: string;
|
|
1208
1208
|
notes: string | null;
|
|
1209
1209
|
invoiceId: string | null;
|
|
1210
1210
|
buyerName: string | null;
|
|
@@ -1351,8 +1351,8 @@ export declare const commodityDealResponseSchema: z.ZodObject<{
|
|
|
1351
1351
|
status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
|
|
1352
1352
|
createdAt: string;
|
|
1353
1353
|
updatedAt: string;
|
|
1354
|
-
organizationId: string;
|
|
1355
1354
|
currency: string;
|
|
1355
|
+
organizationId: string;
|
|
1356
1356
|
notes: string | null;
|
|
1357
1357
|
invoiceId: string | null;
|
|
1358
1358
|
buyerName: string | null;
|
|
@@ -1608,8 +1608,8 @@ export declare const commodityDealListResponseSchema: z.ZodObject<{
|
|
|
1608
1608
|
status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
|
|
1609
1609
|
createdAt: string;
|
|
1610
1610
|
updatedAt: string;
|
|
1611
|
-
organizationId: string;
|
|
1612
1611
|
currency: string;
|
|
1612
|
+
organizationId: string;
|
|
1613
1613
|
notes: string | null;
|
|
1614
1614
|
invoiceId: string | null;
|
|
1615
1615
|
buyerName: string | null;
|
|
@@ -1723,8 +1723,8 @@ export declare const commodityDealListResponseSchema: z.ZodObject<{
|
|
|
1723
1723
|
status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
|
|
1724
1724
|
createdAt: string;
|
|
1725
1725
|
updatedAt: string;
|
|
1726
|
-
organizationId: string;
|
|
1727
1726
|
currency: string;
|
|
1727
|
+
organizationId: string;
|
|
1728
1728
|
notes: string | null;
|
|
1729
1729
|
invoiceId: string | null;
|
|
1730
1730
|
buyerName: string | null;
|
|
@@ -1871,8 +1871,8 @@ export declare const commodityDealListResponseSchema: z.ZodObject<{
|
|
|
1871
1871
|
status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
|
|
1872
1872
|
createdAt: string;
|
|
1873
1873
|
updatedAt: string;
|
|
1874
|
-
organizationId: string;
|
|
1875
1874
|
currency: string;
|
|
1875
|
+
organizationId: string;
|
|
1876
1876
|
notes: string | null;
|
|
1877
1877
|
invoiceId: string | null;
|
|
1878
1878
|
buyerName: string | null;
|
|
@@ -3212,8 +3212,8 @@ export declare const tradeCostLineAttributesSchema: z.ZodObject<{
|
|
|
3212
3212
|
type: "other" | "inspection" | "finance" | "storage" | "handling" | "bagging" | "shrinkage";
|
|
3213
3213
|
createdAt: string;
|
|
3214
3214
|
updatedAt: string;
|
|
3215
|
-
organizationId: string;
|
|
3216
3215
|
currency: string;
|
|
3216
|
+
organizationId: string;
|
|
3217
3217
|
amount: number;
|
|
3218
3218
|
dealId: string;
|
|
3219
3219
|
description?: string | null | undefined;
|
|
@@ -3306,8 +3306,8 @@ export declare const tradeCostLineResourceSchema: z.ZodObject<{
|
|
|
3306
3306
|
type: "other" | "inspection" | "finance" | "storage" | "handling" | "bagging" | "shrinkage";
|
|
3307
3307
|
createdAt: string;
|
|
3308
3308
|
updatedAt: string;
|
|
3309
|
-
organizationId: string;
|
|
3310
3309
|
currency: string;
|
|
3310
|
+
organizationId: string;
|
|
3311
3311
|
amount: number;
|
|
3312
3312
|
dealId: string;
|
|
3313
3313
|
description?: string | null | undefined;
|
|
@@ -3333,8 +3333,8 @@ export declare const tradeCostLineResourceSchema: z.ZodObject<{
|
|
|
3333
3333
|
type: "other" | "inspection" | "finance" | "storage" | "handling" | "bagging" | "shrinkage";
|
|
3334
3334
|
createdAt: string;
|
|
3335
3335
|
updatedAt: string;
|
|
3336
|
-
organizationId: string;
|
|
3337
3336
|
currency: string;
|
|
3337
|
+
organizationId: string;
|
|
3338
3338
|
amount: number;
|
|
3339
3339
|
dealId: string;
|
|
3340
3340
|
description?: string | null | undefined;
|
|
@@ -3380,8 +3380,8 @@ export declare const tradeCostLineResponseSchema: z.ZodObject<{
|
|
|
3380
3380
|
type: "other" | "inspection" | "finance" | "storage" | "handling" | "bagging" | "shrinkage";
|
|
3381
3381
|
createdAt: string;
|
|
3382
3382
|
updatedAt: string;
|
|
3383
|
-
organizationId: string;
|
|
3384
3383
|
currency: string;
|
|
3384
|
+
organizationId: string;
|
|
3385
3385
|
amount: number;
|
|
3386
3386
|
dealId: string;
|
|
3387
3387
|
description?: string | null | undefined;
|
|
@@ -3407,8 +3407,8 @@ export declare const tradeCostLineResponseSchema: z.ZodObject<{
|
|
|
3407
3407
|
type: "other" | "inspection" | "finance" | "storage" | "handling" | "bagging" | "shrinkage";
|
|
3408
3408
|
createdAt: string;
|
|
3409
3409
|
updatedAt: string;
|
|
3410
|
-
organizationId: string;
|
|
3411
3410
|
currency: string;
|
|
3411
|
+
organizationId: string;
|
|
3412
3412
|
amount: number;
|
|
3413
3413
|
dealId: string;
|
|
3414
3414
|
description?: string | null | undefined;
|
|
@@ -3467,8 +3467,8 @@ export declare const tradeCostLineResponseSchema: z.ZodObject<{
|
|
|
3467
3467
|
type: "other" | "inspection" | "finance" | "storage" | "handling" | "bagging" | "shrinkage";
|
|
3468
3468
|
createdAt: string;
|
|
3469
3469
|
updatedAt: string;
|
|
3470
|
-
organizationId: string;
|
|
3471
3470
|
currency: string;
|
|
3471
|
+
organizationId: string;
|
|
3472
3472
|
amount: number;
|
|
3473
3473
|
dealId: string;
|
|
3474
3474
|
description?: string | null | undefined;
|
|
@@ -3537,8 +3537,8 @@ export declare const tradeCostLineListResponseSchema: z.ZodObject<{
|
|
|
3537
3537
|
type: "other" | "inspection" | "finance" | "storage" | "handling" | "bagging" | "shrinkage";
|
|
3538
3538
|
createdAt: string;
|
|
3539
3539
|
updatedAt: string;
|
|
3540
|
-
organizationId: string;
|
|
3541
3540
|
currency: string;
|
|
3541
|
+
organizationId: string;
|
|
3542
3542
|
amount: number;
|
|
3543
3543
|
dealId: string;
|
|
3544
3544
|
description?: string | null | undefined;
|
|
@@ -3564,8 +3564,8 @@ export declare const tradeCostLineListResponseSchema: z.ZodObject<{
|
|
|
3564
3564
|
type: "other" | "inspection" | "finance" | "storage" | "handling" | "bagging" | "shrinkage";
|
|
3565
3565
|
createdAt: string;
|
|
3566
3566
|
updatedAt: string;
|
|
3567
|
-
organizationId: string;
|
|
3568
3567
|
currency: string;
|
|
3568
|
+
organizationId: string;
|
|
3569
3569
|
amount: number;
|
|
3570
3570
|
dealId: string;
|
|
3571
3571
|
description?: string | null | undefined;
|
|
@@ -3624,8 +3624,8 @@ export declare const tradeCostLineListResponseSchema: z.ZodObject<{
|
|
|
3624
3624
|
type: "other" | "inspection" | "finance" | "storage" | "handling" | "bagging" | "shrinkage";
|
|
3625
3625
|
createdAt: string;
|
|
3626
3626
|
updatedAt: string;
|
|
3627
|
-
organizationId: string;
|
|
3628
3627
|
currency: string;
|
|
3628
|
+
organizationId: string;
|
|
3629
3629
|
amount: number;
|
|
3630
3630
|
dealId: string;
|
|
3631
3631
|
description?: string | null | undefined;
|