@pelican.ts/sdk 0.4.2 → 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
@@ -807,6 +807,8 @@ declare class Server {
807
807
  uploadFile: (...opts: Parameters<ServerFiles["upload"]>) => Promise<void>;
808
808
  uploadFileGetUrl: (...opts: Parameters<ServerFiles["uploadGetUrl"]>) => Promise<string>;
809
809
  pullFileFromRemote: (...opts: Parameters<ServerFiles["pullFromRemote"]>) => Promise<void>;
810
+ compressMultipleFiles: (...opts: Parameters<ServerFiles["compress"]>) => Promise<FileObject>;
811
+ renameMultipleFiles: (...opts: Parameters<ServerFiles["rename"]>) => Promise<void>;
810
812
  getUsers: () => Promise<ServerUser[]>;
811
813
  createUser: (email: string, permissions: SubuserPermission[] | string[]) => Promise<ServerUser>;
812
814
  getStartupInfo: () => Promise<CustomListResponse<StartupParams, StartupMeta>>;
package/dist/index.d.ts CHANGED
@@ -807,6 +807,8 @@ declare class Server {
807
807
  uploadFile: (...opts: Parameters<ServerFiles["upload"]>) => Promise<void>;
808
808
  uploadFileGetUrl: (...opts: Parameters<ServerFiles["uploadGetUrl"]>) => Promise<string>;
809
809
  pullFileFromRemote: (...opts: Parameters<ServerFiles["pullFromRemote"]>) => Promise<void>;
810
+ compressMultipleFiles: (...opts: Parameters<ServerFiles["compress"]>) => Promise<FileObject>;
811
+ renameMultipleFiles: (...opts: Parameters<ServerFiles["rename"]>) => Promise<void>;
810
812
  getUsers: () => Promise<ServerUser[]>;
811
813
  createUser: (email: string, permissions: SubuserPermission[] | string[]) => Promise<ServerUser>;
812
814
  getStartupInfo: () => Promise<CustomListResponse<StartupParams, StartupMeta>>;
package/dist/index.js CHANGED
@@ -2159,6 +2159,8 @@ var Server = class {
2159
2159
  uploadFile = async (...opts) => this.client.files.upload(...opts);
2160
2160
  uploadFileGetUrl = async (...opts) => this.client.files.uploadGetUrl(...opts);
2161
2161
  pullFileFromRemote = async (...opts) => this.client.files.pullFromRemote(...opts);
2162
+ compressMultipleFiles = async (...opts) => this.client.files.compress(...opts);
2163
+ renameMultipleFiles = async (...opts) => this.client.files.rename(...opts);
2162
2164
  getUsers = async () => {
2163
2165
  const data = await this.client.users.list();
2164
2166
  return data.map((d) => new ServerUser(this.client, d));
package/dist/index.mjs CHANGED
@@ -2114,6 +2114,8 @@ var Server = class {
2114
2114
  uploadFile = async (...opts) => this.client.files.upload(...opts);
2115
2115
  uploadFileGetUrl = async (...opts) => this.client.files.uploadGetUrl(...opts);
2116
2116
  pullFileFromRemote = async (...opts) => this.client.files.pullFromRemote(...opts);
2117
+ compressMultipleFiles = async (...opts) => this.client.files.compress(...opts);
2118
+ renameMultipleFiles = async (...opts) => this.client.files.rename(...opts);
2117
2119
  getUsers = async () => {
2118
2120
  const data = await this.client.users.list();
2119
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.2",
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",
@@ -186,6 +186,14 @@ export class Server {
186
186
  ...opts: Parameters<ServerFiles["pullFromRemote"]>
187
187
  ) => this.client.files.pullFromRemote(...opts)
188
188
 
189
+ compressMultipleFiles = async (
190
+ ...opts: Parameters<ServerFiles["compress"]>
191
+ ) => this.client.files.compress(...opts)
192
+
193
+ renameMultipleFiles = async (
194
+ ...opts: Parameters<ServerFiles["rename"]>
195
+ ) => this.client.files.rename(...opts)
196
+
189
197
  getUsers = async () => {
190
198
  const data = await this.client.users.list()
191
199
  return data.map((d) => new ServerUser(this.client, d))