@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.
Files changed (82) hide show
  1. package/FUNCTIONS.md +0 -4
  2. package/README.md +945 -28
  3. package/docs/sdks/applications/README.md +0 -8
  4. package/jsr.json +1 -1
  5. package/lib/config.d.ts +3 -3
  6. package/lib/config.js +3 -3
  7. package/models/components/applicationresourcebulksubmission.d.ts +0 -6
  8. package/models/components/applicationresourcebulksubmission.d.ts.map +1 -1
  9. package/models/components/applicationresourcebulksubmission.js +0 -6
  10. package/models/components/applicationresourcebulksubmission.js.map +1 -1
  11. package/package.json +1 -1
  12. package/src/lib/config.ts +3 -3
  13. package/src/models/components/applicationresourcebulksubmission.ts +0 -12
  14. package/financeable-typescript/.devcontainer/README.md +0 -30
  15. package/financeable-typescript/FUNCTIONS.md +0 -205
  16. package/financeable-typescript/README.md +0 -895
  17. package/financeable-typescript/RUNTIMES.md +0 -22
  18. package/financeable-typescript/docs/sdks/applications/README.md +0 -427
  19. package/financeable-typescript/docs/sdks/financeable/README.md +0 -5
  20. package/financeable-typescript/src/core.ts +0 -13
  21. package/financeable-typescript/src/funcs/applicationsCreate.ts +0 -124
  22. package/financeable-typescript/src/funcs/applicationsGet.ts +0 -128
  23. package/financeable-typescript/src/funcs/applicationsList.ts +0 -126
  24. package/financeable-typescript/src/hooks/hooks.ts +0 -129
  25. package/financeable-typescript/src/hooks/index.ts +0 -6
  26. package/financeable-typescript/src/hooks/types.ts +0 -109
  27. package/financeable-typescript/src/index.ts +0 -7
  28. package/financeable-typescript/src/lib/base64.ts +0 -37
  29. package/financeable-typescript/src/lib/config.ts +0 -59
  30. package/financeable-typescript/src/lib/dlv.ts +0 -53
  31. package/financeable-typescript/src/lib/encodings.ts +0 -449
  32. package/financeable-typescript/src/lib/env.ts +0 -37
  33. package/financeable-typescript/src/lib/files.ts +0 -40
  34. package/financeable-typescript/src/lib/http.ts +0 -323
  35. package/financeable-typescript/src/lib/is-plain-object.ts +0 -43
  36. package/financeable-typescript/src/lib/logger.ts +0 -9
  37. package/financeable-typescript/src/lib/matchers.ts +0 -322
  38. package/financeable-typescript/src/lib/primitives.ts +0 -122
  39. package/financeable-typescript/src/lib/retries.ts +0 -219
  40. package/financeable-typescript/src/lib/schemas.ts +0 -86
  41. package/financeable-typescript/src/lib/sdks.ts +0 -392
  42. package/financeable-typescript/src/lib/security.ts +0 -227
  43. package/financeable-typescript/src/lib/url.ts +0 -33
  44. package/financeable-typescript/src/models/components/addressattributes.ts +0 -148
  45. package/financeable-typescript/src/models/components/apierrorlinks.ts +0 -65
  46. package/financeable-typescript/src/models/components/applicationattributes.ts +0 -128
  47. package/financeable-typescript/src/models/components/applicationattributescreate.ts +0 -90
  48. package/financeable-typescript/src/models/components/applicationresourcebulksubmission.ts +0 -1000
  49. package/financeable-typescript/src/models/components/applicationstatus.ts +0 -39
  50. package/financeable-typescript/src/models/components/applicationtype.ts +0 -33
  51. package/financeable-typescript/src/models/components/assetattributes.ts +0 -400
  52. package/financeable-typescript/src/models/components/customerattributes.ts +0 -171
  53. package/financeable-typescript/src/models/components/customertitle.ts +0 -35
  54. package/financeable-typescript/src/models/components/errorsource.ts +0 -79
  55. package/financeable-typescript/src/models/components/forbiddenerror.ts +0 -207
  56. package/financeable-typescript/src/models/components/frequencytype.ts +0 -40
  57. package/financeable-typescript/src/models/components/index.ts +0 -20
  58. package/financeable-typescript/src/models/components/links.ts +0 -72
  59. package/financeable-typescript/src/models/components/loandetailsattributes.ts +0 -187
  60. package/financeable-typescript/src/models/components/repaymentstructure.ts +0 -40
  61. package/financeable-typescript/src/models/errors/apierror.ts +0 -27
  62. package/financeable-typescript/src/models/errors/createapplication.ts +0 -76
  63. package/financeable-typescript/src/models/errors/getapplication.ts +0 -76
  64. package/financeable-typescript/src/models/errors/getapplications.ts +0 -76
  65. package/financeable-typescript/src/models/errors/httpclienterrors.ts +0 -62
  66. package/financeable-typescript/src/models/errors/index.ts +0 -10
  67. package/financeable-typescript/src/models/errors/sdkvalidationerror.ts +0 -97
  68. package/financeable-typescript/src/models/operations/createapplication.ts +0 -1649
  69. package/financeable-typescript/src/models/operations/getapplication.ts +0 -1829
  70. package/financeable-typescript/src/models/operations/getapplications.ts +0 -1790
  71. package/financeable-typescript/src/models/operations/index.ts +0 -7
  72. package/financeable-typescript/src/sdk/applications.ts +0 -55
  73. package/financeable-typescript/src/sdk/index.ts +0 -5
  74. package/financeable-typescript/src/sdk/sdk.ts +0 -13
  75. package/financeable-typescript/src/types/blobs.ts +0 -31
  76. package/financeable-typescript/src/types/constdatetime.ts +0 -15
  77. package/financeable-typescript/src/types/enums.ts +0 -16
  78. package/financeable-typescript/src/types/fp.ts +0 -50
  79. package/financeable-typescript/src/types/index.ts +0 -11
  80. package/financeable-typescript/src/types/operations.ts +0 -105
  81. package/financeable-typescript/src/types/rfcdate.ts +0 -54
  82. package/financeable-typescript/src/types/streams.ts +0 -21
@@ -1,1829 +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 * as components from "../components/index.js";
10
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
-
12
- export type GetApplicationRequest = {
13
- id: string;
14
- };
15
-
16
- export const GetApplicationType = {
17
- Applications: "applications",
18
- } as const;
19
- export type GetApplicationType = ClosedEnum<typeof GetApplicationType>;
20
-
21
- export const GetApplicationDataApplicationsType = {
22
- LoanDetails: "loan-details",
23
- } as const;
24
- export type GetApplicationDataApplicationsType = ClosedEnum<
25
- typeof GetApplicationDataApplicationsType
26
- >;
27
-
28
- export type GetApplicationDataApplicationsResponse2002 = {
29
- type: GetApplicationDataApplicationsType;
30
- id: string;
31
- };
32
-
33
- export const GetApplicationDataType = {
34
- LoanDetails: "loan-details",
35
- } as const;
36
- export type GetApplicationDataType = ClosedEnum<typeof GetApplicationDataType>;
37
-
38
- export type GetApplicationDataApplicationsResponse2001 = {
39
- type: GetApplicationDataType;
40
- id: string;
41
- };
42
-
43
- export type GetApplicationApplicationsResponse200Data =
44
- | GetApplicationDataApplicationsResponse2001
45
- | Array<GetApplicationDataApplicationsResponse2002>;
46
-
47
- export type GetApplicationLoanDetails = {
48
- data:
49
- | GetApplicationDataApplicationsResponse2001
50
- | Array<GetApplicationDataApplicationsResponse2002>
51
- | null;
52
- /**
53
- * Standard link object
54
- */
55
- links?: components.Links | undefined;
56
- meta?: { [k: string]: any } | undefined;
57
- };
58
-
59
- export const GetApplicationDataApplicationsResponse200Type = {
60
- Customers: "customers",
61
- } as const;
62
- export type GetApplicationDataApplicationsResponse200Type = ClosedEnum<
63
- typeof GetApplicationDataApplicationsResponse200Type
64
- >;
65
-
66
- export type GetApplicationDataApplications2 = {
67
- type: GetApplicationDataApplicationsResponse200Type;
68
- id: string;
69
- };
70
-
71
- export const GetApplicationDataApplicationsResponseType = {
72
- Customers: "customers",
73
- } as const;
74
- export type GetApplicationDataApplicationsResponseType = ClosedEnum<
75
- typeof GetApplicationDataApplicationsResponseType
76
- >;
77
-
78
- export type GetApplicationDataApplications1 = {
79
- type: GetApplicationDataApplicationsResponseType;
80
- id: string;
81
- };
82
-
83
- export type GetApplicationApplicationsResponse200ApplicationJSONData =
84
- | GetApplicationDataApplications1
85
- | Array<GetApplicationDataApplications2>;
86
-
87
- export type GetApplicationCustomers = {
88
- data:
89
- | GetApplicationDataApplications1
90
- | Array<GetApplicationDataApplications2>
91
- | null;
92
- /**
93
- * Standard link object
94
- */
95
- links?: components.Links | undefined;
96
- meta?: { [k: string]: any } | undefined;
97
- };
98
-
99
- export const GetApplicationDataApplicationsResponse200ApplicationJSONResponseBodyType =
100
- {
101
- Asset: "asset",
102
- } as const;
103
- export type GetApplicationDataApplicationsResponse200ApplicationJSONResponseBodyType =
104
- ClosedEnum<
105
- typeof GetApplicationDataApplicationsResponse200ApplicationJSONResponseBodyType
106
- >;
107
-
108
- export type GetApplicationDataApplicationsResponse2 = {
109
- type:
110
- GetApplicationDataApplicationsResponse200ApplicationJSONResponseBodyType;
111
- id: string;
112
- };
113
-
114
- export const GetApplicationDataApplicationsResponse200ApplicationJSONType = {
115
- Asset: "asset",
116
- } as const;
117
- export type GetApplicationDataApplicationsResponse200ApplicationJSONType =
118
- ClosedEnum<
119
- typeof GetApplicationDataApplicationsResponse200ApplicationJSONType
120
- >;
121
-
122
- export type GetApplicationDataApplicationsResponse1 = {
123
- type: GetApplicationDataApplicationsResponse200ApplicationJSONType;
124
- id: string;
125
- };
126
-
127
- export type GetApplicationApplicationsResponseData =
128
- | GetApplicationDataApplicationsResponse1
129
- | Array<GetApplicationDataApplicationsResponse2>;
130
-
131
- export type GetApplicationAsset = {
132
- data:
133
- | GetApplicationDataApplicationsResponse1
134
- | Array<GetApplicationDataApplicationsResponse2>
135
- | null;
136
- /**
137
- * Standard link object
138
- */
139
- links?: components.Links | undefined;
140
- meta?: { [k: string]: any } | undefined;
141
- };
142
-
143
- export type GetApplicationRelationships = {
144
- loanDetails?: GetApplicationLoanDetails | undefined;
145
- customers?: GetApplicationCustomers | undefined;
146
- asset?: GetApplicationAsset | undefined;
147
- };
148
-
149
- export type GetApplicationData = {
150
- type: GetApplicationType;
151
- id: string;
152
- /**
153
- * Application resource attributes
154
- */
155
- attributes?: components.ApplicationAttributes | undefined;
156
- relationships?: GetApplicationRelationships | undefined;
157
- /**
158
- * Standard link object
159
- */
160
- links?: components.Links | undefined;
161
- meta?: { [k: string]: any } | undefined;
162
- };
163
-
164
- export type GetApplicationAttributes = {};
165
-
166
- export type GetApplicationData2 = {
167
- type: string;
168
- id: string;
169
- };
170
-
171
- export type GetApplicationData1 = {
172
- type: string;
173
- id: string;
174
- };
175
-
176
- export type GetApplicationApplicationsData =
177
- | GetApplicationData1
178
- | Array<GetApplicationData2>;
179
-
180
- export type GetApplicationApplicationsRelationships = {
181
- data: GetApplicationData1 | Array<GetApplicationData2> | null;
182
- /**
183
- * Standard link object
184
- */
185
- links?: components.Links | undefined;
186
- meta?: { [k: string]: any } | undefined;
187
- };
188
-
189
- export type GetApplicationIncluded = {
190
- type: string;
191
- id: string;
192
- attributes?: GetApplicationAttributes | undefined;
193
- relationships?:
194
- | { [k: string]: GetApplicationApplicationsRelationships }
195
- | undefined;
196
- /**
197
- * Standard link object
198
- */
199
- links?: components.Links | undefined;
200
- meta?: { [k: string]: any } | undefined;
201
- };
202
-
203
- /**
204
- * The request has succeeded.
205
- */
206
- export type GetApplicationResponseBody = {
207
- data: GetApplicationData;
208
- included?: Array<GetApplicationIncluded> | undefined;
209
- /**
210
- * Standard link object
211
- */
212
- links?: components.Links | undefined;
213
- };
214
-
215
- /** @internal */
216
- export const GetApplicationRequest$inboundSchema: z.ZodType<
217
- GetApplicationRequest,
218
- z.ZodTypeDef,
219
- unknown
220
- > = z.object({
221
- id: z.string(),
222
- });
223
-
224
- /** @internal */
225
- export type GetApplicationRequest$Outbound = {
226
- id: string;
227
- };
228
-
229
- /** @internal */
230
- export const GetApplicationRequest$outboundSchema: z.ZodType<
231
- GetApplicationRequest$Outbound,
232
- z.ZodTypeDef,
233
- GetApplicationRequest
234
- > = z.object({
235
- id: z.string(),
236
- });
237
-
238
- /**
239
- * @internal
240
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
241
- */
242
- export namespace GetApplicationRequest$ {
243
- /** @deprecated use `GetApplicationRequest$inboundSchema` instead. */
244
- export const inboundSchema = GetApplicationRequest$inboundSchema;
245
- /** @deprecated use `GetApplicationRequest$outboundSchema` instead. */
246
- export const outboundSchema = GetApplicationRequest$outboundSchema;
247
- /** @deprecated use `GetApplicationRequest$Outbound` instead. */
248
- export type Outbound = GetApplicationRequest$Outbound;
249
- }
250
-
251
- export function getApplicationRequestToJSON(
252
- getApplicationRequest: GetApplicationRequest,
253
- ): string {
254
- return JSON.stringify(
255
- GetApplicationRequest$outboundSchema.parse(getApplicationRequest),
256
- );
257
- }
258
-
259
- export function getApplicationRequestFromJSON(
260
- jsonString: string,
261
- ): SafeParseResult<GetApplicationRequest, SDKValidationError> {
262
- return safeParse(
263
- jsonString,
264
- (x) => GetApplicationRequest$inboundSchema.parse(JSON.parse(x)),
265
- `Failed to parse 'GetApplicationRequest' from JSON`,
266
- );
267
- }
268
-
269
- /** @internal */
270
- export const GetApplicationType$inboundSchema: z.ZodNativeEnum<
271
- typeof GetApplicationType
272
- > = z.nativeEnum(GetApplicationType);
273
-
274
- /** @internal */
275
- export const GetApplicationType$outboundSchema: z.ZodNativeEnum<
276
- typeof GetApplicationType
277
- > = GetApplicationType$inboundSchema;
278
-
279
- /**
280
- * @internal
281
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
282
- */
283
- export namespace GetApplicationType$ {
284
- /** @deprecated use `GetApplicationType$inboundSchema` instead. */
285
- export const inboundSchema = GetApplicationType$inboundSchema;
286
- /** @deprecated use `GetApplicationType$outboundSchema` instead. */
287
- export const outboundSchema = GetApplicationType$outboundSchema;
288
- }
289
-
290
- /** @internal */
291
- export const GetApplicationDataApplicationsType$inboundSchema: z.ZodNativeEnum<
292
- typeof GetApplicationDataApplicationsType
293
- > = z.nativeEnum(GetApplicationDataApplicationsType);
294
-
295
- /** @internal */
296
- export const GetApplicationDataApplicationsType$outboundSchema: z.ZodNativeEnum<
297
- typeof GetApplicationDataApplicationsType
298
- > = GetApplicationDataApplicationsType$inboundSchema;
299
-
300
- /**
301
- * @internal
302
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
303
- */
304
- export namespace GetApplicationDataApplicationsType$ {
305
- /** @deprecated use `GetApplicationDataApplicationsType$inboundSchema` instead. */
306
- export const inboundSchema = GetApplicationDataApplicationsType$inboundSchema;
307
- /** @deprecated use `GetApplicationDataApplicationsType$outboundSchema` instead. */
308
- export const outboundSchema =
309
- GetApplicationDataApplicationsType$outboundSchema;
310
- }
311
-
312
- /** @internal */
313
- export const GetApplicationDataApplicationsResponse2002$inboundSchema:
314
- z.ZodType<GetApplicationDataApplicationsResponse2002, z.ZodTypeDef, unknown> =
315
- z.object({
316
- type: GetApplicationDataApplicationsType$inboundSchema,
317
- id: z.string(),
318
- });
319
-
320
- /** @internal */
321
- export type GetApplicationDataApplicationsResponse2002$Outbound = {
322
- type: string;
323
- id: string;
324
- };
325
-
326
- /** @internal */
327
- export const GetApplicationDataApplicationsResponse2002$outboundSchema:
328
- z.ZodType<
329
- GetApplicationDataApplicationsResponse2002$Outbound,
330
- z.ZodTypeDef,
331
- GetApplicationDataApplicationsResponse2002
332
- > = z.object({
333
- type: GetApplicationDataApplicationsType$outboundSchema,
334
- id: z.string(),
335
- });
336
-
337
- /**
338
- * @internal
339
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
340
- */
341
- export namespace GetApplicationDataApplicationsResponse2002$ {
342
- /** @deprecated use `GetApplicationDataApplicationsResponse2002$inboundSchema` instead. */
343
- export const inboundSchema =
344
- GetApplicationDataApplicationsResponse2002$inboundSchema;
345
- /** @deprecated use `GetApplicationDataApplicationsResponse2002$outboundSchema` instead. */
346
- export const outboundSchema =
347
- GetApplicationDataApplicationsResponse2002$outboundSchema;
348
- /** @deprecated use `GetApplicationDataApplicationsResponse2002$Outbound` instead. */
349
- export type Outbound = GetApplicationDataApplicationsResponse2002$Outbound;
350
- }
351
-
352
- export function getApplicationDataApplicationsResponse2002ToJSON(
353
- getApplicationDataApplicationsResponse2002:
354
- GetApplicationDataApplicationsResponse2002,
355
- ): string {
356
- return JSON.stringify(
357
- GetApplicationDataApplicationsResponse2002$outboundSchema.parse(
358
- getApplicationDataApplicationsResponse2002,
359
- ),
360
- );
361
- }
362
-
363
- export function getApplicationDataApplicationsResponse2002FromJSON(
364
- jsonString: string,
365
- ): SafeParseResult<
366
- GetApplicationDataApplicationsResponse2002,
367
- SDKValidationError
368
- > {
369
- return safeParse(
370
- jsonString,
371
- (x) =>
372
- GetApplicationDataApplicationsResponse2002$inboundSchema.parse(
373
- JSON.parse(x),
374
- ),
375
- `Failed to parse 'GetApplicationDataApplicationsResponse2002' from JSON`,
376
- );
377
- }
378
-
379
- /** @internal */
380
- export const GetApplicationDataType$inboundSchema: z.ZodNativeEnum<
381
- typeof GetApplicationDataType
382
- > = z.nativeEnum(GetApplicationDataType);
383
-
384
- /** @internal */
385
- export const GetApplicationDataType$outboundSchema: z.ZodNativeEnum<
386
- typeof GetApplicationDataType
387
- > = GetApplicationDataType$inboundSchema;
388
-
389
- /**
390
- * @internal
391
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
392
- */
393
- export namespace GetApplicationDataType$ {
394
- /** @deprecated use `GetApplicationDataType$inboundSchema` instead. */
395
- export const inboundSchema = GetApplicationDataType$inboundSchema;
396
- /** @deprecated use `GetApplicationDataType$outboundSchema` instead. */
397
- export const outboundSchema = GetApplicationDataType$outboundSchema;
398
- }
399
-
400
- /** @internal */
401
- export const GetApplicationDataApplicationsResponse2001$inboundSchema:
402
- z.ZodType<GetApplicationDataApplicationsResponse2001, z.ZodTypeDef, unknown> =
403
- z.object({
404
- type: GetApplicationDataType$inboundSchema,
405
- id: z.string(),
406
- });
407
-
408
- /** @internal */
409
- export type GetApplicationDataApplicationsResponse2001$Outbound = {
410
- type: string;
411
- id: string;
412
- };
413
-
414
- /** @internal */
415
- export const GetApplicationDataApplicationsResponse2001$outboundSchema:
416
- z.ZodType<
417
- GetApplicationDataApplicationsResponse2001$Outbound,
418
- z.ZodTypeDef,
419
- GetApplicationDataApplicationsResponse2001
420
- > = z.object({
421
- type: GetApplicationDataType$outboundSchema,
422
- id: z.string(),
423
- });
424
-
425
- /**
426
- * @internal
427
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
428
- */
429
- export namespace GetApplicationDataApplicationsResponse2001$ {
430
- /** @deprecated use `GetApplicationDataApplicationsResponse2001$inboundSchema` instead. */
431
- export const inboundSchema =
432
- GetApplicationDataApplicationsResponse2001$inboundSchema;
433
- /** @deprecated use `GetApplicationDataApplicationsResponse2001$outboundSchema` instead. */
434
- export const outboundSchema =
435
- GetApplicationDataApplicationsResponse2001$outboundSchema;
436
- /** @deprecated use `GetApplicationDataApplicationsResponse2001$Outbound` instead. */
437
- export type Outbound = GetApplicationDataApplicationsResponse2001$Outbound;
438
- }
439
-
440
- export function getApplicationDataApplicationsResponse2001ToJSON(
441
- getApplicationDataApplicationsResponse2001:
442
- GetApplicationDataApplicationsResponse2001,
443
- ): string {
444
- return JSON.stringify(
445
- GetApplicationDataApplicationsResponse2001$outboundSchema.parse(
446
- getApplicationDataApplicationsResponse2001,
447
- ),
448
- );
449
- }
450
-
451
- export function getApplicationDataApplicationsResponse2001FromJSON(
452
- jsonString: string,
453
- ): SafeParseResult<
454
- GetApplicationDataApplicationsResponse2001,
455
- SDKValidationError
456
- > {
457
- return safeParse(
458
- jsonString,
459
- (x) =>
460
- GetApplicationDataApplicationsResponse2001$inboundSchema.parse(
461
- JSON.parse(x),
462
- ),
463
- `Failed to parse 'GetApplicationDataApplicationsResponse2001' from JSON`,
464
- );
465
- }
466
-
467
- /** @internal */
468
- export const GetApplicationApplicationsResponse200Data$inboundSchema: z.ZodType<
469
- GetApplicationApplicationsResponse200Data,
470
- z.ZodTypeDef,
471
- unknown
472
- > = z.union([
473
- z.lazy(() => GetApplicationDataApplicationsResponse2001$inboundSchema),
474
- z.array(
475
- z.lazy(() => GetApplicationDataApplicationsResponse2002$inboundSchema),
476
- ),
477
- ]);
478
-
479
- /** @internal */
480
- export type GetApplicationApplicationsResponse200Data$Outbound =
481
- | GetApplicationDataApplicationsResponse2001$Outbound
482
- | Array<GetApplicationDataApplicationsResponse2002$Outbound>;
483
-
484
- /** @internal */
485
- export const GetApplicationApplicationsResponse200Data$outboundSchema:
486
- z.ZodType<
487
- GetApplicationApplicationsResponse200Data$Outbound,
488
- z.ZodTypeDef,
489
- GetApplicationApplicationsResponse200Data
490
- > = z.union([
491
- z.lazy(() => GetApplicationDataApplicationsResponse2001$outboundSchema),
492
- z.array(
493
- z.lazy(() => GetApplicationDataApplicationsResponse2002$outboundSchema),
494
- ),
495
- ]);
496
-
497
- /**
498
- * @internal
499
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
500
- */
501
- export namespace GetApplicationApplicationsResponse200Data$ {
502
- /** @deprecated use `GetApplicationApplicationsResponse200Data$inboundSchema` instead. */
503
- export const inboundSchema =
504
- GetApplicationApplicationsResponse200Data$inboundSchema;
505
- /** @deprecated use `GetApplicationApplicationsResponse200Data$outboundSchema` instead. */
506
- export const outboundSchema =
507
- GetApplicationApplicationsResponse200Data$outboundSchema;
508
- /** @deprecated use `GetApplicationApplicationsResponse200Data$Outbound` instead. */
509
- export type Outbound = GetApplicationApplicationsResponse200Data$Outbound;
510
- }
511
-
512
- export function getApplicationApplicationsResponse200DataToJSON(
513
- getApplicationApplicationsResponse200Data:
514
- GetApplicationApplicationsResponse200Data,
515
- ): string {
516
- return JSON.stringify(
517
- GetApplicationApplicationsResponse200Data$outboundSchema.parse(
518
- getApplicationApplicationsResponse200Data,
519
- ),
520
- );
521
- }
522
-
523
- export function getApplicationApplicationsResponse200DataFromJSON(
524
- jsonString: string,
525
- ): SafeParseResult<
526
- GetApplicationApplicationsResponse200Data,
527
- SDKValidationError
528
- > {
529
- return safeParse(
530
- jsonString,
531
- (x) =>
532
- GetApplicationApplicationsResponse200Data$inboundSchema.parse(
533
- JSON.parse(x),
534
- ),
535
- `Failed to parse 'GetApplicationApplicationsResponse200Data' from JSON`,
536
- );
537
- }
538
-
539
- /** @internal */
540
- export const GetApplicationLoanDetails$inboundSchema: z.ZodType<
541
- GetApplicationLoanDetails,
542
- z.ZodTypeDef,
543
- unknown
544
- > = z.object({
545
- data: z.nullable(
546
- z.union([
547
- z.lazy(() => GetApplicationDataApplicationsResponse2001$inboundSchema),
548
- z.array(z.lazy(() =>
549
- GetApplicationDataApplicationsResponse2002$inboundSchema
550
- )),
551
- ]),
552
- ),
553
- links: components.Links$inboundSchema.optional(),
554
- meta: z.record(z.any()).optional(),
555
- });
556
-
557
- /** @internal */
558
- export type GetApplicationLoanDetails$Outbound = {
559
- data:
560
- | GetApplicationDataApplicationsResponse2001$Outbound
561
- | Array<GetApplicationDataApplicationsResponse2002$Outbound>
562
- | null;
563
- links?: components.Links$Outbound | undefined;
564
- meta?: { [k: string]: any } | undefined;
565
- };
566
-
567
- /** @internal */
568
- export const GetApplicationLoanDetails$outboundSchema: z.ZodType<
569
- GetApplicationLoanDetails$Outbound,
570
- z.ZodTypeDef,
571
- GetApplicationLoanDetails
572
- > = z.object({
573
- data: z.nullable(
574
- z.union([
575
- z.lazy(() => GetApplicationDataApplicationsResponse2001$outboundSchema),
576
- z.array(z.lazy(() =>
577
- GetApplicationDataApplicationsResponse2002$outboundSchema
578
- )),
579
- ]),
580
- ),
581
- links: components.Links$outboundSchema.optional(),
582
- meta: z.record(z.any()).optional(),
583
- });
584
-
585
- /**
586
- * @internal
587
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
588
- */
589
- export namespace GetApplicationLoanDetails$ {
590
- /** @deprecated use `GetApplicationLoanDetails$inboundSchema` instead. */
591
- export const inboundSchema = GetApplicationLoanDetails$inboundSchema;
592
- /** @deprecated use `GetApplicationLoanDetails$outboundSchema` instead. */
593
- export const outboundSchema = GetApplicationLoanDetails$outboundSchema;
594
- /** @deprecated use `GetApplicationLoanDetails$Outbound` instead. */
595
- export type Outbound = GetApplicationLoanDetails$Outbound;
596
- }
597
-
598
- export function getApplicationLoanDetailsToJSON(
599
- getApplicationLoanDetails: GetApplicationLoanDetails,
600
- ): string {
601
- return JSON.stringify(
602
- GetApplicationLoanDetails$outboundSchema.parse(getApplicationLoanDetails),
603
- );
604
- }
605
-
606
- export function getApplicationLoanDetailsFromJSON(
607
- jsonString: string,
608
- ): SafeParseResult<GetApplicationLoanDetails, SDKValidationError> {
609
- return safeParse(
610
- jsonString,
611
- (x) => GetApplicationLoanDetails$inboundSchema.parse(JSON.parse(x)),
612
- `Failed to parse 'GetApplicationLoanDetails' from JSON`,
613
- );
614
- }
615
-
616
- /** @internal */
617
- export const GetApplicationDataApplicationsResponse200Type$inboundSchema:
618
- z.ZodNativeEnum<typeof GetApplicationDataApplicationsResponse200Type> = z
619
- .nativeEnum(GetApplicationDataApplicationsResponse200Type);
620
-
621
- /** @internal */
622
- export const GetApplicationDataApplicationsResponse200Type$outboundSchema:
623
- z.ZodNativeEnum<typeof GetApplicationDataApplicationsResponse200Type> =
624
- GetApplicationDataApplicationsResponse200Type$inboundSchema;
625
-
626
- /**
627
- * @internal
628
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
629
- */
630
- export namespace GetApplicationDataApplicationsResponse200Type$ {
631
- /** @deprecated use `GetApplicationDataApplicationsResponse200Type$inboundSchema` instead. */
632
- export const inboundSchema =
633
- GetApplicationDataApplicationsResponse200Type$inboundSchema;
634
- /** @deprecated use `GetApplicationDataApplicationsResponse200Type$outboundSchema` instead. */
635
- export const outboundSchema =
636
- GetApplicationDataApplicationsResponse200Type$outboundSchema;
637
- }
638
-
639
- /** @internal */
640
- export const GetApplicationDataApplications2$inboundSchema: z.ZodType<
641
- GetApplicationDataApplications2,
642
- z.ZodTypeDef,
643
- unknown
644
- > = z.object({
645
- type: GetApplicationDataApplicationsResponse200Type$inboundSchema,
646
- id: z.string(),
647
- });
648
-
649
- /** @internal */
650
- export type GetApplicationDataApplications2$Outbound = {
651
- type: string;
652
- id: string;
653
- };
654
-
655
- /** @internal */
656
- export const GetApplicationDataApplications2$outboundSchema: z.ZodType<
657
- GetApplicationDataApplications2$Outbound,
658
- z.ZodTypeDef,
659
- GetApplicationDataApplications2
660
- > = z.object({
661
- type: GetApplicationDataApplicationsResponse200Type$outboundSchema,
662
- id: z.string(),
663
- });
664
-
665
- /**
666
- * @internal
667
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
668
- */
669
- export namespace GetApplicationDataApplications2$ {
670
- /** @deprecated use `GetApplicationDataApplications2$inboundSchema` instead. */
671
- export const inboundSchema = GetApplicationDataApplications2$inboundSchema;
672
- /** @deprecated use `GetApplicationDataApplications2$outboundSchema` instead. */
673
- export const outboundSchema = GetApplicationDataApplications2$outboundSchema;
674
- /** @deprecated use `GetApplicationDataApplications2$Outbound` instead. */
675
- export type Outbound = GetApplicationDataApplications2$Outbound;
676
- }
677
-
678
- export function getApplicationDataApplications2ToJSON(
679
- getApplicationDataApplications2: GetApplicationDataApplications2,
680
- ): string {
681
- return JSON.stringify(
682
- GetApplicationDataApplications2$outboundSchema.parse(
683
- getApplicationDataApplications2,
684
- ),
685
- );
686
- }
687
-
688
- export function getApplicationDataApplications2FromJSON(
689
- jsonString: string,
690
- ): SafeParseResult<GetApplicationDataApplications2, SDKValidationError> {
691
- return safeParse(
692
- jsonString,
693
- (x) => GetApplicationDataApplications2$inboundSchema.parse(JSON.parse(x)),
694
- `Failed to parse 'GetApplicationDataApplications2' from JSON`,
695
- );
696
- }
697
-
698
- /** @internal */
699
- export const GetApplicationDataApplicationsResponseType$inboundSchema:
700
- z.ZodNativeEnum<typeof GetApplicationDataApplicationsResponseType> = z
701
- .nativeEnum(GetApplicationDataApplicationsResponseType);
702
-
703
- /** @internal */
704
- export const GetApplicationDataApplicationsResponseType$outboundSchema:
705
- z.ZodNativeEnum<typeof GetApplicationDataApplicationsResponseType> =
706
- GetApplicationDataApplicationsResponseType$inboundSchema;
707
-
708
- /**
709
- * @internal
710
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
711
- */
712
- export namespace GetApplicationDataApplicationsResponseType$ {
713
- /** @deprecated use `GetApplicationDataApplicationsResponseType$inboundSchema` instead. */
714
- export const inboundSchema =
715
- GetApplicationDataApplicationsResponseType$inboundSchema;
716
- /** @deprecated use `GetApplicationDataApplicationsResponseType$outboundSchema` instead. */
717
- export const outboundSchema =
718
- GetApplicationDataApplicationsResponseType$outboundSchema;
719
- }
720
-
721
- /** @internal */
722
- export const GetApplicationDataApplications1$inboundSchema: z.ZodType<
723
- GetApplicationDataApplications1,
724
- z.ZodTypeDef,
725
- unknown
726
- > = z.object({
727
- type: GetApplicationDataApplicationsResponseType$inboundSchema,
728
- id: z.string(),
729
- });
730
-
731
- /** @internal */
732
- export type GetApplicationDataApplications1$Outbound = {
733
- type: string;
734
- id: string;
735
- };
736
-
737
- /** @internal */
738
- export const GetApplicationDataApplications1$outboundSchema: z.ZodType<
739
- GetApplicationDataApplications1$Outbound,
740
- z.ZodTypeDef,
741
- GetApplicationDataApplications1
742
- > = z.object({
743
- type: GetApplicationDataApplicationsResponseType$outboundSchema,
744
- id: z.string(),
745
- });
746
-
747
- /**
748
- * @internal
749
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
750
- */
751
- export namespace GetApplicationDataApplications1$ {
752
- /** @deprecated use `GetApplicationDataApplications1$inboundSchema` instead. */
753
- export const inboundSchema = GetApplicationDataApplications1$inboundSchema;
754
- /** @deprecated use `GetApplicationDataApplications1$outboundSchema` instead. */
755
- export const outboundSchema = GetApplicationDataApplications1$outboundSchema;
756
- /** @deprecated use `GetApplicationDataApplications1$Outbound` instead. */
757
- export type Outbound = GetApplicationDataApplications1$Outbound;
758
- }
759
-
760
- export function getApplicationDataApplications1ToJSON(
761
- getApplicationDataApplications1: GetApplicationDataApplications1,
762
- ): string {
763
- return JSON.stringify(
764
- GetApplicationDataApplications1$outboundSchema.parse(
765
- getApplicationDataApplications1,
766
- ),
767
- );
768
- }
769
-
770
- export function getApplicationDataApplications1FromJSON(
771
- jsonString: string,
772
- ): SafeParseResult<GetApplicationDataApplications1, SDKValidationError> {
773
- return safeParse(
774
- jsonString,
775
- (x) => GetApplicationDataApplications1$inboundSchema.parse(JSON.parse(x)),
776
- `Failed to parse 'GetApplicationDataApplications1' from JSON`,
777
- );
778
- }
779
-
780
- /** @internal */
781
- export const GetApplicationApplicationsResponse200ApplicationJSONData$inboundSchema:
782
- z.ZodType<
783
- GetApplicationApplicationsResponse200ApplicationJSONData,
784
- z.ZodTypeDef,
785
- unknown
786
- > = z.union([
787
- z.lazy(() => GetApplicationDataApplications1$inboundSchema),
788
- z.array(z.lazy(() => GetApplicationDataApplications2$inboundSchema)),
789
- ]);
790
-
791
- /** @internal */
792
- export type GetApplicationApplicationsResponse200ApplicationJSONData$Outbound =
793
- | GetApplicationDataApplications1$Outbound
794
- | Array<GetApplicationDataApplications2$Outbound>;
795
-
796
- /** @internal */
797
- export const GetApplicationApplicationsResponse200ApplicationJSONData$outboundSchema:
798
- z.ZodType<
799
- GetApplicationApplicationsResponse200ApplicationJSONData$Outbound,
800
- z.ZodTypeDef,
801
- GetApplicationApplicationsResponse200ApplicationJSONData
802
- > = z.union([
803
- z.lazy(() => GetApplicationDataApplications1$outboundSchema),
804
- z.array(z.lazy(() => GetApplicationDataApplications2$outboundSchema)),
805
- ]);
806
-
807
- /**
808
- * @internal
809
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
810
- */
811
- export namespace GetApplicationApplicationsResponse200ApplicationJSONData$ {
812
- /** @deprecated use `GetApplicationApplicationsResponse200ApplicationJSONData$inboundSchema` instead. */
813
- export const inboundSchema =
814
- GetApplicationApplicationsResponse200ApplicationJSONData$inboundSchema;
815
- /** @deprecated use `GetApplicationApplicationsResponse200ApplicationJSONData$outboundSchema` instead. */
816
- export const outboundSchema =
817
- GetApplicationApplicationsResponse200ApplicationJSONData$outboundSchema;
818
- /** @deprecated use `GetApplicationApplicationsResponse200ApplicationJSONData$Outbound` instead. */
819
- export type Outbound =
820
- GetApplicationApplicationsResponse200ApplicationJSONData$Outbound;
821
- }
822
-
823
- export function getApplicationApplicationsResponse200ApplicationJSONDataToJSON(
824
- getApplicationApplicationsResponse200ApplicationJSONData:
825
- GetApplicationApplicationsResponse200ApplicationJSONData,
826
- ): string {
827
- return JSON.stringify(
828
- GetApplicationApplicationsResponse200ApplicationJSONData$outboundSchema
829
- .parse(getApplicationApplicationsResponse200ApplicationJSONData),
830
- );
831
- }
832
-
833
- export function getApplicationApplicationsResponse200ApplicationJSONDataFromJSON(
834
- jsonString: string,
835
- ): SafeParseResult<
836
- GetApplicationApplicationsResponse200ApplicationJSONData,
837
- SDKValidationError
838
- > {
839
- return safeParse(
840
- jsonString,
841
- (x) =>
842
- GetApplicationApplicationsResponse200ApplicationJSONData$inboundSchema
843
- .parse(JSON.parse(x)),
844
- `Failed to parse 'GetApplicationApplicationsResponse200ApplicationJSONData' from JSON`,
845
- );
846
- }
847
-
848
- /** @internal */
849
- export const GetApplicationCustomers$inboundSchema: z.ZodType<
850
- GetApplicationCustomers,
851
- z.ZodTypeDef,
852
- unknown
853
- > = z.object({
854
- data: z.nullable(
855
- z.union([
856
- z.lazy(() => GetApplicationDataApplications1$inboundSchema),
857
- z.array(z.lazy(() => GetApplicationDataApplications2$inboundSchema)),
858
- ]),
859
- ),
860
- links: components.Links$inboundSchema.optional(),
861
- meta: z.record(z.any()).optional(),
862
- });
863
-
864
- /** @internal */
865
- export type GetApplicationCustomers$Outbound = {
866
- data:
867
- | GetApplicationDataApplications1$Outbound
868
- | Array<GetApplicationDataApplications2$Outbound>
869
- | null;
870
- links?: components.Links$Outbound | undefined;
871
- meta?: { [k: string]: any } | undefined;
872
- };
873
-
874
- /** @internal */
875
- export const GetApplicationCustomers$outboundSchema: z.ZodType<
876
- GetApplicationCustomers$Outbound,
877
- z.ZodTypeDef,
878
- GetApplicationCustomers
879
- > = z.object({
880
- data: z.nullable(
881
- z.union([
882
- z.lazy(() => GetApplicationDataApplications1$outboundSchema),
883
- z.array(z.lazy(() => GetApplicationDataApplications2$outboundSchema)),
884
- ]),
885
- ),
886
- links: components.Links$outboundSchema.optional(),
887
- meta: z.record(z.any()).optional(),
888
- });
889
-
890
- /**
891
- * @internal
892
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
893
- */
894
- export namespace GetApplicationCustomers$ {
895
- /** @deprecated use `GetApplicationCustomers$inboundSchema` instead. */
896
- export const inboundSchema = GetApplicationCustomers$inboundSchema;
897
- /** @deprecated use `GetApplicationCustomers$outboundSchema` instead. */
898
- export const outboundSchema = GetApplicationCustomers$outboundSchema;
899
- /** @deprecated use `GetApplicationCustomers$Outbound` instead. */
900
- export type Outbound = GetApplicationCustomers$Outbound;
901
- }
902
-
903
- export function getApplicationCustomersToJSON(
904
- getApplicationCustomers: GetApplicationCustomers,
905
- ): string {
906
- return JSON.stringify(
907
- GetApplicationCustomers$outboundSchema.parse(getApplicationCustomers),
908
- );
909
- }
910
-
911
- export function getApplicationCustomersFromJSON(
912
- jsonString: string,
913
- ): SafeParseResult<GetApplicationCustomers, SDKValidationError> {
914
- return safeParse(
915
- jsonString,
916
- (x) => GetApplicationCustomers$inboundSchema.parse(JSON.parse(x)),
917
- `Failed to parse 'GetApplicationCustomers' from JSON`,
918
- );
919
- }
920
-
921
- /** @internal */
922
- export const GetApplicationDataApplicationsResponse200ApplicationJSONResponseBodyType$inboundSchema:
923
- z.ZodNativeEnum<
924
- typeof GetApplicationDataApplicationsResponse200ApplicationJSONResponseBodyType
925
- > = z.nativeEnum(
926
- GetApplicationDataApplicationsResponse200ApplicationJSONResponseBodyType,
927
- );
928
-
929
- /** @internal */
930
- export const GetApplicationDataApplicationsResponse200ApplicationJSONResponseBodyType$outboundSchema:
931
- z.ZodNativeEnum<
932
- typeof GetApplicationDataApplicationsResponse200ApplicationJSONResponseBodyType
933
- > =
934
- GetApplicationDataApplicationsResponse200ApplicationJSONResponseBodyType$inboundSchema;
935
-
936
- /**
937
- * @internal
938
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
939
- */
940
- export namespace GetApplicationDataApplicationsResponse200ApplicationJSONResponseBodyType$ {
941
- /** @deprecated use `GetApplicationDataApplicationsResponse200ApplicationJSONResponseBodyType$inboundSchema` instead. */
942
- export const inboundSchema =
943
- GetApplicationDataApplicationsResponse200ApplicationJSONResponseBodyType$inboundSchema;
944
- /** @deprecated use `GetApplicationDataApplicationsResponse200ApplicationJSONResponseBodyType$outboundSchema` instead. */
945
- export const outboundSchema =
946
- GetApplicationDataApplicationsResponse200ApplicationJSONResponseBodyType$outboundSchema;
947
- }
948
-
949
- /** @internal */
950
- export const GetApplicationDataApplicationsResponse2$inboundSchema: z.ZodType<
951
- GetApplicationDataApplicationsResponse2,
952
- z.ZodTypeDef,
953
- unknown
954
- > = z.object({
955
- type:
956
- GetApplicationDataApplicationsResponse200ApplicationJSONResponseBodyType$inboundSchema,
957
- id: z.string(),
958
- });
959
-
960
- /** @internal */
961
- export type GetApplicationDataApplicationsResponse2$Outbound = {
962
- type: string;
963
- id: string;
964
- };
965
-
966
- /** @internal */
967
- export const GetApplicationDataApplicationsResponse2$outboundSchema: z.ZodType<
968
- GetApplicationDataApplicationsResponse2$Outbound,
969
- z.ZodTypeDef,
970
- GetApplicationDataApplicationsResponse2
971
- > = z.object({
972
- type:
973
- GetApplicationDataApplicationsResponse200ApplicationJSONResponseBodyType$outboundSchema,
974
- id: z.string(),
975
- });
976
-
977
- /**
978
- * @internal
979
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
980
- */
981
- export namespace GetApplicationDataApplicationsResponse2$ {
982
- /** @deprecated use `GetApplicationDataApplicationsResponse2$inboundSchema` instead. */
983
- export const inboundSchema =
984
- GetApplicationDataApplicationsResponse2$inboundSchema;
985
- /** @deprecated use `GetApplicationDataApplicationsResponse2$outboundSchema` instead. */
986
- export const outboundSchema =
987
- GetApplicationDataApplicationsResponse2$outboundSchema;
988
- /** @deprecated use `GetApplicationDataApplicationsResponse2$Outbound` instead. */
989
- export type Outbound = GetApplicationDataApplicationsResponse2$Outbound;
990
- }
991
-
992
- export function getApplicationDataApplicationsResponse2ToJSON(
993
- getApplicationDataApplicationsResponse2:
994
- GetApplicationDataApplicationsResponse2,
995
- ): string {
996
- return JSON.stringify(
997
- GetApplicationDataApplicationsResponse2$outboundSchema.parse(
998
- getApplicationDataApplicationsResponse2,
999
- ),
1000
- );
1001
- }
1002
-
1003
- export function getApplicationDataApplicationsResponse2FromJSON(
1004
- jsonString: string,
1005
- ): SafeParseResult<
1006
- GetApplicationDataApplicationsResponse2,
1007
- SDKValidationError
1008
- > {
1009
- return safeParse(
1010
- jsonString,
1011
- (x) =>
1012
- GetApplicationDataApplicationsResponse2$inboundSchema.parse(
1013
- JSON.parse(x),
1014
- ),
1015
- `Failed to parse 'GetApplicationDataApplicationsResponse2' from JSON`,
1016
- );
1017
- }
1018
-
1019
- /** @internal */
1020
- export const GetApplicationDataApplicationsResponse200ApplicationJSONType$inboundSchema:
1021
- z.ZodNativeEnum<
1022
- typeof GetApplicationDataApplicationsResponse200ApplicationJSONType
1023
- > = z.nativeEnum(
1024
- GetApplicationDataApplicationsResponse200ApplicationJSONType,
1025
- );
1026
-
1027
- /** @internal */
1028
- export const GetApplicationDataApplicationsResponse200ApplicationJSONType$outboundSchema:
1029
- z.ZodNativeEnum<
1030
- typeof GetApplicationDataApplicationsResponse200ApplicationJSONType
1031
- > =
1032
- GetApplicationDataApplicationsResponse200ApplicationJSONType$inboundSchema;
1033
-
1034
- /**
1035
- * @internal
1036
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1037
- */
1038
- export namespace GetApplicationDataApplicationsResponse200ApplicationJSONType$ {
1039
- /** @deprecated use `GetApplicationDataApplicationsResponse200ApplicationJSONType$inboundSchema` instead. */
1040
- export const inboundSchema =
1041
- GetApplicationDataApplicationsResponse200ApplicationJSONType$inboundSchema;
1042
- /** @deprecated use `GetApplicationDataApplicationsResponse200ApplicationJSONType$outboundSchema` instead. */
1043
- export const outboundSchema =
1044
- GetApplicationDataApplicationsResponse200ApplicationJSONType$outboundSchema;
1045
- }
1046
-
1047
- /** @internal */
1048
- export const GetApplicationDataApplicationsResponse1$inboundSchema: z.ZodType<
1049
- GetApplicationDataApplicationsResponse1,
1050
- z.ZodTypeDef,
1051
- unknown
1052
- > = z.object({
1053
- type:
1054
- GetApplicationDataApplicationsResponse200ApplicationJSONType$inboundSchema,
1055
- id: z.string(),
1056
- });
1057
-
1058
- /** @internal */
1059
- export type GetApplicationDataApplicationsResponse1$Outbound = {
1060
- type: string;
1061
- id: string;
1062
- };
1063
-
1064
- /** @internal */
1065
- export const GetApplicationDataApplicationsResponse1$outboundSchema: z.ZodType<
1066
- GetApplicationDataApplicationsResponse1$Outbound,
1067
- z.ZodTypeDef,
1068
- GetApplicationDataApplicationsResponse1
1069
- > = z.object({
1070
- type:
1071
- GetApplicationDataApplicationsResponse200ApplicationJSONType$outboundSchema,
1072
- id: z.string(),
1073
- });
1074
-
1075
- /**
1076
- * @internal
1077
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1078
- */
1079
- export namespace GetApplicationDataApplicationsResponse1$ {
1080
- /** @deprecated use `GetApplicationDataApplicationsResponse1$inboundSchema` instead. */
1081
- export const inboundSchema =
1082
- GetApplicationDataApplicationsResponse1$inboundSchema;
1083
- /** @deprecated use `GetApplicationDataApplicationsResponse1$outboundSchema` instead. */
1084
- export const outboundSchema =
1085
- GetApplicationDataApplicationsResponse1$outboundSchema;
1086
- /** @deprecated use `GetApplicationDataApplicationsResponse1$Outbound` instead. */
1087
- export type Outbound = GetApplicationDataApplicationsResponse1$Outbound;
1088
- }
1089
-
1090
- export function getApplicationDataApplicationsResponse1ToJSON(
1091
- getApplicationDataApplicationsResponse1:
1092
- GetApplicationDataApplicationsResponse1,
1093
- ): string {
1094
- return JSON.stringify(
1095
- GetApplicationDataApplicationsResponse1$outboundSchema.parse(
1096
- getApplicationDataApplicationsResponse1,
1097
- ),
1098
- );
1099
- }
1100
-
1101
- export function getApplicationDataApplicationsResponse1FromJSON(
1102
- jsonString: string,
1103
- ): SafeParseResult<
1104
- GetApplicationDataApplicationsResponse1,
1105
- SDKValidationError
1106
- > {
1107
- return safeParse(
1108
- jsonString,
1109
- (x) =>
1110
- GetApplicationDataApplicationsResponse1$inboundSchema.parse(
1111
- JSON.parse(x),
1112
- ),
1113
- `Failed to parse 'GetApplicationDataApplicationsResponse1' from JSON`,
1114
- );
1115
- }
1116
-
1117
- /** @internal */
1118
- export const GetApplicationApplicationsResponseData$inboundSchema: z.ZodType<
1119
- GetApplicationApplicationsResponseData,
1120
- z.ZodTypeDef,
1121
- unknown
1122
- > = z.union([
1123
- z.lazy(() => GetApplicationDataApplicationsResponse1$inboundSchema),
1124
- z.array(z.lazy(() => GetApplicationDataApplicationsResponse2$inboundSchema)),
1125
- ]);
1126
-
1127
- /** @internal */
1128
- export type GetApplicationApplicationsResponseData$Outbound =
1129
- | GetApplicationDataApplicationsResponse1$Outbound
1130
- | Array<GetApplicationDataApplicationsResponse2$Outbound>;
1131
-
1132
- /** @internal */
1133
- export const GetApplicationApplicationsResponseData$outboundSchema: z.ZodType<
1134
- GetApplicationApplicationsResponseData$Outbound,
1135
- z.ZodTypeDef,
1136
- GetApplicationApplicationsResponseData
1137
- > = z.union([
1138
- z.lazy(() => GetApplicationDataApplicationsResponse1$outboundSchema),
1139
- z.array(z.lazy(() => GetApplicationDataApplicationsResponse2$outboundSchema)),
1140
- ]);
1141
-
1142
- /**
1143
- * @internal
1144
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1145
- */
1146
- export namespace GetApplicationApplicationsResponseData$ {
1147
- /** @deprecated use `GetApplicationApplicationsResponseData$inboundSchema` instead. */
1148
- export const inboundSchema =
1149
- GetApplicationApplicationsResponseData$inboundSchema;
1150
- /** @deprecated use `GetApplicationApplicationsResponseData$outboundSchema` instead. */
1151
- export const outboundSchema =
1152
- GetApplicationApplicationsResponseData$outboundSchema;
1153
- /** @deprecated use `GetApplicationApplicationsResponseData$Outbound` instead. */
1154
- export type Outbound = GetApplicationApplicationsResponseData$Outbound;
1155
- }
1156
-
1157
- export function getApplicationApplicationsResponseDataToJSON(
1158
- getApplicationApplicationsResponseData:
1159
- GetApplicationApplicationsResponseData,
1160
- ): string {
1161
- return JSON.stringify(
1162
- GetApplicationApplicationsResponseData$outboundSchema.parse(
1163
- getApplicationApplicationsResponseData,
1164
- ),
1165
- );
1166
- }
1167
-
1168
- export function getApplicationApplicationsResponseDataFromJSON(
1169
- jsonString: string,
1170
- ): SafeParseResult<GetApplicationApplicationsResponseData, SDKValidationError> {
1171
- return safeParse(
1172
- jsonString,
1173
- (x) =>
1174
- GetApplicationApplicationsResponseData$inboundSchema.parse(JSON.parse(x)),
1175
- `Failed to parse 'GetApplicationApplicationsResponseData' from JSON`,
1176
- );
1177
- }
1178
-
1179
- /** @internal */
1180
- export const GetApplicationAsset$inboundSchema: z.ZodType<
1181
- GetApplicationAsset,
1182
- z.ZodTypeDef,
1183
- unknown
1184
- > = z.object({
1185
- data: z.nullable(
1186
- z.union([
1187
- z.lazy(() => GetApplicationDataApplicationsResponse1$inboundSchema),
1188
- z.array(z.lazy(() =>
1189
- GetApplicationDataApplicationsResponse2$inboundSchema
1190
- )),
1191
- ]),
1192
- ),
1193
- links: components.Links$inboundSchema.optional(),
1194
- meta: z.record(z.any()).optional(),
1195
- });
1196
-
1197
- /** @internal */
1198
- export type GetApplicationAsset$Outbound = {
1199
- data:
1200
- | GetApplicationDataApplicationsResponse1$Outbound
1201
- | Array<GetApplicationDataApplicationsResponse2$Outbound>
1202
- | null;
1203
- links?: components.Links$Outbound | undefined;
1204
- meta?: { [k: string]: any } | undefined;
1205
- };
1206
-
1207
- /** @internal */
1208
- export const GetApplicationAsset$outboundSchema: z.ZodType<
1209
- GetApplicationAsset$Outbound,
1210
- z.ZodTypeDef,
1211
- GetApplicationAsset
1212
- > = z.object({
1213
- data: z.nullable(
1214
- z.union([
1215
- z.lazy(() => GetApplicationDataApplicationsResponse1$outboundSchema),
1216
- z.array(z.lazy(() =>
1217
- GetApplicationDataApplicationsResponse2$outboundSchema
1218
- )),
1219
- ]),
1220
- ),
1221
- links: components.Links$outboundSchema.optional(),
1222
- meta: z.record(z.any()).optional(),
1223
- });
1224
-
1225
- /**
1226
- * @internal
1227
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1228
- */
1229
- export namespace GetApplicationAsset$ {
1230
- /** @deprecated use `GetApplicationAsset$inboundSchema` instead. */
1231
- export const inboundSchema = GetApplicationAsset$inboundSchema;
1232
- /** @deprecated use `GetApplicationAsset$outboundSchema` instead. */
1233
- export const outboundSchema = GetApplicationAsset$outboundSchema;
1234
- /** @deprecated use `GetApplicationAsset$Outbound` instead. */
1235
- export type Outbound = GetApplicationAsset$Outbound;
1236
- }
1237
-
1238
- export function getApplicationAssetToJSON(
1239
- getApplicationAsset: GetApplicationAsset,
1240
- ): string {
1241
- return JSON.stringify(
1242
- GetApplicationAsset$outboundSchema.parse(getApplicationAsset),
1243
- );
1244
- }
1245
-
1246
- export function getApplicationAssetFromJSON(
1247
- jsonString: string,
1248
- ): SafeParseResult<GetApplicationAsset, SDKValidationError> {
1249
- return safeParse(
1250
- jsonString,
1251
- (x) => GetApplicationAsset$inboundSchema.parse(JSON.parse(x)),
1252
- `Failed to parse 'GetApplicationAsset' from JSON`,
1253
- );
1254
- }
1255
-
1256
- /** @internal */
1257
- export const GetApplicationRelationships$inboundSchema: z.ZodType<
1258
- GetApplicationRelationships,
1259
- z.ZodTypeDef,
1260
- unknown
1261
- > = z.object({
1262
- loanDetails: z.lazy(() => GetApplicationLoanDetails$inboundSchema).optional(),
1263
- customers: z.lazy(() => GetApplicationCustomers$inboundSchema).optional(),
1264
- asset: z.lazy(() => GetApplicationAsset$inboundSchema).optional(),
1265
- });
1266
-
1267
- /** @internal */
1268
- export type GetApplicationRelationships$Outbound = {
1269
- loanDetails?: GetApplicationLoanDetails$Outbound | undefined;
1270
- customers?: GetApplicationCustomers$Outbound | undefined;
1271
- asset?: GetApplicationAsset$Outbound | undefined;
1272
- };
1273
-
1274
- /** @internal */
1275
- export const GetApplicationRelationships$outboundSchema: z.ZodType<
1276
- GetApplicationRelationships$Outbound,
1277
- z.ZodTypeDef,
1278
- GetApplicationRelationships
1279
- > = z.object({
1280
- loanDetails: z.lazy(() => GetApplicationLoanDetails$outboundSchema)
1281
- .optional(),
1282
- customers: z.lazy(() => GetApplicationCustomers$outboundSchema).optional(),
1283
- asset: z.lazy(() => GetApplicationAsset$outboundSchema).optional(),
1284
- });
1285
-
1286
- /**
1287
- * @internal
1288
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1289
- */
1290
- export namespace GetApplicationRelationships$ {
1291
- /** @deprecated use `GetApplicationRelationships$inboundSchema` instead. */
1292
- export const inboundSchema = GetApplicationRelationships$inboundSchema;
1293
- /** @deprecated use `GetApplicationRelationships$outboundSchema` instead. */
1294
- export const outboundSchema = GetApplicationRelationships$outboundSchema;
1295
- /** @deprecated use `GetApplicationRelationships$Outbound` instead. */
1296
- export type Outbound = GetApplicationRelationships$Outbound;
1297
- }
1298
-
1299
- export function getApplicationRelationshipsToJSON(
1300
- getApplicationRelationships: GetApplicationRelationships,
1301
- ): string {
1302
- return JSON.stringify(
1303
- GetApplicationRelationships$outboundSchema.parse(
1304
- getApplicationRelationships,
1305
- ),
1306
- );
1307
- }
1308
-
1309
- export function getApplicationRelationshipsFromJSON(
1310
- jsonString: string,
1311
- ): SafeParseResult<GetApplicationRelationships, SDKValidationError> {
1312
- return safeParse(
1313
- jsonString,
1314
- (x) => GetApplicationRelationships$inboundSchema.parse(JSON.parse(x)),
1315
- `Failed to parse 'GetApplicationRelationships' from JSON`,
1316
- );
1317
- }
1318
-
1319
- /** @internal */
1320
- export const GetApplicationData$inboundSchema: z.ZodType<
1321
- GetApplicationData,
1322
- z.ZodTypeDef,
1323
- unknown
1324
- > = z.object({
1325
- type: GetApplicationType$inboundSchema,
1326
- id: z.string(),
1327
- attributes: components.ApplicationAttributes$inboundSchema.optional(),
1328
- relationships: z.lazy(() => GetApplicationRelationships$inboundSchema)
1329
- .optional(),
1330
- links: components.Links$inboundSchema.optional(),
1331
- meta: z.record(z.any()).optional(),
1332
- });
1333
-
1334
- /** @internal */
1335
- export type GetApplicationData$Outbound = {
1336
- type: string;
1337
- id: string;
1338
- attributes?: components.ApplicationAttributes$Outbound | undefined;
1339
- relationships?: GetApplicationRelationships$Outbound | undefined;
1340
- links?: components.Links$Outbound | undefined;
1341
- meta?: { [k: string]: any } | undefined;
1342
- };
1343
-
1344
- /** @internal */
1345
- export const GetApplicationData$outboundSchema: z.ZodType<
1346
- GetApplicationData$Outbound,
1347
- z.ZodTypeDef,
1348
- GetApplicationData
1349
- > = z.object({
1350
- type: GetApplicationType$outboundSchema,
1351
- id: z.string(),
1352
- attributes: components.ApplicationAttributes$outboundSchema.optional(),
1353
- relationships: z.lazy(() => GetApplicationRelationships$outboundSchema)
1354
- .optional(),
1355
- links: components.Links$outboundSchema.optional(),
1356
- meta: z.record(z.any()).optional(),
1357
- });
1358
-
1359
- /**
1360
- * @internal
1361
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1362
- */
1363
- export namespace GetApplicationData$ {
1364
- /** @deprecated use `GetApplicationData$inboundSchema` instead. */
1365
- export const inboundSchema = GetApplicationData$inboundSchema;
1366
- /** @deprecated use `GetApplicationData$outboundSchema` instead. */
1367
- export const outboundSchema = GetApplicationData$outboundSchema;
1368
- /** @deprecated use `GetApplicationData$Outbound` instead. */
1369
- export type Outbound = GetApplicationData$Outbound;
1370
- }
1371
-
1372
- export function getApplicationDataToJSON(
1373
- getApplicationData: GetApplicationData,
1374
- ): string {
1375
- return JSON.stringify(
1376
- GetApplicationData$outboundSchema.parse(getApplicationData),
1377
- );
1378
- }
1379
-
1380
- export function getApplicationDataFromJSON(
1381
- jsonString: string,
1382
- ): SafeParseResult<GetApplicationData, SDKValidationError> {
1383
- return safeParse(
1384
- jsonString,
1385
- (x) => GetApplicationData$inboundSchema.parse(JSON.parse(x)),
1386
- `Failed to parse 'GetApplicationData' from JSON`,
1387
- );
1388
- }
1389
-
1390
- /** @internal */
1391
- export const GetApplicationAttributes$inboundSchema: z.ZodType<
1392
- GetApplicationAttributes,
1393
- z.ZodTypeDef,
1394
- unknown
1395
- > = z.object({});
1396
-
1397
- /** @internal */
1398
- export type GetApplicationAttributes$Outbound = {};
1399
-
1400
- /** @internal */
1401
- export const GetApplicationAttributes$outboundSchema: z.ZodType<
1402
- GetApplicationAttributes$Outbound,
1403
- z.ZodTypeDef,
1404
- GetApplicationAttributes
1405
- > = z.object({});
1406
-
1407
- /**
1408
- * @internal
1409
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1410
- */
1411
- export namespace GetApplicationAttributes$ {
1412
- /** @deprecated use `GetApplicationAttributes$inboundSchema` instead. */
1413
- export const inboundSchema = GetApplicationAttributes$inboundSchema;
1414
- /** @deprecated use `GetApplicationAttributes$outboundSchema` instead. */
1415
- export const outboundSchema = GetApplicationAttributes$outboundSchema;
1416
- /** @deprecated use `GetApplicationAttributes$Outbound` instead. */
1417
- export type Outbound = GetApplicationAttributes$Outbound;
1418
- }
1419
-
1420
- export function getApplicationAttributesToJSON(
1421
- getApplicationAttributes: GetApplicationAttributes,
1422
- ): string {
1423
- return JSON.stringify(
1424
- GetApplicationAttributes$outboundSchema.parse(getApplicationAttributes),
1425
- );
1426
- }
1427
-
1428
- export function getApplicationAttributesFromJSON(
1429
- jsonString: string,
1430
- ): SafeParseResult<GetApplicationAttributes, SDKValidationError> {
1431
- return safeParse(
1432
- jsonString,
1433
- (x) => GetApplicationAttributes$inboundSchema.parse(JSON.parse(x)),
1434
- `Failed to parse 'GetApplicationAttributes' from JSON`,
1435
- );
1436
- }
1437
-
1438
- /** @internal */
1439
- export const GetApplicationData2$inboundSchema: z.ZodType<
1440
- GetApplicationData2,
1441
- z.ZodTypeDef,
1442
- unknown
1443
- > = z.object({
1444
- type: z.string(),
1445
- id: z.string(),
1446
- });
1447
-
1448
- /** @internal */
1449
- export type GetApplicationData2$Outbound = {
1450
- type: string;
1451
- id: string;
1452
- };
1453
-
1454
- /** @internal */
1455
- export const GetApplicationData2$outboundSchema: z.ZodType<
1456
- GetApplicationData2$Outbound,
1457
- z.ZodTypeDef,
1458
- GetApplicationData2
1459
- > = z.object({
1460
- type: z.string(),
1461
- id: z.string(),
1462
- });
1463
-
1464
- /**
1465
- * @internal
1466
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1467
- */
1468
- export namespace GetApplicationData2$ {
1469
- /** @deprecated use `GetApplicationData2$inboundSchema` instead. */
1470
- export const inboundSchema = GetApplicationData2$inboundSchema;
1471
- /** @deprecated use `GetApplicationData2$outboundSchema` instead. */
1472
- export const outboundSchema = GetApplicationData2$outboundSchema;
1473
- /** @deprecated use `GetApplicationData2$Outbound` instead. */
1474
- export type Outbound = GetApplicationData2$Outbound;
1475
- }
1476
-
1477
- export function getApplicationData2ToJSON(
1478
- getApplicationData2: GetApplicationData2,
1479
- ): string {
1480
- return JSON.stringify(
1481
- GetApplicationData2$outboundSchema.parse(getApplicationData2),
1482
- );
1483
- }
1484
-
1485
- export function getApplicationData2FromJSON(
1486
- jsonString: string,
1487
- ): SafeParseResult<GetApplicationData2, SDKValidationError> {
1488
- return safeParse(
1489
- jsonString,
1490
- (x) => GetApplicationData2$inboundSchema.parse(JSON.parse(x)),
1491
- `Failed to parse 'GetApplicationData2' from JSON`,
1492
- );
1493
- }
1494
-
1495
- /** @internal */
1496
- export const GetApplicationData1$inboundSchema: z.ZodType<
1497
- GetApplicationData1,
1498
- z.ZodTypeDef,
1499
- unknown
1500
- > = z.object({
1501
- type: z.string(),
1502
- id: z.string(),
1503
- });
1504
-
1505
- /** @internal */
1506
- export type GetApplicationData1$Outbound = {
1507
- type: string;
1508
- id: string;
1509
- };
1510
-
1511
- /** @internal */
1512
- export const GetApplicationData1$outboundSchema: z.ZodType<
1513
- GetApplicationData1$Outbound,
1514
- z.ZodTypeDef,
1515
- GetApplicationData1
1516
- > = z.object({
1517
- type: z.string(),
1518
- id: z.string(),
1519
- });
1520
-
1521
- /**
1522
- * @internal
1523
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1524
- */
1525
- export namespace GetApplicationData1$ {
1526
- /** @deprecated use `GetApplicationData1$inboundSchema` instead. */
1527
- export const inboundSchema = GetApplicationData1$inboundSchema;
1528
- /** @deprecated use `GetApplicationData1$outboundSchema` instead. */
1529
- export const outboundSchema = GetApplicationData1$outboundSchema;
1530
- /** @deprecated use `GetApplicationData1$Outbound` instead. */
1531
- export type Outbound = GetApplicationData1$Outbound;
1532
- }
1533
-
1534
- export function getApplicationData1ToJSON(
1535
- getApplicationData1: GetApplicationData1,
1536
- ): string {
1537
- return JSON.stringify(
1538
- GetApplicationData1$outboundSchema.parse(getApplicationData1),
1539
- );
1540
- }
1541
-
1542
- export function getApplicationData1FromJSON(
1543
- jsonString: string,
1544
- ): SafeParseResult<GetApplicationData1, SDKValidationError> {
1545
- return safeParse(
1546
- jsonString,
1547
- (x) => GetApplicationData1$inboundSchema.parse(JSON.parse(x)),
1548
- `Failed to parse 'GetApplicationData1' from JSON`,
1549
- );
1550
- }
1551
-
1552
- /** @internal */
1553
- export const GetApplicationApplicationsData$inboundSchema: z.ZodType<
1554
- GetApplicationApplicationsData,
1555
- z.ZodTypeDef,
1556
- unknown
1557
- > = z.union([
1558
- z.lazy(() => GetApplicationData1$inboundSchema),
1559
- z.array(z.lazy(() => GetApplicationData2$inboundSchema)),
1560
- ]);
1561
-
1562
- /** @internal */
1563
- export type GetApplicationApplicationsData$Outbound =
1564
- | GetApplicationData1$Outbound
1565
- | Array<GetApplicationData2$Outbound>;
1566
-
1567
- /** @internal */
1568
- export const GetApplicationApplicationsData$outboundSchema: z.ZodType<
1569
- GetApplicationApplicationsData$Outbound,
1570
- z.ZodTypeDef,
1571
- GetApplicationApplicationsData
1572
- > = z.union([
1573
- z.lazy(() => GetApplicationData1$outboundSchema),
1574
- z.array(z.lazy(() => GetApplicationData2$outboundSchema)),
1575
- ]);
1576
-
1577
- /**
1578
- * @internal
1579
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1580
- */
1581
- export namespace GetApplicationApplicationsData$ {
1582
- /** @deprecated use `GetApplicationApplicationsData$inboundSchema` instead. */
1583
- export const inboundSchema = GetApplicationApplicationsData$inboundSchema;
1584
- /** @deprecated use `GetApplicationApplicationsData$outboundSchema` instead. */
1585
- export const outboundSchema = GetApplicationApplicationsData$outboundSchema;
1586
- /** @deprecated use `GetApplicationApplicationsData$Outbound` instead. */
1587
- export type Outbound = GetApplicationApplicationsData$Outbound;
1588
- }
1589
-
1590
- export function getApplicationApplicationsDataToJSON(
1591
- getApplicationApplicationsData: GetApplicationApplicationsData,
1592
- ): string {
1593
- return JSON.stringify(
1594
- GetApplicationApplicationsData$outboundSchema.parse(
1595
- getApplicationApplicationsData,
1596
- ),
1597
- );
1598
- }
1599
-
1600
- export function getApplicationApplicationsDataFromJSON(
1601
- jsonString: string,
1602
- ): SafeParseResult<GetApplicationApplicationsData, SDKValidationError> {
1603
- return safeParse(
1604
- jsonString,
1605
- (x) => GetApplicationApplicationsData$inboundSchema.parse(JSON.parse(x)),
1606
- `Failed to parse 'GetApplicationApplicationsData' from JSON`,
1607
- );
1608
- }
1609
-
1610
- /** @internal */
1611
- export const GetApplicationApplicationsRelationships$inboundSchema: z.ZodType<
1612
- GetApplicationApplicationsRelationships,
1613
- z.ZodTypeDef,
1614
- unknown
1615
- > = z.object({
1616
- data: z.nullable(
1617
- z.union([
1618
- z.lazy(() => GetApplicationData1$inboundSchema),
1619
- z.array(z.lazy(() => GetApplicationData2$inboundSchema)),
1620
- ]),
1621
- ),
1622
- links: components.Links$inboundSchema.optional(),
1623
- meta: z.record(z.any()).optional(),
1624
- });
1625
-
1626
- /** @internal */
1627
- export type GetApplicationApplicationsRelationships$Outbound = {
1628
- data:
1629
- | GetApplicationData1$Outbound
1630
- | Array<GetApplicationData2$Outbound>
1631
- | null;
1632
- links?: components.Links$Outbound | undefined;
1633
- meta?: { [k: string]: any } | undefined;
1634
- };
1635
-
1636
- /** @internal */
1637
- export const GetApplicationApplicationsRelationships$outboundSchema: z.ZodType<
1638
- GetApplicationApplicationsRelationships$Outbound,
1639
- z.ZodTypeDef,
1640
- GetApplicationApplicationsRelationships
1641
- > = z.object({
1642
- data: z.nullable(
1643
- z.union([
1644
- z.lazy(() => GetApplicationData1$outboundSchema),
1645
- z.array(z.lazy(() => GetApplicationData2$outboundSchema)),
1646
- ]),
1647
- ),
1648
- links: components.Links$outboundSchema.optional(),
1649
- meta: z.record(z.any()).optional(),
1650
- });
1651
-
1652
- /**
1653
- * @internal
1654
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1655
- */
1656
- export namespace GetApplicationApplicationsRelationships$ {
1657
- /** @deprecated use `GetApplicationApplicationsRelationships$inboundSchema` instead. */
1658
- export const inboundSchema =
1659
- GetApplicationApplicationsRelationships$inboundSchema;
1660
- /** @deprecated use `GetApplicationApplicationsRelationships$outboundSchema` instead. */
1661
- export const outboundSchema =
1662
- GetApplicationApplicationsRelationships$outboundSchema;
1663
- /** @deprecated use `GetApplicationApplicationsRelationships$Outbound` instead. */
1664
- export type Outbound = GetApplicationApplicationsRelationships$Outbound;
1665
- }
1666
-
1667
- export function getApplicationApplicationsRelationshipsToJSON(
1668
- getApplicationApplicationsRelationships:
1669
- GetApplicationApplicationsRelationships,
1670
- ): string {
1671
- return JSON.stringify(
1672
- GetApplicationApplicationsRelationships$outboundSchema.parse(
1673
- getApplicationApplicationsRelationships,
1674
- ),
1675
- );
1676
- }
1677
-
1678
- export function getApplicationApplicationsRelationshipsFromJSON(
1679
- jsonString: string,
1680
- ): SafeParseResult<
1681
- GetApplicationApplicationsRelationships,
1682
- SDKValidationError
1683
- > {
1684
- return safeParse(
1685
- jsonString,
1686
- (x) =>
1687
- GetApplicationApplicationsRelationships$inboundSchema.parse(
1688
- JSON.parse(x),
1689
- ),
1690
- `Failed to parse 'GetApplicationApplicationsRelationships' from JSON`,
1691
- );
1692
- }
1693
-
1694
- /** @internal */
1695
- export const GetApplicationIncluded$inboundSchema: z.ZodType<
1696
- GetApplicationIncluded,
1697
- z.ZodTypeDef,
1698
- unknown
1699
- > = z.object({
1700
- type: z.string(),
1701
- id: z.string(),
1702
- attributes: z.lazy(() => GetApplicationAttributes$inboundSchema).optional(),
1703
- relationships: z.record(
1704
- z.lazy(() => GetApplicationApplicationsRelationships$inboundSchema),
1705
- ).optional(),
1706
- links: components.Links$inboundSchema.optional(),
1707
- meta: z.record(z.any()).optional(),
1708
- });
1709
-
1710
- /** @internal */
1711
- export type GetApplicationIncluded$Outbound = {
1712
- type: string;
1713
- id: string;
1714
- attributes?: GetApplicationAttributes$Outbound | undefined;
1715
- relationships?: {
1716
- [k: string]: GetApplicationApplicationsRelationships$Outbound;
1717
- } | undefined;
1718
- links?: components.Links$Outbound | undefined;
1719
- meta?: { [k: string]: any } | undefined;
1720
- };
1721
-
1722
- /** @internal */
1723
- export const GetApplicationIncluded$outboundSchema: z.ZodType<
1724
- GetApplicationIncluded$Outbound,
1725
- z.ZodTypeDef,
1726
- GetApplicationIncluded
1727
- > = z.object({
1728
- type: z.string(),
1729
- id: z.string(),
1730
- attributes: z.lazy(() => GetApplicationAttributes$outboundSchema).optional(),
1731
- relationships: z.record(
1732
- z.lazy(() => GetApplicationApplicationsRelationships$outboundSchema),
1733
- ).optional(),
1734
- links: components.Links$outboundSchema.optional(),
1735
- meta: z.record(z.any()).optional(),
1736
- });
1737
-
1738
- /**
1739
- * @internal
1740
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1741
- */
1742
- export namespace GetApplicationIncluded$ {
1743
- /** @deprecated use `GetApplicationIncluded$inboundSchema` instead. */
1744
- export const inboundSchema = GetApplicationIncluded$inboundSchema;
1745
- /** @deprecated use `GetApplicationIncluded$outboundSchema` instead. */
1746
- export const outboundSchema = GetApplicationIncluded$outboundSchema;
1747
- /** @deprecated use `GetApplicationIncluded$Outbound` instead. */
1748
- export type Outbound = GetApplicationIncluded$Outbound;
1749
- }
1750
-
1751
- export function getApplicationIncludedToJSON(
1752
- getApplicationIncluded: GetApplicationIncluded,
1753
- ): string {
1754
- return JSON.stringify(
1755
- GetApplicationIncluded$outboundSchema.parse(getApplicationIncluded),
1756
- );
1757
- }
1758
-
1759
- export function getApplicationIncludedFromJSON(
1760
- jsonString: string,
1761
- ): SafeParseResult<GetApplicationIncluded, SDKValidationError> {
1762
- return safeParse(
1763
- jsonString,
1764
- (x) => GetApplicationIncluded$inboundSchema.parse(JSON.parse(x)),
1765
- `Failed to parse 'GetApplicationIncluded' from JSON`,
1766
- );
1767
- }
1768
-
1769
- /** @internal */
1770
- export const GetApplicationResponseBody$inboundSchema: z.ZodType<
1771
- GetApplicationResponseBody,
1772
- z.ZodTypeDef,
1773
- unknown
1774
- > = z.object({
1775
- data: z.lazy(() => GetApplicationData$inboundSchema),
1776
- included: z.array(z.lazy(() => GetApplicationIncluded$inboundSchema))
1777
- .optional(),
1778
- links: components.Links$inboundSchema.optional(),
1779
- });
1780
-
1781
- /** @internal */
1782
- export type GetApplicationResponseBody$Outbound = {
1783
- data: GetApplicationData$Outbound;
1784
- included?: Array<GetApplicationIncluded$Outbound> | undefined;
1785
- links?: components.Links$Outbound | undefined;
1786
- };
1787
-
1788
- /** @internal */
1789
- export const GetApplicationResponseBody$outboundSchema: z.ZodType<
1790
- GetApplicationResponseBody$Outbound,
1791
- z.ZodTypeDef,
1792
- GetApplicationResponseBody
1793
- > = z.object({
1794
- data: z.lazy(() => GetApplicationData$outboundSchema),
1795
- included: z.array(z.lazy(() => GetApplicationIncluded$outboundSchema))
1796
- .optional(),
1797
- links: components.Links$outboundSchema.optional(),
1798
- });
1799
-
1800
- /**
1801
- * @internal
1802
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1803
- */
1804
- export namespace GetApplicationResponseBody$ {
1805
- /** @deprecated use `GetApplicationResponseBody$inboundSchema` instead. */
1806
- export const inboundSchema = GetApplicationResponseBody$inboundSchema;
1807
- /** @deprecated use `GetApplicationResponseBody$outboundSchema` instead. */
1808
- export const outboundSchema = GetApplicationResponseBody$outboundSchema;
1809
- /** @deprecated use `GetApplicationResponseBody$Outbound` instead. */
1810
- export type Outbound = GetApplicationResponseBody$Outbound;
1811
- }
1812
-
1813
- export function getApplicationResponseBodyToJSON(
1814
- getApplicationResponseBody: GetApplicationResponseBody,
1815
- ): string {
1816
- return JSON.stringify(
1817
- GetApplicationResponseBody$outboundSchema.parse(getApplicationResponseBody),
1818
- );
1819
- }
1820
-
1821
- export function getApplicationResponseBodyFromJSON(
1822
- jsonString: string,
1823
- ): SafeParseResult<GetApplicationResponseBody, SDKValidationError> {
1824
- return safeParse(
1825
- jsonString,
1826
- (x) => GetApplicationResponseBody$inboundSchema.parse(JSON.parse(x)),
1827
- `Failed to parse 'GetApplicationResponseBody' from JSON`,
1828
- );
1829
- }