@deepintel-ltd/farmpro-contracts 1.7.19 → 1.7.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (84) hide show
  1. package/dist/index.d.ts +18 -1
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +17 -0
  4. package/dist/routes/agents.routes.d.ts +6 -6
  5. package/dist/routes/commodity-deals.routes.d.ts +2702 -0
  6. package/dist/routes/commodity-deals.routes.d.ts.map +1 -0
  7. package/dist/routes/commodity-deals.routes.js +83 -0
  8. package/dist/routes/cooperative.routes.d.ts +1327 -0
  9. package/dist/routes/cooperative.routes.d.ts.map +1 -0
  10. package/dist/routes/cooperative.routes.js +47 -0
  11. package/dist/routes/extension.routes.d.ts +2431 -0
  12. package/dist/routes/extension.routes.d.ts.map +1 -0
  13. package/dist/routes/extension.routes.js +75 -0
  14. package/dist/routes/farms.routes.d.ts +775 -0
  15. package/dist/routes/farms.routes.d.ts.map +1 -1
  16. package/dist/routes/farms.routes.js +15 -1
  17. package/dist/routes/field-monitoring.routes.d.ts +505 -0
  18. package/dist/routes/field-monitoring.routes.d.ts.map +1 -1
  19. package/dist/routes/field-monitoring.routes.js +23 -1
  20. package/dist/routes/fields.routes.d.ts +156 -155
  21. package/dist/routes/fields.routes.d.ts.map +1 -1
  22. package/dist/routes/index.d.ts +18 -0
  23. package/dist/routes/index.d.ts.map +1 -1
  24. package/dist/routes/index.js +12 -0
  25. package/dist/routes/invoices.routes.d.ts +49 -0
  26. package/dist/routes/invoices.routes.d.ts.map +1 -1
  27. package/dist/routes/live-monitor.routes.d.ts +513 -0
  28. package/dist/routes/live-monitor.routes.d.ts.map +1 -0
  29. package/dist/routes/live-monitor.routes.js +81 -0
  30. package/dist/routes/livestock-map.routes.d.ts +4 -4
  31. package/dist/routes/monitoring-visualization.routes.d.ts +4 -4
  32. package/dist/routes/notifications.routes.d.ts +1350 -0
  33. package/dist/routes/notifications.routes.d.ts.map +1 -0
  34. package/dist/routes/notifications.routes.js +66 -0
  35. package/dist/routes/organizations.routes.d.ts +49 -0
  36. package/dist/routes/organizations.routes.d.ts.map +1 -1
  37. package/dist/routes/team-payments.routes.d.ts +9571 -0
  38. package/dist/routes/team-payments.routes.d.ts.map +1 -0
  39. package/dist/routes/team-payments.routes.js +262 -0
  40. package/dist/routes/waybills.routes.d.ts +42 -0
  41. package/dist/routes/waybills.routes.d.ts.map +1 -1
  42. package/dist/schemas/agents.schemas.d.ts +1 -0
  43. package/dist/schemas/agents.schemas.d.ts.map +1 -1
  44. package/dist/schemas/commodity-deals.schemas.d.ts +1109 -0
  45. package/dist/schemas/commodity-deals.schemas.d.ts.map +1 -0
  46. package/dist/schemas/commodity-deals.schemas.js +82 -0
  47. package/dist/schemas/cooperative.schemas.d.ts +560 -0
  48. package/dist/schemas/cooperative.schemas.d.ts.map +1 -0
  49. package/dist/schemas/cooperative.schemas.js +71 -0
  50. package/dist/schemas/extension.schemas.d.ts +1204 -0
  51. package/dist/schemas/extension.schemas.d.ts.map +1 -0
  52. package/dist/schemas/extension.schemas.js +68 -0
  53. package/dist/schemas/farms.schemas.d.ts +591 -0
  54. package/dist/schemas/farms.schemas.d.ts.map +1 -1
  55. package/dist/schemas/farms.schemas.js +44 -0
  56. package/dist/schemas/field-monitoring.schemas.d.ts +276 -0
  57. package/dist/schemas/field-monitoring.schemas.d.ts.map +1 -1
  58. package/dist/schemas/field-monitoring.schemas.js +9 -0
  59. package/dist/schemas/field-observations.schemas.d.ts +1 -0
  60. package/dist/schemas/field-observations.schemas.d.ts.map +1 -1
  61. package/dist/schemas/fields.schemas.d.ts +188 -186
  62. package/dist/schemas/fields.schemas.d.ts.map +1 -1
  63. package/dist/schemas/fields.schemas.js +10 -2
  64. package/dist/schemas/invoices.schemas.d.ts +38 -0
  65. package/dist/schemas/invoices.schemas.d.ts.map +1 -1
  66. package/dist/schemas/invoices.schemas.js +2 -0
  67. package/dist/schemas/live-monitor.schemas.d.ts +596 -0
  68. package/dist/schemas/live-monitor.schemas.d.ts.map +1 -0
  69. package/dist/schemas/live-monitor.schemas.js +107 -0
  70. package/dist/schemas/livestock-map.schemas.d.ts +10 -10
  71. package/dist/schemas/monitoring-visualization.schemas.d.ts +4 -4
  72. package/dist/schemas/notifications.schemas.d.ts +464 -0
  73. package/dist/schemas/notifications.schemas.d.ts.map +1 -0
  74. package/dist/schemas/notifications.schemas.js +40 -0
  75. package/dist/schemas/organizations.schemas.d.ts +38 -0
  76. package/dist/schemas/organizations.schemas.d.ts.map +1 -1
  77. package/dist/schemas/organizations.schemas.js +2 -0
  78. package/dist/schemas/team-payments.schemas.d.ts +2604 -0
  79. package/dist/schemas/team-payments.schemas.d.ts.map +1 -0
  80. package/dist/schemas/team-payments.schemas.js +151 -0
  81. package/dist/schemas/waybills.schemas.d.ts +48 -0
  82. package/dist/schemas/waybills.schemas.d.ts.map +1 -1
  83. package/dist/schemas/waybills.schemas.js +3 -0
  84. package/package.json +1 -1
@@ -0,0 +1,2604 @@
1
+ import { z } from 'zod';
2
+ export declare const paymentProviderSchema: z.ZodEnum<["OPAY", "PAYSTACK", "FLUTTERWAVE", "MONO", "OKRA", "BANK_DIRECT"]>;
3
+ export declare const vendorPaymentStatusSchema: z.ZodEnum<["DRAFT", "PENDING_APPROVAL", "PROCESSING", "COMPLETED", "FAILED", "REJECTED"]>;
4
+ export declare const paymentApprovalActionSchema: z.ZodEnum<["APPROVED", "REJECTED"]>;
5
+ export declare const companyPaymentAccountAttributesSchema: z.ZodObject<{
6
+ organizationId: z.ZodString;
7
+ label: z.ZodString;
8
+ bankName: z.ZodString;
9
+ accountNumber: z.ZodString;
10
+ accountName: z.ZodString;
11
+ provider: z.ZodEnum<["OPAY", "PAYSTACK", "FLUTTERWAVE", "MONO", "OKRA", "BANK_DIRECT"]>;
12
+ providerAccountId: z.ZodNullable<z.ZodString>;
13
+ isDefault: z.ZodBoolean;
14
+ isActive: z.ZodBoolean;
15
+ dailyLimit: z.ZodNullable<z.ZodNumber>;
16
+ monthlyLimit: z.ZodNullable<z.ZodNumber>;
17
+ monoLinkedAt: z.ZodNullable<z.ZodString>;
18
+ monoConsentExpiry: z.ZodNullable<z.ZodString>;
19
+ } & {
20
+ createdAt: z.ZodString;
21
+ updatedAt: z.ZodString;
22
+ }, "strip", z.ZodTypeAny, {
23
+ createdAt: string;
24
+ updatedAt: string;
25
+ organizationId: string;
26
+ isDefault: boolean;
27
+ provider: "OPAY" | "PAYSTACK" | "FLUTTERWAVE" | "MONO" | "OKRA" | "BANK_DIRECT";
28
+ bankName: string;
29
+ accountNumber: string;
30
+ accountName: string;
31
+ label: string;
32
+ isActive: boolean;
33
+ providerAccountId: string | null;
34
+ dailyLimit: number | null;
35
+ monthlyLimit: number | null;
36
+ monoLinkedAt: string | null;
37
+ monoConsentExpiry: string | null;
38
+ }, {
39
+ createdAt: string;
40
+ updatedAt: string;
41
+ organizationId: string;
42
+ isDefault: boolean;
43
+ provider: "OPAY" | "PAYSTACK" | "FLUTTERWAVE" | "MONO" | "OKRA" | "BANK_DIRECT";
44
+ bankName: string;
45
+ accountNumber: string;
46
+ accountName: string;
47
+ label: string;
48
+ isActive: boolean;
49
+ providerAccountId: string | null;
50
+ dailyLimit: number | null;
51
+ monthlyLimit: number | null;
52
+ monoLinkedAt: string | null;
53
+ monoConsentExpiry: string | null;
54
+ }>;
55
+ export declare const createCompanyPaymentAccountAttributesSchema: z.ZodObject<{
56
+ label: z.ZodString;
57
+ bankName: z.ZodString;
58
+ accountNumber: z.ZodString;
59
+ accountName: z.ZodString;
60
+ provider: z.ZodEnum<["OPAY", "PAYSTACK", "FLUTTERWAVE", "MONO", "OKRA", "BANK_DIRECT"]>;
61
+ providerAccountId: z.ZodOptional<z.ZodString>;
62
+ providerCredentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
63
+ isDefault: z.ZodDefault<z.ZodBoolean>;
64
+ isActive: z.ZodDefault<z.ZodBoolean>;
65
+ dailyLimit: z.ZodOptional<z.ZodNumber>;
66
+ monthlyLimit: z.ZodOptional<z.ZodNumber>;
67
+ }, "strip", z.ZodTypeAny, {
68
+ isDefault: boolean;
69
+ provider: "OPAY" | "PAYSTACK" | "FLUTTERWAVE" | "MONO" | "OKRA" | "BANK_DIRECT";
70
+ bankName: string;
71
+ accountNumber: string;
72
+ accountName: string;
73
+ label: string;
74
+ isActive: boolean;
75
+ providerAccountId?: string | undefined;
76
+ dailyLimit?: number | undefined;
77
+ monthlyLimit?: number | undefined;
78
+ providerCredentials?: Record<string, unknown> | undefined;
79
+ }, {
80
+ provider: "OPAY" | "PAYSTACK" | "FLUTTERWAVE" | "MONO" | "OKRA" | "BANK_DIRECT";
81
+ bankName: string;
82
+ accountNumber: string;
83
+ accountName: string;
84
+ label: string;
85
+ isDefault?: boolean | undefined;
86
+ isActive?: boolean | undefined;
87
+ providerAccountId?: string | undefined;
88
+ dailyLimit?: number | undefined;
89
+ monthlyLimit?: number | undefined;
90
+ providerCredentials?: Record<string, unknown> | undefined;
91
+ }>;
92
+ export declare const updateCompanyPaymentAccountAttributesSchema: z.ZodObject<{
93
+ label: z.ZodOptional<z.ZodString>;
94
+ bankName: z.ZodOptional<z.ZodString>;
95
+ accountNumber: z.ZodOptional<z.ZodString>;
96
+ accountName: z.ZodOptional<z.ZodString>;
97
+ provider: z.ZodOptional<z.ZodEnum<["OPAY", "PAYSTACK", "FLUTTERWAVE", "MONO", "OKRA", "BANK_DIRECT"]>>;
98
+ providerAccountId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
99
+ providerCredentials: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
100
+ isDefault: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
101
+ isActive: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
102
+ dailyLimit: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
103
+ monthlyLimit: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
104
+ }, "strip", z.ZodTypeAny, {
105
+ isDefault?: boolean | undefined;
106
+ provider?: "OPAY" | "PAYSTACK" | "FLUTTERWAVE" | "MONO" | "OKRA" | "BANK_DIRECT" | undefined;
107
+ bankName?: string | undefined;
108
+ accountNumber?: string | undefined;
109
+ accountName?: string | undefined;
110
+ label?: string | undefined;
111
+ isActive?: boolean | undefined;
112
+ providerAccountId?: string | undefined;
113
+ dailyLimit?: number | undefined;
114
+ monthlyLimit?: number | undefined;
115
+ providerCredentials?: Record<string, unknown> | undefined;
116
+ }, {
117
+ isDefault?: boolean | undefined;
118
+ provider?: "OPAY" | "PAYSTACK" | "FLUTTERWAVE" | "MONO" | "OKRA" | "BANK_DIRECT" | undefined;
119
+ bankName?: string | undefined;
120
+ accountNumber?: string | undefined;
121
+ accountName?: string | undefined;
122
+ label?: string | undefined;
123
+ isActive?: boolean | undefined;
124
+ providerAccountId?: string | undefined;
125
+ dailyLimit?: number | undefined;
126
+ monthlyLimit?: number | undefined;
127
+ providerCredentials?: Record<string, unknown> | undefined;
128
+ }>;
129
+ export declare const createCompanyPaymentAccountSchema: z.ZodObject<{
130
+ type: z.ZodLiteral<"company-payment-accounts">;
131
+ attributes: z.ZodObject<{
132
+ label: z.ZodString;
133
+ bankName: z.ZodString;
134
+ accountNumber: z.ZodString;
135
+ accountName: z.ZodString;
136
+ provider: z.ZodEnum<["OPAY", "PAYSTACK", "FLUTTERWAVE", "MONO", "OKRA", "BANK_DIRECT"]>;
137
+ providerAccountId: z.ZodOptional<z.ZodString>;
138
+ providerCredentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
139
+ isDefault: z.ZodDefault<z.ZodBoolean>;
140
+ isActive: z.ZodDefault<z.ZodBoolean>;
141
+ dailyLimit: z.ZodOptional<z.ZodNumber>;
142
+ monthlyLimit: z.ZodOptional<z.ZodNumber>;
143
+ }, "strip", z.ZodTypeAny, {
144
+ isDefault: boolean;
145
+ provider: "OPAY" | "PAYSTACK" | "FLUTTERWAVE" | "MONO" | "OKRA" | "BANK_DIRECT";
146
+ bankName: string;
147
+ accountNumber: string;
148
+ accountName: string;
149
+ label: string;
150
+ isActive: boolean;
151
+ providerAccountId?: string | undefined;
152
+ dailyLimit?: number | undefined;
153
+ monthlyLimit?: number | undefined;
154
+ providerCredentials?: Record<string, unknown> | undefined;
155
+ }, {
156
+ provider: "OPAY" | "PAYSTACK" | "FLUTTERWAVE" | "MONO" | "OKRA" | "BANK_DIRECT";
157
+ bankName: string;
158
+ accountNumber: string;
159
+ accountName: string;
160
+ label: string;
161
+ isDefault?: boolean | undefined;
162
+ isActive?: boolean | undefined;
163
+ providerAccountId?: string | undefined;
164
+ dailyLimit?: number | undefined;
165
+ monthlyLimit?: number | undefined;
166
+ providerCredentials?: Record<string, unknown> | undefined;
167
+ }>;
168
+ }, "strip", z.ZodTypeAny, {
169
+ type: "company-payment-accounts";
170
+ attributes: {
171
+ isDefault: boolean;
172
+ provider: "OPAY" | "PAYSTACK" | "FLUTTERWAVE" | "MONO" | "OKRA" | "BANK_DIRECT";
173
+ bankName: string;
174
+ accountNumber: string;
175
+ accountName: string;
176
+ label: string;
177
+ isActive: boolean;
178
+ providerAccountId?: string | undefined;
179
+ dailyLimit?: number | undefined;
180
+ monthlyLimit?: number | undefined;
181
+ providerCredentials?: Record<string, unknown> | undefined;
182
+ };
183
+ }, {
184
+ type: "company-payment-accounts";
185
+ attributes: {
186
+ provider: "OPAY" | "PAYSTACK" | "FLUTTERWAVE" | "MONO" | "OKRA" | "BANK_DIRECT";
187
+ bankName: string;
188
+ accountNumber: string;
189
+ accountName: string;
190
+ label: string;
191
+ isDefault?: boolean | undefined;
192
+ isActive?: boolean | undefined;
193
+ providerAccountId?: string | undefined;
194
+ dailyLimit?: number | undefined;
195
+ monthlyLimit?: number | undefined;
196
+ providerCredentials?: Record<string, unknown> | undefined;
197
+ };
198
+ }>;
199
+ export declare const updateCompanyPaymentAccountSchema: z.ZodObject<{
200
+ type: z.ZodLiteral<"company-payment-accounts">;
201
+ id: z.ZodString;
202
+ attributes: z.ZodObject<{
203
+ label: z.ZodOptional<z.ZodString>;
204
+ bankName: z.ZodOptional<z.ZodString>;
205
+ accountNumber: z.ZodOptional<z.ZodString>;
206
+ accountName: z.ZodOptional<z.ZodString>;
207
+ provider: z.ZodOptional<z.ZodEnum<["OPAY", "PAYSTACK", "FLUTTERWAVE", "MONO", "OKRA", "BANK_DIRECT"]>>;
208
+ providerAccountId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
209
+ providerCredentials: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
210
+ isDefault: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
211
+ isActive: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
212
+ dailyLimit: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
213
+ monthlyLimit: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
214
+ }, "strip", z.ZodTypeAny, {
215
+ isDefault?: boolean | undefined;
216
+ provider?: "OPAY" | "PAYSTACK" | "FLUTTERWAVE" | "MONO" | "OKRA" | "BANK_DIRECT" | undefined;
217
+ bankName?: string | undefined;
218
+ accountNumber?: string | undefined;
219
+ accountName?: string | undefined;
220
+ label?: string | undefined;
221
+ isActive?: boolean | undefined;
222
+ providerAccountId?: string | undefined;
223
+ dailyLimit?: number | undefined;
224
+ monthlyLimit?: number | undefined;
225
+ providerCredentials?: Record<string, unknown> | undefined;
226
+ }, {
227
+ isDefault?: boolean | undefined;
228
+ provider?: "OPAY" | "PAYSTACK" | "FLUTTERWAVE" | "MONO" | "OKRA" | "BANK_DIRECT" | undefined;
229
+ bankName?: string | undefined;
230
+ accountNumber?: string | undefined;
231
+ accountName?: string | undefined;
232
+ label?: string | undefined;
233
+ isActive?: boolean | undefined;
234
+ providerAccountId?: string | undefined;
235
+ dailyLimit?: number | undefined;
236
+ monthlyLimit?: number | undefined;
237
+ providerCredentials?: Record<string, unknown> | undefined;
238
+ }>;
239
+ }, "strip", z.ZodTypeAny, {
240
+ type: "company-payment-accounts";
241
+ id: string;
242
+ attributes: {
243
+ isDefault?: boolean | undefined;
244
+ provider?: "OPAY" | "PAYSTACK" | "FLUTTERWAVE" | "MONO" | "OKRA" | "BANK_DIRECT" | undefined;
245
+ bankName?: string | undefined;
246
+ accountNumber?: string | undefined;
247
+ accountName?: string | undefined;
248
+ label?: string | undefined;
249
+ isActive?: boolean | undefined;
250
+ providerAccountId?: string | undefined;
251
+ dailyLimit?: number | undefined;
252
+ monthlyLimit?: number | undefined;
253
+ providerCredentials?: Record<string, unknown> | undefined;
254
+ };
255
+ }, {
256
+ type: "company-payment-accounts";
257
+ id: string;
258
+ attributes: {
259
+ isDefault?: boolean | undefined;
260
+ provider?: "OPAY" | "PAYSTACK" | "FLUTTERWAVE" | "MONO" | "OKRA" | "BANK_DIRECT" | undefined;
261
+ bankName?: string | undefined;
262
+ accountNumber?: string | undefined;
263
+ accountName?: string | undefined;
264
+ label?: string | undefined;
265
+ isActive?: boolean | undefined;
266
+ providerAccountId?: string | undefined;
267
+ dailyLimit?: number | undefined;
268
+ monthlyLimit?: number | undefined;
269
+ providerCredentials?: Record<string, unknown> | undefined;
270
+ };
271
+ }>;
272
+ export declare const companyPaymentAccountResourceSchema: z.ZodObject<{
273
+ type: z.ZodLiteral<string>;
274
+ id: z.ZodString;
275
+ attributes: z.ZodObject<{
276
+ organizationId: z.ZodString;
277
+ label: z.ZodString;
278
+ bankName: z.ZodString;
279
+ accountNumber: z.ZodString;
280
+ accountName: z.ZodString;
281
+ provider: z.ZodEnum<["OPAY", "PAYSTACK", "FLUTTERWAVE", "MONO", "OKRA", "BANK_DIRECT"]>;
282
+ providerAccountId: z.ZodNullable<z.ZodString>;
283
+ isDefault: z.ZodBoolean;
284
+ isActive: z.ZodBoolean;
285
+ dailyLimit: z.ZodNullable<z.ZodNumber>;
286
+ monthlyLimit: z.ZodNullable<z.ZodNumber>;
287
+ monoLinkedAt: z.ZodNullable<z.ZodString>;
288
+ monoConsentExpiry: z.ZodNullable<z.ZodString>;
289
+ } & {
290
+ createdAt: z.ZodString;
291
+ updatedAt: z.ZodString;
292
+ }, "strip", z.ZodTypeAny, {
293
+ createdAt: string;
294
+ updatedAt: string;
295
+ organizationId: string;
296
+ isDefault: boolean;
297
+ provider: "OPAY" | "PAYSTACK" | "FLUTTERWAVE" | "MONO" | "OKRA" | "BANK_DIRECT";
298
+ bankName: string;
299
+ accountNumber: string;
300
+ accountName: string;
301
+ label: string;
302
+ isActive: boolean;
303
+ providerAccountId: string | null;
304
+ dailyLimit: number | null;
305
+ monthlyLimit: number | null;
306
+ monoLinkedAt: string | null;
307
+ monoConsentExpiry: string | null;
308
+ }, {
309
+ createdAt: string;
310
+ updatedAt: string;
311
+ organizationId: string;
312
+ isDefault: boolean;
313
+ provider: "OPAY" | "PAYSTACK" | "FLUTTERWAVE" | "MONO" | "OKRA" | "BANK_DIRECT";
314
+ bankName: string;
315
+ accountNumber: string;
316
+ accountName: string;
317
+ label: string;
318
+ isActive: boolean;
319
+ providerAccountId: string | null;
320
+ dailyLimit: number | null;
321
+ monthlyLimit: number | null;
322
+ monoLinkedAt: string | null;
323
+ monoConsentExpiry: string | null;
324
+ }>;
325
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
326
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
327
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
328
+ }, "strip", z.ZodTypeAny, {
329
+ type: string;
330
+ id: string;
331
+ attributes: {
332
+ createdAt: string;
333
+ updatedAt: string;
334
+ organizationId: string;
335
+ isDefault: boolean;
336
+ provider: "OPAY" | "PAYSTACK" | "FLUTTERWAVE" | "MONO" | "OKRA" | "BANK_DIRECT";
337
+ bankName: string;
338
+ accountNumber: string;
339
+ accountName: string;
340
+ label: string;
341
+ isActive: boolean;
342
+ providerAccountId: string | null;
343
+ dailyLimit: number | null;
344
+ monthlyLimit: number | null;
345
+ monoLinkedAt: string | null;
346
+ monoConsentExpiry: string | null;
347
+ };
348
+ relationships?: Record<string, unknown> | undefined;
349
+ links?: Record<string, string> | undefined;
350
+ meta?: Record<string, unknown> | undefined;
351
+ }, {
352
+ type: string;
353
+ id: string;
354
+ attributes: {
355
+ createdAt: string;
356
+ updatedAt: string;
357
+ organizationId: string;
358
+ isDefault: boolean;
359
+ provider: "OPAY" | "PAYSTACK" | "FLUTTERWAVE" | "MONO" | "OKRA" | "BANK_DIRECT";
360
+ bankName: string;
361
+ accountNumber: string;
362
+ accountName: string;
363
+ label: string;
364
+ isActive: boolean;
365
+ providerAccountId: string | null;
366
+ dailyLimit: number | null;
367
+ monthlyLimit: number | null;
368
+ monoLinkedAt: string | null;
369
+ monoConsentExpiry: string | null;
370
+ };
371
+ relationships?: Record<string, unknown> | undefined;
372
+ links?: Record<string, string> | undefined;
373
+ meta?: Record<string, unknown> | undefined;
374
+ }>;
375
+ export declare const companyPaymentAccountResponseSchema: z.ZodObject<{
376
+ data: z.ZodObject<{
377
+ type: z.ZodLiteral<string>;
378
+ id: z.ZodString;
379
+ attributes: z.ZodObject<{
380
+ organizationId: z.ZodString;
381
+ label: z.ZodString;
382
+ bankName: z.ZodString;
383
+ accountNumber: z.ZodString;
384
+ accountName: z.ZodString;
385
+ provider: z.ZodEnum<["OPAY", "PAYSTACK", "FLUTTERWAVE", "MONO", "OKRA", "BANK_DIRECT"]>;
386
+ providerAccountId: z.ZodNullable<z.ZodString>;
387
+ isDefault: z.ZodBoolean;
388
+ isActive: z.ZodBoolean;
389
+ dailyLimit: z.ZodNullable<z.ZodNumber>;
390
+ monthlyLimit: z.ZodNullable<z.ZodNumber>;
391
+ monoLinkedAt: z.ZodNullable<z.ZodString>;
392
+ monoConsentExpiry: z.ZodNullable<z.ZodString>;
393
+ } & {
394
+ createdAt: z.ZodString;
395
+ updatedAt: z.ZodString;
396
+ }, "strip", z.ZodTypeAny, {
397
+ createdAt: string;
398
+ updatedAt: string;
399
+ organizationId: string;
400
+ isDefault: boolean;
401
+ provider: "OPAY" | "PAYSTACK" | "FLUTTERWAVE" | "MONO" | "OKRA" | "BANK_DIRECT";
402
+ bankName: string;
403
+ accountNumber: string;
404
+ accountName: string;
405
+ label: string;
406
+ isActive: boolean;
407
+ providerAccountId: string | null;
408
+ dailyLimit: number | null;
409
+ monthlyLimit: number | null;
410
+ monoLinkedAt: string | null;
411
+ monoConsentExpiry: string | null;
412
+ }, {
413
+ createdAt: string;
414
+ updatedAt: string;
415
+ organizationId: string;
416
+ isDefault: boolean;
417
+ provider: "OPAY" | "PAYSTACK" | "FLUTTERWAVE" | "MONO" | "OKRA" | "BANK_DIRECT";
418
+ bankName: string;
419
+ accountNumber: string;
420
+ accountName: string;
421
+ label: string;
422
+ isActive: boolean;
423
+ providerAccountId: string | null;
424
+ dailyLimit: number | null;
425
+ monthlyLimit: number | null;
426
+ monoLinkedAt: string | null;
427
+ monoConsentExpiry: string | null;
428
+ }>;
429
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
430
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
431
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
432
+ }, "strip", z.ZodTypeAny, {
433
+ type: string;
434
+ id: string;
435
+ attributes: {
436
+ createdAt: string;
437
+ updatedAt: string;
438
+ organizationId: string;
439
+ isDefault: boolean;
440
+ provider: "OPAY" | "PAYSTACK" | "FLUTTERWAVE" | "MONO" | "OKRA" | "BANK_DIRECT";
441
+ bankName: string;
442
+ accountNumber: string;
443
+ accountName: string;
444
+ label: string;
445
+ isActive: boolean;
446
+ providerAccountId: string | null;
447
+ dailyLimit: number | null;
448
+ monthlyLimit: number | null;
449
+ monoLinkedAt: string | null;
450
+ monoConsentExpiry: string | null;
451
+ };
452
+ relationships?: Record<string, unknown> | undefined;
453
+ links?: Record<string, string> | undefined;
454
+ meta?: Record<string, unknown> | undefined;
455
+ }, {
456
+ type: string;
457
+ id: string;
458
+ attributes: {
459
+ createdAt: string;
460
+ updatedAt: string;
461
+ organizationId: string;
462
+ isDefault: boolean;
463
+ provider: "OPAY" | "PAYSTACK" | "FLUTTERWAVE" | "MONO" | "OKRA" | "BANK_DIRECT";
464
+ bankName: string;
465
+ accountNumber: string;
466
+ accountName: string;
467
+ label: string;
468
+ isActive: boolean;
469
+ providerAccountId: string | null;
470
+ dailyLimit: number | null;
471
+ monthlyLimit: number | null;
472
+ monoLinkedAt: string | null;
473
+ monoConsentExpiry: string | null;
474
+ };
475
+ relationships?: Record<string, unknown> | undefined;
476
+ links?: Record<string, string> | undefined;
477
+ meta?: Record<string, unknown> | undefined;
478
+ }>;
479
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
480
+ type: z.ZodString;
481
+ id: z.ZodString;
482
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
483
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
484
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
485
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
486
+ }, "strip", z.ZodTypeAny, {
487
+ type: string;
488
+ id: string;
489
+ attributes?: Record<string, unknown> | undefined;
490
+ relationships?: Record<string, unknown> | undefined;
491
+ links?: Record<string, string> | undefined;
492
+ meta?: Record<string, unknown> | undefined;
493
+ }, {
494
+ type: string;
495
+ id: string;
496
+ attributes?: Record<string, unknown> | undefined;
497
+ relationships?: Record<string, unknown> | undefined;
498
+ links?: Record<string, string> | undefined;
499
+ meta?: Record<string, unknown> | undefined;
500
+ }>, "many">>;
501
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
502
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
503
+ }, "strip", z.ZodTypeAny, {
504
+ data: {
505
+ type: string;
506
+ id: string;
507
+ attributes: {
508
+ createdAt: string;
509
+ updatedAt: string;
510
+ organizationId: string;
511
+ isDefault: boolean;
512
+ provider: "OPAY" | "PAYSTACK" | "FLUTTERWAVE" | "MONO" | "OKRA" | "BANK_DIRECT";
513
+ bankName: string;
514
+ accountNumber: string;
515
+ accountName: string;
516
+ label: string;
517
+ isActive: boolean;
518
+ providerAccountId: string | null;
519
+ dailyLimit: number | null;
520
+ monthlyLimit: number | null;
521
+ monoLinkedAt: string | null;
522
+ monoConsentExpiry: string | null;
523
+ };
524
+ relationships?: Record<string, unknown> | undefined;
525
+ links?: Record<string, string> | undefined;
526
+ meta?: Record<string, unknown> | undefined;
527
+ };
528
+ links?: Record<string, string> | undefined;
529
+ meta?: Record<string, unknown> | undefined;
530
+ included?: {
531
+ type: string;
532
+ id: string;
533
+ attributes?: Record<string, unknown> | undefined;
534
+ relationships?: Record<string, unknown> | undefined;
535
+ links?: Record<string, string> | undefined;
536
+ meta?: Record<string, unknown> | undefined;
537
+ }[] | undefined;
538
+ }, {
539
+ data: {
540
+ type: string;
541
+ id: string;
542
+ attributes: {
543
+ createdAt: string;
544
+ updatedAt: string;
545
+ organizationId: string;
546
+ isDefault: boolean;
547
+ provider: "OPAY" | "PAYSTACK" | "FLUTTERWAVE" | "MONO" | "OKRA" | "BANK_DIRECT";
548
+ bankName: string;
549
+ accountNumber: string;
550
+ accountName: string;
551
+ label: string;
552
+ isActive: boolean;
553
+ providerAccountId: string | null;
554
+ dailyLimit: number | null;
555
+ monthlyLimit: number | null;
556
+ monoLinkedAt: string | null;
557
+ monoConsentExpiry: string | null;
558
+ };
559
+ relationships?: Record<string, unknown> | undefined;
560
+ links?: Record<string, string> | undefined;
561
+ meta?: Record<string, unknown> | undefined;
562
+ };
563
+ links?: Record<string, string> | undefined;
564
+ meta?: Record<string, unknown> | undefined;
565
+ included?: {
566
+ type: string;
567
+ id: string;
568
+ attributes?: Record<string, unknown> | undefined;
569
+ relationships?: Record<string, unknown> | undefined;
570
+ links?: Record<string, string> | undefined;
571
+ meta?: Record<string, unknown> | undefined;
572
+ }[] | undefined;
573
+ }>;
574
+ export declare const companyPaymentAccountListResponseSchema: z.ZodObject<{
575
+ data: z.ZodArray<z.ZodObject<{
576
+ type: z.ZodLiteral<string>;
577
+ id: z.ZodString;
578
+ attributes: z.ZodObject<{
579
+ organizationId: z.ZodString;
580
+ label: z.ZodString;
581
+ bankName: z.ZodString;
582
+ accountNumber: z.ZodString;
583
+ accountName: z.ZodString;
584
+ provider: z.ZodEnum<["OPAY", "PAYSTACK", "FLUTTERWAVE", "MONO", "OKRA", "BANK_DIRECT"]>;
585
+ providerAccountId: z.ZodNullable<z.ZodString>;
586
+ isDefault: z.ZodBoolean;
587
+ isActive: z.ZodBoolean;
588
+ dailyLimit: z.ZodNullable<z.ZodNumber>;
589
+ monthlyLimit: z.ZodNullable<z.ZodNumber>;
590
+ monoLinkedAt: z.ZodNullable<z.ZodString>;
591
+ monoConsentExpiry: z.ZodNullable<z.ZodString>;
592
+ } & {
593
+ createdAt: z.ZodString;
594
+ updatedAt: z.ZodString;
595
+ }, "strip", z.ZodTypeAny, {
596
+ createdAt: string;
597
+ updatedAt: string;
598
+ organizationId: string;
599
+ isDefault: boolean;
600
+ provider: "OPAY" | "PAYSTACK" | "FLUTTERWAVE" | "MONO" | "OKRA" | "BANK_DIRECT";
601
+ bankName: string;
602
+ accountNumber: string;
603
+ accountName: string;
604
+ label: string;
605
+ isActive: boolean;
606
+ providerAccountId: string | null;
607
+ dailyLimit: number | null;
608
+ monthlyLimit: number | null;
609
+ monoLinkedAt: string | null;
610
+ monoConsentExpiry: string | null;
611
+ }, {
612
+ createdAt: string;
613
+ updatedAt: string;
614
+ organizationId: string;
615
+ isDefault: boolean;
616
+ provider: "OPAY" | "PAYSTACK" | "FLUTTERWAVE" | "MONO" | "OKRA" | "BANK_DIRECT";
617
+ bankName: string;
618
+ accountNumber: string;
619
+ accountName: string;
620
+ label: string;
621
+ isActive: boolean;
622
+ providerAccountId: string | null;
623
+ dailyLimit: number | null;
624
+ monthlyLimit: number | null;
625
+ monoLinkedAt: string | null;
626
+ monoConsentExpiry: string | null;
627
+ }>;
628
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
629
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
630
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
631
+ }, "strip", z.ZodTypeAny, {
632
+ type: string;
633
+ id: string;
634
+ attributes: {
635
+ createdAt: string;
636
+ updatedAt: string;
637
+ organizationId: string;
638
+ isDefault: boolean;
639
+ provider: "OPAY" | "PAYSTACK" | "FLUTTERWAVE" | "MONO" | "OKRA" | "BANK_DIRECT";
640
+ bankName: string;
641
+ accountNumber: string;
642
+ accountName: string;
643
+ label: string;
644
+ isActive: boolean;
645
+ providerAccountId: string | null;
646
+ dailyLimit: number | null;
647
+ monthlyLimit: number | null;
648
+ monoLinkedAt: string | null;
649
+ monoConsentExpiry: string | null;
650
+ };
651
+ relationships?: Record<string, unknown> | undefined;
652
+ links?: Record<string, string> | undefined;
653
+ meta?: Record<string, unknown> | undefined;
654
+ }, {
655
+ type: string;
656
+ id: string;
657
+ attributes: {
658
+ createdAt: string;
659
+ updatedAt: string;
660
+ organizationId: string;
661
+ isDefault: boolean;
662
+ provider: "OPAY" | "PAYSTACK" | "FLUTTERWAVE" | "MONO" | "OKRA" | "BANK_DIRECT";
663
+ bankName: string;
664
+ accountNumber: string;
665
+ accountName: string;
666
+ label: string;
667
+ isActive: boolean;
668
+ providerAccountId: string | null;
669
+ dailyLimit: number | null;
670
+ monthlyLimit: number | null;
671
+ monoLinkedAt: string | null;
672
+ monoConsentExpiry: string | null;
673
+ };
674
+ relationships?: Record<string, unknown> | undefined;
675
+ links?: Record<string, string> | undefined;
676
+ meta?: Record<string, unknown> | undefined;
677
+ }>, "many">;
678
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
679
+ type: z.ZodString;
680
+ id: z.ZodString;
681
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
682
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
683
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
684
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
685
+ }, "strip", z.ZodTypeAny, {
686
+ type: string;
687
+ id: string;
688
+ attributes?: Record<string, unknown> | undefined;
689
+ relationships?: Record<string, unknown> | undefined;
690
+ links?: Record<string, string> | undefined;
691
+ meta?: Record<string, unknown> | undefined;
692
+ }, {
693
+ type: string;
694
+ id: string;
695
+ attributes?: Record<string, unknown> | undefined;
696
+ relationships?: Record<string, unknown> | undefined;
697
+ links?: Record<string, string> | undefined;
698
+ meta?: Record<string, unknown> | undefined;
699
+ }>, "many">>;
700
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
701
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
702
+ }, "strip", z.ZodTypeAny, {
703
+ data: {
704
+ type: string;
705
+ id: string;
706
+ attributes: {
707
+ createdAt: string;
708
+ updatedAt: string;
709
+ organizationId: string;
710
+ isDefault: boolean;
711
+ provider: "OPAY" | "PAYSTACK" | "FLUTTERWAVE" | "MONO" | "OKRA" | "BANK_DIRECT";
712
+ bankName: string;
713
+ accountNumber: string;
714
+ accountName: string;
715
+ label: string;
716
+ isActive: boolean;
717
+ providerAccountId: string | null;
718
+ dailyLimit: number | null;
719
+ monthlyLimit: number | null;
720
+ monoLinkedAt: string | null;
721
+ monoConsentExpiry: string | null;
722
+ };
723
+ relationships?: Record<string, unknown> | undefined;
724
+ links?: Record<string, string> | undefined;
725
+ meta?: Record<string, unknown> | undefined;
726
+ }[];
727
+ links?: Record<string, string> | undefined;
728
+ meta?: Record<string, unknown> | undefined;
729
+ included?: {
730
+ type: string;
731
+ id: string;
732
+ attributes?: Record<string, unknown> | undefined;
733
+ relationships?: Record<string, unknown> | undefined;
734
+ links?: Record<string, string> | undefined;
735
+ meta?: Record<string, unknown> | undefined;
736
+ }[] | undefined;
737
+ }, {
738
+ data: {
739
+ type: string;
740
+ id: string;
741
+ attributes: {
742
+ createdAt: string;
743
+ updatedAt: string;
744
+ organizationId: string;
745
+ isDefault: boolean;
746
+ provider: "OPAY" | "PAYSTACK" | "FLUTTERWAVE" | "MONO" | "OKRA" | "BANK_DIRECT";
747
+ bankName: string;
748
+ accountNumber: string;
749
+ accountName: string;
750
+ label: string;
751
+ isActive: boolean;
752
+ providerAccountId: string | null;
753
+ dailyLimit: number | null;
754
+ monthlyLimit: number | null;
755
+ monoLinkedAt: string | null;
756
+ monoConsentExpiry: string | null;
757
+ };
758
+ relationships?: Record<string, unknown> | undefined;
759
+ links?: Record<string, string> | undefined;
760
+ meta?: Record<string, unknown> | undefined;
761
+ }[];
762
+ links?: Record<string, string> | undefined;
763
+ meta?: Record<string, unknown> | undefined;
764
+ included?: {
765
+ type: string;
766
+ id: string;
767
+ attributes?: Record<string, unknown> | undefined;
768
+ relationships?: Record<string, unknown> | undefined;
769
+ links?: Record<string, string> | undefined;
770
+ meta?: Record<string, unknown> | undefined;
771
+ }[] | undefined;
772
+ }>;
773
+ export declare const teamSpendLimitAttributesSchema: z.ZodObject<{
774
+ teamMemberId: z.ZodString;
775
+ farmId: z.ZodString;
776
+ monthlyCap: z.ZodNumber;
777
+ currentMonthSpent: z.ZodNumber;
778
+ resetAt: z.ZodString;
779
+ isActive: z.ZodBoolean;
780
+ remaining: z.ZodOptional<z.ZodNumber>;
781
+ } & {
782
+ createdAt: z.ZodString;
783
+ updatedAt: z.ZodString;
784
+ }, "strip", z.ZodTypeAny, {
785
+ createdAt: string;
786
+ updatedAt: string;
787
+ farmId: string;
788
+ isActive: boolean;
789
+ teamMemberId: string;
790
+ monthlyCap: number;
791
+ currentMonthSpent: number;
792
+ resetAt: string;
793
+ remaining?: number | undefined;
794
+ }, {
795
+ createdAt: string;
796
+ updatedAt: string;
797
+ farmId: string;
798
+ isActive: boolean;
799
+ teamMemberId: string;
800
+ monthlyCap: number;
801
+ currentMonthSpent: number;
802
+ resetAt: string;
803
+ remaining?: number | undefined;
804
+ }>;
805
+ export declare const createTeamSpendLimitAttributesSchema: z.ZodObject<{
806
+ teamMemberId: z.ZodString;
807
+ monthlyCap: z.ZodNumber;
808
+ isActive: z.ZodDefault<z.ZodBoolean>;
809
+ }, "strip", z.ZodTypeAny, {
810
+ isActive: boolean;
811
+ teamMemberId: string;
812
+ monthlyCap: number;
813
+ }, {
814
+ teamMemberId: string;
815
+ monthlyCap: number;
816
+ isActive?: boolean | undefined;
817
+ }>;
818
+ export declare const updateTeamSpendLimitAttributesSchema: z.ZodObject<{
819
+ monthlyCap: z.ZodOptional<z.ZodNumber>;
820
+ isActive: z.ZodOptional<z.ZodBoolean>;
821
+ }, "strip", z.ZodTypeAny, {
822
+ isActive?: boolean | undefined;
823
+ monthlyCap?: number | undefined;
824
+ }, {
825
+ isActive?: boolean | undefined;
826
+ monthlyCap?: number | undefined;
827
+ }>;
828
+ export declare const createTeamSpendLimitSchema: z.ZodObject<{
829
+ type: z.ZodLiteral<"team-spend-limits">;
830
+ attributes: z.ZodObject<{
831
+ teamMemberId: z.ZodString;
832
+ monthlyCap: z.ZodNumber;
833
+ isActive: z.ZodDefault<z.ZodBoolean>;
834
+ }, "strip", z.ZodTypeAny, {
835
+ isActive: boolean;
836
+ teamMemberId: string;
837
+ monthlyCap: number;
838
+ }, {
839
+ teamMemberId: string;
840
+ monthlyCap: number;
841
+ isActive?: boolean | undefined;
842
+ }>;
843
+ }, "strip", z.ZodTypeAny, {
844
+ type: "team-spend-limits";
845
+ attributes: {
846
+ isActive: boolean;
847
+ teamMemberId: string;
848
+ monthlyCap: number;
849
+ };
850
+ }, {
851
+ type: "team-spend-limits";
852
+ attributes: {
853
+ teamMemberId: string;
854
+ monthlyCap: number;
855
+ isActive?: boolean | undefined;
856
+ };
857
+ }>;
858
+ export declare const updateTeamSpendLimitSchema: z.ZodObject<{
859
+ type: z.ZodLiteral<"team-spend-limits">;
860
+ id: z.ZodString;
861
+ attributes: z.ZodObject<{
862
+ monthlyCap: z.ZodOptional<z.ZodNumber>;
863
+ isActive: z.ZodOptional<z.ZodBoolean>;
864
+ }, "strip", z.ZodTypeAny, {
865
+ isActive?: boolean | undefined;
866
+ monthlyCap?: number | undefined;
867
+ }, {
868
+ isActive?: boolean | undefined;
869
+ monthlyCap?: number | undefined;
870
+ }>;
871
+ }, "strip", z.ZodTypeAny, {
872
+ type: "team-spend-limits";
873
+ id: string;
874
+ attributes: {
875
+ isActive?: boolean | undefined;
876
+ monthlyCap?: number | undefined;
877
+ };
878
+ }, {
879
+ type: "team-spend-limits";
880
+ id: string;
881
+ attributes: {
882
+ isActive?: boolean | undefined;
883
+ monthlyCap?: number | undefined;
884
+ };
885
+ }>;
886
+ export declare const teamSpendLimitResourceSchema: z.ZodObject<{
887
+ type: z.ZodLiteral<string>;
888
+ id: z.ZodString;
889
+ attributes: z.ZodObject<{
890
+ teamMemberId: z.ZodString;
891
+ farmId: z.ZodString;
892
+ monthlyCap: z.ZodNumber;
893
+ currentMonthSpent: z.ZodNumber;
894
+ resetAt: z.ZodString;
895
+ isActive: z.ZodBoolean;
896
+ remaining: z.ZodOptional<z.ZodNumber>;
897
+ } & {
898
+ createdAt: z.ZodString;
899
+ updatedAt: z.ZodString;
900
+ }, "strip", z.ZodTypeAny, {
901
+ createdAt: string;
902
+ updatedAt: string;
903
+ farmId: string;
904
+ isActive: boolean;
905
+ teamMemberId: string;
906
+ monthlyCap: number;
907
+ currentMonthSpent: number;
908
+ resetAt: string;
909
+ remaining?: number | undefined;
910
+ }, {
911
+ createdAt: string;
912
+ updatedAt: string;
913
+ farmId: string;
914
+ isActive: boolean;
915
+ teamMemberId: string;
916
+ monthlyCap: number;
917
+ currentMonthSpent: number;
918
+ resetAt: string;
919
+ remaining?: number | undefined;
920
+ }>;
921
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
922
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
923
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
924
+ }, "strip", z.ZodTypeAny, {
925
+ type: string;
926
+ id: string;
927
+ attributes: {
928
+ createdAt: string;
929
+ updatedAt: string;
930
+ farmId: string;
931
+ isActive: boolean;
932
+ teamMemberId: string;
933
+ monthlyCap: number;
934
+ currentMonthSpent: number;
935
+ resetAt: string;
936
+ remaining?: number | undefined;
937
+ };
938
+ relationships?: Record<string, unknown> | undefined;
939
+ links?: Record<string, string> | undefined;
940
+ meta?: Record<string, unknown> | undefined;
941
+ }, {
942
+ type: string;
943
+ id: string;
944
+ attributes: {
945
+ createdAt: string;
946
+ updatedAt: string;
947
+ farmId: string;
948
+ isActive: boolean;
949
+ teamMemberId: string;
950
+ monthlyCap: number;
951
+ currentMonthSpent: number;
952
+ resetAt: string;
953
+ remaining?: number | undefined;
954
+ };
955
+ relationships?: Record<string, unknown> | undefined;
956
+ links?: Record<string, string> | undefined;
957
+ meta?: Record<string, unknown> | undefined;
958
+ }>;
959
+ export declare const teamSpendLimitResponseSchema: z.ZodObject<{
960
+ data: z.ZodObject<{
961
+ type: z.ZodLiteral<string>;
962
+ id: z.ZodString;
963
+ attributes: z.ZodObject<{
964
+ teamMemberId: z.ZodString;
965
+ farmId: z.ZodString;
966
+ monthlyCap: z.ZodNumber;
967
+ currentMonthSpent: z.ZodNumber;
968
+ resetAt: z.ZodString;
969
+ isActive: z.ZodBoolean;
970
+ remaining: z.ZodOptional<z.ZodNumber>;
971
+ } & {
972
+ createdAt: z.ZodString;
973
+ updatedAt: z.ZodString;
974
+ }, "strip", z.ZodTypeAny, {
975
+ createdAt: string;
976
+ updatedAt: string;
977
+ farmId: string;
978
+ isActive: boolean;
979
+ teamMemberId: string;
980
+ monthlyCap: number;
981
+ currentMonthSpent: number;
982
+ resetAt: string;
983
+ remaining?: number | undefined;
984
+ }, {
985
+ createdAt: string;
986
+ updatedAt: string;
987
+ farmId: string;
988
+ isActive: boolean;
989
+ teamMemberId: string;
990
+ monthlyCap: number;
991
+ currentMonthSpent: number;
992
+ resetAt: string;
993
+ remaining?: number | undefined;
994
+ }>;
995
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
996
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
997
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
998
+ }, "strip", z.ZodTypeAny, {
999
+ type: string;
1000
+ id: string;
1001
+ attributes: {
1002
+ createdAt: string;
1003
+ updatedAt: string;
1004
+ farmId: string;
1005
+ isActive: boolean;
1006
+ teamMemberId: string;
1007
+ monthlyCap: number;
1008
+ currentMonthSpent: number;
1009
+ resetAt: string;
1010
+ remaining?: number | undefined;
1011
+ };
1012
+ relationships?: Record<string, unknown> | undefined;
1013
+ links?: Record<string, string> | undefined;
1014
+ meta?: Record<string, unknown> | undefined;
1015
+ }, {
1016
+ type: string;
1017
+ id: string;
1018
+ attributes: {
1019
+ createdAt: string;
1020
+ updatedAt: string;
1021
+ farmId: string;
1022
+ isActive: boolean;
1023
+ teamMemberId: string;
1024
+ monthlyCap: number;
1025
+ currentMonthSpent: number;
1026
+ resetAt: string;
1027
+ remaining?: number | undefined;
1028
+ };
1029
+ relationships?: Record<string, unknown> | undefined;
1030
+ links?: Record<string, string> | undefined;
1031
+ meta?: Record<string, unknown> | undefined;
1032
+ }>;
1033
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
1034
+ type: z.ZodString;
1035
+ id: z.ZodString;
1036
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1037
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1038
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1039
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1040
+ }, "strip", z.ZodTypeAny, {
1041
+ type: string;
1042
+ id: string;
1043
+ attributes?: Record<string, unknown> | undefined;
1044
+ relationships?: Record<string, unknown> | undefined;
1045
+ links?: Record<string, string> | undefined;
1046
+ meta?: Record<string, unknown> | undefined;
1047
+ }, {
1048
+ type: string;
1049
+ id: string;
1050
+ attributes?: Record<string, unknown> | undefined;
1051
+ relationships?: Record<string, unknown> | undefined;
1052
+ links?: Record<string, string> | undefined;
1053
+ meta?: Record<string, unknown> | undefined;
1054
+ }>, "many">>;
1055
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1056
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1057
+ }, "strip", z.ZodTypeAny, {
1058
+ data: {
1059
+ type: string;
1060
+ id: string;
1061
+ attributes: {
1062
+ createdAt: string;
1063
+ updatedAt: string;
1064
+ farmId: string;
1065
+ isActive: boolean;
1066
+ teamMemberId: string;
1067
+ monthlyCap: number;
1068
+ currentMonthSpent: number;
1069
+ resetAt: string;
1070
+ remaining?: number | undefined;
1071
+ };
1072
+ relationships?: Record<string, unknown> | undefined;
1073
+ links?: Record<string, string> | undefined;
1074
+ meta?: Record<string, unknown> | undefined;
1075
+ };
1076
+ links?: Record<string, string> | undefined;
1077
+ meta?: Record<string, unknown> | undefined;
1078
+ included?: {
1079
+ type: string;
1080
+ id: string;
1081
+ attributes?: Record<string, unknown> | undefined;
1082
+ relationships?: Record<string, unknown> | undefined;
1083
+ links?: Record<string, string> | undefined;
1084
+ meta?: Record<string, unknown> | undefined;
1085
+ }[] | undefined;
1086
+ }, {
1087
+ data: {
1088
+ type: string;
1089
+ id: string;
1090
+ attributes: {
1091
+ createdAt: string;
1092
+ updatedAt: string;
1093
+ farmId: string;
1094
+ isActive: boolean;
1095
+ teamMemberId: string;
1096
+ monthlyCap: number;
1097
+ currentMonthSpent: number;
1098
+ resetAt: string;
1099
+ remaining?: number | undefined;
1100
+ };
1101
+ relationships?: Record<string, unknown> | undefined;
1102
+ links?: Record<string, string> | undefined;
1103
+ meta?: Record<string, unknown> | undefined;
1104
+ };
1105
+ links?: Record<string, string> | undefined;
1106
+ meta?: Record<string, unknown> | undefined;
1107
+ included?: {
1108
+ type: string;
1109
+ id: string;
1110
+ attributes?: Record<string, unknown> | undefined;
1111
+ relationships?: Record<string, unknown> | undefined;
1112
+ links?: Record<string, string> | undefined;
1113
+ meta?: Record<string, unknown> | undefined;
1114
+ }[] | undefined;
1115
+ }>;
1116
+ export declare const teamSpendLimitListResponseSchema: z.ZodObject<{
1117
+ data: z.ZodArray<z.ZodObject<{
1118
+ type: z.ZodLiteral<string>;
1119
+ id: z.ZodString;
1120
+ attributes: z.ZodObject<{
1121
+ teamMemberId: z.ZodString;
1122
+ farmId: z.ZodString;
1123
+ monthlyCap: z.ZodNumber;
1124
+ currentMonthSpent: z.ZodNumber;
1125
+ resetAt: z.ZodString;
1126
+ isActive: z.ZodBoolean;
1127
+ remaining: z.ZodOptional<z.ZodNumber>;
1128
+ } & {
1129
+ createdAt: z.ZodString;
1130
+ updatedAt: z.ZodString;
1131
+ }, "strip", z.ZodTypeAny, {
1132
+ createdAt: string;
1133
+ updatedAt: string;
1134
+ farmId: string;
1135
+ isActive: boolean;
1136
+ teamMemberId: string;
1137
+ monthlyCap: number;
1138
+ currentMonthSpent: number;
1139
+ resetAt: string;
1140
+ remaining?: number | undefined;
1141
+ }, {
1142
+ createdAt: string;
1143
+ updatedAt: string;
1144
+ farmId: string;
1145
+ isActive: boolean;
1146
+ teamMemberId: string;
1147
+ monthlyCap: number;
1148
+ currentMonthSpent: number;
1149
+ resetAt: string;
1150
+ remaining?: number | undefined;
1151
+ }>;
1152
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1153
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1154
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1155
+ }, "strip", z.ZodTypeAny, {
1156
+ type: string;
1157
+ id: string;
1158
+ attributes: {
1159
+ createdAt: string;
1160
+ updatedAt: string;
1161
+ farmId: string;
1162
+ isActive: boolean;
1163
+ teamMemberId: string;
1164
+ monthlyCap: number;
1165
+ currentMonthSpent: number;
1166
+ resetAt: string;
1167
+ remaining?: number | undefined;
1168
+ };
1169
+ relationships?: Record<string, unknown> | undefined;
1170
+ links?: Record<string, string> | undefined;
1171
+ meta?: Record<string, unknown> | undefined;
1172
+ }, {
1173
+ type: string;
1174
+ id: string;
1175
+ attributes: {
1176
+ createdAt: string;
1177
+ updatedAt: string;
1178
+ farmId: string;
1179
+ isActive: boolean;
1180
+ teamMemberId: string;
1181
+ monthlyCap: number;
1182
+ currentMonthSpent: number;
1183
+ resetAt: string;
1184
+ remaining?: number | undefined;
1185
+ };
1186
+ relationships?: Record<string, unknown> | undefined;
1187
+ links?: Record<string, string> | undefined;
1188
+ meta?: Record<string, unknown> | undefined;
1189
+ }>, "many">;
1190
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
1191
+ type: z.ZodString;
1192
+ id: z.ZodString;
1193
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1194
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1195
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1196
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1197
+ }, "strip", z.ZodTypeAny, {
1198
+ type: string;
1199
+ id: string;
1200
+ attributes?: Record<string, unknown> | undefined;
1201
+ relationships?: Record<string, unknown> | undefined;
1202
+ links?: Record<string, string> | undefined;
1203
+ meta?: Record<string, unknown> | undefined;
1204
+ }, {
1205
+ type: string;
1206
+ id: string;
1207
+ attributes?: Record<string, unknown> | undefined;
1208
+ relationships?: Record<string, unknown> | undefined;
1209
+ links?: Record<string, string> | undefined;
1210
+ meta?: Record<string, unknown> | undefined;
1211
+ }>, "many">>;
1212
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1213
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1214
+ }, "strip", z.ZodTypeAny, {
1215
+ data: {
1216
+ type: string;
1217
+ id: string;
1218
+ attributes: {
1219
+ createdAt: string;
1220
+ updatedAt: string;
1221
+ farmId: string;
1222
+ isActive: boolean;
1223
+ teamMemberId: string;
1224
+ monthlyCap: number;
1225
+ currentMonthSpent: number;
1226
+ resetAt: string;
1227
+ remaining?: number | undefined;
1228
+ };
1229
+ relationships?: Record<string, unknown> | undefined;
1230
+ links?: Record<string, string> | undefined;
1231
+ meta?: Record<string, unknown> | undefined;
1232
+ }[];
1233
+ links?: Record<string, string> | undefined;
1234
+ meta?: Record<string, unknown> | undefined;
1235
+ included?: {
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
+ }[] | undefined;
1243
+ }, {
1244
+ data: {
1245
+ type: string;
1246
+ id: string;
1247
+ attributes: {
1248
+ createdAt: string;
1249
+ updatedAt: string;
1250
+ farmId: string;
1251
+ isActive: boolean;
1252
+ teamMemberId: string;
1253
+ monthlyCap: number;
1254
+ currentMonthSpent: number;
1255
+ resetAt: string;
1256
+ remaining?: number | undefined;
1257
+ };
1258
+ relationships?: Record<string, unknown> | undefined;
1259
+ links?: Record<string, string> | undefined;
1260
+ meta?: Record<string, unknown> | undefined;
1261
+ }[];
1262
+ links?: Record<string, string> | undefined;
1263
+ meta?: Record<string, unknown> | undefined;
1264
+ included?: {
1265
+ type: string;
1266
+ id: string;
1267
+ attributes?: Record<string, unknown> | undefined;
1268
+ relationships?: Record<string, unknown> | undefined;
1269
+ links?: Record<string, string> | undefined;
1270
+ meta?: Record<string, unknown> | undefined;
1271
+ }[] | undefined;
1272
+ }>;
1273
+ export declare const vendorPaymentAttributesSchema: z.ZodObject<{
1274
+ farmId: z.ZodString;
1275
+ initiatedById: z.ZodString;
1276
+ paymentAccountId: z.ZodString;
1277
+ approvedById: z.ZodNullable<z.ZodString>;
1278
+ approvalNote: z.ZodNullable<z.ZodString>;
1279
+ vendorName: z.ZodString;
1280
+ vendorBankCode: z.ZodString;
1281
+ vendorAccountNumber: z.ZodString;
1282
+ vendorAccountName: z.ZodString;
1283
+ supplierId: z.ZodNullable<z.ZodString>;
1284
+ amount: z.ZodNumber;
1285
+ currency: z.ZodString;
1286
+ narration: z.ZodString;
1287
+ category: z.ZodString;
1288
+ fieldId: z.ZodNullable<z.ZodString>;
1289
+ cropId: z.ZodNullable<z.ZodString>;
1290
+ providerReference: z.ZodNullable<z.ZodString>;
1291
+ providerTransferId: z.ZodNullable<z.ZodString>;
1292
+ status: z.ZodEnum<["DRAFT", "PENDING_APPROVAL", "PROCESSING", "COMPLETED", "FAILED", "REJECTED"]>;
1293
+ failureReason: z.ZodNullable<z.ZodString>;
1294
+ expenseId: z.ZodNullable<z.ZodString>;
1295
+ initiatedAt: z.ZodString;
1296
+ approvedAt: z.ZodNullable<z.ZodString>;
1297
+ processedAt: z.ZodNullable<z.ZodString>;
1298
+ completedAt: z.ZodNullable<z.ZodString>;
1299
+ receiptUrl: z.ZodNullable<z.ZodString>;
1300
+ } & {
1301
+ createdAt: z.ZodString;
1302
+ updatedAt: z.ZodString;
1303
+ }, "strip", z.ZodTypeAny, {
1304
+ status: "DRAFT" | "PENDING_APPROVAL" | "PROCESSING" | "COMPLETED" | "FAILED" | "REJECTED";
1305
+ createdAt: string;
1306
+ updatedAt: string;
1307
+ currency: string;
1308
+ farmId: string;
1309
+ fieldId: string | null;
1310
+ category: string;
1311
+ cropId: string | null;
1312
+ expenseId: string | null;
1313
+ amount: number;
1314
+ completedAt: string | null;
1315
+ failureReason: string | null;
1316
+ initiatedById: string;
1317
+ paymentAccountId: string;
1318
+ approvedById: string | null;
1319
+ approvalNote: string | null;
1320
+ vendorName: string;
1321
+ vendorBankCode: string;
1322
+ vendorAccountNumber: string;
1323
+ vendorAccountName: string;
1324
+ supplierId: string | null;
1325
+ narration: string;
1326
+ providerReference: string | null;
1327
+ providerTransferId: string | null;
1328
+ initiatedAt: string;
1329
+ approvedAt: string | null;
1330
+ processedAt: string | null;
1331
+ receiptUrl: string | null;
1332
+ }, {
1333
+ status: "DRAFT" | "PENDING_APPROVAL" | "PROCESSING" | "COMPLETED" | "FAILED" | "REJECTED";
1334
+ createdAt: string;
1335
+ updatedAt: string;
1336
+ currency: string;
1337
+ farmId: string;
1338
+ fieldId: string | null;
1339
+ category: string;
1340
+ cropId: string | null;
1341
+ expenseId: string | null;
1342
+ amount: number;
1343
+ completedAt: string | null;
1344
+ failureReason: string | null;
1345
+ initiatedById: string;
1346
+ paymentAccountId: string;
1347
+ approvedById: string | null;
1348
+ approvalNote: string | null;
1349
+ vendorName: string;
1350
+ vendorBankCode: string;
1351
+ vendorAccountNumber: string;
1352
+ vendorAccountName: string;
1353
+ supplierId: string | null;
1354
+ narration: string;
1355
+ providerReference: string | null;
1356
+ providerTransferId: string | null;
1357
+ initiatedAt: string;
1358
+ approvedAt: string | null;
1359
+ processedAt: string | null;
1360
+ receiptUrl: string | null;
1361
+ }>;
1362
+ export declare const initiateVendorPaymentAttributesSchema: z.ZodObject<{
1363
+ paymentAccountId: z.ZodString;
1364
+ vendorName: z.ZodString;
1365
+ vendorBankCode: z.ZodString;
1366
+ vendorAccountNumber: z.ZodString;
1367
+ vendorAccountName: z.ZodOptional<z.ZodString>;
1368
+ supplierId: z.ZodOptional<z.ZodString>;
1369
+ amount: z.ZodNumber;
1370
+ currency: z.ZodDefault<z.ZodString>;
1371
+ narration: z.ZodString;
1372
+ category: z.ZodString;
1373
+ fieldId: z.ZodOptional<z.ZodString>;
1374
+ cropId: z.ZodOptional<z.ZodString>;
1375
+ }, "strip", z.ZodTypeAny, {
1376
+ currency: string;
1377
+ category: string;
1378
+ amount: number;
1379
+ paymentAccountId: string;
1380
+ vendorName: string;
1381
+ vendorBankCode: string;
1382
+ vendorAccountNumber: string;
1383
+ narration: string;
1384
+ fieldId?: string | undefined;
1385
+ cropId?: string | undefined;
1386
+ vendorAccountName?: string | undefined;
1387
+ supplierId?: string | undefined;
1388
+ }, {
1389
+ category: string;
1390
+ amount: number;
1391
+ paymentAccountId: string;
1392
+ vendorName: string;
1393
+ vendorBankCode: string;
1394
+ vendorAccountNumber: string;
1395
+ narration: string;
1396
+ currency?: string | undefined;
1397
+ fieldId?: string | undefined;
1398
+ cropId?: string | undefined;
1399
+ vendorAccountName?: string | undefined;
1400
+ supplierId?: string | undefined;
1401
+ }>;
1402
+ export declare const initiateVendorPaymentSchema: z.ZodObject<{
1403
+ type: z.ZodLiteral<"vendor-payments">;
1404
+ attributes: z.ZodObject<{
1405
+ paymentAccountId: z.ZodString;
1406
+ vendorName: z.ZodString;
1407
+ vendorBankCode: z.ZodString;
1408
+ vendorAccountNumber: z.ZodString;
1409
+ vendorAccountName: z.ZodOptional<z.ZodString>;
1410
+ supplierId: z.ZodOptional<z.ZodString>;
1411
+ amount: z.ZodNumber;
1412
+ currency: z.ZodDefault<z.ZodString>;
1413
+ narration: z.ZodString;
1414
+ category: z.ZodString;
1415
+ fieldId: z.ZodOptional<z.ZodString>;
1416
+ cropId: z.ZodOptional<z.ZodString>;
1417
+ }, "strip", z.ZodTypeAny, {
1418
+ currency: string;
1419
+ category: string;
1420
+ amount: number;
1421
+ paymentAccountId: string;
1422
+ vendorName: string;
1423
+ vendorBankCode: string;
1424
+ vendorAccountNumber: string;
1425
+ narration: string;
1426
+ fieldId?: string | undefined;
1427
+ cropId?: string | undefined;
1428
+ vendorAccountName?: string | undefined;
1429
+ supplierId?: string | undefined;
1430
+ }, {
1431
+ category: string;
1432
+ amount: number;
1433
+ paymentAccountId: string;
1434
+ vendorName: string;
1435
+ vendorBankCode: string;
1436
+ vendorAccountNumber: string;
1437
+ narration: string;
1438
+ currency?: string | undefined;
1439
+ fieldId?: string | undefined;
1440
+ cropId?: string | undefined;
1441
+ vendorAccountName?: string | undefined;
1442
+ supplierId?: string | undefined;
1443
+ }>;
1444
+ }, "strip", z.ZodTypeAny, {
1445
+ type: "vendor-payments";
1446
+ attributes: {
1447
+ currency: string;
1448
+ category: string;
1449
+ amount: number;
1450
+ paymentAccountId: string;
1451
+ vendorName: string;
1452
+ vendorBankCode: string;
1453
+ vendorAccountNumber: string;
1454
+ narration: string;
1455
+ fieldId?: string | undefined;
1456
+ cropId?: string | undefined;
1457
+ vendorAccountName?: string | undefined;
1458
+ supplierId?: string | undefined;
1459
+ };
1460
+ }, {
1461
+ type: "vendor-payments";
1462
+ attributes: {
1463
+ category: string;
1464
+ amount: number;
1465
+ paymentAccountId: string;
1466
+ vendorName: string;
1467
+ vendorBankCode: string;
1468
+ vendorAccountNumber: string;
1469
+ narration: string;
1470
+ currency?: string | undefined;
1471
+ fieldId?: string | undefined;
1472
+ cropId?: string | undefined;
1473
+ vendorAccountName?: string | undefined;
1474
+ supplierId?: string | undefined;
1475
+ };
1476
+ }>;
1477
+ export declare const paymentApprovalActionInputSchema: z.ZodObject<{
1478
+ notes: z.ZodOptional<z.ZodString>;
1479
+ }, "strip", z.ZodTypeAny, {
1480
+ notes?: string | undefined;
1481
+ }, {
1482
+ notes?: string | undefined;
1483
+ }>;
1484
+ export declare const paymentApprovalAttributesSchema: z.ZodObject<{
1485
+ vendorPaymentId: z.ZodString;
1486
+ approverId: z.ZodString;
1487
+ action: z.ZodEnum<["APPROVED", "REJECTED"]>;
1488
+ notes: z.ZodNullable<z.ZodString>;
1489
+ createdAt: z.ZodString;
1490
+ }, "strip", z.ZodTypeAny, {
1491
+ createdAt: string;
1492
+ notes: string | null;
1493
+ action: "REJECTED" | "APPROVED";
1494
+ vendorPaymentId: string;
1495
+ approverId: string;
1496
+ }, {
1497
+ createdAt: string;
1498
+ notes: string | null;
1499
+ action: "REJECTED" | "APPROVED";
1500
+ vendorPaymentId: string;
1501
+ approverId: string;
1502
+ }>;
1503
+ export declare const paymentApprovalResourceSchema: z.ZodObject<{
1504
+ type: z.ZodLiteral<string>;
1505
+ id: z.ZodString;
1506
+ attributes: z.ZodObject<{
1507
+ vendorPaymentId: z.ZodString;
1508
+ approverId: z.ZodString;
1509
+ action: z.ZodEnum<["APPROVED", "REJECTED"]>;
1510
+ notes: z.ZodNullable<z.ZodString>;
1511
+ createdAt: z.ZodString;
1512
+ }, "strip", z.ZodTypeAny, {
1513
+ createdAt: string;
1514
+ notes: string | null;
1515
+ action: "REJECTED" | "APPROVED";
1516
+ vendorPaymentId: string;
1517
+ approverId: string;
1518
+ }, {
1519
+ createdAt: string;
1520
+ notes: string | null;
1521
+ action: "REJECTED" | "APPROVED";
1522
+ vendorPaymentId: string;
1523
+ approverId: string;
1524
+ }>;
1525
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1526
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1527
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1528
+ }, "strip", z.ZodTypeAny, {
1529
+ type: string;
1530
+ id: string;
1531
+ attributes: {
1532
+ createdAt: string;
1533
+ notes: string | null;
1534
+ action: "REJECTED" | "APPROVED";
1535
+ vendorPaymentId: string;
1536
+ approverId: string;
1537
+ };
1538
+ relationships?: Record<string, unknown> | undefined;
1539
+ links?: Record<string, string> | undefined;
1540
+ meta?: Record<string, unknown> | undefined;
1541
+ }, {
1542
+ type: string;
1543
+ id: string;
1544
+ attributes: {
1545
+ createdAt: string;
1546
+ notes: string | null;
1547
+ action: "REJECTED" | "APPROVED";
1548
+ vendorPaymentId: string;
1549
+ approverId: string;
1550
+ };
1551
+ relationships?: Record<string, unknown> | undefined;
1552
+ links?: Record<string, string> | undefined;
1553
+ meta?: Record<string, unknown> | undefined;
1554
+ }>;
1555
+ export declare const vendorPaymentResourceSchema: z.ZodObject<{
1556
+ type: z.ZodLiteral<string>;
1557
+ id: z.ZodString;
1558
+ attributes: z.ZodObject<{
1559
+ farmId: z.ZodString;
1560
+ initiatedById: z.ZodString;
1561
+ paymentAccountId: z.ZodString;
1562
+ approvedById: z.ZodNullable<z.ZodString>;
1563
+ approvalNote: z.ZodNullable<z.ZodString>;
1564
+ vendorName: z.ZodString;
1565
+ vendorBankCode: z.ZodString;
1566
+ vendorAccountNumber: z.ZodString;
1567
+ vendorAccountName: z.ZodString;
1568
+ supplierId: z.ZodNullable<z.ZodString>;
1569
+ amount: z.ZodNumber;
1570
+ currency: z.ZodString;
1571
+ narration: z.ZodString;
1572
+ category: z.ZodString;
1573
+ fieldId: z.ZodNullable<z.ZodString>;
1574
+ cropId: z.ZodNullable<z.ZodString>;
1575
+ providerReference: z.ZodNullable<z.ZodString>;
1576
+ providerTransferId: z.ZodNullable<z.ZodString>;
1577
+ status: z.ZodEnum<["DRAFT", "PENDING_APPROVAL", "PROCESSING", "COMPLETED", "FAILED", "REJECTED"]>;
1578
+ failureReason: z.ZodNullable<z.ZodString>;
1579
+ expenseId: z.ZodNullable<z.ZodString>;
1580
+ initiatedAt: z.ZodString;
1581
+ approvedAt: z.ZodNullable<z.ZodString>;
1582
+ processedAt: z.ZodNullable<z.ZodString>;
1583
+ completedAt: z.ZodNullable<z.ZodString>;
1584
+ receiptUrl: z.ZodNullable<z.ZodString>;
1585
+ } & {
1586
+ createdAt: z.ZodString;
1587
+ updatedAt: z.ZodString;
1588
+ }, "strip", z.ZodTypeAny, {
1589
+ status: "DRAFT" | "PENDING_APPROVAL" | "PROCESSING" | "COMPLETED" | "FAILED" | "REJECTED";
1590
+ createdAt: string;
1591
+ updatedAt: string;
1592
+ currency: string;
1593
+ farmId: string;
1594
+ fieldId: string | null;
1595
+ category: string;
1596
+ cropId: string | null;
1597
+ expenseId: string | null;
1598
+ amount: number;
1599
+ completedAt: string | null;
1600
+ failureReason: string | null;
1601
+ initiatedById: string;
1602
+ paymentAccountId: string;
1603
+ approvedById: string | null;
1604
+ approvalNote: string | null;
1605
+ vendorName: string;
1606
+ vendorBankCode: string;
1607
+ vendorAccountNumber: string;
1608
+ vendorAccountName: string;
1609
+ supplierId: string | null;
1610
+ narration: string;
1611
+ providerReference: string | null;
1612
+ providerTransferId: string | null;
1613
+ initiatedAt: string;
1614
+ approvedAt: string | null;
1615
+ processedAt: string | null;
1616
+ receiptUrl: string | null;
1617
+ }, {
1618
+ status: "DRAFT" | "PENDING_APPROVAL" | "PROCESSING" | "COMPLETED" | "FAILED" | "REJECTED";
1619
+ createdAt: string;
1620
+ updatedAt: string;
1621
+ currency: string;
1622
+ farmId: string;
1623
+ fieldId: string | null;
1624
+ category: string;
1625
+ cropId: string | null;
1626
+ expenseId: string | null;
1627
+ amount: number;
1628
+ completedAt: string | null;
1629
+ failureReason: string | null;
1630
+ initiatedById: string;
1631
+ paymentAccountId: string;
1632
+ approvedById: string | null;
1633
+ approvalNote: string | null;
1634
+ vendorName: string;
1635
+ vendorBankCode: string;
1636
+ vendorAccountNumber: string;
1637
+ vendorAccountName: string;
1638
+ supplierId: string | null;
1639
+ narration: string;
1640
+ providerReference: string | null;
1641
+ providerTransferId: string | null;
1642
+ initiatedAt: string;
1643
+ approvedAt: string | null;
1644
+ processedAt: string | null;
1645
+ receiptUrl: string | null;
1646
+ }>;
1647
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1648
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1649
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1650
+ }, "strip", z.ZodTypeAny, {
1651
+ type: string;
1652
+ id: string;
1653
+ attributes: {
1654
+ status: "DRAFT" | "PENDING_APPROVAL" | "PROCESSING" | "COMPLETED" | "FAILED" | "REJECTED";
1655
+ createdAt: string;
1656
+ updatedAt: string;
1657
+ currency: string;
1658
+ farmId: string;
1659
+ fieldId: string | null;
1660
+ category: string;
1661
+ cropId: string | null;
1662
+ expenseId: string | null;
1663
+ amount: number;
1664
+ completedAt: string | null;
1665
+ failureReason: string | null;
1666
+ initiatedById: string;
1667
+ paymentAccountId: string;
1668
+ approvedById: string | null;
1669
+ approvalNote: string | null;
1670
+ vendorName: string;
1671
+ vendorBankCode: string;
1672
+ vendorAccountNumber: string;
1673
+ vendorAccountName: string;
1674
+ supplierId: string | null;
1675
+ narration: string;
1676
+ providerReference: string | null;
1677
+ providerTransferId: string | null;
1678
+ initiatedAt: string;
1679
+ approvedAt: string | null;
1680
+ processedAt: string | null;
1681
+ receiptUrl: string | null;
1682
+ };
1683
+ relationships?: Record<string, unknown> | undefined;
1684
+ links?: Record<string, string> | undefined;
1685
+ meta?: Record<string, unknown> | undefined;
1686
+ }, {
1687
+ type: string;
1688
+ id: string;
1689
+ attributes: {
1690
+ status: "DRAFT" | "PENDING_APPROVAL" | "PROCESSING" | "COMPLETED" | "FAILED" | "REJECTED";
1691
+ createdAt: string;
1692
+ updatedAt: string;
1693
+ currency: string;
1694
+ farmId: string;
1695
+ fieldId: string | null;
1696
+ category: string;
1697
+ cropId: string | null;
1698
+ expenseId: string | null;
1699
+ amount: number;
1700
+ completedAt: string | null;
1701
+ failureReason: string | null;
1702
+ initiatedById: string;
1703
+ paymentAccountId: string;
1704
+ approvedById: string | null;
1705
+ approvalNote: string | null;
1706
+ vendorName: string;
1707
+ vendorBankCode: string;
1708
+ vendorAccountNumber: string;
1709
+ vendorAccountName: string;
1710
+ supplierId: string | null;
1711
+ narration: string;
1712
+ providerReference: string | null;
1713
+ providerTransferId: string | null;
1714
+ initiatedAt: string;
1715
+ approvedAt: string | null;
1716
+ processedAt: string | null;
1717
+ receiptUrl: string | null;
1718
+ };
1719
+ relationships?: Record<string, unknown> | undefined;
1720
+ links?: Record<string, string> | undefined;
1721
+ meta?: Record<string, unknown> | undefined;
1722
+ }>;
1723
+ export declare const vendorPaymentResponseSchema: z.ZodObject<{
1724
+ data: z.ZodObject<{
1725
+ type: z.ZodLiteral<string>;
1726
+ id: z.ZodString;
1727
+ attributes: z.ZodObject<{
1728
+ farmId: z.ZodString;
1729
+ initiatedById: z.ZodString;
1730
+ paymentAccountId: z.ZodString;
1731
+ approvedById: z.ZodNullable<z.ZodString>;
1732
+ approvalNote: z.ZodNullable<z.ZodString>;
1733
+ vendorName: z.ZodString;
1734
+ vendorBankCode: z.ZodString;
1735
+ vendorAccountNumber: z.ZodString;
1736
+ vendorAccountName: z.ZodString;
1737
+ supplierId: z.ZodNullable<z.ZodString>;
1738
+ amount: z.ZodNumber;
1739
+ currency: z.ZodString;
1740
+ narration: z.ZodString;
1741
+ category: z.ZodString;
1742
+ fieldId: z.ZodNullable<z.ZodString>;
1743
+ cropId: z.ZodNullable<z.ZodString>;
1744
+ providerReference: z.ZodNullable<z.ZodString>;
1745
+ providerTransferId: z.ZodNullable<z.ZodString>;
1746
+ status: z.ZodEnum<["DRAFT", "PENDING_APPROVAL", "PROCESSING", "COMPLETED", "FAILED", "REJECTED"]>;
1747
+ failureReason: z.ZodNullable<z.ZodString>;
1748
+ expenseId: z.ZodNullable<z.ZodString>;
1749
+ initiatedAt: z.ZodString;
1750
+ approvedAt: z.ZodNullable<z.ZodString>;
1751
+ processedAt: z.ZodNullable<z.ZodString>;
1752
+ completedAt: z.ZodNullable<z.ZodString>;
1753
+ receiptUrl: z.ZodNullable<z.ZodString>;
1754
+ } & {
1755
+ createdAt: z.ZodString;
1756
+ updatedAt: z.ZodString;
1757
+ }, "strip", z.ZodTypeAny, {
1758
+ status: "DRAFT" | "PENDING_APPROVAL" | "PROCESSING" | "COMPLETED" | "FAILED" | "REJECTED";
1759
+ createdAt: string;
1760
+ updatedAt: string;
1761
+ currency: string;
1762
+ farmId: string;
1763
+ fieldId: string | null;
1764
+ category: string;
1765
+ cropId: string | null;
1766
+ expenseId: string | null;
1767
+ amount: number;
1768
+ completedAt: string | null;
1769
+ failureReason: string | null;
1770
+ initiatedById: string;
1771
+ paymentAccountId: string;
1772
+ approvedById: string | null;
1773
+ approvalNote: string | null;
1774
+ vendorName: string;
1775
+ vendorBankCode: string;
1776
+ vendorAccountNumber: string;
1777
+ vendorAccountName: string;
1778
+ supplierId: string | null;
1779
+ narration: string;
1780
+ providerReference: string | null;
1781
+ providerTransferId: string | null;
1782
+ initiatedAt: string;
1783
+ approvedAt: string | null;
1784
+ processedAt: string | null;
1785
+ receiptUrl: string | null;
1786
+ }, {
1787
+ status: "DRAFT" | "PENDING_APPROVAL" | "PROCESSING" | "COMPLETED" | "FAILED" | "REJECTED";
1788
+ createdAt: string;
1789
+ updatedAt: string;
1790
+ currency: string;
1791
+ farmId: string;
1792
+ fieldId: string | null;
1793
+ category: string;
1794
+ cropId: string | null;
1795
+ expenseId: string | null;
1796
+ amount: number;
1797
+ completedAt: string | null;
1798
+ failureReason: string | null;
1799
+ initiatedById: string;
1800
+ paymentAccountId: string;
1801
+ approvedById: string | null;
1802
+ approvalNote: string | null;
1803
+ vendorName: string;
1804
+ vendorBankCode: string;
1805
+ vendorAccountNumber: string;
1806
+ vendorAccountName: string;
1807
+ supplierId: string | null;
1808
+ narration: string;
1809
+ providerReference: string | null;
1810
+ providerTransferId: string | null;
1811
+ initiatedAt: string;
1812
+ approvedAt: string | null;
1813
+ processedAt: string | null;
1814
+ receiptUrl: string | null;
1815
+ }>;
1816
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1817
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1818
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1819
+ }, "strip", z.ZodTypeAny, {
1820
+ type: string;
1821
+ id: string;
1822
+ attributes: {
1823
+ status: "DRAFT" | "PENDING_APPROVAL" | "PROCESSING" | "COMPLETED" | "FAILED" | "REJECTED";
1824
+ createdAt: string;
1825
+ updatedAt: string;
1826
+ currency: string;
1827
+ farmId: string;
1828
+ fieldId: string | null;
1829
+ category: string;
1830
+ cropId: string | null;
1831
+ expenseId: string | null;
1832
+ amount: number;
1833
+ completedAt: string | null;
1834
+ failureReason: string | null;
1835
+ initiatedById: string;
1836
+ paymentAccountId: string;
1837
+ approvedById: string | null;
1838
+ approvalNote: string | null;
1839
+ vendorName: string;
1840
+ vendorBankCode: string;
1841
+ vendorAccountNumber: string;
1842
+ vendorAccountName: string;
1843
+ supplierId: string | null;
1844
+ narration: string;
1845
+ providerReference: string | null;
1846
+ providerTransferId: string | null;
1847
+ initiatedAt: string;
1848
+ approvedAt: string | null;
1849
+ processedAt: string | null;
1850
+ receiptUrl: string | null;
1851
+ };
1852
+ relationships?: Record<string, unknown> | undefined;
1853
+ links?: Record<string, string> | undefined;
1854
+ meta?: Record<string, unknown> | undefined;
1855
+ }, {
1856
+ type: string;
1857
+ id: string;
1858
+ attributes: {
1859
+ status: "DRAFT" | "PENDING_APPROVAL" | "PROCESSING" | "COMPLETED" | "FAILED" | "REJECTED";
1860
+ createdAt: string;
1861
+ updatedAt: string;
1862
+ currency: string;
1863
+ farmId: string;
1864
+ fieldId: string | null;
1865
+ category: string;
1866
+ cropId: string | null;
1867
+ expenseId: string | null;
1868
+ amount: number;
1869
+ completedAt: string | null;
1870
+ failureReason: string | null;
1871
+ initiatedById: string;
1872
+ paymentAccountId: string;
1873
+ approvedById: string | null;
1874
+ approvalNote: string | null;
1875
+ vendorName: string;
1876
+ vendorBankCode: string;
1877
+ vendorAccountNumber: string;
1878
+ vendorAccountName: string;
1879
+ supplierId: string | null;
1880
+ narration: string;
1881
+ providerReference: string | null;
1882
+ providerTransferId: string | null;
1883
+ initiatedAt: string;
1884
+ approvedAt: string | null;
1885
+ processedAt: string | null;
1886
+ receiptUrl: string | null;
1887
+ };
1888
+ relationships?: Record<string, unknown> | undefined;
1889
+ links?: Record<string, string> | undefined;
1890
+ meta?: Record<string, unknown> | undefined;
1891
+ }>;
1892
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
1893
+ type: z.ZodString;
1894
+ id: z.ZodString;
1895
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1896
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1897
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1898
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1899
+ }, "strip", z.ZodTypeAny, {
1900
+ type: string;
1901
+ id: string;
1902
+ attributes?: Record<string, unknown> | undefined;
1903
+ relationships?: Record<string, unknown> | undefined;
1904
+ links?: Record<string, string> | undefined;
1905
+ meta?: Record<string, unknown> | undefined;
1906
+ }, {
1907
+ type: string;
1908
+ id: string;
1909
+ attributes?: Record<string, unknown> | undefined;
1910
+ relationships?: Record<string, unknown> | undefined;
1911
+ links?: Record<string, string> | undefined;
1912
+ meta?: Record<string, unknown> | undefined;
1913
+ }>, "many">>;
1914
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1915
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1916
+ }, "strip", z.ZodTypeAny, {
1917
+ data: {
1918
+ type: string;
1919
+ id: string;
1920
+ attributes: {
1921
+ status: "DRAFT" | "PENDING_APPROVAL" | "PROCESSING" | "COMPLETED" | "FAILED" | "REJECTED";
1922
+ createdAt: string;
1923
+ updatedAt: string;
1924
+ currency: string;
1925
+ farmId: string;
1926
+ fieldId: string | null;
1927
+ category: string;
1928
+ cropId: string | null;
1929
+ expenseId: string | null;
1930
+ amount: number;
1931
+ completedAt: string | null;
1932
+ failureReason: string | null;
1933
+ initiatedById: string;
1934
+ paymentAccountId: string;
1935
+ approvedById: string | null;
1936
+ approvalNote: string | null;
1937
+ vendorName: string;
1938
+ vendorBankCode: string;
1939
+ vendorAccountNumber: string;
1940
+ vendorAccountName: string;
1941
+ supplierId: string | null;
1942
+ narration: string;
1943
+ providerReference: string | null;
1944
+ providerTransferId: string | null;
1945
+ initiatedAt: string;
1946
+ approvedAt: string | null;
1947
+ processedAt: string | null;
1948
+ receiptUrl: string | null;
1949
+ };
1950
+ relationships?: Record<string, unknown> | undefined;
1951
+ links?: Record<string, string> | undefined;
1952
+ meta?: Record<string, unknown> | undefined;
1953
+ };
1954
+ links?: Record<string, string> | undefined;
1955
+ meta?: Record<string, unknown> | undefined;
1956
+ included?: {
1957
+ type: string;
1958
+ id: string;
1959
+ attributes?: Record<string, unknown> | undefined;
1960
+ relationships?: Record<string, unknown> | undefined;
1961
+ links?: Record<string, string> | undefined;
1962
+ meta?: Record<string, unknown> | undefined;
1963
+ }[] | undefined;
1964
+ }, {
1965
+ data: {
1966
+ type: string;
1967
+ id: string;
1968
+ attributes: {
1969
+ status: "DRAFT" | "PENDING_APPROVAL" | "PROCESSING" | "COMPLETED" | "FAILED" | "REJECTED";
1970
+ createdAt: string;
1971
+ updatedAt: string;
1972
+ currency: string;
1973
+ farmId: string;
1974
+ fieldId: string | null;
1975
+ category: string;
1976
+ cropId: string | null;
1977
+ expenseId: string | null;
1978
+ amount: number;
1979
+ completedAt: string | null;
1980
+ failureReason: string | null;
1981
+ initiatedById: string;
1982
+ paymentAccountId: string;
1983
+ approvedById: string | null;
1984
+ approvalNote: string | null;
1985
+ vendorName: string;
1986
+ vendorBankCode: string;
1987
+ vendorAccountNumber: string;
1988
+ vendorAccountName: string;
1989
+ supplierId: string | null;
1990
+ narration: string;
1991
+ providerReference: string | null;
1992
+ providerTransferId: string | null;
1993
+ initiatedAt: string;
1994
+ approvedAt: string | null;
1995
+ processedAt: string | null;
1996
+ receiptUrl: string | null;
1997
+ };
1998
+ relationships?: Record<string, unknown> | undefined;
1999
+ links?: Record<string, string> | undefined;
2000
+ meta?: Record<string, unknown> | undefined;
2001
+ };
2002
+ links?: Record<string, string> | undefined;
2003
+ meta?: Record<string, unknown> | undefined;
2004
+ included?: {
2005
+ type: string;
2006
+ id: string;
2007
+ attributes?: Record<string, unknown> | undefined;
2008
+ relationships?: Record<string, unknown> | undefined;
2009
+ links?: Record<string, string> | undefined;
2010
+ meta?: Record<string, unknown> | undefined;
2011
+ }[] | undefined;
2012
+ }>;
2013
+ export declare const vendorPaymentListResponseSchema: z.ZodObject<{
2014
+ data: z.ZodArray<z.ZodObject<{
2015
+ type: z.ZodLiteral<string>;
2016
+ id: z.ZodString;
2017
+ attributes: z.ZodObject<{
2018
+ farmId: z.ZodString;
2019
+ initiatedById: z.ZodString;
2020
+ paymentAccountId: z.ZodString;
2021
+ approvedById: z.ZodNullable<z.ZodString>;
2022
+ approvalNote: z.ZodNullable<z.ZodString>;
2023
+ vendorName: z.ZodString;
2024
+ vendorBankCode: z.ZodString;
2025
+ vendorAccountNumber: z.ZodString;
2026
+ vendorAccountName: z.ZodString;
2027
+ supplierId: z.ZodNullable<z.ZodString>;
2028
+ amount: z.ZodNumber;
2029
+ currency: z.ZodString;
2030
+ narration: z.ZodString;
2031
+ category: z.ZodString;
2032
+ fieldId: z.ZodNullable<z.ZodString>;
2033
+ cropId: z.ZodNullable<z.ZodString>;
2034
+ providerReference: z.ZodNullable<z.ZodString>;
2035
+ providerTransferId: z.ZodNullable<z.ZodString>;
2036
+ status: z.ZodEnum<["DRAFT", "PENDING_APPROVAL", "PROCESSING", "COMPLETED", "FAILED", "REJECTED"]>;
2037
+ failureReason: z.ZodNullable<z.ZodString>;
2038
+ expenseId: z.ZodNullable<z.ZodString>;
2039
+ initiatedAt: z.ZodString;
2040
+ approvedAt: z.ZodNullable<z.ZodString>;
2041
+ processedAt: z.ZodNullable<z.ZodString>;
2042
+ completedAt: z.ZodNullable<z.ZodString>;
2043
+ receiptUrl: z.ZodNullable<z.ZodString>;
2044
+ } & {
2045
+ createdAt: z.ZodString;
2046
+ updatedAt: z.ZodString;
2047
+ }, "strip", z.ZodTypeAny, {
2048
+ status: "DRAFT" | "PENDING_APPROVAL" | "PROCESSING" | "COMPLETED" | "FAILED" | "REJECTED";
2049
+ createdAt: string;
2050
+ updatedAt: string;
2051
+ currency: string;
2052
+ farmId: string;
2053
+ fieldId: string | null;
2054
+ category: string;
2055
+ cropId: string | null;
2056
+ expenseId: string | null;
2057
+ amount: number;
2058
+ completedAt: string | null;
2059
+ failureReason: string | null;
2060
+ initiatedById: string;
2061
+ paymentAccountId: string;
2062
+ approvedById: string | null;
2063
+ approvalNote: string | null;
2064
+ vendorName: string;
2065
+ vendorBankCode: string;
2066
+ vendorAccountNumber: string;
2067
+ vendorAccountName: string;
2068
+ supplierId: string | null;
2069
+ narration: string;
2070
+ providerReference: string | null;
2071
+ providerTransferId: string | null;
2072
+ initiatedAt: string;
2073
+ approvedAt: string | null;
2074
+ processedAt: string | null;
2075
+ receiptUrl: string | null;
2076
+ }, {
2077
+ status: "DRAFT" | "PENDING_APPROVAL" | "PROCESSING" | "COMPLETED" | "FAILED" | "REJECTED";
2078
+ createdAt: string;
2079
+ updatedAt: string;
2080
+ currency: string;
2081
+ farmId: string;
2082
+ fieldId: string | null;
2083
+ category: string;
2084
+ cropId: string | null;
2085
+ expenseId: string | null;
2086
+ amount: number;
2087
+ completedAt: string | null;
2088
+ failureReason: string | null;
2089
+ initiatedById: string;
2090
+ paymentAccountId: string;
2091
+ approvedById: string | null;
2092
+ approvalNote: string | null;
2093
+ vendorName: string;
2094
+ vendorBankCode: string;
2095
+ vendorAccountNumber: string;
2096
+ vendorAccountName: string;
2097
+ supplierId: string | null;
2098
+ narration: string;
2099
+ providerReference: string | null;
2100
+ providerTransferId: string | null;
2101
+ initiatedAt: string;
2102
+ approvedAt: string | null;
2103
+ processedAt: string | null;
2104
+ receiptUrl: string | null;
2105
+ }>;
2106
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2107
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2108
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2109
+ }, "strip", z.ZodTypeAny, {
2110
+ type: string;
2111
+ id: string;
2112
+ attributes: {
2113
+ status: "DRAFT" | "PENDING_APPROVAL" | "PROCESSING" | "COMPLETED" | "FAILED" | "REJECTED";
2114
+ createdAt: string;
2115
+ updatedAt: string;
2116
+ currency: string;
2117
+ farmId: string;
2118
+ fieldId: string | null;
2119
+ category: string;
2120
+ cropId: string | null;
2121
+ expenseId: string | null;
2122
+ amount: number;
2123
+ completedAt: string | null;
2124
+ failureReason: string | null;
2125
+ initiatedById: string;
2126
+ paymentAccountId: string;
2127
+ approvedById: string | null;
2128
+ approvalNote: string | null;
2129
+ vendorName: string;
2130
+ vendorBankCode: string;
2131
+ vendorAccountNumber: string;
2132
+ vendorAccountName: string;
2133
+ supplierId: string | null;
2134
+ narration: string;
2135
+ providerReference: string | null;
2136
+ providerTransferId: string | null;
2137
+ initiatedAt: string;
2138
+ approvedAt: string | null;
2139
+ processedAt: string | null;
2140
+ receiptUrl: string | null;
2141
+ };
2142
+ relationships?: Record<string, unknown> | undefined;
2143
+ links?: Record<string, string> | undefined;
2144
+ meta?: Record<string, unknown> | undefined;
2145
+ }, {
2146
+ type: string;
2147
+ id: string;
2148
+ attributes: {
2149
+ status: "DRAFT" | "PENDING_APPROVAL" | "PROCESSING" | "COMPLETED" | "FAILED" | "REJECTED";
2150
+ createdAt: string;
2151
+ updatedAt: string;
2152
+ currency: string;
2153
+ farmId: string;
2154
+ fieldId: string | null;
2155
+ category: string;
2156
+ cropId: string | null;
2157
+ expenseId: string | null;
2158
+ amount: number;
2159
+ completedAt: string | null;
2160
+ failureReason: string | null;
2161
+ initiatedById: string;
2162
+ paymentAccountId: string;
2163
+ approvedById: string | null;
2164
+ approvalNote: string | null;
2165
+ vendorName: string;
2166
+ vendorBankCode: string;
2167
+ vendorAccountNumber: string;
2168
+ vendorAccountName: string;
2169
+ supplierId: string | null;
2170
+ narration: string;
2171
+ providerReference: string | null;
2172
+ providerTransferId: string | null;
2173
+ initiatedAt: string;
2174
+ approvedAt: string | null;
2175
+ processedAt: string | null;
2176
+ receiptUrl: string | null;
2177
+ };
2178
+ relationships?: Record<string, unknown> | undefined;
2179
+ links?: Record<string, string> | undefined;
2180
+ meta?: Record<string, unknown> | undefined;
2181
+ }>, "many">;
2182
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
2183
+ type: z.ZodString;
2184
+ id: z.ZodString;
2185
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2186
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2187
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2188
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2189
+ }, "strip", z.ZodTypeAny, {
2190
+ type: string;
2191
+ id: string;
2192
+ attributes?: Record<string, unknown> | undefined;
2193
+ relationships?: Record<string, unknown> | undefined;
2194
+ links?: Record<string, string> | undefined;
2195
+ meta?: Record<string, unknown> | undefined;
2196
+ }, {
2197
+ type: string;
2198
+ id: string;
2199
+ attributes?: Record<string, unknown> | undefined;
2200
+ relationships?: Record<string, unknown> | undefined;
2201
+ links?: Record<string, string> | undefined;
2202
+ meta?: Record<string, unknown> | undefined;
2203
+ }>, "many">>;
2204
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2205
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2206
+ }, "strip", z.ZodTypeAny, {
2207
+ data: {
2208
+ type: string;
2209
+ id: string;
2210
+ attributes: {
2211
+ status: "DRAFT" | "PENDING_APPROVAL" | "PROCESSING" | "COMPLETED" | "FAILED" | "REJECTED";
2212
+ createdAt: string;
2213
+ updatedAt: string;
2214
+ currency: string;
2215
+ farmId: string;
2216
+ fieldId: string | null;
2217
+ category: string;
2218
+ cropId: string | null;
2219
+ expenseId: string | null;
2220
+ amount: number;
2221
+ completedAt: string | null;
2222
+ failureReason: string | null;
2223
+ initiatedById: string;
2224
+ paymentAccountId: string;
2225
+ approvedById: string | null;
2226
+ approvalNote: string | null;
2227
+ vendorName: string;
2228
+ vendorBankCode: string;
2229
+ vendorAccountNumber: string;
2230
+ vendorAccountName: string;
2231
+ supplierId: string | null;
2232
+ narration: string;
2233
+ providerReference: string | null;
2234
+ providerTransferId: string | null;
2235
+ initiatedAt: string;
2236
+ approvedAt: string | null;
2237
+ processedAt: string | null;
2238
+ receiptUrl: string | null;
2239
+ };
2240
+ relationships?: Record<string, unknown> | undefined;
2241
+ links?: Record<string, string> | undefined;
2242
+ meta?: Record<string, unknown> | undefined;
2243
+ }[];
2244
+ links?: Record<string, string> | undefined;
2245
+ meta?: Record<string, unknown> | undefined;
2246
+ included?: {
2247
+ type: string;
2248
+ id: string;
2249
+ attributes?: Record<string, unknown> | undefined;
2250
+ relationships?: Record<string, unknown> | undefined;
2251
+ links?: Record<string, string> | undefined;
2252
+ meta?: Record<string, unknown> | undefined;
2253
+ }[] | undefined;
2254
+ }, {
2255
+ data: {
2256
+ type: string;
2257
+ id: string;
2258
+ attributes: {
2259
+ status: "DRAFT" | "PENDING_APPROVAL" | "PROCESSING" | "COMPLETED" | "FAILED" | "REJECTED";
2260
+ createdAt: string;
2261
+ updatedAt: string;
2262
+ currency: string;
2263
+ farmId: string;
2264
+ fieldId: string | null;
2265
+ category: string;
2266
+ cropId: string | null;
2267
+ expenseId: string | null;
2268
+ amount: number;
2269
+ completedAt: string | null;
2270
+ failureReason: string | null;
2271
+ initiatedById: string;
2272
+ paymentAccountId: string;
2273
+ approvedById: string | null;
2274
+ approvalNote: string | null;
2275
+ vendorName: string;
2276
+ vendorBankCode: string;
2277
+ vendorAccountNumber: string;
2278
+ vendorAccountName: string;
2279
+ supplierId: string | null;
2280
+ narration: string;
2281
+ providerReference: string | null;
2282
+ providerTransferId: string | null;
2283
+ initiatedAt: string;
2284
+ approvedAt: string | null;
2285
+ processedAt: string | null;
2286
+ receiptUrl: string | null;
2287
+ };
2288
+ relationships?: Record<string, unknown> | undefined;
2289
+ links?: Record<string, string> | undefined;
2290
+ meta?: Record<string, unknown> | undefined;
2291
+ }[];
2292
+ links?: Record<string, string> | undefined;
2293
+ meta?: Record<string, unknown> | undefined;
2294
+ included?: {
2295
+ type: string;
2296
+ id: string;
2297
+ attributes?: Record<string, unknown> | undefined;
2298
+ relationships?: Record<string, unknown> | undefined;
2299
+ links?: Record<string, string> | undefined;
2300
+ meta?: Record<string, unknown> | undefined;
2301
+ }[] | undefined;
2302
+ }>;
2303
+ export declare const paymentApprovalListResponseSchema: z.ZodObject<{
2304
+ data: z.ZodArray<z.ZodObject<{
2305
+ type: z.ZodLiteral<string>;
2306
+ id: z.ZodString;
2307
+ attributes: z.ZodObject<{
2308
+ farmId: z.ZodString;
2309
+ initiatedById: z.ZodString;
2310
+ paymentAccountId: z.ZodString;
2311
+ approvedById: z.ZodNullable<z.ZodString>;
2312
+ approvalNote: z.ZodNullable<z.ZodString>;
2313
+ vendorName: z.ZodString;
2314
+ vendorBankCode: z.ZodString;
2315
+ vendorAccountNumber: z.ZodString;
2316
+ vendorAccountName: z.ZodString;
2317
+ supplierId: z.ZodNullable<z.ZodString>;
2318
+ amount: z.ZodNumber;
2319
+ currency: z.ZodString;
2320
+ narration: z.ZodString;
2321
+ category: z.ZodString;
2322
+ fieldId: z.ZodNullable<z.ZodString>;
2323
+ cropId: z.ZodNullable<z.ZodString>;
2324
+ providerReference: z.ZodNullable<z.ZodString>;
2325
+ providerTransferId: z.ZodNullable<z.ZodString>;
2326
+ status: z.ZodEnum<["DRAFT", "PENDING_APPROVAL", "PROCESSING", "COMPLETED", "FAILED", "REJECTED"]>;
2327
+ failureReason: z.ZodNullable<z.ZodString>;
2328
+ expenseId: z.ZodNullable<z.ZodString>;
2329
+ initiatedAt: z.ZodString;
2330
+ approvedAt: z.ZodNullable<z.ZodString>;
2331
+ processedAt: z.ZodNullable<z.ZodString>;
2332
+ completedAt: z.ZodNullable<z.ZodString>;
2333
+ receiptUrl: z.ZodNullable<z.ZodString>;
2334
+ } & {
2335
+ createdAt: z.ZodString;
2336
+ updatedAt: z.ZodString;
2337
+ }, "strip", z.ZodTypeAny, {
2338
+ status: "DRAFT" | "PENDING_APPROVAL" | "PROCESSING" | "COMPLETED" | "FAILED" | "REJECTED";
2339
+ createdAt: string;
2340
+ updatedAt: string;
2341
+ currency: string;
2342
+ farmId: string;
2343
+ fieldId: string | null;
2344
+ category: string;
2345
+ cropId: string | null;
2346
+ expenseId: string | null;
2347
+ amount: number;
2348
+ completedAt: string | null;
2349
+ failureReason: string | null;
2350
+ initiatedById: string;
2351
+ paymentAccountId: string;
2352
+ approvedById: string | null;
2353
+ approvalNote: string | null;
2354
+ vendorName: string;
2355
+ vendorBankCode: string;
2356
+ vendorAccountNumber: string;
2357
+ vendorAccountName: string;
2358
+ supplierId: string | null;
2359
+ narration: string;
2360
+ providerReference: string | null;
2361
+ providerTransferId: string | null;
2362
+ initiatedAt: string;
2363
+ approvedAt: string | null;
2364
+ processedAt: string | null;
2365
+ receiptUrl: string | null;
2366
+ }, {
2367
+ status: "DRAFT" | "PENDING_APPROVAL" | "PROCESSING" | "COMPLETED" | "FAILED" | "REJECTED";
2368
+ createdAt: string;
2369
+ updatedAt: string;
2370
+ currency: string;
2371
+ farmId: string;
2372
+ fieldId: string | null;
2373
+ category: string;
2374
+ cropId: string | null;
2375
+ expenseId: string | null;
2376
+ amount: number;
2377
+ completedAt: string | null;
2378
+ failureReason: string | null;
2379
+ initiatedById: string;
2380
+ paymentAccountId: string;
2381
+ approvedById: string | null;
2382
+ approvalNote: string | null;
2383
+ vendorName: string;
2384
+ vendorBankCode: string;
2385
+ vendorAccountNumber: string;
2386
+ vendorAccountName: string;
2387
+ supplierId: string | null;
2388
+ narration: string;
2389
+ providerReference: string | null;
2390
+ providerTransferId: string | null;
2391
+ initiatedAt: string;
2392
+ approvedAt: string | null;
2393
+ processedAt: string | null;
2394
+ receiptUrl: string | null;
2395
+ }>;
2396
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2397
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2398
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2399
+ }, "strip", z.ZodTypeAny, {
2400
+ type: string;
2401
+ id: string;
2402
+ attributes: {
2403
+ status: "DRAFT" | "PENDING_APPROVAL" | "PROCESSING" | "COMPLETED" | "FAILED" | "REJECTED";
2404
+ createdAt: string;
2405
+ updatedAt: string;
2406
+ currency: string;
2407
+ farmId: string;
2408
+ fieldId: string | null;
2409
+ category: string;
2410
+ cropId: string | null;
2411
+ expenseId: string | null;
2412
+ amount: number;
2413
+ completedAt: string | null;
2414
+ failureReason: string | null;
2415
+ initiatedById: string;
2416
+ paymentAccountId: string;
2417
+ approvedById: string | null;
2418
+ approvalNote: string | null;
2419
+ vendorName: string;
2420
+ vendorBankCode: string;
2421
+ vendorAccountNumber: string;
2422
+ vendorAccountName: string;
2423
+ supplierId: string | null;
2424
+ narration: string;
2425
+ providerReference: string | null;
2426
+ providerTransferId: string | null;
2427
+ initiatedAt: string;
2428
+ approvedAt: string | null;
2429
+ processedAt: string | null;
2430
+ receiptUrl: string | null;
2431
+ };
2432
+ relationships?: Record<string, unknown> | undefined;
2433
+ links?: Record<string, string> | undefined;
2434
+ meta?: Record<string, unknown> | undefined;
2435
+ }, {
2436
+ type: string;
2437
+ id: string;
2438
+ attributes: {
2439
+ status: "DRAFT" | "PENDING_APPROVAL" | "PROCESSING" | "COMPLETED" | "FAILED" | "REJECTED";
2440
+ createdAt: string;
2441
+ updatedAt: string;
2442
+ currency: string;
2443
+ farmId: string;
2444
+ fieldId: string | null;
2445
+ category: string;
2446
+ cropId: string | null;
2447
+ expenseId: string | null;
2448
+ amount: number;
2449
+ completedAt: string | null;
2450
+ failureReason: string | null;
2451
+ initiatedById: string;
2452
+ paymentAccountId: string;
2453
+ approvedById: string | null;
2454
+ approvalNote: string | null;
2455
+ vendorName: string;
2456
+ vendorBankCode: string;
2457
+ vendorAccountNumber: string;
2458
+ vendorAccountName: string;
2459
+ supplierId: string | null;
2460
+ narration: string;
2461
+ providerReference: string | null;
2462
+ providerTransferId: string | null;
2463
+ initiatedAt: string;
2464
+ approvedAt: string | null;
2465
+ processedAt: string | null;
2466
+ receiptUrl: string | null;
2467
+ };
2468
+ relationships?: Record<string, unknown> | undefined;
2469
+ links?: Record<string, string> | undefined;
2470
+ meta?: Record<string, unknown> | undefined;
2471
+ }>, "many">;
2472
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
2473
+ type: z.ZodString;
2474
+ id: z.ZodString;
2475
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2476
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2477
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2478
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2479
+ }, "strip", z.ZodTypeAny, {
2480
+ type: string;
2481
+ id: string;
2482
+ attributes?: Record<string, unknown> | undefined;
2483
+ relationships?: Record<string, unknown> | undefined;
2484
+ links?: Record<string, string> | undefined;
2485
+ meta?: Record<string, unknown> | undefined;
2486
+ }, {
2487
+ type: string;
2488
+ id: string;
2489
+ attributes?: Record<string, unknown> | undefined;
2490
+ relationships?: Record<string, unknown> | undefined;
2491
+ links?: Record<string, string> | undefined;
2492
+ meta?: Record<string, unknown> | undefined;
2493
+ }>, "many">>;
2494
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2495
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2496
+ }, "strip", z.ZodTypeAny, {
2497
+ data: {
2498
+ type: string;
2499
+ id: string;
2500
+ attributes: {
2501
+ status: "DRAFT" | "PENDING_APPROVAL" | "PROCESSING" | "COMPLETED" | "FAILED" | "REJECTED";
2502
+ createdAt: string;
2503
+ updatedAt: string;
2504
+ currency: string;
2505
+ farmId: string;
2506
+ fieldId: string | null;
2507
+ category: string;
2508
+ cropId: string | null;
2509
+ expenseId: string | null;
2510
+ amount: number;
2511
+ completedAt: string | null;
2512
+ failureReason: string | null;
2513
+ initiatedById: string;
2514
+ paymentAccountId: string;
2515
+ approvedById: string | null;
2516
+ approvalNote: string | null;
2517
+ vendorName: string;
2518
+ vendorBankCode: string;
2519
+ vendorAccountNumber: string;
2520
+ vendorAccountName: string;
2521
+ supplierId: string | null;
2522
+ narration: string;
2523
+ providerReference: string | null;
2524
+ providerTransferId: string | null;
2525
+ initiatedAt: string;
2526
+ approvedAt: string | null;
2527
+ processedAt: string | null;
2528
+ receiptUrl: string | null;
2529
+ };
2530
+ relationships?: Record<string, unknown> | undefined;
2531
+ links?: Record<string, string> | undefined;
2532
+ meta?: Record<string, unknown> | undefined;
2533
+ }[];
2534
+ links?: Record<string, string> | undefined;
2535
+ meta?: Record<string, unknown> | undefined;
2536
+ included?: {
2537
+ type: string;
2538
+ id: string;
2539
+ attributes?: Record<string, unknown> | undefined;
2540
+ relationships?: Record<string, unknown> | undefined;
2541
+ links?: Record<string, string> | undefined;
2542
+ meta?: Record<string, unknown> | undefined;
2543
+ }[] | undefined;
2544
+ }, {
2545
+ data: {
2546
+ type: string;
2547
+ id: string;
2548
+ attributes: {
2549
+ status: "DRAFT" | "PENDING_APPROVAL" | "PROCESSING" | "COMPLETED" | "FAILED" | "REJECTED";
2550
+ createdAt: string;
2551
+ updatedAt: string;
2552
+ currency: string;
2553
+ farmId: string;
2554
+ fieldId: string | null;
2555
+ category: string;
2556
+ cropId: string | null;
2557
+ expenseId: string | null;
2558
+ amount: number;
2559
+ completedAt: string | null;
2560
+ failureReason: string | null;
2561
+ initiatedById: string;
2562
+ paymentAccountId: string;
2563
+ approvedById: string | null;
2564
+ approvalNote: string | null;
2565
+ vendorName: string;
2566
+ vendorBankCode: string;
2567
+ vendorAccountNumber: string;
2568
+ vendorAccountName: string;
2569
+ supplierId: string | null;
2570
+ narration: string;
2571
+ providerReference: string | null;
2572
+ providerTransferId: string | null;
2573
+ initiatedAt: string;
2574
+ approvedAt: string | null;
2575
+ processedAt: string | null;
2576
+ receiptUrl: string | null;
2577
+ };
2578
+ relationships?: Record<string, unknown> | undefined;
2579
+ links?: Record<string, string> | undefined;
2580
+ meta?: Record<string, unknown> | undefined;
2581
+ }[];
2582
+ links?: Record<string, string> | undefined;
2583
+ meta?: Record<string, unknown> | undefined;
2584
+ included?: {
2585
+ type: string;
2586
+ id: string;
2587
+ attributes?: Record<string, unknown> | undefined;
2588
+ relationships?: Record<string, unknown> | undefined;
2589
+ links?: Record<string, string> | undefined;
2590
+ meta?: Record<string, unknown> | undefined;
2591
+ }[] | undefined;
2592
+ }>;
2593
+ export type PaymentProvider = z.infer<typeof paymentProviderSchema>;
2594
+ export type VendorPaymentStatus = z.infer<typeof vendorPaymentStatusSchema>;
2595
+ export type CreateCompanyPaymentAccountInput = z.infer<typeof createCompanyPaymentAccountSchema>;
2596
+ export type UpdateCompanyPaymentAccountInput = z.infer<typeof updateCompanyPaymentAccountSchema>;
2597
+ export type CreateTeamSpendLimitInput = z.infer<typeof createTeamSpendLimitSchema>;
2598
+ export type UpdateTeamSpendLimitInput = z.infer<typeof updateTeamSpendLimitSchema>;
2599
+ export type InitiateVendorPaymentInput = z.infer<typeof initiateVendorPaymentSchema>;
2600
+ export type VendorPaymentResponse = z.infer<typeof vendorPaymentResponseSchema>;
2601
+ export type VendorPaymentListResponse = z.infer<typeof vendorPaymentListResponseSchema>;
2602
+ export type CompanyPaymentAccountResponse = z.infer<typeof companyPaymentAccountResponseSchema>;
2603
+ export type TeamSpendLimitResponse = z.infer<typeof teamSpendLimitResponseSchema>;
2604
+ //# sourceMappingURL=team-payments.schemas.d.ts.map