utools-api-types 2.6.0 → 2.6.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/package.json +1 -1
- package/utools.api.d.ts +12 -0
package/package.json
CHANGED
package/utools.api.d.ts
CHANGED
|
@@ -527,6 +527,10 @@ interface UToolsApi {
|
|
|
527
527
|
* 获取矩形所在的显示器
|
|
528
528
|
*/
|
|
529
529
|
getDisplayMatching(rect: { x: number, y: number, width: number, height: number }): Display;
|
|
530
|
+
/**
|
|
531
|
+
* 录屏源
|
|
532
|
+
*/
|
|
533
|
+
desktopCaptureSources(options: { types: string[], thumbnailSize?: { width: number, height: number }, fetchWindowIcons?: boolean }):Promise<{appIcon: {}, display_id: string, id: string, name: string, thumbnail: {} }>;
|
|
530
534
|
/**
|
|
531
535
|
* 是否开发中
|
|
532
536
|
*/
|
|
@@ -582,6 +586,10 @@ interface UToolsApi {
|
|
|
582
586
|
* @param docId 文档ID
|
|
583
587
|
*/
|
|
584
588
|
getAttachmentType(docId: string): string | null;
|
|
589
|
+
/**
|
|
590
|
+
* 云端复制数据状态 (null: 未开启数据同步、0: 已完成复制、1:复制中)
|
|
591
|
+
*/
|
|
592
|
+
replicateStateFromCloud(): null | 0 | 1;
|
|
585
593
|
/**
|
|
586
594
|
* 异步
|
|
587
595
|
*/
|
|
@@ -623,6 +631,10 @@ interface UToolsApi {
|
|
|
623
631
|
* @param docId 文档ID
|
|
624
632
|
*/
|
|
625
633
|
getAttachmentType(docId: string): Promise<string | null>;
|
|
634
|
+
/**
|
|
635
|
+
* 云端复制数据状态 (null: 未开启数据同步、0: 已完成复制、1:复制中)
|
|
636
|
+
*/
|
|
637
|
+
replicateStateFromCloud(): Promise<null | 0 | 1>;
|
|
626
638
|
}
|
|
627
639
|
};
|
|
628
640
|
|