@financeable/aggregation 0.8.3 → 0.9.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 +153 -36
- package/README.md +475 -94
- package/docs/sdks/applications/README.md +9 -15
- package/docs/sdks/oauthtoken/README.md +5 -9
- package/docs/sdks/supportingdocuments/README.md +9 -16
- package/funcs/applicationsCreate.d.ts +3 -3
- package/funcs/applicationsCreate.d.ts.map +1 -1
- package/funcs/applicationsCreate.js +4 -6
- package/funcs/applicationsCreate.js.map +1 -1
- package/funcs/oauthTokenGet.d.ts +3 -2
- package/funcs/oauthTokenGet.d.ts.map +1 -1
- package/funcs/oauthTokenGet.js +4 -2
- package/funcs/oauthTokenGet.js.map +1 -1
- package/funcs/supportingDocumentsCreate.d.ts +3 -3
- package/funcs/supportingDocumentsCreate.d.ts.map +1 -1
- package/funcs/supportingDocumentsCreate.js +5 -8
- package/funcs/supportingDocumentsCreate.js.map +1 -1
- package/hooks/types.d.ts +2 -0
- package/hooks/types.d.ts.map +1 -1
- package/index.d.ts +2 -0
- package/index.d.ts.map +1 -1
- package/index.js +3 -1
- package/index.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +7 -3
- package/lib/config.d.ts.map +1 -1
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/lib/files.d.ts +5 -0
- package/lib/files.d.ts.map +1 -1
- package/lib/files.js +41 -0
- package/lib/files.js.map +1 -1
- package/lib/matchers.d.ts +3 -10
- package/lib/matchers.d.ts.map +1 -1
- package/lib/matchers.js +33 -31
- package/lib/matchers.js.map +1 -1
- package/lib/sdks.d.ts +1 -0
- package/lib/sdks.d.ts.map +1 -1
- package/lib/sdks.js +3 -3
- package/lib/sdks.js.map +1 -1
- package/lib/security.d.ts +2 -2
- package/lib/security.d.ts.map +1 -1
- package/models/components/addressattributes.d.ts +8 -8
- package/models/components/addressattributes.d.ts.map +1 -1
- package/models/components/addressattributes.js +14 -13
- package/models/components/addressattributes.js.map +1 -1
- package/models/components/badrequesterror.d.ts +24 -24
- package/models/components/badrequesterror.d.ts.map +1 -1
- package/models/components/badrequesterror.js +37 -38
- package/models/components/badrequesterror.js.map +1 -1
- package/models/components/commercialsecuredapplicationpayload.d.ts +8 -8
- package/models/components/commercialsecuredapplicationpayload.d.ts.map +1 -1
- package/models/components/commercialsecuredapplicationpayload.js +13 -14
- package/models/components/commercialsecuredapplicationpayload.js.map +1 -1
- package/models/components/commercialsecuredloancommercialapplicationrelationships.d.ts +90 -90
- package/models/components/commercialsecuredloancommercialapplicationrelationships.d.ts.map +1 -1
- package/models/components/commercialsecuredloancommercialapplicationrelationships.js +116 -118
- package/models/components/commercialsecuredloancommercialapplicationrelationships.js.map +1 -1
- package/models/components/customerattributes.d.ts +12 -1
- package/models/components/customerattributes.d.ts.map +1 -1
- package/models/components/customerattributes.js +5 -0
- package/models/components/customerattributes.js.map +1 -1
- package/models/components/forbiddenerror.d.ts +16 -16
- package/models/components/forbiddenerror.d.ts.map +1 -1
- package/models/components/forbiddenerror.js +25 -25
- package/models/components/forbiddenerror.js.map +1 -1
- package/models/components/loandetailsattributes.d.ts +8 -8
- package/models/components/loandetailsattributes.d.ts.map +1 -1
- package/models/components/loandetailsattributes.js +8 -8
- package/models/components/loandetailsattributes.js.map +1 -1
- package/models/components/supportingdocumentrelationships.d.ts +45 -45
- package/models/components/supportingdocumentrelationships.d.ts.map +1 -1
- package/models/components/supportingdocumentrelationships.js +54 -54
- package/models/components/supportingdocumentrelationships.js.map +1 -1
- package/models/components/supportingdocumentresource.d.ts +8 -8
- package/models/components/supportingdocumentresource.d.ts.map +1 -1
- package/models/components/supportingdocumentresource.js +13 -13
- package/models/components/supportingdocumentresource.js.map +1 -1
- package/models/errors/apierror.d.ts +8 -6
- package/models/errors/apierror.d.ts.map +1 -1
- package/models/errors/apierror.js +23 -10
- package/models/errors/apierror.js.map +1 -1
- package/models/errors/financeableerror.d.ts +19 -0
- package/models/errors/financeableerror.d.ts.map +1 -0
- package/models/errors/financeableerror.js +20 -0
- package/models/errors/financeableerror.js.map +1 -0
- package/models/errors/index.d.ts +1 -2
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +1 -2
- package/models/errors/index.js.map +1 -1
- package/models/errors/responsevalidationerror.d.ts +26 -0
- package/models/errors/responsevalidationerror.d.ts.map +1 -0
- package/models/errors/responsevalidationerror.js +66 -0
- package/models/errors/responsevalidationerror.js.map +1 -0
- package/models/errors/sdkvalidationerror.d.ts +1 -0
- package/models/errors/sdkvalidationerror.d.ts.map +1 -1
- package/models/errors/sdkvalidationerror.js +14 -0
- package/models/errors/sdkvalidationerror.js.map +1 -1
- package/models/operations/createapplication.d.ts +107 -30
- package/models/operations/createapplication.d.ts.map +1 -1
- package/models/operations/createapplication.js +125 -44
- package/models/operations/createapplication.js.map +1 -1
- package/models/operations/supportingdocumentscreate.d.ts +144 -0
- package/models/operations/supportingdocumentscreate.d.ts.map +1 -1
- package/models/operations/supportingdocumentscreate.js +186 -1
- package/models/operations/supportingdocumentscreate.js.map +1 -1
- package/package.json +1 -1
- package/sdk/applications.d.ts +1 -1
- package/sdk/applications.d.ts.map +1 -1
- package/sdk/sdk.d.ts +2 -2
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +3 -3
- package/sdk/sdk.js.map +1 -1
- package/sdk/supportingdocuments.d.ts +1 -1
- package/sdk/supportingdocuments.d.ts.map +1 -1
- package/src/funcs/applicationsCreate.ts +30 -40
- package/src/funcs/oauthTokenGet.ts +24 -20
- package/src/funcs/supportingDocumentsCreate.ts +31 -42
- package/src/hooks/types.ts +2 -0
- package/src/index.ts +2 -0
- package/src/lib/config.ts +7 -3
- package/src/lib/files.ts +42 -0
- package/src/lib/matchers.ts +44 -41
- package/src/lib/sdks.ts +10 -4
- package/src/lib/security.ts +2 -2
- package/src/models/components/addressattributes.ts +14 -18
- package/src/models/components/badrequesterror.ts +48 -44
- package/src/models/components/commercialsecuredapplicationpayload.ts +15 -20
- package/src/models/components/commercialsecuredloancommercialapplicationrelationships.ts +178 -238
- package/src/models/components/customerattributes.ts +20 -1
- package/src/models/components/forbiddenerror.ts +30 -32
- package/src/models/components/loandetailsattributes.ts +16 -16
- package/src/models/components/supportingdocumentrelationships.ts +117 -82
- package/src/models/components/supportingdocumentresource.ts +18 -15
- package/src/models/errors/apierror.ts +29 -16
- package/src/models/errors/financeableerror.ts +35 -0
- package/src/models/errors/index.ts +1 -2
- package/src/models/errors/responsevalidationerror.ts +50 -0
- package/src/models/errors/sdkvalidationerror.ts +12 -0
- package/src/models/operations/createapplication.ts +299 -64
- package/src/models/operations/supportingdocumentscreate.ts +386 -0
- package/src/sdk/applications.ts +1 -1
- package/src/sdk/sdk.ts +7 -7
- package/src/sdk/supportingdocuments.ts +1 -1
- package/src/types/constdatetime.ts +1 -1
- package/types/constdatetime.js +1 -1
- package/models/errors/createapplication.d.ts +0 -73
- package/models/errors/createapplication.d.ts.map +0 -1
- package/models/errors/createapplication.js +0 -120
- package/models/errors/createapplication.js.map +0 -1
- package/models/errors/supportingdocumentscreate.d.ts +0 -143
- package/models/errors/supportingdocumentscreate.d.ts.map +0 -1
- package/models/errors/supportingdocumentscreate.js +0 -225
- package/models/errors/supportingdocumentscreate.js.map +0 -1
- package/src/models/errors/createapplication.ts +0 -149
- package/src/models/errors/supportingdocumentscreate.ts +0 -342
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
import * as z from "zod";
|
|
2
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
-
import * as components from "../components/index.js";
|
|
4
|
-
import { SDKValidationError } from "./sdkvalidationerror.js";
|
|
5
|
-
export type TwoData = {
|
|
6
|
-
errors: Array<components.RelationshipResourceNotFound>;
|
|
7
|
-
};
|
|
8
|
-
export declare class Two extends Error {
|
|
9
|
-
errors: Array<components.RelationshipResourceNotFound>;
|
|
10
|
-
/** The original data that was passed to this error instance. */
|
|
11
|
-
data$: TwoData;
|
|
12
|
-
constructor(err: TwoData);
|
|
13
|
-
}
|
|
14
|
-
export type OneData = {
|
|
15
|
-
errors: Array<components.ResourceNotFound>;
|
|
16
|
-
};
|
|
17
|
-
export declare class One extends Error {
|
|
18
|
-
errors: Array<components.ResourceNotFound>;
|
|
19
|
-
/** The original data that was passed to this error instance. */
|
|
20
|
-
data$: OneData;
|
|
21
|
-
constructor(err: OneData);
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* The server cannot find the requested resource.
|
|
25
|
-
*/
|
|
26
|
-
export type SupportingDocumentsCreateSupportingDocumentsResponseBody = One | Two;
|
|
27
|
-
export type Errors = components.BadRequestError | components.RelationshipResourceNotFound;
|
|
28
|
-
/**
|
|
29
|
-
* The server could not understand the request due to invalid syntax.
|
|
30
|
-
*/
|
|
31
|
-
export type SupportingDocumentsCreateResponseBodyData = {
|
|
32
|
-
errors: Array<components.BadRequestError | components.RelationshipResourceNotFound>;
|
|
33
|
-
};
|
|
34
|
-
/**
|
|
35
|
-
* The server could not understand the request due to invalid syntax.
|
|
36
|
-
*/
|
|
37
|
-
export declare class SupportingDocumentsCreateResponseBody extends Error {
|
|
38
|
-
errors: Array<components.BadRequestError | components.RelationshipResourceNotFound>;
|
|
39
|
-
/** The original data that was passed to this error instance. */
|
|
40
|
-
data$: SupportingDocumentsCreateResponseBodyData;
|
|
41
|
-
constructor(err: SupportingDocumentsCreateResponseBodyData);
|
|
42
|
-
}
|
|
43
|
-
/** @internal */
|
|
44
|
-
export declare const Two$inboundSchema: z.ZodType<Two, z.ZodTypeDef, unknown>;
|
|
45
|
-
/** @internal */
|
|
46
|
-
export type Two$Outbound = {
|
|
47
|
-
errors: Array<components.RelationshipResourceNotFound$Outbound>;
|
|
48
|
-
};
|
|
49
|
-
/** @internal */
|
|
50
|
-
export declare const Two$outboundSchema: z.ZodType<Two$Outbound, z.ZodTypeDef, Two>;
|
|
51
|
-
/**
|
|
52
|
-
* @internal
|
|
53
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
54
|
-
*/
|
|
55
|
-
export declare namespace Two$ {
|
|
56
|
-
/** @deprecated use `Two$inboundSchema` instead. */
|
|
57
|
-
const inboundSchema: z.ZodType<Two, z.ZodTypeDef, unknown>;
|
|
58
|
-
/** @deprecated use `Two$outboundSchema` instead. */
|
|
59
|
-
const outboundSchema: z.ZodType<Two$Outbound, z.ZodTypeDef, Two>;
|
|
60
|
-
/** @deprecated use `Two$Outbound` instead. */
|
|
61
|
-
type Outbound = Two$Outbound;
|
|
62
|
-
}
|
|
63
|
-
/** @internal */
|
|
64
|
-
export declare const One$inboundSchema: z.ZodType<One, z.ZodTypeDef, unknown>;
|
|
65
|
-
/** @internal */
|
|
66
|
-
export type One$Outbound = {
|
|
67
|
-
errors: Array<components.ResourceNotFound$Outbound>;
|
|
68
|
-
};
|
|
69
|
-
/** @internal */
|
|
70
|
-
export declare const One$outboundSchema: z.ZodType<One$Outbound, z.ZodTypeDef, One>;
|
|
71
|
-
/**
|
|
72
|
-
* @internal
|
|
73
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
74
|
-
*/
|
|
75
|
-
export declare namespace One$ {
|
|
76
|
-
/** @deprecated use `One$inboundSchema` instead. */
|
|
77
|
-
const inboundSchema: z.ZodType<One, z.ZodTypeDef, unknown>;
|
|
78
|
-
/** @deprecated use `One$outboundSchema` instead. */
|
|
79
|
-
const outboundSchema: z.ZodType<One$Outbound, z.ZodTypeDef, One>;
|
|
80
|
-
/** @deprecated use `One$Outbound` instead. */
|
|
81
|
-
type Outbound = One$Outbound;
|
|
82
|
-
}
|
|
83
|
-
/** @internal */
|
|
84
|
-
export declare const SupportingDocumentsCreateSupportingDocumentsResponseBody$inboundSchema: z.ZodType<SupportingDocumentsCreateSupportingDocumentsResponseBody, z.ZodTypeDef, unknown>;
|
|
85
|
-
/** @internal */
|
|
86
|
-
export type SupportingDocumentsCreateSupportingDocumentsResponseBody$Outbound = One$Outbound | Two$Outbound;
|
|
87
|
-
/** @internal */
|
|
88
|
-
export declare const SupportingDocumentsCreateSupportingDocumentsResponseBody$outboundSchema: z.ZodType<SupportingDocumentsCreateSupportingDocumentsResponseBody$Outbound, z.ZodTypeDef, SupportingDocumentsCreateSupportingDocumentsResponseBody>;
|
|
89
|
-
/**
|
|
90
|
-
* @internal
|
|
91
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
92
|
-
*/
|
|
93
|
-
export declare namespace SupportingDocumentsCreateSupportingDocumentsResponseBody$ {
|
|
94
|
-
/** @deprecated use `SupportingDocumentsCreateSupportingDocumentsResponseBody$inboundSchema` instead. */
|
|
95
|
-
const inboundSchema: z.ZodType<SupportingDocumentsCreateSupportingDocumentsResponseBody, z.ZodTypeDef, unknown>;
|
|
96
|
-
/** @deprecated use `SupportingDocumentsCreateSupportingDocumentsResponseBody$outboundSchema` instead. */
|
|
97
|
-
const outboundSchema: z.ZodType<SupportingDocumentsCreateSupportingDocumentsResponseBody$Outbound, z.ZodTypeDef, SupportingDocumentsCreateSupportingDocumentsResponseBody>;
|
|
98
|
-
/** @deprecated use `SupportingDocumentsCreateSupportingDocumentsResponseBody$Outbound` instead. */
|
|
99
|
-
type Outbound = SupportingDocumentsCreateSupportingDocumentsResponseBody$Outbound;
|
|
100
|
-
}
|
|
101
|
-
export declare function supportingDocumentsCreateSupportingDocumentsResponseBodyToJSON(supportingDocumentsCreateSupportingDocumentsResponseBody: SupportingDocumentsCreateSupportingDocumentsResponseBody): string;
|
|
102
|
-
export declare function supportingDocumentsCreateSupportingDocumentsResponseBodyFromJSON(jsonString: string): SafeParseResult<SupportingDocumentsCreateSupportingDocumentsResponseBody, SDKValidationError>;
|
|
103
|
-
/** @internal */
|
|
104
|
-
export declare const Errors$inboundSchema: z.ZodType<Errors, z.ZodTypeDef, unknown>;
|
|
105
|
-
/** @internal */
|
|
106
|
-
export type Errors$Outbound = components.BadRequestError$Outbound | components.RelationshipResourceNotFound$Outbound;
|
|
107
|
-
/** @internal */
|
|
108
|
-
export declare const Errors$outboundSchema: z.ZodType<Errors$Outbound, z.ZodTypeDef, Errors>;
|
|
109
|
-
/**
|
|
110
|
-
* @internal
|
|
111
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
112
|
-
*/
|
|
113
|
-
export declare namespace Errors$ {
|
|
114
|
-
/** @deprecated use `Errors$inboundSchema` instead. */
|
|
115
|
-
const inboundSchema: z.ZodType<Errors, z.ZodTypeDef, unknown>;
|
|
116
|
-
/** @deprecated use `Errors$outboundSchema` instead. */
|
|
117
|
-
const outboundSchema: z.ZodType<Errors$Outbound, z.ZodTypeDef, Errors>;
|
|
118
|
-
/** @deprecated use `Errors$Outbound` instead. */
|
|
119
|
-
type Outbound = Errors$Outbound;
|
|
120
|
-
}
|
|
121
|
-
export declare function errorsToJSON(errors: Errors): string;
|
|
122
|
-
export declare function errorsFromJSON(jsonString: string): SafeParseResult<Errors, SDKValidationError>;
|
|
123
|
-
/** @internal */
|
|
124
|
-
export declare const SupportingDocumentsCreateResponseBody$inboundSchema: z.ZodType<SupportingDocumentsCreateResponseBody, z.ZodTypeDef, unknown>;
|
|
125
|
-
/** @internal */
|
|
126
|
-
export type SupportingDocumentsCreateResponseBody$Outbound = {
|
|
127
|
-
errors: Array<components.BadRequestError$Outbound | components.RelationshipResourceNotFound$Outbound>;
|
|
128
|
-
};
|
|
129
|
-
/** @internal */
|
|
130
|
-
export declare const SupportingDocumentsCreateResponseBody$outboundSchema: z.ZodType<SupportingDocumentsCreateResponseBody$Outbound, z.ZodTypeDef, SupportingDocumentsCreateResponseBody>;
|
|
131
|
-
/**
|
|
132
|
-
* @internal
|
|
133
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
134
|
-
*/
|
|
135
|
-
export declare namespace SupportingDocumentsCreateResponseBody$ {
|
|
136
|
-
/** @deprecated use `SupportingDocumentsCreateResponseBody$inboundSchema` instead. */
|
|
137
|
-
const inboundSchema: z.ZodType<SupportingDocumentsCreateResponseBody, z.ZodTypeDef, unknown>;
|
|
138
|
-
/** @deprecated use `SupportingDocumentsCreateResponseBody$outboundSchema` instead. */
|
|
139
|
-
const outboundSchema: z.ZodType<SupportingDocumentsCreateResponseBody$Outbound, z.ZodTypeDef, SupportingDocumentsCreateResponseBody>;
|
|
140
|
-
/** @deprecated use `SupportingDocumentsCreateResponseBody$Outbound` instead. */
|
|
141
|
-
type Outbound = SupportingDocumentsCreateResponseBody$Outbound;
|
|
142
|
-
}
|
|
143
|
-
//# sourceMappingURL=supportingdocumentscreate.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"supportingdocumentscreate.d.ts","sourceRoot":"","sources":["../../src/models/errors/supportingdocumentscreate.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAE7D,MAAM,MAAM,OAAO,GAAG;IACpB,MAAM,EAAE,KAAK,CAAC,UAAU,CAAC,4BAA4B,CAAC,CAAC;CACxD,CAAC;AAEF,qBAAa,GAAI,SAAQ,KAAK;IAC5B,MAAM,EAAE,KAAK,CAAC,UAAU,CAAC,4BAA4B,CAAC,CAAC;IAEvD,gEAAgE;IAChE,KAAK,EAAE,OAAO,CAAC;gBAEH,GAAG,EAAE,OAAO;CAWzB;AAED,MAAM,MAAM,OAAO,GAAG;IACpB,MAAM,EAAE,KAAK,CAAC,UAAU,CAAC,gBAAgB,CAAC,CAAC;CAC5C,CAAC;AAEF,qBAAa,GAAI,SAAQ,KAAK;IAC5B,MAAM,EAAE,KAAK,CAAC,UAAU,CAAC,gBAAgB,CAAC,CAAC;IAE3C,gEAAgE;IAChE,KAAK,EAAE,OAAO,CAAC;g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|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
-
*/
|
|
5
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
-
}
|
|
11
|
-
Object.defineProperty(o, k2, desc);
|
|
12
|
-
}) : (function(o, m, k, k2) {
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
o[k2] = m[k];
|
|
15
|
-
}));
|
|
16
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
-
}) : function(o, v) {
|
|
19
|
-
o["default"] = v;
|
|
20
|
-
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
-
var ownKeys = function(o) {
|
|
23
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
-
var ar = [];
|
|
25
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
-
return ar;
|
|
27
|
-
};
|
|
28
|
-
return ownKeys(o);
|
|
29
|
-
};
|
|
30
|
-
return function (mod) {
|
|
31
|
-
if (mod && mod.__esModule) return mod;
|
|
32
|
-
var result = {};
|
|
33
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
-
__setModuleDefault(result, mod);
|
|
35
|
-
return result;
|
|
36
|
-
};
|
|
37
|
-
})();
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.SupportingDocumentsCreateResponseBody$ = exports.SupportingDocumentsCreateResponseBody$outboundSchema = exports.SupportingDocumentsCreateResponseBody$inboundSchema = exports.Errors$ = exports.Errors$outboundSchema = exports.Errors$inboundSchema = exports.SupportingDocumentsCreateSupportingDocumentsResponseBody$ = exports.SupportingDocumentsCreateSupportingDocumentsResponseBody$outboundSchema = exports.SupportingDocumentsCreateSupportingDocumentsResponseBody$inboundSchema = exports.One$ = exports.One$outboundSchema = exports.One$inboundSchema = exports.Two$ = exports.Two$outboundSchema = exports.Two$inboundSchema = exports.SupportingDocumentsCreateResponseBody = exports.One = exports.Two = void 0;
|
|
40
|
-
exports.supportingDocumentsCreateSupportingDocumentsResponseBodyToJSON = supportingDocumentsCreateSupportingDocumentsResponseBodyToJSON;
|
|
41
|
-
exports.supportingDocumentsCreateSupportingDocumentsResponseBodyFromJSON = supportingDocumentsCreateSupportingDocumentsResponseBodyFromJSON;
|
|
42
|
-
exports.errorsToJSON = errorsToJSON;
|
|
43
|
-
exports.errorsFromJSON = errorsFromJSON;
|
|
44
|
-
const z = __importStar(require("zod"));
|
|
45
|
-
const schemas_js_1 = require("../../lib/schemas.js");
|
|
46
|
-
const components = __importStar(require("../components/index.js"));
|
|
47
|
-
class Two extends Error {
|
|
48
|
-
constructor(err) {
|
|
49
|
-
const message = "message" in err && typeof err.message === "string"
|
|
50
|
-
? err.message
|
|
51
|
-
: `API error occurred: ${JSON.stringify(err)}`;
|
|
52
|
-
super(message);
|
|
53
|
-
this.data$ = err;
|
|
54
|
-
this.errors = err.errors;
|
|
55
|
-
this.name = "Two";
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
exports.Two = Two;
|
|
59
|
-
class One extends Error {
|
|
60
|
-
constructor(err) {
|
|
61
|
-
const message = "message" in err && typeof err.message === "string"
|
|
62
|
-
? err.message
|
|
63
|
-
: `API error occurred: ${JSON.stringify(err)}`;
|
|
64
|
-
super(message);
|
|
65
|
-
this.data$ = err;
|
|
66
|
-
this.errors = err.errors;
|
|
67
|
-
this.name = "One";
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
exports.One = One;
|
|
71
|
-
/**
|
|
72
|
-
* The server could not understand the request due to invalid syntax.
|
|
73
|
-
*/
|
|
74
|
-
class SupportingDocumentsCreateResponseBody extends Error {
|
|
75
|
-
constructor(err) {
|
|
76
|
-
const message = "message" in err && typeof err.message === "string"
|
|
77
|
-
? err.message
|
|
78
|
-
: `API error occurred: ${JSON.stringify(err)}`;
|
|
79
|
-
super(message);
|
|
80
|
-
this.data$ = err;
|
|
81
|
-
this.errors = err.errors;
|
|
82
|
-
this.name = "SupportingDocumentsCreateResponseBody";
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
exports.SupportingDocumentsCreateResponseBody = SupportingDocumentsCreateResponseBody;
|
|
86
|
-
/** @internal */
|
|
87
|
-
exports.Two$inboundSchema = z
|
|
88
|
-
.object({
|
|
89
|
-
errors: z.array(components.RelationshipResourceNotFound$inboundSchema),
|
|
90
|
-
})
|
|
91
|
-
.transform((v) => {
|
|
92
|
-
return new Two(v);
|
|
93
|
-
});
|
|
94
|
-
/** @internal */
|
|
95
|
-
exports.Two$outboundSchema = z
|
|
96
|
-
.instanceof(Two)
|
|
97
|
-
.transform(v => v.data$)
|
|
98
|
-
.pipe(z.object({
|
|
99
|
-
errors: z.array(components.RelationshipResourceNotFound$outboundSchema),
|
|
100
|
-
}));
|
|
101
|
-
/**
|
|
102
|
-
* @internal
|
|
103
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
104
|
-
*/
|
|
105
|
-
var Two$;
|
|
106
|
-
(function (Two$) {
|
|
107
|
-
/** @deprecated use `Two$inboundSchema` instead. */
|
|
108
|
-
Two$.inboundSchema = exports.Two$inboundSchema;
|
|
109
|
-
/** @deprecated use `Two$outboundSchema` instead. */
|
|
110
|
-
Two$.outboundSchema = exports.Two$outboundSchema;
|
|
111
|
-
})(Two$ || (exports.Two$ = Two$ = {}));
|
|
112
|
-
/** @internal */
|
|
113
|
-
exports.One$inboundSchema = z
|
|
114
|
-
.object({
|
|
115
|
-
errors: z.array(components.ResourceNotFound$inboundSchema),
|
|
116
|
-
})
|
|
117
|
-
.transform((v) => {
|
|
118
|
-
return new One(v);
|
|
119
|
-
});
|
|
120
|
-
/** @internal */
|
|
121
|
-
exports.One$outboundSchema = z
|
|
122
|
-
.instanceof(One)
|
|
123
|
-
.transform(v => v.data$)
|
|
124
|
-
.pipe(z.object({
|
|
125
|
-
errors: z.array(components.ResourceNotFound$outboundSchema),
|
|
126
|
-
}));
|
|
127
|
-
/**
|
|
128
|
-
* @internal
|
|
129
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
130
|
-
*/
|
|
131
|
-
var One$;
|
|
132
|
-
(function (One$) {
|
|
133
|
-
/** @deprecated use `One$inboundSchema` instead. */
|
|
134
|
-
One$.inboundSchema = exports.One$inboundSchema;
|
|
135
|
-
/** @deprecated use `One$outboundSchema` instead. */
|
|
136
|
-
One$.outboundSchema = exports.One$outboundSchema;
|
|
137
|
-
})(One$ || (exports.One$ = One$ = {}));
|
|
138
|
-
/** @internal */
|
|
139
|
-
exports.SupportingDocumentsCreateSupportingDocumentsResponseBody$inboundSchema = z.union([
|
|
140
|
-
z.lazy(() => exports.One$inboundSchema),
|
|
141
|
-
z.lazy(() => exports.Two$inboundSchema),
|
|
142
|
-
]);
|
|
143
|
-
/** @internal */
|
|
144
|
-
exports.SupportingDocumentsCreateSupportingDocumentsResponseBody$outboundSchema = z.union([
|
|
145
|
-
z.lazy(() => exports.One$outboundSchema),
|
|
146
|
-
z.lazy(() => exports.Two$outboundSchema),
|
|
147
|
-
]);
|
|
148
|
-
/**
|
|
149
|
-
* @internal
|
|
150
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
151
|
-
*/
|
|
152
|
-
var SupportingDocumentsCreateSupportingDocumentsResponseBody$;
|
|
153
|
-
(function (SupportingDocumentsCreateSupportingDocumentsResponseBody$) {
|
|
154
|
-
/** @deprecated use `SupportingDocumentsCreateSupportingDocumentsResponseBody$inboundSchema` instead. */
|
|
155
|
-
SupportingDocumentsCreateSupportingDocumentsResponseBody$.inboundSchema = exports.SupportingDocumentsCreateSupportingDocumentsResponseBody$inboundSchema;
|
|
156
|
-
/** @deprecated use `SupportingDocumentsCreateSupportingDocumentsResponseBody$outboundSchema` instead. */
|
|
157
|
-
SupportingDocumentsCreateSupportingDocumentsResponseBody$.outboundSchema = exports.SupportingDocumentsCreateSupportingDocumentsResponseBody$outboundSchema;
|
|
158
|
-
})(SupportingDocumentsCreateSupportingDocumentsResponseBody$ || (exports.SupportingDocumentsCreateSupportingDocumentsResponseBody$ = SupportingDocumentsCreateSupportingDocumentsResponseBody$ = {}));
|
|
159
|
-
function supportingDocumentsCreateSupportingDocumentsResponseBodyToJSON(supportingDocumentsCreateSupportingDocumentsResponseBody) {
|
|
160
|
-
return JSON.stringify(exports.SupportingDocumentsCreateSupportingDocumentsResponseBody$outboundSchema
|
|
161
|
-
.parse(supportingDocumentsCreateSupportingDocumentsResponseBody));
|
|
162
|
-
}
|
|
163
|
-
function supportingDocumentsCreateSupportingDocumentsResponseBodyFromJSON(jsonString) {
|
|
164
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.SupportingDocumentsCreateSupportingDocumentsResponseBody$inboundSchema
|
|
165
|
-
.parse(JSON.parse(x)), `Failed to parse 'SupportingDocumentsCreateSupportingDocumentsResponseBody' from JSON`);
|
|
166
|
-
}
|
|
167
|
-
/** @internal */
|
|
168
|
-
exports.Errors$inboundSchema = z
|
|
169
|
-
.union([
|
|
170
|
-
components.BadRequestError$inboundSchema,
|
|
171
|
-
components.RelationshipResourceNotFound$inboundSchema,
|
|
172
|
-
]);
|
|
173
|
-
/** @internal */
|
|
174
|
-
exports.Errors$outboundSchema = z.union([
|
|
175
|
-
components.BadRequestError$outboundSchema,
|
|
176
|
-
components.RelationshipResourceNotFound$outboundSchema,
|
|
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
|
-
var Errors$;
|
|
183
|
-
(function (Errors$) {
|
|
184
|
-
/** @deprecated use `Errors$inboundSchema` instead. */
|
|
185
|
-
Errors$.inboundSchema = exports.Errors$inboundSchema;
|
|
186
|
-
/** @deprecated use `Errors$outboundSchema` instead. */
|
|
187
|
-
Errors$.outboundSchema = exports.Errors$outboundSchema;
|
|
188
|
-
})(Errors$ || (exports.Errors$ = Errors$ = {}));
|
|
189
|
-
function errorsToJSON(errors) {
|
|
190
|
-
return JSON.stringify(exports.Errors$outboundSchema.parse(errors));
|
|
191
|
-
}
|
|
192
|
-
function errorsFromJSON(jsonString) {
|
|
193
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Errors$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Errors' from JSON`);
|
|
194
|
-
}
|
|
195
|
-
/** @internal */
|
|
196
|
-
exports.SupportingDocumentsCreateResponseBody$inboundSchema = z.object({
|
|
197
|
-
errors: z.array(z.union([
|
|
198
|
-
components.BadRequestError$inboundSchema,
|
|
199
|
-
components.RelationshipResourceNotFound$inboundSchema,
|
|
200
|
-
])),
|
|
201
|
-
})
|
|
202
|
-
.transform((v) => {
|
|
203
|
-
return new SupportingDocumentsCreateResponseBody(v);
|
|
204
|
-
});
|
|
205
|
-
/** @internal */
|
|
206
|
-
exports.SupportingDocumentsCreateResponseBody$outboundSchema = z.instanceof(SupportingDocumentsCreateResponseBody)
|
|
207
|
-
.transform(v => v.data$)
|
|
208
|
-
.pipe(z.object({
|
|
209
|
-
errors: z.array(z.union([
|
|
210
|
-
components.BadRequestError$outboundSchema,
|
|
211
|
-
components.RelationshipResourceNotFound$outboundSchema,
|
|
212
|
-
])),
|
|
213
|
-
}));
|
|
214
|
-
/**
|
|
215
|
-
* @internal
|
|
216
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
217
|
-
*/
|
|
218
|
-
var SupportingDocumentsCreateResponseBody$;
|
|
219
|
-
(function (SupportingDocumentsCreateResponseBody$) {
|
|
220
|
-
/** @deprecated use `SupportingDocumentsCreateResponseBody$inboundSchema` instead. */
|
|
221
|
-
SupportingDocumentsCreateResponseBody$.inboundSchema = exports.SupportingDocumentsCreateResponseBody$inboundSchema;
|
|
222
|
-
/** @deprecated use `SupportingDocumentsCreateResponseBody$outboundSchema` instead. */
|
|
223
|
-
SupportingDocumentsCreateResponseBody$.outboundSchema = exports.SupportingDocumentsCreateResponseBody$outboundSchema;
|
|
224
|
-
})(SupportingDocumentsCreateResponseBody$ || (exports.SupportingDocumentsCreateResponseBody$ = SupportingDocumentsCreateResponseBody$ = {}));
|
|
225
|
-
//# sourceMappingURL=supportingdocumentscreate.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"supportingdocumentscreate.js","sourceRoot":"","sources":["../../src/models/errors/supportingdocumentscreate.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmNH,wIAQC;AAED,4IAaC;AAqCD,oCAEC;AAED,wCAQC;AAzRD,uCAAyB;AACzB,qDAAiD;AAEjD,mEAAqD;AAOrD,MAAa,GAAI,SAAQ,KAAK;IAM5B,YAAY,GAAY;QACtB,MAAM,OAAO,GAAG,SAAS,IAAI,GAAG,IAAI,OAAO,GAAG,CAAC,OAAO,KAAK,QAAQ;YACjE,CAAC,CAAC,GAAG,CAAC,OAAO;YACb,CAAC,CAAC,uBAAuB,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE,CAAC;QACjD,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,KAAK,GAAG,GAAG,CAAC;QAEjB,IAAI,CAAC,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC;QAEzB,IAAI,CAAC,IAAI,GAAG,K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iB,sCAAsC,CAStD;AATD,WAAiB,sCAAsC;IACrD,qFAAqF;IACxE,oDAAa,GACxB,2DAAmD,CAAC;IACtD,sFAAsF;IACzE,qDAAc,GACzB,4DAAoD,CAAC;AAGzD,CAAC,EATgB,sCAAsC,sDAAtC,sCAAsC,QAStD"}
|
|
@@ -1,149 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod";
|
|
6
|
-
import * as components from "../components/index.js";
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* The server cannot find the requested resource.
|
|
10
|
-
*/
|
|
11
|
-
export type CreateApplicationApplicationsResponseBodyData = {
|
|
12
|
-
errors: Array<components.ResourceNotFound>;
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* The server cannot find the requested resource.
|
|
17
|
-
*/
|
|
18
|
-
export class CreateApplicationApplicationsResponseBody extends Error {
|
|
19
|
-
errors: Array<components.ResourceNotFound>;
|
|
20
|
-
|
|
21
|
-
/** The original data that was passed to this error instance. */
|
|
22
|
-
data$: CreateApplicationApplicationsResponseBodyData;
|
|
23
|
-
|
|
24
|
-
constructor(err: CreateApplicationApplicationsResponseBodyData) {
|
|
25
|
-
const message = "message" in err && typeof err.message === "string"
|
|
26
|
-
? err.message
|
|
27
|
-
: `API error occurred: ${JSON.stringify(err)}`;
|
|
28
|
-
super(message);
|
|
29
|
-
this.data$ = err;
|
|
30
|
-
|
|
31
|
-
this.errors = err.errors;
|
|
32
|
-
|
|
33
|
-
this.name = "CreateApplicationApplicationsResponseBody";
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* Access is forbidden.
|
|
39
|
-
*/
|
|
40
|
-
export type CreateApplicationResponseBodyData = {
|
|
41
|
-
errors: Array<components.ForbiddenError>;
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* Access is forbidden.
|
|
46
|
-
*/
|
|
47
|
-
export class CreateApplicationResponseBody extends Error {
|
|
48
|
-
errors: Array<components.ForbiddenError>;
|
|
49
|
-
|
|
50
|
-
/** The original data that was passed to this error instance. */
|
|
51
|
-
data$: CreateApplicationResponseBodyData;
|
|
52
|
-
|
|
53
|
-
constructor(err: CreateApplicationResponseBodyData) {
|
|
54
|
-
const message = "message" in err && typeof err.message === "string"
|
|
55
|
-
? err.message
|
|
56
|
-
: `API error occurred: ${JSON.stringify(err)}`;
|
|
57
|
-
super(message);
|
|
58
|
-
this.data$ = err;
|
|
59
|
-
|
|
60
|
-
this.errors = err.errors;
|
|
61
|
-
|
|
62
|
-
this.name = "CreateApplicationResponseBody";
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
/** @internal */
|
|
67
|
-
export const CreateApplicationApplicationsResponseBody$inboundSchema: z.ZodType<
|
|
68
|
-
CreateApplicationApplicationsResponseBody,
|
|
69
|
-
z.ZodTypeDef,
|
|
70
|
-
unknown
|
|
71
|
-
> = z.object({
|
|
72
|
-
errors: z.array(components.ResourceNotFound$inboundSchema),
|
|
73
|
-
})
|
|
74
|
-
.transform((v) => {
|
|
75
|
-
return new CreateApplicationApplicationsResponseBody(v);
|
|
76
|
-
});
|
|
77
|
-
|
|
78
|
-
/** @internal */
|
|
79
|
-
export type CreateApplicationApplicationsResponseBody$Outbound = {
|
|
80
|
-
errors: Array<components.ResourceNotFound$Outbound>;
|
|
81
|
-
};
|
|
82
|
-
|
|
83
|
-
/** @internal */
|
|
84
|
-
export const CreateApplicationApplicationsResponseBody$outboundSchema:
|
|
85
|
-
z.ZodType<
|
|
86
|
-
CreateApplicationApplicationsResponseBody$Outbound,
|
|
87
|
-
z.ZodTypeDef,
|
|
88
|
-
CreateApplicationApplicationsResponseBody
|
|
89
|
-
> = z.instanceof(CreateApplicationApplicationsResponseBody)
|
|
90
|
-
.transform(v => v.data$)
|
|
91
|
-
.pipe(z.object({
|
|
92
|
-
errors: z.array(components.ResourceNotFound$outboundSchema),
|
|
93
|
-
}));
|
|
94
|
-
|
|
95
|
-
/**
|
|
96
|
-
* @internal
|
|
97
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
98
|
-
*/
|
|
99
|
-
export namespace CreateApplicationApplicationsResponseBody$ {
|
|
100
|
-
/** @deprecated use `CreateApplicationApplicationsResponseBody$inboundSchema` instead. */
|
|
101
|
-
export const inboundSchema =
|
|
102
|
-
CreateApplicationApplicationsResponseBody$inboundSchema;
|
|
103
|
-
/** @deprecated use `CreateApplicationApplicationsResponseBody$outboundSchema` instead. */
|
|
104
|
-
export const outboundSchema =
|
|
105
|
-
CreateApplicationApplicationsResponseBody$outboundSchema;
|
|
106
|
-
/** @deprecated use `CreateApplicationApplicationsResponseBody$Outbound` instead. */
|
|
107
|
-
export type Outbound = CreateApplicationApplicationsResponseBody$Outbound;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
/** @internal */
|
|
111
|
-
export const CreateApplicationResponseBody$inboundSchema: z.ZodType<
|
|
112
|
-
CreateApplicationResponseBody,
|
|
113
|
-
z.ZodTypeDef,
|
|
114
|
-
unknown
|
|
115
|
-
> = z.object({
|
|
116
|
-
errors: z.array(components.ForbiddenError$inboundSchema),
|
|
117
|
-
})
|
|
118
|
-
.transform((v) => {
|
|
119
|
-
return new CreateApplicationResponseBody(v);
|
|
120
|
-
});
|
|
121
|
-
|
|
122
|
-
/** @internal */
|
|
123
|
-
export type CreateApplicationResponseBody$Outbound = {
|
|
124
|
-
errors: Array<components.ForbiddenError$Outbound>;
|
|
125
|
-
};
|
|
126
|
-
|
|
127
|
-
/** @internal */
|
|
128
|
-
export const CreateApplicationResponseBody$outboundSchema: z.ZodType<
|
|
129
|
-
CreateApplicationResponseBody$Outbound,
|
|
130
|
-
z.ZodTypeDef,
|
|
131
|
-
CreateApplicationResponseBody
|
|
132
|
-
> = z.instanceof(CreateApplicationResponseBody)
|
|
133
|
-
.transform(v => v.data$)
|
|
134
|
-
.pipe(z.object({
|
|
135
|
-
errors: z.array(components.ForbiddenError$outboundSchema),
|
|
136
|
-
}));
|
|
137
|
-
|
|
138
|
-
/**
|
|
139
|
-
* @internal
|
|
140
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
141
|
-
*/
|
|
142
|
-
export namespace CreateApplicationResponseBody$ {
|
|
143
|
-
/** @deprecated use `CreateApplicationResponseBody$inboundSchema` instead. */
|
|
144
|
-
export const inboundSchema = CreateApplicationResponseBody$inboundSchema;
|
|
145
|
-
/** @deprecated use `CreateApplicationResponseBody$outboundSchema` instead. */
|
|
146
|
-
export const outboundSchema = CreateApplicationResponseBody$outboundSchema;
|
|
147
|
-
/** @deprecated use `CreateApplicationResponseBody$Outbound` instead. */
|
|
148
|
-
export type Outbound = CreateApplicationResponseBody$Outbound;
|
|
149
|
-
}
|