arco-support-request 0.0.63 → 0.0.66

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.
@@ -3242,7 +3242,7 @@
3242
3242
  var url_ = environment.ServerUrl +
3243
3243
  'entitytype/ticket/wfAction?entitytyperecid=' +
3244
3244
  EntityTypeId;
3245
- return this.http.post(url_, obj, { responseType: 'blob' });
3245
+ return this.http.post(url_, obj);
3246
3246
  };
3247
3247
  EntityTypeSetupService.prototype.urlPostTaskWfAction = function (RecIds, stageId, action, comments, updateFileds, updateFieldsObject, EntityTypeId) {
3248
3248
  var updateFiledsString = JSON.stringify(updateFileds);
@@ -3258,7 +3258,7 @@
3258
3258
  var url_ = environment.ServerUrl +
3259
3259
  'entitytype/ticket/wfAction?entitytyperecid=' +
3260
3260
  EntityTypeId;
3261
- return this.http.post(url_, obj, { responseType: 'blob' });
3261
+ return this.http.post(url_, obj);
3262
3262
  };
3263
3263
  EntityTypeSetupService.prototype.getWfInsProcessStageComments = function (criteriastr, EntityTypeId, refRecId) {
3264
3264
  var wfStagelist = EntityTypeDynamic.Getwfinsprocessstagecomments(EntityTypeId, refRecId);
@@ -4191,8 +4191,8 @@
4191
4191
  params: CriteriaBuilder(criteriastr),
4192
4192
  });
4193
4193
  };
4194
- SupportRequestService.prototype.getIssueGroupRequesterMappingByRequesterType = function (RequesterType, IssueType) {
4195
- var url = SupportRequestAction.getIssueGroupRequesterMappingByRequesterType(RequesterType, IssueType);
4194
+ SupportRequestService.prototype.getIssueGroupRequesterMappingByRequesterType = function (RequesterType) {
4195
+ var url = SupportRequestAction.getIssueGroupRequesterMappingByRequesterType(RequesterType);
4196
4196
  return this.http.get(url);
4197
4197
  };
4198
4198
  SupportRequestService.prototype.getIssueGroupAndCategoryByRequesterType = function (RequesterType) {
@@ -4215,7 +4215,7 @@
4215
4215
  { type: i1$1.HttpClient },
4216
4216
  { type: GlobalService }
4217
4217
  ]; };
4218
- var ɵ0$1 = function () { return environment.ServerUrl + "entitytype/categorytype"; }, ɵ1$1 = function (CategoryId) { return environment.ServerUrl + "entitytype/subcategory?CategoryId=" + CategoryId; }, ɵ2$1 = function (IssueId, RequesterType) { return environment.ServerUrl + "issuecaserequestermapping/byissuerequester?IssueId=" + IssueId + "&RequesterType=" + RequesterType; }, ɵ3$1 = function (RequesterType) { return environment.ServerUrl + "issuegrouprequestermapping?RequesterType=" + RequesterType; }, ɵ4$1 = function (RequesterType, IssueType) { return environment.ServerUrl + "issuegrouprequestermappingbyrequestertype?RequesterType=" + RequesterType + "&IssueType=" + IssueType; }, ɵ5$1 = function (RequesterType) { return environment.ServerUrl + "issuegrouprequestermappingbyrequestertype?RequesterType=" + RequesterType; }, ɵ6$1 = function (RequesterType) { return environment.ServerUrl + "getcaseissueandissuegrouprequestermappingbyrequestertypeid?RequesterType=" + RequesterType; }, ɵ7$1 = function (IssueGroupId, RequesterType) { return environment.ServerUrl + "issuegrouprequestermapping?IssueGroupId=" + IssueGroupId + "&RequesterType=" + RequesterType; };
4218
+ var ɵ0$1 = function () { return environment.ServerUrl + "entitytype/categorytype"; }, ɵ1$1 = function (CategoryId) { return environment.ServerUrl + "entitytype/subcategory?CategoryId=" + CategoryId; }, ɵ2$1 = function (IssueId, RequesterType) { return environment.ServerUrl + "issuecaserequestermapping/byissuerequester?IssueId=" + IssueId + "&RequesterType=" + RequesterType; }, ɵ3$1 = function (RequesterType) { return environment.ServerUrl + "issuegrouprequestermapping?RequesterType=" + RequesterType; }, ɵ4$1 = function (RequesterType) { return environment.ServerUrl + "issuegrouprequestermappingbyrequestertype?RequesterType=" + RequesterType; }, ɵ5$1 = function (RequesterType) { return environment.ServerUrl + "issuegrouprequestermappingbyrequestertype?RequesterType=" + RequesterType; }, ɵ6$1 = function (RequesterType) { return environment.ServerUrl + "getcaseissueandissuegrouprequestermappingbyrequestertypeid?RequesterType=" + RequesterType; }, ɵ7$1 = function (IssueGroupId, RequesterType) { return environment.ServerUrl + "issuegrouprequestermapping?IssueGroupId=" + IssueGroupId + "&RequesterType=" + RequesterType; };
4219
4219
  var SupportRequestAction = {
4220
4220
  getAllEntityTypeCategory: ɵ0$1,
4221
4221
  getSubCategory: ɵ1$1,
@@ -5160,11 +5160,17 @@
5160
5160
  _this.getTaskDetails();
5161
5161
  console.log(res);
5162
5162
  }, function (error) {
5163
- var _a, _b;
5163
+ var _a, _b, _c;
5164
5164
  error.error;
5165
- if ((_a = error.error) === null || _a === void 0 ? void 0 : _a.msg) {
5165
+ if (((_a = error.error) === null || _a === void 0 ? void 0 : _a.status) == false) {
5166
5166
  var msg = JSON.parse((_b = error.error) === null || _b === void 0 ? void 0 : _b.msg);
5167
- Swal__default['default'].fire(_this.translatePipe.transform(msg.msg));
5167
+ if (msg && msg.msg) {
5168
+ msg = msg.msg;
5169
+ }
5170
+ else {
5171
+ msg = (_c = error.error) === null || _c === void 0 ? void 0 : _c.msg;
5172
+ }
5173
+ Swal__default['default'].fire(_this.translatePipe.transform(msg));
5168
5174
  }
5169
5175
  else {
5170
5176
  Swal__default['default'].fire(_this.translatePipe.transform(error.ExceptionMessage), _this.translatePipe.transform(error.message));
@@ -5257,11 +5263,11 @@
5257
5263
  });
5258
5264
  };
5259
5265
  SupportRequestDetailsComponent.prototype.setTimeline = function () {
5260
- var _c;
5266
+ var _d;
5261
5267
  this.TimelineList = [];
5262
5268
  if (Array.isArray(this.ActivityType)) {
5263
5269
  if (this.ActivityType.length > 0)
5264
- (_c = this.TimelineList).push.apply(_c, __spread(this.ActivityType));
5270
+ (_d = this.TimelineList).push.apply(_d, __spread(this.ActivityType));
5265
5271
  }
5266
5272
  // if (Array.isArray(this.TaskList)) {
5267
5273
  // if (this.TaskList.length > 0) this.TimelineList.push(...this.TaskList);
@@ -5957,6 +5963,7 @@
5957
5963
  this.entityTypeSetup = entityTypeSetup;
5958
5964
  this.globalService = globalService;
5959
5965
  this.document = document;
5966
+ this.issuType = "7";
5960
5967
  this.Language = 'Eng';
5961
5968
  // @Input() CreatedByUserType;
5962
5969
  this.Channel = '3';
@@ -6048,6 +6055,19 @@
6048
6055
  };
6049
6056
  RequestFlowComponent.prototype.ngOnInit = function () {
6050
6057
  var _this = this;
6058
+ console.log('1', this.issuType);
6059
+ if (this.PageType == "Complaint") {
6060
+ this.issuType = "2";
6061
+ }
6062
+ else if (this.PageType == "Request") {
6063
+ this.issuType = "7";
6064
+ }
6065
+ else if (this.PageType == "SelfService") {
6066
+ this.issuType = "11";
6067
+ }
6068
+ else
6069
+ this.issuType = "7";
6070
+ console.log('2', this.issuType);
6051
6071
  if (this.RequesterTypeId == "0000001") {
6052
6072
  this.RequesterTypeIdEn = "IndividualCustomer";
6053
6073
  }
@@ -6213,10 +6233,9 @@
6213
6233
  };
6214
6234
  RequestFlowComponent.prototype.getIssueGroupRequesterMappingByRequesterType = function () {
6215
6235
  var _this = this;
6216
- var _a;
6217
6236
  this.IssueGroupDDL = [];
6218
6237
  // let TicketGroupID = this.ActionForm.value['TicketGroupID'];
6219
- this.supportService.getIssueGroupRequesterMappingByRequesterType(this.RequesterTypeId, (_a = this.selectedType) === null || _a === void 0 ? void 0 : _a.IssueType).subscribe(function (res) {
6238
+ this.supportService.getIssueGroupRequesterMappingByRequesterType(this.RequesterTypeId).subscribe(function (res) {
6220
6239
  _this.IssueGroupDDL = res;
6221
6240
  _this.IssueGroupDDL = _this.IssueGroupDDL.map(function (x) {
6222
6241
  x.TicketGroupName = x.IssueGroupEn;
@@ -6358,6 +6377,13 @@
6358
6377
  var _this = this;
6359
6378
  // alert("get");
6360
6379
  this.storeCriteria = Criteria;
6380
+ var filtervals = {
6381
+ Field: 'IssueType',
6382
+ TableAlias: '',
6383
+ Operator: '',
6384
+ Value: this.issuType,
6385
+ };
6386
+ this.Searchcriteria.Where.push(filtervals);
6361
6387
  // let SupportRequestId = localStorage.getItem("RequesterTypeId");
6362
6388
  // this.entityTypeSetup.urlGetDynamicTicket(Criteria, this.EntityTypeId)
6363
6389
  this.entityTypeSetup.getsupportRequestData(Criteria, this.RequesterTypeId, this.RequesterId, this.Source, this.StatusListValue).subscribe(function (res) {
@@ -6440,6 +6466,9 @@
6440
6466
  this.IssueTypeDDL = [];
6441
6467
  this.supportService.getIssueGroupRequesterMappingByRequesterType(this.RequesterTypeId).subscribe(function (res) {
6442
6468
  _this.IssueTypeDDL = res;
6469
+ if (res) {
6470
+ _this.IssueTypeDDL = res.filter(function (x) { return x.IssueType == _this.issuType; });
6471
+ }
6443
6472
  // this.IssueTypeDDL = this.IssueTypeDDL.map((x) => {
6444
6473
  // x.IssueType = x.LookupValueId;
6445
6474
  // x.IssueTypeEn = x.Description;
@@ -9547,7 +9576,7 @@
9547
9576
  var _this = this;
9548
9577
  debugger;
9549
9578
  this.IssueAllList = [];
9550
- this.supportService.getIssueGroupRequesterMappingByRequesterType(this.RequesterTypeId, this.IssueType).subscribe(function (res) {
9579
+ this.supportService.getIssueGroupRequesterMappingByRequesterType(this.RequesterTypeId).subscribe(function (res) {
9551
9580
  _this.IssueAllList = res.filter(function (x) { return x.IssueType == _this.IssueType; });
9552
9581
  _this.IssueCaseList = [];
9553
9582
  _this.IssueAllList.forEach(function (x) {