@idsoftsource/initial-process 4.1.9 → 4.2.2
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.
|
@@ -663,6 +663,9 @@ class UserDetailService {
|
|
|
663
663
|
isInitialSetupCompleted() {
|
|
664
664
|
return this.http.get(`${this.baseUrl}/IsInitialSetupCompleted`);
|
|
665
665
|
}
|
|
666
|
+
getTokenDetail() {
|
|
667
|
+
return this.http.get(`${this.baseUrl}/GetTokenDetail`);
|
|
668
|
+
}
|
|
666
669
|
/* ==============================
|
|
667
670
|
UPDATE PROFILE
|
|
668
671
|
============================== */
|
|
@@ -7721,7 +7724,14 @@ class PreviewComponent {
|
|
|
7721
7724
|
this.cacheProviderIdLocally(data?.value[0], data?.value[1]);
|
|
7722
7725
|
this.companyDetailsSaved = true;
|
|
7723
7726
|
this.companyNameError = null;
|
|
7724
|
-
|
|
7727
|
+
// Only after InitialSetUpProvider succeeds — refresh token details.
|
|
7728
|
+
this.userDetailService.getTokenDetail().subscribe({
|
|
7729
|
+
next: () => resolve(),
|
|
7730
|
+
error: (err) => {
|
|
7731
|
+
console.error('GetTokenDetail failed', err);
|
|
7732
|
+
resolve();
|
|
7733
|
+
}
|
|
7734
|
+
});
|
|
7725
7735
|
}
|
|
7726
7736
|
else {
|
|
7727
7737
|
if (data.message === 'Provider name already exists') {
|
|
@@ -9383,14 +9393,14 @@ class CertificationComponent {
|
|
|
9383
9393
|
}
|
|
9384
9394
|
loadDocumentTypes(searchText = '') {
|
|
9385
9395
|
this.userDocumentService
|
|
9386
|
-
.getDocumentTypes(
|
|
9396
|
+
.getDocumentTypes(2, this.providerId, searchText, this.selectedProfessionId)
|
|
9387
9397
|
.subscribe(res => {
|
|
9388
9398
|
this.documentTypes = this.withSelectedManualType(res?.data || []);
|
|
9389
9399
|
});
|
|
9390
9400
|
}
|
|
9391
9401
|
loadDocumentTypesDefault(searchText = '') {
|
|
9392
9402
|
this.userDocumentService
|
|
9393
|
-
.getDocumentTypes(
|
|
9403
|
+
.getDocumentTypes(2, this.providerId, searchText, this.selectedProfessionId)
|
|
9394
9404
|
.subscribe(res => {
|
|
9395
9405
|
this.documentTypes = this.withSelectedManualType(res?.data || []);
|
|
9396
9406
|
});
|
|
@@ -10987,14 +10997,14 @@ class LicensesComponent {
|
|
|
10987
10997
|
}
|
|
10988
10998
|
loadDocumentTypes(searchText = '') {
|
|
10989
10999
|
this.userDocumentService
|
|
10990
|
-
.getDocumentTypes(
|
|
11000
|
+
.getDocumentTypes(1, this.providerId, searchText)
|
|
10991
11001
|
.subscribe(res => {
|
|
10992
11002
|
this.documentTypes = this.withSelectedManualType(res?.data || []);
|
|
10993
11003
|
});
|
|
10994
11004
|
}
|
|
10995
11005
|
loadDocumentTypesDefault(searchText = '') {
|
|
10996
11006
|
this.userDocumentService
|
|
10997
|
-
.getDocumentTypes(
|
|
11007
|
+
.getDocumentTypes(1, this.providerId, searchText)
|
|
10998
11008
|
.subscribe(res => {
|
|
10999
11009
|
this.documentTypes = this.withSelectedManualType(res?.data || []);
|
|
11000
11010
|
});
|