@idsoftsource/initial-process 3.7.5 → 3.7.7
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.
|
@@ -6593,8 +6593,8 @@ class PreviewComponent {
|
|
|
6593
6593
|
try {
|
|
6594
6594
|
const res = (isEdit && hasServerId)
|
|
6595
6595
|
? await firstValueFrom(this.userDocumentService
|
|
6596
|
-
.updateUserDocument(payload))
|
|
6597
|
-
: await firstValueFrom(this.userDocumentService.createUserDocument(payload));
|
|
6596
|
+
.updateUserDocument([payload]))
|
|
6597
|
+
: await firstValueFrom(this.userDocumentService.createUserDocument([payload]));
|
|
6598
6598
|
if (res?.failed) {
|
|
6599
6599
|
console.error('Certification validation failed:', res.failures);
|
|
6600
6600
|
this.certificationLocallySaved[index] = false;
|
|
@@ -6623,8 +6623,8 @@ class PreviewComponent {
|
|
|
6623
6623
|
try {
|
|
6624
6624
|
const res = (isEdit && hasServerId)
|
|
6625
6625
|
? await firstValueFrom(this.userDocumentService
|
|
6626
|
-
.updateUserDocument(payload))
|
|
6627
|
-
: await firstValueFrom(this.userDocumentService.createUserDocument(payload));
|
|
6626
|
+
.updateUserDocument([payload]))
|
|
6627
|
+
: await firstValueFrom(this.userDocumentService.createUserDocument([payload]));
|
|
6628
6628
|
if (res?.failed) {
|
|
6629
6629
|
console.error('License validation failed:', res.failures);
|
|
6630
6630
|
this.licenseLocallySaved[index] = false;
|
|
@@ -6950,7 +6950,7 @@ class PreviewComponent {
|
|
|
6950
6950
|
return !!this.roleContextService?.tempUserContext()?.userId;
|
|
6951
6951
|
}
|
|
6952
6952
|
get effectiveTargetUserId() {
|
|
6953
|
-
return this.resumeModel?.targetUserId ?? this.roleContextService?.tempUserContext()?.userId ?? '';
|
|
6953
|
+
return this.resumeModel?.targetUserId ?? this.roleContextService?.tempUserContext()?.userId ?? this.payloadUserId ?? '';
|
|
6954
6954
|
}
|
|
6955
6955
|
get effectiveProviderName() {
|
|
6956
6956
|
if (this.isProviderRole) {
|
|
@@ -7185,11 +7185,11 @@ class PreviewComponent {
|
|
|
7185
7185
|
const emailId = data?.basicDetails?.email ?? null;
|
|
7186
7186
|
return data.certifications.map((exp) => {
|
|
7187
7187
|
return {
|
|
7188
|
-
id: "00000000-0000-0000-0000-000000000000",
|
|
7189
|
-
providerName: this.effectiveProviderName,
|
|
7188
|
+
// id: "00000000-0000-0000-0000-000000000000",
|
|
7189
|
+
// providerName: this.effectiveProviderName,
|
|
7190
7190
|
targetProviderId: this.effectiveTargetProviderId,
|
|
7191
7191
|
targetUserId: this.effectiveTargetUserId,
|
|
7192
|
-
userName: this.payloadUserName,
|
|
7192
|
+
// userName: this.payloadUserName,
|
|
7193
7193
|
issuedState: exp.state,
|
|
7194
7194
|
number: exp.credentialId ?? null,
|
|
7195
7195
|
issuedBy: exp.issuingOrganization,
|
|
@@ -7200,7 +7200,7 @@ class PreviewComponent {
|
|
|
7200
7200
|
expiryDate: this.formatDate(exp.expiryDate),
|
|
7201
7201
|
status: exp.credentialId ? RequestedStatus.InReview : RequestedStatus.SaveasDraft,
|
|
7202
7202
|
mainType: MainDocumentType.Certificate,
|
|
7203
|
-
emailId,
|
|
7203
|
+
// emailId,
|
|
7204
7204
|
// forUser: this.resolvedForUser,
|
|
7205
7205
|
fileId: exp.fileId ?? null,
|
|
7206
7206
|
fileUrl: exp.fileUrl ?? null,
|
|
@@ -7216,14 +7216,14 @@ class PreviewComponent {
|
|
|
7216
7216
|
const emailId = data?.basicDetails?.email ?? null;
|
|
7217
7217
|
return data.licenses.map((exp) => {
|
|
7218
7218
|
return {
|
|
7219
|
-
id: "00000000-0000-0000-0000-000000000000",
|
|
7220
|
-
providerName: this.effectiveProviderName,
|
|
7219
|
+
// id: "00000000-0000-0000-0000-000000000000",
|
|
7220
|
+
// providerName: this.effectiveProviderName,
|
|
7221
7221
|
targetProviderId: this.effectiveTargetProviderId,
|
|
7222
7222
|
targetUserId: this.effectiveTargetUserId,
|
|
7223
|
-
userName: this.payloadUserName,
|
|
7223
|
+
// userName: this.payloadUserName,
|
|
7224
7224
|
number: exp.licenseNumber,
|
|
7225
7225
|
issuedState: exp.state,
|
|
7226
|
-
emailId,
|
|
7226
|
+
// emailId,
|
|
7227
7227
|
issuedBy: exp.issuingAuthority,
|
|
7228
7228
|
documentTypeName: exp.name,
|
|
7229
7229
|
issueDate: this.formatDate(exp.issueDate),
|
|
@@ -9545,9 +9545,9 @@ class CertificationComponent {
|
|
|
9545
9545
|
this.certificateForm.patchValue({ reviewStatus: ReviewStatus.Resolved });
|
|
9546
9546
|
const fullValue = this.certificateForm.getRawValue();
|
|
9547
9547
|
const apiPayload = {
|
|
9548
|
-
|
|
9549
|
-
? this.workStore.getExperience(this.editingIndex)?.id
|
|
9550
|
-
:
|
|
9548
|
+
...(this.editingIndex >= 0
|
|
9549
|
+
? { id: this.workStore.getExperience(this.editingIndex)?.id }
|
|
9550
|
+
: {}),
|
|
9551
9551
|
providerName: this.providerName,
|
|
9552
9552
|
targetProviderId: this.providerId,
|
|
9553
9553
|
targetUserId: this.roleContextService?.tempUserContext()?.userId ?? this.userId ?? '',
|
|
@@ -9578,7 +9578,7 @@ class CertificationComponent {
|
|
|
9578
9578
|
};
|
|
9579
9579
|
if (this.editingIndex >= 0) {
|
|
9580
9580
|
this.userDocumentService
|
|
9581
|
-
.updateUserDocument(apiPayload)
|
|
9581
|
+
.updateUserDocument([apiPayload])
|
|
9582
9582
|
.subscribe({
|
|
9583
9583
|
next: (res) => {
|
|
9584
9584
|
if (res?.failed) {
|
|
@@ -9603,7 +9603,7 @@ class CertificationComponent {
|
|
|
9603
9603
|
}
|
|
9604
9604
|
else {
|
|
9605
9605
|
this.userDocumentService
|
|
9606
|
-
.createUserDocument(apiPayload)
|
|
9606
|
+
.createUserDocument([apiPayload])
|
|
9607
9607
|
.subscribe({
|
|
9608
9608
|
next: (res) => {
|
|
9609
9609
|
if (res?.failed) {
|
|
@@ -11104,9 +11104,9 @@ class LicensesComponent {
|
|
|
11104
11104
|
this.certificateForm.patchValue({ reviewStatus: ReviewStatus.Resolved });
|
|
11105
11105
|
const fullValue = this.certificateForm.getRawValue();
|
|
11106
11106
|
const apiPayload = {
|
|
11107
|
-
|
|
11108
|
-
? this.workStore.getExperience(this.editingIndex)?.id
|
|
11109
|
-
:
|
|
11107
|
+
...(this.editingIndex >= 0
|
|
11108
|
+
? { id: this.workStore.getExperience(this.editingIndex)?.id }
|
|
11109
|
+
: {}),
|
|
11110
11110
|
targetProviderName: this.providerName,
|
|
11111
11111
|
providerId: this.providerId,
|
|
11112
11112
|
targetUserId: this.roleContextService?.tempUserContext()?.userId ?? this.userId ?? '',
|
|
@@ -11135,7 +11135,7 @@ class LicensesComponent {
|
|
|
11135
11135
|
};
|
|
11136
11136
|
if (this.editingIndex >= 0) {
|
|
11137
11137
|
this.userDocumentService
|
|
11138
|
-
.updateUserDocument(apiPayload)
|
|
11138
|
+
.updateUserDocument([apiPayload])
|
|
11139
11139
|
.subscribe({
|
|
11140
11140
|
next: (res) => {
|
|
11141
11141
|
if (res?.failed) {
|
|
@@ -11160,7 +11160,7 @@ class LicensesComponent {
|
|
|
11160
11160
|
}
|
|
11161
11161
|
else {
|
|
11162
11162
|
this.userDocumentService
|
|
11163
|
-
.createUserDocument(apiPayload)
|
|
11163
|
+
.createUserDocument([apiPayload])
|
|
11164
11164
|
.subscribe({
|
|
11165
11165
|
next: (res) => {
|
|
11166
11166
|
if (res?.failed) {
|