@arsedizioni/ars-utils 22.5.14 → 22.5.15
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.
- package/fesm2022/arsedizioni-ars-utils-clipper.common.mjs +22 -6
- package/fesm2022/arsedizioni-ars-utils-clipper.common.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs +5 -5
- package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-evolution.common.mjs +8 -3
- package/fesm2022/arsedizioni-ars-utils-evolution.common.mjs.map +1 -1
- package/package.json +1 -1
- package/types/arsedizioni-ars-utils-clipper.common.d.ts +12 -0
|
@@ -741,6 +741,11 @@ class CoreService {
|
|
|
741
741
|
}
|
|
742
742
|
return this._loginInfo;
|
|
743
743
|
}
|
|
744
|
+
/**
|
|
745
|
+
* Gets the signed-in account.
|
|
746
|
+
* @returns The current {@link EvolutionUserInfo}, or `undefined` when there is no session.
|
|
747
|
+
*/
|
|
748
|
+
get user() { return this.loginInfo?.context; }
|
|
744
749
|
/**
|
|
745
750
|
* Sets the logged-in state.
|
|
746
751
|
* @param value - The new logged-in value.
|
|
@@ -895,7 +900,7 @@ class LoginService {
|
|
|
895
900
|
* Gets the signed-in account with its licence context.
|
|
896
901
|
* @returns The current {@link EvolutionUserInfo}, or undefined when there is no session.
|
|
897
902
|
*/
|
|
898
|
-
get user() { return this.core.
|
|
903
|
+
get user() { return this.core.user; }
|
|
899
904
|
/** `true` when this browser has a session the API has accepted. */
|
|
900
905
|
get loggedIn() { return this.core.loggedIn; }
|
|
901
906
|
/** `true` while an authentication is in flight. */
|
|
@@ -1322,7 +1327,7 @@ class AccountService {
|
|
|
1322
1327
|
* @returns An observable that emits `ApiResult<EvolutionUserInfo>`.
|
|
1323
1328
|
*/
|
|
1324
1329
|
refreshLicence() {
|
|
1325
|
-
return this.httpClient.get(this.core.serviceUri + '/account/licenses/refresh/' + (this.core.
|
|
1330
|
+
return this.httpClient.get(this.core.serviceUri + '/account/licenses/refresh/' + (this.core.user?.userId ?? -1));
|
|
1326
1331
|
}
|
|
1327
1332
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: AccountService, deps: [], target: i0.ɵɵFactoryTarget.Service }); }
|
|
1328
1333
|
static { this.ɵprov = i0.ɵɵngDeclareService({ minVersion: "22.0.0", version: "22.1.3", ngImport: i0, type: AccountService }); }
|
|
@@ -1376,7 +1381,7 @@ class EvolutionService {
|
|
|
1376
1381
|
* Gets the signed-in account with its licence context.
|
|
1377
1382
|
* @returns The current {@link EvolutionUserInfo}, or undefined when there is no session.
|
|
1378
1383
|
*/
|
|
1379
|
-
get user() { return this.core.
|
|
1384
|
+
get user() { return this.core.user; }
|
|
1380
1385
|
/**
|
|
1381
1386
|
* `true` when this browser has a session the API has accepted. It starts from the stored context
|
|
1382
1387
|
* and is confirmed -- or left to the interceptor's 401 handling -- by the `/session/me` call
|