@frontegg/rest-api 3.0.88 → 3.0.90
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/index.d.ts +4 -0
- package/index.js +5 -2
- package/node/index.js +19 -2
- package/package.json +1 -1
- package/teams/interfaces.d.ts +8 -7
package/index.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ import * as subTenants from "./sub-tenants";
|
|
|
16
16
|
import * as featureFlags from "./feature-flags";
|
|
17
17
|
import * as directory from "./directory";
|
|
18
18
|
import * as impersonate from "./impersonate";
|
|
19
|
+
import * as groups from "./groups";
|
|
19
20
|
import { ContextHolder, FronteggContext } from "./ContextHolder";
|
|
20
21
|
export * from "./interfaces";
|
|
21
22
|
export * from "./auth/interfaces";
|
|
@@ -37,6 +38,7 @@ export * from "./feature-flags/interfaces";
|
|
|
37
38
|
export * from "./directory";
|
|
38
39
|
export * from "./directory/interfaces";
|
|
39
40
|
export * from "./impersonate/interfaces";
|
|
41
|
+
export * from "./groups/interfaces";
|
|
40
42
|
import { AuthStrategyEnum, SocialLoginProviders, MachineToMachineAuthStrategy } from "./auth";
|
|
41
43
|
import { ISubscriptionCancellationPolicy, ISubscriptionStatus, PaymentMethodType, ProviderType } from "./subscriptions";
|
|
42
44
|
declare const api: {
|
|
@@ -56,6 +58,7 @@ declare const api: {
|
|
|
56
58
|
featureFlags: typeof featureFlags;
|
|
57
59
|
directory: typeof directory;
|
|
58
60
|
impersonate: typeof impersonate;
|
|
61
|
+
groups: typeof groups;
|
|
59
62
|
};
|
|
60
63
|
export { fetch, ContextHolder, FronteggContext, api, FronteggApiError, AuthStrategyEnum, SocialLoginProviders, ISubscriptionCancellationPolicy, ISubscriptionStatus, PaymentMethodType, ProviderType, MachineToMachineAuthStrategy, };
|
|
61
64
|
declare const _default: {
|
|
@@ -85,6 +88,7 @@ declare const _default: {
|
|
|
85
88
|
featureFlags: typeof featureFlags;
|
|
86
89
|
directory: typeof directory;
|
|
87
90
|
impersonate: typeof impersonate;
|
|
91
|
+
groups: typeof groups;
|
|
88
92
|
};
|
|
89
93
|
FronteggApiError: typeof FronteggApiError;
|
|
90
94
|
AuthStrategyEnum: typeof auth.AuthStrategyEnum;
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license Frontegg v3.0.
|
|
1
|
+
/** @license Frontegg v3.0.90
|
|
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.
|
|
@@ -21,6 +21,7 @@ import * as subTenants from "./sub-tenants";
|
|
|
21
21
|
import * as featureFlags from "./feature-flags";
|
|
22
22
|
import * as directory from "./directory";
|
|
23
23
|
import * as impersonate from "./impersonate";
|
|
24
|
+
import * as groups from "./groups";
|
|
24
25
|
import { ContextHolder, FronteggContext } from "./ContextHolder";
|
|
25
26
|
export * from "./interfaces";
|
|
26
27
|
export * from "./auth/interfaces";
|
|
@@ -42,6 +43,7 @@ export * from "./feature-flags/interfaces";
|
|
|
42
43
|
export * from "./directory";
|
|
43
44
|
export * from "./directory/interfaces";
|
|
44
45
|
export * from "./impersonate/interfaces";
|
|
46
|
+
export * from "./groups/interfaces";
|
|
45
47
|
import { AuthStrategyEnum, SocialLoginProviders, MachineToMachineAuthStrategy } from "./auth";
|
|
46
48
|
import { ISubscriptionCancellationPolicy, ISubscriptionStatus, PaymentMethodType, ProviderType } from "./subscriptions";
|
|
47
49
|
const api = {
|
|
@@ -60,7 +62,8 @@ const api = {
|
|
|
60
62
|
subTenants,
|
|
61
63
|
featureFlags,
|
|
62
64
|
directory,
|
|
63
|
-
impersonate
|
|
65
|
+
impersonate,
|
|
66
|
+
groups
|
|
64
67
|
};
|
|
65
68
|
export { fetch, ContextHolder, FronteggContext, api, FronteggApiError, AuthStrategyEnum, SocialLoginProviders, ISubscriptionCancellationPolicy, ISubscriptionStatus, PaymentMethodType, ProviderType, MachineToMachineAuthStrategy };
|
|
66
69
|
export default {
|
package/node/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license Frontegg v3.0.
|
|
1
|
+
/** @license Frontegg v3.0.90
|
|
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.
|
|
@@ -146,6 +146,8 @@ Object.keys(directory).forEach(function (key) {
|
|
|
146
146
|
|
|
147
147
|
var impersonate = _interopRequireWildcard(require("./impersonate"));
|
|
148
148
|
|
|
149
|
+
var groups = _interopRequireWildcard(require("./groups"));
|
|
150
|
+
|
|
149
151
|
var _ContextHolder = require("./ContextHolder");
|
|
150
152
|
|
|
151
153
|
var _interfaces = require("./interfaces");
|
|
@@ -400,6 +402,20 @@ Object.keys(_interfaces17).forEach(function (key) {
|
|
|
400
402
|
});
|
|
401
403
|
});
|
|
402
404
|
|
|
405
|
+
var _interfaces18 = require("./groups/interfaces");
|
|
406
|
+
|
|
407
|
+
Object.keys(_interfaces18).forEach(function (key) {
|
|
408
|
+
if (key === "default" || key === "__esModule") return;
|
|
409
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
410
|
+
if (key in exports && exports[key] === _interfaces18[key]) return;
|
|
411
|
+
Object.defineProperty(exports, key, {
|
|
412
|
+
enumerable: true,
|
|
413
|
+
get: function () {
|
|
414
|
+
return _interfaces18[key];
|
|
415
|
+
}
|
|
416
|
+
});
|
|
417
|
+
});
|
|
418
|
+
|
|
403
419
|
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); }
|
|
404
420
|
|
|
405
421
|
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; }
|
|
@@ -420,7 +436,8 @@ const api = {
|
|
|
420
436
|
subTenants,
|
|
421
437
|
featureFlags,
|
|
422
438
|
directory,
|
|
423
|
-
impersonate
|
|
439
|
+
impersonate,
|
|
440
|
+
groups
|
|
424
441
|
};
|
|
425
442
|
exports.api = api;
|
|
426
443
|
var _default = {
|
package/package.json
CHANGED
package/teams/interfaces.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { QueryFilter, QuerySort } from
|
|
2
|
-
import { IRole, IRolePermission } from
|
|
1
|
+
import { QueryFilter, QuerySort } from "../interfaces";
|
|
2
|
+
import { IRole, IRolePermission } from "../roles/interfaces";
|
|
3
3
|
export declare enum UserManagedByEnum {
|
|
4
4
|
FRONTEGG = "frontegg",
|
|
5
5
|
SCIM2 = "scim2"
|
|
@@ -22,6 +22,7 @@ export declare type IUserProfile = {
|
|
|
22
22
|
verified?: boolean;
|
|
23
23
|
superUser?: boolean;
|
|
24
24
|
managedBy?: UserManagedByEnum;
|
|
25
|
+
provider?: string;
|
|
25
26
|
};
|
|
26
27
|
export declare type ITeamUserTenant = {
|
|
27
28
|
tenantId: string;
|
|
@@ -77,7 +78,7 @@ export declare type ITeamStats = {
|
|
|
77
78
|
superAdmins: number;
|
|
78
79
|
};
|
|
79
80
|
export declare type IUpdateProfile = {
|
|
80
|
-
title:
|
|
81
|
+
title: "Mr" | "Miss" | "Mrs" | "Ms";
|
|
81
82
|
name: string;
|
|
82
83
|
country: string;
|
|
83
84
|
phoneNumber: string;
|
|
@@ -122,8 +123,8 @@ export declare type ICreateOrUpdateInviteUserLink = {
|
|
|
122
123
|
shouldSendEmail?: boolean;
|
|
123
124
|
};
|
|
124
125
|
/**
|
|
125
|
-
* invite config
|
|
126
|
-
*/
|
|
126
|
+
* invite config
|
|
127
|
+
*/
|
|
127
128
|
export declare type IInviteUserLinkResponse = {
|
|
128
129
|
id: string;
|
|
129
130
|
vendorId: string;
|
|
@@ -134,8 +135,8 @@ export declare type IInviteUserLinkResponse = {
|
|
|
134
135
|
shouldSendEmail?: boolean;
|
|
135
136
|
};
|
|
136
137
|
/**
|
|
137
|
-
* vendor config
|
|
138
|
-
*/
|
|
138
|
+
* vendor config
|
|
139
|
+
*/
|
|
139
140
|
export declare type IInviteLinkConfiguration = {
|
|
140
141
|
tenantInvitationsAllowed: boolean;
|
|
141
142
|
emailsEnabled: boolean;
|