@idsoftsource/initial-process 3.7.6 → 3.7.8

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.
@@ -7912,7 +7912,6 @@ class CertificationStore {
7912
7912
  pageSize: 10,
7913
7913
  orderBy: 'createdDateTime asc',
7914
7914
  filter: `mainType=${MainDocumentType.Certificate}`,
7915
- targetUserId: userId,
7916
7915
  };
7917
7916
  this.userDocumentService
7918
7917
  .getUserDocument(query)
@@ -7957,7 +7956,6 @@ class LicenseStore {
7957
7956
  pageSize: 10,
7958
7957
  orderBy: 'createdDateTime asc',
7959
7958
  filter: `mainType=${MainDocumentType.License}`,
7960
- targetUserId: userId,
7961
7959
  };
7962
7960
  this.userDocumentService
7963
7961
  .getUserDocument(query)
@@ -9209,7 +9207,6 @@ class CertificationComponent {
9209
9207
  page: 1,
9210
9208
  pageSize: 100,
9211
9209
  filter: `forUser=${this.resolvedForUser}`,
9212
- targetUserId: this.userId,
9213
9210
  orderBy: 'professionName asc',
9214
9211
  }));
9215
9212
  const saved = Array.isArray(refreshed?.data) ? refreshed.data : [];
@@ -9241,7 +9238,6 @@ class CertificationComponent {
9241
9238
  page: 1,
9242
9239
  pageSize: 100,
9243
9240
  filter: `forUser=${this.resolvedForUser}`,
9244
- targetUserId: this.userId,
9245
9241
  orderBy: 'professionName asc',
9246
9242
  }).subscribe({
9247
9243
  next: (res) => {
@@ -9545,12 +9541,12 @@ class CertificationComponent {
9545
9541
  this.certificateForm.patchValue({ reviewStatus: ReviewStatus.Resolved });
9546
9542
  const fullValue = this.certificateForm.getRawValue();
9547
9543
  const apiPayload = {
9548
- id: this.editingIndex >= 0
9549
- ? this.workStore.getExperience(this.editingIndex)?.id
9550
- : '00000000-0000-0000-0000-000000000000',
9544
+ ...(this.editingIndex >= 0
9545
+ ? { id: this.workStore.getExperience(this.editingIndex)?.id }
9546
+ : {}),
9551
9547
  providerName: this.providerName,
9552
9548
  targetProviderId: this.providerId,
9553
- targetUserId: this.roleContextService?.tempUserContext()?.userId ?? this.userId ?? '',
9549
+ targetUserId: this.roleContextService?.tempUserContext()?.userId ?? '',
9554
9550
  userName: this.user.fullName,
9555
9551
  number: fullValue.number ? fullValue.number : null,
9556
9552
  issuedState: fullValue.issuedState ? fullValue.issuedState : null,
@@ -9578,7 +9574,7 @@ class CertificationComponent {
9578
9574
  };
9579
9575
  if (this.editingIndex >= 0) {
9580
9576
  this.userDocumentService
9581
- .updateUserDocument(apiPayload)
9577
+ .updateUserDocument([apiPayload])
9582
9578
  .subscribe({
9583
9579
  next: (res) => {
9584
9580
  if (res?.failed) {
@@ -9603,7 +9599,7 @@ class CertificationComponent {
9603
9599
  }
9604
9600
  else {
9605
9601
  this.userDocumentService
9606
- .createUserDocument(apiPayload)
9602
+ .createUserDocument([apiPayload])
9607
9603
  .subscribe({
9608
9604
  next: (res) => {
9609
9605
  if (res?.failed) {
@@ -10197,7 +10193,6 @@ class SkillsComponent {
10197
10193
  page: 1,
10198
10194
  pageSize: 100,
10199
10195
  filter: `forUser=${this.resolvedForUser}`,
10200
- targetUserId: this.userId,
10201
10196
  orderBy: 'professionName asc',
10202
10197
  }).subscribe({
10203
10198
  next: (res) => {
@@ -10283,7 +10278,6 @@ class SkillsComponent {
10283
10278
  page: 1,
10284
10279
  pageSize: 100,
10285
10280
  filter: `forUser=${this.resolvedForUser}`,
10286
- targetUserId: this.userId,
10287
10281
  orderBy: 'professionName asc',
10288
10282
  }));
10289
10283
  const saved = Array.isArray(refreshed?.data) ? refreshed.data : [];
@@ -10317,7 +10311,6 @@ class SkillsComponent {
10317
10311
  pageSize: 10,
10318
10312
  // filter: `forUser=${this.resolvedForUser}`,
10319
10313
  orderBy: 'skillSetName asc',
10320
- targetUserId: this.userId,
10321
10314
  };
10322
10315
  this.userSkillsSub = this.userSkillSetService
10323
10316
  .getUserSkillSet(query)
@@ -10632,7 +10625,7 @@ class SkillsComponent {
10632
10625
  // dropped targetUserId (and friends) from the payload whenever userId was falsy.
10633
10626
  this.userSkillSetModels.forEach(element => {
10634
10627
  element.userHeadShotUrl = this.user.headshotUrl ?? '';
10635
- element.targetUserId = this.roleContextService?.tempUserContext()?.userId ?? this.userId ?? '';
10628
+ element.targetUserId = this.roleContextService?.tempUserContext()?.userId ?? '';
10636
10629
  element.emailId = this.emailId ?? '';
10637
10630
  element.userName = this.user.fullName;
10638
10631
  // element.forUser = this.resolvedForUser;
@@ -11104,12 +11097,12 @@ class LicensesComponent {
11104
11097
  this.certificateForm.patchValue({ reviewStatus: ReviewStatus.Resolved });
11105
11098
  const fullValue = this.certificateForm.getRawValue();
11106
11099
  const apiPayload = {
11107
- id: this.editingIndex >= 0
11108
- ? this.workStore.getExperience(this.editingIndex)?.id
11109
- : '00000000-0000-0000-0000-000000000000',
11100
+ ...(this.editingIndex >= 0
11101
+ ? { id: this.workStore.getExperience(this.editingIndex)?.id }
11102
+ : {}),
11110
11103
  targetProviderName: this.providerName,
11111
11104
  providerId: this.providerId,
11112
- targetUserId: this.roleContextService?.tempUserContext()?.userId ?? this.userId ?? '',
11105
+ targetUserId: this.roleContextService?.tempUserContext()?.userId ?? '',
11113
11106
  userName: this.user.fullName,
11114
11107
  number: fullValue.number ? fullValue.number : null,
11115
11108
  issuedState: fullValue.issuedState ? fullValue.issuedState : null,
@@ -11135,7 +11128,7 @@ class LicensesComponent {
11135
11128
  };
11136
11129
  if (this.editingIndex >= 0) {
11137
11130
  this.userDocumentService
11138
- .updateUserDocument(apiPayload)
11131
+ .updateUserDocument([apiPayload])
11139
11132
  .subscribe({
11140
11133
  next: (res) => {
11141
11134
  if (res?.failed) {
@@ -11160,7 +11153,7 @@ class LicensesComponent {
11160
11153
  }
11161
11154
  else {
11162
11155
  this.userDocumentService
11163
- .createUserDocument(apiPayload)
11156
+ .createUserDocument([apiPayload])
11164
11157
  .subscribe({
11165
11158
  next: (res) => {
11166
11159
  if (res?.failed) {
@@ -11402,7 +11395,6 @@ class ToolsComponent {
11402
11395
  page: 1,
11403
11396
  pageSize: 100,
11404
11397
  filter: `forUser=${this.resolvedForUser}`,
11405
- targetUserId: this.userId,
11406
11398
  orderBy: 'professionName asc',
11407
11399
  }).subscribe({
11408
11400
  next: (res) => {
@@ -11572,7 +11564,6 @@ class ToolsComponent {
11572
11564
  pageSize: 10,
11573
11565
  // filter: `forUser=${this.resolvedForUser}`,
11574
11566
  orderBy: 'toolName asc',
11575
- targetUserId: this.userId,
11576
11567
  };
11577
11568
  this.userToolService.getUserTool(query)
11578
11569
  .subscribe({
@@ -11852,7 +11843,6 @@ class ToolsComponent {
11852
11843
  page: 1,
11853
11844
  pageSize: 100,
11854
11845
  filter: `forUser=${this.resolvedForUser}`,
11855
- targetUserId: this.userId,
11856
11846
  orderBy: 'professionName asc',
11857
11847
  }));
11858
11848
  const saved = Array.isArray(refreshed?.data) ? refreshed.data : [];
@@ -11976,7 +11966,7 @@ class ToolsComponent {
11976
11966
  // dropped targetUserId (and friends) from the payload whenever userId was falsy.
11977
11967
  this.userToolModels.forEach(element => {
11978
11968
  element.userHeadShotUrl = this.user.headshotUrl;
11979
- element.targetUserId = this.roleContextService?.tempUserContext()?.userId ?? this.userId ?? '';
11969
+ element.targetUserId = this.roleContextService?.tempUserContext()?.userId ?? '';
11980
11970
  element.emailId = this.emailId ?? '';
11981
11971
  element.userName = this.user.fullName;
11982
11972
  // element.forUser = this.resolvedForUser;