@deepintel-ltd/farmpro-contracts 1.11.1 → 1.11.3

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,6 +1,7 @@
1
1
  import { z } from 'zod';
2
2
  export declare const commodityDealStatusSchema: z.ZodEnum<["draft", "in_transit", "invoiced", "paid", "cancelled"]>;
3
3
  export declare const dealParticipantShareSchema: z.ZodObject<{
4
+ id: z.ZodOptional<z.ZodString>;
4
5
  userId: z.ZodString;
5
6
  name: z.ZodOptional<z.ZodString>;
6
7
  email: z.ZodOptional<z.ZodString>;
@@ -12,6 +13,7 @@ export declare const dealParticipantShareSchema: z.ZodObject<{
12
13
  capitalContributed: number;
13
14
  ownershipPercent: number;
14
15
  earningsAmount: number | null;
16
+ id?: string | undefined;
15
17
  email?: string | undefined;
16
18
  name?: string | undefined;
17
19
  }, {
@@ -19,6 +21,7 @@ export declare const dealParticipantShareSchema: z.ZodObject<{
19
21
  capitalContributed: number;
20
22
  ownershipPercent: number;
21
23
  earningsAmount: number | null;
24
+ id?: string | undefined;
22
25
  email?: string | undefined;
23
26
  name?: string | undefined;
24
27
  }>;
@@ -81,6 +84,7 @@ export declare const commodityDealAttributesSchema: z.ZodObject<{
81
84
  notes: z.ZodNullable<z.ZodString>;
82
85
  companyCommissionRate: z.ZodNullable<z.ZodNumber>;
83
86
  participants: z.ZodOptional<z.ZodArray<z.ZodObject<{
87
+ id: z.ZodOptional<z.ZodString>;
84
88
  userId: z.ZodString;
85
89
  name: z.ZodOptional<z.ZodString>;
86
90
  email: z.ZodOptional<z.ZodString>;
@@ -92,6 +96,7 @@ export declare const commodityDealAttributesSchema: z.ZodObject<{
92
96
  capitalContributed: number;
93
97
  ownershipPercent: number;
94
98
  earningsAmount: number | null;
99
+ id?: string | undefined;
95
100
  email?: string | undefined;
96
101
  name?: string | undefined;
97
102
  }, {
@@ -99,6 +104,7 @@ export declare const commodityDealAttributesSchema: z.ZodObject<{
99
104
  capitalContributed: number;
100
105
  ownershipPercent: number;
101
106
  earningsAmount: number | null;
107
+ id?: string | undefined;
102
108
  email?: string | undefined;
103
109
  name?: string | undefined;
104
110
  }>, "many">>;
@@ -185,6 +191,7 @@ export declare const commodityDealAttributesSchema: z.ZodObject<{
185
191
  capitalContributed: number;
186
192
  ownershipPercent: number;
187
193
  earningsAmount: number | null;
194
+ id?: string | undefined;
188
195
  email?: string | undefined;
189
196
  name?: string | undefined;
190
197
  }[] | undefined;
@@ -225,6 +232,7 @@ export declare const commodityDealAttributesSchema: z.ZodObject<{
225
232
  capitalContributed: number;
226
233
  ownershipPercent: number;
227
234
  earningsAmount: number | null;
235
+ id?: string | undefined;
228
236
  email?: string | undefined;
229
237
  name?: string | undefined;
230
238
  }[] | undefined;
@@ -498,6 +506,7 @@ export declare const commodityDealResourceSchema: z.ZodObject<{
498
506
  notes: z.ZodNullable<z.ZodString>;
499
507
  companyCommissionRate: z.ZodNullable<z.ZodNumber>;
500
508
  participants: z.ZodOptional<z.ZodArray<z.ZodObject<{
509
+ id: z.ZodOptional<z.ZodString>;
501
510
  userId: z.ZodString;
502
511
  name: z.ZodOptional<z.ZodString>;
503
512
  email: z.ZodOptional<z.ZodString>;
@@ -509,6 +518,7 @@ export declare const commodityDealResourceSchema: z.ZodObject<{
509
518
  capitalContributed: number;
510
519
  ownershipPercent: number;
511
520
  earningsAmount: number | null;
521
+ id?: string | undefined;
512
522
  email?: string | undefined;
513
523
  name?: string | undefined;
514
524
  }, {
@@ -516,6 +526,7 @@ export declare const commodityDealResourceSchema: z.ZodObject<{
516
526
  capitalContributed: number;
517
527
  ownershipPercent: number;
518
528
  earningsAmount: number | null;
529
+ id?: string | undefined;
519
530
  email?: string | undefined;
520
531
  name?: string | undefined;
521
532
  }>, "many">>;
@@ -602,6 +613,7 @@ export declare const commodityDealResourceSchema: z.ZodObject<{
602
613
  capitalContributed: number;
603
614
  ownershipPercent: number;
604
615
  earningsAmount: number | null;
616
+ id?: string | undefined;
605
617
  email?: string | undefined;
606
618
  name?: string | undefined;
607
619
  }[] | undefined;
@@ -642,6 +654,7 @@ export declare const commodityDealResourceSchema: z.ZodObject<{
642
654
  capitalContributed: number;
643
655
  ownershipPercent: number;
644
656
  earningsAmount: number | null;
657
+ id?: string | undefined;
645
658
  email?: string | undefined;
646
659
  name?: string | undefined;
647
660
  }[] | undefined;
@@ -689,6 +702,7 @@ export declare const commodityDealResourceSchema: z.ZodObject<{
689
702
  capitalContributed: number;
690
703
  ownershipPercent: number;
691
704
  earningsAmount: number | null;
705
+ id?: string | undefined;
692
706
  email?: string | undefined;
693
707
  name?: string | undefined;
694
708
  }[] | undefined;
@@ -736,6 +750,7 @@ export declare const commodityDealResourceSchema: z.ZodObject<{
736
750
  capitalContributed: number;
737
751
  ownershipPercent: number;
738
752
  earningsAmount: number | null;
753
+ id?: string | undefined;
739
754
  email?: string | undefined;
740
755
  name?: string | undefined;
741
756
  }[] | undefined;
@@ -764,6 +779,7 @@ export declare const commodityDealResponseSchema: z.ZodObject<{
764
779
  notes: z.ZodNullable<z.ZodString>;
765
780
  companyCommissionRate: z.ZodNullable<z.ZodNumber>;
766
781
  participants: z.ZodOptional<z.ZodArray<z.ZodObject<{
782
+ id: z.ZodOptional<z.ZodString>;
767
783
  userId: z.ZodString;
768
784
  name: z.ZodOptional<z.ZodString>;
769
785
  email: z.ZodOptional<z.ZodString>;
@@ -775,6 +791,7 @@ export declare const commodityDealResponseSchema: z.ZodObject<{
775
791
  capitalContributed: number;
776
792
  ownershipPercent: number;
777
793
  earningsAmount: number | null;
794
+ id?: string | undefined;
778
795
  email?: string | undefined;
779
796
  name?: string | undefined;
780
797
  }, {
@@ -782,6 +799,7 @@ export declare const commodityDealResponseSchema: z.ZodObject<{
782
799
  capitalContributed: number;
783
800
  ownershipPercent: number;
784
801
  earningsAmount: number | null;
802
+ id?: string | undefined;
785
803
  email?: string | undefined;
786
804
  name?: string | undefined;
787
805
  }>, "many">>;
@@ -868,6 +886,7 @@ export declare const commodityDealResponseSchema: z.ZodObject<{
868
886
  capitalContributed: number;
869
887
  ownershipPercent: number;
870
888
  earningsAmount: number | null;
889
+ id?: string | undefined;
871
890
  email?: string | undefined;
872
891
  name?: string | undefined;
873
892
  }[] | undefined;
@@ -908,6 +927,7 @@ export declare const commodityDealResponseSchema: z.ZodObject<{
908
927
  capitalContributed: number;
909
928
  ownershipPercent: number;
910
929
  earningsAmount: number | null;
930
+ id?: string | undefined;
911
931
  email?: string | undefined;
912
932
  name?: string | undefined;
913
933
  }[] | undefined;
@@ -955,6 +975,7 @@ export declare const commodityDealResponseSchema: z.ZodObject<{
955
975
  capitalContributed: number;
956
976
  ownershipPercent: number;
957
977
  earningsAmount: number | null;
978
+ id?: string | undefined;
958
979
  email?: string | undefined;
959
980
  name?: string | undefined;
960
981
  }[] | undefined;
@@ -1002,6 +1023,7 @@ export declare const commodityDealResponseSchema: z.ZodObject<{
1002
1023
  capitalContributed: number;
1003
1024
  ownershipPercent: number;
1004
1025
  earningsAmount: number | null;
1026
+ id?: string | undefined;
1005
1027
  email?: string | undefined;
1006
1028
  name?: string | undefined;
1007
1029
  }[] | undefined;
@@ -1075,6 +1097,7 @@ export declare const commodityDealResponseSchema: z.ZodObject<{
1075
1097
  capitalContributed: number;
1076
1098
  ownershipPercent: number;
1077
1099
  earningsAmount: number | null;
1100
+ id?: string | undefined;
1078
1101
  email?: string | undefined;
1079
1102
  name?: string | undefined;
1080
1103
  }[] | undefined;
@@ -1134,6 +1157,7 @@ export declare const commodityDealResponseSchema: z.ZodObject<{
1134
1157
  capitalContributed: number;
1135
1158
  ownershipPercent: number;
1136
1159
  earningsAmount: number | null;
1160
+ id?: string | undefined;
1137
1161
  email?: string | undefined;
1138
1162
  name?: string | undefined;
1139
1163
  }[] | undefined;
@@ -1173,6 +1197,7 @@ export declare const commodityDealListResponseSchema: z.ZodObject<{
1173
1197
  notes: z.ZodNullable<z.ZodString>;
1174
1198
  companyCommissionRate: z.ZodNullable<z.ZodNumber>;
1175
1199
  participants: z.ZodOptional<z.ZodArray<z.ZodObject<{
1200
+ id: z.ZodOptional<z.ZodString>;
1176
1201
  userId: z.ZodString;
1177
1202
  name: z.ZodOptional<z.ZodString>;
1178
1203
  email: z.ZodOptional<z.ZodString>;
@@ -1184,6 +1209,7 @@ export declare const commodityDealListResponseSchema: z.ZodObject<{
1184
1209
  capitalContributed: number;
1185
1210
  ownershipPercent: number;
1186
1211
  earningsAmount: number | null;
1212
+ id?: string | undefined;
1187
1213
  email?: string | undefined;
1188
1214
  name?: string | undefined;
1189
1215
  }, {
@@ -1191,6 +1217,7 @@ export declare const commodityDealListResponseSchema: z.ZodObject<{
1191
1217
  capitalContributed: number;
1192
1218
  ownershipPercent: number;
1193
1219
  earningsAmount: number | null;
1220
+ id?: string | undefined;
1194
1221
  email?: string | undefined;
1195
1222
  name?: string | undefined;
1196
1223
  }>, "many">>;
@@ -1277,6 +1304,7 @@ export declare const commodityDealListResponseSchema: z.ZodObject<{
1277
1304
  capitalContributed: number;
1278
1305
  ownershipPercent: number;
1279
1306
  earningsAmount: number | null;
1307
+ id?: string | undefined;
1280
1308
  email?: string | undefined;
1281
1309
  name?: string | undefined;
1282
1310
  }[] | undefined;
@@ -1317,6 +1345,7 @@ export declare const commodityDealListResponseSchema: z.ZodObject<{
1317
1345
  capitalContributed: number;
1318
1346
  ownershipPercent: number;
1319
1347
  earningsAmount: number | null;
1348
+ id?: string | undefined;
1320
1349
  email?: string | undefined;
1321
1350
  name?: string | undefined;
1322
1351
  }[] | undefined;
@@ -1364,6 +1393,7 @@ export declare const commodityDealListResponseSchema: z.ZodObject<{
1364
1393
  capitalContributed: number;
1365
1394
  ownershipPercent: number;
1366
1395
  earningsAmount: number | null;
1396
+ id?: string | undefined;
1367
1397
  email?: string | undefined;
1368
1398
  name?: string | undefined;
1369
1399
  }[] | undefined;
@@ -1411,6 +1441,7 @@ export declare const commodityDealListResponseSchema: z.ZodObject<{
1411
1441
  capitalContributed: number;
1412
1442
  ownershipPercent: number;
1413
1443
  earningsAmount: number | null;
1444
+ id?: string | undefined;
1414
1445
  email?: string | undefined;
1415
1446
  name?: string | undefined;
1416
1447
  }[] | undefined;
@@ -1484,6 +1515,7 @@ export declare const commodityDealListResponseSchema: z.ZodObject<{
1484
1515
  capitalContributed: number;
1485
1516
  ownershipPercent: number;
1486
1517
  earningsAmount: number | null;
1518
+ id?: string | undefined;
1487
1519
  email?: string | undefined;
1488
1520
  name?: string | undefined;
1489
1521
  }[] | undefined;
@@ -1543,6 +1575,7 @@ export declare const commodityDealListResponseSchema: z.ZodObject<{
1543
1575
  capitalContributed: number;
1544
1576
  ownershipPercent: number;
1545
1577
  earningsAmount: number | null;
1578
+ id?: string | undefined;
1546
1579
  email?: string | undefined;
1547
1580
  name?: string | undefined;
1548
1581
  }[] | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"commodity-deals.schemas.d.ts","sourceRoot":"","sources":["../../src/schemas/commodity-deals.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,eAAO,MAAM,yBAAyB,qEAMpC,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;EAOrC,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EActC,CAAC;AAEH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmBhB,CAAC;AAE3B,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAU9C,CAAC;AAEH,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAU9C,CAAC;AAEH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AA2B,CAAC,CAAC;AACrF,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AACrF,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
@@ -8,6 +8,7 @@ export const commodityDealStatusSchema = z.enum([
8
8
  'cancelled',
9
9
  ]);
10
10
  export const dealParticipantShareSchema = z.object({
11
+ id: z.string().uuid().optional(),
11
12
  userId: z.string().uuid(),
12
13
  name: z.string().optional(),
13
14
  email: z.string().email().optional(),
@@ -538,14 +538,14 @@ export declare const cameraStreamTokenResponseSchema: z.ZodObject<{
538
538
  token: string;
539
539
  farmId: string;
540
540
  quality: "low" | "medium" | "high";
541
- streamUrl: string | null;
542
541
  expiresAt: string;
542
+ streamUrl: string | null;
543
543
  cameraId: string;
544
544
  }, {
545
545
  token: string;
546
546
  farmId: string;
547
- streamUrl: string | null;
548
547
  expiresAt: string;
548
+ streamUrl: string | null;
549
549
  cameraId: string;
550
550
  quality?: "low" | "medium" | "high" | undefined;
551
551
  }>;
@@ -671,14 +671,25 @@ export declare const organizationContactAttributesSchema: z.ZodObject<{
671
671
  email?: string | null | undefined;
672
672
  name?: string | null | undefined;
673
673
  }>;
674
- export declare const createOrganizationContactAttributesSchema: z.ZodObject<{
675
- userId: z.ZodString;
674
+ export declare const createOrganizationContactAttributesSchema: z.ZodEffects<z.ZodObject<{
675
+ userId: z.ZodOptional<z.ZodString>;
676
+ email: z.ZodOptional<z.ZodString>;
676
677
  role: z.ZodDefault<z.ZodOptional<z.ZodEnum<["admin", "investor"]>>>;
677
678
  }, "strip", z.ZodTypeAny, {
678
- userId: string;
679
679
  role: "admin" | "investor";
680
+ email?: string | undefined;
681
+ userId?: string | undefined;
680
682
  }, {
681
- userId: string;
683
+ email?: string | undefined;
684
+ userId?: string | undefined;
685
+ role?: "admin" | "investor" | undefined;
686
+ }>, {
687
+ role: "admin" | "investor";
688
+ email?: string | undefined;
689
+ userId?: string | undefined;
690
+ }, {
691
+ email?: string | undefined;
692
+ userId?: string | undefined;
682
693
  role?: "admin" | "investor" | undefined;
683
694
  }>;
684
695
  export declare const updateOrganizationContactAttributesSchema: z.ZodObject<{
@@ -690,26 +701,39 @@ export declare const updateOrganizationContactAttributesSchema: z.ZodObject<{
690
701
  }>;
691
702
  export declare const createOrganizationContactSchema: z.ZodObject<{
692
703
  type: z.ZodLiteral<"organization-contacts">;
693
- attributes: z.ZodObject<{
694
- userId: z.ZodString;
704
+ attributes: z.ZodEffects<z.ZodObject<{
705
+ userId: z.ZodOptional<z.ZodString>;
706
+ email: z.ZodOptional<z.ZodString>;
695
707
  role: z.ZodDefault<z.ZodOptional<z.ZodEnum<["admin", "investor"]>>>;
696
708
  }, "strip", z.ZodTypeAny, {
697
- userId: string;
698
709
  role: "admin" | "investor";
710
+ email?: string | undefined;
711
+ userId?: string | undefined;
699
712
  }, {
700
- userId: string;
713
+ email?: string | undefined;
714
+ userId?: string | undefined;
715
+ role?: "admin" | "investor" | undefined;
716
+ }>, {
717
+ role: "admin" | "investor";
718
+ email?: string | undefined;
719
+ userId?: string | undefined;
720
+ }, {
721
+ email?: string | undefined;
722
+ userId?: string | undefined;
701
723
  role?: "admin" | "investor" | undefined;
702
724
  }>;
703
725
  }, "strip", z.ZodTypeAny, {
704
726
  type: "organization-contacts";
705
727
  attributes: {
706
- userId: string;
707
728
  role: "admin" | "investor";
729
+ email?: string | undefined;
730
+ userId?: string | undefined;
708
731
  };
709
732
  }, {
710
733
  type: "organization-contacts";
711
734
  attributes: {
712
- userId: string;
735
+ email?: string | undefined;
736
+ userId?: string | undefined;
713
737
  role?: "admin" | "investor" | undefined;
714
738
  };
715
739
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"organizations.schemas.d.ts","sourceRoot":"","sources":["../../src/schemas/organizations.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB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;AAC5E,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC"}
@@ -70,9 +70,15 @@ export const organizationContactAttributesSchema = z
70
70
  email: z.string().email().nullable().optional(),
71
71
  })
72
72
  .merge(timestampsSchema);
73
- export const createOrganizationContactAttributesSchema = z.object({
74
- userId: z.string().uuid(),
73
+ export const createOrganizationContactAttributesSchema = z
74
+ .object({
75
+ userId: z.string().uuid().optional(),
76
+ email: z.string().email().optional(),
75
77
  role: organizationContactRoleSchema.optional().default('admin'),
78
+ })
79
+ .refine((data) => Boolean(data.userId || data.email), {
80
+ message: 'Either userId or email is required',
81
+ path: ['userId'],
76
82
  });
77
83
  export const updateOrganizationContactAttributesSchema = z.object({
78
84
  role: organizationContactRoleSchema,
@@ -943,17 +943,17 @@ export declare const exportResponseSchema: z.ZodObject<{
943
943
  }, "strip", z.ZodTypeAny, {
944
944
  fileName: string;
945
945
  fileSize: number | null;
946
+ expiresAt: string;
946
947
  format: string;
947
948
  exportId: string;
948
949
  downloadUrl: string;
949
- expiresAt: string;
950
950
  }, {
951
951
  fileName: string;
952
952
  fileSize: number | null;
953
+ expiresAt: string;
953
954
  format: string;
954
955
  exportId: string;
955
956
  downloadUrl: string;
956
- expiresAt: string;
957
957
  }>;
958
958
  /** List exports response */
959
959
  export declare const exportListResponseSchema: z.ZodArray<z.ZodObject<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deepintel-ltd/farmpro-contracts",
3
- "version": "1.11.1",
3
+ "version": "1.11.3",
4
4
  "description": "Type-safe API contracts for FarmPro API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",