@deepintel-ltd/farmpro-contracts 1.23.0 → 1.23.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/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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"invoices.routes.d.ts","sourceRoot":"","sources":["../../src/routes/invoices.routes.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAexB,eAAO,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"invoices.routes.d.ts","sourceRoot":"","sources":["../../src/routes/invoices.routes.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAexB,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmGzB,CAAC"}
|
|
@@ -14,7 +14,10 @@ export const invoicesRouter = c.router({
|
|
|
14
14
|
query: jsonApiPaginationQuerySchema
|
|
15
15
|
.merge(jsonApiSortQuerySchema)
|
|
16
16
|
.extend({
|
|
17
|
-
'filter[paymentStatus]': z
|
|
17
|
+
'filter[paymentStatus]': z
|
|
18
|
+
.enum(['pending', 'partial', 'paid', 'overdue', 'cancelled'])
|
|
19
|
+
.optional(),
|
|
20
|
+
'filter[commercialIntent]': z.enum(['farm_sale', 'trade']).optional(),
|
|
18
21
|
}),
|
|
19
22
|
responses: {
|
|
20
23
|
200: invoiceListResponseSchema,
|
|
@@ -4173,15 +4173,15 @@ export declare const monitoringVisualizationRouter: {
|
|
|
4173
4173
|
farmId: z.ZodOptional<z.ZodString>;
|
|
4174
4174
|
}, "strip", z.ZodTypeAny, {
|
|
4175
4175
|
status: "building";
|
|
4176
|
-
fieldId: string;
|
|
4177
4176
|
kind: "terrain";
|
|
4177
|
+
fieldId: string;
|
|
4178
4178
|
jobId: string;
|
|
4179
4179
|
cacheKey: string;
|
|
4180
4180
|
farmId?: string | undefined;
|
|
4181
4181
|
}, {
|
|
4182
4182
|
status: "building";
|
|
4183
|
-
fieldId: string;
|
|
4184
4183
|
kind: "terrain";
|
|
4184
|
+
fieldId: string;
|
|
4185
4185
|
jobId: string;
|
|
4186
4186
|
cacheKey: string;
|
|
4187
4187
|
farmId?: string | undefined;
|
|
@@ -52,8 +52,8 @@ export declare const notificationsRouter: {
|
|
|
52
52
|
createdAt: string;
|
|
53
53
|
metadata: Record<string, unknown> | null;
|
|
54
54
|
body: string;
|
|
55
|
-
farmId: string | null;
|
|
56
55
|
userId: string;
|
|
56
|
+
farmId: string | null;
|
|
57
57
|
readAt: string | null;
|
|
58
58
|
}, {
|
|
59
59
|
type: "team" | "weather" | "field_alert" | "task" | "payment" | "system" | "subscription" | "camera";
|
|
@@ -62,8 +62,8 @@ export declare const notificationsRouter: {
|
|
|
62
62
|
createdAt: string;
|
|
63
63
|
metadata: Record<string, unknown> | null;
|
|
64
64
|
body: string;
|
|
65
|
-
farmId: string | null;
|
|
66
65
|
userId: string;
|
|
66
|
+
farmId: string | null;
|
|
67
67
|
readAt: string | null;
|
|
68
68
|
}>;
|
|
69
69
|
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -79,8 +79,8 @@ export declare const notificationsRouter: {
|
|
|
79
79
|
createdAt: string;
|
|
80
80
|
metadata: Record<string, unknown> | null;
|
|
81
81
|
body: string;
|
|
82
|
-
farmId: string | null;
|
|
83
82
|
userId: string;
|
|
83
|
+
farmId: string | null;
|
|
84
84
|
readAt: string | null;
|
|
85
85
|
};
|
|
86
86
|
relationships?: Record<string, unknown> | undefined;
|
|
@@ -96,8 +96,8 @@ export declare const notificationsRouter: {
|
|
|
96
96
|
createdAt: string;
|
|
97
97
|
metadata: Record<string, unknown> | null;
|
|
98
98
|
body: string;
|
|
99
|
-
farmId: string | null;
|
|
100
99
|
userId: string;
|
|
100
|
+
farmId: string | null;
|
|
101
101
|
readAt: string | null;
|
|
102
102
|
};
|
|
103
103
|
relationships?: Record<string, unknown> | undefined;
|
|
@@ -139,8 +139,8 @@ export declare const notificationsRouter: {
|
|
|
139
139
|
createdAt: string;
|
|
140
140
|
metadata: Record<string, unknown> | null;
|
|
141
141
|
body: string;
|
|
142
|
-
farmId: string | null;
|
|
143
142
|
userId: string;
|
|
143
|
+
farmId: string | null;
|
|
144
144
|
readAt: string | null;
|
|
145
145
|
};
|
|
146
146
|
relationships?: Record<string, unknown> | undefined;
|
|
@@ -168,8 +168,8 @@ export declare const notificationsRouter: {
|
|
|
168
168
|
createdAt: string;
|
|
169
169
|
metadata: Record<string, unknown> | null;
|
|
170
170
|
body: string;
|
|
171
|
-
farmId: string | null;
|
|
172
171
|
userId: string;
|
|
172
|
+
farmId: string | null;
|
|
173
173
|
readAt: string | null;
|
|
174
174
|
};
|
|
175
175
|
relationships?: Record<string, unknown> | undefined;
|
|
@@ -497,8 +497,8 @@ export declare const notificationsRouter: {
|
|
|
497
497
|
createdAt: string;
|
|
498
498
|
metadata: Record<string, unknown> | null;
|
|
499
499
|
body: string;
|
|
500
|
-
farmId: string | null;
|
|
501
500
|
userId: string;
|
|
501
|
+
farmId: string | null;
|
|
502
502
|
readAt: string | null;
|
|
503
503
|
}, {
|
|
504
504
|
type: "team" | "weather" | "field_alert" | "task" | "payment" | "system" | "subscription" | "camera";
|
|
@@ -507,8 +507,8 @@ export declare const notificationsRouter: {
|
|
|
507
507
|
createdAt: string;
|
|
508
508
|
metadata: Record<string, unknown> | null;
|
|
509
509
|
body: string;
|
|
510
|
-
farmId: string | null;
|
|
511
510
|
userId: string;
|
|
511
|
+
farmId: string | null;
|
|
512
512
|
readAt: string | null;
|
|
513
513
|
}>;
|
|
514
514
|
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -524,8 +524,8 @@ export declare const notificationsRouter: {
|
|
|
524
524
|
createdAt: string;
|
|
525
525
|
metadata: Record<string, unknown> | null;
|
|
526
526
|
body: string;
|
|
527
|
-
farmId: string | null;
|
|
528
527
|
userId: string;
|
|
528
|
+
farmId: string | null;
|
|
529
529
|
readAt: string | null;
|
|
530
530
|
};
|
|
531
531
|
relationships?: Record<string, unknown> | undefined;
|
|
@@ -541,8 +541,8 @@ export declare const notificationsRouter: {
|
|
|
541
541
|
createdAt: string;
|
|
542
542
|
metadata: Record<string, unknown> | null;
|
|
543
543
|
body: string;
|
|
544
|
-
farmId: string | null;
|
|
545
544
|
userId: string;
|
|
545
|
+
farmId: string | null;
|
|
546
546
|
readAt: string | null;
|
|
547
547
|
};
|
|
548
548
|
relationships?: Record<string, unknown> | undefined;
|
|
@@ -584,8 +584,8 @@ export declare const notificationsRouter: {
|
|
|
584
584
|
createdAt: string;
|
|
585
585
|
metadata: Record<string, unknown> | null;
|
|
586
586
|
body: string;
|
|
587
|
-
farmId: string | null;
|
|
588
587
|
userId: string;
|
|
588
|
+
farmId: string | null;
|
|
589
589
|
readAt: string | null;
|
|
590
590
|
};
|
|
591
591
|
relationships?: Record<string, unknown> | undefined;
|
|
@@ -613,8 +613,8 @@ export declare const notificationsRouter: {
|
|
|
613
613
|
createdAt: string;
|
|
614
614
|
metadata: Record<string, unknown> | null;
|
|
615
615
|
body: string;
|
|
616
|
-
farmId: string | null;
|
|
617
616
|
userId: string;
|
|
617
|
+
farmId: string | null;
|
|
618
618
|
readAt: string | null;
|
|
619
619
|
};
|
|
620
620
|
relationships?: Record<string, unknown> | undefined;
|