@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
|
@@ -29,6 +29,11 @@ import {
|
|
|
29
29
|
CustomerLiabilityAttributes$Outbound,
|
|
30
30
|
CustomerLiabilityAttributes$outboundSchema,
|
|
31
31
|
} from "./customerliabilityattributes.js";
|
|
32
|
+
import {
|
|
33
|
+
EmployerAttributes,
|
|
34
|
+
EmployerAttributes$Outbound,
|
|
35
|
+
EmployerAttributes$outboundSchema,
|
|
36
|
+
} from "./employerattributes.js";
|
|
32
37
|
import {
|
|
33
38
|
ExpenseAttributes,
|
|
34
39
|
ExpenseAttributes$Outbound,
|
|
@@ -104,17 +109,74 @@ export type ConsumerSecuredLoanConsumerApplicationRelationshipsAddresses = {
|
|
|
104
109
|
|
|
105
110
|
export const ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsType =
|
|
106
111
|
{
|
|
107
|
-
|
|
112
|
+
Employers: "employers",
|
|
108
113
|
} as const;
|
|
109
114
|
export type ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsType =
|
|
110
115
|
ClosedEnum<
|
|
111
116
|
typeof ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsType
|
|
112
117
|
>;
|
|
113
118
|
|
|
119
|
+
export const ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsEmployersType =
|
|
120
|
+
{
|
|
121
|
+
Addresses: "addresses",
|
|
122
|
+
} as const;
|
|
123
|
+
export type ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsEmployersType =
|
|
124
|
+
ClosedEnum<
|
|
125
|
+
typeof ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsEmployersType
|
|
126
|
+
>;
|
|
127
|
+
|
|
128
|
+
export type ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsEmployersData =
|
|
129
|
+
{
|
|
130
|
+
type:
|
|
131
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsEmployersType;
|
|
132
|
+
attributes: AddressAttributes;
|
|
133
|
+
links?: { [k: string]: LinkObject } | undefined;
|
|
134
|
+
meta?: { [k: string]: any } | undefined;
|
|
135
|
+
};
|
|
136
|
+
|
|
137
|
+
export type ConsumerSecuredLoanConsumerApplicationRelationshipsAddress = {
|
|
138
|
+
data:
|
|
139
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsEmployersData;
|
|
140
|
+
};
|
|
141
|
+
|
|
142
|
+
export type ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersRelationships =
|
|
143
|
+
{
|
|
144
|
+
address?:
|
|
145
|
+
| ConsumerSecuredLoanConsumerApplicationRelationshipsAddress
|
|
146
|
+
| undefined;
|
|
147
|
+
};
|
|
148
|
+
|
|
114
149
|
export type ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData =
|
|
115
150
|
{
|
|
116
151
|
type:
|
|
117
152
|
ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsType;
|
|
153
|
+
attributes: EmployerAttributes;
|
|
154
|
+
relationships?:
|
|
155
|
+
| ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersRelationships
|
|
156
|
+
| undefined;
|
|
157
|
+
links?: { [k: string]: LinkObject } | undefined;
|
|
158
|
+
meta?: { [k: string]: any } | undefined;
|
|
159
|
+
};
|
|
160
|
+
|
|
161
|
+
export type ConsumerSecuredLoanConsumerApplicationRelationshipsEmployers = {
|
|
162
|
+
data: Array<
|
|
163
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData
|
|
164
|
+
>;
|
|
165
|
+
};
|
|
166
|
+
|
|
167
|
+
export const ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsIncomeType =
|
|
168
|
+
{
|
|
169
|
+
Income: "income",
|
|
170
|
+
} as const;
|
|
171
|
+
export type ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsIncomeType =
|
|
172
|
+
ClosedEnum<
|
|
173
|
+
typeof ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsIncomeType
|
|
174
|
+
>;
|
|
175
|
+
|
|
176
|
+
export type ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsData =
|
|
177
|
+
{
|
|
178
|
+
type:
|
|
179
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsIncomeType;
|
|
118
180
|
attributes: IncomeAttributes;
|
|
119
181
|
links?: { [k: string]: LinkObject } | undefined;
|
|
120
182
|
meta?: { [k: string]: any } | undefined;
|
|
@@ -122,7 +184,7 @@ export type ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData
|
|
|
122
184
|
|
|
123
185
|
export type Income = {
|
|
124
186
|
data: Array<
|
|
125
|
-
|
|
187
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsData
|
|
126
188
|
>;
|
|
127
189
|
};
|
|
128
190
|
|
|
@@ -135,7 +197,7 @@ export type ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRela
|
|
|
135
197
|
typeof ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsLiabilitiesType
|
|
136
198
|
>;
|
|
137
199
|
|
|
138
|
-
export type
|
|
200
|
+
export type ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsLiabilitiesData =
|
|
139
201
|
{
|
|
140
202
|
type:
|
|
141
203
|
ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsLiabilitiesType;
|
|
@@ -146,7 +208,7 @@ export type ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRela
|
|
|
146
208
|
|
|
147
209
|
export type ConsumerSecuredLoanConsumerApplicationRelationshipsLiabilities = {
|
|
148
210
|
data: Array<
|
|
149
|
-
|
|
211
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsLiabilitiesData
|
|
150
212
|
>;
|
|
151
213
|
};
|
|
152
214
|
|
|
@@ -202,6 +264,9 @@ export type ConsumerSecuredLoanConsumerApplicationRelationshipsRelationships = {
|
|
|
202
264
|
addresses?:
|
|
203
265
|
| ConsumerSecuredLoanConsumerApplicationRelationshipsAddresses
|
|
204
266
|
| undefined;
|
|
267
|
+
employers?:
|
|
268
|
+
| ConsumerSecuredLoanConsumerApplicationRelationshipsEmployers
|
|
269
|
+
| undefined;
|
|
205
270
|
income?: Income | undefined;
|
|
206
271
|
liabilities?:
|
|
207
272
|
| ConsumerSecuredLoanConsumerApplicationRelationshipsLiabilities
|
|
@@ -418,11 +483,118 @@ export const ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRel
|
|
|
418
483
|
ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsType,
|
|
419
484
|
);
|
|
420
485
|
|
|
486
|
+
/** @internal */
|
|
487
|
+
export const ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsEmployersType$outboundSchema:
|
|
488
|
+
z.ZodNativeEnum<
|
|
489
|
+
typeof ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsEmployersType
|
|
490
|
+
> = z.nativeEnum(
|
|
491
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsEmployersType,
|
|
492
|
+
);
|
|
493
|
+
|
|
494
|
+
/** @internal */
|
|
495
|
+
export type ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsEmployersData$Outbound =
|
|
496
|
+
{
|
|
497
|
+
type: string;
|
|
498
|
+
attributes: AddressAttributes$Outbound;
|
|
499
|
+
links?: { [k: string]: LinkObject$Outbound } | undefined;
|
|
500
|
+
meta?: { [k: string]: any } | undefined;
|
|
501
|
+
};
|
|
502
|
+
|
|
503
|
+
/** @internal */
|
|
504
|
+
export const ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsEmployersData$outboundSchema:
|
|
505
|
+
z.ZodType<
|
|
506
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsEmployersData$Outbound,
|
|
507
|
+
z.ZodTypeDef,
|
|
508
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsEmployersData
|
|
509
|
+
> = z.object({
|
|
510
|
+
type:
|
|
511
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsEmployersType$outboundSchema,
|
|
512
|
+
attributes: AddressAttributes$outboundSchema,
|
|
513
|
+
links: z.record(LinkObject$outboundSchema).optional(),
|
|
514
|
+
meta: z.record(z.any()).optional(),
|
|
515
|
+
});
|
|
516
|
+
|
|
517
|
+
export function consumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsEmployersDataToJSON(
|
|
518
|
+
consumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsEmployersData:
|
|
519
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsEmployersData,
|
|
520
|
+
): string {
|
|
521
|
+
return JSON.stringify(
|
|
522
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsEmployersData$outboundSchema
|
|
523
|
+
.parse(
|
|
524
|
+
consumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsEmployersData,
|
|
525
|
+
),
|
|
526
|
+
);
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
/** @internal */
|
|
530
|
+
export type ConsumerSecuredLoanConsumerApplicationRelationshipsAddress$Outbound =
|
|
531
|
+
{
|
|
532
|
+
data:
|
|
533
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsEmployersData$Outbound;
|
|
534
|
+
};
|
|
535
|
+
|
|
536
|
+
/** @internal */
|
|
537
|
+
export const ConsumerSecuredLoanConsumerApplicationRelationshipsAddress$outboundSchema:
|
|
538
|
+
z.ZodType<
|
|
539
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsAddress$Outbound,
|
|
540
|
+
z.ZodTypeDef,
|
|
541
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsAddress
|
|
542
|
+
> = z.object({
|
|
543
|
+
data: z.lazy(() =>
|
|
544
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsEmployersData$outboundSchema
|
|
545
|
+
),
|
|
546
|
+
});
|
|
547
|
+
|
|
548
|
+
export function consumerSecuredLoanConsumerApplicationRelationshipsAddressToJSON(
|
|
549
|
+
consumerSecuredLoanConsumerApplicationRelationshipsAddress:
|
|
550
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsAddress,
|
|
551
|
+
): string {
|
|
552
|
+
return JSON.stringify(
|
|
553
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsAddress$outboundSchema
|
|
554
|
+
.parse(consumerSecuredLoanConsumerApplicationRelationshipsAddress),
|
|
555
|
+
);
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
/** @internal */
|
|
559
|
+
export type ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersRelationships$Outbound =
|
|
560
|
+
{
|
|
561
|
+
address?:
|
|
562
|
+
| ConsumerSecuredLoanConsumerApplicationRelationshipsAddress$Outbound
|
|
563
|
+
| undefined;
|
|
564
|
+
};
|
|
565
|
+
|
|
566
|
+
/** @internal */
|
|
567
|
+
export const ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersRelationships$outboundSchema:
|
|
568
|
+
z.ZodType<
|
|
569
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersRelationships$Outbound,
|
|
570
|
+
z.ZodTypeDef,
|
|
571
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersRelationships
|
|
572
|
+
> = z.object({
|
|
573
|
+
address: z.lazy(() =>
|
|
574
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsAddress$outboundSchema
|
|
575
|
+
).optional(),
|
|
576
|
+
});
|
|
577
|
+
|
|
578
|
+
export function consumerSecuredLoanConsumerApplicationRelationshipsCustomersRelationshipsToJSON(
|
|
579
|
+
consumerSecuredLoanConsumerApplicationRelationshipsCustomersRelationships:
|
|
580
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersRelationships,
|
|
581
|
+
): string {
|
|
582
|
+
return JSON.stringify(
|
|
583
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersRelationships$outboundSchema
|
|
584
|
+
.parse(
|
|
585
|
+
consumerSecuredLoanConsumerApplicationRelationshipsCustomersRelationships,
|
|
586
|
+
),
|
|
587
|
+
);
|
|
588
|
+
}
|
|
589
|
+
|
|
421
590
|
/** @internal */
|
|
422
591
|
export type ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData$Outbound =
|
|
423
592
|
{
|
|
424
593
|
type: string;
|
|
425
|
-
attributes:
|
|
594
|
+
attributes: EmployerAttributes$Outbound;
|
|
595
|
+
relationships?:
|
|
596
|
+
| ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersRelationships$Outbound
|
|
597
|
+
| undefined;
|
|
426
598
|
links?: { [k: string]: LinkObject$Outbound } | undefined;
|
|
427
599
|
meta?: { [k: string]: any } | undefined;
|
|
428
600
|
};
|
|
@@ -436,7 +608,10 @@ export const ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataDat
|
|
|
436
608
|
> = z.object({
|
|
437
609
|
type:
|
|
438
610
|
ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsType$outboundSchema,
|
|
439
|
-
attributes:
|
|
611
|
+
attributes: EmployerAttributes$outboundSchema,
|
|
612
|
+
relationships: z.lazy(() =>
|
|
613
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersRelationships$outboundSchema
|
|
614
|
+
).optional(),
|
|
440
615
|
links: z.record(LinkObject$outboundSchema).optional(),
|
|
441
616
|
meta: z.record(z.any()).optional(),
|
|
442
617
|
});
|
|
@@ -453,10 +628,85 @@ export function consumerSecuredLoanConsumerApplicationRelationshipsCustomersData
|
|
|
453
628
|
);
|
|
454
629
|
}
|
|
455
630
|
|
|
631
|
+
/** @internal */
|
|
632
|
+
export type ConsumerSecuredLoanConsumerApplicationRelationshipsEmployers$Outbound =
|
|
633
|
+
{
|
|
634
|
+
data: Array<
|
|
635
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData$Outbound
|
|
636
|
+
>;
|
|
637
|
+
};
|
|
638
|
+
|
|
639
|
+
/** @internal */
|
|
640
|
+
export const ConsumerSecuredLoanConsumerApplicationRelationshipsEmployers$outboundSchema:
|
|
641
|
+
z.ZodType<
|
|
642
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsEmployers$Outbound,
|
|
643
|
+
z.ZodTypeDef,
|
|
644
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsEmployers
|
|
645
|
+
> = z.object({
|
|
646
|
+
data: z.array(
|
|
647
|
+
z.lazy(() =>
|
|
648
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData$outboundSchema
|
|
649
|
+
),
|
|
650
|
+
),
|
|
651
|
+
});
|
|
652
|
+
|
|
653
|
+
export function consumerSecuredLoanConsumerApplicationRelationshipsEmployersToJSON(
|
|
654
|
+
consumerSecuredLoanConsumerApplicationRelationshipsEmployers:
|
|
655
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsEmployers,
|
|
656
|
+
): string {
|
|
657
|
+
return JSON.stringify(
|
|
658
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsEmployers$outboundSchema
|
|
659
|
+
.parse(consumerSecuredLoanConsumerApplicationRelationshipsEmployers),
|
|
660
|
+
);
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
/** @internal */
|
|
664
|
+
export const ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsIncomeType$outboundSchema:
|
|
665
|
+
z.ZodNativeEnum<
|
|
666
|
+
typeof ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsIncomeType
|
|
667
|
+
> = z.nativeEnum(
|
|
668
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsIncomeType,
|
|
669
|
+
);
|
|
670
|
+
|
|
671
|
+
/** @internal */
|
|
672
|
+
export type ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsData$Outbound =
|
|
673
|
+
{
|
|
674
|
+
type: string;
|
|
675
|
+
attributes: IncomeAttributes$Outbound;
|
|
676
|
+
links?: { [k: string]: LinkObject$Outbound } | undefined;
|
|
677
|
+
meta?: { [k: string]: any } | undefined;
|
|
678
|
+
};
|
|
679
|
+
|
|
680
|
+
/** @internal */
|
|
681
|
+
export const ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsData$outboundSchema:
|
|
682
|
+
z.ZodType<
|
|
683
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsData$Outbound,
|
|
684
|
+
z.ZodTypeDef,
|
|
685
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsData
|
|
686
|
+
> = z.object({
|
|
687
|
+
type:
|
|
688
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsIncomeType$outboundSchema,
|
|
689
|
+
attributes: IncomeAttributes$outboundSchema,
|
|
690
|
+
links: z.record(LinkObject$outboundSchema).optional(),
|
|
691
|
+
meta: z.record(z.any()).optional(),
|
|
692
|
+
});
|
|
693
|
+
|
|
694
|
+
export function consumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsDataToJSON(
|
|
695
|
+
consumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsData:
|
|
696
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsData,
|
|
697
|
+
): string {
|
|
698
|
+
return JSON.stringify(
|
|
699
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsData$outboundSchema
|
|
700
|
+
.parse(
|
|
701
|
+
consumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsData,
|
|
702
|
+
),
|
|
703
|
+
);
|
|
704
|
+
}
|
|
705
|
+
|
|
456
706
|
/** @internal */
|
|
457
707
|
export type Income$Outbound = {
|
|
458
708
|
data: Array<
|
|
459
|
-
|
|
709
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsData$Outbound
|
|
460
710
|
>;
|
|
461
711
|
};
|
|
462
712
|
|
|
@@ -468,7 +718,7 @@ export const Income$outboundSchema: z.ZodType<
|
|
|
468
718
|
> = z.object({
|
|
469
719
|
data: z.array(
|
|
470
720
|
z.lazy(() =>
|
|
471
|
-
|
|
721
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsData$outboundSchema
|
|
472
722
|
),
|
|
473
723
|
),
|
|
474
724
|
});
|
|
@@ -486,7 +736,7 @@ export const ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRel
|
|
|
486
736
|
);
|
|
487
737
|
|
|
488
738
|
/** @internal */
|
|
489
|
-
export type
|
|
739
|
+
export type ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsLiabilitiesData$Outbound =
|
|
490
740
|
{
|
|
491
741
|
type: string;
|
|
492
742
|
attributes: CustomerLiabilityAttributes$Outbound;
|
|
@@ -495,11 +745,11 @@ export type ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRela
|
|
|
495
745
|
};
|
|
496
746
|
|
|
497
747
|
/** @internal */
|
|
498
|
-
export const
|
|
748
|
+
export const ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsLiabilitiesData$outboundSchema:
|
|
499
749
|
z.ZodType<
|
|
500
|
-
|
|
750
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsLiabilitiesData$Outbound,
|
|
501
751
|
z.ZodTypeDef,
|
|
502
|
-
|
|
752
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsLiabilitiesData
|
|
503
753
|
> = z.object({
|
|
504
754
|
type:
|
|
505
755
|
ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsLiabilitiesType$outboundSchema,
|
|
@@ -508,14 +758,14 @@ export const ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRel
|
|
|
508
758
|
meta: z.record(z.any()).optional(),
|
|
509
759
|
});
|
|
510
760
|
|
|
511
|
-
export function
|
|
512
|
-
|
|
513
|
-
|
|
761
|
+
export function consumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsLiabilitiesDataToJSON(
|
|
762
|
+
consumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsLiabilitiesData:
|
|
763
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsLiabilitiesData,
|
|
514
764
|
): string {
|
|
515
765
|
return JSON.stringify(
|
|
516
|
-
|
|
766
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsLiabilitiesData$outboundSchema
|
|
517
767
|
.parse(
|
|
518
|
-
|
|
768
|
+
consumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsLiabilitiesData,
|
|
519
769
|
),
|
|
520
770
|
);
|
|
521
771
|
}
|
|
@@ -524,7 +774,7 @@ export function consumerSecuredLoanConsumerApplicationRelationshipsCustomersData
|
|
|
524
774
|
export type ConsumerSecuredLoanConsumerApplicationRelationshipsLiabilities$Outbound =
|
|
525
775
|
{
|
|
526
776
|
data: Array<
|
|
527
|
-
|
|
777
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsLiabilitiesData$Outbound
|
|
528
778
|
>;
|
|
529
779
|
};
|
|
530
780
|
|
|
@@ -537,7 +787,7 @@ export const ConsumerSecuredLoanConsumerApplicationRelationshipsLiabilities$outb
|
|
|
537
787
|
> = z.object({
|
|
538
788
|
data: z.array(
|
|
539
789
|
z.lazy(() =>
|
|
540
|
-
|
|
790
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsLiabilitiesData$outboundSchema
|
|
541
791
|
),
|
|
542
792
|
),
|
|
543
793
|
});
|
|
@@ -700,6 +950,9 @@ export type ConsumerSecuredLoanConsumerApplicationRelationshipsRelationships$Out
|
|
|
700
950
|
addresses?:
|
|
701
951
|
| ConsumerSecuredLoanConsumerApplicationRelationshipsAddresses$Outbound
|
|
702
952
|
| undefined;
|
|
953
|
+
employers?:
|
|
954
|
+
| ConsumerSecuredLoanConsumerApplicationRelationshipsEmployers$Outbound
|
|
955
|
+
| undefined;
|
|
703
956
|
income?: Income$Outbound | undefined;
|
|
704
957
|
liabilities?:
|
|
705
958
|
| ConsumerSecuredLoanConsumerApplicationRelationshipsLiabilities$Outbound
|
|
@@ -720,6 +973,9 @@ export const ConsumerSecuredLoanConsumerApplicationRelationshipsRelationships$ou
|
|
|
720
973
|
addresses: z.lazy(() =>
|
|
721
974
|
ConsumerSecuredLoanConsumerApplicationRelationshipsAddresses$outboundSchema
|
|
722
975
|
).optional(),
|
|
976
|
+
employers: z.lazy(() =>
|
|
977
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsEmployers$outboundSchema
|
|
978
|
+
).optional(),
|
|
723
979
|
income: z.lazy(() => Income$outboundSchema).optional(),
|
|
724
980
|
liabilities: z.lazy(() =>
|
|
725
981
|
ConsumerSecuredLoanConsumerApplicationRelationshipsLiabilities$outboundSchema
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { AbnStatus, AbnStatus$outboundSchema } from "./abnstatus.js";
|
|
7
|
+
import {
|
|
8
|
+
EmploymentStatus,
|
|
9
|
+
EmploymentStatus$outboundSchema,
|
|
10
|
+
} from "./employmentstatus.js";
|
|
11
|
+
import {
|
|
12
|
+
EmploymentType,
|
|
13
|
+
EmploymentType$outboundSchema,
|
|
14
|
+
} from "./employmenttype.js";
|
|
15
|
+
import { EntityType, EntityType$outboundSchema } from "./entitytype.js";
|
|
16
|
+
import { Industry, Industry$outboundSchema } from "./industry.js";
|
|
17
|
+
import { Occupation, Occupation$outboundSchema } from "./occupation.js";
|
|
18
|
+
|
|
19
|
+
export type EmployerAttributes = {
|
|
20
|
+
businessNames?: Array<string> | undefined;
|
|
21
|
+
entityName?: string | undefined;
|
|
22
|
+
status?: EmploymentStatus | undefined;
|
|
23
|
+
abn?: string | undefined;
|
|
24
|
+
acn?: string | undefined;
|
|
25
|
+
entityType?: EntityType | undefined;
|
|
26
|
+
/**
|
|
27
|
+
* Format YYYY-MM-DD
|
|
28
|
+
*/
|
|
29
|
+
gstRegistrationDate?: string | undefined;
|
|
30
|
+
abnStatus?: AbnStatus | undefined;
|
|
31
|
+
employmentType?: EmploymentType | undefined;
|
|
32
|
+
employmentDurationMonths?: number | undefined;
|
|
33
|
+
occupation?: Occupation | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* The name of the manager of the employer
|
|
36
|
+
*/
|
|
37
|
+
managerName?: string | undefined;
|
|
38
|
+
industry?: Industry | undefined;
|
|
39
|
+
/**
|
|
40
|
+
* The email address of the employer
|
|
41
|
+
*/
|
|
42
|
+
email?: string | undefined;
|
|
43
|
+
/**
|
|
44
|
+
* The phone number of the employer
|
|
45
|
+
*/
|
|
46
|
+
phoneNumber?: string | undefined;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
/** @internal */
|
|
50
|
+
export type EmployerAttributes$Outbound = {
|
|
51
|
+
businessNames?: Array<string> | undefined;
|
|
52
|
+
entityName?: string | undefined;
|
|
53
|
+
status?: string | undefined;
|
|
54
|
+
abn?: string | undefined;
|
|
55
|
+
acn?: string | undefined;
|
|
56
|
+
entityType?: string | undefined;
|
|
57
|
+
gstRegistrationDate?: string | undefined;
|
|
58
|
+
abnStatus?: string | undefined;
|
|
59
|
+
employmentType?: string | undefined;
|
|
60
|
+
employmentDurationMonths?: number | undefined;
|
|
61
|
+
occupation?: string | undefined;
|
|
62
|
+
managerName?: string | undefined;
|
|
63
|
+
industry?: string | undefined;
|
|
64
|
+
email?: string | undefined;
|
|
65
|
+
phoneNumber?: string | undefined;
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
/** @internal */
|
|
69
|
+
export const EmployerAttributes$outboundSchema: z.ZodType<
|
|
70
|
+
EmployerAttributes$Outbound,
|
|
71
|
+
z.ZodTypeDef,
|
|
72
|
+
EmployerAttributes
|
|
73
|
+
> = z.object({
|
|
74
|
+
businessNames: z.array(z.string()).optional(),
|
|
75
|
+
entityName: z.string().optional(),
|
|
76
|
+
status: EmploymentStatus$outboundSchema.optional(),
|
|
77
|
+
abn: z.string().optional(),
|
|
78
|
+
acn: z.string().optional(),
|
|
79
|
+
entityType: EntityType$outboundSchema.optional(),
|
|
80
|
+
gstRegistrationDate: z.string().optional(),
|
|
81
|
+
abnStatus: AbnStatus$outboundSchema.optional(),
|
|
82
|
+
employmentType: EmploymentType$outboundSchema.optional(),
|
|
83
|
+
employmentDurationMonths: z.number().int().optional(),
|
|
84
|
+
occupation: Occupation$outboundSchema.optional(),
|
|
85
|
+
managerName: z.string().optional(),
|
|
86
|
+
industry: Industry$outboundSchema.optional(),
|
|
87
|
+
email: z.string().optional(),
|
|
88
|
+
phoneNumber: z.string().optional(),
|
|
89
|
+
});
|
|
90
|
+
|
|
91
|
+
export function employerAttributesToJSON(
|
|
92
|
+
employerAttributes: EmployerAttributes,
|
|
93
|
+
): string {
|
|
94
|
+
return JSON.stringify(
|
|
95
|
+
EmployerAttributes$outboundSchema.parse(employerAttributes),
|
|
96
|
+
);
|
|
97
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
7
|
+
|
|
8
|
+
export const EmploymentStatus = {
|
|
9
|
+
Current: "CURRENT",
|
|
10
|
+
Previous: "PREVIOUS",
|
|
11
|
+
} as const;
|
|
12
|
+
export type EmploymentStatus = ClosedEnum<typeof EmploymentStatus>;
|
|
13
|
+
|
|
14
|
+
/** @internal */
|
|
15
|
+
export const EmploymentStatus$outboundSchema: z.ZodNativeEnum<
|
|
16
|
+
typeof EmploymentStatus
|
|
17
|
+
> = z.nativeEnum(EmploymentStatus);
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
7
|
+
|
|
8
|
+
export const EmploymentType = {
|
|
9
|
+
FullTime: "FULL_TIME",
|
|
10
|
+
PartTime: "PART_TIME",
|
|
11
|
+
Casual: "CASUAL",
|
|
12
|
+
Contract: "CONTRACT",
|
|
13
|
+
SelfEmployed: "SELF_EMPLOYED",
|
|
14
|
+
Benefits: "BENEFITS",
|
|
15
|
+
Unemployed: "UNEMPLOYED",
|
|
16
|
+
} as const;
|
|
17
|
+
export type EmploymentType = ClosedEnum<typeof EmploymentType>;
|
|
18
|
+
|
|
19
|
+
/** @internal */
|
|
20
|
+
export const EmploymentType$outboundSchema: z.ZodNativeEnum<
|
|
21
|
+
typeof EmploymentType
|
|
22
|
+
> = z.nativeEnum(EmploymentType);
|
|
@@ -29,7 +29,7 @@ export type State = ClosedEnum<typeof State>;
|
|
|
29
29
|
/**
|
|
30
30
|
* Derived from ABR lookup.
|
|
31
31
|
*/
|
|
32
|
-
export const
|
|
32
|
+
export const EntityAttributesAbnStatus = {
|
|
33
33
|
Active: "active",
|
|
34
34
|
Registered: "registered",
|
|
35
35
|
Cancelled: "cancelled",
|
|
@@ -37,7 +37,9 @@ export const AbnStatus = {
|
|
|
37
37
|
/**
|
|
38
38
|
* Derived from ABR lookup.
|
|
39
39
|
*/
|
|
40
|
-
export type
|
|
40
|
+
export type EntityAttributesAbnStatus = ClosedEnum<
|
|
41
|
+
typeof EntityAttributesAbnStatus
|
|
42
|
+
>;
|
|
41
43
|
|
|
42
44
|
export type EntityAttributes = {
|
|
43
45
|
id?: string | undefined;
|
|
@@ -66,7 +68,7 @@ export type EntityAttributes = {
|
|
|
66
68
|
/**
|
|
67
69
|
* Derived from ABR lookup.
|
|
68
70
|
*/
|
|
69
|
-
abnStatus?:
|
|
71
|
+
abnStatus?: EntityAttributesAbnStatus | undefined;
|
|
70
72
|
/**
|
|
71
73
|
* Derived from ABR lookup. Format YYYY-MM-DD
|
|
72
74
|
*/
|
|
@@ -91,8 +93,9 @@ export const State$inboundSchema: z.ZodNativeEnum<typeof State> = z.nativeEnum(
|
|
|
91
93
|
);
|
|
92
94
|
|
|
93
95
|
/** @internal */
|
|
94
|
-
export const
|
|
95
|
-
|
|
96
|
+
export const EntityAttributesAbnStatus$inboundSchema: z.ZodNativeEnum<
|
|
97
|
+
typeof EntityAttributesAbnStatus
|
|
98
|
+
> = z.nativeEnum(EntityAttributesAbnStatus);
|
|
96
99
|
|
|
97
100
|
/** @internal */
|
|
98
101
|
export const EntityAttributes$inboundSchema: z.ZodType<
|
|
@@ -108,7 +111,7 @@ export const EntityAttributes$inboundSchema: z.ZodType<
|
|
|
108
111
|
state: State$inboundSchema.optional(),
|
|
109
112
|
entityType: z.string().optional(),
|
|
110
113
|
gst: z.string().optional(),
|
|
111
|
-
abnStatus:
|
|
114
|
+
abnStatus: EntityAttributesAbnStatus$inboundSchema.optional(),
|
|
112
115
|
abnStatusEffectiveFrom: z.string().optional(),
|
|
113
116
|
timeInBusiness: z.number().int().optional(),
|
|
114
117
|
turnover: z.number().int().optional(),
|