@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
|
@@ -1,355 +0,0 @@
|
|
|
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
|
-
CommercialApplicationJsonApiRelationships,
|
|
17
|
-
CommercialApplicationJsonApiRelationships$inboundSchema,
|
|
18
|
-
CommercialApplicationJsonApiRelationships$Outbound,
|
|
19
|
-
CommercialApplicationJsonApiRelationships$outboundSchema,
|
|
20
|
-
} from "./commercialapplicationjsonapirelationships.js";
|
|
21
|
-
|
|
22
|
-
export const CommercialApplicationResourceType = {
|
|
23
|
-
CommercialSecuredApplications: "commercial-secured-applications",
|
|
24
|
-
} as const;
|
|
25
|
-
export type CommercialApplicationResourceType = ClosedEnum<
|
|
26
|
-
typeof CommercialApplicationResourceType
|
|
27
|
-
>;
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* Type of the loan application
|
|
31
|
-
*/
|
|
32
|
-
export const CommercialApplicationResourceApplicationType = {
|
|
33
|
-
CommercialSecured: "commercialSecured",
|
|
34
|
-
} as const;
|
|
35
|
-
/**
|
|
36
|
-
* Type of the loan application
|
|
37
|
-
*/
|
|
38
|
-
export type CommercialApplicationResourceApplicationType = ClosedEnum<
|
|
39
|
-
typeof CommercialApplicationResourceApplicationType
|
|
40
|
-
>;
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* Application resource attributes
|
|
44
|
-
*/
|
|
45
|
-
export type CommercialApplicationResourceAttributes = {
|
|
46
|
-
/**
|
|
47
|
-
* Full identifier of the application. Not visible within the web application.
|
|
48
|
-
*/
|
|
49
|
-
id: string;
|
|
50
|
-
/**
|
|
51
|
-
* Human readable & easily communicated identifier of the application. Visible within the web application.
|
|
52
|
-
*/
|
|
53
|
-
humanId: string;
|
|
54
|
-
/**
|
|
55
|
-
* Type of the loan application
|
|
56
|
-
*/
|
|
57
|
-
applicationType: CommercialApplicationResourceApplicationType;
|
|
58
|
-
/**
|
|
59
|
-
* Current status, must be 'workshop' for new applications
|
|
60
|
-
*/
|
|
61
|
-
status: ApplicationStatus;
|
|
62
|
-
/**
|
|
63
|
-
* Email address of the broker to be associated with this application.
|
|
64
|
-
*/
|
|
65
|
-
associatedBrokerEmail?: string | undefined;
|
|
66
|
-
/**
|
|
67
|
-
* Creation timestamp
|
|
68
|
-
*/
|
|
69
|
-
createdAt?: string | undefined;
|
|
70
|
-
/**
|
|
71
|
-
* Last update timestamp
|
|
72
|
-
*/
|
|
73
|
-
updatedAt?: string | undefined;
|
|
74
|
-
};
|
|
75
|
-
|
|
76
|
-
export type CommercialApplicationResourceLinks = {};
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
* A Commercial Application resource following JSON:API structure
|
|
80
|
-
*/
|
|
81
|
-
export type CommercialApplicationResource = {
|
|
82
|
-
type: CommercialApplicationResourceType;
|
|
83
|
-
id: string;
|
|
84
|
-
/**
|
|
85
|
-
* Application resource attributes
|
|
86
|
-
*/
|
|
87
|
-
attributes?: CommercialApplicationResourceAttributes | undefined;
|
|
88
|
-
/**
|
|
89
|
-
* Relationships for a Commercial Application Resource
|
|
90
|
-
*/
|
|
91
|
-
relationships: CommercialApplicationJsonApiRelationships;
|
|
92
|
-
links?: { [k: string]: CommercialApplicationResourceLinks } | undefined;
|
|
93
|
-
meta?: { [k: string]: any } | undefined;
|
|
94
|
-
};
|
|
95
|
-
|
|
96
|
-
/** @internal */
|
|
97
|
-
export const CommercialApplicationResourceType$inboundSchema: z.ZodNativeEnum<
|
|
98
|
-
typeof CommercialApplicationResourceType
|
|
99
|
-
> = z.nativeEnum(CommercialApplicationResourceType);
|
|
100
|
-
|
|
101
|
-
/** @internal */
|
|
102
|
-
export const CommercialApplicationResourceType$outboundSchema: z.ZodNativeEnum<
|
|
103
|
-
typeof CommercialApplicationResourceType
|
|
104
|
-
> = CommercialApplicationResourceType$inboundSchema;
|
|
105
|
-
|
|
106
|
-
/**
|
|
107
|
-
* @internal
|
|
108
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
109
|
-
*/
|
|
110
|
-
export namespace CommercialApplicationResourceType$ {
|
|
111
|
-
/** @deprecated use `CommercialApplicationResourceType$inboundSchema` instead. */
|
|
112
|
-
export const inboundSchema = CommercialApplicationResourceType$inboundSchema;
|
|
113
|
-
/** @deprecated use `CommercialApplicationResourceType$outboundSchema` instead. */
|
|
114
|
-
export const outboundSchema =
|
|
115
|
-
CommercialApplicationResourceType$outboundSchema;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
/** @internal */
|
|
119
|
-
export const CommercialApplicationResourceApplicationType$inboundSchema:
|
|
120
|
-
z.ZodNativeEnum<typeof CommercialApplicationResourceApplicationType> = z
|
|
121
|
-
.nativeEnum(CommercialApplicationResourceApplicationType);
|
|
122
|
-
|
|
123
|
-
/** @internal */
|
|
124
|
-
export const CommercialApplicationResourceApplicationType$outboundSchema:
|
|
125
|
-
z.ZodNativeEnum<typeof CommercialApplicationResourceApplicationType> =
|
|
126
|
-
CommercialApplicationResourceApplicationType$inboundSchema;
|
|
127
|
-
|
|
128
|
-
/**
|
|
129
|
-
* @internal
|
|
130
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
131
|
-
*/
|
|
132
|
-
export namespace CommercialApplicationResourceApplicationType$ {
|
|
133
|
-
/** @deprecated use `CommercialApplicationResourceApplicationType$inboundSchema` instead. */
|
|
134
|
-
export const inboundSchema =
|
|
135
|
-
CommercialApplicationResourceApplicationType$inboundSchema;
|
|
136
|
-
/** @deprecated use `CommercialApplicationResourceApplicationType$outboundSchema` instead. */
|
|
137
|
-
export const outboundSchema =
|
|
138
|
-
CommercialApplicationResourceApplicationType$outboundSchema;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
/** @internal */
|
|
142
|
-
export const CommercialApplicationResourceAttributes$inboundSchema: z.ZodType<
|
|
143
|
-
CommercialApplicationResourceAttributes,
|
|
144
|
-
z.ZodTypeDef,
|
|
145
|
-
unknown
|
|
146
|
-
> = z.object({
|
|
147
|
-
id: z.string(),
|
|
148
|
-
humanId: z.string(),
|
|
149
|
-
applicationType: CommercialApplicationResourceApplicationType$inboundSchema,
|
|
150
|
-
status: ApplicationStatus$inboundSchema,
|
|
151
|
-
associatedBrokerEmail: z.string().optional(),
|
|
152
|
-
createdAt: z.string().optional(),
|
|
153
|
-
updatedAt: z.string().optional(),
|
|
154
|
-
});
|
|
155
|
-
|
|
156
|
-
/** @internal */
|
|
157
|
-
export type CommercialApplicationResourceAttributes$Outbound = {
|
|
158
|
-
id: string;
|
|
159
|
-
humanId: string;
|
|
160
|
-
applicationType: string;
|
|
161
|
-
status: string;
|
|
162
|
-
associatedBrokerEmail?: string | undefined;
|
|
163
|
-
createdAt?: string | undefined;
|
|
164
|
-
updatedAt?: string | undefined;
|
|
165
|
-
};
|
|
166
|
-
|
|
167
|
-
/** @internal */
|
|
168
|
-
export const CommercialApplicationResourceAttributes$outboundSchema: z.ZodType<
|
|
169
|
-
CommercialApplicationResourceAttributes$Outbound,
|
|
170
|
-
z.ZodTypeDef,
|
|
171
|
-
CommercialApplicationResourceAttributes
|
|
172
|
-
> = z.object({
|
|
173
|
-
id: z.string(),
|
|
174
|
-
humanId: z.string(),
|
|
175
|
-
applicationType: CommercialApplicationResourceApplicationType$outboundSchema,
|
|
176
|
-
status: ApplicationStatus$outboundSchema,
|
|
177
|
-
associatedBrokerEmail: z.string().optional(),
|
|
178
|
-
createdAt: z.string().optional(),
|
|
179
|
-
updatedAt: z.string().optional(),
|
|
180
|
-
});
|
|
181
|
-
|
|
182
|
-
/**
|
|
183
|
-
* @internal
|
|
184
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
185
|
-
*/
|
|
186
|
-
export namespace CommercialApplicationResourceAttributes$ {
|
|
187
|
-
/** @deprecated use `CommercialApplicationResourceAttributes$inboundSchema` instead. */
|
|
188
|
-
export const inboundSchema =
|
|
189
|
-
CommercialApplicationResourceAttributes$inboundSchema;
|
|
190
|
-
/** @deprecated use `CommercialApplicationResourceAttributes$outboundSchema` instead. */
|
|
191
|
-
export const outboundSchema =
|
|
192
|
-
CommercialApplicationResourceAttributes$outboundSchema;
|
|
193
|
-
/** @deprecated use `CommercialApplicationResourceAttributes$Outbound` instead. */
|
|
194
|
-
export type Outbound = CommercialApplicationResourceAttributes$Outbound;
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
export function commercialApplicationResourceAttributesToJSON(
|
|
198
|
-
commercialApplicationResourceAttributes:
|
|
199
|
-
CommercialApplicationResourceAttributes,
|
|
200
|
-
): string {
|
|
201
|
-
return JSON.stringify(
|
|
202
|
-
CommercialApplicationResourceAttributes$outboundSchema.parse(
|
|
203
|
-
commercialApplicationResourceAttributes,
|
|
204
|
-
),
|
|
205
|
-
);
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
export function commercialApplicationResourceAttributesFromJSON(
|
|
209
|
-
jsonString: string,
|
|
210
|
-
): SafeParseResult<
|
|
211
|
-
CommercialApplicationResourceAttributes,
|
|
212
|
-
SDKValidationError
|
|
213
|
-
> {
|
|
214
|
-
return safeParse(
|
|
215
|
-
jsonString,
|
|
216
|
-
(x) =>
|
|
217
|
-
CommercialApplicationResourceAttributes$inboundSchema.parse(
|
|
218
|
-
JSON.parse(x),
|
|
219
|
-
),
|
|
220
|
-
`Failed to parse 'CommercialApplicationResourceAttributes' from JSON`,
|
|
221
|
-
);
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
/** @internal */
|
|
225
|
-
export const CommercialApplicationResourceLinks$inboundSchema: z.ZodType<
|
|
226
|
-
CommercialApplicationResourceLinks,
|
|
227
|
-
z.ZodTypeDef,
|
|
228
|
-
unknown
|
|
229
|
-
> = z.object({});
|
|
230
|
-
|
|
231
|
-
/** @internal */
|
|
232
|
-
export type CommercialApplicationResourceLinks$Outbound = {};
|
|
233
|
-
|
|
234
|
-
/** @internal */
|
|
235
|
-
export const CommercialApplicationResourceLinks$outboundSchema: z.ZodType<
|
|
236
|
-
CommercialApplicationResourceLinks$Outbound,
|
|
237
|
-
z.ZodTypeDef,
|
|
238
|
-
CommercialApplicationResourceLinks
|
|
239
|
-
> = z.object({});
|
|
240
|
-
|
|
241
|
-
/**
|
|
242
|
-
* @internal
|
|
243
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
244
|
-
*/
|
|
245
|
-
export namespace CommercialApplicationResourceLinks$ {
|
|
246
|
-
/** @deprecated use `CommercialApplicationResourceLinks$inboundSchema` instead. */
|
|
247
|
-
export const inboundSchema = CommercialApplicationResourceLinks$inboundSchema;
|
|
248
|
-
/** @deprecated use `CommercialApplicationResourceLinks$outboundSchema` instead. */
|
|
249
|
-
export const outboundSchema =
|
|
250
|
-
CommercialApplicationResourceLinks$outboundSchema;
|
|
251
|
-
/** @deprecated use `CommercialApplicationResourceLinks$Outbound` instead. */
|
|
252
|
-
export type Outbound = CommercialApplicationResourceLinks$Outbound;
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
export function commercialApplicationResourceLinksToJSON(
|
|
256
|
-
commercialApplicationResourceLinks: CommercialApplicationResourceLinks,
|
|
257
|
-
): string {
|
|
258
|
-
return JSON.stringify(
|
|
259
|
-
CommercialApplicationResourceLinks$outboundSchema.parse(
|
|
260
|
-
commercialApplicationResourceLinks,
|
|
261
|
-
),
|
|
262
|
-
);
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
export function commercialApplicationResourceLinksFromJSON(
|
|
266
|
-
jsonString: string,
|
|
267
|
-
): SafeParseResult<CommercialApplicationResourceLinks, SDKValidationError> {
|
|
268
|
-
return safeParse(
|
|
269
|
-
jsonString,
|
|
270
|
-
(x) =>
|
|
271
|
-
CommercialApplicationResourceLinks$inboundSchema.parse(JSON.parse(x)),
|
|
272
|
-
`Failed to parse 'CommercialApplicationResourceLinks' from JSON`,
|
|
273
|
-
);
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
/** @internal */
|
|
277
|
-
export const CommercialApplicationResource$inboundSchema: z.ZodType<
|
|
278
|
-
CommercialApplicationResource,
|
|
279
|
-
z.ZodTypeDef,
|
|
280
|
-
unknown
|
|
281
|
-
> = z.object({
|
|
282
|
-
type: CommercialApplicationResourceType$inboundSchema,
|
|
283
|
-
id: z.string(),
|
|
284
|
-
attributes: z.lazy(() =>
|
|
285
|
-
CommercialApplicationResourceAttributes$inboundSchema
|
|
286
|
-
).optional(),
|
|
287
|
-
relationships: CommercialApplicationJsonApiRelationships$inboundSchema,
|
|
288
|
-
links: z.record(
|
|
289
|
-
z.lazy(() => CommercialApplicationResourceLinks$inboundSchema),
|
|
290
|
-
).optional(),
|
|
291
|
-
meta: z.record(z.any()).optional(),
|
|
292
|
-
});
|
|
293
|
-
|
|
294
|
-
/** @internal */
|
|
295
|
-
export type CommercialApplicationResource$Outbound = {
|
|
296
|
-
type: string;
|
|
297
|
-
id: string;
|
|
298
|
-
attributes?: CommercialApplicationResourceAttributes$Outbound | undefined;
|
|
299
|
-
relationships: CommercialApplicationJsonApiRelationships$Outbound;
|
|
300
|
-
links?:
|
|
301
|
-
| { [k: string]: CommercialApplicationResourceLinks$Outbound }
|
|
302
|
-
| undefined;
|
|
303
|
-
meta?: { [k: string]: any } | undefined;
|
|
304
|
-
};
|
|
305
|
-
|
|
306
|
-
/** @internal */
|
|
307
|
-
export const CommercialApplicationResource$outboundSchema: z.ZodType<
|
|
308
|
-
CommercialApplicationResource$Outbound,
|
|
309
|
-
z.ZodTypeDef,
|
|
310
|
-
CommercialApplicationResource
|
|
311
|
-
> = z.object({
|
|
312
|
-
type: CommercialApplicationResourceType$outboundSchema,
|
|
313
|
-
id: z.string(),
|
|
314
|
-
attributes: z.lazy(() =>
|
|
315
|
-
CommercialApplicationResourceAttributes$outboundSchema
|
|
316
|
-
).optional(),
|
|
317
|
-
relationships: CommercialApplicationJsonApiRelationships$outboundSchema,
|
|
318
|
-
links: z.record(
|
|
319
|
-
z.lazy(() => CommercialApplicationResourceLinks$outboundSchema),
|
|
320
|
-
).optional(),
|
|
321
|
-
meta: z.record(z.any()).optional(),
|
|
322
|
-
});
|
|
323
|
-
|
|
324
|
-
/**
|
|
325
|
-
* @internal
|
|
326
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
327
|
-
*/
|
|
328
|
-
export namespace CommercialApplicationResource$ {
|
|
329
|
-
/** @deprecated use `CommercialApplicationResource$inboundSchema` instead. */
|
|
330
|
-
export const inboundSchema = CommercialApplicationResource$inboundSchema;
|
|
331
|
-
/** @deprecated use `CommercialApplicationResource$outboundSchema` instead. */
|
|
332
|
-
export const outboundSchema = CommercialApplicationResource$outboundSchema;
|
|
333
|
-
/** @deprecated use `CommercialApplicationResource$Outbound` instead. */
|
|
334
|
-
export type Outbound = CommercialApplicationResource$Outbound;
|
|
335
|
-
}
|
|
336
|
-
|
|
337
|
-
export function commercialApplicationResourceToJSON(
|
|
338
|
-
commercialApplicationResource: CommercialApplicationResource,
|
|
339
|
-
): string {
|
|
340
|
-
return JSON.stringify(
|
|
341
|
-
CommercialApplicationResource$outboundSchema.parse(
|
|
342
|
-
commercialApplicationResource,
|
|
343
|
-
),
|
|
344
|
-
);
|
|
345
|
-
}
|
|
346
|
-
|
|
347
|
-
export function commercialApplicationResourceFromJSON(
|
|
348
|
-
jsonString: string,
|
|
349
|
-
): SafeParseResult<CommercialApplicationResource, SDKValidationError> {
|
|
350
|
-
return safeParse(
|
|
351
|
-
jsonString,
|
|
352
|
-
(x) => CommercialApplicationResource$inboundSchema.parse(JSON.parse(x)),
|
|
353
|
-
`Failed to parse 'CommercialApplicationResource' from JSON`,
|
|
354
|
-
);
|
|
355
|
-
}
|
|
@@ -1,342 +0,0 @@
|
|
|
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
|
-
|
|
22
|
-
export const ConsumerApplicationResourceType = {
|
|
23
|
-
ConsumerSecuredApplications: "consumer-secured-applications",
|
|
24
|
-
} as const;
|
|
25
|
-
export type ConsumerApplicationResourceType = ClosedEnum<
|
|
26
|
-
typeof ConsumerApplicationResourceType
|
|
27
|
-
>;
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* Type of the loan application
|
|
31
|
-
*/
|
|
32
|
-
export const ConsumerApplicationResourceApplicationType = {
|
|
33
|
-
ConsumerSecured: "consumerSecured",
|
|
34
|
-
} as const;
|
|
35
|
-
/**
|
|
36
|
-
* Type of the loan application
|
|
37
|
-
*/
|
|
38
|
-
export type ConsumerApplicationResourceApplicationType = ClosedEnum<
|
|
39
|
-
typeof ConsumerApplicationResourceApplicationType
|
|
40
|
-
>;
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* Application resource attributes
|
|
44
|
-
*/
|
|
45
|
-
export type ConsumerApplicationResourceAttributes = {
|
|
46
|
-
/**
|
|
47
|
-
* Full identifier of the application. Not visible within the web application.
|
|
48
|
-
*/
|
|
49
|
-
id: string;
|
|
50
|
-
/**
|
|
51
|
-
* Human readable & easily communicated identifier of the application. Visible within the web application.
|
|
52
|
-
*/
|
|
53
|
-
humanId: string;
|
|
54
|
-
/**
|
|
55
|
-
* Type of the loan application
|
|
56
|
-
*/
|
|
57
|
-
applicationType: ConsumerApplicationResourceApplicationType;
|
|
58
|
-
/**
|
|
59
|
-
* Current status, must be 'workshop' for new applications
|
|
60
|
-
*/
|
|
61
|
-
status: ApplicationStatus;
|
|
62
|
-
/**
|
|
63
|
-
* Email address of the broker to be associated with this application.
|
|
64
|
-
*/
|
|
65
|
-
associatedBrokerEmail?: string | undefined;
|
|
66
|
-
/**
|
|
67
|
-
* Creation timestamp
|
|
68
|
-
*/
|
|
69
|
-
createdAt?: string | undefined;
|
|
70
|
-
/**
|
|
71
|
-
* Last update timestamp
|
|
72
|
-
*/
|
|
73
|
-
updatedAt?: string | undefined;
|
|
74
|
-
};
|
|
75
|
-
|
|
76
|
-
export type ConsumerApplicationResourceLinks = {};
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
* A Consumer Application resource following JSON:API structure
|
|
80
|
-
*/
|
|
81
|
-
export type ConsumerApplicationResource = {
|
|
82
|
-
type: ConsumerApplicationResourceType;
|
|
83
|
-
id: string;
|
|
84
|
-
/**
|
|
85
|
-
* Application resource attributes
|
|
86
|
-
*/
|
|
87
|
-
attributes?: ConsumerApplicationResourceAttributes | undefined;
|
|
88
|
-
/**
|
|
89
|
-
* Relationships for a Consumer Application Resource
|
|
90
|
-
*/
|
|
91
|
-
relationships: ConsumerApplicationJsonApiRelationships;
|
|
92
|
-
links?: { [k: string]: ConsumerApplicationResourceLinks } | undefined;
|
|
93
|
-
meta?: { [k: string]: any } | undefined;
|
|
94
|
-
};
|
|
95
|
-
|
|
96
|
-
/** @internal */
|
|
97
|
-
export const ConsumerApplicationResourceType$inboundSchema: z.ZodNativeEnum<
|
|
98
|
-
typeof ConsumerApplicationResourceType
|
|
99
|
-
> = z.nativeEnum(ConsumerApplicationResourceType);
|
|
100
|
-
|
|
101
|
-
/** @internal */
|
|
102
|
-
export const ConsumerApplicationResourceType$outboundSchema: z.ZodNativeEnum<
|
|
103
|
-
typeof ConsumerApplicationResourceType
|
|
104
|
-
> = ConsumerApplicationResourceType$inboundSchema;
|
|
105
|
-
|
|
106
|
-
/**
|
|
107
|
-
* @internal
|
|
108
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
109
|
-
*/
|
|
110
|
-
export namespace ConsumerApplicationResourceType$ {
|
|
111
|
-
/** @deprecated use `ConsumerApplicationResourceType$inboundSchema` instead. */
|
|
112
|
-
export const inboundSchema = ConsumerApplicationResourceType$inboundSchema;
|
|
113
|
-
/** @deprecated use `ConsumerApplicationResourceType$outboundSchema` instead. */
|
|
114
|
-
export const outboundSchema = ConsumerApplicationResourceType$outboundSchema;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
/** @internal */
|
|
118
|
-
export const ConsumerApplicationResourceApplicationType$inboundSchema:
|
|
119
|
-
z.ZodNativeEnum<typeof ConsumerApplicationResourceApplicationType> = z
|
|
120
|
-
.nativeEnum(ConsumerApplicationResourceApplicationType);
|
|
121
|
-
|
|
122
|
-
/** @internal */
|
|
123
|
-
export const ConsumerApplicationResourceApplicationType$outboundSchema:
|
|
124
|
-
z.ZodNativeEnum<typeof ConsumerApplicationResourceApplicationType> =
|
|
125
|
-
ConsumerApplicationResourceApplicationType$inboundSchema;
|
|
126
|
-
|
|
127
|
-
/**
|
|
128
|
-
* @internal
|
|
129
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
130
|
-
*/
|
|
131
|
-
export namespace ConsumerApplicationResourceApplicationType$ {
|
|
132
|
-
/** @deprecated use `ConsumerApplicationResourceApplicationType$inboundSchema` instead. */
|
|
133
|
-
export const inboundSchema =
|
|
134
|
-
ConsumerApplicationResourceApplicationType$inboundSchema;
|
|
135
|
-
/** @deprecated use `ConsumerApplicationResourceApplicationType$outboundSchema` instead. */
|
|
136
|
-
export const outboundSchema =
|
|
137
|
-
ConsumerApplicationResourceApplicationType$outboundSchema;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
/** @internal */
|
|
141
|
-
export const ConsumerApplicationResourceAttributes$inboundSchema: z.ZodType<
|
|
142
|
-
ConsumerApplicationResourceAttributes,
|
|
143
|
-
z.ZodTypeDef,
|
|
144
|
-
unknown
|
|
145
|
-
> = z.object({
|
|
146
|
-
id: z.string(),
|
|
147
|
-
humanId: z.string(),
|
|
148
|
-
applicationType: ConsumerApplicationResourceApplicationType$inboundSchema,
|
|
149
|
-
status: ApplicationStatus$inboundSchema,
|
|
150
|
-
associatedBrokerEmail: z.string().optional(),
|
|
151
|
-
createdAt: z.string().optional(),
|
|
152
|
-
updatedAt: z.string().optional(),
|
|
153
|
-
});
|
|
154
|
-
|
|
155
|
-
/** @internal */
|
|
156
|
-
export type ConsumerApplicationResourceAttributes$Outbound = {
|
|
157
|
-
id: string;
|
|
158
|
-
humanId: string;
|
|
159
|
-
applicationType: string;
|
|
160
|
-
status: string;
|
|
161
|
-
associatedBrokerEmail?: string | undefined;
|
|
162
|
-
createdAt?: string | undefined;
|
|
163
|
-
updatedAt?: string | undefined;
|
|
164
|
-
};
|
|
165
|
-
|
|
166
|
-
/** @internal */
|
|
167
|
-
export const ConsumerApplicationResourceAttributes$outboundSchema: z.ZodType<
|
|
168
|
-
ConsumerApplicationResourceAttributes$Outbound,
|
|
169
|
-
z.ZodTypeDef,
|
|
170
|
-
ConsumerApplicationResourceAttributes
|
|
171
|
-
> = z.object({
|
|
172
|
-
id: z.string(),
|
|
173
|
-
humanId: z.string(),
|
|
174
|
-
applicationType: ConsumerApplicationResourceApplicationType$outboundSchema,
|
|
175
|
-
status: ApplicationStatus$outboundSchema,
|
|
176
|
-
associatedBrokerEmail: z.string().optional(),
|
|
177
|
-
createdAt: z.string().optional(),
|
|
178
|
-
updatedAt: z.string().optional(),
|
|
179
|
-
});
|
|
180
|
-
|
|
181
|
-
/**
|
|
182
|
-
* @internal
|
|
183
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
184
|
-
*/
|
|
185
|
-
export namespace ConsumerApplicationResourceAttributes$ {
|
|
186
|
-
/** @deprecated use `ConsumerApplicationResourceAttributes$inboundSchema` instead. */
|
|
187
|
-
export const inboundSchema =
|
|
188
|
-
ConsumerApplicationResourceAttributes$inboundSchema;
|
|
189
|
-
/** @deprecated use `ConsumerApplicationResourceAttributes$outboundSchema` instead. */
|
|
190
|
-
export const outboundSchema =
|
|
191
|
-
ConsumerApplicationResourceAttributes$outboundSchema;
|
|
192
|
-
/** @deprecated use `ConsumerApplicationResourceAttributes$Outbound` instead. */
|
|
193
|
-
export type Outbound = ConsumerApplicationResourceAttributes$Outbound;
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
export function consumerApplicationResourceAttributesToJSON(
|
|
197
|
-
consumerApplicationResourceAttributes: ConsumerApplicationResourceAttributes,
|
|
198
|
-
): string {
|
|
199
|
-
return JSON.stringify(
|
|
200
|
-
ConsumerApplicationResourceAttributes$outboundSchema.parse(
|
|
201
|
-
consumerApplicationResourceAttributes,
|
|
202
|
-
),
|
|
203
|
-
);
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
export function consumerApplicationResourceAttributesFromJSON(
|
|
207
|
-
jsonString: string,
|
|
208
|
-
): SafeParseResult<ConsumerApplicationResourceAttributes, SDKValidationError> {
|
|
209
|
-
return safeParse(
|
|
210
|
-
jsonString,
|
|
211
|
-
(x) =>
|
|
212
|
-
ConsumerApplicationResourceAttributes$inboundSchema.parse(JSON.parse(x)),
|
|
213
|
-
`Failed to parse 'ConsumerApplicationResourceAttributes' from JSON`,
|
|
214
|
-
);
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
/** @internal */
|
|
218
|
-
export const ConsumerApplicationResourceLinks$inboundSchema: z.ZodType<
|
|
219
|
-
ConsumerApplicationResourceLinks,
|
|
220
|
-
z.ZodTypeDef,
|
|
221
|
-
unknown
|
|
222
|
-
> = z.object({});
|
|
223
|
-
|
|
224
|
-
/** @internal */
|
|
225
|
-
export type ConsumerApplicationResourceLinks$Outbound = {};
|
|
226
|
-
|
|
227
|
-
/** @internal */
|
|
228
|
-
export const ConsumerApplicationResourceLinks$outboundSchema: z.ZodType<
|
|
229
|
-
ConsumerApplicationResourceLinks$Outbound,
|
|
230
|
-
z.ZodTypeDef,
|
|
231
|
-
ConsumerApplicationResourceLinks
|
|
232
|
-
> = z.object({});
|
|
233
|
-
|
|
234
|
-
/**
|
|
235
|
-
* @internal
|
|
236
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
237
|
-
*/
|
|
238
|
-
export namespace ConsumerApplicationResourceLinks$ {
|
|
239
|
-
/** @deprecated use `ConsumerApplicationResourceLinks$inboundSchema` instead. */
|
|
240
|
-
export const inboundSchema = ConsumerApplicationResourceLinks$inboundSchema;
|
|
241
|
-
/** @deprecated use `ConsumerApplicationResourceLinks$outboundSchema` instead. */
|
|
242
|
-
export const outboundSchema = ConsumerApplicationResourceLinks$outboundSchema;
|
|
243
|
-
/** @deprecated use `ConsumerApplicationResourceLinks$Outbound` instead. */
|
|
244
|
-
export type Outbound = ConsumerApplicationResourceLinks$Outbound;
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
export function consumerApplicationResourceLinksToJSON(
|
|
248
|
-
consumerApplicationResourceLinks: ConsumerApplicationResourceLinks,
|
|
249
|
-
): string {
|
|
250
|
-
return JSON.stringify(
|
|
251
|
-
ConsumerApplicationResourceLinks$outboundSchema.parse(
|
|
252
|
-
consumerApplicationResourceLinks,
|
|
253
|
-
),
|
|
254
|
-
);
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
export function consumerApplicationResourceLinksFromJSON(
|
|
258
|
-
jsonString: string,
|
|
259
|
-
): SafeParseResult<ConsumerApplicationResourceLinks, SDKValidationError> {
|
|
260
|
-
return safeParse(
|
|
261
|
-
jsonString,
|
|
262
|
-
(x) => ConsumerApplicationResourceLinks$inboundSchema.parse(JSON.parse(x)),
|
|
263
|
-
`Failed to parse 'ConsumerApplicationResourceLinks' from JSON`,
|
|
264
|
-
);
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
/** @internal */
|
|
268
|
-
export const ConsumerApplicationResource$inboundSchema: z.ZodType<
|
|
269
|
-
ConsumerApplicationResource,
|
|
270
|
-
z.ZodTypeDef,
|
|
271
|
-
unknown
|
|
272
|
-
> = z.object({
|
|
273
|
-
type: ConsumerApplicationResourceType$inboundSchema,
|
|
274
|
-
id: z.string(),
|
|
275
|
-
attributes: z.lazy(() => ConsumerApplicationResourceAttributes$inboundSchema)
|
|
276
|
-
.optional(),
|
|
277
|
-
relationships: ConsumerApplicationJsonApiRelationships$inboundSchema,
|
|
278
|
-
links: z.record(z.lazy(() => ConsumerApplicationResourceLinks$inboundSchema))
|
|
279
|
-
.optional(),
|
|
280
|
-
meta: z.record(z.any()).optional(),
|
|
281
|
-
});
|
|
282
|
-
|
|
283
|
-
/** @internal */
|
|
284
|
-
export type ConsumerApplicationResource$Outbound = {
|
|
285
|
-
type: string;
|
|
286
|
-
id: string;
|
|
287
|
-
attributes?: ConsumerApplicationResourceAttributes$Outbound | undefined;
|
|
288
|
-
relationships: ConsumerApplicationJsonApiRelationships$Outbound;
|
|
289
|
-
links?:
|
|
290
|
-
| { [k: string]: ConsumerApplicationResourceLinks$Outbound }
|
|
291
|
-
| undefined;
|
|
292
|
-
meta?: { [k: string]: any } | undefined;
|
|
293
|
-
};
|
|
294
|
-
|
|
295
|
-
/** @internal */
|
|
296
|
-
export const ConsumerApplicationResource$outboundSchema: z.ZodType<
|
|
297
|
-
ConsumerApplicationResource$Outbound,
|
|
298
|
-
z.ZodTypeDef,
|
|
299
|
-
ConsumerApplicationResource
|
|
300
|
-
> = z.object({
|
|
301
|
-
type: ConsumerApplicationResourceType$outboundSchema,
|
|
302
|
-
id: z.string(),
|
|
303
|
-
attributes: z.lazy(() => ConsumerApplicationResourceAttributes$outboundSchema)
|
|
304
|
-
.optional(),
|
|
305
|
-
relationships: ConsumerApplicationJsonApiRelationships$outboundSchema,
|
|
306
|
-
links: z.record(z.lazy(() => ConsumerApplicationResourceLinks$outboundSchema))
|
|
307
|
-
.optional(),
|
|
308
|
-
meta: z.record(z.any()).optional(),
|
|
309
|
-
});
|
|
310
|
-
|
|
311
|
-
/**
|
|
312
|
-
* @internal
|
|
313
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
314
|
-
*/
|
|
315
|
-
export namespace ConsumerApplicationResource$ {
|
|
316
|
-
/** @deprecated use `ConsumerApplicationResource$inboundSchema` instead. */
|
|
317
|
-
export const inboundSchema = ConsumerApplicationResource$inboundSchema;
|
|
318
|
-
/** @deprecated use `ConsumerApplicationResource$outboundSchema` instead. */
|
|
319
|
-
export const outboundSchema = ConsumerApplicationResource$outboundSchema;
|
|
320
|
-
/** @deprecated use `ConsumerApplicationResource$Outbound` instead. */
|
|
321
|
-
export type Outbound = ConsumerApplicationResource$Outbound;
|
|
322
|
-
}
|
|
323
|
-
|
|
324
|
-
export function consumerApplicationResourceToJSON(
|
|
325
|
-
consumerApplicationResource: ConsumerApplicationResource,
|
|
326
|
-
): string {
|
|
327
|
-
return JSON.stringify(
|
|
328
|
-
ConsumerApplicationResource$outboundSchema.parse(
|
|
329
|
-
consumerApplicationResource,
|
|
330
|
-
),
|
|
331
|
-
);
|
|
332
|
-
}
|
|
333
|
-
|
|
334
|
-
export function consumerApplicationResourceFromJSON(
|
|
335
|
-
jsonString: string,
|
|
336
|
-
): SafeParseResult<ConsumerApplicationResource, SDKValidationError> {
|
|
337
|
-
return safeParse(
|
|
338
|
-
jsonString,
|
|
339
|
-
(x) => ConsumerApplicationResource$inboundSchema.parse(JSON.parse(x)),
|
|
340
|
-
`Failed to parse 'ConsumerApplicationResource' from JSON`,
|
|
341
|
-
);
|
|
342
|
-
}
|