@frontegg/rest-api 3.0.93 → 3.0.94

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/groups/enums.d.ts CHANGED
@@ -3,3 +3,7 @@ export declare enum GroupRelations {
3
3
  users = "users",
4
4
  rolesAndUsers = "rolesAndUsers"
5
5
  }
6
+ export declare enum GroupManagedByEnum {
7
+ FRONTEGG = "frontegg",
8
+ SCIM2 = "scim2"
9
+ }
package/groups/enums.js CHANGED
@@ -4,4 +4,11 @@ export let GroupRelations;
4
4
  GroupRelations["roles"] = "roles";
5
5
  GroupRelations["users"] = "users";
6
6
  GroupRelations["rolesAndUsers"] = "rolesAndUsers";
7
- })(GroupRelations || (GroupRelations = {}));
7
+ })(GroupRelations || (GroupRelations = {}));
8
+
9
+ export let GroupManagedByEnum;
10
+
11
+ (function (GroupManagedByEnum) {
12
+ GroupManagedByEnum["FRONTEGG"] = "frontegg";
13
+ GroupManagedByEnum["SCIM2"] = "scim2";
14
+ })(GroupManagedByEnum || (GroupManagedByEnum = {}));
@@ -1,5 +1,5 @@
1
1
  import { IRole } from "../roles/interfaces";
2
- import { GroupRelations } from "./enums";
2
+ import { GroupManagedByEnum, GroupRelations } from "./enums";
3
3
  export declare type IGetGroup = {
4
4
  groupId: string;
5
5
  };
@@ -19,6 +19,7 @@ export declare type IGroupResponse = {
19
19
  metadata?: string;
20
20
  roles?: IRole[];
21
21
  users?: IGroupUser[];
22
+ managedBy: GroupManagedByEnum;
22
23
  };
23
24
  export declare type ICreateGroup = {
24
25
  name: string;
@@ -32,6 +33,7 @@ export declare type ICreateGroupResponse = {
32
33
  color?: string;
33
34
  description?: string;
34
35
  metadata?: string;
36
+ managedBy: GroupManagedByEnum;
35
37
  };
36
38
  export declare type IUpdateGroup = {
37
39
  groupId: string;
package/index.d.ts CHANGED
@@ -39,6 +39,7 @@ export * from "./directory";
39
39
  export * from "./directory/interfaces";
40
40
  export * from "./impersonate/interfaces";
41
41
  export * from "./groups/interfaces";
42
+ export * from "./groups/enums";
42
43
  import { AuthStrategyEnum, SocialLoginProviders, MachineToMachineAuthStrategy } from "./auth";
43
44
  import { ISubscriptionCancellationPolicy, ISubscriptionStatus, PaymentMethodType, ProviderType } from "./subscriptions";
44
45
  declare const api: {
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v3.0.93
1
+ /** @license Frontegg v3.0.94
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
@@ -44,6 +44,7 @@ export * from "./directory";
44
44
  export * from "./directory/interfaces";
45
45
  export * from "./impersonate/interfaces";
46
46
  export * from "./groups/interfaces";
47
+ export * from "./groups/enums";
47
48
  import { AuthStrategyEnum, SocialLoginProviders, MachineToMachineAuthStrategy } from "./auth";
48
49
  import { ISubscriptionCancellationPolicy, ISubscriptionStatus, PaymentMethodType, ProviderType } from "./subscriptions";
49
50
  const api = {
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.GroupRelations = void 0;
6
+ exports.GroupRelations = exports.GroupManagedByEnum = void 0;
7
7
  let GroupRelations;
8
8
  exports.GroupRelations = GroupRelations;
9
9
 
@@ -11,4 +11,12 @@ exports.GroupRelations = GroupRelations;
11
11
  GroupRelations["roles"] = "roles";
12
12
  GroupRelations["users"] = "users";
13
13
  GroupRelations["rolesAndUsers"] = "rolesAndUsers";
14
- })(GroupRelations || (exports.GroupRelations = GroupRelations = {}));
14
+ })(GroupRelations || (exports.GroupRelations = GroupRelations = {}));
15
+
16
+ let GroupManagedByEnum;
17
+ exports.GroupManagedByEnum = GroupManagedByEnum;
18
+
19
+ (function (GroupManagedByEnum) {
20
+ GroupManagedByEnum["FRONTEGG"] = "frontegg";
21
+ GroupManagedByEnum["SCIM2"] = "scim2";
22
+ })(GroupManagedByEnum || (exports.GroupManagedByEnum = GroupManagedByEnum = {}));
package/node/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v3.0.93
1
+ /** @license Frontegg v3.0.94
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
@@ -416,6 +416,20 @@ Object.keys(_interfaces18).forEach(function (key) {
416
416
  });
417
417
  });
418
418
 
419
+ var _enums = require("./groups/enums");
420
+
421
+ Object.keys(_enums).forEach(function (key) {
422
+ if (key === "default" || key === "__esModule") return;
423
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
424
+ if (key in exports && exports[key] === _enums[key]) return;
425
+ Object.defineProperty(exports, key, {
426
+ enumerable: true,
427
+ get: function () {
428
+ return _enums[key];
429
+ }
430
+ });
431
+ });
432
+
419
433
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
420
434
 
421
435
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frontegg/rest-api",
3
- "version": "3.0.93",
3
+ "version": "3.0.94",
4
4
  "main": "./node/index.js",
5
5
  "license": "MIT",
6
6
  "dependencies": {