@verdocs/js-sdk 3.10.14 → 3.10.18
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/Organizations/Members.d.ts +2 -2
- package/Organizations/Members.js +2 -2
- package/Templates/Actions.d.ts +1 -1
- package/Templates/Types.d.ts +1 -1
- package/package.json +10 -10
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { VerdocsEndpoint } from '../VerdocsEndpoint';
|
|
2
|
-
import { IProfile } from '../Users/Types';
|
|
2
|
+
import { IProfile, IRole } from '../Users/Types';
|
|
3
3
|
/**
|
|
4
4
|
* An Organization Member (aka Profile) is an individual user with access to an organization.
|
|
5
5
|
*
|
|
@@ -7,6 +7,6 @@ import { IProfile } from '../Users/Types';
|
|
|
7
7
|
*/
|
|
8
8
|
export declare const getMembers: (endpoint: VerdocsEndpoint, organizationId: string) => Promise<IProfile[]>;
|
|
9
9
|
export declare const deleteMember: (endpoint: VerdocsEndpoint, organizationId: string, profileId: string) => Promise<any>;
|
|
10
|
-
export declare const addMemberRole: (endpoint: VerdocsEndpoint, organizationId: string, profileId: string, roleId: string) => Promise<
|
|
10
|
+
export declare const addMemberRole: (endpoint: VerdocsEndpoint, organizationId: string, profileId: string, roleId: string) => Promise<IRole>;
|
|
11
11
|
export declare const deleteMemberRole: (endpoint: VerdocsEndpoint, organizationId: string, profileId: string, roleId: string) => Promise<any>;
|
|
12
12
|
export declare const getMemberPlans: (endpoint: VerdocsEndpoint, organizationId: string, profileId: string) => Promise<any>;
|
package/Organizations/Members.js
CHANGED
|
@@ -15,12 +15,12 @@ export var deleteMember = function (endpoint, organizationId, profileId) {
|
|
|
15
15
|
};
|
|
16
16
|
export var addMemberRole = function (endpoint, organizationId, profileId, roleId) {
|
|
17
17
|
return endpoint.api //
|
|
18
|
-
.post("/organizations/".concat(organizationId, "/profiles/").concat(profileId, "/
|
|
18
|
+
.post("/organizations/".concat(organizationId, "/profiles/").concat(profileId, "/role/").concat(roleId))
|
|
19
19
|
.then(function (r) { return r.data; });
|
|
20
20
|
};
|
|
21
21
|
export var deleteMemberRole = function (endpoint, organizationId, profileId, roleId) {
|
|
22
22
|
return endpoint.api //
|
|
23
|
-
.delete("/organizations/".concat(organizationId, "/profiles/").concat(profileId, "/
|
|
23
|
+
.delete("/organizations/".concat(organizationId, "/profiles/").concat(profileId, "/role/").concat(roleId))
|
|
24
24
|
.then(function (r) { return r.data; });
|
|
25
25
|
};
|
|
26
26
|
export var getMemberPlans = function (endpoint, organizationId, profileId) {
|
package/Templates/Actions.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ITemplate, ITemplateSummary } from './Types';
|
|
2
2
|
import { TSession } from '../Sessions/Types';
|
|
3
3
|
export declare enum TemplateSenderTypes {
|
|
4
|
-
CREATOR = "creator"
|
|
4
|
+
CREATOR = "creator",// same as legacy
|
|
5
5
|
ORGANIZATION_MEMBER = "organization_member",
|
|
6
6
|
ORGANIZATION_MEMBER_AS_CREATOR = "organization_member_as_creator",
|
|
7
7
|
EVERYONE = "everyone",
|
package/Templates/Types.d.ts
CHANGED
|
@@ -130,7 +130,7 @@ export interface ITemplateSummary {
|
|
|
130
130
|
allowed_operations: TemplateActions[];
|
|
131
131
|
}
|
|
132
132
|
export declare enum TemplateSenderTypes {
|
|
133
|
-
CREATOR = "creator"
|
|
133
|
+
CREATOR = "creator",// same as legacy
|
|
134
134
|
ORGANIZATION_MEMBER = "organization_member",
|
|
135
135
|
ORGANIZATION_MEMBER_AS_CREATOR = "organization_member_as_creator",
|
|
136
136
|
EVERYONE = "everyone",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@verdocs/js-sdk",
|
|
3
|
-
"version": "3.10.
|
|
3
|
+
"version": "3.10.18",
|
|
4
4
|
"private": false,
|
|
5
5
|
"homepage": "https://github.com/Verdocs/js-sdk",
|
|
6
6
|
"description": "Verdocs JS SDK",
|
|
@@ -46,23 +46,23 @@
|
|
|
46
46
|
"access": "public"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"axios": "^1.
|
|
50
|
-
"axios-retry": "^
|
|
49
|
+
"axios": "^1.6.2",
|
|
50
|
+
"axios-retry": "^4.0.0"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
|
-
"typescript": "^5.
|
|
53
|
+
"typescript": "^5.3.2"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@jest/globals": "^29.5.0",
|
|
57
|
-
"@types/jest": "^29.5.
|
|
58
|
-
"axios-mock-adapter": "^1.
|
|
57
|
+
"@types/jest": "^29.5.10",
|
|
58
|
+
"axios-mock-adapter": "^1.22.0",
|
|
59
59
|
"jest": "^29.5.0",
|
|
60
|
-
"prettier": "^3.0
|
|
60
|
+
"prettier": "^3.1.0",
|
|
61
61
|
"ts-jest": "^29.1.1",
|
|
62
62
|
"tslint": "^6.1.3",
|
|
63
63
|
"tslint-config-prettier": "^1.18.0",
|
|
64
|
-
"typedoc": "^0.25.
|
|
65
|
-
"typedoc-plugin-markdown": "^3.
|
|
66
|
-
"typescript": "^5.
|
|
64
|
+
"typedoc": "^0.25.4",
|
|
65
|
+
"typedoc-plugin-markdown": "^3.17.1",
|
|
66
|
+
"typescript": "^5.3.2"
|
|
67
67
|
}
|
|
68
68
|
}
|