@financeable/aggregation 0.13.2 → 0.13.4
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/core.js +17 -0
- package/hooks/hooks.js +84 -0
- package/hooks/hooks.js.map +1 -0
- package/hooks/index.js +22 -0
- package/hooks/index.js.map +1 -0
- package/hooks/oauth2scopes.d.ts +13 -0
- package/hooks/oauth2scopes.d.ts.map +1 -0
- package/hooks/oauth2scopes.js +6 -0
- package/hooks/oauth2scopes.js.map +1 -0
- package/hooks/types.js +6 -0
- package/hooks/types.js.map +1 -0
- package/index.js +48 -0
- package/lib/base64.js +71 -0
- package/lib/base64.js.map +1 -0
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/lib/dlv.d.ts +14 -0
- package/lib/dlv.d.ts.map +1 -0
- package/lib/dlv.js +49 -0
- package/lib/dlv.js.map +1 -0
- package/lib/encodings.js +379 -0
- package/lib/encodings.js.map +1 -0
- package/lib/env.js +82 -0
- package/lib/env.js.map +1 -0
- package/lib/files.d.ts +13 -0
- package/lib/files.d.ts.map +1 -0
- package/lib/files.js +77 -0
- package/lib/files.js.map +1 -0
- package/lib/http.d.ts +67 -0
- package/lib/http.d.ts.map +1 -0
- package/lib/http.js +217 -0
- package/lib/http.js.map +1 -0
- package/lib/is-plain-object.d.ts +2 -0
- package/lib/is-plain-object.d.ts.map +1 -0
- package/lib/is-plain-object.js +41 -0
- package/lib/is-plain-object.js.map +1 -0
- package/lib/logger.d.ts +6 -0
- package/lib/logger.d.ts.map +1 -0
- package/lib/logger.js +6 -0
- package/lib/logger.js.map +1 -0
- package/lib/matchers.js +218 -0
- package/lib/matchers.js.map +1 -0
- package/lib/primitives.d.ts +26 -0
- package/lib/primitives.d.ts.map +1 -0
- package/lib/primitives.js +111 -0
- package/lib/primitives.js.map +1 -0
- package/lib/retries.d.ts +38 -0
- package/lib/retries.d.ts.map +1 -0
- package/lib/retries.js +153 -0
- package/lib/retries.js.map +1 -0
- package/lib/schemas.js +62 -0
- package/lib/schemas.js.map +1 -0
- package/lib/sdks.js +274 -0
- package/lib/sdks.js.map +1 -0
- package/lib/security.js +145 -0
- package/lib/security.js.map +1 -0
- package/lib/url.d.ts +5 -0
- package/lib/url.d.ts.map +1 -0
- package/lib/url.js +25 -0
- package/lib/url.js.map +1 -0
- package/models/components/addressattributes.js +98 -0
- package/models/components/addressattributes.js.map +1 -0
- package/models/components/apierrorlinks.js +50 -0
- package/models/components/apierrorlinks.js.map +1 -0
- package/models/components/applicationresource.js +57 -0
- package/models/components/applicationresource.js.map +1 -0
- package/models/components/applicationstatus.js +53 -0
- package/models/components/applicationstatus.js.map +1 -0
- package/models/components/australianstatesandterritories.js +55 -0
- package/models/components/australianstatesandterritories.js.map +1 -0
- package/models/components/badrequesterror.js +69 -0
- package/models/components/badrequesterror.js.map +1 -0
- package/models/components/businessapplicationjsonapirelationships.js +126 -0
- package/models/components/businessapplicationjsonapirelationships.js.map +1 -0
- package/models/components/businessapplicationpayload.js +79 -0
- package/models/components/businessapplicationpayload.js.map +1 -0
- package/models/components/businessapplicationresource.js +82 -0
- package/models/components/businessapplicationresource.js.map +1 -0
- package/models/components/businessloanbusinessapplicationrelationships.js +221 -0
- package/models/components/businessloanbusinessapplicationrelationships.js.map +1 -0
- package/models/components/commercialapplicationjsonapirelationships.js +153 -0
- package/models/components/commercialapplicationjsonapirelationships.js.map +1 -0
- package/models/components/commercialsecuredapplicationpayload.js +88 -0
- package/models/components/commercialsecuredapplicationpayload.js.map +1 -0
- package/models/components/commercialsecuredapplicationresource.js +81 -0
- package/models/components/commercialsecuredapplicationresource.js.map +1 -0
- package/models/components/commercialsecuredloanassetattributes.js +223 -0
- package/models/components/commercialsecuredloanassetattributes.js.map +1 -0
- package/models/components/commercialsecuredloanassettype.js +73 -0
- package/models/components/commercialsecuredloanassettype.js.map +1 -0
- package/models/components/commercialsecuredloancommercialapplicationrelationships.js +247 -0
- package/models/components/commercialsecuredloancommercialapplicationrelationships.js.map +1 -0
- package/models/components/commercialsecuredloantypeofsale.js +53 -0
- package/models/components/commercialsecuredloantypeofsale.js.map +1 -0
- package/models/components/consumerapplicationjsonapirelationships.js +127 -0
- package/models/components/consumerapplicationjsonapirelationships.js.map +1 -0
- package/models/components/consumersecuredapplicationpayload.js +89 -0
- package/models/components/consumersecuredapplicationpayload.js.map +1 -0
- package/models/components/consumersecuredapplicationresource.js +82 -0
- package/models/components/consumersecuredapplicationresource.js.map +1 -0
- package/models/components/consumersecuredloanassetattributes.js +225 -0
- package/models/components/consumersecuredloanassetattributes.js.map +1 -0
- package/models/components/consumersecuredloanassettype.js +61 -0
- package/models/components/consumersecuredloanassettype.js.map +1 -0
- package/models/components/consumersecuredloanconsumerapplicationrelationships.js +280 -0
- package/models/components/consumersecuredloanconsumerapplicationrelationships.js.map +1 -0
- package/models/components/consumersecuredloantypeofsale.js +53 -0
- package/models/components/consumersecuredloantypeofsale.js.map +1 -0
- package/models/components/createsupportingdocumentsresponse.js +82 -0
- package/models/components/createsupportingdocumentsresponse.js.map +1 -0
- package/models/components/currencycodeiso4217.js +48 -0
- package/models/components/currencycodeiso4217.js.map +1 -0
- package/models/components/customerassetattributes.js +66 -0
- package/models/components/customerassetattributes.js.map +1 -0
- package/models/components/customerassettype.js +55 -0
- package/models/components/customerassettype.js.map +1 -0
- package/models/components/customerattributes.js +68 -0
- package/models/components/customerattributes.js.map +1 -0
- package/models/components/customerattributescreateitem.js +73 -0
- package/models/components/customerattributescreateitem.js.map +1 -0
- package/models/components/customeridtype.js +47 -0
- package/models/components/customeridtype.js.map +1 -0
- package/models/components/customerliabilityattributes.js +77 -0
- package/models/components/customerliabilityattributes.js.map +1 -0
- package/models/components/customerliabilityrepaymentfrequency.js +50 -0
- package/models/components/customerliabilityrepaymentfrequency.js.map +1 -0
- package/models/components/customerliabilitytype.js +53 -0
- package/models/components/customerliabilitytype.js.map +1 -0
- package/models/components/customertitle.js +51 -0
- package/models/components/customertitle.js.map +1 -0
- package/models/components/documenttype.js +64 -0
- package/models/components/documenttype.js.map +1 -0
- package/models/components/entityattributes.js +91 -0
- package/models/components/entityattributes.js.map +1 -0
- package/models/components/entityattributesinput.js +55 -0
- package/models/components/entityattributesinput.js.map +1 -0
- package/models/components/errorsource.js +52 -0
- package/models/components/errorsource.js.map +1 -0
- package/models/components/expenseattributes.js +55 -0
- package/models/components/expenseattributes.js.map +1 -0
- package/models/components/expensefrequency.js +48 -0
- package/models/components/expensefrequency.js.map +1 -0
- package/models/components/expensetype.js +65 -0
- package/models/components/expensetype.js.map +1 -0
- package/models/components/forbiddenerror.js +74 -0
- package/models/components/forbiddenerror.js.map +1 -0
- package/models/components/frequencytype.js +53 -0
- package/models/components/frequencytype.js.map +1 -0
- package/models/components/incomeattributes.js +55 -0
- package/models/components/incomeattributes.js.map +1 -0
- package/models/components/incomefrequency.js +49 -0
- package/models/components/incomefrequency.js.map +1 -0
- package/models/components/incometype.js +55 -0
- package/models/components/incometype.js.map +1 -0
- package/models/components/index.js +91 -0
- package/models/components/index.js.map +1 -0
- package/models/components/linkobject.js +66 -0
- package/models/components/linkobject.js.map +1 -0
- package/models/components/livingarrangements.js +51 -0
- package/models/components/livingarrangements.js.map +1 -0
- package/models/components/loandetailsattributes.js +256 -0
- package/models/components/loandetailsattributes.js.map +1 -0
- package/models/components/maritalstatus.js +49 -0
- package/models/components/maritalstatus.js.map +1 -0
- package/models/components/monetaryquantity.js +71 -0
- package/models/components/monetaryquantity.js.map +1 -0
- package/models/components/paginationlinks.js +53 -0
- package/models/components/paginationlinks.js.map +1 -0
- package/models/components/paginationmeta.js +60 -0
- package/models/components/paginationmeta.js.map +1 -0
- package/models/components/percentagequantity.js +67 -0
- package/models/components/percentagequantity.js.map +1 -0
- package/models/components/personalapplicationjsonapirelationships.js +101 -0
- package/models/components/personalapplicationjsonapirelationships.js.map +1 -0
- package/models/components/personalapplicationpayload.js +79 -0
- package/models/components/personalapplicationpayload.js.map +1 -0
- package/models/components/personalapplicationresource.js +82 -0
- package/models/components/personalapplicationresource.js.map +1 -0
- package/models/components/personalloanpersonalapplicationrelationships.js +249 -0
- package/models/components/personalloanpersonalapplicationrelationships.js.map +1 -0
- package/models/components/relationshipresourcenotfound.js +74 -0
- package/models/components/relationshipresourcenotfound.js.map +1 -0
- package/models/components/repaymentstructure.js +53 -0
- package/models/components/repaymentstructure.js.map +1 -0
- package/models/components/residencystatus.js +52 -0
- package/models/components/residencystatus.js.map +1 -0
- package/models/components/resourcenotfound.js +74 -0
- package/models/components/resourcenotfound.js.map +1 -0
- package/models/components/security.js +49 -0
- package/models/components/security.js.map +1 -0
- package/models/components/supportingdocumentattributes.js +53 -0
- package/models/components/supportingdocumentattributes.js.map +1 -0
- package/models/components/supportingdocumentattributesinput.js +51 -0
- package/models/components/supportingdocumentattributesinput.js.map +1 -0
- package/models/components/supportingdocumentrelationships.js +269 -0
- package/models/components/supportingdocumentrelationships.js.map +1 -0
- package/models/components/supportingdocumentresource.js +61 -0
- package/models/components/supportingdocumentresource.js.map +1 -0
- package/models/components/tokenrequest.js +68 -0
- package/models/components/tokenrequest.js.map +1 -0
- package/models/components/tokenresponse.js +60 -0
- package/models/components/tokenresponse.js.map +1 -0
- package/models/components/uploadmimetype.js +55 -0
- package/models/components/uploadmimetype.js.map +1 -0
- package/models/errors/apierror.d.ts +10 -0
- package/models/errors/apierror.d.ts.map +1 -0
- package/models/errors/apierror.js +34 -0
- package/models/errors/apierror.js.map +1 -0
- 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/httpclienterrors.d.ts +44 -0
- package/models/errors/httpclienterrors.d.ts.map +1 -0
- package/models/errors/httpclienterrors.js +78 -0
- package/models/errors/httpclienterrors.js.map +1 -0
- package/models/errors/index.js +25 -0
- package/models/errors/index.js.map +1 -0
- package/models/errors/responsevalidationerror.js +66 -0
- package/models/errors/responsevalidationerror.js.map +1 -0
- package/models/errors/sdkvalidationerror.js +129 -0
- package/models/errors/sdkvalidationerror.js.map +1 -0
- package/models/operations/createapplication.js +278 -0
- package/models/operations/createapplication.js.map +1 -0
- package/models/operations/getapplication.js +256 -0
- package/models/operations/getapplication.js.map +1 -0
- package/models/operations/index.js +24 -0
- package/models/operations/index.js.map +1 -0
- package/models/operations/listapplications.js +94 -0
- package/models/operations/listapplications.js.map +1 -0
- package/models/operations/supportingdocumentscreate.js +133 -0
- package/models/operations/supportingdocumentscreate.js.map +1 -0
- package/package.json +2 -5
- package/sdk/index.js +21 -0
- package/sdk/index.js.map +1 -0
- package/sdk/sdk.js +23 -0
- package/sdk/sdk.js.map +1 -0
- package/src/lib/config.ts +2 -2
- package/types/async.d.ts +23 -0
- package/types/async.d.ts.map +1 -0
- package/types/async.js +44 -0
- package/types/async.js.map +1 -0
- package/types/blobs.js +62 -0
- package/types/blobs.js.map +1 -0
- package/types/constdatetime.js +46 -0
- package/types/constdatetime.js.map +1 -0
- package/types/enums.js +66 -0
- package/types/enums.js.map +1 -0
- package/types/fp.d.ts +31 -0
- package/types/fp.d.ts.map +1 -0
- package/types/fp.js +37 -0
- package/types/fp.js.map +1 -0
- package/types/index.js +29 -0
- package/types/index.js.map +1 -0
- package/types/operations.d.ts +27 -0
- package/types/operations.d.ts.map +1 -0
- package/types/operations.js +83 -0
- package/types/operations.js.map +1 -0
- package/types/rfcdate.d.ts +21 -0
- package/types/rfcdate.d.ts.map +1 -0
- package/types/rfcdate.js +46 -0
- package/types/rfcdate.js.map +1 -0
- package/types/streams.d.ts +2 -0
- package/types/streams.d.ts.map +1 -0
- package/types/streams.js +18 -0
- package/types/streams.js.map +1 -0
- package/types/unrecognized.d.ts +16 -0
- package/types/unrecognized.d.ts.map +1 -0
- package/types/unrecognized.js +34 -0
- package/types/unrecognized.js.map +1 -0
package/core.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.FinanceableCore = void 0;
|
|
7
|
+
const sdks_js_1 = require("./lib/sdks.js");
|
|
8
|
+
/**
|
|
9
|
+
* A minimal client to use when calling standalone SDK functions. Typically, an
|
|
10
|
+
* instance of this class would be instantiated once at the start of an
|
|
11
|
+
* application and passed around through some dependency injection mechanism to
|
|
12
|
+
* parts of an application that need to make SDK calls.
|
|
13
|
+
*/
|
|
14
|
+
class FinanceableCore extends sdks_js_1.ClientSDK {
|
|
15
|
+
}
|
|
16
|
+
exports.FinanceableCore = FinanceableCore;
|
|
17
|
+
//# sourceMappingURL=core.js.map
|
package/hooks/hooks.js
ADDED
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.SDKHooks = void 0;
|
|
7
|
+
class SDKHooks {
|
|
8
|
+
constructor() {
|
|
9
|
+
this.sdkInitHooks = [];
|
|
10
|
+
this.beforeCreateRequestHooks = [];
|
|
11
|
+
this.beforeRequestHooks = [];
|
|
12
|
+
this.afterSuccessHooks = [];
|
|
13
|
+
this.afterErrorHooks = [];
|
|
14
|
+
const presetHooks = [];
|
|
15
|
+
for (const hook of presetHooks) {
|
|
16
|
+
if ("sdkInit" in hook) {
|
|
17
|
+
this.registerSDKInitHook(hook);
|
|
18
|
+
}
|
|
19
|
+
if ("beforeCreateRequest" in hook) {
|
|
20
|
+
this.registerBeforeCreateRequestHook(hook);
|
|
21
|
+
}
|
|
22
|
+
if ("beforeRequest" in hook) {
|
|
23
|
+
this.registerBeforeRequestHook(hook);
|
|
24
|
+
}
|
|
25
|
+
if ("afterSuccess" in hook) {
|
|
26
|
+
this.registerAfterSuccessHook(hook);
|
|
27
|
+
}
|
|
28
|
+
if ("afterError" in hook) {
|
|
29
|
+
this.registerAfterErrorHook(hook);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
registerSDKInitHook(hook) {
|
|
34
|
+
this.sdkInitHooks.push(hook);
|
|
35
|
+
}
|
|
36
|
+
registerBeforeCreateRequestHook(hook) {
|
|
37
|
+
this.beforeCreateRequestHooks.push(hook);
|
|
38
|
+
}
|
|
39
|
+
registerBeforeRequestHook(hook) {
|
|
40
|
+
this.beforeRequestHooks.push(hook);
|
|
41
|
+
}
|
|
42
|
+
registerAfterSuccessHook(hook) {
|
|
43
|
+
this.afterSuccessHooks.push(hook);
|
|
44
|
+
}
|
|
45
|
+
registerAfterErrorHook(hook) {
|
|
46
|
+
this.afterErrorHooks.push(hook);
|
|
47
|
+
}
|
|
48
|
+
sdkInit(opts) {
|
|
49
|
+
return this.sdkInitHooks.reduce((opts, hook) => hook.sdkInit(opts), opts);
|
|
50
|
+
}
|
|
51
|
+
beforeCreateRequest(hookCtx, input) {
|
|
52
|
+
let inp = input;
|
|
53
|
+
for (const hook of this.beforeCreateRequestHooks) {
|
|
54
|
+
inp = hook.beforeCreateRequest(hookCtx, inp);
|
|
55
|
+
}
|
|
56
|
+
return inp;
|
|
57
|
+
}
|
|
58
|
+
async beforeRequest(hookCtx, request) {
|
|
59
|
+
let req = request;
|
|
60
|
+
for (const hook of this.beforeRequestHooks) {
|
|
61
|
+
req = await hook.beforeRequest(hookCtx, req);
|
|
62
|
+
}
|
|
63
|
+
return req;
|
|
64
|
+
}
|
|
65
|
+
async afterSuccess(hookCtx, response) {
|
|
66
|
+
let res = response;
|
|
67
|
+
for (const hook of this.afterSuccessHooks) {
|
|
68
|
+
res = await hook.afterSuccess(hookCtx, res);
|
|
69
|
+
}
|
|
70
|
+
return res;
|
|
71
|
+
}
|
|
72
|
+
async afterError(hookCtx, response, error) {
|
|
73
|
+
let res = response;
|
|
74
|
+
let err = error;
|
|
75
|
+
for (const hook of this.afterErrorHooks) {
|
|
76
|
+
const result = await hook.afterError(hookCtx, res, err);
|
|
77
|
+
res = result.response;
|
|
78
|
+
err = result.error;
|
|
79
|
+
}
|
|
80
|
+
return { response: res, error: err };
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
exports.SDKHooks = SDKHooks;
|
|
84
|
+
//# sourceMappingURL=hooks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hooks.js","sourceRoot":"","sources":["../src/hooks/hooks.ts"],"names":[],"mappings":"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"}
|
package/hooks/index.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
17
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
18
|
+
};
|
|
19
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
+
__exportStar(require("./hooks.js"), exports);
|
|
21
|
+
__exportStar(require("./types.js"), exports);
|
|
22
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/hooks/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;AAEH,6CAA2B;AAC3B,6CAA2B"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Available scopes for the OAuth 2.0 scheme (clientCredentials flow).
|
|
3
|
+
*/
|
|
4
|
+
export type ClientCredentialsOAuth2Scope =
|
|
5
|
+
/**
|
|
6
|
+
* Read access to applications
|
|
7
|
+
*/
|
|
8
|
+
"applications:read"
|
|
9
|
+
/**
|
|
10
|
+
* Write access to applications
|
|
11
|
+
*/
|
|
12
|
+
| "applications:write";
|
|
13
|
+
//# sourceMappingURL=oauth2scopes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oauth2scopes.d.ts","sourceRoot":"","sources":["../src/hooks/oauth2scopes.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,MAAM,MAAM,4BAA4B;AACtC;;GAEG;AACD,mBAAmB;AACrB;;GAEG;GACD,oBAAoB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oauth2scopes.js","sourceRoot":"","sources":["../src/hooks/oauth2scopes.ts"],"names":[],"mappings":";AAAA;;GAEG"}
|
package/hooks/types.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/hooks/types.ts"],"names":[],"mappings":";AAAA;;GAEG"}
|
package/index.js
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
22
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
23
|
+
};
|
|
24
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
25
|
+
var ownKeys = function(o) {
|
|
26
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
27
|
+
var ar = [];
|
|
28
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
29
|
+
return ar;
|
|
30
|
+
};
|
|
31
|
+
return ownKeys(o);
|
|
32
|
+
};
|
|
33
|
+
return function (mod) {
|
|
34
|
+
if (mod && mod.__esModule) return mod;
|
|
35
|
+
var result = {};
|
|
36
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
37
|
+
__setModuleDefault(result, mod);
|
|
38
|
+
return result;
|
|
39
|
+
};
|
|
40
|
+
})();
|
|
41
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
|
+
exports.HTTPClient = exports.files = void 0;
|
|
43
|
+
__exportStar(require("./lib/config.js"), exports);
|
|
44
|
+
exports.files = __importStar(require("./lib/files.js"));
|
|
45
|
+
var http_js_1 = require("./lib/http.js");
|
|
46
|
+
Object.defineProperty(exports, "HTTPClient", { enumerable: true, get: function () { return http_js_1.HTTPClient; } });
|
|
47
|
+
__exportStar(require("./sdk/sdk.js"), exports);
|
|
48
|
+
//# sourceMappingURL=index.js.map
|
package/lib/base64.js
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
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.zodInbound = exports.zodOutbound = void 0;
|
|
40
|
+
exports.bytesToBase64 = bytesToBase64;
|
|
41
|
+
exports.bytesFromBase64 = bytesFromBase64;
|
|
42
|
+
exports.stringToBytes = stringToBytes;
|
|
43
|
+
exports.stringFromBytes = stringFromBytes;
|
|
44
|
+
exports.stringToBase64 = stringToBase64;
|
|
45
|
+
exports.stringFromBase64 = stringFromBase64;
|
|
46
|
+
const z = __importStar(require("zod/v3"));
|
|
47
|
+
function bytesToBase64(u8arr) {
|
|
48
|
+
return btoa(String.fromCodePoint(...u8arr));
|
|
49
|
+
}
|
|
50
|
+
function bytesFromBase64(encoded) {
|
|
51
|
+
return Uint8Array.from(atob(encoded), (c) => c.charCodeAt(0));
|
|
52
|
+
}
|
|
53
|
+
function stringToBytes(str) {
|
|
54
|
+
return new TextEncoder().encode(str);
|
|
55
|
+
}
|
|
56
|
+
function stringFromBytes(u8arr) {
|
|
57
|
+
return new TextDecoder().decode(u8arr);
|
|
58
|
+
}
|
|
59
|
+
function stringToBase64(str) {
|
|
60
|
+
return bytesToBase64(stringToBytes(str));
|
|
61
|
+
}
|
|
62
|
+
function stringFromBase64(b64str) {
|
|
63
|
+
return stringFromBytes(bytesFromBase64(b64str));
|
|
64
|
+
}
|
|
65
|
+
exports.zodOutbound = z
|
|
66
|
+
.instanceof(Uint8Array)
|
|
67
|
+
.or(z.string().transform(stringToBytes));
|
|
68
|
+
exports.zodInbound = z
|
|
69
|
+
.instanceof(Uint8Array)
|
|
70
|
+
.or(z.string().transform(bytesFromBase64));
|
|
71
|
+
//# sourceMappingURL=base64.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base64.js","sourceRoot":"","sources":["../src/lib/base64.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIH,sCAEC;AAED,0CAEC;AAED,sCAEC;AAED,0CAEC;AAED,wCAEC;AAED,4CAEC;AAxBD,0CAA4B;AAE5B,SAAgB,aAAa,CAAC,KAAiB;IAC7C,OAAO,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC;AAC9C,CAAC;AAED,SAAgB,eAAe,CAAC,OAAe;IAC7C,OAAO,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;AAChE,CAAC;AAED,SAAgB,aAAa,CAAC,GAAW;IACvC,OAAO,IAAI,WAAW,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;AACvC,CAAC;AAED,SAAgB,eAAe,CAAC,KAAiB;IAC/C,OAAO,IAAI,WAAW,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AACzC,CAAC;AAED,SAAgB,cAAc,CAAC,GAAW;IACxC,OAAO,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC;AAC3C,CAAC;AAED,SAAgB,gBAAgB,CAAC,MAAc;IAC7C,OAAO,eAAe,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC,CAAC;AAClD,CAAC;AAEY,QAAA,WAAW,GAAG,CAAC;KACzB,UAAU,CAAC,UAAU,CAAC;KACtB,EAAE,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC,CAAC;AAE9B,QAAA,UAAU,GAAG,CAAC;KACxB,UAAU,CAAC,UAAU,CAAC;KACtB,EAAE,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,SAAS,CAAC,eAAe,CAAC,CAAC,CAAC"}
|
package/lib/config.d.ts
CHANGED
|
@@ -31,8 +31,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
31
31
|
export declare const SDK_METADATA: {
|
|
32
32
|
readonly language: "typescript";
|
|
33
33
|
readonly openapiDocVersion: "0.4.0";
|
|
34
|
-
readonly sdkVersion: "0.13.
|
|
34
|
+
readonly sdkVersion: "0.13.4";
|
|
35
35
|
readonly genVersion: "2.768.0";
|
|
36
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.13.
|
|
36
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.13.4 2.768.0 0.4.0 @financeable/aggregation";
|
|
37
37
|
};
|
|
38
38
|
//# sourceMappingURL=config.d.ts.map
|
package/lib/config.js
CHANGED
|
@@ -28,8 +28,8 @@ function serverURLFromOptions(options) {
|
|
|
28
28
|
exports.SDK_METADATA = {
|
|
29
29
|
language: "typescript",
|
|
30
30
|
openapiDocVersion: "0.4.0",
|
|
31
|
-
sdkVersion: "0.13.
|
|
31
|
+
sdkVersion: "0.13.4",
|
|
32
32
|
genVersion: "2.768.0",
|
|
33
|
-
userAgent: "speakeasy-sdk/typescript 0.13.
|
|
33
|
+
userAgent: "speakeasy-sdk/typescript 0.13.4 2.768.0 0.4.0 @financeable/aggregation",
|
|
34
34
|
};
|
|
35
35
|
//# sourceMappingURL=config.js.map
|
package/lib/dlv.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @param obj The object to walk
|
|
3
|
+
* @param key The key path to walk the object with
|
|
4
|
+
* @param def A default value to return if the result is undefined
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* dlv(obj, "a.b.c.d")
|
|
8
|
+
* @example
|
|
9
|
+
* dlv(object, ["a", "b", "c", "d"])
|
|
10
|
+
* @example
|
|
11
|
+
* dlv(object, "foo.bar.baz", "Hello, default value!")
|
|
12
|
+
*/
|
|
13
|
+
export declare function dlv<T = any>(obj: any, key: string | string[], def?: T, p?: number, undef?: never): T | undefined;
|
|
14
|
+
//# sourceMappingURL=dlv.d.ts.map
|
package/lib/dlv.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dlv.d.ts","sourceRoot":"","sources":["../src/lib/dlv.ts"],"names":[],"mappings":"AA2BA;;;;;;;;;;;GAWG;AACH,wBAAgB,GAAG,CAAC,CAAC,GAAG,GAAG,EACzB,GAAG,EAAE,GAAG,EACR,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,EACtB,GAAG,CAAC,EAAE,CAAC,EACP,CAAC,CAAC,EAAE,MAAM,EACV,KAAK,CAAC,EAAE,KAAK,GACZ,CAAC,GAAG,SAAS,CAOf"}
|
package/lib/dlv.js
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.dlv = dlv;
|
|
7
|
+
/*
|
|
8
|
+
MIT License
|
|
9
|
+
|
|
10
|
+
Copyright (c) 2024 Jason Miller <jason@developit.ca> (http://jasonformat.com)
|
|
11
|
+
|
|
12
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
13
|
+
this software and associated documentation files (the "Software"), to deal in
|
|
14
|
+
the Software without restriction, including without limitation the rights to
|
|
15
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
16
|
+
the Software, and to permit persons to whom the Software is furnished to do so,
|
|
17
|
+
subject to the following conditions:
|
|
18
|
+
|
|
19
|
+
The above copyright notice and this permission notice shall be included in all
|
|
20
|
+
copies or substantial portions of the Software.
|
|
21
|
+
|
|
22
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
23
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
24
|
+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
25
|
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
26
|
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
27
|
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
28
|
+
*/
|
|
29
|
+
/**
|
|
30
|
+
* @param obj The object to walk
|
|
31
|
+
* @param key The key path to walk the object with
|
|
32
|
+
* @param def A default value to return if the result is undefined
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* dlv(obj, "a.b.c.d")
|
|
36
|
+
* @example
|
|
37
|
+
* dlv(object, ["a", "b", "c", "d"])
|
|
38
|
+
* @example
|
|
39
|
+
* dlv(object, "foo.bar.baz", "Hello, default value!")
|
|
40
|
+
*/
|
|
41
|
+
function dlv(obj, key, def, p, undef) {
|
|
42
|
+
key = Array.isArray(key) ? key : key.split(".");
|
|
43
|
+
for (p = 0; p < key.length; p++) {
|
|
44
|
+
const k = key[p];
|
|
45
|
+
obj = k != null && obj ? obj[k] : undef;
|
|
46
|
+
}
|
|
47
|
+
return obj === undef ? def : obj;
|
|
48
|
+
}
|
|
49
|
+
//# sourceMappingURL=dlv.js.map
|
package/lib/dlv.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dlv.js","sourceRoot":"","sources":["../src/lib/dlv.ts"],"names":[],"mappings":";AAAA;;GAEG;;AAqCH,kBAaC;AAhDD;;;;;;;;;;;;;;;;;;;;;EAqBE;AAEF;;;;;;;;;;;GAWG;AACH,SAAgB,GAAG,CACjB,GAAQ,EACR,GAAsB,EACtB,GAAO,EACP,CAAU,EACV,KAAa;IAEb,GAAG,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAChD,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QAChC,MAAM,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC;QACjB,GAAG,GAAG,CAAC,IAAI,IAAI,IAAI,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;IAC1C,CAAC;IACD,OAAO,GAAG,KAAK,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC;AACnC,CAAC"}
|