vcomply-workflow-engine 2.9.53 → 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 +118 -48
- package/bundles/vcomply-workflow-engine.umd.js.map +1 -1
- package/esm2015/lib/workflow-services/responsibility.service.js +119 -49
- package/fesm2015/vcomply-workflow-engine.js +118 -48
- package/fesm2015/vcomply-workflow-engine.js.map +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,11 +3348,16 @@
|
|
|
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
3362
|
ResponsibilityService.prototype.addBulkResponsibility = function (entrust_body) {
|
|
3316
3363
|
var headers = new i1.HttpHeaders().set('token', this.authService.getAuthorizationToken());
|
|
@@ -3323,7 +3370,9 @@
|
|
|
3323
3370
|
};
|
|
3324
3371
|
ResponsibilityService.prototype.getCategoryDetailsById = function (id) {
|
|
3325
3372
|
var headers = new i1.HttpHeaders().set('token', this.authService.getAuthorizationToken());
|
|
3326
|
-
return this.http
|
|
3373
|
+
return this.http
|
|
3374
|
+
.get(this.env.complianceGet + 'complianceCategory/CategoryTreeById&id=' + id, { headers: headers })
|
|
3375
|
+
.pipe(operators.retry(2));
|
|
3327
3376
|
};
|
|
3328
3377
|
ResponsibilityService.prototype.getFrameWorkCount = function (params) {
|
|
3329
3378
|
var httpOptions = {};
|
|
@@ -3331,7 +3380,9 @@
|
|
|
3331
3380
|
if (params) {
|
|
3332
3381
|
httpOptions.params = params;
|
|
3333
3382
|
}
|
|
3334
|
-
return this.http
|
|
3383
|
+
return this.http
|
|
3384
|
+
.get(this.env.programEndpoint + '/frameworkcount', httpOptions)
|
|
3385
|
+
.pipe(operators.retry(2));
|
|
3335
3386
|
};
|
|
3336
3387
|
ResponsibilityService.prototype.getFrameWorkList = function (params) {
|
|
3337
3388
|
var httpOptions = {};
|
|
@@ -3339,7 +3390,9 @@
|
|
|
3339
3390
|
if (params) {
|
|
3340
3391
|
httpOptions.params = params;
|
|
3341
3392
|
}
|
|
3342
|
-
return this.http
|
|
3393
|
+
return this.http
|
|
3394
|
+
.get(this.env.programEndpoint + '/framework', httpOptions)
|
|
3395
|
+
.pipe(operators.retry(2));
|
|
3343
3396
|
};
|
|
3344
3397
|
ResponsibilityService.prototype.getFrameworkSubCategories = function (id, params) {
|
|
3345
3398
|
var httpOptions = {};
|
|
@@ -3347,7 +3400,9 @@
|
|
|
3347
3400
|
if (params) {
|
|
3348
3401
|
httpOptions.params = params;
|
|
3349
3402
|
}
|
|
3350
|
-
return this.http
|
|
3403
|
+
return this.http
|
|
3404
|
+
.get(this.env.programEndpoint + '/framework/' + id, httpOptions)
|
|
3405
|
+
.pipe(operators.retry(2));
|
|
3351
3406
|
};
|
|
3352
3407
|
ResponsibilityService.prototype.getFrameworkControls = function (id, params) {
|
|
3353
3408
|
var httpOptions = {};
|
|
@@ -3355,23 +3410,38 @@
|
|
|
3355
3410
|
if (params) {
|
|
3356
3411
|
httpOptions.params = params;
|
|
3357
3412
|
}
|
|
3358
|
-
return this.http
|
|
3413
|
+
return this.http
|
|
3414
|
+
.get(this.env.programEndpoint + '/controls/' + id, httpOptions)
|
|
3415
|
+
.pipe(operators.retry(2));
|
|
3359
3416
|
};
|
|
3360
3417
|
ResponsibilityService.prototype.fileUpload = function (file) {
|
|
3361
3418
|
var headers = new i1.HttpHeaders().set('token', this.authService.getAuthorizationToken());
|
|
3362
|
-
return this.http
|
|
3419
|
+
return this.http
|
|
3420
|
+
.post(this.env.compliancePost + 'file/upload', file, { headers: headers })
|
|
3421
|
+
.pipe(operators.retry(2));
|
|
3363
3422
|
};
|
|
3364
3423
|
ResponsibilityService.prototype.getAssessmentCategory = function (payload, program_ids) {
|
|
3365
3424
|
var headers = new i1.HttpHeaders().set('token', this.authService.getAuthorizationToken());
|
|
3366
|
-
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));
|
|
3367
3430
|
};
|
|
3368
3431
|
ResponsibilityService.prototype.getAssessmentList = function (payload, id, program_ids) {
|
|
3369
3432
|
var headers = new i1.HttpHeaders().set('token', this.authService.getAuthorizationToken());
|
|
3370
|
-
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));
|
|
3371
3439
|
};
|
|
3372
3440
|
ResponsibilityService.prototype.getAssessmentDetailsByID = function (id) {
|
|
3373
3441
|
var headers = new i1.HttpHeaders().set('token', this.authService.getAuthorizationToken());
|
|
3374
|
-
return this.http
|
|
3442
|
+
return this.http
|
|
3443
|
+
.post(this.env.assessmentEnpoint + 'assessment/getAssessmentById&id=' + id, {}, { headers: headers })
|
|
3444
|
+
.pipe(operators.retry(2));
|
|
3375
3445
|
};
|
|
3376
3446
|
return ResponsibilityService;
|
|
3377
3447
|
}());
|