@financeable/aggregation 0.6.17 → 0.7.3

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 (37) hide show
  1. package/docs/sdks/applications/README.md +6 -14
  2. package/jsr.json +1 -1
  3. package/lib/config.d.ts +3 -3
  4. package/lib/config.js +3 -3
  5. package/lib/config.js.map +1 -1
  6. package/models/components/commercialsecuredapplicationpayload.d.ts +2 -2
  7. package/models/components/commercialsecuredapplicationpayload.d.ts.map +1 -1
  8. package/models/components/commercialsecuredapplicationpayload.js +4 -2
  9. package/models/components/commercialsecuredapplicationpayload.js.map +1 -1
  10. package/models/components/commercialsecuredloanassetattributes.d.ts +2 -2
  11. package/models/components/commercialsecuredloanassetattributes.d.ts.map +1 -1
  12. package/models/components/commercialsecuredloanassetattributes.js +2 -2
  13. package/models/components/commercialsecuredloanassetattributes.js.map +1 -1
  14. package/models/components/commercialsecuredloancommercialapplicationrelationships.d.ts +2 -31
  15. package/models/components/commercialsecuredloancommercialapplicationrelationships.d.ts.map +1 -1
  16. package/models/components/commercialsecuredloancommercialapplicationrelationships.js +4 -37
  17. package/models/components/commercialsecuredloancommercialapplicationrelationships.js.map +1 -1
  18. package/models/components/consumersecuredapplicationpayload.d.ts +2 -2
  19. package/models/components/consumersecuredapplicationpayload.d.ts.map +1 -1
  20. package/models/components/consumersecuredapplicationpayload.js +4 -2
  21. package/models/components/consumersecuredapplicationpayload.js.map +1 -1
  22. package/models/components/consumersecuredloanconsumerapplicationrelationships.d.ts +2 -8
  23. package/models/components/consumersecuredloanconsumerapplicationrelationships.d.ts.map +1 -1
  24. package/models/components/consumersecuredloanconsumerapplicationrelationships.js +2 -8
  25. package/models/components/consumersecuredloanconsumerapplicationrelationships.js.map +1 -1
  26. package/models/operations/createapplication.d.ts +292 -7
  27. package/models/operations/createapplication.d.ts.map +1 -1
  28. package/models/operations/createapplication.js +320 -5
  29. package/models/operations/createapplication.js.map +1 -1
  30. package/package.json +1 -1
  31. package/src/lib/config.ts +3 -3
  32. package/src/models/components/commercialsecuredapplicationpayload.ts +10 -5
  33. package/src/models/components/commercialsecuredloanassetattributes.ts +4 -4
  34. package/src/models/components/commercialsecuredloancommercialapplicationrelationships.ts +4 -92
  35. package/src/models/components/consumersecuredapplicationpayload.ts +10 -4
  36. package/src/models/components/consumersecuredloanconsumerapplicationrelationships.ts +8 -18
  37. package/src/models/operations/createapplication.ts +539 -11
@@ -58,7 +58,6 @@ export type CommercialSecuredLoanCommercialApplicationRelationshipsData = {
58
58
  * Loan details model
59
59
  */
60
60
  attributes: LoanDetailsAttributes;
61
- relationships?: any | null | undefined;
62
61
  links?: { [k: string]: LinkObject } | undefined;
63
62
  meta?: { [k: string]: any } | undefined;
64
63
  };
@@ -85,16 +84,11 @@ export type CommercialSecuredLoanCommercialApplicationRelationshipsCustomersData
85
84
  typeof CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataType
86
85
  >;
87
86
 
88
- export type CommercialSecuredLoanCommercialApplicationRelationshipsRelationships =
89
- {};
90
-
91
87
  export type CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataData =
92
88
  {
93
89
  type:
94
90
  CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataType;
95
91
  attributes: AddressAttributes;
96
- relationships:
97
- CommercialSecuredLoanCommercialApplicationRelationshipsRelationships;
98
92
  links?: { [k: string]: LinkObject } | undefined;
99
93
  meta?: { [k: string]: any } | undefined;
100
94
  };
@@ -116,7 +110,7 @@ export type CommercialSecuredLoanCommercialApplicationRelationshipsCustomersData
116
110
  * A customer of the proposed financing
117
111
  */
118
112
  attributes: CustomerAttributes;
119
- relationships: Relationships;
113
+ relationships?: Relationships | undefined;
120
114
  links?: { [k: string]: LinkObject } | undefined;
121
115
  meta?: { [k: string]: any } | undefined;
122
116
  };
@@ -142,7 +136,6 @@ export type CommercialSecuredLoanCommercialApplicationRelationshipsAssetData = {
142
136
  * Type of asset for secured commercial loans
143
137
  */
144
138
  attributes: CommercialSecuredLoanAssetAttributes;
145
- relationships?: any | null | undefined;
146
139
  links?: { [k: string]: LinkObject } | undefined;
147
140
  meta?: { [k: string]: any } | undefined;
148
141
  };
@@ -164,7 +157,6 @@ export type CommercialSecuredLoanCommercialApplicationRelationshipsEntitiesData
164
157
  {
165
158
  type: CommercialSecuredLoanCommercialApplicationRelationshipsEntitiesType;
166
159
  attributes: EntityAttributes;
167
- relationships?: any | null | undefined;
168
160
  links?: { [k: string]: LinkObject } | undefined;
169
161
  meta?: { [k: string]: any } | undefined;
170
162
  };
@@ -219,7 +211,6 @@ export const CommercialSecuredLoanCommercialApplicationRelationshipsData$inbound
219
211
  type:
220
212
  CommercialSecuredLoanCommercialApplicationRelationshipsType$inboundSchema,
221
213
  attributes: LoanDetailsAttributes$inboundSchema,
222
- relationships: z.nullable(z.any()).optional(),
223
214
  links: z.record(LinkObject$inboundSchema).optional(),
224
215
  meta: z.record(z.any()).optional(),
225
216
  });
@@ -229,7 +220,6 @@ export type CommercialSecuredLoanCommercialApplicationRelationshipsData$Outbound
229
220
  {
230
221
  type: string;
231
222
  attributes: LoanDetailsAttributes$Outbound;
232
- relationships?: any | null | undefined;
233
223
  links?: { [k: string]: LinkObject$Outbound } | undefined;
234
224
  meta?: { [k: string]: any } | undefined;
235
225
  };
@@ -244,7 +234,6 @@ export const CommercialSecuredLoanCommercialApplicationRelationshipsData$outboun
244
234
  type:
245
235
  CommercialSecuredLoanCommercialApplicationRelationshipsType$outboundSchema,
246
236
  attributes: LoanDetailsAttributes$outboundSchema,
247
- relationships: z.nullable(z.any()).optional(),
248
237
  links: z.record(LinkObject$outboundSchema).optional(),
249
238
  meta: z.record(z.any()).optional(),
250
239
  });
@@ -400,69 +389,6 @@ export namespace CommercialSecuredLoanCommercialApplicationRelationshipsCustomer
400
389
  CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataType$outboundSchema;
401
390
  }
402
391
 
403
- /** @internal */
404
- export const CommercialSecuredLoanCommercialApplicationRelationshipsRelationships$inboundSchema:
405
- z.ZodType<
406
- CommercialSecuredLoanCommercialApplicationRelationshipsRelationships,
407
- z.ZodTypeDef,
408
- unknown
409
- > = z.object({});
410
-
411
- /** @internal */
412
- export type CommercialSecuredLoanCommercialApplicationRelationshipsRelationships$Outbound =
413
- {};
414
-
415
- /** @internal */
416
- export const CommercialSecuredLoanCommercialApplicationRelationshipsRelationships$outboundSchema:
417
- z.ZodType<
418
- CommercialSecuredLoanCommercialApplicationRelationshipsRelationships$Outbound,
419
- z.ZodTypeDef,
420
- CommercialSecuredLoanCommercialApplicationRelationshipsRelationships
421
- > = z.object({});
422
-
423
- /**
424
- * @internal
425
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
426
- */
427
- export namespace CommercialSecuredLoanCommercialApplicationRelationshipsRelationships$ {
428
- /** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsRelationships$inboundSchema` instead. */
429
- export const inboundSchema =
430
- CommercialSecuredLoanCommercialApplicationRelationshipsRelationships$inboundSchema;
431
- /** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsRelationships$outboundSchema` instead. */
432
- export const outboundSchema =
433
- CommercialSecuredLoanCommercialApplicationRelationshipsRelationships$outboundSchema;
434
- /** @deprecated use `CommercialSecuredLoanCommercialApplicationRelationshipsRelationships$Outbound` instead. */
435
- export type Outbound =
436
- CommercialSecuredLoanCommercialApplicationRelationshipsRelationships$Outbound;
437
- }
438
-
439
- export function commercialSecuredLoanCommercialApplicationRelationshipsRelationshipsToJSON(
440
- commercialSecuredLoanCommercialApplicationRelationshipsRelationships:
441
- CommercialSecuredLoanCommercialApplicationRelationshipsRelationships,
442
- ): string {
443
- return JSON.stringify(
444
- CommercialSecuredLoanCommercialApplicationRelationshipsRelationships$outboundSchema
445
- .parse(
446
- commercialSecuredLoanCommercialApplicationRelationshipsRelationships,
447
- ),
448
- );
449
- }
450
-
451
- export function commercialSecuredLoanCommercialApplicationRelationshipsRelationshipsFromJSON(
452
- jsonString: string,
453
- ): SafeParseResult<
454
- CommercialSecuredLoanCommercialApplicationRelationshipsRelationships,
455
- SDKValidationError
456
- > {
457
- return safeParse(
458
- jsonString,
459
- (x) =>
460
- CommercialSecuredLoanCommercialApplicationRelationshipsRelationships$inboundSchema
461
- .parse(JSON.parse(x)),
462
- `Failed to parse 'CommercialSecuredLoanCommercialApplicationRelationshipsRelationships' from JSON`,
463
- );
464
- }
465
-
466
392
  /** @internal */
467
393
  export const CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataData$inboundSchema:
468
394
  z.ZodType<
@@ -473,9 +399,6 @@ export const CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDat
473
399
  type:
474
400
  CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataType$inboundSchema,
475
401
  attributes: AddressAttributes$inboundSchema,
476
- relationships: z.lazy(() =>
477
- CommercialSecuredLoanCommercialApplicationRelationshipsRelationships$inboundSchema
478
- ),
479
402
  links: z.record(LinkObject$inboundSchema).optional(),
480
403
  meta: z.record(z.any()).optional(),
481
404
  });
@@ -485,8 +408,6 @@ export type CommercialSecuredLoanCommercialApplicationRelationshipsCustomersData
485
408
  {
486
409
  type: string;
487
410
  attributes: AddressAttributes$Outbound;
488
- relationships:
489
- CommercialSecuredLoanCommercialApplicationRelationshipsRelationships$Outbound;
490
411
  links?: { [k: string]: LinkObject$Outbound } | undefined;
491
412
  meta?: { [k: string]: any } | undefined;
492
413
  };
@@ -501,9 +422,6 @@ export const CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDat
501
422
  type:
502
423
  CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDataType$outboundSchema,
503
424
  attributes: AddressAttributes$outboundSchema,
504
- relationships: z.lazy(() =>
505
- CommercialSecuredLoanCommercialApplicationRelationshipsRelationships$outboundSchema
506
- ),
507
425
  links: z.record(LinkObject$outboundSchema).optional(),
508
426
  meta: z.record(z.any()).optional(),
509
427
  });
@@ -671,7 +589,7 @@ export const CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDat
671
589
  type:
672
590
  CommercialSecuredLoanCommercialApplicationRelationshipsCustomersType$inboundSchema,
673
591
  attributes: CustomerAttributes$inboundSchema,
674
- relationships: z.lazy(() => Relationships$inboundSchema),
592
+ relationships: z.lazy(() => Relationships$inboundSchema).optional(),
675
593
  links: z.record(LinkObject$inboundSchema).optional(),
676
594
  meta: z.record(z.any()).optional(),
677
595
  });
@@ -681,7 +599,7 @@ export type CommercialSecuredLoanCommercialApplicationRelationshipsCustomersData
681
599
  {
682
600
  type: string;
683
601
  attributes: CustomerAttributes$Outbound;
684
- relationships: Relationships$Outbound;
602
+ relationships?: Relationships$Outbound | undefined;
685
603
  links?: { [k: string]: LinkObject$Outbound } | undefined;
686
604
  meta?: { [k: string]: any } | undefined;
687
605
  };
@@ -696,7 +614,7 @@ export const CommercialSecuredLoanCommercialApplicationRelationshipsCustomersDat
696
614
  type:
697
615
  CommercialSecuredLoanCommercialApplicationRelationshipsCustomersType$outboundSchema,
698
616
  attributes: CustomerAttributes$outboundSchema,
699
- relationships: z.lazy(() => Relationships$outboundSchema),
617
+ relationships: z.lazy(() => Relationships$outboundSchema).optional(),
700
618
  links: z.record(LinkObject$outboundSchema).optional(),
701
619
  meta: z.record(z.any()).optional(),
702
620
  });
@@ -842,7 +760,6 @@ export const CommercialSecuredLoanCommercialApplicationRelationshipsAssetData$in
842
760
  type:
843
761
  CommercialSecuredLoanCommercialApplicationRelationshipsAssetType$inboundSchema,
844
762
  attributes: CommercialSecuredLoanAssetAttributes$inboundSchema,
845
- relationships: z.nullable(z.any()).optional(),
846
763
  links: z.record(LinkObject$inboundSchema).optional(),
847
764
  meta: z.record(z.any()).optional(),
848
765
  });
@@ -852,7 +769,6 @@ export type CommercialSecuredLoanCommercialApplicationRelationshipsAssetData$Out
852
769
  {
853
770
  type: string;
854
771
  attributes: CommercialSecuredLoanAssetAttributes$Outbound;
855
- relationships?: any | null | undefined;
856
772
  links?: { [k: string]: LinkObject$Outbound } | undefined;
857
773
  meta?: { [k: string]: any } | undefined;
858
774
  };
@@ -867,7 +783,6 @@ export const CommercialSecuredLoanCommercialApplicationRelationshipsAssetData$ou
867
783
  type:
868
784
  CommercialSecuredLoanCommercialApplicationRelationshipsAssetType$outboundSchema,
869
785
  attributes: CommercialSecuredLoanAssetAttributes$outboundSchema,
870
- relationships: z.nullable(z.any()).optional(),
871
786
  links: z.record(LinkObject$outboundSchema).optional(),
872
787
  meta: z.record(z.any()).optional(),
873
788
  });
@@ -1023,7 +938,6 @@ export const CommercialSecuredLoanCommercialApplicationRelationshipsEntitiesData
1023
938
  type:
1024
939
  CommercialSecuredLoanCommercialApplicationRelationshipsEntitiesType$inboundSchema,
1025
940
  attributes: EntityAttributes$inboundSchema,
1026
- relationships: z.nullable(z.any()).optional(),
1027
941
  links: z.record(LinkObject$inboundSchema).optional(),
1028
942
  meta: z.record(z.any()).optional(),
1029
943
  });
@@ -1033,7 +947,6 @@ export type CommercialSecuredLoanCommercialApplicationRelationshipsEntitiesData$
1033
947
  {
1034
948
  type: string;
1035
949
  attributes: EntityAttributes$Outbound;
1036
- relationships?: any | null | undefined;
1037
950
  links?: { [k: string]: LinkObject$Outbound } | undefined;
1038
951
  meta?: { [k: string]: any } | undefined;
1039
952
  };
@@ -1048,7 +961,6 @@ export const CommercialSecuredLoanCommercialApplicationRelationshipsEntitiesData
1048
961
  type:
1049
962
  CommercialSecuredLoanCommercialApplicationRelationshipsEntitiesType$outboundSchema,
1050
963
  attributes: EntityAttributes$outboundSchema,
1051
- relationships: z.nullable(z.any()).optional(),
1052
964
  links: z.record(LinkObject$outboundSchema).optional(),
1053
965
  meta: z.record(z.any()).optional(),
1054
966
  });
@@ -73,7 +73,9 @@ export type ConsumerSecuredApplicationPayload = {
73
73
  * Application resource attributes
74
74
  */
75
75
  attributes: ConsumerSecuredApplicationPayloadAttributes;
76
- relationships: ConsumerSecuredLoanConsumerApplicationRelationships;
76
+ relationships?:
77
+ | ConsumerSecuredLoanConsumerApplicationRelationships
78
+ | undefined;
77
79
  links?: { [k: string]: LinkObject } | undefined;
78
80
  meta?: { [k: string]: any } | undefined;
79
81
  };
@@ -208,7 +210,8 @@ export const ConsumerSecuredApplicationPayload$inboundSchema: z.ZodType<
208
210
  ConsumerSecuredApplicationPayloadAttributes$inboundSchema
209
211
  ),
210
212
  relationships:
211
- ConsumerSecuredLoanConsumerApplicationRelationships$inboundSchema,
213
+ ConsumerSecuredLoanConsumerApplicationRelationships$inboundSchema
214
+ .optional(),
212
215
  links: z.record(LinkObject$inboundSchema).optional(),
213
216
  meta: z.record(z.any()).optional(),
214
217
  });
@@ -217,7 +220,9 @@ export const ConsumerSecuredApplicationPayload$inboundSchema: z.ZodType<
217
220
  export type ConsumerSecuredApplicationPayload$Outbound = {
218
221
  type: string;
219
222
  attributes: ConsumerSecuredApplicationPayloadAttributes$Outbound;
220
- relationships: ConsumerSecuredLoanConsumerApplicationRelationships$Outbound;
223
+ relationships?:
224
+ | ConsumerSecuredLoanConsumerApplicationRelationships$Outbound
225
+ | undefined;
221
226
  links?: { [k: string]: LinkObject$Outbound } | undefined;
222
227
  meta?: { [k: string]: any } | undefined;
223
228
  };
@@ -233,7 +238,8 @@ export const ConsumerSecuredApplicationPayload$outboundSchema: z.ZodType<
233
238
  ConsumerSecuredApplicationPayloadAttributes$outboundSchema
234
239
  ),
235
240
  relationships:
236
- ConsumerSecuredLoanConsumerApplicationRelationships$outboundSchema,
241
+ ConsumerSecuredLoanConsumerApplicationRelationships$outboundSchema
242
+ .optional(),
237
243
  links: z.record(LinkObject$outboundSchema).optional(),
238
244
  meta: z.record(z.any()).optional(),
239
245
  });
@@ -50,7 +50,6 @@ export type ConsumerSecuredLoanConsumerApplicationRelationshipsData = {
50
50
  * Loan details model
51
51
  */
52
52
  attributes: LoanDetailsAttributes;
53
- relationships?: any | null | undefined;
54
53
  links?: { [k: string]: LinkObject } | undefined;
55
54
  meta?: { [k: string]: any } | undefined;
56
55
  };
@@ -81,7 +80,6 @@ export type ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData
81
80
  {
82
81
  type: ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataType;
83
82
  attributes: AddressAttributes;
84
- relationships?: any | null | undefined;
85
83
  links?: { [k: string]: LinkObject } | undefined;
86
84
  meta?: { [k: string]: any } | undefined;
87
85
  };
@@ -104,8 +102,9 @@ export type ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersData = {
104
102
  * A customer of the proposed financing
105
103
  */
106
104
  attributes: CustomerAttributes;
107
- relationships:
108
- ConsumerSecuredLoanConsumerApplicationRelationshipsRelationships;
105
+ relationships?:
106
+ | ConsumerSecuredLoanConsumerApplicationRelationshipsRelationships
107
+ | undefined;
109
108
  links?: { [k: string]: LinkObject } | undefined;
110
109
  meta?: { [k: string]: any } | undefined;
111
110
  };
@@ -128,7 +127,6 @@ export type ConsumerSecuredLoanConsumerApplicationRelationshipsAssetData = {
128
127
  * The asset to be obtained by the customer, using the proposed loan financing.
129
128
  */
130
129
  attributes: ConsumerSecuredLoanAssetAttributes;
131
- relationships?: any | null | undefined;
132
130
  links?: { [k: string]: LinkObject } | undefined;
133
131
  meta?: { [k: string]: any } | undefined;
134
132
  };
@@ -181,7 +179,6 @@ export const ConsumerSecuredLoanConsumerApplicationRelationshipsData$inboundSche
181
179
  > = z.object({
182
180
  type: ConsumerSecuredLoanConsumerApplicationRelationshipsType$inboundSchema,
183
181
  attributes: LoanDetailsAttributes$inboundSchema,
184
- relationships: z.nullable(z.any()).optional(),
185
182
  links: z.record(LinkObject$inboundSchema).optional(),
186
183
  meta: z.record(z.any()).optional(),
187
184
  });
@@ -190,7 +187,6 @@ export const ConsumerSecuredLoanConsumerApplicationRelationshipsData$inboundSche
190
187
  export type ConsumerSecuredLoanConsumerApplicationRelationshipsData$Outbound = {
191
188
  type: string;
192
189
  attributes: LoanDetailsAttributes$Outbound;
193
- relationships?: any | null | undefined;
194
190
  links?: { [k: string]: LinkObject$Outbound } | undefined;
195
191
  meta?: { [k: string]: any } | undefined;
196
192
  };
@@ -205,7 +201,6 @@ export const ConsumerSecuredLoanConsumerApplicationRelationshipsData$outboundSch
205
201
  type:
206
202
  ConsumerSecuredLoanConsumerApplicationRelationshipsType$outboundSchema,
207
203
  attributes: LoanDetailsAttributes$outboundSchema,
208
- relationships: z.nullable(z.any()).optional(),
209
204
  links: z.record(LinkObject$outboundSchema).optional(),
210
205
  meta: z.record(z.any()).optional(),
211
206
  });
@@ -388,7 +383,6 @@ export const ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataDat
388
383
  type:
389
384
  ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataType$inboundSchema,
390
385
  attributes: AddressAttributes$inboundSchema,
391
- relationships: z.nullable(z.any()).optional(),
392
386
  links: z.record(LinkObject$inboundSchema).optional(),
393
387
  meta: z.record(z.any()).optional(),
394
388
  });
@@ -398,7 +392,6 @@ export type ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData
398
392
  {
399
393
  type: string;
400
394
  attributes: AddressAttributes$Outbound;
401
- relationships?: any | null | undefined;
402
395
  links?: { [k: string]: LinkObject$Outbound } | undefined;
403
396
  meta?: { [k: string]: any } | undefined;
404
397
  };
@@ -413,7 +406,6 @@ export const ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataDat
413
406
  type:
414
407
  ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataType$outboundSchema,
415
408
  attributes: AddressAttributes$outboundSchema,
416
- relationships: z.nullable(z.any()).optional(),
417
409
  links: z.record(LinkObject$outboundSchema).optional(),
418
410
  meta: z.record(z.any()).optional(),
419
411
  });
@@ -623,7 +615,7 @@ export const ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersData$in
623
615
  attributes: CustomerAttributes$inboundSchema,
624
616
  relationships: z.lazy(() =>
625
617
  ConsumerSecuredLoanConsumerApplicationRelationshipsRelationships$inboundSchema
626
- ),
618
+ ).optional(),
627
619
  links: z.record(LinkObject$inboundSchema).optional(),
628
620
  meta: z.record(z.any()).optional(),
629
621
  });
@@ -633,8 +625,9 @@ export type ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersData$Out
633
625
  {
634
626
  type: string;
635
627
  attributes: CustomerAttributes$Outbound;
636
- relationships:
637
- ConsumerSecuredLoanConsumerApplicationRelationshipsRelationships$Outbound;
628
+ relationships?:
629
+ | ConsumerSecuredLoanConsumerApplicationRelationshipsRelationships$Outbound
630
+ | undefined;
638
631
  links?: { [k: string]: LinkObject$Outbound } | undefined;
639
632
  meta?: { [k: string]: any } | undefined;
640
633
  };
@@ -651,7 +644,7 @@ export const ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersData$ou
651
644
  attributes: CustomerAttributes$outboundSchema,
652
645
  relationships: z.lazy(() =>
653
646
  ConsumerSecuredLoanConsumerApplicationRelationshipsRelationships$outboundSchema
654
- ),
647
+ ).optional(),
655
648
  links: z.record(LinkObject$outboundSchema).optional(),
656
649
  meta: z.record(z.any()).optional(),
657
650
  });
@@ -812,7 +805,6 @@ export const ConsumerSecuredLoanConsumerApplicationRelationshipsAssetData$inboun
812
805
  type:
813
806
  ConsumerSecuredLoanConsumerApplicationRelationshipsAssetType$inboundSchema,
814
807
  attributes: ConsumerSecuredLoanAssetAttributes$inboundSchema,
815
- relationships: z.nullable(z.any()).optional(),
816
808
  links: z.record(LinkObject$inboundSchema).optional(),
817
809
  meta: z.record(z.any()).optional(),
818
810
  });
@@ -822,7 +814,6 @@ export type ConsumerSecuredLoanConsumerApplicationRelationshipsAssetData$Outboun
822
814
  {
823
815
  type: string;
824
816
  attributes: ConsumerSecuredLoanAssetAttributes$Outbound;
825
- relationships?: any | null | undefined;
826
817
  links?: { [k: string]: LinkObject$Outbound } | undefined;
827
818
  meta?: { [k: string]: any } | undefined;
828
819
  };
@@ -837,7 +828,6 @@ export const ConsumerSecuredLoanConsumerApplicationRelationshipsAssetData$outbou
837
828
  type:
838
829
  ConsumerSecuredLoanConsumerApplicationRelationshipsAssetType$outboundSchema,
839
830
  attributes: ConsumerSecuredLoanAssetAttributes$outboundSchema,
840
- relationships: z.nullable(z.any()).optional(),
841
831
  links: z.record(LinkObject$outboundSchema).optional(),
842
832
  meta: z.record(z.any()).optional(),
843
833
  });