@idsoftsource/initial-process 3.6.8 → 3.6.9

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.
@@ -2649,8 +2649,8 @@ class UserSkillSetService {
2649
2649
  // --------------------------------
2650
2650
  // Update User Skill Set
2651
2651
  // --------------------------------
2652
- updateUserSkillSet(model) {
2653
- return this.httpClient.put(`${this.baseUrl}/UpdateUserSkillSet`, model);
2652
+ updateUserSkillSet(models) {
2653
+ return this.httpClient.put(`${this.baseUrl}/UpdateUserSkillSet`, models);
2654
2654
  }
2655
2655
  // --------------------------------
2656
2656
  // Bulk Delete User Skill Set
@@ -2659,14 +2659,6 @@ class UserSkillSetService {
2659
2659
  return this.httpClient.post(`FrontEndUser/UserSkillSetBulkDelete`, ids);
2660
2660
  }
2661
2661
  // --------------------------------
2662
- // Delete User Skill Set
2663
- // --------------------------------
2664
- deleteUserSkillSet(ids) {
2665
- return this.httpClient.delete(`${this.baseUrl}/DeleteUserSkillSet`, {
2666
- body: ids,
2667
- });
2668
- }
2669
- // --------------------------------
2670
2662
  // Get User Skill Set (Gridify)
2671
2663
  // --------------------------------
2672
2664
  getUserSkillSet(query) {
@@ -2776,8 +2768,8 @@ class UserToolService {
2776
2768
  /* ==============================
2777
2769
  UPDATE USER TOOL
2778
2770
  ============================== */
2779
- updateUserTool(model) {
2780
- return this.httpClient.put(`${this.baseUrl}/UpdateNewUserTool`, model);
2771
+ updateUserTool(models) {
2772
+ return this.httpClient.put(`${this.baseUrl}/UpdateNewUserTool`, models);
2781
2773
  }
2782
2774
  /* ==============================
2783
2775
  BULK DELETE USER TOOL
@@ -2924,10 +2916,12 @@ class UserDocumentService {
2924
2916
  });
2925
2917
  }
2926
2918
  /* ==============================
2927
- BULK DELETE USER DOCUMENT
2919
+ DELETE USER DOCUMENT
2928
2920
  ============================== */
2929
- bulkDelete(ids) {
2930
- return this.httpClient.post(`FrontEndUser/UserDocumentBulkDelete`, ids);
2921
+ deleteUserDocument(ids) {
2922
+ return this.httpClient.delete(`${this.baseUrl}/DeleteNewUserDocument`, {
2923
+ body: ids,
2924
+ });
2931
2925
  }
2932
2926
  buildParams(query) {
2933
2927
  let params = new HttpParams();
@@ -5341,7 +5335,7 @@ class PreviewComponent {
5341
5335
  try {
5342
5336
  const serverId = this.skillServerIds[index];
5343
5337
  if (serverId) {
5344
- await firstValueFrom(this.userSkillSetService.deleteUserSkillSet([serverId]));
5338
+ await firstValueFrom(this.userSkillSetService.bulkDelete([serverId]));
5345
5339
  }
5346
5340
  }
5347
5341
  finally {
@@ -5947,9 +5941,12 @@ class PreviewComponent {
5947
5941
  return;
5948
5942
  this.deletingCertificationIndex.set(index);
5949
5943
  try {
5944
+ if (!this.certificationServerIds[index]) {
5945
+ await this.ensureCertificationServerId(index, current.certifications[index]);
5946
+ }
5950
5947
  const serverId = this.certificationServerIds[index];
5951
5948
  if (serverId) {
5952
- await firstValueFrom(this.userDocumentService.bulkDelete([serverId]));
5949
+ await firstValueFrom(this.userDocumentService.deleteUserDocument([serverId]));
5953
5950
  }
5954
5951
  }
5955
5952
  finally {
@@ -6118,9 +6115,12 @@ class PreviewComponent {
6118
6115
  return;
6119
6116
  this.deletingLicenseIndex.set(index);
6120
6117
  try {
6118
+ if (!this.licenseServerIds[index]) {
6119
+ await this.ensureLicenseServerId(index, current.licenses[index]);
6120
+ }
6121
6121
  const serverId = this.licenseServerIds[index];
6122
6122
  if (serverId) {
6123
- await firstValueFrom(this.userDocumentService.bulkDelete([serverId]));
6123
+ await firstValueFrom(this.userDocumentService.deleteUserDocument([serverId]));
6124
6124
  }
6125
6125
  }
6126
6126
  finally {
@@ -6576,7 +6576,7 @@ class PreviewComponent {
6576
6576
  payload.id = this.skillServerIds[index];
6577
6577
  try {
6578
6578
  const res = (isEdit && hasServerId)
6579
- ? await firstValueFrom(this.userSkillSetService.updateUserSkillSet(payload))
6579
+ ? await firstValueFrom(this.userSkillSetService.updateUserSkillSet([payload]))
6580
6580
  : await firstValueFrom(this.userSkillSetService.createUserSkillSet([payload]));
6581
6581
  const createdId = this.getCreatedId(res);
6582
6582
  this.markItemSaved(this.skillServerIds, this.skillLocallySaved, index, createdId);
@@ -6682,7 +6682,7 @@ class PreviewComponent {
6682
6682
  payload.id = this.toolServerIds[index];
6683
6683
  try {
6684
6684
  const res = (isEdit && hasServerId)
6685
- ? await firstValueFrom(this.userToolService.updateUserTool(payload))
6685
+ ? await firstValueFrom(this.userToolService.updateUserTool([payload]))
6686
6686
  : await firstValueFrom(this.userToolService.createUserTool([payload]));
6687
6687
  const createdId = this.getCreatedId(res);
6688
6688
  this.markItemSaved(this.toolServerIds, this.toolLocallySaved, index, createdId);
@@ -9316,7 +9316,7 @@ class CertificationComponent {
9316
9316
  if (!confirm('Delete this certification?'))
9317
9317
  return;
9318
9318
  this.deletingIndex.set(index);
9319
- this.userDocumentService.bulkDelete([exp.id]).subscribe({
9319
+ this.userDocumentService.deleteUserDocument([exp.id]).subscribe({
9320
9320
  next: () => {
9321
9321
  this.workStore.loadFromApi(this.userId);
9322
9322
  this.certificateForm.reset();
@@ -10297,7 +10297,7 @@ class SkillsComponent {
10297
10297
  if (!confirm('Delete this skill?'))
10298
10298
  return;
10299
10299
  this.deletingSkillKey.set(this.getSkillKey(skill));
10300
- this.userSkillSetService.deleteUserSkillSet([skill.id]).subscribe({
10300
+ this.userSkillSetService.bulkDelete([skill.id]).subscribe({
10301
10301
  next: () => {
10302
10302
  this.getuserSkillsData();
10303
10303
  this.deletingSkillKey.set(null);
@@ -10516,7 +10516,7 @@ class SkillsComponent {
10516
10516
  };
10517
10517
  delete payload.professionName;
10518
10518
  delete payload.forUser;
10519
- this.userSkillSetService.updateUserSkillSet(payload).subscribe((response) => {
10519
+ this.userSkillSetService.updateUserSkillSet([payload]).subscribe((response) => {
10520
10520
  this.showLoader = false;
10521
10521
  this.userSkillSubmitted = false;
10522
10522
  if (!response.failed) {
@@ -10835,7 +10835,7 @@ class LicensesComponent {
10835
10835
  if (!confirm('Delete this license?'))
10836
10836
  return;
10837
10837
  this.deletingIndex.set(index);
10838
- this.userDocumentService.bulkDelete([exp.id]).subscribe({
10838
+ this.userDocumentService.deleteUserDocument([exp.id]).subscribe({
10839
10839
  next: () => {
10840
10840
  this.workStore.loadFromApi(this.userId);
10841
10841
  this.certificateForm.reset();
@@ -11824,7 +11824,7 @@ class ToolsComponent {
11824
11824
  };
11825
11825
  delete updatedTool.professionName;
11826
11826
  delete updatedTool.forUser;
11827
- this.userToolService.updateUserTool(updatedTool).subscribe((response) => {
11827
+ this.userToolService.updateUserTool([updatedTool]).subscribe((response) => {
11828
11828
  this.showLoader = false;
11829
11829
  this.userToolSubmitted = false;
11830
11830
  if (!response.failed) {