@frontegg/rest-api 3.1.50 → 3.1.52
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.js +2 -2
- package/index.js +1 -1
- package/node/constants.js +2 -2
- package/node/index.js +1 -1
- package/node/teams/index.js +5 -0
- package/package.json +1 -1
- package/teams/index.d.ts +4 -0
- package/teams/index.js +3 -0
- package/teams/interfaces.d.ts +1 -1
package/constants.js
CHANGED
|
@@ -53,9 +53,9 @@ export const urls = {
|
|
|
53
53
|
v1: '/identity/resources/users/v1/me/authorization'
|
|
54
54
|
},
|
|
55
55
|
temporary: {
|
|
56
|
-
v1: '/identity/users/temporary/v1',
|
|
56
|
+
v1: '/identity/resources/users/temporary/v1',
|
|
57
57
|
configuration: {
|
|
58
|
-
v1: '/identity/users/temporary/v1/configuration'
|
|
58
|
+
v1: '/identity/resources/users/temporary/v1/configuration'
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
},
|
package/index.js
CHANGED
package/node/constants.js
CHANGED
|
@@ -59,9 +59,9 @@ const urls = {
|
|
|
59
59
|
v1: '/identity/resources/users/v1/me/authorization'
|
|
60
60
|
},
|
|
61
61
|
temporary: {
|
|
62
|
-
v1: '/identity/users/temporary/v1',
|
|
62
|
+
v1: '/identity/resources/users/temporary/v1',
|
|
63
63
|
configuration: {
|
|
64
|
-
v1: '/identity/users/temporary/v1/configuration'
|
|
64
|
+
v1: '/identity/resources/users/temporary/v1/configuration'
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
67
|
},
|
package/node/index.js
CHANGED
package/node/teams/index.js
CHANGED
|
@@ -21,6 +21,7 @@ exports.loadUsers = loadUsers;
|
|
|
21
21
|
exports.resendActivationLink = resendActivationLink;
|
|
22
22
|
exports.resendInvitationLink = resendInvitationLink;
|
|
23
23
|
exports.resendInvitationLinkToAllTenants = resendInvitationLinkToAllTenants;
|
|
24
|
+
exports.setPermanentUser = setPermanentUser;
|
|
24
25
|
exports.updateInviteUserLink = updateInviteUserLink;
|
|
25
26
|
exports.updateProfile = updateProfile;
|
|
26
27
|
exports.updateProfileImage = updateProfileImage;
|
|
@@ -94,6 +95,10 @@ async function updateUserExpirationTime(body) {
|
|
|
94
95
|
});
|
|
95
96
|
}
|
|
96
97
|
|
|
98
|
+
async function setPermanentUser(userId) {
|
|
99
|
+
return (0, _fetch.Delete)(`${_constants.urls.identity.users.temporary.v1}/${userId}`);
|
|
100
|
+
}
|
|
101
|
+
|
|
97
102
|
async function getTemporaryUserConfiguration() {
|
|
98
103
|
return (0, _fetch.Get)(_constants.urls.identity.users.temporary.configuration.v1);
|
|
99
104
|
}
|
package/package.json
CHANGED
package/teams/index.d.ts
CHANGED
|
@@ -63,6 +63,10 @@ export declare function updateUser(body: IUpdateUser): Promise<ITeamUser>;
|
|
|
63
63
|
* ``authorized user``
|
|
64
64
|
*/
|
|
65
65
|
export declare function updateUserExpirationTime(body: IUpdateUserExpiration): Promise<void>;
|
|
66
|
+
/**
|
|
67
|
+
* set user as permanent
|
|
68
|
+
*/
|
|
69
|
+
export declare function setPermanentUser(userId: string): Promise<void>;
|
|
66
70
|
/**
|
|
67
71
|
* get temporary user configuration
|
|
68
72
|
*/
|
package/teams/index.js
CHANGED
|
@@ -53,6 +53,9 @@ export async function updateUserExpirationTime(body) {
|
|
|
53
53
|
expirationInSeconds
|
|
54
54
|
});
|
|
55
55
|
}
|
|
56
|
+
export async function setPermanentUser(userId) {
|
|
57
|
+
return Delete(`${urls.identity.users.temporary.v1}/${userId}`);
|
|
58
|
+
}
|
|
56
59
|
export async function getTemporaryUserConfiguration() {
|
|
57
60
|
return Get(urls.identity.users.temporary.configuration.v1);
|
|
58
61
|
}
|
package/teams/interfaces.d.ts
CHANGED