next-flow-interface 0.27.13 → 0.27.14

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 +17 -3
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -5997,6 +5997,8 @@ export declare class RvResourceService {
5997
5997
  private fileToResourceMap;
5998
5998
  /**
5999
5999
  * 添加 resourceId 到协同数据
6000
+ *
6001
+ * 如果资源元数据已在缓存中,会自动同步文件元数据并触发下载
6000
6002
  */
6001
6003
  add(resourceId: string): void;
6002
6004
  /**
@@ -6049,13 +6051,25 @@ export declare class RvResourceService {
6049
6051
  */
6050
6052
  getDownloadUrl(fileId: string): Promise<string>;
6051
6053
  /**
6052
- * 从后端同步资源列表到协同数据和本地缓存
6054
+ * 从后端同步资源列表到本地缓存
6053
6055
  *
6054
6056
  * 通过 listResources 一次性拉取后端完整资源列表,
6055
- * 将缺失的 resourceId 补写回协同数据,
6056
- * 同时填充本地元数据缓存并通知文件订阅者。
6057
+ * 仅填充本地元数据缓存,不自动添加到协同数据。
6058
+ * 需要手动调用 add() 方法将资源添加到协同数据。
6057
6059
  */
6058
6060
  syncFromBackend(): Promise<void>;
6061
+ /**
6062
+ * 获取所有后端资源的元数据列表(从本地缓存)
6063
+ *
6064
+ * @returns 资源元数据数组
6065
+ */
6066
+ getAllMetadata(): Resource[];
6067
+ /**
6068
+ * 获取所有未添加到协同数据的资源列表
6069
+ *
6070
+ * @returns 未添加的资源元数据数组
6071
+ */
6072
+ getUnaddedResources(): Resource[];
6059
6073
  /**
6060
6074
  * 订阅资源列表变化事件(ADD/REMOVE)
6061
6075
  */
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.13",
39
+ "version": "0.27.14",
40
40
  "author": "NextFlow",
41
41
  "license": "Apache-2.0",
42
42
  "keywords": [