@lark-project/js-sdk 2.0.13 → 2.0.14-dev.0
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/es/index.js +1 -1
- package/dist/lib/index.js +1 -1
- package/dist/types/index.d.ts +9 -4
- package/package.json +1 -1
package/dist/es/index.js
CHANGED
package/dist/lib/index.js
CHANGED
package/dist/types/index.d.ts
CHANGED
|
@@ -1091,6 +1091,10 @@ declare abstract class Field extends BaseModel {
|
|
|
1091
1091
|
abstract isFormulaField: boolean;
|
|
1092
1092
|
}
|
|
1093
1093
|
|
|
1094
|
+
interface IFieldOptions {
|
|
1095
|
+
fieldType: Exclude<FieldType, FieldType.unknown | FieldType.richText | FieldType.simpleVoting | FieldType.singleVoting | FieldType.multiVoting | FieldType.attachment | FieldType.singleSignal | FieldType.multiSignal | FieldType.compoundField>;
|
|
1096
|
+
fieldValue: any;
|
|
1097
|
+
}
|
|
1094
1098
|
/**
|
|
1095
1099
|
* @public
|
|
1096
1100
|
* 新建工作项表单预填
|
|
@@ -1098,6 +1102,8 @@ declare abstract class Field extends BaseModel {
|
|
|
1098
1102
|
interface WorkItemCreateFormPreset {
|
|
1099
1103
|
/**
|
|
1100
1104
|
* 工作项属性,目前仅支持工作项名称(name)
|
|
1105
|
+
*
|
|
1106
|
+
* @deprecated - attribute 已合入 field,请使用 field 传参
|
|
1101
1107
|
*/
|
|
1102
1108
|
attribute?: {
|
|
1103
1109
|
[key in AttributeType]?: {
|
|
@@ -1108,10 +1114,9 @@ interface WorkItemCreateFormPreset {
|
|
|
1108
1114
|
* 工作项字段
|
|
1109
1115
|
*/
|
|
1110
1116
|
field?: {
|
|
1111
|
-
[
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
};
|
|
1117
|
+
[key in AttributeType]?: IFieldOptions;
|
|
1118
|
+
} & {
|
|
1119
|
+
[key: string]: IFieldOptions;
|
|
1115
1120
|
};
|
|
1116
1121
|
}
|
|
1117
1122
|
/**
|