@authenty/authapi-types 1.0.24 → 1.0.25

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/dist/index.d.ts CHANGED
@@ -392,6 +392,11 @@ export declare namespace AuthApi {
392
392
  msg: string;
393
393
  };
394
394
  namespace auth {
395
+ type GET = {
396
+ user?: objects.LocalUser;
397
+ licenses?: objects.License[];
398
+ msg?: string;
399
+ };
395
400
  namespace login {
396
401
  type POST = {
397
402
  user: objects.LocalUser;
@@ -401,12 +406,6 @@ export declare namespace AuthApi {
401
406
  namespace logout {
402
407
  type GET = {};
403
408
  }
404
- namespace checkSession {
405
- type GET = {
406
- user?: objects.LocalUser;
407
- msg?: string;
408
- };
409
- }
410
409
  }
411
410
  namespace users {
412
411
  type GET = objects.LocalUser[];
@@ -745,7 +744,7 @@ export declare namespace AuthApi {
745
744
  /**
746
745
  * Verifica a sessão atual
747
746
  */
748
- checkSession: () => Promise<responses.ApiResponse<responses.auth.checkSession.GET>>;
747
+ checkSession: () => Promise<responses.ApiResponse<responses.auth.GET>>;
749
748
  };
750
749
  checkHealth(): Promise<boolean>;
751
750
  users: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@authenty/authapi-types",
3
- "version": "1.0.24",
3
+ "version": "1.0.25",
4
4
  "description": "Shared types for Authenty API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/index.ts CHANGED
@@ -443,15 +443,15 @@ export namespace AuthApi {
443
443
  }
444
444
 
445
445
  export namespace auth {
446
+
447
+ export type GET = { user?: objects.LocalUser; licenses?: objects.License[], msg?: string };
448
+
446
449
  export namespace login {
447
450
  export type POST = { user: objects.LocalUser; msg?: string };
448
451
  }
449
452
  export namespace logout {
450
453
  export type GET = {};
451
454
  }
452
- export namespace checkSession {
453
- export type GET = { user?: objects.LocalUser; msg?: string };
454
- }
455
455
  }
456
456
 
457
457
  export namespace users {
@@ -949,7 +949,7 @@ export namespace AuthApi {
949
949
  msg: 'Token not found'
950
950
  };
951
951
  }
952
- return this.request<responses.auth.checkSession.GET>('GET', 'auth', {}, { retryAttempts: 2, retryDelay: 1000 });
952
+ return this.request<responses.auth.GET>('GET', 'auth', {}, { retryAttempts: 2, retryDelay: 1000 });
953
953
  }
954
954
  }
955
955