@sailpoint/api-client 2.2.47 → 2.2.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/accounts/api.d.ts +504 -0
- package/dist/accounts/api.js +146 -1
- package/dist/accounts/api.js.map +1 -1
- package/dist/esm/accounts/api.js +145 -0
- package/dist/esm/generic/api.js +262 -335
- package/dist/esm/generic/base.js +4 -4
- package/dist/esm/generic/common.js +44 -31
- package/dist/esm/generic/configuration.js +3 -3
- package/dist/esm/generic/index.js +3 -3
- package/dist/esm/index.js +3 -0
- package/dist/esm/nerm/common.js +2 -2
- package/dist/esm/nermv2025/common.js +2 -2
- package/dist/generic/api.d.ts +166 -177
- package/dist/generic/api.js +265 -338
- package/dist/generic/api.js.map +1 -1
- package/dist/generic/base.d.ts +3 -3
- package/dist/generic/base.js +4 -4
- package/dist/generic/base.js.map +1 -1
- package/dist/generic/common.d.ts +4 -4
- package/dist/generic/common.js +44 -31
- package/dist/generic/common.js.map +1 -1
- package/dist/generic/configuration.d.ts +3 -3
- package/dist/generic/configuration.js +3 -3
- package/dist/generic/configuration.js.map +1 -1
- package/dist/generic/index.d.ts +3 -3
- package/dist/generic/index.js +3 -3
- package/dist/generic/index.js.map +1 -1
- package/dist/generic.spec.d.ts +1 -0
- package/dist/generic.spec.js +133 -0
- package/dist/generic.spec.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/dist/index.spec.js +40 -0
- package/dist/index.spec.js.map +1 -1
- package/dist/nerm/common.js +2 -2
- package/dist/nerm/common.js.map +1 -1
- package/dist/nermv2025/common.js +2 -2
- package/dist/nermv2025/common.js.map +1 -1
- package/package.json +3 -2
- package/sailpoint-scopes.json +16386 -0
package/dist/generic/api.js
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
/* tslint:disable */
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
6
|
-
* Generic
|
|
5
|
+
* SailPoint Identity Security API - Generic
|
|
6
|
+
* Generic client for the SailPoint Identity Security versioned APIs. Use it to call any endpoint, in any version, by its path, for example `sources/v1` or `sources/v2/{sourceId}/provisioning-policies`, including endpoints that do not have a resource-specific client or documentation yet. The version is part of the path, so this client is not tied to one API version and the base URL has no version segment.
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document:
|
|
8
|
+
* The version of the OpenAPI document: any (set in the path)
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -78,7 +78,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
78
78
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
79
79
|
};
|
|
80
80
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
81
|
-
exports.
|
|
81
|
+
exports.GenericApi = exports.GenericApiFactory = exports.GenericApiFp = exports.GenericApiAxiosParamCreator = void 0;
|
|
82
82
|
var axios_1 = __importDefault(require("axios"));
|
|
83
83
|
// Some imports not used depending on template conditions
|
|
84
84
|
// @ts-ignore
|
|
@@ -86,17 +86,34 @@ var common_1 = require("./common");
|
|
|
86
86
|
// @ts-ignore
|
|
87
87
|
var base_1 = require("./base");
|
|
88
88
|
/**
|
|
89
|
-
*
|
|
89
|
+
* Encode the `path` parameter of a generic request.
|
|
90
|
+
*
|
|
91
|
+
* `path` is everything after the tenant base URL, including the API version,
|
|
92
|
+
* for example `accounts/v1` or `sources/v1/2c918085/schemas`. Leading and
|
|
93
|
+
* trailing slashes are optional. Each segment is URL-encoded on its own, so the
|
|
94
|
+
* slashes between segments are kept. Anything after a `?` is kept as a query
|
|
95
|
+
* string, for example `accounts/v1?detailLevel=SLIM`.
|
|
96
|
+
*/
|
|
97
|
+
function encodeGenericPath(value) {
|
|
98
|
+
var raw = String(value);
|
|
99
|
+
var queryStart = raw.indexOf('?');
|
|
100
|
+
var pathPart = queryStart === -1 ? raw : raw.slice(0, queryStart);
|
|
101
|
+
var query = queryStart === -1 ? '' : raw.slice(queryStart);
|
|
102
|
+
var segments = pathPart.split('/').filter(function (segment) { return segment.length > 0; });
|
|
103
|
+
return segments.map(function (segment) { return encodeURIComponent(segment); }).join('/') + query;
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* GenericApi - axios parameter creator
|
|
90
107
|
* @export
|
|
91
108
|
*/
|
|
92
|
-
var
|
|
109
|
+
var GenericApiAxiosParamCreator = function (configuration) {
|
|
93
110
|
var _this = this;
|
|
94
111
|
return {
|
|
95
112
|
/**
|
|
96
|
-
*
|
|
113
|
+
* Sends a DELETE request to any versioned API path.
|
|
97
114
|
* @summary Generic DELETE request
|
|
98
|
-
* @param {string} path
|
|
99
|
-
* @param {string} [xSailPointExperimental]
|
|
115
|
+
* @param {string} path API path relative to the tenant base URL, including the API version, for example `accounts/v1`, `sources/v1/2c9180835d2e5168015d32f890ca1581` or `sources/v2/2c9180835d2e5168015d32f890ca1581/provisioning-policies`. Use whichever version the endpoint has. A leading slash is optional. Slashes separate path segments, and the SDK URL-encodes each segment, so pass the segments unencoded. Anything after a `?` is sent as query parameters, for example `accounts/v1?detailLevel=SLIM`.
|
|
116
|
+
* @param {string} [xSailPointExperimental] Set this header to `true` to call an experimental API. The SDK configuration must also enable experimental APIs.
|
|
100
117
|
* @param {*} [axiosOptions] Override http request option.
|
|
101
118
|
* @throws {RequiredError}
|
|
102
119
|
*/
|
|
@@ -105,131 +122,99 @@ var DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
105
122
|
return __awaiter(_this, void 0, void 0, function () {
|
|
106
123
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
107
124
|
return __generator(this, function (_a) {
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
// authentication userAuth required
|
|
125
|
-
// oauth required
|
|
126
|
-
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "userAuth", ["sp:scopes:all"], configuration)
|
|
127
|
-
// authentication userAuth required
|
|
128
|
-
// oauth required
|
|
129
|
-
];
|
|
130
|
-
case 1:
|
|
131
|
-
// authentication userAuth required
|
|
132
|
-
// oauth required
|
|
133
|
-
_a.sent();
|
|
134
|
-
// authentication userAuth required
|
|
135
|
-
// oauth required
|
|
136
|
-
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "userAuth", ["sp:scopes:all"], configuration)];
|
|
137
|
-
case 2:
|
|
138
|
-
// authentication userAuth required
|
|
139
|
-
// oauth required
|
|
140
|
-
_a.sent();
|
|
141
|
-
if (xSailPointExperimental != null) {
|
|
142
|
-
localVarHeaderParameter['X-SailPoint-Experimental'] = String(xSailPointExperimental);
|
|
143
|
-
}
|
|
144
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
145
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
146
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), axiosOptions.headers);
|
|
147
|
-
return [2 /*return*/, {
|
|
148
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
149
|
-
axiosOptions: localVarRequestOptions,
|
|
150
|
-
}];
|
|
125
|
+
// verify required parameter 'path' is not null or undefined
|
|
126
|
+
(0, common_1.assertParamExists)('genericDelete', 'path', path);
|
|
127
|
+
if (xSailPointExperimental === undefined) {
|
|
128
|
+
xSailPointExperimental = undefined;
|
|
129
|
+
}
|
|
130
|
+
localVarPath = "/{path}"
|
|
131
|
+
.replace("{".concat("path", "}"), encodeGenericPath(path));
|
|
132
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
133
|
+
if (configuration) {
|
|
134
|
+
baseOptions = configuration.baseOptions;
|
|
135
|
+
}
|
|
136
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), axiosOptions);
|
|
137
|
+
localVarHeaderParameter = {};
|
|
138
|
+
localVarQueryParameter = {};
|
|
139
|
+
if (xSailPointExperimental != null) {
|
|
140
|
+
localVarHeaderParameter['X-SailPoint-Experimental'] = String(xSailPointExperimental);
|
|
151
141
|
}
|
|
142
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
143
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
144
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), axiosOptions.headers);
|
|
145
|
+
return [2 /*return*/, {
|
|
146
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
147
|
+
axiosOptions: localVarRequestOptions,
|
|
148
|
+
}];
|
|
152
149
|
});
|
|
153
150
|
});
|
|
154
151
|
},
|
|
155
152
|
/**
|
|
156
|
-
*
|
|
153
|
+
* Sends a GET request to any versioned API path, for example `sources/v1/{id}/schemas` or `sources/v2/{sourceId}/provisioning-policies`.
|
|
157
154
|
* @summary Generic GET request
|
|
158
|
-
* @param {string} path
|
|
159
|
-
* @param {number} [limit] Max number of results to return. See [
|
|
160
|
-
* @param {
|
|
161
|
-
* @param {
|
|
162
|
-
* @param {string} [
|
|
155
|
+
* @param {string} path API path relative to the tenant base URL, including the API version, for example `accounts/v1`, `sources/v1/2c9180835d2e5168015d32f890ca1581` or `sources/v2/2c9180835d2e5168015d32f890ca1581/provisioning-policies`. Use whichever version the endpoint has. A leading slash is optional. Slashes separate path segments, and the SDK URL-encodes each segment, so pass the segments unencoded. Anything after a `?` is sent as query parameters, for example `accounts/v1?detailLevel=SLIM`.
|
|
156
|
+
* @param {number} [limit] Max number of results to return. See [Standard Collection Parameters](https://developer.sailpoint.com/docs/standard-collection-parameters) for more information.
|
|
157
|
+
* @param {number} [offset] Offset into the full result set. Usually specified with *limit* to paginate through the results.
|
|
158
|
+
* @param {boolean} [count] If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored.
|
|
159
|
+
* @param {string} [filters] Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/docs/standard-collection-parameters#filtering-results).
|
|
160
|
+
* @param {string} [sorters] Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/docs/standard-collection-parameters#sorting-results).
|
|
161
|
+
* @param {string} [xSailPointExperimental] Set this header to `true` to call an experimental API. The SDK configuration must also enable experimental APIs.
|
|
163
162
|
* @param {*} [axiosOptions] Override http request option.
|
|
164
163
|
* @throws {RequiredError}
|
|
165
164
|
*/
|
|
166
|
-
genericGet: function (path, limit, count,
|
|
165
|
+
genericGet: function (path, limit, offset, count, filters, sorters, xSailPointExperimental, axiosOptions) {
|
|
167
166
|
if (axiosOptions === void 0) { axiosOptions = {}; }
|
|
168
167
|
return __awaiter(_this, void 0, void 0, function () {
|
|
169
168
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
170
169
|
return __generator(this, function (_a) {
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
_a.sent();
|
|
197
|
-
// authentication userAuth required
|
|
198
|
-
// oauth required
|
|
199
|
-
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "userAuth", ["sp:scopes:all"], configuration)];
|
|
200
|
-
case 2:
|
|
201
|
-
// authentication userAuth required
|
|
202
|
-
// oauth required
|
|
203
|
-
_a.sent();
|
|
204
|
-
if (limit !== undefined) {
|
|
205
|
-
localVarQueryParameter['limit'] = limit;
|
|
206
|
-
}
|
|
207
|
-
if (count !== undefined) {
|
|
208
|
-
localVarQueryParameter['count'] = count;
|
|
209
|
-
}
|
|
210
|
-
if (offset !== undefined) {
|
|
211
|
-
localVarQueryParameter['offset'] = offset;
|
|
212
|
-
}
|
|
213
|
-
if (xSailPointExperimental != null) {
|
|
214
|
-
localVarHeaderParameter['X-SailPoint-Experimental'] = String(xSailPointExperimental);
|
|
215
|
-
}
|
|
216
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
217
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
218
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), axiosOptions.headers);
|
|
219
|
-
return [2 /*return*/, {
|
|
220
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
221
|
-
axiosOptions: localVarRequestOptions,
|
|
222
|
-
}];
|
|
170
|
+
// verify required parameter 'path' is not null or undefined
|
|
171
|
+
(0, common_1.assertParamExists)('genericGet', 'path', path);
|
|
172
|
+
if (xSailPointExperimental === undefined) {
|
|
173
|
+
xSailPointExperimental = undefined;
|
|
174
|
+
}
|
|
175
|
+
localVarPath = "/{path}"
|
|
176
|
+
.replace("{".concat("path", "}"), encodeGenericPath(path));
|
|
177
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
178
|
+
if (configuration) {
|
|
179
|
+
baseOptions = configuration.baseOptions;
|
|
180
|
+
}
|
|
181
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), axiosOptions);
|
|
182
|
+
localVarHeaderParameter = {};
|
|
183
|
+
localVarQueryParameter = {};
|
|
184
|
+
if (limit !== undefined) {
|
|
185
|
+
localVarQueryParameter['limit'] = limit;
|
|
186
|
+
}
|
|
187
|
+
if (offset !== undefined) {
|
|
188
|
+
localVarQueryParameter['offset'] = offset;
|
|
189
|
+
}
|
|
190
|
+
if (count !== undefined) {
|
|
191
|
+
localVarQueryParameter['count'] = count;
|
|
192
|
+
}
|
|
193
|
+
if (filters !== undefined) {
|
|
194
|
+
localVarQueryParameter['filters'] = filters;
|
|
223
195
|
}
|
|
196
|
+
if (sorters !== undefined) {
|
|
197
|
+
localVarQueryParameter['sorters'] = sorters;
|
|
198
|
+
}
|
|
199
|
+
if (xSailPointExperimental != null) {
|
|
200
|
+
localVarHeaderParameter['X-SailPoint-Experimental'] = String(xSailPointExperimental);
|
|
201
|
+
}
|
|
202
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
203
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
204
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), axiosOptions.headers);
|
|
205
|
+
return [2 /*return*/, {
|
|
206
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
207
|
+
axiosOptions: localVarRequestOptions,
|
|
208
|
+
}];
|
|
224
209
|
});
|
|
225
210
|
});
|
|
226
211
|
},
|
|
227
212
|
/**
|
|
228
|
-
*
|
|
213
|
+
* Sends a PATCH request to any versioned API path. The body is a JSON Patch document (RFC 6902): a list of operations such as `[{\"op\": \"replace\", \"path\": \"/description\", \"value\": \"New description\"}]`.
|
|
229
214
|
* @summary Generic PATCH request
|
|
230
|
-
* @param {string} path
|
|
231
|
-
* @param {string} [xSailPointExperimental]
|
|
232
|
-
* @param {
|
|
215
|
+
* @param {string} path API path relative to the tenant base URL, including the API version, for example `accounts/v1`, `sources/v1/2c9180835d2e5168015d32f890ca1581` or `sources/v2/2c9180835d2e5168015d32f890ca1581/provisioning-policies`. Use whichever version the endpoint has. A leading slash is optional. Slashes separate path segments, and the SDK URL-encodes each segment, so pass the segments unencoded. Anything after a `?` is sent as query parameters, for example `accounts/v1?detailLevel=SLIM`.
|
|
216
|
+
* @param {string} [xSailPointExperimental] Set this header to `true` to call an experimental API. The SDK configuration must also enable experimental APIs.
|
|
217
|
+
* @param {any} [requestBody]
|
|
233
218
|
* @param {*} [axiosOptions] Override http request option.
|
|
234
219
|
* @throws {RequiredError}
|
|
235
220
|
*/
|
|
@@ -238,61 +223,41 @@ var DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
238
223
|
return __awaiter(_this, void 0, void 0, function () {
|
|
239
224
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
240
225
|
return __generator(this, function (_a) {
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
if (xSailPointExperimental === undefined) {
|
|
246
|
-
xSailPointExperimental = 'true';
|
|
247
|
-
}
|
|
248
|
-
localVarPath = "/{path}"
|
|
249
|
-
.replace("{".concat("path", "}"), encodeURIComponent(String(path)));
|
|
250
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
251
|
-
if (configuration) {
|
|
252
|
-
baseOptions = configuration.baseOptions;
|
|
253
|
-
}
|
|
254
|
-
localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), axiosOptions);
|
|
255
|
-
localVarHeaderParameter = {};
|
|
256
|
-
localVarQueryParameter = {};
|
|
257
|
-
// authentication userAuth required
|
|
258
|
-
// oauth required
|
|
259
|
-
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "userAuth", ["sp:scopes:all"], configuration)
|
|
260
|
-
// authentication userAuth required
|
|
261
|
-
// oauth required
|
|
262
|
-
];
|
|
263
|
-
case 1:
|
|
264
|
-
// authentication userAuth required
|
|
265
|
-
// oauth required
|
|
266
|
-
_a.sent();
|
|
267
|
-
// authentication userAuth required
|
|
268
|
-
// oauth required
|
|
269
|
-
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "userAuth", ["sp:scopes:all"], configuration)];
|
|
270
|
-
case 2:
|
|
271
|
-
// authentication userAuth required
|
|
272
|
-
// oauth required
|
|
273
|
-
_a.sent();
|
|
274
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
275
|
-
if (xSailPointExperimental != null) {
|
|
276
|
-
localVarHeaderParameter['X-SailPoint-Experimental'] = String(xSailPointExperimental);
|
|
277
|
-
}
|
|
278
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
279
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
280
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), axiosOptions.headers);
|
|
281
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(requestBody, localVarRequestOptions, configuration);
|
|
282
|
-
return [2 /*return*/, {
|
|
283
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
284
|
-
axiosOptions: localVarRequestOptions,
|
|
285
|
-
}];
|
|
226
|
+
// verify required parameter 'path' is not null or undefined
|
|
227
|
+
(0, common_1.assertParamExists)('genericPatch', 'path', path);
|
|
228
|
+
if (xSailPointExperimental === undefined) {
|
|
229
|
+
xSailPointExperimental = undefined;
|
|
286
230
|
}
|
|
231
|
+
localVarPath = "/{path}"
|
|
232
|
+
.replace("{".concat("path", "}"), encodeGenericPath(path));
|
|
233
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
234
|
+
if (configuration) {
|
|
235
|
+
baseOptions = configuration.baseOptions;
|
|
236
|
+
}
|
|
237
|
+
localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), axiosOptions);
|
|
238
|
+
localVarHeaderParameter = {};
|
|
239
|
+
localVarQueryParameter = {};
|
|
240
|
+
localVarHeaderParameter['Content-Type'] = 'application/json-patch+json';
|
|
241
|
+
if (xSailPointExperimental != null) {
|
|
242
|
+
localVarHeaderParameter['X-SailPoint-Experimental'] = String(xSailPointExperimental);
|
|
243
|
+
}
|
|
244
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
245
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
246
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), axiosOptions.headers);
|
|
247
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(requestBody, localVarRequestOptions, configuration);
|
|
248
|
+
return [2 /*return*/, {
|
|
249
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
250
|
+
axiosOptions: localVarRequestOptions,
|
|
251
|
+
}];
|
|
287
252
|
});
|
|
288
253
|
});
|
|
289
254
|
},
|
|
290
255
|
/**
|
|
291
|
-
*
|
|
256
|
+
* Sends a POST request with a JSON body to any versioned API path.
|
|
292
257
|
* @summary Generic POST request
|
|
293
|
-
* @param {string} path
|
|
294
|
-
* @param {string} [xSailPointExperimental]
|
|
295
|
-
* @param {
|
|
258
|
+
* @param {string} path API path relative to the tenant base URL, including the API version, for example `accounts/v1`, `sources/v1/2c9180835d2e5168015d32f890ca1581` or `sources/v2/2c9180835d2e5168015d32f890ca1581/provisioning-policies`. Use whichever version the endpoint has. A leading slash is optional. Slashes separate path segments, and the SDK URL-encodes each segment, so pass the segments unencoded. Anything after a `?` is sent as query parameters, for example `accounts/v1?detailLevel=SLIM`.
|
|
259
|
+
* @param {string} [xSailPointExperimental] Set this header to `true` to call an experimental API. The SDK configuration must also enable experimental APIs.
|
|
260
|
+
* @param {any} [requestBody]
|
|
296
261
|
* @param {*} [axiosOptions] Override http request option.
|
|
297
262
|
* @throws {RequiredError}
|
|
298
263
|
*/
|
|
@@ -301,61 +266,41 @@ var DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
301
266
|
return __awaiter(_this, void 0, void 0, function () {
|
|
302
267
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
303
268
|
return __generator(this, function (_a) {
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
if (xSailPointExperimental === undefined) {
|
|
309
|
-
xSailPointExperimental = 'true';
|
|
310
|
-
}
|
|
311
|
-
localVarPath = "/{path}"
|
|
312
|
-
.replace("{".concat("path", "}"), encodeURIComponent(String(path)));
|
|
313
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
314
|
-
if (configuration) {
|
|
315
|
-
baseOptions = configuration.baseOptions;
|
|
316
|
-
}
|
|
317
|
-
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), axiosOptions);
|
|
318
|
-
localVarHeaderParameter = {};
|
|
319
|
-
localVarQueryParameter = {};
|
|
320
|
-
// authentication userAuth required
|
|
321
|
-
// oauth required
|
|
322
|
-
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "userAuth", ["sp:scopes:all"], configuration)
|
|
323
|
-
// authentication userAuth required
|
|
324
|
-
// oauth required
|
|
325
|
-
];
|
|
326
|
-
case 1:
|
|
327
|
-
// authentication userAuth required
|
|
328
|
-
// oauth required
|
|
329
|
-
_a.sent();
|
|
330
|
-
// authentication userAuth required
|
|
331
|
-
// oauth required
|
|
332
|
-
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "userAuth", ["sp:scopes:all"], configuration)];
|
|
333
|
-
case 2:
|
|
334
|
-
// authentication userAuth required
|
|
335
|
-
// oauth required
|
|
336
|
-
_a.sent();
|
|
337
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
338
|
-
if (xSailPointExperimental != null) {
|
|
339
|
-
localVarHeaderParameter['X-SailPoint-Experimental'] = String(xSailPointExperimental);
|
|
340
|
-
}
|
|
341
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
342
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
343
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), axiosOptions.headers);
|
|
344
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(requestBody, localVarRequestOptions, configuration);
|
|
345
|
-
return [2 /*return*/, {
|
|
346
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
347
|
-
axiosOptions: localVarRequestOptions,
|
|
348
|
-
}];
|
|
269
|
+
// verify required parameter 'path' is not null or undefined
|
|
270
|
+
(0, common_1.assertParamExists)('genericPost', 'path', path);
|
|
271
|
+
if (xSailPointExperimental === undefined) {
|
|
272
|
+
xSailPointExperimental = undefined;
|
|
349
273
|
}
|
|
274
|
+
localVarPath = "/{path}"
|
|
275
|
+
.replace("{".concat("path", "}"), encodeGenericPath(path));
|
|
276
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
277
|
+
if (configuration) {
|
|
278
|
+
baseOptions = configuration.baseOptions;
|
|
279
|
+
}
|
|
280
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), axiosOptions);
|
|
281
|
+
localVarHeaderParameter = {};
|
|
282
|
+
localVarQueryParameter = {};
|
|
283
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
284
|
+
if (xSailPointExperimental != null) {
|
|
285
|
+
localVarHeaderParameter['X-SailPoint-Experimental'] = String(xSailPointExperimental);
|
|
286
|
+
}
|
|
287
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
288
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
289
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), axiosOptions.headers);
|
|
290
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(requestBody, localVarRequestOptions, configuration);
|
|
291
|
+
return [2 /*return*/, {
|
|
292
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
293
|
+
axiosOptions: localVarRequestOptions,
|
|
294
|
+
}];
|
|
350
295
|
});
|
|
351
296
|
});
|
|
352
297
|
},
|
|
353
298
|
/**
|
|
354
|
-
*
|
|
299
|
+
* Sends a PUT request with a JSON body to any versioned API path.
|
|
355
300
|
* @summary Generic PUT request
|
|
356
|
-
* @param {string} path
|
|
357
|
-
* @param {string} [xSailPointExperimental]
|
|
358
|
-
* @param {
|
|
301
|
+
* @param {string} path API path relative to the tenant base URL, including the API version, for example `accounts/v1`, `sources/v1/2c9180835d2e5168015d32f890ca1581` or `sources/v2/2c9180835d2e5168015d32f890ca1581/provisioning-policies`. Use whichever version the endpoint has. A leading slash is optional. Slashes separate path segments, and the SDK URL-encodes each segment, so pass the segments unencoded. Anything after a `?` is sent as query parameters, for example `accounts/v1?detailLevel=SLIM`.
|
|
302
|
+
* @param {string} [xSailPointExperimental] Set this header to `true` to call an experimental API. The SDK configuration must also enable experimental APIs.
|
|
303
|
+
* @param {any} [requestBody]
|
|
359
304
|
* @param {*} [axiosOptions] Override http request option.
|
|
360
305
|
* @throws {RequiredError}
|
|
361
306
|
*/
|
|
@@ -364,70 +309,50 @@ var DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
364
309
|
return __awaiter(_this, void 0, void 0, function () {
|
|
365
310
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
366
311
|
return __generator(this, function (_a) {
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
// oauth required
|
|
385
|
-
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "userAuth", ["sp:scopes:all"], configuration)
|
|
386
|
-
// authentication userAuth required
|
|
387
|
-
// oauth required
|
|
388
|
-
];
|
|
389
|
-
case 1:
|
|
390
|
-
// authentication userAuth required
|
|
391
|
-
// oauth required
|
|
392
|
-
_a.sent();
|
|
393
|
-
// authentication userAuth required
|
|
394
|
-
// oauth required
|
|
395
|
-
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "userAuth", ["sp:scopes:all"], configuration)];
|
|
396
|
-
case 2:
|
|
397
|
-
// authentication userAuth required
|
|
398
|
-
// oauth required
|
|
399
|
-
_a.sent();
|
|
400
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
401
|
-
if (xSailPointExperimental != null) {
|
|
402
|
-
localVarHeaderParameter['X-SailPoint-Experimental'] = String(xSailPointExperimental);
|
|
403
|
-
}
|
|
404
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
405
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
406
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), axiosOptions.headers);
|
|
407
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(requestBody, localVarRequestOptions, configuration);
|
|
408
|
-
return [2 /*return*/, {
|
|
409
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
410
|
-
axiosOptions: localVarRequestOptions,
|
|
411
|
-
}];
|
|
312
|
+
// verify required parameter 'path' is not null or undefined
|
|
313
|
+
(0, common_1.assertParamExists)('genericPut', 'path', path);
|
|
314
|
+
if (xSailPointExperimental === undefined) {
|
|
315
|
+
xSailPointExperimental = undefined;
|
|
316
|
+
}
|
|
317
|
+
localVarPath = "/{path}"
|
|
318
|
+
.replace("{".concat("path", "}"), encodeGenericPath(path));
|
|
319
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
320
|
+
if (configuration) {
|
|
321
|
+
baseOptions = configuration.baseOptions;
|
|
322
|
+
}
|
|
323
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), axiosOptions);
|
|
324
|
+
localVarHeaderParameter = {};
|
|
325
|
+
localVarQueryParameter = {};
|
|
326
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
327
|
+
if (xSailPointExperimental != null) {
|
|
328
|
+
localVarHeaderParameter['X-SailPoint-Experimental'] = String(xSailPointExperimental);
|
|
412
329
|
}
|
|
330
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
331
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
332
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), axiosOptions.headers);
|
|
333
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(requestBody, localVarRequestOptions, configuration);
|
|
334
|
+
return [2 /*return*/, {
|
|
335
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
336
|
+
axiosOptions: localVarRequestOptions,
|
|
337
|
+
}];
|
|
413
338
|
});
|
|
414
339
|
});
|
|
415
340
|
},
|
|
416
341
|
};
|
|
417
342
|
};
|
|
418
|
-
exports.
|
|
343
|
+
exports.GenericApiAxiosParamCreator = GenericApiAxiosParamCreator;
|
|
419
344
|
/**
|
|
420
|
-
*
|
|
345
|
+
* GenericApi - functional programming interface
|
|
421
346
|
* @export
|
|
422
347
|
*/
|
|
423
|
-
var
|
|
424
|
-
var localVarAxiosParamCreator = (0, exports.
|
|
348
|
+
var GenericApiFp = function (configuration) {
|
|
349
|
+
var localVarAxiosParamCreator = (0, exports.GenericApiAxiosParamCreator)(configuration);
|
|
425
350
|
return {
|
|
426
351
|
/**
|
|
427
|
-
*
|
|
352
|
+
* Sends a DELETE request to any versioned API path.
|
|
428
353
|
* @summary Generic DELETE request
|
|
429
|
-
* @param {string} path
|
|
430
|
-
* @param {string} [xSailPointExperimental]
|
|
354
|
+
* @param {string} path API path relative to the tenant base URL, including the API version, for example `accounts/v1`, `sources/v1/2c9180835d2e5168015d32f890ca1581` or `sources/v2/2c9180835d2e5168015d32f890ca1581/provisioning-policies`. Use whichever version the endpoint has. A leading slash is optional. Slashes separate path segments, and the SDK URL-encodes each segment, so pass the segments unencoded. Anything after a `?` is sent as query parameters, for example `accounts/v1?detailLevel=SLIM`.
|
|
355
|
+
* @param {string} [xSailPointExperimental] Set this header to `true` to call an experimental API. The SDK configuration must also enable experimental APIs.
|
|
431
356
|
* @param {*} [axiosOptions] Override http request option.
|
|
432
357
|
* @throws {RequiredError}
|
|
433
358
|
*/
|
|
@@ -441,45 +366,47 @@ var DefaultApiFp = function (configuration) {
|
|
|
441
366
|
case 1:
|
|
442
367
|
localVarAxiosArgs = _d.sent();
|
|
443
368
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
444
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['
|
|
369
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['GenericApi.genericDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
445
370
|
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
446
371
|
}
|
|
447
372
|
});
|
|
448
373
|
});
|
|
449
374
|
},
|
|
450
375
|
/**
|
|
451
|
-
*
|
|
376
|
+
* Sends a GET request to any versioned API path, for example `sources/v1/{id}/schemas` or `sources/v2/{sourceId}/provisioning-policies`.
|
|
452
377
|
* @summary Generic GET request
|
|
453
|
-
* @param {string} path
|
|
454
|
-
* @param {number} [limit] Max number of results to return. See [
|
|
455
|
-
* @param {
|
|
456
|
-
* @param {
|
|
457
|
-
* @param {string} [
|
|
378
|
+
* @param {string} path API path relative to the tenant base URL, including the API version, for example `accounts/v1`, `sources/v1/2c9180835d2e5168015d32f890ca1581` or `sources/v2/2c9180835d2e5168015d32f890ca1581/provisioning-policies`. Use whichever version the endpoint has. A leading slash is optional. Slashes separate path segments, and the SDK URL-encodes each segment, so pass the segments unencoded. Anything after a `?` is sent as query parameters, for example `accounts/v1?detailLevel=SLIM`.
|
|
379
|
+
* @param {number} [limit] Max number of results to return. See [Standard Collection Parameters](https://developer.sailpoint.com/docs/standard-collection-parameters) for more information.
|
|
380
|
+
* @param {number} [offset] Offset into the full result set. Usually specified with *limit* to paginate through the results.
|
|
381
|
+
* @param {boolean} [count] If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored.
|
|
382
|
+
* @param {string} [filters] Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/docs/standard-collection-parameters#filtering-results).
|
|
383
|
+
* @param {string} [sorters] Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/docs/standard-collection-parameters#sorting-results).
|
|
384
|
+
* @param {string} [xSailPointExperimental] Set this header to `true` to call an experimental API. The SDK configuration must also enable experimental APIs.
|
|
458
385
|
* @param {*} [axiosOptions] Override http request option.
|
|
459
386
|
* @throws {RequiredError}
|
|
460
387
|
*/
|
|
461
|
-
genericGet: function (path, limit, count,
|
|
388
|
+
genericGet: function (path, limit, offset, count, filters, sorters, xSailPointExperimental, axiosOptions) {
|
|
462
389
|
var _a, _b, _c;
|
|
463
390
|
return __awaiter(this, void 0, void 0, function () {
|
|
464
391
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
465
392
|
return __generator(this, function (_d) {
|
|
466
393
|
switch (_d.label) {
|
|
467
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.genericGet(path, limit, count,
|
|
394
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.genericGet(path, limit, offset, count, filters, sorters, xSailPointExperimental, axiosOptions)];
|
|
468
395
|
case 1:
|
|
469
396
|
localVarAxiosArgs = _d.sent();
|
|
470
397
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
471
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['
|
|
398
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['GenericApi.genericGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
472
399
|
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
473
400
|
}
|
|
474
401
|
});
|
|
475
402
|
});
|
|
476
403
|
},
|
|
477
404
|
/**
|
|
478
|
-
*
|
|
405
|
+
* Sends a PATCH request to any versioned API path. The body is a JSON Patch document (RFC 6902): a list of operations such as `[{\"op\": \"replace\", \"path\": \"/description\", \"value\": \"New description\"}]`.
|
|
479
406
|
* @summary Generic PATCH request
|
|
480
|
-
* @param {string} path
|
|
481
|
-
* @param {string} [xSailPointExperimental]
|
|
482
|
-
* @param {
|
|
407
|
+
* @param {string} path API path relative to the tenant base URL, including the API version, for example `accounts/v1`, `sources/v1/2c9180835d2e5168015d32f890ca1581` or `sources/v2/2c9180835d2e5168015d32f890ca1581/provisioning-policies`. Use whichever version the endpoint has. A leading slash is optional. Slashes separate path segments, and the SDK URL-encodes each segment, so pass the segments unencoded. Anything after a `?` is sent as query parameters, for example `accounts/v1?detailLevel=SLIM`.
|
|
408
|
+
* @param {string} [xSailPointExperimental] Set this header to `true` to call an experimental API. The SDK configuration must also enable experimental APIs.
|
|
409
|
+
* @param {any} [requestBody]
|
|
483
410
|
* @param {*} [axiosOptions] Override http request option.
|
|
484
411
|
* @throws {RequiredError}
|
|
485
412
|
*/
|
|
@@ -493,18 +420,18 @@ var DefaultApiFp = function (configuration) {
|
|
|
493
420
|
case 1:
|
|
494
421
|
localVarAxiosArgs = _d.sent();
|
|
495
422
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
496
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['
|
|
423
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['GenericApi.genericPatch']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
497
424
|
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
498
425
|
}
|
|
499
426
|
});
|
|
500
427
|
});
|
|
501
428
|
},
|
|
502
429
|
/**
|
|
503
|
-
*
|
|
430
|
+
* Sends a POST request with a JSON body to any versioned API path.
|
|
504
431
|
* @summary Generic POST request
|
|
505
|
-
* @param {string} path
|
|
506
|
-
* @param {string} [xSailPointExperimental]
|
|
507
|
-
* @param {
|
|
432
|
+
* @param {string} path API path relative to the tenant base URL, including the API version, for example `accounts/v1`, `sources/v1/2c9180835d2e5168015d32f890ca1581` or `sources/v2/2c9180835d2e5168015d32f890ca1581/provisioning-policies`. Use whichever version the endpoint has. A leading slash is optional. Slashes separate path segments, and the SDK URL-encodes each segment, so pass the segments unencoded. Anything after a `?` is sent as query parameters, for example `accounts/v1?detailLevel=SLIM`.
|
|
433
|
+
* @param {string} [xSailPointExperimental] Set this header to `true` to call an experimental API. The SDK configuration must also enable experimental APIs.
|
|
434
|
+
* @param {any} [requestBody]
|
|
508
435
|
* @param {*} [axiosOptions] Override http request option.
|
|
509
436
|
* @throws {RequiredError}
|
|
510
437
|
*/
|
|
@@ -518,18 +445,18 @@ var DefaultApiFp = function (configuration) {
|
|
|
518
445
|
case 1:
|
|
519
446
|
localVarAxiosArgs = _d.sent();
|
|
520
447
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
521
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['
|
|
448
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['GenericApi.genericPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
522
449
|
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
523
450
|
}
|
|
524
451
|
});
|
|
525
452
|
});
|
|
526
453
|
},
|
|
527
454
|
/**
|
|
528
|
-
*
|
|
455
|
+
* Sends a PUT request with a JSON body to any versioned API path.
|
|
529
456
|
* @summary Generic PUT request
|
|
530
|
-
* @param {string} path
|
|
531
|
-
* @param {string} [xSailPointExperimental]
|
|
532
|
-
* @param {
|
|
457
|
+
* @param {string} path API path relative to the tenant base URL, including the API version, for example `accounts/v1`, `sources/v1/2c9180835d2e5168015d32f890ca1581` or `sources/v2/2c9180835d2e5168015d32f890ca1581/provisioning-policies`. Use whichever version the endpoint has. A leading slash is optional. Slashes separate path segments, and the SDK URL-encodes each segment, so pass the segments unencoded. Anything after a `?` is sent as query parameters, for example `accounts/v1?detailLevel=SLIM`.
|
|
458
|
+
* @param {string} [xSailPointExperimental] Set this header to `true` to call an experimental API. The SDK configuration must also enable experimental APIs.
|
|
459
|
+
* @param {any} [requestBody]
|
|
533
460
|
* @param {*} [axiosOptions] Override http request option.
|
|
534
461
|
* @throws {RequiredError}
|
|
535
462
|
*/
|
|
@@ -543,7 +470,7 @@ var DefaultApiFp = function (configuration) {
|
|
|
543
470
|
case 1:
|
|
544
471
|
localVarAxiosArgs = _d.sent();
|
|
545
472
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
546
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['
|
|
473
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['GenericApi.genericPut']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
547
474
|
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
548
475
|
}
|
|
549
476
|
});
|
|
@@ -551,18 +478,18 @@ var DefaultApiFp = function (configuration) {
|
|
|
551
478
|
},
|
|
552
479
|
};
|
|
553
480
|
};
|
|
554
|
-
exports.
|
|
481
|
+
exports.GenericApiFp = GenericApiFp;
|
|
555
482
|
/**
|
|
556
|
-
*
|
|
483
|
+
* GenericApi - factory interface
|
|
557
484
|
* @export
|
|
558
485
|
*/
|
|
559
|
-
var
|
|
560
|
-
var localVarFp = (0, exports.
|
|
486
|
+
var GenericApiFactory = function (configuration, basePath, axios) {
|
|
487
|
+
var localVarFp = (0, exports.GenericApiFp)(configuration);
|
|
561
488
|
return {
|
|
562
489
|
/**
|
|
563
|
-
*
|
|
490
|
+
* Sends a DELETE request to any versioned API path.
|
|
564
491
|
* @summary Generic DELETE request
|
|
565
|
-
* @param {
|
|
492
|
+
* @param {GenericApiGenericDeleteRequest} requestParameters Request parameters.
|
|
566
493
|
* @param {*} [axiosOptions] Override http request option.
|
|
567
494
|
* @throws {RequiredError}
|
|
568
495
|
*/
|
|
@@ -570,19 +497,19 @@ var DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
570
497
|
return localVarFp.genericDelete(requestParameters.path, requestParameters.xSailPointExperimental, axiosOptions).then(function (request) { return request(axios, basePath); });
|
|
571
498
|
},
|
|
572
499
|
/**
|
|
573
|
-
*
|
|
500
|
+
* Sends a GET request to any versioned API path, for example `sources/v1/{id}/schemas` or `sources/v2/{sourceId}/provisioning-policies`.
|
|
574
501
|
* @summary Generic GET request
|
|
575
|
-
* @param {
|
|
502
|
+
* @param {GenericApiGenericGetRequest} requestParameters Request parameters.
|
|
576
503
|
* @param {*} [axiosOptions] Override http request option.
|
|
577
504
|
* @throws {RequiredError}
|
|
578
505
|
*/
|
|
579
506
|
genericGet: function (requestParameters, axiosOptions) {
|
|
580
|
-
return localVarFp.genericGet(requestParameters.path, requestParameters.limit, requestParameters.count, requestParameters.
|
|
507
|
+
return localVarFp.genericGet(requestParameters.path, requestParameters.limit, requestParameters.offset, requestParameters.count, requestParameters.filters, requestParameters.sorters, requestParameters.xSailPointExperimental, axiosOptions).then(function (request) { return request(axios, basePath); });
|
|
581
508
|
},
|
|
582
509
|
/**
|
|
583
|
-
*
|
|
510
|
+
* Sends a PATCH request to any versioned API path. The body is a JSON Patch document (RFC 6902): a list of operations such as `[{\"op\": \"replace\", \"path\": \"/description\", \"value\": \"New description\"}]`.
|
|
584
511
|
* @summary Generic PATCH request
|
|
585
|
-
* @param {
|
|
512
|
+
* @param {GenericApiGenericPatchRequest} requestParameters Request parameters.
|
|
586
513
|
* @param {*} [axiosOptions] Override http request option.
|
|
587
514
|
* @throws {RequiredError}
|
|
588
515
|
*/
|
|
@@ -590,9 +517,9 @@ var DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
590
517
|
return localVarFp.genericPatch(requestParameters.path, requestParameters.xSailPointExperimental, requestParameters.requestBody, axiosOptions).then(function (request) { return request(axios, basePath); });
|
|
591
518
|
},
|
|
592
519
|
/**
|
|
593
|
-
*
|
|
520
|
+
* Sends a POST request with a JSON body to any versioned API path.
|
|
594
521
|
* @summary Generic POST request
|
|
595
|
-
* @param {
|
|
522
|
+
* @param {GenericApiGenericPostRequest} requestParameters Request parameters.
|
|
596
523
|
* @param {*} [axiosOptions] Override http request option.
|
|
597
524
|
* @throws {RequiredError}
|
|
598
525
|
*/
|
|
@@ -600,9 +527,9 @@ var DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
600
527
|
return localVarFp.genericPost(requestParameters.path, requestParameters.xSailPointExperimental, requestParameters.requestBody, axiosOptions).then(function (request) { return request(axios, basePath); });
|
|
601
528
|
},
|
|
602
529
|
/**
|
|
603
|
-
*
|
|
530
|
+
* Sends a PUT request with a JSON body to any versioned API path.
|
|
604
531
|
* @summary Generic PUT request
|
|
605
|
-
* @param {
|
|
532
|
+
* @param {GenericApiGenericPutRequest} requestParameters Request parameters.
|
|
606
533
|
* @param {*} [axiosOptions] Override http request option.
|
|
607
534
|
* @throws {RequiredError}
|
|
608
535
|
*/
|
|
@@ -611,79 +538,79 @@ var DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
611
538
|
},
|
|
612
539
|
};
|
|
613
540
|
};
|
|
614
|
-
exports.
|
|
541
|
+
exports.GenericApiFactory = GenericApiFactory;
|
|
615
542
|
/**
|
|
616
|
-
*
|
|
543
|
+
* GenericApi - object-oriented interface
|
|
617
544
|
* @export
|
|
618
|
-
* @class
|
|
545
|
+
* @class GenericApi
|
|
619
546
|
* @extends {BaseAPI}
|
|
620
547
|
*/
|
|
621
|
-
var
|
|
622
|
-
__extends(
|
|
623
|
-
function
|
|
548
|
+
var GenericApi = /** @class */ (function (_super) {
|
|
549
|
+
__extends(GenericApi, _super);
|
|
550
|
+
function GenericApi() {
|
|
624
551
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
625
552
|
}
|
|
626
553
|
/**
|
|
627
|
-
*
|
|
554
|
+
* Sends a DELETE request to any versioned API path.
|
|
628
555
|
* @summary Generic DELETE request
|
|
629
|
-
* @param {
|
|
556
|
+
* @param {GenericApiGenericDeleteRequest} requestParameters Request parameters.
|
|
630
557
|
* @param {*} [axiosOptions] Override http request option.
|
|
631
558
|
* @throws {RequiredError}
|
|
632
|
-
* @memberof
|
|
559
|
+
* @memberof GenericApi
|
|
633
560
|
*/
|
|
634
|
-
|
|
561
|
+
GenericApi.prototype.genericDelete = function (requestParameters, axiosOptions) {
|
|
635
562
|
var _this = this;
|
|
636
|
-
return (0, exports.
|
|
563
|
+
return (0, exports.GenericApiFp)(this.configuration).genericDelete(requestParameters.path, requestParameters.xSailPointExperimental, axiosOptions).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
637
564
|
};
|
|
638
565
|
/**
|
|
639
|
-
*
|
|
566
|
+
* Sends a GET request to any versioned API path, for example `sources/v1/{id}/schemas` or `sources/v2/{sourceId}/provisioning-policies`.
|
|
640
567
|
* @summary Generic GET request
|
|
641
|
-
* @param {
|
|
568
|
+
* @param {GenericApiGenericGetRequest} requestParameters Request parameters.
|
|
642
569
|
* @param {*} [axiosOptions] Override http request option.
|
|
643
570
|
* @throws {RequiredError}
|
|
644
|
-
* @memberof
|
|
571
|
+
* @memberof GenericApi
|
|
645
572
|
*/
|
|
646
|
-
|
|
573
|
+
GenericApi.prototype.genericGet = function (requestParameters, axiosOptions) {
|
|
647
574
|
var _this = this;
|
|
648
|
-
return (0, exports.
|
|
575
|
+
return (0, exports.GenericApiFp)(this.configuration).genericGet(requestParameters.path, requestParameters.limit, requestParameters.offset, requestParameters.count, requestParameters.filters, requestParameters.sorters, requestParameters.xSailPointExperimental, axiosOptions).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
649
576
|
};
|
|
650
577
|
/**
|
|
651
|
-
*
|
|
578
|
+
* Sends a PATCH request to any versioned API path. The body is a JSON Patch document (RFC 6902): a list of operations such as `[{\"op\": \"replace\", \"path\": \"/description\", \"value\": \"New description\"}]`.
|
|
652
579
|
* @summary Generic PATCH request
|
|
653
|
-
* @param {
|
|
580
|
+
* @param {GenericApiGenericPatchRequest} requestParameters Request parameters.
|
|
654
581
|
* @param {*} [axiosOptions] Override http request option.
|
|
655
582
|
* @throws {RequiredError}
|
|
656
|
-
* @memberof
|
|
583
|
+
* @memberof GenericApi
|
|
657
584
|
*/
|
|
658
|
-
|
|
585
|
+
GenericApi.prototype.genericPatch = function (requestParameters, axiosOptions) {
|
|
659
586
|
var _this = this;
|
|
660
|
-
return (0, exports.
|
|
587
|
+
return (0, exports.GenericApiFp)(this.configuration).genericPatch(requestParameters.path, requestParameters.xSailPointExperimental, requestParameters.requestBody, axiosOptions).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
661
588
|
};
|
|
662
589
|
/**
|
|
663
|
-
*
|
|
590
|
+
* Sends a POST request with a JSON body to any versioned API path.
|
|
664
591
|
* @summary Generic POST request
|
|
665
|
-
* @param {
|
|
592
|
+
* @param {GenericApiGenericPostRequest} requestParameters Request parameters.
|
|
666
593
|
* @param {*} [axiosOptions] Override http request option.
|
|
667
594
|
* @throws {RequiredError}
|
|
668
|
-
* @memberof
|
|
595
|
+
* @memberof GenericApi
|
|
669
596
|
*/
|
|
670
|
-
|
|
597
|
+
GenericApi.prototype.genericPost = function (requestParameters, axiosOptions) {
|
|
671
598
|
var _this = this;
|
|
672
|
-
return (0, exports.
|
|
599
|
+
return (0, exports.GenericApiFp)(this.configuration).genericPost(requestParameters.path, requestParameters.xSailPointExperimental, requestParameters.requestBody, axiosOptions).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
673
600
|
};
|
|
674
601
|
/**
|
|
675
|
-
*
|
|
602
|
+
* Sends a PUT request with a JSON body to any versioned API path.
|
|
676
603
|
* @summary Generic PUT request
|
|
677
|
-
* @param {
|
|
604
|
+
* @param {GenericApiGenericPutRequest} requestParameters Request parameters.
|
|
678
605
|
* @param {*} [axiosOptions] Override http request option.
|
|
679
606
|
* @throws {RequiredError}
|
|
680
|
-
* @memberof
|
|
607
|
+
* @memberof GenericApi
|
|
681
608
|
*/
|
|
682
|
-
|
|
609
|
+
GenericApi.prototype.genericPut = function (requestParameters, axiosOptions) {
|
|
683
610
|
var _this = this;
|
|
684
|
-
return (0, exports.
|
|
611
|
+
return (0, exports.GenericApiFp)(this.configuration).genericPut(requestParameters.path, requestParameters.xSailPointExperimental, requestParameters.requestBody, axiosOptions).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
685
612
|
};
|
|
686
|
-
return
|
|
613
|
+
return GenericApi;
|
|
687
614
|
}(base_1.BaseAPI));
|
|
688
|
-
exports.
|
|
615
|
+
exports.GenericApi = GenericApi;
|
|
689
616
|
//# sourceMappingURL=api.js.map
|