@steedos/schemas 3.0.1 → 3.0.2-beta.4

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/app/schema.json CHANGED
@@ -1,159 +1,151 @@
1
1
  {
2
- "$schema": "http://json-schema.org/draft-04/schema#",
3
- "name": "steedos-schema_app",
4
- "type": "object",
5
- "additionalProperties": false,
6
- "oneOf": [
7
- {
8
- "properties": {
9
- "type": {
10
- "enum": [
11
- "library"
12
- ]
13
- }
14
- },
15
- "required": [
16
- "type",
17
- "name",
18
- "description"
19
- ]
20
- },
21
- {
22
- "properties": {
23
- "type": {
24
- "not": {
25
- "enum": [
26
- "library"
27
- ]
28
- }
29
- }
30
- }
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "name": "steedos-schema_app",
4
+ "type": "object",
5
+ "additionalProperties": false,
6
+ "oneOf": [
7
+ {
8
+ "properties": {
9
+ "type": {
10
+ "enum": ["library"]
31
11
  }
32
- ],
33
- "properties": {
34
- "_id": {
35
- "type": "string",
36
- "description": "应用的唯一标识。"
37
- },
38
- "url": {
39
- "type": "string",
40
- "description": "应用地址"
41
- },
42
- "name": {
43
- "description": "应用显示名称。",
44
- "type": "string"
45
- },
46
- "code": {
47
- "description": "应用的唯一标识。",
48
- "type": "string"
49
- },
50
- "description": {
51
- "type": "string",
52
- "description": "应用描述。"
53
- },
54
- "icon": {
55
- "type": "string",
56
- "description": "应用图标。"
57
- },
58
- "icon_slds": {
59
- "type": "string",
60
- "description": "应用图标。"
61
- },
62
- "is_creator": {
63
- "type": "boolean",
64
- "description": ""
65
- },
66
- "sort": {
67
- "type": "number",
68
- "description": "排序"
69
- },
70
- "tabs": {
71
- "type": "array",
72
- "description": "用于指定此应用下的选项卡",
73
- "items": {
74
- "type": "string",
75
- "description": "选项卡唯一标识。"
76
- }
77
- },
78
- "tab_items": {
79
- "type": "object",
80
- "description": "选项卡"
81
- },
82
- "tab_groups": {
83
- "type": "array",
84
- "description": "选项卡分组",
85
- "items": {
86
- "type": "object",
87
- "description": "选项卡分组详情"
88
- }
89
- },
90
- "objects": {
91
- "type": "array",
92
- "description": "用于指定此应用下有多少对象。",
93
- "items": {
94
- "type": "string",
95
- "description": "对象唯一标识。"
96
- }
97
- },
98
- "mobile_objects": {
99
- "type": "array",
100
- "description": "用于指定此应用在手机上显示的对象。",
101
- "items": {
102
- "type": "string",
103
- "description": "对象唯一标识。"
104
- }
105
- },
106
- "admin_menus": {
107
- "type": "array",
108
- "description": "管理员菜单",
109
- "items": {
110
- "type": "object",
111
- "description": "菜单详情"
112
- }
113
- },
114
- "visible": {
115
- "type": "boolean",
116
- "description": "启用"
117
- },
118
- "is_new_window": {
119
- "type": "boolean",
120
- "description": "新窗口打开"
121
- },
122
- "mobile": {
123
- "type": "boolean",
124
- "description": "在手机端显示"
125
- },
126
- "showSidebar": {
127
- "type": "boolean",
128
- "description": "显示左侧导航"
129
- },
130
- "oauth2_enabled": {
131
- "type": "boolean",
132
- "description": "启用OAuth2认证"
133
- },
134
- "oauth2_logout_enabled": {
135
- "type": "boolean",
136
- "description": "启用OAuth2单点注销"
137
- },
138
- "saml_enabled": {
139
- "type": "boolean",
140
- "description": "启用SAML"
141
- },
142
- "saml_logout_enabled": {
143
- "type": "boolean",
144
- "description": "启用SAML单点注销"
145
- },
146
- "is_use_iframe": {
147
- "type": "boolean",
148
- "description": "使用iframe打开"
149
- },
150
- "is_use_ie": {
151
- "type": "boolean",
152
- "description": "使用IE打开(需使用Steedos桌面客户端)"
153
- },
154
- "is_hide_mobile_menu": {
155
- "type": "boolean",
156
- "description": "始终隐藏手机端菜单选项卡"
12
+ },
13
+ "required": ["type", "name", "description"]
14
+ },
15
+ {
16
+ "properties": {
17
+ "type": {
18
+ "not": {
19
+ "enum": ["library"]
20
+ }
157
21
  }
22
+ }
158
23
  }
159
- }
24
+ ],
25
+ "properties": {
26
+ "_id": {
27
+ "type": "string",
28
+ "description": "应用的唯一标识。"
29
+ },
30
+ "url": {
31
+ "type": "string",
32
+ "description": "应用地址"
33
+ },
34
+ "name": {
35
+ "description": "应用显示名称。",
36
+ "type": "string"
37
+ },
38
+ "code": {
39
+ "description": "应用的唯一标识。",
40
+ "type": "string"
41
+ },
42
+ "description": {
43
+ "type": "string",
44
+ "description": "应用描述。"
45
+ },
46
+ "icon": {
47
+ "type": "string",
48
+ "description": "应用图标。"
49
+ },
50
+ "icon_slds": {
51
+ "type": "string",
52
+ "description": "应用图标。"
53
+ },
54
+ "is_creator": {
55
+ "type": "boolean",
56
+ "description": ""
57
+ },
58
+ "sort": {
59
+ "type": "number",
60
+ "description": "排序"
61
+ },
62
+ "tabs": {
63
+ "type": "array",
64
+ "description": "用于指定此应用下的选项卡",
65
+ "items": {
66
+ "type": "string",
67
+ "description": "选项卡唯一标识。"
68
+ }
69
+ },
70
+ "tab_items": {
71
+ "type": "object",
72
+ "description": "选项卡"
73
+ },
74
+ "tab_groups": {
75
+ "type": "array",
76
+ "description": "选项卡分组",
77
+ "items": {
78
+ "type": "object",
79
+ "description": "选项卡分组详情"
80
+ }
81
+ },
82
+ "objects": {
83
+ "type": "array",
84
+ "description": "用于指定此应用下有多少对象。",
85
+ "items": {
86
+ "type": "string",
87
+ "description": "对象唯一标识。"
88
+ }
89
+ },
90
+ "mobile_objects": {
91
+ "type": "array",
92
+ "description": "用于指定此应用在手机上显示的对象。",
93
+ "items": {
94
+ "type": "string",
95
+ "description": "对象唯一标识。"
96
+ }
97
+ },
98
+ "admin_menus": {
99
+ "type": "array",
100
+ "description": "管理员菜单",
101
+ "items": {
102
+ "type": "object",
103
+ "description": "菜单详情"
104
+ }
105
+ },
106
+ "visible": {
107
+ "type": "boolean",
108
+ "description": "启用"
109
+ },
110
+ "is_new_window": {
111
+ "type": "boolean",
112
+ "description": "新窗口打开"
113
+ },
114
+ "mobile": {
115
+ "type": "boolean",
116
+ "description": "在手机端显示"
117
+ },
118
+ "showSidebar": {
119
+ "type": "boolean",
120
+ "description": "显示左侧导航"
121
+ },
122
+ "oauth2_enabled": {
123
+ "type": "boolean",
124
+ "description": "启用OAuth2认证"
125
+ },
126
+ "oauth2_logout_enabled": {
127
+ "type": "boolean",
128
+ "description": "启用OAuth2单点注销"
129
+ },
130
+ "saml_enabled": {
131
+ "type": "boolean",
132
+ "description": "启用SAML"
133
+ },
134
+ "saml_logout_enabled": {
135
+ "type": "boolean",
136
+ "description": "启用SAML单点注销"
137
+ },
138
+ "is_use_iframe": {
139
+ "type": "boolean",
140
+ "description": "使用iframe打开"
141
+ },
142
+ "is_use_ie": {
143
+ "type": "boolean",
144
+ "description": "使用IE打开(需使用Steedos桌面客户端)"
145
+ },
146
+ "is_hide_mobile_menu": {
147
+ "type": "boolean",
148
+ "description": "始终隐藏手机端菜单选项卡"
149
+ }
150
+ }
151
+ }
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "http://json-schema.org/draft-04/schema#",
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
3
  "name": "steedos-schema_object_button",
4
4
  "type": "object",
5
5
  "additionalProperties": false,
@@ -1,63 +1,55 @@
1
1
  {
2
- "$schema": "http://json-schema.org/draft-04/schema#",
3
- "name": "steedos-schema_dashboard",
4
- "type": "object",
5
- "additionalProperties": false,
6
- "oneOf": [
7
- {
8
- "properties": {
9
- "type": {
10
- "enum": [
11
- "library"
12
- ]
13
- }
14
- },
15
- "required": [
16
- "name",
17
- "apps",
18
- "widgets"
19
- ]
20
- },
21
- {
22
- "properties": {
23
- "type": {
24
- "not": {
25
- "enum": [
26
- "library"
27
- ]
28
- }
29
- }
30
- }
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "name": "steedos-schema_dashboard",
4
+ "type": "object",
5
+ "additionalProperties": false,
6
+ "oneOf": [
7
+ {
8
+ "properties": {
9
+ "type": {
10
+ "enum": ["library"]
31
11
  }
32
- ],
33
- "properties": {
34
- "_id": {
35
- "type": "string",
36
- "description": "门户的唯一标识。"
37
- },
38
- "name": {
39
- "description": "门户名称。",
40
- "type": "string"
41
- },
42
- "apps": {
43
- "type": "array",
44
- "description": "门户关联应用。",
45
- "items": {
46
- "type": "string",
47
- "description": "应用唯一标识。"
48
- }
49
- },
50
- "widgets": {
51
- "type": "array",
52
- "description": "门户组件。",
53
- "items": {
54
- "type": "object",
55
- "description": "组件详细配置。"
56
- }
57
- },
58
- "description": {
59
- "type": "string",
60
- "description": "门户描述。"
12
+ },
13
+ "required": ["name", "apps", "widgets"]
14
+ },
15
+ {
16
+ "properties": {
17
+ "type": {
18
+ "not": {
19
+ "enum": ["library"]
20
+ }
61
21
  }
22
+ }
62
23
  }
63
- }
24
+ ],
25
+ "properties": {
26
+ "_id": {
27
+ "type": "string",
28
+ "description": "门户的唯一标识。"
29
+ },
30
+ "name": {
31
+ "description": "门户名称。",
32
+ "type": "string"
33
+ },
34
+ "apps": {
35
+ "type": "array",
36
+ "description": "门户关联应用。",
37
+ "items": {
38
+ "type": "string",
39
+ "description": "应用唯一标识。"
40
+ }
41
+ },
42
+ "widgets": {
43
+ "type": "array",
44
+ "description": "门户组件。",
45
+ "items": {
46
+ "type": "object",
47
+ "description": "组件详细配置。"
48
+ }
49
+ },
50
+ "description": {
51
+ "type": "string",
52
+ "description": "门户描述。"
53
+ }
54
+ }
55
+ }