@financeable/aggregation 0.6.0 → 0.6.12
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/FUNCTIONS.md +4 -0
- package/README.md +14 -2
- package/docs/sdks/applications/README.md +19 -254
- package/docs/sdks/oauthtoken/README.md +5 -5
- package/docs/sdks/supportingdocuments/README.md +9 -1
- package/funcs/applicationsCreate.d.ts +1 -1
- package/funcs/applicationsCreate.d.ts.map +1 -1
- package/funcs/applicationsCreate.js +2 -2
- package/funcs/applicationsCreate.js.map +1 -1
- package/funcs/{oauthTokenOauthToken.d.ts → oauthTokenGet.d.ts} +2 -2
- package/funcs/oauthTokenGet.d.ts.map +1 -0
- package/funcs/{oauthTokenOauthToken.js → oauthTokenGet.js} +3 -3
- package/funcs/oauthTokenGet.js.map +1 -0
- package/funcs/supportingDocumentsCreate.d.ts +1 -2
- package/funcs/supportingDocumentsCreate.d.ts.map +1 -1
- package/funcs/supportingDocumentsCreate.js +1 -2
- package/funcs/supportingDocumentsCreate.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/lib/config.js.map +1 -1
- package/models/components/addressattributes.d.ts +2 -0
- package/models/components/addressattributes.d.ts.map +1 -1
- package/models/components/addressattributes.js +2 -0
- package/models/components/addressattributes.js.map +1 -1
- package/models/components/applicationresource.d.ts +4 -4
- package/models/components/applicationresource.d.ts.map +1 -1
- package/models/components/applicationresource.js +6 -6
- package/models/components/applicationresource.js.map +1 -1
- package/models/components/{commercialsecuredloanapplicationsubmissionpayload.d.ts → commercialsecuredapplicationpayload.d.ts} +64 -24
- package/models/components/commercialsecuredapplicationpayload.d.ts.map +1 -0
- package/models/components/{commercialsecuredloanapplicationsubmissionpayload.js → commercialsecuredapplicationpayload.js} +47 -33
- package/models/components/commercialsecuredapplicationpayload.js.map +1 -0
- package/models/components/commercialsecuredapplicationresource.d.ts +171 -0
- package/models/components/commercialsecuredapplicationresource.d.ts.map +1 -0
- package/models/components/commercialsecuredapplicationresource.js +161 -0
- package/models/components/commercialsecuredapplicationresource.js.map +1 -0
- package/models/components/commercialsecuredloanassetattributes.d.ts +2 -0
- package/models/components/commercialsecuredloanassetattributes.d.ts.map +1 -1
- package/models/components/commercialsecuredloanassetattributes.js +2 -0
- package/models/components/commercialsecuredloanassetattributes.js.map +1 -1
- package/models/components/commercialsecuredloancommercialapplicationrelationships.d.ts +99 -17
- package/models/components/commercialsecuredloancommercialapplicationrelationships.d.ts.map +1 -1
- package/models/components/commercialsecuredloancommercialapplicationrelationships.js +67 -23
- package/models/components/commercialsecuredloancommercialapplicationrelationships.js.map +1 -1
- package/models/components/consumersecuredapplicationpayload.d.ts +164 -0
- package/models/components/consumersecuredapplicationpayload.d.ts.map +1 -0
- package/models/components/consumersecuredapplicationpayload.js +158 -0
- package/models/components/consumersecuredapplicationpayload.js.map +1 -0
- package/models/components/consumersecuredapplicationresource.d.ts +171 -0
- package/models/components/consumersecuredapplicationresource.d.ts.map +1 -0
- package/models/components/consumersecuredapplicationresource.js +161 -0
- package/models/components/consumersecuredapplicationresource.js.map +1 -0
- package/models/components/consumersecuredloanassetattributes.d.ts +2 -0
- package/models/components/consumersecuredloanassetattributes.d.ts.map +1 -1
- package/models/components/consumersecuredloanassetattributes.js +2 -0
- package/models/components/consumersecuredloanassetattributes.js.map +1 -1
- package/models/components/consumersecuredloanconsumerapplicationrelationships.d.ts +51 -2
- package/models/components/consumersecuredloanconsumerapplicationrelationships.d.ts.map +1 -1
- package/models/components/consumersecuredloanconsumerapplicationrelationships.js +19 -2
- package/models/components/consumersecuredloanconsumerapplicationrelationships.js.map +1 -1
- package/models/components/createsupportingdocumentsresponse.d.ts +49 -46
- package/models/components/createsupportingdocumentsresponse.d.ts.map +1 -1
- package/models/components/createsupportingdocumentsresponse.js +36 -47
- package/models/components/createsupportingdocumentsresponse.js.map +1 -1
- package/models/components/customerattributes.d.ts +2 -0
- package/models/components/customerattributes.d.ts.map +1 -1
- package/models/components/customerattributes.js +2 -0
- package/models/components/customerattributes.js.map +1 -1
- package/models/components/entityattributes.d.ts +2 -0
- package/models/components/entityattributes.d.ts.map +1 -1
- package/models/components/entityattributes.js +2 -0
- package/models/components/entityattributes.js.map +1 -1
- package/models/components/index.d.ts +4 -5
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +4 -5
- package/models/components/index.js.map +1 -1
- package/models/components/loandetailsattributes.d.ts +2 -0
- package/models/components/loandetailsattributes.d.ts.map +1 -1
- package/models/components/loandetailsattributes.js +2 -0
- package/models/components/loandetailsattributes.js.map +1 -1
- package/models/components/supportingdocumentresource.d.ts +5 -25
- package/models/components/supportingdocumentresource.d.ts.map +1 -1
- package/models/components/supportingdocumentresource.js +6 -29
- package/models/components/supportingdocumentresource.js.map +1 -1
- package/models/errors/createapplication.d.ts +35 -0
- package/models/errors/createapplication.d.ts.map +1 -1
- package/models/errors/createapplication.js +40 -1
- package/models/errors/createapplication.js.map +1 -1
- package/models/operations/createapplication.d.ts +6 -112
- package/models/operations/createapplication.d.ts.map +1 -1
- package/models/operations/createapplication.js +11 -118
- package/models/operations/createapplication.js.map +1 -1
- package/models/operations/supportingdocumentscreate.d.ts +34 -0
- package/models/operations/supportingdocumentscreate.d.ts.map +1 -1
- package/models/operations/supportingdocumentscreate.js +28 -1
- package/models/operations/supportingdocumentscreate.js.map +1 -1
- package/package.json +1 -1
- package/sdk/oauthtoken.d.ts +1 -1
- package/sdk/oauthtoken.d.ts.map +1 -1
- package/sdk/oauthtoken.js +3 -3
- package/sdk/oauthtoken.js.map +1 -1
- package/sdk/supportingdocuments.d.ts +1 -2
- package/sdk/supportingdocuments.d.ts.map +1 -1
- package/sdk/supportingdocuments.js.map +1 -1
- package/src/funcs/applicationsCreate.ts +8 -1
- package/src/funcs/{oauthTokenOauthToken.ts → oauthTokenGet.ts} +1 -1
- package/src/funcs/supportingDocumentsCreate.ts +4 -5
- package/src/lib/config.ts +2 -2
- package/src/models/components/addressattributes.ts +4 -0
- package/src/models/components/applicationresource.ts +18 -18
- package/src/models/components/{commercialsecuredloanapplicationsubmissionpayload.ts → commercialsecuredapplicationpayload.ts} +82 -71
- package/src/models/components/commercialsecuredapplicationresource.ts +310 -0
- package/src/models/components/commercialsecuredloanassetattributes.ts +4 -0
- package/src/models/components/commercialsecuredloancommercialapplicationrelationships.ts +159 -69
- package/src/models/components/consumersecuredapplicationpayload.ts +273 -0
- package/src/models/components/consumersecuredapplicationresource.ts +309 -0
- package/src/models/components/consumersecuredloanassetattributes.ts +4 -0
- package/src/models/components/consumersecuredloanconsumerapplicationrelationships.ts +44 -8
- package/src/models/components/createsupportingdocumentsresponse.ts +57 -103
- package/src/models/components/customerattributes.ts +4 -0
- package/src/models/components/entityattributes.ts +4 -0
- package/src/models/components/index.ts +4 -5
- package/src/models/components/loandetailsattributes.ts +4 -0
- package/src/models/components/supportingdocumentresource.ts +14 -51
- package/src/models/errors/createapplication.ts +73 -0
- package/src/models/operations/createapplication.ts +20 -229
- package/src/models/operations/supportingdocumentscreate.ts +72 -0
- package/src/sdk/oauthtoken.ts +3 -3
- package/src/sdk/supportingdocuments.ts +1 -2
- package/funcs/oauthTokenOauthToken.d.ts.map +0 -1
- package/funcs/oauthTokenOauthToken.js.map +0 -1
- package/models/components/commercialapplicationresource.d.ts +0 -191
- package/models/components/commercialapplicationresource.d.ts.map +0 -1
- package/models/components/commercialapplicationresource.js +0 -183
- package/models/components/commercialapplicationresource.js.map +0 -1
- package/models/components/commercialsecuredloanapplicationsubmissionpayload.d.ts.map +0 -1
- package/models/components/commercialsecuredloanapplicationsubmissionpayload.js.map +0 -1
- package/models/components/consumerapplicationresource.d.ts +0 -191
- package/models/components/consumerapplicationresource.d.ts.map +0 -1
- package/models/components/consumerapplicationresource.js +0 -187
- package/models/components/consumerapplicationresource.js.map +0 -1
- package/models/components/consumersecuredloanapplicationsubmissionpayload.d.ts +0 -124
- package/models/components/consumersecuredloanapplicationsubmissionpayload.d.ts.map +0 -1
- package/models/components/consumersecuredloanapplicationsubmissionpayload.js +0 -146
- package/models/components/consumersecuredloanapplicationsubmissionpayload.js.map +0 -1
- package/models/components/resourcetypes.d.ts +0 -46
- package/models/components/resourcetypes.d.ts.map +0 -1
- package/models/components/resourcetypes.js +0 -66
- package/models/components/resourcetypes.js.map +0 -1
- package/src/models/components/commercialapplicationresource.ts +0 -355
- package/src/models/components/consumerapplicationresource.ts +0 -342
- package/src/models/components/consumersecuredloanapplicationsubmissionpayload.ts +0 -270
- package/src/models/components/resourcetypes.ts +0 -39
|
@@ -0,0 +1,309 @@
|
|
|
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 { ClosedEnum } from "../../types/enums.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import {
|
|
11
|
+
ApplicationStatus,
|
|
12
|
+
ApplicationStatus$inboundSchema,
|
|
13
|
+
ApplicationStatus$outboundSchema,
|
|
14
|
+
} from "./applicationstatus.js";
|
|
15
|
+
import {
|
|
16
|
+
ConsumerApplicationJsonApiRelationships,
|
|
17
|
+
ConsumerApplicationJsonApiRelationships$inboundSchema,
|
|
18
|
+
ConsumerApplicationJsonApiRelationships$Outbound,
|
|
19
|
+
ConsumerApplicationJsonApiRelationships$outboundSchema,
|
|
20
|
+
} from "./consumerapplicationjsonapirelationships.js";
|
|
21
|
+
import {
|
|
22
|
+
LinkObject,
|
|
23
|
+
LinkObject$inboundSchema,
|
|
24
|
+
LinkObject$Outbound,
|
|
25
|
+
LinkObject$outboundSchema,
|
|
26
|
+
} from "./linkobject.js";
|
|
27
|
+
|
|
28
|
+
export const ConsumerSecuredApplicationResourceType = {
|
|
29
|
+
ConsumerSecuredApplications: "consumer-secured-applications",
|
|
30
|
+
} as const;
|
|
31
|
+
export type ConsumerSecuredApplicationResourceType = ClosedEnum<
|
|
32
|
+
typeof ConsumerSecuredApplicationResourceType
|
|
33
|
+
>;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Type of the loan application
|
|
37
|
+
*/
|
|
38
|
+
export const ConsumerSecuredApplicationResourceApplicationType = {
|
|
39
|
+
ConsumerSecured: "consumerSecured",
|
|
40
|
+
} as const;
|
|
41
|
+
/**
|
|
42
|
+
* Type of the loan application
|
|
43
|
+
*/
|
|
44
|
+
export type ConsumerSecuredApplicationResourceApplicationType = ClosedEnum<
|
|
45
|
+
typeof ConsumerSecuredApplicationResourceApplicationType
|
|
46
|
+
>;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Application resource attributes
|
|
50
|
+
*/
|
|
51
|
+
export type ConsumerSecuredApplicationResourceAttributes = {
|
|
52
|
+
/**
|
|
53
|
+
* Full identifier of the application. Not visible within the web application.
|
|
54
|
+
*/
|
|
55
|
+
id: string;
|
|
56
|
+
/**
|
|
57
|
+
* Human readable & easily communicated identifier of the application. Visible within the web application.
|
|
58
|
+
*/
|
|
59
|
+
humanId: string;
|
|
60
|
+
/**
|
|
61
|
+
* Type of the loan application
|
|
62
|
+
*/
|
|
63
|
+
applicationType: ConsumerSecuredApplicationResourceApplicationType;
|
|
64
|
+
/**
|
|
65
|
+
* Current status, must be 'workshop' for new applications
|
|
66
|
+
*/
|
|
67
|
+
status: ApplicationStatus;
|
|
68
|
+
/**
|
|
69
|
+
* Email address of the broker to be associated with this application.
|
|
70
|
+
*/
|
|
71
|
+
associatedBrokerEmail?: string | undefined;
|
|
72
|
+
/**
|
|
73
|
+
* Creation timestamp
|
|
74
|
+
*/
|
|
75
|
+
createdAt?: string | undefined;
|
|
76
|
+
/**
|
|
77
|
+
* Last update timestamp
|
|
78
|
+
*/
|
|
79
|
+
updatedAt?: string | undefined;
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* A Consumer Application resource following JSON:API structure
|
|
84
|
+
*/
|
|
85
|
+
export type ConsumerSecuredApplicationResource = {
|
|
86
|
+
type: ConsumerSecuredApplicationResourceType;
|
|
87
|
+
id?: string | undefined;
|
|
88
|
+
/**
|
|
89
|
+
* Application resource attributes
|
|
90
|
+
*/
|
|
91
|
+
attributes: ConsumerSecuredApplicationResourceAttributes;
|
|
92
|
+
/**
|
|
93
|
+
* Relationships for a Consumer Application Resource
|
|
94
|
+
*/
|
|
95
|
+
relationships: ConsumerApplicationJsonApiRelationships;
|
|
96
|
+
links?: { [k: string]: LinkObject } | undefined;
|
|
97
|
+
meta?: { [k: string]: any } | undefined;
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
/** @internal */
|
|
101
|
+
export const ConsumerSecuredApplicationResourceType$inboundSchema:
|
|
102
|
+
z.ZodNativeEnum<typeof ConsumerSecuredApplicationResourceType> = z.nativeEnum(
|
|
103
|
+
ConsumerSecuredApplicationResourceType,
|
|
104
|
+
);
|
|
105
|
+
|
|
106
|
+
/** @internal */
|
|
107
|
+
export const ConsumerSecuredApplicationResourceType$outboundSchema:
|
|
108
|
+
z.ZodNativeEnum<typeof ConsumerSecuredApplicationResourceType> =
|
|
109
|
+
ConsumerSecuredApplicationResourceType$inboundSchema;
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* @internal
|
|
113
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
114
|
+
*/
|
|
115
|
+
export namespace ConsumerSecuredApplicationResourceType$ {
|
|
116
|
+
/** @deprecated use `ConsumerSecuredApplicationResourceType$inboundSchema` instead. */
|
|
117
|
+
export const inboundSchema =
|
|
118
|
+
ConsumerSecuredApplicationResourceType$inboundSchema;
|
|
119
|
+
/** @deprecated use `ConsumerSecuredApplicationResourceType$outboundSchema` instead. */
|
|
120
|
+
export const outboundSchema =
|
|
121
|
+
ConsumerSecuredApplicationResourceType$outboundSchema;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/** @internal */
|
|
125
|
+
export const ConsumerSecuredApplicationResourceApplicationType$inboundSchema:
|
|
126
|
+
z.ZodNativeEnum<typeof ConsumerSecuredApplicationResourceApplicationType> = z
|
|
127
|
+
.nativeEnum(ConsumerSecuredApplicationResourceApplicationType);
|
|
128
|
+
|
|
129
|
+
/** @internal */
|
|
130
|
+
export const ConsumerSecuredApplicationResourceApplicationType$outboundSchema:
|
|
131
|
+
z.ZodNativeEnum<typeof ConsumerSecuredApplicationResourceApplicationType> =
|
|
132
|
+
ConsumerSecuredApplicationResourceApplicationType$inboundSchema;
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* @internal
|
|
136
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
137
|
+
*/
|
|
138
|
+
export namespace ConsumerSecuredApplicationResourceApplicationType$ {
|
|
139
|
+
/** @deprecated use `ConsumerSecuredApplicationResourceApplicationType$inboundSchema` instead. */
|
|
140
|
+
export const inboundSchema =
|
|
141
|
+
ConsumerSecuredApplicationResourceApplicationType$inboundSchema;
|
|
142
|
+
/** @deprecated use `ConsumerSecuredApplicationResourceApplicationType$outboundSchema` instead. */
|
|
143
|
+
export const outboundSchema =
|
|
144
|
+
ConsumerSecuredApplicationResourceApplicationType$outboundSchema;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
/** @internal */
|
|
148
|
+
export const ConsumerSecuredApplicationResourceAttributes$inboundSchema:
|
|
149
|
+
z.ZodType<
|
|
150
|
+
ConsumerSecuredApplicationResourceAttributes,
|
|
151
|
+
z.ZodTypeDef,
|
|
152
|
+
unknown
|
|
153
|
+
> = z.object({
|
|
154
|
+
id: z.string(),
|
|
155
|
+
humanId: z.string(),
|
|
156
|
+
applicationType:
|
|
157
|
+
ConsumerSecuredApplicationResourceApplicationType$inboundSchema,
|
|
158
|
+
status: ApplicationStatus$inboundSchema,
|
|
159
|
+
associatedBrokerEmail: z.string().optional(),
|
|
160
|
+
createdAt: z.string().optional(),
|
|
161
|
+
updatedAt: z.string().optional(),
|
|
162
|
+
});
|
|
163
|
+
|
|
164
|
+
/** @internal */
|
|
165
|
+
export type ConsumerSecuredApplicationResourceAttributes$Outbound = {
|
|
166
|
+
id: string;
|
|
167
|
+
humanId: string;
|
|
168
|
+
applicationType: string;
|
|
169
|
+
status: string;
|
|
170
|
+
associatedBrokerEmail?: string | undefined;
|
|
171
|
+
createdAt?: string | undefined;
|
|
172
|
+
updatedAt?: string | undefined;
|
|
173
|
+
};
|
|
174
|
+
|
|
175
|
+
/** @internal */
|
|
176
|
+
export const ConsumerSecuredApplicationResourceAttributes$outboundSchema:
|
|
177
|
+
z.ZodType<
|
|
178
|
+
ConsumerSecuredApplicationResourceAttributes$Outbound,
|
|
179
|
+
z.ZodTypeDef,
|
|
180
|
+
ConsumerSecuredApplicationResourceAttributes
|
|
181
|
+
> = z.object({
|
|
182
|
+
id: z.string(),
|
|
183
|
+
humanId: z.string(),
|
|
184
|
+
applicationType:
|
|
185
|
+
ConsumerSecuredApplicationResourceApplicationType$outboundSchema,
|
|
186
|
+
status: ApplicationStatus$outboundSchema,
|
|
187
|
+
associatedBrokerEmail: z.string().optional(),
|
|
188
|
+
createdAt: z.string().optional(),
|
|
189
|
+
updatedAt: z.string().optional(),
|
|
190
|
+
});
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* @internal
|
|
194
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
195
|
+
*/
|
|
196
|
+
export namespace ConsumerSecuredApplicationResourceAttributes$ {
|
|
197
|
+
/** @deprecated use `ConsumerSecuredApplicationResourceAttributes$inboundSchema` instead. */
|
|
198
|
+
export const inboundSchema =
|
|
199
|
+
ConsumerSecuredApplicationResourceAttributes$inboundSchema;
|
|
200
|
+
/** @deprecated use `ConsumerSecuredApplicationResourceAttributes$outboundSchema` instead. */
|
|
201
|
+
export const outboundSchema =
|
|
202
|
+
ConsumerSecuredApplicationResourceAttributes$outboundSchema;
|
|
203
|
+
/** @deprecated use `ConsumerSecuredApplicationResourceAttributes$Outbound` instead. */
|
|
204
|
+
export type Outbound = ConsumerSecuredApplicationResourceAttributes$Outbound;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
export function consumerSecuredApplicationResourceAttributesToJSON(
|
|
208
|
+
consumerSecuredApplicationResourceAttributes:
|
|
209
|
+
ConsumerSecuredApplicationResourceAttributes,
|
|
210
|
+
): string {
|
|
211
|
+
return JSON.stringify(
|
|
212
|
+
ConsumerSecuredApplicationResourceAttributes$outboundSchema.parse(
|
|
213
|
+
consumerSecuredApplicationResourceAttributes,
|
|
214
|
+
),
|
|
215
|
+
);
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
export function consumerSecuredApplicationResourceAttributesFromJSON(
|
|
219
|
+
jsonString: string,
|
|
220
|
+
): SafeParseResult<
|
|
221
|
+
ConsumerSecuredApplicationResourceAttributes,
|
|
222
|
+
SDKValidationError
|
|
223
|
+
> {
|
|
224
|
+
return safeParse(
|
|
225
|
+
jsonString,
|
|
226
|
+
(x) =>
|
|
227
|
+
ConsumerSecuredApplicationResourceAttributes$inboundSchema.parse(
|
|
228
|
+
JSON.parse(x),
|
|
229
|
+
),
|
|
230
|
+
`Failed to parse 'ConsumerSecuredApplicationResourceAttributes' from JSON`,
|
|
231
|
+
);
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
/** @internal */
|
|
235
|
+
export const ConsumerSecuredApplicationResource$inboundSchema: z.ZodType<
|
|
236
|
+
ConsumerSecuredApplicationResource,
|
|
237
|
+
z.ZodTypeDef,
|
|
238
|
+
unknown
|
|
239
|
+
> = z.object({
|
|
240
|
+
type: ConsumerSecuredApplicationResourceType$inboundSchema,
|
|
241
|
+
id: z.string().optional(),
|
|
242
|
+
attributes: z.lazy(() =>
|
|
243
|
+
ConsumerSecuredApplicationResourceAttributes$inboundSchema
|
|
244
|
+
),
|
|
245
|
+
relationships: ConsumerApplicationJsonApiRelationships$inboundSchema,
|
|
246
|
+
links: z.record(LinkObject$inboundSchema).optional(),
|
|
247
|
+
meta: z.record(z.any()).optional(),
|
|
248
|
+
});
|
|
249
|
+
|
|
250
|
+
/** @internal */
|
|
251
|
+
export type ConsumerSecuredApplicationResource$Outbound = {
|
|
252
|
+
type: string;
|
|
253
|
+
id?: string | undefined;
|
|
254
|
+
attributes: ConsumerSecuredApplicationResourceAttributes$Outbound;
|
|
255
|
+
relationships: ConsumerApplicationJsonApiRelationships$Outbound;
|
|
256
|
+
links?: { [k: string]: LinkObject$Outbound } | undefined;
|
|
257
|
+
meta?: { [k: string]: any } | undefined;
|
|
258
|
+
};
|
|
259
|
+
|
|
260
|
+
/** @internal */
|
|
261
|
+
export const ConsumerSecuredApplicationResource$outboundSchema: z.ZodType<
|
|
262
|
+
ConsumerSecuredApplicationResource$Outbound,
|
|
263
|
+
z.ZodTypeDef,
|
|
264
|
+
ConsumerSecuredApplicationResource
|
|
265
|
+
> = z.object({
|
|
266
|
+
type: ConsumerSecuredApplicationResourceType$outboundSchema,
|
|
267
|
+
id: z.string().optional(),
|
|
268
|
+
attributes: z.lazy(() =>
|
|
269
|
+
ConsumerSecuredApplicationResourceAttributes$outboundSchema
|
|
270
|
+
),
|
|
271
|
+
relationships: ConsumerApplicationJsonApiRelationships$outboundSchema,
|
|
272
|
+
links: z.record(LinkObject$outboundSchema).optional(),
|
|
273
|
+
meta: z.record(z.any()).optional(),
|
|
274
|
+
});
|
|
275
|
+
|
|
276
|
+
/**
|
|
277
|
+
* @internal
|
|
278
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
279
|
+
*/
|
|
280
|
+
export namespace ConsumerSecuredApplicationResource$ {
|
|
281
|
+
/** @deprecated use `ConsumerSecuredApplicationResource$inboundSchema` instead. */
|
|
282
|
+
export const inboundSchema = ConsumerSecuredApplicationResource$inboundSchema;
|
|
283
|
+
/** @deprecated use `ConsumerSecuredApplicationResource$outboundSchema` instead. */
|
|
284
|
+
export const outboundSchema =
|
|
285
|
+
ConsumerSecuredApplicationResource$outboundSchema;
|
|
286
|
+
/** @deprecated use `ConsumerSecuredApplicationResource$Outbound` instead. */
|
|
287
|
+
export type Outbound = ConsumerSecuredApplicationResource$Outbound;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
export function consumerSecuredApplicationResourceToJSON(
|
|
291
|
+
consumerSecuredApplicationResource: ConsumerSecuredApplicationResource,
|
|
292
|
+
): string {
|
|
293
|
+
return JSON.stringify(
|
|
294
|
+
ConsumerSecuredApplicationResource$outboundSchema.parse(
|
|
295
|
+
consumerSecuredApplicationResource,
|
|
296
|
+
),
|
|
297
|
+
);
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
export function consumerSecuredApplicationResourceFromJSON(
|
|
301
|
+
jsonString: string,
|
|
302
|
+
): SafeParseResult<ConsumerSecuredApplicationResource, SDKValidationError> {
|
|
303
|
+
return safeParse(
|
|
304
|
+
jsonString,
|
|
305
|
+
(x) =>
|
|
306
|
+
ConsumerSecuredApplicationResource$inboundSchema.parse(JSON.parse(x)),
|
|
307
|
+
`Failed to parse 'ConsumerSecuredApplicationResource' from JSON`,
|
|
308
|
+
);
|
|
309
|
+
}
|
|
@@ -52,6 +52,7 @@ export type ConsumerSecuredLoanAssetAttributesRegistrationState = ClosedEnum<
|
|
|
52
52
|
* The asset to be obtained by the customer, using the proposed loan financing.
|
|
53
53
|
*/
|
|
54
54
|
export type ConsumerSecuredLoanAssetAttributes = {
|
|
55
|
+
id: string;
|
|
55
56
|
/**
|
|
56
57
|
* Current age of asset as number (integer) of years
|
|
57
58
|
*/
|
|
@@ -204,6 +205,7 @@ export const ConsumerSecuredLoanAssetAttributes$inboundSchema: z.ZodType<
|
|
|
204
205
|
z.ZodTypeDef,
|
|
205
206
|
unknown
|
|
206
207
|
> = z.object({
|
|
208
|
+
id: z.string(),
|
|
207
209
|
ageOfAsset: z.number().int(),
|
|
208
210
|
ageOfAssetAtEnd: z.number().int(),
|
|
209
211
|
condition: ConsumerSecuredLoanAssetAttributesCondition$inboundSchema,
|
|
@@ -234,6 +236,7 @@ export const ConsumerSecuredLoanAssetAttributes$inboundSchema: z.ZodType<
|
|
|
234
236
|
|
|
235
237
|
/** @internal */
|
|
236
238
|
export type ConsumerSecuredLoanAssetAttributes$Outbound = {
|
|
239
|
+
id: string;
|
|
237
240
|
ageOfAsset: number;
|
|
238
241
|
ageOfAssetAtEnd: number;
|
|
239
242
|
condition: string;
|
|
@@ -266,6 +269,7 @@ export const ConsumerSecuredLoanAssetAttributes$outboundSchema: z.ZodType<
|
|
|
266
269
|
z.ZodTypeDef,
|
|
267
270
|
ConsumerSecuredLoanAssetAttributes
|
|
268
271
|
> = z.object({
|
|
272
|
+
id: z.string(),
|
|
269
273
|
ageOfAsset: z.number().int(),
|
|
270
274
|
ageOfAssetAtEnd: z.number().int(),
|
|
271
275
|
condition: ConsumerSecuredLoanAssetAttributesCondition$outboundSchema,
|
|
@@ -25,6 +25,12 @@ import {
|
|
|
25
25
|
CustomerAttributes$Outbound,
|
|
26
26
|
CustomerAttributes$outboundSchema,
|
|
27
27
|
} from "./customerattributes.js";
|
|
28
|
+
import {
|
|
29
|
+
LinkObject,
|
|
30
|
+
LinkObject$inboundSchema,
|
|
31
|
+
LinkObject$Outbound,
|
|
32
|
+
LinkObject$outboundSchema,
|
|
33
|
+
} from "./linkobject.js";
|
|
28
34
|
import {
|
|
29
35
|
LoanDetailsAttributes,
|
|
30
36
|
LoanDetailsAttributes$inboundSchema,
|
|
@@ -45,6 +51,8 @@ export type ConsumerSecuredLoanConsumerApplicationRelationshipsData = {
|
|
|
45
51
|
*/
|
|
46
52
|
attributes: LoanDetailsAttributes;
|
|
47
53
|
relationships?: any | null | undefined;
|
|
54
|
+
links?: { [k: string]: LinkObject } | undefined;
|
|
55
|
+
meta?: { [k: string]: any } | undefined;
|
|
48
56
|
};
|
|
49
57
|
|
|
50
58
|
export type ConsumerSecuredLoanConsumerApplicationRelationshipsLoanDetails = {
|
|
@@ -74,6 +82,8 @@ export type ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData
|
|
|
74
82
|
type: ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataType;
|
|
75
83
|
attributes: AddressAttributes;
|
|
76
84
|
relationships?: any | null | undefined;
|
|
85
|
+
links?: { [k: string]: LinkObject } | undefined;
|
|
86
|
+
meta?: { [k: string]: any } | undefined;
|
|
77
87
|
};
|
|
78
88
|
|
|
79
89
|
export type ConsumerSecuredLoanConsumerApplicationRelationshipsAddresses = {
|
|
@@ -94,9 +104,10 @@ export type ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersData = {
|
|
|
94
104
|
* A customer of the proposed financing
|
|
95
105
|
*/
|
|
96
106
|
attributes: CustomerAttributes;
|
|
97
|
-
relationships
|
|
98
|
-
|
|
99
|
-
|
|
107
|
+
relationships:
|
|
108
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsRelationships;
|
|
109
|
+
links?: { [k: string]: LinkObject } | undefined;
|
|
110
|
+
meta?: { [k: string]: any } | undefined;
|
|
100
111
|
};
|
|
101
112
|
|
|
102
113
|
export type ConsumerSecuredLoanConsumerApplicationRelationshipsCustomers = {
|
|
@@ -118,6 +129,8 @@ export type ConsumerSecuredLoanConsumerApplicationRelationshipsAssetData = {
|
|
|
118
129
|
*/
|
|
119
130
|
attributes: ConsumerSecuredLoanAssetAttributes;
|
|
120
131
|
relationships?: any | null | undefined;
|
|
132
|
+
links?: { [k: string]: LinkObject } | undefined;
|
|
133
|
+
meta?: { [k: string]: any } | undefined;
|
|
121
134
|
};
|
|
122
135
|
|
|
123
136
|
export type ConsumerSecuredLoanConsumerApplicationRelationshipsAsset = {
|
|
@@ -169,6 +182,8 @@ export const ConsumerSecuredLoanConsumerApplicationRelationshipsData$inboundSche
|
|
|
169
182
|
type: ConsumerSecuredLoanConsumerApplicationRelationshipsType$inboundSchema,
|
|
170
183
|
attributes: LoanDetailsAttributes$inboundSchema,
|
|
171
184
|
relationships: z.nullable(z.any()).optional(),
|
|
185
|
+
links: z.record(LinkObject$inboundSchema).optional(),
|
|
186
|
+
meta: z.record(z.any()).optional(),
|
|
172
187
|
});
|
|
173
188
|
|
|
174
189
|
/** @internal */
|
|
@@ -176,6 +191,8 @@ export type ConsumerSecuredLoanConsumerApplicationRelationshipsData$Outbound = {
|
|
|
176
191
|
type: string;
|
|
177
192
|
attributes: LoanDetailsAttributes$Outbound;
|
|
178
193
|
relationships?: any | null | undefined;
|
|
194
|
+
links?: { [k: string]: LinkObject$Outbound } | undefined;
|
|
195
|
+
meta?: { [k: string]: any } | undefined;
|
|
179
196
|
};
|
|
180
197
|
|
|
181
198
|
/** @internal */
|
|
@@ -189,6 +206,8 @@ export const ConsumerSecuredLoanConsumerApplicationRelationshipsData$outboundSch
|
|
|
189
206
|
ConsumerSecuredLoanConsumerApplicationRelationshipsType$outboundSchema,
|
|
190
207
|
attributes: LoanDetailsAttributes$outboundSchema,
|
|
191
208
|
relationships: z.nullable(z.any()).optional(),
|
|
209
|
+
links: z.record(LinkObject$outboundSchema).optional(),
|
|
210
|
+
meta: z.record(z.any()).optional(),
|
|
192
211
|
});
|
|
193
212
|
|
|
194
213
|
/**
|
|
@@ -370,6 +389,8 @@ export const ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataDat
|
|
|
370
389
|
ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataType$inboundSchema,
|
|
371
390
|
attributes: AddressAttributes$inboundSchema,
|
|
372
391
|
relationships: z.nullable(z.any()).optional(),
|
|
392
|
+
links: z.record(LinkObject$inboundSchema).optional(),
|
|
393
|
+
meta: z.record(z.any()).optional(),
|
|
373
394
|
});
|
|
374
395
|
|
|
375
396
|
/** @internal */
|
|
@@ -378,6 +399,8 @@ export type ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData
|
|
|
378
399
|
type: string;
|
|
379
400
|
attributes: AddressAttributes$Outbound;
|
|
380
401
|
relationships?: any | null | undefined;
|
|
402
|
+
links?: { [k: string]: LinkObject$Outbound } | undefined;
|
|
403
|
+
meta?: { [k: string]: any } | undefined;
|
|
381
404
|
};
|
|
382
405
|
|
|
383
406
|
/** @internal */
|
|
@@ -391,6 +414,8 @@ export const ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataDat
|
|
|
391
414
|
ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataType$outboundSchema,
|
|
392
415
|
attributes: AddressAttributes$outboundSchema,
|
|
393
416
|
relationships: z.nullable(z.any()).optional(),
|
|
417
|
+
links: z.record(LinkObject$outboundSchema).optional(),
|
|
418
|
+
meta: z.record(z.any()).optional(),
|
|
394
419
|
});
|
|
395
420
|
|
|
396
421
|
/**
|
|
@@ -598,7 +623,9 @@ export const ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersData$in
|
|
|
598
623
|
attributes: CustomerAttributes$inboundSchema,
|
|
599
624
|
relationships: z.lazy(() =>
|
|
600
625
|
ConsumerSecuredLoanConsumerApplicationRelationshipsRelationships$inboundSchema
|
|
601
|
-
)
|
|
626
|
+
),
|
|
627
|
+
links: z.record(LinkObject$inboundSchema).optional(),
|
|
628
|
+
meta: z.record(z.any()).optional(),
|
|
602
629
|
});
|
|
603
630
|
|
|
604
631
|
/** @internal */
|
|
@@ -606,9 +633,10 @@ export type ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersData$Out
|
|
|
606
633
|
{
|
|
607
634
|
type: string;
|
|
608
635
|
attributes: CustomerAttributes$Outbound;
|
|
609
|
-
relationships
|
|
610
|
-
|
|
611
|
-
|
|
636
|
+
relationships:
|
|
637
|
+
ConsumerSecuredLoanConsumerApplicationRelationshipsRelationships$Outbound;
|
|
638
|
+
links?: { [k: string]: LinkObject$Outbound } | undefined;
|
|
639
|
+
meta?: { [k: string]: any } | undefined;
|
|
612
640
|
};
|
|
613
641
|
|
|
614
642
|
/** @internal */
|
|
@@ -623,7 +651,9 @@ export const ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersData$ou
|
|
|
623
651
|
attributes: CustomerAttributes$outboundSchema,
|
|
624
652
|
relationships: z.lazy(() =>
|
|
625
653
|
ConsumerSecuredLoanConsumerApplicationRelationshipsRelationships$outboundSchema
|
|
626
|
-
)
|
|
654
|
+
),
|
|
655
|
+
links: z.record(LinkObject$outboundSchema).optional(),
|
|
656
|
+
meta: z.record(z.any()).optional(),
|
|
627
657
|
});
|
|
628
658
|
|
|
629
659
|
/**
|
|
@@ -783,6 +813,8 @@ export const ConsumerSecuredLoanConsumerApplicationRelationshipsAssetData$inboun
|
|
|
783
813
|
ConsumerSecuredLoanConsumerApplicationRelationshipsAssetType$inboundSchema,
|
|
784
814
|
attributes: ConsumerSecuredLoanAssetAttributes$inboundSchema,
|
|
785
815
|
relationships: z.nullable(z.any()).optional(),
|
|
816
|
+
links: z.record(LinkObject$inboundSchema).optional(),
|
|
817
|
+
meta: z.record(z.any()).optional(),
|
|
786
818
|
});
|
|
787
819
|
|
|
788
820
|
/** @internal */
|
|
@@ -791,6 +823,8 @@ export type ConsumerSecuredLoanConsumerApplicationRelationshipsAssetData$Outboun
|
|
|
791
823
|
type: string;
|
|
792
824
|
attributes: ConsumerSecuredLoanAssetAttributes$Outbound;
|
|
793
825
|
relationships?: any | null | undefined;
|
|
826
|
+
links?: { [k: string]: LinkObject$Outbound } | undefined;
|
|
827
|
+
meta?: { [k: string]: any } | undefined;
|
|
794
828
|
};
|
|
795
829
|
|
|
796
830
|
/** @internal */
|
|
@@ -804,6 +838,8 @@ export const ConsumerSecuredLoanConsumerApplicationRelationshipsAssetData$outbou
|
|
|
804
838
|
ConsumerSecuredLoanConsumerApplicationRelationshipsAssetType$outboundSchema,
|
|
805
839
|
attributes: ConsumerSecuredLoanAssetAttributes$outboundSchema,
|
|
806
840
|
relationships: z.nullable(z.any()).optional(),
|
|
841
|
+
links: z.record(LinkObject$outboundSchema).optional(),
|
|
842
|
+
meta: z.record(z.any()).optional(),
|
|
807
843
|
});
|
|
808
844
|
|
|
809
845
|
/**
|