@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 +1 -0
- package/constants.js +2 -1
- package/directory/index.d.ts +2 -1
- package/directory/index.js +3 -0
- package/directory/interfaces.d.ts +3 -0
- package/index.js +1 -1
- package/node/constants.js +2 -1
- package/node/directory/index.js +5 -0
- package/node/index.js +1 -1
- package/package.json +1 -1
package/constants.d.ts
CHANGED
package/constants.js
CHANGED
package/directory/index.d.ts
CHANGED
|
@@ -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>;
|
package/directory/index.js
CHANGED
|
@@ -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
|
}
|
package/index.js
CHANGED
package/node/constants.js
CHANGED
package/node/directory/index.js
CHANGED
|
@@ -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