@lark-project/js-sdk 2.0.2-dev.2 → 2.0.2-dev.4
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 +2 -1
- package/dist/lib/index.js +2 -1
- package/dist/types/index.d.ts +16 -4
- package/package.json +1 -1
package/dist/es/index.js
CHANGED
|
@@ -613,7 +613,7 @@ var SDKClient = _SDKClient;
|
|
|
613
613
|
/**
|
|
614
614
|
* SDK 版本号
|
|
615
615
|
*/
|
|
616
|
-
SDKClient.version = "2.0.2-dev.
|
|
616
|
+
SDKClient.version = "2.0.2-dev.4";
|
|
617
617
|
|
|
618
618
|
// src/types/biz.ts
|
|
619
619
|
var AttributeType = /* @__PURE__ */ ((AttributeType2) => {
|
|
@@ -623,6 +623,7 @@ var AttributeType = /* @__PURE__ */ ((AttributeType2) => {
|
|
|
623
623
|
})(AttributeType || {});
|
|
624
624
|
var FieldType = /* @__PURE__ */ ((FieldType2) => {
|
|
625
625
|
FieldType2["unknown"] = "unknown";
|
|
626
|
+
FieldType2["control"] = "control";
|
|
626
627
|
FieldType2["text"] = "text";
|
|
627
628
|
FieldType2["richText"] = "multi_text";
|
|
628
629
|
FieldType2["select"] = "select";
|
package/dist/lib/index.js
CHANGED
|
@@ -675,7 +675,7 @@ var SDKClient = _SDKClient;
|
|
|
675
675
|
/**
|
|
676
676
|
* SDK 版本号
|
|
677
677
|
*/
|
|
678
|
-
SDKClient.version = "2.0.2-dev.
|
|
678
|
+
SDKClient.version = "2.0.2-dev.4";
|
|
679
679
|
|
|
680
680
|
// src/types/biz.ts
|
|
681
681
|
var AttributeType = /* @__PURE__ */ ((AttributeType2) => {
|
|
@@ -685,6 +685,7 @@ var AttributeType = /* @__PURE__ */ ((AttributeType2) => {
|
|
|
685
685
|
})(AttributeType || {});
|
|
686
686
|
var FieldType = /* @__PURE__ */ ((FieldType2) => {
|
|
687
687
|
FieldType2["unknown"] = "unknown";
|
|
688
|
+
FieldType2["control"] = "control";
|
|
688
689
|
FieldType2["text"] = "text";
|
|
689
690
|
FieldType2["richText"] = "multi_text";
|
|
690
691
|
FieldType2["select"] = "select";
|
package/dist/types/index.d.ts
CHANGED
|
@@ -40,6 +40,11 @@ declare enum FieldType {
|
|
|
40
40
|
* 未知字段类型
|
|
41
41
|
*/
|
|
42
42
|
unknown = "unknown",
|
|
43
|
+
/**
|
|
44
|
+
* 平台控件
|
|
45
|
+
* e.g. 角色与人员
|
|
46
|
+
*/
|
|
47
|
+
control = "control",
|
|
43
48
|
/**
|
|
44
49
|
* 文本(单行、多行)
|
|
45
50
|
*
|
|
@@ -386,7 +391,7 @@ interface PageFeatureContext {
|
|
|
386
391
|
/**
|
|
387
392
|
* 配置页面构成
|
|
388
393
|
*/
|
|
389
|
-
interface
|
|
394
|
+
interface ConfigurationFeatureContext {
|
|
390
395
|
/**
|
|
391
396
|
* 空间标识
|
|
392
397
|
*/
|
|
@@ -1394,8 +1399,15 @@ declare abstract class Control extends BaseModel {
|
|
|
1394
1399
|
/**
|
|
1395
1400
|
* 获取新建工作项表单项的值
|
|
1396
1401
|
* @param keys 需要获取的工作项属性 / 字段 ID 列表,一次限制读取 10 个 keys
|
|
1402
|
+
* @param keys.key 工作项属性 / 字段 ID
|
|
1403
|
+
* @param keys.type 类型
|
|
1404
|
+
* 工作项属性 name 为 FieldType.text,工作项属性 template 为 FieldType.number
|
|
1405
|
+
* 控件 role_owners 为 FieldType.control
|
|
1397
1406
|
*/
|
|
1398
|
-
abstract getCreateWorkItemFormItemValues(keys: Array<
|
|
1407
|
+
abstract getCreateWorkItemFormItemValues(keys: Array<{
|
|
1408
|
+
key: string | AttributeType;
|
|
1409
|
+
type: FieldType;
|
|
1410
|
+
}>): Promise<Record<string | AttributeType, any>>;
|
|
1399
1411
|
/**
|
|
1400
1412
|
* only web 2.0
|
|
1401
1413
|
* 监听新建工作项表单项值变化
|
|
@@ -1443,7 +1455,7 @@ declare abstract class Configuration extends BaseModel {
|
|
|
1443
1455
|
/**
|
|
1444
1456
|
* 获取当前配置点位的上下文
|
|
1445
1457
|
*/
|
|
1446
|
-
abstract getContext(): Promise<
|
|
1458
|
+
abstract getContext(): Promise<ConfigurationFeatureContext>;
|
|
1447
1459
|
}
|
|
1448
1460
|
|
|
1449
1461
|
/**
|
|
@@ -1711,4 +1723,4 @@ declare class NotSupportedError extends CustomError {
|
|
|
1711
1723
|
* @packageDocumentation
|
|
1712
1724
|
*/
|
|
1713
1725
|
|
|
1714
|
-
export { ActionSheet, ActionSheetOptions, AttributeType, BizLine, BriefField, BriefNode, BriefSpace, BriefTemplate, BriefView, BriefWorkItem, BriefWorkObject, Broadcast, Button, ButtonFeatureContext, ButtonScene, Clipboard, ColorScheme,
|
|
1726
|
+
export { ActionSheet, ActionSheetOptions, AttributeType, BizLine, BriefField, BriefNode, BriefSpace, BriefTemplate, BriefView, BriefWorkItem, BriefWorkObject, Broadcast, Button, ButtonFeatureContext, ButtonScene, Clipboard, ColorScheme, Configuration, ConfigurationFeatureContext, ContainerModal, Context, Control, ControlFeatureContext, CreateButtonFeatureContext, Field, FieldType, FlowMode, IBroadcastDetailPageWorkItemValueChangedEvent, IMPL_KEY, IPluginCustomBuildConfig, IntegrationFeatureContext, Intercept, InterceptEvent, InterceptFeatureContext, InternalError, InvalidParamsError, Language, MEEGO_BIZ_HUB, Modal, ModalConfirmOptions, Navigation, NoAuthError, NodeStatus, NotFoundError, NotSupportedError, Off, OutOfLimitError, Page, PageFeatureContext, RichTextEditor, RichTextEditorContent, RichTextEditorOptions, Role, RoleOwners, SDKClient, SDKClientOptions, Space, Storage, Tab, TabFeatureContext, Toast, ToastOptions, User, Utils, View, ViewFeatureContext, WorkItem, WorkItemButtonFeatureContext, WorkItemCreateFormPreset, WorkItemFinder, WorkItemFinderOptions, WorkObject, SDKClient as default, unwatch };
|