Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@frontegg/rest-api

Package Overview
Dependencies
Maintainers
1
Versions
616
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@frontegg/rest-api - npm Package Compare versions

Comparing version 3.0.134 to 3.0.135

8

entitlements/index.d.ts

@@ -1,9 +0,7 @@

import { UserEntitlementsResponse } from './interfaces';
import { EntitlementsResponse } from './interfaces';
/**
* Load user entitlements data.
* Including all user permissions, features and bundles data.
* Including also isGranted and isEntitled for permissions and features.
* Load entitlements on/off values map by keys
*
* ``authorized user``
*/
export declare function loadEntitlements(): Promise<UserEntitlementsResponse>;
export declare function loadEntitlements(): Promise<EntitlementsResponse>;
/**
* API response for user entitlements data.
* Including all user granted permissions and features data.
* Load entitlements on/off values map by keys API response
*/
export interface UserEntitlementsResponse {
permissions: {
[permissionKey: string]: Entitlement;
};
features: {
[featureKey: string]: Entitlement;
};
export interface EntitlementsResponse {
[key: string]: boolean;
}
export interface Entitlement {
isEntitled: boolean;
notEntitledReason?: NotEntitledReason;
}
export declare enum NotEntitledReason {
MISSING_PERMISSION = "MISSING_PERMISSION",
MISSING_FEATURE = "MISSING_FEATURE",
BUNDLE_EXPIRED = "BUNDLE_EXPIRED"
}

@@ -1,7 +0,1 @@

export let NotEntitledReason;
(function (NotEntitledReason) {
NotEntitledReason["MISSING_PERMISSION"] = "MISSING_PERMISSION";
NotEntitledReason["MISSING_FEATURE"] = "MISSING_FEATURE";
NotEntitledReason["BUNDLE_EXPIRED"] = "BUNDLE_EXPIRED";
})(NotEntitledReason || (NotEntitledReason = {}));
export {};

@@ -1,2 +0,2 @@

/** @license Frontegg v3.0.134
/** @license Frontegg v3.0.135
*

@@ -3,0 +3,0 @@ * This source code is licensed under the MIT license found in the

@@ -5,11 +5,2 @@ "use strict";

value: true
});
exports.NotEntitledReason = void 0;
let NotEntitledReason;
exports.NotEntitledReason = NotEntitledReason;
(function (NotEntitledReason) {
NotEntitledReason["MISSING_PERMISSION"] = "MISSING_PERMISSION";
NotEntitledReason["MISSING_FEATURE"] = "MISSING_FEATURE";
NotEntitledReason["BUNDLE_EXPIRED"] = "BUNDLE_EXPIRED";
})(NotEntitledReason || (exports.NotEntitledReason = NotEntitledReason = {}));
});

@@ -1,2 +0,2 @@

/** @license Frontegg v3.0.134
/** @license Frontegg v3.0.135
*

@@ -3,0 +3,0 @@ * This source code is licensed under the MIT license found in the

{
"name": "@frontegg/rest-api",
"version": "3.0.134",
"version": "3.0.135",
"main": "./node/index.js",

@@ -5,0 +5,0 @@ "license": "MIT",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc