@dao42/d42paas-front 0.5.45 → 0.5.47

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/editor.d.ts CHANGED
@@ -4,8 +4,6 @@
4
4
  * Released under the MIT license
5
5
  *-----------------------------------------------------------*/
6
6
 
7
- // import React from 'react';
8
-
9
7
  /*---------------------------------------------------------------------------------------------
10
8
  * Copyright (c) Microsoft Corporation. All rights reserved.
11
9
  * Licensed under the MIT License. See License.txt in the project root for license information.
@@ -19,13 +17,37 @@ export type TReplay = 'stop' | 'disabled' | 'pause';
19
17
 
20
18
  /* export type T_DockerStatus = 'RUNNING' | 'STOP'; */
21
19
 
20
+ /**
21
+ * UserInfo for caller.
22
+ */
23
+ interface TUserInfo {
24
+ playgroundId?: string;
25
+ operation?: any;
26
+ uuid?: string;
27
+ color?: string;
28
+ name?: string;
29
+ username?: string;
30
+ userId?: string;
31
+ role?: string;
32
+ avatar?: string;
33
+ onlineCount?: number;
34
+ // [x: string]:
35
+ // | string
36
+ // | number
37
+ // | qs.ParsedQs
38
+ // | string[]
39
+ // | number[]
40
+ // | qs.ParsedQs[];
41
+ // [x: string]: string | qs.ParsedQs | string[] | qs.ParsedQs[];
42
+ }
43
+
22
44
  /**
23
45
  * the arguments of the Playground.
24
46
  */
25
47
  interface TConstructor {
26
48
  /**
27
49
  *
28
- * init the playground with the mode
50
+ * init the playground with the mode.
29
51
  *
30
52
  */
31
53
 
@@ -33,7 +55,7 @@ interface TConstructor {
33
55
 
34
56
  /**
35
57
  *
36
- * init the playground with the env .
58
+ * init the playground with the env.
37
59
  *
38
60
  */
39
61
  env?: string;
@@ -73,13 +95,6 @@ interface TConstructor {
73
95
  */
74
96
  username?: string;
75
97
 
76
- /**
77
- *
78
- * avatar for the playground but not necessarily.
79
- *
80
- */
81
- avatar?: string;
82
-
83
98
  /**
84
99
  *
85
100
  * avatarUrl for the playground but not necessarily.
@@ -128,6 +143,8 @@ export class DaoPaaS {
128
143
 
129
144
  get playgroundStatus(): T_PlaygroundStatus;
130
145
 
146
+ get userList(): TUserInfo[];
147
+
131
148
  /**
132
149
  *
133
150
  * Replaying method for global calling.