@idsoftsource/initial-process 3.6.1 → 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',
|
|
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',
|
|
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,
|
|
@@ -7462,10 +7462,13 @@ class PreviewComponent {
|
|
|
7462
7462
|
}));
|
|
7463
7463
|
const mapping = res?.data?.[0];
|
|
7464
7464
|
const providerId = mapping?.providerId ?? null;
|
|
7465
|
+
const providerUserMappingId = mapping?.id ?? null;
|
|
7465
7466
|
if (providerId) {
|
|
7466
7467
|
sessionStorage.setItem('providerId', providerId);
|
|
7468
|
+
if (providerUserMappingId)
|
|
7469
|
+
sessionStorage.setItem('providerUserMappingId', providerUserMappingId);
|
|
7467
7470
|
sessionStorage.setItem('ip_provider_owner', this.payloadUserId);
|
|
7468
|
-
this.cacheProviderIdLocally(providerId);
|
|
7471
|
+
this.cacheProviderIdLocally(providerId, providerUserMappingId);
|
|
7469
7472
|
return true;
|
|
7470
7473
|
}
|
|
7471
7474
|
}
|
|
@@ -11278,7 +11281,7 @@ class ToolsComponent {
|
|
|
11278
11281
|
}
|
|
11279
11282
|
createGroup(toolId, toolName) {
|
|
11280
11283
|
return this.formBuilder.group({
|
|
11281
|
-
forUser: [this.resolvedForUser],
|
|
11284
|
+
// forUser: [this.resolvedForUser],
|
|
11282
11285
|
targetProviderId: [this.providerId],
|
|
11283
11286
|
providerName: [this.providerName],
|
|
11284
11287
|
userName: [this.user.fullName],
|
|
@@ -11301,7 +11304,7 @@ class ToolsComponent {
|
|
|
11301
11304
|
}
|
|
11302
11305
|
AddGroup(toolId, toolName) {
|
|
11303
11306
|
return this.formBuilder.group({
|
|
11304
|
-
forUser: [this.resolvedForUser],
|
|
11307
|
+
// forUser: [this.resolvedForUser],
|
|
11305
11308
|
targetProviderId: [this.providerId],
|
|
11306
11309
|
providerName: [this.providerName],
|
|
11307
11310
|
userName: [this.user.fullName],
|
|
@@ -11406,7 +11409,7 @@ class ToolsComponent {
|
|
|
11406
11409
|
var query = {
|
|
11407
11410
|
page: 1,
|
|
11408
11411
|
pageSize: 10,
|
|
11409
|
-
filter: `forUser=${this.resolvedForUser}`,
|
|
11412
|
+
// filter: `forUser=${this.resolvedForUser}`,
|
|
11410
11413
|
orderBy: 'toolName asc'
|
|
11411
11414
|
};
|
|
11412
11415
|
this.userToolService.getUserTool(query)
|
|
@@ -11794,13 +11797,13 @@ class ToolsComponent {
|
|
|
11794
11797
|
return;
|
|
11795
11798
|
}
|
|
11796
11799
|
this.userToolModels = (this.tab?.value || []).map((v) => {
|
|
11797
|
-
const { professionId, ...rest } = v;
|
|
11800
|
+
const { professionId, professionName: _professionName, ...rest } = v;
|
|
11798
11801
|
return {
|
|
11799
11802
|
...rest,
|
|
11800
11803
|
starRating: v.starRating ?? 0,
|
|
11801
11804
|
year: v.year ?? 0,
|
|
11802
11805
|
userProfessionId: professionId ?? null,
|
|
11803
|
-
professionName: v.professionName ?? '',
|
|
11806
|
+
// professionName: v.professionName ?? '',
|
|
11804
11807
|
};
|
|
11805
11808
|
});
|
|
11806
11809
|
if (this.model?.id) {
|
|
@@ -11815,7 +11818,7 @@ class ToolsComponent {
|
|
|
11815
11818
|
element.targetUserId = this.roleContextService?.tempUserContext()?.userId ?? this.userId ?? '';
|
|
11816
11819
|
element.emailId = this.emailId ?? '';
|
|
11817
11820
|
element.userName = this.user.fullName;
|
|
11818
|
-
element.forUser = this.resolvedForUser;
|
|
11821
|
+
// element.forUser = this.resolvedForUser;
|
|
11819
11822
|
});
|
|
11820
11823
|
if (this.isEditMode && this.model) {
|
|
11821
11824
|
const formValue = this.userToolModels[0];
|
|
@@ -11829,6 +11832,8 @@ class ToolsComponent {
|
|
|
11829
11832
|
...formValue,
|
|
11830
11833
|
isOpen: false
|
|
11831
11834
|
};
|
|
11835
|
+
delete updatedTool.professionName;
|
|
11836
|
+
delete updatedTool.forUser;
|
|
11832
11837
|
this.userToolService.updateUserTool(updatedTool).subscribe((response) => {
|
|
11833
11838
|
this.showLoader = false;
|
|
11834
11839
|
this.userToolSubmitted = false;
|
|
@@ -12398,7 +12403,24 @@ class RoleSelectComponent {
|
|
|
12398
12403
|
this.provider = this.bindProviderDetails();
|
|
12399
12404
|
const existingProviderId = sessionStorage.getItem('providerId');
|
|
12400
12405
|
if (existingProviderId) {
|
|
12401
|
-
|
|
12406
|
+
let providerUserMappingId = sessionStorage.getItem('providerUserMappingId');
|
|
12407
|
+
if (!providerUserMappingId) {
|
|
12408
|
+
try {
|
|
12409
|
+
const mappingRes = await firstValueFrom(this.providerdetail.getProviderUserMapping({
|
|
12410
|
+
TargetUserId: this.userId,
|
|
12411
|
+
Page: 1,
|
|
12412
|
+
PageSize: 1,
|
|
12413
|
+
}));
|
|
12414
|
+
const mapping = mappingRes?.data?.[0];
|
|
12415
|
+
if (mapping?.id) {
|
|
12416
|
+
providerUserMappingId = mapping.id;
|
|
12417
|
+
sessionStorage.setItem('providerUserMappingId', providerUserMappingId);
|
|
12418
|
+
}
|
|
12419
|
+
}
|
|
12420
|
+
catch (err) {
|
|
12421
|
+
console.error('Unable to look up existing provider mapping from server', err);
|
|
12422
|
+
}
|
|
12423
|
+
}
|
|
12402
12424
|
const updatePayload = { ...this.provider, providerId: existingProviderId, providerUserMappingId: providerUserMappingId };
|
|
12403
12425
|
const data = await firstValueFrom(this.providerService.updateInitialSetUpProvider(updatePayload));
|
|
12404
12426
|
if (data?.failed) {
|