@enfuce/nextgen-sdk 0.0.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/dist/authorisation-control/api.d.ts +771 -0
- package/dist/authorisation-control/api.js +240 -0
- package/dist/authorisation-control/base.d.ts +66 -0
- package/dist/authorisation-control/base.js +65 -0
- package/dist/authorisation-control/common.d.ts +65 -0
- package/dist/authorisation-control/common.js +161 -0
- package/dist/authorisation-control/configuration.d.ts +91 -0
- package/dist/authorisation-control/configuration.js +44 -0
- package/dist/authorisation-control/index.d.ts +13 -0
- package/dist/authorisation-control/index.js +31 -0
- package/dist/card/api.d.ts +2065 -0
- package/dist/card/api.js +1406 -0
- package/dist/card/base.d.ts +66 -0
- package/dist/card/base.js +65 -0
- package/dist/card/common.d.ts +65 -0
- package/dist/card/common.js +161 -0
- package/dist/card/configuration.d.ts +91 -0
- package/dist/card/configuration.js +44 -0
- package/dist/card/index.d.ts +13 -0
- package/dist/card/index.js +31 -0
- package/dist/cardholder/api.d.ts +1890 -0
- package/dist/cardholder/api.js +1239 -0
- package/dist/cardholder/base.d.ts +66 -0
- package/dist/cardholder/base.js +65 -0
- package/dist/cardholder/common.d.ts +65 -0
- package/dist/cardholder/common.js +161 -0
- package/dist/cardholder/configuration.d.ts +91 -0
- package/dist/cardholder/configuration.js +44 -0
- package/dist/cardholder/index.d.ts +13 -0
- package/dist/cardholder/index.js +31 -0
- package/dist/cards/api.d.ts +78 -0
- package/dist/cards/api.js +142 -0
- package/dist/cards/base.d.ts +66 -0
- package/dist/cards/base.js +65 -0
- package/dist/cards/common.d.ts +65 -0
- package/dist/cards/common.js +161 -0
- package/dist/cards/configuration.d.ts +91 -0
- package/dist/cards/configuration.js +44 -0
- package/dist/cards/index.d.ts +13 -0
- package/dist/cards/index.js +31 -0
- package/dist/clearing-file-copy/api.d.ts +1245 -0
- package/dist/clearing-file-copy/api.js +139 -0
- package/dist/clearing-file-copy/base.d.ts +66 -0
- package/dist/clearing-file-copy/base.js +65 -0
- package/dist/clearing-file-copy/common.d.ts +65 -0
- package/dist/clearing-file-copy/common.js +161 -0
- package/dist/clearing-file-copy/configuration.d.ts +91 -0
- package/dist/clearing-file-copy/configuration.js +44 -0
- package/dist/clearing-file-copy/index.d.ts +13 -0
- package/dist/clearing-file-copy/index.js +31 -0
- package/dist/esm/authorisation-control/api.d.ts +771 -0
- package/dist/esm/authorisation-control/api.js +233 -0
- package/dist/esm/authorisation-control/base.d.ts +66 -0
- package/dist/esm/authorisation-control/base.js +60 -0
- package/dist/esm/authorisation-control/common.d.ts +65 -0
- package/dist/esm/authorisation-control/common.js +149 -0
- package/dist/esm/authorisation-control/configuration.d.ts +91 -0
- package/dist/esm/authorisation-control/configuration.js +40 -0
- package/dist/esm/authorisation-control/index.d.ts +13 -0
- package/dist/esm/authorisation-control/index.js +15 -0
- package/dist/esm/card/api.d.ts +2065 -0
- package/dist/esm/card/api.js +1379 -0
- package/dist/esm/card/base.d.ts +66 -0
- package/dist/esm/card/base.js +60 -0
- package/dist/esm/card/common.d.ts +65 -0
- package/dist/esm/card/common.js +149 -0
- package/dist/esm/card/configuration.d.ts +91 -0
- package/dist/esm/card/configuration.js +40 -0
- package/dist/esm/card/index.d.ts +13 -0
- package/dist/esm/card/index.js +15 -0
- package/dist/esm/cardholder/api.d.ts +1890 -0
- package/dist/esm/cardholder/api.js +1220 -0
- package/dist/esm/cardholder/base.d.ts +66 -0
- package/dist/esm/cardholder/base.js +60 -0
- package/dist/esm/cardholder/common.d.ts +65 -0
- package/dist/esm/cardholder/common.js +149 -0
- package/dist/esm/cardholder/configuration.d.ts +91 -0
- package/dist/esm/cardholder/configuration.js +40 -0
- package/dist/esm/cardholder/index.d.ts +13 -0
- package/dist/esm/cardholder/index.js +15 -0
- package/dist/esm/cards/api.d.ts +78 -0
- package/dist/esm/cards/api.js +135 -0
- package/dist/esm/cards/base.d.ts +66 -0
- package/dist/esm/cards/base.js +60 -0
- package/dist/esm/cards/common.d.ts +65 -0
- package/dist/esm/cards/common.js +149 -0
- package/dist/esm/cards/configuration.d.ts +91 -0
- package/dist/esm/cards/configuration.js +40 -0
- package/dist/esm/cards/index.d.ts +13 -0
- package/dist/esm/cards/index.js +15 -0
- package/dist/esm/clearing-file-copy/api.d.ts +1245 -0
- package/dist/esm/clearing-file-copy/api.js +136 -0
- package/dist/esm/clearing-file-copy/base.d.ts +66 -0
- package/dist/esm/clearing-file-copy/base.js +60 -0
- package/dist/esm/clearing-file-copy/common.d.ts +65 -0
- package/dist/esm/clearing-file-copy/common.js +149 -0
- package/dist/esm/clearing-file-copy/configuration.d.ts +91 -0
- package/dist/esm/clearing-file-copy/configuration.js +40 -0
- package/dist/esm/clearing-file-copy/index.d.ts +13 -0
- package/dist/esm/clearing-file-copy/index.js +15 -0
- package/dist/esm/index.d.ts +12 -0
- package/dist/esm/index.js +14 -0
- package/dist/esm/issuer-events/api.d.ts +1721 -0
- package/dist/esm/issuer-events/api.js +940 -0
- package/dist/esm/issuer-events/base.d.ts +66 -0
- package/dist/esm/issuer-events/base.js +60 -0
- package/dist/esm/issuer-events/common.d.ts +65 -0
- package/dist/esm/issuer-events/common.js +149 -0
- package/dist/esm/issuer-events/configuration.d.ts +91 -0
- package/dist/esm/issuer-events/configuration.js +40 -0
- package/dist/esm/issuer-events/index.d.ts +13 -0
- package/dist/esm/issuer-events/index.js +15 -0
- package/dist/esm/oauth/axios.d.ts +14 -0
- package/dist/esm/oauth/axios.js +58 -0
- package/dist/esm/oauth/clientCredentials.d.ts +24 -0
- package/dist/esm/oauth/clientCredentials.js +59 -0
- package/dist/esm/oauth/index.d.ts +3 -0
- package/dist/esm/oauth/index.js +24 -0
- package/dist/esm/oauth/tokenManager.d.ts +38 -0
- package/dist/esm/oauth/tokenManager.js +77 -0
- package/dist/esm/pin/api.d.ts +329 -0
- package/dist/esm/pin/api.js +341 -0
- package/dist/esm/pin/base.d.ts +66 -0
- package/dist/esm/pin/base.js +60 -0
- package/dist/esm/pin/common.d.ts +65 -0
- package/dist/esm/pin/common.js +149 -0
- package/dist/esm/pin/configuration.d.ts +91 -0
- package/dist/esm/pin/configuration.js +40 -0
- package/dist/esm/pin/index.d.ts +13 -0
- package/dist/esm/pin/index.js +15 -0
- package/dist/esm/threeds/api.d.ts +104 -0
- package/dist/esm/threeds/api.js +136 -0
- package/dist/esm/threeds/base.d.ts +66 -0
- package/dist/esm/threeds/base.js +60 -0
- package/dist/esm/threeds/common.d.ts +65 -0
- package/dist/esm/threeds/common.js +149 -0
- package/dist/esm/threeds/configuration.d.ts +91 -0
- package/dist/esm/threeds/configuration.js +40 -0
- package/dist/esm/threeds/index.d.ts +13 -0
- package/dist/esm/threeds/index.js +15 -0
- package/dist/esm/threeds-oob/api.d.ts +241 -0
- package/dist/esm/threeds-oob/api.js +141 -0
- package/dist/esm/threeds-oob/base.d.ts +66 -0
- package/dist/esm/threeds-oob/base.js +60 -0
- package/dist/esm/threeds-oob/common.d.ts +65 -0
- package/dist/esm/threeds-oob/common.js +149 -0
- package/dist/esm/threeds-oob/configuration.d.ts +91 -0
- package/dist/esm/threeds-oob/configuration.js +40 -0
- package/dist/esm/threeds-oob/index.d.ts +13 -0
- package/dist/esm/threeds-oob/index.js +15 -0
- package/dist/esm/transaction-event/api.d.ts +1082 -0
- package/dist/esm/transaction-event/api.js +163 -0
- package/dist/esm/transaction-event/base.d.ts +66 -0
- package/dist/esm/transaction-event/base.js +60 -0
- package/dist/esm/transaction-event/common.d.ts +65 -0
- package/dist/esm/transaction-event/common.js +149 -0
- package/dist/esm/transaction-event/configuration.d.ts +91 -0
- package/dist/esm/transaction-event/configuration.js +40 -0
- package/dist/esm/transaction-event/index.d.ts +13 -0
- package/dist/esm/transaction-event/index.js +15 -0
- package/dist/esm/wallet/api.d.ts +1385 -0
- package/dist/esm/wallet/api.js +1342 -0
- package/dist/esm/wallet/base.d.ts +66 -0
- package/dist/esm/wallet/base.js +60 -0
- package/dist/esm/wallet/common.d.ts +65 -0
- package/dist/esm/wallet/common.js +149 -0
- package/dist/esm/wallet/configuration.d.ts +91 -0
- package/dist/esm/wallet/configuration.js +40 -0
- package/dist/esm/wallet/index.d.ts +13 -0
- package/dist/esm/wallet/index.js +15 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.js +17 -0
- package/dist/issuer-events/api.d.ts +1721 -0
- package/dist/issuer-events/api.js +947 -0
- package/dist/issuer-events/base.d.ts +66 -0
- package/dist/issuer-events/base.js +65 -0
- package/dist/issuer-events/common.d.ts +65 -0
- package/dist/issuer-events/common.js +161 -0
- package/dist/issuer-events/configuration.d.ts +91 -0
- package/dist/issuer-events/configuration.js +44 -0
- package/dist/issuer-events/index.d.ts +13 -0
- package/dist/issuer-events/index.js +31 -0
- package/dist/oauth/axios.d.ts +14 -0
- package/dist/oauth/axios.js +61 -0
- package/dist/oauth/clientCredentials.d.ts +24 -0
- package/dist/oauth/clientCredentials.js +63 -0
- package/dist/oauth/index.d.ts +3 -0
- package/dist/oauth/index.js +31 -0
- package/dist/oauth/tokenManager.d.ts +38 -0
- package/dist/oauth/tokenManager.js +81 -0
- package/dist/pin/api.d.ts +329 -0
- package/dist/pin/api.js +352 -0
- package/dist/pin/base.d.ts +66 -0
- package/dist/pin/base.js +65 -0
- package/dist/pin/common.d.ts +65 -0
- package/dist/pin/common.js +161 -0
- package/dist/pin/configuration.d.ts +91 -0
- package/dist/pin/configuration.js +44 -0
- package/dist/pin/index.d.ts +13 -0
- package/dist/pin/index.js +31 -0
- package/dist/threeds/api.d.ts +104 -0
- package/dist/threeds/api.js +143 -0
- package/dist/threeds/base.d.ts +66 -0
- package/dist/threeds/base.js +65 -0
- package/dist/threeds/common.d.ts +65 -0
- package/dist/threeds/common.js +161 -0
- package/dist/threeds/configuration.d.ts +91 -0
- package/dist/threeds/configuration.js +44 -0
- package/dist/threeds/index.d.ts +13 -0
- package/dist/threeds/index.js +31 -0
- package/dist/threeds-oob/api.d.ts +241 -0
- package/dist/threeds-oob/api.js +148 -0
- package/dist/threeds-oob/base.d.ts +66 -0
- package/dist/threeds-oob/base.js +65 -0
- package/dist/threeds-oob/common.d.ts +65 -0
- package/dist/threeds-oob/common.js +161 -0
- package/dist/threeds-oob/configuration.d.ts +91 -0
- package/dist/threeds-oob/configuration.js +44 -0
- package/dist/threeds-oob/index.d.ts +13 -0
- package/dist/threeds-oob/index.js +31 -0
- package/dist/transaction-event/api.d.ts +1082 -0
- package/dist/transaction-event/api.js +166 -0
- package/dist/transaction-event/base.d.ts +66 -0
- package/dist/transaction-event/base.js +65 -0
- package/dist/transaction-event/common.d.ts +65 -0
- package/dist/transaction-event/common.js +161 -0
- package/dist/transaction-event/configuration.d.ts +91 -0
- package/dist/transaction-event/configuration.js +44 -0
- package/dist/transaction-event/index.d.ts +13 -0
- package/dist/transaction-event/index.js +31 -0
- package/dist/wallet/api.d.ts +1385 -0
- package/dist/wallet/api.js +1377 -0
- package/dist/wallet/base.d.ts +66 -0
- package/dist/wallet/base.js +65 -0
- package/dist/wallet/common.d.ts +65 -0
- package/dist/wallet/common.js +161 -0
- package/dist/wallet/configuration.d.ts +91 -0
- package/dist/wallet/configuration.js +44 -0
- package/dist/wallet/index.d.ts +13 -0
- package/dist/wallet/index.js +31 -0
- package/package.json +25 -0
- package/src/authorisation-control/api.ts +876 -0
- package/src/authorisation-control/base.ts +86 -0
- package/src/authorisation-control/common.ts +150 -0
- package/src/authorisation-control/configuration.ts +115 -0
- package/src/authorisation-control/index.ts +18 -0
- package/src/card/api.ts +2792 -0
- package/src/card/base.ts +86 -0
- package/src/card/common.ts +150 -0
- package/src/card/configuration.ts +115 -0
- package/src/card/index.ts +18 -0
- package/src/cardholder/api.ts +2244 -0
- package/src/cardholder/base.ts +86 -0
- package/src/cardholder/common.ts +150 -0
- package/src/cardholder/configuration.ts +115 -0
- package/src/cardholder/index.ts +18 -0
- package/src/cards/api.ts +141 -0
- package/src/cards/base.ts +86 -0
- package/src/cards/common.ts +150 -0
- package/src/cards/configuration.ts +115 -0
- package/src/cards/index.ts +18 -0
- package/src/clearing-file-copy/api.ts +1309 -0
- package/src/clearing-file-copy/base.ts +86 -0
- package/src/clearing-file-copy/common.ts +150 -0
- package/src/clearing-file-copy/configuration.ts +115 -0
- package/src/clearing-file-copy/index.ts +18 -0
- package/src/index.ts +16 -0
- package/src/issuer-events/api.ts +1926 -0
- package/src/issuer-events/base.ts +86 -0
- package/src/issuer-events/common.ts +150 -0
- package/src/issuer-events/configuration.ts +115 -0
- package/src/issuer-events/index.ts +18 -0
- package/src/oauth/axios.ts +60 -0
- package/src/oauth/clientCredentials.ts +72 -0
- package/src/oauth/index.ts +24 -0
- package/src/oauth/tokenManager.ts +85 -0
- package/src/pin/api.ts +507 -0
- package/src/pin/base.ts +86 -0
- package/src/pin/common.ts +150 -0
- package/src/pin/configuration.ts +115 -0
- package/src/pin/index.ts +18 -0
- package/src/threeds/api.ts +173 -0
- package/src/threeds/base.ts +86 -0
- package/src/threeds/common.ts +150 -0
- package/src/threeds/configuration.ts +115 -0
- package/src/threeds/index.ts +18 -0
- package/src/threeds-oob/api.ts +311 -0
- package/src/threeds-oob/base.ts +86 -0
- package/src/threeds-oob/common.ts +150 -0
- package/src/threeds-oob/configuration.ts +115 -0
- package/src/threeds-oob/index.ts +18 -0
- package/src/transaction-event/api.ts +1152 -0
- package/src/transaction-event/base.ts +86 -0
- package/src/transaction-event/common.ts +150 -0
- package/src/transaction-event/configuration.ts +115 -0
- package/src/transaction-event/index.ts +18 -0
- package/src/wallet/api.ts +2083 -0
- package/src/wallet/base.ts +86 -0
- package/src/wallet/common.ts +150 -0
- package/src/wallet/configuration.ts +115 -0
- package/src/wallet/index.ts +18 -0
- package/test/authorisation-control.test.ts +71 -0
- package/test/card.test.ts +39 -0
- package/test/cardholder.test.ts +51 -0
- package/test/cards.test.ts +35 -0
- package/test/issuer-events.test.ts +55 -0
- package/test/oauth.test.ts +205 -0
- package/test/pin.test.ts +39 -0
- package/test/threeds-oob.test.ts +90 -0
- package/test/threeds.test.ts +55 -0
- package/test/wallet.test.ts +62 -0
- package/tsconfig.esm.json +7 -0
- package/tsconfig.json +14 -0
package/dist/pin/api.js
ADDED
|
@@ -0,0 +1,352 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* PIN API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
16
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
18
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
19
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
20
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
21
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
exports.PINOperationsWithPreSharedKeyApi = exports.PINOperationsWithPreSharedKeyApiFactory = exports.PINOperationsWithPreSharedKeyApiFp = exports.PINOperationsWithPreSharedKeyApiAxiosParamCreator = exports.PINOperationsUsingPKIApi = exports.PINOperationsUsingPKIApiFactory = exports.PINOperationsUsingPKIApiFp = exports.PINOperationsUsingPKIApiAxiosParamCreator = void 0;
|
|
26
|
+
const axios_1 = require("axios");
|
|
27
|
+
// Some imports not used depending on template conditions
|
|
28
|
+
// @ts-ignore
|
|
29
|
+
const common_1 = require("./common");
|
|
30
|
+
// @ts-ignore
|
|
31
|
+
const base_1 = require("./base");
|
|
32
|
+
/**
|
|
33
|
+
* PINOperationsUsingPKIApi - axios parameter creator
|
|
34
|
+
* @export
|
|
35
|
+
*/
|
|
36
|
+
const PINOperationsUsingPKIApiAxiosParamCreator = function (configuration) {
|
|
37
|
+
return {
|
|
38
|
+
/**
|
|
39
|
+
* Send a request to this endpoint to retrieve the card PIN (ISO PIN Block Format 1) encrypted with temporary PIN encryption key (tzpk). The tzpk is encrypted with the provided ephemeral RSA 2048 bit public key. Steps for retrieving the ISO PIN Block Format 1: - Decrypt the tzpk with the RSA private key. Now you have the decrypted 3DES double length key. - Decrypt the PIN block with the decrypted tzpk using 3DES decryption.
|
|
40
|
+
* @summary Retrieve Encrypted PIN
|
|
41
|
+
* @param {ViewPinRequestBody} viewPinRequestBody Request payload for successful PIN retrieval.
|
|
42
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
43
|
+
* @param {*} [options] Override http request option.
|
|
44
|
+
* @throws {RequiredError}
|
|
45
|
+
*/
|
|
46
|
+
viewPin: (viewPinRequestBody_1, xAuditUser_1, ...args_1) => __awaiter(this, [viewPinRequestBody_1, xAuditUser_1, ...args_1], void 0, function* (viewPinRequestBody, xAuditUser, options = {}) {
|
|
47
|
+
// verify required parameter 'viewPinRequestBody' is not null or undefined
|
|
48
|
+
(0, common_1.assertParamExists)('viewPin', 'viewPinRequestBody', viewPinRequestBody);
|
|
49
|
+
const localVarPath = `/v1/pin/view`;
|
|
50
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
51
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
52
|
+
let baseOptions;
|
|
53
|
+
if (configuration) {
|
|
54
|
+
baseOptions = configuration.baseOptions;
|
|
55
|
+
}
|
|
56
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
57
|
+
const localVarHeaderParameter = {};
|
|
58
|
+
const localVarQueryParameter = {};
|
|
59
|
+
// authentication bearerAuth required
|
|
60
|
+
// http bearer authentication required
|
|
61
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
62
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
63
|
+
if (xAuditUser != null) {
|
|
64
|
+
localVarHeaderParameter['x-audit-user'] = String(xAuditUser);
|
|
65
|
+
}
|
|
66
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
67
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
68
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
69
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(viewPinRequestBody, localVarRequestOptions, configuration);
|
|
70
|
+
return {
|
|
71
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
72
|
+
options: localVarRequestOptions,
|
|
73
|
+
};
|
|
74
|
+
}),
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
exports.PINOperationsUsingPKIApiAxiosParamCreator = PINOperationsUsingPKIApiAxiosParamCreator;
|
|
78
|
+
/**
|
|
79
|
+
* PINOperationsUsingPKIApi - functional programming interface
|
|
80
|
+
* @export
|
|
81
|
+
*/
|
|
82
|
+
const PINOperationsUsingPKIApiFp = function (configuration) {
|
|
83
|
+
const localVarAxiosParamCreator = (0, exports.PINOperationsUsingPKIApiAxiosParamCreator)(configuration);
|
|
84
|
+
return {
|
|
85
|
+
/**
|
|
86
|
+
* Send a request to this endpoint to retrieve the card PIN (ISO PIN Block Format 1) encrypted with temporary PIN encryption key (tzpk). The tzpk is encrypted with the provided ephemeral RSA 2048 bit public key. Steps for retrieving the ISO PIN Block Format 1: - Decrypt the tzpk with the RSA private key. Now you have the decrypted 3DES double length key. - Decrypt the PIN block with the decrypted tzpk using 3DES decryption.
|
|
87
|
+
* @summary Retrieve Encrypted PIN
|
|
88
|
+
* @param {ViewPinRequestBody} viewPinRequestBody Request payload for successful PIN retrieval.
|
|
89
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
90
|
+
* @param {*} [options] Override http request option.
|
|
91
|
+
* @throws {RequiredError}
|
|
92
|
+
*/
|
|
93
|
+
viewPin(viewPinRequestBody, xAuditUser, options) {
|
|
94
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
95
|
+
var _a, _b, _c;
|
|
96
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.viewPin(viewPinRequestBody, xAuditUser, options);
|
|
97
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
98
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PINOperationsUsingPKIApi.viewPin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
99
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
100
|
+
});
|
|
101
|
+
},
|
|
102
|
+
};
|
|
103
|
+
};
|
|
104
|
+
exports.PINOperationsUsingPKIApiFp = PINOperationsUsingPKIApiFp;
|
|
105
|
+
/**
|
|
106
|
+
* PINOperationsUsingPKIApi - factory interface
|
|
107
|
+
* @export
|
|
108
|
+
*/
|
|
109
|
+
const PINOperationsUsingPKIApiFactory = function (configuration, basePath, axios) {
|
|
110
|
+
const localVarFp = (0, exports.PINOperationsUsingPKIApiFp)(configuration);
|
|
111
|
+
return {
|
|
112
|
+
/**
|
|
113
|
+
* Send a request to this endpoint to retrieve the card PIN (ISO PIN Block Format 1) encrypted with temporary PIN encryption key (tzpk). The tzpk is encrypted with the provided ephemeral RSA 2048 bit public key. Steps for retrieving the ISO PIN Block Format 1: - Decrypt the tzpk with the RSA private key. Now you have the decrypted 3DES double length key. - Decrypt the PIN block with the decrypted tzpk using 3DES decryption.
|
|
114
|
+
* @summary Retrieve Encrypted PIN
|
|
115
|
+
* @param {ViewPinRequestBody} viewPinRequestBody Request payload for successful PIN retrieval.
|
|
116
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
117
|
+
* @param {*} [options] Override http request option.
|
|
118
|
+
* @throws {RequiredError}
|
|
119
|
+
*/
|
|
120
|
+
viewPin(viewPinRequestBody, xAuditUser, options) {
|
|
121
|
+
return localVarFp.viewPin(viewPinRequestBody, xAuditUser, options).then((request) => request(axios, basePath));
|
|
122
|
+
},
|
|
123
|
+
};
|
|
124
|
+
};
|
|
125
|
+
exports.PINOperationsUsingPKIApiFactory = PINOperationsUsingPKIApiFactory;
|
|
126
|
+
/**
|
|
127
|
+
* PINOperationsUsingPKIApi - object-oriented interface
|
|
128
|
+
* @export
|
|
129
|
+
* @class PINOperationsUsingPKIApi
|
|
130
|
+
* @extends {BaseAPI}
|
|
131
|
+
*/
|
|
132
|
+
class PINOperationsUsingPKIApi extends base_1.BaseAPI {
|
|
133
|
+
/**
|
|
134
|
+
* Send a request to this endpoint to retrieve the card PIN (ISO PIN Block Format 1) encrypted with temporary PIN encryption key (tzpk). The tzpk is encrypted with the provided ephemeral RSA 2048 bit public key. Steps for retrieving the ISO PIN Block Format 1: - Decrypt the tzpk with the RSA private key. Now you have the decrypted 3DES double length key. - Decrypt the PIN block with the decrypted tzpk using 3DES decryption.
|
|
135
|
+
* @summary Retrieve Encrypted PIN
|
|
136
|
+
* @param {ViewPinRequestBody} viewPinRequestBody Request payload for successful PIN retrieval.
|
|
137
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
138
|
+
* @param {*} [options] Override http request option.
|
|
139
|
+
* @throws {RequiredError}
|
|
140
|
+
* @memberof PINOperationsUsingPKIApi
|
|
141
|
+
*/
|
|
142
|
+
viewPin(viewPinRequestBody, xAuditUser, options) {
|
|
143
|
+
return (0, exports.PINOperationsUsingPKIApiFp)(this.configuration).viewPin(viewPinRequestBody, xAuditUser, options).then((request) => request(this.axios, this.basePath));
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
exports.PINOperationsUsingPKIApi = PINOperationsUsingPKIApi;
|
|
147
|
+
/**
|
|
148
|
+
* PINOperationsWithPreSharedKeyApi - axios parameter creator
|
|
149
|
+
* @export
|
|
150
|
+
*/
|
|
151
|
+
const PINOperationsWithPreSharedKeyApiAxiosParamCreator = function (configuration) {
|
|
152
|
+
return {
|
|
153
|
+
/**
|
|
154
|
+
* Send a request to this endpoint to change PIN of a specific card version. <Note><ul><li>Javascript generates an encrypted PIN block in ISO Format 1 from the cardholder-defined PIN. The PIN block is encrypted using a pre-shared double-length 3DES Zone PIN Key (ZPK). If zpkIndex is not specified, the first key is used by default.</li><li>If sequenceNumber is not specified, the latest card version is used by default.</li></ul></Note>
|
|
155
|
+
* @summary Change PIN
|
|
156
|
+
* @param {ChangePinRequestBody} changePinRequestBody
|
|
157
|
+
* @param {string} [xIdempotencyKey]
|
|
158
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
159
|
+
* @param {*} [options] Override http request option.
|
|
160
|
+
* @throws {RequiredError}
|
|
161
|
+
*/
|
|
162
|
+
changePin: (changePinRequestBody_1, xIdempotencyKey_1, xAuditUser_1, ...args_1) => __awaiter(this, [changePinRequestBody_1, xIdempotencyKey_1, xAuditUser_1, ...args_1], void 0, function* (changePinRequestBody, xIdempotencyKey, xAuditUser, options = {}) {
|
|
163
|
+
// verify required parameter 'changePinRequestBody' is not null or undefined
|
|
164
|
+
(0, common_1.assertParamExists)('changePin', 'changePinRequestBody', changePinRequestBody);
|
|
165
|
+
const localVarPath = `/v1/pin/change`;
|
|
166
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
167
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
168
|
+
let baseOptions;
|
|
169
|
+
if (configuration) {
|
|
170
|
+
baseOptions = configuration.baseOptions;
|
|
171
|
+
}
|
|
172
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
173
|
+
const localVarHeaderParameter = {};
|
|
174
|
+
const localVarQueryParameter = {};
|
|
175
|
+
// authentication bearerAuth required
|
|
176
|
+
// http bearer authentication required
|
|
177
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
178
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
179
|
+
if (xIdempotencyKey != null) {
|
|
180
|
+
localVarHeaderParameter['x-idempotency-key'] = String(xIdempotencyKey);
|
|
181
|
+
}
|
|
182
|
+
if (xAuditUser != null) {
|
|
183
|
+
localVarHeaderParameter['x-audit-user'] = String(xAuditUser);
|
|
184
|
+
}
|
|
185
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
186
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
187
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
188
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(changePinRequestBody, localVarRequestOptions, configuration);
|
|
189
|
+
return {
|
|
190
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
191
|
+
options: localVarRequestOptions,
|
|
192
|
+
};
|
|
193
|
+
}),
|
|
194
|
+
/**
|
|
195
|
+
* Send a request to this endpoint to set PIN for the latest card version. <Note>Javascript generates an encrypted PIN block in ISO Format 1 from the cardholder-defined PIN. The PIN block is encrypted using a pre-shared double-length 3DES Zone PIN Key (ZPK). If zpkIndex is not specified, the first key is used by default.</Note>
|
|
196
|
+
* @summary Set PIN
|
|
197
|
+
* @param {SetPinRequestBody} setPinRequestBody
|
|
198
|
+
* @param {string} [xIdempotencyKey]
|
|
199
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
200
|
+
* @param {*} [options] Override http request option.
|
|
201
|
+
* @throws {RequiredError}
|
|
202
|
+
*/
|
|
203
|
+
setPin: (setPinRequestBody_1, xIdempotencyKey_1, xAuditUser_1, ...args_1) => __awaiter(this, [setPinRequestBody_1, xIdempotencyKey_1, xAuditUser_1, ...args_1], void 0, function* (setPinRequestBody, xIdempotencyKey, xAuditUser, options = {}) {
|
|
204
|
+
// verify required parameter 'setPinRequestBody' is not null or undefined
|
|
205
|
+
(0, common_1.assertParamExists)('setPin', 'setPinRequestBody', setPinRequestBody);
|
|
206
|
+
const localVarPath = `/v1/pin/set`;
|
|
207
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
208
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
209
|
+
let baseOptions;
|
|
210
|
+
if (configuration) {
|
|
211
|
+
baseOptions = configuration.baseOptions;
|
|
212
|
+
}
|
|
213
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
214
|
+
const localVarHeaderParameter = {};
|
|
215
|
+
const localVarQueryParameter = {};
|
|
216
|
+
// authentication bearerAuth required
|
|
217
|
+
// http bearer authentication required
|
|
218
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
219
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
220
|
+
if (xIdempotencyKey != null) {
|
|
221
|
+
localVarHeaderParameter['x-idempotency-key'] = String(xIdempotencyKey);
|
|
222
|
+
}
|
|
223
|
+
if (xAuditUser != null) {
|
|
224
|
+
localVarHeaderParameter['x-audit-user'] = String(xAuditUser);
|
|
225
|
+
}
|
|
226
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
227
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
228
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
229
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(setPinRequestBody, localVarRequestOptions, configuration);
|
|
230
|
+
return {
|
|
231
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
232
|
+
options: localVarRequestOptions,
|
|
233
|
+
};
|
|
234
|
+
}),
|
|
235
|
+
};
|
|
236
|
+
};
|
|
237
|
+
exports.PINOperationsWithPreSharedKeyApiAxiosParamCreator = PINOperationsWithPreSharedKeyApiAxiosParamCreator;
|
|
238
|
+
/**
|
|
239
|
+
* PINOperationsWithPreSharedKeyApi - functional programming interface
|
|
240
|
+
* @export
|
|
241
|
+
*/
|
|
242
|
+
const PINOperationsWithPreSharedKeyApiFp = function (configuration) {
|
|
243
|
+
const localVarAxiosParamCreator = (0, exports.PINOperationsWithPreSharedKeyApiAxiosParamCreator)(configuration);
|
|
244
|
+
return {
|
|
245
|
+
/**
|
|
246
|
+
* Send a request to this endpoint to change PIN of a specific card version. <Note><ul><li>Javascript generates an encrypted PIN block in ISO Format 1 from the cardholder-defined PIN. The PIN block is encrypted using a pre-shared double-length 3DES Zone PIN Key (ZPK). If zpkIndex is not specified, the first key is used by default.</li><li>If sequenceNumber is not specified, the latest card version is used by default.</li></ul></Note>
|
|
247
|
+
* @summary Change PIN
|
|
248
|
+
* @param {ChangePinRequestBody} changePinRequestBody
|
|
249
|
+
* @param {string} [xIdempotencyKey]
|
|
250
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
251
|
+
* @param {*} [options] Override http request option.
|
|
252
|
+
* @throws {RequiredError}
|
|
253
|
+
*/
|
|
254
|
+
changePin(changePinRequestBody, xIdempotencyKey, xAuditUser, options) {
|
|
255
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
256
|
+
var _a, _b, _c;
|
|
257
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.changePin(changePinRequestBody, xIdempotencyKey, xAuditUser, options);
|
|
258
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
259
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PINOperationsWithPreSharedKeyApi.changePin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
260
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
261
|
+
});
|
|
262
|
+
},
|
|
263
|
+
/**
|
|
264
|
+
* Send a request to this endpoint to set PIN for the latest card version. <Note>Javascript generates an encrypted PIN block in ISO Format 1 from the cardholder-defined PIN. The PIN block is encrypted using a pre-shared double-length 3DES Zone PIN Key (ZPK). If zpkIndex is not specified, the first key is used by default.</Note>
|
|
265
|
+
* @summary Set PIN
|
|
266
|
+
* @param {SetPinRequestBody} setPinRequestBody
|
|
267
|
+
* @param {string} [xIdempotencyKey]
|
|
268
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
269
|
+
* @param {*} [options] Override http request option.
|
|
270
|
+
* @throws {RequiredError}
|
|
271
|
+
*/
|
|
272
|
+
setPin(setPinRequestBody, xIdempotencyKey, xAuditUser, options) {
|
|
273
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
274
|
+
var _a, _b, _c;
|
|
275
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.setPin(setPinRequestBody, xIdempotencyKey, xAuditUser, options);
|
|
276
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
277
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PINOperationsWithPreSharedKeyApi.setPin']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
278
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
279
|
+
});
|
|
280
|
+
},
|
|
281
|
+
};
|
|
282
|
+
};
|
|
283
|
+
exports.PINOperationsWithPreSharedKeyApiFp = PINOperationsWithPreSharedKeyApiFp;
|
|
284
|
+
/**
|
|
285
|
+
* PINOperationsWithPreSharedKeyApi - factory interface
|
|
286
|
+
* @export
|
|
287
|
+
*/
|
|
288
|
+
const PINOperationsWithPreSharedKeyApiFactory = function (configuration, basePath, axios) {
|
|
289
|
+
const localVarFp = (0, exports.PINOperationsWithPreSharedKeyApiFp)(configuration);
|
|
290
|
+
return {
|
|
291
|
+
/**
|
|
292
|
+
* Send a request to this endpoint to change PIN of a specific card version. <Note><ul><li>Javascript generates an encrypted PIN block in ISO Format 1 from the cardholder-defined PIN. The PIN block is encrypted using a pre-shared double-length 3DES Zone PIN Key (ZPK). If zpkIndex is not specified, the first key is used by default.</li><li>If sequenceNumber is not specified, the latest card version is used by default.</li></ul></Note>
|
|
293
|
+
* @summary Change PIN
|
|
294
|
+
* @param {ChangePinRequestBody} changePinRequestBody
|
|
295
|
+
* @param {string} [xIdempotencyKey]
|
|
296
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
297
|
+
* @param {*} [options] Override http request option.
|
|
298
|
+
* @throws {RequiredError}
|
|
299
|
+
*/
|
|
300
|
+
changePin(changePinRequestBody, xIdempotencyKey, xAuditUser, options) {
|
|
301
|
+
return localVarFp.changePin(changePinRequestBody, xIdempotencyKey, xAuditUser, options).then((request) => request(axios, basePath));
|
|
302
|
+
},
|
|
303
|
+
/**
|
|
304
|
+
* Send a request to this endpoint to set PIN for the latest card version. <Note>Javascript generates an encrypted PIN block in ISO Format 1 from the cardholder-defined PIN. The PIN block is encrypted using a pre-shared double-length 3DES Zone PIN Key (ZPK). If zpkIndex is not specified, the first key is used by default.</Note>
|
|
305
|
+
* @summary Set PIN
|
|
306
|
+
* @param {SetPinRequestBody} setPinRequestBody
|
|
307
|
+
* @param {string} [xIdempotencyKey]
|
|
308
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
309
|
+
* @param {*} [options] Override http request option.
|
|
310
|
+
* @throws {RequiredError}
|
|
311
|
+
*/
|
|
312
|
+
setPin(setPinRequestBody, xIdempotencyKey, xAuditUser, options) {
|
|
313
|
+
return localVarFp.setPin(setPinRequestBody, xIdempotencyKey, xAuditUser, options).then((request) => request(axios, basePath));
|
|
314
|
+
},
|
|
315
|
+
};
|
|
316
|
+
};
|
|
317
|
+
exports.PINOperationsWithPreSharedKeyApiFactory = PINOperationsWithPreSharedKeyApiFactory;
|
|
318
|
+
/**
|
|
319
|
+
* PINOperationsWithPreSharedKeyApi - object-oriented interface
|
|
320
|
+
* @export
|
|
321
|
+
* @class PINOperationsWithPreSharedKeyApi
|
|
322
|
+
* @extends {BaseAPI}
|
|
323
|
+
*/
|
|
324
|
+
class PINOperationsWithPreSharedKeyApi extends base_1.BaseAPI {
|
|
325
|
+
/**
|
|
326
|
+
* Send a request to this endpoint to change PIN of a specific card version. <Note><ul><li>Javascript generates an encrypted PIN block in ISO Format 1 from the cardholder-defined PIN. The PIN block is encrypted using a pre-shared double-length 3DES Zone PIN Key (ZPK). If zpkIndex is not specified, the first key is used by default.</li><li>If sequenceNumber is not specified, the latest card version is used by default.</li></ul></Note>
|
|
327
|
+
* @summary Change PIN
|
|
328
|
+
* @param {ChangePinRequestBody} changePinRequestBody
|
|
329
|
+
* @param {string} [xIdempotencyKey]
|
|
330
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
331
|
+
* @param {*} [options] Override http request option.
|
|
332
|
+
* @throws {RequiredError}
|
|
333
|
+
* @memberof PINOperationsWithPreSharedKeyApi
|
|
334
|
+
*/
|
|
335
|
+
changePin(changePinRequestBody, xIdempotencyKey, xAuditUser, options) {
|
|
336
|
+
return (0, exports.PINOperationsWithPreSharedKeyApiFp)(this.configuration).changePin(changePinRequestBody, xIdempotencyKey, xAuditUser, options).then((request) => request(this.axios, this.basePath));
|
|
337
|
+
}
|
|
338
|
+
/**
|
|
339
|
+
* Send a request to this endpoint to set PIN for the latest card version. <Note>Javascript generates an encrypted PIN block in ISO Format 1 from the cardholder-defined PIN. The PIN block is encrypted using a pre-shared double-length 3DES Zone PIN Key (ZPK). If zpkIndex is not specified, the first key is used by default.</Note>
|
|
340
|
+
* @summary Set PIN
|
|
341
|
+
* @param {SetPinRequestBody} setPinRequestBody
|
|
342
|
+
* @param {string} [xIdempotencyKey]
|
|
343
|
+
* @param {string} [xAuditUser] Optional audit user header
|
|
344
|
+
* @param {*} [options] Override http request option.
|
|
345
|
+
* @throws {RequiredError}
|
|
346
|
+
* @memberof PINOperationsWithPreSharedKeyApi
|
|
347
|
+
*/
|
|
348
|
+
setPin(setPinRequestBody, xIdempotencyKey, xAuditUser, options) {
|
|
349
|
+
return (0, exports.PINOperationsWithPreSharedKeyApiFp)(this.configuration).setPin(setPinRequestBody, xIdempotencyKey, xAuditUser, options).then((request) => request(this.axios, this.basePath));
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
exports.PINOperationsWithPreSharedKeyApi = PINOperationsWithPreSharedKeyApi;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* PIN API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { Configuration } from './configuration';
|
|
13
|
+
import type { AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
|
+
export declare const BASE_PATH: string;
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
*/
|
|
19
|
+
export declare const COLLECTION_FORMATS: {
|
|
20
|
+
csv: string;
|
|
21
|
+
ssv: string;
|
|
22
|
+
tsv: string;
|
|
23
|
+
pipes: string;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @export
|
|
28
|
+
* @interface RequestArgs
|
|
29
|
+
*/
|
|
30
|
+
export interface RequestArgs {
|
|
31
|
+
url: string;
|
|
32
|
+
options: RawAxiosRequestConfig;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @export
|
|
37
|
+
* @class BaseAPI
|
|
38
|
+
*/
|
|
39
|
+
export declare class BaseAPI {
|
|
40
|
+
protected basePath: string;
|
|
41
|
+
protected axios: AxiosInstance;
|
|
42
|
+
protected configuration: Configuration | undefined;
|
|
43
|
+
constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @export
|
|
48
|
+
* @class RequiredError
|
|
49
|
+
* @extends {Error}
|
|
50
|
+
*/
|
|
51
|
+
export declare class RequiredError extends Error {
|
|
52
|
+
field: string;
|
|
53
|
+
constructor(field: string, msg?: string);
|
|
54
|
+
}
|
|
55
|
+
interface ServerMap {
|
|
56
|
+
[key: string]: {
|
|
57
|
+
url: string;
|
|
58
|
+
description: string;
|
|
59
|
+
}[];
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @export
|
|
64
|
+
*/
|
|
65
|
+
export declare const operationServerMap: ServerMap;
|
|
66
|
+
export {};
|
package/dist/pin/base.js
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* PIN API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.operationServerMap = exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
|
|
17
|
+
const axios_1 = require("axios");
|
|
18
|
+
exports.BASE_PATH = "http://localhost".replace(/\/+$/, "");
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @export
|
|
22
|
+
*/
|
|
23
|
+
exports.COLLECTION_FORMATS = {
|
|
24
|
+
csv: ",",
|
|
25
|
+
ssv: " ",
|
|
26
|
+
tsv: "\t",
|
|
27
|
+
pipes: "|",
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @export
|
|
32
|
+
* @class BaseAPI
|
|
33
|
+
*/
|
|
34
|
+
class BaseAPI {
|
|
35
|
+
constructor(configuration, basePath = exports.BASE_PATH, axios = axios_1.default) {
|
|
36
|
+
var _a;
|
|
37
|
+
this.basePath = basePath;
|
|
38
|
+
this.axios = axios;
|
|
39
|
+
if (configuration) {
|
|
40
|
+
this.configuration = configuration;
|
|
41
|
+
this.basePath = (_a = configuration.basePath) !== null && _a !== void 0 ? _a : basePath;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.BaseAPI = BaseAPI;
|
|
46
|
+
;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @export
|
|
50
|
+
* @class RequiredError
|
|
51
|
+
* @extends {Error}
|
|
52
|
+
*/
|
|
53
|
+
class RequiredError extends Error {
|
|
54
|
+
constructor(field, msg) {
|
|
55
|
+
super(msg);
|
|
56
|
+
this.field = field;
|
|
57
|
+
this.name = "RequiredError";
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
exports.RequiredError = RequiredError;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @export
|
|
64
|
+
*/
|
|
65
|
+
exports.operationServerMap = {};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* PIN API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { Configuration } from "./configuration";
|
|
13
|
+
import type { RequestArgs } from "./base";
|
|
14
|
+
import type { AxiosInstance, AxiosResponse } from 'axios';
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
*/
|
|
19
|
+
export declare const DUMMY_BASE_URL = "https://example.com";
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @throws {RequiredError}
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
export declare const assertParamExists: (functionName: string, paramName: string, paramValue: unknown) => void;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @export
|
|
29
|
+
*/
|
|
30
|
+
export declare const setApiKeyToObject: (object: any, keyParamName: string, configuration?: Configuration) => Promise<void>;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
*/
|
|
35
|
+
export declare const setBasicAuthToObject: (object: any, configuration?: Configuration) => void;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export declare const setBearerAuthToObject: (object: any, configuration?: Configuration) => Promise<void>;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @export
|
|
44
|
+
*/
|
|
45
|
+
export declare const setOAuthToObject: (object: any, name: string, scopes: string[], configuration?: Configuration) => Promise<void>;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @export
|
|
49
|
+
*/
|
|
50
|
+
export declare const setSearchParams: (url: URL, ...objects: any[]) => void;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @export
|
|
54
|
+
*/
|
|
55
|
+
export declare const serializeDataIfNeeded: (value: any, requestOptions: any, configuration?: Configuration) => any;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @export
|
|
59
|
+
*/
|
|
60
|
+
export declare const toPathString: (url: URL) => string;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @export
|
|
64
|
+
*/
|
|
65
|
+
export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
|