@hmcts/ccd-case-ui-toolkit 4.18.19-Check-access-grant → 4.18.19-Fix-old-case-id

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/index.umd.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @hmcts/ccd-case-ui-toolkit - Case UI Toolkit
3
- * @version v4.18.19-Check-access-grant
3
+ * @version v4.18.19-Fix-old-case-id
4
4
  * @link undefined
5
5
  * @license MIT
6
6
  */
@@ -21755,7 +21755,7 @@ var CasesService = /** @class */ (function () {
21755
21755
  var payload = camUtils.getAMPayload(null, id, roleName, roleCategory, 'SPECIFIC', caseId, sar, null, null, true);
21756
21756
  payload.roleRequest = __assign({}, payload.roleRequest, { process: 'specific-access', replaceExisting: true, assignerId: payload.requestedRoles[0].actorId, reference: caseId + "/" + roleName + "/" + payload.requestedRoles[0].actorId });
21757
21757
  payload.requestedRoles[0] = __assign({}, payload.requestedRoles[0], { roleName: 'specific-access-requested', roleCategory: roleCategory, classification: 'PRIVATE', endTime: new Date(new Date().setDate(new Date().getDate() + 30)), beginTime: null, grantType: 'BASIC', readOnly: true });
21758
- payload.requestedRoles[0].attributes = __assign({}, payload.requestedRoles[0].attributes, { requestedRole: roleName });
21758
+ payload.requestedRoles[0].attributes = __assign({}, payload.requestedRoles[0].attributes, { requestedRole: roleName, specificAccessReason: sar.specificReason });
21759
21759
  payload.requestedRoles[0].notes[0] = __assign({}, payload.requestedRoles[0].notes[0], { userId: payload.requestedRoles[0].actorId });
21760
21760
  return this.http.post("/api/specific-access-request", payload);
21761
21761
  };
@@ -24748,7 +24748,7 @@ var CaseSpecificAccessSuccessComponent = /** @class */ (function () {
24748
24748
  this.route = route;
24749
24749
  }
24750
24750
  CaseSpecificAccessSuccessComponent.prototype.ngOnInit = function () {
24751
- this.caseId = this.route.snapshot.data.case.case_id;
24751
+ this.caseId = this.route.snapshot.params.cid;
24752
24752
  };
24753
24753
  CaseSpecificAccessSuccessComponent = __decorate([
24754
24754
  core_1.Component({