@idsoftsource/initial-process 4.0.3 → 4.0.5
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.
|
@@ -2941,15 +2941,18 @@ class UserDocumentService {
|
|
|
2941
2941
|
return params;
|
|
2942
2942
|
}
|
|
2943
2943
|
getDocumentTypes(maintype, providerId, searchText = '', professionId = null) {
|
|
2944
|
-
let
|
|
2944
|
+
let params = new HttpParams()
|
|
2945
|
+
.set('MainType', maintype)
|
|
2946
|
+
.set('IsActive', true);
|
|
2947
|
+
if (providerId) {
|
|
2948
|
+
params = params.set('TargetProviderId', providerId);
|
|
2949
|
+
}
|
|
2945
2950
|
if (searchText.trim()) {
|
|
2946
|
-
|
|
2951
|
+
params = params.set('Type', searchText.trim());
|
|
2947
2952
|
}
|
|
2948
2953
|
if (professionId) {
|
|
2949
|
-
|
|
2954
|
+
params = params.append('ProfessionIds', professionId);
|
|
2950
2955
|
}
|
|
2951
|
-
const params = new HttpParams().set('filter', filter);
|
|
2952
|
-
params.set('tagetProviderId', '00000000-0000-0000-0000-000000000000');
|
|
2953
2956
|
return this.httpClient.get(`${this.baseUrlUpdated}/GetDocumentType`, { params });
|
|
2954
2957
|
}
|
|
2955
2958
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: UserDocumentService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
@@ -3425,7 +3428,7 @@ class PreviewComponent {
|
|
|
3425
3428
|
profileVisibility: false,
|
|
3426
3429
|
status: this.customProfessionYear ? RequestedStatus.InReview : RequestedStatus.SaveasDraft,
|
|
3427
3430
|
professionGroup: this.customProfessionGroup,
|
|
3428
|
-
|
|
3431
|
+
residentialCommercial: this.customProfessionType,
|
|
3429
3432
|
};
|
|
3430
3433
|
const res = await firstValueFrom(this.userProfessionService.createUserProfession([payload]));
|
|
3431
3434
|
if (res?.failed) {
|
|
@@ -3756,7 +3759,7 @@ class PreviewComponent {
|
|
|
3756
3759
|
professionId: profType.isManual ? null : id,
|
|
3757
3760
|
professionName: profType.professionName,
|
|
3758
3761
|
professionGroup: profType.professionGroup ?? '',
|
|
3759
|
-
|
|
3762
|
+
residentialCommercial: profType.professionAssignmentType ?? '',
|
|
3760
3763
|
notes: sel.notes ?? '',
|
|
3761
3764
|
year: sel.year ?? 0,
|
|
3762
3765
|
starRating: sel.starRating ?? 0,
|
|
@@ -3779,7 +3782,7 @@ class PreviewComponent {
|
|
|
3779
3782
|
profileVisibility: sel.profileVisibility ?? false,
|
|
3780
3783
|
status: sel.year ? RequestedStatus.InReview : RequestedStatus.SaveasDraft,
|
|
3781
3784
|
professionGroup: profType.professionGroup ?? '',
|
|
3782
|
-
|
|
3785
|
+
residentialCommercial: profType.professionAssignmentType ?? '',
|
|
3783
3786
|
};
|
|
3784
3787
|
if (!profType.isManual) {
|
|
3785
3788
|
payload.professionId = id;
|
|
@@ -7378,7 +7381,7 @@ class PreviewComponent {
|
|
|
7378
7381
|
professionId: m.professionId ?? null,
|
|
7379
7382
|
professionName: exp,
|
|
7380
7383
|
professionGroup: m.professionGroup ?? '',
|
|
7381
|
-
|
|
7384
|
+
residentialCommercial: m.professionAssignmentType ?? '',
|
|
7382
7385
|
notes: m.notes ?? "",
|
|
7383
7386
|
year: m.year ?? 0,
|
|
7384
7387
|
starRating: m.starRating ?? 0,
|
|
@@ -9277,7 +9280,7 @@ class CertificationComponent {
|
|
|
9277
9280
|
profileVisibility: false,
|
|
9278
9281
|
status: this.customProfessionYear ? RequestedStatus.InReview : RequestedStatus.SaveasDraft,
|
|
9279
9282
|
professionGroup: this.customProfessionGroup,
|
|
9280
|
-
|
|
9283
|
+
residentialCommercial: this.customProfessionType,
|
|
9281
9284
|
};
|
|
9282
9285
|
const res = await firstValueFrom(this.userProfessionService.createUserProfession([payload]));
|
|
9283
9286
|
if (res?.failed) {
|
|
@@ -10348,7 +10351,7 @@ class SkillsComponent {
|
|
|
10348
10351
|
profileVisibility: false,
|
|
10349
10352
|
status: this.customProfessionYear ? RequestedStatus.InReview : RequestedStatus.SaveasDraft,
|
|
10350
10353
|
professionGroup: this.customProfessionGroup,
|
|
10351
|
-
|
|
10354
|
+
residentialCommercial: this.customProfessionType,
|
|
10352
10355
|
};
|
|
10353
10356
|
const res = await firstValueFrom(this.userProfessionService.createUserProfession([payload]));
|
|
10354
10357
|
if (res?.failed) {
|
|
@@ -11913,7 +11916,7 @@ class ToolsComponent {
|
|
|
11913
11916
|
profileVisibility: false,
|
|
11914
11917
|
status: this.customProfessionYear ? RequestedStatus.InReview : RequestedStatus.SaveasDraft,
|
|
11915
11918
|
professionGroup: this.customProfessionGroup,
|
|
11916
|
-
|
|
11919
|
+
residentialCommercial: this.customProfessionType,
|
|
11917
11920
|
};
|
|
11918
11921
|
const res = await firstValueFrom(this.userProfessionService.createUserProfession([payload]));
|
|
11919
11922
|
if (res?.failed) {
|
|
@@ -36783,7 +36786,7 @@ class ProfessionComponent {
|
|
|
36783
36786
|
professionId: profType.isManual ? null : id,
|
|
36784
36787
|
professionName: profType.professionName,
|
|
36785
36788
|
professionGroup: profType.professionGroup ?? '',
|
|
36786
|
-
|
|
36789
|
+
residentialCommercial: profType.professionAssignmentType ?? '',
|
|
36787
36790
|
notes: sel.notes ?? '',
|
|
36788
36791
|
year: sel.year ?? 0,
|
|
36789
36792
|
starRating: sel.starRating ?? 0,
|
|
@@ -36806,7 +36809,7 @@ class ProfessionComponent {
|
|
|
36806
36809
|
profileVisibility: sel.profileVisibility ?? false,
|
|
36807
36810
|
status: sel.year ? RequestedStatus.InReview : RequestedStatus.SaveasDraft,
|
|
36808
36811
|
professionGroup: profType.professionGroup ?? '',
|
|
36809
|
-
|
|
36812
|
+
residentialCommercial: profType.professionAssignmentType ?? '',
|
|
36810
36813
|
};
|
|
36811
36814
|
if (!profType.isManual) {
|
|
36812
36815
|
payload.professionId = id;
|