@financeable/aggregation 0.8.0 → 0.8.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.
- package/README.md +1 -0
- package/docs/sdks/applications/README.md +2 -2
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/commercialsecuredloanassetattributes.d.ts +164 -18
- package/models/components/commercialsecuredloanassetattributes.d.ts.map +1 -1
- package/models/components/commercialsecuredloanassetattributes.js +163 -13
- package/models/components/commercialsecuredloanassetattributes.js.map +1 -1
- package/models/components/commercialsecuredloantypeofsale.d.ts +40 -0
- package/models/components/commercialsecuredloantypeofsale.d.ts.map +1 -0
- package/models/components/commercialsecuredloantypeofsale.js +64 -0
- package/models/components/commercialsecuredloantypeofsale.js.map +1 -0
- package/models/components/consumersecuredloanassetattributes.d.ts +164 -18
- package/models/components/consumersecuredloanassetattributes.d.ts.map +1 -1
- package/models/components/consumersecuredloanassetattributes.js +163 -13
- package/models/components/consumersecuredloanassetattributes.js.map +1 -1
- package/models/components/consumersecuredloanconsumerapplicationrelationships.d.ts +199 -21
- package/models/components/consumersecuredloanconsumerapplicationrelationships.d.ts.map +1 -1
- package/models/components/consumersecuredloanconsumerapplicationrelationships.js +192 -25
- package/models/components/consumersecuredloanconsumerapplicationrelationships.js.map +1 -1
- package/models/components/consumersecuredloantypeofsale.d.ts +40 -0
- package/models/components/consumersecuredloantypeofsale.d.ts.map +1 -0
- package/models/components/consumersecuredloantypeofsale.js +64 -0
- package/models/components/consumersecuredloantypeofsale.js.map +1 -0
- package/models/components/customerattributes.d.ts +3 -0
- package/models/components/customerattributes.d.ts.map +1 -1
- package/models/components/customerattributes.js +3 -0
- package/models/components/customerattributes.js.map +1 -1
- package/models/components/expenseattributes.d.ts +38 -0
- package/models/components/expenseattributes.d.ts.map +1 -0
- package/models/components/expenseattributes.js +78 -0
- package/models/components/expenseattributes.js.map +1 -0
- package/models/components/expensefrequency.d.ts +31 -0
- package/models/components/expensefrequency.d.ts.map +1 -0
- package/models/components/expensefrequency.js +61 -0
- package/models/components/expensefrequency.js.map +1 -0
- package/models/components/expensetype.d.ts +79 -0
- package/models/components/expensetype.d.ts.map +1 -0
- package/models/components/expensetype.js +78 -0
- package/models/components/expensetype.js.map +1 -0
- package/models/components/incomeattributes.d.ts +38 -0
- package/models/components/incomeattributes.d.ts.map +1 -0
- package/models/components/incomeattributes.js +78 -0
- package/models/components/incomeattributes.js.map +1 -0
- package/models/components/incomefrequency.d.ts +34 -0
- package/models/components/incomefrequency.d.ts.map +1 -0
- package/models/components/incomefrequency.js +62 -0
- package/models/components/incomefrequency.js.map +1 -0
- package/models/components/incometype.d.ts +49 -0
- package/models/components/incometype.d.ts.map +1 -0
- package/models/components/incometype.js +68 -0
- package/models/components/incometype.js.map +1 -0
- package/models/components/index.d.ts +8 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +8 -0
- package/models/components/index.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +2 -2
- package/src/models/components/commercialsecuredloanassetattributes.ts +347 -30
- package/src/models/components/commercialsecuredloantypeofsale.ts +39 -0
- package/src/models/components/consumersecuredloanassetattributes.ts +474 -30
- package/src/models/components/consumersecuredloanconsumerapplicationrelationships.ts +436 -35
- package/src/models/components/consumersecuredloantypeofsale.ts +39 -0
- package/src/models/components/customerattributes.ts +10 -0
- package/src/models/components/expenseattributes.ts +94 -0
- package/src/models/components/expensefrequency.ts +34 -0
- package/src/models/components/expensetype.ts +48 -0
- package/src/models/components/incomeattributes.ts +94 -0
- package/src/models/components/incomefrequency.ts +35 -0
- package/src/models/components/incometype.ts +38 -0
- package/src/models/components/index.ts +8 -0
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
7
|
+
|
|
8
|
+
export const ConsumerSecuredLoanTypeOfSale = {
|
|
9
|
+
AuthorisedSeller: "AUTHORISED_SELLER",
|
|
10
|
+
AuthorisedElectricVehicleSeller: "AUTHORISED_ELECTRIC_VEHICLE_SELLER",
|
|
11
|
+
PrivateSale: "PRIVATE_SALE",
|
|
12
|
+
MidTermRefinance: "MID-TERM_REFINANCE",
|
|
13
|
+
BalloonOrResdiualRefinance: "BALLOON_OR_RESDIUAL_REFINANCE",
|
|
14
|
+
SaleAndBuybackOrEquity: "SALE_AND_BUYBACK_OR_EQUITY",
|
|
15
|
+
} as const;
|
|
16
|
+
export type ConsumerSecuredLoanTypeOfSale = ClosedEnum<
|
|
17
|
+
typeof ConsumerSecuredLoanTypeOfSale
|
|
18
|
+
>;
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const ConsumerSecuredLoanTypeOfSale$inboundSchema: z.ZodNativeEnum<
|
|
22
|
+
typeof ConsumerSecuredLoanTypeOfSale
|
|
23
|
+
> = z.nativeEnum(ConsumerSecuredLoanTypeOfSale);
|
|
24
|
+
|
|
25
|
+
/** @internal */
|
|
26
|
+
export const ConsumerSecuredLoanTypeOfSale$outboundSchema: z.ZodNativeEnum<
|
|
27
|
+
typeof ConsumerSecuredLoanTypeOfSale
|
|
28
|
+
> = ConsumerSecuredLoanTypeOfSale$inboundSchema;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* @internal
|
|
32
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
33
|
+
*/
|
|
34
|
+
export namespace ConsumerSecuredLoanTypeOfSale$ {
|
|
35
|
+
/** @deprecated use `ConsumerSecuredLoanTypeOfSale$inboundSchema` instead. */
|
|
36
|
+
export const inboundSchema = ConsumerSecuredLoanTypeOfSale$inboundSchema;
|
|
37
|
+
/** @deprecated use `ConsumerSecuredLoanTypeOfSale$outboundSchema` instead. */
|
|
38
|
+
export const outboundSchema = ConsumerSecuredLoanTypeOfSale$outboundSchema;
|
|
39
|
+
}
|
|
@@ -26,6 +26,12 @@ import {
|
|
|
26
26
|
MaritalStatus$inboundSchema,
|
|
27
27
|
MaritalStatus$outboundSchema,
|
|
28
28
|
} from "./maritalstatus.js";
|
|
29
|
+
import {
|
|
30
|
+
PercentageQuantity,
|
|
31
|
+
PercentageQuantity$inboundSchema,
|
|
32
|
+
PercentageQuantity$Outbound,
|
|
33
|
+
PercentageQuantity$outboundSchema,
|
|
34
|
+
} from "./percentagequantity.js";
|
|
29
35
|
import {
|
|
30
36
|
ResidencyStatus,
|
|
31
37
|
ResidencyStatus$inboundSchema,
|
|
@@ -84,6 +90,7 @@ export type CustomerAttributes = {
|
|
|
84
90
|
residencyStatus?: ResidencyStatus | undefined;
|
|
85
91
|
livingArrangements?: LivingArrangements | undefined;
|
|
86
92
|
maritalStatus?: MaritalStatus | undefined;
|
|
93
|
+
proportionOfSharedExpenses?: PercentageQuantity | undefined;
|
|
87
94
|
};
|
|
88
95
|
|
|
89
96
|
/** @internal */
|
|
@@ -107,6 +114,7 @@ export const CustomerAttributes$inboundSchema: z.ZodType<
|
|
|
107
114
|
residencyStatus: ResidencyStatus$inboundSchema.optional(),
|
|
108
115
|
livingArrangements: LivingArrangements$inboundSchema.optional(),
|
|
109
116
|
maritalStatus: MaritalStatus$inboundSchema.optional(),
|
|
117
|
+
proportionOfSharedExpenses: PercentageQuantity$inboundSchema.optional(),
|
|
110
118
|
});
|
|
111
119
|
|
|
112
120
|
/** @internal */
|
|
@@ -126,6 +134,7 @@ export type CustomerAttributes$Outbound = {
|
|
|
126
134
|
residencyStatus?: string | undefined;
|
|
127
135
|
livingArrangements?: string | undefined;
|
|
128
136
|
maritalStatus?: string | undefined;
|
|
137
|
+
proportionOfSharedExpenses?: PercentageQuantity$Outbound | undefined;
|
|
129
138
|
};
|
|
130
139
|
|
|
131
140
|
/** @internal */
|
|
@@ -149,6 +158,7 @@ export const CustomerAttributes$outboundSchema: z.ZodType<
|
|
|
149
158
|
residencyStatus: ResidencyStatus$outboundSchema.optional(),
|
|
150
159
|
livingArrangements: LivingArrangements$outboundSchema.optional(),
|
|
151
160
|
maritalStatus: MaritalStatus$outboundSchema.optional(),
|
|
161
|
+
proportionOfSharedExpenses: PercentageQuantity$outboundSchema.optional(),
|
|
152
162
|
});
|
|
153
163
|
|
|
154
164
|
/**
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import {
|
|
10
|
+
ExpenseFrequency,
|
|
11
|
+
ExpenseFrequency$inboundSchema,
|
|
12
|
+
ExpenseFrequency$outboundSchema,
|
|
13
|
+
} from "./expensefrequency.js";
|
|
14
|
+
import {
|
|
15
|
+
ExpenseType,
|
|
16
|
+
ExpenseType$inboundSchema,
|
|
17
|
+
ExpenseType$outboundSchema,
|
|
18
|
+
} from "./expensetype.js";
|
|
19
|
+
import {
|
|
20
|
+
MonetaryQuantity,
|
|
21
|
+
MonetaryQuantity$inboundSchema,
|
|
22
|
+
MonetaryQuantity$Outbound,
|
|
23
|
+
MonetaryQuantity$outboundSchema,
|
|
24
|
+
} from "./monetaryquantity.js";
|
|
25
|
+
|
|
26
|
+
export type ExpenseAttributes = {
|
|
27
|
+
id?: string | undefined;
|
|
28
|
+
expenseType: ExpenseType;
|
|
29
|
+
frequency?: ExpenseFrequency | undefined;
|
|
30
|
+
amount?: MonetaryQuantity | undefined;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
/** @internal */
|
|
34
|
+
export const ExpenseAttributes$inboundSchema: z.ZodType<
|
|
35
|
+
ExpenseAttributes,
|
|
36
|
+
z.ZodTypeDef,
|
|
37
|
+
unknown
|
|
38
|
+
> = z.object({
|
|
39
|
+
id: z.string().optional(),
|
|
40
|
+
expenseType: ExpenseType$inboundSchema,
|
|
41
|
+
frequency: ExpenseFrequency$inboundSchema.optional(),
|
|
42
|
+
amount: MonetaryQuantity$inboundSchema.optional(),
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
/** @internal */
|
|
46
|
+
export type ExpenseAttributes$Outbound = {
|
|
47
|
+
id?: string | undefined;
|
|
48
|
+
expenseType: string;
|
|
49
|
+
frequency?: string | undefined;
|
|
50
|
+
amount?: MonetaryQuantity$Outbound | undefined;
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
/** @internal */
|
|
54
|
+
export const ExpenseAttributes$outboundSchema: z.ZodType<
|
|
55
|
+
ExpenseAttributes$Outbound,
|
|
56
|
+
z.ZodTypeDef,
|
|
57
|
+
ExpenseAttributes
|
|
58
|
+
> = z.object({
|
|
59
|
+
id: z.string().optional(),
|
|
60
|
+
expenseType: ExpenseType$outboundSchema,
|
|
61
|
+
frequency: ExpenseFrequency$outboundSchema.optional(),
|
|
62
|
+
amount: MonetaryQuantity$outboundSchema.optional(),
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* @internal
|
|
67
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
68
|
+
*/
|
|
69
|
+
export namespace ExpenseAttributes$ {
|
|
70
|
+
/** @deprecated use `ExpenseAttributes$inboundSchema` instead. */
|
|
71
|
+
export const inboundSchema = ExpenseAttributes$inboundSchema;
|
|
72
|
+
/** @deprecated use `ExpenseAttributes$outboundSchema` instead. */
|
|
73
|
+
export const outboundSchema = ExpenseAttributes$outboundSchema;
|
|
74
|
+
/** @deprecated use `ExpenseAttributes$Outbound` instead. */
|
|
75
|
+
export type Outbound = ExpenseAttributes$Outbound;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function expenseAttributesToJSON(
|
|
79
|
+
expenseAttributes: ExpenseAttributes,
|
|
80
|
+
): string {
|
|
81
|
+
return JSON.stringify(
|
|
82
|
+
ExpenseAttributes$outboundSchema.parse(expenseAttributes),
|
|
83
|
+
);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export function expenseAttributesFromJSON(
|
|
87
|
+
jsonString: string,
|
|
88
|
+
): SafeParseResult<ExpenseAttributes, SDKValidationError> {
|
|
89
|
+
return safeParse(
|
|
90
|
+
jsonString,
|
|
91
|
+
(x) => ExpenseAttributes$inboundSchema.parse(JSON.parse(x)),
|
|
92
|
+
`Failed to parse 'ExpenseAttributes' from JSON`,
|
|
93
|
+
);
|
|
94
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
7
|
+
|
|
8
|
+
export const ExpenseFrequency = {
|
|
9
|
+
Weekly: "WEEKLY",
|
|
10
|
+
Fortnightly: "FORTNIGHTLY",
|
|
11
|
+
Monthly: "MONTHLY",
|
|
12
|
+
} as const;
|
|
13
|
+
export type ExpenseFrequency = ClosedEnum<typeof ExpenseFrequency>;
|
|
14
|
+
|
|
15
|
+
/** @internal */
|
|
16
|
+
export const ExpenseFrequency$inboundSchema: z.ZodNativeEnum<
|
|
17
|
+
typeof ExpenseFrequency
|
|
18
|
+
> = z.nativeEnum(ExpenseFrequency);
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const ExpenseFrequency$outboundSchema: z.ZodNativeEnum<
|
|
22
|
+
typeof ExpenseFrequency
|
|
23
|
+
> = ExpenseFrequency$inboundSchema;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* @internal
|
|
27
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
28
|
+
*/
|
|
29
|
+
export namespace ExpenseFrequency$ {
|
|
30
|
+
/** @deprecated use `ExpenseFrequency$inboundSchema` instead. */
|
|
31
|
+
export const inboundSchema = ExpenseFrequency$inboundSchema;
|
|
32
|
+
/** @deprecated use `ExpenseFrequency$outboundSchema` instead. */
|
|
33
|
+
export const outboundSchema = ExpenseFrequency$outboundSchema;
|
|
34
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
7
|
+
|
|
8
|
+
export const ExpenseType = {
|
|
9
|
+
Rent: "RENT",
|
|
10
|
+
Utilities: "UTILITIES",
|
|
11
|
+
Groceries: "GROCERIES",
|
|
12
|
+
DiningOut: "DINING_OUT",
|
|
13
|
+
Insurance: "INSURANCE",
|
|
14
|
+
Telecommunications: "TELECOMMUNICATIONS",
|
|
15
|
+
SubscriptionTv: "SUBSCRIPTION_TV",
|
|
16
|
+
EducationAndChildcare: "EDUCATION_AND_CHILDCARE",
|
|
17
|
+
VehicleAndTransport: "VEHICLE_AND_TRANSPORT",
|
|
18
|
+
PersonalCare: "PERSONAL_CARE",
|
|
19
|
+
Health: "HEALTH",
|
|
20
|
+
DepartmentStores: "DEPARTMENT_STORES",
|
|
21
|
+
Retail: "RETAIL",
|
|
22
|
+
HomeImprovement: "HOME_IMPROVEMENT",
|
|
23
|
+
Entertainment: "ENTERTAINMENT",
|
|
24
|
+
GymAndOtherMembership: "GYM_AND_OTHER_MEMBERSHIP",
|
|
25
|
+
Travel: "TRAVEL",
|
|
26
|
+
PetCare: "PET_CARE",
|
|
27
|
+
UncategorizedDebts: "UNCATEGORIZED_DEBTS",
|
|
28
|
+
} as const;
|
|
29
|
+
export type ExpenseType = ClosedEnum<typeof ExpenseType>;
|
|
30
|
+
|
|
31
|
+
/** @internal */
|
|
32
|
+
export const ExpenseType$inboundSchema: z.ZodNativeEnum<typeof ExpenseType> = z
|
|
33
|
+
.nativeEnum(ExpenseType);
|
|
34
|
+
|
|
35
|
+
/** @internal */
|
|
36
|
+
export const ExpenseType$outboundSchema: z.ZodNativeEnum<typeof ExpenseType> =
|
|
37
|
+
ExpenseType$inboundSchema;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* @internal
|
|
41
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
42
|
+
*/
|
|
43
|
+
export namespace ExpenseType$ {
|
|
44
|
+
/** @deprecated use `ExpenseType$inboundSchema` instead. */
|
|
45
|
+
export const inboundSchema = ExpenseType$inboundSchema;
|
|
46
|
+
/** @deprecated use `ExpenseType$outboundSchema` instead. */
|
|
47
|
+
export const outboundSchema = ExpenseType$outboundSchema;
|
|
48
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import {
|
|
10
|
+
IncomeFrequency,
|
|
11
|
+
IncomeFrequency$inboundSchema,
|
|
12
|
+
IncomeFrequency$outboundSchema,
|
|
13
|
+
} from "./incomefrequency.js";
|
|
14
|
+
import {
|
|
15
|
+
IncomeType,
|
|
16
|
+
IncomeType$inboundSchema,
|
|
17
|
+
IncomeType$outboundSchema,
|
|
18
|
+
} from "./incometype.js";
|
|
19
|
+
import {
|
|
20
|
+
MonetaryQuantity,
|
|
21
|
+
MonetaryQuantity$inboundSchema,
|
|
22
|
+
MonetaryQuantity$Outbound,
|
|
23
|
+
MonetaryQuantity$outboundSchema,
|
|
24
|
+
} from "./monetaryquantity.js";
|
|
25
|
+
|
|
26
|
+
export type IncomeAttributes = {
|
|
27
|
+
id?: string | undefined;
|
|
28
|
+
incomeType: IncomeType;
|
|
29
|
+
frequency?: IncomeFrequency | undefined;
|
|
30
|
+
amount?: MonetaryQuantity | undefined;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
/** @internal */
|
|
34
|
+
export const IncomeAttributes$inboundSchema: z.ZodType<
|
|
35
|
+
IncomeAttributes,
|
|
36
|
+
z.ZodTypeDef,
|
|
37
|
+
unknown
|
|
38
|
+
> = z.object({
|
|
39
|
+
id: z.string().optional(),
|
|
40
|
+
incomeType: IncomeType$inboundSchema,
|
|
41
|
+
frequency: IncomeFrequency$inboundSchema.optional(),
|
|
42
|
+
amount: MonetaryQuantity$inboundSchema.optional(),
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
/** @internal */
|
|
46
|
+
export type IncomeAttributes$Outbound = {
|
|
47
|
+
id?: string | undefined;
|
|
48
|
+
incomeType: string;
|
|
49
|
+
frequency?: string | undefined;
|
|
50
|
+
amount?: MonetaryQuantity$Outbound | undefined;
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
/** @internal */
|
|
54
|
+
export const IncomeAttributes$outboundSchema: z.ZodType<
|
|
55
|
+
IncomeAttributes$Outbound,
|
|
56
|
+
z.ZodTypeDef,
|
|
57
|
+
IncomeAttributes
|
|
58
|
+
> = z.object({
|
|
59
|
+
id: z.string().optional(),
|
|
60
|
+
incomeType: IncomeType$outboundSchema,
|
|
61
|
+
frequency: IncomeFrequency$outboundSchema.optional(),
|
|
62
|
+
amount: MonetaryQuantity$outboundSchema.optional(),
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* @internal
|
|
67
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
68
|
+
*/
|
|
69
|
+
export namespace IncomeAttributes$ {
|
|
70
|
+
/** @deprecated use `IncomeAttributes$inboundSchema` instead. */
|
|
71
|
+
export const inboundSchema = IncomeAttributes$inboundSchema;
|
|
72
|
+
/** @deprecated use `IncomeAttributes$outboundSchema` instead. */
|
|
73
|
+
export const outboundSchema = IncomeAttributes$outboundSchema;
|
|
74
|
+
/** @deprecated use `IncomeAttributes$Outbound` instead. */
|
|
75
|
+
export type Outbound = IncomeAttributes$Outbound;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function incomeAttributesToJSON(
|
|
79
|
+
incomeAttributes: IncomeAttributes,
|
|
80
|
+
): string {
|
|
81
|
+
return JSON.stringify(
|
|
82
|
+
IncomeAttributes$outboundSchema.parse(incomeAttributes),
|
|
83
|
+
);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export function incomeAttributesFromJSON(
|
|
87
|
+
jsonString: string,
|
|
88
|
+
): SafeParseResult<IncomeAttributes, SDKValidationError> {
|
|
89
|
+
return safeParse(
|
|
90
|
+
jsonString,
|
|
91
|
+
(x) => IncomeAttributes$inboundSchema.parse(JSON.parse(x)),
|
|
92
|
+
`Failed to parse 'IncomeAttributes' from JSON`,
|
|
93
|
+
);
|
|
94
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
7
|
+
|
|
8
|
+
export const IncomeFrequency = {
|
|
9
|
+
Weekly: "WEEKLY",
|
|
10
|
+
Fortnightly: "FORTNIGHTLY",
|
|
11
|
+
Monthly: "MONTHLY",
|
|
12
|
+
Annually: "ANNUALLY",
|
|
13
|
+
} as const;
|
|
14
|
+
export type IncomeFrequency = ClosedEnum<typeof IncomeFrequency>;
|
|
15
|
+
|
|
16
|
+
/** @internal */
|
|
17
|
+
export const IncomeFrequency$inboundSchema: z.ZodNativeEnum<
|
|
18
|
+
typeof IncomeFrequency
|
|
19
|
+
> = z.nativeEnum(IncomeFrequency);
|
|
20
|
+
|
|
21
|
+
/** @internal */
|
|
22
|
+
export const IncomeFrequency$outboundSchema: z.ZodNativeEnum<
|
|
23
|
+
typeof IncomeFrequency
|
|
24
|
+
> = IncomeFrequency$inboundSchema;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* @internal
|
|
28
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
29
|
+
*/
|
|
30
|
+
export namespace IncomeFrequency$ {
|
|
31
|
+
/** @deprecated use `IncomeFrequency$inboundSchema` instead. */
|
|
32
|
+
export const inboundSchema = IncomeFrequency$inboundSchema;
|
|
33
|
+
/** @deprecated use `IncomeFrequency$outboundSchema` instead. */
|
|
34
|
+
export const outboundSchema = IncomeFrequency$outboundSchema;
|
|
35
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
7
|
+
|
|
8
|
+
export const IncomeType = {
|
|
9
|
+
Primary: "PRIMARY",
|
|
10
|
+
Secondary: "SECONDARY",
|
|
11
|
+
InvestmentProperty: "INVESTMENT_PROPERTY",
|
|
12
|
+
Dividends: "DIVIDENDS",
|
|
13
|
+
Superannuation: "SUPERANNUATION",
|
|
14
|
+
Pension: "PENSION",
|
|
15
|
+
Trust: "TRUST",
|
|
16
|
+
Benefits: "BENEFITS",
|
|
17
|
+
Other: "OTHER",
|
|
18
|
+
} as const;
|
|
19
|
+
export type IncomeType = ClosedEnum<typeof IncomeType>;
|
|
20
|
+
|
|
21
|
+
/** @internal */
|
|
22
|
+
export const IncomeType$inboundSchema: z.ZodNativeEnum<typeof IncomeType> = z
|
|
23
|
+
.nativeEnum(IncomeType);
|
|
24
|
+
|
|
25
|
+
/** @internal */
|
|
26
|
+
export const IncomeType$outboundSchema: z.ZodNativeEnum<typeof IncomeType> =
|
|
27
|
+
IncomeType$inboundSchema;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* @internal
|
|
31
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
32
|
+
*/
|
|
33
|
+
export namespace IncomeType$ {
|
|
34
|
+
/** @deprecated use `IncomeType$inboundSchema` instead. */
|
|
35
|
+
export const inboundSchema = IncomeType$inboundSchema;
|
|
36
|
+
/** @deprecated use `IncomeType$outboundSchema` instead. */
|
|
37
|
+
export const outboundSchema = IncomeType$outboundSchema;
|
|
38
|
+
}
|
|
@@ -14,12 +14,14 @@ export * from "./commercialsecuredapplicationresource.js";
|
|
|
14
14
|
export * from "./commercialsecuredloanassetattributes.js";
|
|
15
15
|
export * from "./commercialsecuredloanassettype.js";
|
|
16
16
|
export * from "./commercialsecuredloancommercialapplicationrelationships.js";
|
|
17
|
+
export * from "./commercialsecuredloantypeofsale.js";
|
|
17
18
|
export * from "./consumerapplicationjsonapirelationships.js";
|
|
18
19
|
export * from "./consumersecuredapplicationpayload.js";
|
|
19
20
|
export * from "./consumersecuredapplicationresource.js";
|
|
20
21
|
export * from "./consumersecuredloanassetattributes.js";
|
|
21
22
|
export * from "./consumersecuredloanassettype.js";
|
|
22
23
|
export * from "./consumersecuredloanconsumerapplicationrelationships.js";
|
|
24
|
+
export * from "./consumersecuredloantypeofsale.js";
|
|
23
25
|
export * from "./createsupportingdocumentsresponse.js";
|
|
24
26
|
export * from "./currencycodeiso4217.js";
|
|
25
27
|
export * from "./customerassetattributes.js";
|
|
@@ -33,8 +35,14 @@ export * from "./customertitle.js";
|
|
|
33
35
|
export * from "./documenttype.js";
|
|
34
36
|
export * from "./entityattributes.js";
|
|
35
37
|
export * from "./errorsource.js";
|
|
38
|
+
export * from "./expenseattributes.js";
|
|
39
|
+
export * from "./expensefrequency.js";
|
|
40
|
+
export * from "./expensetype.js";
|
|
36
41
|
export * from "./forbiddenerror.js";
|
|
37
42
|
export * from "./frequencytype.js";
|
|
43
|
+
export * from "./incomeattributes.js";
|
|
44
|
+
export * from "./incomefrequency.js";
|
|
45
|
+
export * from "./incometype.js";
|
|
38
46
|
export * from "./linkobject.js";
|
|
39
47
|
export * from "./livingarrangements.js";
|
|
40
48
|
export * from "./loandetailsattributes.js";
|