vcomply-workflow-engine 2.9.54 → 2.9.55
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/bundles/vcomply-workflow-engine.umd.js +122 -53
- package/bundles/vcomply-workflow-engine.umd.js.map +1 -1
- package/esm2015/lib/add-multiple-responsibility/add-multiple-responsibility.component.js +2 -2
- package/esm2015/lib/add-multiple-responsibility-with-tab/add-multiple-responsibility-with-tab.component.js +2 -2
- package/esm2015/lib/workflow-services/responsibility.service.js +121 -51
- package/fesm2015/vcomply-workflow-engine.js +122 -52
- package/fesm2015/vcomply-workflow-engine.js.map +1 -1
- package/lib/workflow-services/responsibility.service.d.ts +1 -1
- package/package.json +1 -1
- package/vcomply-workflow-engine.metadata.json +1 -1
|
@@ -3212,53 +3212,76 @@
|
|
|
3212
3212
|
ResponsibilityService.prototype.getResponsibilityCenterList = function (params) {
|
|
3213
3213
|
var _a;
|
|
3214
3214
|
var headers = new i1.HttpHeaders().set('token', this.authService.getAuthorizationToken());
|
|
3215
|
-
return this.http
|
|
3216
|
-
|
|
3217
|
-
|
|
3215
|
+
return this.http
|
|
3216
|
+
.get(((_a = this.env) === null || _a === void 0 ? void 0 : _a.complianceGet) + 'responsibilityCenterTree', {
|
|
3217
|
+
params: params,
|
|
3218
|
+
headers: headers,
|
|
3219
|
+
})
|
|
3220
|
+
.pipe(operators.retry(2));
|
|
3218
3221
|
};
|
|
3219
3222
|
ResponsibilityService.prototype.getOrganizationGroups = function (params) {
|
|
3220
3223
|
var headers = new i1.HttpHeaders().set('token', this.authService.getAuthorizationToken());
|
|
3221
|
-
return this.http
|
|
3222
|
-
|
|
3223
|
-
|
|
3224
|
+
return this.http
|
|
3225
|
+
.get(this.env.organizationGet + 'groupsList&status=1&type=compliance', {
|
|
3226
|
+
params: params,
|
|
3227
|
+
headers: headers,
|
|
3228
|
+
})
|
|
3229
|
+
.pipe(operators.retry(2));
|
|
3224
3230
|
};
|
|
3225
3231
|
ResponsibilityService.prototype.getOrganizationPolicyGroups = function (params) {
|
|
3226
3232
|
var headers = new i1.HttpHeaders().set('token', this.authService.getAuthorizationToken());
|
|
3227
|
-
return this.http
|
|
3228
|
-
|
|
3229
|
-
|
|
3233
|
+
return this.http
|
|
3234
|
+
.get(this.env.organizationGet +
|
|
3235
|
+
'groupsList&permType=managePolicies&fetch_all=true', {
|
|
3236
|
+
params: params,
|
|
3237
|
+
headers: headers,
|
|
3238
|
+
})
|
|
3239
|
+
.pipe(operators.retry(2));
|
|
3230
3240
|
};
|
|
3231
3241
|
ResponsibilityService.prototype.getOrganizationOverseersGroups = function (params) {
|
|
3232
3242
|
var headers = new i1.HttpHeaders().set('token', this.authService.getAuthorizationToken());
|
|
3233
|
-
return this.http
|
|
3234
|
-
|
|
3235
|
-
|
|
3243
|
+
return this.http
|
|
3244
|
+
.get(this.env.organizationGet + 'groupsList&fetch_all=true', {
|
|
3245
|
+
params: params,
|
|
3246
|
+
headers: headers,
|
|
3247
|
+
})
|
|
3248
|
+
.pipe(operators.retry(2));
|
|
3236
3249
|
};
|
|
3237
3250
|
ResponsibilityService.prototype.getOrganizationUsers = function () {
|
|
3238
3251
|
var headers = new i1.HttpHeaders().set('token', this.authService.getAuthorizationToken());
|
|
3239
|
-
return this.http
|
|
3252
|
+
return this.http
|
|
3253
|
+
.get(this.env.organizationGet + 'organizationUsers', {
|
|
3240
3254
|
headers: headers,
|
|
3241
|
-
})
|
|
3255
|
+
})
|
|
3256
|
+
.pipe(operators.retry(2));
|
|
3242
3257
|
};
|
|
3243
3258
|
ResponsibilityService.prototype.getOrganizationPeople = function (params) {
|
|
3244
3259
|
var headers = new i1.HttpHeaders().set('token', this.authService.getAuthorizationToken());
|
|
3245
|
-
return this.http
|
|
3246
|
-
|
|
3247
|
-
|
|
3260
|
+
return this.http
|
|
3261
|
+
.get(this.env.organizationGet + 'people', {
|
|
3262
|
+
params: params,
|
|
3263
|
+
headers: headers,
|
|
3264
|
+
})
|
|
3265
|
+
.pipe(operators.retry(2));
|
|
3248
3266
|
};
|
|
3249
3267
|
ResponsibilityService.prototype.getAssignorsList = function (params) {
|
|
3250
3268
|
var _a;
|
|
3251
3269
|
var headers = new i1.HttpHeaders().set('token', this.authService.getAuthorizationToken());
|
|
3252
|
-
return this.http
|
|
3253
|
-
|
|
3254
|
-
|
|
3270
|
+
return this.http
|
|
3271
|
+
.get(((_a = this.env) === null || _a === void 0 ? void 0 : _a.organizationGet) + 'organizationUsers&isOnBehalf=1', {
|
|
3272
|
+
params: params,
|
|
3273
|
+
headers: headers,
|
|
3274
|
+
})
|
|
3275
|
+
.pipe(operators.retry(2));
|
|
3255
3276
|
};
|
|
3256
3277
|
ResponsibilityService.prototype.getCategoriesList = function () {
|
|
3257
3278
|
var _a;
|
|
3258
3279
|
var headers = new i1.HttpHeaders().set('token', this.authService.getAuthorizationToken());
|
|
3259
|
-
return this.http
|
|
3280
|
+
return this.http
|
|
3281
|
+
.get(((_a = this.env) === null || _a === void 0 ? void 0 : _a.complianceGet) + 'complianceCategory/CategoryListTree', {
|
|
3260
3282
|
headers: headers,
|
|
3261
|
-
})
|
|
3283
|
+
})
|
|
3284
|
+
.pipe(operators.retry(2));
|
|
3262
3285
|
};
|
|
3263
3286
|
ResponsibilityService.prototype.getProgramsList = function (params, ids) {
|
|
3264
3287
|
var _a;
|
|
@@ -3266,39 +3289,58 @@
|
|
|
3266
3289
|
var programId = { programId: ids };
|
|
3267
3290
|
if (ids === null || ids === void 0 ? void 0 : ids.length) {
|
|
3268
3291
|
headers = headers.append('payload-object', JSON.stringify(programId));
|
|
3269
|
-
return this.http
|
|
3292
|
+
return this.http
|
|
3293
|
+
.post(((_a = this.env) === null || _a === void 0 ? void 0 : _a.compliancePost) + 'complianceCategory/programList', programId, { params: params, headers: headers })
|
|
3294
|
+
.pipe(operators.retry(2));
|
|
3270
3295
|
}
|
|
3271
|
-
return this.http
|
|
3272
|
-
|
|
3273
|
-
|
|
3296
|
+
return this.http
|
|
3297
|
+
.get(this.env.complianceGet + 'complianceCategory/programList', {
|
|
3298
|
+
params: params,
|
|
3299
|
+
headers: headers,
|
|
3300
|
+
})
|
|
3301
|
+
.pipe(operators.retry(2));
|
|
3274
3302
|
};
|
|
3275
3303
|
ResponsibilityService.prototype.getProgramsListCount = function (params, ids) {
|
|
3276
3304
|
var headers = new i1.HttpHeaders().set('token', this.authService.getAuthorizationToken());
|
|
3277
|
-
return this.http
|
|
3278
|
-
|
|
3279
|
-
|
|
3305
|
+
return this.http
|
|
3306
|
+
.get(this.env.complianceGet + 'complianceCategory/programListCount', {
|
|
3307
|
+
params: params,
|
|
3308
|
+
headers: headers,
|
|
3309
|
+
})
|
|
3310
|
+
.pipe(operators.retry(2));
|
|
3280
3311
|
};
|
|
3281
3312
|
ResponsibilityService.prototype.getCategoriesUnderProgram = function (params) {
|
|
3282
3313
|
var headers = new i1.HttpHeaders().set('token', this.authService.getAuthorizationToken());
|
|
3283
|
-
return this.http
|
|
3284
|
-
|
|
3285
|
-
|
|
3314
|
+
return this.http
|
|
3315
|
+
.get(this.env.complianceGet + 'complianceCategory/CategoryListTree', {
|
|
3316
|
+
params: params,
|
|
3317
|
+
headers: headers,
|
|
3318
|
+
})
|
|
3319
|
+
.pipe(operators.retry(2));
|
|
3286
3320
|
};
|
|
3287
3321
|
ResponsibilityService.prototype.getAssurance = function () {
|
|
3288
3322
|
var headers = new i1.HttpHeaders().set('token', this.authService.getAuthorizationToken());
|
|
3289
|
-
return this.http
|
|
3323
|
+
return this.http
|
|
3324
|
+
.get(this.env.assuranceGet + 'category/list&id=1', {
|
|
3290
3325
|
headers: headers,
|
|
3291
|
-
})
|
|
3326
|
+
})
|
|
3327
|
+
.pipe(operators.retry(2));
|
|
3292
3328
|
};
|
|
3293
3329
|
ResponsibilityService.prototype.getAssuranceForRequiresAudit = function () {
|
|
3294
3330
|
var headers = new i1.HttpHeaders().set('token', this.authService.getAuthorizationToken());
|
|
3295
|
-
return this.http
|
|
3331
|
+
return this.http
|
|
3332
|
+
.get(this.env.assuranceApi + 'Audit/Category/List/?mode=entrust_module', {
|
|
3296
3333
|
headers: headers,
|
|
3297
|
-
})
|
|
3334
|
+
})
|
|
3335
|
+
.pipe(operators.retry(2));
|
|
3298
3336
|
};
|
|
3299
3337
|
ResponsibilityService.prototype.getRCDetailsOfFramework = function (rc_id, category_id) {
|
|
3300
3338
|
var headers = new i1.HttpHeaders().set('token', this.authService.getAuthorizationToken());
|
|
3301
|
-
return this.http.get(this.env.complianceGet +
|
|
3339
|
+
return this.http.get(this.env.complianceGet +
|
|
3340
|
+
'complianceCategory/CategoryRCTreeById&id=' +
|
|
3341
|
+
category_id +
|
|
3342
|
+
'&rc_id=' +
|
|
3343
|
+
rc_id, { headers: headers });
|
|
3302
3344
|
};
|
|
3303
3345
|
ResponsibilityService.prototype.submitEntrust = function (entrust_body) {
|
|
3304
3346
|
var headers = new i1.HttpHeaders().set('token', this.authService.getAuthorizationToken());
|
|
@@ -3306,16 +3348,20 @@
|
|
|
3306
3348
|
};
|
|
3307
3349
|
ResponsibilityService.prototype.updateEntrust = function (entrust_body, object_id, isDelegate) {
|
|
3308
3350
|
var headers = new i1.HttpHeaders().set('token', this.authService.getAuthorizationToken());
|
|
3309
|
-
return this.http.post(this.env.compliancePost +
|
|
3351
|
+
return this.http.post(this.env.compliancePost +
|
|
3352
|
+
'createReport&reportId=' +
|
|
3353
|
+
object_id +
|
|
3354
|
+
'&isDelegate=0', entrust_body, { headers: headers });
|
|
3310
3355
|
};
|
|
3311
3356
|
ResponsibilityService.prototype.editResponsibility = function (objectId) {
|
|
3312
3357
|
var headers = new i1.HttpHeaders().set('token', this.authService.getAuthorizationToken());
|
|
3313
|
-
return this.http
|
|
3358
|
+
return this.http
|
|
3359
|
+
.get(this.env.complianceGet + 'complianceReport/reportById&id=' + objectId, { headers: headers })
|
|
3360
|
+
.pipe(operators.retry(2));
|
|
3314
3361
|
};
|
|
3315
|
-
ResponsibilityService.prototype.addBulkResponsibility = function (entrust_body
|
|
3316
|
-
if (query === void 0) { query = "default"; }
|
|
3362
|
+
ResponsibilityService.prototype.addBulkResponsibility = function (entrust_body) {
|
|
3317
3363
|
var headers = new i1.HttpHeaders().set('token', this.authService.getAuthorizationToken());
|
|
3318
|
-
return this.http.post(this.env.compliancePost + 'import/create
|
|
3364
|
+
return this.http.post(this.env.compliancePost + 'import/create', entrust_body, { headers: headers });
|
|
3319
3365
|
};
|
|
3320
3366
|
ResponsibilityService.prototype.uploadToNode = function (payload, des) {
|
|
3321
3367
|
// const headers = new HttpHeaders().set('token', this.authService.getAuthorizationToken());
|
|
@@ -3324,7 +3370,9 @@
|
|
|
3324
3370
|
};
|
|
3325
3371
|
ResponsibilityService.prototype.getCategoryDetailsById = function (id) {
|
|
3326
3372
|
var headers = new i1.HttpHeaders().set('token', this.authService.getAuthorizationToken());
|
|
3327
|
-
return this.http
|
|
3373
|
+
return this.http
|
|
3374
|
+
.get(this.env.complianceGet + 'complianceCategory/CategoryTreeById&id=' + id, { headers: headers })
|
|
3375
|
+
.pipe(operators.retry(2));
|
|
3328
3376
|
};
|
|
3329
3377
|
ResponsibilityService.prototype.getFrameWorkCount = function (params) {
|
|
3330
3378
|
var httpOptions = {};
|
|
@@ -3332,7 +3380,9 @@
|
|
|
3332
3380
|
if (params) {
|
|
3333
3381
|
httpOptions.params = params;
|
|
3334
3382
|
}
|
|
3335
|
-
return this.http
|
|
3383
|
+
return this.http
|
|
3384
|
+
.get(this.env.programEndpoint + '/frameworkcount', httpOptions)
|
|
3385
|
+
.pipe(operators.retry(2));
|
|
3336
3386
|
};
|
|
3337
3387
|
ResponsibilityService.prototype.getFrameWorkList = function (params) {
|
|
3338
3388
|
var httpOptions = {};
|
|
@@ -3340,7 +3390,9 @@
|
|
|
3340
3390
|
if (params) {
|
|
3341
3391
|
httpOptions.params = params;
|
|
3342
3392
|
}
|
|
3343
|
-
return this.http
|
|
3393
|
+
return this.http
|
|
3394
|
+
.get(this.env.programEndpoint + '/framework', httpOptions)
|
|
3395
|
+
.pipe(operators.retry(2));
|
|
3344
3396
|
};
|
|
3345
3397
|
ResponsibilityService.prototype.getFrameworkSubCategories = function (id, params) {
|
|
3346
3398
|
var httpOptions = {};
|
|
@@ -3348,7 +3400,9 @@
|
|
|
3348
3400
|
if (params) {
|
|
3349
3401
|
httpOptions.params = params;
|
|
3350
3402
|
}
|
|
3351
|
-
return this.http
|
|
3403
|
+
return this.http
|
|
3404
|
+
.get(this.env.programEndpoint + '/framework/' + id, httpOptions)
|
|
3405
|
+
.pipe(operators.retry(2));
|
|
3352
3406
|
};
|
|
3353
3407
|
ResponsibilityService.prototype.getFrameworkControls = function (id, params) {
|
|
3354
3408
|
var httpOptions = {};
|
|
@@ -3356,23 +3410,38 @@
|
|
|
3356
3410
|
if (params) {
|
|
3357
3411
|
httpOptions.params = params;
|
|
3358
3412
|
}
|
|
3359
|
-
return this.http
|
|
3413
|
+
return this.http
|
|
3414
|
+
.get(this.env.programEndpoint + '/controls/' + id, httpOptions)
|
|
3415
|
+
.pipe(operators.retry(2));
|
|
3360
3416
|
};
|
|
3361
3417
|
ResponsibilityService.prototype.fileUpload = function (file) {
|
|
3362
3418
|
var headers = new i1.HttpHeaders().set('token', this.authService.getAuthorizationToken());
|
|
3363
|
-
return this.http
|
|
3419
|
+
return this.http
|
|
3420
|
+
.post(this.env.compliancePost + 'file/upload', file, { headers: headers })
|
|
3421
|
+
.pipe(operators.retry(2));
|
|
3364
3422
|
};
|
|
3365
3423
|
ResponsibilityService.prototype.getAssessmentCategory = function (payload, program_ids) {
|
|
3366
3424
|
var headers = new i1.HttpHeaders().set('token', this.authService.getAuthorizationToken());
|
|
3367
|
-
return this.http
|
|
3425
|
+
return this.http
|
|
3426
|
+
.post(this.env.assessmentEnpoint +
|
|
3427
|
+
'category/list&isCreateResponsibility=true' +
|
|
3428
|
+
(program_ids ? '&program_ids=' + program_ids : ''), payload, { headers: headers })
|
|
3429
|
+
.pipe(operators.retry(2));
|
|
3368
3430
|
};
|
|
3369
3431
|
ResponsibilityService.prototype.getAssessmentList = function (payload, id, program_ids) {
|
|
3370
3432
|
var headers = new i1.HttpHeaders().set('token', this.authService.getAuthorizationToken());
|
|
3371
|
-
return this.http
|
|
3433
|
+
return this.http
|
|
3434
|
+
.post(this.env.assessmentEnpoint +
|
|
3435
|
+
'assessment/selectAssessment&isCreateResponsibility=true&catid=' +
|
|
3436
|
+
id +
|
|
3437
|
+
(program_ids ? '&program_ids=' + program_ids : ''), payload, { headers: headers })
|
|
3438
|
+
.pipe(operators.retry(2));
|
|
3372
3439
|
};
|
|
3373
3440
|
ResponsibilityService.prototype.getAssessmentDetailsByID = function (id) {
|
|
3374
3441
|
var headers = new i1.HttpHeaders().set('token', this.authService.getAuthorizationToken());
|
|
3375
|
-
return this.http
|
|
3442
|
+
return this.http
|
|
3443
|
+
.post(this.env.assessmentEnpoint + 'assessment/getAssessmentById&id=' + id, {}, { headers: headers })
|
|
3444
|
+
.pipe(operators.retry(2));
|
|
3376
3445
|
};
|
|
3377
3446
|
return ResponsibilityService;
|
|
3378
3447
|
}());
|
|
@@ -14127,7 +14196,7 @@
|
|
|
14127
14196
|
payload.push(obj);
|
|
14128
14197
|
}
|
|
14129
14198
|
});
|
|
14130
|
-
this.responsibilityService.addBulkResponsibility(payload
|
|
14199
|
+
this.responsibilityService.addBulkResponsibility(payload).subscribe(function (res) {
|
|
14131
14200
|
_this.loader = false;
|
|
14132
14201
|
_this.showExcel = false;
|
|
14133
14202
|
_this.showSmiley = true;
|
|
@@ -33806,7 +33875,7 @@
|
|
|
33806
33875
|
}
|
|
33807
33876
|
});
|
|
33808
33877
|
// console.log("payloadpayload",payload, "responsibilityBulkUpload ==>", responsibilityBulkUpload )
|
|
33809
|
-
this.responsibilityService.addBulkResponsibility(payload
|
|
33878
|
+
this.responsibilityService.addBulkResponsibility(payload).subscribe(function (res) {
|
|
33810
33879
|
_this.loader = false;
|
|
33811
33880
|
_this.showExcel = false;
|
|
33812
33881
|
_this.showSmiley = true;
|