UNPKG

@onboardingbuddy/onboardingbuddy-client

Version:

TypeScript client for Onboarding Buddy API

813 lines 134 kB
"use strict"; /* tslint:disable */ /* eslint-disable */ /** * Onboarding Buddy API * This document details all the available operations in the Onboarding Buddy API specification * * The version of the OpenAPI document: v1 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.ValidationApi = exports.ValidationApiFactory = exports.ValidationApiFp = exports.ValidationApiAxiosParamCreator = exports.SanctionsApi = exports.SanctionsApiFactory = exports.SanctionsApiFp = exports.SanctionsApiAxiosParamCreator = exports.FileApi = exports.FileApiFactory = exports.FileApiFp = exports.FileApiAxiosParamCreator = exports.BatchApi = exports.BatchApiFactory = exports.BatchApiFp = exports.BatchApiAxiosParamCreator = exports.SubmitBatchResponseMBatchStatusEnum = void 0; const axios_1 = __importDefault(require("axios")); // Some imports not used depending on template conditions // @ts-ignore const common_1 = require("./common"); // @ts-ignore const base_1 = require("./base"); exports.SubmitBatchResponseMBatchStatusEnum = { NUMBER_1: 1, NUMBER_2: 2, NUMBER_3: 3, NUMBER_4: 4 }; /** * BatchApi - axios parameter creator * @export */ const BatchApiAxiosParamCreator = function (configuration) { return { /** * This action returns the batch results response * @summary Get the results for a batch - browser * @param {string} batchId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getBrowserBatch: (batchId_1, ...args_1) => __awaiter(this, [batchId_1, ...args_1], void 0, function* (batchId, options = {}) { // verify required parameter 'batchId' is not null or undefined (0, common_1.assertParamExists)('getBrowserBatch', 'batchId', batchId); const localVarPath = `/validation-service/batch/browser/{batchId}` .replace(`{${"batchId"}}`, encodeURIComponent(String(batchId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); const localVarHeaderParameter = {}; const localVarQueryParameter = {}; // authentication ApiKey required yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "ob-api-key", configuration); // authentication AppKey required yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "ob-app-key", configuration); // authentication ApiSecret required yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "ob-api-secret", configuration); (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); return { url: (0, common_1.toPathString)(localVarUrlObj), options: localVarRequestOptions, }; }), /** * This action returns the batch results response * @summary Get the results for a batch - email address * @param {string} batchId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getEmailaddressBatch: (batchId_1, ...args_1) => __awaiter(this, [batchId_1, ...args_1], void 0, function* (batchId, options = {}) { // verify required parameter 'batchId' is not null or undefined (0, common_1.assertParamExists)('getEmailaddressBatch', 'batchId', batchId); const localVarPath = `/validation-service/batch/email-address/{batchId}` .replace(`{${"batchId"}}`, encodeURIComponent(String(batchId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); const localVarHeaderParameter = {}; const localVarQueryParameter = {}; // authentication ApiKey required yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "ob-api-key", configuration); // authentication AppKey required yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "ob-app-key", configuration); // authentication ApiSecret required yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "ob-api-secret", configuration); (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); return { url: (0, common_1.toPathString)(localVarUrlObj), options: localVarRequestOptions, }; }), /** * This action returns the batch results response * @summary Get the results for a batch - ip address * @param {string} batchId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getIpaddressBatch: (batchId_1, ...args_1) => __awaiter(this, [batchId_1, ...args_1], void 0, function* (batchId, options = {}) { // verify required parameter 'batchId' is not null or undefined (0, common_1.assertParamExists)('getIpaddressBatch', 'batchId', batchId); const localVarPath = `/validation-service/batch/ip-address/{batchId}` .replace(`{${"batchId"}}`, encodeURIComponent(String(batchId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); const localVarHeaderParameter = {}; const localVarQueryParameter = {}; // authentication ApiKey required yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "ob-api-key", configuration); // authentication AppKey required yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "ob-app-key", configuration); // authentication ApiSecret required yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "ob-api-secret", configuration); (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); return { url: (0, common_1.toPathString)(localVarUrlObj), options: localVarRequestOptions, }; }), /** * This action returns the batch results response * @summary Get the results for a batch - mobile number * @param {string} batchId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getMobilenumberBatch: (batchId_1, ...args_1) => __awaiter(this, [batchId_1, ...args_1], void 0, function* (batchId, options = {}) { // verify required parameter 'batchId' is not null or undefined (0, common_1.assertParamExists)('getMobilenumberBatch', 'batchId', batchId); const localVarPath = `/validation-service/batch/mobile/{batchId}` .replace(`{${"batchId"}}`, encodeURIComponent(String(batchId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); const localVarHeaderParameter = {}; const localVarQueryParameter = {}; // authentication ApiKey required yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "ob-api-key", configuration); // authentication AppKey required yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "ob-app-key", configuration); // authentication ApiSecret required yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "ob-api-secret", configuration); (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); return { url: (0, common_1.toPathString)(localVarUrlObj), options: localVarRequestOptions, }; }), /** * This action returns the batch poll response * @summary Poll the state of a batch submitted for processing * @param {string} batchId * @param {*} [options] Override http request option. * @throws {RequiredError} */ pollBatch: (batchId_1, ...args_1) => __awaiter(this, [batchId_1, ...args_1], void 0, function* (batchId, options = {}) { // verify required parameter 'batchId' is not null or undefined (0, common_1.assertParamExists)('pollBatch', 'batchId', batchId); const localVarPath = `/validation-service/batch/poll/{batchId}` .replace(`{${"batchId"}}`, encodeURIComponent(String(batchId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); const localVarHeaderParameter = {}; const localVarQueryParameter = {}; // authentication ApiKey required yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "ob-api-key", configuration); // authentication AppKey required yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "ob-app-key", configuration); // authentication ApiSecret required yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "ob-api-secret", configuration); (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); return { url: (0, common_1.toPathString)(localVarUrlObj), options: localVarRequestOptions, }; }), /** * This action returns the batch validation response * @summary Perform browser validation for a batch of values * @param {BrowserSubmitBatchRequestM} browserSubmitBatchRequestM The request payload * @param {*} [options] Override http request option. * @throws {RequiredError} */ submitBrowserBatch: (browserSubmitBatchRequestM_1, ...args_1) => __awaiter(this, [browserSubmitBatchRequestM_1, ...args_1], void 0, function* (browserSubmitBatchRequestM, options = {}) { // verify required parameter 'browserSubmitBatchRequestM' is not null or undefined (0, common_1.assertParamExists)('submitBrowserBatch', 'browserSubmitBatchRequestM', browserSubmitBatchRequestM); const localVarPath = `/validation-service/batch/browser`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options); const localVarHeaderParameter = {}; const localVarQueryParameter = {}; // authentication ApiKey required yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "ob-api-key", configuration); // authentication AppKey required yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "ob-app-key", configuration); // authentication ApiSecret required yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "ob-api-secret", configuration); localVarHeaderParameter['Content-Type'] = 'application/json'; (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(browserSubmitBatchRequestM, localVarRequestOptions, configuration); return { url: (0, common_1.toPathString)(localVarUrlObj), options: localVarRequestOptions, }; }), /** * This action returns the batch validation response * @summary Perform email address validation for a batch of values * @param {EmailAddressSubmitBatchRequestM} emailAddressSubmitBatchRequestM An instance of the EmailAddressSubmitBatchRequestM model * @param {*} [options] Override http request option. * @throws {RequiredError} */ submitEmailaddressBatch: (emailAddressSubmitBatchRequestM_1, ...args_1) => __awaiter(this, [emailAddressSubmitBatchRequestM_1, ...args_1], void 0, function* (emailAddressSubmitBatchRequestM, options = {}) { // verify required parameter 'emailAddressSubmitBatchRequestM' is not null or undefined (0, common_1.assertParamExists)('submitEmailaddressBatch', 'emailAddressSubmitBatchRequestM', emailAddressSubmitBatchRequestM); const localVarPath = `/validation-service/batch/email-address`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options); const localVarHeaderParameter = {}; const localVarQueryParameter = {}; // authentication ApiKey required yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "ob-api-key", configuration); // authentication AppKey required yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "ob-app-key", configuration); // authentication ApiSecret required yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "ob-api-secret", configuration); localVarHeaderParameter['Content-Type'] = 'application/json'; (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(emailAddressSubmitBatchRequestM, localVarRequestOptions, configuration); return { url: (0, common_1.toPathString)(localVarUrlObj), options: localVarRequestOptions, }; }), /** * This action returns the batch validation response * @summary Perform ip address validation for a batch of values * @param {IpAddressSubmitBatchRequestM} ipAddressSubmitBatchRequestM The request payload * @param {*} [options] Override http request option. * @throws {RequiredError} */ submitIpaddressBatch: (ipAddressSubmitBatchRequestM_1, ...args_1) => __awaiter(this, [ipAddressSubmitBatchRequestM_1, ...args_1], void 0, function* (ipAddressSubmitBatchRequestM, options = {}) { // verify required parameter 'ipAddressSubmitBatchRequestM' is not null or undefined (0, common_1.assertParamExists)('submitIpaddressBatch', 'ipAddressSubmitBatchRequestM', ipAddressSubmitBatchRequestM); const localVarPath = `/validation-service/batch/ip-address`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options); const localVarHeaderParameter = {}; const localVarQueryParameter = {}; // authentication ApiKey required yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "ob-api-key", configuration); // authentication AppKey required yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "ob-app-key", configuration); // authentication ApiSecret required yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "ob-api-secret", configuration); localVarHeaderParameter['Content-Type'] = 'application/json'; (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(ipAddressSubmitBatchRequestM, localVarRequestOptions, configuration); return { url: (0, common_1.toPathString)(localVarUrlObj), options: localVarRequestOptions, }; }), /** * This action returns the batch validation response * @summary Perform mobile number validation for a batch of values * @param {MobileNumberSubmitBatchRequestM} mobileNumberSubmitBatchRequestM The request payload * @param {*} [options] Override http request option. * @throws {RequiredError} */ submitMobilenumberBatch: (mobileNumberSubmitBatchRequestM_1, ...args_1) => __awaiter(this, [mobileNumberSubmitBatchRequestM_1, ...args_1], void 0, function* (mobileNumberSubmitBatchRequestM, options = {}) { // verify required parameter 'mobileNumberSubmitBatchRequestM' is not null or undefined (0, common_1.assertParamExists)('submitMobilenumberBatch', 'mobileNumberSubmitBatchRequestM', mobileNumberSubmitBatchRequestM); const localVarPath = `/validation-service/batch/mobile`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options); const localVarHeaderParameter = {}; const localVarQueryParameter = {}; // authentication ApiKey required yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "ob-api-key", configuration); // authentication AppKey required yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "ob-app-key", configuration); // authentication ApiSecret required yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "ob-api-secret", configuration); localVarHeaderParameter['Content-Type'] = 'application/json'; (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(mobileNumberSubmitBatchRequestM, localVarRequestOptions, configuration); return { url: (0, common_1.toPathString)(localVarUrlObj), options: localVarRequestOptions, }; }), }; }; exports.BatchApiAxiosParamCreator = BatchApiAxiosParamCreator; /** * BatchApi - functional programming interface * @export */ const BatchApiFp = function (configuration) { const localVarAxiosParamCreator = (0, exports.BatchApiAxiosParamCreator)(configuration); return { /** * This action returns the batch results response * @summary Get the results for a batch - browser * @param {string} batchId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getBrowserBatch(batchId, options) { return __awaiter(this, void 0, void 0, function* () { var _a, _b, _c; const localVarAxiosArgs = yield localVarAxiosParamCreator.getBrowserBatch(batchId, options); const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BatchApi.getBrowserBatch']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }); }, /** * This action returns the batch results response * @summary Get the results for a batch - email address * @param {string} batchId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getEmailaddressBatch(batchId, options) { return __awaiter(this, void 0, void 0, function* () { var _a, _b, _c; const localVarAxiosArgs = yield localVarAxiosParamCreator.getEmailaddressBatch(batchId, options); const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BatchApi.getEmailaddressBatch']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }); }, /** * This action returns the batch results response * @summary Get the results for a batch - ip address * @param {string} batchId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getIpaddressBatch(batchId, options) { return __awaiter(this, void 0, void 0, function* () { var _a, _b, _c; const localVarAxiosArgs = yield localVarAxiosParamCreator.getIpaddressBatch(batchId, options); const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BatchApi.getIpaddressBatch']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }); }, /** * This action returns the batch results response * @summary Get the results for a batch - mobile number * @param {string} batchId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getMobilenumberBatch(batchId, options) { return __awaiter(this, void 0, void 0, function* () { var _a, _b, _c; const localVarAxiosArgs = yield localVarAxiosParamCreator.getMobilenumberBatch(batchId, options); const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BatchApi.getMobilenumberBatch']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }); }, /** * This action returns the batch poll response * @summary Poll the state of a batch submitted for processing * @param {string} batchId * @param {*} [options] Override http request option. * @throws {RequiredError} */ pollBatch(batchId, options) { return __awaiter(this, void 0, void 0, function* () { var _a, _b, _c; const localVarAxiosArgs = yield localVarAxiosParamCreator.pollBatch(batchId, options); const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BatchApi.pollBatch']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }); }, /** * This action returns the batch validation response * @summary Perform browser validation for a batch of values * @param {BrowserSubmitBatchRequestM} browserSubmitBatchRequestM The request payload * @param {*} [options] Override http request option. * @throws {RequiredError} */ submitBrowserBatch(browserSubmitBatchRequestM, options) { return __awaiter(this, void 0, void 0, function* () { var _a, _b, _c; const localVarAxiosArgs = yield localVarAxiosParamCreator.submitBrowserBatch(browserSubmitBatchRequestM, options); const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BatchApi.submitBrowserBatch']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }); }, /** * This action returns the batch validation response * @summary Perform email address validation for a batch of values * @param {EmailAddressSubmitBatchRequestM} emailAddressSubmitBatchRequestM An instance of the EmailAddressSubmitBatchRequestM model * @param {*} [options] Override http request option. * @throws {RequiredError} */ submitEmailaddressBatch(emailAddressSubmitBatchRequestM, options) { return __awaiter(this, void 0, void 0, function* () { var _a, _b, _c; const localVarAxiosArgs = yield localVarAxiosParamCreator.submitEmailaddressBatch(emailAddressSubmitBatchRequestM, options); const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BatchApi.submitEmailaddressBatch']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }); }, /** * This action returns the batch validation response * @summary Perform ip address validation for a batch of values * @param {IpAddressSubmitBatchRequestM} ipAddressSubmitBatchRequestM The request payload * @param {*} [options] Override http request option. * @throws {RequiredError} */ submitIpaddressBatch(ipAddressSubmitBatchRequestM, options) { return __awaiter(this, void 0, void 0, function* () { var _a, _b, _c; const localVarAxiosArgs = yield localVarAxiosParamCreator.submitIpaddressBatch(ipAddressSubmitBatchRequestM, options); const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BatchApi.submitIpaddressBatch']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }); }, /** * This action returns the batch validation response * @summary Perform mobile number validation for a batch of values * @param {MobileNumberSubmitBatchRequestM} mobileNumberSubmitBatchRequestM The request payload * @param {*} [options] Override http request option. * @throws {RequiredError} */ submitMobilenumberBatch(mobileNumberSubmitBatchRequestM, options) { return __awaiter(this, void 0, void 0, function* () { var _a, _b, _c; const localVarAxiosArgs = yield localVarAxiosParamCreator.submitMobilenumberBatch(mobileNumberSubmitBatchRequestM, options); const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BatchApi.submitMobilenumberBatch']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }); }, }; }; exports.BatchApiFp = BatchApiFp; /** * BatchApi - factory interface * @export */ const BatchApiFactory = function (configuration, basePath, axios) { const localVarFp = (0, exports.BatchApiFp)(configuration); return { /** * This action returns the batch results response * @summary Get the results for a batch - browser * @param {string} batchId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getBrowserBatch(batchId, options) { return localVarFp.getBrowserBatch(batchId, options).then((request) => request(axios, basePath)); }, /** * This action returns the batch results response * @summary Get the results for a batch - email address * @param {string} batchId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getEmailaddressBatch(batchId, options) { return localVarFp.getEmailaddressBatch(batchId, options).then((request) => request(axios, basePath)); }, /** * This action returns the batch results response * @summary Get the results for a batch - ip address * @param {string} batchId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getIpaddressBatch(batchId, options) { return localVarFp.getIpaddressBatch(batchId, options).then((request) => request(axios, basePath)); }, /** * This action returns the batch results response * @summary Get the results for a batch - mobile number * @param {string} batchId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getMobilenumberBatch(batchId, options) { return localVarFp.getMobilenumberBatch(batchId, options).then((request) => request(axios, basePath)); }, /** * This action returns the batch poll response * @summary Poll the state of a batch submitted for processing * @param {string} batchId * @param {*} [options] Override http request option. * @throws {RequiredError} */ pollBatch(batchId, options) { return localVarFp.pollBatch(batchId, options).then((request) => request(axios, basePath)); }, /** * This action returns the batch validation response * @summary Perform browser validation for a batch of values * @param {BrowserSubmitBatchRequestM} browserSubmitBatchRequestM The request payload * @param {*} [options] Override http request option. * @throws {RequiredError} */ submitBrowserBatch(browserSubmitBatchRequestM, options) { return localVarFp.submitBrowserBatch(browserSubmitBatchRequestM, options).then((request) => request(axios, basePath)); }, /** * This action returns the batch validation response * @summary Perform email address validation for a batch of values * @param {EmailAddressSubmitBatchRequestM} emailAddressSubmitBatchRequestM An instance of the EmailAddressSubmitBatchRequestM model * @param {*} [options] Override http request option. * @throws {RequiredError} */ submitEmailaddressBatch(emailAddressSubmitBatchRequestM, options) { return localVarFp.submitEmailaddressBatch(emailAddressSubmitBatchRequestM, options).then((request) => request(axios, basePath)); }, /** * This action returns the batch validation response * @summary Perform ip address validation for a batch of values * @param {IpAddressSubmitBatchRequestM} ipAddressSubmitBatchRequestM The request payload * @param {*} [options] Override http request option. * @throws {RequiredError} */ submitIpaddressBatch(ipAddressSubmitBatchRequestM, options) { return localVarFp.submitIpaddressBatch(ipAddressSubmitBatchRequestM, options).then((request) => request(axios, basePath)); }, /** * This action returns the batch validation response * @summary Perform mobile number validation for a batch of values * @param {MobileNumberSubmitBatchRequestM} mobileNumberSubmitBatchRequestM The request payload * @param {*} [options] Override http request option. * @throws {RequiredError} */ submitMobilenumberBatch(mobileNumberSubmitBatchRequestM, options) { return localVarFp.submitMobilenumberBatch(mobileNumberSubmitBatchRequestM, options).then((request) => request(axios, basePath)); }, }; }; exports.BatchApiFactory = BatchApiFactory; /** * BatchApi - object-oriented interface * @export * @class BatchApi * @extends {BaseAPI} */ class BatchApi extends base_1.BaseAPI { /** * This action returns the batch results response * @summary Get the results for a batch - browser * @param {string} batchId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof BatchApi */ getBrowserBatch(batchId, options) { return (0, exports.BatchApiFp)(this.configuration).getBrowserBatch(batchId, options).then((request) => request(this.axios, this.basePath)); } /** * This action returns the batch results response * @summary Get the results for a batch - email address * @param {string} batchId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof BatchApi */ getEmailaddressBatch(batchId, options) { return (0, exports.BatchApiFp)(this.configuration).getEmailaddressBatch(batchId, options).then((request) => request(this.axios, this.basePath)); } /** * This action returns the batch results response * @summary Get the results for a batch - ip address * @param {string} batchId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof BatchApi */ getIpaddressBatch(batchId, options) { return (0, exports.BatchApiFp)(this.configuration).getIpaddressBatch(batchId, options).then((request) => request(this.axios, this.basePath)); } /** * This action returns the batch results response * @summary Get the results for a batch - mobile number * @param {string} batchId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof BatchApi */ getMobilenumberBatch(batchId, options) { return (0, exports.BatchApiFp)(this.configuration).getMobilenumberBatch(batchId, options).then((request) => request(this.axios, this.basePath)); } /** * This action returns the batch poll response * @summary Poll the state of a batch submitted for processing * @param {string} batchId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof BatchApi */ pollBatch(batchId, options) { return (0, exports.BatchApiFp)(this.configuration).pollBatch(batchId, options).then((request) => request(this.axios, this.basePath)); } /** * This action returns the batch validation response * @summary Perform browser validation for a batch of values * @param {BrowserSubmitBatchRequestM} browserSubmitBatchRequestM The request payload * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof BatchApi */ submitBrowserBatch(browserSubmitBatchRequestM, options) { return (0, exports.BatchApiFp)(this.configuration).submitBrowserBatch(browserSubmitBatchRequestM, options).then((request) => request(this.axios, this.basePath)); } /** * This action returns the batch validation response * @summary Perform email address validation for a batch of values * @param {EmailAddressSubmitBatchRequestM} emailAddressSubmitBatchRequestM An instance of the EmailAddressSubmitBatchRequestM model * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof BatchApi */ submitEmailaddressBatch(emailAddressSubmitBatchRequestM, options) { return (0, exports.BatchApiFp)(this.configuration).submitEmailaddressBatch(emailAddressSubmitBatchRequestM, options).then((request) => request(this.axios, this.basePath)); } /** * This action returns the batch validation response * @summary Perform ip address validation for a batch of values * @param {IpAddressSubmitBatchRequestM} ipAddressSubmitBatchRequestM The request payload * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof BatchApi */ submitIpaddressBatch(ipAddressSubmitBatchRequestM, options) { return (0, exports.BatchApiFp)(this.configuration).submitIpaddressBatch(ipAddressSubmitBatchRequestM, options).then((request) => request(this.axios, this.basePath)); } /** * This action returns the batch validation response * @summary Perform mobile number validation for a batch of values * @param {MobileNumberSubmitBatchRequestM} mobileNumberSubmitBatchRequestM The request payload * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof BatchApi */ submitMobilenumberBatch(mobileNumberSubmitBatchRequestM, options) { return (0, exports.BatchApiFp)(this.configuration).submitMobilenumberBatch(mobileNumberSubmitBatchRequestM, options).then((request) => request(this.axios, this.basePath)); } } exports.BatchApi = BatchApi; /** * FileApi - axios parameter creator * @export */ const FileApiAxiosParamCreator = function (configuration) { return { /** * Deletes a file record for the specified identifer * @summary Delete File * @param {string} fileGlobalId * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteFileRecord: (fileGlobalId_1, ...args_1) => __awaiter(this, [fileGlobalId_1, ...args_1], void 0, function* (fileGlobalId, options = {}) { // verify required parameter 'fileGlobalId' is not null or undefined (0, common_1.assertParamExists)('deleteFileRecord', 'fileGlobalId', fileGlobalId); const localVarPath = `/file-service/management/{fileGlobalId}` .replace(`{${"fileGlobalId"}}`, encodeURIComponent(String(fileGlobalId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options); const localVarHeaderParameter = {}; const localVarQueryParameter = {}; // authentication ApiKey required yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "ob-api-key", configuration); // authentication AppKey required yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "ob-app-key", configuration); // authentication ApiSecret required yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "ob-api-secret", configuration); (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); return { url: (0, common_1.toPathString)(localVarUrlObj), options: localVarRequestOptions, }; }), /** * Returns the generated response based on the document rag query for the requested file identifier * @summary Document RAG * @param {RagQueryRequestM} [ragQueryRequestM] * @param {*} [options] Override http request option. * @throws {RequiredError} */ documentRag: (ragQueryRequestM_1, ...args_1) => __awaiter(this, [ragQueryRequestM_1, ...args_1], void 0, function* (ragQueryRequestM, options = {}) { const localVarPath = `/file-service/query/rag`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options); const localVarHeaderParameter = {}; const localVarQueryParameter = {}; // authentication ApiKey required yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "ob-api-key", configuration); // authentication AppKey required yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "ob-app-key", configuration); // authentication ApiSecret required yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "ob-api-secret", configuration); localVarHeaderParameter['Content-Type'] = 'application/json'; (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(ragQueryRequestM, localVarRequestOptions, configuration); return { url: (0, common_1.toPathString)(localVarUrlObj), options: localVarRequestOptions, }; }), /** * Returns the download information for the requested file * @summary File Download * @param {string} fileGlobalId * @param {*} [options] Override http request option. * @throws {RequiredError} */ download: (fileGlobalId_1, ...args_1) => __awaiter(this, [fileG