@arsedizioni/ars-utils 19.3.16 → 19.3.18
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/clipper.common/common/services/clipper.service.d.ts +2 -2
- package/clipper.ui/ui/document-menu/document-menu.component.d.ts +1 -1
- package/evolution.common/common/services/evolution.service.d.ts +3 -3
- package/fesm2022/arsedizioni-ars-utils-clipper.common.mjs +3 -3
- package/fesm2022/arsedizioni-ars-utils-clipper.common.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs +0 -1
- package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-evolution.common.mjs +4 -4
- package/fesm2022/arsedizioni-ars-utils-evolution.common.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-support.common.mjs +4 -4
- package/fesm2022/arsedizioni-ars-utils-support.common.mjs.map +1 -1
- package/package.json +9 -9
- package/support.common/common/services/support.service.d.ts +3 -3
|
@@ -83,7 +83,7 @@ export declare class ClipperService implements OnDestroy {
|
|
|
83
83
|
* @param oauthAccessToken: the optional OAuth2 access token
|
|
84
84
|
* @param onSucces: function to execute on seccess
|
|
85
85
|
*/
|
|
86
|
-
autoLogin(email?: string
|
|
86
|
+
autoLogin(email?: string, password?: string, remember?: boolean, oauth?: LoginOAuthType, oauthAccessToken?: string | undefined, onSucces?: Function): boolean;
|
|
87
87
|
/**
|
|
88
88
|
* Perform auto logout
|
|
89
89
|
* @param onSucces: function to execute on seccess
|
|
@@ -98,7 +98,7 @@ export declare class ClipperService implements OnDestroy {
|
|
|
98
98
|
* @param oauthAccessToken: the optional OAuth2 access token
|
|
99
99
|
* @returns: the login result
|
|
100
100
|
*/
|
|
101
|
-
login(email?: string
|
|
101
|
+
login(email?: string, password?: string, remember?: boolean, oauth?: LoginOAuthType, oauthAccessToken?: string | undefined): import("rxjs").Observable<ApiResult<ClipperLoginResult>>;
|
|
102
102
|
/**
|
|
103
103
|
* Perform logout
|
|
104
104
|
*/
|
|
@@ -13,7 +13,7 @@ export declare class ClipperDocumentMenuComponent implements OnInit, OnDestroy {
|
|
|
13
13
|
private changeDetector;
|
|
14
14
|
private clipperService;
|
|
15
15
|
readonly useSelections: import("@angular/core").InputSignal<boolean>;
|
|
16
|
-
readonly selectionSource: import("@angular/core").InputSignal<"
|
|
16
|
+
readonly selectionSource: import("@angular/core").InputSignal<"none" | "selection" | "bag">;
|
|
17
17
|
protected selection: () => ClipperDocumentInfo[];
|
|
18
18
|
readonly parent: import("@angular/core").InputSignal<ClipperSearchResultManager>;
|
|
19
19
|
readonly item: import("@angular/core").InputSignal<ClipperDocumentInfo>;
|
|
@@ -67,12 +67,12 @@ export declare class EvolutionService implements OnDestroy {
|
|
|
67
67
|
* @param oauthAccessToken: the optional OAuth2 access token
|
|
68
68
|
* @param onSucces: function to execute on seccess
|
|
69
69
|
*/
|
|
70
|
-
autoLogin(email?: string
|
|
70
|
+
autoLogin(email?: string, password?: string, remember?: boolean, oauth?: LoginOAuthType, oauthAccessToken?: string, onSucces?: Function): boolean;
|
|
71
71
|
/**
|
|
72
72
|
* Perform auto logout
|
|
73
73
|
* @param onSucces: function to execute on seccess
|
|
74
74
|
*/
|
|
75
|
-
autoLogout(onSucces?: Function
|
|
75
|
+
autoLogout(onSucces?: Function): void;
|
|
76
76
|
/**
|
|
77
77
|
* Perform login
|
|
78
78
|
* @param email: the optional email if using OAuth2
|
|
@@ -82,7 +82,7 @@ export declare class EvolutionService implements OnDestroy {
|
|
|
82
82
|
* @param oauthAccessToken: the optional OAuth2 access token
|
|
83
83
|
* @returns: the login result
|
|
84
84
|
*/
|
|
85
|
-
login(email?: string
|
|
85
|
+
login(email?: string, password?: string, remember?: boolean, oauth?: LoginOAuthType, oauthAccessToken?: string): import("rxjs").Observable<ApiResult<EvolutionLoginResult>>;
|
|
86
86
|
/**
|
|
87
87
|
* Perform logout
|
|
88
88
|
*/
|
|
@@ -2235,7 +2235,7 @@ class ClipperService {
|
|
|
2235
2235
|
getTokenExpirationDate() {
|
|
2236
2236
|
const token = this.getToken();
|
|
2237
2237
|
if (!token)
|
|
2238
|
-
return
|
|
2238
|
+
return undefined;
|
|
2239
2239
|
// Parse json object from base64 encoded jwt token
|
|
2240
2240
|
const jwtToken = JSON.parse(atob(token.split('.')[1]));
|
|
2241
2241
|
// Set a timeout to refresh the token a minute before it expires
|
|
@@ -2314,7 +2314,7 @@ class ClipperService {
|
|
|
2314
2314
|
* @param oauthAccessToken: the optional OAuth2 access token
|
|
2315
2315
|
* @param onSucces: function to execute on seccess
|
|
2316
2316
|
*/
|
|
2317
|
-
autoLogin(email
|
|
2317
|
+
autoLogin(email, password, remember, oauth, oauthAccessToken = sessionStorage.getItem("clipper_oauth_token"), onSucces) {
|
|
2318
2318
|
this.login(email, password, remember, oauth, oauthAccessToken)
|
|
2319
2319
|
.subscribe({
|
|
2320
2320
|
next: r => {
|
|
@@ -2365,7 +2365,7 @@ class ClipperService {
|
|
|
2365
2365
|
* @param oauthAccessToken: the optional OAuth2 access token
|
|
2366
2366
|
* @returns: the login result
|
|
2367
2367
|
*/
|
|
2368
|
-
login(email
|
|
2368
|
+
login(email, password, remember, oauth, oauthAccessToken = sessionStorage.getItem("clipper_oauth_token")) {
|
|
2369
2369
|
this.loggingIn.set(true);
|
|
2370
2370
|
return this.httpClient
|
|
2371
2371
|
.post(this._serviceUri + '/login2', {
|