@sailpoint/api-client 2.2.4 → 2.2.6
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/access_profiles/api.d.ts +457 -0
- package/dist/access_profiles/api.js +453 -1
- package/dist/access_profiles/api.js.map +1 -1
- package/dist/entitlements/api.d.ts +333 -0
- package/dist/entitlements/api.js +277 -1
- package/dist/entitlements/api.js.map +1 -1
- package/dist/esm/access_profiles/api.js +452 -0
- package/dist/esm/entitlements/api.js +276 -0
- package/dist/esm/nerm/common.js +2 -2
- package/dist/esm/nermv2025/common.js +2 -2
- 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 +1 -1
|
@@ -147,6 +147,45 @@ export var EntitlementV2PrivilegeLevelEffectiveEnum = {
|
|
|
147
147
|
Medium: 'MEDIUM',
|
|
148
148
|
None: 'NONE'
|
|
149
149
|
};
|
|
150
|
+
export var EntitlementmetadatabulkupdatebyfilterrequestOperationEnum = {
|
|
151
|
+
Add: 'ADD',
|
|
152
|
+
Remove: 'REMOVE',
|
|
153
|
+
Replace: 'REPLACE'
|
|
154
|
+
};
|
|
155
|
+
export var EntitlementmetadatabulkupdatebyfilterrequestReplaceScopeEnum = {
|
|
156
|
+
All: 'ALL',
|
|
157
|
+
Attribute: 'ATTRIBUTE'
|
|
158
|
+
};
|
|
159
|
+
export var EntitlementmetadatabulkupdatebyidrequestOperationEnum = {
|
|
160
|
+
Add: 'ADD',
|
|
161
|
+
Remove: 'REMOVE',
|
|
162
|
+
Replace: 'REPLACE'
|
|
163
|
+
};
|
|
164
|
+
export var EntitlementmetadatabulkupdatebyidrequestReplaceScopeEnum = {
|
|
165
|
+
All: 'ALL',
|
|
166
|
+
Attribute: 'ATTRIBUTE'
|
|
167
|
+
};
|
|
168
|
+
export var EntitlementmetadatabulkupdatebyqueryrequestOperationEnum = {
|
|
169
|
+
Add: 'ADD',
|
|
170
|
+
Remove: 'REMOVE',
|
|
171
|
+
Replace: 'REPLACE'
|
|
172
|
+
};
|
|
173
|
+
export var EntitlementmetadatabulkupdatebyqueryrequestReplaceScopeEnum = {
|
|
174
|
+
All: 'ALL',
|
|
175
|
+
Attribute: 'ATTRIBUTE'
|
|
176
|
+
};
|
|
177
|
+
export var EntitlementmetadatabulkupdateresponseStatusEnum = {
|
|
178
|
+
Created: 'CREATED',
|
|
179
|
+
PreProcess: 'PRE_PROCESS',
|
|
180
|
+
PreProcessCompleted: 'PRE_PROCESS_COMPLETED',
|
|
181
|
+
PostProcess: 'POST_PROCESS',
|
|
182
|
+
Completed: 'COMPLETED',
|
|
183
|
+
ChunkPending: 'CHUNK_PENDING',
|
|
184
|
+
ChunkProcessing: 'CHUNK_PROCESSING',
|
|
185
|
+
ReProcessing: 'RE_PROCESSING',
|
|
186
|
+
PreProcessFailed: 'PRE_PROCESS_FAILED',
|
|
187
|
+
Failed: 'FAILED'
|
|
188
|
+
};
|
|
150
189
|
export var JsonPatchOperationOpEnum = {
|
|
151
190
|
Add: 'add',
|
|
152
191
|
Remove: 'remove',
|
|
@@ -733,6 +772,108 @@ export var EntitlementsApiAxiosParamCreator = function (configuration) {
|
|
|
733
772
|
});
|
|
734
773
|
});
|
|
735
774
|
},
|
|
775
|
+
/**
|
|
776
|
+
* This API initiates a bulk update of Access Model Metadata for every entitlement matching the supplied filter expression. The update is processed asynchronously. The response returns the ID of the task performing the update. Adding or replacing custom metadata requires a suite license. This API replaces the deprecated `updateAccessModelMetadataByFilterV1` operation.
|
|
777
|
+
* @summary Bulk-update metadata by filter
|
|
778
|
+
* @param {Entitlementmetadatabulkupdatebyfilterrequest} entitlementmetadatabulkupdatebyfilterrequest Attribute metadata bulk update request body.
|
|
779
|
+
* @param {*} [axiosOptions] Override http request option.
|
|
780
|
+
* @throws {RequiredError}
|
|
781
|
+
*/
|
|
782
|
+
updateEntitlementsMetadataByFilterV1: function (entitlementmetadatabulkupdatebyfilterrequest, axiosOptions) {
|
|
783
|
+
if (axiosOptions === void 0) { axiosOptions = {}; }
|
|
784
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
785
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
786
|
+
return __generator(this, function (_a) {
|
|
787
|
+
// verify required parameter 'entitlementmetadatabulkupdatebyfilterrequest' is not null or undefined
|
|
788
|
+
assertParamExists('updateEntitlementsMetadataByFilterV1', 'entitlementmetadatabulkupdatebyfilterrequest', entitlementmetadatabulkupdatebyfilterrequest);
|
|
789
|
+
localVarPath = "/entitlements/v1/access-model-metadata/bulk-update/filter";
|
|
790
|
+
localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
791
|
+
if (configuration) {
|
|
792
|
+
baseOptions = configuration.baseOptions;
|
|
793
|
+
}
|
|
794
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), axiosOptions);
|
|
795
|
+
localVarHeaderParameter = {};
|
|
796
|
+
localVarQueryParameter = {};
|
|
797
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
798
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
799
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
800
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), axiosOptions.headers);
|
|
801
|
+
localVarRequestOptions.data = serializeDataIfNeeded(entitlementmetadatabulkupdatebyfilterrequest, localVarRequestOptions, configuration);
|
|
802
|
+
return [2 /*return*/, {
|
|
803
|
+
url: toPathString(localVarUrlObj),
|
|
804
|
+
axiosOptions: localVarRequestOptions,
|
|
805
|
+
}];
|
|
806
|
+
});
|
|
807
|
+
});
|
|
808
|
+
},
|
|
809
|
+
/**
|
|
810
|
+
* This API initiates a bulk update of Access Model Metadata for one or more entitlements by a list of entitlement IDs. The update is processed asynchronously. The response returns the ID of the task performing the update. The maximum entitlement count in a single request is 3000. Adding or replacing custom metadata requires a suite license. This API replaces the deprecated `updateAccessModelMetadataByIdsV1` operation.
|
|
811
|
+
* @summary Bulk-update metadata by ids
|
|
812
|
+
* @param {Entitlementmetadatabulkupdatebyidrequest} entitlementmetadatabulkupdatebyidrequest Attribute metadata bulk update request body.
|
|
813
|
+
* @param {*} [axiosOptions] Override http request option.
|
|
814
|
+
* @throws {RequiredError}
|
|
815
|
+
*/
|
|
816
|
+
updateEntitlementsMetadataByIdsV1: function (entitlementmetadatabulkupdatebyidrequest, axiosOptions) {
|
|
817
|
+
if (axiosOptions === void 0) { axiosOptions = {}; }
|
|
818
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
819
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
820
|
+
return __generator(this, function (_a) {
|
|
821
|
+
// verify required parameter 'entitlementmetadatabulkupdatebyidrequest' is not null or undefined
|
|
822
|
+
assertParamExists('updateEntitlementsMetadataByIdsV1', 'entitlementmetadatabulkupdatebyidrequest', entitlementmetadatabulkupdatebyidrequest);
|
|
823
|
+
localVarPath = "/entitlements/v1/access-model-metadata/bulk-update/ids";
|
|
824
|
+
localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
825
|
+
if (configuration) {
|
|
826
|
+
baseOptions = configuration.baseOptions;
|
|
827
|
+
}
|
|
828
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), axiosOptions);
|
|
829
|
+
localVarHeaderParameter = {};
|
|
830
|
+
localVarQueryParameter = {};
|
|
831
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
832
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
833
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
834
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), axiosOptions.headers);
|
|
835
|
+
localVarRequestOptions.data = serializeDataIfNeeded(entitlementmetadatabulkupdatebyidrequest, localVarRequestOptions, configuration);
|
|
836
|
+
return [2 /*return*/, {
|
|
837
|
+
url: toPathString(localVarUrlObj),
|
|
838
|
+
axiosOptions: localVarRequestOptions,
|
|
839
|
+
}];
|
|
840
|
+
});
|
|
841
|
+
});
|
|
842
|
+
},
|
|
843
|
+
/**
|
|
844
|
+
* This API initiates a bulk update of Access Model Metadata for every entitlement matching the supplied search query. The update is processed asynchronously. The response returns the ID of the task performing the update. Adding or replacing custom metadata requires a suite license. This API replaces the deprecated `updateAccessModelMetadataByQueryV1` operation.
|
|
845
|
+
* @summary Bulk-update metadata by query
|
|
846
|
+
* @param {Entitlementmetadatabulkupdatebyqueryrequest} entitlementmetadatabulkupdatebyqueryrequest Attribute metadata bulk update request body.
|
|
847
|
+
* @param {*} [axiosOptions] Override http request option.
|
|
848
|
+
* @throws {RequiredError}
|
|
849
|
+
*/
|
|
850
|
+
updateEntitlementsMetadataByQueryV1: function (entitlementmetadatabulkupdatebyqueryrequest, axiosOptions) {
|
|
851
|
+
if (axiosOptions === void 0) { axiosOptions = {}; }
|
|
852
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
853
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
854
|
+
return __generator(this, function (_a) {
|
|
855
|
+
// verify required parameter 'entitlementmetadatabulkupdatebyqueryrequest' is not null or undefined
|
|
856
|
+
assertParamExists('updateEntitlementsMetadataByQueryV1', 'entitlementmetadatabulkupdatebyqueryrequest', entitlementmetadatabulkupdatebyqueryrequest);
|
|
857
|
+
localVarPath = "/entitlements/v1/access-model-metadata/bulk-update/query";
|
|
858
|
+
localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
859
|
+
if (configuration) {
|
|
860
|
+
baseOptions = configuration.baseOptions;
|
|
861
|
+
}
|
|
862
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), axiosOptions);
|
|
863
|
+
localVarHeaderParameter = {};
|
|
864
|
+
localVarQueryParameter = {};
|
|
865
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
866
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
867
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
868
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), axiosOptions.headers);
|
|
869
|
+
localVarRequestOptions.data = serializeDataIfNeeded(entitlementmetadatabulkupdatebyqueryrequest, localVarRequestOptions, configuration);
|
|
870
|
+
return [2 /*return*/, {
|
|
871
|
+
url: toPathString(localVarUrlObj),
|
|
872
|
+
axiosOptions: localVarRequestOptions,
|
|
873
|
+
}];
|
|
874
|
+
});
|
|
875
|
+
});
|
|
876
|
+
},
|
|
736
877
|
};
|
|
737
878
|
};
|
|
738
879
|
/**
|
|
@@ -1074,6 +1215,75 @@ export var EntitlementsApiFp = function (configuration) {
|
|
|
1074
1215
|
});
|
|
1075
1216
|
});
|
|
1076
1217
|
},
|
|
1218
|
+
/**
|
|
1219
|
+
* This API initiates a bulk update of Access Model Metadata for every entitlement matching the supplied filter expression. The update is processed asynchronously. The response returns the ID of the task performing the update. Adding or replacing custom metadata requires a suite license. This API replaces the deprecated `updateAccessModelMetadataByFilterV1` operation.
|
|
1220
|
+
* @summary Bulk-update metadata by filter
|
|
1221
|
+
* @param {Entitlementmetadatabulkupdatebyfilterrequest} entitlementmetadatabulkupdatebyfilterrequest Attribute metadata bulk update request body.
|
|
1222
|
+
* @param {*} [axiosOptions] Override http request option.
|
|
1223
|
+
* @throws {RequiredError}
|
|
1224
|
+
*/
|
|
1225
|
+
updateEntitlementsMetadataByFilterV1: function (entitlementmetadatabulkupdatebyfilterrequest, axiosOptions) {
|
|
1226
|
+
var _a, _b, _c;
|
|
1227
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1228
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
1229
|
+
return __generator(this, function (_d) {
|
|
1230
|
+
switch (_d.label) {
|
|
1231
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateEntitlementsMetadataByFilterV1(entitlementmetadatabulkupdatebyfilterrequest, axiosOptions)];
|
|
1232
|
+
case 1:
|
|
1233
|
+
localVarAxiosArgs = _d.sent();
|
|
1234
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1235
|
+
localVarOperationServerBasePath = (_c = (_b = operationServerMap['EntitlementsApi.updateEntitlementsMetadataByFilterV1']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1236
|
+
return [2 /*return*/, function (axios, basePath) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
1237
|
+
}
|
|
1238
|
+
});
|
|
1239
|
+
});
|
|
1240
|
+
},
|
|
1241
|
+
/**
|
|
1242
|
+
* This API initiates a bulk update of Access Model Metadata for one or more entitlements by a list of entitlement IDs. The update is processed asynchronously. The response returns the ID of the task performing the update. The maximum entitlement count in a single request is 3000. Adding or replacing custom metadata requires a suite license. This API replaces the deprecated `updateAccessModelMetadataByIdsV1` operation.
|
|
1243
|
+
* @summary Bulk-update metadata by ids
|
|
1244
|
+
* @param {Entitlementmetadatabulkupdatebyidrequest} entitlementmetadatabulkupdatebyidrequest Attribute metadata bulk update request body.
|
|
1245
|
+
* @param {*} [axiosOptions] Override http request option.
|
|
1246
|
+
* @throws {RequiredError}
|
|
1247
|
+
*/
|
|
1248
|
+
updateEntitlementsMetadataByIdsV1: function (entitlementmetadatabulkupdatebyidrequest, axiosOptions) {
|
|
1249
|
+
var _a, _b, _c;
|
|
1250
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1251
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
1252
|
+
return __generator(this, function (_d) {
|
|
1253
|
+
switch (_d.label) {
|
|
1254
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateEntitlementsMetadataByIdsV1(entitlementmetadatabulkupdatebyidrequest, axiosOptions)];
|
|
1255
|
+
case 1:
|
|
1256
|
+
localVarAxiosArgs = _d.sent();
|
|
1257
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1258
|
+
localVarOperationServerBasePath = (_c = (_b = operationServerMap['EntitlementsApi.updateEntitlementsMetadataByIdsV1']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1259
|
+
return [2 /*return*/, function (axios, basePath) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
1260
|
+
}
|
|
1261
|
+
});
|
|
1262
|
+
});
|
|
1263
|
+
},
|
|
1264
|
+
/**
|
|
1265
|
+
* This API initiates a bulk update of Access Model Metadata for every entitlement matching the supplied search query. The update is processed asynchronously. The response returns the ID of the task performing the update. Adding or replacing custom metadata requires a suite license. This API replaces the deprecated `updateAccessModelMetadataByQueryV1` operation.
|
|
1266
|
+
* @summary Bulk-update metadata by query
|
|
1267
|
+
* @param {Entitlementmetadatabulkupdatebyqueryrequest} entitlementmetadatabulkupdatebyqueryrequest Attribute metadata bulk update request body.
|
|
1268
|
+
* @param {*} [axiosOptions] Override http request option.
|
|
1269
|
+
* @throws {RequiredError}
|
|
1270
|
+
*/
|
|
1271
|
+
updateEntitlementsMetadataByQueryV1: function (entitlementmetadatabulkupdatebyqueryrequest, axiosOptions) {
|
|
1272
|
+
var _a, _b, _c;
|
|
1273
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1274
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
1275
|
+
return __generator(this, function (_d) {
|
|
1276
|
+
switch (_d.label) {
|
|
1277
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateEntitlementsMetadataByQueryV1(entitlementmetadatabulkupdatebyqueryrequest, axiosOptions)];
|
|
1278
|
+
case 1:
|
|
1279
|
+
localVarAxiosArgs = _d.sent();
|
|
1280
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1281
|
+
localVarOperationServerBasePath = (_c = (_b = operationServerMap['EntitlementsApi.updateEntitlementsMetadataByQueryV1']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1282
|
+
return [2 /*return*/, function (axios, basePath) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
1283
|
+
}
|
|
1284
|
+
});
|
|
1285
|
+
});
|
|
1286
|
+
},
|
|
1077
1287
|
};
|
|
1078
1288
|
};
|
|
1079
1289
|
/**
|
|
@@ -1215,6 +1425,36 @@ export var EntitlementsApiFactory = function (configuration, basePath, axios) {
|
|
|
1215
1425
|
updateEntitlementsInBulkV1: function (requestParameters, axiosOptions) {
|
|
1216
1426
|
return localVarFp.updateEntitlementsInBulkV1(requestParameters.entitlementBulkUpdateRequest, axiosOptions).then(function (request) { return request(axios, basePath); });
|
|
1217
1427
|
},
|
|
1428
|
+
/**
|
|
1429
|
+
* This API initiates a bulk update of Access Model Metadata for every entitlement matching the supplied filter expression. The update is processed asynchronously. The response returns the ID of the task performing the update. Adding or replacing custom metadata requires a suite license. This API replaces the deprecated `updateAccessModelMetadataByFilterV1` operation.
|
|
1430
|
+
* @summary Bulk-update metadata by filter
|
|
1431
|
+
* @param {EntitlementsApiUpdateEntitlementsMetadataByFilterV1Request} requestParameters Request parameters.
|
|
1432
|
+
* @param {*} [axiosOptions] Override http request option.
|
|
1433
|
+
* @throws {RequiredError}
|
|
1434
|
+
*/
|
|
1435
|
+
updateEntitlementsMetadataByFilterV1: function (requestParameters, axiosOptions) {
|
|
1436
|
+
return localVarFp.updateEntitlementsMetadataByFilterV1(requestParameters.entitlementmetadatabulkupdatebyfilterrequest, axiosOptions).then(function (request) { return request(axios, basePath); });
|
|
1437
|
+
},
|
|
1438
|
+
/**
|
|
1439
|
+
* This API initiates a bulk update of Access Model Metadata for one or more entitlements by a list of entitlement IDs. The update is processed asynchronously. The response returns the ID of the task performing the update. The maximum entitlement count in a single request is 3000. Adding or replacing custom metadata requires a suite license. This API replaces the deprecated `updateAccessModelMetadataByIdsV1` operation.
|
|
1440
|
+
* @summary Bulk-update metadata by ids
|
|
1441
|
+
* @param {EntitlementsApiUpdateEntitlementsMetadataByIdsV1Request} requestParameters Request parameters.
|
|
1442
|
+
* @param {*} [axiosOptions] Override http request option.
|
|
1443
|
+
* @throws {RequiredError}
|
|
1444
|
+
*/
|
|
1445
|
+
updateEntitlementsMetadataByIdsV1: function (requestParameters, axiosOptions) {
|
|
1446
|
+
return localVarFp.updateEntitlementsMetadataByIdsV1(requestParameters.entitlementmetadatabulkupdatebyidrequest, axiosOptions).then(function (request) { return request(axios, basePath); });
|
|
1447
|
+
},
|
|
1448
|
+
/**
|
|
1449
|
+
* This API initiates a bulk update of Access Model Metadata for every entitlement matching the supplied search query. The update is processed asynchronously. The response returns the ID of the task performing the update. Adding or replacing custom metadata requires a suite license. This API replaces the deprecated `updateAccessModelMetadataByQueryV1` operation.
|
|
1450
|
+
* @summary Bulk-update metadata by query
|
|
1451
|
+
* @param {EntitlementsApiUpdateEntitlementsMetadataByQueryV1Request} requestParameters Request parameters.
|
|
1452
|
+
* @param {*} [axiosOptions] Override http request option.
|
|
1453
|
+
* @throws {RequiredError}
|
|
1454
|
+
*/
|
|
1455
|
+
updateEntitlementsMetadataByQueryV1: function (requestParameters, axiosOptions) {
|
|
1456
|
+
return localVarFp.updateEntitlementsMetadataByQueryV1(requestParameters.entitlementmetadatabulkupdatebyqueryrequest, axiosOptions).then(function (request) { return request(axios, basePath); });
|
|
1457
|
+
},
|
|
1218
1458
|
};
|
|
1219
1459
|
};
|
|
1220
1460
|
/**
|
|
@@ -1386,6 +1626,42 @@ var EntitlementsApi = /** @class */ (function (_super) {
|
|
|
1386
1626
|
var _this = this;
|
|
1387
1627
|
return EntitlementsApiFp(this.configuration).updateEntitlementsInBulkV1(requestParameters.entitlementBulkUpdateRequest, axiosOptions).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1388
1628
|
};
|
|
1629
|
+
/**
|
|
1630
|
+
* This API initiates a bulk update of Access Model Metadata for every entitlement matching the supplied filter expression. The update is processed asynchronously. The response returns the ID of the task performing the update. Adding or replacing custom metadata requires a suite license. This API replaces the deprecated `updateAccessModelMetadataByFilterV1` operation.
|
|
1631
|
+
* @summary Bulk-update metadata by filter
|
|
1632
|
+
* @param {EntitlementsApiUpdateEntitlementsMetadataByFilterV1Request} requestParameters Request parameters.
|
|
1633
|
+
* @param {*} [axiosOptions] Override http request option.
|
|
1634
|
+
* @throws {RequiredError}
|
|
1635
|
+
* @memberof EntitlementsApi
|
|
1636
|
+
*/
|
|
1637
|
+
EntitlementsApi.prototype.updateEntitlementsMetadataByFilterV1 = function (requestParameters, axiosOptions) {
|
|
1638
|
+
var _this = this;
|
|
1639
|
+
return EntitlementsApiFp(this.configuration).updateEntitlementsMetadataByFilterV1(requestParameters.entitlementmetadatabulkupdatebyfilterrequest, axiosOptions).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1640
|
+
};
|
|
1641
|
+
/**
|
|
1642
|
+
* This API initiates a bulk update of Access Model Metadata for one or more entitlements by a list of entitlement IDs. The update is processed asynchronously. The response returns the ID of the task performing the update. The maximum entitlement count in a single request is 3000. Adding or replacing custom metadata requires a suite license. This API replaces the deprecated `updateAccessModelMetadataByIdsV1` operation.
|
|
1643
|
+
* @summary Bulk-update metadata by ids
|
|
1644
|
+
* @param {EntitlementsApiUpdateEntitlementsMetadataByIdsV1Request} requestParameters Request parameters.
|
|
1645
|
+
* @param {*} [axiosOptions] Override http request option.
|
|
1646
|
+
* @throws {RequiredError}
|
|
1647
|
+
* @memberof EntitlementsApi
|
|
1648
|
+
*/
|
|
1649
|
+
EntitlementsApi.prototype.updateEntitlementsMetadataByIdsV1 = function (requestParameters, axiosOptions) {
|
|
1650
|
+
var _this = this;
|
|
1651
|
+
return EntitlementsApiFp(this.configuration).updateEntitlementsMetadataByIdsV1(requestParameters.entitlementmetadatabulkupdatebyidrequest, axiosOptions).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1652
|
+
};
|
|
1653
|
+
/**
|
|
1654
|
+
* This API initiates a bulk update of Access Model Metadata for every entitlement matching the supplied search query. The update is processed asynchronously. The response returns the ID of the task performing the update. Adding or replacing custom metadata requires a suite license. This API replaces the deprecated `updateAccessModelMetadataByQueryV1` operation.
|
|
1655
|
+
* @summary Bulk-update metadata by query
|
|
1656
|
+
* @param {EntitlementsApiUpdateEntitlementsMetadataByQueryV1Request} requestParameters Request parameters.
|
|
1657
|
+
* @param {*} [axiosOptions] Override http request option.
|
|
1658
|
+
* @throws {RequiredError}
|
|
1659
|
+
* @memberof EntitlementsApi
|
|
1660
|
+
*/
|
|
1661
|
+
EntitlementsApi.prototype.updateEntitlementsMetadataByQueryV1 = function (requestParameters, axiosOptions) {
|
|
1662
|
+
var _this = this;
|
|
1663
|
+
return EntitlementsApiFp(this.configuration).updateEntitlementsMetadataByQueryV1(requestParameters.entitlementmetadatabulkupdatebyqueryrequest, axiosOptions).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1664
|
+
};
|
|
1389
1665
|
return EntitlementsApi;
|
|
1390
1666
|
}(BaseAPI));
|
|
1391
1667
|
export { EntitlementsApi };
|
package/dist/esm/nerm/common.js
CHANGED
|
@@ -246,8 +246,8 @@ export var createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH,
|
|
|
246
246
|
// header such as X-SailPoint-SDK forces a CORS preflight that tenants do
|
|
247
247
|
// not allow, which blocks the request outright.
|
|
248
248
|
if (typeof process !== 'undefined' && ((_a = process.versions) === null || _a === void 0 ? void 0 : _a.node)) {
|
|
249
|
-
headers['X-SailPoint-SDK'] = 'typescript-2.2.
|
|
250
|
-
userAgent = "SailPoint-SDK-TypeScript/2.2.
|
|
249
|
+
headers['X-SailPoint-SDK'] = 'typescript-2.2.6';
|
|
250
|
+
userAgent = "SailPoint-SDK-TypeScript/2.2.6";
|
|
251
251
|
if ((configuration === null || configuration === void 0 ? void 0 : configuration.consumerIdentifier) && (configuration === null || configuration === void 0 ? void 0 : configuration.consumerVersion)) {
|
|
252
252
|
userAgent += " (".concat(configuration.consumerIdentifier, "/").concat(configuration.consumerVersion, ")");
|
|
253
253
|
}
|
|
@@ -246,8 +246,8 @@ export var createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH,
|
|
|
246
246
|
// header such as X-SailPoint-SDK forces a CORS preflight that tenants do
|
|
247
247
|
// not allow, which blocks the request outright.
|
|
248
248
|
if (typeof process !== 'undefined' && ((_a = process.versions) === null || _a === void 0 ? void 0 : _a.node)) {
|
|
249
|
-
headers['X-SailPoint-SDK'] = 'typescript-2.2.
|
|
250
|
-
userAgent = "SailPoint-SDK-TypeScript/2.2.
|
|
249
|
+
headers['X-SailPoint-SDK'] = 'typescript-2.2.6';
|
|
250
|
+
userAgent = "SailPoint-SDK-TypeScript/2.2.6";
|
|
251
251
|
if ((configuration === null || configuration === void 0 ? void 0 : configuration.consumerIdentifier) && (configuration === null || configuration === void 0 ? void 0 : configuration.consumerVersion)) {
|
|
252
252
|
userAgent += " (".concat(configuration.consumerIdentifier, "/").concat(configuration.consumerVersion, ")");
|
|
253
253
|
}
|
package/dist/nerm/common.js
CHANGED
|
@@ -257,8 +257,8 @@ var createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configu
|
|
|
257
257
|
// header such as X-SailPoint-SDK forces a CORS preflight that tenants do
|
|
258
258
|
// not allow, which blocks the request outright.
|
|
259
259
|
if (typeof process !== 'undefined' && ((_a = process.versions) === null || _a === void 0 ? void 0 : _a.node)) {
|
|
260
|
-
headers['X-SailPoint-SDK'] = 'typescript-2.2.
|
|
261
|
-
userAgent = "SailPoint-SDK-TypeScript/2.2.
|
|
260
|
+
headers['X-SailPoint-SDK'] = 'typescript-2.2.6';
|
|
261
|
+
userAgent = "SailPoint-SDK-TypeScript/2.2.6";
|
|
262
262
|
if ((configuration === null || configuration === void 0 ? void 0 : configuration.consumerIdentifier) && (configuration === null || configuration === void 0 ? void 0 : configuration.consumerVersion)) {
|
|
263
263
|
userAgent += " (".concat(configuration.consumerIdentifier, "/").concat(configuration.consumerVersion, ")");
|
|
264
264
|
}
|
package/dist/nerm/common.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../nerm/common.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMH,+BAAuC;AAEvC;;;GAGG;AACU,QAAA,cAAc,GAAG,qBAAqB,CAAA;AAEnD;;;;GAIG;AACI,IAAM,iBAAiB,GAAG,UAAU,YAAoB,EAAE,SAAiB,EAAE,UAAmB;IACnG,IAAI,UAAU,KAAK,IAAI,IAAI,UAAU,KAAK,SAAS,EAAE;QACjD,MAAM,IAAI,oBAAa,CAAC,SAAS,EAAE,6BAAsB,SAAS,iDAAuC,YAAY,MAAG,CAAC,CAAC;KAC7H;AACL,CAAC,CAAA;AAJY,QAAA,iBAAiB,qBAI7B;AAED;;;GAGG;AACI,IAAM,iBAAiB,GAAG,UAAgB,MAAW,EAAE,YAAoB,EAAE,aAA6B;;;;;;yBACzG,CAAA,aAAa,IAAI,aAAa,CAAC,MAAM,CAAA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AC,OAAO,EAAE,aAAa,CAAC,EAAA;;wBAAnD,SAAmD,CAAC;wBAE9C,gBAAgB,yBAAO,SAAS,CAAC,YAAY,KAAE,GAAG,EAAE,CAAC,QAAQ,KAAI,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,YAAY,CAAA,CAAC,GAAG,SAAS,CAAC,GAAG,EAAE,OAAO,SAAA,GAAC,CAAC;wBAC9H,sBAAO,KAAK,CAAC,OAAO,CAAO,gBAAgB,CAAC,CAAC,KAAK,CAAC,UAAC,KAAU;;gCAC1D,IAAI,CAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,YAAY,MAAK,IAAI,EAAE;oCAC9B,IAAM,KAAK,GAAQ,IAAI,KAAK,CAAC,MAAA,KAAK,CAAC,OAAO,mCAAI,oBAAoB,CAAC,CAAC;oCACpE,KAAK,CAAC,IAAI,GAAG,UAAU,CAAC;oCACxB,KAAK,CAAC,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC;oCAC1B,KAAK,CAAC,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC;oCACxB,IAAI,KAAK,CAAC,QAAQ,EAAE;wCAChB,KAAK,CAAC,MAAM,GAAG,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC;wCACrC,KAAK,CAAC,UAAU,GAAG,KAAK,CAAC,QAAQ,CAAC,UAAU,CAAC;wCAC7C,KAAK,CAAC,IAAI,GAAG,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC;qCACpC;oCACD,MAAM,KAAK,CAAC;iCACf;gCACD,MAAM,KAAK,CAAC;4BAChB,CAAC,CAAC,EAAC;;;;KACN,CAAC;AACN,CAAC,CAAA;AA7CY,QAAA,qBAAqB,yBA6CjC","sourcesContent":["/* tslint:disable */\n/* eslint-disable */\n/**\n * NERM API\n * The NERM API accesss and modifies resources in your environment.\n *\n * The version of the OpenAPI document: 1.0.0\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\nimport type { Configuration } from \"../configuration\";\nimport type { RequestArgs } from \"./base\";\nimport type { AxiosInstance, AxiosResponse } from 'axios';\nimport { RequiredError } from \"./base\";\n\n/**\n *\n * @export\n */\nexport const DUMMY_BASE_URL = 'https://example.com'\n\n/**\n *\n * @throws {RequiredError}\n * @export\n */\nexport const assertParamExists = function (functionName: string, paramName: string, paramValue: unknown) {\n if (paramValue === null || paramValue === undefined) {\n throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);\n }\n}\n\n/**\n *\n * @export\n */\nexport const setApiKeyToObject = async function (object: any, keyParamName: string, configuration?: Configuration) {\n if (configuration && configuration.apiKey) {\n const localVarApiKeyValue = typeof configuration.apiKey === 'function'\n ? await configuration.apiKey(keyParamName)\n : await configuration.apiKey;\n object[keyParamName] = localVarApiKeyValue;\n }\n}\n\n/**\n *\n * @export\n */\nexport const setBasicAuthToObject = function (object: any, configuration?: Configuration) {\n if (configuration && (configuration.username || configuration.password)) {\n object[\"auth\"] = { username: configuration.username, password: configuration.password };\n }\n}\n\n/**\n *\n * @export\n */\nexport const setBearerAuthToObject = async function (object: any, configuration?: Configuration) {\n if (configuration && configuration.accessToken) {\n const accessToken = typeof configuration.accessToken === 'function'\n ? await configuration.accessToken()\n : await configuration.accessToken;\n object[\"Authorization\"] = \"Bearer \" + accessToken;\n }\n}\n\n/**\n *\n * @export\n */\nexport const setOAuthToObject = async function (object: any, name: string, scopes: string[], configuration?: Configuration) {\n if (configuration && configuration.accessToken) {\n const localVarAccessTokenValue = typeof configuration.accessToken === 'function'\n ? await configuration.accessToken(name, scopes)\n : await configuration.accessToken;\n object[\"Authorization\"] = \"Bearer \" + localVarAccessTokenValue;\n }\n}\n\nfunction setFlattenedQueryParams(urlSearchParams: URLSearchParams, parameter: any, key: string = \"\"): void {\n if (parameter == null) return;\n if (typeof parameter === \"object\") {\n if (Array.isArray(parameter)) {\n (parameter as any[]).forEach(item => setFlattenedQueryParams(urlSearchParams, item, key));\n } \n else {\n Object.keys(parameter).forEach(currentKey => \n setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== '' ? '.' : ''}${currentKey}`)\n );\n }\n } \n else {\n if (urlSearchParams.has(key)) {\n urlSearchParams.append(key, parameter);\n } \n else {\n urlSearchParams.set(key, parameter);\n }\n }\n}\n\n/**\n *\n * @export\n */\nexport const setSearchParams = function (url: URL, ...objects: any[]) {\n const searchParams = new URLSearchParams(url.search);\n setFlattenedQueryParams(searchParams, objects);\n url.search = searchParams.toString();\n}\n\n/**\n *\n * @export\n */\nexport const serializeDataIfNeeded = function (value: any, requestOptions: any, configuration?: Configuration) {\n const nonString = typeof value !== 'string';\n const needsSerialization = nonString && configuration && configuration.isJsonMime\n ? configuration.isJsonMime(requestOptions.headers['Content-Type'])\n : nonString;\n return needsSerialization\n ? JSON.stringify(value !== undefined ? value : {})\n : (value || \"\");\n}\n\n/**\n *\n * @export\n */\nexport const toPathString = function (url: URL) {\n return url.pathname + url.search + url.hash\n}\n\n/**\n *\n * @export\n */\nexport const createRequestFunction = function (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) {\n return async <T = unknown, R = AxiosResponse<T>>(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {\n const headers: Record<string, any> = {\n ...{'Accept': 'application/json'},\n ...axiosArgs.axiosOptions.headers,\n }\n\n // Node-only headers. Browsers reject a User-Agent override, and a custom\n // header such as X-SailPoint-SDK forces a CORS preflight that tenants do\n // not allow, which blocks the request outright.\n if (typeof process !== 'undefined' && process.versions?.node) {\n headers['X-SailPoint-SDK'] = 'typescript-2.2.4';\n let userAgent = `SailPoint-SDK-TypeScript/2.2.4`;\n if (configuration?.consumerIdentifier && configuration?.consumerVersion) {\n userAgent += ` (${configuration.consumerIdentifier}/${configuration.consumerVersion})`;\n }\n userAgent += ` (${process.platform}; ${process.arch}) Node/${process.versions.node} (openapi-generator/7.12.0)`;\n headers['User-Agent'] = userAgent;\n }\n\n if(!configuration.experimental && (\"X-SailPoint-Experimental\" in headers)) {\n throw new Error(\"You are using Experimental APIs. Set configuration.experimental = True to enable these APIs in the SDK.\")\n } else if(configuration.experimental == true && (\"X-SailPoint-Experimental\" in headers)) {\n console.log(\"Warning: You are using Experimental APIs\")\n }\n\n await setBearerAuthToObject(headers, configuration);\n\n const axiosRequestArgs = {...axiosArgs.axiosOptions, url: (basePath || configuration?.nermBasePath) + axiosArgs.url, headers};\n return axios.request<T, R>(axiosRequestArgs).catch((error: any) => {\n if (error?.isAxiosError === true) {\n const clean: any = new Error(error.message ?? 'API request failed');\n clean.name = 'ApiError';\n clean.stack = error.stack;\n clean.code = error.code;\n if (error.response) {\n clean.status = error.response.status;\n clean.statusText = error.response.statusText;\n clean.data = error.response.data;\n }\n throw clean;\n }\n throw error;\n });\n };\n}\n"]}
|
|
1
|
+
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../nerm/common.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMH,+BAAuC;AAEvC;;;GAGG;AACU,QAAA,cAAc,GAAG,qBAAqB,CAAA;AAEnD;;;;GAIG;AACI,IAAM,iBAAiB,GAAG,UAAU,YAAoB,EAAE,SAAiB,EAAE,UAAmB;IACnG,IAAI,UAAU,KAAK,IAAI,IAAI,UAAU,KAAK,SAAS,EAAE;QACjD,MAAM,IAAI,oBAAa,CAAC,SAAS,EAAE,6BAAsB,SAAS,iDAAuC,YAAY,MAAG,CAAC,CAAC;KAC7H;AACL,CAAC,CAAA;AAJY,QAAA,iBAAiB,qBAI7B;AAED;;;GAGG;AACI,IAAM,iBAAiB,GAAG,UAAgB,MAAW,EAAE,YAAoB,EAAE,aAA6B;;;;;;yBACzG,CAAA,aAAa,IAAI,aAAa,CAAC,MAAM,CAAA,EAArC,wBAAqC;yBACT,C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AAC,EAAA;;wBAAnD,SAAmD,CAAC;wBAE9C,gBAAgB,yBAAO,SAAS,CAAC,YAAY,KAAE,GAAG,EAAE,CAAC,QAAQ,KAAI,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,YAAY,CAAA,CAAC,GAAG,SAAS,CAAC,GAAG,EAAE,OAAO,SAAA,GAAC,CAAC;wBAC9H,sBAAO,KAAK,CAAC,OAAO,CAAO,gBAAgB,CAAC,CAAC,KAAK,CAAC,UAAC,KAAU;;gCAC1D,IAAI,CAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,YAAY,MAAK,IAAI,EAAE;oCAC9B,IAAM,KAAK,GAAQ,IAAI,KAAK,CAAC,MAAA,KAAK,CAAC,OAAO,mCAAI,oBAAoB,CAAC,CAAC;oCACpE,KAAK,CAAC,IAAI,GAAG,UAAU,CAAC;oCACxB,KAAK,CAAC,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC;oCAC1B,KAAK,CAAC,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC;oCACxB,IAAI,KAAK,CAAC,QAAQ,EAAE;wCAChB,KAAK,CAAC,MAAM,GAAG,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC;wCACrC,KAAK,CAAC,UAAU,GAAG,KAAK,CAAC,QAAQ,CAAC,UAAU,CAAC;wCAC7C,KAAK,CAAC,IAAI,GAAG,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC;qCACpC;oCACD,MAAM,KAAK,CAAC;iCACf;gCACD,MAAM,KAAK,CAAC;4BAChB,CAAC,CAAC,EAAC;;;;KACN,CAAC;AACN,CAAC,CAAA;AA7CY,QAAA,qBAAqB,yBA6CjC","sourcesContent":["/* tslint:disable */\n/* eslint-disable */\n/**\n * NERM API\n * The NERM API accesss and modifies resources in your environment.\n *\n * The version of the OpenAPI document: 1.0.0\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\nimport type { Configuration } from \"../configuration\";\nimport type { RequestArgs } from \"./base\";\nimport type { AxiosInstance, AxiosResponse } from 'axios';\nimport { RequiredError } from \"./base\";\n\n/**\n *\n * @export\n */\nexport const DUMMY_BASE_URL = 'https://example.com'\n\n/**\n *\n * @throws {RequiredError}\n * @export\n */\nexport const assertParamExists = function (functionName: string, paramName: string, paramValue: unknown) {\n if (paramValue === null || paramValue === undefined) {\n throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);\n }\n}\n\n/**\n *\n * @export\n */\nexport const setApiKeyToObject = async function (object: any, keyParamName: string, configuration?: Configuration) {\n if (configuration && configuration.apiKey) {\n const localVarApiKeyValue = typeof configuration.apiKey === 'function'\n ? await configuration.apiKey(keyParamName)\n : await configuration.apiKey;\n object[keyParamName] = localVarApiKeyValue;\n }\n}\n\n/**\n *\n * @export\n */\nexport const setBasicAuthToObject = function (object: any, configuration?: Configuration) {\n if (configuration && (configuration.username || configuration.password)) {\n object[\"auth\"] = { username: configuration.username, password: configuration.password };\n }\n}\n\n/**\n *\n * @export\n */\nexport const setBearerAuthToObject = async function (object: any, configuration?: Configuration) {\n if (configuration && configuration.accessToken) {\n const accessToken = typeof configuration.accessToken === 'function'\n ? await configuration.accessToken()\n : await configuration.accessToken;\n object[\"Authorization\"] = \"Bearer \" + accessToken;\n }\n}\n\n/**\n *\n * @export\n */\nexport const setOAuthToObject = async function (object: any, name: string, scopes: string[], configuration?: Configuration) {\n if (configuration && configuration.accessToken) {\n const localVarAccessTokenValue = typeof configuration.accessToken === 'function'\n ? await configuration.accessToken(name, scopes)\n : await configuration.accessToken;\n object[\"Authorization\"] = \"Bearer \" + localVarAccessTokenValue;\n }\n}\n\nfunction setFlattenedQueryParams(urlSearchParams: URLSearchParams, parameter: any, key: string = \"\"): void {\n if (parameter == null) return;\n if (typeof parameter === \"object\") {\n if (Array.isArray(parameter)) {\n (parameter as any[]).forEach(item => setFlattenedQueryParams(urlSearchParams, item, key));\n } \n else {\n Object.keys(parameter).forEach(currentKey => \n setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== '' ? '.' : ''}${currentKey}`)\n );\n }\n } \n else {\n if (urlSearchParams.has(key)) {\n urlSearchParams.append(key, parameter);\n } \n else {\n urlSearchParams.set(key, parameter);\n }\n }\n}\n\n/**\n *\n * @export\n */\nexport const setSearchParams = function (url: URL, ...objects: any[]) {\n const searchParams = new URLSearchParams(url.search);\n setFlattenedQueryParams(searchParams, objects);\n url.search = searchParams.toString();\n}\n\n/**\n *\n * @export\n */\nexport const serializeDataIfNeeded = function (value: any, requestOptions: any, configuration?: Configuration) {\n const nonString = typeof value !== 'string';\n const needsSerialization = nonString && configuration && configuration.isJsonMime\n ? configuration.isJsonMime(requestOptions.headers['Content-Type'])\n : nonString;\n return needsSerialization\n ? JSON.stringify(value !== undefined ? value : {})\n : (value || \"\");\n}\n\n/**\n *\n * @export\n */\nexport const toPathString = function (url: URL) {\n return url.pathname + url.search + url.hash\n}\n\n/**\n *\n * @export\n */\nexport const createRequestFunction = function (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) {\n return async <T = unknown, R = AxiosResponse<T>>(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {\n const headers: Record<string, any> = {\n ...{'Accept': 'application/json'},\n ...axiosArgs.axiosOptions.headers,\n }\n\n // Node-only headers. Browsers reject a User-Agent override, and a custom\n // header such as X-SailPoint-SDK forces a CORS preflight that tenants do\n // not allow, which blocks the request outright.\n if (typeof process !== 'undefined' && process.versions?.node) {\n headers['X-SailPoint-SDK'] = 'typescript-2.2.6';\n let userAgent = `SailPoint-SDK-TypeScript/2.2.6`;\n if (configuration?.consumerIdentifier && configuration?.consumerVersion) {\n userAgent += ` (${configuration.consumerIdentifier}/${configuration.consumerVersion})`;\n }\n userAgent += ` (${process.platform}; ${process.arch}) Node/${process.versions.node} (openapi-generator/7.12.0)`;\n headers['User-Agent'] = userAgent;\n }\n\n if(!configuration.experimental && (\"X-SailPoint-Experimental\" in headers)) {\n throw new Error(\"You are using Experimental APIs. Set configuration.experimental = True to enable these APIs in the SDK.\")\n } else if(configuration.experimental == true && (\"X-SailPoint-Experimental\" in headers)) {\n console.log(\"Warning: You are using Experimental APIs\")\n }\n\n await setBearerAuthToObject(headers, configuration);\n\n const axiosRequestArgs = {...axiosArgs.axiosOptions, url: (basePath || configuration?.nermBasePath) + axiosArgs.url, headers};\n return axios.request<T, R>(axiosRequestArgs).catch((error: any) => {\n if (error?.isAxiosError === true) {\n const clean: any = new Error(error.message ?? 'API request failed');\n clean.name = 'ApiError';\n clean.stack = error.stack;\n clean.code = error.code;\n if (error.response) {\n clean.status = error.response.status;\n clean.statusText = error.response.statusText;\n clean.data = error.response.data;\n }\n throw clean;\n }\n throw error;\n });\n };\n}\n"]}
|
package/dist/nermv2025/common.js
CHANGED
|
@@ -257,8 +257,8 @@ var createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configu
|
|
|
257
257
|
// header such as X-SailPoint-SDK forces a CORS preflight that tenants do
|
|
258
258
|
// not allow, which blocks the request outright.
|
|
259
259
|
if (typeof process !== 'undefined' && ((_a = process.versions) === null || _a === void 0 ? void 0 : _a.node)) {
|
|
260
|
-
headers['X-SailPoint-SDK'] = 'typescript-2.2.
|
|
261
|
-
userAgent = "SailPoint-SDK-TypeScript/2.2.
|
|
260
|
+
headers['X-SailPoint-SDK'] = 'typescript-2.2.6';
|
|
261
|
+
userAgent = "SailPoint-SDK-TypeScript/2.2.6";
|
|
262
262
|
if ((configuration === null || configuration === void 0 ? void 0 : configuration.consumerIdentifier) && (configuration === null || configuration === void 0 ? void 0 : configuration.consumerVersion)) {
|
|
263
263
|
userAgent += " (".concat(configuration.consumerIdentifier, "/").concat(configuration.consumerVersion, ")");
|
|
264
264
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../nermv2025/common.ts"],"names":[],"mappings":";AAAA,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AAK,CAAC,IAAI,CAAC;oCACxB,IAAI,KAAK,CAAC,QAAQ,EAAE;wCAChB,KAAK,CAAC,MAAM,GAAG,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC;wCACrC,KAAK,CAAC,UAAU,GAAG,KAAK,CAAC,QAAQ,CAAC,UAAU,CAAC;wCAC7C,KAAK,CAAC,IAAI,GAAG,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC;qCACpC;oCACD,MAAM,KAAK,CAAC;iCACf;gCACD,MAAM,KAAK,CAAC;4BAChB,CAAC,CAAC,EAAC;;;;KACN,CAAC;AACN,CAAC,CAAA;AA7CY,QAAA,qBAAqB,yBA6CjC","sourcesContent":["/* tslint:disable */\n/* eslint-disable */\n/**\n * NERM API v2025\n * The NERM API v2025 accesss and modifies resources in your environment.\n *\n * The version of the OpenAPI document: 1.0.0\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\nimport type { Configuration } from \"../configuration\";\nimport type { RequestArgs } from \"./base\";\nimport type { AxiosInstance, AxiosResponse } from 'axios';\nimport { RequiredError } from \"./base\";\n\n/**\n *\n * @export\n */\nexport const DUMMY_BASE_URL = 'https://example.com'\n\n/**\n *\n * @throws {RequiredError}\n * @export\n */\nexport const assertParamExists = function (functionName: string, paramName: string, paramValue: unknown) {\n if (paramValue === null || paramValue === undefined) {\n throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);\n }\n}\n\n/**\n *\n * @export\n */\nexport const setApiKeyToObject = async function (object: any, keyParamName: string, configuration?: Configuration) {\n if (configuration && configuration.apiKey) {\n const localVarApiKeyValue = typeof configuration.apiKey === 'function'\n ? await configuration.apiKey(keyParamName)\n : await configuration.apiKey;\n object[keyParamName] = localVarApiKeyValue;\n }\n}\n\n/**\n *\n * @export\n */\nexport const setBasicAuthToObject = function (object: any, configuration?: Configuration) {\n if (configuration && (configuration.username || configuration.password)) {\n object[\"auth\"] = { username: configuration.username, password: configuration.password };\n }\n}\n\n/**\n *\n * @export\n */\nexport const setBearerAuthToObject = async function (object: any, configuration?: Configuration) {\n if (configuration && configuration.accessToken) {\n const accessToken = typeof configuration.accessToken === 'function'\n ? await configuration.accessToken()\n : await configuration.accessToken;\n object[\"Authorization\"] = \"Bearer \" + accessToken;\n }\n}\n\n/**\n *\n * @export\n */\nexport const setOAuthToObject = async function (object: any, name: string, scopes: string[], configuration?: Configuration) {\n if (configuration && configuration.accessToken) {\n const localVarAccessTokenValue = typeof configuration.accessToken === 'function'\n ? await configuration.accessToken(name, scopes)\n : await configuration.accessToken;\n object[\"Authorization\"] = \"Bearer \" + localVarAccessTokenValue;\n }\n}\n\nfunction setFlattenedQueryParams(urlSearchParams: URLSearchParams, parameter: any, key: string = \"\"): void {\n if (parameter == null) return;\n if (typeof parameter === \"object\") {\n if (Array.isArray(parameter)) {\n (parameter as any[]).forEach(item => setFlattenedQueryParams(urlSearchParams, item, key));\n } \n else {\n Object.keys(parameter).forEach(currentKey => \n setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== '' ? '.' : ''}${currentKey}`)\n );\n }\n } \n else {\n if (urlSearchParams.has(key)) {\n urlSearchParams.append(key, parameter);\n } \n else {\n urlSearchParams.set(key, parameter);\n }\n }\n}\n\n/**\n *\n * @export\n */\nexport const setSearchParams = function (url: URL, ...objects: any[]) {\n const searchParams = new URLSearchParams(url.search);\n setFlattenedQueryParams(searchParams, objects);\n url.search = searchParams.toString();\n}\n\n/**\n *\n * @export\n */\nexport const serializeDataIfNeeded = function (value: any, requestOptions: any, configuration?: Configuration) {\n const nonString = typeof value !== 'string';\n const needsSerialization = nonString && configuration && configuration.isJsonMime\n ? configuration.isJsonMime(requestOptions.headers['Content-Type'])\n : nonString;\n return needsSerialization\n ? JSON.stringify(value !== undefined ? value : {})\n : (value || \"\");\n}\n\n/**\n *\n * @export\n */\nexport const toPathString = function (url: URL) {\n return url.pathname + url.search + url.hash\n}\n\n/**\n *\n * @export\n */\nexport const createRequestFunction = function (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) {\n return async <T = unknown, R = AxiosResponse<T>>(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {\n const headers: Record<string, any> = {\n ...{'Accept': 'application/json'},\n ...axiosArgs.axiosOptions.headers,\n }\n\n // Node-only headers. Browsers reject a User-Agent override, and a custom\n // header such as X-SailPoint-SDK forces a CORS preflight that tenants do\n // not allow, which blocks the request outright.\n if (typeof process !== 'undefined' && process.versions?.node) {\n headers['X-SailPoint-SDK'] = 'typescript-2.2.4';\n let userAgent = `SailPoint-SDK-TypeScript/2.2.4`;\n if (configuration?.consumerIdentifier && configuration?.consumerVersion) {\n userAgent += ` (${configuration.consumerIdentifier}/${configuration.consumerVersion})`;\n }\n userAgent += ` (${process.platform}; ${process.arch}) Node/${process.versions.node} (openapi-generator/7.12.0)`;\n headers['User-Agent'] = userAgent;\n }\n\n if(!configuration.experimental && (\"X-SailPoint-Experimental\" in headers)) {\n throw new Error(\"You are using Experimental APIs. Set configuration.experimental = True to enable these APIs in the SDK.\")\n } else if(configuration.experimental == true && (\"X-SailPoint-Experimental\" in headers)) {\n console.log(\"Warning: You are using Experimental APIs\")\n }\n\n await setBearerAuthToObject(headers, configuration);\n\n const axiosRequestArgs = {...axiosArgs.axiosOptions, url: (basePath || configuration?.nermBasePath) + axiosArgs.url, headers};\n return axios.request<T, R>(axiosRequestArgs).catch((error: any) => {\n if (error?.isAxiosError === true) {\n const clean: any = new Error(error.message ?? 'API request failed');\n clean.name = 'ApiError';\n clean.stack = error.stack;\n clean.code = error.code;\n if (error.response) {\n clean.status = error.response.status;\n clean.statusText = error.response.statusText;\n clean.data = error.response.data;\n }\n throw clean;\n }\n throw error;\n });\n };\n}\n"]}
|
|
1
|
+
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../nermv2025/common.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACp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AAI,CAAC;oCACxB,IAAI,KAAK,CAAC,QAAQ,EAAE;wCAChB,KAAK,CAAC,MAAM,GAAG,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC;wCACrC,KAAK,CAAC,UAAU,GAAG,KAAK,CAAC,QAAQ,CAAC,UAAU,CAAC;wCAC7C,KAAK,CAAC,IAAI,GAAG,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC;qCACpC;oCACD,MAAM,KAAK,CAAC;iCACf;gCACD,MAAM,KAAK,CAAC;4BAChB,CAAC,CAAC,EAAC;;;;KACN,CAAC;AACN,CAAC,CAAA;AA7CY,QAAA,qBAAqB,yBA6CjC","sourcesContent":["/* tslint:disable */\n/* eslint-disable */\n/**\n * NERM API v2025\n * The NERM API v2025 accesss and modifies resources in your environment.\n *\n * The version of the OpenAPI document: 1.0.0\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\nimport type { Configuration } from \"../configuration\";\nimport type { RequestArgs } from \"./base\";\nimport type { AxiosInstance, AxiosResponse } from 'axios';\nimport { RequiredError } from \"./base\";\n\n/**\n *\n * @export\n */\nexport const DUMMY_BASE_URL = 'https://example.com'\n\n/**\n *\n * @throws {RequiredError}\n * @export\n */\nexport const assertParamExists = function (functionName: string, paramName: string, paramValue: unknown) {\n if (paramValue === null || paramValue === undefined) {\n throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);\n }\n}\n\n/**\n *\n * @export\n */\nexport const setApiKeyToObject = async function (object: any, keyParamName: string, configuration?: Configuration) {\n if (configuration && configuration.apiKey) {\n const localVarApiKeyValue = typeof configuration.apiKey === 'function'\n ? await configuration.apiKey(keyParamName)\n : await configuration.apiKey;\n object[keyParamName] = localVarApiKeyValue;\n }\n}\n\n/**\n *\n * @export\n */\nexport const setBasicAuthToObject = function (object: any, configuration?: Configuration) {\n if (configuration && (configuration.username || configuration.password)) {\n object[\"auth\"] = { username: configuration.username, password: configuration.password };\n }\n}\n\n/**\n *\n * @export\n */\nexport const setBearerAuthToObject = async function (object: any, configuration?: Configuration) {\n if (configuration && configuration.accessToken) {\n const accessToken = typeof configuration.accessToken === 'function'\n ? await configuration.accessToken()\n : await configuration.accessToken;\n object[\"Authorization\"] = \"Bearer \" + accessToken;\n }\n}\n\n/**\n *\n * @export\n */\nexport const setOAuthToObject = async function (object: any, name: string, scopes: string[], configuration?: Configuration) {\n if (configuration && configuration.accessToken) {\n const localVarAccessTokenValue = typeof configuration.accessToken === 'function'\n ? await configuration.accessToken(name, scopes)\n : await configuration.accessToken;\n object[\"Authorization\"] = \"Bearer \" + localVarAccessTokenValue;\n }\n}\n\nfunction setFlattenedQueryParams(urlSearchParams: URLSearchParams, parameter: any, key: string = \"\"): void {\n if (parameter == null) return;\n if (typeof parameter === \"object\") {\n if (Array.isArray(parameter)) {\n (parameter as any[]).forEach(item => setFlattenedQueryParams(urlSearchParams, item, key));\n } \n else {\n Object.keys(parameter).forEach(currentKey => \n setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== '' ? '.' : ''}${currentKey}`)\n );\n }\n } \n else {\n if (urlSearchParams.has(key)) {\n urlSearchParams.append(key, parameter);\n } \n else {\n urlSearchParams.set(key, parameter);\n }\n }\n}\n\n/**\n *\n * @export\n */\nexport const setSearchParams = function (url: URL, ...objects: any[]) {\n const searchParams = new URLSearchParams(url.search);\n setFlattenedQueryParams(searchParams, objects);\n url.search = searchParams.toString();\n}\n\n/**\n *\n * @export\n */\nexport const serializeDataIfNeeded = function (value: any, requestOptions: any, configuration?: Configuration) {\n const nonString = typeof value !== 'string';\n const needsSerialization = nonString && configuration && configuration.isJsonMime\n ? configuration.isJsonMime(requestOptions.headers['Content-Type'])\n : nonString;\n return needsSerialization\n ? JSON.stringify(value !== undefined ? value : {})\n : (value || \"\");\n}\n\n/**\n *\n * @export\n */\nexport const toPathString = function (url: URL) {\n return url.pathname + url.search + url.hash\n}\n\n/**\n *\n * @export\n */\nexport const createRequestFunction = function (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) {\n return async <T = unknown, R = AxiosResponse<T>>(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {\n const headers: Record<string, any> = {\n ...{'Accept': 'application/json'},\n ...axiosArgs.axiosOptions.headers,\n }\n\n // Node-only headers. Browsers reject a User-Agent override, and a custom\n // header such as X-SailPoint-SDK forces a CORS preflight that tenants do\n // not allow, which blocks the request outright.\n if (typeof process !== 'undefined' && process.versions?.node) {\n headers['X-SailPoint-SDK'] = 'typescript-2.2.6';\n let userAgent = `SailPoint-SDK-TypeScript/2.2.6`;\n if (configuration?.consumerIdentifier && configuration?.consumerVersion) {\n userAgent += ` (${configuration.consumerIdentifier}/${configuration.consumerVersion})`;\n }\n userAgent += ` (${process.platform}; ${process.arch}) Node/${process.versions.node} (openapi-generator/7.12.0)`;\n headers['User-Agent'] = userAgent;\n }\n\n if(!configuration.experimental && (\"X-SailPoint-Experimental\" in headers)) {\n throw new Error(\"You are using Experimental APIs. Set configuration.experimental = True to enable these APIs in the SDK.\")\n } else if(configuration.experimental == true && (\"X-SailPoint-Experimental\" in headers)) {\n console.log(\"Warning: You are using Experimental APIs\")\n }\n\n await setBearerAuthToObject(headers, configuration);\n\n const axiosRequestArgs = {...axiosArgs.axiosOptions, url: (basePath || configuration?.nermBasePath) + axiosArgs.url, headers};\n return axios.request<T, R>(axiosRequestArgs).catch((error: any) => {\n if (error?.isAxiosError === true) {\n const clean: any = new Error(error.message ?? 'API request failed');\n clean.name = 'ApiError';\n clean.stack = error.stack;\n clean.code = error.code;\n if (error.response) {\n clean.status = error.response.status;\n clean.statusText = error.response.statusText;\n clean.data = error.response.data;\n }\n throw clean;\n }\n throw error;\n });\n };\n}\n"]}
|