@deepintel-ltd/farmpro-contracts 1.7.19 → 1.7.21

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.
Files changed (84) hide show
  1. package/dist/index.d.ts +18 -1
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +17 -0
  4. package/dist/routes/agents.routes.d.ts +6 -6
  5. package/dist/routes/commodity-deals.routes.d.ts +2702 -0
  6. package/dist/routes/commodity-deals.routes.d.ts.map +1 -0
  7. package/dist/routes/commodity-deals.routes.js +83 -0
  8. package/dist/routes/cooperative.routes.d.ts +1327 -0
  9. package/dist/routes/cooperative.routes.d.ts.map +1 -0
  10. package/dist/routes/cooperative.routes.js +47 -0
  11. package/dist/routes/extension.routes.d.ts +2431 -0
  12. package/dist/routes/extension.routes.d.ts.map +1 -0
  13. package/dist/routes/extension.routes.js +75 -0
  14. package/dist/routes/farms.routes.d.ts +775 -0
  15. package/dist/routes/farms.routes.d.ts.map +1 -1
  16. package/dist/routes/farms.routes.js +15 -1
  17. package/dist/routes/field-monitoring.routes.d.ts +505 -0
  18. package/dist/routes/field-monitoring.routes.d.ts.map +1 -1
  19. package/dist/routes/field-monitoring.routes.js +23 -1
  20. package/dist/routes/fields.routes.d.ts +156 -155
  21. package/dist/routes/fields.routes.d.ts.map +1 -1
  22. package/dist/routes/index.d.ts +18 -0
  23. package/dist/routes/index.d.ts.map +1 -1
  24. package/dist/routes/index.js +12 -0
  25. package/dist/routes/invoices.routes.d.ts +49 -0
  26. package/dist/routes/invoices.routes.d.ts.map +1 -1
  27. package/dist/routes/live-monitor.routes.d.ts +513 -0
  28. package/dist/routes/live-monitor.routes.d.ts.map +1 -0
  29. package/dist/routes/live-monitor.routes.js +81 -0
  30. package/dist/routes/livestock-map.routes.d.ts +4 -4
  31. package/dist/routes/monitoring-visualization.routes.d.ts +4 -4
  32. package/dist/routes/notifications.routes.d.ts +1350 -0
  33. package/dist/routes/notifications.routes.d.ts.map +1 -0
  34. package/dist/routes/notifications.routes.js +66 -0
  35. package/dist/routes/organizations.routes.d.ts +49 -0
  36. package/dist/routes/organizations.routes.d.ts.map +1 -1
  37. package/dist/routes/team-payments.routes.d.ts +9571 -0
  38. package/dist/routes/team-payments.routes.d.ts.map +1 -0
  39. package/dist/routes/team-payments.routes.js +262 -0
  40. package/dist/routes/waybills.routes.d.ts +42 -0
  41. package/dist/routes/waybills.routes.d.ts.map +1 -1
  42. package/dist/schemas/agents.schemas.d.ts +1 -0
  43. package/dist/schemas/agents.schemas.d.ts.map +1 -1
  44. package/dist/schemas/commodity-deals.schemas.d.ts +1109 -0
  45. package/dist/schemas/commodity-deals.schemas.d.ts.map +1 -0
  46. package/dist/schemas/commodity-deals.schemas.js +82 -0
  47. package/dist/schemas/cooperative.schemas.d.ts +560 -0
  48. package/dist/schemas/cooperative.schemas.d.ts.map +1 -0
  49. package/dist/schemas/cooperative.schemas.js +71 -0
  50. package/dist/schemas/extension.schemas.d.ts +1204 -0
  51. package/dist/schemas/extension.schemas.d.ts.map +1 -0
  52. package/dist/schemas/extension.schemas.js +68 -0
  53. package/dist/schemas/farms.schemas.d.ts +591 -0
  54. package/dist/schemas/farms.schemas.d.ts.map +1 -1
  55. package/dist/schemas/farms.schemas.js +44 -0
  56. package/dist/schemas/field-monitoring.schemas.d.ts +276 -0
  57. package/dist/schemas/field-monitoring.schemas.d.ts.map +1 -1
  58. package/dist/schemas/field-monitoring.schemas.js +9 -0
  59. package/dist/schemas/field-observations.schemas.d.ts +1 -0
  60. package/dist/schemas/field-observations.schemas.d.ts.map +1 -1
  61. package/dist/schemas/fields.schemas.d.ts +188 -186
  62. package/dist/schemas/fields.schemas.d.ts.map +1 -1
  63. package/dist/schemas/fields.schemas.js +10 -2
  64. package/dist/schemas/invoices.schemas.d.ts +38 -0
  65. package/dist/schemas/invoices.schemas.d.ts.map +1 -1
  66. package/dist/schemas/invoices.schemas.js +2 -0
  67. package/dist/schemas/live-monitor.schemas.d.ts +596 -0
  68. package/dist/schemas/live-monitor.schemas.d.ts.map +1 -0
  69. package/dist/schemas/live-monitor.schemas.js +107 -0
  70. package/dist/schemas/livestock-map.schemas.d.ts +10 -10
  71. package/dist/schemas/monitoring-visualization.schemas.d.ts +4 -4
  72. package/dist/schemas/notifications.schemas.d.ts +464 -0
  73. package/dist/schemas/notifications.schemas.d.ts.map +1 -0
  74. package/dist/schemas/notifications.schemas.js +40 -0
  75. package/dist/schemas/organizations.schemas.d.ts +38 -0
  76. package/dist/schemas/organizations.schemas.d.ts.map +1 -1
  77. package/dist/schemas/organizations.schemas.js +2 -0
  78. package/dist/schemas/team-payments.schemas.d.ts +2604 -0
  79. package/dist/schemas/team-payments.schemas.d.ts.map +1 -0
  80. package/dist/schemas/team-payments.schemas.js +151 -0
  81. package/dist/schemas/waybills.schemas.d.ts +48 -0
  82. package/dist/schemas/waybills.schemas.d.ts.map +1 -1
  83. package/dist/schemas/waybills.schemas.js +3 -0
  84. package/package.json +1 -1
@@ -8,6 +8,7 @@ export declare const organizationAttributesSchema: z.ZodObject<{
8
8
  phone: z.ZodNullable<z.ZodString>;
9
9
  address: z.ZodNullable<z.ZodString>;
10
10
  logo: z.ZodNullable<z.ZodString>;
11
+ commodityCommissionRate: z.ZodNullable<z.ZodNumber>;
11
12
  } & {
12
13
  createdAt: z.ZodString;
13
14
  updatedAt: z.ZodString;
@@ -19,6 +20,7 @@ export declare const organizationAttributesSchema: z.ZodObject<{
19
20
  phone: string | null;
20
21
  address: string | null;
21
22
  logo: string | null;
23
+ commodityCommissionRate: number | null;
22
24
  }, {
23
25
  email: string | null;
24
26
  createdAt: string;
@@ -27,6 +29,7 @@ export declare const organizationAttributesSchema: z.ZodObject<{
27
29
  phone: string | null;
28
30
  address: string | null;
29
31
  logo: string | null;
32
+ commodityCommissionRate: number | null;
30
33
  }>;
31
34
  export declare const createOrganizationAttributesSchema: z.ZodObject<{
32
35
  name: z.ZodString;
@@ -34,18 +37,21 @@ export declare const createOrganizationAttributesSchema: z.ZodObject<{
34
37
  phone: z.ZodOptional<z.ZodString>;
35
38
  address: z.ZodOptional<z.ZodString>;
36
39
  logo: z.ZodOptional<z.ZodString>;
40
+ commodityCommissionRate: z.ZodOptional<z.ZodNumber>;
37
41
  }, "strip", z.ZodTypeAny, {
38
42
  name: string;
39
43
  email?: string | undefined;
40
44
  phone?: string | undefined;
41
45
  address?: string | undefined;
42
46
  logo?: string | undefined;
47
+ commodityCommissionRate?: number | undefined;
43
48
  }, {
44
49
  name: string;
45
50
  email?: string | undefined;
46
51
  phone?: string | undefined;
47
52
  address?: string | undefined;
48
53
  logo?: string | undefined;
54
+ commodityCommissionRate?: number | undefined;
49
55
  }>;
50
56
  export declare const updateOrganizationAttributesSchema: z.ZodObject<{
51
57
  name: z.ZodOptional<z.ZodString>;
@@ -53,18 +59,21 @@ export declare const updateOrganizationAttributesSchema: z.ZodObject<{
53
59
  phone: z.ZodOptional<z.ZodOptional<z.ZodString>>;
54
60
  address: z.ZodOptional<z.ZodOptional<z.ZodString>>;
55
61
  logo: z.ZodOptional<z.ZodOptional<z.ZodString>>;
62
+ commodityCommissionRate: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
56
63
  }, "strip", z.ZodTypeAny, {
57
64
  email?: string | undefined;
58
65
  name?: string | undefined;
59
66
  phone?: string | undefined;
60
67
  address?: string | undefined;
61
68
  logo?: string | undefined;
69
+ commodityCommissionRate?: number | undefined;
62
70
  }, {
63
71
  email?: string | undefined;
64
72
  name?: string | undefined;
65
73
  phone?: string | undefined;
66
74
  address?: string | undefined;
67
75
  logo?: string | undefined;
76
+ commodityCommissionRate?: number | undefined;
68
77
  }>;
69
78
  export declare const createOrganizationSchema: z.ZodObject<{
70
79
  type: z.ZodLiteral<"organizations">;
@@ -74,18 +83,21 @@ export declare const createOrganizationSchema: z.ZodObject<{
74
83
  phone: z.ZodOptional<z.ZodString>;
75
84
  address: z.ZodOptional<z.ZodString>;
76
85
  logo: z.ZodOptional<z.ZodString>;
86
+ commodityCommissionRate: z.ZodOptional<z.ZodNumber>;
77
87
  }, "strip", z.ZodTypeAny, {
78
88
  name: string;
79
89
  email?: string | undefined;
80
90
  phone?: string | undefined;
81
91
  address?: string | undefined;
82
92
  logo?: string | undefined;
93
+ commodityCommissionRate?: number | undefined;
83
94
  }, {
84
95
  name: string;
85
96
  email?: string | undefined;
86
97
  phone?: string | undefined;
87
98
  address?: string | undefined;
88
99
  logo?: string | undefined;
100
+ commodityCommissionRate?: number | undefined;
89
101
  }>;
90
102
  }, "strip", z.ZodTypeAny, {
91
103
  type: "organizations";
@@ -95,6 +107,7 @@ export declare const createOrganizationSchema: z.ZodObject<{
95
107
  phone?: string | undefined;
96
108
  address?: string | undefined;
97
109
  logo?: string | undefined;
110
+ commodityCommissionRate?: number | undefined;
98
111
  };
99
112
  }, {
100
113
  type: "organizations";
@@ -104,6 +117,7 @@ export declare const createOrganizationSchema: z.ZodObject<{
104
117
  phone?: string | undefined;
105
118
  address?: string | undefined;
106
119
  logo?: string | undefined;
120
+ commodityCommissionRate?: number | undefined;
107
121
  };
108
122
  }>;
109
123
  export declare const updateOrganizationSchema: z.ZodObject<{
@@ -115,18 +129,21 @@ export declare const updateOrganizationSchema: z.ZodObject<{
115
129
  phone: z.ZodOptional<z.ZodOptional<z.ZodString>>;
116
130
  address: z.ZodOptional<z.ZodOptional<z.ZodString>>;
117
131
  logo: z.ZodOptional<z.ZodOptional<z.ZodString>>;
132
+ commodityCommissionRate: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
118
133
  }, "strip", z.ZodTypeAny, {
119
134
  email?: string | undefined;
120
135
  name?: string | undefined;
121
136
  phone?: string | undefined;
122
137
  address?: string | undefined;
123
138
  logo?: string | undefined;
139
+ commodityCommissionRate?: number | undefined;
124
140
  }, {
125
141
  email?: string | undefined;
126
142
  name?: string | undefined;
127
143
  phone?: string | undefined;
128
144
  address?: string | undefined;
129
145
  logo?: string | undefined;
146
+ commodityCommissionRate?: number | undefined;
130
147
  }>;
131
148
  }, "strip", z.ZodTypeAny, {
132
149
  type: "organizations";
@@ -136,6 +153,7 @@ export declare const updateOrganizationSchema: z.ZodObject<{
136
153
  phone?: string | undefined;
137
154
  address?: string | undefined;
138
155
  logo?: string | undefined;
156
+ commodityCommissionRate?: number | undefined;
139
157
  };
140
158
  id?: string | undefined;
141
159
  }, {
@@ -146,6 +164,7 @@ export declare const updateOrganizationSchema: z.ZodObject<{
146
164
  phone?: string | undefined;
147
165
  address?: string | undefined;
148
166
  logo?: string | undefined;
167
+ commodityCommissionRate?: number | undefined;
149
168
  };
150
169
  id?: string | undefined;
151
170
  }>;
@@ -158,6 +177,7 @@ export declare const organizationResourceSchema: z.ZodObject<{
158
177
  phone: z.ZodNullable<z.ZodString>;
159
178
  address: z.ZodNullable<z.ZodString>;
160
179
  logo: z.ZodNullable<z.ZodString>;
180
+ commodityCommissionRate: z.ZodNullable<z.ZodNumber>;
161
181
  } & {
162
182
  createdAt: z.ZodString;
163
183
  updatedAt: z.ZodString;
@@ -169,6 +189,7 @@ export declare const organizationResourceSchema: z.ZodObject<{
169
189
  phone: string | null;
170
190
  address: string | null;
171
191
  logo: string | null;
192
+ commodityCommissionRate: number | null;
172
193
  }, {
173
194
  email: string | null;
174
195
  createdAt: string;
@@ -177,6 +198,7 @@ export declare const organizationResourceSchema: z.ZodObject<{
177
198
  phone: string | null;
178
199
  address: string | null;
179
200
  logo: string | null;
201
+ commodityCommissionRate: number | null;
180
202
  }>;
181
203
  relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
182
204
  links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -192,6 +214,7 @@ export declare const organizationResourceSchema: z.ZodObject<{
192
214
  phone: string | null;
193
215
  address: string | null;
194
216
  logo: string | null;
217
+ commodityCommissionRate: number | null;
195
218
  };
196
219
  relationships?: Record<string, unknown> | undefined;
197
220
  links?: Record<string, string> | undefined;
@@ -207,6 +230,7 @@ export declare const organizationResourceSchema: z.ZodObject<{
207
230
  phone: string | null;
208
231
  address: string | null;
209
232
  logo: string | null;
233
+ commodityCommissionRate: number | null;
210
234
  };
211
235
  relationships?: Record<string, unknown> | undefined;
212
236
  links?: Record<string, string> | undefined;
@@ -222,6 +246,7 @@ export declare const organizationResponseSchema: z.ZodObject<{
222
246
  phone: z.ZodNullable<z.ZodString>;
223
247
  address: z.ZodNullable<z.ZodString>;
224
248
  logo: z.ZodNullable<z.ZodString>;
249
+ commodityCommissionRate: z.ZodNullable<z.ZodNumber>;
225
250
  } & {
226
251
  createdAt: z.ZodString;
227
252
  updatedAt: z.ZodString;
@@ -233,6 +258,7 @@ export declare const organizationResponseSchema: z.ZodObject<{
233
258
  phone: string | null;
234
259
  address: string | null;
235
260
  logo: string | null;
261
+ commodityCommissionRate: number | null;
236
262
  }, {
237
263
  email: string | null;
238
264
  createdAt: string;
@@ -241,6 +267,7 @@ export declare const organizationResponseSchema: z.ZodObject<{
241
267
  phone: string | null;
242
268
  address: string | null;
243
269
  logo: string | null;
270
+ commodityCommissionRate: number | null;
244
271
  }>;
245
272
  relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
246
273
  links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -256,6 +283,7 @@ export declare const organizationResponseSchema: z.ZodObject<{
256
283
  phone: string | null;
257
284
  address: string | null;
258
285
  logo: string | null;
286
+ commodityCommissionRate: number | null;
259
287
  };
260
288
  relationships?: Record<string, unknown> | undefined;
261
289
  links?: Record<string, string> | undefined;
@@ -271,6 +299,7 @@ export declare const organizationResponseSchema: z.ZodObject<{
271
299
  phone: string | null;
272
300
  address: string | null;
273
301
  logo: string | null;
302
+ commodityCommissionRate: number | null;
274
303
  };
275
304
  relationships?: Record<string, unknown> | undefined;
276
305
  links?: Record<string, string> | undefined;
@@ -312,6 +341,7 @@ export declare const organizationResponseSchema: z.ZodObject<{
312
341
  phone: string | null;
313
342
  address: string | null;
314
343
  logo: string | null;
344
+ commodityCommissionRate: number | null;
315
345
  };
316
346
  relationships?: Record<string, unknown> | undefined;
317
347
  links?: Record<string, string> | undefined;
@@ -339,6 +369,7 @@ export declare const organizationResponseSchema: z.ZodObject<{
339
369
  phone: string | null;
340
370
  address: string | null;
341
371
  logo: string | null;
372
+ commodityCommissionRate: number | null;
342
373
  };
343
374
  relationships?: Record<string, unknown> | undefined;
344
375
  links?: Record<string, string> | undefined;
@@ -365,6 +396,7 @@ export declare const organizationListResponseSchema: z.ZodObject<{
365
396
  phone: z.ZodNullable<z.ZodString>;
366
397
  address: z.ZodNullable<z.ZodString>;
367
398
  logo: z.ZodNullable<z.ZodString>;
399
+ commodityCommissionRate: z.ZodNullable<z.ZodNumber>;
368
400
  } & {
369
401
  createdAt: z.ZodString;
370
402
  updatedAt: z.ZodString;
@@ -376,6 +408,7 @@ export declare const organizationListResponseSchema: z.ZodObject<{
376
408
  phone: string | null;
377
409
  address: string | null;
378
410
  logo: string | null;
411
+ commodityCommissionRate: number | null;
379
412
  }, {
380
413
  email: string | null;
381
414
  createdAt: string;
@@ -384,6 +417,7 @@ export declare const organizationListResponseSchema: z.ZodObject<{
384
417
  phone: string | null;
385
418
  address: string | null;
386
419
  logo: string | null;
420
+ commodityCommissionRate: number | null;
387
421
  }>;
388
422
  relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
389
423
  links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -399,6 +433,7 @@ export declare const organizationListResponseSchema: z.ZodObject<{
399
433
  phone: string | null;
400
434
  address: string | null;
401
435
  logo: string | null;
436
+ commodityCommissionRate: number | null;
402
437
  };
403
438
  relationships?: Record<string, unknown> | undefined;
404
439
  links?: Record<string, string> | undefined;
@@ -414,6 +449,7 @@ export declare const organizationListResponseSchema: z.ZodObject<{
414
449
  phone: string | null;
415
450
  address: string | null;
416
451
  logo: string | null;
452
+ commodityCommissionRate: number | null;
417
453
  };
418
454
  relationships?: Record<string, unknown> | undefined;
419
455
  links?: Record<string, string> | undefined;
@@ -455,6 +491,7 @@ export declare const organizationListResponseSchema: z.ZodObject<{
455
491
  phone: string | null;
456
492
  address: string | null;
457
493
  logo: string | null;
494
+ commodityCommissionRate: number | null;
458
495
  };
459
496
  relationships?: Record<string, unknown> | undefined;
460
497
  links?: Record<string, string> | undefined;
@@ -482,6 +519,7 @@ export declare const organizationListResponseSchema: z.ZodObject<{
482
519
  phone: string | null;
483
520
  address: string | null;
484
521
  logo: string | null;
522
+ commodityCommissionRate: number | null;
485
523
  };
486
524
  relationships?: Record<string, unknown> | undefined;
487
525
  links?: Record<string, string> | undefined;
@@ -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;;GAEG;AAGH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;EAMf,CAAC;AAG3B,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;EAM7C,CAAC;AAGH,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;EAA+C,CAAC;AAG/F,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGnC,CAAC;AAGH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAInC,CAAC;AAGH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA6E,CAAC;AAGrH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA0D,CAAC;AAClG,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA6D,CAAC;AAGxG,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC;AAC5F,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC;AAC5F,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAC7E,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAC7E,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAChF,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC5E,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC5E,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC"}
@@ -10,6 +10,7 @@ export const organizationAttributesSchema = z.object({
10
10
  phone: z.string().nullable(),
11
11
  address: z.string().nullable(),
12
12
  logo: z.string().url().nullable(),
13
+ commodityCommissionRate: z.number().min(0).max(100).nullable(),
13
14
  }).merge(timestampsSchema);
14
15
  // Organization attributes for creation (input)
15
16
  export const createOrganizationAttributesSchema = z.object({
@@ -18,6 +19,7 @@ export const createOrganizationAttributesSchema = z.object({
18
19
  phone: z.string().optional(),
19
20
  address: z.string().optional(),
20
21
  logo: z.string().url().optional(),
22
+ commodityCommissionRate: z.number().min(0).max(100).optional(),
21
23
  });
22
24
  // Organization attributes for update (input)
23
25
  export const updateOrganizationAttributesSchema = createOrganizationAttributesSchema.partial();