@hcmai/sdk 0.21.9 → 0.21.10
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/index.d.ts +1 -1
- package/dist/index.js +116 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -3084,7 +3084,7 @@ interface SaveMetaResult {
|
|
|
3084
3084
|
declare function saveTenantMeta(http: AxiosInstance, path: string, content: string): Promise<SaveMetaResult>;
|
|
3085
3085
|
declare function deleteTenantMeta(http: AxiosInstance, path: string): Promise<SaveMetaResult>;
|
|
3086
3086
|
|
|
3087
|
-
declare const META_SCHEMA_SOURCE_COMMIT = "
|
|
3087
|
+
declare const META_SCHEMA_SOURCE_COMMIT = "9c205ad33da978414b101ce79b3f091a60779a34";
|
|
3088
3088
|
|
|
3089
3089
|
type MetaIssueSeverity = 'error' | 'warn';
|
|
3090
3090
|
interface MetaIssue {
|
package/dist/index.js
CHANGED
|
@@ -7144,7 +7144,7 @@ async function deleteTenantMeta(http, path24) {
|
|
|
7144
7144
|
import yaml9 from "js-yaml";
|
|
7145
7145
|
|
|
7146
7146
|
// src/meta/generated/meta-schemas.ts
|
|
7147
|
-
var META_SCHEMA_SOURCE_COMMIT = "
|
|
7147
|
+
var META_SCHEMA_SOURCE_COMMIT = "9c205ad33da978414b101ce79b3f091a60779a34";
|
|
7148
7148
|
var META_SCHEMAS = {
|
|
7149
7149
|
list: {
|
|
7150
7150
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
@@ -7936,7 +7936,7 @@ var META_SCHEMAS = {
|
|
|
7936
7936
|
},
|
|
7937
7937
|
"type": {
|
|
7938
7938
|
"type": "string",
|
|
7939
|
-
"enum": ["api", "navigate"]
|
|
7939
|
+
"enum": ["api", "navigate", "dialog"]
|
|
7940
7940
|
},
|
|
7941
7941
|
"targetModel": {
|
|
7942
7942
|
"type": "string"
|
|
@@ -7978,6 +7978,46 @@ var META_SCHEMAS = {
|
|
|
7978
7978
|
},
|
|
7979
7979
|
"path": {
|
|
7980
7980
|
"type": "string"
|
|
7981
|
+
},
|
|
7982
|
+
"dialog": {
|
|
7983
|
+
"type": "object",
|
|
7984
|
+
"description": "type=dialog \u7684\u901A\u7528\u52A8\u4F5C\u5F39\u7A97\u914D\u7F6E\uFF0C\u6CBF\u7528\u5217\u8868 dialog \u5757\u3002",
|
|
7985
|
+
"properties": {
|
|
7986
|
+
"dialogType": {
|
|
7987
|
+
"type": "string",
|
|
7988
|
+
"enum": ["action", "custom"]
|
|
7989
|
+
},
|
|
7990
|
+
"targetModel": {
|
|
7991
|
+
"type": "string"
|
|
7992
|
+
},
|
|
7993
|
+
"targetAction": {
|
|
7994
|
+
"type": "string"
|
|
7995
|
+
},
|
|
7996
|
+
"actionTarget": {
|
|
7997
|
+
"type": "string",
|
|
7998
|
+
"enum": ["class", "object"]
|
|
7999
|
+
},
|
|
8000
|
+
"targetMethod": {
|
|
8001
|
+
"type": "string",
|
|
8002
|
+
"enum": ["GET", "POST", "PUT", "DELETE"]
|
|
8003
|
+
},
|
|
8004
|
+
"component": {
|
|
8005
|
+
"type": "string"
|
|
8006
|
+
},
|
|
8007
|
+
"title": {
|
|
8008
|
+
"type": "string"
|
|
8009
|
+
},
|
|
8010
|
+
"width": {
|
|
8011
|
+
"type": "string"
|
|
8012
|
+
},
|
|
8013
|
+
"form": {
|
|
8014
|
+
"type": "object"
|
|
8015
|
+
},
|
|
8016
|
+
"result": {
|
|
8017
|
+
"type": "object"
|
|
8018
|
+
}
|
|
8019
|
+
},
|
|
8020
|
+
"required": ["dialogType"]
|
|
7981
8021
|
}
|
|
7982
8022
|
},
|
|
7983
8023
|
"required": ["key", "label", "type"]
|
|
@@ -8626,6 +8666,23 @@ var META_SCHEMAS = {
|
|
|
8626
8666
|
},
|
|
8627
8667
|
"description": "\u5217\u8868\u5DE5\u5177\u680F\u914D\u7F6E;\u58F0\u660E TopBar \u5404\u5143\u7D20\u663E\u9690\u4E0E\u641C\u7D22\u5F62\u6001\u3002\u6574\u5757\u53CA\u5404\u5B57\u6BB5\u5747\u53EF\u9009,\u7F3A\u7701\u5168\u5F00+\u5173\u952E\u8BCD\u641C\u7D22",
|
|
8628
8668
|
"additionalProperties": false
|
|
8669
|
+
},
|
|
8670
|
+
"tree": {
|
|
8671
|
+
"type": "object",
|
|
8672
|
+
"properties": {
|
|
8673
|
+
"defaultExpandAll": {
|
|
8674
|
+
"type": "boolean",
|
|
8675
|
+
"description": "\u9ED8\u8BA4\u5C55\u5F00\u5168\u90E8\u5C42\u7EA7;\u7F3A\u7701 false"
|
|
8676
|
+
},
|
|
8677
|
+
"parentField": {
|
|
8678
|
+
"type": "string",
|
|
8679
|
+
"description": "\u5C42\u7EA7\u7236\u5B57\u6BB5(\u5982 parentId);\u8BE5\u5B57\u6BB5\u4E3A\u7A7A\u7684\u884C\u4F5C\u6839,\u5176\u4F59\u6309\u540C\u96C6\u5408\u5185\u7684\u7236\u884C\u6302\u6210\u5B50\u7EA7",
|
|
8680
|
+
"minLength": 1
|
|
8681
|
+
}
|
|
8682
|
+
},
|
|
8683
|
+
"description": "\u5217\u8868\u6811\u5F62\u5C55\u793A;\u6309 parentField \u628A\u5F53\u524D\u9875\u6570\u636E\u6E32\u67D3\u6210\u53EF\u9010\u7EA7\u5C55\u5F00\u7684\u6811\u8868\u3002\u7236\u5B50\u5173\u7CFB\u53EA\u4F5C\u7528\u5728\u6E32\u67D3\u5C42,\u7B5B\u9009/\u6392\u5E8F/\u5206\u9875/\u6743\u9650\u53E3\u5F84\u4E0D\u53D8",
|
|
8684
|
+
"additionalProperties": false,
|
|
8685
|
+
"required": ["parentField"]
|
|
8629
8686
|
}
|
|
8630
8687
|
}
|
|
8631
8688
|
},
|
|
@@ -8979,6 +9036,7 @@ var META_SCHEMAS = {
|
|
|
8979
9036
|
}
|
|
8980
9037
|
}
|
|
8981
9038
|
},
|
|
9039
|
+
"disabled": {},
|
|
8982
9040
|
"execution": {
|
|
8983
9041
|
"type": "object",
|
|
8984
9042
|
"properties": {
|
|
@@ -9223,6 +9281,29 @@ var META_SCHEMAS = {
|
|
|
9223
9281
|
"type": "string"
|
|
9224
9282
|
},
|
|
9225
9283
|
"defaultValue": {},
|
|
9284
|
+
"derive": {
|
|
9285
|
+
"type": "object",
|
|
9286
|
+
"properties": {
|
|
9287
|
+
"clearOnSourceEmpty": {
|
|
9288
|
+
"type": "boolean"
|
|
9289
|
+
},
|
|
9290
|
+
"createOnly": {
|
|
9291
|
+
"type": "boolean"
|
|
9292
|
+
},
|
|
9293
|
+
"field": {
|
|
9294
|
+
"type": "string"
|
|
9295
|
+
},
|
|
9296
|
+
"from": {
|
|
9297
|
+
"type": "string"
|
|
9298
|
+
},
|
|
9299
|
+
"model": {
|
|
9300
|
+
"type": "string"
|
|
9301
|
+
},
|
|
9302
|
+
"preserveManual": {
|
|
9303
|
+
"type": "boolean"
|
|
9304
|
+
}
|
|
9305
|
+
}
|
|
9306
|
+
},
|
|
9226
9307
|
"hidden": {
|
|
9227
9308
|
"type": "boolean"
|
|
9228
9309
|
},
|
|
@@ -10016,6 +10097,29 @@ var META_SCHEMAS = {
|
|
|
10016
10097
|
"type": "string"
|
|
10017
10098
|
},
|
|
10018
10099
|
"defaultValue": {},
|
|
10100
|
+
"derive": {
|
|
10101
|
+
"type": "object",
|
|
10102
|
+
"properties": {
|
|
10103
|
+
"clearOnSourceEmpty": {
|
|
10104
|
+
"type": "boolean"
|
|
10105
|
+
},
|
|
10106
|
+
"createOnly": {
|
|
10107
|
+
"type": "boolean"
|
|
10108
|
+
},
|
|
10109
|
+
"field": {
|
|
10110
|
+
"type": "string"
|
|
10111
|
+
},
|
|
10112
|
+
"from": {
|
|
10113
|
+
"type": "string"
|
|
10114
|
+
},
|
|
10115
|
+
"model": {
|
|
10116
|
+
"type": "string"
|
|
10117
|
+
},
|
|
10118
|
+
"preserveManual": {
|
|
10119
|
+
"type": "boolean"
|
|
10120
|
+
}
|
|
10121
|
+
}
|
|
10122
|
+
},
|
|
10019
10123
|
"hidden": {
|
|
10020
10124
|
"type": "boolean"
|
|
10021
10125
|
},
|
|
@@ -10029,7 +10133,7 @@ var META_SCHEMAS = {
|
|
|
10029
10133
|
"type": "array",
|
|
10030
10134
|
"items": {
|
|
10031
10135
|
"type": "string",
|
|
10032
|
-
"enum": ["EQUAL", "NOT_EQUAL", "GREATER_THAN", "LESS_THAN", "GREATER_THAN_OR_EQUAL", "LESS_THAN_OR_EQUAL", "LIKE", "NOT_LIKE", "CONTAINS", "STARTSWITH", "ENDSWITH", "IN", "NOT_IN", "IS_NULL", "IS_NOT_NULL", "ARRAY_CONTAINS", "BETWEEN", "ANNUAL_WITHIN", "CHILD_OF", "PARENT_OF", "ORG_SUBTREE_OF", "MANAGED_ORG_SCOPE"]
|
|
10136
|
+
"enum": ["EQUAL", "NOT_EQUAL", "GREATER_THAN", "LESS_THAN", "GREATER_THAN_OR_EQUAL", "LESS_THAN_OR_EQUAL", "LIKE", "NOT_LIKE", "CONTAINS", "STARTSWITH", "ENDSWITH", "IN", "NOT_IN", "IS_NULL", "IS_NOT_NULL", "ARRAY_CONTAINS", "BETWEEN", "ANNUAL_WITHIN", "CHILD_OF", "PARENT_OF", "ORG_SUBTREE_OF", "WF_ROLE", "MANAGED_ORG_SCOPE"]
|
|
10033
10137
|
}
|
|
10034
10138
|
},
|
|
10035
10139
|
"options": {
|
|
@@ -10690,6 +10794,10 @@ var META_SCHEMAS = {
|
|
|
10690
10794
|
},
|
|
10691
10795
|
"uniqueItems": true
|
|
10692
10796
|
},
|
|
10797
|
+
"searchPinyin": {
|
|
10798
|
+
"type": "string",
|
|
10799
|
+
"enum": ["NONE", "PERSON_NAME", "PLAIN"]
|
|
10800
|
+
},
|
|
10693
10801
|
"security": {
|
|
10694
10802
|
"type": "object",
|
|
10695
10803
|
"properties": {
|
|
@@ -10735,7 +10843,8 @@ var META_SCHEMAS = {
|
|
|
10735
10843
|
},
|
|
10736
10844
|
"type": {
|
|
10737
10845
|
"type": "string",
|
|
10738
|
-
"enum": ["uuid", "string", "boolean", "integer", "float", "date", "datetime", "time"]
|
|
10846
|
+
"enum": ["uuid", "string", "boolean", "integer", "float", "number", "date", "datetime", "time"],
|
|
10847
|
+
"description": "\u5B57\u6BB5\u7C7B\u578B\uFF1Bnumber \u4E3A\u7CBE\u786E\u5341\u8FDB\u5236\uFF0C\u4F7F\u7528\u5B57\u7B26\u4E32\u4F20\u8F93\uFF0C\u6574\u6570\u6700\u591A28\u4F4D\u3001\u5C0F\u6570\u6700\u591A10\u4F4D\uFF1Bfloat \u4E3A\u8FD1\u4F3C\u6D6E\u70B9\u6570"
|
|
10739
10848
|
},
|
|
10740
10849
|
"typeFallback": {
|
|
10741
10850
|
"type": "boolean"
|
|
@@ -11138,6 +11247,9 @@ var META_SCHEMAS = {
|
|
|
11138
11247
|
"model": {
|
|
11139
11248
|
"type": "string"
|
|
11140
11249
|
},
|
|
11250
|
+
"plugin": {
|
|
11251
|
+
"type": "string"
|
|
11252
|
+
},
|
|
11141
11253
|
"relation": {
|
|
11142
11254
|
"$ref": "#/$defs/RelationConfig",
|
|
11143
11255
|
"type": "object",
|