@steedos/service-core-objects 3.0.0-beta.107 → 3.0.0-beta.108
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/main/default/objectTranslations/object_functions.en/object_functions.en.objectTranslation.yml +1 -5
- package/main/default/objectTranslations/object_functions.zh-CN/object_functions.zh-CN.objectTranslation.yml +1 -5
- package/main/default/objects/_base/base.object.js +1 -0
- package/main/default/objects/object_functions/buttons/open_api.button.yml +1 -3
- package/main/default/objects/object_functions/fields/script.field.yml +3 -2
- package/main/default/objects/object_functions/listviews/all.listview.yml +0 -1
- package/main/default/objects/object_functions/listviews/customize.listview.yml +0 -1
- package/main/default/objects/object_triggers/fields/handler.field.yml +3 -2
- package/package.json +3 -3
- package/main/default/objects/object_functions/fields/is_rest.field.yml +0 -5
|
@@ -8,11 +8,7 @@ fields:
|
|
|
8
8
|
Can only contain lowercase letters and numbers, must start with a letter,
|
|
9
9
|
cannot end with an underscore character or contain two consecutive
|
|
10
10
|
underscore characters
|
|
11
|
-
description:
|
|
12
|
-
is_rest:
|
|
13
|
-
label: Enable API
|
|
14
|
-
help:
|
|
15
|
-
description: allow the use of api interface access:{POST/GET} /api/v1/:objectName/functions/:functionApiName
|
|
11
|
+
description: (POST/GET) /api/v6/functions/:objectName/:functionApiName
|
|
16
12
|
is_system:
|
|
17
13
|
label: System
|
|
18
14
|
help:
|
|
@@ -5,11 +5,7 @@ fields:
|
|
|
5
5
|
_name:
|
|
6
6
|
label: API 名称
|
|
7
7
|
help: API 名称只能包含小写字母、数字
|
|
8
|
-
description:
|
|
9
|
-
is_rest:
|
|
10
|
-
label: 启用API
|
|
11
|
-
help:
|
|
12
|
-
description: 允许使用API接口访问:{POST/GET} /api/v1/:objectName/functions/:functionApiName
|
|
8
|
+
description: (POST/GET) /api/v6/functions/:objectName/:functionApiName
|
|
13
9
|
is_system:
|
|
14
10
|
label: 系统
|
|
15
11
|
help:
|
|
@@ -6,9 +6,7 @@ amis_schema: >-
|
|
|
6
6
|
objectApiName__expand{\n name\n }\n }\n}\n
|
|
7
7
|
`\n}","adaptor":"","messages":{}}},{"ignoreError":false,"actionType":"custom","script":"const
|
|
8
8
|
record =
|
|
9
|
-
event.data.object_function;\nwindow.open(`/api/v1/${record.object.name}/functions/${record.name}`)\n"}]}},"hidden":false,"visibleOn":"${
|
|
10
|
-
==
|
|
11
|
-
true}"}],"data":{"context":{},"dataComponentId":"","record_id":"","record":{},"permissions":{}},"bodyClassName":"p-0","id":"u:05f888280584","dsType":"api"}
|
|
9
|
+
event.data.object_function;\nwindow.open(`/api/v1/${record.object.name}/functions/${record.name}`)\n"}]}},"hidden":false,"visibleOn":"${true}"}],"data":{"context":{},"dataComponentId":"","record_id":"","record":{},"permissions":{}},"bodyClassName":"p-0","id":"u:05f888280584","dsType":"api"}
|
|
12
10
|
is_enable: true
|
|
13
11
|
label: 请求API
|
|
14
12
|
locked: false
|
|
@@ -5,9 +5,10 @@ language: javascript
|
|
|
5
5
|
is_wide: true
|
|
6
6
|
required: true
|
|
7
7
|
defaultValue: |-
|
|
8
|
-
// global: {_:lodash, moment, validator, filters, axios, formData, mongodb, sequelize}
|
|
9
|
-
// objects
|
|
10
8
|
// ctx: {input, params, broker, getObject, getUser}
|
|
9
|
+
// objects: all steedos objects
|
|
10
|
+
// db: mongodb client instance
|
|
11
|
+
// npm: {_, moment, validator, filters, axios, formData, mongodb, sequelize}
|
|
11
12
|
editorDidMount: >-
|
|
12
13
|
if(window._registerCompletionItemProviderFunction){
|
|
13
14
|
return ;
|
|
@@ -5,10 +5,11 @@ language: javascript
|
|
|
5
5
|
is_wide: true
|
|
6
6
|
required: true
|
|
7
7
|
defaultValue: |-
|
|
8
|
-
// global: {_:lodash, moment, validator, filters, axios, formData, mongodb, sequelize}
|
|
9
8
|
// ctx
|
|
10
|
-
// objects
|
|
9
|
+
// objects: all steedos objects
|
|
10
|
+
// db: mongodb client instance
|
|
11
11
|
// services
|
|
12
|
+
// npm: {_, moment, validator, filters, axios, formData, mongodb, sequelize}
|
|
12
13
|
editorDidMount: >-
|
|
13
14
|
if(window._registerCompletionItemProviderTrigger){
|
|
14
15
|
return ;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos/service-core-objects",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.108",
|
|
4
4
|
"main": "package.service.js",
|
|
5
5
|
"private": false,
|
|
6
6
|
"publishConfig": {
|
|
@@ -10,12 +10,12 @@
|
|
|
10
10
|
"steedos"
|
|
11
11
|
],
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@steedos/service-package-loader": "3.0.0-beta.
|
|
13
|
+
"@steedos/service-package-loader": "3.0.0-beta.108",
|
|
14
14
|
"json2xls": "^0.1.2",
|
|
15
15
|
"lodash": "^4.17.21"
|
|
16
16
|
},
|
|
17
17
|
"description": "steedos package",
|
|
18
18
|
"repository": {},
|
|
19
19
|
"license": "MIT",
|
|
20
|
-
"gitHead": "
|
|
20
|
+
"gitHead": "e32e7c64ee17d2b2c18e280d28f6869d74747a17"
|
|
21
21
|
}
|