@financeable/aggregation 0.13.4 → 0.14.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.
- package/.devcontainer/devcontainer.json +45 -0
- package/FUNCTIONS.md +240 -0
- package/RUNTIMES.md +48 -0
- package/core.js.map +1 -0
- package/examples/applicationsCreate.example.ts +179 -0
- package/examples/package-lock.json +610 -0
- package/examples/package.json +18 -0
- package/index.js.map +1 -0
- package/jsr.json +27 -0
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/models/components/abnstatus.d.ts +10 -0
- package/models/components/abnstatus.d.ts.map +1 -0
- package/models/components/abnstatus.js +48 -0
- package/models/components/abnstatus.js.map +1 -0
- package/models/components/commercialsecuredloancommercialapplicationrelationships.d.ts +101 -6
- package/models/components/commercialsecuredloancommercialapplicationrelationships.d.ts.map +1 -1
- package/models/components/commercialsecuredloancommercialapplicationrelationships.js +69 -7
- package/models/components/commercialsecuredloancommercialapplicationrelationships.js.map +1 -1
- package/models/components/consumersecuredloanconsumerapplicationrelationships.d.ts +105 -10
- package/models/components/consumersecuredloanconsumerapplicationrelationships.d.ts.map +1 -1
- package/models/components/consumersecuredloanconsumerapplicationrelationships.js +73 -9
- package/models/components/consumersecuredloanconsumerapplicationrelationships.js.map +1 -1
- package/models/components/employerattributes.d.ts +58 -0
- package/models/components/employerattributes.d.ts.map +1 -0
- package/models/components/employerattributes.js +69 -0
- package/models/components/employerattributes.js.map +1 -0
- package/models/components/employmentstatus.d.ts +10 -0
- package/models/components/employmentstatus.d.ts.map +1 -0
- package/models/components/employmentstatus.js +47 -0
- package/models/components/employmentstatus.js.map +1 -0
- package/models/components/employmenttype.d.ts +15 -0
- package/models/components/employmenttype.d.ts.map +1 -0
- package/models/components/employmenttype.js +52 -0
- package/models/components/employmenttype.js.map +1 -0
- package/models/components/entityattributes.d.ts +4 -4
- package/models/components/entityattributes.d.ts.map +1 -1
- package/models/components/entityattributes.js +4 -5
- package/models/components/entityattributes.js.map +1 -1
- package/models/components/entitytype.d.ts +152 -0
- package/models/components/entitytype.d.ts.map +1 -0
- package/models/components/entitytype.js +190 -0
- package/models/components/entitytype.js.map +1 -0
- package/models/components/index.d.ts +7 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +7 -0
- package/models/components/index.js.map +1 -1
- package/models/components/industry.d.ts +27 -0
- package/models/components/industry.d.ts.map +1 -0
- package/models/components/industry.js +65 -0
- package/models/components/industry.js.map +1 -0
- package/models/components/occupation.d.ts +201 -0
- package/models/components/occupation.d.ts.map +1 -0
- package/models/components/occupation.js +239 -0
- package/models/components/occupation.js.map +1 -0
- package/models/components/personalloanpersonalapplicationrelationships.d.ts +105 -10
- package/models/components/personalloanpersonalapplicationrelationships.d.ts.map +1 -1
- package/models/components/personalloanpersonalapplicationrelationships.js +71 -9
- package/models/components/personalloanpersonalapplicationrelationships.js.map +1 -1
- package/package.json +5 -17
- package/src/lib/config.ts +3 -3
- package/src/models/components/abnstatus.ts +16 -0
- package/src/models/components/commercialsecuredloancommercialapplicationrelationships.ts +241 -13
- package/src/models/components/consumersecuredloanconsumerapplicationrelationships.ts +275 -19
- package/src/models/components/employerattributes.ts +97 -0
- package/src/models/components/employmentstatus.ts +17 -0
- package/src/models/components/employmenttype.ts +22 -0
- package/src/models/components/entityattributes.ts +9 -6
- package/src/models/components/entitytype.ts +215 -0
- package/src/models/components/index.ts +7 -0
- package/src/models/components/industry.ts +36 -0
- package/src/models/components/occupation.ts +226 -0
- package/src/models/components/personalloanpersonalapplicationrelationships.ts +272 -20
- package/tsconfig.json +40 -0
|
@@ -24,6 +24,11 @@ import {
|
|
|
24
24
|
CustomerLiabilityAttributes$Outbound,
|
|
25
25
|
CustomerLiabilityAttributes$outboundSchema,
|
|
26
26
|
} from "./customerliabilityattributes.js";
|
|
27
|
+
import {
|
|
28
|
+
EmployerAttributes,
|
|
29
|
+
EmployerAttributes$Outbound,
|
|
30
|
+
EmployerAttributes$outboundSchema,
|
|
31
|
+
} from "./employerattributes.js";
|
|
27
32
|
import {
|
|
28
33
|
ExpenseAttributes,
|
|
29
34
|
ExpenseAttributes$Outbound,
|
|
@@ -96,25 +101,80 @@ export type PersonalLoanPersonalApplicationRelationshipsAddresses = {
|
|
|
96
101
|
|
|
97
102
|
export const PersonalLoanPersonalApplicationRelationshipsCustomersDataRelationshipsType =
|
|
98
103
|
{
|
|
99
|
-
|
|
104
|
+
Employers: "employers",
|
|
100
105
|
} as const;
|
|
101
106
|
export type PersonalLoanPersonalApplicationRelationshipsCustomersDataRelationshipsType =
|
|
102
107
|
ClosedEnum<
|
|
103
108
|
typeof PersonalLoanPersonalApplicationRelationshipsCustomersDataRelationshipsType
|
|
104
109
|
>;
|
|
105
110
|
|
|
111
|
+
export const PersonalLoanPersonalApplicationRelationshipsCustomersDataRelationshipsEmployersType =
|
|
112
|
+
{
|
|
113
|
+
Addresses: "addresses",
|
|
114
|
+
} as const;
|
|
115
|
+
export type PersonalLoanPersonalApplicationRelationshipsCustomersDataRelationshipsEmployersType =
|
|
116
|
+
ClosedEnum<
|
|
117
|
+
typeof PersonalLoanPersonalApplicationRelationshipsCustomersDataRelationshipsEmployersType
|
|
118
|
+
>;
|
|
119
|
+
|
|
120
|
+
export type PersonalLoanPersonalApplicationRelationshipsCustomersDataRelationshipsEmployersData =
|
|
121
|
+
{
|
|
122
|
+
type:
|
|
123
|
+
PersonalLoanPersonalApplicationRelationshipsCustomersDataRelationshipsEmployersType;
|
|
124
|
+
attributes: AddressAttributes;
|
|
125
|
+
links?: { [k: string]: LinkObject } | undefined;
|
|
126
|
+
meta?: { [k: string]: any } | undefined;
|
|
127
|
+
};
|
|
128
|
+
|
|
129
|
+
export type PersonalLoanPersonalApplicationRelationshipsAddress = {
|
|
130
|
+
data:
|
|
131
|
+
PersonalLoanPersonalApplicationRelationshipsCustomersDataRelationshipsEmployersData;
|
|
132
|
+
};
|
|
133
|
+
|
|
134
|
+
export type PersonalLoanPersonalApplicationRelationshipsCustomersRelationships =
|
|
135
|
+
{
|
|
136
|
+
address?: PersonalLoanPersonalApplicationRelationshipsAddress | undefined;
|
|
137
|
+
};
|
|
138
|
+
|
|
106
139
|
export type PersonalLoanPersonalApplicationRelationshipsCustomersDataData = {
|
|
107
140
|
type:
|
|
108
141
|
PersonalLoanPersonalApplicationRelationshipsCustomersDataRelationshipsType;
|
|
109
|
-
attributes:
|
|
142
|
+
attributes: EmployerAttributes;
|
|
143
|
+
relationships?:
|
|
144
|
+
| PersonalLoanPersonalApplicationRelationshipsCustomersRelationships
|
|
145
|
+
| undefined;
|
|
110
146
|
links?: { [k: string]: LinkObject } | undefined;
|
|
111
147
|
meta?: { [k: string]: any } | undefined;
|
|
112
148
|
};
|
|
113
149
|
|
|
114
|
-
export type
|
|
150
|
+
export type PersonalLoanPersonalApplicationRelationshipsEmployers = {
|
|
115
151
|
data: Array<PersonalLoanPersonalApplicationRelationshipsCustomersDataData>;
|
|
116
152
|
};
|
|
117
153
|
|
|
154
|
+
export const PersonalLoanPersonalApplicationRelationshipsCustomersDataRelationshipsIncomeType =
|
|
155
|
+
{
|
|
156
|
+
Income: "income",
|
|
157
|
+
} as const;
|
|
158
|
+
export type PersonalLoanPersonalApplicationRelationshipsCustomersDataRelationshipsIncomeType =
|
|
159
|
+
ClosedEnum<
|
|
160
|
+
typeof PersonalLoanPersonalApplicationRelationshipsCustomersDataRelationshipsIncomeType
|
|
161
|
+
>;
|
|
162
|
+
|
|
163
|
+
export type PersonalLoanPersonalApplicationRelationshipsCustomersDataRelationshipsData =
|
|
164
|
+
{
|
|
165
|
+
type:
|
|
166
|
+
PersonalLoanPersonalApplicationRelationshipsCustomersDataRelationshipsIncomeType;
|
|
167
|
+
attributes: IncomeAttributes;
|
|
168
|
+
links?: { [k: string]: LinkObject } | undefined;
|
|
169
|
+
meta?: { [k: string]: any } | undefined;
|
|
170
|
+
};
|
|
171
|
+
|
|
172
|
+
export type PersonalLoanPersonalApplicationRelationshipsIncome = {
|
|
173
|
+
data: Array<
|
|
174
|
+
PersonalLoanPersonalApplicationRelationshipsCustomersDataRelationshipsData
|
|
175
|
+
>;
|
|
176
|
+
};
|
|
177
|
+
|
|
118
178
|
export const PersonalLoanPersonalApplicationRelationshipsCustomersDataRelationshipsLiabilitiesType =
|
|
119
179
|
{
|
|
120
180
|
CustomerLiabilities: "customer-liabilities",
|
|
@@ -124,7 +184,7 @@ export type PersonalLoanPersonalApplicationRelationshipsCustomersDataRelationshi
|
|
|
124
184
|
typeof PersonalLoanPersonalApplicationRelationshipsCustomersDataRelationshipsLiabilitiesType
|
|
125
185
|
>;
|
|
126
186
|
|
|
127
|
-
export type
|
|
187
|
+
export type PersonalLoanPersonalApplicationRelationshipsCustomersDataRelationshipsLiabilitiesData =
|
|
128
188
|
{
|
|
129
189
|
type:
|
|
130
190
|
PersonalLoanPersonalApplicationRelationshipsCustomersDataRelationshipsLiabilitiesType;
|
|
@@ -135,7 +195,7 @@ export type PersonalLoanPersonalApplicationRelationshipsCustomersDataRelationshi
|
|
|
135
195
|
|
|
136
196
|
export type PersonalLoanPersonalApplicationRelationshipsLiabilities = {
|
|
137
197
|
data: Array<
|
|
138
|
-
|
|
198
|
+
PersonalLoanPersonalApplicationRelationshipsCustomersDataRelationshipsLiabilitiesData
|
|
139
199
|
>;
|
|
140
200
|
};
|
|
141
201
|
|
|
@@ -189,6 +249,7 @@ export type PersonalLoanPersonalApplicationRelationshipsExpenses = {
|
|
|
189
249
|
|
|
190
250
|
export type PersonalLoanPersonalApplicationRelationshipsRelationships = {
|
|
191
251
|
addresses?: PersonalLoanPersonalApplicationRelationshipsAddresses | undefined;
|
|
252
|
+
employers?: PersonalLoanPersonalApplicationRelationshipsEmployers | undefined;
|
|
192
253
|
income?: PersonalLoanPersonalApplicationRelationshipsIncome | undefined;
|
|
193
254
|
liabilities?:
|
|
194
255
|
| PersonalLoanPersonalApplicationRelationshipsLiabilities
|
|
@@ -374,11 +435,118 @@ export const PersonalLoanPersonalApplicationRelationshipsCustomersDataRelationsh
|
|
|
374
435
|
PersonalLoanPersonalApplicationRelationshipsCustomersDataRelationshipsType,
|
|
375
436
|
);
|
|
376
437
|
|
|
438
|
+
/** @internal */
|
|
439
|
+
export const PersonalLoanPersonalApplicationRelationshipsCustomersDataRelationshipsEmployersType$outboundSchema:
|
|
440
|
+
z.ZodNativeEnum<
|
|
441
|
+
typeof PersonalLoanPersonalApplicationRelationshipsCustomersDataRelationshipsEmployersType
|
|
442
|
+
> = z.nativeEnum(
|
|
443
|
+
PersonalLoanPersonalApplicationRelationshipsCustomersDataRelationshipsEmployersType,
|
|
444
|
+
);
|
|
445
|
+
|
|
446
|
+
/** @internal */
|
|
447
|
+
export type PersonalLoanPersonalApplicationRelationshipsCustomersDataRelationshipsEmployersData$Outbound =
|
|
448
|
+
{
|
|
449
|
+
type: string;
|
|
450
|
+
attributes: AddressAttributes$Outbound;
|
|
451
|
+
links?: { [k: string]: LinkObject$Outbound } | undefined;
|
|
452
|
+
meta?: { [k: string]: any } | undefined;
|
|
453
|
+
};
|
|
454
|
+
|
|
455
|
+
/** @internal */
|
|
456
|
+
export const PersonalLoanPersonalApplicationRelationshipsCustomersDataRelationshipsEmployersData$outboundSchema:
|
|
457
|
+
z.ZodType<
|
|
458
|
+
PersonalLoanPersonalApplicationRelationshipsCustomersDataRelationshipsEmployersData$Outbound,
|
|
459
|
+
z.ZodTypeDef,
|
|
460
|
+
PersonalLoanPersonalApplicationRelationshipsCustomersDataRelationshipsEmployersData
|
|
461
|
+
> = z.object({
|
|
462
|
+
type:
|
|
463
|
+
PersonalLoanPersonalApplicationRelationshipsCustomersDataRelationshipsEmployersType$outboundSchema,
|
|
464
|
+
attributes: AddressAttributes$outboundSchema,
|
|
465
|
+
links: z.record(LinkObject$outboundSchema).optional(),
|
|
466
|
+
meta: z.record(z.any()).optional(),
|
|
467
|
+
});
|
|
468
|
+
|
|
469
|
+
export function personalLoanPersonalApplicationRelationshipsCustomersDataRelationshipsEmployersDataToJSON(
|
|
470
|
+
personalLoanPersonalApplicationRelationshipsCustomersDataRelationshipsEmployersData:
|
|
471
|
+
PersonalLoanPersonalApplicationRelationshipsCustomersDataRelationshipsEmployersData,
|
|
472
|
+
): string {
|
|
473
|
+
return JSON.stringify(
|
|
474
|
+
PersonalLoanPersonalApplicationRelationshipsCustomersDataRelationshipsEmployersData$outboundSchema
|
|
475
|
+
.parse(
|
|
476
|
+
personalLoanPersonalApplicationRelationshipsCustomersDataRelationshipsEmployersData,
|
|
477
|
+
),
|
|
478
|
+
);
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
/** @internal */
|
|
482
|
+
export type PersonalLoanPersonalApplicationRelationshipsAddress$Outbound = {
|
|
483
|
+
data:
|
|
484
|
+
PersonalLoanPersonalApplicationRelationshipsCustomersDataRelationshipsEmployersData$Outbound;
|
|
485
|
+
};
|
|
486
|
+
|
|
487
|
+
/** @internal */
|
|
488
|
+
export const PersonalLoanPersonalApplicationRelationshipsAddress$outboundSchema:
|
|
489
|
+
z.ZodType<
|
|
490
|
+
PersonalLoanPersonalApplicationRelationshipsAddress$Outbound,
|
|
491
|
+
z.ZodTypeDef,
|
|
492
|
+
PersonalLoanPersonalApplicationRelationshipsAddress
|
|
493
|
+
> = z.object({
|
|
494
|
+
data: z.lazy(() =>
|
|
495
|
+
PersonalLoanPersonalApplicationRelationshipsCustomersDataRelationshipsEmployersData$outboundSchema
|
|
496
|
+
),
|
|
497
|
+
});
|
|
498
|
+
|
|
499
|
+
export function personalLoanPersonalApplicationRelationshipsAddressToJSON(
|
|
500
|
+
personalLoanPersonalApplicationRelationshipsAddress:
|
|
501
|
+
PersonalLoanPersonalApplicationRelationshipsAddress,
|
|
502
|
+
): string {
|
|
503
|
+
return JSON.stringify(
|
|
504
|
+
PersonalLoanPersonalApplicationRelationshipsAddress$outboundSchema.parse(
|
|
505
|
+
personalLoanPersonalApplicationRelationshipsAddress,
|
|
506
|
+
),
|
|
507
|
+
);
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
/** @internal */
|
|
511
|
+
export type PersonalLoanPersonalApplicationRelationshipsCustomersRelationships$Outbound =
|
|
512
|
+
{
|
|
513
|
+
address?:
|
|
514
|
+
| PersonalLoanPersonalApplicationRelationshipsAddress$Outbound
|
|
515
|
+
| undefined;
|
|
516
|
+
};
|
|
517
|
+
|
|
518
|
+
/** @internal */
|
|
519
|
+
export const PersonalLoanPersonalApplicationRelationshipsCustomersRelationships$outboundSchema:
|
|
520
|
+
z.ZodType<
|
|
521
|
+
PersonalLoanPersonalApplicationRelationshipsCustomersRelationships$Outbound,
|
|
522
|
+
z.ZodTypeDef,
|
|
523
|
+
PersonalLoanPersonalApplicationRelationshipsCustomersRelationships
|
|
524
|
+
> = z.object({
|
|
525
|
+
address: z.lazy(() =>
|
|
526
|
+
PersonalLoanPersonalApplicationRelationshipsAddress$outboundSchema
|
|
527
|
+
).optional(),
|
|
528
|
+
});
|
|
529
|
+
|
|
530
|
+
export function personalLoanPersonalApplicationRelationshipsCustomersRelationshipsToJSON(
|
|
531
|
+
personalLoanPersonalApplicationRelationshipsCustomersRelationships:
|
|
532
|
+
PersonalLoanPersonalApplicationRelationshipsCustomersRelationships,
|
|
533
|
+
): string {
|
|
534
|
+
return JSON.stringify(
|
|
535
|
+
PersonalLoanPersonalApplicationRelationshipsCustomersRelationships$outboundSchema
|
|
536
|
+
.parse(
|
|
537
|
+
personalLoanPersonalApplicationRelationshipsCustomersRelationships,
|
|
538
|
+
),
|
|
539
|
+
);
|
|
540
|
+
}
|
|
541
|
+
|
|
377
542
|
/** @internal */
|
|
378
543
|
export type PersonalLoanPersonalApplicationRelationshipsCustomersDataData$Outbound =
|
|
379
544
|
{
|
|
380
545
|
type: string;
|
|
381
|
-
attributes:
|
|
546
|
+
attributes: EmployerAttributes$Outbound;
|
|
547
|
+
relationships?:
|
|
548
|
+
| PersonalLoanPersonalApplicationRelationshipsCustomersRelationships$Outbound
|
|
549
|
+
| undefined;
|
|
382
550
|
links?: { [k: string]: LinkObject$Outbound } | undefined;
|
|
383
551
|
meta?: { [k: string]: any } | undefined;
|
|
384
552
|
};
|
|
@@ -392,7 +560,10 @@ export const PersonalLoanPersonalApplicationRelationshipsCustomersDataData$outbo
|
|
|
392
560
|
> = z.object({
|
|
393
561
|
type:
|
|
394
562
|
PersonalLoanPersonalApplicationRelationshipsCustomersDataRelationshipsType$outboundSchema,
|
|
395
|
-
attributes:
|
|
563
|
+
attributes: EmployerAttributes$outboundSchema,
|
|
564
|
+
relationships: z.lazy(() =>
|
|
565
|
+
PersonalLoanPersonalApplicationRelationshipsCustomersRelationships$outboundSchema
|
|
566
|
+
).optional(),
|
|
396
567
|
links: z.record(LinkObject$outboundSchema).optional(),
|
|
397
568
|
meta: z.record(z.any()).optional(),
|
|
398
569
|
});
|
|
@@ -408,12 +579,87 @@ export function personalLoanPersonalApplicationRelationshipsCustomersDataDataToJ
|
|
|
408
579
|
}
|
|
409
580
|
|
|
410
581
|
/** @internal */
|
|
411
|
-
export type
|
|
582
|
+
export type PersonalLoanPersonalApplicationRelationshipsEmployers$Outbound = {
|
|
412
583
|
data: Array<
|
|
413
584
|
PersonalLoanPersonalApplicationRelationshipsCustomersDataData$Outbound
|
|
414
585
|
>;
|
|
415
586
|
};
|
|
416
587
|
|
|
588
|
+
/** @internal */
|
|
589
|
+
export const PersonalLoanPersonalApplicationRelationshipsEmployers$outboundSchema:
|
|
590
|
+
z.ZodType<
|
|
591
|
+
PersonalLoanPersonalApplicationRelationshipsEmployers$Outbound,
|
|
592
|
+
z.ZodTypeDef,
|
|
593
|
+
PersonalLoanPersonalApplicationRelationshipsEmployers
|
|
594
|
+
> = z.object({
|
|
595
|
+
data: z.array(
|
|
596
|
+
z.lazy(() =>
|
|
597
|
+
PersonalLoanPersonalApplicationRelationshipsCustomersDataData$outboundSchema
|
|
598
|
+
),
|
|
599
|
+
),
|
|
600
|
+
});
|
|
601
|
+
|
|
602
|
+
export function personalLoanPersonalApplicationRelationshipsEmployersToJSON(
|
|
603
|
+
personalLoanPersonalApplicationRelationshipsEmployers:
|
|
604
|
+
PersonalLoanPersonalApplicationRelationshipsEmployers,
|
|
605
|
+
): string {
|
|
606
|
+
return JSON.stringify(
|
|
607
|
+
PersonalLoanPersonalApplicationRelationshipsEmployers$outboundSchema.parse(
|
|
608
|
+
personalLoanPersonalApplicationRelationshipsEmployers,
|
|
609
|
+
),
|
|
610
|
+
);
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
/** @internal */
|
|
614
|
+
export const PersonalLoanPersonalApplicationRelationshipsCustomersDataRelationshipsIncomeType$outboundSchema:
|
|
615
|
+
z.ZodNativeEnum<
|
|
616
|
+
typeof PersonalLoanPersonalApplicationRelationshipsCustomersDataRelationshipsIncomeType
|
|
617
|
+
> = z.nativeEnum(
|
|
618
|
+
PersonalLoanPersonalApplicationRelationshipsCustomersDataRelationshipsIncomeType,
|
|
619
|
+
);
|
|
620
|
+
|
|
621
|
+
/** @internal */
|
|
622
|
+
export type PersonalLoanPersonalApplicationRelationshipsCustomersDataRelationshipsData$Outbound =
|
|
623
|
+
{
|
|
624
|
+
type: string;
|
|
625
|
+
attributes: IncomeAttributes$Outbound;
|
|
626
|
+
links?: { [k: string]: LinkObject$Outbound } | undefined;
|
|
627
|
+
meta?: { [k: string]: any } | undefined;
|
|
628
|
+
};
|
|
629
|
+
|
|
630
|
+
/** @internal */
|
|
631
|
+
export const PersonalLoanPersonalApplicationRelationshipsCustomersDataRelationshipsData$outboundSchema:
|
|
632
|
+
z.ZodType<
|
|
633
|
+
PersonalLoanPersonalApplicationRelationshipsCustomersDataRelationshipsData$Outbound,
|
|
634
|
+
z.ZodTypeDef,
|
|
635
|
+
PersonalLoanPersonalApplicationRelationshipsCustomersDataRelationshipsData
|
|
636
|
+
> = z.object({
|
|
637
|
+
type:
|
|
638
|
+
PersonalLoanPersonalApplicationRelationshipsCustomersDataRelationshipsIncomeType$outboundSchema,
|
|
639
|
+
attributes: IncomeAttributes$outboundSchema,
|
|
640
|
+
links: z.record(LinkObject$outboundSchema).optional(),
|
|
641
|
+
meta: z.record(z.any()).optional(),
|
|
642
|
+
});
|
|
643
|
+
|
|
644
|
+
export function personalLoanPersonalApplicationRelationshipsCustomersDataRelationshipsDataToJSON(
|
|
645
|
+
personalLoanPersonalApplicationRelationshipsCustomersDataRelationshipsData:
|
|
646
|
+
PersonalLoanPersonalApplicationRelationshipsCustomersDataRelationshipsData,
|
|
647
|
+
): string {
|
|
648
|
+
return JSON.stringify(
|
|
649
|
+
PersonalLoanPersonalApplicationRelationshipsCustomersDataRelationshipsData$outboundSchema
|
|
650
|
+
.parse(
|
|
651
|
+
personalLoanPersonalApplicationRelationshipsCustomersDataRelationshipsData,
|
|
652
|
+
),
|
|
653
|
+
);
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
/** @internal */
|
|
657
|
+
export type PersonalLoanPersonalApplicationRelationshipsIncome$Outbound = {
|
|
658
|
+
data: Array<
|
|
659
|
+
PersonalLoanPersonalApplicationRelationshipsCustomersDataRelationshipsData$Outbound
|
|
660
|
+
>;
|
|
661
|
+
};
|
|
662
|
+
|
|
417
663
|
/** @internal */
|
|
418
664
|
export const PersonalLoanPersonalApplicationRelationshipsIncome$outboundSchema:
|
|
419
665
|
z.ZodType<
|
|
@@ -423,7 +669,7 @@ export const PersonalLoanPersonalApplicationRelationshipsIncome$outboundSchema:
|
|
|
423
669
|
> = z.object({
|
|
424
670
|
data: z.array(
|
|
425
671
|
z.lazy(() =>
|
|
426
|
-
|
|
672
|
+
PersonalLoanPersonalApplicationRelationshipsCustomersDataRelationshipsData$outboundSchema
|
|
427
673
|
),
|
|
428
674
|
),
|
|
429
675
|
});
|
|
@@ -448,7 +694,7 @@ export const PersonalLoanPersonalApplicationRelationshipsCustomersDataRelationsh
|
|
|
448
694
|
);
|
|
449
695
|
|
|
450
696
|
/** @internal */
|
|
451
|
-
export type
|
|
697
|
+
export type PersonalLoanPersonalApplicationRelationshipsCustomersDataRelationshipsLiabilitiesData$Outbound =
|
|
452
698
|
{
|
|
453
699
|
type: string;
|
|
454
700
|
attributes: CustomerLiabilityAttributes$Outbound;
|
|
@@ -457,11 +703,11 @@ export type PersonalLoanPersonalApplicationRelationshipsCustomersDataRelationshi
|
|
|
457
703
|
};
|
|
458
704
|
|
|
459
705
|
/** @internal */
|
|
460
|
-
export const
|
|
706
|
+
export const PersonalLoanPersonalApplicationRelationshipsCustomersDataRelationshipsLiabilitiesData$outboundSchema:
|
|
461
707
|
z.ZodType<
|
|
462
|
-
|
|
708
|
+
PersonalLoanPersonalApplicationRelationshipsCustomersDataRelationshipsLiabilitiesData$Outbound,
|
|
463
709
|
z.ZodTypeDef,
|
|
464
|
-
|
|
710
|
+
PersonalLoanPersonalApplicationRelationshipsCustomersDataRelationshipsLiabilitiesData
|
|
465
711
|
> = z.object({
|
|
466
712
|
type:
|
|
467
713
|
PersonalLoanPersonalApplicationRelationshipsCustomersDataRelationshipsLiabilitiesType$outboundSchema,
|
|
@@ -470,14 +716,14 @@ export const PersonalLoanPersonalApplicationRelationshipsCustomersDataRelationsh
|
|
|
470
716
|
meta: z.record(z.any()).optional(),
|
|
471
717
|
});
|
|
472
718
|
|
|
473
|
-
export function
|
|
474
|
-
|
|
475
|
-
|
|
719
|
+
export function personalLoanPersonalApplicationRelationshipsCustomersDataRelationshipsLiabilitiesDataToJSON(
|
|
720
|
+
personalLoanPersonalApplicationRelationshipsCustomersDataRelationshipsLiabilitiesData:
|
|
721
|
+
PersonalLoanPersonalApplicationRelationshipsCustomersDataRelationshipsLiabilitiesData,
|
|
476
722
|
): string {
|
|
477
723
|
return JSON.stringify(
|
|
478
|
-
|
|
724
|
+
PersonalLoanPersonalApplicationRelationshipsCustomersDataRelationshipsLiabilitiesData$outboundSchema
|
|
479
725
|
.parse(
|
|
480
|
-
|
|
726
|
+
personalLoanPersonalApplicationRelationshipsCustomersDataRelationshipsLiabilitiesData,
|
|
481
727
|
),
|
|
482
728
|
);
|
|
483
729
|
}
|
|
@@ -485,7 +731,7 @@ export function personalLoanPersonalApplicationRelationshipsCustomersDataRelatio
|
|
|
485
731
|
/** @internal */
|
|
486
732
|
export type PersonalLoanPersonalApplicationRelationshipsLiabilities$Outbound = {
|
|
487
733
|
data: Array<
|
|
488
|
-
|
|
734
|
+
PersonalLoanPersonalApplicationRelationshipsCustomersDataRelationshipsLiabilitiesData$Outbound
|
|
489
735
|
>;
|
|
490
736
|
};
|
|
491
737
|
|
|
@@ -498,7 +744,7 @@ export const PersonalLoanPersonalApplicationRelationshipsLiabilities$outboundSch
|
|
|
498
744
|
> = z.object({
|
|
499
745
|
data: z.array(
|
|
500
746
|
z.lazy(() =>
|
|
501
|
-
|
|
747
|
+
PersonalLoanPersonalApplicationRelationshipsCustomersDataRelationshipsLiabilitiesData$outboundSchema
|
|
502
748
|
),
|
|
503
749
|
),
|
|
504
750
|
});
|
|
@@ -669,6 +915,9 @@ export type PersonalLoanPersonalApplicationRelationshipsRelationships$Outbound =
|
|
|
669
915
|
addresses?:
|
|
670
916
|
| PersonalLoanPersonalApplicationRelationshipsAddresses$Outbound
|
|
671
917
|
| undefined;
|
|
918
|
+
employers?:
|
|
919
|
+
| PersonalLoanPersonalApplicationRelationshipsEmployers$Outbound
|
|
920
|
+
| undefined;
|
|
672
921
|
income?:
|
|
673
922
|
| PersonalLoanPersonalApplicationRelationshipsIncome$Outbound
|
|
674
923
|
| undefined;
|
|
@@ -693,6 +942,9 @@ export const PersonalLoanPersonalApplicationRelationshipsRelationships$outboundS
|
|
|
693
942
|
addresses: z.lazy(() =>
|
|
694
943
|
PersonalLoanPersonalApplicationRelationshipsAddresses$outboundSchema
|
|
695
944
|
).optional(),
|
|
945
|
+
employers: z.lazy(() =>
|
|
946
|
+
PersonalLoanPersonalApplicationRelationshipsEmployers$outboundSchema
|
|
947
|
+
).optional(),
|
|
696
948
|
income: z.lazy(() =>
|
|
697
949
|
PersonalLoanPersonalApplicationRelationshipsIncome$outboundSchema
|
|
698
950
|
).optional(),
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"incremental": false,
|
|
4
|
+
"target": "ES2020",
|
|
5
|
+
"lib": ["ES2022", "DOM", "DOM.Iterable"],
|
|
6
|
+
"jsx": "react-jsx",
|
|
7
|
+
|
|
8
|
+
"module": "Node16",
|
|
9
|
+
"moduleResolution": "Node16",
|
|
10
|
+
|
|
11
|
+
"allowJs": true,
|
|
12
|
+
|
|
13
|
+
"declaration": true,
|
|
14
|
+
"declarationMap": true,
|
|
15
|
+
"sourceMap": true,
|
|
16
|
+
"outDir": ".",
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
// https://github.com/tsconfig/bases/blob/a1bf7c0fa2e094b068ca3e1448ca2ece4157977e/bases/strictest.json
|
|
20
|
+
"strict": true,
|
|
21
|
+
"allowUnusedLabels": false,
|
|
22
|
+
"allowUnreachableCode": false,
|
|
23
|
+
"exactOptionalPropertyTypes": true,
|
|
24
|
+
"useUnknownInCatchVariables": true,
|
|
25
|
+
"noFallthroughCasesInSwitch": true,
|
|
26
|
+
"noImplicitOverride": true,
|
|
27
|
+
"noImplicitReturns": true,
|
|
28
|
+
"noPropertyAccessFromIndexSignature": true,
|
|
29
|
+
"noUncheckedIndexedAccess": true,
|
|
30
|
+
"noUnusedLocals": true,
|
|
31
|
+
"noUnusedParameters": true,
|
|
32
|
+
"isolatedModules": true,
|
|
33
|
+
"checkJs": true,
|
|
34
|
+
"esModuleInterop": true,
|
|
35
|
+
"skipLibCheck": true,
|
|
36
|
+
"forceConsistentCasingInFileNames": true
|
|
37
|
+
},
|
|
38
|
+
"include": ["src"],
|
|
39
|
+
"exclude": ["node_modules"]
|
|
40
|
+
}
|