@pelican.ts/sdk 0.4.3 → 0.4.4

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 CHANGED
@@ -808,6 +808,7 @@ 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>;
811
812
  getUsers: () => Promise<ServerUser[]>;
812
813
  createUser: (email: string, permissions: SubuserPermission[] | string[]) => Promise<ServerUser>;
813
814
  getStartupInfo: () => Promise<CustomListResponse<StartupParams, StartupMeta>>;
package/dist/index.d.ts CHANGED
@@ -808,6 +808,7 @@ 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>;
811
812
  getUsers: () => Promise<ServerUser[]>;
812
813
  createUser: (email: string, permissions: SubuserPermission[] | string[]) => Promise<ServerUser>;
813
814
  getStartupInfo: () => Promise<CustomListResponse<StartupParams, StartupMeta>>;
package/dist/index.js CHANGED
@@ -2160,6 +2160,7 @@ 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);
2163
2164
  getUsers = async () => {
2164
2165
  const data = await this.client.users.list();
2165
2166
  return data.map((d) => new ServerUser(this.client, d));
package/dist/index.mjs CHANGED
@@ -2115,6 +2115,7 @@ 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);
2118
2119
  getUsers = async () => {
2119
2120
  const data = await this.client.users.list();
2120
2121
  return data.map((d) => new ServerUser(this.client, d));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pelican.ts/sdk",
3
- "version": "0.4.3",
3
+ "version": "0.4.4",
4
4
  "description": "Pelican panel SDK for TypeScript",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -190,6 +190,10 @@ 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
+
193
197
  getUsers = async () => {
194
198
  const data = await this.client.users.list()
195
199
  return data.map((d) => new ServerUser(this.client, d))