@financeable/aggregation 0.2.0 → 0.2.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/FUNCTIONS.md +0 -4
- package/README.md +945 -28
- package/docs/sdks/applications/README.md +0 -8
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/models/components/applicationresourcebulksubmission.d.ts +0 -6
- package/models/components/applicationresourcebulksubmission.d.ts.map +1 -1
- package/models/components/applicationresourcebulksubmission.js +0 -6
- package/models/components/applicationresourcebulksubmission.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +3 -3
- package/src/models/components/applicationresourcebulksubmission.ts +0 -12
- package/financeable-typescript/.devcontainer/README.md +0 -30
- package/financeable-typescript/FUNCTIONS.md +0 -205
- package/financeable-typescript/README.md +0 -895
- package/financeable-typescript/RUNTIMES.md +0 -22
- package/financeable-typescript/docs/sdks/applications/README.md +0 -427
- package/financeable-typescript/docs/sdks/financeable/README.md +0 -5
- package/financeable-typescript/src/core.ts +0 -13
- package/financeable-typescript/src/funcs/applicationsCreate.ts +0 -124
- package/financeable-typescript/src/funcs/applicationsGet.ts +0 -128
- package/financeable-typescript/src/funcs/applicationsList.ts +0 -126
- package/financeable-typescript/src/hooks/hooks.ts +0 -129
- package/financeable-typescript/src/hooks/index.ts +0 -6
- package/financeable-typescript/src/hooks/types.ts +0 -109
- package/financeable-typescript/src/index.ts +0 -7
- package/financeable-typescript/src/lib/base64.ts +0 -37
- package/financeable-typescript/src/lib/config.ts +0 -59
- package/financeable-typescript/src/lib/dlv.ts +0 -53
- package/financeable-typescript/src/lib/encodings.ts +0 -449
- package/financeable-typescript/src/lib/env.ts +0 -37
- package/financeable-typescript/src/lib/files.ts +0 -40
- package/financeable-typescript/src/lib/http.ts +0 -323
- package/financeable-typescript/src/lib/is-plain-object.ts +0 -43
- package/financeable-typescript/src/lib/logger.ts +0 -9
- package/financeable-typescript/src/lib/matchers.ts +0 -322
- package/financeable-typescript/src/lib/primitives.ts +0 -122
- package/financeable-typescript/src/lib/retries.ts +0 -219
- package/financeable-typescript/src/lib/schemas.ts +0 -86
- package/financeable-typescript/src/lib/sdks.ts +0 -392
- package/financeable-typescript/src/lib/security.ts +0 -227
- package/financeable-typescript/src/lib/url.ts +0 -33
- package/financeable-typescript/src/models/components/addressattributes.ts +0 -148
- package/financeable-typescript/src/models/components/apierrorlinks.ts +0 -65
- package/financeable-typescript/src/models/components/applicationattributes.ts +0 -128
- package/financeable-typescript/src/models/components/applicationattributescreate.ts +0 -90
- package/financeable-typescript/src/models/components/applicationresourcebulksubmission.ts +0 -1000
- package/financeable-typescript/src/models/components/applicationstatus.ts +0 -39
- package/financeable-typescript/src/models/components/applicationtype.ts +0 -33
- package/financeable-typescript/src/models/components/assetattributes.ts +0 -400
- package/financeable-typescript/src/models/components/customerattributes.ts +0 -171
- package/financeable-typescript/src/models/components/customertitle.ts +0 -35
- package/financeable-typescript/src/models/components/errorsource.ts +0 -79
- package/financeable-typescript/src/models/components/forbiddenerror.ts +0 -207
- package/financeable-typescript/src/models/components/frequencytype.ts +0 -40
- package/financeable-typescript/src/models/components/index.ts +0 -20
- package/financeable-typescript/src/models/components/links.ts +0 -72
- package/financeable-typescript/src/models/components/loandetailsattributes.ts +0 -187
- package/financeable-typescript/src/models/components/repaymentstructure.ts +0 -40
- package/financeable-typescript/src/models/errors/apierror.ts +0 -27
- package/financeable-typescript/src/models/errors/createapplication.ts +0 -76
- package/financeable-typescript/src/models/errors/getapplication.ts +0 -76
- package/financeable-typescript/src/models/errors/getapplications.ts +0 -76
- package/financeable-typescript/src/models/errors/httpclienterrors.ts +0 -62
- package/financeable-typescript/src/models/errors/index.ts +0 -10
- package/financeable-typescript/src/models/errors/sdkvalidationerror.ts +0 -97
- package/financeable-typescript/src/models/operations/createapplication.ts +0 -1649
- package/financeable-typescript/src/models/operations/getapplication.ts +0 -1829
- package/financeable-typescript/src/models/operations/getapplications.ts +0 -1790
- package/financeable-typescript/src/models/operations/index.ts +0 -7
- package/financeable-typescript/src/sdk/applications.ts +0 -55
- package/financeable-typescript/src/sdk/index.ts +0 -5
- package/financeable-typescript/src/sdk/sdk.ts +0 -13
- package/financeable-typescript/src/types/blobs.ts +0 -31
- package/financeable-typescript/src/types/constdatetime.ts +0 -15
- package/financeable-typescript/src/types/enums.ts +0 -16
- package/financeable-typescript/src/types/fp.ts +0 -50
- package/financeable-typescript/src/types/index.ts +0 -11
- package/financeable-typescript/src/types/operations.ts +0 -105
- package/financeable-typescript/src/types/rfcdate.ts +0 -54
- package/financeable-typescript/src/types/streams.ts +0 -21
|
@@ -1,1000 +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
|
-
AddressAttributes,
|
|
12
|
-
AddressAttributes$inboundSchema,
|
|
13
|
-
AddressAttributes$Outbound,
|
|
14
|
-
AddressAttributes$outboundSchema,
|
|
15
|
-
} from "./addressattributes.js";
|
|
16
|
-
import {
|
|
17
|
-
ApplicationAttributesCreate,
|
|
18
|
-
ApplicationAttributesCreate$inboundSchema,
|
|
19
|
-
ApplicationAttributesCreate$Outbound,
|
|
20
|
-
ApplicationAttributesCreate$outboundSchema,
|
|
21
|
-
} from "./applicationattributescreate.js";
|
|
22
|
-
import {
|
|
23
|
-
AssetAttributes,
|
|
24
|
-
AssetAttributes$inboundSchema,
|
|
25
|
-
AssetAttributes$Outbound,
|
|
26
|
-
AssetAttributes$outboundSchema,
|
|
27
|
-
} from "./assetattributes.js";
|
|
28
|
-
import {
|
|
29
|
-
CustomerAttributes,
|
|
30
|
-
CustomerAttributes$inboundSchema,
|
|
31
|
-
CustomerAttributes$Outbound,
|
|
32
|
-
CustomerAttributes$outboundSchema,
|
|
33
|
-
} from "./customerattributes.js";
|
|
34
|
-
import {
|
|
35
|
-
LoanDetailsAttributes,
|
|
36
|
-
LoanDetailsAttributes$inboundSchema,
|
|
37
|
-
LoanDetailsAttributes$Outbound,
|
|
38
|
-
LoanDetailsAttributes$outboundSchema,
|
|
39
|
-
} from "./loandetailsattributes.js";
|
|
40
|
-
|
|
41
|
-
export const Type = {
|
|
42
|
-
Applications: "applications",
|
|
43
|
-
} as const;
|
|
44
|
-
export type Type = ClosedEnum<typeof Type>;
|
|
45
|
-
|
|
46
|
-
export const ApplicationResourceBulkSubmissionType = {
|
|
47
|
-
LoanDetails: "loan-details",
|
|
48
|
-
} as const;
|
|
49
|
-
export type ApplicationResourceBulkSubmissionType = ClosedEnum<
|
|
50
|
-
typeof ApplicationResourceBulkSubmissionType
|
|
51
|
-
>;
|
|
52
|
-
|
|
53
|
-
export type ApplicationResourceBulkSubmissionDataRelationshipsData = {
|
|
54
|
-
type: ApplicationResourceBulkSubmissionType;
|
|
55
|
-
/**
|
|
56
|
-
* Loan details model
|
|
57
|
-
*/
|
|
58
|
-
attributes: LoanDetailsAttributes;
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
export type LoanDetails = {
|
|
62
|
-
data: ApplicationResourceBulkSubmissionDataRelationshipsData;
|
|
63
|
-
};
|
|
64
|
-
|
|
65
|
-
export const ApplicationResourceBulkSubmissionDataType = {
|
|
66
|
-
Customers: "customers",
|
|
67
|
-
} as const;
|
|
68
|
-
export type ApplicationResourceBulkSubmissionDataType = ClosedEnum<
|
|
69
|
-
typeof ApplicationResourceBulkSubmissionDataType
|
|
70
|
-
>;
|
|
71
|
-
|
|
72
|
-
export const ApplicationResourceBulkSubmissionDataRelationshipsCustomersType = {
|
|
73
|
-
Addresses: "addresses",
|
|
74
|
-
} as const;
|
|
75
|
-
export type ApplicationResourceBulkSubmissionDataRelationshipsCustomersType =
|
|
76
|
-
ClosedEnum<
|
|
77
|
-
typeof ApplicationResourceBulkSubmissionDataRelationshipsCustomersType
|
|
78
|
-
>;
|
|
79
|
-
|
|
80
|
-
export type ApplicationResourceBulkSubmissionDataRelationshipsCustomersData = {
|
|
81
|
-
id: string;
|
|
82
|
-
type: ApplicationResourceBulkSubmissionDataRelationshipsCustomersType;
|
|
83
|
-
attributes: AddressAttributes;
|
|
84
|
-
};
|
|
85
|
-
|
|
86
|
-
export type Addresses = {
|
|
87
|
-
data: Array<ApplicationResourceBulkSubmissionDataRelationshipsCustomersData>;
|
|
88
|
-
};
|
|
89
|
-
|
|
90
|
-
export type ApplicationResourceBulkSubmissionRelationships = {
|
|
91
|
-
addresses: Addresses;
|
|
92
|
-
};
|
|
93
|
-
|
|
94
|
-
export type ApplicationResourceBulkSubmissionData = {
|
|
95
|
-
id: string;
|
|
96
|
-
type: ApplicationResourceBulkSubmissionDataType;
|
|
97
|
-
/**
|
|
98
|
-
* A customer of the proposed financing
|
|
99
|
-
*/
|
|
100
|
-
attributes: CustomerAttributes;
|
|
101
|
-
relationships: ApplicationResourceBulkSubmissionRelationships;
|
|
102
|
-
};
|
|
103
|
-
|
|
104
|
-
export type Customers = {
|
|
105
|
-
data: Array<ApplicationResourceBulkSubmissionData>;
|
|
106
|
-
};
|
|
107
|
-
|
|
108
|
-
export const ApplicationResourceBulkSubmissionDataRelationshipsType = {
|
|
109
|
-
Asset: "asset",
|
|
110
|
-
} as const;
|
|
111
|
-
export type ApplicationResourceBulkSubmissionDataRelationshipsType = ClosedEnum<
|
|
112
|
-
typeof ApplicationResourceBulkSubmissionDataRelationshipsType
|
|
113
|
-
>;
|
|
114
|
-
|
|
115
|
-
export type ApplicationResourceBulkSubmissionDataData = {
|
|
116
|
-
id: string;
|
|
117
|
-
type: ApplicationResourceBulkSubmissionDataRelationshipsType;
|
|
118
|
-
/**
|
|
119
|
-
* The asset to be obtained by the customer, using the proposed loan financing.
|
|
120
|
-
*/
|
|
121
|
-
attributes: AssetAttributes;
|
|
122
|
-
};
|
|
123
|
-
|
|
124
|
-
export type Asset = {
|
|
125
|
-
data: ApplicationResourceBulkSubmissionDataData;
|
|
126
|
-
};
|
|
127
|
-
|
|
128
|
-
export type Relationships = {
|
|
129
|
-
loanDetails: LoanDetails;
|
|
130
|
-
customers: Customers;
|
|
131
|
-
asset: Asset;
|
|
132
|
-
};
|
|
133
|
-
|
|
134
|
-
export type Data = {
|
|
135
|
-
type: Type;
|
|
136
|
-
/**
|
|
137
|
-
* Application resource attributes
|
|
138
|
-
*/
|
|
139
|
-
attributes: ApplicationAttributesCreate;
|
|
140
|
-
relationships: Relationships;
|
|
141
|
-
};
|
|
142
|
-
|
|
143
|
-
export type ApplicationResourceBulkSubmission = {
|
|
144
|
-
data: Data;
|
|
145
|
-
};
|
|
146
|
-
|
|
147
|
-
/** @internal */
|
|
148
|
-
export const Type$inboundSchema: z.ZodNativeEnum<typeof Type> = z.nativeEnum(
|
|
149
|
-
Type,
|
|
150
|
-
);
|
|
151
|
-
|
|
152
|
-
/** @internal */
|
|
153
|
-
export const Type$outboundSchema: z.ZodNativeEnum<typeof Type> =
|
|
154
|
-
Type$inboundSchema;
|
|
155
|
-
|
|
156
|
-
/**
|
|
157
|
-
* @internal
|
|
158
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
159
|
-
*/
|
|
160
|
-
export namespace Type$ {
|
|
161
|
-
/** @deprecated use `Type$inboundSchema` instead. */
|
|
162
|
-
export const inboundSchema = Type$inboundSchema;
|
|
163
|
-
/** @deprecated use `Type$outboundSchema` instead. */
|
|
164
|
-
export const outboundSchema = Type$outboundSchema;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
/** @internal */
|
|
168
|
-
export const ApplicationResourceBulkSubmissionType$inboundSchema:
|
|
169
|
-
z.ZodNativeEnum<typeof ApplicationResourceBulkSubmissionType> = z.nativeEnum(
|
|
170
|
-
ApplicationResourceBulkSubmissionType,
|
|
171
|
-
);
|
|
172
|
-
|
|
173
|
-
/** @internal */
|
|
174
|
-
export const ApplicationResourceBulkSubmissionType$outboundSchema:
|
|
175
|
-
z.ZodNativeEnum<typeof ApplicationResourceBulkSubmissionType> =
|
|
176
|
-
ApplicationResourceBulkSubmissionType$inboundSchema;
|
|
177
|
-
|
|
178
|
-
/**
|
|
179
|
-
* @internal
|
|
180
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
181
|
-
*/
|
|
182
|
-
export namespace ApplicationResourceBulkSubmissionType$ {
|
|
183
|
-
/** @deprecated use `ApplicationResourceBulkSubmissionType$inboundSchema` instead. */
|
|
184
|
-
export const inboundSchema =
|
|
185
|
-
ApplicationResourceBulkSubmissionType$inboundSchema;
|
|
186
|
-
/** @deprecated use `ApplicationResourceBulkSubmissionType$outboundSchema` instead. */
|
|
187
|
-
export const outboundSchema =
|
|
188
|
-
ApplicationResourceBulkSubmissionType$outboundSchema;
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
/** @internal */
|
|
192
|
-
export const ApplicationResourceBulkSubmissionDataRelationshipsData$inboundSchema:
|
|
193
|
-
z.ZodType<
|
|
194
|
-
ApplicationResourceBulkSubmissionDataRelationshipsData,
|
|
195
|
-
z.ZodTypeDef,
|
|
196
|
-
unknown
|
|
197
|
-
> = z.object({
|
|
198
|
-
type: ApplicationResourceBulkSubmissionType$inboundSchema,
|
|
199
|
-
attributes: LoanDetailsAttributes$inboundSchema,
|
|
200
|
-
});
|
|
201
|
-
|
|
202
|
-
/** @internal */
|
|
203
|
-
export type ApplicationResourceBulkSubmissionDataRelationshipsData$Outbound = {
|
|
204
|
-
type: string;
|
|
205
|
-
attributes: LoanDetailsAttributes$Outbound;
|
|
206
|
-
};
|
|
207
|
-
|
|
208
|
-
/** @internal */
|
|
209
|
-
export const ApplicationResourceBulkSubmissionDataRelationshipsData$outboundSchema:
|
|
210
|
-
z.ZodType<
|
|
211
|
-
ApplicationResourceBulkSubmissionDataRelationshipsData$Outbound,
|
|
212
|
-
z.ZodTypeDef,
|
|
213
|
-
ApplicationResourceBulkSubmissionDataRelationshipsData
|
|
214
|
-
> = z.object({
|
|
215
|
-
type: ApplicationResourceBulkSubmissionType$outboundSchema,
|
|
216
|
-
attributes: LoanDetailsAttributes$outboundSchema,
|
|
217
|
-
});
|
|
218
|
-
|
|
219
|
-
/**
|
|
220
|
-
* @internal
|
|
221
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
222
|
-
*/
|
|
223
|
-
export namespace ApplicationResourceBulkSubmissionDataRelationshipsData$ {
|
|
224
|
-
/** @deprecated use `ApplicationResourceBulkSubmissionDataRelationshipsData$inboundSchema` instead. */
|
|
225
|
-
export const inboundSchema =
|
|
226
|
-
ApplicationResourceBulkSubmissionDataRelationshipsData$inboundSchema;
|
|
227
|
-
/** @deprecated use `ApplicationResourceBulkSubmissionDataRelationshipsData$outboundSchema` instead. */
|
|
228
|
-
export const outboundSchema =
|
|
229
|
-
ApplicationResourceBulkSubmissionDataRelationshipsData$outboundSchema;
|
|
230
|
-
/** @deprecated use `ApplicationResourceBulkSubmissionDataRelationshipsData$Outbound` instead. */
|
|
231
|
-
export type Outbound =
|
|
232
|
-
ApplicationResourceBulkSubmissionDataRelationshipsData$Outbound;
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
export function applicationResourceBulkSubmissionDataRelationshipsDataToJSON(
|
|
236
|
-
applicationResourceBulkSubmissionDataRelationshipsData:
|
|
237
|
-
ApplicationResourceBulkSubmissionDataRelationshipsData,
|
|
238
|
-
): string {
|
|
239
|
-
return JSON.stringify(
|
|
240
|
-
ApplicationResourceBulkSubmissionDataRelationshipsData$outboundSchema.parse(
|
|
241
|
-
applicationResourceBulkSubmissionDataRelationshipsData,
|
|
242
|
-
),
|
|
243
|
-
);
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
export function applicationResourceBulkSubmissionDataRelationshipsDataFromJSON(
|
|
247
|
-
jsonString: string,
|
|
248
|
-
): SafeParseResult<
|
|
249
|
-
ApplicationResourceBulkSubmissionDataRelationshipsData,
|
|
250
|
-
SDKValidationError
|
|
251
|
-
> {
|
|
252
|
-
return safeParse(
|
|
253
|
-
jsonString,
|
|
254
|
-
(x) =>
|
|
255
|
-
ApplicationResourceBulkSubmissionDataRelationshipsData$inboundSchema
|
|
256
|
-
.parse(JSON.parse(x)),
|
|
257
|
-
`Failed to parse 'ApplicationResourceBulkSubmissionDataRelationshipsData' from JSON`,
|
|
258
|
-
);
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
/** @internal */
|
|
262
|
-
export const LoanDetails$inboundSchema: z.ZodType<
|
|
263
|
-
LoanDetails,
|
|
264
|
-
z.ZodTypeDef,
|
|
265
|
-
unknown
|
|
266
|
-
> = z.object({
|
|
267
|
-
data: z.lazy(() =>
|
|
268
|
-
ApplicationResourceBulkSubmissionDataRelationshipsData$inboundSchema
|
|
269
|
-
),
|
|
270
|
-
});
|
|
271
|
-
|
|
272
|
-
/** @internal */
|
|
273
|
-
export type LoanDetails$Outbound = {
|
|
274
|
-
data: ApplicationResourceBulkSubmissionDataRelationshipsData$Outbound;
|
|
275
|
-
};
|
|
276
|
-
|
|
277
|
-
/** @internal */
|
|
278
|
-
export const LoanDetails$outboundSchema: z.ZodType<
|
|
279
|
-
LoanDetails$Outbound,
|
|
280
|
-
z.ZodTypeDef,
|
|
281
|
-
LoanDetails
|
|
282
|
-
> = z.object({
|
|
283
|
-
data: z.lazy(() =>
|
|
284
|
-
ApplicationResourceBulkSubmissionDataRelationshipsData$outboundSchema
|
|
285
|
-
),
|
|
286
|
-
});
|
|
287
|
-
|
|
288
|
-
/**
|
|
289
|
-
* @internal
|
|
290
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
291
|
-
*/
|
|
292
|
-
export namespace LoanDetails$ {
|
|
293
|
-
/** @deprecated use `LoanDetails$inboundSchema` instead. */
|
|
294
|
-
export const inboundSchema = LoanDetails$inboundSchema;
|
|
295
|
-
/** @deprecated use `LoanDetails$outboundSchema` instead. */
|
|
296
|
-
export const outboundSchema = LoanDetails$outboundSchema;
|
|
297
|
-
/** @deprecated use `LoanDetails$Outbound` instead. */
|
|
298
|
-
export type Outbound = LoanDetails$Outbound;
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
export function loanDetailsToJSON(loanDetails: LoanDetails): string {
|
|
302
|
-
return JSON.stringify(LoanDetails$outboundSchema.parse(loanDetails));
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
export function loanDetailsFromJSON(
|
|
306
|
-
jsonString: string,
|
|
307
|
-
): SafeParseResult<LoanDetails, SDKValidationError> {
|
|
308
|
-
return safeParse(
|
|
309
|
-
jsonString,
|
|
310
|
-
(x) => LoanDetails$inboundSchema.parse(JSON.parse(x)),
|
|
311
|
-
`Failed to parse 'LoanDetails' from JSON`,
|
|
312
|
-
);
|
|
313
|
-
}
|
|
314
|
-
|
|
315
|
-
/** @internal */
|
|
316
|
-
export const ApplicationResourceBulkSubmissionDataType$inboundSchema:
|
|
317
|
-
z.ZodNativeEnum<typeof ApplicationResourceBulkSubmissionDataType> = z
|
|
318
|
-
.nativeEnum(ApplicationResourceBulkSubmissionDataType);
|
|
319
|
-
|
|
320
|
-
/** @internal */
|
|
321
|
-
export const ApplicationResourceBulkSubmissionDataType$outboundSchema:
|
|
322
|
-
z.ZodNativeEnum<typeof ApplicationResourceBulkSubmissionDataType> =
|
|
323
|
-
ApplicationResourceBulkSubmissionDataType$inboundSchema;
|
|
324
|
-
|
|
325
|
-
/**
|
|
326
|
-
* @internal
|
|
327
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
328
|
-
*/
|
|
329
|
-
export namespace ApplicationResourceBulkSubmissionDataType$ {
|
|
330
|
-
/** @deprecated use `ApplicationResourceBulkSubmissionDataType$inboundSchema` instead. */
|
|
331
|
-
export const inboundSchema =
|
|
332
|
-
ApplicationResourceBulkSubmissionDataType$inboundSchema;
|
|
333
|
-
/** @deprecated use `ApplicationResourceBulkSubmissionDataType$outboundSchema` instead. */
|
|
334
|
-
export const outboundSchema =
|
|
335
|
-
ApplicationResourceBulkSubmissionDataType$outboundSchema;
|
|
336
|
-
}
|
|
337
|
-
|
|
338
|
-
/** @internal */
|
|
339
|
-
export const ApplicationResourceBulkSubmissionDataRelationshipsCustomersType$inboundSchema:
|
|
340
|
-
z.ZodNativeEnum<
|
|
341
|
-
typeof ApplicationResourceBulkSubmissionDataRelationshipsCustomersType
|
|
342
|
-
> = z.nativeEnum(
|
|
343
|
-
ApplicationResourceBulkSubmissionDataRelationshipsCustomersType,
|
|
344
|
-
);
|
|
345
|
-
|
|
346
|
-
/** @internal */
|
|
347
|
-
export const ApplicationResourceBulkSubmissionDataRelationshipsCustomersType$outboundSchema:
|
|
348
|
-
z.ZodNativeEnum<
|
|
349
|
-
typeof ApplicationResourceBulkSubmissionDataRelationshipsCustomersType
|
|
350
|
-
> =
|
|
351
|
-
ApplicationResourceBulkSubmissionDataRelationshipsCustomersType$inboundSchema;
|
|
352
|
-
|
|
353
|
-
/**
|
|
354
|
-
* @internal
|
|
355
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
356
|
-
*/
|
|
357
|
-
export namespace ApplicationResourceBulkSubmissionDataRelationshipsCustomersType$ {
|
|
358
|
-
/** @deprecated use `ApplicationResourceBulkSubmissionDataRelationshipsCustomersType$inboundSchema` instead. */
|
|
359
|
-
export const inboundSchema =
|
|
360
|
-
ApplicationResourceBulkSubmissionDataRelationshipsCustomersType$inboundSchema;
|
|
361
|
-
/** @deprecated use `ApplicationResourceBulkSubmissionDataRelationshipsCustomersType$outboundSchema` instead. */
|
|
362
|
-
export const outboundSchema =
|
|
363
|
-
ApplicationResourceBulkSubmissionDataRelationshipsCustomersType$outboundSchema;
|
|
364
|
-
}
|
|
365
|
-
|
|
366
|
-
/** @internal */
|
|
367
|
-
export const ApplicationResourceBulkSubmissionDataRelationshipsCustomersData$inboundSchema:
|
|
368
|
-
z.ZodType<
|
|
369
|
-
ApplicationResourceBulkSubmissionDataRelationshipsCustomersData,
|
|
370
|
-
z.ZodTypeDef,
|
|
371
|
-
unknown
|
|
372
|
-
> = z.object({
|
|
373
|
-
id: z.string(),
|
|
374
|
-
type:
|
|
375
|
-
ApplicationResourceBulkSubmissionDataRelationshipsCustomersType$inboundSchema,
|
|
376
|
-
attributes: AddressAttributes$inboundSchema,
|
|
377
|
-
});
|
|
378
|
-
|
|
379
|
-
/** @internal */
|
|
380
|
-
export type ApplicationResourceBulkSubmissionDataRelationshipsCustomersData$Outbound =
|
|
381
|
-
{
|
|
382
|
-
id: string;
|
|
383
|
-
type: string;
|
|
384
|
-
attributes: AddressAttributes$Outbound;
|
|
385
|
-
};
|
|
386
|
-
|
|
387
|
-
/** @internal */
|
|
388
|
-
export const ApplicationResourceBulkSubmissionDataRelationshipsCustomersData$outboundSchema:
|
|
389
|
-
z.ZodType<
|
|
390
|
-
ApplicationResourceBulkSubmissionDataRelationshipsCustomersData$Outbound,
|
|
391
|
-
z.ZodTypeDef,
|
|
392
|
-
ApplicationResourceBulkSubmissionDataRelationshipsCustomersData
|
|
393
|
-
> = z.object({
|
|
394
|
-
id: z.string(),
|
|
395
|
-
type:
|
|
396
|
-
ApplicationResourceBulkSubmissionDataRelationshipsCustomersType$outboundSchema,
|
|
397
|
-
attributes: AddressAttributes$outboundSchema,
|
|
398
|
-
});
|
|
399
|
-
|
|
400
|
-
/**
|
|
401
|
-
* @internal
|
|
402
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
403
|
-
*/
|
|
404
|
-
export namespace ApplicationResourceBulkSubmissionDataRelationshipsCustomersData$ {
|
|
405
|
-
/** @deprecated use `ApplicationResourceBulkSubmissionDataRelationshipsCustomersData$inboundSchema` instead. */
|
|
406
|
-
export const inboundSchema =
|
|
407
|
-
ApplicationResourceBulkSubmissionDataRelationshipsCustomersData$inboundSchema;
|
|
408
|
-
/** @deprecated use `ApplicationResourceBulkSubmissionDataRelationshipsCustomersData$outboundSchema` instead. */
|
|
409
|
-
export const outboundSchema =
|
|
410
|
-
ApplicationResourceBulkSubmissionDataRelationshipsCustomersData$outboundSchema;
|
|
411
|
-
/** @deprecated use `ApplicationResourceBulkSubmissionDataRelationshipsCustomersData$Outbound` instead. */
|
|
412
|
-
export type Outbound =
|
|
413
|
-
ApplicationResourceBulkSubmissionDataRelationshipsCustomersData$Outbound;
|
|
414
|
-
}
|
|
415
|
-
|
|
416
|
-
export function applicationResourceBulkSubmissionDataRelationshipsCustomersDataToJSON(
|
|
417
|
-
applicationResourceBulkSubmissionDataRelationshipsCustomersData:
|
|
418
|
-
ApplicationResourceBulkSubmissionDataRelationshipsCustomersData,
|
|
419
|
-
): string {
|
|
420
|
-
return JSON.stringify(
|
|
421
|
-
ApplicationResourceBulkSubmissionDataRelationshipsCustomersData$outboundSchema
|
|
422
|
-
.parse(applicationResourceBulkSubmissionDataRelationshipsCustomersData),
|
|
423
|
-
);
|
|
424
|
-
}
|
|
425
|
-
|
|
426
|
-
export function applicationResourceBulkSubmissionDataRelationshipsCustomersDataFromJSON(
|
|
427
|
-
jsonString: string,
|
|
428
|
-
): SafeParseResult<
|
|
429
|
-
ApplicationResourceBulkSubmissionDataRelationshipsCustomersData,
|
|
430
|
-
SDKValidationError
|
|
431
|
-
> {
|
|
432
|
-
return safeParse(
|
|
433
|
-
jsonString,
|
|
434
|
-
(x) =>
|
|
435
|
-
ApplicationResourceBulkSubmissionDataRelationshipsCustomersData$inboundSchema
|
|
436
|
-
.parse(JSON.parse(x)),
|
|
437
|
-
`Failed to parse 'ApplicationResourceBulkSubmissionDataRelationshipsCustomersData' from JSON`,
|
|
438
|
-
);
|
|
439
|
-
}
|
|
440
|
-
|
|
441
|
-
/** @internal */
|
|
442
|
-
export const Addresses$inboundSchema: z.ZodType<
|
|
443
|
-
Addresses,
|
|
444
|
-
z.ZodTypeDef,
|
|
445
|
-
unknown
|
|
446
|
-
> = z.object({
|
|
447
|
-
data: z.array(
|
|
448
|
-
z.lazy(() =>
|
|
449
|
-
ApplicationResourceBulkSubmissionDataRelationshipsCustomersData$inboundSchema
|
|
450
|
-
),
|
|
451
|
-
),
|
|
452
|
-
});
|
|
453
|
-
|
|
454
|
-
/** @internal */
|
|
455
|
-
export type Addresses$Outbound = {
|
|
456
|
-
data: Array<
|
|
457
|
-
ApplicationResourceBulkSubmissionDataRelationshipsCustomersData$Outbound
|
|
458
|
-
>;
|
|
459
|
-
};
|
|
460
|
-
|
|
461
|
-
/** @internal */
|
|
462
|
-
export const Addresses$outboundSchema: z.ZodType<
|
|
463
|
-
Addresses$Outbound,
|
|
464
|
-
z.ZodTypeDef,
|
|
465
|
-
Addresses
|
|
466
|
-
> = z.object({
|
|
467
|
-
data: z.array(
|
|
468
|
-
z.lazy(() =>
|
|
469
|
-
ApplicationResourceBulkSubmissionDataRelationshipsCustomersData$outboundSchema
|
|
470
|
-
),
|
|
471
|
-
),
|
|
472
|
-
});
|
|
473
|
-
|
|
474
|
-
/**
|
|
475
|
-
* @internal
|
|
476
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
477
|
-
*/
|
|
478
|
-
export namespace Addresses$ {
|
|
479
|
-
/** @deprecated use `Addresses$inboundSchema` instead. */
|
|
480
|
-
export const inboundSchema = Addresses$inboundSchema;
|
|
481
|
-
/** @deprecated use `Addresses$outboundSchema` instead. */
|
|
482
|
-
export const outboundSchema = Addresses$outboundSchema;
|
|
483
|
-
/** @deprecated use `Addresses$Outbound` instead. */
|
|
484
|
-
export type Outbound = Addresses$Outbound;
|
|
485
|
-
}
|
|
486
|
-
|
|
487
|
-
export function addressesToJSON(addresses: Addresses): string {
|
|
488
|
-
return JSON.stringify(Addresses$outboundSchema.parse(addresses));
|
|
489
|
-
}
|
|
490
|
-
|
|
491
|
-
export function addressesFromJSON(
|
|
492
|
-
jsonString: string,
|
|
493
|
-
): SafeParseResult<Addresses, SDKValidationError> {
|
|
494
|
-
return safeParse(
|
|
495
|
-
jsonString,
|
|
496
|
-
(x) => Addresses$inboundSchema.parse(JSON.parse(x)),
|
|
497
|
-
`Failed to parse 'Addresses' from JSON`,
|
|
498
|
-
);
|
|
499
|
-
}
|
|
500
|
-
|
|
501
|
-
/** @internal */
|
|
502
|
-
export const ApplicationResourceBulkSubmissionRelationships$inboundSchema:
|
|
503
|
-
z.ZodType<
|
|
504
|
-
ApplicationResourceBulkSubmissionRelationships,
|
|
505
|
-
z.ZodTypeDef,
|
|
506
|
-
unknown
|
|
507
|
-
> = z.object({
|
|
508
|
-
addresses: z.lazy(() => Addresses$inboundSchema),
|
|
509
|
-
});
|
|
510
|
-
|
|
511
|
-
/** @internal */
|
|
512
|
-
export type ApplicationResourceBulkSubmissionRelationships$Outbound = {
|
|
513
|
-
addresses: Addresses$Outbound;
|
|
514
|
-
};
|
|
515
|
-
|
|
516
|
-
/** @internal */
|
|
517
|
-
export const ApplicationResourceBulkSubmissionRelationships$outboundSchema:
|
|
518
|
-
z.ZodType<
|
|
519
|
-
ApplicationResourceBulkSubmissionRelationships$Outbound,
|
|
520
|
-
z.ZodTypeDef,
|
|
521
|
-
ApplicationResourceBulkSubmissionRelationships
|
|
522
|
-
> = z.object({
|
|
523
|
-
addresses: z.lazy(() => Addresses$outboundSchema),
|
|
524
|
-
});
|
|
525
|
-
|
|
526
|
-
/**
|
|
527
|
-
* @internal
|
|
528
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
529
|
-
*/
|
|
530
|
-
export namespace ApplicationResourceBulkSubmissionRelationships$ {
|
|
531
|
-
/** @deprecated use `ApplicationResourceBulkSubmissionRelationships$inboundSchema` instead. */
|
|
532
|
-
export const inboundSchema =
|
|
533
|
-
ApplicationResourceBulkSubmissionRelationships$inboundSchema;
|
|
534
|
-
/** @deprecated use `ApplicationResourceBulkSubmissionRelationships$outboundSchema` instead. */
|
|
535
|
-
export const outboundSchema =
|
|
536
|
-
ApplicationResourceBulkSubmissionRelationships$outboundSchema;
|
|
537
|
-
/** @deprecated use `ApplicationResourceBulkSubmissionRelationships$Outbound` instead. */
|
|
538
|
-
export type Outbound =
|
|
539
|
-
ApplicationResourceBulkSubmissionRelationships$Outbound;
|
|
540
|
-
}
|
|
541
|
-
|
|
542
|
-
export function applicationResourceBulkSubmissionRelationshipsToJSON(
|
|
543
|
-
applicationResourceBulkSubmissionRelationships:
|
|
544
|
-
ApplicationResourceBulkSubmissionRelationships,
|
|
545
|
-
): string {
|
|
546
|
-
return JSON.stringify(
|
|
547
|
-
ApplicationResourceBulkSubmissionRelationships$outboundSchema.parse(
|
|
548
|
-
applicationResourceBulkSubmissionRelationships,
|
|
549
|
-
),
|
|
550
|
-
);
|
|
551
|
-
}
|
|
552
|
-
|
|
553
|
-
export function applicationResourceBulkSubmissionRelationshipsFromJSON(
|
|
554
|
-
jsonString: string,
|
|
555
|
-
): SafeParseResult<
|
|
556
|
-
ApplicationResourceBulkSubmissionRelationships,
|
|
557
|
-
SDKValidationError
|
|
558
|
-
> {
|
|
559
|
-
return safeParse(
|
|
560
|
-
jsonString,
|
|
561
|
-
(x) =>
|
|
562
|
-
ApplicationResourceBulkSubmissionRelationships$inboundSchema.parse(
|
|
563
|
-
JSON.parse(x),
|
|
564
|
-
),
|
|
565
|
-
`Failed to parse 'ApplicationResourceBulkSubmissionRelationships' from JSON`,
|
|
566
|
-
);
|
|
567
|
-
}
|
|
568
|
-
|
|
569
|
-
/** @internal */
|
|
570
|
-
export const ApplicationResourceBulkSubmissionData$inboundSchema: z.ZodType<
|
|
571
|
-
ApplicationResourceBulkSubmissionData,
|
|
572
|
-
z.ZodTypeDef,
|
|
573
|
-
unknown
|
|
574
|
-
> = z.object({
|
|
575
|
-
id: z.string(),
|
|
576
|
-
type: ApplicationResourceBulkSubmissionDataType$inboundSchema,
|
|
577
|
-
attributes: CustomerAttributes$inboundSchema,
|
|
578
|
-
relationships: z.lazy(() =>
|
|
579
|
-
ApplicationResourceBulkSubmissionRelationships$inboundSchema
|
|
580
|
-
),
|
|
581
|
-
});
|
|
582
|
-
|
|
583
|
-
/** @internal */
|
|
584
|
-
export type ApplicationResourceBulkSubmissionData$Outbound = {
|
|
585
|
-
id: string;
|
|
586
|
-
type: string;
|
|
587
|
-
attributes: CustomerAttributes$Outbound;
|
|
588
|
-
relationships: ApplicationResourceBulkSubmissionRelationships$Outbound;
|
|
589
|
-
};
|
|
590
|
-
|
|
591
|
-
/** @internal */
|
|
592
|
-
export const ApplicationResourceBulkSubmissionData$outboundSchema: z.ZodType<
|
|
593
|
-
ApplicationResourceBulkSubmissionData$Outbound,
|
|
594
|
-
z.ZodTypeDef,
|
|
595
|
-
ApplicationResourceBulkSubmissionData
|
|
596
|
-
> = z.object({
|
|
597
|
-
id: z.string(),
|
|
598
|
-
type: ApplicationResourceBulkSubmissionDataType$outboundSchema,
|
|
599
|
-
attributes: CustomerAttributes$outboundSchema,
|
|
600
|
-
relationships: z.lazy(() =>
|
|
601
|
-
ApplicationResourceBulkSubmissionRelationships$outboundSchema
|
|
602
|
-
),
|
|
603
|
-
});
|
|
604
|
-
|
|
605
|
-
/**
|
|
606
|
-
* @internal
|
|
607
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
608
|
-
*/
|
|
609
|
-
export namespace ApplicationResourceBulkSubmissionData$ {
|
|
610
|
-
/** @deprecated use `ApplicationResourceBulkSubmissionData$inboundSchema` instead. */
|
|
611
|
-
export const inboundSchema =
|
|
612
|
-
ApplicationResourceBulkSubmissionData$inboundSchema;
|
|
613
|
-
/** @deprecated use `ApplicationResourceBulkSubmissionData$outboundSchema` instead. */
|
|
614
|
-
export const outboundSchema =
|
|
615
|
-
ApplicationResourceBulkSubmissionData$outboundSchema;
|
|
616
|
-
/** @deprecated use `ApplicationResourceBulkSubmissionData$Outbound` instead. */
|
|
617
|
-
export type Outbound = ApplicationResourceBulkSubmissionData$Outbound;
|
|
618
|
-
}
|
|
619
|
-
|
|
620
|
-
export function applicationResourceBulkSubmissionDataToJSON(
|
|
621
|
-
applicationResourceBulkSubmissionData: ApplicationResourceBulkSubmissionData,
|
|
622
|
-
): string {
|
|
623
|
-
return JSON.stringify(
|
|
624
|
-
ApplicationResourceBulkSubmissionData$outboundSchema.parse(
|
|
625
|
-
applicationResourceBulkSubmissionData,
|
|
626
|
-
),
|
|
627
|
-
);
|
|
628
|
-
}
|
|
629
|
-
|
|
630
|
-
export function applicationResourceBulkSubmissionDataFromJSON(
|
|
631
|
-
jsonString: string,
|
|
632
|
-
): SafeParseResult<ApplicationResourceBulkSubmissionData, SDKValidationError> {
|
|
633
|
-
return safeParse(
|
|
634
|
-
jsonString,
|
|
635
|
-
(x) =>
|
|
636
|
-
ApplicationResourceBulkSubmissionData$inboundSchema.parse(JSON.parse(x)),
|
|
637
|
-
`Failed to parse 'ApplicationResourceBulkSubmissionData' from JSON`,
|
|
638
|
-
);
|
|
639
|
-
}
|
|
640
|
-
|
|
641
|
-
/** @internal */
|
|
642
|
-
export const Customers$inboundSchema: z.ZodType<
|
|
643
|
-
Customers,
|
|
644
|
-
z.ZodTypeDef,
|
|
645
|
-
unknown
|
|
646
|
-
> = z.object({
|
|
647
|
-
data: z.array(
|
|
648
|
-
z.lazy(() => ApplicationResourceBulkSubmissionData$inboundSchema),
|
|
649
|
-
),
|
|
650
|
-
});
|
|
651
|
-
|
|
652
|
-
/** @internal */
|
|
653
|
-
export type Customers$Outbound = {
|
|
654
|
-
data: Array<ApplicationResourceBulkSubmissionData$Outbound>;
|
|
655
|
-
};
|
|
656
|
-
|
|
657
|
-
/** @internal */
|
|
658
|
-
export const Customers$outboundSchema: z.ZodType<
|
|
659
|
-
Customers$Outbound,
|
|
660
|
-
z.ZodTypeDef,
|
|
661
|
-
Customers
|
|
662
|
-
> = z.object({
|
|
663
|
-
data: z.array(
|
|
664
|
-
z.lazy(() => ApplicationResourceBulkSubmissionData$outboundSchema),
|
|
665
|
-
),
|
|
666
|
-
});
|
|
667
|
-
|
|
668
|
-
/**
|
|
669
|
-
* @internal
|
|
670
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
671
|
-
*/
|
|
672
|
-
export namespace Customers$ {
|
|
673
|
-
/** @deprecated use `Customers$inboundSchema` instead. */
|
|
674
|
-
export const inboundSchema = Customers$inboundSchema;
|
|
675
|
-
/** @deprecated use `Customers$outboundSchema` instead. */
|
|
676
|
-
export const outboundSchema = Customers$outboundSchema;
|
|
677
|
-
/** @deprecated use `Customers$Outbound` instead. */
|
|
678
|
-
export type Outbound = Customers$Outbound;
|
|
679
|
-
}
|
|
680
|
-
|
|
681
|
-
export function customersToJSON(customers: Customers): string {
|
|
682
|
-
return JSON.stringify(Customers$outboundSchema.parse(customers));
|
|
683
|
-
}
|
|
684
|
-
|
|
685
|
-
export function customersFromJSON(
|
|
686
|
-
jsonString: string,
|
|
687
|
-
): SafeParseResult<Customers, SDKValidationError> {
|
|
688
|
-
return safeParse(
|
|
689
|
-
jsonString,
|
|
690
|
-
(x) => Customers$inboundSchema.parse(JSON.parse(x)),
|
|
691
|
-
`Failed to parse 'Customers' from JSON`,
|
|
692
|
-
);
|
|
693
|
-
}
|
|
694
|
-
|
|
695
|
-
/** @internal */
|
|
696
|
-
export const ApplicationResourceBulkSubmissionDataRelationshipsType$inboundSchema:
|
|
697
|
-
z.ZodNativeEnum<
|
|
698
|
-
typeof ApplicationResourceBulkSubmissionDataRelationshipsType
|
|
699
|
-
> = z.nativeEnum(ApplicationResourceBulkSubmissionDataRelationshipsType);
|
|
700
|
-
|
|
701
|
-
/** @internal */
|
|
702
|
-
export const ApplicationResourceBulkSubmissionDataRelationshipsType$outboundSchema:
|
|
703
|
-
z.ZodNativeEnum<
|
|
704
|
-
typeof ApplicationResourceBulkSubmissionDataRelationshipsType
|
|
705
|
-
> = ApplicationResourceBulkSubmissionDataRelationshipsType$inboundSchema;
|
|
706
|
-
|
|
707
|
-
/**
|
|
708
|
-
* @internal
|
|
709
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
710
|
-
*/
|
|
711
|
-
export namespace ApplicationResourceBulkSubmissionDataRelationshipsType$ {
|
|
712
|
-
/** @deprecated use `ApplicationResourceBulkSubmissionDataRelationshipsType$inboundSchema` instead. */
|
|
713
|
-
export const inboundSchema =
|
|
714
|
-
ApplicationResourceBulkSubmissionDataRelationshipsType$inboundSchema;
|
|
715
|
-
/** @deprecated use `ApplicationResourceBulkSubmissionDataRelationshipsType$outboundSchema` instead. */
|
|
716
|
-
export const outboundSchema =
|
|
717
|
-
ApplicationResourceBulkSubmissionDataRelationshipsType$outboundSchema;
|
|
718
|
-
}
|
|
719
|
-
|
|
720
|
-
/** @internal */
|
|
721
|
-
export const ApplicationResourceBulkSubmissionDataData$inboundSchema: z.ZodType<
|
|
722
|
-
ApplicationResourceBulkSubmissionDataData,
|
|
723
|
-
z.ZodTypeDef,
|
|
724
|
-
unknown
|
|
725
|
-
> = z.object({
|
|
726
|
-
id: z.string(),
|
|
727
|
-
type: ApplicationResourceBulkSubmissionDataRelationshipsType$inboundSchema,
|
|
728
|
-
attributes: AssetAttributes$inboundSchema,
|
|
729
|
-
});
|
|
730
|
-
|
|
731
|
-
/** @internal */
|
|
732
|
-
export type ApplicationResourceBulkSubmissionDataData$Outbound = {
|
|
733
|
-
id: string;
|
|
734
|
-
type: string;
|
|
735
|
-
attributes: AssetAttributes$Outbound;
|
|
736
|
-
};
|
|
737
|
-
|
|
738
|
-
/** @internal */
|
|
739
|
-
export const ApplicationResourceBulkSubmissionDataData$outboundSchema:
|
|
740
|
-
z.ZodType<
|
|
741
|
-
ApplicationResourceBulkSubmissionDataData$Outbound,
|
|
742
|
-
z.ZodTypeDef,
|
|
743
|
-
ApplicationResourceBulkSubmissionDataData
|
|
744
|
-
> = z.object({
|
|
745
|
-
id: z.string(),
|
|
746
|
-
type: ApplicationResourceBulkSubmissionDataRelationshipsType$outboundSchema,
|
|
747
|
-
attributes: AssetAttributes$outboundSchema,
|
|
748
|
-
});
|
|
749
|
-
|
|
750
|
-
/**
|
|
751
|
-
* @internal
|
|
752
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
753
|
-
*/
|
|
754
|
-
export namespace ApplicationResourceBulkSubmissionDataData$ {
|
|
755
|
-
/** @deprecated use `ApplicationResourceBulkSubmissionDataData$inboundSchema` instead. */
|
|
756
|
-
export const inboundSchema =
|
|
757
|
-
ApplicationResourceBulkSubmissionDataData$inboundSchema;
|
|
758
|
-
/** @deprecated use `ApplicationResourceBulkSubmissionDataData$outboundSchema` instead. */
|
|
759
|
-
export const outboundSchema =
|
|
760
|
-
ApplicationResourceBulkSubmissionDataData$outboundSchema;
|
|
761
|
-
/** @deprecated use `ApplicationResourceBulkSubmissionDataData$Outbound` instead. */
|
|
762
|
-
export type Outbound = ApplicationResourceBulkSubmissionDataData$Outbound;
|
|
763
|
-
}
|
|
764
|
-
|
|
765
|
-
export function applicationResourceBulkSubmissionDataDataToJSON(
|
|
766
|
-
applicationResourceBulkSubmissionDataData:
|
|
767
|
-
ApplicationResourceBulkSubmissionDataData,
|
|
768
|
-
): string {
|
|
769
|
-
return JSON.stringify(
|
|
770
|
-
ApplicationResourceBulkSubmissionDataData$outboundSchema.parse(
|
|
771
|
-
applicationResourceBulkSubmissionDataData,
|
|
772
|
-
),
|
|
773
|
-
);
|
|
774
|
-
}
|
|
775
|
-
|
|
776
|
-
export function applicationResourceBulkSubmissionDataDataFromJSON(
|
|
777
|
-
jsonString: string,
|
|
778
|
-
): SafeParseResult<
|
|
779
|
-
ApplicationResourceBulkSubmissionDataData,
|
|
780
|
-
SDKValidationError
|
|
781
|
-
> {
|
|
782
|
-
return safeParse(
|
|
783
|
-
jsonString,
|
|
784
|
-
(x) =>
|
|
785
|
-
ApplicationResourceBulkSubmissionDataData$inboundSchema.parse(
|
|
786
|
-
JSON.parse(x),
|
|
787
|
-
),
|
|
788
|
-
`Failed to parse 'ApplicationResourceBulkSubmissionDataData' from JSON`,
|
|
789
|
-
);
|
|
790
|
-
}
|
|
791
|
-
|
|
792
|
-
/** @internal */
|
|
793
|
-
export const Asset$inboundSchema: z.ZodType<Asset, z.ZodTypeDef, unknown> = z
|
|
794
|
-
.object({
|
|
795
|
-
data: z.lazy(() => ApplicationResourceBulkSubmissionDataData$inboundSchema),
|
|
796
|
-
});
|
|
797
|
-
|
|
798
|
-
/** @internal */
|
|
799
|
-
export type Asset$Outbound = {
|
|
800
|
-
data: ApplicationResourceBulkSubmissionDataData$Outbound;
|
|
801
|
-
};
|
|
802
|
-
|
|
803
|
-
/** @internal */
|
|
804
|
-
export const Asset$outboundSchema: z.ZodType<
|
|
805
|
-
Asset$Outbound,
|
|
806
|
-
z.ZodTypeDef,
|
|
807
|
-
Asset
|
|
808
|
-
> = z.object({
|
|
809
|
-
data: z.lazy(() => ApplicationResourceBulkSubmissionDataData$outboundSchema),
|
|
810
|
-
});
|
|
811
|
-
|
|
812
|
-
/**
|
|
813
|
-
* @internal
|
|
814
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
815
|
-
*/
|
|
816
|
-
export namespace Asset$ {
|
|
817
|
-
/** @deprecated use `Asset$inboundSchema` instead. */
|
|
818
|
-
export const inboundSchema = Asset$inboundSchema;
|
|
819
|
-
/** @deprecated use `Asset$outboundSchema` instead. */
|
|
820
|
-
export const outboundSchema = Asset$outboundSchema;
|
|
821
|
-
/** @deprecated use `Asset$Outbound` instead. */
|
|
822
|
-
export type Outbound = Asset$Outbound;
|
|
823
|
-
}
|
|
824
|
-
|
|
825
|
-
export function assetToJSON(asset: Asset): string {
|
|
826
|
-
return JSON.stringify(Asset$outboundSchema.parse(asset));
|
|
827
|
-
}
|
|
828
|
-
|
|
829
|
-
export function assetFromJSON(
|
|
830
|
-
jsonString: string,
|
|
831
|
-
): SafeParseResult<Asset, SDKValidationError> {
|
|
832
|
-
return safeParse(
|
|
833
|
-
jsonString,
|
|
834
|
-
(x) => Asset$inboundSchema.parse(JSON.parse(x)),
|
|
835
|
-
`Failed to parse 'Asset' from JSON`,
|
|
836
|
-
);
|
|
837
|
-
}
|
|
838
|
-
|
|
839
|
-
/** @internal */
|
|
840
|
-
export const Relationships$inboundSchema: z.ZodType<
|
|
841
|
-
Relationships,
|
|
842
|
-
z.ZodTypeDef,
|
|
843
|
-
unknown
|
|
844
|
-
> = z.object({
|
|
845
|
-
loanDetails: z.lazy(() => LoanDetails$inboundSchema),
|
|
846
|
-
customers: z.lazy(() => Customers$inboundSchema),
|
|
847
|
-
asset: z.lazy(() => Asset$inboundSchema),
|
|
848
|
-
});
|
|
849
|
-
|
|
850
|
-
/** @internal */
|
|
851
|
-
export type Relationships$Outbound = {
|
|
852
|
-
loanDetails: LoanDetails$Outbound;
|
|
853
|
-
customers: Customers$Outbound;
|
|
854
|
-
asset: Asset$Outbound;
|
|
855
|
-
};
|
|
856
|
-
|
|
857
|
-
/** @internal */
|
|
858
|
-
export const Relationships$outboundSchema: z.ZodType<
|
|
859
|
-
Relationships$Outbound,
|
|
860
|
-
z.ZodTypeDef,
|
|
861
|
-
Relationships
|
|
862
|
-
> = z.object({
|
|
863
|
-
loanDetails: z.lazy(() => LoanDetails$outboundSchema),
|
|
864
|
-
customers: z.lazy(() => Customers$outboundSchema),
|
|
865
|
-
asset: z.lazy(() => Asset$outboundSchema),
|
|
866
|
-
});
|
|
867
|
-
|
|
868
|
-
/**
|
|
869
|
-
* @internal
|
|
870
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
871
|
-
*/
|
|
872
|
-
export namespace Relationships$ {
|
|
873
|
-
/** @deprecated use `Relationships$inboundSchema` instead. */
|
|
874
|
-
export const inboundSchema = Relationships$inboundSchema;
|
|
875
|
-
/** @deprecated use `Relationships$outboundSchema` instead. */
|
|
876
|
-
export const outboundSchema = Relationships$outboundSchema;
|
|
877
|
-
/** @deprecated use `Relationships$Outbound` instead. */
|
|
878
|
-
export type Outbound = Relationships$Outbound;
|
|
879
|
-
}
|
|
880
|
-
|
|
881
|
-
export function relationshipsToJSON(relationships: Relationships): string {
|
|
882
|
-
return JSON.stringify(Relationships$outboundSchema.parse(relationships));
|
|
883
|
-
}
|
|
884
|
-
|
|
885
|
-
export function relationshipsFromJSON(
|
|
886
|
-
jsonString: string,
|
|
887
|
-
): SafeParseResult<Relationships, SDKValidationError> {
|
|
888
|
-
return safeParse(
|
|
889
|
-
jsonString,
|
|
890
|
-
(x) => Relationships$inboundSchema.parse(JSON.parse(x)),
|
|
891
|
-
`Failed to parse 'Relationships' from JSON`,
|
|
892
|
-
);
|
|
893
|
-
}
|
|
894
|
-
|
|
895
|
-
/** @internal */
|
|
896
|
-
export const Data$inboundSchema: z.ZodType<Data, z.ZodTypeDef, unknown> = z
|
|
897
|
-
.object({
|
|
898
|
-
type: Type$inboundSchema,
|
|
899
|
-
attributes: ApplicationAttributesCreate$inboundSchema,
|
|
900
|
-
relationships: z.lazy(() => Relationships$inboundSchema),
|
|
901
|
-
});
|
|
902
|
-
|
|
903
|
-
/** @internal */
|
|
904
|
-
export type Data$Outbound = {
|
|
905
|
-
type: string;
|
|
906
|
-
attributes: ApplicationAttributesCreate$Outbound;
|
|
907
|
-
relationships: Relationships$Outbound;
|
|
908
|
-
};
|
|
909
|
-
|
|
910
|
-
/** @internal */
|
|
911
|
-
export const Data$outboundSchema: z.ZodType<Data$Outbound, z.ZodTypeDef, Data> =
|
|
912
|
-
z.object({
|
|
913
|
-
type: Type$outboundSchema,
|
|
914
|
-
attributes: ApplicationAttributesCreate$outboundSchema,
|
|
915
|
-
relationships: z.lazy(() => Relationships$outboundSchema),
|
|
916
|
-
});
|
|
917
|
-
|
|
918
|
-
/**
|
|
919
|
-
* @internal
|
|
920
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
921
|
-
*/
|
|
922
|
-
export namespace Data$ {
|
|
923
|
-
/** @deprecated use `Data$inboundSchema` instead. */
|
|
924
|
-
export const inboundSchema = Data$inboundSchema;
|
|
925
|
-
/** @deprecated use `Data$outboundSchema` instead. */
|
|
926
|
-
export const outboundSchema = Data$outboundSchema;
|
|
927
|
-
/** @deprecated use `Data$Outbound` instead. */
|
|
928
|
-
export type Outbound = Data$Outbound;
|
|
929
|
-
}
|
|
930
|
-
|
|
931
|
-
export function dataToJSON(data: Data): string {
|
|
932
|
-
return JSON.stringify(Data$outboundSchema.parse(data));
|
|
933
|
-
}
|
|
934
|
-
|
|
935
|
-
export function dataFromJSON(
|
|
936
|
-
jsonString: string,
|
|
937
|
-
): SafeParseResult<Data, SDKValidationError> {
|
|
938
|
-
return safeParse(
|
|
939
|
-
jsonString,
|
|
940
|
-
(x) => Data$inboundSchema.parse(JSON.parse(x)),
|
|
941
|
-
`Failed to parse 'Data' from JSON`,
|
|
942
|
-
);
|
|
943
|
-
}
|
|
944
|
-
|
|
945
|
-
/** @internal */
|
|
946
|
-
export const ApplicationResourceBulkSubmission$inboundSchema: z.ZodType<
|
|
947
|
-
ApplicationResourceBulkSubmission,
|
|
948
|
-
z.ZodTypeDef,
|
|
949
|
-
unknown
|
|
950
|
-
> = z.object({
|
|
951
|
-
data: z.lazy(() => Data$inboundSchema),
|
|
952
|
-
});
|
|
953
|
-
|
|
954
|
-
/** @internal */
|
|
955
|
-
export type ApplicationResourceBulkSubmission$Outbound = {
|
|
956
|
-
data: Data$Outbound;
|
|
957
|
-
};
|
|
958
|
-
|
|
959
|
-
/** @internal */
|
|
960
|
-
export const ApplicationResourceBulkSubmission$outboundSchema: z.ZodType<
|
|
961
|
-
ApplicationResourceBulkSubmission$Outbound,
|
|
962
|
-
z.ZodTypeDef,
|
|
963
|
-
ApplicationResourceBulkSubmission
|
|
964
|
-
> = z.object({
|
|
965
|
-
data: z.lazy(() => Data$outboundSchema),
|
|
966
|
-
});
|
|
967
|
-
|
|
968
|
-
/**
|
|
969
|
-
* @internal
|
|
970
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
971
|
-
*/
|
|
972
|
-
export namespace ApplicationResourceBulkSubmission$ {
|
|
973
|
-
/** @deprecated use `ApplicationResourceBulkSubmission$inboundSchema` instead. */
|
|
974
|
-
export const inboundSchema = ApplicationResourceBulkSubmission$inboundSchema;
|
|
975
|
-
/** @deprecated use `ApplicationResourceBulkSubmission$outboundSchema` instead. */
|
|
976
|
-
export const outboundSchema =
|
|
977
|
-
ApplicationResourceBulkSubmission$outboundSchema;
|
|
978
|
-
/** @deprecated use `ApplicationResourceBulkSubmission$Outbound` instead. */
|
|
979
|
-
export type Outbound = ApplicationResourceBulkSubmission$Outbound;
|
|
980
|
-
}
|
|
981
|
-
|
|
982
|
-
export function applicationResourceBulkSubmissionToJSON(
|
|
983
|
-
applicationResourceBulkSubmission: ApplicationResourceBulkSubmission,
|
|
984
|
-
): string {
|
|
985
|
-
return JSON.stringify(
|
|
986
|
-
ApplicationResourceBulkSubmission$outboundSchema.parse(
|
|
987
|
-
applicationResourceBulkSubmission,
|
|
988
|
-
),
|
|
989
|
-
);
|
|
990
|
-
}
|
|
991
|
-
|
|
992
|
-
export function applicationResourceBulkSubmissionFromJSON(
|
|
993
|
-
jsonString: string,
|
|
994
|
-
): SafeParseResult<ApplicationResourceBulkSubmission, SDKValidationError> {
|
|
995
|
-
return safeParse(
|
|
996
|
-
jsonString,
|
|
997
|
-
(x) => ApplicationResourceBulkSubmission$inboundSchema.parse(JSON.parse(x)),
|
|
998
|
-
`Failed to parse 'ApplicationResourceBulkSubmission' from JSON`,
|
|
999
|
-
);
|
|
1000
|
-
}
|