@frontegg/rest-api 3.0.43 → 3.0.44

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.
@@ -1,10 +1,10 @@
1
- import { Scim2ConnectionConfigResponse, Scim2CreateConnectionConfigRequest, Scim2CreateConnectionConfigResponse, Scim2PatchConnectionConfigRequest } from './interfaces';
1
+ import { Scim2ConnectionConfigResponse, Scim2CreateConnectionConfigRequest, Scim2PatchConnectionConfigRequest } from './interfaces';
2
2
  /**
3
3
  * returns all scim2 configurations
4
4
  *
5
5
  * ``authorized user``
6
6
  */
7
- export declare function getConfigs(): Promise<Scim2ConnectionConfigResponse>;
7
+ export declare function getConfigs(): Promise<Scim2ConnectionConfigResponse[]>;
8
8
  /**
9
9
  * update scim2 configuration
10
10
  * ``authorized user``
@@ -14,4 +14,9 @@ export declare function updateConfiguration(id: string, body: Scim2PatchConnecti
14
14
  * create scim2 configuration
15
15
  * ``authorized user``
16
16
  */
17
- export declare function createConfiguration(id: string, body: Scim2CreateConnectionConfigRequest): Promise<Scim2CreateConnectionConfigResponse>;
17
+ export declare function createConfiguration(body: Scim2CreateConnectionConfigRequest): Promise<Scim2ConnectionConfigResponse>;
18
+ /**
19
+ * delete scim2 configuration
20
+ * ``authorized user``
21
+ */
22
+ export declare function deleteConfiguration(id: string): Promise<void>;
@@ -1,11 +1,14 @@
1
1
  import { urls } from '../constants';
2
- import { Get, Patch, Post } from '../fetch';
2
+ import { Delete, Get, Patch, Post } from '../fetch';
3
3
  export async function getConfigs() {
4
4
  return Get(`${urls.directory.v1}`);
5
5
  }
6
6
  export async function updateConfiguration(id, body) {
7
7
  return Patch(`${urls.directory.v1}/${id}`, body);
8
8
  }
9
- export async function createConfiguration(id, body) {
9
+ export async function createConfiguration(body) {
10
10
  return Post(`${urls.directory.v1}`, body);
11
+ }
12
+ export async function deleteConfiguration(id) {
13
+ return Delete(`${urls.directory.v1}/${id}`);
11
14
  }
package/index.d.ts CHANGED
@@ -14,6 +14,7 @@ import { FronteggApiError } from './error';
14
14
  import * as vendor from './vendor';
15
15
  import * as subTenants from './sub-tenants';
16
16
  import * as featureFlags from './feature-flags';
17
+ import * as directory from './directory';
17
18
  import { ContextHolder, FronteggContext } from './ContextHolder';
18
19
  export * from './interfaces';
19
20
  export * from './auth/interfaces';
@@ -51,6 +52,7 @@ declare const api: {
51
52
  vendor: typeof vendor;
52
53
  subTenants: typeof subTenants;
53
54
  featureFlags: typeof featureFlags;
55
+ directory: typeof directory;
54
56
  };
55
57
  export { fetch, ContextHolder, FronteggContext, api, FronteggApiError, AuthStrategyEnum, SocialLoginProviders, ISubscriptionCancellationPolicy, ISubscriptionStatus, PaymentMethodType, ProviderType, };
56
58
  declare const _default: {
@@ -78,6 +80,7 @@ declare const _default: {
78
80
  vendor: typeof vendor;
79
81
  subTenants: typeof subTenants;
80
82
  featureFlags: typeof featureFlags;
83
+ directory: typeof directory;
81
84
  };
82
85
  FronteggApiError: typeof FronteggApiError;
83
86
  AuthStrategyEnum: typeof auth.AuthStrategyEnum;
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v3.0.43
1
+ /** @license Frontegg v3.0.44
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.
@@ -19,6 +19,7 @@ import { FronteggApiError } from './error';
19
19
  import * as vendor from './vendor';
20
20
  import * as subTenants from './sub-tenants';
21
21
  import * as featureFlags from './feature-flags';
22
+ import * as directory from './directory';
22
23
  import { ContextHolder, FronteggContext } from './ContextHolder';
23
24
  export * from './interfaces';
24
25
  export * from './auth/interfaces';
@@ -55,7 +56,8 @@ const api = {
55
56
  subscriptions,
56
57
  vendor,
57
58
  subTenants,
58
- featureFlags
59
+ featureFlags,
60
+ directory
59
61
  };
60
62
  export { fetch, ContextHolder, FronteggContext, api, FronteggApiError, AuthStrategyEnum, SocialLoginProviders, ISubscriptionCancellationPolicy, ISubscriptionStatus, PaymentMethodType, ProviderType };
61
63
  export default {
@@ -4,6 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.createConfiguration = createConfiguration;
7
+ exports.deleteConfiguration = deleteConfiguration;
7
8
  exports.getConfigs = getConfigs;
8
9
  exports.updateConfiguration = updateConfiguration;
9
10
 
@@ -19,6 +20,10 @@ async function updateConfiguration(id, body) {
19
20
  return (0, _fetch.Patch)(`${_constants.urls.directory.v1}/${id}`, body);
20
21
  }
21
22
 
22
- async function createConfiguration(id, body) {
23
+ async function createConfiguration(body) {
23
24
  return (0, _fetch.Post)(`${_constants.urls.directory.v1}`, body);
25
+ }
26
+
27
+ async function deleteConfiguration(id) {
28
+ return (0, _fetch.Delete)(`${_constants.urls.directory.v1}/${id}`);
24
29
  }
package/node/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v3.0.43
1
+ /** @license Frontegg v3.0.44
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.
@@ -123,6 +123,20 @@ Object.keys(featureFlags).forEach(function (key) {
123
123
  });
124
124
  });
125
125
 
126
+ var directory = _interopRequireWildcard(require("./directory"));
127
+
128
+ Object.keys(directory).forEach(function (key) {
129
+ if (key === "default" || key === "__esModule") return;
130
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
131
+ if (key in exports && exports[key] === directory[key]) return;
132
+ Object.defineProperty(exports, key, {
133
+ enumerable: true,
134
+ get: function () {
135
+ return directory[key];
136
+ }
137
+ });
138
+ });
139
+
126
140
  var _ContextHolder = require("./ContextHolder");
127
141
 
128
142
  var _interfaces = require("./interfaces");
@@ -349,20 +363,6 @@ Object.keys(_interfaces15).forEach(function (key) {
349
363
  });
350
364
  });
351
365
 
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
366
  var _interfaces16 = require("./directory/interfaces");
367
367
 
368
368
  Object.keys(_interfaces16).forEach(function (key) {
@@ -395,7 +395,8 @@ const api = {
395
395
  subscriptions,
396
396
  vendor,
397
397
  subTenants,
398
- featureFlags
398
+ featureFlags,
399
+ directory
399
400
  };
400
401
  exports.api = api;
401
402
  var _default = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frontegg/rest-api",
3
- "version": "3.0.43",
3
+ "version": "3.0.44",
4
4
  "main": "./node/index.js",
5
5
  "license": "MIT",
6
6
  "dependencies": {