@pelican.ts/sdk 0.4.3 → 0.4.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/dist/index.d.mts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/index.mjs +2 -0
- package/package.json +1 -1
- package/src/humane/Server.ts +8 -0
package/dist/index.d.mts
CHANGED
|
@@ -808,6 +808,8 @@ declare class Server {
|
|
|
808
808
|
uploadFileGetUrl: (...opts: Parameters<ServerFiles["uploadGetUrl"]>) => Promise<string>;
|
|
809
809
|
pullFileFromRemote: (...opts: Parameters<ServerFiles["pullFromRemote"]>) => Promise<void>;
|
|
810
810
|
compressMultipleFiles: (...opts: Parameters<ServerFiles["compress"]>) => Promise<FileObject>;
|
|
811
|
+
renameMultipleFiles: (...opts: Parameters<ServerFiles["rename"]>) => Promise<void>;
|
|
812
|
+
deleteMultipleFiles: (...opts: Parameters<ServerFiles["delete"]>) => Promise<void>;
|
|
811
813
|
getUsers: () => Promise<ServerUser[]>;
|
|
812
814
|
createUser: (email: string, permissions: SubuserPermission[] | string[]) => Promise<ServerUser>;
|
|
813
815
|
getStartupInfo: () => Promise<CustomListResponse<StartupParams, StartupMeta>>;
|
package/dist/index.d.ts
CHANGED
|
@@ -808,6 +808,8 @@ declare class Server {
|
|
|
808
808
|
uploadFileGetUrl: (...opts: Parameters<ServerFiles["uploadGetUrl"]>) => Promise<string>;
|
|
809
809
|
pullFileFromRemote: (...opts: Parameters<ServerFiles["pullFromRemote"]>) => Promise<void>;
|
|
810
810
|
compressMultipleFiles: (...opts: Parameters<ServerFiles["compress"]>) => Promise<FileObject>;
|
|
811
|
+
renameMultipleFiles: (...opts: Parameters<ServerFiles["rename"]>) => Promise<void>;
|
|
812
|
+
deleteMultipleFiles: (...opts: Parameters<ServerFiles["delete"]>) => Promise<void>;
|
|
811
813
|
getUsers: () => Promise<ServerUser[]>;
|
|
812
814
|
createUser: (email: string, permissions: SubuserPermission[] | string[]) => Promise<ServerUser>;
|
|
813
815
|
getStartupInfo: () => Promise<CustomListResponse<StartupParams, StartupMeta>>;
|
package/dist/index.js
CHANGED
|
@@ -2160,6 +2160,8 @@ var Server = class {
|
|
|
2160
2160
|
uploadFileGetUrl = async (...opts) => this.client.files.uploadGetUrl(...opts);
|
|
2161
2161
|
pullFileFromRemote = async (...opts) => this.client.files.pullFromRemote(...opts);
|
|
2162
2162
|
compressMultipleFiles = async (...opts) => this.client.files.compress(...opts);
|
|
2163
|
+
renameMultipleFiles = async (...opts) => this.client.files.rename(...opts);
|
|
2164
|
+
deleteMultipleFiles = async (...opts) => this.client.files.delete(...opts);
|
|
2163
2165
|
getUsers = async () => {
|
|
2164
2166
|
const data = await this.client.users.list();
|
|
2165
2167
|
return data.map((d) => new ServerUser(this.client, d));
|
package/dist/index.mjs
CHANGED
|
@@ -2115,6 +2115,8 @@ var Server = class {
|
|
|
2115
2115
|
uploadFileGetUrl = async (...opts) => this.client.files.uploadGetUrl(...opts);
|
|
2116
2116
|
pullFileFromRemote = async (...opts) => this.client.files.pullFromRemote(...opts);
|
|
2117
2117
|
compressMultipleFiles = async (...opts) => this.client.files.compress(...opts);
|
|
2118
|
+
renameMultipleFiles = async (...opts) => this.client.files.rename(...opts);
|
|
2119
|
+
deleteMultipleFiles = async (...opts) => this.client.files.delete(...opts);
|
|
2118
2120
|
getUsers = async () => {
|
|
2119
2121
|
const data = await this.client.users.list();
|
|
2120
2122
|
return data.map((d) => new ServerUser(this.client, d));
|
package/package.json
CHANGED
package/src/humane/Server.ts
CHANGED
|
@@ -190,6 +190,14 @@ export class Server {
|
|
|
190
190
|
...opts: Parameters<ServerFiles["compress"]>
|
|
191
191
|
) => this.client.files.compress(...opts)
|
|
192
192
|
|
|
193
|
+
renameMultipleFiles = async (
|
|
194
|
+
...opts: Parameters<ServerFiles["rename"]>
|
|
195
|
+
) => this.client.files.rename(...opts)
|
|
196
|
+
|
|
197
|
+
deleteMultipleFiles = async (
|
|
198
|
+
...opts: Parameters<ServerFiles["delete"]>
|
|
199
|
+
) => this.client.files.delete(...opts)
|
|
200
|
+
|
|
193
201
|
getUsers = async () => {
|
|
194
202
|
const data = await this.client.users.list()
|
|
195
203
|
return data.map((d) => new ServerUser(this.client, d))
|