@lark-project/js-sdk 2.1.1 → 2.1.3-alpha.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 +38 -2
- package/package.json +1 -1
package/dist/es/index.js
CHANGED
package/dist/lib/index.js
CHANGED
package/dist/types/index.d.ts
CHANGED
|
@@ -761,6 +761,7 @@ interface CustomFieldProps {
|
|
|
761
761
|
}
|
|
762
762
|
interface CustomFieldConfig {
|
|
763
763
|
key: string;
|
|
764
|
+
mappingKey: string;
|
|
764
765
|
type: FieldType.compoundField | SubFieldType;
|
|
765
766
|
name: string;
|
|
766
767
|
children?: CustomFieldConfig[];
|
|
@@ -889,6 +890,7 @@ type LiteAppPropField = {
|
|
|
889
890
|
};
|
|
890
891
|
type LiteAppPropView = {
|
|
891
892
|
viewId: string;
|
|
893
|
+
isMultiProject: boolean;
|
|
892
894
|
};
|
|
893
895
|
type LiteAppPropWorkItemListAfterFilter = LiteAppPropWorkItemInstance[];
|
|
894
896
|
type LiteAppPropWorkItemListAfterSort = LiteAppPropWorkItemInstance[];
|
|
@@ -951,6 +953,40 @@ interface LiteAppComponentPreset {
|
|
|
951
953
|
height: number;
|
|
952
954
|
};
|
|
953
955
|
}
|
|
956
|
+
type LiteAppWorkItemInstance = {
|
|
957
|
+
/**
|
|
958
|
+
* 唯一标识
|
|
959
|
+
*/
|
|
960
|
+
id: number;
|
|
961
|
+
/**
|
|
962
|
+
* 空间标识
|
|
963
|
+
*/
|
|
964
|
+
spaceId: string;
|
|
965
|
+
/**
|
|
966
|
+
* 所属工作项标识
|
|
967
|
+
*/
|
|
968
|
+
workObjectId: string;
|
|
969
|
+
/**
|
|
970
|
+
* 使用的工作项模板标识
|
|
971
|
+
*/
|
|
972
|
+
templateId: number;
|
|
973
|
+
/**
|
|
974
|
+
* 工作项实例名称
|
|
975
|
+
*/
|
|
976
|
+
name: string;
|
|
977
|
+
/**
|
|
978
|
+
* 角色与人员列表
|
|
979
|
+
*/
|
|
980
|
+
roleOwnersList: RoleOwners[];
|
|
981
|
+
/**
|
|
982
|
+
* 工作项实例已终止
|
|
983
|
+
*/
|
|
984
|
+
isAborted: boolean;
|
|
985
|
+
/**
|
|
986
|
+
* 工作项实例已删除
|
|
987
|
+
*/
|
|
988
|
+
isDeleted: boolean;
|
|
989
|
+
} & Record<string, unknown>;
|
|
954
990
|
|
|
955
991
|
/**
|
|
956
992
|
* @internal
|
|
@@ -1859,7 +1895,7 @@ declare abstract class Event extends BaseModel {
|
|
|
1859
1895
|
* @param callback 事件回调
|
|
1860
1896
|
* @returns 取消监听事件的方法
|
|
1861
1897
|
*/
|
|
1862
|
-
abstract onMessage<T extends EventType = EventType>(eventType: T, callback: (payload
|
|
1898
|
+
abstract onMessage<T extends EventType = EventType>(eventType: T, callback: (payload: EventPayloadMap[T]) => void): Off;
|
|
1863
1899
|
}
|
|
1864
1900
|
|
|
1865
1901
|
/**
|
|
@@ -2511,4 +2547,4 @@ declare class NotSupportedError extends CustomError {
|
|
|
2511
2547
|
* @packageDocumentation
|
|
2512
2548
|
*/
|
|
2513
2549
|
|
|
2514
|
-
export { ActionSheet, ActionSheetOptions, AttributeType, BatchButtonFeatureContext, BizLine, BriefField, BriefNode, BriefSpace, BriefTemplate, BriefView, BriefWorkItem, BriefWorkObject, BuilderComponent, Button, ButtonFeatureContext, ButtonScene, Clipboard, ColorScheme, ComponentScheduleIdentity, ComponentScheduleScene, Configuration, ConfigurationFeatureContext, ContainerModal, ContainerModalConfigureOptions, Context, Control, ControlFeatureContext, CreateButtonFeatureContext, CustomComponent, CustomComponentFeatureContext, CustomComponentProps, CustomComponentType, CustomField, CustomFieldConfig, CustomFieldFeatureContext, CustomFieldProps, CustomFieldValidateMsg, CustomFieldValueType, Event, EventPayloadMap, EventType, ExCompoundFieldValueType, Field, FieldType, FieldValue, FlowMode, I18nTitleConfig, IMPL_KEY, IPluginCustomBuildConfig, IRichTextEditorImageUploadComplete, IntegrationFeatureContext, Intercept, InterceptEvent, InterceptFeatureContext, InternalError, InvalidParamsError, Language, LiteAppCompLayoutConfig, LiteAppCompPropBriefConfig, LiteAppCompPropFullConfig, LiteAppCompPropSelectConfig, LiteAppCompPropValueType, LiteAppComponentConfig, LiteAppComponentFeatureContext, LiteAppComponentPreset, LiteAppComponentProps, LiteAppPropBoolean, LiteAppPropDateRange, LiteAppPropDateWithTime, LiteAppPropField, LiteAppPropLayout, LiteAppPropMultiSelect, LiteAppPropNumber, LiteAppPropSelect, LiteAppPropTemplateType, LiteAppPropText, LiteAppPropView, LiteAppPropWorkItemInstance, LiteAppPropWorkItemListAfterFilter, LiteAppPropWorkItemListAfterSort, LiteAppPropWorkItemType, MEEGO_BIZ_HUB, Modal, ModalConfirmOptions, ModalOpenOptions, Navigation, NoAuthError, NodeStatus, NotFoundError, NotSupportedError, Off, OutOfLimitError, Page, PageFeatureContext, RichTextEditor, RichTextEditorContent, RichTextEditorOptions, Role, RoleOwners, SDKClient, SDKClientOptions, ScheduleCompValidateMsg, ScheduleCompValueType, ScheduleUnitButtonFeatureContext, Script, ScriptFeatureContext, Shared, Space, Storage, SubFieldType, Tab, TabFeatureContext, Toast, ToastOptions, User, UserInfo, Utils, View, ViewFeatureContext, WbsStatus, WorkItem, WorkItemButtonFeatureContext, WorkItemCreateFormPreset, WorkItemFinder, WorkItemFinderOptions, WorkObject, SDKClient as default, unwatch };
|
|
2550
|
+
export { ActionSheet, ActionSheetOptions, AttributeType, BatchButtonFeatureContext, BizLine, BriefField, BriefNode, BriefSpace, BriefTemplate, BriefView, BriefWorkItem, BriefWorkObject, BuilderComponent, Button, ButtonFeatureContext, ButtonScene, Clipboard, ColorScheme, ComponentScheduleIdentity, ComponentScheduleScene, Configuration, ConfigurationFeatureContext, ContainerModal, ContainerModalConfigureOptions, Context, Control, ControlFeatureContext, CreateButtonFeatureContext, CustomComponent, CustomComponentFeatureContext, CustomComponentProps, CustomComponentType, CustomField, CustomFieldConfig, CustomFieldFeatureContext, CustomFieldProps, CustomFieldValidateMsg, CustomFieldValueType, Event, EventPayloadMap, EventType, ExCompoundFieldValueType, Field, FieldType, FieldValue, FlowMode, I18nTitleConfig, IMPL_KEY, IPluginCustomBuildConfig, IRichTextEditorImageUploadComplete, IntegrationFeatureContext, Intercept, InterceptEvent, InterceptFeatureContext, InternalError, InvalidParamsError, Language, LiteAppCompLayoutConfig, LiteAppCompPropBriefConfig, LiteAppCompPropFullConfig, LiteAppCompPropSelectConfig, LiteAppCompPropValueType, LiteAppComponentConfig, LiteAppComponentFeatureContext, LiteAppComponentPreset, LiteAppComponentProps, LiteAppPropBoolean, LiteAppPropDateRange, LiteAppPropDateWithTime, LiteAppPropField, LiteAppPropLayout, LiteAppPropMultiSelect, LiteAppPropNumber, LiteAppPropSelect, LiteAppPropTemplateType, LiteAppPropText, LiteAppPropView, LiteAppPropWorkItemInstance, LiteAppPropWorkItemListAfterFilter, LiteAppPropWorkItemListAfterSort, LiteAppPropWorkItemType, LiteAppWorkItemInstance, MEEGO_BIZ_HUB, Modal, ModalConfirmOptions, ModalOpenOptions, Navigation, NoAuthError, NodeStatus, NotFoundError, NotSupportedError, Off, OutOfLimitError, Page, PageFeatureContext, RichTextEditor, RichTextEditorContent, RichTextEditorOptions, Role, RoleOwners, SDKClient, SDKClientOptions, ScheduleCompValidateMsg, ScheduleCompValueType, ScheduleUnitButtonFeatureContext, Script, ScriptFeatureContext, Shared, Space, Storage, SubFieldType, Tab, TabFeatureContext, Toast, ToastOptions, User, UserInfo, Utils, View, ViewFeatureContext, WbsStatus, WorkItem, WorkItemButtonFeatureContext, WorkItemCreateFormPreset, WorkItemFinder, WorkItemFinderOptions, WorkObject, SDKClient as default, unwatch };
|