@authenty/authapi-types 1.0.18 → 1.0.20
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 +1 -0
- package/dist/index.js +1 -0
- package/dist/simple-types.d.ts +6 -0
- package/package.json +1 -1
- package/src/index.ts +2 -1
- package/src/simple-types.ts +6 -0
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -345,6 +345,7 @@ var AuthApi;
|
|
|
345
345
|
fetchOptions.body = JSON.stringify(params);
|
|
346
346
|
}
|
|
347
347
|
response = await fetch(url, fetchOptions);
|
|
348
|
+
result.headers = response.headers;
|
|
348
349
|
// Atualiza tokens se presentes nos headers
|
|
349
350
|
const newToken = response.headers.get('authorization');
|
|
350
351
|
if (newToken) {
|
package/dist/simple-types.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import AuthApi from ".";
|
|
2
2
|
export declare const BundleType: typeof AuthApi.objects.BundleType;
|
|
3
|
+
export type BundleType = AuthApi.objects.BundleType;
|
|
3
4
|
export type Product = AuthApi.objects.Product;
|
|
4
5
|
export type ProductLevel = AuthApi.objects.ProductLevel;
|
|
5
6
|
export type Course = AuthApi.objects.Course;
|
|
@@ -14,13 +15,18 @@ export type AdminUserConfig = AuthApi.objects.AdminUserConfig;
|
|
|
14
15
|
export type LogEntry = AuthApi.objects.LogEntry;
|
|
15
16
|
export type PG_Customer = AuthApi.objects.PaymentSystem.PG_Customer;
|
|
16
17
|
export declare const PG_PurchaseLicenseStatus: typeof AuthApi.objects.PaymentSystem.PG_PurchaseLicenseStatus;
|
|
18
|
+
export type PG_PurchaseLicenseStatus = AuthApi.objects.PaymentSystem.PG_PurchaseLicenseStatus;
|
|
17
19
|
export declare const PG_PurchaseLicenseStatus_GroupActive: AuthApi.objects.PaymentSystem.PG_PurchaseLicenseStatus[];
|
|
18
20
|
export declare const PG_PurchasePaymentStatus: typeof AuthApi.objects.PaymentSystem.PG_PurchasePaymentStatus;
|
|
21
|
+
export type PG_PurchasePaymentStatus = AuthApi.objects.PaymentSystem.PG_PurchasePaymentStatus;
|
|
19
22
|
export declare const PG_PurchaseType: typeof AuthApi.objects.PaymentSystem.PG_PurchaseType;
|
|
23
|
+
export type PG_PurchaseType = AuthApi.objects.PaymentSystem.PG_PurchaseType;
|
|
20
24
|
export type PG_Purchase = AuthApi.objects.PaymentSystem.PG_Purchase;
|
|
21
25
|
export declare const PG_RecurrenceType: typeof AuthApi.objects.PaymentSystem.PG_RecurrenceType;
|
|
26
|
+
export type PG_RecurrenceType = AuthApi.objects.PaymentSystem.PG_RecurrenceType;
|
|
22
27
|
export type availableSoftware = AuthApi.auxiliarTypes.availableSoftware;
|
|
23
28
|
export declare const Privilege: typeof AuthApi.auxiliarTypes.Privilege;
|
|
29
|
+
export type Privilege = AuthApi.auxiliarTypes.Privilege;
|
|
24
30
|
export type PrivilegeTable = AuthApi.auxiliarTypes.PrivilegeTable;
|
|
25
31
|
export type CronJob = AuthApi.auxiliarTypes.CronJob;
|
|
26
32
|
export type CronjobsStatuses = AuthApi.auxiliarTypes.CronjobsStatuses;
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -383,6 +383,7 @@ export namespace AuthApi {
|
|
|
383
383
|
reqStat: number;
|
|
384
384
|
success: boolean;
|
|
385
385
|
data: T;
|
|
386
|
+
headers?: Headers;
|
|
386
387
|
msg: string;
|
|
387
388
|
}
|
|
388
389
|
|
|
@@ -659,7 +660,7 @@ export namespace AuthApi {
|
|
|
659
660
|
}
|
|
660
661
|
|
|
661
662
|
response = await fetch(url, fetchOptions);
|
|
662
|
-
|
|
663
|
+
result.headers = response.headers;
|
|
663
664
|
// Atualiza tokens se presentes nos headers
|
|
664
665
|
const newToken = response.headers.get('authorization');
|
|
665
666
|
if (newToken) {
|
package/src/simple-types.ts
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
import AuthApi from ".";
|
|
5
5
|
|
|
6
6
|
export const BundleType = AuthApi.objects.BundleType;
|
|
7
|
+
export type BundleType = AuthApi.objects.BundleType;
|
|
7
8
|
export type Product = AuthApi.objects.Product;
|
|
8
9
|
export type ProductLevel = AuthApi.objects.ProductLevel;
|
|
9
10
|
export type Course = AuthApi.objects.Course;
|
|
@@ -19,14 +20,19 @@ export type LogEntry = AuthApi.objects.LogEntry;
|
|
|
19
20
|
|
|
20
21
|
export type PG_Customer = AuthApi.objects.PaymentSystem.PG_Customer;
|
|
21
22
|
export const PG_PurchaseLicenseStatus = AuthApi.objects.PaymentSystem.PG_PurchaseLicenseStatus;
|
|
23
|
+
export type PG_PurchaseLicenseStatus = AuthApi.objects.PaymentSystem.PG_PurchaseLicenseStatus;
|
|
22
24
|
export const PG_PurchaseLicenseStatus_GroupActive = AuthApi.objects.PaymentSystem.PG_PurchaseLicenseStatus_GroupActive;
|
|
23
25
|
export const PG_PurchasePaymentStatus = AuthApi.objects.PaymentSystem.PG_PurchasePaymentStatus;
|
|
26
|
+
export type PG_PurchasePaymentStatus = AuthApi.objects.PaymentSystem.PG_PurchasePaymentStatus;
|
|
24
27
|
export const PG_PurchaseType = AuthApi.objects.PaymentSystem.PG_PurchaseType;
|
|
28
|
+
export type PG_PurchaseType = AuthApi.objects.PaymentSystem.PG_PurchaseType;
|
|
25
29
|
export type PG_Purchase = AuthApi.objects.PaymentSystem.PG_Purchase;
|
|
26
30
|
export const PG_RecurrenceType = AuthApi.objects.PaymentSystem.PG_RecurrenceType;
|
|
31
|
+
export type PG_RecurrenceType = AuthApi.objects.PaymentSystem.PG_RecurrenceType;
|
|
27
32
|
|
|
28
33
|
export type availableSoftware = AuthApi.auxiliarTypes.availableSoftware;
|
|
29
34
|
export const Privilege = AuthApi.auxiliarTypes.Privilege;
|
|
35
|
+
export type Privilege = AuthApi.auxiliarTypes.Privilege;
|
|
30
36
|
export type PrivilegeTable = AuthApi.auxiliarTypes.PrivilegeTable;
|
|
31
37
|
export type CronJob = AuthApi.auxiliarTypes.CronJob;
|
|
32
38
|
export type CronjobsStatuses = AuthApi.auxiliarTypes.CronjobsStatuses;
|