@deepintel-ltd/farmpro-contracts 1.36.1 → 1.36.2

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.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"orchard-plan.routes.d.ts","sourceRoot":"","sources":["../../src/routes/orchard-plan.routes.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;YAWxB,gFAAgF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAYpF,CAAC"}
@@ -0,0 +1,29 @@
1
+ import { initContract } from '@ts-rest/core';
2
+ import { z } from 'zod';
3
+ import { orchardPlanResponseSchema } from '../schemas/orchard-plan.schemas';
4
+ const c = initContract();
5
+ const message = z.object({ message: z.string() });
6
+ export const orchardPlanRouter = c.router({
7
+ /**
8
+ * The orchard plan for a tree crop (cashew): the tree's age and stage, this month's jobs and what to scout,
9
+ * fertilizer per tree and for the orchard with its two feed windows, and the season's yield against
10
+ * benchmarks. Deterministic; does not call a model.
11
+ */
12
+ forField: {
13
+ method: 'GET',
14
+ path: '/farms/:farmId/fields/:fieldId/orchard-plan',
15
+ pathParams: z.object({ farmId: z.string().min(1), fieldId: z.string().min(1) }),
16
+ query: z.object({
17
+ /** Client calendar date (YYYY-MM-DD), so the month matches the farmer's day. */
18
+ today: z
19
+ .string()
20
+ .regex(/^\d{4}-\d{2}-\d{2}/)
21
+ .optional(),
22
+ }),
23
+ responses: {
24
+ 200: orchardPlanResponseSchema,
25
+ 404: message,
26
+ },
27
+ summary: 'Orchard plan for a tree crop field, by tree age and month',
28
+ },
29
+ });
@@ -314,8 +314,8 @@ export declare const produceListingSchema: z.ZodObject<{
314
314
  unit: string;
315
315
  groupId: string | null;
316
316
  unitPrice: number;
317
- productType: string;
318
317
  grade: string | null;
318
+ productType: string;
319
319
  availableFrom: string | null;
320
320
  availableTo: string | null;
321
321
  slug: string;
@@ -333,8 +333,8 @@ export declare const produceListingSchema: z.ZodObject<{
333
333
  unit: string;
334
334
  groupId: string | null;
335
335
  unitPrice: number;
336
- productType: string;
337
336
  grade: string | null;
337
+ productType: string;
338
338
  availableFrom: string | null;
339
339
  availableTo: string | null;
340
340
  slug: string;
@@ -398,8 +398,8 @@ export declare const produceListingUpdateSchema: z.ZodObject<{
398
398
  unit?: string | undefined;
399
399
  groupId?: string | null | undefined;
400
400
  unitPrice?: number | undefined;
401
- productType?: string | undefined;
402
401
  grade?: string | null | undefined;
402
+ productType?: string | undefined;
403
403
  availableFrom?: string | null | undefined;
404
404
  availableTo?: string | null | undefined;
405
405
  }, {
@@ -410,8 +410,8 @@ export declare const produceListingUpdateSchema: z.ZodObject<{
410
410
  unit?: string | undefined;
411
411
  groupId?: string | null | undefined;
412
412
  unitPrice?: number | undefined;
413
- productType?: string | undefined;
414
413
  grade?: string | null | undefined;
414
+ productType?: string | undefined;
415
415
  availableFrom?: string | null | undefined;
416
416
  availableTo?: string | null | undefined;
417
417
  }>;
@@ -2222,8 +2222,8 @@ export declare const poultryRouter: {
2222
2222
  unit: string;
2223
2223
  groupId: string | null;
2224
2224
  unitPrice: number;
2225
- productType: string;
2226
2225
  grade: string | null;
2226
+ productType: string;
2227
2227
  availableFrom: string | null;
2228
2228
  availableTo: string | null;
2229
2229
  slug: string;
@@ -2241,8 +2241,8 @@ export declare const poultryRouter: {
2241
2241
  unit: string;
2242
2242
  groupId: string | null;
2243
2243
  unitPrice: number;
2244
- productType: string;
2245
2244
  grade: string | null;
2245
+ productType: string;
2246
2246
  availableFrom: string | null;
2247
2247
  availableTo: string | null;
2248
2248
  slug: string;
@@ -2262,8 +2262,8 @@ export declare const poultryRouter: {
2262
2262
  unit: string;
2263
2263
  groupId: string | null;
2264
2264
  unitPrice: number;
2265
- productType: string;
2266
2265
  grade: string | null;
2266
+ productType: string;
2267
2267
  availableFrom: string | null;
2268
2268
  availableTo: string | null;
2269
2269
  slug: string;
@@ -2283,8 +2283,8 @@ export declare const poultryRouter: {
2283
2283
  unit: string;
2284
2284
  groupId: string | null;
2285
2285
  unitPrice: number;
2286
- productType: string;
2287
2286
  grade: string | null;
2287
+ productType: string;
2288
2288
  availableFrom: string | null;
2289
2289
  availableTo: string | null;
2290
2290
  slug: string;
@@ -2555,8 +2555,8 @@ export declare const poultryRouter: {
2555
2555
  unit: string;
2556
2556
  groupId: string | null;
2557
2557
  unitPrice: number;
2558
- productType: string;
2559
2558
  grade: string | null;
2559
+ productType: string;
2560
2560
  availableFrom: string | null;
2561
2561
  availableTo: string | null;
2562
2562
  slug: string;
@@ -2574,8 +2574,8 @@ export declare const poultryRouter: {
2574
2574
  unit: string;
2575
2575
  groupId: string | null;
2576
2576
  unitPrice: number;
2577
- productType: string;
2578
2577
  grade: string | null;
2578
+ productType: string;
2579
2579
  availableFrom: string | null;
2580
2580
  availableTo: string | null;
2581
2581
  slug: string;
@@ -2595,8 +2595,8 @@ export declare const poultryRouter: {
2595
2595
  unit: string;
2596
2596
  groupId: string | null;
2597
2597
  unitPrice: number;
2598
- productType: string;
2599
2598
  grade: string | null;
2599
+ productType: string;
2600
2600
  availableFrom: string | null;
2601
2601
  availableTo: string | null;
2602
2602
  slug: string;
@@ -2616,8 +2616,8 @@ export declare const poultryRouter: {
2616
2616
  unit: string;
2617
2617
  groupId: string | null;
2618
2618
  unitPrice: number;
2619
- productType: string;
2620
2619
  grade: string | null;
2620
+ productType: string;
2621
2621
  availableFrom: string | null;
2622
2622
  availableTo: string | null;
2623
2623
  slug: string;
@@ -2657,8 +2657,8 @@ export declare const poultryRouter: {
2657
2657
  unit: string;
2658
2658
  groupId: string | null;
2659
2659
  unitPrice: number;
2660
- productType: string;
2661
2660
  grade: string | null;
2661
+ productType: string;
2662
2662
  availableFrom: string | null;
2663
2663
  availableTo: string | null;
2664
2664
  slug: string;
@@ -2676,8 +2676,8 @@ export declare const poultryRouter: {
2676
2676
  unit: string;
2677
2677
  groupId: string | null;
2678
2678
  unitPrice: number;
2679
- productType: string;
2680
2679
  grade: string | null;
2680
+ productType: string;
2681
2681
  availableFrom: string | null;
2682
2682
  availableTo: string | null;
2683
2683
  slug: string;
@@ -2697,8 +2697,8 @@ export declare const poultryRouter: {
2697
2697
  unit: string;
2698
2698
  groupId: string | null;
2699
2699
  unitPrice: number;
2700
- productType: string;
2701
2700
  grade: string | null;
2701
+ productType: string;
2702
2702
  availableFrom: string | null;
2703
2703
  availableTo: string | null;
2704
2704
  slug: string;
@@ -2718,8 +2718,8 @@ export declare const poultryRouter: {
2718
2718
  unit: string;
2719
2719
  groupId: string | null;
2720
2720
  unitPrice: number;
2721
- productType: string;
2722
2721
  grade: string | null;
2722
+ productType: string;
2723
2723
  availableFrom: string | null;
2724
2724
  availableTo: string | null;
2725
2725
  slug: string;
@@ -3032,8 +3032,8 @@ export declare const poultryRouter: {
3032
3032
  unit?: string | undefined;
3033
3033
  groupId?: string | null | undefined;
3034
3034
  unitPrice?: number | undefined;
3035
- productType?: string | undefined;
3036
3035
  grade?: string | null | undefined;
3036
+ productType?: string | undefined;
3037
3037
  availableFrom?: string | null | undefined;
3038
3038
  availableTo?: string | null | undefined;
3039
3039
  }, {
@@ -3044,8 +3044,8 @@ export declare const poultryRouter: {
3044
3044
  unit?: string | undefined;
3045
3045
  groupId?: string | null | undefined;
3046
3046
  unitPrice?: number | undefined;
3047
- productType?: string | undefined;
3048
3047
  grade?: string | null | undefined;
3048
+ productType?: string | undefined;
3049
3049
  availableFrom?: string | null | undefined;
3050
3050
  availableTo?: string | null | undefined;
3051
3051
  }>;
@@ -3083,8 +3083,8 @@ export declare const poultryRouter: {
3083
3083
  unit: string;
3084
3084
  groupId: string | null;
3085
3085
  unitPrice: number;
3086
- productType: string;
3087
3086
  grade: string | null;
3087
+ productType: string;
3088
3088
  availableFrom: string | null;
3089
3089
  availableTo: string | null;
3090
3090
  slug: string;
@@ -3102,8 +3102,8 @@ export declare const poultryRouter: {
3102
3102
  unit: string;
3103
3103
  groupId: string | null;
3104
3104
  unitPrice: number;
3105
- productType: string;
3106
3105
  grade: string | null;
3106
+ productType: string;
3107
3107
  availableFrom: string | null;
3108
3108
  availableTo: string | null;
3109
3109
  slug: string;
@@ -3123,8 +3123,8 @@ export declare const poultryRouter: {
3123
3123
  unit: string;
3124
3124
  groupId: string | null;
3125
3125
  unitPrice: number;
3126
- productType: string;
3127
3126
  grade: string | null;
3127
+ productType: string;
3128
3128
  availableFrom: string | null;
3129
3129
  availableTo: string | null;
3130
3130
  slug: string;
@@ -3144,8 +3144,8 @@ export declare const poultryRouter: {
3144
3144
  unit: string;
3145
3145
  groupId: string | null;
3146
3146
  unitPrice: number;
3147
- productType: string;
3148
3147
  grade: string | null;
3148
+ productType: string;
3149
3149
  availableFrom: string | null;
3150
3150
  availableTo: string | null;
3151
3151
  slug: string;
@@ -3473,8 +3473,8 @@ export declare const poultryRouter: {
3473
3473
  unit: string;
3474
3474
  groupId: string | null;
3475
3475
  unitPrice: number;
3476
- productType: string;
3477
3476
  grade: string | null;
3477
+ productType: string;
3478
3478
  availableFrom: string | null;
3479
3479
  availableTo: string | null;
3480
3480
  slug: string;
@@ -3492,8 +3492,8 @@ export declare const poultryRouter: {
3492
3492
  unit: string;
3493
3493
  groupId: string | null;
3494
3494
  unitPrice: number;
3495
- productType: string;
3496
3495
  grade: string | null;
3496
+ productType: string;
3497
3497
  availableFrom: string | null;
3498
3498
  availableTo: string | null;
3499
3499
  slug: string;
@@ -3513,8 +3513,8 @@ export declare const poultryRouter: {
3513
3513
  unit: string;
3514
3514
  groupId: string | null;
3515
3515
  unitPrice: number;
3516
- productType: string;
3517
3516
  grade: string | null;
3517
+ productType: string;
3518
3518
  availableFrom: string | null;
3519
3519
  availableTo: string | null;
3520
3520
  slug: string;
@@ -3534,8 +3534,8 @@ export declare const poultryRouter: {
3534
3534
  unit: string;
3535
3535
  groupId: string | null;
3536
3536
  unitPrice: number;
3537
- productType: string;
3538
3537
  grade: string | null;
3538
+ productType: string;
3539
3539
  availableFrom: string | null;
3540
3540
  availableTo: string | null;
3541
3541
  slug: string;
@@ -59,6 +59,7 @@ export declare const tradeCashEventsRouter: {
59
59
  funderId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
60
60
  funderName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
61
61
  advanceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
62
+ fromSourcing: z.ZodOptional<z.ZodBoolean>;
62
63
  voidedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
63
64
  voidedById: z.ZodOptional<z.ZodNullable<z.ZodString>>;
64
65
  voidReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -85,6 +86,7 @@ export declare const tradeCashEventsRouter: {
85
86
  funderId?: string | null | undefined;
86
87
  funderName?: string | null | undefined;
87
88
  advanceId?: string | null | undefined;
89
+ fromSourcing?: boolean | undefined;
88
90
  voidedAt?: string | null | undefined;
89
91
  voidedById?: string | null | undefined;
90
92
  voidReason?: string | null | undefined;
@@ -108,6 +110,7 @@ export declare const tradeCashEventsRouter: {
108
110
  funderId?: string | null | undefined;
109
111
  funderName?: string | null | undefined;
110
112
  advanceId?: string | null | undefined;
113
+ fromSourcing?: boolean | undefined;
111
114
  voidedAt?: string | null | undefined;
112
115
  voidedById?: string | null | undefined;
113
116
  voidReason?: string | null | undefined;
@@ -138,6 +141,7 @@ export declare const tradeCashEventsRouter: {
138
141
  funderId?: string | null | undefined;
139
142
  funderName?: string | null | undefined;
140
143
  advanceId?: string | null | undefined;
144
+ fromSourcing?: boolean | undefined;
141
145
  voidedAt?: string | null | undefined;
142
146
  voidedById?: string | null | undefined;
143
147
  voidReason?: string | null | undefined;
@@ -168,6 +172,7 @@ export declare const tradeCashEventsRouter: {
168
172
  funderId?: string | null | undefined;
169
173
  funderName?: string | null | undefined;
170
174
  advanceId?: string | null | undefined;
175
+ fromSourcing?: boolean | undefined;
171
176
  voidedAt?: string | null | undefined;
172
177
  voidedById?: string | null | undefined;
173
178
  voidReason?: string | null | undefined;
@@ -224,6 +229,7 @@ export declare const tradeCashEventsRouter: {
224
229
  funderId?: string | null | undefined;
225
230
  funderName?: string | null | undefined;
226
231
  advanceId?: string | null | undefined;
232
+ fromSourcing?: boolean | undefined;
227
233
  voidedAt?: string | null | undefined;
228
234
  voidedById?: string | null | undefined;
229
235
  voidReason?: string | null | undefined;
@@ -266,6 +272,7 @@ export declare const tradeCashEventsRouter: {
266
272
  funderId?: string | null | undefined;
267
273
  funderName?: string | null | undefined;
268
274
  advanceId?: string | null | undefined;
275
+ fromSourcing?: boolean | undefined;
269
276
  voidedAt?: string | null | undefined;
270
277
  voidedById?: string | null | undefined;
271
278
  voidReason?: string | null | undefined;
@@ -587,6 +594,7 @@ export declare const tradeCashEventsRouter: {
587
594
  funderId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
588
595
  funderName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
589
596
  advanceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
597
+ fromSourcing: z.ZodOptional<z.ZodBoolean>;
590
598
  }, "strip", z.ZodTypeAny, {
591
599
  type: "capital_in" | "capital_out" | "deal_allocate" | "deal_return" | "deal_cost_adjustment" | "commission_payout" | "supplier_payment" | "buyer_receipt" | "advance_disburse" | "advance_handoff" | "advance_settle" | "advance_return" | "advance_writeoff";
592
600
  currency: string;
@@ -604,6 +612,7 @@ export declare const tradeCashEventsRouter: {
604
612
  funderId?: string | null | undefined;
605
613
  funderName?: string | null | undefined;
606
614
  advanceId?: string | null | undefined;
615
+ fromSourcing?: boolean | undefined;
607
616
  }, {
608
617
  type: "capital_in" | "capital_out" | "deal_allocate" | "deal_return" | "deal_cost_adjustment" | "commission_payout" | "supplier_payment" | "buyer_receipt" | "advance_disburse" | "advance_handoff" | "advance_settle" | "advance_return" | "advance_writeoff";
609
618
  occurredAt: string;
@@ -621,6 +630,7 @@ export declare const tradeCashEventsRouter: {
621
630
  funderId?: string | null | undefined;
622
631
  funderName?: string | null | undefined;
623
632
  advanceId?: string | null | undefined;
633
+ fromSourcing?: boolean | undefined;
624
634
  }>;
625
635
  }, "strip", z.ZodTypeAny, {
626
636
  type: "trade-cash-events";
@@ -641,6 +651,7 @@ export declare const tradeCashEventsRouter: {
641
651
  funderId?: string | null | undefined;
642
652
  funderName?: string | null | undefined;
643
653
  advanceId?: string | null | undefined;
654
+ fromSourcing?: boolean | undefined;
644
655
  };
645
656
  }, {
646
657
  type: "trade-cash-events";
@@ -661,6 +672,7 @@ export declare const tradeCashEventsRouter: {
661
672
  funderId?: string | null | undefined;
662
673
  funderName?: string | null | undefined;
663
674
  advanceId?: string | null | undefined;
675
+ fromSourcing?: boolean | undefined;
664
676
  };
665
677
  }>;
666
678
  }, "strip", z.ZodTypeAny, {
@@ -683,6 +695,7 @@ export declare const tradeCashEventsRouter: {
683
695
  funderId?: string | null | undefined;
684
696
  funderName?: string | null | undefined;
685
697
  advanceId?: string | null | undefined;
698
+ fromSourcing?: boolean | undefined;
686
699
  };
687
700
  };
688
701
  }, {
@@ -705,6 +718,7 @@ export declare const tradeCashEventsRouter: {
705
718
  funderId?: string | null | undefined;
706
719
  funderName?: string | null | undefined;
707
720
  advanceId?: string | null | undefined;
721
+ fromSourcing?: boolean | undefined;
708
722
  };
709
723
  };
710
724
  }>;
@@ -732,6 +746,7 @@ export declare const tradeCashEventsRouter: {
732
746
  funderId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
733
747
  funderName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
734
748
  advanceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
749
+ fromSourcing: z.ZodOptional<z.ZodBoolean>;
735
750
  voidedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
736
751
  voidedById: z.ZodOptional<z.ZodNullable<z.ZodString>>;
737
752
  voidReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -758,6 +773,7 @@ export declare const tradeCashEventsRouter: {
758
773
  funderId?: string | null | undefined;
759
774
  funderName?: string | null | undefined;
760
775
  advanceId?: string | null | undefined;
776
+ fromSourcing?: boolean | undefined;
761
777
  voidedAt?: string | null | undefined;
762
778
  voidedById?: string | null | undefined;
763
779
  voidReason?: string | null | undefined;
@@ -781,6 +797,7 @@ export declare const tradeCashEventsRouter: {
781
797
  funderId?: string | null | undefined;
782
798
  funderName?: string | null | undefined;
783
799
  advanceId?: string | null | undefined;
800
+ fromSourcing?: boolean | undefined;
784
801
  voidedAt?: string | null | undefined;
785
802
  voidedById?: string | null | undefined;
786
803
  voidReason?: string | null | undefined;
@@ -811,6 +828,7 @@ export declare const tradeCashEventsRouter: {
811
828
  funderId?: string | null | undefined;
812
829
  funderName?: string | null | undefined;
813
830
  advanceId?: string | null | undefined;
831
+ fromSourcing?: boolean | undefined;
814
832
  voidedAt?: string | null | undefined;
815
833
  voidedById?: string | null | undefined;
816
834
  voidReason?: string | null | undefined;
@@ -841,6 +859,7 @@ export declare const tradeCashEventsRouter: {
841
859
  funderId?: string | null | undefined;
842
860
  funderName?: string | null | undefined;
843
861
  advanceId?: string | null | undefined;
862
+ fromSourcing?: boolean | undefined;
844
863
  voidedAt?: string | null | undefined;
845
864
  voidedById?: string | null | undefined;
846
865
  voidReason?: string | null | undefined;
@@ -897,6 +916,7 @@ export declare const tradeCashEventsRouter: {
897
916
  funderId?: string | null | undefined;
898
917
  funderName?: string | null | undefined;
899
918
  advanceId?: string | null | undefined;
919
+ fromSourcing?: boolean | undefined;
900
920
  voidedAt?: string | null | undefined;
901
921
  voidedById?: string | null | undefined;
902
922
  voidReason?: string | null | undefined;
@@ -939,6 +959,7 @@ export declare const tradeCashEventsRouter: {
939
959
  funderId?: string | null | undefined;
940
960
  funderName?: string | null | undefined;
941
961
  advanceId?: string | null | undefined;
962
+ fromSourcing?: boolean | undefined;
942
963
  voidedAt?: string | null | undefined;
943
964
  voidedById?: string | null | undefined;
944
965
  voidReason?: string | null | undefined;
@@ -1394,6 +1415,7 @@ export declare const tradeCashEventsRouter: {
1394
1415
  funderId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1395
1416
  funderName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1396
1417
  advanceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1418
+ fromSourcing: z.ZodOptional<z.ZodBoolean>;
1397
1419
  voidedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1398
1420
  voidedById: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1399
1421
  voidReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1420,6 +1442,7 @@ export declare const tradeCashEventsRouter: {
1420
1442
  funderId?: string | null | undefined;
1421
1443
  funderName?: string | null | undefined;
1422
1444
  advanceId?: string | null | undefined;
1445
+ fromSourcing?: boolean | undefined;
1423
1446
  voidedAt?: string | null | undefined;
1424
1447
  voidedById?: string | null | undefined;
1425
1448
  voidReason?: string | null | undefined;
@@ -1443,6 +1466,7 @@ export declare const tradeCashEventsRouter: {
1443
1466
  funderId?: string | null | undefined;
1444
1467
  funderName?: string | null | undefined;
1445
1468
  advanceId?: string | null | undefined;
1469
+ fromSourcing?: boolean | undefined;
1446
1470
  voidedAt?: string | null | undefined;
1447
1471
  voidedById?: string | null | undefined;
1448
1472
  voidReason?: string | null | undefined;
@@ -1473,6 +1497,7 @@ export declare const tradeCashEventsRouter: {
1473
1497
  funderId?: string | null | undefined;
1474
1498
  funderName?: string | null | undefined;
1475
1499
  advanceId?: string | null | undefined;
1500
+ fromSourcing?: boolean | undefined;
1476
1501
  voidedAt?: string | null | undefined;
1477
1502
  voidedById?: string | null | undefined;
1478
1503
  voidReason?: string | null | undefined;
@@ -1503,6 +1528,7 @@ export declare const tradeCashEventsRouter: {
1503
1528
  funderId?: string | null | undefined;
1504
1529
  funderName?: string | null | undefined;
1505
1530
  advanceId?: string | null | undefined;
1531
+ fromSourcing?: boolean | undefined;
1506
1532
  voidedAt?: string | null | undefined;
1507
1533
  voidedById?: string | null | undefined;
1508
1534
  voidReason?: string | null | undefined;
@@ -1559,6 +1585,7 @@ export declare const tradeCashEventsRouter: {
1559
1585
  funderId?: string | null | undefined;
1560
1586
  funderName?: string | null | undefined;
1561
1587
  advanceId?: string | null | undefined;
1588
+ fromSourcing?: boolean | undefined;
1562
1589
  voidedAt?: string | null | undefined;
1563
1590
  voidedById?: string | null | undefined;
1564
1591
  voidReason?: string | null | undefined;
@@ -1601,6 +1628,7 @@ export declare const tradeCashEventsRouter: {
1601
1628
  funderId?: string | null | undefined;
1602
1629
  funderName?: string | null | undefined;
1603
1630
  advanceId?: string | null | undefined;
1631
+ fromSourcing?: boolean | undefined;
1604
1632
  voidedAt?: string | null | undefined;
1605
1633
  voidedById?: string | null | undefined;
1606
1634
  voidReason?: string | null | undefined;
@@ -3506,12 +3534,12 @@ export declare const tradeCashEventsRouter: {
3506
3534
  remaining: number;
3507
3535
  amount: number;
3508
3536
  overdue: boolean;
3537
+ ageDays: number;
3509
3538
  funderType: "investor" | "staff" | "company" | "unattributed";
3510
3539
  advanceId: string;
3511
3540
  holderType: "other" | "supplier" | "staff";
3512
3541
  holderName: string;
3513
3542
  openedAt: string;
3514
- ageDays: number;
3515
3543
  funderId?: string | null | undefined;
3516
3544
  funderName?: string | null | undefined;
3517
3545
  holderId?: string | null | undefined;
@@ -3521,12 +3549,12 @@ export declare const tradeCashEventsRouter: {
3521
3549
  remaining: number;
3522
3550
  amount: number;
3523
3551
  overdue: boolean;
3552
+ ageDays: number;
3524
3553
  funderType: "investor" | "staff" | "company" | "unattributed";
3525
3554
  advanceId: string;
3526
3555
  holderType: "other" | "supplier" | "staff";
3527
3556
  holderName: string;
3528
3557
  openedAt: string;
3529
- ageDays: number;
3530
3558
  funderId?: string | null | undefined;
3531
3559
  funderName?: string | null | undefined;
3532
3560
  holderId?: string | null | undefined;
@@ -3594,12 +3622,12 @@ export declare const tradeCashEventsRouter: {
3594
3622
  remaining: number;
3595
3623
  amount: number;
3596
3624
  overdue: boolean;
3625
+ ageDays: number;
3597
3626
  funderType: "investor" | "staff" | "company" | "unattributed";
3598
3627
  advanceId: string;
3599
3628
  holderType: "other" | "supplier" | "staff";
3600
3629
  holderName: string;
3601
3630
  openedAt: string;
3602
- ageDays: number;
3603
3631
  funderId?: string | null | undefined;
3604
3632
  funderName?: string | null | undefined;
3605
3633
  holderId?: string | null | undefined;
@@ -3668,12 +3696,12 @@ export declare const tradeCashEventsRouter: {
3668
3696
  remaining: number;
3669
3697
  amount: number;
3670
3698
  overdue: boolean;
3699
+ ageDays: number;
3671
3700
  funderType: "investor" | "staff" | "company" | "unattributed";
3672
3701
  advanceId: string;
3673
3702
  holderType: "other" | "supplier" | "staff";
3674
3703
  holderName: string;
3675
3704
  openedAt: string;
3676
- ageDays: number;
3677
3705
  funderId?: string | null | undefined;
3678
3706
  funderName?: string | null | undefined;
3679
3707
  holderId?: string | null | undefined;
@@ -3746,12 +3774,12 @@ export declare const tradeCashEventsRouter: {
3746
3774
  remaining: number;
3747
3775
  amount: number;
3748
3776
  overdue: boolean;
3777
+ ageDays: number;
3749
3778
  funderType: "investor" | "staff" | "company" | "unattributed";
3750
3779
  advanceId: string;
3751
3780
  holderType: "other" | "supplier" | "staff";
3752
3781
  holderName: string;
3753
3782
  openedAt: string;
3754
- ageDays: number;
3755
3783
  funderId?: string | null | undefined;
3756
3784
  funderName?: string | null | undefined;
3757
3785
  holderId?: string | null | undefined;
@@ -3824,12 +3852,12 @@ export declare const tradeCashEventsRouter: {
3824
3852
  remaining: number;
3825
3853
  amount: number;
3826
3854
  overdue: boolean;
3855
+ ageDays: number;
3827
3856
  funderType: "investor" | "staff" | "company" | "unattributed";
3828
3857
  advanceId: string;
3829
3858
  holderType: "other" | "supplier" | "staff";
3830
3859
  holderName: string;
3831
3860
  openedAt: string;
3832
- ageDays: number;
3833
3861
  funderId?: string | null | undefined;
3834
3862
  funderName?: string | null | undefined;
3835
3863
  holderId?: string | null | undefined;
@@ -3904,12 +3932,12 @@ export declare const tradeCashEventsRouter: {
3904
3932
  remaining: number;
3905
3933
  amount: number;
3906
3934
  overdue: boolean;
3935
+ ageDays: number;
3907
3936
  funderType: "investor" | "staff" | "company" | "unattributed";
3908
3937
  advanceId: string;
3909
3938
  holderType: "other" | "supplier" | "staff";
3910
3939
  holderName: string;
3911
3940
  openedAt: string;
3912
- ageDays: number;
3913
3941
  funderId?: string | null | undefined;
3914
3942
  funderName?: string | null | undefined;
3915
3943
  holderId?: string | null | undefined;
@@ -3984,12 +4012,12 @@ export declare const tradeCashEventsRouter: {
3984
4012
  remaining: number;
3985
4013
  amount: number;
3986
4014
  overdue: boolean;
4015
+ ageDays: number;
3987
4016
  funderType: "investor" | "staff" | "company" | "unattributed";
3988
4017
  advanceId: string;
3989
4018
  holderType: "other" | "supplier" | "staff";
3990
4019
  holderName: string;
3991
4020
  openedAt: string;
3992
- ageDays: number;
3993
4021
  funderId?: string | null | undefined;
3994
4022
  funderName?: string | null | undefined;
3995
4023
  holderId?: string | null | undefined;