@lark-project/js-sdk 2.0.14-dev.0 → 2.0.14-dev.1

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 CHANGED
@@ -649,7 +649,7 @@ var SDKClient = _SDKClient;
649
649
  /**
650
650
  * SDK 版本号
651
651
  */
652
- SDKClient.version = "2.0.14-dev.0";
652
+ SDKClient.version = "2.0.14-dev.1";
653
653
 
654
654
  // src/types/biz.ts
655
655
  var AttributeType = /* @__PURE__ */ ((AttributeType2) => {
package/dist/lib/index.js CHANGED
@@ -715,7 +715,7 @@ var SDKClient = _SDKClient;
715
715
  /**
716
716
  * SDK 版本号
717
717
  */
718
- SDKClient.version = "2.0.14-dev.0";
718
+ SDKClient.version = "2.0.14-dev.1";
719
719
 
720
720
  // src/types/biz.ts
721
721
  var AttributeType = /* @__PURE__ */ ((AttributeType2) => {
@@ -1091,10 +1091,6 @@ 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
- }
1098
1094
  /**
1099
1095
  * @public
1100
1096
  * 新建工作项表单预填
@@ -1102,8 +1098,6 @@ interface IFieldOptions {
1102
1098
  interface WorkItemCreateFormPreset {
1103
1099
  /**
1104
1100
  * 工作项属性,目前仅支持工作项名称(name)
1105
- *
1106
- * @deprecated - attribute 已合入 field,请使用 field 传参
1107
1101
  */
1108
1102
  attribute?: {
1109
1103
  [key in AttributeType]?: {
@@ -1114,9 +1108,10 @@ interface WorkItemCreateFormPreset {
1114
1108
  * 工作项字段
1115
1109
  */
1116
1110
  field?: {
1117
- [key in AttributeType]?: IFieldOptions;
1118
- } & {
1119
- [key: string]: IFieldOptions;
1111
+ [fieldId: string]: {
1112
+ fieldType: Exclude<FieldType, FieldType.unknown | FieldType.simpleVoting | FieldType.singleVoting | FieldType.multiVoting | FieldType.attachment | FieldType.singleSignal | FieldType.multiSignal | FieldType.compoundField>;
1113
+ fieldValue: any;
1114
+ };
1120
1115
  };
1121
1116
  }
1122
1117
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lark-project/js-sdk",
3
- "version": "2.0.14-dev.0",
3
+ "version": "2.0.14-dev.1",
4
4
  "runtimeMinVersions": {
5
5
  "web": "2.1.0",
6
6
  "mobile": "1.1.0"