@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.
@@ -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(apiUrl?: string): Promise<void>;
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(apiUrl?: string): Promise<void>;
680
+ signout(): Promise<void>;
682
681
  /**
683
682
  * Get organization list
684
683
  * @param items Max items
@@ -790,8 +790,8 @@ class CoreApp {
790
790
  * Signout
791
791
  * @param apiUrl Signout API URL
792
792
  */
793
- async signout(apiUrl) {
794
- await this.api.put(apiUrl !== null && apiUrl !== void 0 ? apiUrl : 'User/Signout', undefined, {
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
@@ -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(apiUrl?: string): Promise<void>;
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(apiUrl?: string): Promise<void>;
680
+ signout(): Promise<void>;
682
681
  /**
683
682
  * Get organization list
684
683
  * @param items Max items
@@ -787,8 +787,8 @@ export class CoreApp {
787
787
  * Signout
788
788
  * @param apiUrl Signout API URL
789
789
  */
790
- async signout(apiUrl) {
791
- await this.api.put(apiUrl !== null && apiUrl !== void 0 ? apiUrl : 'User/Signout', undefined, {
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/appscript",
3
- "version": "1.1.88",
3
+ "version": "1.1.89",
4
4
  "description": "Applications shared TypeScript framework",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/mjs/index.js",
@@ -384,9 +384,8 @@ export interface ICoreApp<
384
384
 
385
385
  /**
386
386
  * Signout
387
- * @param apiUrl Signout API URL
388
387
  */
389
- signout(apiUrl?: string): Promise<void>;
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(apiUrl?: string) {
1439
- await this.api.put<boolean>(apiUrl ?? 'User/Signout', undefined, {
1440
- onError: (error) => {
1441
- console.log(error);
1442
- // Prevent further processing
1443
- return false;
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();