@internxt/sdk 1.9.27 → 1.9.28
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.
|
@@ -54,6 +54,13 @@ export declare class Backups {
|
|
|
54
54
|
* @returns A promise that resolves when the device is successfully deleted.
|
|
55
55
|
*/
|
|
56
56
|
deleteBackupDevice(deviceId: number): Promise<void>;
|
|
57
|
+
/**
|
|
58
|
+
* Deletes a backup device by its folder ID.
|
|
59
|
+
*
|
|
60
|
+
* @param folderId - The unique identifier of the folder to be deleted.
|
|
61
|
+
* @returns A promise that resolves when the device is successfully deleted.
|
|
62
|
+
*/
|
|
63
|
+
deleteBackupDeviceAsFolder(folderId: string): Promise<void>;
|
|
57
64
|
/**
|
|
58
65
|
* Returns the needed headers for the module requests
|
|
59
66
|
* @private
|
|
@@ -80,6 +80,16 @@ var Backups = /** @class */ (function () {
|
|
|
80
80
|
return this.client
|
|
81
81
|
.delete("/backup/devices/".concat(deviceId), this.headers());
|
|
82
82
|
};
|
|
83
|
+
/**
|
|
84
|
+
* Deletes a backup device by its folder ID.
|
|
85
|
+
*
|
|
86
|
+
* @param folderId - The unique identifier of the folder to be deleted.
|
|
87
|
+
* @returns A promise that resolves when the device is successfully deleted.
|
|
88
|
+
*/
|
|
89
|
+
Backups.prototype.deleteBackupDeviceAsFolder = function (folderId) {
|
|
90
|
+
return this.client
|
|
91
|
+
.delete("/backup/deviceAsFolder/".concat(folderId), this.headers());
|
|
92
|
+
};
|
|
83
93
|
/**
|
|
84
94
|
* Returns the needed headers for the module requests
|
|
85
95
|
* @private
|