@idsoftsource/initial-process 3.7.6 → 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.
@@ -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) {
@@ -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
- id: this.editingIndex >= 0
9549
- ? this.workStore.getExperience(this.editingIndex)?.id
9550
- : '00000000-0000-0000-0000-000000000000',
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
- id: this.editingIndex >= 0
11108
- ? this.workStore.getExperience(this.editingIndex)?.id
11109
- : '00000000-0000-0000-0000-000000000000',
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) {