@neuralinnovations/dataisland-sdk 0.0.1-dev7 → 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/docs.yml +32 -0
- package/.github/workflows/format.yml +42 -0
- package/.github/workflows/publish-npm.yml +19 -16
- package/.github/workflows/tests.yml +38 -0
- package/.github/workflows/version.yml +44 -0
- package/LICENSE +201 -0
- package/README.md +37 -2
- 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
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
|
|
@@ -0,0 +1,22 @@
|
|
1
|
+
[@neuralinnovations/dataisland-sdk - v0.0.1-dev9](../../README.md) / [Exports](../modules.md) / ChatAnswerType
|
2
|
+
|
3
|
+
# Enumeration: ChatAnswerType
|
4
|
+
|
5
|
+
## Table of contents
|
6
|
+
|
7
|
+
### Enumeration Members
|
8
|
+
|
9
|
+
- [LONG](ChatAnswerType.md#long)
|
10
|
+
- [SHORT](ChatAnswerType.md#short)
|
11
|
+
|
12
|
+
## Enumeration Members
|
13
|
+
|
14
|
+
### LONG
|
15
|
+
|
16
|
+
• **LONG** = ``"long"``
|
17
|
+
|
18
|
+
___
|
19
|
+
|
20
|
+
### SHORT
|
21
|
+
|
22
|
+
• **SHORT** = ``"short"``
|
package/docs/enums/ChatsEvent.md
CHANGED
package/docs/enums/FilesEvent.md
CHANGED
package/docs/enums/GroupEvent.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) / GroupEvent
|
2
2
|
|
3
3
|
# Enumeration: GroupEvent
|
4
4
|
|
5
|
+
Group event.
|
6
|
+
|
5
7
|
## Table of contents
|
6
8
|
|
7
9
|
### Enumeration Members
|
package/docs/enums/UserEvent.md
CHANGED
package/docs/interfaces/Event.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) / EventSubscriber
|
2
2
|
|
3
3
|
# Interface: EventSubscriber\<EventType, DataType\>
|
4
4
|
|
package/docs/interfaces/Input.md
CHANGED
package/docs/modules.md
CHANGED
@@ -1,12 +1,12 @@
|
|
1
|
-
[@neuralinnovations/dataisland-sdk - v0.0.1-
|
1
|
+
[@neuralinnovations/dataisland-sdk - v0.0.1-dev9](../README.md) / Exports
|
2
2
|
|
3
|
-
# @neuralinnovations/dataisland-sdk - v0.0.1-
|
3
|
+
# @neuralinnovations/dataisland-sdk - v0.0.1-dev9
|
4
4
|
|
5
5
|
## Table of contents
|
6
6
|
|
7
7
|
### Enumerations
|
8
8
|
|
9
|
-
- [
|
9
|
+
- [ChatAnswerType](enums/ChatAnswerType.md)
|
10
10
|
- [ChatsEvent](enums/ChatsEvent.md)
|
11
11
|
- [FilesEvent](enums/FilesEvent.md)
|
12
12
|
- [GroupEvent](enums/GroupEvent.md)
|
@@ -86,6 +86,8 @@ ___
|
|
86
86
|
|
87
87
|
Ƭ **GroupId**: `string`
|
88
88
|
|
89
|
+
Group id.
|
90
|
+
|
89
91
|
___
|
90
92
|
|
91
93
|
### OrganizationId
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@neuralinnovations/dataisland-sdk",
|
3
|
-
"version": "0.0.1-
|
3
|
+
"version": "0.0.1-dev9",
|
4
4
|
"description": "SDK for DataIsland project",
|
5
5
|
"licenses": [
|
6
6
|
{
|
@@ -8,12 +8,16 @@
|
|
8
8
|
"url": "https://www.apache.org/licenses/LICENSE-2.0.html"
|
9
9
|
}
|
10
10
|
],
|
11
|
+
"repository": {
|
12
|
+
"type": "git",
|
13
|
+
"url": "https://github.com/NeuralInnovations/dataisland-client-js-sdk.git"
|
14
|
+
},
|
11
15
|
"publishConfig": {
|
12
16
|
"access": "public"
|
13
17
|
},
|
14
18
|
"scripts": {
|
15
19
|
"build": "tsc",
|
16
|
-
"test": "jest",
|
20
|
+
"test": "jest --runInBand",
|
17
21
|
"lint": "eslint --ext .ts,.tsx src test",
|
18
22
|
"lint:fix": "eslint --fix --ext .ts,.tsx src test",
|
19
23
|
"docs": "typedoc --disableSources --includeVersion --plugin typedoc-plugin-markdown --out docs src/index.ts && node scripts/docs/index.js"
|
package/src/dataIslandApp.ts
CHANGED
@@ -2,8 +2,8 @@ import type { Lifetime } from "./disposable"
|
|
2
2
|
import type { CredentialBase } from "./credentials"
|
3
3
|
import { Context } from "./context"
|
4
4
|
import type { Constructor } from "./internal/registry"
|
5
|
-
import { Organizations } from "./storages/organizations"
|
6
|
-
import { UserProfile } from "./storages/userProfile"
|
5
|
+
import { Organizations } from "./storages/organizations/organizations"
|
6
|
+
import { UserProfile } from "./storages/user/userProfile"
|
7
7
|
|
8
8
|
/**
|
9
9
|
* DataIsland App instance.
|