@deepintel-ltd/farmpro-contracts 1.11.7 → 1.11.9
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 +5 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -0
- package/dist/routes/agents.routes.d.ts +142 -0
- package/dist/routes/agents.routes.d.ts.map +1 -1
- package/dist/routes/equipment.routes.d.ts +36 -36
- package/dist/routes/extension.routes.d.ts +12 -12
- package/dist/routes/farm-updates.routes.d.ts +5445 -0
- package/dist/routes/farm-updates.routes.d.ts.map +1 -0
- package/dist/routes/farm-updates.routes.js +149 -0
- package/dist/routes/fertigation.routes.d.ts +156 -156
- package/dist/routes/field-activities.routes.d.ts +2397 -0
- package/dist/routes/field-activities.routes.d.ts.map +1 -0
- package/dist/routes/field-activities.routes.js +81 -0
- package/dist/routes/fields.routes.d.ts +860 -0
- package/dist/routes/fields.routes.d.ts.map +1 -1
- package/dist/routes/fields.routes.js +20 -1
- package/dist/routes/index.d.ts +6 -0
- package/dist/routes/index.d.ts.map +1 -1
- package/dist/routes/index.js +4 -0
- package/dist/routes/irrigation.routes.d.ts +20 -20
- package/dist/routes/livestock-groups.routes.d.ts +36 -36
- package/dist/routes/livestock.routes.d.ts +30 -30
- package/dist/routes/soil-tests.routes.d.ts +36 -36
- package/dist/routes/tasks.routes.d.ts +120 -120
- package/dist/schemas/agents.schemas.d.ts +163 -0
- package/dist/schemas/agents.schemas.d.ts.map +1 -1
- package/dist/schemas/agents.schemas.js +23 -0
- package/dist/schemas/equipment.schemas.d.ts +30 -30
- package/dist/schemas/extension.schemas.d.ts +18 -18
- package/dist/schemas/farm-updates.schemas.d.ts +3595 -0
- package/dist/schemas/farm-updates.schemas.d.ts.map +1 -0
- package/dist/schemas/farm-updates.schemas.js +91 -0
- package/dist/schemas/fertigation.schemas.d.ts +42 -42
- package/dist/schemas/field-activities.schemas.d.ts +806 -0
- package/dist/schemas/field-activities.schemas.d.ts.map +1 -0
- package/dist/schemas/field-activities.schemas.js +68 -0
- package/dist/schemas/fields.schemas.d.ts +173 -0
- package/dist/schemas/fields.schemas.d.ts.map +1 -1
- package/dist/schemas/fields.schemas.js +14 -0
- package/dist/schemas/irrigation.schemas.d.ts +14 -14
- package/dist/schemas/livestock-groups.schemas.d.ts +24 -24
- package/dist/schemas/livestock.schemas.d.ts +24 -24
- package/dist/schemas/soil-tests.schemas.d.ts +34 -34
- package/dist/schemas/tasks.schemas.d.ts +96 -96
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"farm-updates.routes.d.ts","sourceRoot":"","sources":["../../src/routes/farm-updates.routes.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAoBxB,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyJ5B,CAAC"}
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import { initContract } from '@ts-rest/core';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { createFarmUpdateSchema, createFarmUpdateReplySchema, toggleFarmUpdateReactionSchema, farmUpdateResponseSchema, farmUpdateListResponseSchema, farmUpdateReplyResponseSchema, farmUpdateReplyListResponseSchema, farmUpdateReactionToggleResponseSchema, mentionCandidateListResponseSchema, farmUpdateErrorSchema, } from '../schemas/farm-updates.schemas';
|
|
4
|
+
import { jsonApiPaginationQuerySchema, jsonApiSuccessResponseSchema, } from '../schemas/common.schemas';
|
|
5
|
+
const c = initContract();
|
|
6
|
+
export const farmUpdatesRouter = c.router({
|
|
7
|
+
listUpdates: {
|
|
8
|
+
method: 'GET',
|
|
9
|
+
path: '/farms/:farmId/updates',
|
|
10
|
+
pathParams: z.object({ farmId: z.string().uuid() }),
|
|
11
|
+
query: jsonApiPaginationQuerySchema.merge(z.object({
|
|
12
|
+
include: z.enum(['replies']).optional(),
|
|
13
|
+
})),
|
|
14
|
+
responses: {
|
|
15
|
+
200: farmUpdateListResponseSchema,
|
|
16
|
+
401: farmUpdateErrorSchema,
|
|
17
|
+
403: farmUpdateErrorSchema,
|
|
18
|
+
404: farmUpdateErrorSchema,
|
|
19
|
+
},
|
|
20
|
+
summary: 'List farm updates',
|
|
21
|
+
description: 'Chronological farm team updates feed (newest first)',
|
|
22
|
+
},
|
|
23
|
+
createUpdate: {
|
|
24
|
+
method: 'POST',
|
|
25
|
+
path: '/farms/:farmId/updates',
|
|
26
|
+
pathParams: z.object({ farmId: z.string().uuid() }),
|
|
27
|
+
body: z.object({ data: createFarmUpdateSchema }),
|
|
28
|
+
responses: {
|
|
29
|
+
201: farmUpdateResponseSchema,
|
|
30
|
+
400: farmUpdateErrorSchema,
|
|
31
|
+
401: farmUpdateErrorSchema,
|
|
32
|
+
403: farmUpdateErrorSchema,
|
|
33
|
+
404: farmUpdateErrorSchema,
|
|
34
|
+
},
|
|
35
|
+
summary: 'Create farm update',
|
|
36
|
+
},
|
|
37
|
+
deleteUpdate: {
|
|
38
|
+
method: 'DELETE',
|
|
39
|
+
path: '/farms/:farmId/updates/:updateId',
|
|
40
|
+
pathParams: z.object({
|
|
41
|
+
farmId: z.string().uuid(),
|
|
42
|
+
updateId: z.string().uuid(),
|
|
43
|
+
}),
|
|
44
|
+
responses: {
|
|
45
|
+
204: jsonApiSuccessResponseSchema,
|
|
46
|
+
401: farmUpdateErrorSchema,
|
|
47
|
+
403: farmUpdateErrorSchema,
|
|
48
|
+
404: farmUpdateErrorSchema,
|
|
49
|
+
},
|
|
50
|
+
summary: 'Delete farm update',
|
|
51
|
+
},
|
|
52
|
+
listMentionCandidates: {
|
|
53
|
+
method: 'GET',
|
|
54
|
+
path: '/farms/:farmId/updates/mention-candidates',
|
|
55
|
+
pathParams: z.object({ farmId: z.string().uuid() }),
|
|
56
|
+
responses: {
|
|
57
|
+
200: mentionCandidateListResponseSchema,
|
|
58
|
+
401: farmUpdateErrorSchema,
|
|
59
|
+
403: farmUpdateErrorSchema,
|
|
60
|
+
404: farmUpdateErrorSchema,
|
|
61
|
+
},
|
|
62
|
+
summary: 'List @mention candidates',
|
|
63
|
+
description: 'Farm owner and linked team members for mention typeahead',
|
|
64
|
+
},
|
|
65
|
+
listReplies: {
|
|
66
|
+
method: 'GET',
|
|
67
|
+
path: '/farms/:farmId/updates/:updateId/replies',
|
|
68
|
+
pathParams: z.object({
|
|
69
|
+
farmId: z.string().uuid(),
|
|
70
|
+
updateId: z.string().uuid(),
|
|
71
|
+
}),
|
|
72
|
+
query: jsonApiPaginationQuerySchema,
|
|
73
|
+
responses: {
|
|
74
|
+
200: farmUpdateReplyListResponseSchema,
|
|
75
|
+
401: farmUpdateErrorSchema,
|
|
76
|
+
403: farmUpdateErrorSchema,
|
|
77
|
+
404: farmUpdateErrorSchema,
|
|
78
|
+
},
|
|
79
|
+
summary: 'List replies on a farm update',
|
|
80
|
+
},
|
|
81
|
+
createReply: {
|
|
82
|
+
method: 'POST',
|
|
83
|
+
path: '/farms/:farmId/updates/:updateId/replies',
|
|
84
|
+
pathParams: z.object({
|
|
85
|
+
farmId: z.string().uuid(),
|
|
86
|
+
updateId: z.string().uuid(),
|
|
87
|
+
}),
|
|
88
|
+
body: z.object({ data: createFarmUpdateReplySchema }),
|
|
89
|
+
responses: {
|
|
90
|
+
201: farmUpdateReplyResponseSchema,
|
|
91
|
+
400: farmUpdateErrorSchema,
|
|
92
|
+
401: farmUpdateErrorSchema,
|
|
93
|
+
403: farmUpdateErrorSchema,
|
|
94
|
+
404: farmUpdateErrorSchema,
|
|
95
|
+
},
|
|
96
|
+
summary: 'Reply to a farm update',
|
|
97
|
+
},
|
|
98
|
+
deleteReply: {
|
|
99
|
+
method: 'DELETE',
|
|
100
|
+
path: '/farms/:farmId/updates/:updateId/replies/:replyId',
|
|
101
|
+
pathParams: z.object({
|
|
102
|
+
farmId: z.string().uuid(),
|
|
103
|
+
updateId: z.string().uuid(),
|
|
104
|
+
replyId: z.string().uuid(),
|
|
105
|
+
}),
|
|
106
|
+
responses: {
|
|
107
|
+
204: jsonApiSuccessResponseSchema,
|
|
108
|
+
401: farmUpdateErrorSchema,
|
|
109
|
+
403: farmUpdateErrorSchema,
|
|
110
|
+
404: farmUpdateErrorSchema,
|
|
111
|
+
},
|
|
112
|
+
summary: 'Delete a reply',
|
|
113
|
+
},
|
|
114
|
+
toggleUpdateReaction: {
|
|
115
|
+
method: 'POST',
|
|
116
|
+
path: '/farms/:farmId/updates/:updateId/reactions',
|
|
117
|
+
pathParams: z.object({
|
|
118
|
+
farmId: z.string().uuid(),
|
|
119
|
+
updateId: z.string().uuid(),
|
|
120
|
+
}),
|
|
121
|
+
body: z.object({ data: toggleFarmUpdateReactionSchema }),
|
|
122
|
+
responses: {
|
|
123
|
+
200: farmUpdateReactionToggleResponseSchema,
|
|
124
|
+
400: farmUpdateErrorSchema,
|
|
125
|
+
401: farmUpdateErrorSchema,
|
|
126
|
+
403: farmUpdateErrorSchema,
|
|
127
|
+
404: farmUpdateErrorSchema,
|
|
128
|
+
},
|
|
129
|
+
summary: 'Toggle reaction on a farm update',
|
|
130
|
+
},
|
|
131
|
+
toggleReplyReaction: {
|
|
132
|
+
method: 'POST',
|
|
133
|
+
path: '/farms/:farmId/updates/:updateId/replies/:replyId/reactions',
|
|
134
|
+
pathParams: z.object({
|
|
135
|
+
farmId: z.string().uuid(),
|
|
136
|
+
updateId: z.string().uuid(),
|
|
137
|
+
replyId: z.string().uuid(),
|
|
138
|
+
}),
|
|
139
|
+
body: z.object({ data: toggleFarmUpdateReactionSchema }),
|
|
140
|
+
responses: {
|
|
141
|
+
200: farmUpdateReactionToggleResponseSchema,
|
|
142
|
+
400: farmUpdateErrorSchema,
|
|
143
|
+
401: farmUpdateErrorSchema,
|
|
144
|
+
403: farmUpdateErrorSchema,
|
|
145
|
+
404: farmUpdateErrorSchema,
|
|
146
|
+
},
|
|
147
|
+
summary: 'Toggle reaction on a reply',
|
|
148
|
+
},
|
|
149
|
+
});
|