@financeable/aggregation 0.7.4 → 0.8.1
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/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/models/components/commercialsecuredloancommercialapplicationrelationships.d.ts +192 -14
- package/models/components/commercialsecuredloancommercialapplicationrelationships.d.ts.map +1 -1
- package/models/components/commercialsecuredloancommercialapplicationrelationships.js +186 -19
- package/models/components/commercialsecuredloancommercialapplicationrelationships.js.map +1 -1
- package/models/components/consumersecuredloanassetattributes.d.ts +136 -15
- package/models/components/consumersecuredloanassetattributes.d.ts.map +1 -1
- package/models/components/consumersecuredloanassetattributes.js +131 -11
- package/models/components/consumersecuredloanassetattributes.js.map +1 -1
- package/models/components/consumersecuredloanconsumerapplicationrelationships.d.ts +370 -14
- package/models/components/consumersecuredloanconsumerapplicationrelationships.d.ts.map +1 -1
- package/models/components/consumersecuredloanconsumerapplicationrelationships.js +358 -20
- package/models/components/consumersecuredloanconsumerapplicationrelationships.js.map +1 -1
- package/models/components/currencycodeiso4217.d.ts +25 -0
- package/models/components/currencycodeiso4217.d.ts.map +1 -0
- package/models/components/currencycodeiso4217.js +59 -0
- package/models/components/currencycodeiso4217.js.map +1 -0
- package/models/components/customerassetattributes.d.ts +37 -0
- package/models/components/customerassetattributes.d.ts.map +1 -0
- package/models/components/customerassetattributes.js +77 -0
- package/models/components/customerassetattributes.js.map +1 -0
- package/models/components/customerassettype.d.ts +46 -0
- package/models/components/customerassettype.d.ts.map +1 -0
- package/models/components/customerassettype.js +66 -0
- package/models/components/customerassettype.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/customerliabilityattributes.d.ts +46 -0
- package/models/components/customerliabilityattributes.d.ts.map +1 -0
- package/models/components/customerliabilityattributes.js +88 -0
- package/models/components/customerliabilityattributes.js.map +1 -0
- package/models/components/customerliabilityrepaymentfrequency.d.ts +31 -0
- package/models/components/customerliabilityrepaymentfrequency.d.ts.map +1 -0
- package/models/components/customerliabilityrepaymentfrequency.js +61 -0
- package/models/components/customerliabilityrepaymentfrequency.js.map +1 -0
- package/models/components/customerliabilitytype.d.ts +40 -0
- package/models/components/customerliabilitytype.d.ts.map +1 -0
- package/models/components/customerliabilitytype.js +64 -0
- package/models/components/customerliabilitytype.js.map +1 -0
- 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 +14 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +14 -0
- package/models/components/index.js.map +1 -1
- package/models/components/loandetailsattributes.d.ts +252 -30
- package/models/components/loandetailsattributes.d.ts.map +1 -1
- package/models/components/loandetailsattributes.js +266 -19
- package/models/components/loandetailsattributes.js.map +1 -1
- package/models/components/monetaryquantity.d.ts +63 -0
- package/models/components/monetaryquantity.d.ts.map +1 -0
- package/models/components/monetaryquantity.js +93 -0
- package/models/components/monetaryquantity.js.map +1 -0
- package/models/components/percentagequantity.d.ts +57 -0
- package/models/components/percentagequantity.d.ts.map +1 -0
- package/models/components/percentagequantity.js +89 -0
- package/models/components/percentagequantity.js.map +1 -0
- package/models/operations/createapplication.d.ts +102 -4
- package/models/operations/createapplication.d.ts.map +1 -1
- package/models/operations/createapplication.js +107 -1
- package/models/operations/createapplication.js.map +1 -1
- package/package.json +2 -2
- package/src/lib/config.ts +3 -3
- package/src/models/components/commercialsecuredloancommercialapplicationrelationships.ts +426 -25
- package/src/models/components/consumersecuredloanassetattributes.ts +282 -25
- package/src/models/components/consumersecuredloanconsumerapplicationrelationships.ts +895 -40
- package/src/models/components/currencycodeiso4217.ts +32 -0
- package/src/models/components/customerassetattributes.ts +89 -0
- package/src/models/components/customerassettype.ts +39 -0
- package/src/models/components/customerattributes.ts +10 -0
- package/src/models/components/customerliabilityattributes.ts +114 -0
- package/src/models/components/customerliabilityrepaymentfrequency.ts +38 -0
- package/src/models/components/customerliabilitytype.ts +37 -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 +14 -0
- package/src/models/components/loandetailsattributes.ts +537 -48
- package/src/models/components/monetaryquantity.ts +110 -0
- package/src/models/components/percentagequantity.ts +102 -0
- package/src/models/operations/createapplication.ts +191 -3
|
@@ -0,0 +1,32 @@
|
|
|
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 CurrencyCodeIso4217 = {
|
|
9
|
+
Aud: "AUD",
|
|
10
|
+
} as const;
|
|
11
|
+
export type CurrencyCodeIso4217 = ClosedEnum<typeof CurrencyCodeIso4217>;
|
|
12
|
+
|
|
13
|
+
/** @internal */
|
|
14
|
+
export const CurrencyCodeIso4217$inboundSchema: z.ZodNativeEnum<
|
|
15
|
+
typeof CurrencyCodeIso4217
|
|
16
|
+
> = z.nativeEnum(CurrencyCodeIso4217);
|
|
17
|
+
|
|
18
|
+
/** @internal */
|
|
19
|
+
export const CurrencyCodeIso4217$outboundSchema: z.ZodNativeEnum<
|
|
20
|
+
typeof CurrencyCodeIso4217
|
|
21
|
+
> = CurrencyCodeIso4217$inboundSchema;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* @internal
|
|
25
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
26
|
+
*/
|
|
27
|
+
export namespace CurrencyCodeIso4217$ {
|
|
28
|
+
/** @deprecated use `CurrencyCodeIso4217$inboundSchema` instead. */
|
|
29
|
+
export const inboundSchema = CurrencyCodeIso4217$inboundSchema;
|
|
30
|
+
/** @deprecated use `CurrencyCodeIso4217$outboundSchema` instead. */
|
|
31
|
+
export const outboundSchema = CurrencyCodeIso4217$outboundSchema;
|
|
32
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
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
|
+
CustomerAssetType,
|
|
11
|
+
CustomerAssetType$inboundSchema,
|
|
12
|
+
CustomerAssetType$outboundSchema,
|
|
13
|
+
} from "./customerassettype.js";
|
|
14
|
+
import {
|
|
15
|
+
MonetaryQuantity,
|
|
16
|
+
MonetaryQuantity$inboundSchema,
|
|
17
|
+
MonetaryQuantity$Outbound,
|
|
18
|
+
MonetaryQuantity$outboundSchema,
|
|
19
|
+
} from "./monetaryquantity.js";
|
|
20
|
+
|
|
21
|
+
export type CustomerAssetAttributes = {
|
|
22
|
+
id?: string | undefined;
|
|
23
|
+
assetType: CustomerAssetType;
|
|
24
|
+
value?: MonetaryQuantity | undefined;
|
|
25
|
+
description?: string | undefined;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
/** @internal */
|
|
29
|
+
export const CustomerAssetAttributes$inboundSchema: z.ZodType<
|
|
30
|
+
CustomerAssetAttributes,
|
|
31
|
+
z.ZodTypeDef,
|
|
32
|
+
unknown
|
|
33
|
+
> = z.object({
|
|
34
|
+
id: z.string().optional(),
|
|
35
|
+
assetType: CustomerAssetType$inboundSchema,
|
|
36
|
+
value: MonetaryQuantity$inboundSchema.optional(),
|
|
37
|
+
description: z.string().optional(),
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
/** @internal */
|
|
41
|
+
export type CustomerAssetAttributes$Outbound = {
|
|
42
|
+
id?: string | undefined;
|
|
43
|
+
assetType: string;
|
|
44
|
+
value?: MonetaryQuantity$Outbound | undefined;
|
|
45
|
+
description?: string | undefined;
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
/** @internal */
|
|
49
|
+
export const CustomerAssetAttributes$outboundSchema: z.ZodType<
|
|
50
|
+
CustomerAssetAttributes$Outbound,
|
|
51
|
+
z.ZodTypeDef,
|
|
52
|
+
CustomerAssetAttributes
|
|
53
|
+
> = z.object({
|
|
54
|
+
id: z.string().optional(),
|
|
55
|
+
assetType: CustomerAssetType$outboundSchema,
|
|
56
|
+
value: MonetaryQuantity$outboundSchema.optional(),
|
|
57
|
+
description: z.string().optional(),
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* @internal
|
|
62
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
63
|
+
*/
|
|
64
|
+
export namespace CustomerAssetAttributes$ {
|
|
65
|
+
/** @deprecated use `CustomerAssetAttributes$inboundSchema` instead. */
|
|
66
|
+
export const inboundSchema = CustomerAssetAttributes$inboundSchema;
|
|
67
|
+
/** @deprecated use `CustomerAssetAttributes$outboundSchema` instead. */
|
|
68
|
+
export const outboundSchema = CustomerAssetAttributes$outboundSchema;
|
|
69
|
+
/** @deprecated use `CustomerAssetAttributes$Outbound` instead. */
|
|
70
|
+
export type Outbound = CustomerAssetAttributes$Outbound;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function customerAssetAttributesToJSON(
|
|
74
|
+
customerAssetAttributes: CustomerAssetAttributes,
|
|
75
|
+
): string {
|
|
76
|
+
return JSON.stringify(
|
|
77
|
+
CustomerAssetAttributes$outboundSchema.parse(customerAssetAttributes),
|
|
78
|
+
);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export function customerAssetAttributesFromJSON(
|
|
82
|
+
jsonString: string,
|
|
83
|
+
): SafeParseResult<CustomerAssetAttributes, SDKValidationError> {
|
|
84
|
+
return safeParse(
|
|
85
|
+
jsonString,
|
|
86
|
+
(x) => CustomerAssetAttributes$inboundSchema.parse(JSON.parse(x)),
|
|
87
|
+
`Failed to parse 'CustomerAssetAttributes' from JSON`,
|
|
88
|
+
);
|
|
89
|
+
}
|
|
@@ -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 CustomerAssetType = {
|
|
9
|
+
PrimaryOccupiedResidentialProperty: "PRIMARY_OCCUPIED_RESIDENTIAL_PROPERTY",
|
|
10
|
+
InvestmentProperty: "INVESTMENT_PROPERTY",
|
|
11
|
+
CommercialProperty: "COMMERCIAL_PROPERTY",
|
|
12
|
+
MotorVehicle: "MOTOR_VEHICLE",
|
|
13
|
+
CashSavings: "CASH_SAVINGS",
|
|
14
|
+
InvestmentShares: "INVESTMENT_SHARES",
|
|
15
|
+
Superannuation: "SUPERANNUATION",
|
|
16
|
+
Other: "OTHER",
|
|
17
|
+
} as const;
|
|
18
|
+
export type CustomerAssetType = ClosedEnum<typeof CustomerAssetType>;
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const CustomerAssetType$inboundSchema: z.ZodNativeEnum<
|
|
22
|
+
typeof CustomerAssetType
|
|
23
|
+
> = z.nativeEnum(CustomerAssetType);
|
|
24
|
+
|
|
25
|
+
/** @internal */
|
|
26
|
+
export const CustomerAssetType$outboundSchema: z.ZodNativeEnum<
|
|
27
|
+
typeof CustomerAssetType
|
|
28
|
+
> = CustomerAssetType$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 CustomerAssetType$ {
|
|
35
|
+
/** @deprecated use `CustomerAssetType$inboundSchema` instead. */
|
|
36
|
+
export const inboundSchema = CustomerAssetType$inboundSchema;
|
|
37
|
+
/** @deprecated use `CustomerAssetType$outboundSchema` instead. */
|
|
38
|
+
export const outboundSchema = CustomerAssetType$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,114 @@
|
|
|
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
|
+
CustomerLiabilityRepaymentFrequency,
|
|
11
|
+
CustomerLiabilityRepaymentFrequency$inboundSchema,
|
|
12
|
+
CustomerLiabilityRepaymentFrequency$outboundSchema,
|
|
13
|
+
} from "./customerliabilityrepaymentfrequency.js";
|
|
14
|
+
import {
|
|
15
|
+
CustomerLiabilityType,
|
|
16
|
+
CustomerLiabilityType$inboundSchema,
|
|
17
|
+
CustomerLiabilityType$outboundSchema,
|
|
18
|
+
} from "./customerliabilitytype.js";
|
|
19
|
+
import {
|
|
20
|
+
MonetaryQuantity,
|
|
21
|
+
MonetaryQuantity$inboundSchema,
|
|
22
|
+
MonetaryQuantity$Outbound,
|
|
23
|
+
MonetaryQuantity$outboundSchema,
|
|
24
|
+
} from "./monetaryquantity.js";
|
|
25
|
+
|
|
26
|
+
export type CustomerLiabilityAttributes = {
|
|
27
|
+
id?: string | undefined;
|
|
28
|
+
liabilityType: CustomerLiabilityType;
|
|
29
|
+
outstandingAmount?: MonetaryQuantity | undefined;
|
|
30
|
+
limit?: MonetaryQuantity | undefined;
|
|
31
|
+
financier?: string | undefined;
|
|
32
|
+
repaymentFrequency?: CustomerLiabilityRepaymentFrequency | undefined;
|
|
33
|
+
repaymentAmount?: MonetaryQuantity | undefined;
|
|
34
|
+
description?: string | undefined;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
/** @internal */
|
|
38
|
+
export const CustomerLiabilityAttributes$inboundSchema: z.ZodType<
|
|
39
|
+
CustomerLiabilityAttributes,
|
|
40
|
+
z.ZodTypeDef,
|
|
41
|
+
unknown
|
|
42
|
+
> = z.object({
|
|
43
|
+
id: z.string().optional(),
|
|
44
|
+
liabilityType: CustomerLiabilityType$inboundSchema,
|
|
45
|
+
outstandingAmount: MonetaryQuantity$inboundSchema.optional(),
|
|
46
|
+
limit: MonetaryQuantity$inboundSchema.optional(),
|
|
47
|
+
financier: z.string().optional(),
|
|
48
|
+
repaymentFrequency: CustomerLiabilityRepaymentFrequency$inboundSchema
|
|
49
|
+
.optional(),
|
|
50
|
+
repaymentAmount: MonetaryQuantity$inboundSchema.optional(),
|
|
51
|
+
description: z.string().optional(),
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
/** @internal */
|
|
55
|
+
export type CustomerLiabilityAttributes$Outbound = {
|
|
56
|
+
id?: string | undefined;
|
|
57
|
+
liabilityType: string;
|
|
58
|
+
outstandingAmount?: MonetaryQuantity$Outbound | undefined;
|
|
59
|
+
limit?: MonetaryQuantity$Outbound | undefined;
|
|
60
|
+
financier?: string | undefined;
|
|
61
|
+
repaymentFrequency?: string | undefined;
|
|
62
|
+
repaymentAmount?: MonetaryQuantity$Outbound | undefined;
|
|
63
|
+
description?: string | undefined;
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
/** @internal */
|
|
67
|
+
export const CustomerLiabilityAttributes$outboundSchema: z.ZodType<
|
|
68
|
+
CustomerLiabilityAttributes$Outbound,
|
|
69
|
+
z.ZodTypeDef,
|
|
70
|
+
CustomerLiabilityAttributes
|
|
71
|
+
> = z.object({
|
|
72
|
+
id: z.string().optional(),
|
|
73
|
+
liabilityType: CustomerLiabilityType$outboundSchema,
|
|
74
|
+
outstandingAmount: MonetaryQuantity$outboundSchema.optional(),
|
|
75
|
+
limit: MonetaryQuantity$outboundSchema.optional(),
|
|
76
|
+
financier: z.string().optional(),
|
|
77
|
+
repaymentFrequency: CustomerLiabilityRepaymentFrequency$outboundSchema
|
|
78
|
+
.optional(),
|
|
79
|
+
repaymentAmount: MonetaryQuantity$outboundSchema.optional(),
|
|
80
|
+
description: z.string().optional(),
|
|
81
|
+
});
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* @internal
|
|
85
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
86
|
+
*/
|
|
87
|
+
export namespace CustomerLiabilityAttributes$ {
|
|
88
|
+
/** @deprecated use `CustomerLiabilityAttributes$inboundSchema` instead. */
|
|
89
|
+
export const inboundSchema = CustomerLiabilityAttributes$inboundSchema;
|
|
90
|
+
/** @deprecated use `CustomerLiabilityAttributes$outboundSchema` instead. */
|
|
91
|
+
export const outboundSchema = CustomerLiabilityAttributes$outboundSchema;
|
|
92
|
+
/** @deprecated use `CustomerLiabilityAttributes$Outbound` instead. */
|
|
93
|
+
export type Outbound = CustomerLiabilityAttributes$Outbound;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export function customerLiabilityAttributesToJSON(
|
|
97
|
+
customerLiabilityAttributes: CustomerLiabilityAttributes,
|
|
98
|
+
): string {
|
|
99
|
+
return JSON.stringify(
|
|
100
|
+
CustomerLiabilityAttributes$outboundSchema.parse(
|
|
101
|
+
customerLiabilityAttributes,
|
|
102
|
+
),
|
|
103
|
+
);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export function customerLiabilityAttributesFromJSON(
|
|
107
|
+
jsonString: string,
|
|
108
|
+
): SafeParseResult<CustomerLiabilityAttributes, SDKValidationError> {
|
|
109
|
+
return safeParse(
|
|
110
|
+
jsonString,
|
|
111
|
+
(x) => CustomerLiabilityAttributes$inboundSchema.parse(JSON.parse(x)),
|
|
112
|
+
`Failed to parse 'CustomerLiabilityAttributes' from JSON`,
|
|
113
|
+
);
|
|
114
|
+
}
|
|
@@ -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 CustomerLiabilityRepaymentFrequency = {
|
|
9
|
+
Monthly: "MONTHLY",
|
|
10
|
+
Weekly: "WEEKLY",
|
|
11
|
+
Fortnightly: "FORTNIGHTLY",
|
|
12
|
+
} as const;
|
|
13
|
+
export type CustomerLiabilityRepaymentFrequency = ClosedEnum<
|
|
14
|
+
typeof CustomerLiabilityRepaymentFrequency
|
|
15
|
+
>;
|
|
16
|
+
|
|
17
|
+
/** @internal */
|
|
18
|
+
export const CustomerLiabilityRepaymentFrequency$inboundSchema: z.ZodNativeEnum<
|
|
19
|
+
typeof CustomerLiabilityRepaymentFrequency
|
|
20
|
+
> = z.nativeEnum(CustomerLiabilityRepaymentFrequency);
|
|
21
|
+
|
|
22
|
+
/** @internal */
|
|
23
|
+
export const CustomerLiabilityRepaymentFrequency$outboundSchema:
|
|
24
|
+
z.ZodNativeEnum<typeof CustomerLiabilityRepaymentFrequency> =
|
|
25
|
+
CustomerLiabilityRepaymentFrequency$inboundSchema;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* @internal
|
|
29
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
30
|
+
*/
|
|
31
|
+
export namespace CustomerLiabilityRepaymentFrequency$ {
|
|
32
|
+
/** @deprecated use `CustomerLiabilityRepaymentFrequency$inboundSchema` instead. */
|
|
33
|
+
export const inboundSchema =
|
|
34
|
+
CustomerLiabilityRepaymentFrequency$inboundSchema;
|
|
35
|
+
/** @deprecated use `CustomerLiabilityRepaymentFrequency$outboundSchema` instead. */
|
|
36
|
+
export const outboundSchema =
|
|
37
|
+
CustomerLiabilityRepaymentFrequency$outboundSchema;
|
|
38
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
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 CustomerLiabilityType = {
|
|
9
|
+
Mortgage: "MORTGAGE",
|
|
10
|
+
MotorVehicle: "MOTOR_VEHICLE",
|
|
11
|
+
CreditCard: "CREDIT_CARD",
|
|
12
|
+
PersonalLoan: "PERSONAL_LOAN",
|
|
13
|
+
PayLater: "PAY_LATER",
|
|
14
|
+
Other: "OTHER",
|
|
15
|
+
} as const;
|
|
16
|
+
export type CustomerLiabilityType = ClosedEnum<typeof CustomerLiabilityType>;
|
|
17
|
+
|
|
18
|
+
/** @internal */
|
|
19
|
+
export const CustomerLiabilityType$inboundSchema: z.ZodNativeEnum<
|
|
20
|
+
typeof CustomerLiabilityType
|
|
21
|
+
> = z.nativeEnum(CustomerLiabilityType);
|
|
22
|
+
|
|
23
|
+
/** @internal */
|
|
24
|
+
export const CustomerLiabilityType$outboundSchema: z.ZodNativeEnum<
|
|
25
|
+
typeof CustomerLiabilityType
|
|
26
|
+
> = CustomerLiabilityType$inboundSchema;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* @internal
|
|
30
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
31
|
+
*/
|
|
32
|
+
export namespace CustomerLiabilityType$ {
|
|
33
|
+
/** @deprecated use `CustomerLiabilityType$inboundSchema` instead. */
|
|
34
|
+
export const inboundSchema = CustomerLiabilityType$inboundSchema;
|
|
35
|
+
/** @deprecated use `CustomerLiabilityType$outboundSchema` instead. */
|
|
36
|
+
export const outboundSchema = CustomerLiabilityType$outboundSchema;
|
|
37
|
+
}
|
|
@@ -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
|
+
}
|