mirror of
https://github.com/LukeHagar/plexjs.git
synced 2025-12-06 12:37:46 +00:00
Automated build '' typescript-axios sdk: 4638889339
This commit is contained in:
14
dist/index.d.ts
vendored
14
dist/index.d.ts
vendored
@@ -1,16 +1,4 @@
|
||||
/**
|
||||
* IdentityNow V3 API
|
||||
* Use these APIs to interact with the IdentityNow platform to achieve repeatable, automated processes with greater scalability. We encourage you to join the SailPoint Developer Community forum at https://developer.sailpoint.com/discuss to connect with other developers using our APIs.
|
||||
*
|
||||
* The version of the OpenAPI document: 3.0.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
export * from "./sdk-output/api";
|
||||
export { Configuration as ConfigurationBeta, ConfigurationParameters as ConfigurationParameter } from "./sdk-output/configuration";
|
||||
export { Configuration, ConfigurationParameters } from "./configuration";
|
||||
export { Configuration, ConfigurationParameters } from "./sdk-output/configuration";
|
||||
export * from "./paginator";
|
||||
export * as axiosRetry from "axios-retry";
|
||||
|
||||
19
dist/index.js
vendored
19
dist/index.js
vendored
@@ -1,17 +1,4 @@
|
||||
"use strict";
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* IdentityNow V3 API
|
||||
* Use these APIs to interact with the IdentityNow platform to achieve repeatable, automated processes with greater scalability. We encourage you to join the SailPoint Developer Community forum at https://developer.sailpoint.com/discuss to connect with other developers using our APIs.
|
||||
*
|
||||
* The version of the OpenAPI document: 3.0.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
@@ -27,12 +14,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
||||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.axiosRetry = exports.Configuration = exports.ConfigurationBeta = void 0;
|
||||
exports.axiosRetry = exports.Configuration = void 0;
|
||||
__exportStar(require("./sdk-output/api"), exports);
|
||||
var configuration_1 = require("./sdk-output/configuration");
|
||||
Object.defineProperty(exports, "ConfigurationBeta", { enumerable: true, get: function () { return configuration_1.Configuration; } });
|
||||
var configuration_2 = require("./configuration");
|
||||
Object.defineProperty(exports, "Configuration", { enumerable: true, get: function () { return configuration_2.Configuration; } });
|
||||
Object.defineProperty(exports, "Configuration", { enumerable: true, get: function () { return configuration_1.Configuration; } });
|
||||
__exportStar(require("./paginator"), exports);
|
||||
exports.axiosRetry = require("axios-retry");
|
||||
//# sourceMappingURL=index.js.map
|
||||
2
dist/index.js.map
vendored
2
dist/index.js.map
vendored
@@ -1 +1 @@
|
||||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;;;;;;;;;;;;;;AAIH,mDAAiC;AACjC,4DAAiI;AAAzH,kHAAA,aAAa,OAAqB;AAE1C,iDAAuE;AAA/D,8GAAA,aAAa,OAAA;AAErB,8CAA4B;AAE5B,4CAAyC"}
|
||||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,mDAAiC;AAEjC,4DAAkF;AAA1E,8GAAA,aAAa,OAAA;AAErB,8CAA4B;AAE5B,4CAAyC"}
|
||||
2
dist/sdk-output/api.d.ts
vendored
2
dist/sdk-output/api.d.ts
vendored
@@ -9,7 +9,7 @@
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
import { Configuration } from '../configuration';
|
||||
import { Configuration } from './configuration';
|
||||
import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
||||
import { RequestArgs, BaseAPI } from './base';
|
||||
/**
|
||||
|
||||
136
dist/sdk-output/api.js
vendored
136
dist/sdk-output/api.js
vendored
@@ -101,6 +101,8 @@ var ActivitiesApiAxiosParamCreator = function (configuration) {
|
||||
return __awaiter(_this, void 0, void 0, function () {
|
||||
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
||||
return __generator(this, function (_a) {
|
||||
switch (_a.label) {
|
||||
case 0:
|
||||
// verify required parameter 'activityUUID' is not null or undefined
|
||||
(0, common_1.assertParamExists)('cancelServerActivities', 'activityUUID', activityUUID);
|
||||
localVarPath = "/activities/{activityUUID}"
|
||||
@@ -112,6 +114,11 @@ var ActivitiesApiAxiosParamCreator = function (configuration) {
|
||||
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), axiosOptions);
|
||||
localVarHeaderParameter = {};
|
||||
localVarQueryParameter = {};
|
||||
// authentication PlexToken required
|
||||
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Plex-Token", configuration)];
|
||||
case 1:
|
||||
// authentication PlexToken required
|
||||
_a.sent();
|
||||
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
||||
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), axiosOptions.headers);
|
||||
@@ -119,6 +126,7 @@ var ActivitiesApiAxiosParamCreator = function (configuration) {
|
||||
url: (0, common_1.toPathString)(localVarUrlObj),
|
||||
axiosOptions: localVarRequestOptions,
|
||||
}];
|
||||
}
|
||||
});
|
||||
});
|
||||
},
|
||||
@@ -133,6 +141,8 @@ var ActivitiesApiAxiosParamCreator = function (configuration) {
|
||||
return __awaiter(_this, void 0, void 0, function () {
|
||||
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
||||
return __generator(this, function (_a) {
|
||||
switch (_a.label) {
|
||||
case 0:
|
||||
localVarPath = "/activities";
|
||||
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
||||
if (configuration) {
|
||||
@@ -141,6 +151,11 @@ var ActivitiesApiAxiosParamCreator = function (configuration) {
|
||||
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), axiosOptions);
|
||||
localVarHeaderParameter = {};
|
||||
localVarQueryParameter = {};
|
||||
// authentication PlexToken required
|
||||
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Plex-Token", configuration)];
|
||||
case 1:
|
||||
// authentication PlexToken required
|
||||
_a.sent();
|
||||
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
||||
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), axiosOptions.headers);
|
||||
@@ -148,6 +163,7 @@ var ActivitiesApiAxiosParamCreator = function (configuration) {
|
||||
url: (0, common_1.toPathString)(localVarUrlObj),
|
||||
axiosOptions: localVarRequestOptions,
|
||||
}];
|
||||
}
|
||||
});
|
||||
});
|
||||
},
|
||||
@@ -288,6 +304,8 @@ var ButlerApiAxiosParamCreator = function (configuration) {
|
||||
return __awaiter(_this, void 0, void 0, function () {
|
||||
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
||||
return __generator(this, function (_a) {
|
||||
switch (_a.label) {
|
||||
case 0:
|
||||
// verify required parameter 'taskName' is not null or undefined
|
||||
(0, common_1.assertParamExists)('startAButlerTasks', 'taskName', taskName);
|
||||
localVarPath = "/butler/{taskName}"
|
||||
@@ -299,6 +317,11 @@ var ButlerApiAxiosParamCreator = function (configuration) {
|
||||
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), axiosOptions);
|
||||
localVarHeaderParameter = {};
|
||||
localVarQueryParameter = {};
|
||||
// authentication PlexToken required
|
||||
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Plex-Token", configuration)];
|
||||
case 1:
|
||||
// authentication PlexToken required
|
||||
_a.sent();
|
||||
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
||||
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), axiosOptions.headers);
|
||||
@@ -306,6 +329,7 @@ var ButlerApiAxiosParamCreator = function (configuration) {
|
||||
url: (0, common_1.toPathString)(localVarUrlObj),
|
||||
axiosOptions: localVarRequestOptions,
|
||||
}];
|
||||
}
|
||||
});
|
||||
});
|
||||
},
|
||||
@@ -320,6 +344,8 @@ var ButlerApiAxiosParamCreator = function (configuration) {
|
||||
return __awaiter(_this, void 0, void 0, function () {
|
||||
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
||||
return __generator(this, function (_a) {
|
||||
switch (_a.label) {
|
||||
case 0:
|
||||
localVarPath = "/butler";
|
||||
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
||||
if (configuration) {
|
||||
@@ -328,6 +354,11 @@ var ButlerApiAxiosParamCreator = function (configuration) {
|
||||
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), axiosOptions);
|
||||
localVarHeaderParameter = {};
|
||||
localVarQueryParameter = {};
|
||||
// authentication PlexToken required
|
||||
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Plex-Token", configuration)];
|
||||
case 1:
|
||||
// authentication PlexToken required
|
||||
_a.sent();
|
||||
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
||||
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), axiosOptions.headers);
|
||||
@@ -335,6 +366,7 @@ var ButlerApiAxiosParamCreator = function (configuration) {
|
||||
url: (0, common_1.toPathString)(localVarUrlObj),
|
||||
axiosOptions: localVarRequestOptions,
|
||||
}];
|
||||
}
|
||||
});
|
||||
});
|
||||
},
|
||||
@@ -350,6 +382,8 @@ var ButlerApiAxiosParamCreator = function (configuration) {
|
||||
return __awaiter(_this, void 0, void 0, function () {
|
||||
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
||||
return __generator(this, function (_a) {
|
||||
switch (_a.label) {
|
||||
case 0:
|
||||
// verify required parameter 'taskName' is not null or undefined
|
||||
(0, common_1.assertParamExists)('stopAButlerTasks', 'taskName', taskName);
|
||||
localVarPath = "/butler/{taskName}"
|
||||
@@ -361,6 +395,11 @@ var ButlerApiAxiosParamCreator = function (configuration) {
|
||||
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), axiosOptions);
|
||||
localVarHeaderParameter = {};
|
||||
localVarQueryParameter = {};
|
||||
// authentication PlexToken required
|
||||
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Plex-Token", configuration)];
|
||||
case 1:
|
||||
// authentication PlexToken required
|
||||
_a.sent();
|
||||
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
||||
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), axiosOptions.headers);
|
||||
@@ -368,6 +407,7 @@ var ButlerApiAxiosParamCreator = function (configuration) {
|
||||
url: (0, common_1.toPathString)(localVarUrlObj),
|
||||
axiosOptions: localVarRequestOptions,
|
||||
}];
|
||||
}
|
||||
});
|
||||
});
|
||||
},
|
||||
@@ -382,6 +422,8 @@ var ButlerApiAxiosParamCreator = function (configuration) {
|
||||
return __awaiter(_this, void 0, void 0, function () {
|
||||
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
||||
return __generator(this, function (_a) {
|
||||
switch (_a.label) {
|
||||
case 0:
|
||||
localVarPath = "/butler";
|
||||
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
||||
if (configuration) {
|
||||
@@ -390,6 +432,11 @@ var ButlerApiAxiosParamCreator = function (configuration) {
|
||||
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), axiosOptions);
|
||||
localVarHeaderParameter = {};
|
||||
localVarQueryParameter = {};
|
||||
// authentication PlexToken required
|
||||
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Plex-Token", configuration)];
|
||||
case 1:
|
||||
// authentication PlexToken required
|
||||
_a.sent();
|
||||
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
||||
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), axiosOptions.headers);
|
||||
@@ -397,6 +444,7 @@ var ButlerApiAxiosParamCreator = function (configuration) {
|
||||
url: (0, common_1.toPathString)(localVarUrlObj),
|
||||
axiosOptions: localVarRequestOptions,
|
||||
}];
|
||||
}
|
||||
});
|
||||
});
|
||||
},
|
||||
@@ -617,6 +665,8 @@ var LibraryApiAxiosParamCreator = function (configuration) {
|
||||
return __awaiter(_this, void 0, void 0, function () {
|
||||
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
||||
return __generator(this, function (_a) {
|
||||
switch (_a.label) {
|
||||
case 0:
|
||||
localVarPath = "/library/sections";
|
||||
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
||||
if (configuration) {
|
||||
@@ -625,6 +675,11 @@ var LibraryApiAxiosParamCreator = function (configuration) {
|
||||
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), axiosOptions);
|
||||
localVarHeaderParameter = {};
|
||||
localVarQueryParameter = {};
|
||||
// authentication PlexToken required
|
||||
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Plex-Token", configuration)];
|
||||
case 1:
|
||||
// authentication PlexToken required
|
||||
_a.sent();
|
||||
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
||||
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), axiosOptions.headers);
|
||||
@@ -632,6 +687,7 @@ var LibraryApiAxiosParamCreator = function (configuration) {
|
||||
url: (0, common_1.toPathString)(localVarUrlObj),
|
||||
axiosOptions: localVarRequestOptions,
|
||||
}];
|
||||
}
|
||||
});
|
||||
});
|
||||
},
|
||||
@@ -650,6 +706,8 @@ var LibraryApiAxiosParamCreator = function (configuration) {
|
||||
return __awaiter(_this, void 0, void 0, function () {
|
||||
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
||||
return __generator(this, function (_a) {
|
||||
switch (_a.label) {
|
||||
case 0:
|
||||
// verify required parameter 'sectionId' is not null or undefined
|
||||
(0, common_1.assertParamExists)('getLibraryItems', 'sectionId', sectionId);
|
||||
// verify required parameter 'category' is not null or undefined
|
||||
@@ -664,6 +722,11 @@ var LibraryApiAxiosParamCreator = function (configuration) {
|
||||
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), axiosOptions);
|
||||
localVarHeaderParameter = {};
|
||||
localVarQueryParameter = {};
|
||||
// authentication PlexToken required
|
||||
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Plex-Token", configuration)];
|
||||
case 1:
|
||||
// authentication PlexToken required
|
||||
_a.sent();
|
||||
if (type !== undefined) {
|
||||
localVarQueryParameter['type'] = type;
|
||||
}
|
||||
@@ -677,6 +740,7 @@ var LibraryApiAxiosParamCreator = function (configuration) {
|
||||
url: (0, common_1.toPathString)(localVarUrlObj),
|
||||
axiosOptions: localVarRequestOptions,
|
||||
}];
|
||||
}
|
||||
});
|
||||
});
|
||||
},
|
||||
@@ -822,6 +886,8 @@ var LogApiAxiosParamCreator = function (configuration) {
|
||||
return __awaiter(_this, void 0, void 0, function () {
|
||||
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
||||
return __generator(this, function (_a) {
|
||||
switch (_a.label) {
|
||||
case 0:
|
||||
localVarPath = "/log/networked";
|
||||
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
||||
if (configuration) {
|
||||
@@ -830,6 +896,11 @@ var LogApiAxiosParamCreator = function (configuration) {
|
||||
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), axiosOptions);
|
||||
localVarHeaderParameter = {};
|
||||
localVarQueryParameter = {};
|
||||
// authentication PlexToken required
|
||||
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Plex-Token", configuration)];
|
||||
case 1:
|
||||
// authentication PlexToken required
|
||||
_a.sent();
|
||||
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
||||
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), axiosOptions.headers);
|
||||
@@ -837,6 +908,7 @@ var LogApiAxiosParamCreator = function (configuration) {
|
||||
url: (0, common_1.toPathString)(localVarUrlObj),
|
||||
axiosOptions: localVarRequestOptions,
|
||||
}];
|
||||
}
|
||||
});
|
||||
});
|
||||
},
|
||||
@@ -851,6 +923,8 @@ var LogApiAxiosParamCreator = function (configuration) {
|
||||
return __awaiter(_this, void 0, void 0, function () {
|
||||
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
||||
return __generator(this, function (_a) {
|
||||
switch (_a.label) {
|
||||
case 0:
|
||||
localVarPath = "/log";
|
||||
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
||||
if (configuration) {
|
||||
@@ -859,6 +933,11 @@ var LogApiAxiosParamCreator = function (configuration) {
|
||||
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), axiosOptions);
|
||||
localVarHeaderParameter = {};
|
||||
localVarQueryParameter = {};
|
||||
// authentication PlexToken required
|
||||
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Plex-Token", configuration)];
|
||||
case 1:
|
||||
// authentication PlexToken required
|
||||
_a.sent();
|
||||
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
||||
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), axiosOptions.headers);
|
||||
@@ -866,6 +945,7 @@ var LogApiAxiosParamCreator = function (configuration) {
|
||||
url: (0, common_1.toPathString)(localVarUrlObj),
|
||||
axiosOptions: localVarRequestOptions,
|
||||
}];
|
||||
}
|
||||
});
|
||||
});
|
||||
},
|
||||
@@ -883,6 +963,8 @@ var LogApiAxiosParamCreator = function (configuration) {
|
||||
return __awaiter(_this, void 0, void 0, function () {
|
||||
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
||||
return __generator(this, function (_a) {
|
||||
switch (_a.label) {
|
||||
case 0:
|
||||
// verify required parameter 'level' is not null or undefined
|
||||
(0, common_1.assertParamExists)('logaLine', 'level', level);
|
||||
// verify required parameter 'message' is not null or undefined
|
||||
@@ -897,6 +979,11 @@ var LogApiAxiosParamCreator = function (configuration) {
|
||||
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), axiosOptions);
|
||||
localVarHeaderParameter = {};
|
||||
localVarQueryParameter = {};
|
||||
// authentication PlexToken required
|
||||
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Plex-Token", configuration)];
|
||||
case 1:
|
||||
// authentication PlexToken required
|
||||
_a.sent();
|
||||
if (level !== undefined) {
|
||||
localVarQueryParameter['level'] = level;
|
||||
}
|
||||
@@ -913,6 +1000,7 @@ var LogApiAxiosParamCreator = function (configuration) {
|
||||
url: (0, common_1.toPathString)(localVarUrlObj),
|
||||
axiosOptions: localVarRequestOptions,
|
||||
}];
|
||||
}
|
||||
});
|
||||
});
|
||||
},
|
||||
@@ -1096,6 +1184,8 @@ var SecurityApiAxiosParamCreator = function (configuration) {
|
||||
return __awaiter(_this, void 0, void 0, function () {
|
||||
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
||||
return __generator(this, function (_a) {
|
||||
switch (_a.label) {
|
||||
case 0:
|
||||
// verify required parameter 'source' is not null or undefined
|
||||
(0, common_1.assertParamExists)('getConnectionInformation', 'source', source);
|
||||
localVarPath = "/security/resources";
|
||||
@@ -1106,6 +1196,11 @@ var SecurityApiAxiosParamCreator = function (configuration) {
|
||||
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), axiosOptions);
|
||||
localVarHeaderParameter = {};
|
||||
localVarQueryParameter = {};
|
||||
// authentication PlexToken required
|
||||
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Plex-Token", configuration)];
|
||||
case 1:
|
||||
// authentication PlexToken required
|
||||
_a.sent();
|
||||
if (source !== undefined) {
|
||||
localVarQueryParameter['source'] = source;
|
||||
}
|
||||
@@ -1116,6 +1211,7 @@ var SecurityApiAxiosParamCreator = function (configuration) {
|
||||
url: (0, common_1.toPathString)(localVarUrlObj),
|
||||
axiosOptions: localVarRequestOptions,
|
||||
}];
|
||||
}
|
||||
});
|
||||
});
|
||||
},
|
||||
@@ -1132,6 +1228,8 @@ var SecurityApiAxiosParamCreator = function (configuration) {
|
||||
return __awaiter(_this, void 0, void 0, function () {
|
||||
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
||||
return __generator(this, function (_a) {
|
||||
switch (_a.label) {
|
||||
case 0:
|
||||
// verify required parameter 'type' is not null or undefined
|
||||
(0, common_1.assertParamExists)('getTransientToken', 'type', type);
|
||||
// verify required parameter 'scope' is not null or undefined
|
||||
@@ -1144,6 +1242,11 @@ var SecurityApiAxiosParamCreator = function (configuration) {
|
||||
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), axiosOptions);
|
||||
localVarHeaderParameter = {};
|
||||
localVarQueryParameter = {};
|
||||
// authentication PlexToken required
|
||||
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Plex-Token", configuration)];
|
||||
case 1:
|
||||
// authentication PlexToken required
|
||||
_a.sent();
|
||||
if (type !== undefined) {
|
||||
localVarQueryParameter['type'] = type;
|
||||
}
|
||||
@@ -1157,6 +1260,7 @@ var SecurityApiAxiosParamCreator = function (configuration) {
|
||||
url: (0, common_1.toPathString)(localVarUrlObj),
|
||||
axiosOptions: localVarRequestOptions,
|
||||
}];
|
||||
}
|
||||
});
|
||||
});
|
||||
},
|
||||
@@ -1301,6 +1405,8 @@ var ServerApiAxiosParamCreator = function (configuration) {
|
||||
return __awaiter(_this, void 0, void 0, function () {
|
||||
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
||||
return __generator(this, function (_a) {
|
||||
switch (_a.label) {
|
||||
case 0:
|
||||
localVarPath = "/";
|
||||
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
||||
if (configuration) {
|
||||
@@ -1309,6 +1415,11 @@ var ServerApiAxiosParamCreator = function (configuration) {
|
||||
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), axiosOptions);
|
||||
localVarHeaderParameter = {};
|
||||
localVarQueryParameter = {};
|
||||
// authentication PlexToken required
|
||||
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Plex-Token", configuration)];
|
||||
case 1:
|
||||
// authentication PlexToken required
|
||||
_a.sent();
|
||||
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
||||
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), axiosOptions.headers);
|
||||
@@ -1316,6 +1427,7 @@ var ServerApiAxiosParamCreator = function (configuration) {
|
||||
url: (0, common_1.toPathString)(localVarUrlObj),
|
||||
axiosOptions: localVarRequestOptions,
|
||||
}];
|
||||
}
|
||||
});
|
||||
});
|
||||
},
|
||||
@@ -1415,6 +1527,8 @@ var UpdaterApiAxiosParamCreator = function (configuration) {
|
||||
return __awaiter(_this, void 0, void 0, function () {
|
||||
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
||||
return __generator(this, function (_a) {
|
||||
switch (_a.label) {
|
||||
case 0:
|
||||
localVarPath = "/updater/apply";
|
||||
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
||||
if (configuration) {
|
||||
@@ -1423,6 +1537,11 @@ var UpdaterApiAxiosParamCreator = function (configuration) {
|
||||
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), axiosOptions);
|
||||
localVarHeaderParameter = {};
|
||||
localVarQueryParameter = {};
|
||||
// authentication PlexToken required
|
||||
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Plex-Token", configuration)];
|
||||
case 1:
|
||||
// authentication PlexToken required
|
||||
_a.sent();
|
||||
if (tonight !== undefined) {
|
||||
localVarQueryParameter['tonight'] = tonight;
|
||||
}
|
||||
@@ -1436,6 +1555,7 @@ var UpdaterApiAxiosParamCreator = function (configuration) {
|
||||
url: (0, common_1.toPathString)(localVarUrlObj),
|
||||
axiosOptions: localVarRequestOptions,
|
||||
}];
|
||||
}
|
||||
});
|
||||
});
|
||||
},
|
||||
@@ -1451,6 +1571,8 @@ var UpdaterApiAxiosParamCreator = function (configuration) {
|
||||
return __awaiter(_this, void 0, void 0, function () {
|
||||
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
||||
return __generator(this, function (_a) {
|
||||
switch (_a.label) {
|
||||
case 0:
|
||||
localVarPath = "/updater/check";
|
||||
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
||||
if (configuration) {
|
||||
@@ -1459,6 +1581,11 @@ var UpdaterApiAxiosParamCreator = function (configuration) {
|
||||
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), axiosOptions);
|
||||
localVarHeaderParameter = {};
|
||||
localVarQueryParameter = {};
|
||||
// authentication PlexToken required
|
||||
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Plex-Token", configuration)];
|
||||
case 1:
|
||||
// authentication PlexToken required
|
||||
_a.sent();
|
||||
if (download !== undefined) {
|
||||
localVarQueryParameter['download'] = download;
|
||||
}
|
||||
@@ -1469,6 +1596,7 @@ var UpdaterApiAxiosParamCreator = function (configuration) {
|
||||
url: (0, common_1.toPathString)(localVarUrlObj),
|
||||
axiosOptions: localVarRequestOptions,
|
||||
}];
|
||||
}
|
||||
});
|
||||
});
|
||||
},
|
||||
@@ -1483,6 +1611,8 @@ var UpdaterApiAxiosParamCreator = function (configuration) {
|
||||
return __awaiter(_this, void 0, void 0, function () {
|
||||
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
||||
return __generator(this, function (_a) {
|
||||
switch (_a.label) {
|
||||
case 0:
|
||||
localVarPath = "/updater/status";
|
||||
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
||||
if (configuration) {
|
||||
@@ -1491,6 +1621,11 @@ var UpdaterApiAxiosParamCreator = function (configuration) {
|
||||
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), axiosOptions);
|
||||
localVarHeaderParameter = {};
|
||||
localVarQueryParameter = {};
|
||||
// authentication PlexToken required
|
||||
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-Plex-Token", configuration)];
|
||||
case 1:
|
||||
// authentication PlexToken required
|
||||
_a.sent();
|
||||
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
||||
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), axiosOptions.headers);
|
||||
@@ -1498,6 +1633,7 @@ var UpdaterApiAxiosParamCreator = function (configuration) {
|
||||
url: (0, common_1.toPathString)(localVarUrlObj),
|
||||
axiosOptions: localVarRequestOptions,
|
||||
}];
|
||||
}
|
||||
});
|
||||
});
|
||||
},
|
||||
|
||||
2
dist/sdk-output/api.js.map
vendored
2
dist/sdk-output/api.js.map
vendored
File diff suppressed because one or more lines are too long
2
dist/sdk-output/base.d.ts
vendored
2
dist/sdk-output/base.d.ts
vendored
@@ -9,7 +9,7 @@
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
import { Configuration } from "../configuration";
|
||||
import { Configuration } from "./configuration";
|
||||
import { AxiosInstance, AxiosRequestConfig } from 'axios';
|
||||
export declare const BASE_PATH: string;
|
||||
/**
|
||||
|
||||
2
dist/sdk-output/base.js
vendored
2
dist/sdk-output/base.js
vendored
@@ -56,7 +56,7 @@ var BaseAPI = /** @class */ (function () {
|
||||
this.axios = axios;
|
||||
if (configuration) {
|
||||
this.configuration = configuration;
|
||||
this.basePath = configuration.basePathV3 || this.basePath;
|
||||
this.basePath = configuration.basePath || this.basePath;
|
||||
}
|
||||
}
|
||||
return BaseAPI;
|
||||
|
||||
2
dist/sdk-output/base.js.map
vendored
2
dist/sdk-output/base.js.map
vendored
@@ -1 +1 @@
|
||||
{"version":3,"file":"base.js","sourceRoot":"","sources":["../../sdk-output/base.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;;;;;;;;;;;;;;;AAIH,yDAAyD;AACzD,aAAa;AACb,+BAAqF;AAExE,QAAA,SAAS,GAAG,0BAA0B,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;AAExE;;;GAGG;AACU,QAAA,kBAAkB,GAAG;IAC9B,GAAG,EAAE,GAAG;IACR,GAAG,EAAE,GAAG;IACR,GAAG,EAAE,IAAI;IACT,KAAK,EAAE,GAAG;CACb,CAAC;AAYF;;;;GAIG;AACH;IAGI,iBAAY,aAA6B,EAAY,QAA4B,EAAY,KAAkC;QAA1E,yBAAA,EAAA,WAAmB,iBAAS;QAAY,sBAAA,EAAA,QAAuB,eAAW;QAA1E,aAAQ,GAAR,QAAQ,CAAoB;QAAY,UAAK,GAAL,KAAK,CAA6B;QAC3H,IAAI,aAAa,EAAE;YACf,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;YACnC,IAAI,CAAC,QAAQ,GAAG,aAAa,CAAC,UAAU,IAAI,IAAI,CAAC,QAAQ,CAAC;SAC7D;IACL,CAAC;IACL,cAAC;AAAD,CAAC,AATD,IASC;AATY,0BAAO;AASnB,CAAC;AAEF;;;;;GAKG;AACH;IAAmC,iCAA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oBAAC;AAAD,CAAC,AALD,CAAmC,KAAK,GAKvC;AALY,sCAAa"}
|
||||
17
dist/sdk-output/common.d.ts
vendored
17
dist/sdk-output/common.d.ts
vendored
@@ -9,7 +9,7 @@
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
import { Configuration } from "../configuration";
|
||||
import { Configuration } from "./configuration";
|
||||
import { RequestArgs } from "./base";
|
||||
import { AxiosInstance, AxiosResponse } from 'axios';
|
||||
/**
|
||||
@@ -28,21 +28,6 @@ export declare const assertParamExists: (functionName: string, paramName: string
|
||||
* @export
|
||||
*/
|
||||
export declare const setApiKeyToObject: (object: any, keyParamName: string, configuration?: Configuration) => Promise<void>;
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
*/
|
||||
export declare const setBasicAuthToObject: (object: any, configuration?: Configuration) => void;
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
*/
|
||||
export declare const setBearerAuthToObject: (object: any, configuration?: Configuration) => Promise<void>;
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
*/
|
||||
export declare const setOAuthToObject: (object: any, name: string, scopes: string[], configuration?: Configuration) => Promise<void>;
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
|
||||
75
dist/sdk-output/common.js
vendored
75
dist/sdk-output/common.js
vendored
@@ -60,7 +60,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
||||
}
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.createRequestFunction = exports.toPathString = exports.serializeDataIfNeeded = exports.setSearchParams = exports.setOAuthToObject = exports.setBearerAuthToObject = exports.setBasicAuthToObject = exports.setApiKeyToObject = exports.assertParamExists = exports.DUMMY_BASE_URL = void 0;
|
||||
exports.createRequestFunction = exports.toPathString = exports.serializeDataIfNeeded = exports.setSearchParams = exports.setApiKeyToObject = exports.assertParamExists = exports.DUMMY_BASE_URL = void 0;
|
||||
var base_1 = require("./base");
|
||||
var axios_retry_1 = require("axios-retry");
|
||||
/**
|
||||
@@ -109,76 +109,6 @@ var setApiKeyToObject = function (object, keyParamName, configuration) {
|
||||
});
|
||||
};
|
||||
exports.setApiKeyToObject = setApiKeyToObject;
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
*/
|
||||
var setBasicAuthToObject = function (object, configuration) {
|
||||
if (configuration && (configuration.username || configuration.password)) {
|
||||
object["auth"] = { username: configuration.username, password: configuration.password };
|
||||
}
|
||||
};
|
||||
exports.setBasicAuthToObject = setBasicAuthToObject;
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
*/
|
||||
var setBearerAuthToObject = function (object, configuration) {
|
||||
return __awaiter(this, void 0, void 0, function () {
|
||||
var accessToken, _a;
|
||||
return __generator(this, function (_b) {
|
||||
switch (_b.label) {
|
||||
case 0:
|
||||
if (!(configuration && configuration.accessToken)) return [3 /*break*/, 5];
|
||||
if (!(typeof configuration.accessToken === 'function')) return [3 /*break*/, 2];
|
||||
return [4 /*yield*/, configuration.accessToken()];
|
||||
case 1:
|
||||
_a = _b.sent();
|
||||
return [3 /*break*/, 4];
|
||||
case 2: return [4 /*yield*/, configuration.accessToken];
|
||||
case 3:
|
||||
_a = _b.sent();
|
||||
_b.label = 4;
|
||||
case 4:
|
||||
accessToken = _a;
|
||||
object["Authorization"] = "Bearer " + accessToken;
|
||||
_b.label = 5;
|
||||
case 5: return [2 /*return*/];
|
||||
}
|
||||
});
|
||||
});
|
||||
};
|
||||
exports.setBearerAuthToObject = setBearerAuthToObject;
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
*/
|
||||
var setOAuthToObject = function (object, name, scopes, configuration) {
|
||||
return __awaiter(this, void 0, void 0, function () {
|
||||
var localVarAccessTokenValue, _a;
|
||||
return __generator(this, function (_b) {
|
||||
switch (_b.label) {
|
||||
case 0:
|
||||
if (!(configuration && configuration.accessToken)) return [3 /*break*/, 5];
|
||||
if (!(typeof configuration.accessToken === 'function')) return [3 /*break*/, 2];
|
||||
return [4 /*yield*/, configuration.accessToken(name, scopes)];
|
||||
case 1:
|
||||
_a = _b.sent();
|
||||
return [3 /*break*/, 4];
|
||||
case 2: return [4 /*yield*/, configuration.accessToken];
|
||||
case 3:
|
||||
_a = _b.sent();
|
||||
_b.label = 4;
|
||||
case 4:
|
||||
localVarAccessTokenValue = _a;
|
||||
object["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
||||
_b.label = 5;
|
||||
case 5: return [2 /*return*/];
|
||||
}
|
||||
});
|
||||
});
|
||||
};
|
||||
exports.setOAuthToObject = setOAuthToObject;
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
@@ -238,8 +168,7 @@ var createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configu
|
||||
if (axios === void 0) { axios = globalAxios; }
|
||||
if (basePath === void 0) { basePath = BASE_PATH; }
|
||||
(0, axios_retry_1.default)(globalAxios, configuration.retriesConfig);
|
||||
axiosArgs.axiosOptions.headers['X-SailPoint-SDK'] = 'typescript-0.0.1';
|
||||
var axiosRequestArgs = __assign(__assign({}, axiosArgs.axiosOptions), { url: ((configuration === null || configuration === void 0 ? void 0 : configuration.basePathV3) || basePath) + axiosArgs.url });
|
||||
var axiosRequestArgs = __assign(__assign({}, axiosArgs.axiosOptions), { url: ((configuration === null || configuration === void 0 ? void 0 : configuration.basePath) || basePath) + axiosArgs.url });
|
||||
return axios.request(axiosRequestArgs);
|
||||
};
|
||||
};
|
||||
|
||||
2
dist/sdk-output/common.js.map
vendored
2
dist/sdk-output/common.js.map
vendored
@@ -1 +1 @@
|
||||
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../sdk-output/common.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIH,+BAAoD;AAEpD,2CAAqC;AAErC;;;GAGG;AACU,QAAA,cAAc,GAAG,qBAAqB,CAAA;AAEnD;;;;GAIG;AACI,IAAM,iBAAiB,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gBAAgB,CAAC,CAAC;IACjD,CAAC,CAAC;AACN,CAAC,CAAA;AANY,QAAA,qBAAqB,yBAMjC"}
|
||||
34
dist/sdk-output/configuration.d.ts
vendored
34
dist/sdk-output/configuration.d.ts
vendored
@@ -9,14 +9,10 @@
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
import { IAxiosRetryConfig } from "axios-retry";
|
||||
export interface ConfigurationParameters {
|
||||
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
||||
username?: string;
|
||||
password?: string;
|
||||
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
||||
basePath?: string;
|
||||
baseOptions?: any;
|
||||
formDataCtor?: new () => any;
|
||||
}
|
||||
export declare class Configuration {
|
||||
/**
|
||||
@@ -25,27 +21,6 @@ export declare class Configuration {
|
||||
* @memberof Configuration
|
||||
*/
|
||||
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
||||
/**
|
||||
* parameter for basic security
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof Configuration
|
||||
*/
|
||||
username?: string;
|
||||
/**
|
||||
* parameter for basic security
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof Configuration
|
||||
*/
|
||||
password?: string;
|
||||
/**
|
||||
* parameter for oauth2 security
|
||||
* @param name security name
|
||||
* @param scopes oauth2 scope
|
||||
* @memberof Configuration
|
||||
*/
|
||||
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
||||
/**
|
||||
* override base path
|
||||
*
|
||||
@@ -68,6 +43,13 @@ export declare class Configuration {
|
||||
* @type {new () => FormData}
|
||||
*/
|
||||
formDataCtor?: new () => any;
|
||||
/**
|
||||
* axios retry configuration
|
||||
*
|
||||
* @type {IAxiosRetryConfig}
|
||||
* @memberof Configuration
|
||||
*/
|
||||
retriesConfig?: IAxiosRetryConfig;
|
||||
constructor(param?: ConfigurationParameters);
|
||||
/**
|
||||
* Check if the given MIME is a JSON MIME.
|
||||
|
||||
5
dist/sdk-output/configuration.js
vendored
5
dist/sdk-output/configuration.js
vendored
@@ -18,12 +18,7 @@ var Configuration = /** @class */ (function () {
|
||||
function Configuration(param) {
|
||||
if (param === void 0) { param = {}; }
|
||||
this.apiKey = param.apiKey;
|
||||
this.username = param.username;
|
||||
this.password = param.password;
|
||||
this.accessToken = param.accessToken;
|
||||
this.basePath = param.basePath;
|
||||
this.baseOptions = param.baseOptions;
|
||||
this.formDataCtor = param.formDataCtor;
|
||||
}
|
||||
/**
|
||||
* Check if the given MIME is a JSON MIME.
|
||||
|
||||
2
dist/sdk-output/configuration.js.map
vendored
2
dist/sdk-output/configuration.js.map
vendored
@@ -1 +1 @@
|
||||
{"version":3,"file":"configuration.js","sourceRoot":"","sources":["../../sdk-output/configuration.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAaH;IAmDI,uBAAY,KAAmC;QAAnC,sBAAA,EAAA,UAAmC;QAC3C,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;QAC3B,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAC;QAC/B,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAC;QAC/B,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC,WAAW,CAAC;QACrC,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAC;QAC/B,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC,WAAW,CAAC;QACrC,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC,YAAY,CAAC;IAC3C,CAAC;IAED;;;;;;;;;OASG;IACI,kCAAU,GAAjB,UAAkB,IAAY;QAC1B,IAAM,QAAQ,GAAW,IAAI,MAAM,CAAC,+DAA+D,EAAE,GAAG,CAAC,CAAC;QAC1G,OAAO,IAAI,KAAK,IAAI,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,WAAW,EAAE,KAAK,6BAA6B,CAAC,CAAC;IAC1G,CAAC;IACL,oBAAC;AAAD,CAAC,AA3ED,IA2EC;AA3EY,sCAAa"}
|
||||
{"version":3,"file":"configuration.js","sourceRoot":"","sources":["../../sdk-output/configuration.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAWH;IAyCI,uBAAY,KAAmC;QAAnC,sBAAA,EAAA,UAAmC;QAE3C,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;QAC3B,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAC;IAEnC,CAAC;IAED;;;;;;;;;OASG;IACI,kCAAU,GAAjB,UAAkB,IAAY;QAC1B,IAAM,QAAQ,GAAW,IAAI,MAAM,CAAC,+DAA+D,EAAE,GAAG,CAAC,CAAC;QAC1G,OAAO,IAAI,KAAK,IAAI,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,WAAW,EAAE,KAAK,6BAA6B,CAAC,CAAC;IAC1G,CAAC;IACL,oBAAC;AAAD,CAAC,AA9DD,IA8DC;AA9DY,sCAAa"}
|
||||
@@ -13,7 +13,7 @@
|
||||
*/
|
||||
|
||||
|
||||
import { Configuration } from '../configuration';
|
||||
import { Configuration } from './configuration';
|
||||
import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
||||
// Some imports not used depending on template conditions
|
||||
// @ts-ignore
|
||||
@@ -409,6 +409,9 @@ export const ActivitiesApiAxiosParamCreator = function (configuration?: Configur
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication PlexToken required
|
||||
await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration)
|
||||
|
||||
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
@@ -439,6 +442,9 @@ export const ActivitiesApiAxiosParamCreator = function (configuration?: Configur
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication PlexToken required
|
||||
await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration)
|
||||
|
||||
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
@@ -588,6 +594,9 @@ export const ButlerApiAxiosParamCreator = function (configuration?: Configuratio
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication PlexToken required
|
||||
await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration)
|
||||
|
||||
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
@@ -618,6 +627,9 @@ export const ButlerApiAxiosParamCreator = function (configuration?: Configuratio
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication PlexToken required
|
||||
await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration)
|
||||
|
||||
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
@@ -652,6 +664,9 @@ export const ButlerApiAxiosParamCreator = function (configuration?: Configuratio
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication PlexToken required
|
||||
await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration)
|
||||
|
||||
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
@@ -682,6 +697,9 @@ export const ButlerApiAxiosParamCreator = function (configuration?: Configuratio
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication PlexToken required
|
||||
await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration)
|
||||
|
||||
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
@@ -904,6 +922,9 @@ export const LibraryApiAxiosParamCreator = function (configuration?: Configurati
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication PlexToken required
|
||||
await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration)
|
||||
|
||||
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
@@ -944,6 +965,9 @@ export const LibraryApiAxiosParamCreator = function (configuration?: Configurati
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication PlexToken required
|
||||
await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration)
|
||||
|
||||
if (type !== undefined) {
|
||||
localVarQueryParameter['type'] = type;
|
||||
}
|
||||
@@ -1124,6 +1148,9 @@ export const LogApiAxiosParamCreator = function (configuration?: Configuration)
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication PlexToken required
|
||||
await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration)
|
||||
|
||||
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
@@ -1154,6 +1181,9 @@ export const LogApiAxiosParamCreator = function (configuration?: Configuration)
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication PlexToken required
|
||||
await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration)
|
||||
|
||||
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
@@ -1193,6 +1223,9 @@ export const LogApiAxiosParamCreator = function (configuration?: Configuration)
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication PlexToken required
|
||||
await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration)
|
||||
|
||||
if (level !== undefined) {
|
||||
localVarQueryParameter['level'] = level;
|
||||
}
|
||||
@@ -1401,6 +1434,9 @@ export const SecurityApiAxiosParamCreator = function (configuration?: Configurat
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication PlexToken required
|
||||
await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration)
|
||||
|
||||
if (source !== undefined) {
|
||||
localVarQueryParameter['source'] = source;
|
||||
}
|
||||
@@ -1441,6 +1477,9 @@ export const SecurityApiAxiosParamCreator = function (configuration?: Configurat
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication PlexToken required
|
||||
await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration)
|
||||
|
||||
if (type !== undefined) {
|
||||
localVarQueryParameter['type'] = type;
|
||||
}
|
||||
@@ -1620,6 +1659,9 @@ export const ServerApiAxiosParamCreator = function (configuration?: Configuratio
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication PlexToken required
|
||||
await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration)
|
||||
|
||||
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
@@ -1720,6 +1762,9 @@ export const UpdaterApiAxiosParamCreator = function (configuration?: Configurati
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication PlexToken required
|
||||
await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration)
|
||||
|
||||
if (tonight !== undefined) {
|
||||
localVarQueryParameter['tonight'] = tonight;
|
||||
}
|
||||
@@ -1759,6 +1804,9 @@ export const UpdaterApiAxiosParamCreator = function (configuration?: Configurati
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication PlexToken required
|
||||
await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration)
|
||||
|
||||
if (download !== undefined) {
|
||||
localVarQueryParameter['download'] = download;
|
||||
}
|
||||
@@ -1793,6 +1841,9 @@ export const UpdaterApiAxiosParamCreator = function (configuration?: Configurati
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
// authentication PlexToken required
|
||||
await setApiKeyToObject(localVarHeaderParameter, "X-Plex-Token", configuration)
|
||||
|
||||
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
*/
|
||||
|
||||
|
||||
import { Configuration } from "../configuration";
|
||||
import { Configuration } from "./configuration";
|
||||
// Some imports not used depending on template conditions
|
||||
// @ts-ignore
|
||||
import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
||||
@@ -52,7 +52,7 @@ export class BaseAPI {
|
||||
constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) {
|
||||
if (configuration) {
|
||||
this.configuration = configuration;
|
||||
this.basePath = configuration.basePathV3 || this.basePath;
|
||||
this.basePath = configuration.basePath || this.basePath;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
*/
|
||||
|
||||
|
||||
import { Configuration } from "../configuration";
|
||||
import { Configuration } from "./configuration";
|
||||
import { RequiredError, RequestArgs } from "./base";
|
||||
import { AxiosInstance, AxiosResponse } from 'axios';
|
||||
import axiosRetry from "axios-retry";
|
||||
@@ -48,41 +48,6 @@ export const setApiKeyToObject = async function (object: any, keyParamName: stri
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
*/
|
||||
export const setBasicAuthToObject = function (object: any, configuration?: Configuration) {
|
||||
if (configuration && (configuration.username || configuration.password)) {
|
||||
object["auth"] = { username: configuration.username, password: configuration.password };
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
*/
|
||||
export const setBearerAuthToObject = async function (object: any, configuration?: Configuration) {
|
||||
if (configuration && configuration.accessToken) {
|
||||
const accessToken = typeof configuration.accessToken === 'function'
|
||||
? await configuration.accessToken()
|
||||
: await configuration.accessToken;
|
||||
object["Authorization"] = "Bearer " + accessToken;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
*/
|
||||
export const setOAuthToObject = async function (object: any, name: string, scopes: string[], configuration?: Configuration) {
|
||||
if (configuration && configuration.accessToken) {
|
||||
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
||||
? await configuration.accessToken(name, scopes)
|
||||
: await configuration.accessToken;
|
||||
object["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
@@ -134,8 +99,7 @@ export const toPathString = function (url: URL) {
|
||||
export const createRequestFunction = function (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) {
|
||||
return <T = unknown, R = AxiosResponse<T>>(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
||||
axiosRetry(globalAxios, configuration.retriesConfig)
|
||||
axiosArgs.axiosOptions.headers['X-SailPoint-SDK'] = 'typescript-0.0.1'
|
||||
const axiosRequestArgs = {...axiosArgs.axiosOptions, url: (configuration?.basePathV3 || basePath) + axiosArgs.url};
|
||||
const axiosRequestArgs = {...axiosArgs.axiosOptions, url: (configuration?.basePath || basePath) + axiosArgs.url};
|
||||
return axios.request<T, R>(axiosRequestArgs);
|
||||
};
|
||||
}
|
||||
|
||||
@@ -12,15 +12,13 @@
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import { IAxiosRetryConfig } from "axios-retry";
|
||||
|
||||
export interface ConfigurationParameters {
|
||||
|
||||
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
||||
username?: string;
|
||||
password?: string;
|
||||
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
||||
basePath?: string;
|
||||
baseOptions?: any;
|
||||
formDataCtor?: new () => any;
|
||||
|
||||
}
|
||||
|
||||
export class Configuration {
|
||||
@@ -30,27 +28,7 @@ export class Configuration {
|
||||
* @memberof Configuration
|
||||
*/
|
||||
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
||||
/**
|
||||
* parameter for basic security
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof Configuration
|
||||
*/
|
||||
username?: string;
|
||||
/**
|
||||
* parameter for basic security
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof Configuration
|
||||
*/
|
||||
password?: string;
|
||||
/**
|
||||
* parameter for oauth2 security
|
||||
* @param name security name
|
||||
* @param scopes oauth2 scope
|
||||
* @memberof Configuration
|
||||
*/
|
||||
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
||||
|
||||
/**
|
||||
* override base path
|
||||
*
|
||||
@@ -58,6 +36,7 @@ export class Configuration {
|
||||
* @memberof Configuration
|
||||
*/
|
||||
basePath?: string;
|
||||
|
||||
/**
|
||||
* base options for axios calls
|
||||
*
|
||||
@@ -65,6 +44,7 @@ export class Configuration {
|
||||
* @memberof Configuration
|
||||
*/
|
||||
baseOptions?: any;
|
||||
|
||||
/**
|
||||
* The FormData constructor that will be used to create multipart form data
|
||||
* requests. You can inject this here so that execution environments that
|
||||
@@ -74,14 +54,19 @@ export class Configuration {
|
||||
*/
|
||||
formDataCtor?: new () => any;
|
||||
|
||||
/**
|
||||
* axios retry configuration
|
||||
*
|
||||
* @type {IAxiosRetryConfig}
|
||||
* @memberof Configuration
|
||||
*/
|
||||
retriesConfig?: IAxiosRetryConfig
|
||||
|
||||
constructor(param: ConfigurationParameters = {}) {
|
||||
|
||||
this.apiKey = param.apiKey;
|
||||
this.username = param.username;
|
||||
this.password = param.password;
|
||||
this.accessToken = param.accessToken;
|
||||
this.basePath = param.basePath;
|
||||
this.baseOptions = param.baseOptions;
|
||||
this.formDataCtor = param.formDataCtor;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user