@transai/connector-runtime-sdk 0.22.3 → 0.22.5
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/meta.cjs.json +1 -1
- package/meta.esm.json +1 -1
- package/package.json +1 -1
- package/src/lib/sdk/files.sdk.interface.d.ts +6 -0
package/meta.cjs.json
CHANGED
package/meta.esm.json
CHANGED
package/package.json
CHANGED
|
@@ -15,5 +15,11 @@ export interface FilesSDKInterface {
|
|
|
15
15
|
write(filePath: string, data: FileHandleInterface | Buffer | string): Promise<boolean>;
|
|
16
16
|
delete(path: string): Promise<boolean>;
|
|
17
17
|
exists(path: string): Promise<boolean>;
|
|
18
|
+
/**
|
|
19
|
+
* Publish a complete file on the same filesystem without replacing a destination.
|
|
20
|
+
* Resolves false only when nothing was renamed; rejects when the outcome is unknown.
|
|
21
|
+
*/
|
|
22
|
+
rename(source: string, destination: string): Promise<boolean>;
|
|
23
|
+
mkdir(directory: string): Promise<boolean>;
|
|
18
24
|
pathAsDsn(path: string): string;
|
|
19
25
|
}
|