@deepintel-ltd/farmpro-contracts 1.22.3 → 1.23.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.
Files changed (50) hide show
  1. package/dist/index.d.ts +6 -0
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +6 -0
  4. package/dist/routes/commodity-deals.routes.d.ts +175 -0
  5. package/dist/routes/commodity-deals.routes.d.ts.map +1 -1
  6. package/dist/routes/index.d.ts +9 -0
  7. package/dist/routes/index.d.ts.map +1 -1
  8. package/dist/routes/index.js +6 -0
  9. package/dist/routes/invoices.routes.d.ts +189 -42
  10. package/dist/routes/invoices.routes.d.ts.map +1 -1
  11. package/dist/routes/livestock-groups.routes.d.ts +308 -0
  12. package/dist/routes/livestock-groups.routes.d.ts.map +1 -1
  13. package/dist/routes/organization-capabilities.routes.d.ts +1671 -0
  14. package/dist/routes/organization-capabilities.routes.d.ts.map +1 -0
  15. package/dist/routes/organization-capabilities.routes.js +74 -0
  16. package/dist/routes/purchase-orders.routes.d.ts +2061 -0
  17. package/dist/routes/purchase-orders.routes.d.ts.map +1 -0
  18. package/dist/routes/purchase-orders.routes.js +55 -0
  19. package/dist/routes/staff.routes.d.ts +84 -0
  20. package/dist/routes/staff.routes.d.ts.map +1 -1
  21. package/dist/routes/trade-cash-events.routes.d.ts +3837 -0
  22. package/dist/routes/trade-cash-events.routes.d.ts.map +1 -0
  23. package/dist/routes/trade-cash-events.routes.js +126 -0
  24. package/dist/routes/waybills.routes.d.ts +210 -0
  25. package/dist/routes/waybills.routes.d.ts.map +1 -1
  26. package/dist/schemas/commodity-deals.schemas.d.ts +98 -0
  27. package/dist/schemas/commodity-deals.schemas.d.ts.map +1 -1
  28. package/dist/schemas/commodity-deals.schemas.js +7 -0
  29. package/dist/schemas/invoices.schemas.d.ts +144 -30
  30. package/dist/schemas/invoices.schemas.d.ts.map +1 -1
  31. package/dist/schemas/invoices.schemas.js +8 -2
  32. package/dist/schemas/livestock-groups.schemas.d.ts +302 -0
  33. package/dist/schemas/livestock-groups.schemas.d.ts.map +1 -1
  34. package/dist/schemas/livestock-groups.schemas.js +22 -0
  35. package/dist/schemas/organization-capabilities.schemas.d.ts +355 -0
  36. package/dist/schemas/organization-capabilities.schemas.d.ts.map +1 -0
  37. package/dist/schemas/organization-capabilities.schemas.js +19 -0
  38. package/dist/schemas/purchase-orders.schemas.d.ts +1031 -0
  39. package/dist/schemas/purchase-orders.schemas.d.ts.map +1 -0
  40. package/dist/schemas/purchase-orders.schemas.js +49 -0
  41. package/dist/schemas/staff.schemas.d.ts +76 -0
  42. package/dist/schemas/staff.schemas.d.ts.map +1 -1
  43. package/dist/schemas/staff.schemas.js +6 -0
  44. package/dist/schemas/trade-cash-events.schemas.d.ts +1524 -0
  45. package/dist/schemas/trade-cash-events.schemas.d.ts.map +1 -0
  46. package/dist/schemas/trade-cash-events.schemas.js +131 -0
  47. package/dist/schemas/waybills.schemas.d.ts +168 -0
  48. package/dist/schemas/waybills.schemas.d.ts.map +1 -1
  49. package/dist/schemas/waybills.schemas.js +9 -0
  50. package/package.json +1 -1
@@ -0,0 +1,1524 @@
1
+ import { z } from 'zod';
2
+ export declare const tradeCashEventTypeSchema: z.ZodEnum<["capital_in", "capital_out", "commission_payout", "supplier_payment", "buyer_receipt"]>;
3
+ export declare const tradeCashPartyTypeSchema: z.ZodEnum<["investor", "staff", "supplier", "buyer", "broker", "other"]>;
4
+ export declare const tradeCashEventAttributesSchema: z.ZodObject<{
5
+ organizationId: z.ZodString;
6
+ type: z.ZodEnum<["capital_in", "capital_out", "commission_payout", "supplier_payment", "buyer_receipt"]>;
7
+ partyType: z.ZodEnum<["investor", "staff", "supplier", "buyer", "broker", "other"]>;
8
+ partyId: z.ZodString;
9
+ partyName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
+ amount: z.ZodNumber;
11
+ currency: z.ZodDefault<z.ZodString>;
12
+ occurredAt: z.ZodString;
13
+ method: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ reference: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ dealId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ invoiceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ } & {
19
+ createdAt: z.ZodString;
20
+ updatedAt: z.ZodString;
21
+ }, "strip", z.ZodTypeAny, {
22
+ type: "capital_in" | "capital_out" | "commission_payout" | "supplier_payment" | "buyer_receipt";
23
+ createdAt: string;
24
+ updatedAt: string;
25
+ currency: string;
26
+ occurredAt: string;
27
+ amount: number;
28
+ organizationId: string;
29
+ partyType: "other" | "supplier" | "buyer" | "investor" | "staff" | "broker";
30
+ partyId: string;
31
+ method?: string | null | undefined;
32
+ notes?: string | null | undefined;
33
+ invoiceId?: string | null | undefined;
34
+ reference?: string | null | undefined;
35
+ partyName?: string | null | undefined;
36
+ dealId?: string | null | undefined;
37
+ }, {
38
+ type: "capital_in" | "capital_out" | "commission_payout" | "supplier_payment" | "buyer_receipt";
39
+ createdAt: string;
40
+ updatedAt: string;
41
+ occurredAt: string;
42
+ amount: number;
43
+ organizationId: string;
44
+ partyType: "other" | "supplier" | "buyer" | "investor" | "staff" | "broker";
45
+ partyId: string;
46
+ method?: string | null | undefined;
47
+ currency?: string | undefined;
48
+ notes?: string | null | undefined;
49
+ invoiceId?: string | null | undefined;
50
+ reference?: string | null | undefined;
51
+ partyName?: string | null | undefined;
52
+ dealId?: string | null | undefined;
53
+ }>;
54
+ export declare const createTradeCashEventAttributesSchema: z.ZodObject<{
55
+ type: z.ZodEnum<["capital_in", "capital_out", "commission_payout", "supplier_payment", "buyer_receipt"]>;
56
+ partyType: z.ZodEnum<["investor", "staff", "supplier", "buyer", "broker", "other"]>;
57
+ partyId: z.ZodString;
58
+ partyName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
59
+ amount: z.ZodNumber;
60
+ currency: z.ZodDefault<z.ZodOptional<z.ZodString>>;
61
+ occurredAt: z.ZodString;
62
+ method: z.ZodNullable<z.ZodOptional<z.ZodString>>;
63
+ reference: z.ZodNullable<z.ZodOptional<z.ZodString>>;
64
+ dealId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
65
+ invoiceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
66
+ notes: z.ZodNullable<z.ZodOptional<z.ZodString>>;
67
+ }, "strip", z.ZodTypeAny, {
68
+ type: "capital_in" | "capital_out" | "commission_payout" | "supplier_payment" | "buyer_receipt";
69
+ currency: string;
70
+ occurredAt: string;
71
+ amount: number;
72
+ partyType: "other" | "supplier" | "buyer" | "investor" | "staff" | "broker";
73
+ partyId: string;
74
+ method?: string | null | undefined;
75
+ notes?: string | null | undefined;
76
+ invoiceId?: string | null | undefined;
77
+ reference?: string | null | undefined;
78
+ partyName?: string | null | undefined;
79
+ dealId?: string | null | undefined;
80
+ }, {
81
+ type: "capital_in" | "capital_out" | "commission_payout" | "supplier_payment" | "buyer_receipt";
82
+ occurredAt: string;
83
+ amount: number;
84
+ partyType: "other" | "supplier" | "buyer" | "investor" | "staff" | "broker";
85
+ partyId: string;
86
+ method?: string | null | undefined;
87
+ currency?: string | undefined;
88
+ notes?: string | null | undefined;
89
+ invoiceId?: string | null | undefined;
90
+ reference?: string | null | undefined;
91
+ partyName?: string | null | undefined;
92
+ dealId?: string | null | undefined;
93
+ }>;
94
+ export declare const tradeCashEventResourceSchema: z.ZodObject<{
95
+ type: z.ZodLiteral<string>;
96
+ id: z.ZodString;
97
+ attributes: z.ZodObject<{
98
+ organizationId: z.ZodString;
99
+ type: z.ZodEnum<["capital_in", "capital_out", "commission_payout", "supplier_payment", "buyer_receipt"]>;
100
+ partyType: z.ZodEnum<["investor", "staff", "supplier", "buyer", "broker", "other"]>;
101
+ partyId: z.ZodString;
102
+ partyName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
103
+ amount: z.ZodNumber;
104
+ currency: z.ZodDefault<z.ZodString>;
105
+ occurredAt: z.ZodString;
106
+ method: z.ZodOptional<z.ZodNullable<z.ZodString>>;
107
+ reference: z.ZodOptional<z.ZodNullable<z.ZodString>>;
108
+ dealId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
109
+ invoiceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
110
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
111
+ } & {
112
+ createdAt: z.ZodString;
113
+ updatedAt: z.ZodString;
114
+ }, "strip", z.ZodTypeAny, {
115
+ type: "capital_in" | "capital_out" | "commission_payout" | "supplier_payment" | "buyer_receipt";
116
+ createdAt: string;
117
+ updatedAt: string;
118
+ currency: string;
119
+ occurredAt: string;
120
+ amount: number;
121
+ organizationId: string;
122
+ partyType: "other" | "supplier" | "buyer" | "investor" | "staff" | "broker";
123
+ partyId: string;
124
+ method?: string | null | undefined;
125
+ notes?: string | null | undefined;
126
+ invoiceId?: string | null | undefined;
127
+ reference?: string | null | undefined;
128
+ partyName?: string | null | undefined;
129
+ dealId?: string | null | undefined;
130
+ }, {
131
+ type: "capital_in" | "capital_out" | "commission_payout" | "supplier_payment" | "buyer_receipt";
132
+ createdAt: string;
133
+ updatedAt: string;
134
+ occurredAt: string;
135
+ amount: number;
136
+ organizationId: string;
137
+ partyType: "other" | "supplier" | "buyer" | "investor" | "staff" | "broker";
138
+ partyId: string;
139
+ method?: string | null | undefined;
140
+ currency?: string | undefined;
141
+ notes?: string | null | undefined;
142
+ invoiceId?: string | null | undefined;
143
+ reference?: string | null | undefined;
144
+ partyName?: string | null | undefined;
145
+ dealId?: string | null | undefined;
146
+ }>;
147
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
148
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
149
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
150
+ }, "strip", z.ZodTypeAny, {
151
+ type: string;
152
+ id: string;
153
+ attributes: {
154
+ type: "capital_in" | "capital_out" | "commission_payout" | "supplier_payment" | "buyer_receipt";
155
+ createdAt: string;
156
+ updatedAt: string;
157
+ currency: string;
158
+ occurredAt: string;
159
+ amount: number;
160
+ organizationId: string;
161
+ partyType: "other" | "supplier" | "buyer" | "investor" | "staff" | "broker";
162
+ partyId: string;
163
+ method?: string | null | undefined;
164
+ notes?: string | null | undefined;
165
+ invoiceId?: string | null | undefined;
166
+ reference?: string | null | undefined;
167
+ partyName?: string | null | undefined;
168
+ dealId?: string | null | undefined;
169
+ };
170
+ relationships?: Record<string, unknown> | undefined;
171
+ links?: Record<string, string> | undefined;
172
+ meta?: Record<string, unknown> | undefined;
173
+ }, {
174
+ type: string;
175
+ id: string;
176
+ attributes: {
177
+ type: "capital_in" | "capital_out" | "commission_payout" | "supplier_payment" | "buyer_receipt";
178
+ createdAt: string;
179
+ updatedAt: string;
180
+ occurredAt: string;
181
+ amount: number;
182
+ organizationId: string;
183
+ partyType: "other" | "supplier" | "buyer" | "investor" | "staff" | "broker";
184
+ partyId: string;
185
+ method?: string | null | undefined;
186
+ currency?: string | undefined;
187
+ notes?: string | null | undefined;
188
+ invoiceId?: string | null | undefined;
189
+ reference?: string | null | undefined;
190
+ partyName?: string | null | undefined;
191
+ dealId?: string | null | undefined;
192
+ };
193
+ relationships?: Record<string, unknown> | undefined;
194
+ links?: Record<string, string> | undefined;
195
+ meta?: Record<string, unknown> | undefined;
196
+ }>;
197
+ export declare const tradeCashEventResponseSchema: z.ZodObject<{
198
+ data: z.ZodObject<{
199
+ type: z.ZodLiteral<string>;
200
+ id: z.ZodString;
201
+ attributes: z.ZodObject<{
202
+ organizationId: z.ZodString;
203
+ type: z.ZodEnum<["capital_in", "capital_out", "commission_payout", "supplier_payment", "buyer_receipt"]>;
204
+ partyType: z.ZodEnum<["investor", "staff", "supplier", "buyer", "broker", "other"]>;
205
+ partyId: z.ZodString;
206
+ partyName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
207
+ amount: z.ZodNumber;
208
+ currency: z.ZodDefault<z.ZodString>;
209
+ occurredAt: z.ZodString;
210
+ method: z.ZodOptional<z.ZodNullable<z.ZodString>>;
211
+ reference: z.ZodOptional<z.ZodNullable<z.ZodString>>;
212
+ dealId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
213
+ invoiceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
214
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
215
+ } & {
216
+ createdAt: z.ZodString;
217
+ updatedAt: z.ZodString;
218
+ }, "strip", z.ZodTypeAny, {
219
+ type: "capital_in" | "capital_out" | "commission_payout" | "supplier_payment" | "buyer_receipt";
220
+ createdAt: string;
221
+ updatedAt: string;
222
+ currency: string;
223
+ occurredAt: string;
224
+ amount: number;
225
+ organizationId: string;
226
+ partyType: "other" | "supplier" | "buyer" | "investor" | "staff" | "broker";
227
+ partyId: string;
228
+ method?: string | null | undefined;
229
+ notes?: string | null | undefined;
230
+ invoiceId?: string | null | undefined;
231
+ reference?: string | null | undefined;
232
+ partyName?: string | null | undefined;
233
+ dealId?: string | null | undefined;
234
+ }, {
235
+ type: "capital_in" | "capital_out" | "commission_payout" | "supplier_payment" | "buyer_receipt";
236
+ createdAt: string;
237
+ updatedAt: string;
238
+ occurredAt: string;
239
+ amount: number;
240
+ organizationId: string;
241
+ partyType: "other" | "supplier" | "buyer" | "investor" | "staff" | "broker";
242
+ partyId: string;
243
+ method?: string | null | undefined;
244
+ currency?: string | undefined;
245
+ notes?: string | null | undefined;
246
+ invoiceId?: string | null | undefined;
247
+ reference?: string | null | undefined;
248
+ partyName?: string | null | undefined;
249
+ dealId?: string | null | undefined;
250
+ }>;
251
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
252
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
253
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
254
+ }, "strip", z.ZodTypeAny, {
255
+ type: string;
256
+ id: string;
257
+ attributes: {
258
+ type: "capital_in" | "capital_out" | "commission_payout" | "supplier_payment" | "buyer_receipt";
259
+ createdAt: string;
260
+ updatedAt: string;
261
+ currency: string;
262
+ occurredAt: string;
263
+ amount: number;
264
+ organizationId: string;
265
+ partyType: "other" | "supplier" | "buyer" | "investor" | "staff" | "broker";
266
+ partyId: string;
267
+ method?: string | null | undefined;
268
+ notes?: string | null | undefined;
269
+ invoiceId?: string | null | undefined;
270
+ reference?: string | null | undefined;
271
+ partyName?: string | null | undefined;
272
+ dealId?: string | null | undefined;
273
+ };
274
+ relationships?: Record<string, unknown> | undefined;
275
+ links?: Record<string, string> | undefined;
276
+ meta?: Record<string, unknown> | undefined;
277
+ }, {
278
+ type: string;
279
+ id: string;
280
+ attributes: {
281
+ type: "capital_in" | "capital_out" | "commission_payout" | "supplier_payment" | "buyer_receipt";
282
+ createdAt: string;
283
+ updatedAt: string;
284
+ occurredAt: string;
285
+ amount: number;
286
+ organizationId: string;
287
+ partyType: "other" | "supplier" | "buyer" | "investor" | "staff" | "broker";
288
+ partyId: string;
289
+ method?: string | null | undefined;
290
+ currency?: string | undefined;
291
+ notes?: string | null | undefined;
292
+ invoiceId?: string | null | undefined;
293
+ reference?: string | null | undefined;
294
+ partyName?: string | null | undefined;
295
+ dealId?: string | null | undefined;
296
+ };
297
+ relationships?: Record<string, unknown> | undefined;
298
+ links?: Record<string, string> | undefined;
299
+ meta?: Record<string, unknown> | undefined;
300
+ }>;
301
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
302
+ type: z.ZodString;
303
+ id: z.ZodString;
304
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
305
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
306
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
307
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
308
+ }, "strip", z.ZodTypeAny, {
309
+ type: string;
310
+ id: string;
311
+ attributes?: Record<string, unknown> | undefined;
312
+ relationships?: Record<string, unknown> | undefined;
313
+ links?: Record<string, string> | undefined;
314
+ meta?: Record<string, unknown> | undefined;
315
+ }, {
316
+ type: string;
317
+ id: string;
318
+ attributes?: Record<string, unknown> | undefined;
319
+ relationships?: Record<string, unknown> | undefined;
320
+ links?: Record<string, string> | undefined;
321
+ meta?: Record<string, unknown> | undefined;
322
+ }>, "many">>;
323
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
324
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
325
+ }, "strip", z.ZodTypeAny, {
326
+ data: {
327
+ type: string;
328
+ id: string;
329
+ attributes: {
330
+ type: "capital_in" | "capital_out" | "commission_payout" | "supplier_payment" | "buyer_receipt";
331
+ createdAt: string;
332
+ updatedAt: string;
333
+ currency: string;
334
+ occurredAt: string;
335
+ amount: number;
336
+ organizationId: string;
337
+ partyType: "other" | "supplier" | "buyer" | "investor" | "staff" | "broker";
338
+ partyId: string;
339
+ method?: string | null | undefined;
340
+ notes?: string | null | undefined;
341
+ invoiceId?: string | null | undefined;
342
+ reference?: string | null | undefined;
343
+ partyName?: string | null | undefined;
344
+ dealId?: string | null | undefined;
345
+ };
346
+ relationships?: Record<string, unknown> | undefined;
347
+ links?: Record<string, string> | undefined;
348
+ meta?: Record<string, unknown> | undefined;
349
+ };
350
+ links?: Record<string, string> | undefined;
351
+ meta?: Record<string, unknown> | undefined;
352
+ included?: {
353
+ type: string;
354
+ id: string;
355
+ attributes?: Record<string, unknown> | undefined;
356
+ relationships?: Record<string, unknown> | undefined;
357
+ links?: Record<string, string> | undefined;
358
+ meta?: Record<string, unknown> | undefined;
359
+ }[] | undefined;
360
+ }, {
361
+ data: {
362
+ type: string;
363
+ id: string;
364
+ attributes: {
365
+ type: "capital_in" | "capital_out" | "commission_payout" | "supplier_payment" | "buyer_receipt";
366
+ createdAt: string;
367
+ updatedAt: string;
368
+ occurredAt: string;
369
+ amount: number;
370
+ organizationId: string;
371
+ partyType: "other" | "supplier" | "buyer" | "investor" | "staff" | "broker";
372
+ partyId: string;
373
+ method?: string | null | undefined;
374
+ currency?: string | undefined;
375
+ notes?: string | null | undefined;
376
+ invoiceId?: string | null | undefined;
377
+ reference?: string | null | undefined;
378
+ partyName?: string | null | undefined;
379
+ dealId?: string | null | undefined;
380
+ };
381
+ relationships?: Record<string, unknown> | undefined;
382
+ links?: Record<string, string> | undefined;
383
+ meta?: Record<string, unknown> | undefined;
384
+ };
385
+ links?: Record<string, string> | undefined;
386
+ meta?: Record<string, unknown> | undefined;
387
+ included?: {
388
+ type: string;
389
+ id: string;
390
+ attributes?: Record<string, unknown> | undefined;
391
+ relationships?: Record<string, unknown> | undefined;
392
+ links?: Record<string, string> | undefined;
393
+ meta?: Record<string, unknown> | undefined;
394
+ }[] | undefined;
395
+ }>;
396
+ export declare const tradeCashEventListResponseSchema: z.ZodObject<{
397
+ data: z.ZodArray<z.ZodObject<{
398
+ type: z.ZodLiteral<string>;
399
+ id: z.ZodString;
400
+ attributes: z.ZodObject<{
401
+ organizationId: z.ZodString;
402
+ type: z.ZodEnum<["capital_in", "capital_out", "commission_payout", "supplier_payment", "buyer_receipt"]>;
403
+ partyType: z.ZodEnum<["investor", "staff", "supplier", "buyer", "broker", "other"]>;
404
+ partyId: z.ZodString;
405
+ partyName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
406
+ amount: z.ZodNumber;
407
+ currency: z.ZodDefault<z.ZodString>;
408
+ occurredAt: z.ZodString;
409
+ method: z.ZodOptional<z.ZodNullable<z.ZodString>>;
410
+ reference: z.ZodOptional<z.ZodNullable<z.ZodString>>;
411
+ dealId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
412
+ invoiceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
413
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
414
+ } & {
415
+ createdAt: z.ZodString;
416
+ updatedAt: z.ZodString;
417
+ }, "strip", z.ZodTypeAny, {
418
+ type: "capital_in" | "capital_out" | "commission_payout" | "supplier_payment" | "buyer_receipt";
419
+ createdAt: string;
420
+ updatedAt: string;
421
+ currency: string;
422
+ occurredAt: string;
423
+ amount: number;
424
+ organizationId: string;
425
+ partyType: "other" | "supplier" | "buyer" | "investor" | "staff" | "broker";
426
+ partyId: string;
427
+ method?: string | null | undefined;
428
+ notes?: string | null | undefined;
429
+ invoiceId?: string | null | undefined;
430
+ reference?: string | null | undefined;
431
+ partyName?: string | null | undefined;
432
+ dealId?: string | null | undefined;
433
+ }, {
434
+ type: "capital_in" | "capital_out" | "commission_payout" | "supplier_payment" | "buyer_receipt";
435
+ createdAt: string;
436
+ updatedAt: string;
437
+ occurredAt: string;
438
+ amount: number;
439
+ organizationId: string;
440
+ partyType: "other" | "supplier" | "buyer" | "investor" | "staff" | "broker";
441
+ partyId: string;
442
+ method?: string | null | undefined;
443
+ currency?: string | undefined;
444
+ notes?: string | null | undefined;
445
+ invoiceId?: string | null | undefined;
446
+ reference?: string | null | undefined;
447
+ partyName?: string | null | undefined;
448
+ dealId?: string | null | undefined;
449
+ }>;
450
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
451
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
452
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
453
+ }, "strip", z.ZodTypeAny, {
454
+ type: string;
455
+ id: string;
456
+ attributes: {
457
+ type: "capital_in" | "capital_out" | "commission_payout" | "supplier_payment" | "buyer_receipt";
458
+ createdAt: string;
459
+ updatedAt: string;
460
+ currency: string;
461
+ occurredAt: string;
462
+ amount: number;
463
+ organizationId: string;
464
+ partyType: "other" | "supplier" | "buyer" | "investor" | "staff" | "broker";
465
+ partyId: string;
466
+ method?: string | null | undefined;
467
+ notes?: string | null | undefined;
468
+ invoiceId?: string | null | undefined;
469
+ reference?: string | null | undefined;
470
+ partyName?: string | null | undefined;
471
+ dealId?: string | null | undefined;
472
+ };
473
+ relationships?: Record<string, unknown> | undefined;
474
+ links?: Record<string, string> | undefined;
475
+ meta?: Record<string, unknown> | undefined;
476
+ }, {
477
+ type: string;
478
+ id: string;
479
+ attributes: {
480
+ type: "capital_in" | "capital_out" | "commission_payout" | "supplier_payment" | "buyer_receipt";
481
+ createdAt: string;
482
+ updatedAt: string;
483
+ occurredAt: string;
484
+ amount: number;
485
+ organizationId: string;
486
+ partyType: "other" | "supplier" | "buyer" | "investor" | "staff" | "broker";
487
+ partyId: string;
488
+ method?: string | null | undefined;
489
+ currency?: string | undefined;
490
+ notes?: string | null | undefined;
491
+ invoiceId?: string | null | undefined;
492
+ reference?: string | null | undefined;
493
+ partyName?: string | null | undefined;
494
+ dealId?: string | null | undefined;
495
+ };
496
+ relationships?: Record<string, unknown> | undefined;
497
+ links?: Record<string, string> | undefined;
498
+ meta?: Record<string, unknown> | undefined;
499
+ }>, "many">;
500
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
501
+ type: z.ZodString;
502
+ id: z.ZodString;
503
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
504
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
505
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
506
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
507
+ }, "strip", z.ZodTypeAny, {
508
+ type: string;
509
+ id: string;
510
+ attributes?: Record<string, unknown> | undefined;
511
+ relationships?: Record<string, unknown> | undefined;
512
+ links?: Record<string, string> | undefined;
513
+ meta?: Record<string, unknown> | undefined;
514
+ }, {
515
+ type: string;
516
+ id: string;
517
+ attributes?: Record<string, unknown> | undefined;
518
+ relationships?: Record<string, unknown> | undefined;
519
+ links?: Record<string, string> | undefined;
520
+ meta?: Record<string, unknown> | undefined;
521
+ }>, "many">>;
522
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
523
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
524
+ }, "strip", z.ZodTypeAny, {
525
+ data: {
526
+ type: string;
527
+ id: string;
528
+ attributes: {
529
+ type: "capital_in" | "capital_out" | "commission_payout" | "supplier_payment" | "buyer_receipt";
530
+ createdAt: string;
531
+ updatedAt: string;
532
+ currency: string;
533
+ occurredAt: string;
534
+ amount: number;
535
+ organizationId: string;
536
+ partyType: "other" | "supplier" | "buyer" | "investor" | "staff" | "broker";
537
+ partyId: string;
538
+ method?: string | null | undefined;
539
+ notes?: string | null | undefined;
540
+ invoiceId?: string | null | undefined;
541
+ reference?: string | null | undefined;
542
+ partyName?: string | null | undefined;
543
+ dealId?: string | null | undefined;
544
+ };
545
+ relationships?: Record<string, unknown> | undefined;
546
+ links?: Record<string, string> | undefined;
547
+ meta?: Record<string, unknown> | undefined;
548
+ }[];
549
+ links?: Record<string, string> | undefined;
550
+ meta?: Record<string, unknown> | undefined;
551
+ included?: {
552
+ type: string;
553
+ id: string;
554
+ attributes?: Record<string, unknown> | undefined;
555
+ relationships?: Record<string, unknown> | undefined;
556
+ links?: Record<string, string> | undefined;
557
+ meta?: Record<string, unknown> | undefined;
558
+ }[] | undefined;
559
+ }, {
560
+ data: {
561
+ type: string;
562
+ id: string;
563
+ attributes: {
564
+ type: "capital_in" | "capital_out" | "commission_payout" | "supplier_payment" | "buyer_receipt";
565
+ createdAt: string;
566
+ updatedAt: string;
567
+ occurredAt: string;
568
+ amount: number;
569
+ organizationId: string;
570
+ partyType: "other" | "supplier" | "buyer" | "investor" | "staff" | "broker";
571
+ partyId: string;
572
+ method?: string | null | undefined;
573
+ currency?: string | undefined;
574
+ notes?: string | null | undefined;
575
+ invoiceId?: string | null | undefined;
576
+ reference?: string | null | undefined;
577
+ partyName?: string | null | undefined;
578
+ dealId?: string | null | undefined;
579
+ };
580
+ relationships?: Record<string, unknown> | undefined;
581
+ links?: Record<string, string> | undefined;
582
+ meta?: Record<string, unknown> | undefined;
583
+ }[];
584
+ links?: Record<string, string> | undefined;
585
+ meta?: Record<string, unknown> | undefined;
586
+ included?: {
587
+ type: string;
588
+ id: string;
589
+ attributes?: Record<string, unknown> | undefined;
590
+ relationships?: Record<string, unknown> | undefined;
591
+ links?: Record<string, string> | undefined;
592
+ meta?: Record<string, unknown> | undefined;
593
+ }[] | undefined;
594
+ }>;
595
+ export declare const createTradeCashEventSchema: z.ZodObject<{
596
+ type: z.ZodLiteral<"trade-cash-events">;
597
+ attributes: z.ZodObject<{
598
+ type: z.ZodEnum<["capital_in", "capital_out", "commission_payout", "supplier_payment", "buyer_receipt"]>;
599
+ partyType: z.ZodEnum<["investor", "staff", "supplier", "buyer", "broker", "other"]>;
600
+ partyId: z.ZodString;
601
+ partyName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
602
+ amount: z.ZodNumber;
603
+ currency: z.ZodDefault<z.ZodOptional<z.ZodString>>;
604
+ occurredAt: z.ZodString;
605
+ method: z.ZodNullable<z.ZodOptional<z.ZodString>>;
606
+ reference: z.ZodNullable<z.ZodOptional<z.ZodString>>;
607
+ dealId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
608
+ invoiceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
609
+ notes: z.ZodNullable<z.ZodOptional<z.ZodString>>;
610
+ }, "strip", z.ZodTypeAny, {
611
+ type: "capital_in" | "capital_out" | "commission_payout" | "supplier_payment" | "buyer_receipt";
612
+ currency: string;
613
+ occurredAt: string;
614
+ amount: number;
615
+ partyType: "other" | "supplier" | "buyer" | "investor" | "staff" | "broker";
616
+ partyId: string;
617
+ method?: string | null | undefined;
618
+ notes?: string | null | undefined;
619
+ invoiceId?: string | null | undefined;
620
+ reference?: string | null | undefined;
621
+ partyName?: string | null | undefined;
622
+ dealId?: string | null | undefined;
623
+ }, {
624
+ type: "capital_in" | "capital_out" | "commission_payout" | "supplier_payment" | "buyer_receipt";
625
+ occurredAt: string;
626
+ amount: number;
627
+ partyType: "other" | "supplier" | "buyer" | "investor" | "staff" | "broker";
628
+ partyId: string;
629
+ method?: string | null | undefined;
630
+ currency?: string | undefined;
631
+ notes?: string | null | undefined;
632
+ invoiceId?: string | null | undefined;
633
+ reference?: string | null | undefined;
634
+ partyName?: string | null | undefined;
635
+ dealId?: string | null | undefined;
636
+ }>;
637
+ }, "strip", z.ZodTypeAny, {
638
+ type: "trade-cash-events";
639
+ attributes: {
640
+ type: "capital_in" | "capital_out" | "commission_payout" | "supplier_payment" | "buyer_receipt";
641
+ currency: string;
642
+ occurredAt: string;
643
+ amount: number;
644
+ partyType: "other" | "supplier" | "buyer" | "investor" | "staff" | "broker";
645
+ partyId: string;
646
+ method?: string | null | undefined;
647
+ notes?: string | null | undefined;
648
+ invoiceId?: string | null | undefined;
649
+ reference?: string | null | undefined;
650
+ partyName?: string | null | undefined;
651
+ dealId?: string | null | undefined;
652
+ };
653
+ }, {
654
+ type: "trade-cash-events";
655
+ attributes: {
656
+ type: "capital_in" | "capital_out" | "commission_payout" | "supplier_payment" | "buyer_receipt";
657
+ occurredAt: string;
658
+ amount: number;
659
+ partyType: "other" | "supplier" | "buyer" | "investor" | "staff" | "broker";
660
+ partyId: string;
661
+ method?: string | null | undefined;
662
+ currency?: string | undefined;
663
+ notes?: string | null | undefined;
664
+ invoiceId?: string | null | undefined;
665
+ reference?: string | null | undefined;
666
+ partyName?: string | null | undefined;
667
+ dealId?: string | null | undefined;
668
+ };
669
+ }>;
670
+ export declare const investorBalanceAttributesSchema: z.ZodObject<{
671
+ partyId: z.ZodString;
672
+ partyName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
673
+ capitalIn: z.ZodNumber;
674
+ capitalOut: z.ZodNumber;
675
+ balance: z.ZodNumber;
676
+ dealCount: z.ZodOptional<z.ZodNumber>;
677
+ }, "strip", z.ZodTypeAny, {
678
+ balance: number;
679
+ partyId: string;
680
+ capitalIn: number;
681
+ capitalOut: number;
682
+ dealCount?: number | undefined;
683
+ partyName?: string | null | undefined;
684
+ }, {
685
+ balance: number;
686
+ partyId: string;
687
+ capitalIn: number;
688
+ capitalOut: number;
689
+ dealCount?: number | undefined;
690
+ partyName?: string | null | undefined;
691
+ }>;
692
+ export declare const investorBalancesResponseSchema: z.ZodObject<{
693
+ data: z.ZodObject<{
694
+ type: z.ZodLiteral<"investor-balances">;
695
+ id: z.ZodString;
696
+ attributes: z.ZodObject<{
697
+ balances: z.ZodArray<z.ZodObject<{
698
+ partyId: z.ZodString;
699
+ partyName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
700
+ capitalIn: z.ZodNumber;
701
+ capitalOut: z.ZodNumber;
702
+ balance: z.ZodNumber;
703
+ dealCount: z.ZodOptional<z.ZodNumber>;
704
+ }, "strip", z.ZodTypeAny, {
705
+ balance: number;
706
+ partyId: string;
707
+ capitalIn: number;
708
+ capitalOut: number;
709
+ dealCount?: number | undefined;
710
+ partyName?: string | null | undefined;
711
+ }, {
712
+ balance: number;
713
+ partyId: string;
714
+ capitalIn: number;
715
+ capitalOut: number;
716
+ dealCount?: number | undefined;
717
+ partyName?: string | null | undefined;
718
+ }>, "many">;
719
+ }, "strip", z.ZodTypeAny, {
720
+ balances: {
721
+ balance: number;
722
+ partyId: string;
723
+ capitalIn: number;
724
+ capitalOut: number;
725
+ dealCount?: number | undefined;
726
+ partyName?: string | null | undefined;
727
+ }[];
728
+ }, {
729
+ balances: {
730
+ balance: number;
731
+ partyId: string;
732
+ capitalIn: number;
733
+ capitalOut: number;
734
+ dealCount?: number | undefined;
735
+ partyName?: string | null | undefined;
736
+ }[];
737
+ }>;
738
+ }, "strip", z.ZodTypeAny, {
739
+ type: "investor-balances";
740
+ id: string;
741
+ attributes: {
742
+ balances: {
743
+ balance: number;
744
+ partyId: string;
745
+ capitalIn: number;
746
+ capitalOut: number;
747
+ dealCount?: number | undefined;
748
+ partyName?: string | null | undefined;
749
+ }[];
750
+ };
751
+ }, {
752
+ type: "investor-balances";
753
+ id: string;
754
+ attributes: {
755
+ balances: {
756
+ balance: number;
757
+ partyId: string;
758
+ capitalIn: number;
759
+ capitalOut: number;
760
+ dealCount?: number | undefined;
761
+ partyName?: string | null | undefined;
762
+ }[];
763
+ };
764
+ }>;
765
+ }, "strip", z.ZodTypeAny, {
766
+ data: {
767
+ type: "investor-balances";
768
+ id: string;
769
+ attributes: {
770
+ balances: {
771
+ balance: number;
772
+ partyId: string;
773
+ capitalIn: number;
774
+ capitalOut: number;
775
+ dealCount?: number | undefined;
776
+ partyName?: string | null | undefined;
777
+ }[];
778
+ };
779
+ };
780
+ }, {
781
+ data: {
782
+ type: "investor-balances";
783
+ id: string;
784
+ attributes: {
785
+ balances: {
786
+ balance: number;
787
+ partyId: string;
788
+ capitalIn: number;
789
+ capitalOut: number;
790
+ dealCount?: number | undefined;
791
+ partyName?: string | null | undefined;
792
+ }[];
793
+ };
794
+ };
795
+ }>;
796
+ export declare const tradeControlBoardResponseSchema: z.ZodObject<{
797
+ data: z.ZodObject<{
798
+ type: z.ZodLiteral<"trade-control-board">;
799
+ id: z.ZodString;
800
+ attributes: z.ZodObject<{
801
+ periodStart: z.ZodNullable<z.ZodString>;
802
+ periodEnd: z.ZodNullable<z.ZodString>;
803
+ purchaseTotal: z.ZodNumber;
804
+ transportTotal: z.ZodNumber;
805
+ storageTotal: z.ZodNumber;
806
+ miscellaneousTotal: z.ZodNumber;
807
+ saleTotal: z.ZodNumber;
808
+ buyerReceipts: z.ZodNumber;
809
+ supplierPayments: z.ZodNumber;
810
+ commissionPayouts: z.ZodNumber;
811
+ capitalIn: z.ZodNumber;
812
+ capitalOut: z.ZodNumber;
813
+ grossProfit: z.ZodNumber;
814
+ dealCount: z.ZodNumber;
815
+ byBuyer: z.ZodArray<z.ZodObject<{
816
+ buyerName: z.ZodString;
817
+ saleTotal: z.ZodNumber;
818
+ dealCount: z.ZodNumber;
819
+ }, "strip", z.ZodTypeAny, {
820
+ buyerName: string;
821
+ dealCount: number;
822
+ saleTotal: number;
823
+ }, {
824
+ buyerName: string;
825
+ dealCount: number;
826
+ saleTotal: number;
827
+ }>, "many">;
828
+ bySupplier: z.ZodArray<z.ZodObject<{
829
+ supplierName: z.ZodString;
830
+ purchaseTotal: z.ZodNumber;
831
+ dealCount: z.ZodNumber;
832
+ }, "strip", z.ZodTypeAny, {
833
+ supplierName: string;
834
+ dealCount: number;
835
+ purchaseTotal: number;
836
+ }, {
837
+ supplierName: string;
838
+ dealCount: number;
839
+ purchaseTotal: number;
840
+ }>, "many">;
841
+ }, "strip", z.ZodTypeAny, {
842
+ periodStart: string | null;
843
+ periodEnd: string | null;
844
+ grossProfit: number;
845
+ byBuyer: {
846
+ buyerName: string;
847
+ dealCount: number;
848
+ saleTotal: number;
849
+ }[];
850
+ dealCount: number;
851
+ capitalIn: number;
852
+ capitalOut: number;
853
+ purchaseTotal: number;
854
+ transportTotal: number;
855
+ storageTotal: number;
856
+ miscellaneousTotal: number;
857
+ saleTotal: number;
858
+ buyerReceipts: number;
859
+ supplierPayments: number;
860
+ commissionPayouts: number;
861
+ bySupplier: {
862
+ supplierName: string;
863
+ dealCount: number;
864
+ purchaseTotal: number;
865
+ }[];
866
+ }, {
867
+ periodStart: string | null;
868
+ periodEnd: string | null;
869
+ grossProfit: number;
870
+ byBuyer: {
871
+ buyerName: string;
872
+ dealCount: number;
873
+ saleTotal: number;
874
+ }[];
875
+ dealCount: number;
876
+ capitalIn: number;
877
+ capitalOut: number;
878
+ purchaseTotal: number;
879
+ transportTotal: number;
880
+ storageTotal: number;
881
+ miscellaneousTotal: number;
882
+ saleTotal: number;
883
+ buyerReceipts: number;
884
+ supplierPayments: number;
885
+ commissionPayouts: number;
886
+ bySupplier: {
887
+ supplierName: string;
888
+ dealCount: number;
889
+ purchaseTotal: number;
890
+ }[];
891
+ }>;
892
+ }, "strip", z.ZodTypeAny, {
893
+ type: "trade-control-board";
894
+ id: string;
895
+ attributes: {
896
+ periodStart: string | null;
897
+ periodEnd: string | null;
898
+ grossProfit: number;
899
+ byBuyer: {
900
+ buyerName: string;
901
+ dealCount: number;
902
+ saleTotal: number;
903
+ }[];
904
+ dealCount: number;
905
+ capitalIn: number;
906
+ capitalOut: number;
907
+ purchaseTotal: number;
908
+ transportTotal: number;
909
+ storageTotal: number;
910
+ miscellaneousTotal: number;
911
+ saleTotal: number;
912
+ buyerReceipts: number;
913
+ supplierPayments: number;
914
+ commissionPayouts: number;
915
+ bySupplier: {
916
+ supplierName: string;
917
+ dealCount: number;
918
+ purchaseTotal: number;
919
+ }[];
920
+ };
921
+ }, {
922
+ type: "trade-control-board";
923
+ id: string;
924
+ attributes: {
925
+ periodStart: string | null;
926
+ periodEnd: string | null;
927
+ grossProfit: number;
928
+ byBuyer: {
929
+ buyerName: string;
930
+ dealCount: number;
931
+ saleTotal: number;
932
+ }[];
933
+ dealCount: number;
934
+ capitalIn: number;
935
+ capitalOut: number;
936
+ purchaseTotal: number;
937
+ transportTotal: number;
938
+ storageTotal: number;
939
+ miscellaneousTotal: number;
940
+ saleTotal: number;
941
+ buyerReceipts: number;
942
+ supplierPayments: number;
943
+ commissionPayouts: number;
944
+ bySupplier: {
945
+ supplierName: string;
946
+ dealCount: number;
947
+ purchaseTotal: number;
948
+ }[];
949
+ };
950
+ }>;
951
+ }, "strip", z.ZodTypeAny, {
952
+ data: {
953
+ type: "trade-control-board";
954
+ id: string;
955
+ attributes: {
956
+ periodStart: string | null;
957
+ periodEnd: string | null;
958
+ grossProfit: number;
959
+ byBuyer: {
960
+ buyerName: string;
961
+ dealCount: number;
962
+ saleTotal: number;
963
+ }[];
964
+ dealCount: number;
965
+ capitalIn: number;
966
+ capitalOut: number;
967
+ purchaseTotal: number;
968
+ transportTotal: number;
969
+ storageTotal: number;
970
+ miscellaneousTotal: number;
971
+ saleTotal: number;
972
+ buyerReceipts: number;
973
+ supplierPayments: number;
974
+ commissionPayouts: number;
975
+ bySupplier: {
976
+ supplierName: string;
977
+ dealCount: number;
978
+ purchaseTotal: number;
979
+ }[];
980
+ };
981
+ };
982
+ }, {
983
+ data: {
984
+ type: "trade-control-board";
985
+ id: string;
986
+ attributes: {
987
+ periodStart: string | null;
988
+ periodEnd: string | null;
989
+ grossProfit: number;
990
+ byBuyer: {
991
+ buyerName: string;
992
+ dealCount: number;
993
+ saleTotal: number;
994
+ }[];
995
+ dealCount: number;
996
+ capitalIn: number;
997
+ capitalOut: number;
998
+ purchaseTotal: number;
999
+ transportTotal: number;
1000
+ storageTotal: number;
1001
+ miscellaneousTotal: number;
1002
+ saleTotal: number;
1003
+ buyerReceipts: number;
1004
+ supplierPayments: number;
1005
+ commissionPayouts: number;
1006
+ bySupplier: {
1007
+ supplierName: string;
1008
+ dealCount: number;
1009
+ purchaseTotal: number;
1010
+ }[];
1011
+ };
1012
+ };
1013
+ }>;
1014
+ export declare const invoicePaymentAttributesSchema: z.ZodObject<{
1015
+ organizationId: z.ZodString;
1016
+ invoiceId: z.ZodString;
1017
+ amount: z.ZodNumber;
1018
+ currency: z.ZodDefault<z.ZodString>;
1019
+ occurredAt: z.ZodString;
1020
+ method: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1021
+ reference: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1022
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1023
+ } & {
1024
+ createdAt: z.ZodString;
1025
+ updatedAt: z.ZodString;
1026
+ }, "strip", z.ZodTypeAny, {
1027
+ createdAt: string;
1028
+ updatedAt: string;
1029
+ currency: string;
1030
+ occurredAt: string;
1031
+ amount: number;
1032
+ invoiceId: string;
1033
+ organizationId: string;
1034
+ method?: string | null | undefined;
1035
+ notes?: string | null | undefined;
1036
+ reference?: string | null | undefined;
1037
+ }, {
1038
+ createdAt: string;
1039
+ updatedAt: string;
1040
+ occurredAt: string;
1041
+ amount: number;
1042
+ invoiceId: string;
1043
+ organizationId: string;
1044
+ method?: string | null | undefined;
1045
+ currency?: string | undefined;
1046
+ notes?: string | null | undefined;
1047
+ reference?: string | null | undefined;
1048
+ }>;
1049
+ export declare const createInvoicePaymentAttributesSchema: z.ZodObject<{
1050
+ amount: z.ZodNumber;
1051
+ currency: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1052
+ occurredAt: z.ZodString;
1053
+ method: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1054
+ reference: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1055
+ notes: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1056
+ }, "strip", z.ZodTypeAny, {
1057
+ currency: string;
1058
+ occurredAt: string;
1059
+ amount: number;
1060
+ method?: string | null | undefined;
1061
+ notes?: string | null | undefined;
1062
+ reference?: string | null | undefined;
1063
+ }, {
1064
+ occurredAt: string;
1065
+ amount: number;
1066
+ method?: string | null | undefined;
1067
+ currency?: string | undefined;
1068
+ notes?: string | null | undefined;
1069
+ reference?: string | null | undefined;
1070
+ }>;
1071
+ export declare const invoicePaymentResourceSchema: z.ZodObject<{
1072
+ type: z.ZodLiteral<string>;
1073
+ id: z.ZodString;
1074
+ attributes: z.ZodObject<{
1075
+ organizationId: z.ZodString;
1076
+ invoiceId: z.ZodString;
1077
+ amount: z.ZodNumber;
1078
+ currency: z.ZodDefault<z.ZodString>;
1079
+ occurredAt: z.ZodString;
1080
+ method: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1081
+ reference: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1082
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1083
+ } & {
1084
+ createdAt: z.ZodString;
1085
+ updatedAt: z.ZodString;
1086
+ }, "strip", z.ZodTypeAny, {
1087
+ createdAt: string;
1088
+ updatedAt: string;
1089
+ currency: string;
1090
+ occurredAt: string;
1091
+ amount: number;
1092
+ invoiceId: string;
1093
+ organizationId: string;
1094
+ method?: string | null | undefined;
1095
+ notes?: string | null | undefined;
1096
+ reference?: string | null | undefined;
1097
+ }, {
1098
+ createdAt: string;
1099
+ updatedAt: string;
1100
+ occurredAt: string;
1101
+ amount: number;
1102
+ invoiceId: string;
1103
+ organizationId: string;
1104
+ method?: string | null | undefined;
1105
+ currency?: string | undefined;
1106
+ notes?: string | null | undefined;
1107
+ reference?: string | null | undefined;
1108
+ }>;
1109
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1110
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1111
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1112
+ }, "strip", z.ZodTypeAny, {
1113
+ type: string;
1114
+ id: string;
1115
+ attributes: {
1116
+ createdAt: string;
1117
+ updatedAt: string;
1118
+ currency: string;
1119
+ occurredAt: string;
1120
+ amount: number;
1121
+ invoiceId: string;
1122
+ organizationId: string;
1123
+ method?: string | null | undefined;
1124
+ notes?: string | null | undefined;
1125
+ reference?: string | null | undefined;
1126
+ };
1127
+ relationships?: Record<string, unknown> | undefined;
1128
+ links?: Record<string, string> | undefined;
1129
+ meta?: Record<string, unknown> | undefined;
1130
+ }, {
1131
+ type: string;
1132
+ id: string;
1133
+ attributes: {
1134
+ createdAt: string;
1135
+ updatedAt: string;
1136
+ occurredAt: string;
1137
+ amount: number;
1138
+ invoiceId: string;
1139
+ organizationId: string;
1140
+ method?: string | null | undefined;
1141
+ currency?: string | undefined;
1142
+ notes?: string | null | undefined;
1143
+ reference?: string | null | undefined;
1144
+ };
1145
+ relationships?: Record<string, unknown> | undefined;
1146
+ links?: Record<string, string> | undefined;
1147
+ meta?: Record<string, unknown> | undefined;
1148
+ }>;
1149
+ export declare const invoicePaymentResponseSchema: z.ZodObject<{
1150
+ data: z.ZodObject<{
1151
+ type: z.ZodLiteral<string>;
1152
+ id: z.ZodString;
1153
+ attributes: z.ZodObject<{
1154
+ organizationId: z.ZodString;
1155
+ invoiceId: z.ZodString;
1156
+ amount: z.ZodNumber;
1157
+ currency: z.ZodDefault<z.ZodString>;
1158
+ occurredAt: z.ZodString;
1159
+ method: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1160
+ reference: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1161
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1162
+ } & {
1163
+ createdAt: z.ZodString;
1164
+ updatedAt: z.ZodString;
1165
+ }, "strip", z.ZodTypeAny, {
1166
+ createdAt: string;
1167
+ updatedAt: string;
1168
+ currency: string;
1169
+ occurredAt: string;
1170
+ amount: number;
1171
+ invoiceId: string;
1172
+ organizationId: string;
1173
+ method?: string | null | undefined;
1174
+ notes?: string | null | undefined;
1175
+ reference?: string | null | undefined;
1176
+ }, {
1177
+ createdAt: string;
1178
+ updatedAt: string;
1179
+ occurredAt: string;
1180
+ amount: number;
1181
+ invoiceId: string;
1182
+ organizationId: string;
1183
+ method?: string | null | undefined;
1184
+ currency?: string | undefined;
1185
+ notes?: string | null | undefined;
1186
+ reference?: string | null | undefined;
1187
+ }>;
1188
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1189
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1190
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1191
+ }, "strip", z.ZodTypeAny, {
1192
+ type: string;
1193
+ id: string;
1194
+ attributes: {
1195
+ createdAt: string;
1196
+ updatedAt: string;
1197
+ currency: string;
1198
+ occurredAt: string;
1199
+ amount: number;
1200
+ invoiceId: string;
1201
+ organizationId: string;
1202
+ method?: string | null | undefined;
1203
+ notes?: string | null | undefined;
1204
+ reference?: string | null | undefined;
1205
+ };
1206
+ relationships?: Record<string, unknown> | undefined;
1207
+ links?: Record<string, string> | undefined;
1208
+ meta?: Record<string, unknown> | undefined;
1209
+ }, {
1210
+ type: string;
1211
+ id: string;
1212
+ attributes: {
1213
+ createdAt: string;
1214
+ updatedAt: string;
1215
+ occurredAt: string;
1216
+ amount: number;
1217
+ invoiceId: string;
1218
+ organizationId: string;
1219
+ method?: string | null | undefined;
1220
+ currency?: string | undefined;
1221
+ notes?: string | null | undefined;
1222
+ reference?: string | null | undefined;
1223
+ };
1224
+ relationships?: Record<string, unknown> | undefined;
1225
+ links?: Record<string, string> | undefined;
1226
+ meta?: Record<string, unknown> | undefined;
1227
+ }>;
1228
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
1229
+ type: z.ZodString;
1230
+ id: z.ZodString;
1231
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1232
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1233
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1234
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1235
+ }, "strip", z.ZodTypeAny, {
1236
+ type: string;
1237
+ id: string;
1238
+ attributes?: Record<string, unknown> | undefined;
1239
+ relationships?: Record<string, unknown> | undefined;
1240
+ links?: Record<string, string> | undefined;
1241
+ meta?: Record<string, unknown> | undefined;
1242
+ }, {
1243
+ type: string;
1244
+ id: string;
1245
+ attributes?: Record<string, unknown> | undefined;
1246
+ relationships?: Record<string, unknown> | undefined;
1247
+ links?: Record<string, string> | undefined;
1248
+ meta?: Record<string, unknown> | undefined;
1249
+ }>, "many">>;
1250
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1251
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1252
+ }, "strip", z.ZodTypeAny, {
1253
+ data: {
1254
+ type: string;
1255
+ id: string;
1256
+ attributes: {
1257
+ createdAt: string;
1258
+ updatedAt: string;
1259
+ currency: string;
1260
+ occurredAt: string;
1261
+ amount: number;
1262
+ invoiceId: string;
1263
+ organizationId: string;
1264
+ method?: string | null | undefined;
1265
+ notes?: string | null | undefined;
1266
+ reference?: string | null | undefined;
1267
+ };
1268
+ relationships?: Record<string, unknown> | undefined;
1269
+ links?: Record<string, string> | undefined;
1270
+ meta?: Record<string, unknown> | undefined;
1271
+ };
1272
+ links?: Record<string, string> | undefined;
1273
+ meta?: Record<string, unknown> | undefined;
1274
+ included?: {
1275
+ type: string;
1276
+ id: string;
1277
+ attributes?: Record<string, unknown> | undefined;
1278
+ relationships?: Record<string, unknown> | undefined;
1279
+ links?: Record<string, string> | undefined;
1280
+ meta?: Record<string, unknown> | undefined;
1281
+ }[] | undefined;
1282
+ }, {
1283
+ data: {
1284
+ type: string;
1285
+ id: string;
1286
+ attributes: {
1287
+ createdAt: string;
1288
+ updatedAt: string;
1289
+ occurredAt: string;
1290
+ amount: number;
1291
+ invoiceId: string;
1292
+ organizationId: string;
1293
+ method?: string | null | undefined;
1294
+ currency?: string | undefined;
1295
+ notes?: string | null | undefined;
1296
+ reference?: string | null | undefined;
1297
+ };
1298
+ relationships?: Record<string, unknown> | undefined;
1299
+ links?: Record<string, string> | undefined;
1300
+ meta?: Record<string, unknown> | undefined;
1301
+ };
1302
+ links?: Record<string, string> | undefined;
1303
+ meta?: Record<string, unknown> | undefined;
1304
+ included?: {
1305
+ type: string;
1306
+ id: string;
1307
+ attributes?: Record<string, unknown> | undefined;
1308
+ relationships?: Record<string, unknown> | undefined;
1309
+ links?: Record<string, string> | undefined;
1310
+ meta?: Record<string, unknown> | undefined;
1311
+ }[] | undefined;
1312
+ }>;
1313
+ export declare const invoicePaymentListResponseSchema: z.ZodObject<{
1314
+ data: z.ZodArray<z.ZodObject<{
1315
+ type: z.ZodLiteral<string>;
1316
+ id: z.ZodString;
1317
+ attributes: z.ZodObject<{
1318
+ organizationId: z.ZodString;
1319
+ invoiceId: z.ZodString;
1320
+ amount: z.ZodNumber;
1321
+ currency: z.ZodDefault<z.ZodString>;
1322
+ occurredAt: z.ZodString;
1323
+ method: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1324
+ reference: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1325
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1326
+ } & {
1327
+ createdAt: z.ZodString;
1328
+ updatedAt: z.ZodString;
1329
+ }, "strip", z.ZodTypeAny, {
1330
+ createdAt: string;
1331
+ updatedAt: string;
1332
+ currency: string;
1333
+ occurredAt: string;
1334
+ amount: number;
1335
+ invoiceId: string;
1336
+ organizationId: string;
1337
+ method?: string | null | undefined;
1338
+ notes?: string | null | undefined;
1339
+ reference?: string | null | undefined;
1340
+ }, {
1341
+ createdAt: string;
1342
+ updatedAt: string;
1343
+ occurredAt: string;
1344
+ amount: number;
1345
+ invoiceId: string;
1346
+ organizationId: string;
1347
+ method?: string | null | undefined;
1348
+ currency?: string | undefined;
1349
+ notes?: string | null | undefined;
1350
+ reference?: string | null | undefined;
1351
+ }>;
1352
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1353
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1354
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1355
+ }, "strip", z.ZodTypeAny, {
1356
+ type: string;
1357
+ id: string;
1358
+ attributes: {
1359
+ createdAt: string;
1360
+ updatedAt: string;
1361
+ currency: string;
1362
+ occurredAt: string;
1363
+ amount: number;
1364
+ invoiceId: string;
1365
+ organizationId: string;
1366
+ method?: string | null | undefined;
1367
+ notes?: string | null | undefined;
1368
+ reference?: string | null | undefined;
1369
+ };
1370
+ relationships?: Record<string, unknown> | undefined;
1371
+ links?: Record<string, string> | undefined;
1372
+ meta?: Record<string, unknown> | undefined;
1373
+ }, {
1374
+ type: string;
1375
+ id: string;
1376
+ attributes: {
1377
+ createdAt: string;
1378
+ updatedAt: string;
1379
+ occurredAt: string;
1380
+ amount: number;
1381
+ invoiceId: string;
1382
+ organizationId: string;
1383
+ method?: string | null | undefined;
1384
+ currency?: string | undefined;
1385
+ notes?: string | null | undefined;
1386
+ reference?: string | null | undefined;
1387
+ };
1388
+ relationships?: Record<string, unknown> | undefined;
1389
+ links?: Record<string, string> | undefined;
1390
+ meta?: Record<string, unknown> | undefined;
1391
+ }>, "many">;
1392
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
1393
+ type: z.ZodString;
1394
+ id: z.ZodString;
1395
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1396
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1397
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1398
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1399
+ }, "strip", z.ZodTypeAny, {
1400
+ type: string;
1401
+ id: string;
1402
+ attributes?: Record<string, unknown> | undefined;
1403
+ relationships?: Record<string, unknown> | undefined;
1404
+ links?: Record<string, string> | undefined;
1405
+ meta?: Record<string, unknown> | undefined;
1406
+ }, {
1407
+ type: string;
1408
+ id: string;
1409
+ attributes?: Record<string, unknown> | undefined;
1410
+ relationships?: Record<string, unknown> | undefined;
1411
+ links?: Record<string, string> | undefined;
1412
+ meta?: Record<string, unknown> | undefined;
1413
+ }>, "many">>;
1414
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1415
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1416
+ }, "strip", z.ZodTypeAny, {
1417
+ data: {
1418
+ type: string;
1419
+ id: string;
1420
+ attributes: {
1421
+ createdAt: string;
1422
+ updatedAt: string;
1423
+ currency: string;
1424
+ occurredAt: string;
1425
+ amount: number;
1426
+ invoiceId: string;
1427
+ organizationId: string;
1428
+ method?: string | null | undefined;
1429
+ notes?: string | null | undefined;
1430
+ reference?: string | null | undefined;
1431
+ };
1432
+ relationships?: Record<string, unknown> | undefined;
1433
+ links?: Record<string, string> | undefined;
1434
+ meta?: Record<string, unknown> | undefined;
1435
+ }[];
1436
+ links?: Record<string, string> | undefined;
1437
+ meta?: Record<string, unknown> | undefined;
1438
+ included?: {
1439
+ type: string;
1440
+ id: string;
1441
+ attributes?: Record<string, unknown> | undefined;
1442
+ relationships?: Record<string, unknown> | undefined;
1443
+ links?: Record<string, string> | undefined;
1444
+ meta?: Record<string, unknown> | undefined;
1445
+ }[] | undefined;
1446
+ }, {
1447
+ data: {
1448
+ type: string;
1449
+ id: string;
1450
+ attributes: {
1451
+ createdAt: string;
1452
+ updatedAt: string;
1453
+ occurredAt: string;
1454
+ amount: number;
1455
+ invoiceId: string;
1456
+ organizationId: string;
1457
+ method?: string | null | undefined;
1458
+ currency?: string | undefined;
1459
+ notes?: string | null | undefined;
1460
+ reference?: string | null | undefined;
1461
+ };
1462
+ relationships?: Record<string, unknown> | undefined;
1463
+ links?: Record<string, string> | undefined;
1464
+ meta?: Record<string, unknown> | undefined;
1465
+ }[];
1466
+ links?: Record<string, string> | undefined;
1467
+ meta?: Record<string, unknown> | undefined;
1468
+ included?: {
1469
+ type: string;
1470
+ id: string;
1471
+ attributes?: Record<string, unknown> | undefined;
1472
+ relationships?: Record<string, unknown> | undefined;
1473
+ links?: Record<string, string> | undefined;
1474
+ meta?: Record<string, unknown> | undefined;
1475
+ }[] | undefined;
1476
+ }>;
1477
+ export declare const createInvoicePaymentSchema: z.ZodObject<{
1478
+ type: z.ZodLiteral<"invoice-payments">;
1479
+ attributes: z.ZodObject<{
1480
+ amount: z.ZodNumber;
1481
+ currency: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1482
+ occurredAt: z.ZodString;
1483
+ method: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1484
+ reference: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1485
+ notes: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1486
+ }, "strip", z.ZodTypeAny, {
1487
+ currency: string;
1488
+ occurredAt: string;
1489
+ amount: number;
1490
+ method?: string | null | undefined;
1491
+ notes?: string | null | undefined;
1492
+ reference?: string | null | undefined;
1493
+ }, {
1494
+ occurredAt: string;
1495
+ amount: number;
1496
+ method?: string | null | undefined;
1497
+ currency?: string | undefined;
1498
+ notes?: string | null | undefined;
1499
+ reference?: string | null | undefined;
1500
+ }>;
1501
+ }, "strip", z.ZodTypeAny, {
1502
+ type: "invoice-payments";
1503
+ attributes: {
1504
+ currency: string;
1505
+ occurredAt: string;
1506
+ amount: number;
1507
+ method?: string | null | undefined;
1508
+ notes?: string | null | undefined;
1509
+ reference?: string | null | undefined;
1510
+ };
1511
+ }, {
1512
+ type: "invoice-payments";
1513
+ attributes: {
1514
+ occurredAt: string;
1515
+ amount: number;
1516
+ method?: string | null | undefined;
1517
+ currency?: string | undefined;
1518
+ notes?: string | null | undefined;
1519
+ reference?: string | null | undefined;
1520
+ };
1521
+ }>;
1522
+ export type CreateTradeCashEventAttributes = z.infer<typeof createTradeCashEventAttributesSchema>;
1523
+ export type CreateInvoicePaymentAttributes = z.infer<typeof createInvoicePaymentAttributesSchema>;
1524
+ //# sourceMappingURL=trade-cash-events.schemas.d.ts.map