@lark-project/js-sdk 0.0.29 → 0.0.30

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/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Change Log
2
2
 
3
+ ## 0.0.30(2023/06/27)
4
+ - 「Refactor」FieldType 枚举值与 OpenAPI 对齐
5
+
3
6
  ## 0.0.29 (2023/06/27)
4
7
  - 「Add」Space 新增 simpleName 空间域名
5
8
  - 「Add」Space BriefWorkObject 新增 apiName 系统标识
package/dist/es/index.js CHANGED
@@ -242,34 +242,34 @@ var SDKClient = _SDKClient;
242
242
  /**
243
243
  * SDK 版本号
244
244
  */
245
- SDKClient.version = "0.0.29";
245
+ SDKClient.version = "0.0.30";
246
246
 
247
247
  // src/types/biz.ts
248
248
  var FieldType = /* @__PURE__ */ ((FieldType2) => {
249
249
  FieldType2["unknown"] = "unknown";
250
250
  FieldType2["text"] = "text";
251
- FieldType2["richText"] = "multi-text";
251
+ FieldType2["richText"] = "multi_text";
252
252
  FieldType2["select"] = "select";
253
- FieldType2["multiSelect"] = "multi-select";
254
- FieldType2["treeSelect"] = "treeSelect";
255
- FieldType2["treeMultiSelect"] = "tree-multi-select";
253
+ FieldType2["multiSelect"] = "multi_select";
254
+ FieldType2["treeSelect"] = "tree_select";
255
+ FieldType2["treeMultiSelect"] = "tree_multi_select";
256
256
  FieldType2["radio"] = "radio";
257
257
  FieldType2["user"] = "user";
258
- FieldType2["multiUser"] = "multi-user";
258
+ FieldType2["multiUser"] = "multi_user";
259
259
  FieldType2["date"] = "date";
260
260
  FieldType2["dateRange"] = "schedule";
261
- FieldType2["simpleVoting"] = "vote-boolean";
262
- FieldType2["singleVoting"] = "vote-option";
263
- FieldType2["multiVoting"] = "vote-option-multi";
261
+ FieldType2["simpleVoting"] = "vote_boolean";
262
+ FieldType2["singleVoting"] = "vote_option";
263
+ FieldType2["multiVoting"] = "vote_option_multi";
264
264
  FieldType2["link"] = "link";
265
265
  FieldType2["number"] = "number";
266
- FieldType2["attachment"] = "multi-file";
266
+ FieldType2["attachment"] = "multi_file";
267
267
  FieldType2["bool"] = "bool";
268
268
  FieldType2["singleSignal"] = "signal";
269
- FieldType2["multiSignal"] = "multi-signal";
269
+ FieldType2["multiSignal"] = "multi_signal";
270
270
  FieldType2["compoundField"] = "compound_field";
271
- FieldType2["workitemRelatedSelect"] = "workitem_related_select";
272
- FieldType2["workitemRelatedMultiSelect"] = "workitem_related_multi_select";
271
+ FieldType2["workItemRelatedSelect"] = "work_item_related_select";
272
+ FieldType2["workItemRelatedMultiSelect"] = "work_item_related_multi_select";
273
273
  return FieldType2;
274
274
  })(FieldType || {});
275
275
  var FlowMode = /* @__PURE__ */ ((FlowMode2) => {
package/dist/lib/index.js CHANGED
@@ -283,34 +283,34 @@ var SDKClient = _SDKClient;
283
283
  /**
284
284
  * SDK 版本号
285
285
  */
286
- SDKClient.version = "0.0.29";
286
+ SDKClient.version = "0.0.30";
287
287
 
288
288
  // src/types/biz.ts
289
289
  var FieldType = /* @__PURE__ */ ((FieldType2) => {
290
290
  FieldType2["unknown"] = "unknown";
291
291
  FieldType2["text"] = "text";
292
- FieldType2["richText"] = "multi-text";
292
+ FieldType2["richText"] = "multi_text";
293
293
  FieldType2["select"] = "select";
294
- FieldType2["multiSelect"] = "multi-select";
295
- FieldType2["treeSelect"] = "treeSelect";
296
- FieldType2["treeMultiSelect"] = "tree-multi-select";
294
+ FieldType2["multiSelect"] = "multi_select";
295
+ FieldType2["treeSelect"] = "tree_select";
296
+ FieldType2["treeMultiSelect"] = "tree_multi_select";
297
297
  FieldType2["radio"] = "radio";
298
298
  FieldType2["user"] = "user";
299
- FieldType2["multiUser"] = "multi-user";
299
+ FieldType2["multiUser"] = "multi_user";
300
300
  FieldType2["date"] = "date";
301
301
  FieldType2["dateRange"] = "schedule";
302
- FieldType2["simpleVoting"] = "vote-boolean";
303
- FieldType2["singleVoting"] = "vote-option";
304
- FieldType2["multiVoting"] = "vote-option-multi";
302
+ FieldType2["simpleVoting"] = "vote_boolean";
303
+ FieldType2["singleVoting"] = "vote_option";
304
+ FieldType2["multiVoting"] = "vote_option_multi";
305
305
  FieldType2["link"] = "link";
306
306
  FieldType2["number"] = "number";
307
- FieldType2["attachment"] = "multi-file";
307
+ FieldType2["attachment"] = "multi_file";
308
308
  FieldType2["bool"] = "bool";
309
309
  FieldType2["singleSignal"] = "signal";
310
- FieldType2["multiSignal"] = "multi-signal";
310
+ FieldType2["multiSignal"] = "multi_signal";
311
311
  FieldType2["compoundField"] = "compound_field";
312
- FieldType2["workitemRelatedSelect"] = "workitem_related_select";
313
- FieldType2["workitemRelatedMultiSelect"] = "workitem_related_multi_select";
312
+ FieldType2["workItemRelatedSelect"] = "work_item_related_select";
313
+ FieldType2["workItemRelatedMultiSelect"] = "work_item_related_multi_select";
314
314
  return FieldType2;
315
315
  })(FieldType || {});
316
316
  var FlowMode = /* @__PURE__ */ ((FlowMode2) => {
@@ -59,9 +59,7 @@ interface User {
59
59
  /**
60
60
  * @public
61
61
  * 字段类型枚举
62
- *
63
- * @privateRemarks
64
- * 仅枚举产品功能上允许用户新建的字段类型
62
+ * 仅包含字段管理模块支持新建的字段类型
65
63
  */
66
64
  declare enum FieldType {
67
65
  /**
@@ -78,7 +76,7 @@ declare enum FieldType {
78
76
  /**
79
77
  * 富文本
80
78
  */
81
- richText = "multi-text",
79
+ richText = "multi_text",
82
80
  /**
83
81
  * 单项选择
84
82
  */
@@ -86,15 +84,15 @@ declare enum FieldType {
86
84
  /**
87
85
  * 多项选择
88
86
  */
89
- multiSelect = "multi-select",
87
+ multiSelect = "multi_select",
90
88
  /**
91
89
  * 级联单选
92
90
  */
93
- treeSelect = "treeSelect",
91
+ treeSelect = "tree_select",
94
92
  /**
95
93
  * 级联多选
96
94
  */
97
- treeMultiSelect = "tree-multi-select",
95
+ treeMultiSelect = "tree_multi_select",
98
96
  /**
99
97
  * 单选按钮
100
98
  */
@@ -106,7 +104,7 @@ declare enum FieldType {
106
104
  /**
107
105
  * 多选人员
108
106
  */
109
- multiUser = "multi-user",
107
+ multiUser = "multi_user",
110
108
  /**
111
109
  * 日期(日期 + 时间)
112
110
  *
@@ -119,17 +117,17 @@ declare enum FieldType {
119
117
  */
120
118
  dateRange = "schedule",
121
119
  /**
122
- * 简单投票
120
+ * 表态投票
123
121
  */
124
- simpleVoting = "vote-boolean",
122
+ simpleVoting = "vote_boolean",
125
123
  /**
126
124
  * 单选投票
127
125
  */
128
- singleVoting = "vote-option",
126
+ singleVoting = "vote_option",
129
127
  /**
130
128
  * 多选投票
131
129
  */
132
- multiVoting = "vote-option-multi",
130
+ multiVoting = "vote_option_multi",
133
131
  /**
134
132
  * 超链接
135
133
  */
@@ -141,19 +139,19 @@ declare enum FieldType {
141
139
  /**
142
140
  * 附件
143
141
  */
144
- attachment = "multi-file",
142
+ attachment = "multi_file",
145
143
  /**
146
144
  * 开关
147
145
  */
148
146
  bool = "bool",
149
147
  /**
150
- * 单信号
148
+ * 系统外信号
151
149
  */
152
150
  singleSignal = "signal",
153
151
  /**
154
- * 多信号
152
+ * 多值系统外信号
155
153
  */
156
- multiSignal = "multi-signal",
154
+ multiSignal = "multi_signal",
157
155
  /**
158
156
  * 复合字段
159
157
  */
@@ -161,11 +159,11 @@ declare enum FieldType {
161
159
  /**
162
160
  * 单选关联工作项
163
161
  */
164
- workitemRelatedSelect = "workitem_related_select",
162
+ workItemRelatedSelect = "work_item_related_select",
165
163
  /**
166
164
  * 多选关联工作项
167
165
  */
168
- workitemRelatedMultiSelect = "workitem_related_multi_select"
166
+ workItemRelatedMultiSelect = "work_item_related_multi_select"
169
167
  }
170
168
  /**
171
169
  * @public
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lark-project/js-sdk",
3
- "version": "0.0.29",
3
+ "version": "0.0.30",
4
4
  "runtimeMinVersions": {
5
5
  "web": "2.1.0",
6
6
  "mobile": "1.1.0"