@frontegg/client
Advanced tools
Comparing version 5.1.0-alpha.2 to 5.1.0-alpha.3
@@ -42,3 +42,3 @@ "use strict"; | ||
result: false, | ||
reason: types_1.EntitlementReasons.MISSING_FEATURE, | ||
justification: types_1.EntitlementJustifications.MISSING_FEATURE, | ||
}; | ||
@@ -54,3 +54,3 @@ } | ||
result: false, | ||
reason: types_1.EntitlementReasons.BUNDLE_EXPIRED, | ||
justification: types_1.EntitlementJustifications.BUNDLE_EXPIRED, | ||
}; | ||
@@ -63,3 +63,3 @@ } | ||
result: false, | ||
reason: types_1.EntitlementReasons.MISSING_PERMISSION, | ||
justification: types_1.EntitlementJustifications.MISSING_PERMISSION, | ||
}; | ||
@@ -79,3 +79,3 @@ } | ||
} | ||
else if (isEntitledToFeatureResult.reason === types_1.EntitlementReasons.BUNDLE_EXPIRED) { | ||
else if (isEntitledToFeatureResult.justification === types_1.EntitlementJustifications.BUNDLE_EXPIRED) { | ||
hasExpired = true; | ||
@@ -86,3 +86,3 @@ } | ||
result: false, | ||
reason: hasExpired ? types_1.EntitlementReasons.BUNDLE_EXPIRED : types_1.EntitlementReasons.MISSING_FEATURE, | ||
justification: hasExpired ? types_1.EntitlementJustifications.BUNDLE_EXPIRED : types_1.EntitlementJustifications.MISSING_FEATURE, | ||
}; | ||
@@ -89,0 +89,0 @@ } |
import { RetryOptions } from '../../utils'; | ||
import { Permission } from '../identity/types'; | ||
export declare enum EntitlementReasons { | ||
export declare enum EntitlementJustifications { | ||
MISSING_FEATURE = "missing-feature", | ||
@@ -10,3 +10,3 @@ MISSING_PERMISSION = "missing-permission", | ||
result: boolean; | ||
reason?: EntitlementReasons; | ||
justification?: EntitlementJustifications; | ||
} | ||
@@ -13,0 +13,0 @@ export type FeatureKey = string; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.EntitlementReasons = void 0; | ||
var EntitlementReasons; | ||
(function (EntitlementReasons) { | ||
EntitlementReasons["MISSING_FEATURE"] = "missing-feature"; | ||
EntitlementReasons["MISSING_PERMISSION"] = "missing-permission"; | ||
EntitlementReasons["BUNDLE_EXPIRED"] = "bundle-expired"; | ||
})(EntitlementReasons = exports.EntitlementReasons || (exports.EntitlementReasons = {})); | ||
exports.EntitlementJustifications = void 0; | ||
var EntitlementJustifications; | ||
(function (EntitlementJustifications) { | ||
EntitlementJustifications["MISSING_FEATURE"] = "missing-feature"; | ||
EntitlementJustifications["MISSING_PERMISSION"] = "missing-permission"; | ||
EntitlementJustifications["BUNDLE_EXPIRED"] = "bundle-expired"; | ||
})(EntitlementJustifications = exports.EntitlementJustifications || (exports.EntitlementJustifications = {})); | ||
//# sourceMappingURL=types.js.map |
@@ -0,1 +1,8 @@ | ||
# [5.1.0-alpha.3](https://github.com/frontegg/nodejs-sdk/compare/5.1.0-alpha.2...5.1.0-alpha.3) (2023-07-25) | ||
### Bug Fixes | ||
* **entitlements:** rename reason to justification ([a437b84](https://github.com/frontegg/nodejs-sdk/commit/a437b84213ebffbe17590f898cb0d6908869121a)) | ||
# [5.1.0-alpha.2](https://github.com/frontegg/nodejs-sdk/compare/5.1.0-alpha.1...5.1.0-alpha.2) (2023-07-21) | ||
@@ -2,0 +9,0 @@ |
{ | ||
"name": "@frontegg/client", | ||
"version": "5.1.0-alpha.2", | ||
"version": "5.1.0-alpha.3", | ||
"description": "Frontegg Javascript Library for backend node servers", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -248,6 +248,6 @@ <br /> | ||
result: boolean, | ||
reason?: string | ||
justficiation?: string | ||
} | ||
``` | ||
When `result: true`, then `reason` is not given. | ||
When `result: true`, then `justficiation` is not given. | ||
@@ -254,0 +254,0 @@ #### Closing the client |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
190179