@neuralinnovations/dataisland-sdk 0.0.1-dev6 → 0.0.1-dev8
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 +10 -5
- package/.github/workflows/tests.yml +34 -0
- package/.github/workflows/version.yml +40 -0
- package/LICENSE +201 -0
- package/README.md +33 -0
- package/docs/.nojekyll +1 -0
- package/docs/classes/BasicCredential.md +80 -0
- package/docs/classes/BearerCredential.md +72 -0
- package/docs/classes/Chat.md +69 -0
- package/docs/classes/Chats.md +90 -0
- package/docs/classes/CredentialBase.md +54 -0
- package/docs/classes/DataIslandApp.md +168 -0
- package/docs/classes/DebugCredential.md +72 -0
- package/docs/classes/DefaultCredential.md +56 -0
- package/docs/classes/DisposableContainer.md +177 -0
- package/docs/classes/EventDispatcher.md +109 -0
- package/docs/classes/File.md +79 -0
- package/docs/classes/Files.md +136 -0
- package/docs/classes/FilesPage.md +76 -0
- package/docs/classes/Group.md +191 -0
- package/docs/classes/Groups.md +130 -0
- package/docs/classes/Lifetime.md +108 -0
- package/docs/classes/Organization.md +89 -0
- package/docs/classes/Organizations.md +195 -0
- package/docs/classes/UserProfile.md +156 -0
- package/docs/classes/Workspace.md +165 -0
- package/docs/classes/Workspaces.md +189 -0
- package/docs/enums/ChatAnswer.md +22 -0
- package/docs/enums/ChatsEvent.md +22 -0
- package/docs/enums/FilesEvent.md +24 -0
- package/docs/enums/GroupEvent.md +29 -0
- package/docs/enums/OrganizationsEvent.md +31 -0
- package/docs/enums/UserEvent.md +15 -0
- package/docs/enums/WorkspaceEvent.md +17 -0
- package/docs/enums/WorkspacesEvent.md +24 -0
- package/docs/interfaces/Disposable.md +25 -0
- package/docs/interfaces/Event.md +58 -0
- package/docs/interfaces/EventSubscriber.md +41 -0
- package/docs/interfaces/Input.md +35 -0
- package/docs/modules.md +205 -0
- package/package.json +4 -2
- package/scripts/docs/index.js +15 -0
@@ -0,0 +1,69 @@
|
|
1
|
+
[@neuralinnovations/dataisland-sdk - v0.0.1-dev8](../../README.md) / [Exports](../modules.md) / Chat
|
2
|
+
|
3
|
+
# Class: Chat
|
4
|
+
|
5
|
+
## Table of contents
|
6
|
+
|
7
|
+
### Constructors
|
8
|
+
|
9
|
+
- [constructor](Chat.md#constructor)
|
10
|
+
|
11
|
+
### Accessors
|
12
|
+
|
13
|
+
- [id](Chat.md#id)
|
14
|
+
- [name](Chat.md#name)
|
15
|
+
|
16
|
+
### Methods
|
17
|
+
|
18
|
+
- [question](Chat.md#question)
|
19
|
+
|
20
|
+
## Constructors
|
21
|
+
|
22
|
+
### constructor
|
23
|
+
|
24
|
+
• **new Chat**(): [`Chat`](Chat.md)
|
25
|
+
|
26
|
+
#### Returns
|
27
|
+
|
28
|
+
[`Chat`](Chat.md)
|
29
|
+
|
30
|
+
## Accessors
|
31
|
+
|
32
|
+
### id
|
33
|
+
|
34
|
+
• `get` **id**(): `string`
|
35
|
+
|
36
|
+
Chat id.
|
37
|
+
|
38
|
+
#### Returns
|
39
|
+
|
40
|
+
`string`
|
41
|
+
|
42
|
+
___
|
43
|
+
|
44
|
+
### name
|
45
|
+
|
46
|
+
• `get` **name**(): `string`
|
47
|
+
|
48
|
+
Chat name.
|
49
|
+
|
50
|
+
#### Returns
|
51
|
+
|
52
|
+
`string`
|
53
|
+
|
54
|
+
## Methods
|
55
|
+
|
56
|
+
### question
|
57
|
+
|
58
|
+
▸ **question**(`message`, `answer?`): `Promise`\<`void`\>
|
59
|
+
|
60
|
+
#### Parameters
|
61
|
+
|
62
|
+
| Name | Type |
|
63
|
+
| :------ | :------ |
|
64
|
+
| `message` | `string` |
|
65
|
+
| `answer?` | [`ChatAnswer`](../enums/ChatAnswer.md) |
|
66
|
+
|
67
|
+
#### Returns
|
68
|
+
|
69
|
+
`Promise`\<`void`\>
|
@@ -0,0 +1,90 @@
|
|
1
|
+
[@neuralinnovations/dataisland-sdk - v0.0.1-dev8](../../README.md) / [Exports](../modules.md) / Chats
|
2
|
+
|
3
|
+
# Class: Chats
|
4
|
+
|
5
|
+
Chats storage.
|
6
|
+
|
7
|
+
## Hierarchy
|
8
|
+
|
9
|
+
- [`EventDispatcher`](EventDispatcher.md)\<[`ChatsEvent`](../enums/ChatsEvent.md), [`Chat`](Chat.md)\>
|
10
|
+
|
11
|
+
↳ **`Chats`**
|
12
|
+
|
13
|
+
## Table of contents
|
14
|
+
|
15
|
+
### Constructors
|
16
|
+
|
17
|
+
- [constructor](Chats.md#constructor)
|
18
|
+
|
19
|
+
### Methods
|
20
|
+
|
21
|
+
- [create](Chats.md#create)
|
22
|
+
- [dispatch](Chats.md#dispatch)
|
23
|
+
- [subscribe](Chats.md#subscribe)
|
24
|
+
|
25
|
+
## Constructors
|
26
|
+
|
27
|
+
### constructor
|
28
|
+
|
29
|
+
• **new Chats**(): [`Chats`](Chats.md)
|
30
|
+
|
31
|
+
#### Returns
|
32
|
+
|
33
|
+
[`Chats`](Chats.md)
|
34
|
+
|
35
|
+
#### Inherited from
|
36
|
+
|
37
|
+
[EventDispatcher](EventDispatcher.md).[constructor](EventDispatcher.md#constructor)
|
38
|
+
|
39
|
+
## Methods
|
40
|
+
|
41
|
+
### create
|
42
|
+
|
43
|
+
▸ **create**(): `Promise`\<[`Chat`](Chat.md)\>
|
44
|
+
|
45
|
+
Create new chat.
|
46
|
+
|
47
|
+
#### Returns
|
48
|
+
|
49
|
+
`Promise`\<[`Chat`](Chat.md)\>
|
50
|
+
|
51
|
+
___
|
52
|
+
|
53
|
+
### dispatch
|
54
|
+
|
55
|
+
▸ **dispatch**(`input`): `void`
|
56
|
+
|
57
|
+
#### Parameters
|
58
|
+
|
59
|
+
| Name | Type |
|
60
|
+
| :------ | :------ |
|
61
|
+
| `input` | [`Input`](../interfaces/Input.md)\<[`ChatsEvent`](../enums/ChatsEvent.md), [`Chat`](Chat.md)\> |
|
62
|
+
|
63
|
+
#### Returns
|
64
|
+
|
65
|
+
`void`
|
66
|
+
|
67
|
+
#### Inherited from
|
68
|
+
|
69
|
+
[EventDispatcher](EventDispatcher.md).[dispatch](EventDispatcher.md#dispatch)
|
70
|
+
|
71
|
+
___
|
72
|
+
|
73
|
+
### subscribe
|
74
|
+
|
75
|
+
▸ **subscribe**(`callback`, `type?`): [`Disposable`](../interfaces/Disposable.md)
|
76
|
+
|
77
|
+
#### Parameters
|
78
|
+
|
79
|
+
| Name | Type |
|
80
|
+
| :------ | :------ |
|
81
|
+
| `callback` | (`event`: [`Event`](../interfaces/Event.md)\<[`ChatsEvent`](../enums/ChatsEvent.md), [`Chat`](Chat.md)\>) => `void` |
|
82
|
+
| `type?` | [`ChatsEvent`](../enums/ChatsEvent.md) |
|
83
|
+
|
84
|
+
#### Returns
|
85
|
+
|
86
|
+
[`Disposable`](../interfaces/Disposable.md)
|
87
|
+
|
88
|
+
#### Inherited from
|
89
|
+
|
90
|
+
[EventDispatcher](EventDispatcher.md).[subscribe](EventDispatcher.md#subscribe)
|
@@ -0,0 +1,54 @@
|
|
1
|
+
[@neuralinnovations/dataisland-sdk - v0.0.1-dev8](../../README.md) / [Exports](../modules.md) / CredentialBase
|
2
|
+
|
3
|
+
# Class: CredentialBase
|
4
|
+
|
5
|
+
DataIsland App credential.
|
6
|
+
|
7
|
+
## Hierarchy
|
8
|
+
|
9
|
+
- **`CredentialBase`**
|
10
|
+
|
11
|
+
↳ [`DefaultCredential`](DefaultCredential.md)
|
12
|
+
|
13
|
+
↳ [`BasicCredential`](BasicCredential.md)
|
14
|
+
|
15
|
+
↳ [`DebugCredential`](DebugCredential.md)
|
16
|
+
|
17
|
+
↳ [`BearerCredential`](BearerCredential.md)
|
18
|
+
|
19
|
+
## Table of contents
|
20
|
+
|
21
|
+
### Constructors
|
22
|
+
|
23
|
+
- [constructor](CredentialBase.md#constructor)
|
24
|
+
|
25
|
+
### Methods
|
26
|
+
|
27
|
+
- [onRegister](CredentialBase.md#onregister)
|
28
|
+
|
29
|
+
## Constructors
|
30
|
+
|
31
|
+
### constructor
|
32
|
+
|
33
|
+
• **new CredentialBase**(): [`CredentialBase`](CredentialBase.md)
|
34
|
+
|
35
|
+
#### Returns
|
36
|
+
|
37
|
+
[`CredentialBase`](CredentialBase.md)
|
38
|
+
|
39
|
+
## Methods
|
40
|
+
|
41
|
+
### onRegister
|
42
|
+
|
43
|
+
▸ **onRegister**(`lifetime`, `context`): `void`
|
44
|
+
|
45
|
+
#### Parameters
|
46
|
+
|
47
|
+
| Name | Type |
|
48
|
+
| :------ | :------ |
|
49
|
+
| `lifetime` | [`Lifetime`](Lifetime.md) |
|
50
|
+
| `context` | `Context` |
|
51
|
+
|
52
|
+
#### Returns
|
53
|
+
|
54
|
+
`void`
|
@@ -0,0 +1,168 @@
|
|
1
|
+
[@neuralinnovations/dataisland-sdk - v0.0.1-dev8](../../README.md) / [Exports](../modules.md) / DataIslandApp
|
2
|
+
|
3
|
+
# Class: DataIslandApp
|
4
|
+
|
5
|
+
DataIsland App instance.
|
6
|
+
|
7
|
+
## Table of contents
|
8
|
+
|
9
|
+
### Constructors
|
10
|
+
|
11
|
+
- [constructor](DataIslandApp.md#constructor)
|
12
|
+
|
13
|
+
### Accessors
|
14
|
+
|
15
|
+
- [automaticDataCollectionEnabled](DataIslandApp.md#automaticdatacollectionenabled)
|
16
|
+
- [context](DataIslandApp.md#context)
|
17
|
+
- [credential](DataIslandApp.md#credential)
|
18
|
+
- [host](DataIslandApp.md#host)
|
19
|
+
- [lifetime](DataIslandApp.md#lifetime)
|
20
|
+
- [name](DataIslandApp.md#name)
|
21
|
+
- [organizations](DataIslandApp.md#organizations)
|
22
|
+
- [userProfile](DataIslandApp.md#userprofile)
|
23
|
+
|
24
|
+
### Methods
|
25
|
+
|
26
|
+
- [resolve](DataIslandApp.md#resolve)
|
27
|
+
|
28
|
+
## Constructors
|
29
|
+
|
30
|
+
### constructor
|
31
|
+
|
32
|
+
• **new DataIslandApp**(): [`DataIslandApp`](DataIslandApp.md)
|
33
|
+
|
34
|
+
#### Returns
|
35
|
+
|
36
|
+
[`DataIslandApp`](DataIslandApp.md)
|
37
|
+
|
38
|
+
## Accessors
|
39
|
+
|
40
|
+
### automaticDataCollectionEnabled
|
41
|
+
|
42
|
+
• `get` **automaticDataCollectionEnabled**(): `boolean`
|
43
|
+
|
44
|
+
The automaticDataCollectionEnabled of this app.
|
45
|
+
|
46
|
+
#### Returns
|
47
|
+
|
48
|
+
`boolean`
|
49
|
+
|
50
|
+
___
|
51
|
+
|
52
|
+
### context
|
53
|
+
|
54
|
+
• `get` **context**(): `Context`
|
55
|
+
|
56
|
+
The context of this app.
|
57
|
+
|
58
|
+
#### Returns
|
59
|
+
|
60
|
+
`Context`
|
61
|
+
|
62
|
+
___
|
63
|
+
|
64
|
+
### credential
|
65
|
+
|
66
|
+
• `get` **credential**(): `undefined` \| [`CredentialBase`](CredentialBase.md)
|
67
|
+
|
68
|
+
The credential of this app.
|
69
|
+
|
70
|
+
#### Returns
|
71
|
+
|
72
|
+
`undefined` \| [`CredentialBase`](CredentialBase.md)
|
73
|
+
|
74
|
+
• `set` **credential**(`value`): `void`
|
75
|
+
|
76
|
+
#### Parameters
|
77
|
+
|
78
|
+
| Name | Type |
|
79
|
+
| :------ | :------ |
|
80
|
+
| `value` | [`CredentialBase`](CredentialBase.md) |
|
81
|
+
|
82
|
+
#### Returns
|
83
|
+
|
84
|
+
`void`
|
85
|
+
|
86
|
+
___
|
87
|
+
|
88
|
+
### host
|
89
|
+
|
90
|
+
• `get` **host**(): `string`
|
91
|
+
|
92
|
+
The host of this app.
|
93
|
+
|
94
|
+
#### Returns
|
95
|
+
|
96
|
+
`string`
|
97
|
+
|
98
|
+
___
|
99
|
+
|
100
|
+
### lifetime
|
101
|
+
|
102
|
+
• `get` **lifetime**(): [`Lifetime`](Lifetime.md)
|
103
|
+
|
104
|
+
The lifetime of this app.
|
105
|
+
|
106
|
+
#### Returns
|
107
|
+
|
108
|
+
[`Lifetime`](Lifetime.md)
|
109
|
+
|
110
|
+
___
|
111
|
+
|
112
|
+
### name
|
113
|
+
|
114
|
+
• `get` **name**(): `string`
|
115
|
+
|
116
|
+
The name of this app.
|
117
|
+
|
118
|
+
#### Returns
|
119
|
+
|
120
|
+
`string`
|
121
|
+
|
122
|
+
___
|
123
|
+
|
124
|
+
### organizations
|
125
|
+
|
126
|
+
• `get` **organizations**(): [`Organizations`](Organizations.md)
|
127
|
+
|
128
|
+
User's organizations.
|
129
|
+
|
130
|
+
#### Returns
|
131
|
+
|
132
|
+
[`Organizations`](Organizations.md)
|
133
|
+
|
134
|
+
___
|
135
|
+
|
136
|
+
### userProfile
|
137
|
+
|
138
|
+
• `get` **userProfile**(): [`UserProfile`](UserProfile.md)
|
139
|
+
|
140
|
+
User's profile.
|
141
|
+
|
142
|
+
#### Returns
|
143
|
+
|
144
|
+
[`UserProfile`](UserProfile.md)
|
145
|
+
|
146
|
+
## Methods
|
147
|
+
|
148
|
+
### resolve
|
149
|
+
|
150
|
+
▸ **resolve**\<`T`\>(`type`): `undefined` \| `T`
|
151
|
+
|
152
|
+
Resolve a service from the app.
|
153
|
+
|
154
|
+
#### Type parameters
|
155
|
+
|
156
|
+
| Name |
|
157
|
+
| :------ |
|
158
|
+
| `T` |
|
159
|
+
|
160
|
+
#### Parameters
|
161
|
+
|
162
|
+
| Name | Type |
|
163
|
+
| :------ | :------ |
|
164
|
+
| `type` | `Constructor`\<`T`\> |
|
165
|
+
|
166
|
+
#### Returns
|
167
|
+
|
168
|
+
`undefined` \| `T`
|
@@ -0,0 +1,72 @@
|
|
1
|
+
[@neuralinnovations/dataisland-sdk - v0.0.1-dev8](../../README.md) / [Exports](../modules.md) / DebugCredential
|
2
|
+
|
3
|
+
# Class: DebugCredential
|
4
|
+
|
5
|
+
DataIsland App credential.
|
6
|
+
|
7
|
+
## Hierarchy
|
8
|
+
|
9
|
+
- [`CredentialBase`](CredentialBase.md)
|
10
|
+
|
11
|
+
↳ **`DebugCredential`**
|
12
|
+
|
13
|
+
## Table of contents
|
14
|
+
|
15
|
+
### Constructors
|
16
|
+
|
17
|
+
- [constructor](DebugCredential.md#constructor)
|
18
|
+
|
19
|
+
### Properties
|
20
|
+
|
21
|
+
- [token](DebugCredential.md#token)
|
22
|
+
|
23
|
+
### Methods
|
24
|
+
|
25
|
+
- [onRegister](DebugCredential.md#onregister)
|
26
|
+
|
27
|
+
## Constructors
|
28
|
+
|
29
|
+
### constructor
|
30
|
+
|
31
|
+
• **new DebugCredential**(`token`): [`DebugCredential`](DebugCredential.md)
|
32
|
+
|
33
|
+
#### Parameters
|
34
|
+
|
35
|
+
| Name | Type |
|
36
|
+
| :------ | :------ |
|
37
|
+
| `token` | `string` |
|
38
|
+
|
39
|
+
#### Returns
|
40
|
+
|
41
|
+
[`DebugCredential`](DebugCredential.md)
|
42
|
+
|
43
|
+
#### Overrides
|
44
|
+
|
45
|
+
[CredentialBase](CredentialBase.md).[constructor](CredentialBase.md#constructor)
|
46
|
+
|
47
|
+
## Properties
|
48
|
+
|
49
|
+
### token
|
50
|
+
|
51
|
+
• `Readonly` **token**: `string`
|
52
|
+
|
53
|
+
## Methods
|
54
|
+
|
55
|
+
### onRegister
|
56
|
+
|
57
|
+
▸ **onRegister**(`lifetime`, `context`): `void`
|
58
|
+
|
59
|
+
#### Parameters
|
60
|
+
|
61
|
+
| Name | Type |
|
62
|
+
| :------ | :------ |
|
63
|
+
| `lifetime` | [`Lifetime`](Lifetime.md) |
|
64
|
+
| `context` | `Context` |
|
65
|
+
|
66
|
+
#### Returns
|
67
|
+
|
68
|
+
`void`
|
69
|
+
|
70
|
+
#### Overrides
|
71
|
+
|
72
|
+
[CredentialBase](CredentialBase.md).[onRegister](CredentialBase.md#onregister)
|
@@ -0,0 +1,56 @@
|
|
1
|
+
[@neuralinnovations/dataisland-sdk - v0.0.1-dev8](../../README.md) / [Exports](../modules.md) / DefaultCredential
|
2
|
+
|
3
|
+
# Class: DefaultCredential
|
4
|
+
|
5
|
+
DataIsland App credential.
|
6
|
+
|
7
|
+
## Hierarchy
|
8
|
+
|
9
|
+
- [`CredentialBase`](CredentialBase.md)
|
10
|
+
|
11
|
+
↳ **`DefaultCredential`**
|
12
|
+
|
13
|
+
## Table of contents
|
14
|
+
|
15
|
+
### Constructors
|
16
|
+
|
17
|
+
- [constructor](DefaultCredential.md#constructor)
|
18
|
+
|
19
|
+
### Methods
|
20
|
+
|
21
|
+
- [onRegister](DefaultCredential.md#onregister)
|
22
|
+
|
23
|
+
## Constructors
|
24
|
+
|
25
|
+
### constructor
|
26
|
+
|
27
|
+
• **new DefaultCredential**(): [`DefaultCredential`](DefaultCredential.md)
|
28
|
+
|
29
|
+
#### Returns
|
30
|
+
|
31
|
+
[`DefaultCredential`](DefaultCredential.md)
|
32
|
+
|
33
|
+
#### Inherited from
|
34
|
+
|
35
|
+
[CredentialBase](CredentialBase.md).[constructor](CredentialBase.md#constructor)
|
36
|
+
|
37
|
+
## Methods
|
38
|
+
|
39
|
+
### onRegister
|
40
|
+
|
41
|
+
▸ **onRegister**(`lifetime`, `context`): `void`
|
42
|
+
|
43
|
+
#### Parameters
|
44
|
+
|
45
|
+
| Name | Type |
|
46
|
+
| :------ | :------ |
|
47
|
+
| `lifetime` | [`Lifetime`](Lifetime.md) |
|
48
|
+
| `context` | `Context` |
|
49
|
+
|
50
|
+
#### Returns
|
51
|
+
|
52
|
+
`void`
|
53
|
+
|
54
|
+
#### Overrides
|
55
|
+
|
56
|
+
[CredentialBase](CredentialBase.md).[onRegister](CredentialBase.md#onregister)
|
@@ -0,0 +1,177 @@
|
|
1
|
+
[@neuralinnovations/dataisland-sdk - v0.0.1-dev8](../../README.md) / [Exports](../modules.md) / DisposableContainer
|
2
|
+
|
3
|
+
# Class: DisposableContainer
|
4
|
+
|
5
|
+
A container for disposables.
|
6
|
+
Last added, first disposed.
|
7
|
+
|
8
|
+
**`Example`**
|
9
|
+
|
10
|
+
```ts
|
11
|
+
const container = new DisposableContainer();
|
12
|
+
container.add(someDisposable);
|
13
|
+
container.addCallback(() => console.log('disposed'));
|
14
|
+
container.dispose();
|
15
|
+
```
|
16
|
+
|
17
|
+
## Implements
|
18
|
+
|
19
|
+
- [`Disposable`](../interfaces/Disposable.md)
|
20
|
+
|
21
|
+
## Table of contents
|
22
|
+
|
23
|
+
### Constructors
|
24
|
+
|
25
|
+
- [constructor](DisposableContainer.md#constructor)
|
26
|
+
|
27
|
+
### Properties
|
28
|
+
|
29
|
+
- [\_disposables](DisposableContainer.md#_disposables)
|
30
|
+
- [\_isDisposed](DisposableContainer.md#_isdisposed)
|
31
|
+
- [\_lifetime](DisposableContainer.md#_lifetime)
|
32
|
+
|
33
|
+
### Accessors
|
34
|
+
|
35
|
+
- [isDisposed](DisposableContainer.md#isdisposed)
|
36
|
+
- [lifetime](DisposableContainer.md#lifetime)
|
37
|
+
|
38
|
+
### Methods
|
39
|
+
|
40
|
+
- [\_throwIfDisposed](DisposableContainer.md#_throwifdisposed)
|
41
|
+
- [add](DisposableContainer.md#add)
|
42
|
+
- [addCallback](DisposableContainer.md#addcallback)
|
43
|
+
- [defineNested](DisposableContainer.md#definenested)
|
44
|
+
- [dispose](DisposableContainer.md#dispose)
|
45
|
+
|
46
|
+
## Constructors
|
47
|
+
|
48
|
+
### constructor
|
49
|
+
|
50
|
+
• **new DisposableContainer**(): [`DisposableContainer`](DisposableContainer.md)
|
51
|
+
|
52
|
+
#### Returns
|
53
|
+
|
54
|
+
[`DisposableContainer`](DisposableContainer.md)
|
55
|
+
|
56
|
+
## Properties
|
57
|
+
|
58
|
+
### \_disposables
|
59
|
+
|
60
|
+
• `Private` **\_disposables**: [`Disposable`](../interfaces/Disposable.md)[] = `[]`
|
61
|
+
|
62
|
+
___
|
63
|
+
|
64
|
+
### \_isDisposed
|
65
|
+
|
66
|
+
• `Private` **\_isDisposed**: `boolean` = `false`
|
67
|
+
|
68
|
+
___
|
69
|
+
|
70
|
+
### \_lifetime
|
71
|
+
|
72
|
+
• `Private` `Optional` **\_lifetime**: [`Lifetime`](Lifetime.md)
|
73
|
+
|
74
|
+
## Accessors
|
75
|
+
|
76
|
+
### isDisposed
|
77
|
+
|
78
|
+
• `get` **isDisposed**(): `boolean`
|
79
|
+
|
80
|
+
Gets whether this container is disposed.
|
81
|
+
|
82
|
+
#### Returns
|
83
|
+
|
84
|
+
`boolean`
|
85
|
+
|
86
|
+
___
|
87
|
+
|
88
|
+
### lifetime
|
89
|
+
|
90
|
+
• `get` **lifetime**(): [`Lifetime`](Lifetime.md)
|
91
|
+
|
92
|
+
Define new lifetime.
|
93
|
+
|
94
|
+
#### Returns
|
95
|
+
|
96
|
+
[`Lifetime`](Lifetime.md)
|
97
|
+
|
98
|
+
## Methods
|
99
|
+
|
100
|
+
### \_throwIfDisposed
|
101
|
+
|
102
|
+
▸ **_throwIfDisposed**(): `void`
|
103
|
+
|
104
|
+
Throws an error if this container is disposed.
|
105
|
+
|
106
|
+
#### Returns
|
107
|
+
|
108
|
+
`void`
|
109
|
+
|
110
|
+
___
|
111
|
+
|
112
|
+
### add
|
113
|
+
|
114
|
+
▸ **add**(`disposable`): [`Disposable`](../interfaces/Disposable.md)
|
115
|
+
|
116
|
+
Adds a disposable to this container.
|
117
|
+
|
118
|
+
#### Parameters
|
119
|
+
|
120
|
+
| Name | Type | Description |
|
121
|
+
| :------ | :------ | :------ |
|
122
|
+
| `disposable` | [`Disposable`](../interfaces/Disposable.md) | The disposable to add. |
|
123
|
+
|
124
|
+
#### Returns
|
125
|
+
|
126
|
+
[`Disposable`](../interfaces/Disposable.md)
|
127
|
+
|
128
|
+
The disposable container.
|
129
|
+
|
130
|
+
___
|
131
|
+
|
132
|
+
### addCallback
|
133
|
+
|
134
|
+
▸ **addCallback**(`callback`, `target?`): [`Disposable`](../interfaces/Disposable.md)
|
135
|
+
|
136
|
+
Adds a callback to be executed when this container is disposed.
|
137
|
+
|
138
|
+
#### Parameters
|
139
|
+
|
140
|
+
| Name | Type | Description |
|
141
|
+
| :------ | :------ | :------ |
|
142
|
+
| `callback` | () => `void` | The callback to execute. |
|
143
|
+
| `target?` | `unknown` | The target to bind the callback to. |
|
144
|
+
|
145
|
+
#### Returns
|
146
|
+
|
147
|
+
[`Disposable`](../interfaces/Disposable.md)
|
148
|
+
|
149
|
+
The disposable container.
|
150
|
+
|
151
|
+
___
|
152
|
+
|
153
|
+
### defineNested
|
154
|
+
|
155
|
+
▸ **defineNested**(): [`DisposableContainer`](DisposableContainer.md)
|
156
|
+
|
157
|
+
Defines a nested disposable container.
|
158
|
+
|
159
|
+
#### Returns
|
160
|
+
|
161
|
+
[`DisposableContainer`](DisposableContainer.md)
|
162
|
+
|
163
|
+
___
|
164
|
+
|
165
|
+
### dispose
|
166
|
+
|
167
|
+
▸ **dispose**(): `void`
|
168
|
+
|
169
|
+
Disposes all disposables in this container. Last added, first disposed.
|
170
|
+
|
171
|
+
#### Returns
|
172
|
+
|
173
|
+
`void`
|
174
|
+
|
175
|
+
#### Implementation of
|
176
|
+
|
177
|
+
[Disposable](../interfaces/Disposable.md).[dispose](../interfaces/Disposable.md#dispose)
|