@idsoftsource/initial-process 3.6.2 → 3.6.3

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.
@@ -4676,7 +4676,7 @@ class PreviewComponent {
4676
4676
  const payload = this.mapTools(this.resumeData)[index];
4677
4677
  if (!payload)
4678
4678
  return;
4679
- const res = await firstValueFrom(this.userToolService.getUserTool(this.buildSectionQuery('toolName asc', true)));
4679
+ const res = await firstValueFrom(this.userToolService.getUserTool(this.buildSectionQuery('toolName asc', /* includeForUser */ false)));
4680
4680
  const saved = Array.isArray(res?.data) ? res.data : [];
4681
4681
  const targetName = this.normalizedText(payload.toolName);
4682
4682
  const targetYear = payload.year;
@@ -4760,7 +4760,7 @@ class PreviewComponent {
4760
4760
  targetUserId: this.effectiveTargetUserId,
4761
4761
  })),
4762
4762
  firstValueFrom(this.userSkillSetService.getUserSkillSet(this.buildSectionQuery('skillSetName asc', /* includeForUser */ false))),
4763
- firstValueFrom(this.userToolService.getUserTool(this.buildSectionQuery('toolName asc', true))),
4763
+ firstValueFrom(this.userToolService.getUserTool(this.buildSectionQuery('toolName asc', /* includeForUser */ false))),
4764
4764
  firstValueFrom(this.userProfessionService.getUserProfession(this.buildProfessionQuery('professionName asc'))),
4765
4765
  firstValueFrom(this.userDetailService.getByUserId(this.payloadUserId, request)).catch(() => null),
4766
4766
  ]);
@@ -7196,7 +7196,7 @@ class PreviewComponent {
7196
7196
  return (data?.tools ?? []).map((exp, index) => {
7197
7197
  const m = meta[index] ?? {};
7198
7198
  return {
7199
- forUser: this.resolvedForUser,
7199
+ // forUser: this.resolvedForUser,
7200
7200
  targetProviderId: this.effectiveTargetProviderId,
7201
7201
  providerName: this.effectiveProviderName,
7202
7202
  targetUserId: this.effectiveTargetUserId,
@@ -7204,7 +7204,7 @@ class PreviewComponent {
7204
7204
  toolId: null,
7205
7205
  toolName: exp,
7206
7206
  userProfessionId: m.professionId ?? null,
7207
- professionName: m.professionName ?? '',
7207
+ // professionName: m.professionName ?? '',
7208
7208
  starRating: m.starRating ?? 0,
7209
7209
  year: m.year ?? 0,
7210
7210
  make: null,
@@ -11281,7 +11281,7 @@ class ToolsComponent {
11281
11281
  }
11282
11282
  createGroup(toolId, toolName) {
11283
11283
  return this.formBuilder.group({
11284
- forUser: [this.resolvedForUser],
11284
+ // forUser: [this.resolvedForUser],
11285
11285
  targetProviderId: [this.providerId],
11286
11286
  providerName: [this.providerName],
11287
11287
  userName: [this.user.fullName],
@@ -11304,7 +11304,7 @@ class ToolsComponent {
11304
11304
  }
11305
11305
  AddGroup(toolId, toolName) {
11306
11306
  return this.formBuilder.group({
11307
- forUser: [this.resolvedForUser],
11307
+ // forUser: [this.resolvedForUser],
11308
11308
  targetProviderId: [this.providerId],
11309
11309
  providerName: [this.providerName],
11310
11310
  userName: [this.user.fullName],
@@ -11797,7 +11797,7 @@ class ToolsComponent {
11797
11797
  return;
11798
11798
  }
11799
11799
  this.userToolModels = (this.tab?.value || []).map((v) => {
11800
- const { professionId, ...rest } = v;
11800
+ const { professionId, professionName: _professionName, ...rest } = v;
11801
11801
  return {
11802
11802
  ...rest,
11803
11803
  starRating: v.starRating ?? 0,
@@ -11832,6 +11832,8 @@ class ToolsComponent {
11832
11832
  ...formValue,
11833
11833
  isOpen: false
11834
11834
  };
11835
+ delete updatedTool.professionName;
11836
+ delete updatedTool.forUser;
11835
11837
  this.userToolService.updateUserTool(updatedTool).subscribe((response) => {
11836
11838
  this.showLoader = false;
11837
11839
  this.userToolSubmitted = false;