@pelican.ts/sdk 0.4.2 → 0.4.3
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 +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/index.mjs +1 -0
- package/package.json +1 -1
- package/src/humane/Server.ts +4 -0
package/dist/index.d.mts
CHANGED
|
@@ -807,6 +807,7 @@ 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>;
|
|
810
811
|
getUsers: () => Promise<ServerUser[]>;
|
|
811
812
|
createUser: (email: string, permissions: SubuserPermission[] | string[]) => Promise<ServerUser>;
|
|
812
813
|
getStartupInfo: () => Promise<CustomListResponse<StartupParams, StartupMeta>>;
|
package/dist/index.d.ts
CHANGED
|
@@ -807,6 +807,7 @@ 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>;
|
|
810
811
|
getUsers: () => Promise<ServerUser[]>;
|
|
811
812
|
createUser: (email: string, permissions: SubuserPermission[] | string[]) => Promise<ServerUser>;
|
|
812
813
|
getStartupInfo: () => Promise<CustomListResponse<StartupParams, StartupMeta>>;
|
package/dist/index.js
CHANGED
|
@@ -2159,6 +2159,7 @@ 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);
|
|
2162
2163
|
getUsers = async () => {
|
|
2163
2164
|
const data = await this.client.users.list();
|
|
2164
2165
|
return data.map((d) => new ServerUser(this.client, d));
|
package/dist/index.mjs
CHANGED
|
@@ -2114,6 +2114,7 @@ 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);
|
|
2117
2118
|
getUsers = async () => {
|
|
2118
2119
|
const data = await this.client.users.list();
|
|
2119
2120
|
return data.map((d) => new ServerUser(this.client, d));
|
package/package.json
CHANGED
package/src/humane/Server.ts
CHANGED
|
@@ -186,6 +186,10 @@ 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
|
+
|
|
189
193
|
getUsers = async () => {
|
|
190
194
|
const data = await this.client.users.list()
|
|
191
195
|
return data.map((d) => new ServerUser(this.client, d))
|