@frontegg/rest-api 3.0.38 → 3.0.40
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/constants.d.ts +3 -0
- package/constants.js +3 -0
- package/directory/index.d.ts +17 -0
- package/directory/index.js +11 -0
- package/directory/interfaces.d.ts +21 -0
- package/directory/interfaces.js +8 -0
- package/directory/package.json +6 -0
- package/index.d.ts +2 -0
- package/index.js +3 -1
- package/node/constants.js +3 -0
- package/node/directory/index.js +24 -0
- package/node/directory/interfaces.js +15 -0
- package/node/index.js +29 -1
- package/package.json +1 -1
- package/teams/interfaces.d.ts +1 -1
package/constants.d.ts
CHANGED
package/constants.js
CHANGED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Scim2ConnectionConfigResponse, Scim2CreateConnectionConfigRequest, Scim2PatchConnectionConfigRequest } from './interfaces';
|
|
2
|
+
/**
|
|
3
|
+
* returns all scim2 configurations
|
|
4
|
+
*
|
|
5
|
+
* ``authorized user``
|
|
6
|
+
*/
|
|
7
|
+
export declare function getConfigs(): Promise<Scim2ConnectionConfigResponse>;
|
|
8
|
+
/**
|
|
9
|
+
* update scim2 configuration
|
|
10
|
+
* ``authorized user``
|
|
11
|
+
*/
|
|
12
|
+
export declare function updateConfiguration(id: string, body: Scim2PatchConnectionConfigRequest): Promise<Scim2ConnectionConfigResponse>;
|
|
13
|
+
/**
|
|
14
|
+
* create scim2 configuration
|
|
15
|
+
* ``authorized user``
|
|
16
|
+
*/
|
|
17
|
+
export declare function createConfiguration(id: string, body: Scim2CreateConnectionConfigRequest): Promise<Scim2ConnectionConfigResponse>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { urls } from '../constants';
|
|
2
|
+
import { Get, Patch, Post } from '../fetch';
|
|
3
|
+
export async function getConfigs() {
|
|
4
|
+
return Get(`${urls.directory.v1}`);
|
|
5
|
+
}
|
|
6
|
+
export async function updateConfiguration(id, body) {
|
|
7
|
+
return Patch(`${urls.directory.v1}/${id}`, body);
|
|
8
|
+
}
|
|
9
|
+
export async function createConfiguration(id, body) {
|
|
10
|
+
return Post(`${urls.directory.v1}`, body);
|
|
11
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export declare enum ScimConnectionSource {
|
|
2
|
+
FRONTEGG = "frontegg",
|
|
3
|
+
OKTA = "okta",
|
|
4
|
+
AZURE_AD = "azure-ad",
|
|
5
|
+
OTHER = "other"
|
|
6
|
+
}
|
|
7
|
+
export interface Scim2ConnectionConfigResponse {
|
|
8
|
+
id: string;
|
|
9
|
+
connectionName: string;
|
|
10
|
+
source: ScimConnectionSource;
|
|
11
|
+
syncToUserManagement: boolean;
|
|
12
|
+
lastSync?: Date | null;
|
|
13
|
+
}
|
|
14
|
+
export interface Scim2CreateConnectionConfigRequest {
|
|
15
|
+
source: ScimConnectionSource;
|
|
16
|
+
connectionName?: string;
|
|
17
|
+
syncToUserManagement?: boolean;
|
|
18
|
+
}
|
|
19
|
+
export interface Scim2PatchConnectionConfigRequest {
|
|
20
|
+
syncToUserManagement?: boolean;
|
|
21
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export let ScimConnectionSource;
|
|
2
|
+
|
|
3
|
+
(function (ScimConnectionSource) {
|
|
4
|
+
ScimConnectionSource["FRONTEGG"] = "frontegg";
|
|
5
|
+
ScimConnectionSource["OKTA"] = "okta";
|
|
6
|
+
ScimConnectionSource["AZURE_AD"] = "azure-ad";
|
|
7
|
+
ScimConnectionSource["OTHER"] = "other";
|
|
8
|
+
})(ScimConnectionSource || (ScimConnectionSource = {}));
|
package/index.d.ts
CHANGED
|
@@ -32,6 +32,8 @@ export * from './sub-tenants/interfaces';
|
|
|
32
32
|
export * from './routers';
|
|
33
33
|
export * from './feature-flags';
|
|
34
34
|
export * from './feature-flags/interfaces';
|
|
35
|
+
export * from './directory';
|
|
36
|
+
export * from './directory/interfaces';
|
|
35
37
|
import { AuthStrategyEnum, SocialLoginProviders } from './auth';
|
|
36
38
|
import { ISubscriptionCancellationPolicy, ISubscriptionStatus, PaymentMethodType, ProviderType } from './subscriptions';
|
|
37
39
|
declare const api: {
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license Frontegg v3.0.
|
|
1
|
+
/** @license Frontegg v3.0.40
|
|
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.
|
|
@@ -37,6 +37,8 @@ export * from './sub-tenants/interfaces';
|
|
|
37
37
|
export * from './routers';
|
|
38
38
|
export * from './feature-flags';
|
|
39
39
|
export * from './feature-flags/interfaces';
|
|
40
|
+
export * from './directory';
|
|
41
|
+
export * from './directory/interfaces';
|
|
40
42
|
import { AuthStrategyEnum, SocialLoginProviders } from './auth';
|
|
41
43
|
import { ISubscriptionCancellationPolicy, ISubscriptionStatus, PaymentMethodType, ProviderType } from './subscriptions';
|
|
42
44
|
const api = {
|
package/node/constants.js
CHANGED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.createConfiguration = createConfiguration;
|
|
7
|
+
exports.getConfigs = getConfigs;
|
|
8
|
+
exports.updateConfiguration = updateConfiguration;
|
|
9
|
+
|
|
10
|
+
var _constants = require("../constants");
|
|
11
|
+
|
|
12
|
+
var _fetch = require("../fetch");
|
|
13
|
+
|
|
14
|
+
async function getConfigs() {
|
|
15
|
+
return (0, _fetch.Get)(`${_constants.urls.directory.v1}`);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
async function updateConfiguration(id, body) {
|
|
19
|
+
return (0, _fetch.Patch)(`${_constants.urls.directory.v1}/${id}`, body);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
async function createConfiguration(id, body) {
|
|
23
|
+
return (0, _fetch.Post)(`${_constants.urls.directory.v1}`, body);
|
|
24
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.ScimConnectionSource = void 0;
|
|
7
|
+
let ScimConnectionSource;
|
|
8
|
+
exports.ScimConnectionSource = ScimConnectionSource;
|
|
9
|
+
|
|
10
|
+
(function (ScimConnectionSource) {
|
|
11
|
+
ScimConnectionSource["FRONTEGG"] = "frontegg";
|
|
12
|
+
ScimConnectionSource["OKTA"] = "okta";
|
|
13
|
+
ScimConnectionSource["AZURE_AD"] = "azure-ad";
|
|
14
|
+
ScimConnectionSource["OTHER"] = "other";
|
|
15
|
+
})(ScimConnectionSource || (exports.ScimConnectionSource = ScimConnectionSource = {}));
|
package/node/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license Frontegg v3.0.
|
|
1
|
+
/** @license Frontegg v3.0.40
|
|
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.
|
|
@@ -349,6 +349,34 @@ Object.keys(_interfaces15).forEach(function (key) {
|
|
|
349
349
|
});
|
|
350
350
|
});
|
|
351
351
|
|
|
352
|
+
var _directory = require("./directory");
|
|
353
|
+
|
|
354
|
+
Object.keys(_directory).forEach(function (key) {
|
|
355
|
+
if (key === "default" || key === "__esModule") return;
|
|
356
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
357
|
+
if (key in exports && exports[key] === _directory[key]) return;
|
|
358
|
+
Object.defineProperty(exports, key, {
|
|
359
|
+
enumerable: true,
|
|
360
|
+
get: function () {
|
|
361
|
+
return _directory[key];
|
|
362
|
+
}
|
|
363
|
+
});
|
|
364
|
+
});
|
|
365
|
+
|
|
366
|
+
var _interfaces16 = require("./directory/interfaces");
|
|
367
|
+
|
|
368
|
+
Object.keys(_interfaces16).forEach(function (key) {
|
|
369
|
+
if (key === "default" || key === "__esModule") return;
|
|
370
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
371
|
+
if (key in exports && exports[key] === _interfaces16[key]) return;
|
|
372
|
+
Object.defineProperty(exports, key, {
|
|
373
|
+
enumerable: true,
|
|
374
|
+
get: function () {
|
|
375
|
+
return _interfaces16[key];
|
|
376
|
+
}
|
|
377
|
+
});
|
|
378
|
+
});
|
|
379
|
+
|
|
352
380
|
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); }
|
|
353
381
|
|
|
354
382
|
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