@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 @@
1
+ {"version":3,"file":"team-payments.schemas.d.ts","sourceRoot":"","sources":["../../src/schemas/team-payments.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,eAAO,MAAM,qBAAqB,+EAOhC,CAAC;AAEH,eAAO,MAAM,yBAAyB,2FAOpC,CAAC;AAEH,eAAO,MAAM,2BAA2B,qCAAmC,CAAC;AAE5E,eAAO,MAAM,qCAAqC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAcxB,CAAC;AAE3B,eAAO,MAAM,2CAA2C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAYtD,CAAC;AAEH,eAAO,MAAM,2CAA2C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAwD,CAAC;AAEjH,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;EAA+D,CAAC;AAE9G,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACpE,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC5E,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC;AACjG,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC;AACjG,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AACnF,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AACnF,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AACrF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAChF,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AACxF,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAC;AAChG,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC"}
@@ -0,0 +1,151 @@
1
+ import { z } from 'zod';
2
+ import { timestampsSchema, createJsonApiResourceSchema, jsonApiSingleResponseSchema, jsonApiCollectionResponseSchema, } from './common.schemas';
3
+ export const paymentProviderSchema = z.enum([
4
+ 'OPAY',
5
+ 'PAYSTACK',
6
+ 'FLUTTERWAVE',
7
+ 'MONO',
8
+ 'OKRA',
9
+ 'BANK_DIRECT',
10
+ ]);
11
+ export const vendorPaymentStatusSchema = z.enum([
12
+ 'DRAFT',
13
+ 'PENDING_APPROVAL',
14
+ 'PROCESSING',
15
+ 'COMPLETED',
16
+ 'FAILED',
17
+ 'REJECTED',
18
+ ]);
19
+ export const paymentApprovalActionSchema = z.enum(['APPROVED', 'REJECTED']);
20
+ export const companyPaymentAccountAttributesSchema = z.object({
21
+ organizationId: z.string().uuid(),
22
+ label: z.string(),
23
+ bankName: z.string(),
24
+ accountNumber: z.string(),
25
+ accountName: z.string(),
26
+ provider: paymentProviderSchema,
27
+ providerAccountId: z.string().nullable(),
28
+ isDefault: z.boolean(),
29
+ isActive: z.boolean(),
30
+ dailyLimit: z.number().nullable(),
31
+ monthlyLimit: z.number().nullable(),
32
+ monoLinkedAt: z.string().datetime().nullable(),
33
+ monoConsentExpiry: z.string().datetime().nullable(),
34
+ }).merge(timestampsSchema);
35
+ export const createCompanyPaymentAccountAttributesSchema = z.object({
36
+ label: z.string().min(1).max(200),
37
+ bankName: z.string().min(1).max(200),
38
+ accountNumber: z.string().min(4).max(50),
39
+ accountName: z.string().min(1).max(200),
40
+ provider: paymentProviderSchema,
41
+ providerAccountId: z.string().max(200).optional(),
42
+ providerCredentials: z.record(z.unknown()).optional(),
43
+ isDefault: z.boolean().default(false),
44
+ isActive: z.boolean().default(true),
45
+ dailyLimit: z.number().positive().optional(),
46
+ monthlyLimit: z.number().positive().optional(),
47
+ });
48
+ export const updateCompanyPaymentAccountAttributesSchema = createCompanyPaymentAccountAttributesSchema.partial();
49
+ export const createCompanyPaymentAccountSchema = z.object({
50
+ type: z.literal('company-payment-accounts'),
51
+ attributes: createCompanyPaymentAccountAttributesSchema,
52
+ });
53
+ export const updateCompanyPaymentAccountSchema = z.object({
54
+ type: z.literal('company-payment-accounts'),
55
+ id: z.string().uuid(),
56
+ attributes: updateCompanyPaymentAccountAttributesSchema,
57
+ });
58
+ export const companyPaymentAccountResourceSchema = createJsonApiResourceSchema('company-payment-accounts', companyPaymentAccountAttributesSchema);
59
+ export const companyPaymentAccountResponseSchema = jsonApiSingleResponseSchema(companyPaymentAccountResourceSchema);
60
+ export const companyPaymentAccountListResponseSchema = jsonApiCollectionResponseSchema(companyPaymentAccountResourceSchema);
61
+ export const teamSpendLimitAttributesSchema = z.object({
62
+ teamMemberId: z.string().uuid(),
63
+ farmId: z.string().uuid(),
64
+ monthlyCap: z.number().positive(),
65
+ currentMonthSpent: z.number().nonnegative(),
66
+ resetAt: z.string().datetime(),
67
+ isActive: z.boolean(),
68
+ remaining: z.number().nonnegative().optional(),
69
+ }).merge(timestampsSchema);
70
+ export const createTeamSpendLimitAttributesSchema = z.object({
71
+ teamMemberId: z.string().uuid(),
72
+ monthlyCap: z.number().positive(),
73
+ isActive: z.boolean().default(true),
74
+ });
75
+ export const updateTeamSpendLimitAttributesSchema = z.object({
76
+ monthlyCap: z.number().positive().optional(),
77
+ isActive: z.boolean().optional(),
78
+ });
79
+ export const createTeamSpendLimitSchema = z.object({
80
+ type: z.literal('team-spend-limits'),
81
+ attributes: createTeamSpendLimitAttributesSchema,
82
+ });
83
+ export const updateTeamSpendLimitSchema = z.object({
84
+ type: z.literal('team-spend-limits'),
85
+ id: z.string().uuid(),
86
+ attributes: updateTeamSpendLimitAttributesSchema,
87
+ });
88
+ export const teamSpendLimitResourceSchema = createJsonApiResourceSchema('team-spend-limits', teamSpendLimitAttributesSchema);
89
+ export const teamSpendLimitResponseSchema = jsonApiSingleResponseSchema(teamSpendLimitResourceSchema);
90
+ export const teamSpendLimitListResponseSchema = jsonApiCollectionResponseSchema(teamSpendLimitResourceSchema);
91
+ export const vendorPaymentAttributesSchema = z.object({
92
+ farmId: z.string().uuid(),
93
+ initiatedById: z.string().uuid(),
94
+ paymentAccountId: z.string().uuid(),
95
+ approvedById: z.string().uuid().nullable(),
96
+ approvalNote: z.string().nullable(),
97
+ vendorName: z.string(),
98
+ vendorBankCode: z.string(),
99
+ vendorAccountNumber: z.string(),
100
+ vendorAccountName: z.string(),
101
+ supplierId: z.string().nullable(),
102
+ amount: z.number().positive(),
103
+ currency: z.string(),
104
+ narration: z.string(),
105
+ category: z.string(),
106
+ fieldId: z.string().uuid().nullable(),
107
+ cropId: z.string().nullable(),
108
+ providerReference: z.string().nullable(),
109
+ providerTransferId: z.string().nullable(),
110
+ status: vendorPaymentStatusSchema,
111
+ failureReason: z.string().nullable(),
112
+ expenseId: z.string().uuid().nullable(),
113
+ initiatedAt: z.string().datetime(),
114
+ approvedAt: z.string().datetime().nullable(),
115
+ processedAt: z.string().datetime().nullable(),
116
+ completedAt: z.string().datetime().nullable(),
117
+ receiptUrl: z.string().nullable(),
118
+ }).merge(timestampsSchema);
119
+ export const initiateVendorPaymentAttributesSchema = z.object({
120
+ paymentAccountId: z.string().uuid(),
121
+ vendorName: z.string().min(1).max(200),
122
+ vendorBankCode: z.string().min(3).max(10),
123
+ vendorAccountNumber: z.string().min(10).max(20),
124
+ vendorAccountName: z.string().min(1).max(200).optional(),
125
+ supplierId: z.string().uuid().optional(),
126
+ amount: z.number().positive(),
127
+ currency: z.string().length(3).default('NGN'),
128
+ narration: z.string().min(1).max(500),
129
+ category: z.string().min(1).max(100),
130
+ fieldId: z.string().uuid().optional(),
131
+ cropId: z.string().optional(),
132
+ });
133
+ export const initiateVendorPaymentSchema = z.object({
134
+ type: z.literal('vendor-payments'),
135
+ attributes: initiateVendorPaymentAttributesSchema,
136
+ });
137
+ export const paymentApprovalActionInputSchema = z.object({
138
+ notes: z.string().max(2000).optional(),
139
+ });
140
+ export const paymentApprovalAttributesSchema = z.object({
141
+ vendorPaymentId: z.string().uuid(),
142
+ approverId: z.string().uuid(),
143
+ action: paymentApprovalActionSchema,
144
+ notes: z.string().nullable(),
145
+ createdAt: z.string().datetime(),
146
+ });
147
+ export const paymentApprovalResourceSchema = createJsonApiResourceSchema('payment-approvals', paymentApprovalAttributesSchema);
148
+ export const vendorPaymentResourceSchema = createJsonApiResourceSchema('vendor-payments', vendorPaymentAttributesSchema);
149
+ export const vendorPaymentResponseSchema = jsonApiSingleResponseSchema(vendorPaymentResourceSchema);
150
+ export const vendorPaymentListResponseSchema = jsonApiCollectionResponseSchema(vendorPaymentResourceSchema);
151
+ export const paymentApprovalListResponseSchema = jsonApiCollectionResponseSchema(vendorPaymentResourceSchema);
@@ -182,6 +182,9 @@ export declare const createWaybillAttributesSchema: z.ZodObject<{
182
182
  transporterName: z.ZodOptional<z.ZodString>;
183
183
  dispatchedLocation: z.ZodOptional<z.ZodString>;
184
184
  receivedCondition: z.ZodOptional<z.ZodString>;
185
+ purchaseCost: z.ZodOptional<z.ZodNumber>;
186
+ transportCost: z.ZodOptional<z.ZodNumber>;
187
+ miscellaneousCost: z.ZodOptional<z.ZodNumber>;
185
188
  }, "strip", z.ZodTypeAny, {
186
189
  currency: string;
187
190
  items: {
@@ -196,6 +199,7 @@ export declare const createWaybillAttributesSchema: z.ZodObject<{
196
199
  buyerId: string;
197
200
  notes?: string | undefined;
198
201
  totalValue?: number | undefined;
202
+ transportCost?: number | undefined;
199
203
  issueDate?: string | undefined;
200
204
  senderAddress?: string | undefined;
201
205
  senderPhone?: string | undefined;
@@ -208,6 +212,8 @@ export declare const createWaybillAttributesSchema: z.ZodObject<{
208
212
  transporterName?: string | undefined;
209
213
  dispatchedLocation?: string | undefined;
210
214
  receivedCondition?: string | undefined;
215
+ purchaseCost?: number | undefined;
216
+ miscellaneousCost?: number | undefined;
211
217
  }, {
212
218
  items: {
213
219
  description: string;
@@ -222,6 +228,7 @@ export declare const createWaybillAttributesSchema: z.ZodObject<{
222
228
  currency?: string | undefined;
223
229
  notes?: string | undefined;
224
230
  totalValue?: number | undefined;
231
+ transportCost?: number | undefined;
225
232
  issueDate?: string | undefined;
226
233
  senderAddress?: string | undefined;
227
234
  senderPhone?: string | undefined;
@@ -234,6 +241,8 @@ export declare const createWaybillAttributesSchema: z.ZodObject<{
234
241
  transporterName?: string | undefined;
235
242
  dispatchedLocation?: string | undefined;
236
243
  receivedCondition?: string | undefined;
244
+ purchaseCost?: number | undefined;
245
+ miscellaneousCost?: number | undefined;
237
246
  }>;
238
247
  export declare const updateWaybillAttributesSchema: z.ZodObject<{
239
248
  issueDate: z.ZodOptional<z.ZodOptional<z.ZodString>>;
@@ -275,10 +284,14 @@ export declare const updateWaybillAttributesSchema: z.ZodObject<{
275
284
  transporterName: z.ZodOptional<z.ZodOptional<z.ZodString>>;
276
285
  dispatchedLocation: z.ZodOptional<z.ZodOptional<z.ZodString>>;
277
286
  receivedCondition: z.ZodOptional<z.ZodOptional<z.ZodString>>;
287
+ purchaseCost: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
288
+ transportCost: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
289
+ miscellaneousCost: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
278
290
  }, "strip", z.ZodTypeAny, {
279
291
  currency?: string | undefined;
280
292
  notes?: string | undefined;
281
293
  totalValue?: number | undefined;
294
+ transportCost?: number | undefined;
282
295
  items?: {
283
296
  description: string;
284
297
  unit: string;
@@ -301,10 +314,13 @@ export declare const updateWaybillAttributesSchema: z.ZodObject<{
301
314
  dispatchedLocation?: string | undefined;
302
315
  receivedCondition?: string | undefined;
303
316
  buyerId?: string | undefined;
317
+ purchaseCost?: number | undefined;
318
+ miscellaneousCost?: number | undefined;
304
319
  }, {
305
320
  currency?: string | undefined;
306
321
  notes?: string | undefined;
307
322
  totalValue?: number | undefined;
323
+ transportCost?: number | undefined;
308
324
  items?: {
309
325
  description: string;
310
326
  unit: string;
@@ -327,6 +343,8 @@ export declare const updateWaybillAttributesSchema: z.ZodObject<{
327
343
  dispatchedLocation?: string | undefined;
328
344
  receivedCondition?: string | undefined;
329
345
  buyerId?: string | undefined;
346
+ purchaseCost?: number | undefined;
347
+ miscellaneousCost?: number | undefined;
330
348
  }>;
331
349
  export declare const createWaybillSchema: z.ZodObject<{
332
350
  type: z.ZodLiteral<"waybills">;
@@ -370,6 +388,9 @@ export declare const createWaybillSchema: z.ZodObject<{
370
388
  transporterName: z.ZodOptional<z.ZodString>;
371
389
  dispatchedLocation: z.ZodOptional<z.ZodString>;
372
390
  receivedCondition: z.ZodOptional<z.ZodString>;
391
+ purchaseCost: z.ZodOptional<z.ZodNumber>;
392
+ transportCost: z.ZodOptional<z.ZodNumber>;
393
+ miscellaneousCost: z.ZodOptional<z.ZodNumber>;
373
394
  }, "strip", z.ZodTypeAny, {
374
395
  currency: string;
375
396
  items: {
@@ -384,6 +405,7 @@ export declare const createWaybillSchema: z.ZodObject<{
384
405
  buyerId: string;
385
406
  notes?: string | undefined;
386
407
  totalValue?: number | undefined;
408
+ transportCost?: number | undefined;
387
409
  issueDate?: string | undefined;
388
410
  senderAddress?: string | undefined;
389
411
  senderPhone?: string | undefined;
@@ -396,6 +418,8 @@ export declare const createWaybillSchema: z.ZodObject<{
396
418
  transporterName?: string | undefined;
397
419
  dispatchedLocation?: string | undefined;
398
420
  receivedCondition?: string | undefined;
421
+ purchaseCost?: number | undefined;
422
+ miscellaneousCost?: number | undefined;
399
423
  }, {
400
424
  items: {
401
425
  description: string;
@@ -410,6 +434,7 @@ export declare const createWaybillSchema: z.ZodObject<{
410
434
  currency?: string | undefined;
411
435
  notes?: string | undefined;
412
436
  totalValue?: number | undefined;
437
+ transportCost?: number | undefined;
413
438
  issueDate?: string | undefined;
414
439
  senderAddress?: string | undefined;
415
440
  senderPhone?: string | undefined;
@@ -422,6 +447,8 @@ export declare const createWaybillSchema: z.ZodObject<{
422
447
  transporterName?: string | undefined;
423
448
  dispatchedLocation?: string | undefined;
424
449
  receivedCondition?: string | undefined;
450
+ purchaseCost?: number | undefined;
451
+ miscellaneousCost?: number | undefined;
425
452
  }>;
426
453
  }, "strip", z.ZodTypeAny, {
427
454
  type: "waybills";
@@ -439,6 +466,7 @@ export declare const createWaybillSchema: z.ZodObject<{
439
466
  buyerId: string;
440
467
  notes?: string | undefined;
441
468
  totalValue?: number | undefined;
469
+ transportCost?: number | undefined;
442
470
  issueDate?: string | undefined;
443
471
  senderAddress?: string | undefined;
444
472
  senderPhone?: string | undefined;
@@ -451,6 +479,8 @@ export declare const createWaybillSchema: z.ZodObject<{
451
479
  transporterName?: string | undefined;
452
480
  dispatchedLocation?: string | undefined;
453
481
  receivedCondition?: string | undefined;
482
+ purchaseCost?: number | undefined;
483
+ miscellaneousCost?: number | undefined;
454
484
  };
455
485
  }, {
456
486
  type: "waybills";
@@ -468,6 +498,7 @@ export declare const createWaybillSchema: z.ZodObject<{
468
498
  currency?: string | undefined;
469
499
  notes?: string | undefined;
470
500
  totalValue?: number | undefined;
501
+ transportCost?: number | undefined;
471
502
  issueDate?: string | undefined;
472
503
  senderAddress?: string | undefined;
473
504
  senderPhone?: string | undefined;
@@ -480,6 +511,8 @@ export declare const createWaybillSchema: z.ZodObject<{
480
511
  transporterName?: string | undefined;
481
512
  dispatchedLocation?: string | undefined;
482
513
  receivedCondition?: string | undefined;
514
+ purchaseCost?: number | undefined;
515
+ miscellaneousCost?: number | undefined;
483
516
  };
484
517
  }>;
485
518
  export declare const updateWaybillSchema: z.ZodObject<{
@@ -525,10 +558,14 @@ export declare const updateWaybillSchema: z.ZodObject<{
525
558
  transporterName: z.ZodOptional<z.ZodOptional<z.ZodString>>;
526
559
  dispatchedLocation: z.ZodOptional<z.ZodOptional<z.ZodString>>;
527
560
  receivedCondition: z.ZodOptional<z.ZodOptional<z.ZodString>>;
561
+ purchaseCost: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
562
+ transportCost: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
563
+ miscellaneousCost: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
528
564
  }, "strip", z.ZodTypeAny, {
529
565
  currency?: string | undefined;
530
566
  notes?: string | undefined;
531
567
  totalValue?: number | undefined;
568
+ transportCost?: number | undefined;
532
569
  items?: {
533
570
  description: string;
534
571
  unit: string;
@@ -551,10 +588,13 @@ export declare const updateWaybillSchema: z.ZodObject<{
551
588
  dispatchedLocation?: string | undefined;
552
589
  receivedCondition?: string | undefined;
553
590
  buyerId?: string | undefined;
591
+ purchaseCost?: number | undefined;
592
+ miscellaneousCost?: number | undefined;
554
593
  }, {
555
594
  currency?: string | undefined;
556
595
  notes?: string | undefined;
557
596
  totalValue?: number | undefined;
597
+ transportCost?: number | undefined;
558
598
  items?: {
559
599
  description: string;
560
600
  unit: string;
@@ -577,6 +617,8 @@ export declare const updateWaybillSchema: z.ZodObject<{
577
617
  dispatchedLocation?: string | undefined;
578
618
  receivedCondition?: string | undefined;
579
619
  buyerId?: string | undefined;
620
+ purchaseCost?: number | undefined;
621
+ miscellaneousCost?: number | undefined;
580
622
  }>;
581
623
  }, "strip", z.ZodTypeAny, {
582
624
  type: "waybills";
@@ -585,6 +627,7 @@ export declare const updateWaybillSchema: z.ZodObject<{
585
627
  currency?: string | undefined;
586
628
  notes?: string | undefined;
587
629
  totalValue?: number | undefined;
630
+ transportCost?: number | undefined;
588
631
  items?: {
589
632
  description: string;
590
633
  unit: string;
@@ -607,6 +650,8 @@ export declare const updateWaybillSchema: z.ZodObject<{
607
650
  dispatchedLocation?: string | undefined;
608
651
  receivedCondition?: string | undefined;
609
652
  buyerId?: string | undefined;
653
+ purchaseCost?: number | undefined;
654
+ miscellaneousCost?: number | undefined;
610
655
  };
611
656
  }, {
612
657
  type: "waybills";
@@ -615,6 +660,7 @@ export declare const updateWaybillSchema: z.ZodObject<{
615
660
  currency?: string | undefined;
616
661
  notes?: string | undefined;
617
662
  totalValue?: number | undefined;
663
+ transportCost?: number | undefined;
618
664
  items?: {
619
665
  description: string;
620
666
  unit: string;
@@ -637,6 +683,8 @@ export declare const updateWaybillSchema: z.ZodObject<{
637
683
  dispatchedLocation?: string | undefined;
638
684
  receivedCondition?: string | undefined;
639
685
  buyerId?: string | undefined;
686
+ purchaseCost?: number | undefined;
687
+ miscellaneousCost?: number | undefined;
640
688
  };
641
689
  }>;
642
690
  export declare const waybillResourceSchema: z.ZodObject<{
@@ -1 +1 @@
1
- {"version":3,"file":"waybills.schemas.d.ts","sourceRoot":"","sources":["../../src/schemas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ributesSchema = z.object({
63
63
  transporterName: z.string().optional(),
64
64
  dispatchedLocation: z.string().optional(),
65
65
  receivedCondition: z.string().optional(),
66
+ purchaseCost: z.number().nonnegative().optional(),
67
+ transportCost: z.number().nonnegative().optional(),
68
+ miscellaneousCost: z.number().nonnegative().optional(),
66
69
  });
67
70
  // Waybill attributes for update (input)
68
71
  export const updateWaybillAttributesSchema = createWaybillAttributesSchema.partial();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deepintel-ltd/farmpro-contracts",
3
- "version": "1.7.19",
3
+ "version": "1.7.21",
4
4
  "description": "Type-safe API contracts for FarmPro API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",