@deepintel-ltd/farmpro-contracts 1.11.11 → 1.12.0
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 +2 -0
- package/dist/routes/finance.routes.d.ts +360 -4
- package/dist/routes/finance.routes.d.ts.map +1 -1
- package/dist/routes/finance.routes.js +46 -3
- package/dist/routes/geofences.routes.d.ts +12 -12
- 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/notifications.routes.d.ts +14 -14
- package/dist/routes/staff.routes.d.ts +3985 -0
- package/dist/routes/staff.routes.d.ts.map +1 -0
- package/dist/routes/staff.routes.js +144 -0
- package/dist/routes/team-payments.routes.d.ts +33 -33
- package/dist/routes/weather.routes.d.ts +9 -0
- package/dist/routes/weather.routes.d.ts.map +1 -1
- package/dist/schemas/geofences.schemas.d.ts +10 -10
- package/dist/schemas/notifications.schemas.d.ts +23 -23
- package/dist/schemas/notifications.schemas.d.ts.map +1 -1
- package/dist/schemas/notifications.schemas.js +1 -0
- package/dist/schemas/staff.schemas.d.ts +1292 -0
- package/dist/schemas/staff.schemas.d.ts.map +1 -0
- package/dist/schemas/staff.schemas.js +96 -0
- package/dist/schemas/team-payments.schemas.d.ts +27 -27
- package/dist/schemas/weather.schemas.d.ts +28 -0
- package/dist/schemas/weather.schemas.d.ts.map +1 -1
- package/dist/schemas/weather.schemas.js +3 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const notificationTypeSchema: z.ZodEnum<["field_alert", "weather", "task", "payment", "system", "subscription", "team", "camera"]>;
|
|
3
|
-
export declare const notificationSourceSchema: z.ZodEnum<["notification", "field_alert", "vendor_payment"]>;
|
|
3
|
+
export declare const notificationSourceSchema: z.ZodEnum<["notification", "field_alert", "vendor_payment", "weather_alert"]>;
|
|
4
4
|
export declare const notificationAttributesSchema: z.ZodObject<{
|
|
5
5
|
userId: z.ZodString;
|
|
6
6
|
farmId: z.ZodNullable<z.ZodString>;
|
|
@@ -9,12 +9,12 @@ export declare const notificationAttributesSchema: z.ZodObject<{
|
|
|
9
9
|
body: z.ZodString;
|
|
10
10
|
readAt: z.ZodNullable<z.ZodString>;
|
|
11
11
|
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
12
|
-
source: z.ZodEnum<["notification", "field_alert", "vendor_payment"]>;
|
|
12
|
+
source: z.ZodEnum<["notification", "field_alert", "vendor_payment", "weather_alert"]>;
|
|
13
13
|
createdAt: z.ZodString;
|
|
14
14
|
}, "strip", z.ZodTypeAny, {
|
|
15
15
|
type: "team" | "weather" | "field_alert" | "task" | "payment" | "system" | "subscription" | "camera";
|
|
16
16
|
title: string;
|
|
17
|
-
source: "field_alert" | "notification" | "vendor_payment";
|
|
17
|
+
source: "field_alert" | "notification" | "vendor_payment" | "weather_alert";
|
|
18
18
|
createdAt: string;
|
|
19
19
|
metadata: Record<string, unknown> | null;
|
|
20
20
|
body: string;
|
|
@@ -24,7 +24,7 @@ export declare const notificationAttributesSchema: z.ZodObject<{
|
|
|
24
24
|
}, {
|
|
25
25
|
type: "team" | "weather" | "field_alert" | "task" | "payment" | "system" | "subscription" | "camera";
|
|
26
26
|
title: string;
|
|
27
|
-
source: "field_alert" | "notification" | "vendor_payment";
|
|
27
|
+
source: "field_alert" | "notification" | "vendor_payment" | "weather_alert";
|
|
28
28
|
createdAt: string;
|
|
29
29
|
metadata: Record<string, unknown> | null;
|
|
30
30
|
body: string;
|
|
@@ -43,12 +43,12 @@ export declare const notificationResourceSchema: z.ZodObject<{
|
|
|
43
43
|
body: z.ZodString;
|
|
44
44
|
readAt: z.ZodNullable<z.ZodString>;
|
|
45
45
|
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
46
|
-
source: z.ZodEnum<["notification", "field_alert", "vendor_payment"]>;
|
|
46
|
+
source: z.ZodEnum<["notification", "field_alert", "vendor_payment", "weather_alert"]>;
|
|
47
47
|
createdAt: z.ZodString;
|
|
48
48
|
}, "strip", z.ZodTypeAny, {
|
|
49
49
|
type: "team" | "weather" | "field_alert" | "task" | "payment" | "system" | "subscription" | "camera";
|
|
50
50
|
title: string;
|
|
51
|
-
source: "field_alert" | "notification" | "vendor_payment";
|
|
51
|
+
source: "field_alert" | "notification" | "vendor_payment" | "weather_alert";
|
|
52
52
|
createdAt: string;
|
|
53
53
|
metadata: Record<string, unknown> | null;
|
|
54
54
|
body: string;
|
|
@@ -58,7 +58,7 @@ export declare const notificationResourceSchema: z.ZodObject<{
|
|
|
58
58
|
}, {
|
|
59
59
|
type: "team" | "weather" | "field_alert" | "task" | "payment" | "system" | "subscription" | "camera";
|
|
60
60
|
title: string;
|
|
61
|
-
source: "field_alert" | "notification" | "vendor_payment";
|
|
61
|
+
source: "field_alert" | "notification" | "vendor_payment" | "weather_alert";
|
|
62
62
|
createdAt: string;
|
|
63
63
|
metadata: Record<string, unknown> | null;
|
|
64
64
|
body: string;
|
|
@@ -75,7 +75,7 @@ export declare const notificationResourceSchema: z.ZodObject<{
|
|
|
75
75
|
attributes: {
|
|
76
76
|
type: "team" | "weather" | "field_alert" | "task" | "payment" | "system" | "subscription" | "camera";
|
|
77
77
|
title: string;
|
|
78
|
-
source: "field_alert" | "notification" | "vendor_payment";
|
|
78
|
+
source: "field_alert" | "notification" | "vendor_payment" | "weather_alert";
|
|
79
79
|
createdAt: string;
|
|
80
80
|
metadata: Record<string, unknown> | null;
|
|
81
81
|
body: string;
|
|
@@ -92,7 +92,7 @@ export declare const notificationResourceSchema: z.ZodObject<{
|
|
|
92
92
|
attributes: {
|
|
93
93
|
type: "team" | "weather" | "field_alert" | "task" | "payment" | "system" | "subscription" | "camera";
|
|
94
94
|
title: string;
|
|
95
|
-
source: "field_alert" | "notification" | "vendor_payment";
|
|
95
|
+
source: "field_alert" | "notification" | "vendor_payment" | "weather_alert";
|
|
96
96
|
createdAt: string;
|
|
97
97
|
metadata: Record<string, unknown> | null;
|
|
98
98
|
body: string;
|
|
@@ -116,12 +116,12 @@ export declare const notificationResponseSchema: z.ZodObject<{
|
|
|
116
116
|
body: z.ZodString;
|
|
117
117
|
readAt: z.ZodNullable<z.ZodString>;
|
|
118
118
|
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
119
|
-
source: z.ZodEnum<["notification", "field_alert", "vendor_payment"]>;
|
|
119
|
+
source: z.ZodEnum<["notification", "field_alert", "vendor_payment", "weather_alert"]>;
|
|
120
120
|
createdAt: z.ZodString;
|
|
121
121
|
}, "strip", z.ZodTypeAny, {
|
|
122
122
|
type: "team" | "weather" | "field_alert" | "task" | "payment" | "system" | "subscription" | "camera";
|
|
123
123
|
title: string;
|
|
124
|
-
source: "field_alert" | "notification" | "vendor_payment";
|
|
124
|
+
source: "field_alert" | "notification" | "vendor_payment" | "weather_alert";
|
|
125
125
|
createdAt: string;
|
|
126
126
|
metadata: Record<string, unknown> | null;
|
|
127
127
|
body: string;
|
|
@@ -131,7 +131,7 @@ export declare const notificationResponseSchema: z.ZodObject<{
|
|
|
131
131
|
}, {
|
|
132
132
|
type: "team" | "weather" | "field_alert" | "task" | "payment" | "system" | "subscription" | "camera";
|
|
133
133
|
title: string;
|
|
134
|
-
source: "field_alert" | "notification" | "vendor_payment";
|
|
134
|
+
source: "field_alert" | "notification" | "vendor_payment" | "weather_alert";
|
|
135
135
|
createdAt: string;
|
|
136
136
|
metadata: Record<string, unknown> | null;
|
|
137
137
|
body: string;
|
|
@@ -148,7 +148,7 @@ export declare const notificationResponseSchema: z.ZodObject<{
|
|
|
148
148
|
attributes: {
|
|
149
149
|
type: "team" | "weather" | "field_alert" | "task" | "payment" | "system" | "subscription" | "camera";
|
|
150
150
|
title: string;
|
|
151
|
-
source: "field_alert" | "notification" | "vendor_payment";
|
|
151
|
+
source: "field_alert" | "notification" | "vendor_payment" | "weather_alert";
|
|
152
152
|
createdAt: string;
|
|
153
153
|
metadata: Record<string, unknown> | null;
|
|
154
154
|
body: string;
|
|
@@ -165,7 +165,7 @@ export declare const notificationResponseSchema: z.ZodObject<{
|
|
|
165
165
|
attributes: {
|
|
166
166
|
type: "team" | "weather" | "field_alert" | "task" | "payment" | "system" | "subscription" | "camera";
|
|
167
167
|
title: string;
|
|
168
|
-
source: "field_alert" | "notification" | "vendor_payment";
|
|
168
|
+
source: "field_alert" | "notification" | "vendor_payment" | "weather_alert";
|
|
169
169
|
createdAt: string;
|
|
170
170
|
metadata: Record<string, unknown> | null;
|
|
171
171
|
body: string;
|
|
@@ -208,7 +208,7 @@ export declare const notificationResponseSchema: z.ZodObject<{
|
|
|
208
208
|
attributes: {
|
|
209
209
|
type: "team" | "weather" | "field_alert" | "task" | "payment" | "system" | "subscription" | "camera";
|
|
210
210
|
title: string;
|
|
211
|
-
source: "field_alert" | "notification" | "vendor_payment";
|
|
211
|
+
source: "field_alert" | "notification" | "vendor_payment" | "weather_alert";
|
|
212
212
|
createdAt: string;
|
|
213
213
|
metadata: Record<string, unknown> | null;
|
|
214
214
|
body: string;
|
|
@@ -237,7 +237,7 @@ export declare const notificationResponseSchema: z.ZodObject<{
|
|
|
237
237
|
attributes: {
|
|
238
238
|
type: "team" | "weather" | "field_alert" | "task" | "payment" | "system" | "subscription" | "camera";
|
|
239
239
|
title: string;
|
|
240
|
-
source: "field_alert" | "notification" | "vendor_payment";
|
|
240
|
+
source: "field_alert" | "notification" | "vendor_payment" | "weather_alert";
|
|
241
241
|
createdAt: string;
|
|
242
242
|
metadata: Record<string, unknown> | null;
|
|
243
243
|
body: string;
|
|
@@ -272,12 +272,12 @@ export declare const notificationListResponseSchema: z.ZodObject<{
|
|
|
272
272
|
body: z.ZodString;
|
|
273
273
|
readAt: z.ZodNullable<z.ZodString>;
|
|
274
274
|
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
275
|
-
source: z.ZodEnum<["notification", "field_alert", "vendor_payment"]>;
|
|
275
|
+
source: z.ZodEnum<["notification", "field_alert", "vendor_payment", "weather_alert"]>;
|
|
276
276
|
createdAt: z.ZodString;
|
|
277
277
|
}, "strip", z.ZodTypeAny, {
|
|
278
278
|
type: "team" | "weather" | "field_alert" | "task" | "payment" | "system" | "subscription" | "camera";
|
|
279
279
|
title: string;
|
|
280
|
-
source: "field_alert" | "notification" | "vendor_payment";
|
|
280
|
+
source: "field_alert" | "notification" | "vendor_payment" | "weather_alert";
|
|
281
281
|
createdAt: string;
|
|
282
282
|
metadata: Record<string, unknown> | null;
|
|
283
283
|
body: string;
|
|
@@ -287,7 +287,7 @@ export declare const notificationListResponseSchema: z.ZodObject<{
|
|
|
287
287
|
}, {
|
|
288
288
|
type: "team" | "weather" | "field_alert" | "task" | "payment" | "system" | "subscription" | "camera";
|
|
289
289
|
title: string;
|
|
290
|
-
source: "field_alert" | "notification" | "vendor_payment";
|
|
290
|
+
source: "field_alert" | "notification" | "vendor_payment" | "weather_alert";
|
|
291
291
|
createdAt: string;
|
|
292
292
|
metadata: Record<string, unknown> | null;
|
|
293
293
|
body: string;
|
|
@@ -304,7 +304,7 @@ export declare const notificationListResponseSchema: z.ZodObject<{
|
|
|
304
304
|
attributes: {
|
|
305
305
|
type: "team" | "weather" | "field_alert" | "task" | "payment" | "system" | "subscription" | "camera";
|
|
306
306
|
title: string;
|
|
307
|
-
source: "field_alert" | "notification" | "vendor_payment";
|
|
307
|
+
source: "field_alert" | "notification" | "vendor_payment" | "weather_alert";
|
|
308
308
|
createdAt: string;
|
|
309
309
|
metadata: Record<string, unknown> | null;
|
|
310
310
|
body: string;
|
|
@@ -321,7 +321,7 @@ export declare const notificationListResponseSchema: z.ZodObject<{
|
|
|
321
321
|
attributes: {
|
|
322
322
|
type: "team" | "weather" | "field_alert" | "task" | "payment" | "system" | "subscription" | "camera";
|
|
323
323
|
title: string;
|
|
324
|
-
source: "field_alert" | "notification" | "vendor_payment";
|
|
324
|
+
source: "field_alert" | "notification" | "vendor_payment" | "weather_alert";
|
|
325
325
|
createdAt: string;
|
|
326
326
|
metadata: Record<string, unknown> | null;
|
|
327
327
|
body: string;
|
|
@@ -364,7 +364,7 @@ export declare const notificationListResponseSchema: z.ZodObject<{
|
|
|
364
364
|
attributes: {
|
|
365
365
|
type: "team" | "weather" | "field_alert" | "task" | "payment" | "system" | "subscription" | "camera";
|
|
366
366
|
title: string;
|
|
367
|
-
source: "field_alert" | "notification" | "vendor_payment";
|
|
367
|
+
source: "field_alert" | "notification" | "vendor_payment" | "weather_alert";
|
|
368
368
|
createdAt: string;
|
|
369
369
|
metadata: Record<string, unknown> | null;
|
|
370
370
|
body: string;
|
|
@@ -393,7 +393,7 @@ export declare const notificationListResponseSchema: z.ZodObject<{
|
|
|
393
393
|
attributes: {
|
|
394
394
|
type: "team" | "weather" | "field_alert" | "task" | "payment" | "system" | "subscription" | "camera";
|
|
395
395
|
title: string;
|
|
396
|
-
source: "field_alert" | "notification" | "vendor_payment";
|
|
396
|
+
source: "field_alert" | "notification" | "vendor_payment" | "weather_alert";
|
|
397
397
|
createdAt: string;
|
|
398
398
|
metadata: Record<string, unknown> | null;
|
|
399
399
|
body: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notifications.schemas.d.ts","sourceRoot":"","sources":["../../src/schemas/notifications.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,sBAAsB,sGASjC,CAAC;AAEH,eAAO,MAAM,wBAAwB,
|
|
1
|
+
{"version":3,"file":"notifications.schemas.d.ts","sourceRoot":"","sources":["../../src/schemas/notifications.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,sBAAsB,sGASjC,CAAC;AAEH,eAAO,MAAM,wBAAwB,+EAKnC,CAAC;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