@ibm-aspera/sdk 0.9.0 → 0.16.0
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/commonjs/app/core.d.ts +69 -1
- package/dist/commonjs/app/core.js +250 -2
- package/dist/commonjs/constants/messages.d.ts +14 -0
- package/dist/commonjs/constants/messages.js +14 -0
- package/dist/commonjs/index.d.ts +3 -3
- package/dist/commonjs/index.js +15 -1
- package/dist/commonjs/models/aspera-sdk.model.d.ts +15 -1
- package/dist/commonjs/models/models.d.ts +104 -0
- package/dist/js/aspera-sdk.js +1 -1
- package/dist/js/aspera-sdk.js.LICENSE.txt +1 -1
- package/dist/js/aspera-sdk.js.map +1 -1
- package/package.json +1 -1
|
@@ -28,6 +28,14 @@ export interface FolderDialogOptions {
|
|
|
28
28
|
/** Allow user to select multiple folders */
|
|
29
29
|
multiple?: boolean;
|
|
30
30
|
}
|
|
31
|
+
export interface SaveFileDialogOptions {
|
|
32
|
+
/** Filter the files displayed by file extension. */
|
|
33
|
+
allowedFileTypes?: any;
|
|
34
|
+
/** The filename to pre-fill the dialog with. */
|
|
35
|
+
suggestedName?: string;
|
|
36
|
+
/** The name of the dialog window. */
|
|
37
|
+
title?: string;
|
|
38
|
+
}
|
|
31
39
|
/**
|
|
32
40
|
* Options related to fetching the latest Aspera installer information.
|
|
33
41
|
*
|
|
@@ -165,6 +173,60 @@ export interface ChecksumFileResponse {
|
|
|
165
173
|
/** The algorithm used */
|
|
166
174
|
checksumMethod: 'md5' | 'sha1' | 'sha256' | 'sha512';
|
|
167
175
|
}
|
|
176
|
+
/** The type of a directory entry */
|
|
177
|
+
export type EntryType = 'file' | 'directory';
|
|
178
|
+
/** Filters to narrow directory listing results */
|
|
179
|
+
export interface DirectoryListFilters {
|
|
180
|
+
/** Only return entries of this type. Omit to return all. */
|
|
181
|
+
type?: EntryType;
|
|
182
|
+
/** Glob pattern matched against the file name only (e.g., "*.pdf"). */
|
|
183
|
+
namePattern?: string;
|
|
184
|
+
/** Whether to include hidden files and directories in the results. */
|
|
185
|
+
hidden?: boolean;
|
|
186
|
+
}
|
|
187
|
+
/** Options for testing SSH port connectivity to a transfer server. */
|
|
188
|
+
export interface TestSshPortsOptions {
|
|
189
|
+
/** Domain name of the transfer server */
|
|
190
|
+
remote_host: string;
|
|
191
|
+
/** SSH port */
|
|
192
|
+
ssh_port?: number;
|
|
193
|
+
/** Timeout value in seconds */
|
|
194
|
+
timeout_sec?: number;
|
|
195
|
+
}
|
|
196
|
+
/** Options for reading directory contents */
|
|
197
|
+
/** Valid page names for the preferences page. */
|
|
198
|
+
export type PreferencesPage = 'general' | 'transfers' | 'network' | 'bandwidth' | 'security';
|
|
199
|
+
/** Options for opening the preferences page to a specific tab. */
|
|
200
|
+
export interface ShowPreferencesPageOptions {
|
|
201
|
+
/** The preferences page (tab) to open. */
|
|
202
|
+
page: PreferencesPage;
|
|
203
|
+
}
|
|
204
|
+
export interface ReadDirectoryOptions {
|
|
205
|
+
/** Absolute path to the directory to enumerate. Must have been previously allowed via dialog selection or drag-drop. */
|
|
206
|
+
path: string;
|
|
207
|
+
/** Maximum recursion depth. 0 = direct children only (non-recursive). Omit for full recursive traversal. */
|
|
208
|
+
depth?: number;
|
|
209
|
+
/** Optional filters to narrow the results. */
|
|
210
|
+
filters?: DirectoryListFilters;
|
|
211
|
+
}
|
|
212
|
+
/** A single entry in a directory listing */
|
|
213
|
+
export interface DirectoryEntry {
|
|
214
|
+
/** Path relative to the traversal root, using forward slashes on all platforms. */
|
|
215
|
+
relativePath: string;
|
|
216
|
+
/** The entry type: "file" or "directory". */
|
|
217
|
+
type: EntryType;
|
|
218
|
+
/** Size in bytes. 0 for directories. */
|
|
219
|
+
size: number;
|
|
220
|
+
/** Last modified timestamp in milliseconds since the UNIX epoch. */
|
|
221
|
+
lastModified: number;
|
|
222
|
+
}
|
|
223
|
+
/** Response from reading directory contents */
|
|
224
|
+
export interface ReadDirectoryResponse {
|
|
225
|
+
/** The directory entries matching the request criteria. */
|
|
226
|
+
entries: DirectoryEntry[];
|
|
227
|
+
/** The total number of entries returned. If this equals the server maximum, results may have been truncated. */
|
|
228
|
+
totalCount: number;
|
|
229
|
+
}
|
|
168
230
|
export interface ModifyTransferOptions {
|
|
169
231
|
/**
|
|
170
232
|
* @deprecated Use `lock_min_rate_kbps` instead.
|
|
@@ -893,4 +955,46 @@ export interface SdkCapabilities {
|
|
|
893
955
|
* but not HTTP Gateway.
|
|
894
956
|
*/
|
|
895
957
|
showPreferences: boolean;
|
|
958
|
+
/**
|
|
959
|
+
* Whether the transfer client supports showing the transfer manager.
|
|
960
|
+
*
|
|
961
|
+
* This is supported when using Connect or IBM Aspera for desktop with the required RPC methods,
|
|
962
|
+
* but not HTTP Gateway.
|
|
963
|
+
*/
|
|
964
|
+
showTransferManager: boolean;
|
|
965
|
+
/**
|
|
966
|
+
* Whether the transfer client supports showing the transfer rate monitor.
|
|
967
|
+
*
|
|
968
|
+
* This is supported when using Connect or IBM Aspera for desktop with the required RPC methods,
|
|
969
|
+
* but not HTTP Gateway.
|
|
970
|
+
*/
|
|
971
|
+
showTransferMonitor: boolean;
|
|
972
|
+
/**
|
|
973
|
+
* Whether the transfer client supports authenticating a transfer specification.
|
|
974
|
+
*
|
|
975
|
+
* This is supported when using Connect or IBM Aspera for desktop with the required RPC methods,
|
|
976
|
+
* but not HTTP Gateway.
|
|
977
|
+
*/
|
|
978
|
+
authenticate: boolean;
|
|
979
|
+
/**
|
|
980
|
+
* Whether the transfer client supports testing SSH port connectivity.
|
|
981
|
+
*
|
|
982
|
+
* This is supported when using Connect or IBM Aspera for desktop with the required RPC methods,
|
|
983
|
+
* but not HTTP Gateway.
|
|
984
|
+
*/
|
|
985
|
+
testSshPorts: boolean;
|
|
986
|
+
/**
|
|
987
|
+
* Whether the transfer client supports showing the save file dialog.
|
|
988
|
+
*
|
|
989
|
+
* This is supported when using Connect or IBM Aspera for desktop with the required RPC methods,
|
|
990
|
+
* but not HTTP Gateway.
|
|
991
|
+
*/
|
|
992
|
+
showSaveFileDialog: boolean;
|
|
993
|
+
/**
|
|
994
|
+
* Whether the SDK can read directory contents.
|
|
995
|
+
*
|
|
996
|
+
* This is supported when using IBM Aspera for desktop with the required RPC methods,
|
|
997
|
+
* but not Connect or HTTP Gateway.
|
|
998
|
+
*/
|
|
999
|
+
readDirectory: boolean;
|
|
896
1000
|
}
|