@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
@@ -0,0 +1,1109 @@
1
+ import { z } from 'zod';
2
+ export declare const commodityDealStatusSchema: z.ZodEnum<["draft", "in_transit", "invoiced", "paid", "cancelled"]>;
3
+ export declare const commodityDealComputedSchema: z.ZodObject<{
4
+ totalCost: z.ZodNumber;
5
+ saleAmount: z.ZodNullable<z.ZodNumber>;
6
+ grossProfit: z.ZodNullable<z.ZodNumber>;
7
+ commissionRate: z.ZodNullable<z.ZodNumber>;
8
+ commissionAmount: z.ZodNullable<z.ZodNumber>;
9
+ companyNet: z.ZodNullable<z.ZodNumber>;
10
+ isRealized: z.ZodBoolean;
11
+ }, "strip", z.ZodTypeAny, {
12
+ totalCost: number;
13
+ saleAmount: number | null;
14
+ grossProfit: number | null;
15
+ commissionRate: number | null;
16
+ commissionAmount: number | null;
17
+ companyNet: number | null;
18
+ isRealized: boolean;
19
+ }, {
20
+ totalCost: number;
21
+ saleAmount: number | null;
22
+ grossProfit: number | null;
23
+ commissionRate: number | null;
24
+ commissionAmount: number | null;
25
+ companyNet: number | null;
26
+ isRealized: boolean;
27
+ }>;
28
+ export declare const commodityDealAttributesSchema: z.ZodObject<{
29
+ organizationId: z.ZodString;
30
+ waybillId: z.ZodString;
31
+ invoiceId: z.ZodNullable<z.ZodString>;
32
+ handlerUserId: z.ZodNullable<z.ZodString>;
33
+ waybillNumber: z.ZodNullable<z.ZodString>;
34
+ invoiceNumber: z.ZodNullable<z.ZodString>;
35
+ buyerName: z.ZodNullable<z.ZodString>;
36
+ purchaseCost: z.ZodNumber;
37
+ transportCost: z.ZodNumber;
38
+ miscellaneousCost: z.ZodNumber;
39
+ currency: z.ZodDefault<z.ZodString>;
40
+ status: z.ZodEnum<["draft", "in_transit", "invoiced", "paid", "cancelled"]>;
41
+ notes: z.ZodNullable<z.ZodString>;
42
+ computed: z.ZodObject<{
43
+ totalCost: z.ZodNumber;
44
+ saleAmount: z.ZodNullable<z.ZodNumber>;
45
+ grossProfit: z.ZodNullable<z.ZodNumber>;
46
+ commissionRate: z.ZodNullable<z.ZodNumber>;
47
+ commissionAmount: z.ZodNullable<z.ZodNumber>;
48
+ companyNet: z.ZodNullable<z.ZodNumber>;
49
+ isRealized: z.ZodBoolean;
50
+ }, "strip", z.ZodTypeAny, {
51
+ totalCost: number;
52
+ saleAmount: number | null;
53
+ grossProfit: number | null;
54
+ commissionRate: number | null;
55
+ commissionAmount: number | null;
56
+ companyNet: number | null;
57
+ isRealized: boolean;
58
+ }, {
59
+ totalCost: number;
60
+ saleAmount: number | null;
61
+ grossProfit: number | null;
62
+ commissionRate: number | null;
63
+ commissionAmount: number | null;
64
+ companyNet: number | null;
65
+ isRealized: boolean;
66
+ }>;
67
+ } & {
68
+ createdAt: z.ZodString;
69
+ updatedAt: z.ZodString;
70
+ }, "strip", z.ZodTypeAny, {
71
+ status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
72
+ createdAt: string;
73
+ updatedAt: string;
74
+ currency: string;
75
+ notes: string | null;
76
+ buyerName: string | null;
77
+ transportCost: number;
78
+ organizationId: string;
79
+ waybillNumber: string | null;
80
+ purchaseCost: number;
81
+ miscellaneousCost: number;
82
+ invoiceNumber: string | null;
83
+ waybillId: string;
84
+ invoiceId: string | null;
85
+ handlerUserId: string | null;
86
+ computed: {
87
+ totalCost: number;
88
+ saleAmount: number | null;
89
+ grossProfit: number | null;
90
+ commissionRate: number | null;
91
+ commissionAmount: number | null;
92
+ companyNet: number | null;
93
+ isRealized: boolean;
94
+ };
95
+ }, {
96
+ status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
97
+ createdAt: string;
98
+ updatedAt: string;
99
+ notes: string | null;
100
+ buyerName: string | null;
101
+ transportCost: number;
102
+ organizationId: string;
103
+ waybillNumber: string | null;
104
+ purchaseCost: number;
105
+ miscellaneousCost: number;
106
+ invoiceNumber: string | null;
107
+ waybillId: string;
108
+ invoiceId: string | null;
109
+ handlerUserId: string | null;
110
+ computed: {
111
+ totalCost: number;
112
+ saleAmount: number | null;
113
+ grossProfit: number | null;
114
+ commissionRate: number | null;
115
+ commissionAmount: number | null;
116
+ companyNet: number | null;
117
+ isRealized: boolean;
118
+ };
119
+ currency?: string | undefined;
120
+ }>;
121
+ export declare const createCommodityDealAttributesSchema: z.ZodObject<{
122
+ waybillId: z.ZodString;
123
+ purchaseCost: z.ZodNumber;
124
+ transportCost: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
125
+ miscellaneousCost: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
126
+ currency: z.ZodDefault<z.ZodOptional<z.ZodString>>;
127
+ status: z.ZodOptional<z.ZodEnum<["draft", "in_transit", "invoiced", "paid", "cancelled"]>>;
128
+ notes: z.ZodOptional<z.ZodString>;
129
+ handlerUserId: z.ZodOptional<z.ZodString>;
130
+ }, "strip", z.ZodTypeAny, {
131
+ currency: string;
132
+ transportCost: number;
133
+ purchaseCost: number;
134
+ miscellaneousCost: number;
135
+ waybillId: string;
136
+ status?: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced" | undefined;
137
+ notes?: string | undefined;
138
+ handlerUserId?: string | undefined;
139
+ }, {
140
+ purchaseCost: number;
141
+ waybillId: string;
142
+ status?: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced" | undefined;
143
+ currency?: string | undefined;
144
+ notes?: string | undefined;
145
+ transportCost?: number | undefined;
146
+ miscellaneousCost?: number | undefined;
147
+ handlerUserId?: string | undefined;
148
+ }>;
149
+ export declare const updateCommodityDealAttributesSchema: z.ZodObject<{
150
+ purchaseCost: z.ZodOptional<z.ZodNumber>;
151
+ transportCost: z.ZodOptional<z.ZodNumber>;
152
+ miscellaneousCost: z.ZodOptional<z.ZodNumber>;
153
+ currency: z.ZodOptional<z.ZodString>;
154
+ status: z.ZodOptional<z.ZodEnum<["draft", "in_transit", "invoiced", "paid", "cancelled"]>>;
155
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
156
+ invoiceId: z.ZodOptional<z.ZodString>;
157
+ handlerUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
158
+ }, "strip", z.ZodTypeAny, {
159
+ status?: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced" | undefined;
160
+ currency?: string | undefined;
161
+ notes?: string | null | undefined;
162
+ transportCost?: number | undefined;
163
+ purchaseCost?: number | undefined;
164
+ miscellaneousCost?: number | undefined;
165
+ invoiceId?: string | undefined;
166
+ handlerUserId?: string | null | undefined;
167
+ }, {
168
+ status?: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced" | undefined;
169
+ currency?: string | undefined;
170
+ notes?: string | null | undefined;
171
+ transportCost?: number | undefined;
172
+ purchaseCost?: number | undefined;
173
+ miscellaneousCost?: number | undefined;
174
+ invoiceId?: string | undefined;
175
+ handlerUserId?: string | null | undefined;
176
+ }>;
177
+ export declare const createCommodityDealSchema: z.ZodObject<{
178
+ type: z.ZodLiteral<"commodity-deals">;
179
+ attributes: z.ZodObject<{
180
+ waybillId: z.ZodString;
181
+ purchaseCost: z.ZodNumber;
182
+ transportCost: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
183
+ miscellaneousCost: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
184
+ currency: z.ZodDefault<z.ZodOptional<z.ZodString>>;
185
+ status: z.ZodOptional<z.ZodEnum<["draft", "in_transit", "invoiced", "paid", "cancelled"]>>;
186
+ notes: z.ZodOptional<z.ZodString>;
187
+ handlerUserId: z.ZodOptional<z.ZodString>;
188
+ }, "strip", z.ZodTypeAny, {
189
+ currency: string;
190
+ transportCost: number;
191
+ purchaseCost: number;
192
+ miscellaneousCost: number;
193
+ waybillId: string;
194
+ status?: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced" | undefined;
195
+ notes?: string | undefined;
196
+ handlerUserId?: string | undefined;
197
+ }, {
198
+ purchaseCost: number;
199
+ waybillId: string;
200
+ status?: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced" | undefined;
201
+ currency?: string | undefined;
202
+ notes?: string | undefined;
203
+ transportCost?: number | undefined;
204
+ miscellaneousCost?: number | undefined;
205
+ handlerUserId?: string | undefined;
206
+ }>;
207
+ }, "strip", z.ZodTypeAny, {
208
+ type: "commodity-deals";
209
+ attributes: {
210
+ currency: string;
211
+ transportCost: number;
212
+ purchaseCost: number;
213
+ miscellaneousCost: number;
214
+ waybillId: string;
215
+ status?: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced" | undefined;
216
+ notes?: string | undefined;
217
+ handlerUserId?: string | undefined;
218
+ };
219
+ }, {
220
+ type: "commodity-deals";
221
+ attributes: {
222
+ purchaseCost: number;
223
+ waybillId: string;
224
+ status?: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced" | undefined;
225
+ currency?: string | undefined;
226
+ notes?: string | undefined;
227
+ transportCost?: number | undefined;
228
+ miscellaneousCost?: number | undefined;
229
+ handlerUserId?: string | undefined;
230
+ };
231
+ }>;
232
+ export declare const updateCommodityDealSchema: z.ZodObject<{
233
+ type: z.ZodLiteral<"commodity-deals">;
234
+ id: z.ZodOptional<z.ZodString>;
235
+ attributes: z.ZodObject<{
236
+ purchaseCost: z.ZodOptional<z.ZodNumber>;
237
+ transportCost: z.ZodOptional<z.ZodNumber>;
238
+ miscellaneousCost: z.ZodOptional<z.ZodNumber>;
239
+ currency: z.ZodOptional<z.ZodString>;
240
+ status: z.ZodOptional<z.ZodEnum<["draft", "in_transit", "invoiced", "paid", "cancelled"]>>;
241
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
242
+ invoiceId: z.ZodOptional<z.ZodString>;
243
+ handlerUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
244
+ }, "strip", z.ZodTypeAny, {
245
+ status?: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced" | undefined;
246
+ currency?: string | undefined;
247
+ notes?: string | null | undefined;
248
+ transportCost?: number | undefined;
249
+ purchaseCost?: number | undefined;
250
+ miscellaneousCost?: number | undefined;
251
+ invoiceId?: string | undefined;
252
+ handlerUserId?: string | null | undefined;
253
+ }, {
254
+ status?: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced" | undefined;
255
+ currency?: string | undefined;
256
+ notes?: string | null | undefined;
257
+ transportCost?: number | undefined;
258
+ purchaseCost?: number | undefined;
259
+ miscellaneousCost?: number | undefined;
260
+ invoiceId?: string | undefined;
261
+ handlerUserId?: string | null | undefined;
262
+ }>;
263
+ }, "strip", z.ZodTypeAny, {
264
+ type: "commodity-deals";
265
+ attributes: {
266
+ status?: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced" | undefined;
267
+ currency?: string | undefined;
268
+ notes?: string | null | undefined;
269
+ transportCost?: number | undefined;
270
+ purchaseCost?: number | undefined;
271
+ miscellaneousCost?: number | undefined;
272
+ invoiceId?: string | undefined;
273
+ handlerUserId?: string | null | undefined;
274
+ };
275
+ id?: string | undefined;
276
+ }, {
277
+ type: "commodity-deals";
278
+ attributes: {
279
+ status?: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced" | undefined;
280
+ currency?: string | undefined;
281
+ notes?: string | null | undefined;
282
+ transportCost?: number | undefined;
283
+ purchaseCost?: number | undefined;
284
+ miscellaneousCost?: number | undefined;
285
+ invoiceId?: string | undefined;
286
+ handlerUserId?: string | null | undefined;
287
+ };
288
+ id?: string | undefined;
289
+ }>;
290
+ export declare const commodityDealResourceSchema: z.ZodObject<{
291
+ type: z.ZodLiteral<string>;
292
+ id: z.ZodString;
293
+ attributes: z.ZodObject<{
294
+ organizationId: z.ZodString;
295
+ waybillId: z.ZodString;
296
+ invoiceId: z.ZodNullable<z.ZodString>;
297
+ handlerUserId: z.ZodNullable<z.ZodString>;
298
+ waybillNumber: z.ZodNullable<z.ZodString>;
299
+ invoiceNumber: z.ZodNullable<z.ZodString>;
300
+ buyerName: z.ZodNullable<z.ZodString>;
301
+ purchaseCost: z.ZodNumber;
302
+ transportCost: z.ZodNumber;
303
+ miscellaneousCost: z.ZodNumber;
304
+ currency: z.ZodDefault<z.ZodString>;
305
+ status: z.ZodEnum<["draft", "in_transit", "invoiced", "paid", "cancelled"]>;
306
+ notes: z.ZodNullable<z.ZodString>;
307
+ computed: z.ZodObject<{
308
+ totalCost: z.ZodNumber;
309
+ saleAmount: z.ZodNullable<z.ZodNumber>;
310
+ grossProfit: z.ZodNullable<z.ZodNumber>;
311
+ commissionRate: z.ZodNullable<z.ZodNumber>;
312
+ commissionAmount: z.ZodNullable<z.ZodNumber>;
313
+ companyNet: z.ZodNullable<z.ZodNumber>;
314
+ isRealized: z.ZodBoolean;
315
+ }, "strip", z.ZodTypeAny, {
316
+ totalCost: number;
317
+ saleAmount: number | null;
318
+ grossProfit: number | null;
319
+ commissionRate: number | null;
320
+ commissionAmount: number | null;
321
+ companyNet: number | null;
322
+ isRealized: boolean;
323
+ }, {
324
+ totalCost: number;
325
+ saleAmount: number | null;
326
+ grossProfit: number | null;
327
+ commissionRate: number | null;
328
+ commissionAmount: number | null;
329
+ companyNet: number | null;
330
+ isRealized: boolean;
331
+ }>;
332
+ } & {
333
+ createdAt: z.ZodString;
334
+ updatedAt: z.ZodString;
335
+ }, "strip", z.ZodTypeAny, {
336
+ status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
337
+ createdAt: string;
338
+ updatedAt: string;
339
+ currency: string;
340
+ notes: string | null;
341
+ buyerName: string | null;
342
+ transportCost: number;
343
+ organizationId: string;
344
+ waybillNumber: string | null;
345
+ purchaseCost: number;
346
+ miscellaneousCost: number;
347
+ invoiceNumber: string | null;
348
+ waybillId: string;
349
+ invoiceId: string | null;
350
+ handlerUserId: string | null;
351
+ computed: {
352
+ totalCost: number;
353
+ saleAmount: number | null;
354
+ grossProfit: number | null;
355
+ commissionRate: number | null;
356
+ commissionAmount: number | null;
357
+ companyNet: number | null;
358
+ isRealized: boolean;
359
+ };
360
+ }, {
361
+ status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
362
+ createdAt: string;
363
+ updatedAt: string;
364
+ notes: string | null;
365
+ buyerName: string | null;
366
+ transportCost: number;
367
+ organizationId: string;
368
+ waybillNumber: string | null;
369
+ purchaseCost: number;
370
+ miscellaneousCost: number;
371
+ invoiceNumber: string | null;
372
+ waybillId: string;
373
+ invoiceId: string | null;
374
+ handlerUserId: string | null;
375
+ computed: {
376
+ totalCost: number;
377
+ saleAmount: number | null;
378
+ grossProfit: number | null;
379
+ commissionRate: number | null;
380
+ commissionAmount: number | null;
381
+ companyNet: number | null;
382
+ isRealized: boolean;
383
+ };
384
+ currency?: string | undefined;
385
+ }>;
386
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
387
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
388
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
389
+ }, "strip", z.ZodTypeAny, {
390
+ type: string;
391
+ id: string;
392
+ attributes: {
393
+ status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
394
+ createdAt: string;
395
+ updatedAt: string;
396
+ currency: string;
397
+ notes: string | null;
398
+ buyerName: string | null;
399
+ transportCost: number;
400
+ organizationId: string;
401
+ waybillNumber: string | null;
402
+ purchaseCost: number;
403
+ miscellaneousCost: number;
404
+ invoiceNumber: string | null;
405
+ waybillId: string;
406
+ invoiceId: string | null;
407
+ handlerUserId: string | null;
408
+ computed: {
409
+ totalCost: number;
410
+ saleAmount: number | null;
411
+ grossProfit: number | null;
412
+ commissionRate: number | null;
413
+ commissionAmount: number | null;
414
+ companyNet: number | null;
415
+ isRealized: boolean;
416
+ };
417
+ };
418
+ relationships?: Record<string, unknown> | undefined;
419
+ links?: Record<string, string> | undefined;
420
+ meta?: Record<string, unknown> | undefined;
421
+ }, {
422
+ type: string;
423
+ id: string;
424
+ attributes: {
425
+ status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
426
+ createdAt: string;
427
+ updatedAt: string;
428
+ notes: string | null;
429
+ buyerName: string | null;
430
+ transportCost: number;
431
+ organizationId: string;
432
+ waybillNumber: string | null;
433
+ purchaseCost: number;
434
+ miscellaneousCost: number;
435
+ invoiceNumber: string | null;
436
+ waybillId: string;
437
+ invoiceId: string | null;
438
+ handlerUserId: string | null;
439
+ computed: {
440
+ totalCost: number;
441
+ saleAmount: number | null;
442
+ grossProfit: number | null;
443
+ commissionRate: number | null;
444
+ commissionAmount: number | null;
445
+ companyNet: number | null;
446
+ isRealized: boolean;
447
+ };
448
+ currency?: string | undefined;
449
+ };
450
+ relationships?: Record<string, unknown> | undefined;
451
+ links?: Record<string, string> | undefined;
452
+ meta?: Record<string, unknown> | undefined;
453
+ }>;
454
+ export declare const commodityDealResponseSchema: z.ZodObject<{
455
+ data: z.ZodObject<{
456
+ type: z.ZodLiteral<string>;
457
+ id: z.ZodString;
458
+ attributes: z.ZodObject<{
459
+ organizationId: z.ZodString;
460
+ waybillId: z.ZodString;
461
+ invoiceId: z.ZodNullable<z.ZodString>;
462
+ handlerUserId: z.ZodNullable<z.ZodString>;
463
+ waybillNumber: z.ZodNullable<z.ZodString>;
464
+ invoiceNumber: z.ZodNullable<z.ZodString>;
465
+ buyerName: z.ZodNullable<z.ZodString>;
466
+ purchaseCost: z.ZodNumber;
467
+ transportCost: z.ZodNumber;
468
+ miscellaneousCost: z.ZodNumber;
469
+ currency: z.ZodDefault<z.ZodString>;
470
+ status: z.ZodEnum<["draft", "in_transit", "invoiced", "paid", "cancelled"]>;
471
+ notes: z.ZodNullable<z.ZodString>;
472
+ computed: z.ZodObject<{
473
+ totalCost: z.ZodNumber;
474
+ saleAmount: z.ZodNullable<z.ZodNumber>;
475
+ grossProfit: z.ZodNullable<z.ZodNumber>;
476
+ commissionRate: z.ZodNullable<z.ZodNumber>;
477
+ commissionAmount: z.ZodNullable<z.ZodNumber>;
478
+ companyNet: z.ZodNullable<z.ZodNumber>;
479
+ isRealized: z.ZodBoolean;
480
+ }, "strip", z.ZodTypeAny, {
481
+ totalCost: number;
482
+ saleAmount: number | null;
483
+ grossProfit: number | null;
484
+ commissionRate: number | null;
485
+ commissionAmount: number | null;
486
+ companyNet: number | null;
487
+ isRealized: boolean;
488
+ }, {
489
+ totalCost: number;
490
+ saleAmount: number | null;
491
+ grossProfit: number | null;
492
+ commissionRate: number | null;
493
+ commissionAmount: number | null;
494
+ companyNet: number | null;
495
+ isRealized: boolean;
496
+ }>;
497
+ } & {
498
+ createdAt: z.ZodString;
499
+ updatedAt: z.ZodString;
500
+ }, "strip", z.ZodTypeAny, {
501
+ status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
502
+ createdAt: string;
503
+ updatedAt: string;
504
+ currency: string;
505
+ notes: string | null;
506
+ buyerName: string | null;
507
+ transportCost: number;
508
+ organizationId: string;
509
+ waybillNumber: string | null;
510
+ purchaseCost: number;
511
+ miscellaneousCost: number;
512
+ invoiceNumber: string | null;
513
+ waybillId: string;
514
+ invoiceId: string | null;
515
+ handlerUserId: string | null;
516
+ computed: {
517
+ totalCost: number;
518
+ saleAmount: number | null;
519
+ grossProfit: number | null;
520
+ commissionRate: number | null;
521
+ commissionAmount: number | null;
522
+ companyNet: number | null;
523
+ isRealized: boolean;
524
+ };
525
+ }, {
526
+ status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
527
+ createdAt: string;
528
+ updatedAt: string;
529
+ notes: string | null;
530
+ buyerName: string | null;
531
+ transportCost: number;
532
+ organizationId: string;
533
+ waybillNumber: string | null;
534
+ purchaseCost: number;
535
+ miscellaneousCost: number;
536
+ invoiceNumber: string | null;
537
+ waybillId: string;
538
+ invoiceId: string | null;
539
+ handlerUserId: string | null;
540
+ computed: {
541
+ totalCost: number;
542
+ saleAmount: number | null;
543
+ grossProfit: number | null;
544
+ commissionRate: number | null;
545
+ commissionAmount: number | null;
546
+ companyNet: number | null;
547
+ isRealized: boolean;
548
+ };
549
+ currency?: string | undefined;
550
+ }>;
551
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
552
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
553
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
554
+ }, "strip", z.ZodTypeAny, {
555
+ type: string;
556
+ id: string;
557
+ attributes: {
558
+ status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
559
+ createdAt: string;
560
+ updatedAt: string;
561
+ currency: string;
562
+ notes: string | null;
563
+ buyerName: string | null;
564
+ transportCost: number;
565
+ organizationId: string;
566
+ waybillNumber: string | null;
567
+ purchaseCost: number;
568
+ miscellaneousCost: number;
569
+ invoiceNumber: string | null;
570
+ waybillId: string;
571
+ invoiceId: string | null;
572
+ handlerUserId: string | null;
573
+ computed: {
574
+ totalCost: number;
575
+ saleAmount: number | null;
576
+ grossProfit: number | null;
577
+ commissionRate: number | null;
578
+ commissionAmount: number | null;
579
+ companyNet: number | null;
580
+ isRealized: boolean;
581
+ };
582
+ };
583
+ relationships?: Record<string, unknown> | undefined;
584
+ links?: Record<string, string> | undefined;
585
+ meta?: Record<string, unknown> | undefined;
586
+ }, {
587
+ type: string;
588
+ id: string;
589
+ attributes: {
590
+ status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
591
+ createdAt: string;
592
+ updatedAt: string;
593
+ notes: string | null;
594
+ buyerName: string | null;
595
+ transportCost: number;
596
+ organizationId: string;
597
+ waybillNumber: string | null;
598
+ purchaseCost: number;
599
+ miscellaneousCost: number;
600
+ invoiceNumber: string | null;
601
+ waybillId: string;
602
+ invoiceId: string | null;
603
+ handlerUserId: string | null;
604
+ computed: {
605
+ totalCost: number;
606
+ saleAmount: number | null;
607
+ grossProfit: number | null;
608
+ commissionRate: number | null;
609
+ commissionAmount: number | null;
610
+ companyNet: number | null;
611
+ isRealized: boolean;
612
+ };
613
+ currency?: string | undefined;
614
+ };
615
+ relationships?: Record<string, unknown> | undefined;
616
+ links?: Record<string, string> | undefined;
617
+ meta?: Record<string, unknown> | undefined;
618
+ }>;
619
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
620
+ type: z.ZodString;
621
+ id: z.ZodString;
622
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
623
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
624
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
625
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
626
+ }, "strip", z.ZodTypeAny, {
627
+ type: string;
628
+ id: string;
629
+ attributes?: Record<string, unknown> | undefined;
630
+ relationships?: Record<string, unknown> | undefined;
631
+ links?: Record<string, string> | undefined;
632
+ meta?: Record<string, unknown> | undefined;
633
+ }, {
634
+ type: string;
635
+ id: string;
636
+ attributes?: Record<string, unknown> | undefined;
637
+ relationships?: Record<string, unknown> | undefined;
638
+ links?: Record<string, string> | undefined;
639
+ meta?: Record<string, unknown> | undefined;
640
+ }>, "many">>;
641
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
642
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
643
+ }, "strip", z.ZodTypeAny, {
644
+ data: {
645
+ type: string;
646
+ id: string;
647
+ attributes: {
648
+ status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
649
+ createdAt: string;
650
+ updatedAt: string;
651
+ currency: string;
652
+ notes: string | null;
653
+ buyerName: string | null;
654
+ transportCost: number;
655
+ organizationId: string;
656
+ waybillNumber: string | null;
657
+ purchaseCost: number;
658
+ miscellaneousCost: number;
659
+ invoiceNumber: string | null;
660
+ waybillId: string;
661
+ invoiceId: string | null;
662
+ handlerUserId: string | null;
663
+ computed: {
664
+ totalCost: number;
665
+ saleAmount: number | null;
666
+ grossProfit: number | null;
667
+ commissionRate: number | null;
668
+ commissionAmount: number | null;
669
+ companyNet: number | null;
670
+ isRealized: boolean;
671
+ };
672
+ };
673
+ relationships?: Record<string, unknown> | undefined;
674
+ links?: Record<string, string> | undefined;
675
+ meta?: Record<string, unknown> | undefined;
676
+ };
677
+ links?: Record<string, string> | undefined;
678
+ meta?: Record<string, unknown> | undefined;
679
+ included?: {
680
+ type: string;
681
+ id: string;
682
+ attributes?: Record<string, unknown> | undefined;
683
+ relationships?: Record<string, unknown> | undefined;
684
+ links?: Record<string, string> | undefined;
685
+ meta?: Record<string, unknown> | undefined;
686
+ }[] | undefined;
687
+ }, {
688
+ data: {
689
+ type: string;
690
+ id: string;
691
+ attributes: {
692
+ status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
693
+ createdAt: string;
694
+ updatedAt: string;
695
+ notes: string | null;
696
+ buyerName: string | null;
697
+ transportCost: number;
698
+ organizationId: string;
699
+ waybillNumber: string | null;
700
+ purchaseCost: number;
701
+ miscellaneousCost: number;
702
+ invoiceNumber: string | null;
703
+ waybillId: string;
704
+ invoiceId: string | null;
705
+ handlerUserId: string | null;
706
+ computed: {
707
+ totalCost: number;
708
+ saleAmount: number | null;
709
+ grossProfit: number | null;
710
+ commissionRate: number | null;
711
+ commissionAmount: number | null;
712
+ companyNet: number | null;
713
+ isRealized: boolean;
714
+ };
715
+ currency?: string | undefined;
716
+ };
717
+ relationships?: Record<string, unknown> | undefined;
718
+ links?: Record<string, string> | undefined;
719
+ meta?: Record<string, unknown> | undefined;
720
+ };
721
+ links?: Record<string, string> | undefined;
722
+ meta?: Record<string, unknown> | undefined;
723
+ included?: {
724
+ type: string;
725
+ id: string;
726
+ attributes?: Record<string, unknown> | undefined;
727
+ relationships?: Record<string, unknown> | undefined;
728
+ links?: Record<string, string> | undefined;
729
+ meta?: Record<string, unknown> | undefined;
730
+ }[] | undefined;
731
+ }>;
732
+ export declare const commodityDealListResponseSchema: z.ZodObject<{
733
+ data: z.ZodArray<z.ZodObject<{
734
+ type: z.ZodLiteral<string>;
735
+ id: z.ZodString;
736
+ attributes: z.ZodObject<{
737
+ organizationId: z.ZodString;
738
+ waybillId: z.ZodString;
739
+ invoiceId: z.ZodNullable<z.ZodString>;
740
+ handlerUserId: z.ZodNullable<z.ZodString>;
741
+ waybillNumber: z.ZodNullable<z.ZodString>;
742
+ invoiceNumber: z.ZodNullable<z.ZodString>;
743
+ buyerName: z.ZodNullable<z.ZodString>;
744
+ purchaseCost: z.ZodNumber;
745
+ transportCost: z.ZodNumber;
746
+ miscellaneousCost: z.ZodNumber;
747
+ currency: z.ZodDefault<z.ZodString>;
748
+ status: z.ZodEnum<["draft", "in_transit", "invoiced", "paid", "cancelled"]>;
749
+ notes: z.ZodNullable<z.ZodString>;
750
+ computed: z.ZodObject<{
751
+ totalCost: z.ZodNumber;
752
+ saleAmount: z.ZodNullable<z.ZodNumber>;
753
+ grossProfit: z.ZodNullable<z.ZodNumber>;
754
+ commissionRate: z.ZodNullable<z.ZodNumber>;
755
+ commissionAmount: z.ZodNullable<z.ZodNumber>;
756
+ companyNet: z.ZodNullable<z.ZodNumber>;
757
+ isRealized: z.ZodBoolean;
758
+ }, "strip", z.ZodTypeAny, {
759
+ totalCost: number;
760
+ saleAmount: number | null;
761
+ grossProfit: number | null;
762
+ commissionRate: number | null;
763
+ commissionAmount: number | null;
764
+ companyNet: number | null;
765
+ isRealized: boolean;
766
+ }, {
767
+ totalCost: number;
768
+ saleAmount: number | null;
769
+ grossProfit: number | null;
770
+ commissionRate: number | null;
771
+ commissionAmount: number | null;
772
+ companyNet: number | null;
773
+ isRealized: boolean;
774
+ }>;
775
+ } & {
776
+ createdAt: z.ZodString;
777
+ updatedAt: z.ZodString;
778
+ }, "strip", z.ZodTypeAny, {
779
+ status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
780
+ createdAt: string;
781
+ updatedAt: string;
782
+ currency: string;
783
+ notes: string | null;
784
+ buyerName: string | null;
785
+ transportCost: number;
786
+ organizationId: string;
787
+ waybillNumber: string | null;
788
+ purchaseCost: number;
789
+ miscellaneousCost: number;
790
+ invoiceNumber: string | null;
791
+ waybillId: string;
792
+ invoiceId: string | null;
793
+ handlerUserId: string | null;
794
+ computed: {
795
+ totalCost: number;
796
+ saleAmount: number | null;
797
+ grossProfit: number | null;
798
+ commissionRate: number | null;
799
+ commissionAmount: number | null;
800
+ companyNet: number | null;
801
+ isRealized: boolean;
802
+ };
803
+ }, {
804
+ status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
805
+ createdAt: string;
806
+ updatedAt: string;
807
+ notes: string | null;
808
+ buyerName: string | null;
809
+ transportCost: number;
810
+ organizationId: string;
811
+ waybillNumber: string | null;
812
+ purchaseCost: number;
813
+ miscellaneousCost: number;
814
+ invoiceNumber: string | null;
815
+ waybillId: string;
816
+ invoiceId: string | null;
817
+ handlerUserId: string | null;
818
+ computed: {
819
+ totalCost: number;
820
+ saleAmount: number | null;
821
+ grossProfit: number | null;
822
+ commissionRate: number | null;
823
+ commissionAmount: number | null;
824
+ companyNet: number | null;
825
+ isRealized: boolean;
826
+ };
827
+ currency?: string | undefined;
828
+ }>;
829
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
830
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
831
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
832
+ }, "strip", z.ZodTypeAny, {
833
+ type: string;
834
+ id: string;
835
+ attributes: {
836
+ status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
837
+ createdAt: string;
838
+ updatedAt: string;
839
+ currency: string;
840
+ notes: string | null;
841
+ buyerName: string | null;
842
+ transportCost: number;
843
+ organizationId: string;
844
+ waybillNumber: string | null;
845
+ purchaseCost: number;
846
+ miscellaneousCost: number;
847
+ invoiceNumber: string | null;
848
+ waybillId: string;
849
+ invoiceId: string | null;
850
+ handlerUserId: string | null;
851
+ computed: {
852
+ totalCost: number;
853
+ saleAmount: number | null;
854
+ grossProfit: number | null;
855
+ commissionRate: number | null;
856
+ commissionAmount: number | null;
857
+ companyNet: number | null;
858
+ isRealized: boolean;
859
+ };
860
+ };
861
+ relationships?: Record<string, unknown> | undefined;
862
+ links?: Record<string, string> | undefined;
863
+ meta?: Record<string, unknown> | undefined;
864
+ }, {
865
+ type: string;
866
+ id: string;
867
+ attributes: {
868
+ status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
869
+ createdAt: string;
870
+ updatedAt: string;
871
+ notes: string | null;
872
+ buyerName: string | null;
873
+ transportCost: number;
874
+ organizationId: string;
875
+ waybillNumber: string | null;
876
+ purchaseCost: number;
877
+ miscellaneousCost: number;
878
+ invoiceNumber: string | null;
879
+ waybillId: string;
880
+ invoiceId: string | null;
881
+ handlerUserId: string | null;
882
+ computed: {
883
+ totalCost: number;
884
+ saleAmount: number | null;
885
+ grossProfit: number | null;
886
+ commissionRate: number | null;
887
+ commissionAmount: number | null;
888
+ companyNet: number | null;
889
+ isRealized: boolean;
890
+ };
891
+ currency?: string | undefined;
892
+ };
893
+ relationships?: Record<string, unknown> | undefined;
894
+ links?: Record<string, string> | undefined;
895
+ meta?: Record<string, unknown> | undefined;
896
+ }>, "many">;
897
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
898
+ type: z.ZodString;
899
+ id: z.ZodString;
900
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
901
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
902
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
903
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
904
+ }, "strip", z.ZodTypeAny, {
905
+ type: string;
906
+ id: string;
907
+ attributes?: Record<string, unknown> | undefined;
908
+ relationships?: Record<string, unknown> | undefined;
909
+ links?: Record<string, string> | undefined;
910
+ meta?: Record<string, unknown> | undefined;
911
+ }, {
912
+ type: string;
913
+ id: string;
914
+ attributes?: Record<string, unknown> | undefined;
915
+ relationships?: Record<string, unknown> | undefined;
916
+ links?: Record<string, string> | undefined;
917
+ meta?: Record<string, unknown> | undefined;
918
+ }>, "many">>;
919
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
920
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
921
+ }, "strip", z.ZodTypeAny, {
922
+ data: {
923
+ type: string;
924
+ id: string;
925
+ attributes: {
926
+ status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
927
+ createdAt: string;
928
+ updatedAt: string;
929
+ currency: string;
930
+ notes: string | null;
931
+ buyerName: string | null;
932
+ transportCost: number;
933
+ organizationId: string;
934
+ waybillNumber: string | null;
935
+ purchaseCost: number;
936
+ miscellaneousCost: number;
937
+ invoiceNumber: string | null;
938
+ waybillId: string;
939
+ invoiceId: string | null;
940
+ handlerUserId: string | null;
941
+ computed: {
942
+ totalCost: number;
943
+ saleAmount: number | null;
944
+ grossProfit: number | null;
945
+ commissionRate: number | null;
946
+ commissionAmount: number | null;
947
+ companyNet: number | null;
948
+ isRealized: boolean;
949
+ };
950
+ };
951
+ relationships?: Record<string, unknown> | undefined;
952
+ links?: Record<string, string> | undefined;
953
+ meta?: Record<string, unknown> | undefined;
954
+ }[];
955
+ links?: Record<string, string> | undefined;
956
+ meta?: Record<string, unknown> | undefined;
957
+ included?: {
958
+ type: string;
959
+ id: string;
960
+ attributes?: Record<string, unknown> | undefined;
961
+ relationships?: Record<string, unknown> | undefined;
962
+ links?: Record<string, string> | undefined;
963
+ meta?: Record<string, unknown> | undefined;
964
+ }[] | undefined;
965
+ }, {
966
+ data: {
967
+ type: string;
968
+ id: string;
969
+ attributes: {
970
+ status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
971
+ createdAt: string;
972
+ updatedAt: string;
973
+ notes: string | null;
974
+ buyerName: string | null;
975
+ transportCost: number;
976
+ organizationId: string;
977
+ waybillNumber: string | null;
978
+ purchaseCost: number;
979
+ miscellaneousCost: number;
980
+ invoiceNumber: string | null;
981
+ waybillId: string;
982
+ invoiceId: string | null;
983
+ handlerUserId: string | null;
984
+ computed: {
985
+ totalCost: number;
986
+ saleAmount: number | null;
987
+ grossProfit: number | null;
988
+ commissionRate: number | null;
989
+ commissionAmount: number | null;
990
+ companyNet: number | null;
991
+ isRealized: boolean;
992
+ };
993
+ currency?: string | undefined;
994
+ };
995
+ relationships?: Record<string, unknown> | undefined;
996
+ links?: Record<string, string> | undefined;
997
+ meta?: Record<string, unknown> | undefined;
998
+ }[];
999
+ links?: Record<string, string> | undefined;
1000
+ meta?: Record<string, unknown> | undefined;
1001
+ included?: {
1002
+ type: string;
1003
+ id: string;
1004
+ attributes?: Record<string, unknown> | undefined;
1005
+ relationships?: Record<string, unknown> | undefined;
1006
+ links?: Record<string, string> | undefined;
1007
+ meta?: Record<string, unknown> | undefined;
1008
+ }[] | undefined;
1009
+ }>;
1010
+ export declare const commodityDealSummarySchema: z.ZodObject<{
1011
+ paidDealCount: z.ZodNumber;
1012
+ invoicedUnpaidCount: z.ZodNumber;
1013
+ totalPaidRevenue: z.ZodNumber;
1014
+ totalCostsOnPaidDeals: z.ZodNumber;
1015
+ grossProfitOnPaidDeals: z.ZodNumber;
1016
+ totalCommissionOnPaidDeals: z.ZodNumber;
1017
+ companyNetOnPaidDeals: z.ZodNumber;
1018
+ unrealizedGrossProfit: z.ZodNumber;
1019
+ currency: z.ZodDefault<z.ZodString>;
1020
+ }, "strip", z.ZodTypeAny, {
1021
+ currency: string;
1022
+ paidDealCount: number;
1023
+ invoicedUnpaidCount: number;
1024
+ totalPaidRevenue: number;
1025
+ totalCostsOnPaidDeals: number;
1026
+ grossProfitOnPaidDeals: number;
1027
+ totalCommissionOnPaidDeals: number;
1028
+ companyNetOnPaidDeals: number;
1029
+ unrealizedGrossProfit: number;
1030
+ }, {
1031
+ paidDealCount: number;
1032
+ invoicedUnpaidCount: number;
1033
+ totalPaidRevenue: number;
1034
+ totalCostsOnPaidDeals: number;
1035
+ grossProfitOnPaidDeals: number;
1036
+ totalCommissionOnPaidDeals: number;
1037
+ companyNetOnPaidDeals: number;
1038
+ unrealizedGrossProfit: number;
1039
+ currency?: string | undefined;
1040
+ }>;
1041
+ export declare const commodityDealSummaryResponseSchema: z.ZodObject<{
1042
+ data: z.ZodObject<{
1043
+ paidDealCount: z.ZodNumber;
1044
+ invoicedUnpaidCount: z.ZodNumber;
1045
+ totalPaidRevenue: z.ZodNumber;
1046
+ totalCostsOnPaidDeals: z.ZodNumber;
1047
+ grossProfitOnPaidDeals: z.ZodNumber;
1048
+ totalCommissionOnPaidDeals: z.ZodNumber;
1049
+ companyNetOnPaidDeals: z.ZodNumber;
1050
+ unrealizedGrossProfit: z.ZodNumber;
1051
+ currency: z.ZodDefault<z.ZodString>;
1052
+ }, "strip", z.ZodTypeAny, {
1053
+ currency: string;
1054
+ paidDealCount: number;
1055
+ invoicedUnpaidCount: number;
1056
+ totalPaidRevenue: number;
1057
+ totalCostsOnPaidDeals: number;
1058
+ grossProfitOnPaidDeals: number;
1059
+ totalCommissionOnPaidDeals: number;
1060
+ companyNetOnPaidDeals: number;
1061
+ unrealizedGrossProfit: number;
1062
+ }, {
1063
+ paidDealCount: number;
1064
+ invoicedUnpaidCount: number;
1065
+ totalPaidRevenue: number;
1066
+ totalCostsOnPaidDeals: number;
1067
+ grossProfitOnPaidDeals: number;
1068
+ totalCommissionOnPaidDeals: number;
1069
+ companyNetOnPaidDeals: number;
1070
+ unrealizedGrossProfit: number;
1071
+ currency?: string | undefined;
1072
+ }>;
1073
+ }, "strip", z.ZodTypeAny, {
1074
+ data: {
1075
+ currency: string;
1076
+ paidDealCount: number;
1077
+ invoicedUnpaidCount: number;
1078
+ totalPaidRevenue: number;
1079
+ totalCostsOnPaidDeals: number;
1080
+ grossProfitOnPaidDeals: number;
1081
+ totalCommissionOnPaidDeals: number;
1082
+ companyNetOnPaidDeals: number;
1083
+ unrealizedGrossProfit: number;
1084
+ };
1085
+ }, {
1086
+ data: {
1087
+ paidDealCount: number;
1088
+ invoicedUnpaidCount: number;
1089
+ totalPaidRevenue: number;
1090
+ totalCostsOnPaidDeals: number;
1091
+ grossProfitOnPaidDeals: number;
1092
+ totalCommissionOnPaidDeals: number;
1093
+ companyNetOnPaidDeals: number;
1094
+ unrealizedGrossProfit: number;
1095
+ currency?: string | undefined;
1096
+ };
1097
+ }>;
1098
+ export type CommodityDealStatus = z.infer<typeof commodityDealStatusSchema>;
1099
+ export type CommodityDealComputed = z.infer<typeof commodityDealComputedSchema>;
1100
+ export type CreateCommodityDealAttributes = z.infer<typeof createCommodityDealAttributesSchema>;
1101
+ export type UpdateCommodityDealAttributes = z.infer<typeof updateCommodityDealAttributesSchema>;
1102
+ export type CreateCommodityDealInput = z.infer<typeof createCommodityDealSchema>;
1103
+ export type UpdateCommodityDealInput = z.infer<typeof updateCommodityDealSchema>;
1104
+ export type CommodityDealAttributes = z.infer<typeof commodityDealAttributesSchema>;
1105
+ export type CommodityDealResponse = z.infer<typeof commodityDealResponseSchema>;
1106
+ export type CommodityDealListResponse = z.infer<typeof commodityDealListResponseSchema>;
1107
+ export type CommodityDealSummary = z.infer<typeof commodityDealSummarySchema>;
1108
+ export type CommodityDealSummaryResponse = z.infer<typeof commodityDealSummaryResponseSchema>;
1109
+ //# sourceMappingURL=commodity-deals.schemas.d.ts.map