@deepintel-ltd/farmpro-contracts 1.5.0 → 1.5.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.
@@ -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;AAsBxB,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoJ1B,CAAC"}
@@ -35,7 +35,7 @@ exports.documentsRouter = c.router({
35
35
  path: '/farms/:farmId/documents/upload',
36
36
  contentType: 'multipart/form-data',
37
37
  pathParams: zod_1.z.object({ farmId: zod_1.z.string().uuid() }),
38
- body: documents_schemas_1.uploadFileBodySchema,
38
+ body: zod_1.z.union([documents_schemas_1.uploadFileBodySchema, zod_1.z.undefined()]),
39
39
  responses: {
40
40
  200: documents_schemas_1.uploadedFileResponseSchema,
41
41
  400: common_schemas_1.jsonApiErrorResponseSchema,
@@ -132,4 +132,19 @@ exports.documentsRouter = c.router({
132
132
  summary: 'Delete document',
133
133
  description: 'Delete a document record',
134
134
  },
135
+ viewDocument: {
136
+ method: 'GET',
137
+ path: '/documents/view/:docId',
138
+ pathParams: zod_1.z.object({
139
+ docId: zod_1.z.string(),
140
+ }),
141
+ responses: {
142
+ 200: zod_1.z.any(),
143
+ 404: common_schemas_1.jsonApiErrorResponseSchema,
144
+ 401: common_schemas_1.jsonApiErrorResponseSchema,
145
+ 403: common_schemas_1.jsonApiErrorResponseSchema,
146
+ },
147
+ summary: 'View document file',
148
+ description: 'Stream or download a document file by its UUID. Extension is optional - both /documents/view/{docId} and /documents/view/{docId}.{ext} work for the same file.',
149
+ },
135
150
  });
@@ -24,10 +24,9 @@ export declare const fieldObservationsRouter: {
24
24
  }>>;
25
25
  capturedAt: z.ZodOptional<z.ZodString>;
26
26
  } & {
27
- photo: z.ZodType<import("buffer").File, z.ZodTypeDef, import("buffer").File>;
27
+ photo: z.ZodAny;
28
28
  }, "strip", z.ZodTypeAny, {
29
29
  observationType: "general" | "disease" | "pest" | "nutrient" | "weed" | "health_check";
30
- photo: import("buffer").File;
31
30
  location?: {
32
31
  lat: number;
33
32
  lng: number;
@@ -37,9 +36,9 @@ export declare const fieldObservationsRouter: {
37
36
  capturedAt?: string | undefined;
38
37
  userNotes?: string | undefined;
39
38
  cropStageAtTime?: "planted" | "flowering" | "mature" | "harvested" | "germination" | "vegetative" | "fruiting" | undefined;
39
+ photo?: any;
40
40
  }, {
41
41
  observationType: "general" | "disease" | "pest" | "nutrient" | "weed" | "health_check";
42
- photo: import("buffer").File;
43
42
  location?: {
44
43
  lat: number;
45
44
  lng: number;
@@ -49,6 +48,7 @@ export declare const fieldObservationsRouter: {
49
48
  capturedAt?: string | undefined;
50
49
  userNotes?: string | undefined;
51
50
  cropStageAtTime?: "planted" | "flowering" | "mature" | "harvested" | "germination" | "vegetative" | "fruiting" | undefined;
51
+ photo?: any;
52
52
  }>;
53
53
  path: "/farms/:farmId/observations";
54
54
  responses: {
@@ -111,10 +111,9 @@ export declare const fieldObservationsRouter: {
111
111
  }>>;
112
112
  capturedAt: z.ZodOptional<z.ZodString>;
113
113
  } & {
114
- photo: z.ZodType<import("buffer").File, z.ZodTypeDef, import("buffer").File>;
114
+ photo: z.ZodAny;
115
115
  }, "strip", z.ZodTypeAny, {
116
116
  observationType: "general" | "disease" | "pest" | "nutrient" | "weed" | "health_check";
117
- photo: import("buffer").File;
118
117
  location?: {
119
118
  lat: number;
120
119
  lng: number;
@@ -124,9 +123,9 @@ export declare const fieldObservationsRouter: {
124
123
  capturedAt?: string | undefined;
125
124
  userNotes?: string | undefined;
126
125
  cropStageAtTime?: "planted" | "flowering" | "mature" | "harvested" | "germination" | "vegetative" | "fruiting" | undefined;
126
+ photo?: any;
127
127
  }, {
128
128
  observationType: "general" | "disease" | "pest" | "nutrient" | "weed" | "health_check";
129
- photo: import("buffer").File;
130
129
  location?: {
131
130
  lat: number;
132
131
  lng: number;
@@ -136,6 +135,7 @@ export declare const fieldObservationsRouter: {
136
135
  capturedAt?: string | undefined;
137
136
  userNotes?: string | undefined;
138
137
  cropStageAtTime?: "planted" | "flowering" | "mature" | "harvested" | "germination" | "vegetative" | "fruiting" | undefined;
138
+ photo?: any;
139
139
  }>;
140
140
  path: "/fields/:fieldId/observations";
141
141
  responses: {
@@ -3904,15 +3904,21 @@ export declare const tasksRouter: {
3904
3904
  body: z.ZodObject<{
3905
3905
  data: z.ZodObject<{
3906
3906
  type: z.ZodLiteral<"task-notes">;
3907
- attributes: z.ZodObject<{
3908
- text: z.ZodString;
3907
+ attributes: z.ZodEffects<z.ZodObject<{
3908
+ text: z.ZodDefault<z.ZodString>;
3909
3909
  photos: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3910
3910
  }, "strip", z.ZodTypeAny, {
3911
3911
  text: string;
3912
3912
  photos?: string[] | undefined;
3913
3913
  }, {
3914
+ text?: string | undefined;
3915
+ photos?: string[] | undefined;
3916
+ }>, {
3914
3917
  text: string;
3915
3918
  photos?: string[] | undefined;
3919
+ }, {
3920
+ text?: string | undefined;
3921
+ photos?: string[] | undefined;
3916
3922
  }>;
3917
3923
  }, "strip", z.ZodTypeAny, {
3918
3924
  type: "task-notes";
@@ -3923,7 +3929,7 @@ export declare const tasksRouter: {
3923
3929
  }, {
3924
3930
  type: "task-notes";
3925
3931
  attributes: {
3926
- text: string;
3932
+ text?: string | undefined;
3927
3933
  photos?: string[] | undefined;
3928
3934
  };
3929
3935
  }>;
@@ -3939,7 +3945,7 @@ export declare const tasksRouter: {
3939
3945
  data: {
3940
3946
  type: "task-notes";
3941
3947
  attributes: {
3942
- text: string;
3948
+ text?: string | undefined;
3943
3949
  photos?: string[] | undefined;
3944
3950
  };
3945
3951
  };
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuItB,CAAC"}
@@ -20,6 +20,8 @@ export declare const documentAttributesSchema: z.ZodObject<{
20
20
  type: z.ZodEnum<["receipt", "certificate", "land-document", "insurance", "contract", "invoice", "other"]>;
21
21
  category: z.ZodNullable<z.ZodString>;
22
22
  fileUrl: z.ZodString;
23
+ viewUrl: z.ZodOptional<z.ZodString>;
24
+ fileExtension: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
25
  fileSize: z.ZodNullable<z.ZodNumber>;
24
26
  uploadedDate: z.ZodString;
25
27
  uploadedBy: z.ZodNullable<z.ZodString>;
@@ -54,6 +56,8 @@ export declare const documentAttributesSchema: z.ZodObject<{
54
56
  type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
55
57
  id: string;
56
58
  } | null;
59
+ viewUrl?: string | undefined;
60
+ fileExtension?: string | null | undefined;
57
61
  tags?: string[] | undefined;
58
62
  }, {
59
63
  type: "other" | "receipt" | "certificate" | "land-document" | "insurance" | "contract" | "invoice";
@@ -71,6 +75,8 @@ export declare const documentAttributesSchema: z.ZodObject<{
71
75
  type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
72
76
  id: string;
73
77
  } | null;
78
+ viewUrl?: string | undefined;
79
+ fileExtension?: string | null | undefined;
74
80
  tags?: string[] | undefined;
75
81
  }>;
76
82
  export declare const createDocumentAttributesSchema: z.ZodObject<{
@@ -323,6 +329,8 @@ export declare const documentResourceSchema: z.ZodObject<{
323
329
  type: z.ZodEnum<["receipt", "certificate", "land-document", "insurance", "contract", "invoice", "other"]>;
324
330
  category: z.ZodNullable<z.ZodString>;
325
331
  fileUrl: z.ZodString;
332
+ viewUrl: z.ZodOptional<z.ZodString>;
333
+ fileExtension: z.ZodOptional<z.ZodNullable<z.ZodString>>;
326
334
  fileSize: z.ZodNullable<z.ZodNumber>;
327
335
  uploadedDate: z.ZodString;
328
336
  uploadedBy: z.ZodNullable<z.ZodString>;
@@ -357,6 +365,8 @@ export declare const documentResourceSchema: z.ZodObject<{
357
365
  type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
358
366
  id: string;
359
367
  } | null;
368
+ viewUrl?: string | undefined;
369
+ fileExtension?: string | null | undefined;
360
370
  tags?: string[] | undefined;
361
371
  }, {
362
372
  type: "other" | "receipt" | "certificate" | "land-document" | "insurance" | "contract" | "invoice";
@@ -374,6 +384,8 @@ export declare const documentResourceSchema: z.ZodObject<{
374
384
  type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
375
385
  id: string;
376
386
  } | null;
387
+ viewUrl?: string | undefined;
388
+ fileExtension?: string | null | undefined;
377
389
  tags?: string[] | undefined;
378
390
  }>;
379
391
  relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -398,6 +410,8 @@ export declare const documentResourceSchema: z.ZodObject<{
398
410
  type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
399
411
  id: string;
400
412
  } | null;
413
+ viewUrl?: string | undefined;
414
+ fileExtension?: string | null | undefined;
401
415
  tags?: string[] | undefined;
402
416
  };
403
417
  relationships?: Record<string, unknown> | undefined;
@@ -422,6 +436,8 @@ export declare const documentResourceSchema: z.ZodObject<{
422
436
  type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
423
437
  id: string;
424
438
  } | null;
439
+ viewUrl?: string | undefined;
440
+ fileExtension?: string | null | undefined;
425
441
  tags?: string[] | undefined;
426
442
  };
427
443
  relationships?: Record<string, unknown> | undefined;
@@ -438,6 +454,8 @@ export declare const documentResponseSchema: z.ZodObject<{
438
454
  type: z.ZodEnum<["receipt", "certificate", "land-document", "insurance", "contract", "invoice", "other"]>;
439
455
  category: z.ZodNullable<z.ZodString>;
440
456
  fileUrl: z.ZodString;
457
+ viewUrl: z.ZodOptional<z.ZodString>;
458
+ fileExtension: z.ZodOptional<z.ZodNullable<z.ZodString>>;
441
459
  fileSize: z.ZodNullable<z.ZodNumber>;
442
460
  uploadedDate: z.ZodString;
443
461
  uploadedBy: z.ZodNullable<z.ZodString>;
@@ -472,6 +490,8 @@ export declare const documentResponseSchema: z.ZodObject<{
472
490
  type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
473
491
  id: string;
474
492
  } | null;
493
+ viewUrl?: string | undefined;
494
+ fileExtension?: string | null | undefined;
475
495
  tags?: string[] | undefined;
476
496
  }, {
477
497
  type: "other" | "receipt" | "certificate" | "land-document" | "insurance" | "contract" | "invoice";
@@ -489,6 +509,8 @@ export declare const documentResponseSchema: z.ZodObject<{
489
509
  type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
490
510
  id: string;
491
511
  } | null;
512
+ viewUrl?: string | undefined;
513
+ fileExtension?: string | null | undefined;
492
514
  tags?: string[] | undefined;
493
515
  }>;
494
516
  relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -513,6 +535,8 @@ export declare const documentResponseSchema: z.ZodObject<{
513
535
  type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
514
536
  id: string;
515
537
  } | null;
538
+ viewUrl?: string | undefined;
539
+ fileExtension?: string | null | undefined;
516
540
  tags?: string[] | undefined;
517
541
  };
518
542
  relationships?: Record<string, unknown> | undefined;
@@ -537,6 +561,8 @@ export declare const documentResponseSchema: z.ZodObject<{
537
561
  type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
538
562
  id: string;
539
563
  } | null;
564
+ viewUrl?: string | undefined;
565
+ fileExtension?: string | null | undefined;
540
566
  tags?: string[] | undefined;
541
567
  };
542
568
  relationships?: Record<string, unknown> | undefined;
@@ -587,6 +613,8 @@ export declare const documentResponseSchema: z.ZodObject<{
587
613
  type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
588
614
  id: string;
589
615
  } | null;
616
+ viewUrl?: string | undefined;
617
+ fileExtension?: string | null | undefined;
590
618
  tags?: string[] | undefined;
591
619
  };
592
620
  relationships?: Record<string, unknown> | undefined;
@@ -623,6 +651,8 @@ export declare const documentResponseSchema: z.ZodObject<{
623
651
  type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
624
652
  id: string;
625
653
  } | null;
654
+ viewUrl?: string | undefined;
655
+ fileExtension?: string | null | undefined;
626
656
  tags?: string[] | undefined;
627
657
  };
628
658
  relationships?: Record<string, unknown> | undefined;
@@ -650,6 +680,8 @@ export declare const documentListResponseSchema: z.ZodObject<{
650
680
  type: z.ZodEnum<["receipt", "certificate", "land-document", "insurance", "contract", "invoice", "other"]>;
651
681
  category: z.ZodNullable<z.ZodString>;
652
682
  fileUrl: z.ZodString;
683
+ viewUrl: z.ZodOptional<z.ZodString>;
684
+ fileExtension: z.ZodOptional<z.ZodNullable<z.ZodString>>;
653
685
  fileSize: z.ZodNullable<z.ZodNumber>;
654
686
  uploadedDate: z.ZodString;
655
687
  uploadedBy: z.ZodNullable<z.ZodString>;
@@ -684,6 +716,8 @@ export declare const documentListResponseSchema: z.ZodObject<{
684
716
  type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
685
717
  id: string;
686
718
  } | null;
719
+ viewUrl?: string | undefined;
720
+ fileExtension?: string | null | undefined;
687
721
  tags?: string[] | undefined;
688
722
  }, {
689
723
  type: "other" | "receipt" | "certificate" | "land-document" | "insurance" | "contract" | "invoice";
@@ -701,6 +735,8 @@ export declare const documentListResponseSchema: z.ZodObject<{
701
735
  type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
702
736
  id: string;
703
737
  } | null;
738
+ viewUrl?: string | undefined;
739
+ fileExtension?: string | null | undefined;
704
740
  tags?: string[] | undefined;
705
741
  }>;
706
742
  relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -725,6 +761,8 @@ export declare const documentListResponseSchema: z.ZodObject<{
725
761
  type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
726
762
  id: string;
727
763
  } | null;
764
+ viewUrl?: string | undefined;
765
+ fileExtension?: string | null | undefined;
728
766
  tags?: string[] | undefined;
729
767
  };
730
768
  relationships?: Record<string, unknown> | undefined;
@@ -749,6 +787,8 @@ export declare const documentListResponseSchema: z.ZodObject<{
749
787
  type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
750
788
  id: string;
751
789
  } | null;
790
+ viewUrl?: string | undefined;
791
+ fileExtension?: string | null | undefined;
752
792
  tags?: string[] | undefined;
753
793
  };
754
794
  relationships?: Record<string, unknown> | undefined;
@@ -799,6 +839,8 @@ export declare const documentListResponseSchema: z.ZodObject<{
799
839
  type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
800
840
  id: string;
801
841
  } | null;
842
+ viewUrl?: string | undefined;
843
+ fileExtension?: string | null | undefined;
802
844
  tags?: string[] | undefined;
803
845
  };
804
846
  relationships?: Record<string, unknown> | undefined;
@@ -835,6 +877,8 @@ export declare const documentListResponseSchema: z.ZodObject<{
835
877
  type: "farm" | "field" | "other" | "equipment" | "purchase" | "expense";
836
878
  id: string;
837
879
  } | null;
880
+ viewUrl?: string | undefined;
881
+ fileExtension?: string | null | undefined;
838
882
  tags?: string[] | undefined;
839
883
  };
840
884
  relationships?: Record<string, unknown> | undefined;
@@ -853,45 +897,51 @@ export declare const documentListResponseSchema: z.ZodObject<{
853
897
  }[] | undefined;
854
898
  }>;
855
899
  export declare const uploadedFileAttributesSchema: z.ZodObject<{
856
- fileUrl: z.ZodString;
900
+ fileUrl: z.ZodOptional<z.ZodString>;
901
+ viewUrl: z.ZodString;
857
902
  fileSize: z.ZodNumber;
858
903
  fileName: z.ZodString;
859
904
  contentType: z.ZodOptional<z.ZodString>;
860
905
  uploadedAt: z.ZodString;
861
906
  }, "strip", z.ZodTypeAny, {
862
- fileUrl: string;
907
+ viewUrl: string;
863
908
  fileSize: number;
864
909
  fileName: string;
865
910
  uploadedAt: string;
866
911
  contentType?: string | undefined;
912
+ fileUrl?: string | undefined;
867
913
  }, {
868
- fileUrl: string;
914
+ viewUrl: string;
869
915
  fileSize: number;
870
916
  fileName: string;
871
917
  uploadedAt: string;
872
918
  contentType?: string | undefined;
919
+ fileUrl?: string | undefined;
873
920
  }>;
874
921
  export declare const uploadedFileResourceSchema: z.ZodObject<{
875
922
  type: z.ZodLiteral<string>;
876
923
  id: z.ZodString;
877
924
  attributes: z.ZodObject<{
878
- fileUrl: z.ZodString;
925
+ fileUrl: z.ZodOptional<z.ZodString>;
926
+ viewUrl: z.ZodString;
879
927
  fileSize: z.ZodNumber;
880
928
  fileName: z.ZodString;
881
929
  contentType: z.ZodOptional<z.ZodString>;
882
930
  uploadedAt: z.ZodString;
883
931
  }, "strip", z.ZodTypeAny, {
884
- fileUrl: string;
932
+ viewUrl: string;
885
933
  fileSize: number;
886
934
  fileName: string;
887
935
  uploadedAt: string;
888
936
  contentType?: string | undefined;
937
+ fileUrl?: string | undefined;
889
938
  }, {
890
- fileUrl: string;
939
+ viewUrl: string;
891
940
  fileSize: number;
892
941
  fileName: string;
893
942
  uploadedAt: string;
894
943
  contentType?: string | undefined;
944
+ fileUrl?: string | undefined;
895
945
  }>;
896
946
  relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
897
947
  links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -900,11 +950,12 @@ export declare const uploadedFileResourceSchema: z.ZodObject<{
900
950
  type: string;
901
951
  id: string;
902
952
  attributes: {
903
- fileUrl: string;
953
+ viewUrl: string;
904
954
  fileSize: number;
905
955
  fileName: string;
906
956
  uploadedAt: string;
907
957
  contentType?: string | undefined;
958
+ fileUrl?: string | undefined;
908
959
  };
909
960
  relationships?: Record<string, unknown> | undefined;
910
961
  links?: Record<string, string> | undefined;
@@ -913,11 +964,12 @@ export declare const uploadedFileResourceSchema: z.ZodObject<{
913
964
  type: string;
914
965
  id: string;
915
966
  attributes: {
916
- fileUrl: string;
967
+ viewUrl: string;
917
968
  fileSize: number;
918
969
  fileName: string;
919
970
  uploadedAt: string;
920
971
  contentType?: string | undefined;
972
+ fileUrl?: string | undefined;
921
973
  };
922
974
  relationships?: Record<string, unknown> | undefined;
923
975
  links?: Record<string, string> | undefined;
@@ -928,23 +980,26 @@ export declare const uploadedFileResponseSchema: z.ZodObject<{
928
980
  type: z.ZodLiteral<string>;
929
981
  id: z.ZodString;
930
982
  attributes: z.ZodObject<{
931
- fileUrl: z.ZodString;
983
+ fileUrl: z.ZodOptional<z.ZodString>;
984
+ viewUrl: z.ZodString;
932
985
  fileSize: z.ZodNumber;
933
986
  fileName: z.ZodString;
934
987
  contentType: z.ZodOptional<z.ZodString>;
935
988
  uploadedAt: z.ZodString;
936
989
  }, "strip", z.ZodTypeAny, {
937
- fileUrl: string;
990
+ viewUrl: string;
938
991
  fileSize: number;
939
992
  fileName: string;
940
993
  uploadedAt: string;
941
994
  contentType?: string | undefined;
995
+ fileUrl?: string | undefined;
942
996
  }, {
943
- fileUrl: string;
997
+ viewUrl: string;
944
998
  fileSize: number;
945
999
  fileName: string;
946
1000
  uploadedAt: string;
947
1001
  contentType?: string | undefined;
1002
+ fileUrl?: string | undefined;
948
1003
  }>;
949
1004
  relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
950
1005
  links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -953,11 +1008,12 @@ export declare const uploadedFileResponseSchema: z.ZodObject<{
953
1008
  type: string;
954
1009
  id: string;
955
1010
  attributes: {
956
- fileUrl: string;
1011
+ viewUrl: string;
957
1012
  fileSize: number;
958
1013
  fileName: string;
959
1014
  uploadedAt: string;
960
1015
  contentType?: string | undefined;
1016
+ fileUrl?: string | undefined;
961
1017
  };
962
1018
  relationships?: Record<string, unknown> | undefined;
963
1019
  links?: Record<string, string> | undefined;
@@ -966,11 +1022,12 @@ export declare const uploadedFileResponseSchema: z.ZodObject<{
966
1022
  type: string;
967
1023
  id: string;
968
1024
  attributes: {
969
- fileUrl: string;
1025
+ viewUrl: string;
970
1026
  fileSize: number;
971
1027
  fileName: string;
972
1028
  uploadedAt: string;
973
1029
  contentType?: string | undefined;
1030
+ fileUrl?: string | undefined;
974
1031
  };
975
1032
  relationships?: Record<string, unknown> | undefined;
976
1033
  links?: Record<string, string> | undefined;
@@ -1005,11 +1062,12 @@ export declare const uploadedFileResponseSchema: z.ZodObject<{
1005
1062
  type: string;
1006
1063
  id: string;
1007
1064
  attributes: {
1008
- fileUrl: string;
1065
+ viewUrl: string;
1009
1066
  fileSize: number;
1010
1067
  fileName: string;
1011
1068
  uploadedAt: string;
1012
1069
  contentType?: string | undefined;
1070
+ fileUrl?: string | undefined;
1013
1071
  };
1014
1072
  relationships?: Record<string, unknown> | undefined;
1015
1073
  links?: Record<string, string> | undefined;
@@ -1030,11 +1088,12 @@ export declare const uploadedFileResponseSchema: z.ZodObject<{
1030
1088
  type: string;
1031
1089
  id: string;
1032
1090
  attributes: {
1033
- fileUrl: string;
1091
+ viewUrl: string;
1034
1092
  fileSize: number;
1035
1093
  fileName: string;
1036
1094
  uploadedAt: string;
1037
1095
  contentType?: string | undefined;
1096
+ fileUrl?: string | undefined;
1038
1097
  };
1039
1098
  relationships?: Record<string, unknown> | undefined;
1040
1099
  links?: Record<string, string> | undefined;
@@ -1052,11 +1111,11 @@ export declare const uploadedFileResponseSchema: z.ZodObject<{
1052
1111
  }[] | undefined;
1053
1112
  }>;
1054
1113
  export declare const uploadFileBodySchema: z.ZodObject<{
1055
- file: z.ZodType<import("buffer").File, z.ZodTypeDef, import("buffer").File>;
1114
+ file: z.ZodAny;
1056
1115
  }, "strip", z.ZodTypeAny, {
1057
- file: import("buffer").File;
1116
+ file?: any;
1058
1117
  }, {
1059
- file: import("buffer").File;
1118
+ file?: any;
1060
1119
  }>;
1061
1120
  export type DocumentType = z.infer<typeof documentTypeSchema>;
1062
1121
  export type RelatedEntityType = z.infer<typeof relatedEntityTypeSchema>;
@@ -1 +1 @@
1
- {"version":3,"file":"documents.schemas.d.ts","sourceRoot":"","sources":["../../src/schemas/documents.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB;;GAEG;AAGH,eAAO,MAAM,kBAAkB,qGAQ7B,CAAC;AAGH,eAAO,MAAM,uBAAuB,2EAAyE,CAAC;AAG9G,eAAO,MAAM,mBAAmB;;;;;;;;;EAG9B,CAAC;AAGH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAYX,CAAC;AAG3B,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EASzC,CAAC;AAGH,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EASzC,CAAC;AAGH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAG/B,CAAC;AAGH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAI/B,CAAC;AAGH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;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AAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AACvE,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AACtE,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AACtE,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAC9E,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAClF,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAC9E,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC"}
@@ -29,7 +29,9 @@ exports.documentAttributesSchema = zod_1.z.object({
29
29
  name: zod_1.z.string(),
30
30
  type: exports.documentTypeSchema,
31
31
  category: zod_1.z.string().nullable(),
32
- fileUrl: zod_1.z.string().url(), // URL to uploaded file
32
+ fileUrl: zod_1.z.string().url(), // Legacy storage URL (kept for backward compatibility)
33
+ viewUrl: zod_1.z.string().url().optional(), // Internal view URL: {baseUrl}/documents/view/{docId}.{ext}
34
+ fileExtension: zod_1.z.string().nullable().optional(), // File extension (e.g., 'pdf', 'jpg', 'png')
33
35
  fileSize: zod_1.z.number().int().positive().nullable(), // in bytes
34
36
  uploadedDate: zod_1.z.string().datetime(),
35
37
  uploadedBy: zod_1.z.string().uuid().nullable(),
@@ -76,7 +78,8 @@ exports.documentResourceSchema = (0, common_schemas_1.createJsonApiResourceSchem
76
78
  exports.documentResponseSchema = (0, common_schemas_1.jsonApiSingleResponseSchema)(exports.documentResourceSchema);
77
79
  exports.documentListResponseSchema = (0, common_schemas_1.jsonApiCollectionResponseSchema)(exports.documentResourceSchema);
78
80
  exports.uploadedFileAttributesSchema = zod_1.z.object({
79
- fileUrl: zod_1.z.string().url(),
81
+ fileUrl: zod_1.z.string().url().optional(), // Legacy storage URL (kept for backward compatibility)
82
+ viewUrl: zod_1.z.string().url(), // Internal view URL: {baseUrl}/documents/view/{docId}.{ext}
80
83
  fileSize: zod_1.z.number().int().positive(),
81
84
  fileName: zod_1.z.string(),
82
85
  contentType: zod_1.z.string().optional(),
@@ -85,5 +88,5 @@ exports.uploadedFileAttributesSchema = zod_1.z.object({
85
88
  exports.uploadedFileResourceSchema = (0, common_schemas_1.createJsonApiResourceSchema)('uploaded-files', exports.uploadedFileAttributesSchema);
86
89
  exports.uploadedFileResponseSchema = (0, common_schemas_1.jsonApiSingleResponseSchema)(exports.uploadedFileResourceSchema);
87
90
  exports.uploadFileBodySchema = zod_1.z.object({
88
- file: zod_1.z.instanceof(File),
91
+ file: zod_1.z.any(),
89
92
  });
@@ -1131,10 +1131,9 @@ export declare const uploadObservationBodySchema: z.ZodObject<{
1131
1131
  }>>;
1132
1132
  capturedAt: z.ZodOptional<z.ZodString>;
1133
1133
  } & {
1134
- photo: z.ZodType<import("buffer").File, z.ZodTypeDef, import("buffer").File>;
1134
+ photo: z.ZodAny;
1135
1135
  }, "strip", z.ZodTypeAny, {
1136
1136
  observationType: "general" | "disease" | "pest" | "nutrient" | "weed" | "health_check";
1137
- photo: import("buffer").File;
1138
1137
  location?: {
1139
1138
  lat: number;
1140
1139
  lng: number;
@@ -1144,9 +1143,9 @@ export declare const uploadObservationBodySchema: z.ZodObject<{
1144
1143
  capturedAt?: string | undefined;
1145
1144
  userNotes?: string | undefined;
1146
1145
  cropStageAtTime?: "planted" | "flowering" | "mature" | "harvested" | "germination" | "vegetative" | "fruiting" | undefined;
1146
+ photo?: any;
1147
1147
  }, {
1148
1148
  observationType: "general" | "disease" | "pest" | "nutrient" | "weed" | "health_check";
1149
- photo: import("buffer").File;
1150
1149
  location?: {
1151
1150
  lat: number;
1152
1151
  lng: number;
@@ -1156,6 +1155,7 @@ export declare const uploadObservationBodySchema: z.ZodObject<{
1156
1155
  capturedAt?: string | undefined;
1157
1156
  userNotes?: string | undefined;
1158
1157
  cropStageAtTime?: "planted" | "flowering" | "mature" | "harvested" | "germination" | "vegetative" | "fruiting" | undefined;
1158
+ photo?: any;
1159
1159
  }>;
1160
1160
  export declare const updateObservationActionInputSchema: z.ZodObject<{
1161
1161
  type: z.ZodLiteral<string>;
@@ -140,7 +140,7 @@ exports.updateObservationActionAttributesSchema = zod_1.z.object({
140
140
  exports.observationResourceSchema = (0, common_schemas_1.createJsonApiResourceSchema)('observations', exports.observationAttributesSchema);
141
141
  exports.createObservationInputSchema = (0, common_schemas_1.createJsonApiResourceSchema)('observations', exports.createObservationAttributesSchema);
142
142
  exports.uploadObservationBodySchema = exports.createObservationAttributesSchema.merge(zod_1.z.object({
143
- photo: zod_1.z.instanceof(File),
143
+ photo: zod_1.z.any(),
144
144
  }));
145
145
  exports.updateObservationActionInputSchema = (0, common_schemas_1.createJsonApiResourceSchema)('observations', exports.updateObservationActionAttributesSchema);
146
146
  // Response schemas