@etsoo/appscript 1.1.88 → 1.1.89
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/lib/cjs/app/CoreApp.d.ts
CHANGED
|
@@ -280,9 +280,8 @@ export interface ICoreApp<S extends IAppSettings, N, C extends NotificationCallP
|
|
|
280
280
|
refreshToken<D extends {} = {}>(props?: RefreshTokenProps<D>): Promise<boolean>;
|
|
281
281
|
/**
|
|
282
282
|
* Signout
|
|
283
|
-
* @param apiUrl Signout API URL
|
|
284
283
|
*/
|
|
285
|
-
signout(
|
|
284
|
+
signout(): Promise<void>;
|
|
286
285
|
/**
|
|
287
286
|
* Get organization list
|
|
288
287
|
* @param items Max items
|
|
@@ -678,7 +677,7 @@ export declare abstract class CoreApp<S extends IAppSettings, N, C extends Notif
|
|
|
678
677
|
* Signout
|
|
679
678
|
* @param apiUrl Signout API URL
|
|
680
679
|
*/
|
|
681
|
-
signout(
|
|
680
|
+
signout(): Promise<void>;
|
|
682
681
|
/**
|
|
683
682
|
* Get organization list
|
|
684
683
|
* @param items Max items
|
package/lib/cjs/app/CoreApp.js
CHANGED
|
@@ -790,8 +790,8 @@ class CoreApp {
|
|
|
790
790
|
* Signout
|
|
791
791
|
* @param apiUrl Signout API URL
|
|
792
792
|
*/
|
|
793
|
-
async signout(
|
|
794
|
-
await this.api.put(
|
|
793
|
+
async signout() {
|
|
794
|
+
await this.api.put('User/Signout', { deviceId: this.deviceId }, {
|
|
795
795
|
onError: (error) => {
|
|
796
796
|
console.log(error);
|
|
797
797
|
// Prevent further processing
|
package/lib/mjs/app/CoreApp.d.ts
CHANGED
|
@@ -280,9 +280,8 @@ export interface ICoreApp<S extends IAppSettings, N, C extends NotificationCallP
|
|
|
280
280
|
refreshToken<D extends {} = {}>(props?: RefreshTokenProps<D>): Promise<boolean>;
|
|
281
281
|
/**
|
|
282
282
|
* Signout
|
|
283
|
-
* @param apiUrl Signout API URL
|
|
284
283
|
*/
|
|
285
|
-
signout(
|
|
284
|
+
signout(): Promise<void>;
|
|
286
285
|
/**
|
|
287
286
|
* Get organization list
|
|
288
287
|
* @param items Max items
|
|
@@ -678,7 +677,7 @@ export declare abstract class CoreApp<S extends IAppSettings, N, C extends Notif
|
|
|
678
677
|
* Signout
|
|
679
678
|
* @param apiUrl Signout API URL
|
|
680
679
|
*/
|
|
681
|
-
signout(
|
|
680
|
+
signout(): Promise<void>;
|
|
682
681
|
/**
|
|
683
682
|
* Get organization list
|
|
684
683
|
* @param items Max items
|
package/lib/mjs/app/CoreApp.js
CHANGED
|
@@ -787,8 +787,8 @@ export class CoreApp {
|
|
|
787
787
|
* Signout
|
|
788
788
|
* @param apiUrl Signout API URL
|
|
789
789
|
*/
|
|
790
|
-
async signout(
|
|
791
|
-
await this.api.put(
|
|
790
|
+
async signout() {
|
|
791
|
+
await this.api.put('User/Signout', { deviceId: this.deviceId }, {
|
|
792
792
|
onError: (error) => {
|
|
793
793
|
console.log(error);
|
|
794
794
|
// Prevent further processing
|
package/package.json
CHANGED
package/src/app/CoreApp.ts
CHANGED
|
@@ -384,9 +384,8 @@ export interface ICoreApp<
|
|
|
384
384
|
|
|
385
385
|
/**
|
|
386
386
|
* Signout
|
|
387
|
-
* @param apiUrl Signout API URL
|
|
388
387
|
*/
|
|
389
|
-
signout(
|
|
388
|
+
signout(): Promise<void>;
|
|
390
389
|
|
|
391
390
|
/**
|
|
392
391
|
* Get organization list
|
|
@@ -1435,14 +1434,18 @@ export abstract class CoreApp<
|
|
|
1435
1434
|
* Signout
|
|
1436
1435
|
* @param apiUrl Signout API URL
|
|
1437
1436
|
*/
|
|
1438
|
-
async signout(
|
|
1439
|
-
await this.api.put<boolean>(
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1437
|
+
async signout() {
|
|
1438
|
+
await this.api.put<boolean>(
|
|
1439
|
+
'User/Signout',
|
|
1440
|
+
{ deviceId: this.deviceId },
|
|
1441
|
+
{
|
|
1442
|
+
onError: (error) => {
|
|
1443
|
+
console.log(error);
|
|
1444
|
+
// Prevent further processing
|
|
1445
|
+
return false;
|
|
1446
|
+
}
|
|
1444
1447
|
}
|
|
1445
|
-
|
|
1448
|
+
);
|
|
1446
1449
|
|
|
1447
1450
|
// Clear
|
|
1448
1451
|
this.userLogout();
|