@interopio/workspaces-api 3.2.2 → 3.3.0
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/dist/workspaces.es.js +1 -1
- package/dist/workspaces.umd.js +1 -1
- package/dist/workspaces.umd.min.js +1 -1
- package/package.json +3 -3
- package/rollup.config.js +0 -54
- package/src/builders/baseBuilder.ts +0 -50
- package/src/builders/parentBuilder.ts +0 -62
- package/src/builders/workspaceBuilder.ts +0 -102
- package/src/communication/bridge.ts +0 -263
- package/src/communication/constants.ts +0 -202
- package/src/communication/interop-transport.ts +0 -175
- package/src/controllers/base.ts +0 -487
- package/src/controllers/main.ts +0 -541
- package/src/controllers/shortcuts.ts +0 -28
- package/src/index.ts +0 -23
- package/src/main.ts +0 -415
- package/src/models/base/base.ts +0 -397
- package/src/models/column.ts +0 -187
- package/src/models/frame.ts +0 -368
- package/src/models/group.ts +0 -237
- package/src/models/row.ts +0 -188
- package/src/models/window.ts +0 -309
- package/src/models/workspace.ts +0 -717
- package/src/shared/decoders.ts +0 -940
- package/src/shared/ioc.ts +0 -227
- package/src/shared/privateDataManager.ts +0 -93
- package/src/shared/promisePlus.ts +0 -34
- package/src/shared/promiseWrapper.ts +0 -11
- package/src/types/builders.ts +0 -10
- package/src/types/controller.ts +0 -79
- package/src/types/glue.ts +0 -37
- package/src/types/ioc.ts +0 -33
- package/src/types/privateData.ts +0 -92
- package/src/types/protocol.ts +0 -453
- package/src/types/subscription.ts +0 -31
- package/temp.d.ts +0 -49
- package/tsconfig.json +0 -10
package/src/types/protocol.ts
DELETED
|
@@ -1,453 +0,0 @@
|
|
|
1
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
|
-
import { Decoder } from "decoder-validate";
|
|
3
|
-
import { IOConnectWorkspaces } from "../../workspaces";
|
|
4
|
-
|
|
5
|
-
export interface StreamOperation {
|
|
6
|
-
name: string;
|
|
7
|
-
payloadDecoder: Decoder<any>;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export interface ControlOperation {
|
|
11
|
-
name: string;
|
|
12
|
-
resultDecoder: Decoder<any>;
|
|
13
|
-
argsDecoder?: Decoder<any>;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
// #region incoming
|
|
17
|
-
export interface IsWindowInSwimlaneResult {
|
|
18
|
-
inWorkspace: boolean;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export interface WorkspaceConfigResult {
|
|
22
|
-
frameId: string;
|
|
23
|
-
title: string;
|
|
24
|
-
name: string;
|
|
25
|
-
positionIndex: number;
|
|
26
|
-
layoutName: string | undefined;
|
|
27
|
-
isHibernated?: boolean;
|
|
28
|
-
allowSplitters?: boolean;
|
|
29
|
-
allowDrop?: boolean;
|
|
30
|
-
allowDropLeft?: boolean;
|
|
31
|
-
allowDropTop?: boolean;
|
|
32
|
-
allowDropRight?: boolean;
|
|
33
|
-
allowDropBottom?: boolean;
|
|
34
|
-
allowSystemHibernation?: boolean;
|
|
35
|
-
allowExtract?: boolean;
|
|
36
|
-
allowWindowReorder?: boolean;
|
|
37
|
-
showCloseButton?: boolean;
|
|
38
|
-
showSaveButton?: boolean;
|
|
39
|
-
allowWorkspaceTabReorder?: boolean;
|
|
40
|
-
allowWorkspaceTabExtract?: boolean;
|
|
41
|
-
minWidth?: number;
|
|
42
|
-
maxWidth?: number;
|
|
43
|
-
minHeight?: number;
|
|
44
|
-
maxHeight?: number;
|
|
45
|
-
showWindowCloseButtons?: boolean;
|
|
46
|
-
showAddWindowButtons?: boolean;
|
|
47
|
-
showEjectButtons?: boolean;
|
|
48
|
-
widthInPx?: number;
|
|
49
|
-
heightInPx?: number;
|
|
50
|
-
isSelected?: boolean;
|
|
51
|
-
isPinned?: boolean;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
export interface BaseChildSnapshotConfig {
|
|
55
|
-
frameId: string;
|
|
56
|
-
workspaceId: string;
|
|
57
|
-
positionIndex: number;
|
|
58
|
-
minWidth?: number;
|
|
59
|
-
maxWidth?: number;
|
|
60
|
-
minHeight?: number;
|
|
61
|
-
maxHeight?: number;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
export type ParentSnapshotConfig = RowSnapshotConfig | ColumnSnapshotConfig | GroupSnapshotConfig;
|
|
65
|
-
|
|
66
|
-
export interface RowSnapshotConfig extends BaseChildSnapshotConfig {
|
|
67
|
-
type?: "row";
|
|
68
|
-
allowDrop?: boolean;
|
|
69
|
-
allowSplitters?: boolean;
|
|
70
|
-
widthInPx?: number;
|
|
71
|
-
heightInPx?: number;
|
|
72
|
-
isPinned?: boolean;
|
|
73
|
-
isMaximized?: boolean;
|
|
74
|
-
maximizationBoundary?: boolean
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
export interface ColumnSnapshotConfig extends BaseChildSnapshotConfig {
|
|
78
|
-
type?: "column";
|
|
79
|
-
allowDrop?: boolean;
|
|
80
|
-
allowSplitters?: boolean;
|
|
81
|
-
widthInPx?: number;
|
|
82
|
-
heightInPx?: number;
|
|
83
|
-
isPinned?: boolean;
|
|
84
|
-
isMaximized?: boolean;
|
|
85
|
-
maximizationBoundary?: boolean
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
export interface GroupSnapshotConfig extends BaseChildSnapshotConfig {
|
|
89
|
-
type?: "group";
|
|
90
|
-
allowDrop?: boolean;
|
|
91
|
-
allowDropLeft?: boolean;
|
|
92
|
-
allowDropRight?: boolean;
|
|
93
|
-
allowDropTop?: boolean;
|
|
94
|
-
allowDropBottom?: boolean;
|
|
95
|
-
allowDropHeader?: boolean;
|
|
96
|
-
allowExtract?: boolean;
|
|
97
|
-
allowReorder?: boolean;
|
|
98
|
-
showMaximizeButton?: boolean;
|
|
99
|
-
showEjectButton?: boolean;
|
|
100
|
-
showAddWindowButton?: boolean;
|
|
101
|
-
widthInPx?: number;
|
|
102
|
-
heightInPx?: number;
|
|
103
|
-
isMaximized?: boolean;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
export interface SwimlaneWindowSnapshotConfig extends BaseChildSnapshotConfig {
|
|
107
|
-
windowId?: string;
|
|
108
|
-
isMaximized: boolean;
|
|
109
|
-
isFocused: boolean;
|
|
110
|
-
isSelected?: boolean;
|
|
111
|
-
appName?: string;
|
|
112
|
-
title?: string;
|
|
113
|
-
allowExtract?: boolean;
|
|
114
|
-
allowReorder?: boolean;
|
|
115
|
-
showCloseButton?: boolean;
|
|
116
|
-
widthInPx?: number;
|
|
117
|
-
heightInPx?: number;
|
|
118
|
-
context?: any;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
export interface WindowSnapshotResult {
|
|
122
|
-
id: string;
|
|
123
|
-
type: "window";
|
|
124
|
-
config: SwimlaneWindowSnapshotConfig;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
export interface SubParentSnapshotResult {
|
|
128
|
-
id: string;
|
|
129
|
-
type: "row" | "column" | "group";
|
|
130
|
-
children: ChildSnapshotResult[];
|
|
131
|
-
config: ParentSnapshotConfig;
|
|
132
|
-
}
|
|
133
|
-
export type ChildSnapshotResult = WindowSnapshotResult | SubParentSnapshotResult;
|
|
134
|
-
|
|
135
|
-
export interface FrameSnapshotResult {
|
|
136
|
-
id: string;
|
|
137
|
-
config: any;
|
|
138
|
-
workspaces: WorkspaceSnapshotResult[];
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
export interface FrameSummaryResult {
|
|
142
|
-
id: string;
|
|
143
|
-
isFocused?: boolean;
|
|
144
|
-
isInitialized?: boolean;
|
|
145
|
-
initializationContext?: IOConnectWorkspaces.FrameInitializationContext;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
export interface FrameSummariesResult {
|
|
149
|
-
summaries: FrameSummaryResult[];
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
export interface WorkspaceSnapshotResult {
|
|
153
|
-
id: string;
|
|
154
|
-
config: WorkspaceConfigResult;
|
|
155
|
-
children: ChildSnapshotResult[];
|
|
156
|
-
frameSummary: FrameSummaryResult;
|
|
157
|
-
context?: any;
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
export interface WorkspaceSummaryResult {
|
|
161
|
-
id: string;
|
|
162
|
-
config: WorkspaceConfigResult;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
export interface WorkspaceSummariesResult {
|
|
166
|
-
summaries: WorkspaceSummaryResult[];
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
export interface LayoutSummary {
|
|
170
|
-
name: string;
|
|
171
|
-
applicationName?: string;
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
export interface LayoutSummariesResult {
|
|
175
|
-
summaries: LayoutSummary[];
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
export interface ContainerSummaryResult {
|
|
179
|
-
itemId: string;
|
|
180
|
-
config: ParentSnapshotConfig;
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
export interface ExportedLayoutsResult {
|
|
184
|
-
layouts: IOConnectWorkspaces.WorkspaceLayout[];
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
export interface SimpleWindowOperationSuccessResult {
|
|
188
|
-
windowId: string;
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
export interface AddItemResult {
|
|
192
|
-
itemId: string;
|
|
193
|
-
windowId?: string;
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
export interface PingResult {
|
|
197
|
-
live: boolean;
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
export interface FrameStateResult {
|
|
201
|
-
state: IOConnectWorkspaces.FrameState;
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
export interface FrameBounds {
|
|
205
|
-
top: number;
|
|
206
|
-
left: number;
|
|
207
|
-
width: number;
|
|
208
|
-
height: number;
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
export interface FrameBoundsResult {
|
|
212
|
-
bounds: FrameBounds;
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
export interface GetWorkspaceIconResult {
|
|
216
|
-
icon: string;
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
export interface GetPlatformFrameIdResult {
|
|
220
|
-
id?: string;
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
export interface OperationCheckResult {
|
|
224
|
-
isSupported: boolean;
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
// #endregion
|
|
229
|
-
|
|
230
|
-
// #region outgoing
|
|
231
|
-
|
|
232
|
-
export interface WorkspaceCreateConfigProtocol extends IOConnectWorkspaces.WorkspaceDefinition {
|
|
233
|
-
saveConfig?: IOConnectWorkspaces.WorkspaceCreateConfig;
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
export interface FrameInitializationConfigProtocol extends IOConnectWorkspaces.FrameInitializationConfig {
|
|
237
|
-
frameId: string;
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
export interface GetFrameSummaryConfig {
|
|
241
|
-
itemId: string;
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
export interface OpenWorkspaceConfig {
|
|
245
|
-
name: string;
|
|
246
|
-
options?: IOConnectWorkspaces.RestoreWorkspaceConfig;
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
export interface DeleteLayoutConfig {
|
|
250
|
-
name: string;
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
export interface SimpleItemConfig {
|
|
254
|
-
itemId: string;
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
export interface FrameSnapshotConfig extends SimpleItemConfig {
|
|
258
|
-
excludeIds?: boolean;
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
export interface FrameStateConfig {
|
|
262
|
-
frameId: string;
|
|
263
|
-
requestedState?: IOConnectWorkspaces.FrameState;
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
export interface ResizeItemConfig {
|
|
267
|
-
itemId: string;
|
|
268
|
-
width?: number;
|
|
269
|
-
height?: number;
|
|
270
|
-
relative?: boolean;
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
export interface SetMaximizationBoundaryConfig {
|
|
274
|
-
itemId: string;
|
|
275
|
-
enabled: boolean;
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
export interface LoadingAnimationConfig {
|
|
279
|
-
itemId: string;
|
|
280
|
-
type: "workspace";
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
export interface OperationCheckConfig {
|
|
284
|
-
operation: string;
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
export interface MoveFrameConfig {
|
|
288
|
-
itemId: string;
|
|
289
|
-
top?: number;
|
|
290
|
-
left?: number;
|
|
291
|
-
relative?: boolean;
|
|
292
|
-
}
|
|
293
|
-
|
|
294
|
-
export interface SetItemTitleConfig {
|
|
295
|
-
itemId: string;
|
|
296
|
-
title: string;
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
export interface MoveWindowConfig {
|
|
300
|
-
itemId: string;
|
|
301
|
-
containerId: string;
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
export interface AddWindowConfig {
|
|
305
|
-
definition: IOConnectWorkspaces.WorkspaceWindowDefinition;
|
|
306
|
-
parentId: string;
|
|
307
|
-
parentType: "row" | "column" | "group" | "workspace";
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
export interface AddContainerConfig {
|
|
311
|
-
definition: IOConnectWorkspaces.BoxDefinition;
|
|
312
|
-
parentId: string;
|
|
313
|
-
parentType: "row" | "column" | "group" | "workspace";
|
|
314
|
-
}
|
|
315
|
-
|
|
316
|
-
export interface BundleWorkspaceConfig {
|
|
317
|
-
type: "row" | "column";
|
|
318
|
-
workspaceId: string;
|
|
319
|
-
}
|
|
320
|
-
|
|
321
|
-
export interface ItemBundleConfig {
|
|
322
|
-
type: "row" | "column";
|
|
323
|
-
itemId: string;
|
|
324
|
-
}
|
|
325
|
-
|
|
326
|
-
export interface WindowSelector {
|
|
327
|
-
windowPlacementId: string;
|
|
328
|
-
}
|
|
329
|
-
|
|
330
|
-
export interface ItemSelector {
|
|
331
|
-
itemId: string;
|
|
332
|
-
}
|
|
333
|
-
|
|
334
|
-
export interface WorkspaceSelector {
|
|
335
|
-
workspaceId: string;
|
|
336
|
-
}
|
|
337
|
-
|
|
338
|
-
// #endregion
|
|
339
|
-
|
|
340
|
-
// #region stream incoming
|
|
341
|
-
export interface FrameStreamData {
|
|
342
|
-
frameSummary: FrameSummaryResult;
|
|
343
|
-
frameBounds?: FrameBounds;
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
// the optional workspaceSnapshot is expected only when the last workspace in a Core platform-frame is being closed, which triggers the creation of a default workspace
|
|
347
|
-
// reason: explicit snapshot in this case will make sure that even if new new workspace was quickly closed (spamming of the close button), the event will provide correct data
|
|
348
|
-
export interface WorkspaceStreamData {
|
|
349
|
-
workspaceSummary: WorkspaceSummaryResult;
|
|
350
|
-
frameSummary: FrameSummaryResult;
|
|
351
|
-
workspaceSnapshot?: WorkspaceSnapshotResult;
|
|
352
|
-
frameBounds?: FrameBounds;
|
|
353
|
-
}
|
|
354
|
-
|
|
355
|
-
export interface ContainerStreamData {
|
|
356
|
-
containerSummary: ContainerSummaryResult;
|
|
357
|
-
}
|
|
358
|
-
|
|
359
|
-
export interface WindowStreamData {
|
|
360
|
-
windowSummary: {
|
|
361
|
-
itemId: string;
|
|
362
|
-
parentId: string;
|
|
363
|
-
config: SwimlaneWindowSnapshotConfig;
|
|
364
|
-
};
|
|
365
|
-
}
|
|
366
|
-
|
|
367
|
-
export interface LockWindowConfig {
|
|
368
|
-
windowPlacementId: string;
|
|
369
|
-
config?: {
|
|
370
|
-
allowExtract?: boolean;
|
|
371
|
-
allowReorder?: boolean;
|
|
372
|
-
showCloseButton?: boolean;
|
|
373
|
-
};
|
|
374
|
-
}
|
|
375
|
-
|
|
376
|
-
export interface LockRowConfig {
|
|
377
|
-
itemId: string;
|
|
378
|
-
type: "row";
|
|
379
|
-
config?: {
|
|
380
|
-
allowDrop?: boolean;
|
|
381
|
-
allowSplitters?: boolean;
|
|
382
|
-
};
|
|
383
|
-
}
|
|
384
|
-
|
|
385
|
-
export interface LockColumnConfig {
|
|
386
|
-
itemId: string;
|
|
387
|
-
type: "column";
|
|
388
|
-
config?: {
|
|
389
|
-
allowDrop?: boolean;
|
|
390
|
-
allowSplitters?: boolean;
|
|
391
|
-
};
|
|
392
|
-
}
|
|
393
|
-
|
|
394
|
-
export interface LockGroupConfig {
|
|
395
|
-
itemId: string;
|
|
396
|
-
type: "group";
|
|
397
|
-
config?: {
|
|
398
|
-
allowExtract?: boolean;
|
|
399
|
-
allowReorder?: boolean;
|
|
400
|
-
allowDrop?: boolean;
|
|
401
|
-
allowDropLeft?: boolean;
|
|
402
|
-
allowDropRight?: boolean;
|
|
403
|
-
allowDropTop?: boolean;
|
|
404
|
-
allowDropBottom?: boolean;
|
|
405
|
-
allowDropHeader?: boolean;
|
|
406
|
-
showMaximizeButton?: boolean;
|
|
407
|
-
showEjectButton?: boolean;
|
|
408
|
-
showAddWindowButton?: boolean;
|
|
409
|
-
};
|
|
410
|
-
}
|
|
411
|
-
|
|
412
|
-
export type LockContainerConfig = LockGroupConfig | LockColumnConfig | LockRowConfig;
|
|
413
|
-
|
|
414
|
-
export interface LockWorkspaceConfig {
|
|
415
|
-
workspaceId: string;
|
|
416
|
-
config?: {
|
|
417
|
-
allowDrop?: boolean;
|
|
418
|
-
allowDropLeft?: boolean;
|
|
419
|
-
allowDropTop?: boolean;
|
|
420
|
-
allowDropRight?: boolean;
|
|
421
|
-
allowDropBottom?: boolean;
|
|
422
|
-
allowSystemHibernation?: boolean;
|
|
423
|
-
allowExtract?: boolean;
|
|
424
|
-
allowWindowReorder?: boolean;
|
|
425
|
-
allowSplitters?: boolean;
|
|
426
|
-
showCloseButton?: boolean;
|
|
427
|
-
showSaveButton?: boolean;
|
|
428
|
-
allowWorkspaceTabReorder?: boolean;
|
|
429
|
-
allowWorkspaceTabExtract?: boolean;
|
|
430
|
-
};
|
|
431
|
-
}
|
|
432
|
-
|
|
433
|
-
export interface PinWorkspaceConfig {
|
|
434
|
-
workspaceId: string;
|
|
435
|
-
icon?: string;
|
|
436
|
-
}
|
|
437
|
-
|
|
438
|
-
export interface SetWorkspaceIconConfig {
|
|
439
|
-
workspaceId: string;
|
|
440
|
-
icon?: string;
|
|
441
|
-
}
|
|
442
|
-
|
|
443
|
-
export interface ShortcutConfig {
|
|
444
|
-
shortcut: string;
|
|
445
|
-
frameId: string;
|
|
446
|
-
}
|
|
447
|
-
|
|
448
|
-
export interface ShortcutClickedData {
|
|
449
|
-
shortcut: string;
|
|
450
|
-
frameId: string;
|
|
451
|
-
}
|
|
452
|
-
|
|
453
|
-
// #endregion
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
|
-
import { Subscription } from "./glue";
|
|
3
|
-
import { FrameStreamData, WorkspaceStreamData, ContainerStreamData, WindowStreamData } from "./protocol";
|
|
4
|
-
|
|
5
|
-
export type WorkspaceEventType = "frame" | "workspace" | "container" | "window";
|
|
6
|
-
export type WorkspaceEventScope = "global" | "frame" | "workspace" | "container" | "window";
|
|
7
|
-
export type WorkspaceEventAction = "opened" | "closing" | "closed" | "focus" | "added" | "loaded" | "removed" | "childrenUpdate" | "containerChange" | "maximized" | "restored" | "minimized" | "normal" | "selected" | "lock-configuration-changed"| "hibernated"|"resumed";
|
|
8
|
-
export type WorkspacePayload = FrameStreamData | WorkspaceStreamData | ContainerStreamData | WindowStreamData;
|
|
9
|
-
|
|
10
|
-
export interface SubscriptionConfig {
|
|
11
|
-
eventType: WorkspaceEventType;
|
|
12
|
-
scope: WorkspaceEventScope;
|
|
13
|
-
action: WorkspaceEventAction;
|
|
14
|
-
callback: (args?: any) => void | Promise<void>;
|
|
15
|
-
scopeId?: string;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export interface ActiveSubscription {
|
|
19
|
-
streamType: WorkspaceEventType;
|
|
20
|
-
level: WorkspaceEventScope;
|
|
21
|
-
levelId?: string;
|
|
22
|
-
callbacksCount: number;
|
|
23
|
-
gdSub: Subscription;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export interface PendingSubscription {
|
|
27
|
-
streamType: WorkspaceEventType;
|
|
28
|
-
level: WorkspaceEventScope;
|
|
29
|
-
levelId?: string;
|
|
30
|
-
promise: Promise<void>;
|
|
31
|
-
}
|
package/temp.d.ts
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { IOConnectWorkspaces } from "./workspaces";
|
|
2
|
-
|
|
3
|
-
export interface API extends IOConnectWorkspaces.API {
|
|
4
|
-
/**
|
|
5
|
-
* Notifies when a workspace is hibernated in any frame and returns an unsubscribe function.
|
|
6
|
-
* @param callback Callback function to handle the event. Receives the hibernated workspace as a parameter.
|
|
7
|
-
*/
|
|
8
|
-
onWorkspaceHibernated(callback: (workspace: IOConnectWorkspaces.Workspace) => void): Promise<IOConnectWorkspaces.Unsubscribe>;
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* Notifies when a workspace is resumed in any frame and returns an unsubscribe function.
|
|
12
|
-
* @param callback Callback function to handle the event. Receives the resumed workspace as a parameter.
|
|
13
|
-
*/
|
|
14
|
-
onWorkspaceResumed(callback: (workspace: IOConnectWorkspaces.Workspace) => void): Promise<IOConnectWorkspaces.Unsubscribe>;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export interface RestoreWorkspaceConfig extends IOConnectWorkspaces.RestoreWorkspaceConfig {
|
|
18
|
-
/** Controls the users ability to automatically hibernate the workspace */
|
|
19
|
-
allowSystemHibernation?: boolean;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export interface WorkspaceConfig extends IOConnectWorkspaces.WorkspaceConfig {
|
|
23
|
-
/** Controls the users ability to automatically hibernate the workspace */
|
|
24
|
-
allowSystemHibernation?: boolean;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export interface WorkspaceLockConfig extends IOConnectWorkspaces.WorkspaceLockConfig {
|
|
28
|
-
/** Controls the users ability to automatically hibernate the workspace */
|
|
29
|
-
allowSystemHibernation?: boolean;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export interface WorkspaceSummary extends IOConnectWorkspaces.WorkspaceSummary {
|
|
33
|
-
/** Controls the users ability to automatically hibernate the workspace */
|
|
34
|
-
allowSystemHibernation?: boolean;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export interface Workspace extends IOConnectWorkspaces.Workspace {
|
|
38
|
-
/**
|
|
39
|
-
* Notifies when this workspace is hibernated and returns an unsubscribe function.
|
|
40
|
-
* @param callback Callback function to handle the event.
|
|
41
|
-
*/
|
|
42
|
-
onHibernated(callback: () => void): Promise<IOConnectWorkspaces.Unsubscribe>;
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* Notifies when this workspace is resumed and returns an unsubscribe function.
|
|
46
|
-
* @param callback Callback function to handle the event.
|
|
47
|
-
*/
|
|
48
|
-
onResumed(callback: () => void): Promise<IOConnectWorkspaces.Unsubscribe>;
|
|
49
|
-
}
|