@lark-project/js-sdk 2.0.8-dev.2 → 2.0.8-dev.3
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 +3 -0
- package/dist/es/index.js +1 -1
- package/dist/lib/index.js +1 -1
- package/dist/types/index.d.ts +67 -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
|
@@ -379,10 +379,75 @@ interface CreateButtonFeatureContext {
|
|
|
379
379
|
*/
|
|
380
380
|
viewId?: string;
|
|
381
381
|
}
|
|
382
|
+
interface ScheduleUnitButtonFeatureContext {
|
|
383
|
+
/**
|
|
384
|
+
* 空间标识
|
|
385
|
+
*/
|
|
386
|
+
spaceId: string;
|
|
387
|
+
/**
|
|
388
|
+
* 工作项类型标识
|
|
389
|
+
*/
|
|
390
|
+
workObjectId: string;
|
|
391
|
+
/**
|
|
392
|
+
* 工作项实例唯一标识
|
|
393
|
+
*/
|
|
394
|
+
workItemId: number;
|
|
395
|
+
/**
|
|
396
|
+
* 计划表单元上下文信息
|
|
397
|
+
*/
|
|
398
|
+
scheduleUnitCtx: {
|
|
399
|
+
/**
|
|
400
|
+
* 计划表编辑草稿标识
|
|
401
|
+
*/
|
|
402
|
+
draftId: string;
|
|
403
|
+
/**
|
|
404
|
+
* 计划表单元父节点标识
|
|
405
|
+
*/
|
|
406
|
+
parentUUID: string;
|
|
407
|
+
/**
|
|
408
|
+
* 计划表单元标识
|
|
409
|
+
*/
|
|
410
|
+
uuid: string;
|
|
411
|
+
/**
|
|
412
|
+
* 计划表单元类型
|
|
413
|
+
*/
|
|
414
|
+
type: string;
|
|
415
|
+
/**
|
|
416
|
+
* 计划表单元值
|
|
417
|
+
*/
|
|
418
|
+
value: Record<string, any>;
|
|
419
|
+
};
|
|
420
|
+
}
|
|
421
|
+
/**
|
|
422
|
+
* 视图批量按钮上下文
|
|
423
|
+
* 适用场景:普通视图、工作项主页视图、工作台视图组件
|
|
424
|
+
*/
|
|
425
|
+
interface BatchButtonFeatureContext {
|
|
426
|
+
/**
|
|
427
|
+
* 视图所属空间标识
|
|
428
|
+
*/
|
|
429
|
+
spaceId: string;
|
|
430
|
+
/**
|
|
431
|
+
* 视图所属工作项类型标识
|
|
432
|
+
*/
|
|
433
|
+
workObjectId: string;
|
|
434
|
+
/**
|
|
435
|
+
* 视图标识
|
|
436
|
+
*/
|
|
437
|
+
viewId?: string;
|
|
438
|
+
/**
|
|
439
|
+
* 勾选的工作项实例
|
|
440
|
+
*/
|
|
441
|
+
selectedWorkItems: Array<{
|
|
442
|
+
spaceId: string;
|
|
443
|
+
workObjectId: string;
|
|
444
|
+
workItemIds: number[];
|
|
445
|
+
}>;
|
|
446
|
+
}
|
|
382
447
|
/**
|
|
383
448
|
* 按钮构成
|
|
384
449
|
*/
|
|
385
|
-
type ButtonFeatureContext = WorkItemButtonFeatureContext | CreateButtonFeatureContext;
|
|
450
|
+
type ButtonFeatureContext = WorkItemButtonFeatureContext | CreateButtonFeatureContext | BatchButtonFeatureContext | ScheduleUnitButtonFeatureContext;
|
|
386
451
|
/**
|
|
387
452
|
* 内嵌页面构成
|
|
388
453
|
* 一个单独的导航入口+内嵌页面
|
|
@@ -2089,4 +2154,4 @@ declare class NotSupportedError extends CustomError {
|
|
|
2089
2154
|
* @packageDocumentation
|
|
2090
2155
|
*/
|
|
2091
2156
|
|
|
2092
|
-
export { ActionSheet, ActionSheetOptions, AttributeType, BizLine, BriefField, BriefNode, BriefSpace, BriefTemplate, BriefView, BriefWorkItem, BriefWorkObject, Button, ButtonFeatureContext, ButtonScene, Clipboard, ColorScheme, ComponentScheduleIdentity, ComponentScheduleScene, Configuration, ConfigurationFeatureContext, ContainerModal, Context, Control, ControlFeatureContext, CreateButtonFeatureContext, CustomComponent, CustomComponentFeatureContext, CustomComponentProps, CustomComponentType, ExCompoundFieldValueType, ExField, ExFieldConfig, ExFieldFeatureContext, ExFieldProps, ExFieldValidateMsg, ExFieldValueType, Field, FieldType, FieldValue, FlowMode, IMPL_KEY, IPluginCustomBuildConfig, IRichTextEditorImageUploadComplete, IntegrationFeatureContext, Intercept, InterceptEvent, InterceptFeatureContext, InternalError, InvalidParamsError, Language, MEEGO_BIZ_HUB, Modal, ModalConfirmOptions, ModalOpenOptions, Navigation, NoAuthError, NodeStatus, NotFoundError, NotSupportedError, Off, OutOfLimitError, Page, PageFeatureContext, RichTextEditor, RichTextEditorContent, RichTextEditorOptions, Role, RoleOwners, SDKClient, SDKClientOptions, ScheduleCompValidateMsg, ScheduleCompValueType, Shared, Space, Storage, SubFieldType, Tab, TabFeatureContext, Toast, ToastOptions, User, UserInfo, Utils, View, ViewFeatureContext, WbsStatus, WorkItem, WorkItemButtonFeatureContext, WorkItemCreateFormPreset, WorkItemFinder, WorkItemFinderOptions, WorkObject, SDKClient as default, unwatch };
|
|
2157
|
+
export { ActionSheet, ActionSheetOptions, AttributeType, BatchButtonFeatureContext, BizLine, BriefField, BriefNode, BriefSpace, BriefTemplate, BriefView, BriefWorkItem, BriefWorkObject, Button, ButtonFeatureContext, ButtonScene, Clipboard, ColorScheme, ComponentScheduleIdentity, ComponentScheduleScene, Configuration, ConfigurationFeatureContext, ContainerModal, Context, Control, ControlFeatureContext, CreateButtonFeatureContext, CustomComponent, CustomComponentFeatureContext, CustomComponentProps, CustomComponentType, ExCompoundFieldValueType, ExField, ExFieldConfig, ExFieldFeatureContext, ExFieldProps, ExFieldValidateMsg, ExFieldValueType, Field, FieldType, FieldValue, FlowMode, IMPL_KEY, IPluginCustomBuildConfig, IRichTextEditorImageUploadComplete, IntegrationFeatureContext, Intercept, InterceptEvent, InterceptFeatureContext, InternalError, InvalidParamsError, Language, 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, Shared, Space, Storage, SubFieldType, Tab, TabFeatureContext, Toast, ToastOptions, User, UserInfo, Utils, View, ViewFeatureContext, WbsStatus, WorkItem, WorkItemButtonFeatureContext, WorkItemCreateFormPreset, WorkItemFinder, WorkItemFinderOptions, WorkObject, SDKClient as default, unwatch };
|