@idsoftsource/initial-process 1.9.2 → 1.9.3
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.
|
@@ -5185,7 +5185,8 @@ class PreviewComponent {
|
|
|
5185
5185
|
const existingProviderId = localStorage.getItem('providerId');
|
|
5186
5186
|
this.provider = this.bindProviderDetails();
|
|
5187
5187
|
if (existingProviderId) {
|
|
5188
|
-
const
|
|
5188
|
+
const providerUserMappingId = localStorage.getItem('providerUserMappingId');
|
|
5189
|
+
const updatePayload = { ...this.provider, providerId: existingProviderId, providerUserMappingId: providerUserMappingId };
|
|
5189
5190
|
return new Promise((resolve, reject) => {
|
|
5190
5191
|
this.providerService
|
|
5191
5192
|
.updateInitialSetUpProvider(updatePayload)
|
|
@@ -5210,7 +5211,8 @@ class PreviewComponent {
|
|
|
5210
5211
|
.adminCreateProvider(this.provider)
|
|
5211
5212
|
.subscribe((data) => {
|
|
5212
5213
|
if (!data.failed) {
|
|
5213
|
-
localStorage.setItem('providerId', data?.value);
|
|
5214
|
+
localStorage.setItem('providerId', data?.value[0]);
|
|
5215
|
+
localStorage.setItem('providerUserMappingId', data?.value[1]);
|
|
5214
5216
|
this.companyDetailsSaved = true;
|
|
5215
5217
|
this.companyNameError = null;
|
|
5216
5218
|
resolve();
|
|
@@ -9391,7 +9393,8 @@ class RoleSelectComponent {
|
|
|
9391
9393
|
this.provider = this.bindProviderDetails();
|
|
9392
9394
|
const existingProviderId = localStorage.getItem('providerId');
|
|
9393
9395
|
if (existingProviderId) {
|
|
9394
|
-
const
|
|
9396
|
+
const providerUserMappingId = localStorage.getItem('providerUserMappingId');
|
|
9397
|
+
const updatePayload = { ...this.provider, providerId: existingProviderId, providerUserMappingId: providerUserMappingId };
|
|
9395
9398
|
const data = await firstValueFrom(this.providerService.updateInitialSetUpProvider(updatePayload));
|
|
9396
9399
|
if (data?.failed) {
|
|
9397
9400
|
const message = data?.failures?.[0]?.message || data?.message || null;
|
|
@@ -9408,9 +9411,10 @@ class RoleSelectComponent {
|
|
|
9408
9411
|
this.userError = message;
|
|
9409
9412
|
throw new Error(message || 'Provider creation failed');
|
|
9410
9413
|
}
|
|
9411
|
-
const providerId = data?.value ?? null;
|
|
9414
|
+
const providerId = data?.value?.[0] ?? null;
|
|
9412
9415
|
if (providerId) {
|
|
9413
9416
|
localStorage.setItem('providerId', providerId);
|
|
9417
|
+
localStorage.setItem('providerUserMappingId', data?.value[1]);
|
|
9414
9418
|
this.providerId = providerId;
|
|
9415
9419
|
}
|
|
9416
9420
|
return providerId;
|