@stackfactor/client-api 1.1.122 → 1.1.123
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/lib/role.js +3 -1
- package/package.json +1 -1
package/lib/role.js
CHANGED
|
@@ -229,12 +229,14 @@ const getRoleTemplateUpdates = (id, token) => {
|
|
|
229
229
|
* Import role templates
|
|
230
230
|
* @param {Array<String>} data The list of role templates to be imported
|
|
231
231
|
* @param {String} token
|
|
232
|
+
* @param {Boolean} skipIfAlreadyImported Skip if the role template is already imported
|
|
232
233
|
* @returns {Promise}
|
|
233
234
|
*/
|
|
234
|
-
const importRoleTemplates = (data, token) => {
|
|
235
|
+
const importRoleTemplates = (data, token, skipIfAlreadyImported = false) => {
|
|
235
236
|
return new Promise(function (resolve, reject) {
|
|
236
237
|
const requestData = {
|
|
237
238
|
data: data,
|
|
239
|
+
skipIfAlreadyImported: skipIfAlreadyImported,
|
|
238
240
|
};
|
|
239
241
|
let confirmationRequest = client.post(
|
|
240
242
|
`api/v1/roles/importRoleTemplates`,
|