@frontegg/rest-api 2.10.64 → 2.10.67
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/CHANGELOG.md +6 -0
- package/dist/es2015/index.d.ts +1 -0
- package/dist/es2015/index.js +1 -0
- package/dist/es2015/index.js.map +1 -1
- package/dist/es2015/routers.d.ts +2 -0
- package/dist/es2015/routers.js +12 -0
- package/dist/es2015/routers.js.map +1 -0
- package/dist/es2015/subscriptions/enums.d.ts +2 -1
- package/dist/es2015/subscriptions/enums.js +1 -0
- package/dist/es2015/subscriptions/enums.js.map +1 -1
- package/dist/es2015/subscriptions/interfaces.d.ts +1 -12
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/routers.d.ts +2 -0
- package/dist/routers.js +15 -0
- package/dist/routers.js.map +1 -0
- package/dist/subscriptions/enums.d.ts +2 -1
- package/dist/subscriptions/enums.js +1 -0
- package/dist/subscriptions/enums.js.map +1 -1
- package/dist/subscriptions/interfaces.d.ts +1 -12
- package/dist/umd/index.js +14 -0
- package/package.json +1 -1
- package/src/index.ts +1 -0
- package/src/routers.ts +13 -0
- package/src/subscriptions/enums.ts +1 -0
- package/src/subscriptions/interfaces.ts +1 -14
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [2.10.67](https://github.com/frontegg/typescript-rest-api/compare/v2.10.66...v2.10.67) (2022-05-16)
|
|
6
|
+
|
|
7
|
+
### [2.10.66](https://github.com/frontegg/typescript-rest-api/compare/v2.10.65...v2.10.66) (2022-05-02)
|
|
8
|
+
|
|
9
|
+
### [2.10.65](https://github.com/frontegg/typescript-rest-api/compare/v2.10.64...v2.10.65) (2022-05-01)
|
|
10
|
+
|
|
5
11
|
### [2.10.64](https://github.com/frontegg/typescript-rest-api/compare/v2.10.63...v2.10.64) (2022-04-21)
|
|
6
12
|
|
|
7
13
|
### [2.10.63](https://github.com/frontegg/typescript-rest-api/compare/v2.10.62...v2.10.63) (2022-04-20)
|
package/dist/es2015/index.d.ts
CHANGED
|
@@ -26,6 +26,7 @@ export * from './account-settings/interfaces';
|
|
|
26
26
|
export * from './roles/interfaces';
|
|
27
27
|
export * from './subscriptions/interfaces';
|
|
28
28
|
export * from './vendor/interfaces';
|
|
29
|
+
export * from './routers';
|
|
29
30
|
import { AuthStrategyEnum, SocialLoginProviders } from './auth';
|
|
30
31
|
import { ISubscriptionCancellationPolicy, ISubscriptionStatus, PaymentMethodType, ProviderType } from './subscriptions';
|
|
31
32
|
declare const api: {
|
package/dist/es2015/index.js
CHANGED
|
@@ -26,6 +26,7 @@ export * from './account-settings/interfaces';
|
|
|
26
26
|
export * from './roles/interfaces';
|
|
27
27
|
export * from './subscriptions/interfaces';
|
|
28
28
|
export * from './vendor/interfaces';
|
|
29
|
+
export * from './routers';
|
|
29
30
|
import { AuthStrategyEnum, SocialLoginProviders } from './auth';
|
|
30
31
|
import { ISubscriptionCancellationPolicy, ISubscriptionStatus, PaymentMethodType, ProviderType } from './subscriptions';
|
|
31
32
|
const api = {
|
package/dist/es2015/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAC;AAC/B,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AACjC,OAAO,KAAK,QAAQ,MAAM,YAAY,CAAC;AACvC,OAAO,KAAK,OAAO,MAAM,WAAW,CAAC;AACrC,OAAO,KAAK,aAAa,MAAM,iBAAiB,CAAC;AACjD,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AACnC,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AACjC,OAAO,KAAK,YAAY,MAAM,gBA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CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { urls } from './constants';
|
|
2
|
+
export const fronteggAuthApiRoutes = [
|
|
3
|
+
`${urls.identity.auth.v1}/logout`,
|
|
4
|
+
`${urls.identity.auth.v1}/user/saml/postlogin`,
|
|
5
|
+
`${urls.identity.auth.v2}/user/oidc/postlogin`,
|
|
6
|
+
`${urls.identity.auth.v1}/user`,
|
|
7
|
+
`${urls.identity.auth.v1}/user/mfa/verify`,
|
|
8
|
+
`${urls.identity.auth.v1}/user/token/refresh`,
|
|
9
|
+
`${urls.identity.users.v1}`,
|
|
10
|
+
];
|
|
11
|
+
export const fronteggRefreshTokenUrl = `${urls.identity.auth.v1}/user/token/refresh`;
|
|
12
|
+
//# sourceMappingURL=routers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"routers.js","sourceRoot":"","sources":["../../src/routers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAEnC,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,SAAS;IACjC,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,sBAAsB;IAC9C,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,sBAAsB;IAC9C,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,OAAO;IAC/B,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,kBAAkB;IAC1C,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,qBAAqB;IAC7C,GAAG,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,EAAE;CAC5B,CAAA;AAED,MAAM,CAAC,MAAM,uBAAuB,GAAG,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,qBAAqB,CAAC"}
|
|
@@ -3,7 +3,8 @@ export declare enum ISubscriptionStatus {
|
|
|
3
3
|
CANCELED = "canceled",
|
|
4
4
|
INCOMPLETE = "incomplete",
|
|
5
5
|
EXPIRED = "expired",
|
|
6
|
-
TRIALING = "trialing"
|
|
6
|
+
TRIALING = "trialing",
|
|
7
|
+
TRIAL_ENDED = "trialEnded"
|
|
7
8
|
}
|
|
8
9
|
export declare enum PaymentMethodType {
|
|
9
10
|
UNKNWON = "unknown",
|
|
@@ -5,6 +5,7 @@ export var ISubscriptionStatus;
|
|
|
5
5
|
ISubscriptionStatus["INCOMPLETE"] = "incomplete";
|
|
6
6
|
ISubscriptionStatus["EXPIRED"] = "expired";
|
|
7
7
|
ISubscriptionStatus["TRIALING"] = "trialing";
|
|
8
|
+
ISubscriptionStatus["TRIAL_ENDED"] = "trialEnded";
|
|
8
9
|
})(ISubscriptionStatus || (ISubscriptionStatus = {}));
|
|
9
10
|
export var PaymentMethodType;
|
|
10
11
|
(function (PaymentMethodType) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enums.js","sourceRoot":"","sources":["../../../src/subscriptions/enums.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,
|
|
1
|
+
{"version":3,"file":"enums.js","sourceRoot":"","sources":["../../../src/subscriptions/enums.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,mBAOX;AAPD,WAAY,mBAAmB;IAC7B,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,gDAAyB,CAAA;IACzB,0CAAmB,CAAA;IACnB,4CAAqB,CAAA;IACrB,iDAA0B,CAAA;AAC5B,CAAC,EAPW,mBAAmB,KAAnB,mBAAmB,QAO9B;AAGD,MAAM,CAAN,IAAY,iBAGX;AAHD,WAAY,iBAAiB;IAC3B,wCAAmB,CAAA;IACnB,kCAAa,CAAA;AACf,CAAC,EAHW,iBAAiB,KAAjB,iBAAiB,QAG5B;AAED,MAAM,CAAN,IAAY,+BAEX;AAFD,WAAY,+BAA+B;IACzC,gEAA6B,CAAA;AAC/B,CAAC,EAFW,+BAA+B,KAA/B,+BAA+B,QAE1C;AAED,MAAM,CAAN,IAAY,YAEX;AAFD,WAAY,YAAY;IACtB,iCAAiB,CAAA;AACnB,CAAC,EAFW,YAAY,KAAZ,YAAY,QAEvB"}
|
|
@@ -6,6 +6,7 @@ export interface IPlanResponse {
|
|
|
6
6
|
name: string;
|
|
7
7
|
description: string;
|
|
8
8
|
price: IPlanResponsePriceResponse;
|
|
9
|
+
slug: string;
|
|
9
10
|
}
|
|
10
11
|
export interface IPlanResponsePriceResponse {
|
|
11
12
|
id: string;
|
|
@@ -31,18 +32,6 @@ export interface ISubscriptionPlanResponse {
|
|
|
31
32
|
export interface ISubscriptionCancellationResponse {
|
|
32
33
|
policy: ISubscriptionCancellationPolicy;
|
|
33
34
|
}
|
|
34
|
-
export interface ISubscriptionItemResponse {
|
|
35
|
-
id: string;
|
|
36
|
-
externalId: string;
|
|
37
|
-
planId: string;
|
|
38
|
-
price: ISubscriptionItemPriceResponse;
|
|
39
|
-
}
|
|
40
|
-
export interface ISubscriptionItemPriceResponse {
|
|
41
|
-
id: string;
|
|
42
|
-
externalId: string;
|
|
43
|
-
currency: string;
|
|
44
|
-
amount: number;
|
|
45
|
-
}
|
|
46
35
|
export interface ISubscriptionInvoiceResponse {
|
|
47
36
|
id: string;
|
|
48
37
|
externalId: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -26,6 +26,7 @@ export * from './account-settings/interfaces';
|
|
|
26
26
|
export * from './roles/interfaces';
|
|
27
27
|
export * from './subscriptions/interfaces';
|
|
28
28
|
export * from './vendor/interfaces';
|
|
29
|
+
export * from './routers';
|
|
29
30
|
import { AuthStrategyEnum, SocialLoginProviders } from './auth';
|
|
30
31
|
import { ISubscriptionCancellationPolicy, ISubscriptionStatus, PaymentMethodType, ProviderType } from './subscriptions';
|
|
31
32
|
declare const api: {
|
package/dist/index.js
CHANGED
|
@@ -55,6 +55,7 @@ __exportStar(require("./account-settings/interfaces"), exports);
|
|
|
55
55
|
__exportStar(require("./roles/interfaces"), exports);
|
|
56
56
|
__exportStar(require("./subscriptions/interfaces"), exports);
|
|
57
57
|
__exportStar(require("./vendor/interfaces"), exports);
|
|
58
|
+
__exportStar(require("./routers"), exports);
|
|
58
59
|
const auth_1 = require("./auth");
|
|
59
60
|
Object.defineProperty(exports, "AuthStrategyEnum", { enumerable: true, get: function () { return auth_1.AuthStrategyEnum; } });
|
|
60
61
|
Object.defineProperty(exports, "SocialLoginProviders", { enumerable: true, get: function () { return auth_1.SocialLoginProviders; } });
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA+B;AAC/B,+CAAiC;AACjC,qDAAuC;AACvC,mDAAqC;AACrC,+DAAiD;AACjD,iDAAmC;AACnC,+CAAiC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA+B;AAC/B,+CAAiC;AACjC,qDAAuC;AACvC,mDAAqC;AACrC,+DAAiD;AACjD,iDAAmC;AACnC,+CAAiC;AAkD/B,sBAAK;AAjDP,6DAA+C;AAC/C,mDAAqC;AACrC,oEAAsD;AACtD,+CAAiC;AACjC,+DAAiD;AACjD,mCAAyC;AAgDvC,iGAhDM,wBAAgB,OAgDN;AA/ClB,iDAAmC;AAEnC,mDAA+D;AA0C7D,8FA1CM,6BAAa,OA0CN;AACb,gGA3CqB,+BAAe,OA2CrB;AAzCjB,+CAA6B;AAC7B,oDAAkC;AAClC,qDAAmC;AACnC,wDAAsC;AACtC,uDAAqC;AACrC,4DAA0C;AAC1C,6DAA2C;AAC3C,sDAAoC;AACpC,uDAAqC;AACrC,gEAA8C;AAC9C,qDAAmC;AACnC,6DAA2C;AAC3C,sDAAoC;AACpC,4CAA0B;AAE1B,iCAA6D;AA6B3D,iGA7BM,uBAAgB,OA6BN;AAChB,qGA9BwB,2BAAoB,OA8BxB;AA7BtB,mDAKwB;AAyBtB,gHA7BA,+CAA+B,OA6BA;AAC/B,oGA7BA,mCAAmB,OA6BA;AACnB,kGA7BA,iCAAiB,OA6BA;AACjB,6FA7BA,4BAAY,OA6BA;AA1Bd,MAAM,GAAG,GAAG;IACV,IAAI;IACJ,KAAK;IACL,QAAQ;IACR,OAAO;IACP,YAAY;IACZ,aAAa;IACb,MAAM;IACN,OAAO;IACP,eAAe;IACf,KAAK;IACL,aAAa;IACb,MAAM;CACP,CAAC;AAMA,kBAAG;AAUL,kBAAe;IACb,KAAK;IACL,aAAa,EAAb,6BAAa;IACb,eAAe,EAAf,+BAAe;IACf,GAAG;IACH,gBAAgB,EAAhB,wBAAgB;IAChB,gBAAgB,EAAhB,uBAAgB;IAChB,oBAAoB,EAApB,2BAAoB;IACpB,+BAA+B,EAA/B,+CAA+B;IAC/B,mBAAmB,EAAnB,mCAAmB;IACnB,iBAAiB,EAAjB,iCAAiB;IACjB,YAAY,EAAZ,4BAAY;CACb,CAAC"}
|
package/dist/routers.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.fronteggRefreshTokenUrl = exports.fronteggAuthApiRoutes = void 0;
|
|
4
|
+
const constants_1 = require("./constants");
|
|
5
|
+
exports.fronteggAuthApiRoutes = [
|
|
6
|
+
`${constants_1.urls.identity.auth.v1}/logout`,
|
|
7
|
+
`${constants_1.urls.identity.auth.v1}/user/saml/postlogin`,
|
|
8
|
+
`${constants_1.urls.identity.auth.v2}/user/oidc/postlogin`,
|
|
9
|
+
`${constants_1.urls.identity.auth.v1}/user`,
|
|
10
|
+
`${constants_1.urls.identity.auth.v1}/user/mfa/verify`,
|
|
11
|
+
`${constants_1.urls.identity.auth.v1}/user/token/refresh`,
|
|
12
|
+
`${constants_1.urls.identity.users.v1}`,
|
|
13
|
+
];
|
|
14
|
+
exports.fronteggRefreshTokenUrl = `${constants_1.urls.identity.auth.v1}/user/token/refresh`;
|
|
15
|
+
//# sourceMappingURL=routers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"routers.js","sourceRoot":"","sources":["../src/routers.ts"],"names":[],"mappings":";;;AAAA,2CAAmC;AAEtB,QAAA,qBAAqB,GAAG;IACnC,GAAG,gBAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,SAAS;IACjC,GAAG,gBAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,sBAAsB;IAC9C,GAAG,gBAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,sBAAsB;IAC9C,GAAG,gBAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,OAAO;IAC/B,GAAG,gBAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,kBAAkB;IAC1C,GAAG,gBAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,qBAAqB;IAC7C,GAAG,gBAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,EAAE;CAC5B,CAAA;AAEY,QAAA,uBAAuB,GAAG,GAAG,gBAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,qBAAqB,CAAC"}
|
|
@@ -3,7 +3,8 @@ export declare enum ISubscriptionStatus {
|
|
|
3
3
|
CANCELED = "canceled",
|
|
4
4
|
INCOMPLETE = "incomplete",
|
|
5
5
|
EXPIRED = "expired",
|
|
6
|
-
TRIALING = "trialing"
|
|
6
|
+
TRIALING = "trialing",
|
|
7
|
+
TRIAL_ENDED = "trialEnded"
|
|
7
8
|
}
|
|
8
9
|
export declare enum PaymentMethodType {
|
|
9
10
|
UNKNWON = "unknown",
|
|
@@ -8,6 +8,7 @@ var ISubscriptionStatus;
|
|
|
8
8
|
ISubscriptionStatus["INCOMPLETE"] = "incomplete";
|
|
9
9
|
ISubscriptionStatus["EXPIRED"] = "expired";
|
|
10
10
|
ISubscriptionStatus["TRIALING"] = "trialing";
|
|
11
|
+
ISubscriptionStatus["TRIAL_ENDED"] = "trialEnded";
|
|
11
12
|
})(ISubscriptionStatus = exports.ISubscriptionStatus || (exports.ISubscriptionStatus = {}));
|
|
12
13
|
var PaymentMethodType;
|
|
13
14
|
(function (PaymentMethodType) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enums.js","sourceRoot":"","sources":["../../src/subscriptions/enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,
|
|
1
|
+
{"version":3,"file":"enums.js","sourceRoot":"","sources":["../../src/subscriptions/enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,mBAOX;AAPD,WAAY,mBAAmB;IAC7B,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,gDAAyB,CAAA;IACzB,0CAAmB,CAAA;IACnB,4CAAqB,CAAA;IACrB,iDAA0B,CAAA;AAC5B,CAAC,EAPW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAO9B;AAGD,IAAY,iBAGX;AAHD,WAAY,iBAAiB;IAC3B,wCAAmB,CAAA;IACnB,kCAAa,CAAA;AACf,CAAC,EAHW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAG5B;AAED,IAAY,+BAEX;AAFD,WAAY,+BAA+B;IACzC,gEAA6B,CAAA;AAC/B,CAAC,EAFW,+BAA+B,GAA/B,uCAA+B,KAA/B,uCAA+B,QAE1C;AAED,IAAY,YAEX;AAFD,WAAY,YAAY;IACtB,iCAAiB,CAAA;AACnB,CAAC,EAFW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAEvB"}
|
|
@@ -6,6 +6,7 @@ export interface IPlanResponse {
|
|
|
6
6
|
name: string;
|
|
7
7
|
description: string;
|
|
8
8
|
price: IPlanResponsePriceResponse;
|
|
9
|
+
slug: string;
|
|
9
10
|
}
|
|
10
11
|
export interface IPlanResponsePriceResponse {
|
|
11
12
|
id: string;
|
|
@@ -31,18 +32,6 @@ export interface ISubscriptionPlanResponse {
|
|
|
31
32
|
export interface ISubscriptionCancellationResponse {
|
|
32
33
|
policy: ISubscriptionCancellationPolicy;
|
|
33
34
|
}
|
|
34
|
-
export interface ISubscriptionItemResponse {
|
|
35
|
-
id: string;
|
|
36
|
-
externalId: string;
|
|
37
|
-
planId: string;
|
|
38
|
-
price: ISubscriptionItemPriceResponse;
|
|
39
|
-
}
|
|
40
|
-
export interface ISubscriptionItemPriceResponse {
|
|
41
|
-
id: string;
|
|
42
|
-
externalId: string;
|
|
43
|
-
currency: string;
|
|
44
|
-
amount: number;
|
|
45
|
-
}
|
|
46
35
|
export interface ISubscriptionInvoiceResponse {
|
|
47
36
|
id: string;
|
|
48
37
|
externalId: string;
|
package/dist/umd/index.js
CHANGED
|
@@ -2539,6 +2539,7 @@
|
|
|
2539
2539
|
ISubscriptionStatus["INCOMPLETE"] = "incomplete";
|
|
2540
2540
|
ISubscriptionStatus["EXPIRED"] = "expired";
|
|
2541
2541
|
ISubscriptionStatus["TRIALING"] = "trialing";
|
|
2542
|
+
ISubscriptionStatus["TRIAL_ENDED"] = "trialEnded";
|
|
2542
2543
|
})(exports.ISubscriptionStatus || (exports.ISubscriptionStatus = {}));
|
|
2543
2544
|
exports.PaymentMethodType = void 0;
|
|
2544
2545
|
(function (PaymentMethodType) {
|
|
@@ -2605,6 +2606,17 @@
|
|
|
2605
2606
|
getVendorPublicInfo: getVendorPublicInfo
|
|
2606
2607
|
});
|
|
2607
2608
|
|
|
2609
|
+
const fronteggAuthApiRoutes = [
|
|
2610
|
+
`${urls.identity.auth.v1}/logout`,
|
|
2611
|
+
`${urls.identity.auth.v1}/user/saml/postlogin`,
|
|
2612
|
+
`${urls.identity.auth.v2}/user/oidc/postlogin`,
|
|
2613
|
+
`${urls.identity.auth.v1}/user`,
|
|
2614
|
+
`${urls.identity.auth.v1}/user/mfa/verify`,
|
|
2615
|
+
`${urls.identity.auth.v1}/user/token/refresh`,
|
|
2616
|
+
`${urls.identity.users.v1}`,
|
|
2617
|
+
];
|
|
2618
|
+
const fronteggRefreshTokenUrl = `${urls.identity.auth.v1}/user/token/refresh`;
|
|
2619
|
+
|
|
2608
2620
|
const api = {
|
|
2609
2621
|
auth,
|
|
2610
2622
|
teams,
|
|
@@ -2639,6 +2651,8 @@
|
|
|
2639
2651
|
exports.api = api;
|
|
2640
2652
|
exports.default = index;
|
|
2641
2653
|
exports.fetch = fetch$1;
|
|
2654
|
+
exports.fronteggAuthApiRoutes = fronteggAuthApiRoutes;
|
|
2655
|
+
exports.fronteggRefreshTokenUrl = fronteggRefreshTokenUrl;
|
|
2642
2656
|
|
|
2643
2657
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2644
2658
|
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -28,6 +28,7 @@ export * from './account-settings/interfaces';
|
|
|
28
28
|
export * from './roles/interfaces';
|
|
29
29
|
export * from './subscriptions/interfaces';
|
|
30
30
|
export * from './vendor/interfaces';
|
|
31
|
+
export * from './routers';
|
|
31
32
|
|
|
32
33
|
import {AuthStrategyEnum, SocialLoginProviders} from './auth'
|
|
33
34
|
import {
|
package/src/routers.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { urls } from './constants';
|
|
2
|
+
|
|
3
|
+
export const fronteggAuthApiRoutes = [
|
|
4
|
+
`${urls.identity.auth.v1}/logout`,
|
|
5
|
+
`${urls.identity.auth.v1}/user/saml/postlogin`,
|
|
6
|
+
`${urls.identity.auth.v2}/user/oidc/postlogin`,
|
|
7
|
+
`${urls.identity.auth.v1}/user`,
|
|
8
|
+
`${urls.identity.auth.v1}/user/mfa/verify`,
|
|
9
|
+
`${urls.identity.auth.v1}/user/token/refresh`,
|
|
10
|
+
`${urls.identity.users.v1}`,
|
|
11
|
+
]
|
|
12
|
+
|
|
13
|
+
export const fronteggRefreshTokenUrl = `${urls.identity.auth.v1}/user/token/refresh`;
|
|
@@ -13,6 +13,7 @@ export interface IPlanResponse {
|
|
|
13
13
|
name: string;
|
|
14
14
|
description: string;
|
|
15
15
|
price: IPlanResponsePriceResponse;
|
|
16
|
+
slug: string;
|
|
16
17
|
}
|
|
17
18
|
|
|
18
19
|
export interface IPlanResponsePriceResponse {
|
|
@@ -43,20 +44,6 @@ export interface ISubscriptionCancellationResponse {
|
|
|
43
44
|
policy: ISubscriptionCancellationPolicy;
|
|
44
45
|
}
|
|
45
46
|
|
|
46
|
-
export interface ISubscriptionItemResponse {
|
|
47
|
-
id: string;
|
|
48
|
-
externalId: string;
|
|
49
|
-
planId: string;
|
|
50
|
-
price: ISubscriptionItemPriceResponse;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
export interface ISubscriptionItemPriceResponse {
|
|
54
|
-
id: string;
|
|
55
|
-
externalId: string;
|
|
56
|
-
currency: string;
|
|
57
|
-
amount: number;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
47
|
export interface ISubscriptionInvoiceResponse {
|
|
61
48
|
id: string;
|
|
62
49
|
externalId: string;
|