@deepintel-ltd/farmpro-contracts 1.17.0 → 1.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/dist/index.d.ts +3 -1
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +2 -0
  4. package/dist/routes/accounting.routes.d.ts +13861 -0
  5. package/dist/routes/accounting.routes.d.ts.map +1 -0
  6. package/dist/routes/accounting.routes.js +448 -0
  7. package/dist/routes/commodity-deals.routes.d.ts +48 -48
  8. package/dist/routes/finance.routes.d.ts +235 -38
  9. package/dist/routes/finance.routes.d.ts.map +1 -1
  10. package/dist/routes/index.d.ts +3 -0
  11. package/dist/routes/index.d.ts.map +1 -1
  12. package/dist/routes/index.js +2 -0
  13. package/dist/routes/live-monitor.routes.d.ts +4 -4
  14. package/dist/routes/monitoring-visualization.routes.d.ts +16 -10
  15. package/dist/routes/monitoring-visualization.routes.d.ts.map +1 -1
  16. package/dist/routes/staff.routes.d.ts +36 -36
  17. package/dist/schemas/accounting.schemas.d.ts +6002 -0
  18. package/dist/schemas/accounting.schemas.d.ts.map +1 -0
  19. package/dist/schemas/accounting.schemas.js +341 -0
  20. package/dist/schemas/commodity-deals.schemas.d.ts +24 -24
  21. package/dist/schemas/farms.schemas.d.ts.map +1 -1
  22. package/dist/schemas/finance.schemas.d.ts +304 -46
  23. package/dist/schemas/finance.schemas.d.ts.map +1 -1
  24. package/dist/schemas/finance.schemas.js +23 -9
  25. package/dist/schemas/live-monitor.schemas.d.ts +6 -6
  26. package/dist/schemas/locale.schemas.d.ts +3 -0
  27. package/dist/schemas/locale.schemas.d.ts.map +1 -1
  28. package/dist/schemas/locale.schemas.js +1 -0
  29. package/dist/schemas/monitoring-visualization.schemas.d.ts +43 -12
  30. package/dist/schemas/monitoring-visualization.schemas.d.ts.map +1 -1
  31. package/dist/schemas/monitoring-visualization.schemas.js +5 -1
  32. package/dist/schemas/staff.schemas.d.ts +30 -30
  33. package/package.json +1 -1
@@ -1855,6 +1855,9 @@ export declare const financeRouter: {
1855
1855
  cropName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1856
1856
  createdById: z.ZodNullable<z.ZodString>;
1857
1857
  createdByName: z.ZodNullable<z.ZodString>;
1858
+ ledgerSourceType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1859
+ ledgerSourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1860
+ documentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1858
1861
  } & {
1859
1862
  createdAt: z.ZodString;
1860
1863
  updatedAt: z.ZodString;
@@ -1872,6 +1875,9 @@ export declare const financeRouter: {
1872
1875
  createdByName: string | null;
1873
1876
  fieldName?: string | null | undefined;
1874
1877
  cropName?: string | null | undefined;
1878
+ ledgerSourceType?: string | null | undefined;
1879
+ ledgerSourceId?: string | null | undefined;
1880
+ documentId?: string | null | undefined;
1875
1881
  }, {
1876
1882
  date: string;
1877
1883
  createdAt: string;
@@ -1886,6 +1892,9 @@ export declare const financeRouter: {
1886
1892
  createdByName: string | null;
1887
1893
  fieldName?: string | null | undefined;
1888
1894
  cropName?: string | null | undefined;
1895
+ ledgerSourceType?: string | null | undefined;
1896
+ ledgerSourceId?: string | null | undefined;
1897
+ documentId?: string | null | undefined;
1889
1898
  }>;
1890
1899
  relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1891
1900
  links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -1907,6 +1916,9 @@ export declare const financeRouter: {
1907
1916
  createdByName: string | null;
1908
1917
  fieldName?: string | null | undefined;
1909
1918
  cropName?: string | null | undefined;
1919
+ ledgerSourceType?: string | null | undefined;
1920
+ ledgerSourceId?: string | null | undefined;
1921
+ documentId?: string | null | undefined;
1910
1922
  };
1911
1923
  relationships?: Record<string, unknown> | undefined;
1912
1924
  links?: Record<string, string> | undefined;
@@ -1928,6 +1940,9 @@ export declare const financeRouter: {
1928
1940
  createdByName: string | null;
1929
1941
  fieldName?: string | null | undefined;
1930
1942
  cropName?: string | null | undefined;
1943
+ ledgerSourceType?: string | null | undefined;
1944
+ ledgerSourceId?: string | null | undefined;
1945
+ documentId?: string | null | undefined;
1931
1946
  };
1932
1947
  relationships?: Record<string, unknown> | undefined;
1933
1948
  links?: Record<string, string> | undefined;
@@ -1975,6 +1990,9 @@ export declare const financeRouter: {
1975
1990
  createdByName: string | null;
1976
1991
  fieldName?: string | null | undefined;
1977
1992
  cropName?: string | null | undefined;
1993
+ ledgerSourceType?: string | null | undefined;
1994
+ ledgerSourceId?: string | null | undefined;
1995
+ documentId?: string | null | undefined;
1978
1996
  };
1979
1997
  relationships?: Record<string, unknown> | undefined;
1980
1998
  links?: Record<string, string> | undefined;
@@ -2008,6 +2026,9 @@ export declare const financeRouter: {
2008
2026
  createdByName: string | null;
2009
2027
  fieldName?: string | null | undefined;
2010
2028
  cropName?: string | null | undefined;
2029
+ ledgerSourceType?: string | null | undefined;
2030
+ ledgerSourceId?: string | null | undefined;
2031
+ documentId?: string | null | undefined;
2011
2032
  };
2012
2033
  relationships?: Record<string, unknown> | undefined;
2013
2034
  links?: Record<string, string> | undefined;
@@ -2222,7 +2243,7 @@ export declare const financeRouter: {
2222
2243
  type: z.ZodLiteral<"expenses">;
2223
2244
  attributes: z.ZodEffects<z.ZodObject<{
2224
2245
  date: z.ZodString;
2225
- category: z.ZodString;
2246
+ category: z.ZodOptional<z.ZodString>;
2226
2247
  description: z.ZodString;
2227
2248
  amount: z.ZodNumber;
2228
2249
  allocationType: z.ZodDefault<z.ZodEnum<["field", "crop", "general"]>>;
@@ -2231,32 +2252,32 @@ export declare const financeRouter: {
2231
2252
  }, "strip", z.ZodTypeAny, {
2232
2253
  date: string;
2233
2254
  description: string;
2234
- category: string;
2235
2255
  amount: number;
2236
2256
  allocationType: "crop" | "field" | "general";
2257
+ category?: string | undefined;
2237
2258
  fieldId?: string | undefined;
2238
2259
  cropId?: string | undefined;
2239
2260
  }, {
2240
2261
  date: string;
2241
2262
  description: string;
2242
- category: string;
2243
2263
  amount: number;
2264
+ category?: string | undefined;
2244
2265
  fieldId?: string | undefined;
2245
2266
  cropId?: string | undefined;
2246
2267
  allocationType?: "crop" | "field" | "general" | undefined;
2247
2268
  }>, {
2248
2269
  date: string;
2249
2270
  description: string;
2250
- category: string;
2251
2271
  amount: number;
2252
2272
  allocationType: "crop" | "field" | "general";
2273
+ category?: string | undefined;
2253
2274
  fieldId?: string | undefined;
2254
2275
  cropId?: string | undefined;
2255
2276
  }, {
2256
2277
  date: string;
2257
2278
  description: string;
2258
- category: string;
2259
2279
  amount: number;
2280
+ category?: string | undefined;
2260
2281
  fieldId?: string | undefined;
2261
2282
  cropId?: string | undefined;
2262
2283
  allocationType?: "crop" | "field" | "general" | undefined;
@@ -2266,9 +2287,9 @@ export declare const financeRouter: {
2266
2287
  attributes: {
2267
2288
  date: string;
2268
2289
  description: string;
2269
- category: string;
2270
2290
  amount: number;
2271
2291
  allocationType: "crop" | "field" | "general";
2292
+ category?: string | undefined;
2272
2293
  fieldId?: string | undefined;
2273
2294
  cropId?: string | undefined;
2274
2295
  };
@@ -2277,8 +2298,8 @@ export declare const financeRouter: {
2277
2298
  attributes: {
2278
2299
  date: string;
2279
2300
  description: string;
2280
- category: string;
2281
2301
  amount: number;
2302
+ category?: string | undefined;
2282
2303
  fieldId?: string | undefined;
2283
2304
  cropId?: string | undefined;
2284
2305
  allocationType?: "crop" | "field" | "general" | undefined;
@@ -2290,9 +2311,9 @@ export declare const financeRouter: {
2290
2311
  attributes: {
2291
2312
  date: string;
2292
2313
  description: string;
2293
- category: string;
2294
2314
  amount: number;
2295
2315
  allocationType: "crop" | "field" | "general";
2316
+ category?: string | undefined;
2296
2317
  fieldId?: string | undefined;
2297
2318
  cropId?: string | undefined;
2298
2319
  };
@@ -2303,8 +2324,8 @@ export declare const financeRouter: {
2303
2324
  attributes: {
2304
2325
  date: string;
2305
2326
  description: string;
2306
- category: string;
2307
2327
  amount: number;
2328
+ category?: string | undefined;
2308
2329
  fieldId?: string | undefined;
2309
2330
  cropId?: string | undefined;
2310
2331
  allocationType?: "crop" | "field" | "general" | undefined;
@@ -2329,6 +2350,9 @@ export declare const financeRouter: {
2329
2350
  cropName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2330
2351
  createdById: z.ZodNullable<z.ZodString>;
2331
2352
  createdByName: z.ZodNullable<z.ZodString>;
2353
+ ledgerSourceType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2354
+ ledgerSourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2355
+ documentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2332
2356
  } & {
2333
2357
  createdAt: z.ZodString;
2334
2358
  updatedAt: z.ZodString;
@@ -2346,6 +2370,9 @@ export declare const financeRouter: {
2346
2370
  createdByName: string | null;
2347
2371
  fieldName?: string | null | undefined;
2348
2372
  cropName?: string | null | undefined;
2373
+ ledgerSourceType?: string | null | undefined;
2374
+ ledgerSourceId?: string | null | undefined;
2375
+ documentId?: string | null | undefined;
2349
2376
  }, {
2350
2377
  date: string;
2351
2378
  createdAt: string;
@@ -2360,6 +2387,9 @@ export declare const financeRouter: {
2360
2387
  createdByName: string | null;
2361
2388
  fieldName?: string | null | undefined;
2362
2389
  cropName?: string | null | undefined;
2390
+ ledgerSourceType?: string | null | undefined;
2391
+ ledgerSourceId?: string | null | undefined;
2392
+ documentId?: string | null | undefined;
2363
2393
  }>;
2364
2394
  relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2365
2395
  links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -2381,6 +2411,9 @@ export declare const financeRouter: {
2381
2411
  createdByName: string | null;
2382
2412
  fieldName?: string | null | undefined;
2383
2413
  cropName?: string | null | undefined;
2414
+ ledgerSourceType?: string | null | undefined;
2415
+ ledgerSourceId?: string | null | undefined;
2416
+ documentId?: string | null | undefined;
2384
2417
  };
2385
2418
  relationships?: Record<string, unknown> | undefined;
2386
2419
  links?: Record<string, string> | undefined;
@@ -2402,6 +2435,9 @@ export declare const financeRouter: {
2402
2435
  createdByName: string | null;
2403
2436
  fieldName?: string | null | undefined;
2404
2437
  cropName?: string | null | undefined;
2438
+ ledgerSourceType?: string | null | undefined;
2439
+ ledgerSourceId?: string | null | undefined;
2440
+ documentId?: string | null | undefined;
2405
2441
  };
2406
2442
  relationships?: Record<string, unknown> | undefined;
2407
2443
  links?: Record<string, string> | undefined;
@@ -2449,6 +2485,9 @@ export declare const financeRouter: {
2449
2485
  createdByName: string | null;
2450
2486
  fieldName?: string | null | undefined;
2451
2487
  cropName?: string | null | undefined;
2488
+ ledgerSourceType?: string | null | undefined;
2489
+ ledgerSourceId?: string | null | undefined;
2490
+ documentId?: string | null | undefined;
2452
2491
  };
2453
2492
  relationships?: Record<string, unknown> | undefined;
2454
2493
  links?: Record<string, string> | undefined;
@@ -2482,6 +2521,9 @@ export declare const financeRouter: {
2482
2521
  createdByName: string | null;
2483
2522
  fieldName?: string | null | undefined;
2484
2523
  cropName?: string | null | undefined;
2524
+ ledgerSourceType?: string | null | undefined;
2525
+ ledgerSourceId?: string | null | undefined;
2526
+ documentId?: string | null | undefined;
2485
2527
  };
2486
2528
  relationships?: Record<string, unknown> | undefined;
2487
2529
  links?: Record<string, string> | undefined;
@@ -2899,6 +2941,9 @@ export declare const financeRouter: {
2899
2941
  cropName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2900
2942
  createdById: z.ZodNullable<z.ZodString>;
2901
2943
  createdByName: z.ZodNullable<z.ZodString>;
2944
+ ledgerSourceType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2945
+ ledgerSourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2946
+ documentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2902
2947
  } & {
2903
2948
  createdAt: z.ZodString;
2904
2949
  updatedAt: z.ZodString;
@@ -2916,6 +2961,9 @@ export declare const financeRouter: {
2916
2961
  createdByName: string | null;
2917
2962
  fieldName?: string | null | undefined;
2918
2963
  cropName?: string | null | undefined;
2964
+ ledgerSourceType?: string | null | undefined;
2965
+ ledgerSourceId?: string | null | undefined;
2966
+ documentId?: string | null | undefined;
2919
2967
  }, {
2920
2968
  date: string;
2921
2969
  createdAt: string;
@@ -2930,6 +2978,9 @@ export declare const financeRouter: {
2930
2978
  createdByName: string | null;
2931
2979
  fieldName?: string | null | undefined;
2932
2980
  cropName?: string | null | undefined;
2981
+ ledgerSourceType?: string | null | undefined;
2982
+ ledgerSourceId?: string | null | undefined;
2983
+ documentId?: string | null | undefined;
2933
2984
  }>;
2934
2985
  links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2935
2986
  meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -2982,6 +3033,9 @@ export declare const financeRouter: {
2982
3033
  createdByName: string | null;
2983
3034
  fieldName?: string | null | undefined;
2984
3035
  cropName?: string | null | undefined;
3036
+ ledgerSourceType?: string | null | undefined;
3037
+ ledgerSourceId?: string | null | undefined;
3038
+ documentId?: string | null | undefined;
2985
3039
  };
2986
3040
  relationships?: {
2987
3041
  field?: {
@@ -3009,6 +3063,9 @@ export declare const financeRouter: {
3009
3063
  createdByName: string | null;
3010
3064
  fieldName?: string | null | undefined;
3011
3065
  cropName?: string | null | undefined;
3066
+ ledgerSourceType?: string | null | undefined;
3067
+ ledgerSourceId?: string | null | undefined;
3068
+ documentId?: string | null | undefined;
3012
3069
  };
3013
3070
  relationships?: {
3014
3071
  field?: {
@@ -3062,6 +3119,9 @@ export declare const financeRouter: {
3062
3119
  createdByName: string | null;
3063
3120
  fieldName?: string | null | undefined;
3064
3121
  cropName?: string | null | undefined;
3122
+ ledgerSourceType?: string | null | undefined;
3123
+ ledgerSourceId?: string | null | undefined;
3124
+ documentId?: string | null | undefined;
3065
3125
  };
3066
3126
  relationships?: {
3067
3127
  field?: {
@@ -3101,6 +3161,9 @@ export declare const financeRouter: {
3101
3161
  createdByName: string | null;
3102
3162
  fieldName?: string | null | undefined;
3103
3163
  cropName?: string | null | undefined;
3164
+ ledgerSourceType?: string | null | undefined;
3165
+ ledgerSourceId?: string | null | undefined;
3166
+ documentId?: string | null | undefined;
3104
3167
  };
3105
3168
  relationships?: {
3106
3169
  field?: {
@@ -3420,6 +3483,9 @@ export declare const financeRouter: {
3420
3483
  cropName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3421
3484
  createdById: z.ZodNullable<z.ZodString>;
3422
3485
  createdByName: z.ZodNullable<z.ZodString>;
3486
+ ledgerSourceType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3487
+ ledgerSourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3488
+ documentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3423
3489
  } & {
3424
3490
  createdAt: z.ZodString;
3425
3491
  updatedAt: z.ZodString;
@@ -3437,6 +3503,9 @@ export declare const financeRouter: {
3437
3503
  createdByName: string | null;
3438
3504
  fieldName?: string | null | undefined;
3439
3505
  cropName?: string | null | undefined;
3506
+ ledgerSourceType?: string | null | undefined;
3507
+ ledgerSourceId?: string | null | undefined;
3508
+ documentId?: string | null | undefined;
3440
3509
  }, {
3441
3510
  date: string;
3442
3511
  createdAt: string;
@@ -3451,6 +3520,9 @@ export declare const financeRouter: {
3451
3520
  createdByName: string | null;
3452
3521
  fieldName?: string | null | undefined;
3453
3522
  cropName?: string | null | undefined;
3523
+ ledgerSourceType?: string | null | undefined;
3524
+ ledgerSourceId?: string | null | undefined;
3525
+ documentId?: string | null | undefined;
3454
3526
  }>;
3455
3527
  relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3456
3528
  links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -3472,6 +3544,9 @@ export declare const financeRouter: {
3472
3544
  createdByName: string | null;
3473
3545
  fieldName?: string | null | undefined;
3474
3546
  cropName?: string | null | undefined;
3547
+ ledgerSourceType?: string | null | undefined;
3548
+ ledgerSourceId?: string | null | undefined;
3549
+ documentId?: string | null | undefined;
3475
3550
  };
3476
3551
  relationships?: Record<string, unknown> | undefined;
3477
3552
  links?: Record<string, string> | undefined;
@@ -3493,6 +3568,9 @@ export declare const financeRouter: {
3493
3568
  createdByName: string | null;
3494
3569
  fieldName?: string | null | undefined;
3495
3570
  cropName?: string | null | undefined;
3571
+ ledgerSourceType?: string | null | undefined;
3572
+ ledgerSourceId?: string | null | undefined;
3573
+ documentId?: string | null | undefined;
3496
3574
  };
3497
3575
  relationships?: Record<string, unknown> | undefined;
3498
3576
  links?: Record<string, string> | undefined;
@@ -3540,6 +3618,9 @@ export declare const financeRouter: {
3540
3618
  createdByName: string | null;
3541
3619
  fieldName?: string | null | undefined;
3542
3620
  cropName?: string | null | undefined;
3621
+ ledgerSourceType?: string | null | undefined;
3622
+ ledgerSourceId?: string | null | undefined;
3623
+ documentId?: string | null | undefined;
3543
3624
  };
3544
3625
  relationships?: Record<string, unknown> | undefined;
3545
3626
  links?: Record<string, string> | undefined;
@@ -3573,6 +3654,9 @@ export declare const financeRouter: {
3573
3654
  createdByName: string | null;
3574
3655
  fieldName?: string | null | undefined;
3575
3656
  cropName?: string | null | undefined;
3657
+ ledgerSourceType?: string | null | undefined;
3658
+ ledgerSourceId?: string | null | undefined;
3659
+ documentId?: string | null | undefined;
3576
3660
  };
3577
3661
  relationships?: Record<string, unknown> | undefined;
3578
3662
  links?: Record<string, string> | undefined;
@@ -4226,6 +4310,9 @@ export declare const financeRouter: {
4226
4310
  fieldId: z.ZodNullable<z.ZodString>;
4227
4311
  fieldName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4228
4312
  harvestId: z.ZodNullable<z.ZodString>;
4313
+ invoiceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4314
+ ledgerSourceType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4315
+ ledgerSourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4229
4316
  createdById: z.ZodNullable<z.ZodString>;
4230
4317
  createdByName: z.ZodNullable<z.ZodString>;
4231
4318
  } & {
@@ -4246,6 +4333,9 @@ export declare const financeRouter: {
4246
4333
  buyer: string | null;
4247
4334
  harvestId: string | null;
4248
4335
  fieldName?: string | null | undefined;
4336
+ ledgerSourceType?: string | null | undefined;
4337
+ ledgerSourceId?: string | null | undefined;
4338
+ invoiceId?: string | null | undefined;
4249
4339
  }, {
4250
4340
  date: string;
4251
4341
  createdAt: string;
@@ -4261,6 +4351,9 @@ export declare const financeRouter: {
4261
4351
  buyer: string | null;
4262
4352
  harvestId: string | null;
4263
4353
  fieldName?: string | null | undefined;
4354
+ ledgerSourceType?: string | null | undefined;
4355
+ ledgerSourceId?: string | null | undefined;
4356
+ invoiceId?: string | null | undefined;
4264
4357
  }>;
4265
4358
  relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4266
4359
  links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -4283,6 +4376,9 @@ export declare const financeRouter: {
4283
4376
  buyer: string | null;
4284
4377
  harvestId: string | null;
4285
4378
  fieldName?: string | null | undefined;
4379
+ ledgerSourceType?: string | null | undefined;
4380
+ ledgerSourceId?: string | null | undefined;
4381
+ invoiceId?: string | null | undefined;
4286
4382
  };
4287
4383
  relationships?: Record<string, unknown> | undefined;
4288
4384
  links?: Record<string, string> | undefined;
@@ -4305,6 +4401,9 @@ export declare const financeRouter: {
4305
4401
  buyer: string | null;
4306
4402
  harvestId: string | null;
4307
4403
  fieldName?: string | null | undefined;
4404
+ ledgerSourceType?: string | null | undefined;
4405
+ ledgerSourceId?: string | null | undefined;
4406
+ invoiceId?: string | null | undefined;
4308
4407
  };
4309
4408
  relationships?: Record<string, unknown> | undefined;
4310
4409
  links?: Record<string, string> | undefined;
@@ -4353,6 +4452,9 @@ export declare const financeRouter: {
4353
4452
  buyer: string | null;
4354
4453
  harvestId: string | null;
4355
4454
  fieldName?: string | null | undefined;
4455
+ ledgerSourceType?: string | null | undefined;
4456
+ ledgerSourceId?: string | null | undefined;
4457
+ invoiceId?: string | null | undefined;
4356
4458
  };
4357
4459
  relationships?: Record<string, unknown> | undefined;
4358
4460
  links?: Record<string, string> | undefined;
@@ -4387,6 +4489,9 @@ export declare const financeRouter: {
4387
4489
  buyer: string | null;
4388
4490
  harvestId: string | null;
4389
4491
  fieldName?: string | null | undefined;
4492
+ ledgerSourceType?: string | null | undefined;
4493
+ ledgerSourceId?: string | null | undefined;
4494
+ invoiceId?: string | null | undefined;
4390
4495
  };
4391
4496
  relationships?: Record<string, unknown> | undefined;
4392
4497
  links?: Record<string, string> | undefined;
@@ -4599,33 +4704,58 @@ export declare const financeRouter: {
4599
4704
  body: z.ZodObject<{
4600
4705
  data: z.ZodObject<{
4601
4706
  type: z.ZodLiteral<"revenues">;
4602
- attributes: z.ZodObject<{
4707
+ attributes: z.ZodEffects<z.ZodObject<{
4603
4708
  date: z.ZodString;
4604
- crop: z.ZodString;
4605
- quantity: z.ZodNumber;
4606
- unit: z.ZodString;
4607
- pricePerUnit: z.ZodNumber;
4709
+ description: z.ZodOptional<z.ZodString>;
4710
+ crop: z.ZodOptional<z.ZodString>;
4711
+ quantity: z.ZodOptional<z.ZodNumber>;
4712
+ unit: z.ZodOptional<z.ZodString>;
4713
+ pricePerUnit: z.ZodOptional<z.ZodNumber>;
4608
4714
  totalAmount: z.ZodOptional<z.ZodNumber>;
4609
4715
  buyer: z.ZodOptional<z.ZodString>;
4610
4716
  fieldId: z.ZodOptional<z.ZodString>;
4611
4717
  harvestId: z.ZodOptional<z.ZodString>;
4612
4718
  }, "strip", z.ZodTypeAny, {
4613
4719
  date: string;
4614
- crop: string;
4615
- quantity: number;
4616
- unit: string;
4617
- pricePerUnit: number;
4720
+ description?: string | undefined;
4721
+ crop?: string | undefined;
4722
+ quantity?: number | undefined;
4723
+ unit?: string | undefined;
4618
4724
  fieldId?: string | undefined;
4725
+ pricePerUnit?: number | undefined;
4619
4726
  totalAmount?: number | undefined;
4620
4727
  buyer?: string | undefined;
4621
4728
  harvestId?: string | undefined;
4622
4729
  }, {
4623
4730
  date: string;
4624
- crop: string;
4625
- quantity: number;
4626
- unit: string;
4627
- pricePerUnit: number;
4731
+ description?: string | undefined;
4732
+ crop?: string | undefined;
4733
+ quantity?: number | undefined;
4734
+ unit?: string | undefined;
4628
4735
  fieldId?: string | undefined;
4736
+ pricePerUnit?: number | undefined;
4737
+ totalAmount?: number | undefined;
4738
+ buyer?: string | undefined;
4739
+ harvestId?: string | undefined;
4740
+ }>, {
4741
+ date: string;
4742
+ description?: string | undefined;
4743
+ crop?: string | undefined;
4744
+ quantity?: number | undefined;
4745
+ unit?: string | undefined;
4746
+ fieldId?: string | undefined;
4747
+ pricePerUnit?: number | undefined;
4748
+ totalAmount?: number | undefined;
4749
+ buyer?: string | undefined;
4750
+ harvestId?: string | undefined;
4751
+ }, {
4752
+ date: string;
4753
+ description?: string | undefined;
4754
+ crop?: string | undefined;
4755
+ quantity?: number | undefined;
4756
+ unit?: string | undefined;
4757
+ fieldId?: string | undefined;
4758
+ pricePerUnit?: number | undefined;
4629
4759
  totalAmount?: number | undefined;
4630
4760
  buyer?: string | undefined;
4631
4761
  harvestId?: string | undefined;
@@ -4634,11 +4764,12 @@ export declare const financeRouter: {
4634
4764
  type: "revenues";
4635
4765
  attributes: {
4636
4766
  date: string;
4637
- crop: string;
4638
- quantity: number;
4639
- unit: string;
4640
- pricePerUnit: number;
4767
+ description?: string | undefined;
4768
+ crop?: string | undefined;
4769
+ quantity?: number | undefined;
4770
+ unit?: string | undefined;
4641
4771
  fieldId?: string | undefined;
4772
+ pricePerUnit?: number | undefined;
4642
4773
  totalAmount?: number | undefined;
4643
4774
  buyer?: string | undefined;
4644
4775
  harvestId?: string | undefined;
@@ -4647,11 +4778,12 @@ export declare const financeRouter: {
4647
4778
  type: "revenues";
4648
4779
  attributes: {
4649
4780
  date: string;
4650
- crop: string;
4651
- quantity: number;
4652
- unit: string;
4653
- pricePerUnit: number;
4781
+ description?: string | undefined;
4782
+ crop?: string | undefined;
4783
+ quantity?: number | undefined;
4784
+ unit?: string | undefined;
4654
4785
  fieldId?: string | undefined;
4786
+ pricePerUnit?: number | undefined;
4655
4787
  totalAmount?: number | undefined;
4656
4788
  buyer?: string | undefined;
4657
4789
  harvestId?: string | undefined;
@@ -4662,11 +4794,12 @@ export declare const financeRouter: {
4662
4794
  type: "revenues";
4663
4795
  attributes: {
4664
4796
  date: string;
4665
- crop: string;
4666
- quantity: number;
4667
- unit: string;
4668
- pricePerUnit: number;
4797
+ description?: string | undefined;
4798
+ crop?: string | undefined;
4799
+ quantity?: number | undefined;
4800
+ unit?: string | undefined;
4669
4801
  fieldId?: string | undefined;
4802
+ pricePerUnit?: number | undefined;
4670
4803
  totalAmount?: number | undefined;
4671
4804
  buyer?: string | undefined;
4672
4805
  harvestId?: string | undefined;
@@ -4677,11 +4810,12 @@ export declare const financeRouter: {
4677
4810
  type: "revenues";
4678
4811
  attributes: {
4679
4812
  date: string;
4680
- crop: string;
4681
- quantity: number;
4682
- unit: string;
4683
- pricePerUnit: number;
4813
+ description?: string | undefined;
4814
+ crop?: string | undefined;
4815
+ quantity?: number | undefined;
4816
+ unit?: string | undefined;
4684
4817
  fieldId?: string | undefined;
4818
+ pricePerUnit?: number | undefined;
4685
4819
  totalAmount?: number | undefined;
4686
4820
  buyer?: string | undefined;
4687
4821
  harvestId?: string | undefined;
@@ -4705,6 +4839,9 @@ export declare const financeRouter: {
4705
4839
  fieldId: z.ZodNullable<z.ZodString>;
4706
4840
  fieldName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4707
4841
  harvestId: z.ZodNullable<z.ZodString>;
4842
+ invoiceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4843
+ ledgerSourceType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4844
+ ledgerSourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4708
4845
  createdById: z.ZodNullable<z.ZodString>;
4709
4846
  createdByName: z.ZodNullable<z.ZodString>;
4710
4847
  } & {
@@ -4725,6 +4862,9 @@ export declare const financeRouter: {
4725
4862
  buyer: string | null;
4726
4863
  harvestId: string | null;
4727
4864
  fieldName?: string | null | undefined;
4865
+ ledgerSourceType?: string | null | undefined;
4866
+ ledgerSourceId?: string | null | undefined;
4867
+ invoiceId?: string | null | undefined;
4728
4868
  }, {
4729
4869
  date: string;
4730
4870
  createdAt: string;
@@ -4740,6 +4880,9 @@ export declare const financeRouter: {
4740
4880
  buyer: string | null;
4741
4881
  harvestId: string | null;
4742
4882
  fieldName?: string | null | undefined;
4883
+ ledgerSourceType?: string | null | undefined;
4884
+ ledgerSourceId?: string | null | undefined;
4885
+ invoiceId?: string | null | undefined;
4743
4886
  }>;
4744
4887
  relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4745
4888
  links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -4762,6 +4905,9 @@ export declare const financeRouter: {
4762
4905
  buyer: string | null;
4763
4906
  harvestId: string | null;
4764
4907
  fieldName?: string | null | undefined;
4908
+ ledgerSourceType?: string | null | undefined;
4909
+ ledgerSourceId?: string | null | undefined;
4910
+ invoiceId?: string | null | undefined;
4765
4911
  };
4766
4912
  relationships?: Record<string, unknown> | undefined;
4767
4913
  links?: Record<string, string> | undefined;
@@ -4784,6 +4930,9 @@ export declare const financeRouter: {
4784
4930
  buyer: string | null;
4785
4931
  harvestId: string | null;
4786
4932
  fieldName?: string | null | undefined;
4933
+ ledgerSourceType?: string | null | undefined;
4934
+ ledgerSourceId?: string | null | undefined;
4935
+ invoiceId?: string | null | undefined;
4787
4936
  };
4788
4937
  relationships?: Record<string, unknown> | undefined;
4789
4938
  links?: Record<string, string> | undefined;
@@ -4832,6 +4981,9 @@ export declare const financeRouter: {
4832
4981
  buyer: string | null;
4833
4982
  harvestId: string | null;
4834
4983
  fieldName?: string | null | undefined;
4984
+ ledgerSourceType?: string | null | undefined;
4985
+ ledgerSourceId?: string | null | undefined;
4986
+ invoiceId?: string | null | undefined;
4835
4987
  };
4836
4988
  relationships?: Record<string, unknown> | undefined;
4837
4989
  links?: Record<string, string> | undefined;
@@ -4866,6 +5018,9 @@ export declare const financeRouter: {
4866
5018
  buyer: string | null;
4867
5019
  harvestId: string | null;
4868
5020
  fieldName?: string | null | undefined;
5021
+ ledgerSourceType?: string | null | undefined;
5022
+ ledgerSourceId?: string | null | undefined;
5023
+ invoiceId?: string | null | undefined;
4869
5024
  };
4870
5025
  relationships?: Record<string, unknown> | undefined;
4871
5026
  links?: Record<string, string> | undefined;
@@ -5282,6 +5437,9 @@ export declare const financeRouter: {
5282
5437
  fieldId: z.ZodNullable<z.ZodString>;
5283
5438
  fieldName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5284
5439
  harvestId: z.ZodNullable<z.ZodString>;
5440
+ invoiceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5441
+ ledgerSourceType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5442
+ ledgerSourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5285
5443
  createdById: z.ZodNullable<z.ZodString>;
5286
5444
  createdByName: z.ZodNullable<z.ZodString>;
5287
5445
  } & {
@@ -5302,6 +5460,9 @@ export declare const financeRouter: {
5302
5460
  buyer: string | null;
5303
5461
  harvestId: string | null;
5304
5462
  fieldName?: string | null | undefined;
5463
+ ledgerSourceType?: string | null | undefined;
5464
+ ledgerSourceId?: string | null | undefined;
5465
+ invoiceId?: string | null | undefined;
5305
5466
  }, {
5306
5467
  date: string;
5307
5468
  createdAt: string;
@@ -5317,6 +5478,9 @@ export declare const financeRouter: {
5317
5478
  buyer: string | null;
5318
5479
  harvestId: string | null;
5319
5480
  fieldName?: string | null | undefined;
5481
+ ledgerSourceType?: string | null | undefined;
5482
+ ledgerSourceId?: string | null | undefined;
5483
+ invoiceId?: string | null | undefined;
5320
5484
  }>;
5321
5485
  links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
5322
5486
  meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -5397,6 +5561,9 @@ export declare const financeRouter: {
5397
5561
  buyer: string | null;
5398
5562
  harvestId: string | null;
5399
5563
  fieldName?: string | null | undefined;
5564
+ ledgerSourceType?: string | null | undefined;
5565
+ ledgerSourceId?: string | null | undefined;
5566
+ invoiceId?: string | null | undefined;
5400
5567
  };
5401
5568
  relationships?: {
5402
5569
  harvest?: {
@@ -5430,6 +5597,9 @@ export declare const financeRouter: {
5430
5597
  buyer: string | null;
5431
5598
  harvestId: string | null;
5432
5599
  fieldName?: string | null | undefined;
5600
+ ledgerSourceType?: string | null | undefined;
5601
+ ledgerSourceId?: string | null | undefined;
5602
+ invoiceId?: string | null | undefined;
5433
5603
  };
5434
5604
  relationships?: {
5435
5605
  harvest?: {
@@ -5489,6 +5659,9 @@ export declare const financeRouter: {
5489
5659
  buyer: string | null;
5490
5660
  harvestId: string | null;
5491
5661
  fieldName?: string | null | undefined;
5662
+ ledgerSourceType?: string | null | undefined;
5663
+ ledgerSourceId?: string | null | undefined;
5664
+ invoiceId?: string | null | undefined;
5492
5665
  };
5493
5666
  relationships?: {
5494
5667
  harvest?: {
@@ -5534,6 +5707,9 @@ export declare const financeRouter: {
5534
5707
  buyer: string | null;
5535
5708
  harvestId: string | null;
5536
5709
  fieldName?: string | null | undefined;
5710
+ ledgerSourceType?: string | null | undefined;
5711
+ ledgerSourceId?: string | null | undefined;
5712
+ invoiceId?: string | null | undefined;
5537
5713
  };
5538
5714
  relationships?: {
5539
5715
  harvest?: {
@@ -5871,6 +6047,9 @@ export declare const financeRouter: {
5871
6047
  fieldId: z.ZodNullable<z.ZodString>;
5872
6048
  fieldName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5873
6049
  harvestId: z.ZodNullable<z.ZodString>;
6050
+ invoiceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6051
+ ledgerSourceType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6052
+ ledgerSourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5874
6053
  createdById: z.ZodNullable<z.ZodString>;
5875
6054
  createdByName: z.ZodNullable<z.ZodString>;
5876
6055
  } & {
@@ -5891,6 +6070,9 @@ export declare const financeRouter: {
5891
6070
  buyer: string | null;
5892
6071
  harvestId: string | null;
5893
6072
  fieldName?: string | null | undefined;
6073
+ ledgerSourceType?: string | null | undefined;
6074
+ ledgerSourceId?: string | null | undefined;
6075
+ invoiceId?: string | null | undefined;
5894
6076
  }, {
5895
6077
  date: string;
5896
6078
  createdAt: string;
@@ -5906,6 +6088,9 @@ export declare const financeRouter: {
5906
6088
  buyer: string | null;
5907
6089
  harvestId: string | null;
5908
6090
  fieldName?: string | null | undefined;
6091
+ ledgerSourceType?: string | null | undefined;
6092
+ ledgerSourceId?: string | null | undefined;
6093
+ invoiceId?: string | null | undefined;
5909
6094
  }>;
5910
6095
  relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5911
6096
  links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -5928,6 +6113,9 @@ export declare const financeRouter: {
5928
6113
  buyer: string | null;
5929
6114
  harvestId: string | null;
5930
6115
  fieldName?: string | null | undefined;
6116
+ ledgerSourceType?: string | null | undefined;
6117
+ ledgerSourceId?: string | null | undefined;
6118
+ invoiceId?: string | null | undefined;
5931
6119
  };
5932
6120
  relationships?: Record<string, unknown> | undefined;
5933
6121
  links?: Record<string, string> | undefined;
@@ -5950,6 +6138,9 @@ export declare const financeRouter: {
5950
6138
  buyer: string | null;
5951
6139
  harvestId: string | null;
5952
6140
  fieldName?: string | null | undefined;
6141
+ ledgerSourceType?: string | null | undefined;
6142
+ ledgerSourceId?: string | null | undefined;
6143
+ invoiceId?: string | null | undefined;
5953
6144
  };
5954
6145
  relationships?: Record<string, unknown> | undefined;
5955
6146
  links?: Record<string, string> | undefined;
@@ -5998,6 +6189,9 @@ export declare const financeRouter: {
5998
6189
  buyer: string | null;
5999
6190
  harvestId: string | null;
6000
6191
  fieldName?: string | null | undefined;
6192
+ ledgerSourceType?: string | null | undefined;
6193
+ ledgerSourceId?: string | null | undefined;
6194
+ invoiceId?: string | null | undefined;
6001
6195
  };
6002
6196
  relationships?: Record<string, unknown> | undefined;
6003
6197
  links?: Record<string, string> | undefined;
@@ -6032,6 +6226,9 @@ export declare const financeRouter: {
6032
6226
  buyer: string | null;
6033
6227
  harvestId: string | null;
6034
6228
  fieldName?: string | null | undefined;
6229
+ ledgerSourceType?: string | null | undefined;
6230
+ ledgerSourceId?: string | null | undefined;
6231
+ invoiceId?: string | null | undefined;
6035
6232
  };
6036
6233
  relationships?: Record<string, unknown> | undefined;
6037
6234
  links?: Record<string, string> | undefined;