@deepintel-ltd/farmpro-contracts 1.24.0 → 1.24.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.
|
@@ -24,6 +24,8 @@ export declare const documentsRouter: {
|
|
|
24
24
|
'filter[type]': z.ZodOptional<z.ZodEnum<["receipt", "certificate", "land-document", "insurance", "contract", "invoice", "other"]>>;
|
|
25
25
|
'filter[relatedToType]': z.ZodOptional<z.ZodEnum<["farm", "field", "purchase", "expense", "equipment", "other"]>>;
|
|
26
26
|
'filter[relatedToId]': z.ZodOptional<z.ZodString>;
|
|
27
|
+
'filter[tag]': z.ZodOptional<z.ZodString>;
|
|
28
|
+
'filter[excludeTag]': z.ZodOptional<z.ZodString>;
|
|
27
29
|
}, "strip", z.ZodTypeAny, {
|
|
28
30
|
sort?: string | undefined;
|
|
29
31
|
'page[number]'?: number | undefined;
|
|
@@ -36,6 +38,8 @@ export declare const documentsRouter: {
|
|
|
36
38
|
'filter[type]'?: "other" | "receipt" | "certificate" | "land-document" | "insurance" | "contract" | "invoice" | undefined;
|
|
37
39
|
'filter[relatedToType]'?: "other" | "farm" | "field" | "expense" | "equipment" | "purchase" | undefined;
|
|
38
40
|
'filter[relatedToId]'?: string | undefined;
|
|
41
|
+
'filter[tag]'?: string | undefined;
|
|
42
|
+
'filter[excludeTag]'?: string | undefined;
|
|
39
43
|
}, {
|
|
40
44
|
sort?: string | undefined;
|
|
41
45
|
'page[number]'?: number | undefined;
|
|
@@ -48,6 +52,8 @@ export declare const documentsRouter: {
|
|
|
48
52
|
'filter[type]'?: "other" | "receipt" | "certificate" | "land-document" | "insurance" | "contract" | "invoice" | undefined;
|
|
49
53
|
'filter[relatedToType]'?: "other" | "farm" | "field" | "expense" | "equipment" | "purchase" | undefined;
|
|
50
54
|
'filter[relatedToId]'?: string | undefined;
|
|
55
|
+
'filter[tag]'?: string | undefined;
|
|
56
|
+
'filter[excludeTag]'?: string | undefined;
|
|
51
57
|
}>;
|
|
52
58
|
summary: "List documents";
|
|
53
59
|
description: "Get all documents for a farm with optional filtering";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"documents.routes.d.ts","sourceRoot":"","sources":["../../src/routes/documents.routes.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAyBxB,eAAO,MAAM,eAAe
|
|
1
|
+
{"version":3,"file":"documents.routes.d.ts","sourceRoot":"","sources":["../../src/routes/documents.routes.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAyBxB,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgM1B,CAAC"}
|
|
@@ -17,6 +17,8 @@ export const documentsRouter = c.router({
|
|
|
17
17
|
'filter[type]': documentTypeSchema.optional(),
|
|
18
18
|
'filter[relatedToType]': relatedEntityTypeSchema.optional(),
|
|
19
19
|
'filter[relatedToId]': z.string().uuid().optional(),
|
|
20
|
+
'filter[tag]': z.string().min(1).max(100).optional(),
|
|
21
|
+
'filter[excludeTag]': z.string().min(1).max(100).optional(),
|
|
20
22
|
})),
|
|
21
23
|
responses: {
|
|
22
24
|
200: documentListResponseSchema,
|