@frontegg/rest-api 3.0.49 → 3.0.51

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 CHANGED
@@ -186,5 +186,6 @@ export declare const urls: {
186
186
  };
187
187
  directory: {
188
188
  v1: string;
189
+ temp: string;
189
190
  };
190
191
  };
package/constants.js CHANGED
@@ -185,6 +185,7 @@ export const urls = {
185
185
  v1: '/flags'
186
186
  },
187
187
  directory: {
188
- v1: '/directory/resources/v1/configurations/scim2'
188
+ v1: '/directory/resources/v1/configurations/scim2',
189
+ temp: '/directory/resources/scim/temp'
189
190
  }
190
191
  };
@@ -1,4 +1,4 @@
1
- import { Scim2ConnectionConfigResponse, Scim2CreateConnectionConfigRequest, Scim2PatchConnectionConfigRequest } from './interfaces';
1
+ import { Scim2ConnectionConfigResponse, Scim2CountResponse, Scim2CreateConnectionConfigRequest, Scim2PatchConnectionConfigRequest } from './interfaces';
2
2
  /**
3
3
  * returns all scim2 configurations
4
4
  *
@@ -20,3 +20,4 @@ export declare function createConfiguration(body: Scim2CreateConnectionConfigReq
20
20
  * ``authorized user``
21
21
  */
22
22
  export declare function deleteConfiguration(id: string): Promise<void>;
23
+ export declare function countConfigurationUsers(id: string): Promise<Scim2CountResponse>;
@@ -11,4 +11,7 @@ export async function createConfiguration(body) {
11
11
  }
12
12
  export async function deleteConfiguration(id) {
13
13
  return Delete(`${urls.directory.v1}/${id}`);
14
+ }
15
+ export async function countConfigurationUsers(id) {
16
+ return Get(`${urls.directory.temp}/${id}/Users/count`);
14
17
  }
@@ -25,3 +25,6 @@ export interface Scim2CreateConnectionConfigResponse {
25
25
  connectionName: string;
26
26
  token: string;
27
27
  }
28
+ export interface Scim2CountResponse {
29
+ count: number;
30
+ }
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v3.0.49
1
+ /** @license Frontegg v3.0.51
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.
package/node/constants.js CHANGED
@@ -191,7 +191,8 @@ const urls = {
191
191
  v1: '/flags'
192
192
  },
193
193
  directory: {
194
- v1: '/directory/resources/v1/configurations/scim2'
194
+ v1: '/directory/resources/v1/configurations/scim2',
195
+ temp: '/directory/resources/scim/temp'
195
196
  }
196
197
  };
197
198
  exports.urls = urls;
@@ -3,6 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
+ exports.countConfigurationUsers = countConfigurationUsers;
6
7
  exports.createConfiguration = createConfiguration;
7
8
  exports.deleteConfiguration = deleteConfiguration;
8
9
  exports.getConfigs = getConfigs;
@@ -26,4 +27,8 @@ async function createConfiguration(body) {
26
27
 
27
28
  async function deleteConfiguration(id) {
28
29
  return (0, _fetch.Delete)(`${_constants.urls.directory.v1}/${id}`);
30
+ }
31
+
32
+ async function countConfigurationUsers(id) {
33
+ return (0, _fetch.Get)(`${_constants.urls.directory.temp}/${id}/Users/count`);
29
34
  }
package/node/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v3.0.49
1
+ /** @license Frontegg v3.0.51
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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frontegg/rest-api",
3
- "version": "3.0.49",
3
+ "version": "3.0.51",
4
4
  "main": "./node/index.js",
5
5
  "license": "MIT",
6
6
  "dependencies": {