@lark-project/js-sdk 2.1.3-dev.0 → 2.1.4-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/CHANGELOG.md +4 -0
- package/dist/es/index.js +1 -1
- package/dist/lib/index.js +1 -1
- package/dist/types/index.d.ts +54 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/es/index.js
CHANGED
package/dist/lib/index.js
CHANGED
package/dist/types/index.d.ts
CHANGED
|
@@ -893,13 +893,18 @@ type LiteAppPropField = {
|
|
|
893
893
|
roleId: string;
|
|
894
894
|
display?: boolean;
|
|
895
895
|
};
|
|
896
|
+
type LiteAppPropDataSource = {
|
|
897
|
+
spaceId: string;
|
|
898
|
+
workObjectId: string;
|
|
899
|
+
fieldList?: LiteAppPropField[];
|
|
900
|
+
};
|
|
896
901
|
type LiteAppPropView = {
|
|
897
902
|
viewId: string;
|
|
898
903
|
isMultiProject: boolean;
|
|
899
904
|
};
|
|
900
905
|
type LiteAppPropWorkItemListAfterFilter = LiteAppPropWorkItemInstance[];
|
|
901
906
|
type LiteAppPropWorkItemListAfterSort = LiteAppPropWorkItemInstance[];
|
|
902
|
-
type LiteAppCompPropValueType = LiteAppPropText | LiteAppPropNumber | LiteAppPropSelect | LiteAppPropBoolean | LiteAppPropMultiSelect | LiteAppPropDateWithTime | LiteAppPropDateRange | LiteAppPropWorkItemType | LiteAppPropWorkItemInstance | LiteAppPropView | LiteAppPropWorkItemListAfterFilter | LiteAppPropWorkItemListAfterSort;
|
|
907
|
+
type LiteAppCompPropValueType = LiteAppPropText | LiteAppPropNumber | LiteAppPropSelect | LiteAppPropBoolean | LiteAppPropMultiSelect | LiteAppPropDateWithTime | LiteAppPropDateRange | LiteAppPropWorkItemType | LiteAppPropWorkItemInstance | LiteAppPropView | LiteAppPropWorkItemListAfterFilter | LiteAppPropWorkItemListAfterSort | LiteAppPropDataSource;
|
|
903
908
|
/**
|
|
904
909
|
* liteapp 组件不同的属性类型对应的可读配置
|
|
905
910
|
*/
|
|
@@ -958,6 +963,45 @@ interface LiteAppComponentPreset {
|
|
|
958
963
|
height: number;
|
|
959
964
|
};
|
|
960
965
|
}
|
|
966
|
+
type LiteAppWorkItemInstance = {
|
|
967
|
+
/**
|
|
968
|
+
* 唯一标识
|
|
969
|
+
*/
|
|
970
|
+
id: number;
|
|
971
|
+
/**
|
|
972
|
+
* 空间标识
|
|
973
|
+
*/
|
|
974
|
+
spaceId: string;
|
|
975
|
+
/**
|
|
976
|
+
* 所属工作项标识
|
|
977
|
+
*/
|
|
978
|
+
workObjectId: string;
|
|
979
|
+
/**
|
|
980
|
+
* 使用的工作项模板标识
|
|
981
|
+
*/
|
|
982
|
+
templateId: number;
|
|
983
|
+
/**
|
|
984
|
+
* 工作项实例名称
|
|
985
|
+
*/
|
|
986
|
+
name: string;
|
|
987
|
+
/**
|
|
988
|
+
* 角色与人员列表
|
|
989
|
+
*/
|
|
990
|
+
roleOwnersList: RoleOwners[];
|
|
991
|
+
/**
|
|
992
|
+
* 工作项实例已终止
|
|
993
|
+
*/
|
|
994
|
+
isAborted: boolean;
|
|
995
|
+
/**
|
|
996
|
+
* 工作项实例已删除
|
|
997
|
+
*/
|
|
998
|
+
isDeleted: boolean;
|
|
999
|
+
} & Record<string, unknown>;
|
|
1000
|
+
type LiteAppComponentDataSourceResult = {
|
|
1001
|
+
data: LiteAppWorkItemInstance[];
|
|
1002
|
+
total: number;
|
|
1003
|
+
hasMore: boolean;
|
|
1004
|
+
};
|
|
961
1005
|
|
|
962
1006
|
/**
|
|
963
1007
|
* @internal
|
|
@@ -1902,6 +1946,7 @@ declare abstract class Geolocation extends BaseModel {
|
|
|
1902
1946
|
private static load;
|
|
1903
1947
|
/**
|
|
1904
1948
|
* 读取用户当前的地理位置
|
|
1949
|
+
* mobile version ≥ 7.59.0
|
|
1905
1950
|
*/
|
|
1906
1951
|
abstract getCurrentPosition(callback: (error?: SystemPermissionDeniedError | Error, result?: GeolocationPosition) => void): Promise<void>;
|
|
1907
1952
|
}
|
|
@@ -2330,6 +2375,13 @@ declare abstract class BuilderComponent extends BaseModel {
|
|
|
2330
2375
|
* 暂时不支持指定多组预设值/指定预设id(统一走 default),未来视诉求开放
|
|
2331
2376
|
*/
|
|
2332
2377
|
abstract getPreset: (propKeys?: string | string[]) => Promise<LiteAppComponentPreset>;
|
|
2378
|
+
/**
|
|
2379
|
+
* 获取 liteapp 组件数据源属性的数据结果
|
|
2380
|
+
*/
|
|
2381
|
+
abstract getDataSourceResult: (propKey: string, options: {
|
|
2382
|
+
pageNum: number;
|
|
2383
|
+
pageSize: number;
|
|
2384
|
+
}) => Promise<LiteAppComponentDataSourceResult>;
|
|
2333
2385
|
}
|
|
2334
2386
|
|
|
2335
2387
|
/**
|
|
@@ -2567,4 +2619,4 @@ declare class NotSupportedError extends CustomError {
|
|
|
2567
2619
|
* @packageDocumentation
|
|
2568
2620
|
*/
|
|
2569
2621
|
|
|
2570
|
-
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, Geolocation, GeolocationCoordinates, GeolocationPosition, 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, SystemPermissionDeniedError, Tab, TabFeatureContext, Toast, ToastOptions, User, UserInfo, Utils, View, ViewFeatureContext, WbsStatus, WorkItem, WorkItemButtonFeatureContext, WorkItemCreateFormPreset, WorkItemFinder, WorkItemFinderOptions, WorkObject, SDKClient as default, unwatch };
|
|
2622
|
+
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, Geolocation, GeolocationCoordinates, GeolocationPosition, I18nTitleConfig, IMPL_KEY, IPluginCustomBuildConfig, IRichTextEditorImageUploadComplete, IntegrationFeatureContext, Intercept, InterceptEvent, InterceptFeatureContext, InternalError, InvalidParamsError, Language, LiteAppCompLayoutConfig, LiteAppCompPropBriefConfig, LiteAppCompPropFullConfig, LiteAppCompPropSelectConfig, LiteAppCompPropValueType, LiteAppComponentConfig, LiteAppComponentDataSourceResult, LiteAppComponentFeatureContext, LiteAppComponentPreset, LiteAppComponentProps, LiteAppPropBoolean, LiteAppPropDataSource, 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, SystemPermissionDeniedError, Tab, TabFeatureContext, Toast, ToastOptions, User, UserInfo, Utils, View, ViewFeatureContext, WbsStatus, WorkItem, WorkItemButtonFeatureContext, WorkItemCreateFormPreset, WorkItemFinder, WorkItemFinderOptions, WorkObject, SDKClient as default, unwatch };
|