@financeable/aggregation 0.6.0 → 0.6.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 +4 -0
- package/README.md +12 -0
- package/docs/sdks/applications/README.md +19 -254
- package/docs/sdks/supportingdocuments/README.md +9 -1
- package/funcs/applicationsCreate.d.ts +1 -1
- package/funcs/applicationsCreate.d.ts.map +1 -1
- package/funcs/applicationsCreate.js +2 -2
- package/funcs/applicationsCreate.js.map +1 -1
- package/funcs/supportingDocumentsCreate.d.ts +1 -2
- package/funcs/supportingDocumentsCreate.d.ts.map +1 -1
- package/funcs/supportingDocumentsCreate.js +1 -2
- package/funcs/supportingDocumentsCreate.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/addressattributes.d.ts +2 -0
- package/models/components/addressattributes.d.ts.map +1 -1
- package/models/components/addressattributes.js +2 -0
- package/models/components/addressattributes.js.map +1 -1
- package/models/components/applicationresource.d.ts +4 -4
- package/models/components/applicationresource.d.ts.map +1 -1
- package/models/components/applicationresource.js +6 -6
- package/models/components/applicationresource.js.map +1 -1
- package/models/components/{commercialsecuredloanapplicationsubmissionpayload.d.ts → commercialsecuredapplicationpayload.d.ts} +64 -24
- package/models/components/commercialsecuredapplicationpayload.d.ts.map +1 -0
- package/models/components/{commercialsecuredloanapplicationsubmissionpayload.js → commercialsecuredapplicationpayload.js} +47 -33
- package/models/components/commercialsecuredapplicationpayload.js.map +1 -0
- package/models/components/commercialsecuredapplicationresource.d.ts +171 -0
- package/models/components/commercialsecuredapplicationresource.d.ts.map +1 -0
- package/models/components/commercialsecuredapplicationresource.js +161 -0
- package/models/components/commercialsecuredapplicationresource.js.map +1 -0
- package/models/components/commercialsecuredloanassetattributes.d.ts +2 -0
- package/models/components/commercialsecuredloanassetattributes.d.ts.map +1 -1
- package/models/components/commercialsecuredloanassetattributes.js +2 -0
- package/models/components/commercialsecuredloanassetattributes.js.map +1 -1
- package/models/components/commercialsecuredloancommercialapplicationrelationships.d.ts +99 -17
- package/models/components/commercialsecuredloancommercialapplicationrelationships.d.ts.map +1 -1
- package/models/components/commercialsecuredloancommercialapplicationrelationships.js +67 -23
- package/models/components/commercialsecuredloancommercialapplicationrelationships.js.map +1 -1
- package/models/components/consumersecuredapplicationpayload.d.ts +164 -0
- package/models/components/consumersecuredapplicationpayload.d.ts.map +1 -0
- package/models/components/consumersecuredapplicationpayload.js +158 -0
- package/models/components/consumersecuredapplicationpayload.js.map +1 -0
- package/models/components/consumersecuredapplicationresource.d.ts +171 -0
- package/models/components/consumersecuredapplicationresource.d.ts.map +1 -0
- package/models/components/consumersecuredapplicationresource.js +161 -0
- package/models/components/consumersecuredapplicationresource.js.map +1 -0
- package/models/components/consumersecuredloanassetattributes.d.ts +2 -0
- package/models/components/consumersecuredloanassetattributes.d.ts.map +1 -1
- package/models/components/consumersecuredloanassetattributes.js +2 -0
- package/models/components/consumersecuredloanassetattributes.js.map +1 -1
- package/models/components/consumersecuredloanconsumerapplicationrelationships.d.ts +51 -2
- package/models/components/consumersecuredloanconsumerapplicationrelationships.d.ts.map +1 -1
- package/models/components/consumersecuredloanconsumerapplicationrelationships.js +19 -2
- package/models/components/consumersecuredloanconsumerapplicationrelationships.js.map +1 -1
- package/models/components/createsupportingdocumentsresponse.d.ts +49 -46
- package/models/components/createsupportingdocumentsresponse.d.ts.map +1 -1
- package/models/components/createsupportingdocumentsresponse.js +36 -47
- package/models/components/createsupportingdocumentsresponse.js.map +1 -1
- package/models/components/customerattributes.d.ts +2 -0
- package/models/components/customerattributes.d.ts.map +1 -1
- package/models/components/customerattributes.js +2 -0
- package/models/components/customerattributes.js.map +1 -1
- package/models/components/entityattributes.d.ts +2 -0
- package/models/components/entityattributes.d.ts.map +1 -1
- package/models/components/entityattributes.js +2 -0
- package/models/components/entityattributes.js.map +1 -1
- package/models/components/index.d.ts +4 -5
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +4 -5
- package/models/components/index.js.map +1 -1
- package/models/components/loandetailsattributes.d.ts +2 -0
- package/models/components/loandetailsattributes.d.ts.map +1 -1
- package/models/components/loandetailsattributes.js +2 -0
- package/models/components/loandetailsattributes.js.map +1 -1
- package/models/components/supportingdocumentresource.d.ts +5 -25
- package/models/components/supportingdocumentresource.d.ts.map +1 -1
- package/models/components/supportingdocumentresource.js +6 -29
- package/models/components/supportingdocumentresource.js.map +1 -1
- package/models/errors/createapplication.d.ts +35 -0
- package/models/errors/createapplication.d.ts.map +1 -1
- package/models/errors/createapplication.js +40 -1
- package/models/errors/createapplication.js.map +1 -1
- package/models/operations/createapplication.d.ts +6 -112
- package/models/operations/createapplication.d.ts.map +1 -1
- package/models/operations/createapplication.js +11 -118
- package/models/operations/createapplication.js.map +1 -1
- package/models/operations/supportingdocumentscreate.d.ts +34 -0
- package/models/operations/supportingdocumentscreate.d.ts.map +1 -1
- package/models/operations/supportingdocumentscreate.js +28 -1
- package/models/operations/supportingdocumentscreate.js.map +1 -1
- package/package.json +1 -1
- package/sdk/supportingdocuments.d.ts +1 -2
- package/sdk/supportingdocuments.d.ts.map +1 -1
- package/sdk/supportingdocuments.js.map +1 -1
- package/src/funcs/applicationsCreate.ts +8 -1
- package/src/funcs/supportingDocumentsCreate.ts +4 -5
- package/src/lib/config.ts +2 -2
- package/src/models/components/addressattributes.ts +4 -0
- package/src/models/components/applicationresource.ts +18 -18
- package/src/models/components/{commercialsecuredloanapplicationsubmissionpayload.ts → commercialsecuredapplicationpayload.ts} +82 -71
- package/src/models/components/commercialsecuredapplicationresource.ts +310 -0
- package/src/models/components/commercialsecuredloanassetattributes.ts +4 -0
- package/src/models/components/commercialsecuredloancommercialapplicationrelationships.ts +159 -69
- package/src/models/components/consumersecuredapplicationpayload.ts +273 -0
- package/src/models/components/consumersecuredapplicationresource.ts +309 -0
- package/src/models/components/consumersecuredloanassetattributes.ts +4 -0
- package/src/models/components/consumersecuredloanconsumerapplicationrelationships.ts +44 -8
- package/src/models/components/createsupportingdocumentsresponse.ts +57 -103
- package/src/models/components/customerattributes.ts +4 -0
- package/src/models/components/entityattributes.ts +4 -0
- package/src/models/components/index.ts +4 -5
- package/src/models/components/loandetailsattributes.ts +4 -0
- package/src/models/components/supportingdocumentresource.ts +14 -51
- package/src/models/errors/createapplication.ts +73 -0
- package/src/models/operations/createapplication.ts +20 -229
- package/src/models/operations/supportingdocumentscreate.ts +72 -0
- package/src/sdk/supportingdocuments.ts +1 -2
- package/models/components/commercialapplicationresource.d.ts +0 -191
- package/models/components/commercialapplicationresource.d.ts.map +0 -1
- package/models/components/commercialapplicationresource.js +0 -183
- package/models/components/commercialapplicationresource.js.map +0 -1
- package/models/components/commercialsecuredloanapplicationsubmissionpayload.d.ts.map +0 -1
- package/models/components/commercialsecuredloanapplicationsubmissionpayload.js.map +0 -1
- package/models/components/consumerapplicationresource.d.ts +0 -191
- package/models/components/consumerapplicationresource.d.ts.map +0 -1
- package/models/components/consumerapplicationresource.js +0 -187
- package/models/components/consumerapplicationresource.js.map +0 -1
- package/models/components/consumersecuredloanapplicationsubmissionpayload.d.ts +0 -124
- package/models/components/consumersecuredloanapplicationsubmissionpayload.d.ts.map +0 -1
- package/models/components/consumersecuredloanapplicationsubmissionpayload.js +0 -146
- package/models/components/consumersecuredloanapplicationsubmissionpayload.js.map +0 -1
- package/models/components/resourcetypes.d.ts +0 -46
- package/models/components/resourcetypes.d.ts.map +0 -1
- package/models/components/resourcetypes.js +0 -66
- package/models/components/resourcetypes.js.map +0 -1
- package/src/models/components/commercialapplicationresource.ts +0 -355
- package/src/models/components/consumerapplicationresource.ts +0 -342
- package/src/models/components/consumersecuredloanapplicationsubmissionpayload.ts +0 -270
- package/src/models/components/resourcetypes.ts +0 -39
|
@@ -36,19 +36,11 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.CreateApplicationResponseBody$ = exports.CreateApplicationResponseBody$outboundSchema = exports.CreateApplicationResponseBody$inboundSchema = exports.
|
|
39
|
+
exports.CreateApplicationResponseBody$ = exports.CreateApplicationResponseBody$outboundSchema = exports.CreateApplicationResponseBody$inboundSchema = exports.CreateApplicationRequestBody$ = exports.CreateApplicationRequestBody$outboundSchema = exports.CreateApplicationRequestBody$inboundSchema = exports.Data$ = exports.Data$outboundSchema = exports.Data$inboundSchema = void 0;
|
|
40
40
|
exports.dataToJSON = dataToJSON;
|
|
41
41
|
exports.dataFromJSON = dataFromJSON;
|
|
42
42
|
exports.createApplicationRequestBodyToJSON = createApplicationRequestBodyToJSON;
|
|
43
43
|
exports.createApplicationRequestBodyFromJSON = createApplicationRequestBodyFromJSON;
|
|
44
|
-
exports.attributesToJSON = attributesToJSON;
|
|
45
|
-
exports.attributesFromJSON = attributesFromJSON;
|
|
46
|
-
exports.relationshipsToJSON = relationshipsToJSON;
|
|
47
|
-
exports.relationshipsFromJSON = relationshipsFromJSON;
|
|
48
|
-
exports.linksToJSON = linksToJSON;
|
|
49
|
-
exports.linksFromJSON = linksFromJSON;
|
|
50
|
-
exports.includedToJSON = includedToJSON;
|
|
51
|
-
exports.includedFromJSON = includedFromJSON;
|
|
52
44
|
exports.createApplicationResponseBodyToJSON = createApplicationResponseBodyToJSON;
|
|
53
45
|
exports.createApplicationResponseBodyFromJSON = createApplicationResponseBodyFromJSON;
|
|
54
46
|
const z = __importStar(require("zod"));
|
|
@@ -57,13 +49,13 @@ const components = __importStar(require("../components/index.js"));
|
|
|
57
49
|
/** @internal */
|
|
58
50
|
exports.Data$inboundSchema = z
|
|
59
51
|
.union([
|
|
60
|
-
components.
|
|
61
|
-
components.
|
|
52
|
+
components.CommercialSecuredApplicationPayload$inboundSchema,
|
|
53
|
+
components.ConsumerSecuredApplicationPayload$inboundSchema,
|
|
62
54
|
]);
|
|
63
55
|
/** @internal */
|
|
64
56
|
exports.Data$outboundSchema = z.union([
|
|
65
|
-
components.
|
|
66
|
-
components.
|
|
57
|
+
components.CommercialSecuredApplicationPayload$outboundSchema,
|
|
58
|
+
components.ConsumerSecuredApplicationPayload$outboundSchema,
|
|
67
59
|
]);
|
|
68
60
|
/**
|
|
69
61
|
* @internal
|
|
@@ -85,15 +77,15 @@ function dataFromJSON(jsonString) {
|
|
|
85
77
|
/** @internal */
|
|
86
78
|
exports.CreateApplicationRequestBody$inboundSchema = z.object({
|
|
87
79
|
data: z.union([
|
|
88
|
-
components.
|
|
89
|
-
components.
|
|
80
|
+
components.CommercialSecuredApplicationPayload$inboundSchema,
|
|
81
|
+
components.ConsumerSecuredApplicationPayload$inboundSchema,
|
|
90
82
|
]),
|
|
91
83
|
});
|
|
92
84
|
/** @internal */
|
|
93
85
|
exports.CreateApplicationRequestBody$outboundSchema = z.object({
|
|
94
86
|
data: z.union([
|
|
95
|
-
components.
|
|
96
|
-
components.
|
|
87
|
+
components.CommercialSecuredApplicationPayload$outboundSchema,
|
|
88
|
+
components.ConsumerSecuredApplicationPayload$outboundSchema,
|
|
97
89
|
]),
|
|
98
90
|
});
|
|
99
91
|
/**
|
|
@@ -114,114 +106,15 @@ function createApplicationRequestBodyFromJSON(jsonString) {
|
|
|
114
106
|
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateApplicationRequestBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateApplicationRequestBody' from JSON`);
|
|
115
107
|
}
|
|
116
108
|
/** @internal */
|
|
117
|
-
exports.Attributes$inboundSchema = z.object({});
|
|
118
|
-
/** @internal */
|
|
119
|
-
exports.Attributes$outboundSchema = z.object({});
|
|
120
|
-
/**
|
|
121
|
-
* @internal
|
|
122
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
123
|
-
*/
|
|
124
|
-
var Attributes$;
|
|
125
|
-
(function (Attributes$) {
|
|
126
|
-
/** @deprecated use `Attributes$inboundSchema` instead. */
|
|
127
|
-
Attributes$.inboundSchema = exports.Attributes$inboundSchema;
|
|
128
|
-
/** @deprecated use `Attributes$outboundSchema` instead. */
|
|
129
|
-
Attributes$.outboundSchema = exports.Attributes$outboundSchema;
|
|
130
|
-
})(Attributes$ || (exports.Attributes$ = Attributes$ = {}));
|
|
131
|
-
function attributesToJSON(attributes) {
|
|
132
|
-
return JSON.stringify(exports.Attributes$outboundSchema.parse(attributes));
|
|
133
|
-
}
|
|
134
|
-
function attributesFromJSON(jsonString) {
|
|
135
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Attributes$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Attributes' from JSON`);
|
|
136
|
-
}
|
|
137
|
-
/** @internal */
|
|
138
|
-
exports.Relationships$inboundSchema = z.object({});
|
|
139
|
-
/** @internal */
|
|
140
|
-
exports.Relationships$outboundSchema = z.object({});
|
|
141
|
-
/**
|
|
142
|
-
* @internal
|
|
143
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
144
|
-
*/
|
|
145
|
-
var Relationships$;
|
|
146
|
-
(function (Relationships$) {
|
|
147
|
-
/** @deprecated use `Relationships$inboundSchema` instead. */
|
|
148
|
-
Relationships$.inboundSchema = exports.Relationships$inboundSchema;
|
|
149
|
-
/** @deprecated use `Relationships$outboundSchema` instead. */
|
|
150
|
-
Relationships$.outboundSchema = exports.Relationships$outboundSchema;
|
|
151
|
-
})(Relationships$ || (exports.Relationships$ = Relationships$ = {}));
|
|
152
|
-
function relationshipsToJSON(relationships) {
|
|
153
|
-
return JSON.stringify(exports.Relationships$outboundSchema.parse(relationships));
|
|
154
|
-
}
|
|
155
|
-
function relationshipsFromJSON(jsonString) {
|
|
156
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Relationships$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Relationships' from JSON`);
|
|
157
|
-
}
|
|
158
|
-
/** @internal */
|
|
159
|
-
exports.Links$inboundSchema = z
|
|
160
|
-
.object({});
|
|
161
|
-
/** @internal */
|
|
162
|
-
exports.Links$outboundSchema = z.object({});
|
|
163
|
-
/**
|
|
164
|
-
* @internal
|
|
165
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
166
|
-
*/
|
|
167
|
-
var Links$;
|
|
168
|
-
(function (Links$) {
|
|
169
|
-
/** @deprecated use `Links$inboundSchema` instead. */
|
|
170
|
-
Links$.inboundSchema = exports.Links$inboundSchema;
|
|
171
|
-
/** @deprecated use `Links$outboundSchema` instead. */
|
|
172
|
-
Links$.outboundSchema = exports.Links$outboundSchema;
|
|
173
|
-
})(Links$ || (exports.Links$ = Links$ = {}));
|
|
174
|
-
function linksToJSON(links) {
|
|
175
|
-
return JSON.stringify(exports.Links$outboundSchema.parse(links));
|
|
176
|
-
}
|
|
177
|
-
function linksFromJSON(jsonString) {
|
|
178
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Links$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Links' from JSON`);
|
|
179
|
-
}
|
|
180
|
-
/** @internal */
|
|
181
|
-
exports.Included$inboundSchema = z.object({
|
|
182
|
-
type: components.ResourceTypes$inboundSchema,
|
|
183
|
-
id: z.string(),
|
|
184
|
-
attributes: z.lazy(() => exports.Attributes$inboundSchema).optional(),
|
|
185
|
-
relationships: z.lazy(() => exports.Relationships$inboundSchema),
|
|
186
|
-
links: z.record(z.lazy(() => exports.Links$inboundSchema)).optional(),
|
|
187
|
-
meta: z.record(z.any()).optional(),
|
|
188
|
-
});
|
|
189
|
-
/** @internal */
|
|
190
|
-
exports.Included$outboundSchema = z.object({
|
|
191
|
-
type: components.ResourceTypes$outboundSchema,
|
|
192
|
-
id: z.string(),
|
|
193
|
-
attributes: z.lazy(() => exports.Attributes$outboundSchema).optional(),
|
|
194
|
-
relationships: z.lazy(() => exports.Relationships$outboundSchema),
|
|
195
|
-
links: z.record(z.lazy(() => exports.Links$outboundSchema)).optional(),
|
|
196
|
-
meta: z.record(z.any()).optional(),
|
|
197
|
-
});
|
|
198
|
-
/**
|
|
199
|
-
* @internal
|
|
200
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
201
|
-
*/
|
|
202
|
-
var Included$;
|
|
203
|
-
(function (Included$) {
|
|
204
|
-
/** @deprecated use `Included$inboundSchema` instead. */
|
|
205
|
-
Included$.inboundSchema = exports.Included$inboundSchema;
|
|
206
|
-
/** @deprecated use `Included$outboundSchema` instead. */
|
|
207
|
-
Included$.outboundSchema = exports.Included$outboundSchema;
|
|
208
|
-
})(Included$ || (exports.Included$ = Included$ = {}));
|
|
209
|
-
function includedToJSON(included) {
|
|
210
|
-
return JSON.stringify(exports.Included$outboundSchema.parse(included));
|
|
211
|
-
}
|
|
212
|
-
function includedFromJSON(jsonString) {
|
|
213
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Included$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Included' from JSON`);
|
|
214
|
-
}
|
|
215
|
-
/** @internal */
|
|
216
109
|
exports.CreateApplicationResponseBody$inboundSchema = z.object({
|
|
217
110
|
data: components.ApplicationResource$inboundSchema,
|
|
218
|
-
included: z.array(
|
|
111
|
+
included: z.array(components.ApplicationResource$inboundSchema).optional(),
|
|
219
112
|
links: components.LinkObject$inboundSchema.optional(),
|
|
220
113
|
});
|
|
221
114
|
/** @internal */
|
|
222
115
|
exports.CreateApplicationResponseBody$outboundSchema = z.object({
|
|
223
116
|
data: components.ApplicationResource$outboundSchema,
|
|
224
|
-
included: z.array(
|
|
117
|
+
included: z.array(components.ApplicationResource$outboundSchema).optional(),
|
|
225
118
|
links: components.LinkObject$outboundSchema.optional(),
|
|
226
119
|
});
|
|
227
120
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createapplication.js","sourceRoot":"","sources":["../../src/models/operations/createapplication.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"createap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KAAK,EAAE,UAAU,CAAC,yBAAyB,CAAC,QAAQ,EAAE;CACvD,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,8BAA8B,CAO9C;AAPD,WAAiB,8BAA8B;IAC7C,6EAA6E;IAChE,4CAAa,GAAG,mDAA2C,CAAC;IACzE,8EAA8E;IACjE,6CAAc,GAAG,oDAA4C,CAAC;AAG7E,CAAC,EAPgB,8BAA8B,8CAA9B,8BAA8B,QAO9C;AAED,SAAgB,mCAAmC,CACjD,6BAA4D;IAE5D,OAAO,IAAI,CAAC,SAAS,CACnB,oDAA4C,CAAC,KAAK,CAChD,6BAA6B,CAC9B,CACF,CAAC;AACJ,CAAC;AAED,SAAgB,qCAAqC,CACnD,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,mDAA2C,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACvE,2DAA2D,CAC5D,CAAC;AACJ,CAAC"}
|
|
@@ -2,6 +2,9 @@ import * as z from "zod";
|
|
|
2
2
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
3
|
import * as components from "../components/index.js";
|
|
4
4
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
5
|
+
/**
|
|
6
|
+
* The supporting document resource to create.
|
|
7
|
+
*/
|
|
5
8
|
export type SupportingDocumentsCreateRequestBody = {
|
|
6
9
|
data: components.SupportingDocumentResource;
|
|
7
10
|
};
|
|
@@ -10,8 +13,17 @@ export type SupportingDocumentsCreateRequest = {
|
|
|
10
13
|
* The MIME type of the document
|
|
11
14
|
*/
|
|
12
15
|
mimeType: components.UploadMimetype;
|
|
16
|
+
/**
|
|
17
|
+
* The supporting document resource to create.
|
|
18
|
+
*/
|
|
13
19
|
requestBody: SupportingDocumentsCreateRequestBody;
|
|
14
20
|
};
|
|
21
|
+
/**
|
|
22
|
+
* The request has succeeded and a new resource has been created as a result.
|
|
23
|
+
*/
|
|
24
|
+
export type SupportingDocumentsCreateResponseBody = {
|
|
25
|
+
data: components.CreateSupportingDocumentsResponse;
|
|
26
|
+
};
|
|
15
27
|
/** @internal */
|
|
16
28
|
export declare const SupportingDocumentsCreateRequestBody$inboundSchema: z.ZodType<SupportingDocumentsCreateRequestBody, z.ZodTypeDef, unknown>;
|
|
17
29
|
/** @internal */
|
|
@@ -57,4 +69,26 @@ export declare namespace SupportingDocumentsCreateRequest$ {
|
|
|
57
69
|
}
|
|
58
70
|
export declare function supportingDocumentsCreateRequestToJSON(supportingDocumentsCreateRequest: SupportingDocumentsCreateRequest): string;
|
|
59
71
|
export declare function supportingDocumentsCreateRequestFromJSON(jsonString: string): SafeParseResult<SupportingDocumentsCreateRequest, SDKValidationError>;
|
|
72
|
+
/** @internal */
|
|
73
|
+
export declare const SupportingDocumentsCreateResponseBody$inboundSchema: z.ZodType<SupportingDocumentsCreateResponseBody, z.ZodTypeDef, unknown>;
|
|
74
|
+
/** @internal */
|
|
75
|
+
export type SupportingDocumentsCreateResponseBody$Outbound = {
|
|
76
|
+
data: components.CreateSupportingDocumentsResponse$Outbound;
|
|
77
|
+
};
|
|
78
|
+
/** @internal */
|
|
79
|
+
export declare const SupportingDocumentsCreateResponseBody$outboundSchema: z.ZodType<SupportingDocumentsCreateResponseBody$Outbound, z.ZodTypeDef, SupportingDocumentsCreateResponseBody>;
|
|
80
|
+
/**
|
|
81
|
+
* @internal
|
|
82
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
83
|
+
*/
|
|
84
|
+
export declare namespace SupportingDocumentsCreateResponseBody$ {
|
|
85
|
+
/** @deprecated use `SupportingDocumentsCreateResponseBody$inboundSchema` instead. */
|
|
86
|
+
const inboundSchema: z.ZodType<SupportingDocumentsCreateResponseBody, z.ZodTypeDef, unknown>;
|
|
87
|
+
/** @deprecated use `SupportingDocumentsCreateResponseBody$outboundSchema` instead. */
|
|
88
|
+
const outboundSchema: z.ZodType<SupportingDocumentsCreateResponseBody$Outbound, z.ZodTypeDef, SupportingDocumentsCreateResponseBody>;
|
|
89
|
+
/** @deprecated use `SupportingDocumentsCreateResponseBody$Outbound` instead. */
|
|
90
|
+
type Outbound = SupportingDocumentsCreateResponseBody$Outbound;
|
|
91
|
+
}
|
|
92
|
+
export declare function supportingDocumentsCreateResponseBodyToJSON(supportingDocumentsCreateResponseBody: SupportingDocumentsCreateResponseBody): string;
|
|
93
|
+
export declare function supportingDocumentsCreateResponseBodyFromJSON(jsonString: string): SafeParseResult<SupportingDocumentsCreateResponseBody, SDKValidationError>;
|
|
60
94
|
//# sourceMappingURL=supportingdocumentscreate.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"supportingdocumentscreate.d.ts","sourceRoot":"","sources":["../../src/models/operations/supportingdocumentscreate.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,oCAAoC,GAAG;IACjD,IAAI,EAAE,UAAU,CAAC,0BAA0B,CAAC;CAC7C,CAAC;AAEF,MAAM,MAAM,gCAAgC,GAAG;IAC7C;;OAEG;IACH,QAAQ,EAAE,UAAU,CAAC,cAAc,CAAC;IACpC,WAAW,EAAE,oCAAoC,CAAC;CACnD,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,kDAAkD,EAAE,CAAC,CAAC,OAAO,CACxE,oCAAoC,EACpC,CAAC,CAAC,UAAU,EACZ,OAAO,CAGP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,6CAA6C,GAAG;IAC1D,IAAI,EAAE,UAAU,CAAC,mCAAmC,CAAC;CACtD,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,mDA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"version":3,"file":"supportingdocumentscreate.d.ts","sourceRoot":"","sources":["../../src/models/operations/supportingdocumentscreate.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,oCAAoC,GAAG;IACjD,IAAI,EAAE,UAAU,CAAC,0BAA0B,CAAC;CAC7C,CAAC;AAEF,MAAM,MAAM,gCAAgC,GAAG;IAC7C;;OAEG;IACH,QAAQ,EAAE,UAAU,CAAC,cAAc,CAAC;IACpC;;OAEG;IACH,WAAW,EAAE,oCAAoC,CAAC;CACnD,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,qCAAqC,GAAG;IAClD,IAAI,EAAE,UAAU,CAAC,iCAAiC,CAAC;CACpD,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,kDAAkD,EAAE,CAAC,CAAC,OAAO,CACxE,oCAAoC,EACpC,CAAC,CAAC,UAAU,EACZ,OAAO,CAGP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,6CAA6C,GAAG;IAC1D,IAAI,EAAE,UAAU,CAAC,mCAAmC,CAAC;CACtD,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,mDAAmD,EAAE,CAAC,CAAC,OAAO,CACzE,6CAA6C,EAC7C,CAAC,CAAC,UAAU,EACZ,oCAAoC,CAGpC,CAAC;AAEH;;;GAGG;AACH,yBAAiB,qCAAqC,CAAC;IACrD,oFAAoF;IAC7E,MAAM,aAAa,wEAC0B,CAAC;IACrD,qFAAqF;IAC9E,MAAM,cAAc,8GAC0B,CAAC;IACtD,+EAA+E;IAC/E,KAAY,QAAQ,GAAG,6CAA6C,CAAC;CACtE;AAED,wBAAgB,0CAA0C,CACxD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EACZ,qCAAqC,CAGrC,CAAC;AAEH;;;GAGG;AACH,yBAAiB,sCAAsC,CAAC;IACtD,qFAAqF;IAC9E,MAAM,aAAa,yEAC2B,CAAC;IACtD,sFAAsF;IAC/E,MAAM,cAAc,gHAC2B,CAAC;IACvD,gFAAgF;IAChF,KAAY,QAAQ,GAAG,8CAA8C,CAAC;CACvE;AAED,wBAAgB,2CAA2C,CACzD,qCAAqC,EAAE,qCAAqC,GAC3E,MAAM,CAMR;AAED,wBAAgB,6CAA6C,CAC3D,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,qCAAqC,EAAE,kBAAkB,CAAC,CAO5E"}
|
|
@@ -36,11 +36,13 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.SupportingDocumentsCreateRequest$ = exports.SupportingDocumentsCreateRequest$outboundSchema = exports.SupportingDocumentsCreateRequest$inboundSchema = exports.SupportingDocumentsCreateRequestBody$ = exports.SupportingDocumentsCreateRequestBody$outboundSchema = exports.SupportingDocumentsCreateRequestBody$inboundSchema = void 0;
|
|
39
|
+
exports.SupportingDocumentsCreateResponseBody$ = exports.SupportingDocumentsCreateResponseBody$outboundSchema = exports.SupportingDocumentsCreateResponseBody$inboundSchema = exports.SupportingDocumentsCreateRequest$ = exports.SupportingDocumentsCreateRequest$outboundSchema = exports.SupportingDocumentsCreateRequest$inboundSchema = exports.SupportingDocumentsCreateRequestBody$ = exports.SupportingDocumentsCreateRequestBody$outboundSchema = exports.SupportingDocumentsCreateRequestBody$inboundSchema = void 0;
|
|
40
40
|
exports.supportingDocumentsCreateRequestBodyToJSON = supportingDocumentsCreateRequestBodyToJSON;
|
|
41
41
|
exports.supportingDocumentsCreateRequestBodyFromJSON = supportingDocumentsCreateRequestBodyFromJSON;
|
|
42
42
|
exports.supportingDocumentsCreateRequestToJSON = supportingDocumentsCreateRequestToJSON;
|
|
43
43
|
exports.supportingDocumentsCreateRequestFromJSON = supportingDocumentsCreateRequestFromJSON;
|
|
44
|
+
exports.supportingDocumentsCreateResponseBodyToJSON = supportingDocumentsCreateResponseBodyToJSON;
|
|
45
|
+
exports.supportingDocumentsCreateResponseBodyFromJSON = supportingDocumentsCreateResponseBodyFromJSON;
|
|
44
46
|
const z = __importStar(require("zod"));
|
|
45
47
|
const primitives_js_1 = require("../../lib/primitives.js");
|
|
46
48
|
const schemas_js_1 = require("../../lib/schemas.js");
|
|
@@ -105,4 +107,29 @@ function supportingDocumentsCreateRequestToJSON(supportingDocumentsCreateRequest
|
|
|
105
107
|
function supportingDocumentsCreateRequestFromJSON(jsonString) {
|
|
106
108
|
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.SupportingDocumentsCreateRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SupportingDocumentsCreateRequest' from JSON`);
|
|
107
109
|
}
|
|
110
|
+
/** @internal */
|
|
111
|
+
exports.SupportingDocumentsCreateResponseBody$inboundSchema = z.object({
|
|
112
|
+
data: components.CreateSupportingDocumentsResponse$inboundSchema,
|
|
113
|
+
});
|
|
114
|
+
/** @internal */
|
|
115
|
+
exports.SupportingDocumentsCreateResponseBody$outboundSchema = z.object({
|
|
116
|
+
data: components.CreateSupportingDocumentsResponse$outboundSchema,
|
|
117
|
+
});
|
|
118
|
+
/**
|
|
119
|
+
* @internal
|
|
120
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
121
|
+
*/
|
|
122
|
+
var SupportingDocumentsCreateResponseBody$;
|
|
123
|
+
(function (SupportingDocumentsCreateResponseBody$) {
|
|
124
|
+
/** @deprecated use `SupportingDocumentsCreateResponseBody$inboundSchema` instead. */
|
|
125
|
+
SupportingDocumentsCreateResponseBody$.inboundSchema = exports.SupportingDocumentsCreateResponseBody$inboundSchema;
|
|
126
|
+
/** @deprecated use `SupportingDocumentsCreateResponseBody$outboundSchema` instead. */
|
|
127
|
+
SupportingDocumentsCreateResponseBody$.outboundSchema = exports.SupportingDocumentsCreateResponseBody$outboundSchema;
|
|
128
|
+
})(SupportingDocumentsCreateResponseBody$ || (exports.SupportingDocumentsCreateResponseBody$ = SupportingDocumentsCreateResponseBody$ = {}));
|
|
129
|
+
function supportingDocumentsCreateResponseBodyToJSON(supportingDocumentsCreateResponseBody) {
|
|
130
|
+
return JSON.stringify(exports.SupportingDocumentsCreateResponseBody$outboundSchema.parse(supportingDocumentsCreateResponseBody));
|
|
131
|
+
}
|
|
132
|
+
function supportingDocumentsCreateResponseBodyFromJSON(jsonString) {
|
|
133
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.SupportingDocumentsCreateResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SupportingDocumentsCreateResponseBody' from JSON`);
|
|
134
|
+
}
|
|
108
135
|
//# sourceMappingURL=supportingdocumentscreate.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"supportingdocumentscreate.js","sourceRoot":"","sources":["../../src/models/operations/supportingdocumentscreate.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"supportingdocumentscreate.js","sourceRoot":"","sources":["../../src/models/operations/supportingdocumentscreate.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwEH,gGAQC;AAED,oGASC;AAmDD,wFAQC;AAED,4FAQC;AAwCD,kGAQC;AAED,sGASC;AAzND,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAEjD,mEAAqD;AA4BrD,gBAAgB;AACH,QAAA,kDAAkD,GAI3D,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,UAAU,CAAC,wCAAwC;CAC1D,CAAC,CAAC;AAOH,gBAAgB;AACH,QAAA,mDAAmD,GAI5D,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,UA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O,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CACJ,2DAAmD,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC1E,mEAAmE,CACpE,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
2
|
-
import * as components from "../models/components/index.js";
|
|
3
2
|
import * as operations from "../models/operations/index.js";
|
|
4
3
|
export declare class SupportingDocuments extends ClientSDK {
|
|
5
4
|
/**
|
|
6
5
|
* Create a supporting document record in Financeable, and returns a pre-signed URL to upload this document with.
|
|
7
6
|
*/
|
|
8
|
-
create(request: operations.SupportingDocumentsCreateRequest, options?: RequestOptions): Promise<
|
|
7
|
+
create(request: operations.SupportingDocumentsCreateRequest, options?: RequestOptions): Promise<operations.SupportingDocumentsCreateResponseBody>;
|
|
9
8
|
}
|
|
10
9
|
//# sourceMappingURL=supportingdocuments.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"supportingdocuments.d.ts","sourceRoot":"","sources":["../src/sdk/supportingdocuments.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"supportingdocuments.d.ts","sourceRoot":"","sources":["../src/sdk/supportingdocuments.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,mBAAoB,SAAQ,SAAS;IAChD;;OAEG;IACG,MAAM,CACV,OAAO,EAAE,UAAU,CAAC,gCAAgC,EACpD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,qCAAqC,CAAC;CAO7D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"supportingdocuments.js","sourceRoot":"","sources":["../src/sdk/supportingdocuments.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,wFAAkF;AAClF,4CAA2D;
|
|
1
|
+
{"version":3,"file":"supportingdocuments.js","sourceRoot":"","sources":["../src/sdk/supportingdocuments.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,wFAAkF;AAClF,4CAA2D;AAE3D,0CAA6C;AAE7C,MAAa,mBAAoB,SAAQ,mBAAS;IAChD;;OAEG;IACH,KAAK,CAAC,MAAM,CACV,OAAoD,EACpD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,wDAAyB,EAC1C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;AAdD,kDAcC"}
|
|
@@ -35,6 +35,7 @@ export function applicationsCreate(
|
|
|
35
35
|
Result<
|
|
36
36
|
operations.CreateApplicationResponseBody,
|
|
37
37
|
| errors.CreateApplicationResponseBody
|
|
38
|
+
| errors.CreateApplicationApplicationsResponseBody
|
|
38
39
|
| APIError
|
|
39
40
|
| SDKValidationError
|
|
40
41
|
| UnexpectedClientError
|
|
@@ -60,6 +61,7 @@ async function $do(
|
|
|
60
61
|
Result<
|
|
61
62
|
operations.CreateApplicationResponseBody,
|
|
62
63
|
| errors.CreateApplicationResponseBody
|
|
64
|
+
| errors.CreateApplicationApplicationsResponseBody
|
|
63
65
|
| APIError
|
|
64
66
|
| SDKValidationError
|
|
65
67
|
| UnexpectedClientError
|
|
@@ -126,7 +128,7 @@ async function $do(
|
|
|
126
128
|
|
|
127
129
|
const doResult = await client._do(req, {
|
|
128
130
|
context,
|
|
129
|
-
errorCodes: ["403", "4XX", "5XX"],
|
|
131
|
+
errorCodes: ["403", "404", "4XX", "5XX"],
|
|
130
132
|
retryConfig: context.retryConfig,
|
|
131
133
|
retryCodes: context.retryCodes,
|
|
132
134
|
});
|
|
@@ -142,6 +144,7 @@ async function $do(
|
|
|
142
144
|
const [result] = await M.match<
|
|
143
145
|
operations.CreateApplicationResponseBody,
|
|
144
146
|
| errors.CreateApplicationResponseBody
|
|
147
|
+
| errors.CreateApplicationApplicationsResponseBody
|
|
145
148
|
| APIError
|
|
146
149
|
| SDKValidationError
|
|
147
150
|
| UnexpectedClientError
|
|
@@ -152,6 +155,10 @@ async function $do(
|
|
|
152
155
|
>(
|
|
153
156
|
M.json(201, operations.CreateApplicationResponseBody$inboundSchema),
|
|
154
157
|
M.jsonErr(403, errors.CreateApplicationResponseBody$inboundSchema),
|
|
158
|
+
M.jsonErr(
|
|
159
|
+
404,
|
|
160
|
+
errors.CreateApplicationApplicationsResponseBody$inboundSchema,
|
|
161
|
+
),
|
|
155
162
|
M.fail("4XX"),
|
|
156
163
|
M.fail("5XX"),
|
|
157
164
|
)(response, { extraFields: responseFields });
|
|
@@ -10,7 +10,6 @@ import { safeParse } from "../lib/schemas.js";
|
|
|
10
10
|
import { RequestOptions } from "../lib/sdks.js";
|
|
11
11
|
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
12
12
|
import { pathToFunc } from "../lib/url.js";
|
|
13
|
-
import * as components from "../models/components/index.js";
|
|
14
13
|
import { APIError } from "../models/errors/apierror.js";
|
|
15
14
|
import {
|
|
16
15
|
ConnectionError,
|
|
@@ -34,7 +33,7 @@ export function supportingDocumentsCreate(
|
|
|
34
33
|
options?: RequestOptions,
|
|
35
34
|
): APIPromise<
|
|
36
35
|
Result<
|
|
37
|
-
|
|
36
|
+
operations.SupportingDocumentsCreateResponseBody,
|
|
38
37
|
| errors.SupportingDocumentsCreateResponseBody
|
|
39
38
|
| errors.SupportingDocumentsCreateSupportingDocumentsResponseBody
|
|
40
39
|
| APIError
|
|
@@ -60,7 +59,7 @@ async function $do(
|
|
|
60
59
|
): Promise<
|
|
61
60
|
[
|
|
62
61
|
Result<
|
|
63
|
-
|
|
62
|
+
operations.SupportingDocumentsCreateResponseBody,
|
|
64
63
|
| errors.SupportingDocumentsCreateResponseBody
|
|
65
64
|
| errors.SupportingDocumentsCreateSupportingDocumentsResponseBody
|
|
66
65
|
| APIError
|
|
@@ -148,7 +147,7 @@ async function $do(
|
|
|
148
147
|
};
|
|
149
148
|
|
|
150
149
|
const [result] = await M.match<
|
|
151
|
-
|
|
150
|
+
operations.SupportingDocumentsCreateResponseBody,
|
|
152
151
|
| errors.SupportingDocumentsCreateResponseBody
|
|
153
152
|
| errors.SupportingDocumentsCreateSupportingDocumentsResponseBody
|
|
154
153
|
| APIError
|
|
@@ -159,7 +158,7 @@ async function $do(
|
|
|
159
158
|
| RequestTimeoutError
|
|
160
159
|
| ConnectionError
|
|
161
160
|
>(
|
|
162
|
-
M.json(201,
|
|
161
|
+
M.json(201, operations.SupportingDocumentsCreateResponseBody$inboundSchema),
|
|
163
162
|
M.jsonErr(400, errors.SupportingDocumentsCreateResponseBody$inboundSchema),
|
|
164
163
|
M.jsonErr(
|
|
165
164
|
404,
|
package/src/lib/config.ts
CHANGED
|
@@ -54,8 +54,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
54
54
|
export const SDK_METADATA = {
|
|
55
55
|
language: "typescript",
|
|
56
56
|
openapiDocVersion: "0.4.0",
|
|
57
|
-
sdkVersion: "0.6.
|
|
57
|
+
sdkVersion: "0.6.1",
|
|
58
58
|
genVersion: "2.599.0",
|
|
59
59
|
userAgent:
|
|
60
|
-
"speakeasy-sdk/typescript 0.6.
|
|
60
|
+
"speakeasy-sdk/typescript 0.6.1 2.599.0 0.4.0 @financeable/aggregation",
|
|
61
61
|
} as const;
|
|
@@ -22,6 +22,7 @@ export type AddressAttributesStatus = ClosedEnum<
|
|
|
22
22
|
>;
|
|
23
23
|
|
|
24
24
|
export type AddressAttributes = {
|
|
25
|
+
id: string;
|
|
25
26
|
unitNumber?: number | undefined;
|
|
26
27
|
addressType: string;
|
|
27
28
|
fullAddress: string;
|
|
@@ -66,6 +67,7 @@ export const AddressAttributes$inboundSchema: z.ZodType<
|
|
|
66
67
|
z.ZodTypeDef,
|
|
67
68
|
unknown
|
|
68
69
|
> = z.object({
|
|
70
|
+
id: z.string(),
|
|
69
71
|
unitNumber: z.number().int().optional(),
|
|
70
72
|
addressType: z.string(),
|
|
71
73
|
fullAddress: z.string(),
|
|
@@ -85,6 +87,7 @@ export const AddressAttributes$inboundSchema: z.ZodType<
|
|
|
85
87
|
|
|
86
88
|
/** @internal */
|
|
87
89
|
export type AddressAttributes$Outbound = {
|
|
90
|
+
id: string;
|
|
88
91
|
unitNumber?: number | undefined;
|
|
89
92
|
addressType: string;
|
|
90
93
|
fullAddress: string;
|
|
@@ -108,6 +111,7 @@ export const AddressAttributes$outboundSchema: z.ZodType<
|
|
|
108
111
|
z.ZodTypeDef,
|
|
109
112
|
AddressAttributes
|
|
110
113
|
> = z.object({
|
|
114
|
+
id: z.string(),
|
|
111
115
|
unitNumber: z.number().int().optional(),
|
|
112
116
|
addressType: z.string(),
|
|
113
117
|
fullAddress: z.string(),
|
|
@@ -7,24 +7,24 @@ import { safeParse } from "../../lib/schemas.js";
|
|
|
7
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
} from "./
|
|
10
|
+
CommercialSecuredApplicationResource,
|
|
11
|
+
CommercialSecuredApplicationResource$inboundSchema,
|
|
12
|
+
CommercialSecuredApplicationResource$Outbound,
|
|
13
|
+
CommercialSecuredApplicationResource$outboundSchema,
|
|
14
|
+
} from "./commercialsecuredapplicationresource.js";
|
|
15
15
|
import {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
} from "./
|
|
16
|
+
ConsumerSecuredApplicationResource,
|
|
17
|
+
ConsumerSecuredApplicationResource$inboundSchema,
|
|
18
|
+
ConsumerSecuredApplicationResource$Outbound,
|
|
19
|
+
ConsumerSecuredApplicationResource$outboundSchema,
|
|
20
|
+
} from "./consumersecuredapplicationresource.js";
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
23
|
* Represents either a Consumer or Commercial Application resource
|
|
24
24
|
*/
|
|
25
25
|
export type ApplicationResource =
|
|
26
|
-
|
|
|
27
|
-
|
|
|
26
|
+
| ConsumerSecuredApplicationResource
|
|
27
|
+
| CommercialSecuredApplicationResource;
|
|
28
28
|
|
|
29
29
|
/** @internal */
|
|
30
30
|
export const ApplicationResource$inboundSchema: z.ZodType<
|
|
@@ -32,14 +32,14 @@ export const ApplicationResource$inboundSchema: z.ZodType<
|
|
|
32
32
|
z.ZodTypeDef,
|
|
33
33
|
unknown
|
|
34
34
|
> = z.union([
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
ConsumerSecuredApplicationResource$inboundSchema,
|
|
36
|
+
CommercialSecuredApplicationResource$inboundSchema,
|
|
37
37
|
]);
|
|
38
38
|
|
|
39
39
|
/** @internal */
|
|
40
40
|
export type ApplicationResource$Outbound =
|
|
41
|
-
|
|
|
42
|
-
|
|
|
41
|
+
| ConsumerSecuredApplicationResource$Outbound
|
|
42
|
+
| CommercialSecuredApplicationResource$Outbound;
|
|
43
43
|
|
|
44
44
|
/** @internal */
|
|
45
45
|
export const ApplicationResource$outboundSchema: z.ZodType<
|
|
@@ -47,8 +47,8 @@ export const ApplicationResource$outboundSchema: z.ZodType<
|
|
|
47
47
|
z.ZodTypeDef,
|
|
48
48
|
ApplicationResource
|
|
49
49
|
> = z.union([
|
|
50
|
-
|
|
51
|
-
|
|
50
|
+
ConsumerSecuredApplicationResource$outboundSchema,
|
|
51
|
+
CommercialSecuredApplicationResource$outboundSchema,
|
|
52
52
|
]);
|
|
53
53
|
|
|
54
54
|
/**
|