@idsoftsource/initial-process 3.6.3 → 3.6.4
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.
|
@@ -4332,6 +4332,7 @@ class PreviewComponent {
|
|
|
4332
4332
|
pageSize: 100,
|
|
4333
4333
|
filter: `forUser=${this.resolvedForUser}`,
|
|
4334
4334
|
targetUserId: this.effectiveTargetUserId,
|
|
4335
|
+
targetProviderId: this.effectiveTargetProviderId ?? undefined,
|
|
4335
4336
|
orderBy,
|
|
4336
4337
|
};
|
|
4337
4338
|
}
|
|
@@ -4609,6 +4610,7 @@ class PreviewComponent {
|
|
|
4609
4610
|
orderBy: 'createdDateTime asc',
|
|
4610
4611
|
filter: `mainType=${MainDocumentType.Certificate}`,
|
|
4611
4612
|
targetUserId: this.effectiveTargetUserId,
|
|
4613
|
+
targetProviderId: this.effectiveTargetProviderId ?? undefined,
|
|
4612
4614
|
};
|
|
4613
4615
|
const res = await firstValueFrom(this.userDocumentService.getUserDocument(query));
|
|
4614
4616
|
const saved = Array.isArray(res?.data) ? res.data : [];
|
|
@@ -4632,6 +4634,7 @@ class PreviewComponent {
|
|
|
4632
4634
|
orderBy: 'createdDateTime asc',
|
|
4633
4635
|
filter: `mainType=${MainDocumentType.License}`,
|
|
4634
4636
|
targetUserId: this.effectiveTargetUserId,
|
|
4637
|
+
targetProviderId: this.effectiveTargetProviderId ?? undefined,
|
|
4635
4638
|
};
|
|
4636
4639
|
const res = await firstValueFrom(this.userDocumentService
|
|
4637
4640
|
.getUserDocument(query));
|
|
@@ -4751,6 +4754,7 @@ class PreviewComponent {
|
|
|
4751
4754
|
orderBy: 'createdDateTime asc',
|
|
4752
4755
|
filter: `mainType=${MainDocumentType.Certificate}`,
|
|
4753
4756
|
targetUserId: this.effectiveTargetUserId,
|
|
4757
|
+
targetProviderId: this.effectiveTargetProviderId ?? undefined,
|
|
4754
4758
|
})),
|
|
4755
4759
|
firstValueFrom(this.userDocumentService.getUserDocument({
|
|
4756
4760
|
page: 1,
|
|
@@ -4758,6 +4762,7 @@ class PreviewComponent {
|
|
|
4758
4762
|
orderBy: 'createdDateTime asc',
|
|
4759
4763
|
filter: `mainType=${MainDocumentType.License}`,
|
|
4760
4764
|
targetUserId: this.effectiveTargetUserId,
|
|
4765
|
+
targetProviderId: this.effectiveTargetProviderId ?? undefined,
|
|
4761
4766
|
})),
|
|
4762
4767
|
firstValueFrom(this.userSkillSetService.getUserSkillSet(this.buildSectionQuery('skillSetName asc', /* includeForUser */ false))),
|
|
4763
4768
|
firstValueFrom(this.userToolService.getUserTool(this.buildSectionQuery('toolName asc', /* includeForUser */ false))),
|
|
@@ -6515,8 +6520,8 @@ class PreviewComponent {
|
|
|
6515
6520
|
try {
|
|
6516
6521
|
const res = (isEdit && hasServerId)
|
|
6517
6522
|
? await firstValueFrom(this.userDocumentService
|
|
6518
|
-
.updateUserDocument(payload))
|
|
6519
|
-
: await firstValueFrom(this.userDocumentService.createUserDocument(payload));
|
|
6523
|
+
.updateUserDocument([payload]))
|
|
6524
|
+
: await firstValueFrom(this.userDocumentService.createUserDocument([payload]));
|
|
6520
6525
|
if (res?.failed) {
|
|
6521
6526
|
console.error('Certification validation failed:', res.failures);
|
|
6522
6527
|
this.certificationLocallySaved[index] = false;
|
|
@@ -6545,8 +6550,8 @@ class PreviewComponent {
|
|
|
6545
6550
|
try {
|
|
6546
6551
|
const res = (isEdit && hasServerId)
|
|
6547
6552
|
? await firstValueFrom(this.userDocumentService
|
|
6548
|
-
.updateUserDocument(payload))
|
|
6549
|
-
: await firstValueFrom(this.userDocumentService.createUserDocument(payload));
|
|
6553
|
+
.updateUserDocument([payload]))
|
|
6554
|
+
: await firstValueFrom(this.userDocumentService.createUserDocument([payload]));
|
|
6550
6555
|
if (res?.failed) {
|
|
6551
6556
|
console.error('License validation failed:', res.failures);
|
|
6552
6557
|
this.licenseLocallySaved[index] = false;
|
|
@@ -7837,12 +7842,13 @@ class CertificationStore {
|
|
|
7837
7842
|
constructor(userDocumentService) {
|
|
7838
7843
|
this.userDocumentService = userDocumentService;
|
|
7839
7844
|
}
|
|
7840
|
-
loadFromApi(userId) {
|
|
7845
|
+
loadFromApi(userId, targetProviderId) {
|
|
7841
7846
|
const query = {
|
|
7842
7847
|
page: 1,
|
|
7843
7848
|
pageSize: 10,
|
|
7844
7849
|
orderBy: 'createdDateTime asc',
|
|
7845
7850
|
filter: `mainType=${MainDocumentType.Certificate}`,
|
|
7851
|
+
targetProviderId,
|
|
7846
7852
|
};
|
|
7847
7853
|
this.userDocumentService
|
|
7848
7854
|
.getUserDocument(query)
|
|
@@ -7881,12 +7887,13 @@ class LicenseStore {
|
|
|
7881
7887
|
constructor(userDocumentService) {
|
|
7882
7888
|
this.userDocumentService = userDocumentService;
|
|
7883
7889
|
}
|
|
7884
|
-
loadFromApi(userId) {
|
|
7890
|
+
loadFromApi(userId, targetProviderId) {
|
|
7885
7891
|
const query = {
|
|
7886
7892
|
page: 1,
|
|
7887
7893
|
pageSize: 10,
|
|
7888
7894
|
orderBy: 'createdDateTime asc',
|
|
7889
7895
|
filter: `mainType=${MainDocumentType.License}`,
|
|
7896
|
+
targetProviderId,
|
|
7890
7897
|
};
|
|
7891
7898
|
this.userDocumentService
|
|
7892
7899
|
.getUserDocument(query)
|
|
@@ -9056,7 +9063,7 @@ class CertificationComponent {
|
|
|
9056
9063
|
this.userdata = saved;
|
|
9057
9064
|
console.log(this.userdata);
|
|
9058
9065
|
this.userId = this.roleContextService?.tempUserContext()?.userId ?? await this.tokenService.getUserId();
|
|
9059
|
-
this.workStore.loadFromApi(this.userId);
|
|
9066
|
+
this.workStore.loadFromApi(this.userId, this.providerId);
|
|
9060
9067
|
this.loadDocumentTypesDefault();
|
|
9061
9068
|
this.loadUserProfessionOptions();
|
|
9062
9069
|
this.loadProfessionTaxonomy();
|
|
@@ -9121,6 +9128,7 @@ class CertificationComponent {
|
|
|
9121
9128
|
pageSize: 100,
|
|
9122
9129
|
filter: `forUser=${this.resolvedForUser}`,
|
|
9123
9130
|
targetUserId: this.userId,
|
|
9131
|
+
targetProviderId: this.providerId,
|
|
9124
9132
|
orderBy: 'professionName asc',
|
|
9125
9133
|
}));
|
|
9126
9134
|
const saved = Array.isArray(refreshed?.data) ? refreshed.data : [];
|
|
@@ -9153,6 +9161,7 @@ class CertificationComponent {
|
|
|
9153
9161
|
pageSize: 100,
|
|
9154
9162
|
filter: `forUser=${this.resolvedForUser}`,
|
|
9155
9163
|
targetUserId: this.userId,
|
|
9164
|
+
targetProviderId: this.providerId,
|
|
9156
9165
|
orderBy: 'professionName asc',
|
|
9157
9166
|
}).subscribe({
|
|
9158
9167
|
next: (res) => {
|
|
@@ -9326,7 +9335,7 @@ class CertificationComponent {
|
|
|
9326
9335
|
this.deletingIndex.set(index);
|
|
9327
9336
|
this.userDocumentService.bulkDelete([exp.id]).subscribe({
|
|
9328
9337
|
next: () => {
|
|
9329
|
-
this.workStore.loadFromApi(this.userId);
|
|
9338
|
+
this.workStore.loadFromApi(this.userId, this.providerId);
|
|
9330
9339
|
this.certificateForm.reset();
|
|
9331
9340
|
this.showedit = false;
|
|
9332
9341
|
this.isEditing.set(false);
|
|
@@ -9471,7 +9480,7 @@ class CertificationComponent {
|
|
|
9471
9480
|
};
|
|
9472
9481
|
if (this.editingIndex >= 0) {
|
|
9473
9482
|
this.userDocumentService
|
|
9474
|
-
.updateUserDocument(apiPayload)
|
|
9483
|
+
.updateUserDocument([apiPayload])
|
|
9475
9484
|
.subscribe({
|
|
9476
9485
|
next: (res) => {
|
|
9477
9486
|
if (res?.failed) {
|
|
@@ -9482,7 +9491,7 @@ class CertificationComponent {
|
|
|
9482
9491
|
this.proposalLoader = false;
|
|
9483
9492
|
return;
|
|
9484
9493
|
}
|
|
9485
|
-
this.workStore.loadFromApi(this.userId);
|
|
9494
|
+
this.workStore.loadFromApi(this.userId, this.providerId);
|
|
9486
9495
|
this.triggerSuccess();
|
|
9487
9496
|
this.isEditing.set(false);
|
|
9488
9497
|
this.editingIndex = -1;
|
|
@@ -9496,7 +9505,7 @@ class CertificationComponent {
|
|
|
9496
9505
|
}
|
|
9497
9506
|
else {
|
|
9498
9507
|
this.userDocumentService
|
|
9499
|
-
.createUserDocument(apiPayload)
|
|
9508
|
+
.createUserDocument([apiPayload])
|
|
9500
9509
|
.subscribe({
|
|
9501
9510
|
next: (res) => {
|
|
9502
9511
|
if (res?.failed) {
|
|
@@ -9507,7 +9516,7 @@ class CertificationComponent {
|
|
|
9507
9516
|
this.proposalLoader = false;
|
|
9508
9517
|
return;
|
|
9509
9518
|
}
|
|
9510
|
-
this.workStore.loadFromApi(this.userId);
|
|
9519
|
+
this.workStore.loadFromApi(this.userId, this.providerId);
|
|
9511
9520
|
this.triggerSuccess();
|
|
9512
9521
|
this.isEditing.set(false);
|
|
9513
9522
|
this.proposalLoader = false;
|
|
@@ -10091,6 +10100,7 @@ class SkillsComponent {
|
|
|
10091
10100
|
pageSize: 100,
|
|
10092
10101
|
filter: `forUser=${this.resolvedForUser}`,
|
|
10093
10102
|
targetUserId: this.userId,
|
|
10103
|
+
targetProviderId: this.providerId,
|
|
10094
10104
|
orderBy: 'professionName asc',
|
|
10095
10105
|
}).subscribe({
|
|
10096
10106
|
next: (res) => {
|
|
@@ -10725,7 +10735,7 @@ class LicensesComponent {
|
|
|
10725
10735
|
this.userdata = saved;
|
|
10726
10736
|
console.log(this.userdata);
|
|
10727
10737
|
this.userId = this.roleContextService?.tempUserContext()?.userId ?? await this.tokenService.getUserId();
|
|
10728
|
-
this.workStore.loadFromApi(this.userId);
|
|
10738
|
+
this.workStore.loadFromApi(this.userId, this.providerId);
|
|
10729
10739
|
this.loadDocumentTypesDefault();
|
|
10730
10740
|
}
|
|
10731
10741
|
loadDocumentTypes(searchText = '') {
|
|
@@ -10846,7 +10856,7 @@ class LicensesComponent {
|
|
|
10846
10856
|
this.deletingIndex.set(index);
|
|
10847
10857
|
this.userDocumentService.bulkDelete([exp.id]).subscribe({
|
|
10848
10858
|
next: () => {
|
|
10849
|
-
this.workStore.loadFromApi(this.userId);
|
|
10859
|
+
this.workStore.loadFromApi(this.userId, this.providerId);
|
|
10850
10860
|
this.certificateForm.reset();
|
|
10851
10861
|
this.showedit = false;
|
|
10852
10862
|
this.isEditing.set(false);
|
|
@@ -10992,7 +11002,7 @@ class LicensesComponent {
|
|
|
10992
11002
|
};
|
|
10993
11003
|
if (this.editingIndex >= 0) {
|
|
10994
11004
|
this.userDocumentService
|
|
10995
|
-
.updateUserDocument(apiPayload)
|
|
11005
|
+
.updateUserDocument([apiPayload])
|
|
10996
11006
|
.subscribe({
|
|
10997
11007
|
next: (res) => {
|
|
10998
11008
|
if (res?.failed) {
|
|
@@ -11003,7 +11013,7 @@ class LicensesComponent {
|
|
|
11003
11013
|
this.proposalLoader = false;
|
|
11004
11014
|
return;
|
|
11005
11015
|
}
|
|
11006
|
-
this.workStore.loadFromApi(this.userId);
|
|
11016
|
+
this.workStore.loadFromApi(this.userId, this.providerId);
|
|
11007
11017
|
this.triggerSuccess();
|
|
11008
11018
|
this.isEditing.set(false);
|
|
11009
11019
|
this.editingIndex = -1;
|
|
@@ -11017,7 +11027,7 @@ class LicensesComponent {
|
|
|
11017
11027
|
}
|
|
11018
11028
|
else {
|
|
11019
11029
|
this.userDocumentService
|
|
11020
|
-
.createUserDocument(apiPayload)
|
|
11030
|
+
.createUserDocument([apiPayload])
|
|
11021
11031
|
.subscribe({
|
|
11022
11032
|
next: (res) => {
|
|
11023
11033
|
if (res?.failed) {
|
|
@@ -11028,7 +11038,7 @@ class LicensesComponent {
|
|
|
11028
11038
|
this.proposalLoader = false;
|
|
11029
11039
|
return;
|
|
11030
11040
|
}
|
|
11031
|
-
this.workStore.loadFromApi(this.userId);
|
|
11041
|
+
this.workStore.loadFromApi(this.userId, this.providerId);
|
|
11032
11042
|
this.triggerSuccess();
|
|
11033
11043
|
this.isEditing.set(false);
|
|
11034
11044
|
this.proposalLoader = false;
|
|
@@ -11260,6 +11270,7 @@ class ToolsComponent {
|
|
|
11260
11270
|
pageSize: 100,
|
|
11261
11271
|
filter: `forUser=${this.resolvedForUser}`,
|
|
11262
11272
|
targetUserId: this.userId,
|
|
11273
|
+
targetProviderId: this.providerId,
|
|
11263
11274
|
orderBy: 'professionName asc',
|
|
11264
11275
|
}).subscribe({
|
|
11265
11276
|
next: (res) => {
|
|
@@ -36169,6 +36180,7 @@ class ProfessionComponent {
|
|
|
36169
36180
|
pageSize: 100,
|
|
36170
36181
|
filter: `forUser=${this.resolvedForUser}`,
|
|
36171
36182
|
targetUserId: this.userId,
|
|
36183
|
+
targetProviderId: this.providerId,
|
|
36172
36184
|
orderBy,
|
|
36173
36185
|
};
|
|
36174
36186
|
}
|