@steedos/service-ui 2.4.0-beta.35 → 2.4.0-beta.37

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steedos/service-ui",
3
- "version": "2.4.0-beta.35",
3
+ "version": "2.4.0-beta.37",
4
4
  "main": "package.service.js",
5
5
  "keywords": [
6
6
  "steedos"
@@ -11,9 +11,9 @@
11
11
  "description": "steedos package",
12
12
  "repository": {},
13
13
  "dependencies": {
14
- "@steedos/core": "2.4.0-beta.35",
15
- "@steedos/i18n": "2.4.0-beta.35",
16
- "@steedos/objectql": "2.4.0-beta.35",
14
+ "@steedos/core": "2.4.0-beta.37",
15
+ "@steedos/i18n": "2.4.0-beta.37",
16
+ "@steedos/objectql": "2.4.0-beta.37",
17
17
  "express": "4.18.1"
18
18
  },
19
19
  "license": "MIT",
@@ -21,5 +21,5 @@
21
21
  "publishConfig": {
22
22
  "access": "public"
23
23
  },
24
- "gitHead": "0d255db7ed202a8ccdc8b6b88b535b93ce93443d"
24
+ "gitHead": "3fe675c2fb030976c7e43729b754ce772c07d8e8"
25
25
  }
@@ -2,7 +2,7 @@
2
2
  * @Author: baozhoutao@steedos.com
3
3
  * @Date: 2023-02-26 15:22:12
4
4
  * @LastEditors: baozhoutao@steedos.com
5
- * @LastEditTime: 2023-02-28 11:04:32
5
+ * @LastEditTime: 2023-03-01 14:55:05
6
6
  * @Description:
7
7
  */
8
8
  try {
@@ -155,6 +155,15 @@ try {
155
155
  return _.first(apps);
156
156
  }
157
157
 
158
+ window.Creator.getObjectRecord = (objectName, recordId, select_fields, expand)=>{
159
+ return Creator.odata.get(objectName, recordId, select_fields, expand)
160
+ }
161
+
162
+ window.Creator.isSpaceAdmin = ()=>{
163
+ return Creator.USER_CONTEXT.user.is_space_admin;
164
+ }
165
+
166
+
158
167
  Creator.steedosInit.set(true);
159
168
  } catch (error) {
160
169
  console.error(error);