next-flow-interface 0.27.16 → 0.27.18

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.
Files changed (2) hide show
  1. package/index.d.ts +9 -1
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -1587,6 +1587,7 @@ declare function fetchJsonWithRetry(url: string, retries?: number): Promise<unkn
1587
1587
  */
1588
1588
  export declare interface FileData {
1589
1589
  fid: string;
1590
+ resourceId?: string;
1590
1591
  status: LocalDataStatus;
1591
1592
  name: string;
1592
1593
  progress: number;
@@ -6077,9 +6078,16 @@ export declare class RvResourceService {
6077
6078
  */
6078
6079
  getAllMetadataByFileId(fileId: string): Resource[];
6079
6080
  /**
6080
- * 通过 fileId 获取所有对应的 resourceId 列表
6081
+ * 通过 fileId 获取所有对应的 resourceId 列表(包含后端缓存中的所有资源)
6081
6082
  */
6082
6083
  getResourceIdsByFileId(fileId: string): string[];
6084
+ /**
6085
+ * 通过 fileId 获取协同数据中已添加的对应 resourceId 列表
6086
+ *
6087
+ * 与 getResourceIdsByFileId 不同,此方法仅返回已存在于协同数据 resources 中的资源,
6088
+ * 排除仅在后端缓存但未添加到协同数据的资源。
6089
+ */
6090
+ getAddedResourceIdsByFileId(fileId: string): string[];
6083
6091
  /**
6084
6092
  * 设置资源元数据缓存
6085
6093
  */
package/package.json CHANGED
@@ -36,7 +36,7 @@
36
36
  "valtio": "2.1.7",
37
37
  "rhine-var": "2.4.3"
38
38
  },
39
- "version": "0.27.16",
39
+ "version": "0.27.18",
40
40
  "author": "NextFlow",
41
41
  "license": "Apache-2.0",
42
42
  "keywords": [