@authenty/authapi-types 1.0.23 → 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 +8 -8
- package/package.json +1 -1
- package/src/index.ts +6 -6
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[];
|
|
@@ -468,7 +467,7 @@ export declare namespace AuthApi {
|
|
|
468
467
|
namespace sync {
|
|
469
468
|
type POST = {
|
|
470
469
|
msg: string;
|
|
471
|
-
|
|
470
|
+
Purchase: objects.Purchase;
|
|
472
471
|
};
|
|
473
472
|
}
|
|
474
473
|
namespace getFromGateway {
|
|
@@ -477,6 +476,7 @@ export declare namespace AuthApi {
|
|
|
477
476
|
namespace cancel {
|
|
478
477
|
type POST = {
|
|
479
478
|
msg?: string;
|
|
479
|
+
Purchase: objects.Purchase;
|
|
480
480
|
};
|
|
481
481
|
}
|
|
482
482
|
}
|
|
@@ -744,7 +744,7 @@ export declare namespace AuthApi {
|
|
|
744
744
|
/**
|
|
745
745
|
* Verifica a sessão atual
|
|
746
746
|
*/
|
|
747
|
-
checkSession: () => Promise<responses.ApiResponse<responses.auth.
|
|
747
|
+
checkSession: () => Promise<responses.ApiResponse<responses.auth.GET>>;
|
|
748
748
|
};
|
|
749
749
|
checkHealth(): Promise<boolean>;
|
|
750
750
|
users: {
|
package/package.json
CHANGED
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 {
|
|
@@ -509,14 +509,14 @@ export namespace AuthApi {
|
|
|
509
509
|
export namespace sync {
|
|
510
510
|
export type POST = {
|
|
511
511
|
msg:string,
|
|
512
|
-
|
|
512
|
+
Purchase: objects.Purchase
|
|
513
513
|
};
|
|
514
514
|
}
|
|
515
515
|
export namespace getFromGateway {
|
|
516
516
|
export type GET = objects.PaymentSystem.PG_Purchase;
|
|
517
517
|
}
|
|
518
518
|
export namespace cancel {
|
|
519
|
-
export type POST = {msg?:string};
|
|
519
|
+
export type POST = {msg?:string, Purchase: objects.Purchase};
|
|
520
520
|
}
|
|
521
521
|
|
|
522
522
|
}
|
|
@@ -949,7 +949,7 @@ export namespace AuthApi {
|
|
|
949
949
|
msg: 'Token not found'
|
|
950
950
|
};
|
|
951
951
|
}
|
|
952
|
-
return this.request<responses.auth.
|
|
952
|
+
return this.request<responses.auth.GET>('GET', 'auth', {}, { retryAttempts: 2, retryDelay: 1000 });
|
|
953
953
|
}
|
|
954
954
|
}
|
|
955
955
|
|