@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.
Files changed (76) hide show
  1. package/.github/workflows/publish-npm.yml +11 -0
  2. package/.github/workflows/tests.yml +4 -0
  3. package/.github/workflows/version.yml +5 -1
  4. package/README.md +36 -3
  5. package/docs/classes/BasicCredential.md +1 -1
  6. package/docs/classes/BearerCredential.md +1 -1
  7. package/docs/classes/Chat.md +34 -6
  8. package/docs/classes/Chats.md +87 -1
  9. package/docs/classes/CredentialBase.md +1 -1
  10. package/docs/classes/DataIslandApp.md +1 -1
  11. package/docs/classes/DebugCredential.md +1 -1
  12. package/docs/classes/DefaultCredential.md +1 -1
  13. package/docs/classes/DisposableContainer.md +1 -1
  14. package/docs/classes/EventDispatcher.md +1 -1
  15. package/docs/classes/File.md +1 -1
  16. package/docs/classes/Files.md +2 -2
  17. package/docs/classes/FilesPage.md +1 -1
  18. package/docs/classes/Group.md +19 -1
  19. package/docs/classes/Groups.md +27 -3
  20. package/docs/classes/Lifetime.md +1 -1
  21. package/docs/classes/Organization.md +37 -1
  22. package/docs/classes/Organizations.md +1 -1
  23. package/docs/classes/UserProfile.md +1 -1
  24. package/docs/classes/Workspace.md +1 -1
  25. package/docs/classes/Workspaces.md +6 -2
  26. package/docs/enums/ChatAnswerType.md +22 -0
  27. package/docs/enums/ChatsEvent.md +1 -1
  28. package/docs/enums/FilesEvent.md +1 -1
  29. package/docs/enums/GroupEvent.md +3 -1
  30. package/docs/enums/OrganizationsEvent.md +1 -1
  31. package/docs/enums/UserEvent.md +1 -1
  32. package/docs/enums/WorkspaceEvent.md +1 -1
  33. package/docs/enums/WorkspacesEvent.md +1 -1
  34. package/docs/interfaces/Disposable.md +1 -1
  35. package/docs/interfaces/Event.md +1 -1
  36. package/docs/interfaces/EventSubscriber.md +1 -1
  37. package/docs/interfaces/Input.md +1 -1
  38. package/docs/modules.md +5 -3
  39. package/package.json +6 -2
  40. package/src/dataIslandApp.ts +2 -2
  41. package/src/dto/chatResponse.ts +54 -55
  42. package/src/dto/workspacesResponse.ts +2 -2
  43. package/src/index.ts +13 -13
  44. package/src/internal/app.impl.ts +2 -2
  45. package/src/services/organizationService.ts +2 -2
  46. package/src/services/userProfileService.ts +2 -2
  47. package/src/storages/chats/answer.impl.ts +163 -0
  48. package/src/storages/chats/answer.ts +42 -0
  49. package/src/storages/chats/chat.impl.ts +87 -0
  50. package/src/storages/chats/chat.ts +38 -0
  51. package/src/storages/chats/chats.impl.ts +142 -0
  52. package/src/storages/chats/chats.ts +47 -0
  53. package/src/storages/{file.impl.ts → files/file.impl.ts} +5 -5
  54. package/src/storages/{file.ts → files/file.ts} +1 -1
  55. package/src/storages/{files.impl.ts → files/files.impl.ts} +6 -6
  56. package/src/storages/{files.ts → files/files.ts} +2 -2
  57. package/src/storages/{groups.impl.ts → groups/groups.impl.ts} +86 -97
  58. package/src/storages/groups/groups.ts +101 -0
  59. package/src/storages/{organization.impl.ts → organizations/organization.impl.ts} +34 -7
  60. package/src/storages/{organization.ts → organizations/organization.ts} +13 -2
  61. package/src/storages/{organizations.impl.ts → organizations/organizations.impl.ts} +10 -4
  62. package/src/storages/{organizations.ts → organizations/organizations.ts} +1 -1
  63. package/src/storages/{userProfile.impl.ts → user/userProfile.impl.ts} +1 -1
  64. package/src/storages/{userProfile.ts → user/userProfile.ts} +1 -1
  65. package/src/storages/{workspace.impl.ts → workspaces/workspace.impl.ts} +7 -7
  66. package/src/storages/{workspace.ts → workspaces/workspace.ts} +3 -3
  67. package/src/storages/{workspaces.impl.ts → workspaces/workspaces.impl.ts} +11 -11
  68. package/src/storages/{workspaces.ts → workspaces/workspaces.ts} +2 -2
  69. package/test/chats.test.ts +48 -0
  70. package/test/organization.test.ts +13 -1
  71. package/test/setup.ts +7 -0
  72. package/docs/enums/ChatAnswer.md +0 -22
  73. package/src/storages/chat.ts +0 -21
  74. package/src/storages/chats.ts +0 -17
  75. package/src/storages/groups.ts +0 -43
  76. /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 [ "$(echo ${{ env.BASE_VERSION }} ${{ env.HEAD_VERSION }} | sort -Vr | head -n 1)" != "${{ env.HEAD_VERSION }}" ]; then
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
- ![Tests](https://github.com/NeuralInnovations/dataisland-client-js-sdk/actions/workflows/tests.yml/badge.svg?branch=main)
3
+ ![master](https://github.com/NeuralInnovations/dataisland-client-js-sdk/actions/workflows/tests.yml/badge.svg?branch=master)
4
+ ![develop](https://github.com/NeuralInnovations/dataisland-client-js-sdk/actions/workflows/tests.yml/badge.svg?branch=develop)
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
@@ -1,4 +1,4 @@
1
- [@neuralinnovations/dataisland-sdk - v0.0.1-dev8](../../README.md) / [Exports](../modules.md) / BasicCredential
1
+ [@neuralinnovations/dataisland-sdk - v0.0.1-dev9](../../README.md) / [Exports](../modules.md) / BasicCredential
2
2
 
3
3
  # Class: BasicCredential
4
4
 
@@ -1,4 +1,4 @@
1
- [@neuralinnovations/dataisland-sdk - v0.0.1-dev8](../../README.md) / [Exports](../modules.md) / BearerCredential
1
+ [@neuralinnovations/dataisland-sdk - v0.0.1-dev9](../../README.md) / [Exports](../modules.md) / BearerCredential
2
2
 
3
3
  # Class: BearerCredential
4
4
 
@@ -1,4 +1,4 @@
1
- [@neuralinnovations/dataisland-sdk - v0.0.1-dev8](../../README.md) / [Exports](../modules.md) / Chat
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
- - [question](Chat.md#question)
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
- ### question
82
+ ### ask
83
+
84
+ ▸ **ask**(`message`, `answerType`): `Promise`\<`Answer`\>
57
85
 
58
- **question**(`message`, `answer?`): `Promise`\<`void`\>
86
+ Ask new question in chat.
59
87
 
60
88
  #### Parameters
61
89
 
62
90
  | Name | Type |
63
91
  | :------ | :------ |
64
92
  | `message` | `string` |
65
- | `answer?` | [`ChatAnswer`](../enums/ChatAnswer.md) |
93
+ | `answerType` | [`ChatAnswerType`](../enums/ChatAnswerType.md) |
66
94
 
67
95
  #### Returns
68
96
 
69
- `Promise`\<`void`\>
97
+ `Promise`\<`Answer`\>
@@ -1,4 +1,4 @@
1
- [@neuralinnovations/dataisland-sdk - v0.0.1-dev8](../../README.md) / [Exports](../modules.md) / Chats
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-dev8](../../README.md) / [Exports](../modules.md) / CredentialBase
1
+ [@neuralinnovations/dataisland-sdk - v0.0.1-dev9](../../README.md) / [Exports](../modules.md) / CredentialBase
2
2
 
3
3
  # Class: CredentialBase
4
4
 
@@ -1,4 +1,4 @@
1
- [@neuralinnovations/dataisland-sdk - v0.0.1-dev8](../../README.md) / [Exports](../modules.md) / DataIslandApp
1
+ [@neuralinnovations/dataisland-sdk - v0.0.1-dev9](../../README.md) / [Exports](../modules.md) / DataIslandApp
2
2
 
3
3
  # Class: DataIslandApp
4
4
 
@@ -1,4 +1,4 @@
1
- [@neuralinnovations/dataisland-sdk - v0.0.1-dev8](../../README.md) / [Exports](../modules.md) / DebugCredential
1
+ [@neuralinnovations/dataisland-sdk - v0.0.1-dev9](../../README.md) / [Exports](../modules.md) / DebugCredential
2
2
 
3
3
  # Class: DebugCredential
4
4
 
@@ -1,4 +1,4 @@
1
- [@neuralinnovations/dataisland-sdk - v0.0.1-dev8](../../README.md) / [Exports](../modules.md) / DefaultCredential
1
+ [@neuralinnovations/dataisland-sdk - v0.0.1-dev9](../../README.md) / [Exports](../modules.md) / DefaultCredential
2
2
 
3
3
  # Class: DefaultCredential
4
4
 
@@ -1,4 +1,4 @@
1
- [@neuralinnovations/dataisland-sdk - v0.0.1-dev8](../../README.md) / [Exports](../modules.md) / DisposableContainer
1
+ [@neuralinnovations/dataisland-sdk - v0.0.1-dev9](../../README.md) / [Exports](../modules.md) / DisposableContainer
2
2
 
3
3
  # Class: DisposableContainer
4
4
 
@@ -1,4 +1,4 @@
1
- [@neuralinnovations/dataisland-sdk - v0.0.1-dev8](../../README.md) / [Exports](../modules.md) / EventDispatcher
1
+ [@neuralinnovations/dataisland-sdk - v0.0.1-dev9](../../README.md) / [Exports](../modules.md) / EventDispatcher
2
2
 
3
3
  # Class: EventDispatcher\<EventType, DataType\>
4
4
 
@@ -1,4 +1,4 @@
1
- [@neuralinnovations/dataisland-sdk - v0.0.1-dev8](../../README.md) / [Exports](../modules.md) / File
1
+ [@neuralinnovations/dataisland-sdk - v0.0.1-dev9](../../README.md) / [Exports](../modules.md) / File
2
2
 
3
3
  # Class: File
4
4
 
@@ -1,4 +1,4 @@
1
- [@neuralinnovations/dataisland-sdk - v0.0.1-dev8](../../README.md) / [Exports](../modules.md) / Files
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
- Get file by id.
126
+ Upload file.
127
127
 
128
128
  #### Parameters
129
129
 
@@ -1,4 +1,4 @@
1
- [@neuralinnovations/dataisland-sdk - v0.0.1-dev8](../../README.md) / [Exports](../modules.md) / FilesPage
1
+ [@neuralinnovations/dataisland-sdk - v0.0.1-dev9](../../README.md) / [Exports](../modules.md) / FilesPage
2
2
 
3
3
  # Class: FilesPage
4
4
 
@@ -1,7 +1,9 @@
1
- [@neuralinnovations/dataisland-sdk - v0.0.1-dev8](../../README.md) / [Exports](../modules.md) / Group
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 |
@@ -1,7 +1,9 @@
1
- [@neuralinnovations/dataisland-sdk - v0.0.1-dev8](../../README.md) / [Exports](../modules.md) / Groups
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`): `Promise`\<`undefined` \| [`Group`](Group.md)\>
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
- `Promise`\<`undefined` \| [`Group`](Group.md)\>
133
+ `undefined` \| [`Group`](Group.md)
110
134
 
111
135
  ___
112
136
 
@@ -1,4 +1,4 @@
1
- [@neuralinnovations/dataisland-sdk - v0.0.1-dev8](../../README.md) / [Exports](../modules.md) / Lifetime
1
+ [@neuralinnovations/dataisland-sdk - v0.0.1-dev9](../../README.md) / [Exports](../modules.md) / Lifetime
2
2
 
3
3
  # Class: Lifetime
4
4
 
@@ -1,4 +1,4 @@
1
- [@neuralinnovations/dataisland-sdk - v0.0.1-dev8](../../README.md) / [Exports](../modules.md) / Organization
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-dev8](../../README.md) / [Exports](../modules.md) / Organizations
1
+ [@neuralinnovations/dataisland-sdk - v0.0.1-dev9](../../README.md) / [Exports](../modules.md) / Organizations
2
2
 
3
3
  # Class: Organizations
4
4
 
@@ -1,4 +1,4 @@
1
- [@neuralinnovations/dataisland-sdk - v0.0.1-dev8](../../README.md) / [Exports](../modules.md) / UserProfile
1
+ [@neuralinnovations/dataisland-sdk - v0.0.1-dev9](../../README.md) / [Exports](../modules.md) / UserProfile
2
2
 
3
3
  # Class: UserProfile
4
4
 
@@ -1,4 +1,4 @@
1
- [@neuralinnovations/dataisland-sdk - v0.0.1-dev8](../../README.md) / [Exports](../modules.md) / Workspace
1
+ [@neuralinnovations/dataisland-sdk - v0.0.1-dev9](../../README.md) / [Exports](../modules.md) / Workspace
2
2
 
3
3
  # Class: Workspace
4
4
 
@@ -1,4 +1,4 @@
1
- [@neuralinnovations/dataisland-sdk - v0.0.1-dev8](../../README.md) / [Exports](../modules.md) / Workspaces
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