@neuralinnovations/dataisland-sdk 0.0.1-dev8 → 0.0.1-dev9
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/.github/workflows/publish-npm.yml +11 -0
- package/.github/workflows/tests.yml +4 -0
- package/.github/workflows/version.yml +5 -1
- package/README.md +36 -3
- package/docs/classes/BasicCredential.md +1 -1
- package/docs/classes/BearerCredential.md +1 -1
- package/docs/classes/Chat.md +34 -6
- package/docs/classes/Chats.md +87 -1
- package/docs/classes/CredentialBase.md +1 -1
- package/docs/classes/DataIslandApp.md +1 -1
- package/docs/classes/DebugCredential.md +1 -1
- package/docs/classes/DefaultCredential.md +1 -1
- package/docs/classes/DisposableContainer.md +1 -1
- package/docs/classes/EventDispatcher.md +1 -1
- package/docs/classes/File.md +1 -1
- package/docs/classes/Files.md +2 -2
- package/docs/classes/FilesPage.md +1 -1
- package/docs/classes/Group.md +19 -1
- package/docs/classes/Groups.md +27 -3
- package/docs/classes/Lifetime.md +1 -1
- package/docs/classes/Organization.md +37 -1
- package/docs/classes/Organizations.md +1 -1
- package/docs/classes/UserProfile.md +1 -1
- package/docs/classes/Workspace.md +1 -1
- package/docs/classes/Workspaces.md +6 -2
- package/docs/enums/ChatAnswerType.md +22 -0
- package/docs/enums/ChatsEvent.md +1 -1
- package/docs/enums/FilesEvent.md +1 -1
- package/docs/enums/GroupEvent.md +3 -1
- package/docs/enums/OrganizationsEvent.md +1 -1
- package/docs/enums/UserEvent.md +1 -1
- package/docs/enums/WorkspaceEvent.md +1 -1
- package/docs/enums/WorkspacesEvent.md +1 -1
- package/docs/interfaces/Disposable.md +1 -1
- package/docs/interfaces/Event.md +1 -1
- package/docs/interfaces/EventSubscriber.md +1 -1
- package/docs/interfaces/Input.md +1 -1
- package/docs/modules.md +5 -3
- package/package.json +6 -2
- package/src/dataIslandApp.ts +2 -2
- package/src/dto/chatResponse.ts +54 -55
- package/src/dto/workspacesResponse.ts +2 -2
- package/src/index.ts +13 -13
- package/src/internal/app.impl.ts +2 -2
- package/src/services/organizationService.ts +2 -2
- package/src/services/userProfileService.ts +2 -2
- package/src/storages/chats/answer.impl.ts +163 -0
- package/src/storages/chats/answer.ts +42 -0
- package/src/storages/chats/chat.impl.ts +87 -0
- package/src/storages/chats/chat.ts +38 -0
- package/src/storages/chats/chats.impl.ts +142 -0
- package/src/storages/chats/chats.ts +47 -0
- package/src/storages/{file.impl.ts → files/file.impl.ts} +5 -5
- package/src/storages/{file.ts → files/file.ts} +1 -1
- package/src/storages/{files.impl.ts → files/files.impl.ts} +6 -6
- package/src/storages/{files.ts → files/files.ts} +2 -2
- package/src/storages/{groups.impl.ts → groups/groups.impl.ts} +86 -97
- package/src/storages/groups/groups.ts +101 -0
- package/src/storages/{organization.impl.ts → organizations/organization.impl.ts} +34 -7
- package/src/storages/{organization.ts → organizations/organization.ts} +13 -2
- package/src/storages/{organizations.impl.ts → organizations/organizations.impl.ts} +10 -4
- package/src/storages/{organizations.ts → organizations/organizations.ts} +1 -1
- package/src/storages/{userProfile.impl.ts → user/userProfile.impl.ts} +1 -1
- package/src/storages/{userProfile.ts → user/userProfile.ts} +1 -1
- package/src/storages/{workspace.impl.ts → workspaces/workspace.impl.ts} +7 -7
- package/src/storages/{workspace.ts → workspaces/workspace.ts} +3 -3
- package/src/storages/{workspaces.impl.ts → workspaces/workspaces.impl.ts} +11 -11
- package/src/storages/{workspaces.ts → workspaces/workspaces.ts} +2 -2
- package/test/chats.test.ts +48 -0
- package/test/organization.test.ts +13 -1
- package/test/setup.ts +7 -0
- package/docs/enums/ChatAnswer.md +0 -22
- package/src/storages/chat.ts +0 -21
- package/src/storages/chats.ts +0 -17
- package/src/storages/groups.ts +0 -43
- /package/src/storages/{filesPage.ts → files/filesPage.ts} +0 -0
@@ -31,3 +31,14 @@ jobs:
|
|
31
31
|
run: npm publish --access public
|
32
32
|
env:
|
33
33
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
34
|
+
|
35
|
+
- name: Read Version
|
36
|
+
id: package_version
|
37
|
+
run: echo "::set-output name=VERSION::$(node -p "require('./package.json').version")"
|
38
|
+
|
39
|
+
- name: Tag Release
|
40
|
+
run: |
|
41
|
+
git config --local user.email "action@github.com"
|
42
|
+
git config --local user.name "GitHub Action"
|
43
|
+
git tag v${{ steps.package_version.outputs.VERSION }}
|
44
|
+
git push origin v${{ steps.package_version.outputs.VERSION }}
|
@@ -2,6 +2,7 @@ name: Tests
|
|
2
2
|
|
3
3
|
on:
|
4
4
|
push:
|
5
|
+
workflow_dispatch:
|
5
6
|
pull_request:
|
6
7
|
branches:
|
7
8
|
- master
|
@@ -14,6 +15,9 @@ on:
|
|
14
15
|
jobs:
|
15
16
|
tests:
|
16
17
|
runs-on: ubuntu-latest
|
18
|
+
concurrency:
|
19
|
+
group: unitTests
|
20
|
+
cancel-in-progress: false
|
17
21
|
steps:
|
18
22
|
- uses: actions/checkout@v4
|
19
23
|
|
@@ -29,10 +29,14 @@ jobs:
|
|
29
29
|
|
30
30
|
- name: Compare versions
|
31
31
|
run: |
|
32
|
+
echo "BASE_VERSION=${{ env.BASE_VERSION }}"
|
33
|
+
echo "HEAD_VERSION=${{ env.HEAD_VERSION }}"
|
34
|
+
|
35
|
+
SORTED_VERSIONS=$(echo -e "${{ env.BASE_VERSION }}\n${{ env.HEAD_VERSION }}" | sort -Vr | head -n 1)
|
32
36
|
if [ "${{ env.HEAD_VERSION }}" = "${{ env.BASE_VERSION }}" ]; then
|
33
37
|
echo "Error: Version in PR is the same as the base branch. It must be strictly higher."
|
34
38
|
exit 1
|
35
|
-
elif [ "$
|
39
|
+
elif [ "$SORTED_VERSIONS" != "${{ env.HEAD_VERSION }}" ]; then
|
36
40
|
echo "Error: Version in PR must be strictly higher than the base branch."
|
37
41
|
exit 1
|
38
42
|
else
|
package/README.md
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
@neuralinnovations/dataisland-sdk/[Exports](./docs/modules.md)
|
2
2
|
|
3
|
-

|
4
|
+

|
4
5
|
|
5
6
|
# DataIsland Client SDK
|
6
7
|
|
@@ -96,6 +97,7 @@ const org = await app.organizations.create(
|
|
96
97
|
'your-organization-description'
|
97
98
|
)
|
98
99
|
```
|
100
|
+
|
99
101
|
1. [Organization](docs/classes/Organization.md) is a main object for user data management. It contains of users, workspaces and chats.
|
100
102
|
2. [Organizations](docs/classes/Organizations.md) is a collection of organizations.
|
101
103
|
|
@@ -103,7 +105,7 @@ const org = await app.organizations.create(
|
|
103
105
|
|
104
106
|
### Use workspaces
|
105
107
|
|
106
|
-
Workspaces are folder-like objects used to store files and controll access to it using acces groups. During creation you must pass organization Id, name and description of new workspace and regulation options. You can pass existing group ID or ask to create new group for this workspace in regulation section.
|
108
|
+
Workspaces are folder-like objects used to store files and controll access to it using acces groups. During creation you must pass organization Id, name and description of new workspace and regulation options. You can pass existing group ID or ask to create new group for this workspace in regulation section.
|
107
109
|
|
108
110
|
Default workspace creation example:
|
109
111
|
|
@@ -132,14 +134,45 @@ const workspace = await org.workspaces.create(
|
|
132
134
|
}
|
133
135
|
)
|
134
136
|
```
|
135
|
-
1. [Workspace](docs/classes/Workspace.md) is a main object for files management. It contains of files, chats and access groups.
|
136
137
|
|
138
|
+
1. [Workspace](docs/classes/Workspace.md) is a main object for files management. It contains of files, chats and access groups.
|
137
139
|
2. [Worskpaces](docs/classes/Workspaces.md) is a collection of workspaces.
|
138
140
|
|
139
141
|
---
|
140
142
|
|
141
143
|
### Use files
|
142
144
|
|
145
|
+
Files are part of workspaces and can be managed through workspace interface. You can upload, preview and delete files.
|
146
|
+
|
147
|
+
Default file upload example:
|
148
|
+
|
149
|
+
```
|
150
|
+
const file = await workspace.files.upload(file)
|
151
|
+
```
|
152
|
+
|
153
|
+
The file uploading process always takes some time, so you can track its uploading status using the "status" method. The status result object includes a success indicator, the total count of file parts, the count of uploaded file parts, and an error field. The success indicator represents whether the last file part was uploaded successfully or not. If one of the parts fails, the uploading process is stopped, and the "error" field contains the text of the failure reason.
|
154
|
+
|
155
|
+
```
|
156
|
+
let status = await file.status()
|
157
|
+
```
|
158
|
+
|
159
|
+
Delete file example:
|
160
|
+
|
161
|
+
```
|
162
|
+
await workspace.files.delete(file.id)
|
163
|
+
```
|
164
|
+
|
165
|
+
You can retrieve a list of files from a workspace using the "query" method. It involves several straightforward parameters: a search query for filtering files based on user input (if empty, no filter is applied), page number, and the number of files per page. The method returns an object containing the file list, selected page number, total page count, and other relevant information.
|
166
|
+
|
167
|
+
Here is an example:
|
168
|
+
|
169
|
+
```
|
170
|
+
const filesPage = await workspace.files.query(
|
171
|
+
"you-user-search-input",
|
172
|
+
0 - page number,
|
173
|
+
20 - files limit per page )
|
174
|
+
```
|
175
|
+
|
143
176
|
### Use chat
|
144
177
|
|
145
178
|
### Use access groups
|
package/docs/classes/Chat.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
[@neuralinnovations/dataisland-sdk - v0.0.1-
|
1
|
+
[@neuralinnovations/dataisland-sdk - v0.0.1-dev9](../../README.md) / [Exports](../modules.md) / Chat
|
2
2
|
|
3
3
|
# Class: Chat
|
4
4
|
|
@@ -10,12 +10,14 @@
|
|
10
10
|
|
11
11
|
### Accessors
|
12
12
|
|
13
|
+
- [collection](Chat.md#collection)
|
13
14
|
- [id](Chat.md#id)
|
14
15
|
- [name](Chat.md#name)
|
16
|
+
- [organization](Chat.md#organization)
|
15
17
|
|
16
18
|
### Methods
|
17
19
|
|
18
|
-
- [
|
20
|
+
- [ask](Chat.md#ask)
|
19
21
|
|
20
22
|
## Constructors
|
21
23
|
|
@@ -29,6 +31,18 @@
|
|
29
31
|
|
30
32
|
## Accessors
|
31
33
|
|
34
|
+
### collection
|
35
|
+
|
36
|
+
• `get` **collection**(): readonly `Answer`[]
|
37
|
+
|
38
|
+
Answers list.
|
39
|
+
|
40
|
+
#### Returns
|
41
|
+
|
42
|
+
readonly `Answer`[]
|
43
|
+
|
44
|
+
___
|
45
|
+
|
32
46
|
### id
|
33
47
|
|
34
48
|
• `get` **id**(): `string`
|
@@ -51,19 +65,33 @@ Chat name.
|
|
51
65
|
|
52
66
|
`string`
|
53
67
|
|
68
|
+
___
|
69
|
+
|
70
|
+
### organization
|
71
|
+
|
72
|
+
• `get` **organization**(): [`Organization`](Organization.md)
|
73
|
+
|
74
|
+
Organization.
|
75
|
+
|
76
|
+
#### Returns
|
77
|
+
|
78
|
+
[`Organization`](Organization.md)
|
79
|
+
|
54
80
|
## Methods
|
55
81
|
|
56
|
-
###
|
82
|
+
### ask
|
83
|
+
|
84
|
+
▸ **ask**(`message`, `answerType`): `Promise`\<`Answer`\>
|
57
85
|
|
58
|
-
|
86
|
+
Ask new question in chat.
|
59
87
|
|
60
88
|
#### Parameters
|
61
89
|
|
62
90
|
| Name | Type |
|
63
91
|
| :------ | :------ |
|
64
92
|
| `message` | `string` |
|
65
|
-
| `
|
93
|
+
| `answerType` | [`ChatAnswerType`](../enums/ChatAnswerType.md) |
|
66
94
|
|
67
95
|
#### Returns
|
68
96
|
|
69
|
-
`Promise`\<`
|
97
|
+
`Promise`\<`Answer`\>
|
package/docs/classes/Chats.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
[@neuralinnovations/dataisland-sdk - v0.0.1-
|
1
|
+
[@neuralinnovations/dataisland-sdk - v0.0.1-dev9](../../README.md) / [Exports](../modules.md) / Chats
|
2
2
|
|
3
3
|
# Class: Chats
|
4
4
|
|
@@ -16,11 +16,19 @@ Chats storage.
|
|
16
16
|
|
17
17
|
- [constructor](Chats.md#constructor)
|
18
18
|
|
19
|
+
### Accessors
|
20
|
+
|
21
|
+
- [collection](Chats.md#collection)
|
22
|
+
- [organization](Chats.md#organization)
|
23
|
+
|
19
24
|
### Methods
|
20
25
|
|
21
26
|
- [create](Chats.md#create)
|
27
|
+
- [delete](Chats.md#delete)
|
22
28
|
- [dispatch](Chats.md#dispatch)
|
29
|
+
- [get](Chats.md#get)
|
23
30
|
- [subscribe](Chats.md#subscribe)
|
31
|
+
- [tryGet](Chats.md#tryget)
|
24
32
|
|
25
33
|
## Constructors
|
26
34
|
|
@@ -36,6 +44,30 @@ Chats storage.
|
|
36
44
|
|
37
45
|
[EventDispatcher](EventDispatcher.md).[constructor](EventDispatcher.md#constructor)
|
38
46
|
|
47
|
+
## Accessors
|
48
|
+
|
49
|
+
### collection
|
50
|
+
|
51
|
+
• `get` **collection**(): readonly [`Chat`](Chat.md)[]
|
52
|
+
|
53
|
+
Chats list.
|
54
|
+
|
55
|
+
#### Returns
|
56
|
+
|
57
|
+
readonly [`Chat`](Chat.md)[]
|
58
|
+
|
59
|
+
___
|
60
|
+
|
61
|
+
### organization
|
62
|
+
|
63
|
+
• `get` **organization**(): [`Organization`](Organization.md)
|
64
|
+
|
65
|
+
Organization.
|
66
|
+
|
67
|
+
#### Returns
|
68
|
+
|
69
|
+
[`Organization`](Organization.md)
|
70
|
+
|
39
71
|
## Methods
|
40
72
|
|
41
73
|
### create
|
@@ -50,6 +82,24 @@ Create new chat.
|
|
50
82
|
|
51
83
|
___
|
52
84
|
|
85
|
+
### delete
|
86
|
+
|
87
|
+
▸ **delete**(`id`): `Promise`\<`void`\>
|
88
|
+
|
89
|
+
Delete chat.
|
90
|
+
|
91
|
+
#### Parameters
|
92
|
+
|
93
|
+
| Name | Type |
|
94
|
+
| :------ | :------ |
|
95
|
+
| `id` | `string` |
|
96
|
+
|
97
|
+
#### Returns
|
98
|
+
|
99
|
+
`Promise`\<`void`\>
|
100
|
+
|
101
|
+
___
|
102
|
+
|
53
103
|
### dispatch
|
54
104
|
|
55
105
|
▸ **dispatch**(`input`): `void`
|
@@ -70,6 +120,24 @@ ___
|
|
70
120
|
|
71
121
|
___
|
72
122
|
|
123
|
+
### get
|
124
|
+
|
125
|
+
▸ **get**(`id`): [`Chat`](Chat.md)
|
126
|
+
|
127
|
+
Get chat by id.
|
128
|
+
|
129
|
+
#### Parameters
|
130
|
+
|
131
|
+
| Name | Type |
|
132
|
+
| :------ | :------ |
|
133
|
+
| `id` | `string` |
|
134
|
+
|
135
|
+
#### Returns
|
136
|
+
|
137
|
+
[`Chat`](Chat.md)
|
138
|
+
|
139
|
+
___
|
140
|
+
|
73
141
|
### subscribe
|
74
142
|
|
75
143
|
▸ **subscribe**(`callback`, `type?`): [`Disposable`](../interfaces/Disposable.md)
|
@@ -88,3 +156,21 @@ ___
|
|
88
156
|
#### Inherited from
|
89
157
|
|
90
158
|
[EventDispatcher](EventDispatcher.md).[subscribe](EventDispatcher.md#subscribe)
|
159
|
+
|
160
|
+
___
|
161
|
+
|
162
|
+
### tryGet
|
163
|
+
|
164
|
+
▸ **tryGet**(`id`): `undefined` \| [`Chat`](Chat.md)
|
165
|
+
|
166
|
+
Try to get chat by id.
|
167
|
+
|
168
|
+
#### Parameters
|
169
|
+
|
170
|
+
| Name | Type |
|
171
|
+
| :------ | :------ |
|
172
|
+
| `id` | `string` |
|
173
|
+
|
174
|
+
#### Returns
|
175
|
+
|
176
|
+
`undefined` \| [`Chat`](Chat.md)
|
@@ -1,4 +1,4 @@
|
|
1
|
-
[@neuralinnovations/dataisland-sdk - v0.0.1-
|
1
|
+
[@neuralinnovations/dataisland-sdk - v0.0.1-dev9](../../README.md) / [Exports](../modules.md) / EventDispatcher
|
2
2
|
|
3
3
|
# Class: EventDispatcher\<EventType, DataType\>
|
4
4
|
|
package/docs/classes/File.md
CHANGED
package/docs/classes/Files.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
[@neuralinnovations/dataisland-sdk - v0.0.1-
|
1
|
+
[@neuralinnovations/dataisland-sdk - v0.0.1-dev9](../../README.md) / [Exports](../modules.md) / Files
|
2
2
|
|
3
3
|
# Class: Files
|
4
4
|
|
@@ -123,7 +123,7 @@ ___
|
|
123
123
|
|
124
124
|
▸ **upload**(`file`): `Promise`\<[`File`](File.md)\>
|
125
125
|
|
126
|
-
|
126
|
+
Upload file.
|
127
127
|
|
128
128
|
#### Parameters
|
129
129
|
|
package/docs/classes/Group.md
CHANGED
@@ -1,7 +1,9 @@
|
|
1
|
-
[@neuralinnovations/dataisland-sdk - v0.0.1-
|
1
|
+
[@neuralinnovations/dataisland-sdk - v0.0.1-dev9](../../README.md) / [Exports](../modules.md) / Group
|
2
2
|
|
3
3
|
# Class: Group
|
4
4
|
|
5
|
+
Group.
|
6
|
+
|
5
7
|
## Hierarchy
|
6
8
|
|
7
9
|
- [`EventDispatcher`](EventDispatcher.md)\<[`GroupEvent`](../enums/GroupEvent.md), [`Group`](Group.md)\>
|
@@ -50,6 +52,8 @@
|
|
50
52
|
|
51
53
|
• `get` **group**(): `AccessGroupDto`
|
52
54
|
|
55
|
+
Group information.
|
56
|
+
|
53
57
|
#### Returns
|
54
58
|
|
55
59
|
`AccessGroupDto`
|
@@ -60,6 +64,8 @@ ___
|
|
60
64
|
|
61
65
|
• `get` **id**(): `string`
|
62
66
|
|
67
|
+
Group id.
|
68
|
+
|
63
69
|
#### Returns
|
64
70
|
|
65
71
|
`string`
|
@@ -70,6 +76,8 @@ ___
|
|
70
76
|
|
71
77
|
• `get` **members**(): `UserDto`[]
|
72
78
|
|
79
|
+
Group members.
|
80
|
+
|
73
81
|
#### Returns
|
74
82
|
|
75
83
|
`UserDto`[]
|
@@ -100,6 +108,8 @@ ___
|
|
100
108
|
|
101
109
|
▸ **getWorkspaces**(): `Promise`\<`WorkspaceDto`[]\>
|
102
110
|
|
111
|
+
Group workspaces.
|
112
|
+
|
103
113
|
#### Returns
|
104
114
|
|
105
115
|
`Promise`\<`WorkspaceDto`[]\>
|
@@ -110,6 +120,8 @@ ___
|
|
110
120
|
|
111
121
|
▸ **setMembersIds**(`members`): `Promise`\<`void`\>
|
112
122
|
|
123
|
+
Set members.
|
124
|
+
|
113
125
|
#### Parameters
|
114
126
|
|
115
127
|
| Name | Type |
|
@@ -126,6 +138,8 @@ ___
|
|
126
138
|
|
127
139
|
▸ **setName**(`name`): `Promise`\<`void`\>
|
128
140
|
|
141
|
+
Set name.
|
142
|
+
|
129
143
|
#### Parameters
|
130
144
|
|
131
145
|
| Name | Type |
|
@@ -142,6 +156,8 @@ ___
|
|
142
156
|
|
143
157
|
▸ **setPermits**(`permits`): `Promise`\<`void`\>
|
144
158
|
|
159
|
+
Set permits.
|
160
|
+
|
145
161
|
#### Parameters
|
146
162
|
|
147
163
|
| Name | Type |
|
@@ -159,6 +175,8 @@ ___
|
|
159
175
|
|
160
176
|
▸ **setWorkspaces**(`workspaces`): `Promise`\<`void`\>
|
161
177
|
|
178
|
+
Set workspaces.
|
179
|
+
|
162
180
|
#### Parameters
|
163
181
|
|
164
182
|
| Name | Type |
|
package/docs/classes/Groups.md
CHANGED
@@ -1,7 +1,9 @@
|
|
1
|
-
[@neuralinnovations/dataisland-sdk - v0.0.1-
|
1
|
+
[@neuralinnovations/dataisland-sdk - v0.0.1-dev9](../../README.md) / [Exports](../modules.md) / Groups
|
2
2
|
|
3
3
|
# Class: Groups
|
4
4
|
|
5
|
+
Groups storage.
|
6
|
+
|
5
7
|
## Hierarchy
|
6
8
|
|
7
9
|
- [`EventDispatcher`](EventDispatcher.md)\<[`GroupEvent`](../enums/GroupEvent.md), [`Group`](Group.md)\>
|
@@ -14,6 +16,10 @@
|
|
14
16
|
|
15
17
|
- [constructor](Groups.md#constructor)
|
16
18
|
|
19
|
+
### Accessors
|
20
|
+
|
21
|
+
- [organization](Groups.md#organization)
|
22
|
+
|
17
23
|
### Methods
|
18
24
|
|
19
25
|
- [create](Groups.md#create)
|
@@ -36,12 +42,26 @@
|
|
36
42
|
|
37
43
|
[EventDispatcher](EventDispatcher.md).[constructor](EventDispatcher.md#constructor)
|
38
44
|
|
45
|
+
## Accessors
|
46
|
+
|
47
|
+
### organization
|
48
|
+
|
49
|
+
• `get` **organization**(): [`Organization`](Organization.md)
|
50
|
+
|
51
|
+
Organization.
|
52
|
+
|
53
|
+
#### Returns
|
54
|
+
|
55
|
+
[`Organization`](Organization.md)
|
56
|
+
|
39
57
|
## Methods
|
40
58
|
|
41
59
|
### create
|
42
60
|
|
43
61
|
▸ **create**(`name`, `organizationId`, `permits`, `memberIds`): `Promise`\<[`Group`](Group.md)\>
|
44
62
|
|
63
|
+
Create new group.
|
64
|
+
|
45
65
|
#### Parameters
|
46
66
|
|
47
67
|
| Name | Type |
|
@@ -62,6 +82,8 @@ ___
|
|
62
82
|
|
63
83
|
▸ **delete**(`id`): `Promise`\<`void`\>
|
64
84
|
|
85
|
+
delete group by id.
|
86
|
+
|
65
87
|
#### Parameters
|
66
88
|
|
67
89
|
| Name | Type |
|
@@ -96,7 +118,9 @@ ___
|
|
96
118
|
|
97
119
|
### get
|
98
120
|
|
99
|
-
▸ **get**(`id`): `
|
121
|
+
▸ **get**(`id`): `undefined` \| [`Group`](Group.md)
|
122
|
+
|
123
|
+
Get group by id.
|
100
124
|
|
101
125
|
#### Parameters
|
102
126
|
|
@@ -106,7 +130,7 @@ ___
|
|
106
130
|
|
107
131
|
#### Returns
|
108
132
|
|
109
|
-
`
|
133
|
+
`undefined` \| [`Group`](Group.md)
|
110
134
|
|
111
135
|
___
|
112
136
|
|
package/docs/classes/Lifetime.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
[@neuralinnovations/dataisland-sdk - v0.0.1-
|
1
|
+
[@neuralinnovations/dataisland-sdk - v0.0.1-dev9](../../README.md) / [Exports](../modules.md) / Organization
|
2
2
|
|
3
3
|
# Class: Organization
|
4
4
|
|
@@ -13,11 +13,16 @@ Organization.
|
|
13
13
|
### Accessors
|
14
14
|
|
15
15
|
- [accessGroups](Organization.md#accessgroups)
|
16
|
+
- [chats](Organization.md#chats)
|
16
17
|
- [description](Organization.md#description)
|
17
18
|
- [id](Organization.md#id)
|
18
19
|
- [name](Organization.md#name)
|
19
20
|
- [workspaces](Organization.md#workspaces)
|
20
21
|
|
22
|
+
### Methods
|
23
|
+
|
24
|
+
- [createInviteLink](Organization.md#createinvitelink)
|
25
|
+
|
21
26
|
## Constructors
|
22
27
|
|
23
28
|
### constructor
|
@@ -42,6 +47,18 @@ Groups.
|
|
42
47
|
|
43
48
|
___
|
44
49
|
|
50
|
+
### chats
|
51
|
+
|
52
|
+
• `get` **chats**(): [`Chats`](Chats.md)
|
53
|
+
|
54
|
+
Chats.
|
55
|
+
|
56
|
+
#### Returns
|
57
|
+
|
58
|
+
[`Chats`](Chats.md)
|
59
|
+
|
60
|
+
___
|
61
|
+
|
45
62
|
### description
|
46
63
|
|
47
64
|
• `get` **description**(): `string`
|
@@ -87,3 +104,22 @@ Workspaces.
|
|
87
104
|
#### Returns
|
88
105
|
|
89
106
|
[`Workspaces`](Workspaces.md)
|
107
|
+
|
108
|
+
## Methods
|
109
|
+
|
110
|
+
### createInviteLink
|
111
|
+
|
112
|
+
▸ **createInviteLink**(`emails`, `accessGroups`): `Promise`\<`void`\>
|
113
|
+
|
114
|
+
Create invite link
|
115
|
+
|
116
|
+
#### Parameters
|
117
|
+
|
118
|
+
| Name | Type |
|
119
|
+
| :------ | :------ |
|
120
|
+
| `emails` | `string`[] |
|
121
|
+
| `accessGroups` | `string`[] |
|
122
|
+
|
123
|
+
#### Returns
|
124
|
+
|
125
|
+
`Promise`\<`void`\>
|
@@ -1,4 +1,4 @@
|
|
1
|
-
[@neuralinnovations/dataisland-sdk - v0.0.1-
|
1
|
+
[@neuralinnovations/dataisland-sdk - v0.0.1-dev9](../../README.md) / [Exports](../modules.md) / Workspaces
|
2
2
|
|
3
3
|
# Class: Workspaces
|
4
4
|
|
@@ -78,7 +78,7 @@ ___
|
|
78
78
|
|
79
79
|
### create
|
80
80
|
|
81
|
-
▸ **create**(`name`, `description`): `Promise`\<[`Workspace`](Workspace.md)\>
|
81
|
+
▸ **create**(`name`, `description`, `regulation?`): `Promise`\<[`Workspace`](Workspace.md)\>
|
82
82
|
|
83
83
|
Create workspace.
|
84
84
|
|
@@ -88,6 +88,10 @@ Create workspace.
|
|
88
88
|
| :------ | :------ |
|
89
89
|
| `name` | `string` |
|
90
90
|
| `description` | `string` |
|
91
|
+
| `regulation?` | `Object` |
|
92
|
+
| `regulation.groupIds` | `string`[] |
|
93
|
+
| `regulation.isCreateNewGroup` | `boolean` |
|
94
|
+
| `regulation.newGroupName` | `string` |
|
91
95
|
|
92
96
|
#### Returns
|
93
97
|
|