@deepintel-ltd/farmpro-contracts 1.25.2 → 1.26.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/routes/farm-enterprises.routes.d.ts +44 -44
- package/dist/routes/farms.routes.d.ts +9 -9
- package/dist/routes/geofences.routes.d.ts +2 -2
- package/dist/routes/livestock-groups.routes.d.ts +724 -54
- package/dist/routes/livestock-groups.routes.d.ts.map +1 -1
- package/dist/routes/livestock-groups.routes.js +17 -1
- package/dist/routes/livestock.routes.d.ts +3505 -42
- package/dist/routes/livestock.routes.d.ts.map +1 -1
- package/dist/routes/livestock.routes.js +111 -1
- package/dist/routes/organizations.routes.d.ts +112 -14
- package/dist/routes/organizations.routes.d.ts.map +1 -1
- package/dist/routes/team.routes.d.ts +44 -44
- package/dist/routes/trade-cash-events.routes.d.ts +7668 -559
- package/dist/routes/trade-cash-events.routes.d.ts.map +1 -1
- package/dist/routes/trade-cash-events.routes.js +148 -2
- package/dist/schemas/farm-enterprises.schemas.d.ts +58 -58
- package/dist/schemas/farm-enterprises.schemas.d.ts.map +1 -1
- package/dist/schemas/farm-enterprises.schemas.js +1 -0
- package/dist/schemas/farms.schemas.d.ts +12 -12
- package/dist/schemas/farms.schemas.js +1 -1
- package/dist/schemas/geofences.schemas.d.ts +4 -4
- package/dist/schemas/livestock-groups.schemas.d.ts +166 -40
- package/dist/schemas/livestock-groups.schemas.d.ts.map +1 -1
- package/dist/schemas/livestock-groups.schemas.js +25 -0
- package/dist/schemas/livestock.schemas.d.ts +1796 -36
- package/dist/schemas/livestock.schemas.d.ts.map +1 -1
- package/dist/schemas/livestock.schemas.js +129 -0
- package/dist/schemas/organizations.schemas.d.ts +104 -16
- package/dist/schemas/organizations.schemas.d.ts.map +1 -1
- package/dist/schemas/organizations.schemas.js +8 -1
- package/dist/schemas/team.schemas.d.ts +43 -43
- package/dist/schemas/team.schemas.d.ts.map +1 -1
- package/dist/schemas/team.schemas.js +1 -0
- package/dist/schemas/trade-cash-events.schemas.d.ts +2605 -68
- package/dist/schemas/trade-cash-events.schemas.d.ts.map +1 -1
- package/dist/schemas/trade-cash-events.schemas.js +204 -0
- package/package.json +1 -1
|
@@ -1811,7 +1811,7 @@ export declare const farmOnboardingAttributesSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1811
1811
|
};
|
|
1812
1812
|
}>>;
|
|
1813
1813
|
/** Enterprise packs to enable on this farm. Defaults to CROPS when omitted. */
|
|
1814
|
-
enterprises: z.ZodOptional<z.ZodArray<z.ZodEnum<["CROPS", "POULTRY", "AQUACULTURE", "CATTLE", "GOAT"]>, "many">>;
|
|
1814
|
+
enterprises: z.ZodOptional<z.ZodArray<z.ZodEnum<["CROPS", "POULTRY", "AQUACULTURE", "CATTLE", "GOAT", "SHEEP"]>, "many">>;
|
|
1815
1815
|
currency: z.ZodOptional<z.ZodEnum<["NGN", "USD", "GHS", "KES", "CAD", "AED", "GBP", "EUR"]>>;
|
|
1816
1816
|
}, "strip", z.ZodTypeAny, {
|
|
1817
1817
|
name: string;
|
|
@@ -1835,7 +1835,7 @@ export declare const farmOnboardingAttributesSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1835
1835
|
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
1836
1836
|
};
|
|
1837
1837
|
} | undefined;
|
|
1838
|
-
enterprises?: ("CROPS" | "POULTRY" | "AQUACULTURE" | "CATTLE" | "GOAT")[] | undefined;
|
|
1838
|
+
enterprises?: ("CROPS" | "POULTRY" | "AQUACULTURE" | "CATTLE" | "GOAT" | "SHEEP")[] | undefined;
|
|
1839
1839
|
}, {
|
|
1840
1840
|
name: string;
|
|
1841
1841
|
location: {
|
|
@@ -1858,7 +1858,7 @@ export declare const farmOnboardingAttributesSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1858
1858
|
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
1859
1859
|
};
|
|
1860
1860
|
} | undefined;
|
|
1861
|
-
enterprises?: ("CROPS" | "POULTRY" | "AQUACULTURE" | "CATTLE" | "GOAT")[] | undefined;
|
|
1861
|
+
enterprises?: ("CROPS" | "POULTRY" | "AQUACULTURE" | "CATTLE" | "GOAT" | "SHEEP")[] | undefined;
|
|
1862
1862
|
}>, {
|
|
1863
1863
|
name: string;
|
|
1864
1864
|
countryCode: string;
|
|
@@ -1881,7 +1881,7 @@ export declare const farmOnboardingAttributesSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1881
1881
|
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
1882
1882
|
};
|
|
1883
1883
|
} | undefined;
|
|
1884
|
-
enterprises?: ("CROPS" | "POULTRY" | "AQUACULTURE" | "CATTLE" | "GOAT")[] | undefined;
|
|
1884
|
+
enterprises?: ("CROPS" | "POULTRY" | "AQUACULTURE" | "CATTLE" | "GOAT" | "SHEEP")[] | undefined;
|
|
1885
1885
|
}, {
|
|
1886
1886
|
name: string;
|
|
1887
1887
|
location: {
|
|
@@ -1904,7 +1904,7 @@ export declare const farmOnboardingAttributesSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1904
1904
|
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
1905
1905
|
};
|
|
1906
1906
|
} | undefined;
|
|
1907
|
-
enterprises?: ("CROPS" | "POULTRY" | "AQUACULTURE" | "CATTLE" | "GOAT")[] | undefined;
|
|
1907
|
+
enterprises?: ("CROPS" | "POULTRY" | "AQUACULTURE" | "CATTLE" | "GOAT" | "SHEEP")[] | undefined;
|
|
1908
1908
|
}>;
|
|
1909
1909
|
export declare const farmOnboardingInputSchema: z.ZodObject<{
|
|
1910
1910
|
type: z.ZodLiteral<"farm-onboarding">;
|
|
@@ -1966,7 +1966,7 @@ export declare const farmOnboardingInputSchema: z.ZodObject<{
|
|
|
1966
1966
|
};
|
|
1967
1967
|
}>>;
|
|
1968
1968
|
/** Enterprise packs to enable on this farm. Defaults to CROPS when omitted. */
|
|
1969
|
-
enterprises: z.ZodOptional<z.ZodArray<z.ZodEnum<["CROPS", "POULTRY", "AQUACULTURE", "CATTLE", "GOAT"]>, "many">>;
|
|
1969
|
+
enterprises: z.ZodOptional<z.ZodArray<z.ZodEnum<["CROPS", "POULTRY", "AQUACULTURE", "CATTLE", "GOAT", "SHEEP"]>, "many">>;
|
|
1970
1970
|
currency: z.ZodOptional<z.ZodEnum<["NGN", "USD", "GHS", "KES", "CAD", "AED", "GBP", "EUR"]>>;
|
|
1971
1971
|
}, "strip", z.ZodTypeAny, {
|
|
1972
1972
|
name: string;
|
|
@@ -1990,7 +1990,7 @@ export declare const farmOnboardingInputSchema: z.ZodObject<{
|
|
|
1990
1990
|
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
1991
1991
|
};
|
|
1992
1992
|
} | undefined;
|
|
1993
|
-
enterprises?: ("CROPS" | "POULTRY" | "AQUACULTURE" | "CATTLE" | "GOAT")[] | undefined;
|
|
1993
|
+
enterprises?: ("CROPS" | "POULTRY" | "AQUACULTURE" | "CATTLE" | "GOAT" | "SHEEP")[] | undefined;
|
|
1994
1994
|
}, {
|
|
1995
1995
|
name: string;
|
|
1996
1996
|
location: {
|
|
@@ -2013,7 +2013,7 @@ export declare const farmOnboardingInputSchema: z.ZodObject<{
|
|
|
2013
2013
|
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
2014
2014
|
};
|
|
2015
2015
|
} | undefined;
|
|
2016
|
-
enterprises?: ("CROPS" | "POULTRY" | "AQUACULTURE" | "CATTLE" | "GOAT")[] | undefined;
|
|
2016
|
+
enterprises?: ("CROPS" | "POULTRY" | "AQUACULTURE" | "CATTLE" | "GOAT" | "SHEEP")[] | undefined;
|
|
2017
2017
|
}>, {
|
|
2018
2018
|
name: string;
|
|
2019
2019
|
countryCode: string;
|
|
@@ -2036,7 +2036,7 @@ export declare const farmOnboardingInputSchema: z.ZodObject<{
|
|
|
2036
2036
|
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
2037
2037
|
};
|
|
2038
2038
|
} | undefined;
|
|
2039
|
-
enterprises?: ("CROPS" | "POULTRY" | "AQUACULTURE" | "CATTLE" | "GOAT")[] | undefined;
|
|
2039
|
+
enterprises?: ("CROPS" | "POULTRY" | "AQUACULTURE" | "CATTLE" | "GOAT" | "SHEEP")[] | undefined;
|
|
2040
2040
|
}, {
|
|
2041
2041
|
name: string;
|
|
2042
2042
|
location: {
|
|
@@ -2059,7 +2059,7 @@ export declare const farmOnboardingInputSchema: z.ZodObject<{
|
|
|
2059
2059
|
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
2060
2060
|
};
|
|
2061
2061
|
} | undefined;
|
|
2062
|
-
enterprises?: ("CROPS" | "POULTRY" | "AQUACULTURE" | "CATTLE" | "GOAT")[] | undefined;
|
|
2062
|
+
enterprises?: ("CROPS" | "POULTRY" | "AQUACULTURE" | "CATTLE" | "GOAT" | "SHEEP")[] | undefined;
|
|
2063
2063
|
}>;
|
|
2064
2064
|
}, "strip", z.ZodTypeAny, {
|
|
2065
2065
|
type: "farm-onboarding";
|
|
@@ -2085,7 +2085,7 @@ export declare const farmOnboardingInputSchema: z.ZodObject<{
|
|
|
2085
2085
|
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
2086
2086
|
};
|
|
2087
2087
|
} | undefined;
|
|
2088
|
-
enterprises?: ("CROPS" | "POULTRY" | "AQUACULTURE" | "CATTLE" | "GOAT")[] | undefined;
|
|
2088
|
+
enterprises?: ("CROPS" | "POULTRY" | "AQUACULTURE" | "CATTLE" | "GOAT" | "SHEEP")[] | undefined;
|
|
2089
2089
|
};
|
|
2090
2090
|
}, {
|
|
2091
2091
|
type: "farm-onboarding";
|
|
@@ -2111,7 +2111,7 @@ export declare const farmOnboardingInputSchema: z.ZodObject<{
|
|
|
2111
2111
|
coordinates: number[] | number[][] | number[][][] | number[][][][];
|
|
2112
2112
|
};
|
|
2113
2113
|
} | undefined;
|
|
2114
|
-
enterprises?: ("CROPS" | "POULTRY" | "AQUACULTURE" | "CATTLE" | "GOAT")[] | undefined;
|
|
2114
|
+
enterprises?: ("CROPS" | "POULTRY" | "AQUACULTURE" | "CATTLE" | "GOAT" | "SHEEP")[] | undefined;
|
|
2115
2115
|
};
|
|
2116
2116
|
}>;
|
|
2117
2117
|
export declare const farmOnboardingResponseSchema: z.ZodObject<{
|
|
@@ -103,7 +103,7 @@ export const farmOnboardingAttributesSchema = z.object({
|
|
|
103
103
|
firstField: onboardingFirstFieldSchema.optional(),
|
|
104
104
|
/** Enterprise packs to enable on this farm. Defaults to CROPS when omitted. */
|
|
105
105
|
enterprises: z
|
|
106
|
-
.array(z.enum(['CROPS', 'POULTRY', 'AQUACULTURE', 'CATTLE', 'GOAT']))
|
|
106
|
+
.array(z.enum(['CROPS', 'POULTRY', 'AQUACULTURE', 'CATTLE', 'GOAT', 'SHEEP']))
|
|
107
107
|
.min(1)
|
|
108
108
|
.optional(),
|
|
109
109
|
currency: currencySchema.optional(),
|
|
@@ -168,8 +168,8 @@ export declare const geofenceAlertSchema: z.ZodObject<{
|
|
|
168
168
|
groupName?: string | undefined;
|
|
169
169
|
acknowledgedAt?: string | undefined;
|
|
170
170
|
acknowledgedBy?: string | undefined;
|
|
171
|
-
geofenceName?: string | undefined;
|
|
172
171
|
livestockId?: string | undefined;
|
|
172
|
+
geofenceName?: string | undefined;
|
|
173
173
|
livestockTagId?: string | undefined;
|
|
174
174
|
}, {
|
|
175
175
|
coordinates: {
|
|
@@ -185,8 +185,8 @@ export declare const geofenceAlertSchema: z.ZodObject<{
|
|
|
185
185
|
groupName?: string | undefined;
|
|
186
186
|
acknowledgedAt?: string | undefined;
|
|
187
187
|
acknowledgedBy?: string | undefined;
|
|
188
|
-
geofenceName?: string | undefined;
|
|
189
188
|
livestockId?: string | undefined;
|
|
189
|
+
geofenceName?: string | undefined;
|
|
190
190
|
livestockTagId?: string | undefined;
|
|
191
191
|
}>;
|
|
192
192
|
export declare const geofenceListResponseSchema: z.ZodArray<z.ZodObject<{
|
|
@@ -330,8 +330,8 @@ export declare const geofenceAlertListResponseSchema: z.ZodArray<z.ZodObject<{
|
|
|
330
330
|
groupName?: string | undefined;
|
|
331
331
|
acknowledgedAt?: string | undefined;
|
|
332
332
|
acknowledgedBy?: string | undefined;
|
|
333
|
-
geofenceName?: string | undefined;
|
|
334
333
|
livestockId?: string | undefined;
|
|
334
|
+
geofenceName?: string | undefined;
|
|
335
335
|
livestockTagId?: string | undefined;
|
|
336
336
|
}, {
|
|
337
337
|
coordinates: {
|
|
@@ -347,8 +347,8 @@ export declare const geofenceAlertListResponseSchema: z.ZodArray<z.ZodObject<{
|
|
|
347
347
|
groupName?: string | undefined;
|
|
348
348
|
acknowledgedAt?: string | undefined;
|
|
349
349
|
acknowledgedBy?: string | undefined;
|
|
350
|
-
geofenceName?: string | undefined;
|
|
351
350
|
livestockId?: string | undefined;
|
|
351
|
+
geofenceName?: string | undefined;
|
|
352
352
|
livestockTagId?: string | undefined;
|
|
353
353
|
}>, "many">;
|
|
354
354
|
export type GeofenceResponse = z.infer<typeof geofenceSchema>;
|