@deepintel-ltd/farmpro-contracts 1.10.1 → 1.11.0

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,12 +1,40 @@
1
1
  import { z } from 'zod';
2
2
  export declare const commodityDealStatusSchema: z.ZodEnum<["draft", "in_transit", "invoiced", "paid", "cancelled"]>;
3
+ export declare const dealParticipantShareSchema: z.ZodObject<{
4
+ userId: z.ZodString;
5
+ name: z.ZodOptional<z.ZodString>;
6
+ email: z.ZodOptional<z.ZodString>;
7
+ capitalContributed: z.ZodNumber;
8
+ ownershipPercent: z.ZodNumber;
9
+ earningsAmount: z.ZodNullable<z.ZodNumber>;
10
+ }, "strip", z.ZodTypeAny, {
11
+ userId: string;
12
+ capitalContributed: number;
13
+ ownershipPercent: number;
14
+ earningsAmount: number | null;
15
+ email?: string | undefined;
16
+ name?: string | undefined;
17
+ }, {
18
+ userId: string;
19
+ capitalContributed: number;
20
+ ownershipPercent: number;
21
+ earningsAmount: number | null;
22
+ email?: string | undefined;
23
+ name?: string | undefined;
24
+ }>;
3
25
  export declare const commodityDealComputedSchema: z.ZodObject<{
4
26
  totalCost: z.ZodNumber;
5
27
  saleAmount: z.ZodNullable<z.ZodNumber>;
6
28
  grossProfit: z.ZodNullable<z.ZodNumber>;
7
29
  commissionRate: z.ZodNullable<z.ZodNumber>;
30
+ staffCommissionRate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
8
31
  commissionAmount: z.ZodNullable<z.ZodNumber>;
32
+ staffCommissionAmount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
9
33
  companyNet: z.ZodNullable<z.ZodNumber>;
34
+ netAfterStaff: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
35
+ companyCommissionRate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
36
+ companyCommissionAmount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
37
+ investorPool: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
10
38
  isRealized: z.ZodBoolean;
11
39
  }, "strip", z.ZodTypeAny, {
12
40
  totalCost: number;
@@ -16,6 +44,12 @@ export declare const commodityDealComputedSchema: z.ZodObject<{
16
44
  commissionAmount: number | null;
17
45
  companyNet: number | null;
18
46
  isRealized: boolean;
47
+ companyCommissionRate?: number | null | undefined;
48
+ staffCommissionRate?: number | null | undefined;
49
+ staffCommissionAmount?: number | null | undefined;
50
+ netAfterStaff?: number | null | undefined;
51
+ companyCommissionAmount?: number | null | undefined;
52
+ investorPool?: number | null | undefined;
19
53
  }, {
20
54
  totalCost: number;
21
55
  saleAmount: number | null;
@@ -24,6 +58,12 @@ export declare const commodityDealComputedSchema: z.ZodObject<{
24
58
  commissionAmount: number | null;
25
59
  companyNet: number | null;
26
60
  isRealized: boolean;
61
+ companyCommissionRate?: number | null | undefined;
62
+ staffCommissionRate?: number | null | undefined;
63
+ staffCommissionAmount?: number | null | undefined;
64
+ netAfterStaff?: number | null | undefined;
65
+ companyCommissionAmount?: number | null | undefined;
66
+ investorPool?: number | null | undefined;
27
67
  }>;
28
68
  export declare const commodityDealAttributesSchema: z.ZodObject<{
29
69
  organizationId: z.ZodString;
@@ -39,13 +79,42 @@ export declare const commodityDealAttributesSchema: z.ZodObject<{
39
79
  currency: z.ZodDefault<z.ZodString>;
40
80
  status: z.ZodEnum<["draft", "in_transit", "invoiced", "paid", "cancelled"]>;
41
81
  notes: z.ZodNullable<z.ZodString>;
82
+ companyCommissionRate: z.ZodNullable<z.ZodNumber>;
83
+ participants: z.ZodOptional<z.ZodArray<z.ZodObject<{
84
+ userId: z.ZodString;
85
+ name: z.ZodOptional<z.ZodString>;
86
+ email: z.ZodOptional<z.ZodString>;
87
+ capitalContributed: z.ZodNumber;
88
+ ownershipPercent: z.ZodNumber;
89
+ earningsAmount: z.ZodNullable<z.ZodNumber>;
90
+ }, "strip", z.ZodTypeAny, {
91
+ userId: string;
92
+ capitalContributed: number;
93
+ ownershipPercent: number;
94
+ earningsAmount: number | null;
95
+ email?: string | undefined;
96
+ name?: string | undefined;
97
+ }, {
98
+ userId: string;
99
+ capitalContributed: number;
100
+ ownershipPercent: number;
101
+ earningsAmount: number | null;
102
+ email?: string | undefined;
103
+ name?: string | undefined;
104
+ }>, "many">>;
42
105
  computed: z.ZodObject<{
43
106
  totalCost: z.ZodNumber;
44
107
  saleAmount: z.ZodNullable<z.ZodNumber>;
45
108
  grossProfit: z.ZodNullable<z.ZodNumber>;
46
109
  commissionRate: z.ZodNullable<z.ZodNumber>;
110
+ staffCommissionRate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
47
111
  commissionAmount: z.ZodNullable<z.ZodNumber>;
112
+ staffCommissionAmount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
48
113
  companyNet: z.ZodNullable<z.ZodNumber>;
114
+ netAfterStaff: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
115
+ companyCommissionRate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
116
+ companyCommissionAmount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
117
+ investorPool: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
49
118
  isRealized: z.ZodBoolean;
50
119
  }, "strip", z.ZodTypeAny, {
51
120
  totalCost: number;
@@ -55,6 +124,12 @@ export declare const commodityDealAttributesSchema: z.ZodObject<{
55
124
  commissionAmount: number | null;
56
125
  companyNet: number | null;
57
126
  isRealized: boolean;
127
+ companyCommissionRate?: number | null | undefined;
128
+ staffCommissionRate?: number | null | undefined;
129
+ staffCommissionAmount?: number | null | undefined;
130
+ netAfterStaff?: number | null | undefined;
131
+ companyCommissionAmount?: number | null | undefined;
132
+ investorPool?: number | null | undefined;
58
133
  }, {
59
134
  totalCost: number;
60
135
  saleAmount: number | null;
@@ -63,6 +138,12 @@ export declare const commodityDealAttributesSchema: z.ZodObject<{
63
138
  commissionAmount: number | null;
64
139
  companyNet: number | null;
65
140
  isRealized: boolean;
141
+ companyCommissionRate?: number | null | undefined;
142
+ staffCommissionRate?: number | null | undefined;
143
+ staffCommissionAmount?: number | null | undefined;
144
+ netAfterStaff?: number | null | undefined;
145
+ companyCommissionAmount?: number | null | undefined;
146
+ investorPool?: number | null | undefined;
66
147
  }>;
67
148
  } & {
68
149
  createdAt: z.ZodString;
@@ -76,6 +157,7 @@ export declare const commodityDealAttributesSchema: z.ZodObject<{
76
157
  buyerName: string | null;
77
158
  transportCost: number;
78
159
  organizationId: string;
160
+ companyCommissionRate: number | null;
79
161
  waybillNumber: string | null;
80
162
  purchaseCost: number;
81
163
  miscellaneousCost: number;
@@ -91,7 +173,21 @@ export declare const commodityDealAttributesSchema: z.ZodObject<{
91
173
  commissionAmount: number | null;
92
174
  companyNet: number | null;
93
175
  isRealized: boolean;
176
+ companyCommissionRate?: number | null | undefined;
177
+ staffCommissionRate?: number | null | undefined;
178
+ staffCommissionAmount?: number | null | undefined;
179
+ netAfterStaff?: number | null | undefined;
180
+ companyCommissionAmount?: number | null | undefined;
181
+ investorPool?: number | null | undefined;
94
182
  };
183
+ participants?: {
184
+ userId: string;
185
+ capitalContributed: number;
186
+ ownershipPercent: number;
187
+ earningsAmount: number | null;
188
+ email?: string | undefined;
189
+ name?: string | undefined;
190
+ }[] | undefined;
95
191
  }, {
96
192
  status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
97
193
  createdAt: string;
@@ -100,6 +196,7 @@ export declare const commodityDealAttributesSchema: z.ZodObject<{
100
196
  buyerName: string | null;
101
197
  transportCost: number;
102
198
  organizationId: string;
199
+ companyCommissionRate: number | null;
103
200
  waybillNumber: string | null;
104
201
  purchaseCost: number;
105
202
  miscellaneousCost: number;
@@ -115,8 +212,22 @@ export declare const commodityDealAttributesSchema: z.ZodObject<{
115
212
  commissionAmount: number | null;
116
213
  companyNet: number | null;
117
214
  isRealized: boolean;
215
+ companyCommissionRate?: number | null | undefined;
216
+ staffCommissionRate?: number | null | undefined;
217
+ staffCommissionAmount?: number | null | undefined;
218
+ netAfterStaff?: number | null | undefined;
219
+ companyCommissionAmount?: number | null | undefined;
220
+ investorPool?: number | null | undefined;
118
221
  };
119
222
  currency?: string | undefined;
223
+ participants?: {
224
+ userId: string;
225
+ capitalContributed: number;
226
+ ownershipPercent: number;
227
+ earningsAmount: number | null;
228
+ email?: string | undefined;
229
+ name?: string | undefined;
230
+ }[] | undefined;
120
231
  }>;
121
232
  export declare const createCommodityDealAttributesSchema: z.ZodObject<{
122
233
  waybillId: z.ZodString;
@@ -127,6 +238,7 @@ export declare const createCommodityDealAttributesSchema: z.ZodObject<{
127
238
  status: z.ZodOptional<z.ZodEnum<["draft", "in_transit", "invoiced", "paid", "cancelled"]>>;
128
239
  notes: z.ZodOptional<z.ZodString>;
129
240
  handlerUserId: z.ZodOptional<z.ZodString>;
241
+ companyCommissionRate: z.ZodOptional<z.ZodNumber>;
130
242
  }, "strip", z.ZodTypeAny, {
131
243
  currency: string;
132
244
  transportCost: number;
@@ -135,6 +247,7 @@ export declare const createCommodityDealAttributesSchema: z.ZodObject<{
135
247
  waybillId: string;
136
248
  status?: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced" | undefined;
137
249
  notes?: string | undefined;
250
+ companyCommissionRate?: number | undefined;
138
251
  handlerUserId?: string | undefined;
139
252
  }, {
140
253
  purchaseCost: number;
@@ -143,6 +256,7 @@ export declare const createCommodityDealAttributesSchema: z.ZodObject<{
143
256
  currency?: string | undefined;
144
257
  notes?: string | undefined;
145
258
  transportCost?: number | undefined;
259
+ companyCommissionRate?: number | undefined;
146
260
  miscellaneousCost?: number | undefined;
147
261
  handlerUserId?: string | undefined;
148
262
  }>;
@@ -155,11 +269,13 @@ export declare const updateCommodityDealAttributesSchema: z.ZodObject<{
155
269
  notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
156
270
  invoiceId: z.ZodOptional<z.ZodString>;
157
271
  handlerUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
272
+ companyCommissionRate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
158
273
  }, "strip", z.ZodTypeAny, {
159
274
  status?: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced" | undefined;
160
275
  currency?: string | undefined;
161
276
  notes?: string | null | undefined;
162
277
  transportCost?: number | undefined;
278
+ companyCommissionRate?: number | null | undefined;
163
279
  purchaseCost?: number | undefined;
164
280
  miscellaneousCost?: number | undefined;
165
281
  invoiceId?: string | undefined;
@@ -169,6 +285,7 @@ export declare const updateCommodityDealAttributesSchema: z.ZodObject<{
169
285
  currency?: string | undefined;
170
286
  notes?: string | null | undefined;
171
287
  transportCost?: number | undefined;
288
+ companyCommissionRate?: number | null | undefined;
172
289
  purchaseCost?: number | undefined;
173
290
  miscellaneousCost?: number | undefined;
174
291
  invoiceId?: string | undefined;
@@ -185,6 +302,7 @@ export declare const createCommodityDealSchema: z.ZodObject<{
185
302
  status: z.ZodOptional<z.ZodEnum<["draft", "in_transit", "invoiced", "paid", "cancelled"]>>;
186
303
  notes: z.ZodOptional<z.ZodString>;
187
304
  handlerUserId: z.ZodOptional<z.ZodString>;
305
+ companyCommissionRate: z.ZodOptional<z.ZodNumber>;
188
306
  }, "strip", z.ZodTypeAny, {
189
307
  currency: string;
190
308
  transportCost: number;
@@ -193,6 +311,7 @@ export declare const createCommodityDealSchema: z.ZodObject<{
193
311
  waybillId: string;
194
312
  status?: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced" | undefined;
195
313
  notes?: string | undefined;
314
+ companyCommissionRate?: number | undefined;
196
315
  handlerUserId?: string | undefined;
197
316
  }, {
198
317
  purchaseCost: number;
@@ -201,6 +320,7 @@ export declare const createCommodityDealSchema: z.ZodObject<{
201
320
  currency?: string | undefined;
202
321
  notes?: string | undefined;
203
322
  transportCost?: number | undefined;
323
+ companyCommissionRate?: number | undefined;
204
324
  miscellaneousCost?: number | undefined;
205
325
  handlerUserId?: string | undefined;
206
326
  }>;
@@ -214,6 +334,7 @@ export declare const createCommodityDealSchema: z.ZodObject<{
214
334
  waybillId: string;
215
335
  status?: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced" | undefined;
216
336
  notes?: string | undefined;
337
+ companyCommissionRate?: number | undefined;
217
338
  handlerUserId?: string | undefined;
218
339
  };
219
340
  }, {
@@ -225,6 +346,7 @@ export declare const createCommodityDealSchema: z.ZodObject<{
225
346
  currency?: string | undefined;
226
347
  notes?: string | undefined;
227
348
  transportCost?: number | undefined;
349
+ companyCommissionRate?: number | undefined;
228
350
  miscellaneousCost?: number | undefined;
229
351
  handlerUserId?: string | undefined;
230
352
  };
@@ -241,11 +363,13 @@ export declare const updateCommodityDealSchema: z.ZodObject<{
241
363
  notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
242
364
  invoiceId: z.ZodOptional<z.ZodString>;
243
365
  handlerUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
366
+ companyCommissionRate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
244
367
  }, "strip", z.ZodTypeAny, {
245
368
  status?: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced" | undefined;
246
369
  currency?: string | undefined;
247
370
  notes?: string | null | undefined;
248
371
  transportCost?: number | undefined;
372
+ companyCommissionRate?: number | null | undefined;
249
373
  purchaseCost?: number | undefined;
250
374
  miscellaneousCost?: number | undefined;
251
375
  invoiceId?: string | undefined;
@@ -255,6 +379,7 @@ export declare const updateCommodityDealSchema: z.ZodObject<{
255
379
  currency?: string | undefined;
256
380
  notes?: string | null | undefined;
257
381
  transportCost?: number | undefined;
382
+ companyCommissionRate?: number | null | undefined;
258
383
  purchaseCost?: number | undefined;
259
384
  miscellaneousCost?: number | undefined;
260
385
  invoiceId?: string | undefined;
@@ -267,6 +392,7 @@ export declare const updateCommodityDealSchema: z.ZodObject<{
267
392
  currency?: string | undefined;
268
393
  notes?: string | null | undefined;
269
394
  transportCost?: number | undefined;
395
+ companyCommissionRate?: number | null | undefined;
270
396
  purchaseCost?: number | undefined;
271
397
  miscellaneousCost?: number | undefined;
272
398
  invoiceId?: string | undefined;
@@ -280,6 +406,7 @@ export declare const updateCommodityDealSchema: z.ZodObject<{
280
406
  currency?: string | undefined;
281
407
  notes?: string | null | undefined;
282
408
  transportCost?: number | undefined;
409
+ companyCommissionRate?: number | null | undefined;
283
410
  purchaseCost?: number | undefined;
284
411
  miscellaneousCost?: number | undefined;
285
412
  invoiceId?: string | undefined;
@@ -287,6 +414,71 @@ export declare const updateCommodityDealSchema: z.ZodObject<{
287
414
  };
288
415
  id?: string | undefined;
289
416
  }>;
417
+ export declare const createDealParticipantAttributesSchema: z.ZodObject<{
418
+ userId: z.ZodString;
419
+ capitalContributed: z.ZodNumber;
420
+ }, "strip", z.ZodTypeAny, {
421
+ userId: string;
422
+ capitalContributed: number;
423
+ }, {
424
+ userId: string;
425
+ capitalContributed: number;
426
+ }>;
427
+ export declare const updateDealParticipantAttributesSchema: z.ZodObject<{
428
+ capitalContributed: z.ZodNumber;
429
+ }, "strip", z.ZodTypeAny, {
430
+ capitalContributed: number;
431
+ }, {
432
+ capitalContributed: number;
433
+ }>;
434
+ export declare const createDealParticipantSchema: z.ZodObject<{
435
+ type: z.ZodLiteral<"commodity-deal-participants">;
436
+ attributes: z.ZodObject<{
437
+ userId: z.ZodString;
438
+ capitalContributed: z.ZodNumber;
439
+ }, "strip", z.ZodTypeAny, {
440
+ userId: string;
441
+ capitalContributed: number;
442
+ }, {
443
+ userId: string;
444
+ capitalContributed: number;
445
+ }>;
446
+ }, "strip", z.ZodTypeAny, {
447
+ type: "commodity-deal-participants";
448
+ attributes: {
449
+ userId: string;
450
+ capitalContributed: number;
451
+ };
452
+ }, {
453
+ type: "commodity-deal-participants";
454
+ attributes: {
455
+ userId: string;
456
+ capitalContributed: number;
457
+ };
458
+ }>;
459
+ export declare const updateDealParticipantSchema: z.ZodObject<{
460
+ type: z.ZodLiteral<"commodity-deal-participants">;
461
+ id: z.ZodOptional<z.ZodString>;
462
+ attributes: z.ZodObject<{
463
+ capitalContributed: z.ZodNumber;
464
+ }, "strip", z.ZodTypeAny, {
465
+ capitalContributed: number;
466
+ }, {
467
+ capitalContributed: number;
468
+ }>;
469
+ }, "strip", z.ZodTypeAny, {
470
+ type: "commodity-deal-participants";
471
+ attributes: {
472
+ capitalContributed: number;
473
+ };
474
+ id?: string | undefined;
475
+ }, {
476
+ type: "commodity-deal-participants";
477
+ attributes: {
478
+ capitalContributed: number;
479
+ };
480
+ id?: string | undefined;
481
+ }>;
290
482
  export declare const commodityDealResourceSchema: z.ZodObject<{
291
483
  type: z.ZodLiteral<string>;
292
484
  id: z.ZodString;
@@ -304,13 +496,42 @@ export declare const commodityDealResourceSchema: z.ZodObject<{
304
496
  currency: z.ZodDefault<z.ZodString>;
305
497
  status: z.ZodEnum<["draft", "in_transit", "invoiced", "paid", "cancelled"]>;
306
498
  notes: z.ZodNullable<z.ZodString>;
499
+ companyCommissionRate: z.ZodNullable<z.ZodNumber>;
500
+ participants: z.ZodOptional<z.ZodArray<z.ZodObject<{
501
+ userId: z.ZodString;
502
+ name: z.ZodOptional<z.ZodString>;
503
+ email: z.ZodOptional<z.ZodString>;
504
+ capitalContributed: z.ZodNumber;
505
+ ownershipPercent: z.ZodNumber;
506
+ earningsAmount: z.ZodNullable<z.ZodNumber>;
507
+ }, "strip", z.ZodTypeAny, {
508
+ userId: string;
509
+ capitalContributed: number;
510
+ ownershipPercent: number;
511
+ earningsAmount: number | null;
512
+ email?: string | undefined;
513
+ name?: string | undefined;
514
+ }, {
515
+ userId: string;
516
+ capitalContributed: number;
517
+ ownershipPercent: number;
518
+ earningsAmount: number | null;
519
+ email?: string | undefined;
520
+ name?: string | undefined;
521
+ }>, "many">>;
307
522
  computed: z.ZodObject<{
308
523
  totalCost: z.ZodNumber;
309
524
  saleAmount: z.ZodNullable<z.ZodNumber>;
310
525
  grossProfit: z.ZodNullable<z.ZodNumber>;
311
526
  commissionRate: z.ZodNullable<z.ZodNumber>;
527
+ staffCommissionRate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
312
528
  commissionAmount: z.ZodNullable<z.ZodNumber>;
529
+ staffCommissionAmount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
313
530
  companyNet: z.ZodNullable<z.ZodNumber>;
531
+ netAfterStaff: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
532
+ companyCommissionRate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
533
+ companyCommissionAmount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
534
+ investorPool: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
314
535
  isRealized: z.ZodBoolean;
315
536
  }, "strip", z.ZodTypeAny, {
316
537
  totalCost: number;
@@ -320,6 +541,12 @@ export declare const commodityDealResourceSchema: z.ZodObject<{
320
541
  commissionAmount: number | null;
321
542
  companyNet: number | null;
322
543
  isRealized: boolean;
544
+ companyCommissionRate?: number | null | undefined;
545
+ staffCommissionRate?: number | null | undefined;
546
+ staffCommissionAmount?: number | null | undefined;
547
+ netAfterStaff?: number | null | undefined;
548
+ companyCommissionAmount?: number | null | undefined;
549
+ investorPool?: number | null | undefined;
323
550
  }, {
324
551
  totalCost: number;
325
552
  saleAmount: number | null;
@@ -328,6 +555,12 @@ export declare const commodityDealResourceSchema: z.ZodObject<{
328
555
  commissionAmount: number | null;
329
556
  companyNet: number | null;
330
557
  isRealized: boolean;
558
+ companyCommissionRate?: number | null | undefined;
559
+ staffCommissionRate?: number | null | undefined;
560
+ staffCommissionAmount?: number | null | undefined;
561
+ netAfterStaff?: number | null | undefined;
562
+ companyCommissionAmount?: number | null | undefined;
563
+ investorPool?: number | null | undefined;
331
564
  }>;
332
565
  } & {
333
566
  createdAt: z.ZodString;
@@ -341,6 +574,7 @@ export declare const commodityDealResourceSchema: z.ZodObject<{
341
574
  buyerName: string | null;
342
575
  transportCost: number;
343
576
  organizationId: string;
577
+ companyCommissionRate: number | null;
344
578
  waybillNumber: string | null;
345
579
  purchaseCost: number;
346
580
  miscellaneousCost: number;
@@ -356,7 +590,21 @@ export declare const commodityDealResourceSchema: z.ZodObject<{
356
590
  commissionAmount: number | null;
357
591
  companyNet: number | null;
358
592
  isRealized: boolean;
593
+ companyCommissionRate?: number | null | undefined;
594
+ staffCommissionRate?: number | null | undefined;
595
+ staffCommissionAmount?: number | null | undefined;
596
+ netAfterStaff?: number | null | undefined;
597
+ companyCommissionAmount?: number | null | undefined;
598
+ investorPool?: number | null | undefined;
359
599
  };
600
+ participants?: {
601
+ userId: string;
602
+ capitalContributed: number;
603
+ ownershipPercent: number;
604
+ earningsAmount: number | null;
605
+ email?: string | undefined;
606
+ name?: string | undefined;
607
+ }[] | undefined;
360
608
  }, {
361
609
  status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
362
610
  createdAt: string;
@@ -365,6 +613,7 @@ export declare const commodityDealResourceSchema: z.ZodObject<{
365
613
  buyerName: string | null;
366
614
  transportCost: number;
367
615
  organizationId: string;
616
+ companyCommissionRate: number | null;
368
617
  waybillNumber: string | null;
369
618
  purchaseCost: number;
370
619
  miscellaneousCost: number;
@@ -380,8 +629,22 @@ export declare const commodityDealResourceSchema: z.ZodObject<{
380
629
  commissionAmount: number | null;
381
630
  companyNet: number | null;
382
631
  isRealized: boolean;
632
+ companyCommissionRate?: number | null | undefined;
633
+ staffCommissionRate?: number | null | undefined;
634
+ staffCommissionAmount?: number | null | undefined;
635
+ netAfterStaff?: number | null | undefined;
636
+ companyCommissionAmount?: number | null | undefined;
637
+ investorPool?: number | null | undefined;
383
638
  };
384
639
  currency?: string | undefined;
640
+ participants?: {
641
+ userId: string;
642
+ capitalContributed: number;
643
+ ownershipPercent: number;
644
+ earningsAmount: number | null;
645
+ email?: string | undefined;
646
+ name?: string | undefined;
647
+ }[] | undefined;
385
648
  }>;
386
649
  relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
387
650
  links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -398,6 +661,7 @@ export declare const commodityDealResourceSchema: z.ZodObject<{
398
661
  buyerName: string | null;
399
662
  transportCost: number;
400
663
  organizationId: string;
664
+ companyCommissionRate: number | null;
401
665
  waybillNumber: string | null;
402
666
  purchaseCost: number;
403
667
  miscellaneousCost: number;
@@ -413,7 +677,21 @@ export declare const commodityDealResourceSchema: z.ZodObject<{
413
677
  commissionAmount: number | null;
414
678
  companyNet: number | null;
415
679
  isRealized: boolean;
680
+ companyCommissionRate?: number | null | undefined;
681
+ staffCommissionRate?: number | null | undefined;
682
+ staffCommissionAmount?: number | null | undefined;
683
+ netAfterStaff?: number | null | undefined;
684
+ companyCommissionAmount?: number | null | undefined;
685
+ investorPool?: number | null | undefined;
416
686
  };
687
+ participants?: {
688
+ userId: string;
689
+ capitalContributed: number;
690
+ ownershipPercent: number;
691
+ earningsAmount: number | null;
692
+ email?: string | undefined;
693
+ name?: string | undefined;
694
+ }[] | undefined;
417
695
  };
418
696
  relationships?: Record<string, unknown> | undefined;
419
697
  links?: Record<string, string> | undefined;
@@ -429,6 +707,7 @@ export declare const commodityDealResourceSchema: z.ZodObject<{
429
707
  buyerName: string | null;
430
708
  transportCost: number;
431
709
  organizationId: string;
710
+ companyCommissionRate: number | null;
432
711
  waybillNumber: string | null;
433
712
  purchaseCost: number;
434
713
  miscellaneousCost: number;
@@ -444,8 +723,22 @@ export declare const commodityDealResourceSchema: z.ZodObject<{
444
723
  commissionAmount: number | null;
445
724
  companyNet: number | null;
446
725
  isRealized: boolean;
726
+ companyCommissionRate?: number | null | undefined;
727
+ staffCommissionRate?: number | null | undefined;
728
+ staffCommissionAmount?: number | null | undefined;
729
+ netAfterStaff?: number | null | undefined;
730
+ companyCommissionAmount?: number | null | undefined;
731
+ investorPool?: number | null | undefined;
447
732
  };
448
733
  currency?: string | undefined;
734
+ participants?: {
735
+ userId: string;
736
+ capitalContributed: number;
737
+ ownershipPercent: number;
738
+ earningsAmount: number | null;
739
+ email?: string | undefined;
740
+ name?: string | undefined;
741
+ }[] | undefined;
449
742
  };
450
743
  relationships?: Record<string, unknown> | undefined;
451
744
  links?: Record<string, string> | undefined;
@@ -469,13 +762,42 @@ export declare const commodityDealResponseSchema: z.ZodObject<{
469
762
  currency: z.ZodDefault<z.ZodString>;
470
763
  status: z.ZodEnum<["draft", "in_transit", "invoiced", "paid", "cancelled"]>;
471
764
  notes: z.ZodNullable<z.ZodString>;
765
+ companyCommissionRate: z.ZodNullable<z.ZodNumber>;
766
+ participants: z.ZodOptional<z.ZodArray<z.ZodObject<{
767
+ userId: z.ZodString;
768
+ name: z.ZodOptional<z.ZodString>;
769
+ email: z.ZodOptional<z.ZodString>;
770
+ capitalContributed: z.ZodNumber;
771
+ ownershipPercent: z.ZodNumber;
772
+ earningsAmount: z.ZodNullable<z.ZodNumber>;
773
+ }, "strip", z.ZodTypeAny, {
774
+ userId: string;
775
+ capitalContributed: number;
776
+ ownershipPercent: number;
777
+ earningsAmount: number | null;
778
+ email?: string | undefined;
779
+ name?: string | undefined;
780
+ }, {
781
+ userId: string;
782
+ capitalContributed: number;
783
+ ownershipPercent: number;
784
+ earningsAmount: number | null;
785
+ email?: string | undefined;
786
+ name?: string | undefined;
787
+ }>, "many">>;
472
788
  computed: z.ZodObject<{
473
789
  totalCost: z.ZodNumber;
474
790
  saleAmount: z.ZodNullable<z.ZodNumber>;
475
791
  grossProfit: z.ZodNullable<z.ZodNumber>;
476
792
  commissionRate: z.ZodNullable<z.ZodNumber>;
793
+ staffCommissionRate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
477
794
  commissionAmount: z.ZodNullable<z.ZodNumber>;
795
+ staffCommissionAmount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
478
796
  companyNet: z.ZodNullable<z.ZodNumber>;
797
+ netAfterStaff: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
798
+ companyCommissionRate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
799
+ companyCommissionAmount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
800
+ investorPool: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
479
801
  isRealized: z.ZodBoolean;
480
802
  }, "strip", z.ZodTypeAny, {
481
803
  totalCost: number;
@@ -485,6 +807,12 @@ export declare const commodityDealResponseSchema: z.ZodObject<{
485
807
  commissionAmount: number | null;
486
808
  companyNet: number | null;
487
809
  isRealized: boolean;
810
+ companyCommissionRate?: number | null | undefined;
811
+ staffCommissionRate?: number | null | undefined;
812
+ staffCommissionAmount?: number | null | undefined;
813
+ netAfterStaff?: number | null | undefined;
814
+ companyCommissionAmount?: number | null | undefined;
815
+ investorPool?: number | null | undefined;
488
816
  }, {
489
817
  totalCost: number;
490
818
  saleAmount: number | null;
@@ -493,6 +821,12 @@ export declare const commodityDealResponseSchema: z.ZodObject<{
493
821
  commissionAmount: number | null;
494
822
  companyNet: number | null;
495
823
  isRealized: boolean;
824
+ companyCommissionRate?: number | null | undefined;
825
+ staffCommissionRate?: number | null | undefined;
826
+ staffCommissionAmount?: number | null | undefined;
827
+ netAfterStaff?: number | null | undefined;
828
+ companyCommissionAmount?: number | null | undefined;
829
+ investorPool?: number | null | undefined;
496
830
  }>;
497
831
  } & {
498
832
  createdAt: z.ZodString;
@@ -506,6 +840,7 @@ export declare const commodityDealResponseSchema: z.ZodObject<{
506
840
  buyerName: string | null;
507
841
  transportCost: number;
508
842
  organizationId: string;
843
+ companyCommissionRate: number | null;
509
844
  waybillNumber: string | null;
510
845
  purchaseCost: number;
511
846
  miscellaneousCost: number;
@@ -521,7 +856,21 @@ export declare const commodityDealResponseSchema: z.ZodObject<{
521
856
  commissionAmount: number | null;
522
857
  companyNet: number | null;
523
858
  isRealized: boolean;
859
+ companyCommissionRate?: number | null | undefined;
860
+ staffCommissionRate?: number | null | undefined;
861
+ staffCommissionAmount?: number | null | undefined;
862
+ netAfterStaff?: number | null | undefined;
863
+ companyCommissionAmount?: number | null | undefined;
864
+ investorPool?: number | null | undefined;
524
865
  };
866
+ participants?: {
867
+ userId: string;
868
+ capitalContributed: number;
869
+ ownershipPercent: number;
870
+ earningsAmount: number | null;
871
+ email?: string | undefined;
872
+ name?: string | undefined;
873
+ }[] | undefined;
525
874
  }, {
526
875
  status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
527
876
  createdAt: string;
@@ -530,6 +879,7 @@ export declare const commodityDealResponseSchema: z.ZodObject<{
530
879
  buyerName: string | null;
531
880
  transportCost: number;
532
881
  organizationId: string;
882
+ companyCommissionRate: number | null;
533
883
  waybillNumber: string | null;
534
884
  purchaseCost: number;
535
885
  miscellaneousCost: number;
@@ -545,8 +895,22 @@ export declare const commodityDealResponseSchema: z.ZodObject<{
545
895
  commissionAmount: number | null;
546
896
  companyNet: number | null;
547
897
  isRealized: boolean;
898
+ companyCommissionRate?: number | null | undefined;
899
+ staffCommissionRate?: number | null | undefined;
900
+ staffCommissionAmount?: number | null | undefined;
901
+ netAfterStaff?: number | null | undefined;
902
+ companyCommissionAmount?: number | null | undefined;
903
+ investorPool?: number | null | undefined;
548
904
  };
549
905
  currency?: string | undefined;
906
+ participants?: {
907
+ userId: string;
908
+ capitalContributed: number;
909
+ ownershipPercent: number;
910
+ earningsAmount: number | null;
911
+ email?: string | undefined;
912
+ name?: string | undefined;
913
+ }[] | undefined;
550
914
  }>;
551
915
  relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
552
916
  links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -563,6 +927,7 @@ export declare const commodityDealResponseSchema: z.ZodObject<{
563
927
  buyerName: string | null;
564
928
  transportCost: number;
565
929
  organizationId: string;
930
+ companyCommissionRate: number | null;
566
931
  waybillNumber: string | null;
567
932
  purchaseCost: number;
568
933
  miscellaneousCost: number;
@@ -578,7 +943,21 @@ export declare const commodityDealResponseSchema: z.ZodObject<{
578
943
  commissionAmount: number | null;
579
944
  companyNet: number | null;
580
945
  isRealized: boolean;
946
+ companyCommissionRate?: number | null | undefined;
947
+ staffCommissionRate?: number | null | undefined;
948
+ staffCommissionAmount?: number | null | undefined;
949
+ netAfterStaff?: number | null | undefined;
950
+ companyCommissionAmount?: number | null | undefined;
951
+ investorPool?: number | null | undefined;
581
952
  };
953
+ participants?: {
954
+ userId: string;
955
+ capitalContributed: number;
956
+ ownershipPercent: number;
957
+ earningsAmount: number | null;
958
+ email?: string | undefined;
959
+ name?: string | undefined;
960
+ }[] | undefined;
582
961
  };
583
962
  relationships?: Record<string, unknown> | undefined;
584
963
  links?: Record<string, string> | undefined;
@@ -594,6 +973,7 @@ export declare const commodityDealResponseSchema: z.ZodObject<{
594
973
  buyerName: string | null;
595
974
  transportCost: number;
596
975
  organizationId: string;
976
+ companyCommissionRate: number | null;
597
977
  waybillNumber: string | null;
598
978
  purchaseCost: number;
599
979
  miscellaneousCost: number;
@@ -609,8 +989,22 @@ export declare const commodityDealResponseSchema: z.ZodObject<{
609
989
  commissionAmount: number | null;
610
990
  companyNet: number | null;
611
991
  isRealized: boolean;
992
+ companyCommissionRate?: number | null | undefined;
993
+ staffCommissionRate?: number | null | undefined;
994
+ staffCommissionAmount?: number | null | undefined;
995
+ netAfterStaff?: number | null | undefined;
996
+ companyCommissionAmount?: number | null | undefined;
997
+ investorPool?: number | null | undefined;
612
998
  };
613
999
  currency?: string | undefined;
1000
+ participants?: {
1001
+ userId: string;
1002
+ capitalContributed: number;
1003
+ ownershipPercent: number;
1004
+ earningsAmount: number | null;
1005
+ email?: string | undefined;
1006
+ name?: string | undefined;
1007
+ }[] | undefined;
614
1008
  };
615
1009
  relationships?: Record<string, unknown> | undefined;
616
1010
  links?: Record<string, string> | undefined;
@@ -653,6 +1047,7 @@ export declare const commodityDealResponseSchema: z.ZodObject<{
653
1047
  buyerName: string | null;
654
1048
  transportCost: number;
655
1049
  organizationId: string;
1050
+ companyCommissionRate: number | null;
656
1051
  waybillNumber: string | null;
657
1052
  purchaseCost: number;
658
1053
  miscellaneousCost: number;
@@ -668,7 +1063,21 @@ export declare const commodityDealResponseSchema: z.ZodObject<{
668
1063
  commissionAmount: number | null;
669
1064
  companyNet: number | null;
670
1065
  isRealized: boolean;
1066
+ companyCommissionRate?: number | null | undefined;
1067
+ staffCommissionRate?: number | null | undefined;
1068
+ staffCommissionAmount?: number | null | undefined;
1069
+ netAfterStaff?: number | null | undefined;
1070
+ companyCommissionAmount?: number | null | undefined;
1071
+ investorPool?: number | null | undefined;
671
1072
  };
1073
+ participants?: {
1074
+ userId: string;
1075
+ capitalContributed: number;
1076
+ ownershipPercent: number;
1077
+ earningsAmount: number | null;
1078
+ email?: string | undefined;
1079
+ name?: string | undefined;
1080
+ }[] | undefined;
672
1081
  };
673
1082
  relationships?: Record<string, unknown> | undefined;
674
1083
  links?: Record<string, string> | undefined;
@@ -696,6 +1105,7 @@ export declare const commodityDealResponseSchema: z.ZodObject<{
696
1105
  buyerName: string | null;
697
1106
  transportCost: number;
698
1107
  organizationId: string;
1108
+ companyCommissionRate: number | null;
699
1109
  waybillNumber: string | null;
700
1110
  purchaseCost: number;
701
1111
  miscellaneousCost: number;
@@ -711,8 +1121,22 @@ export declare const commodityDealResponseSchema: z.ZodObject<{
711
1121
  commissionAmount: number | null;
712
1122
  companyNet: number | null;
713
1123
  isRealized: boolean;
1124
+ companyCommissionRate?: number | null | undefined;
1125
+ staffCommissionRate?: number | null | undefined;
1126
+ staffCommissionAmount?: number | null | undefined;
1127
+ netAfterStaff?: number | null | undefined;
1128
+ companyCommissionAmount?: number | null | undefined;
1129
+ investorPool?: number | null | undefined;
714
1130
  };
715
1131
  currency?: string | undefined;
1132
+ participants?: {
1133
+ userId: string;
1134
+ capitalContributed: number;
1135
+ ownershipPercent: number;
1136
+ earningsAmount: number | null;
1137
+ email?: string | undefined;
1138
+ name?: string | undefined;
1139
+ }[] | undefined;
716
1140
  };
717
1141
  relationships?: Record<string, unknown> | undefined;
718
1142
  links?: Record<string, string> | undefined;
@@ -747,13 +1171,42 @@ export declare const commodityDealListResponseSchema: z.ZodObject<{
747
1171
  currency: z.ZodDefault<z.ZodString>;
748
1172
  status: z.ZodEnum<["draft", "in_transit", "invoiced", "paid", "cancelled"]>;
749
1173
  notes: z.ZodNullable<z.ZodString>;
1174
+ companyCommissionRate: z.ZodNullable<z.ZodNumber>;
1175
+ participants: z.ZodOptional<z.ZodArray<z.ZodObject<{
1176
+ userId: z.ZodString;
1177
+ name: z.ZodOptional<z.ZodString>;
1178
+ email: z.ZodOptional<z.ZodString>;
1179
+ capitalContributed: z.ZodNumber;
1180
+ ownershipPercent: z.ZodNumber;
1181
+ earningsAmount: z.ZodNullable<z.ZodNumber>;
1182
+ }, "strip", z.ZodTypeAny, {
1183
+ userId: string;
1184
+ capitalContributed: number;
1185
+ ownershipPercent: number;
1186
+ earningsAmount: number | null;
1187
+ email?: string | undefined;
1188
+ name?: string | undefined;
1189
+ }, {
1190
+ userId: string;
1191
+ capitalContributed: number;
1192
+ ownershipPercent: number;
1193
+ earningsAmount: number | null;
1194
+ email?: string | undefined;
1195
+ name?: string | undefined;
1196
+ }>, "many">>;
750
1197
  computed: z.ZodObject<{
751
1198
  totalCost: z.ZodNumber;
752
1199
  saleAmount: z.ZodNullable<z.ZodNumber>;
753
1200
  grossProfit: z.ZodNullable<z.ZodNumber>;
754
1201
  commissionRate: z.ZodNullable<z.ZodNumber>;
1202
+ staffCommissionRate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
755
1203
  commissionAmount: z.ZodNullable<z.ZodNumber>;
1204
+ staffCommissionAmount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
756
1205
  companyNet: z.ZodNullable<z.ZodNumber>;
1206
+ netAfterStaff: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1207
+ companyCommissionRate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1208
+ companyCommissionAmount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1209
+ investorPool: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
757
1210
  isRealized: z.ZodBoolean;
758
1211
  }, "strip", z.ZodTypeAny, {
759
1212
  totalCost: number;
@@ -763,6 +1216,12 @@ export declare const commodityDealListResponseSchema: z.ZodObject<{
763
1216
  commissionAmount: number | null;
764
1217
  companyNet: number | null;
765
1218
  isRealized: boolean;
1219
+ companyCommissionRate?: number | null | undefined;
1220
+ staffCommissionRate?: number | null | undefined;
1221
+ staffCommissionAmount?: number | null | undefined;
1222
+ netAfterStaff?: number | null | undefined;
1223
+ companyCommissionAmount?: number | null | undefined;
1224
+ investorPool?: number | null | undefined;
766
1225
  }, {
767
1226
  totalCost: number;
768
1227
  saleAmount: number | null;
@@ -771,6 +1230,12 @@ export declare const commodityDealListResponseSchema: z.ZodObject<{
771
1230
  commissionAmount: number | null;
772
1231
  companyNet: number | null;
773
1232
  isRealized: boolean;
1233
+ companyCommissionRate?: number | null | undefined;
1234
+ staffCommissionRate?: number | null | undefined;
1235
+ staffCommissionAmount?: number | null | undefined;
1236
+ netAfterStaff?: number | null | undefined;
1237
+ companyCommissionAmount?: number | null | undefined;
1238
+ investorPool?: number | null | undefined;
774
1239
  }>;
775
1240
  } & {
776
1241
  createdAt: z.ZodString;
@@ -784,6 +1249,7 @@ export declare const commodityDealListResponseSchema: z.ZodObject<{
784
1249
  buyerName: string | null;
785
1250
  transportCost: number;
786
1251
  organizationId: string;
1252
+ companyCommissionRate: number | null;
787
1253
  waybillNumber: string | null;
788
1254
  purchaseCost: number;
789
1255
  miscellaneousCost: number;
@@ -799,7 +1265,21 @@ export declare const commodityDealListResponseSchema: z.ZodObject<{
799
1265
  commissionAmount: number | null;
800
1266
  companyNet: number | null;
801
1267
  isRealized: boolean;
1268
+ companyCommissionRate?: number | null | undefined;
1269
+ staffCommissionRate?: number | null | undefined;
1270
+ staffCommissionAmount?: number | null | undefined;
1271
+ netAfterStaff?: number | null | undefined;
1272
+ companyCommissionAmount?: number | null | undefined;
1273
+ investorPool?: number | null | undefined;
802
1274
  };
1275
+ participants?: {
1276
+ userId: string;
1277
+ capitalContributed: number;
1278
+ ownershipPercent: number;
1279
+ earningsAmount: number | null;
1280
+ email?: string | undefined;
1281
+ name?: string | undefined;
1282
+ }[] | undefined;
803
1283
  }, {
804
1284
  status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
805
1285
  createdAt: string;
@@ -808,6 +1288,7 @@ export declare const commodityDealListResponseSchema: z.ZodObject<{
808
1288
  buyerName: string | null;
809
1289
  transportCost: number;
810
1290
  organizationId: string;
1291
+ companyCommissionRate: number | null;
811
1292
  waybillNumber: string | null;
812
1293
  purchaseCost: number;
813
1294
  miscellaneousCost: number;
@@ -823,8 +1304,22 @@ export declare const commodityDealListResponseSchema: z.ZodObject<{
823
1304
  commissionAmount: number | null;
824
1305
  companyNet: number | null;
825
1306
  isRealized: boolean;
1307
+ companyCommissionRate?: number | null | undefined;
1308
+ staffCommissionRate?: number | null | undefined;
1309
+ staffCommissionAmount?: number | null | undefined;
1310
+ netAfterStaff?: number | null | undefined;
1311
+ companyCommissionAmount?: number | null | undefined;
1312
+ investorPool?: number | null | undefined;
826
1313
  };
827
1314
  currency?: string | undefined;
1315
+ participants?: {
1316
+ userId: string;
1317
+ capitalContributed: number;
1318
+ ownershipPercent: number;
1319
+ earningsAmount: number | null;
1320
+ email?: string | undefined;
1321
+ name?: string | undefined;
1322
+ }[] | undefined;
828
1323
  }>;
829
1324
  relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
830
1325
  links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -841,6 +1336,7 @@ export declare const commodityDealListResponseSchema: z.ZodObject<{
841
1336
  buyerName: string | null;
842
1337
  transportCost: number;
843
1338
  organizationId: string;
1339
+ companyCommissionRate: number | null;
844
1340
  waybillNumber: string | null;
845
1341
  purchaseCost: number;
846
1342
  miscellaneousCost: number;
@@ -856,7 +1352,21 @@ export declare const commodityDealListResponseSchema: z.ZodObject<{
856
1352
  commissionAmount: number | null;
857
1353
  companyNet: number | null;
858
1354
  isRealized: boolean;
1355
+ companyCommissionRate?: number | null | undefined;
1356
+ staffCommissionRate?: number | null | undefined;
1357
+ staffCommissionAmount?: number | null | undefined;
1358
+ netAfterStaff?: number | null | undefined;
1359
+ companyCommissionAmount?: number | null | undefined;
1360
+ investorPool?: number | null | undefined;
859
1361
  };
1362
+ participants?: {
1363
+ userId: string;
1364
+ capitalContributed: number;
1365
+ ownershipPercent: number;
1366
+ earningsAmount: number | null;
1367
+ email?: string | undefined;
1368
+ name?: string | undefined;
1369
+ }[] | undefined;
860
1370
  };
861
1371
  relationships?: Record<string, unknown> | undefined;
862
1372
  links?: Record<string, string> | undefined;
@@ -872,6 +1382,7 @@ export declare const commodityDealListResponseSchema: z.ZodObject<{
872
1382
  buyerName: string | null;
873
1383
  transportCost: number;
874
1384
  organizationId: string;
1385
+ companyCommissionRate: number | null;
875
1386
  waybillNumber: string | null;
876
1387
  purchaseCost: number;
877
1388
  miscellaneousCost: number;
@@ -887,8 +1398,22 @@ export declare const commodityDealListResponseSchema: z.ZodObject<{
887
1398
  commissionAmount: number | null;
888
1399
  companyNet: number | null;
889
1400
  isRealized: boolean;
1401
+ companyCommissionRate?: number | null | undefined;
1402
+ staffCommissionRate?: number | null | undefined;
1403
+ staffCommissionAmount?: number | null | undefined;
1404
+ netAfterStaff?: number | null | undefined;
1405
+ companyCommissionAmount?: number | null | undefined;
1406
+ investorPool?: number | null | undefined;
890
1407
  };
891
1408
  currency?: string | undefined;
1409
+ participants?: {
1410
+ userId: string;
1411
+ capitalContributed: number;
1412
+ ownershipPercent: number;
1413
+ earningsAmount: number | null;
1414
+ email?: string | undefined;
1415
+ name?: string | undefined;
1416
+ }[] | undefined;
892
1417
  };
893
1418
  relationships?: Record<string, unknown> | undefined;
894
1419
  links?: Record<string, string> | undefined;
@@ -931,6 +1456,7 @@ export declare const commodityDealListResponseSchema: z.ZodObject<{
931
1456
  buyerName: string | null;
932
1457
  transportCost: number;
933
1458
  organizationId: string;
1459
+ companyCommissionRate: number | null;
934
1460
  waybillNumber: string | null;
935
1461
  purchaseCost: number;
936
1462
  miscellaneousCost: number;
@@ -946,7 +1472,21 @@ export declare const commodityDealListResponseSchema: z.ZodObject<{
946
1472
  commissionAmount: number | null;
947
1473
  companyNet: number | null;
948
1474
  isRealized: boolean;
1475
+ companyCommissionRate?: number | null | undefined;
1476
+ staffCommissionRate?: number | null | undefined;
1477
+ staffCommissionAmount?: number | null | undefined;
1478
+ netAfterStaff?: number | null | undefined;
1479
+ companyCommissionAmount?: number | null | undefined;
1480
+ investorPool?: number | null | undefined;
949
1481
  };
1482
+ participants?: {
1483
+ userId: string;
1484
+ capitalContributed: number;
1485
+ ownershipPercent: number;
1486
+ earningsAmount: number | null;
1487
+ email?: string | undefined;
1488
+ name?: string | undefined;
1489
+ }[] | undefined;
950
1490
  };
951
1491
  relationships?: Record<string, unknown> | undefined;
952
1492
  links?: Record<string, string> | undefined;
@@ -974,6 +1514,7 @@ export declare const commodityDealListResponseSchema: z.ZodObject<{
974
1514
  buyerName: string | null;
975
1515
  transportCost: number;
976
1516
  organizationId: string;
1517
+ companyCommissionRate: number | null;
977
1518
  waybillNumber: string | null;
978
1519
  purchaseCost: number;
979
1520
  miscellaneousCost: number;
@@ -989,8 +1530,22 @@ export declare const commodityDealListResponseSchema: z.ZodObject<{
989
1530
  commissionAmount: number | null;
990
1531
  companyNet: number | null;
991
1532
  isRealized: boolean;
1533
+ companyCommissionRate?: number | null | undefined;
1534
+ staffCommissionRate?: number | null | undefined;
1535
+ staffCommissionAmount?: number | null | undefined;
1536
+ netAfterStaff?: number | null | undefined;
1537
+ companyCommissionAmount?: number | null | undefined;
1538
+ investorPool?: number | null | undefined;
992
1539
  };
993
1540
  currency?: string | undefined;
1541
+ participants?: {
1542
+ userId: string;
1543
+ capitalContributed: number;
1544
+ ownershipPercent: number;
1545
+ earningsAmount: number | null;
1546
+ email?: string | undefined;
1547
+ name?: string | undefined;
1548
+ }[] | undefined;
994
1549
  };
995
1550
  relationships?: Record<string, unknown> | undefined;
996
1551
  links?: Record<string, string> | undefined;
@@ -1015,6 +1570,8 @@ export declare const commodityDealSummarySchema: z.ZodObject<{
1015
1570
  grossProfitOnPaidDeals: z.ZodNumber;
1016
1571
  totalCommissionOnPaidDeals: z.ZodNumber;
1017
1572
  companyNetOnPaidDeals: z.ZodNumber;
1573
+ totalCompanyCommissionOnPaidDeals: z.ZodOptional<z.ZodNumber>;
1574
+ totalInvestorPoolOnPaidDeals: z.ZodOptional<z.ZodNumber>;
1018
1575
  unrealizedGrossProfit: z.ZodNumber;
1019
1576
  currency: z.ZodDefault<z.ZodString>;
1020
1577
  }, "strip", z.ZodTypeAny, {
@@ -1027,6 +1584,8 @@ export declare const commodityDealSummarySchema: z.ZodObject<{
1027
1584
  totalCommissionOnPaidDeals: number;
1028
1585
  companyNetOnPaidDeals: number;
1029
1586
  unrealizedGrossProfit: number;
1587
+ totalCompanyCommissionOnPaidDeals?: number | undefined;
1588
+ totalInvestorPoolOnPaidDeals?: number | undefined;
1030
1589
  }, {
1031
1590
  paidDealCount: number;
1032
1591
  invoicedUnpaidCount: number;
@@ -1037,6 +1596,8 @@ export declare const commodityDealSummarySchema: z.ZodObject<{
1037
1596
  companyNetOnPaidDeals: number;
1038
1597
  unrealizedGrossProfit: number;
1039
1598
  currency?: string | undefined;
1599
+ totalCompanyCommissionOnPaidDeals?: number | undefined;
1600
+ totalInvestorPoolOnPaidDeals?: number | undefined;
1040
1601
  }>;
1041
1602
  export declare const commodityDealSummaryResponseSchema: z.ZodObject<{
1042
1603
  data: z.ZodObject<{
@@ -1047,6 +1608,8 @@ export declare const commodityDealSummaryResponseSchema: z.ZodObject<{
1047
1608
  grossProfitOnPaidDeals: z.ZodNumber;
1048
1609
  totalCommissionOnPaidDeals: z.ZodNumber;
1049
1610
  companyNetOnPaidDeals: z.ZodNumber;
1611
+ totalCompanyCommissionOnPaidDeals: z.ZodOptional<z.ZodNumber>;
1612
+ totalInvestorPoolOnPaidDeals: z.ZodOptional<z.ZodNumber>;
1050
1613
  unrealizedGrossProfit: z.ZodNumber;
1051
1614
  currency: z.ZodDefault<z.ZodString>;
1052
1615
  }, "strip", z.ZodTypeAny, {
@@ -1059,6 +1622,8 @@ export declare const commodityDealSummaryResponseSchema: z.ZodObject<{
1059
1622
  totalCommissionOnPaidDeals: number;
1060
1623
  companyNetOnPaidDeals: number;
1061
1624
  unrealizedGrossProfit: number;
1625
+ totalCompanyCommissionOnPaidDeals?: number | undefined;
1626
+ totalInvestorPoolOnPaidDeals?: number | undefined;
1062
1627
  }, {
1063
1628
  paidDealCount: number;
1064
1629
  invoicedUnpaidCount: number;
@@ -1069,6 +1634,8 @@ export declare const commodityDealSummaryResponseSchema: z.ZodObject<{
1069
1634
  companyNetOnPaidDeals: number;
1070
1635
  unrealizedGrossProfit: number;
1071
1636
  currency?: string | undefined;
1637
+ totalCompanyCommissionOnPaidDeals?: number | undefined;
1638
+ totalInvestorPoolOnPaidDeals?: number | undefined;
1072
1639
  }>;
1073
1640
  }, "strip", z.ZodTypeAny, {
1074
1641
  data: {
@@ -1081,6 +1648,8 @@ export declare const commodityDealSummaryResponseSchema: z.ZodObject<{
1081
1648
  totalCommissionOnPaidDeals: number;
1082
1649
  companyNetOnPaidDeals: number;
1083
1650
  unrealizedGrossProfit: number;
1651
+ totalCompanyCommissionOnPaidDeals?: number | undefined;
1652
+ totalInvestorPoolOnPaidDeals?: number | undefined;
1084
1653
  };
1085
1654
  }, {
1086
1655
  data: {
@@ -1093,6 +1662,96 @@ export declare const commodityDealSummaryResponseSchema: z.ZodObject<{
1093
1662
  companyNetOnPaidDeals: number;
1094
1663
  unrealizedGrossProfit: number;
1095
1664
  currency?: string | undefined;
1665
+ totalCompanyCommissionOnPaidDeals?: number | undefined;
1666
+ totalInvestorPoolOnPaidDeals?: number | undefined;
1667
+ };
1668
+ }>;
1669
+ export declare const myEarningsAttributesSchema: z.ZodObject<{
1670
+ realizedEarnings: z.ZodNumber;
1671
+ projectedEarnings: z.ZodNumber;
1672
+ capitalDeployed: z.ZodNumber;
1673
+ dealCount: z.ZodNumber;
1674
+ currency: z.ZodDefault<z.ZodString>;
1675
+ }, "strip", z.ZodTypeAny, {
1676
+ currency: string;
1677
+ realizedEarnings: number;
1678
+ projectedEarnings: number;
1679
+ capitalDeployed: number;
1680
+ dealCount: number;
1681
+ }, {
1682
+ realizedEarnings: number;
1683
+ projectedEarnings: number;
1684
+ capitalDeployed: number;
1685
+ dealCount: number;
1686
+ currency?: string | undefined;
1687
+ }>;
1688
+ export declare const myEarningsResponseSchema: z.ZodObject<{
1689
+ data: z.ZodObject<{
1690
+ type: z.ZodLiteral<"investor-earnings">;
1691
+ id: z.ZodString;
1692
+ attributes: z.ZodObject<{
1693
+ realizedEarnings: z.ZodNumber;
1694
+ projectedEarnings: z.ZodNumber;
1695
+ capitalDeployed: z.ZodNumber;
1696
+ dealCount: z.ZodNumber;
1697
+ currency: z.ZodDefault<z.ZodString>;
1698
+ }, "strip", z.ZodTypeAny, {
1699
+ currency: string;
1700
+ realizedEarnings: number;
1701
+ projectedEarnings: number;
1702
+ capitalDeployed: number;
1703
+ dealCount: number;
1704
+ }, {
1705
+ realizedEarnings: number;
1706
+ projectedEarnings: number;
1707
+ capitalDeployed: number;
1708
+ dealCount: number;
1709
+ currency?: string | undefined;
1710
+ }>;
1711
+ }, "strip", z.ZodTypeAny, {
1712
+ type: "investor-earnings";
1713
+ id: string;
1714
+ attributes: {
1715
+ currency: string;
1716
+ realizedEarnings: number;
1717
+ projectedEarnings: number;
1718
+ capitalDeployed: number;
1719
+ dealCount: number;
1720
+ };
1721
+ }, {
1722
+ type: "investor-earnings";
1723
+ id: string;
1724
+ attributes: {
1725
+ realizedEarnings: number;
1726
+ projectedEarnings: number;
1727
+ capitalDeployed: number;
1728
+ dealCount: number;
1729
+ currency?: string | undefined;
1730
+ };
1731
+ }>;
1732
+ }, "strip", z.ZodTypeAny, {
1733
+ data: {
1734
+ type: "investor-earnings";
1735
+ id: string;
1736
+ attributes: {
1737
+ currency: string;
1738
+ realizedEarnings: number;
1739
+ projectedEarnings: number;
1740
+ capitalDeployed: number;
1741
+ dealCount: number;
1742
+ };
1743
+ };
1744
+ }, {
1745
+ data: {
1746
+ type: "investor-earnings";
1747
+ id: string;
1748
+ attributes: {
1749
+ realizedEarnings: number;
1750
+ projectedEarnings: number;
1751
+ capitalDeployed: number;
1752
+ dealCount: number;
1753
+ currency?: string | undefined;
1754
+ };
1096
1755
  };
1097
1756
  }>;
1098
1757
  export type CommodityDealStatus = z.infer<typeof commodityDealStatusSchema>;
@@ -1106,4 +1765,7 @@ export type CommodityDealResponse = z.infer<typeof commodityDealResponseSchema>;
1106
1765
  export type CommodityDealListResponse = z.infer<typeof commodityDealListResponseSchema>;
1107
1766
  export type CommodityDealSummary = z.infer<typeof commodityDealSummarySchema>;
1108
1767
  export type CommodityDealSummaryResponse = z.infer<typeof commodityDealSummaryResponseSchema>;
1768
+ export type CreateDealParticipantInput = z.infer<typeof createDealParticipantSchema>;
1769
+ export type UpdateDealParticipantInput = z.infer<typeof updateDealParticipantSchema>;
1770
+ export type MyEarningsResponse = z.infer<typeof myEarningsResponseSchema>;
1109
1771
  //# sourceMappingURL=commodity-deals.schemas.d.ts.map