@deepintel-ltd/farmpro-contracts 1.5.26 → 1.7.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 +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/routes/fertigation.routes.d.ts +35250 -0
- package/dist/routes/fertigation.routes.d.ts.map +1 -0
- package/dist/routes/fertigation.routes.js +512 -0
- package/dist/routes/files.routes.d.ts +9 -2
- package/dist/routes/files.routes.d.ts.map +1 -1
- package/dist/routes/files.routes.js +5 -2
- package/dist/routes/index.d.ts +13 -0
- package/dist/routes/index.d.ts.map +1 -1
- package/dist/routes/index.js +7 -0
- package/dist/routes/organizations.routes.d.ts +10 -10
- package/dist/routes/tasks.routes.d.ts +9 -0
- package/dist/routes/tasks.routes.d.ts.map +1 -1
- package/dist/routes/tasks.routes.js +3 -0
- package/dist/routes/team.routes.d.ts +1 -1
- package/dist/routes/team.routes.js +1 -1
- package/dist/routes/waybills.routes.d.ts +0 -49
- package/dist/routes/waybills.routes.d.ts.map +1 -1
- package/dist/schemas/fertigation.schemas.d.ts +7479 -0
- package/dist/schemas/fertigation.schemas.d.ts.map +1 -0
- package/dist/schemas/fertigation.schemas.js +462 -0
- package/dist/schemas/organizations.schemas.d.ts +6 -6
- package/dist/schemas/organizations.schemas.js +2 -2
- package/dist/schemas/waybills.schemas.d.ts +0 -38
- package/dist/schemas/waybills.schemas.d.ts.map +1 -1
- package/dist/schemas/waybills.schemas.js +0 -2
- package/package.json +1 -1
package/dist/routes/index.d.ts
CHANGED
|
@@ -28,6 +28,7 @@ import { organizationsRouter } from './organizations.routes';
|
|
|
28
28
|
import { waybillsRouter } from './waybills.routes';
|
|
29
29
|
import { invoicesRouter } from './invoices.routes';
|
|
30
30
|
import { filesRouter } from './files.routes';
|
|
31
|
+
import { fertigationRouter, cropNutrientProfilesRouter, fertilizerProductsRouter, fertigationSchedulesRouter, fertigationEventsRouter, fertigationRecommendationsRouter } from './fertigation.routes';
|
|
31
32
|
/**
|
|
32
33
|
* Explicit interface definition for the API contract.
|
|
33
34
|
* This avoids TypeScript's type serialization limit when combining many routers
|
|
@@ -64,6 +65,12 @@ export interface ApiContractDefinition {
|
|
|
64
65
|
waybills: typeof waybillsRouter;
|
|
65
66
|
invoices: typeof invoicesRouter;
|
|
66
67
|
files: typeof filesRouter;
|
|
68
|
+
fertigation: typeof fertigationRouter;
|
|
69
|
+
cropNutrientProfiles: typeof cropNutrientProfilesRouter;
|
|
70
|
+
fertilizerProducts: typeof fertilizerProductsRouter;
|
|
71
|
+
fertigationSchedules: typeof fertigationSchedulesRouter;
|
|
72
|
+
fertigationEvents: typeof fertigationEventsRouter;
|
|
73
|
+
fertigationRecommendations: typeof fertigationRecommendationsRouter;
|
|
67
74
|
}
|
|
68
75
|
/**
|
|
69
76
|
* Main API contract combining all routers
|
|
@@ -110,4 +117,10 @@ export type OrganizationsEndpoints = ApiContractType['organizations'];
|
|
|
110
117
|
export type WaybillsEndpoints = ApiContractType['waybills'];
|
|
111
118
|
export type InvoicesEndpoints = ApiContractType['invoices'];
|
|
112
119
|
export type FilesEndpoints = ApiContractType['files'];
|
|
120
|
+
export type FertigationEndpoints = ApiContractType['fertigation'];
|
|
121
|
+
export type CropNutrientProfilesEndpoints = ApiContractType['cropNutrientProfiles'];
|
|
122
|
+
export type FertilizerProductsEndpoints = ApiContractType['fertilizerProducts'];
|
|
123
|
+
export type FertigationSchedulesEndpoints = ApiContractType['fertigationSchedules'];
|
|
124
|
+
export type FertigationEventsEndpoints = ApiContractType['fertigationEvents'];
|
|
125
|
+
export type FertigationRecommendationsEndpoints = ApiContractType['fertigationRecommendations'];
|
|
113
126
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/routes/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,C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AC,QAAQ,CAAC,CAAC;AACxD,MAAM,MAAM,sBAAsB,GAAG,eAAe,CAAC,eAAe,CAAC,CAAC;AACtE,MAAM,MAAM,mBAAmB,GAAG,eAAe,CAAC,YAAY,CAAC,CAAC;AAChE,MAAM,MAAM,iBAAiB,GAAG,eAAe,CAAC,UAAU,CAAC,CAAC;AAC5D,MAAM,MAAM,sBAAsB,GAAG,eAAe,CAAC,eAAe,CAAC,CAAC;AACtE,MAAM,MAAM,sBAAsB,GAAG,eAAe,CAAC,eAAe,CAAC,CAAC;AACtE,MAAM,MAAM,iBAAiB,GAAG,eAAe,CAAC,UAAU,CAAC,CAAC;AAC5D,MAAM,MAAM,iBAAiB,GAAG,eAAe,CAAC,UAAU,CAAC,CAAC;AAC5D,MAAM,MAAM,cAAc,GAAG,eAAe,CAAC,OAAO,CAAC,CAAC;AACtD,MAAM,MAAM,oBAAoB,GAAG,eAAe,CAAC,aAAa,CAAC,CAAC;AAClE,MAAM,MAAM,6BAA6B,GAAG,eAAe,CAAC,sBAAsB,CAAC,CAAC;AACpF,MAAM,MAAM,2BAA2B,GAAG,eAAe,CAAC,oBAAoB,CAAC,CAAC;AAChF,MAAM,MAAM,6BAA6B,GAAG,eAAe,CAAC,sBAAsB,CAAC,CAAC;AACpF,MAAM,MAAM,0BAA0B,GAAG,eAAe,CAAC,mBAAmB,CAAC,CAAC;AAC9E,MAAM,MAAM,mCAAmC,GAAG,eAAe,CAAC,4BAA4B,CAAC,CAAC"}
|
package/dist/routes/index.js
CHANGED
|
@@ -29,6 +29,7 @@ import { organizationsRouter } from './organizations.routes';
|
|
|
29
29
|
import { waybillsRouter } from './waybills.routes';
|
|
30
30
|
import { invoicesRouter } from './invoices.routes';
|
|
31
31
|
import { filesRouter } from './files.routes';
|
|
32
|
+
import { fertigationRouter, cropNutrientProfilesRouter, fertilizerProductsRouter, fertigationSchedulesRouter, fertigationEventsRouter, fertigationRecommendationsRouter, } from './fertigation.routes';
|
|
32
33
|
const c = initContract();
|
|
33
34
|
/**
|
|
34
35
|
* Main API contract combining all routers
|
|
@@ -67,4 +68,10 @@ export const apiContract = c.router({
|
|
|
67
68
|
waybills: waybillsRouter,
|
|
68
69
|
invoices: invoicesRouter,
|
|
69
70
|
files: filesRouter,
|
|
71
|
+
fertigation: fertigationRouter,
|
|
72
|
+
cropNutrientProfiles: cropNutrientProfilesRouter,
|
|
73
|
+
fertilizerProducts: fertilizerProductsRouter,
|
|
74
|
+
fertigationSchedules: fertigationSchedulesRouter,
|
|
75
|
+
fertigationEvents: fertigationEventsRouter,
|
|
76
|
+
fertigationRecommendations: fertigationRecommendationsRouter,
|
|
70
77
|
});
|
|
@@ -1092,7 +1092,7 @@ export declare const organizationsRouter: {
|
|
|
1092
1092
|
body: z.ZodObject<{
|
|
1093
1093
|
data: z.ZodObject<{
|
|
1094
1094
|
type: z.ZodLiteral<"organizations">;
|
|
1095
|
-
id: z.ZodString
|
|
1095
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1096
1096
|
attributes: z.ZodObject<{
|
|
1097
1097
|
name: z.ZodOptional<z.ZodString>;
|
|
1098
1098
|
email: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
@@ -1114,7 +1114,6 @@ export declare const organizationsRouter: {
|
|
|
1114
1114
|
}>;
|
|
1115
1115
|
}, "strip", z.ZodTypeAny, {
|
|
1116
1116
|
type: "organizations";
|
|
1117
|
-
id: string;
|
|
1118
1117
|
attributes: {
|
|
1119
1118
|
email?: string | undefined;
|
|
1120
1119
|
name?: string | undefined;
|
|
@@ -1122,9 +1121,9 @@ export declare const organizationsRouter: {
|
|
|
1122
1121
|
address?: string | undefined;
|
|
1123
1122
|
logo?: string | undefined;
|
|
1124
1123
|
};
|
|
1124
|
+
id?: string | undefined;
|
|
1125
1125
|
}, {
|
|
1126
1126
|
type: "organizations";
|
|
1127
|
-
id: string;
|
|
1128
1127
|
attributes: {
|
|
1129
1128
|
email?: string | undefined;
|
|
1130
1129
|
name?: string | undefined;
|
|
@@ -1132,11 +1131,11 @@ export declare const organizationsRouter: {
|
|
|
1132
1131
|
address?: string | undefined;
|
|
1133
1132
|
logo?: string | undefined;
|
|
1134
1133
|
};
|
|
1134
|
+
id?: string | undefined;
|
|
1135
1135
|
}>;
|
|
1136
1136
|
}, "strip", z.ZodTypeAny, {
|
|
1137
1137
|
data: {
|
|
1138
1138
|
type: "organizations";
|
|
1139
|
-
id: string;
|
|
1140
1139
|
attributes: {
|
|
1141
1140
|
email?: string | undefined;
|
|
1142
1141
|
name?: string | undefined;
|
|
@@ -1144,11 +1143,11 @@ export declare const organizationsRouter: {
|
|
|
1144
1143
|
address?: string | undefined;
|
|
1145
1144
|
logo?: string | undefined;
|
|
1146
1145
|
};
|
|
1146
|
+
id?: string | undefined;
|
|
1147
1147
|
};
|
|
1148
1148
|
}, {
|
|
1149
1149
|
data: {
|
|
1150
1150
|
type: "organizations";
|
|
1151
|
-
id: string;
|
|
1152
1151
|
attributes: {
|
|
1153
1152
|
email?: string | undefined;
|
|
1154
1153
|
name?: string | undefined;
|
|
@@ -1156,6 +1155,7 @@ export declare const organizationsRouter: {
|
|
|
1156
1155
|
address?: string | undefined;
|
|
1157
1156
|
logo?: string | undefined;
|
|
1158
1157
|
};
|
|
1158
|
+
id?: string | undefined;
|
|
1159
1159
|
};
|
|
1160
1160
|
}>;
|
|
1161
1161
|
path: "/organizations/:id";
|
|
@@ -3741,7 +3741,7 @@ export declare const organizationsRouter: {
|
|
|
3741
3741
|
body: z.ZodObject<{
|
|
3742
3742
|
data: z.ZodObject<{
|
|
3743
3743
|
type: z.ZodLiteral<"bank-accounts">;
|
|
3744
|
-
id: z.ZodString
|
|
3744
|
+
id: z.ZodOptional<z.ZodString>;
|
|
3745
3745
|
attributes: z.ZodObject<{
|
|
3746
3746
|
bankName: z.ZodOptional<z.ZodString>;
|
|
3747
3747
|
accountNumber: z.ZodOptional<z.ZodString>;
|
|
@@ -3760,44 +3760,44 @@ export declare const organizationsRouter: {
|
|
|
3760
3760
|
}>;
|
|
3761
3761
|
}, "strip", z.ZodTypeAny, {
|
|
3762
3762
|
type: "bank-accounts";
|
|
3763
|
-
id: string;
|
|
3764
3763
|
attributes: {
|
|
3765
3764
|
isDefault?: boolean | undefined;
|
|
3766
3765
|
bankName?: string | undefined;
|
|
3767
3766
|
accountNumber?: string | undefined;
|
|
3768
3767
|
accountName?: string | undefined;
|
|
3769
3768
|
};
|
|
3769
|
+
id?: string | undefined;
|
|
3770
3770
|
}, {
|
|
3771
3771
|
type: "bank-accounts";
|
|
3772
|
-
id: string;
|
|
3773
3772
|
attributes: {
|
|
3774
3773
|
isDefault?: boolean | undefined;
|
|
3775
3774
|
bankName?: string | undefined;
|
|
3776
3775
|
accountNumber?: string | undefined;
|
|
3777
3776
|
accountName?: string | undefined;
|
|
3778
3777
|
};
|
|
3778
|
+
id?: string | undefined;
|
|
3779
3779
|
}>;
|
|
3780
3780
|
}, "strip", z.ZodTypeAny, {
|
|
3781
3781
|
data: {
|
|
3782
3782
|
type: "bank-accounts";
|
|
3783
|
-
id: string;
|
|
3784
3783
|
attributes: {
|
|
3785
3784
|
isDefault?: boolean | undefined;
|
|
3786
3785
|
bankName?: string | undefined;
|
|
3787
3786
|
accountNumber?: string | undefined;
|
|
3788
3787
|
accountName?: string | undefined;
|
|
3789
3788
|
};
|
|
3789
|
+
id?: string | undefined;
|
|
3790
3790
|
};
|
|
3791
3791
|
}, {
|
|
3792
3792
|
data: {
|
|
3793
3793
|
type: "bank-accounts";
|
|
3794
|
-
id: string;
|
|
3795
3794
|
attributes: {
|
|
3796
3795
|
isDefault?: boolean | undefined;
|
|
3797
3796
|
bankName?: string | undefined;
|
|
3798
3797
|
accountNumber?: string | undefined;
|
|
3799
3798
|
accountName?: string | undefined;
|
|
3800
3799
|
};
|
|
3800
|
+
id?: string | undefined;
|
|
3801
3801
|
};
|
|
3802
3802
|
}>;
|
|
3803
3803
|
path: "/organizations/:organizationId/bank-accounts/:id";
|
|
@@ -20,6 +20,9 @@ export declare const tasksRouter: {
|
|
|
20
20
|
'filter[status]': z.ZodOptional<z.ZodEnum<["pending", "in-progress", "completed", "cancelled"]>>;
|
|
21
21
|
'filter[fieldId]': z.ZodOptional<z.ZodString>;
|
|
22
22
|
'filter[assignedTo]': z.ZodOptional<z.ZodString>;
|
|
23
|
+
'filter[dateFrom]': z.ZodOptional<z.ZodString>;
|
|
24
|
+
'filter[dateTo]': z.ZodOptional<z.ZodString>;
|
|
25
|
+
'filter[month]': z.ZodOptional<z.ZodString>;
|
|
23
26
|
}, "strip", z.ZodTypeAny, {
|
|
24
27
|
sort?: string | undefined;
|
|
25
28
|
'page[number]'?: number | undefined;
|
|
@@ -31,6 +34,9 @@ export declare const tasksRouter: {
|
|
|
31
34
|
include?: string | undefined;
|
|
32
35
|
'filter[fieldId]'?: string | undefined;
|
|
33
36
|
'filter[assignedTo]'?: string | undefined;
|
|
37
|
+
'filter[dateFrom]'?: string | undefined;
|
|
38
|
+
'filter[dateTo]'?: string | undefined;
|
|
39
|
+
'filter[month]'?: string | undefined;
|
|
34
40
|
}, {
|
|
35
41
|
sort?: string | undefined;
|
|
36
42
|
'page[number]'?: number | undefined;
|
|
@@ -42,6 +48,9 @@ export declare const tasksRouter: {
|
|
|
42
48
|
include?: string | undefined;
|
|
43
49
|
'filter[fieldId]'?: string | undefined;
|
|
44
50
|
'filter[assignedTo]'?: string | undefined;
|
|
51
|
+
'filter[dateFrom]'?: string | undefined;
|
|
52
|
+
'filter[dateTo]'?: string | undefined;
|
|
53
|
+
'filter[month]'?: string | undefined;
|
|
45
54
|
}>;
|
|
46
55
|
summary: "List tasks for a farm";
|
|
47
56
|
description: "Get all tasks for a specific farm with optional filtering";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tasks.routes.d.ts","sourceRoot":"","sources":["../../src/routes/tasks.routes.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAqBxB,eAAO,MAAM,WAAW
|
|
1
|
+
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0ItB,CAAC"}
|
|
@@ -17,6 +17,9 @@ export const tasksRouter = c.router({
|
|
|
17
17
|
'filter[status]': z.enum(['pending', 'in-progress', 'completed', 'cancelled']).optional(),
|
|
18
18
|
'filter[fieldId]': z.string().uuid().optional(),
|
|
19
19
|
'filter[assignedTo]': z.string().uuid().optional(),
|
|
20
|
+
'filter[dateFrom]': z.string().datetime().optional(),
|
|
21
|
+
'filter[dateTo]': z.string().datetime().optional(),
|
|
22
|
+
'filter[month]': z.string().regex(/^\d{4}-\d{2}$/).optional(),
|
|
20
23
|
})),
|
|
21
24
|
responses: {
|
|
22
25
|
200: taskListResponseSchema,
|
|
@@ -2532,7 +2532,7 @@ export declare const teamRouter: {
|
|
|
2532
2532
|
};
|
|
2533
2533
|
acceptInvitation: {
|
|
2534
2534
|
summary: "Accept team invitation";
|
|
2535
|
-
description: "Accept a team invitation by token.
|
|
2535
|
+
description: "Accept a team invitation by token. For authenticated users whose email matches the invitation, password is optional. For unauthenticated users or when email does not match, password is required. If user does not exist, password will be used to create account.";
|
|
2536
2536
|
method: "POST";
|
|
2537
2537
|
body: z.ZodObject<{
|
|
2538
2538
|
data: z.ZodObject<{
|
|
@@ -142,7 +142,7 @@ export const teamRouter = c.router({
|
|
|
142
142
|
404: jsonApiErrorResponseSchema,
|
|
143
143
|
},
|
|
144
144
|
summary: 'Accept team invitation',
|
|
145
|
-
description: 'Accept a team invitation by token.
|
|
145
|
+
description: 'Accept a team invitation by token. For authenticated users whose email matches the invitation, password is optional. For unauthenticated users or when email does not match, password is required. If user does not exist, password will be used to create account.',
|
|
146
146
|
},
|
|
147
147
|
// Resend team invitation
|
|
148
148
|
resendInvitation: {
|