@neuralinnovations/dataisland-sdk 0.0.1-dev6 → 0.0.1-dev7

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 (39) hide show
  1. package/.github/workflows/publish-npm.yml +15 -2
  2. package/README.md +31 -0
  3. package/docs/.nojekyll +1 -0
  4. package/docs/classes/BasicCredential.md +80 -0
  5. package/docs/classes/BearerCredential.md +72 -0
  6. package/docs/classes/Chat.md +69 -0
  7. package/docs/classes/Chats.md +90 -0
  8. package/docs/classes/CredentialBase.md +54 -0
  9. package/docs/classes/DataIslandApp.md +168 -0
  10. package/docs/classes/DebugCredential.md +72 -0
  11. package/docs/classes/DefaultCredential.md +56 -0
  12. package/docs/classes/DisposableContainer.md +177 -0
  13. package/docs/classes/EventDispatcher.md +109 -0
  14. package/docs/classes/File.md +79 -0
  15. package/docs/classes/Files.md +136 -0
  16. package/docs/classes/FilesPage.md +76 -0
  17. package/docs/classes/Group.md +191 -0
  18. package/docs/classes/Groups.md +130 -0
  19. package/docs/classes/Lifetime.md +108 -0
  20. package/docs/classes/Organization.md +89 -0
  21. package/docs/classes/Organizations.md +195 -0
  22. package/docs/classes/UserProfile.md +156 -0
  23. package/docs/classes/Workspace.md +165 -0
  24. package/docs/classes/Workspaces.md +189 -0
  25. package/docs/enums/ChatAnswer.md +22 -0
  26. package/docs/enums/ChatsEvent.md +22 -0
  27. package/docs/enums/FilesEvent.md +24 -0
  28. package/docs/enums/GroupEvent.md +29 -0
  29. package/docs/enums/OrganizationsEvent.md +31 -0
  30. package/docs/enums/UserEvent.md +15 -0
  31. package/docs/enums/WorkspaceEvent.md +17 -0
  32. package/docs/enums/WorkspacesEvent.md +24 -0
  33. package/docs/interfaces/Disposable.md +25 -0
  34. package/docs/interfaces/Event.md +58 -0
  35. package/docs/interfaces/EventSubscriber.md +41 -0
  36. package/docs/interfaces/Input.md +35 -0
  37. package/docs/modules.md +205 -0
  38. package/package.json +4 -2
  39. package/scripts/docs/index.js +15 -0
@@ -0,0 +1,191 @@
1
+ [@neuralinnovations/dataisland-sdk - v0.0.1-dev7](../../README.md) / [Exports](../modules.md) / Group
2
+
3
+ # Class: Group
4
+
5
+ ## Hierarchy
6
+
7
+ - [`EventDispatcher`](EventDispatcher.md)\<[`GroupEvent`](../enums/GroupEvent.md), [`Group`](Group.md)\>
8
+
9
+ ↳ **`Group`**
10
+
11
+ ## Table of contents
12
+
13
+ ### Constructors
14
+
15
+ - [constructor](Group.md#constructor)
16
+
17
+ ### Accessors
18
+
19
+ - [group](Group.md#group)
20
+ - [id](Group.md#id)
21
+ - [members](Group.md#members)
22
+
23
+ ### Methods
24
+
25
+ - [dispatch](Group.md#dispatch)
26
+ - [getWorkspaces](Group.md#getworkspaces)
27
+ - [setMembersIds](Group.md#setmembersids)
28
+ - [setName](Group.md#setname)
29
+ - [setPermits](Group.md#setpermits)
30
+ - [setWorkspaces](Group.md#setworkspaces)
31
+ - [subscribe](Group.md#subscribe)
32
+
33
+ ## Constructors
34
+
35
+ ### constructor
36
+
37
+ • **new Group**(): [`Group`](Group.md)
38
+
39
+ #### Returns
40
+
41
+ [`Group`](Group.md)
42
+
43
+ #### Inherited from
44
+
45
+ [EventDispatcher](EventDispatcher.md).[constructor](EventDispatcher.md#constructor)
46
+
47
+ ## Accessors
48
+
49
+ ### group
50
+
51
+ • `get` **group**(): `AccessGroupDto`
52
+
53
+ #### Returns
54
+
55
+ `AccessGroupDto`
56
+
57
+ ___
58
+
59
+ ### id
60
+
61
+ • `get` **id**(): `string`
62
+
63
+ #### Returns
64
+
65
+ `string`
66
+
67
+ ___
68
+
69
+ ### members
70
+
71
+ • `get` **members**(): `UserDto`[]
72
+
73
+ #### Returns
74
+
75
+ `UserDto`[]
76
+
77
+ ## Methods
78
+
79
+ ### dispatch
80
+
81
+ ▸ **dispatch**(`input`): `void`
82
+
83
+ #### Parameters
84
+
85
+ | Name | Type |
86
+ | :------ | :------ |
87
+ | `input` | [`Input`](../interfaces/Input.md)\<[`GroupEvent`](../enums/GroupEvent.md), [`Group`](Group.md)\> |
88
+
89
+ #### Returns
90
+
91
+ `void`
92
+
93
+ #### Inherited from
94
+
95
+ [EventDispatcher](EventDispatcher.md).[dispatch](EventDispatcher.md#dispatch)
96
+
97
+ ___
98
+
99
+ ### getWorkspaces
100
+
101
+ ▸ **getWorkspaces**(): `Promise`\<`WorkspaceDto`[]\>
102
+
103
+ #### Returns
104
+
105
+ `Promise`\<`WorkspaceDto`[]\>
106
+
107
+ ___
108
+
109
+ ### setMembersIds
110
+
111
+ ▸ **setMembersIds**(`members`): `Promise`\<`void`\>
112
+
113
+ #### Parameters
114
+
115
+ | Name | Type |
116
+ | :------ | :------ |
117
+ | `members` | `string`[] |
118
+
119
+ #### Returns
120
+
121
+ `Promise`\<`void`\>
122
+
123
+ ___
124
+
125
+ ### setName
126
+
127
+ ▸ **setName**(`name`): `Promise`\<`void`\>
128
+
129
+ #### Parameters
130
+
131
+ | Name | Type |
132
+ | :------ | :------ |
133
+ | `name` | `string` |
134
+
135
+ #### Returns
136
+
137
+ `Promise`\<`void`\>
138
+
139
+ ___
140
+
141
+ ### setPermits
142
+
143
+ ▸ **setPermits**(`permits`): `Promise`\<`void`\>
144
+
145
+ #### Parameters
146
+
147
+ | Name | Type |
148
+ | :------ | :------ |
149
+ | `permits` | `Object` |
150
+ | `permits.isAdmin` | `boolean` |
151
+
152
+ #### Returns
153
+
154
+ `Promise`\<`void`\>
155
+
156
+ ___
157
+
158
+ ### setWorkspaces
159
+
160
+ ▸ **setWorkspaces**(`workspaces`): `Promise`\<`void`\>
161
+
162
+ #### Parameters
163
+
164
+ | Name | Type |
165
+ | :------ | :------ |
166
+ | `workspaces` | `string`[] |
167
+
168
+ #### Returns
169
+
170
+ `Promise`\<`void`\>
171
+
172
+ ___
173
+
174
+ ### subscribe
175
+
176
+ ▸ **subscribe**(`callback`, `type?`): [`Disposable`](../interfaces/Disposable.md)
177
+
178
+ #### Parameters
179
+
180
+ | Name | Type |
181
+ | :------ | :------ |
182
+ | `callback` | (`event`: [`Event`](../interfaces/Event.md)\<[`GroupEvent`](../enums/GroupEvent.md), [`Group`](Group.md)\>) => `void` |
183
+ | `type?` | [`GroupEvent`](../enums/GroupEvent.md) |
184
+
185
+ #### Returns
186
+
187
+ [`Disposable`](../interfaces/Disposable.md)
188
+
189
+ #### Inherited from
190
+
191
+ [EventDispatcher](EventDispatcher.md).[subscribe](EventDispatcher.md#subscribe)
@@ -0,0 +1,130 @@
1
+ [@neuralinnovations/dataisland-sdk - v0.0.1-dev7](../../README.md) / [Exports](../modules.md) / Groups
2
+
3
+ # Class: Groups
4
+
5
+ ## Hierarchy
6
+
7
+ - [`EventDispatcher`](EventDispatcher.md)\<[`GroupEvent`](../enums/GroupEvent.md), [`Group`](Group.md)\>
8
+
9
+ ↳ **`Groups`**
10
+
11
+ ## Table of contents
12
+
13
+ ### Constructors
14
+
15
+ - [constructor](Groups.md#constructor)
16
+
17
+ ### Methods
18
+
19
+ - [create](Groups.md#create)
20
+ - [delete](Groups.md#delete)
21
+ - [dispatch](Groups.md#dispatch)
22
+ - [get](Groups.md#get)
23
+ - [subscribe](Groups.md#subscribe)
24
+
25
+ ## Constructors
26
+
27
+ ### constructor
28
+
29
+ • **new Groups**(): [`Groups`](Groups.md)
30
+
31
+ #### Returns
32
+
33
+ [`Groups`](Groups.md)
34
+
35
+ #### Inherited from
36
+
37
+ [EventDispatcher](EventDispatcher.md).[constructor](EventDispatcher.md#constructor)
38
+
39
+ ## Methods
40
+
41
+ ### create
42
+
43
+ ▸ **create**(`name`, `organizationId`, `permits`, `memberIds`): `Promise`\<[`Group`](Group.md)\>
44
+
45
+ #### Parameters
46
+
47
+ | Name | Type |
48
+ | :------ | :------ |
49
+ | `name` | `string` |
50
+ | `organizationId` | `string` |
51
+ | `permits` | `Object` |
52
+ | `permits.isAdmin` | `boolean` |
53
+ | `memberIds` | `string`[] |
54
+
55
+ #### Returns
56
+
57
+ `Promise`\<[`Group`](Group.md)\>
58
+
59
+ ___
60
+
61
+ ### delete
62
+
63
+ ▸ **delete**(`id`): `Promise`\<`void`\>
64
+
65
+ #### Parameters
66
+
67
+ | Name | Type |
68
+ | :------ | :------ |
69
+ | `id` | `string` |
70
+
71
+ #### Returns
72
+
73
+ `Promise`\<`void`\>
74
+
75
+ ___
76
+
77
+ ### dispatch
78
+
79
+ ▸ **dispatch**(`input`): `void`
80
+
81
+ #### Parameters
82
+
83
+ | Name | Type |
84
+ | :------ | :------ |
85
+ | `input` | [`Input`](../interfaces/Input.md)\<[`GroupEvent`](../enums/GroupEvent.md), [`Group`](Group.md)\> |
86
+
87
+ #### Returns
88
+
89
+ `void`
90
+
91
+ #### Inherited from
92
+
93
+ [EventDispatcher](EventDispatcher.md).[dispatch](EventDispatcher.md#dispatch)
94
+
95
+ ___
96
+
97
+ ### get
98
+
99
+ ▸ **get**(`id`): `Promise`\<`undefined` \| [`Group`](Group.md)\>
100
+
101
+ #### Parameters
102
+
103
+ | Name | Type |
104
+ | :------ | :------ |
105
+ | `id` | `string` |
106
+
107
+ #### Returns
108
+
109
+ `Promise`\<`undefined` \| [`Group`](Group.md)\>
110
+
111
+ ___
112
+
113
+ ### subscribe
114
+
115
+ ▸ **subscribe**(`callback`, `type?`): [`Disposable`](../interfaces/Disposable.md)
116
+
117
+ #### Parameters
118
+
119
+ | Name | Type |
120
+ | :------ | :------ |
121
+ | `callback` | (`event`: [`Event`](../interfaces/Event.md)\<[`GroupEvent`](../enums/GroupEvent.md), [`Group`](Group.md)\>) => `void` |
122
+ | `type?` | [`GroupEvent`](../enums/GroupEvent.md) |
123
+
124
+ #### Returns
125
+
126
+ [`Disposable`](../interfaces/Disposable.md)
127
+
128
+ #### Inherited from
129
+
130
+ [EventDispatcher](EventDispatcher.md).[subscribe](EventDispatcher.md#subscribe)
@@ -0,0 +1,108 @@
1
+ [@neuralinnovations/dataisland-sdk - v0.0.1-dev7](../../README.md) / [Exports](../modules.md) / Lifetime
2
+
3
+ # Class: Lifetime
4
+
5
+ Represents a lifetime.
6
+
7
+ ## Table of contents
8
+
9
+ ### Constructors
10
+
11
+ - [constructor](Lifetime.md#constructor)
12
+
13
+ ### Properties
14
+
15
+ - [container](Lifetime.md#container)
16
+
17
+ ### Accessors
18
+
19
+ - [isDisposed](Lifetime.md#isdisposed)
20
+
21
+ ### Methods
22
+
23
+ - [add](Lifetime.md#add)
24
+ - [addCallback](Lifetime.md#addcallback)
25
+ - [defineNested](Lifetime.md#definenested)
26
+
27
+ ## Constructors
28
+
29
+ ### constructor
30
+
31
+ • **new Lifetime**(`container`): [`Lifetime`](Lifetime.md)
32
+
33
+ #### Parameters
34
+
35
+ | Name | Type |
36
+ | :------ | :------ |
37
+ | `container` | [`DisposableContainer`](DisposableContainer.md) |
38
+
39
+ #### Returns
40
+
41
+ [`Lifetime`](Lifetime.md)
42
+
43
+ ## Properties
44
+
45
+ ### container
46
+
47
+ • `Private` `Readonly` **container**: [`DisposableContainer`](DisposableContainer.md)
48
+
49
+ ## Accessors
50
+
51
+ ### isDisposed
52
+
53
+ • `get` **isDisposed**(): `boolean`
54
+
55
+ Shows whether this lifetime is disposed.
56
+
57
+ #### Returns
58
+
59
+ `boolean`
60
+
61
+ ## Methods
62
+
63
+ ### add
64
+
65
+ ▸ **add**(`disposable`): `this`
66
+
67
+ Adds a disposable to this lifetime.
68
+
69
+ #### Parameters
70
+
71
+ | Name | Type |
72
+ | :------ | :------ |
73
+ | `disposable` | [`Disposable`](../interfaces/Disposable.md) |
74
+
75
+ #### Returns
76
+
77
+ `this`
78
+
79
+ ___
80
+
81
+ ### addCallback
82
+
83
+ ▸ **addCallback**(`callback`, `target?`): `this`
84
+
85
+ Adds a callback to this lifetime.
86
+
87
+ #### Parameters
88
+
89
+ | Name | Type |
90
+ | :------ | :------ |
91
+ | `callback` | () => `void` |
92
+ | `target?` | `unknown` |
93
+
94
+ #### Returns
95
+
96
+ `this`
97
+
98
+ ___
99
+
100
+ ### defineNested
101
+
102
+ ▸ **defineNested**(): [`DisposableContainer`](DisposableContainer.md)
103
+
104
+ Define a new nested disposable to this lifetime.
105
+
106
+ #### Returns
107
+
108
+ [`DisposableContainer`](DisposableContainer.md)
@@ -0,0 +1,89 @@
1
+ [@neuralinnovations/dataisland-sdk - v0.0.1-dev7](../../README.md) / [Exports](../modules.md) / Organization
2
+
3
+ # Class: Organization
4
+
5
+ Organization.
6
+
7
+ ## Table of contents
8
+
9
+ ### Constructors
10
+
11
+ - [constructor](Organization.md#constructor)
12
+
13
+ ### Accessors
14
+
15
+ - [accessGroups](Organization.md#accessgroups)
16
+ - [description](Organization.md#description)
17
+ - [id](Organization.md#id)
18
+ - [name](Organization.md#name)
19
+ - [workspaces](Organization.md#workspaces)
20
+
21
+ ## Constructors
22
+
23
+ ### constructor
24
+
25
+ • **new Organization**(): [`Organization`](Organization.md)
26
+
27
+ #### Returns
28
+
29
+ [`Organization`](Organization.md)
30
+
31
+ ## Accessors
32
+
33
+ ### accessGroups
34
+
35
+ • `get` **accessGroups**(): [`Groups`](Groups.md)
36
+
37
+ Groups.
38
+
39
+ #### Returns
40
+
41
+ [`Groups`](Groups.md)
42
+
43
+ ___
44
+
45
+ ### description
46
+
47
+ • `get` **description**(): `string`
48
+
49
+ Organization description.
50
+
51
+ #### Returns
52
+
53
+ `string`
54
+
55
+ ___
56
+
57
+ ### id
58
+
59
+ • `get` **id**(): `string`
60
+
61
+ Organization id.
62
+
63
+ #### Returns
64
+
65
+ `string`
66
+
67
+ ___
68
+
69
+ ### name
70
+
71
+ • `get` **name**(): `string`
72
+
73
+ Organization name.
74
+
75
+ #### Returns
76
+
77
+ `string`
78
+
79
+ ___
80
+
81
+ ### workspaces
82
+
83
+ • `get` **workspaces**(): [`Workspaces`](Workspaces.md)
84
+
85
+ Workspaces.
86
+
87
+ #### Returns
88
+
89
+ [`Workspaces`](Workspaces.md)
@@ -0,0 +1,195 @@
1
+ [@neuralinnovations/dataisland-sdk - v0.0.1-dev7](../../README.md) / [Exports](../modules.md) / Organizations
2
+
3
+ # Class: Organizations
4
+
5
+ Organizations storage.
6
+
7
+ ## Hierarchy
8
+
9
+ - [`EventDispatcher`](EventDispatcher.md)\<[`OrganizationsEvent`](../enums/OrganizationsEvent.md), [`Organization`](Organization.md)\>
10
+
11
+ ↳ **`Organizations`**
12
+
13
+ ## Table of contents
14
+
15
+ ### Constructors
16
+
17
+ - [constructor](Organizations.md#constructor)
18
+
19
+ ### Accessors
20
+
21
+ - [collection](Organizations.md#collection)
22
+ - [current](Organizations.md#current)
23
+
24
+ ### Methods
25
+
26
+ - [create](Organizations.md#create)
27
+ - [delete](Organizations.md#delete)
28
+ - [dispatch](Organizations.md#dispatch)
29
+ - [get](Organizations.md#get)
30
+ - [subscribe](Organizations.md#subscribe)
31
+ - [tryGet](Organizations.md#tryget)
32
+
33
+ ## Constructors
34
+
35
+ ### constructor
36
+
37
+ • **new Organizations**(): [`Organizations`](Organizations.md)
38
+
39
+ #### Returns
40
+
41
+ [`Organizations`](Organizations.md)
42
+
43
+ #### Inherited from
44
+
45
+ [EventDispatcher](EventDispatcher.md).[constructor](EventDispatcher.md#constructor)
46
+
47
+ ## Accessors
48
+
49
+ ### collection
50
+
51
+ • `get` **collection**(): readonly [`Organization`](Organization.md)[]
52
+
53
+ User's organizations.
54
+
55
+ #### Returns
56
+
57
+ readonly [`Organization`](Organization.md)[]
58
+
59
+ ___
60
+
61
+ ### current
62
+
63
+ • `get` **current**(): `string`
64
+
65
+ Current organization.
66
+
67
+ #### Returns
68
+
69
+ `string`
70
+
71
+ • `set` **current**(`value`): `void`
72
+
73
+ #### Parameters
74
+
75
+ | Name | Type |
76
+ | :------ | :------ |
77
+ | `value` | `string` |
78
+
79
+ #### Returns
80
+
81
+ `void`
82
+
83
+ ## Methods
84
+
85
+ ### create
86
+
87
+ ▸ **create**(`name`, `description`): `Promise`\<[`Organization`](Organization.md)\>
88
+
89
+ Create new organization.
90
+
91
+ #### Parameters
92
+
93
+ | Name | Type |
94
+ | :------ | :------ |
95
+ | `name` | `string` |
96
+ | `description` | `string` |
97
+
98
+ #### Returns
99
+
100
+ `Promise`\<[`Organization`](Organization.md)\>
101
+
102
+ ___
103
+
104
+ ### delete
105
+
106
+ ▸ **delete**(`id`): `Promise`\<`void`\>
107
+
108
+ Delete organization.
109
+
110
+ #### Parameters
111
+
112
+ | Name | Type |
113
+ | :------ | :------ |
114
+ | `id` | `string` |
115
+
116
+ #### Returns
117
+
118
+ `Promise`\<`void`\>
119
+
120
+ ___
121
+
122
+ ### dispatch
123
+
124
+ ▸ **dispatch**(`input`): `void`
125
+
126
+ #### Parameters
127
+
128
+ | Name | Type |
129
+ | :------ | :------ |
130
+ | `input` | [`Input`](../interfaces/Input.md)\<[`OrganizationsEvent`](../enums/OrganizationsEvent.md), [`Organization`](Organization.md)\> |
131
+
132
+ #### Returns
133
+
134
+ `void`
135
+
136
+ #### Inherited from
137
+
138
+ [EventDispatcher](EventDispatcher.md).[dispatch](EventDispatcher.md#dispatch)
139
+
140
+ ___
141
+
142
+ ### get
143
+
144
+ ▸ **get**(`id`): [`Organization`](Organization.md)
145
+
146
+ Get organization by id.
147
+
148
+ #### Parameters
149
+
150
+ | Name | Type |
151
+ | :------ | :------ |
152
+ | `id` | `string` |
153
+
154
+ #### Returns
155
+
156
+ [`Organization`](Organization.md)
157
+
158
+ ___
159
+
160
+ ### subscribe
161
+
162
+ ▸ **subscribe**(`callback`, `type?`): [`Disposable`](../interfaces/Disposable.md)
163
+
164
+ #### Parameters
165
+
166
+ | Name | Type |
167
+ | :------ | :------ |
168
+ | `callback` | (`event`: [`Event`](../interfaces/Event.md)\<[`OrganizationsEvent`](../enums/OrganizationsEvent.md), [`Organization`](Organization.md)\>) => `void` |
169
+ | `type?` | [`OrganizationsEvent`](../enums/OrganizationsEvent.md) |
170
+
171
+ #### Returns
172
+
173
+ [`Disposable`](../interfaces/Disposable.md)
174
+
175
+ #### Inherited from
176
+
177
+ [EventDispatcher](EventDispatcher.md).[subscribe](EventDispatcher.md#subscribe)
178
+
179
+ ___
180
+
181
+ ### tryGet
182
+
183
+ ▸ **tryGet**(`id`): `undefined` \| [`Organization`](Organization.md)
184
+
185
+ Try to get organization by id.
186
+
187
+ #### Parameters
188
+
189
+ | Name | Type |
190
+ | :------ | :------ |
191
+ | `id` | `string` |
192
+
193
+ #### Returns
194
+
195
+ `undefined` \| [`Organization`](Organization.md)