@icewhale/zimaos-localstorage-openapi
Advanced tools
Comparing version 1.2.4-alpha1 to 1.2.4-alpha13
@@ -183,6 +183,6 @@ /** | ||
* | ||
* @type {string} | ||
* @type {DiskType} | ||
* @memberof Disk | ||
*/ | ||
'type'?: string; | ||
'type'?: DiskType; | ||
/** | ||
@@ -271,2 +271,15 @@ * | ||
* @export | ||
* @enum {string} | ||
*/ | ||
export declare const DiskType: { | ||
readonly Hdd: "HDD"; | ||
readonly Ssd: "SSD"; | ||
readonly Usb: "USB"; | ||
readonly Nvme: "NVME"; | ||
readonly Mmc: "MMC"; | ||
}; | ||
export type DiskType = typeof DiskType[keyof typeof DiskType]; | ||
/** | ||
* | ||
* @export | ||
* @interface GetDiskInfo200Response | ||
@@ -291,2 +304,40 @@ */ | ||
* @export | ||
* @interface GetDiskSleepWaitTime200Response | ||
*/ | ||
export interface GetDiskSleepWaitTime200Response { | ||
/** | ||
* message returned by server side if there is any | ||
* @type {string} | ||
* @memberof GetDiskSleepWaitTime200Response | ||
*/ | ||
'message'?: string; | ||
/** | ||
* | ||
* @type {number} | ||
* @memberof GetDiskSleepWaitTime200Response | ||
*/ | ||
'level': number; | ||
} | ||
/** | ||
* | ||
* @export | ||
* @interface GetDiskStandbyStatus200Response | ||
*/ | ||
export interface GetDiskStandbyStatus200Response { | ||
/** | ||
* message returned by server side if there is any | ||
* @type {string} | ||
* @memberof GetDiskStandbyStatus200Response | ||
*/ | ||
'message'?: string; | ||
/** | ||
* | ||
* @type {boolean} | ||
* @memberof GetDiskStandbyStatus200Response | ||
*/ | ||
'standby': boolean; | ||
} | ||
/** | ||
* | ||
* @export | ||
* @interface GetDisks200Response | ||
@@ -756,2 +807,15 @@ */ | ||
* @export | ||
* @interface SetDiskSleepWaitTimeRequest | ||
*/ | ||
export interface SetDiskSleepWaitTimeRequest { | ||
/** | ||
* the time of how time is free to sleep | ||
* @type {number} | ||
* @memberof SetDiskSleepWaitTimeRequest | ||
*/ | ||
'level': number; | ||
} | ||
/** | ||
* | ||
* @export | ||
* @interface SetMerge200Response | ||
@@ -841,6 +905,6 @@ */ | ||
* | ||
* @type {string} | ||
* @type {DiskType} | ||
* @memberof Storage | ||
*/ | ||
'disk_type'?: string; | ||
'disk_type'?: DiskType; | ||
/** | ||
@@ -987,2 +1051,15 @@ * | ||
/** | ||
* get how minutes to sleep a disk | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
getDiskSleepWaitTime: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>; | ||
/** | ||
* get disk sleep status | ||
* @param {string} [devicePath] Filter the results by path | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
getDiskStandbyStatus: (devicePath?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>; | ||
/** | ||
* Get a list of all disks, or a single disk by path. | ||
@@ -995,2 +1072,9 @@ * @summary Get disks | ||
getDisks: (free?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>; | ||
/** | ||
* set sleep disk time the value is 0-251, 1-240 is n * 5, 241 - 251 is n * 30 minutes 0 means never sleep 1 means sleep after 5 s 2 means sleep after 10 s 12 means sleep after 1 minute 241 means sleep after 30 minutes 242 means sleep after 1 hour | ||
* @param {SetDiskSleepWaitTimeRequest} setDiskSleepWaitTimeRequest | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
setDiskSleepWaitTime: (setDiskSleepWaitTimeRequest: SetDiskSleepWaitTimeRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>; | ||
}; | ||
@@ -1011,2 +1095,15 @@ /** | ||
/** | ||
* get how minutes to sleep a disk | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
getDiskSleepWaitTime(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetDiskSleepWaitTime200Response>>; | ||
/** | ||
* get disk sleep status | ||
* @param {string} [devicePath] Filter the results by path | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
getDiskStandbyStatus(devicePath?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetDiskStandbyStatus200Response>>; | ||
/** | ||
* Get a list of all disks, or a single disk by path. | ||
@@ -1019,2 +1116,9 @@ * @summary Get disks | ||
getDisks(free?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetDisks200Response>>; | ||
/** | ||
* set sleep disk time the value is 0-251, 1-240 is n * 5, 241 - 251 is n * 30 minutes 0 means never sleep 1 means sleep after 5 s 2 means sleep after 10 s 12 means sleep after 1 minute 241 means sleep after 30 minutes 242 means sleep after 1 hour | ||
* @param {SetDiskSleepWaitTimeRequest} setDiskSleepWaitTimeRequest | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
setDiskSleepWaitTime(setDiskSleepWaitTimeRequest: SetDiskSleepWaitTimeRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BaseResponse>>; | ||
}; | ||
@@ -1033,4 +1137,17 @@ /** | ||
*/ | ||
getDiskInfo(path?: string, options?: any): AxiosPromise<GetDiskInfo200Response>; | ||
getDiskInfo(path?: string, options?: RawAxiosRequestConfig): AxiosPromise<GetDiskInfo200Response>; | ||
/** | ||
* get how minutes to sleep a disk | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
getDiskSleepWaitTime(options?: RawAxiosRequestConfig): AxiosPromise<GetDiskSleepWaitTime200Response>; | ||
/** | ||
* get disk sleep status | ||
* @param {string} [devicePath] Filter the results by path | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
getDiskStandbyStatus(devicePath?: string, options?: RawAxiosRequestConfig): AxiosPromise<GetDiskStandbyStatus200Response>; | ||
/** | ||
* Get a list of all disks, or a single disk by path. | ||
@@ -1042,3 +1159,10 @@ * @summary Get disks | ||
*/ | ||
getDisks(free?: string, options?: any): AxiosPromise<GetDisks200Response>; | ||
getDisks(free?: string, options?: RawAxiosRequestConfig): AxiosPromise<GetDisks200Response>; | ||
/** | ||
* set sleep disk time the value is 0-251, 1-240 is n * 5, 241 - 251 is n * 30 minutes 0 means never sleep 1 means sleep after 5 s 2 means sleep after 10 s 12 means sleep after 1 minute 241 means sleep after 30 minutes 242 means sleep after 1 hour | ||
* @param {SetDiskSleepWaitTimeRequest} setDiskSleepWaitTimeRequest | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
setDiskSleepWaitTime(setDiskSleepWaitTimeRequest: SetDiskSleepWaitTimeRequest, options?: RawAxiosRequestConfig): AxiosPromise<BaseResponse>; | ||
}; | ||
@@ -1062,2 +1186,17 @@ /** | ||
/** | ||
* get how minutes to sleep a disk | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
* @memberof DiskMethodsApi | ||
*/ | ||
getDiskSleepWaitTime(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetDiskSleepWaitTime200Response, any>>; | ||
/** | ||
* get disk sleep status | ||
* @param {string} [devicePath] Filter the results by path | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
* @memberof DiskMethodsApi | ||
*/ | ||
getDiskStandbyStatus(devicePath?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetDiskStandbyStatus200Response, any>>; | ||
/** | ||
* Get a list of all disks, or a single disk by path. | ||
@@ -1071,2 +1210,10 @@ * @summary Get disks | ||
getDisks(free?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetDisks200Response, any>>; | ||
/** | ||
* set sleep disk time the value is 0-251, 1-240 is n * 5, 241 - 251 is n * 30 minutes 0 means never sleep 1 means sleep after 5 s 2 means sleep after 10 s 12 means sleep after 1 minute 241 means sleep after 30 minutes 242 means sleep after 1 hour | ||
* @param {SetDiskSleepWaitTimeRequest} setDiskSleepWaitTimeRequest | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
* @memberof DiskMethodsApi | ||
*/ | ||
setDiskSleepWaitTime(setDiskSleepWaitTimeRequest: SetDiskSleepWaitTimeRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<BaseResponse, any>>; | ||
} | ||
@@ -1158,3 +1305,3 @@ /** | ||
*/ | ||
getMergeInitStatus(options?: any): AxiosPromise<GetMergeInitStatus200Response>; | ||
getMergeInitStatus(options?: RawAxiosRequestConfig): AxiosPromise<GetMergeInitStatus200Response>; | ||
/** | ||
@@ -1167,3 +1314,3 @@ * (TODO) | ||
*/ | ||
getMerges(mountPoint?: string, options?: any): AxiosPromise<GetMerges200Response>; | ||
getMerges(mountPoint?: string, options?: RawAxiosRequestConfig): AxiosPromise<GetMerges200Response>; | ||
/** | ||
@@ -1176,3 +1323,3 @@ * (TODO) | ||
*/ | ||
initMerge(mountPoint: MountPoint, options?: any): AxiosPromise<GetMergeInitStatus200Response>; | ||
initMerge(mountPoint: MountPoint, options?: RawAxiosRequestConfig): AxiosPromise<GetMergeInitStatus200Response>; | ||
/** | ||
@@ -1185,3 +1332,3 @@ * (TODO) | ||
*/ | ||
setMerge(merge: Merge, options?: any): AxiosPromise<SetMerge200Response>; | ||
setMerge(merge: Merge, options?: RawAxiosRequestConfig): AxiosPromise<SetMerge200Response>; | ||
}; | ||
@@ -1330,3 +1477,3 @@ /** | ||
*/ | ||
getMounts(id?: string, mountPoint?: string, type?: string, source?: string, options?: any): AxiosPromise<GetMounts200Response>; | ||
getMounts(id?: string, mountPoint?: string, type?: string, source?: string, options?: RawAxiosRequestConfig): AxiosPromise<GetMounts200Response>; | ||
/** | ||
@@ -1339,3 +1486,3 @@ * (TODO) | ||
*/ | ||
mount(mount: Mount, options?: any): AxiosPromise<UpdateMount200Response>; | ||
mount(mount: Mount, options?: RawAxiosRequestConfig): AxiosPromise<UpdateMount200Response>; | ||
/** | ||
@@ -1348,3 +1495,3 @@ * (TODO) | ||
*/ | ||
umount(mountPoint: string, options?: any): AxiosPromise<BaseResponse>; | ||
umount(mountPoint: string, options?: RawAxiosRequestConfig): AxiosPromise<BaseResponse>; | ||
/** | ||
@@ -1358,3 +1505,3 @@ * Updating a mount volume is equivalent to unmounting the volume and mounting it again with the new parameters. | ||
*/ | ||
updateMount(mountPoint: string, mount: Mount, options?: any): AxiosPromise<UpdateMount200Response>; | ||
updateMount(mountPoint: string, mount: Mount, options?: RawAxiosRequestConfig): AxiosPromise<UpdateMount200Response>; | ||
}; | ||
@@ -1497,3 +1644,3 @@ /** | ||
*/ | ||
createRaid(raidBody: RaidBody, options?: any): AxiosPromise<Raid>; | ||
createRaid(raidBody: RaidBody, options?: RawAxiosRequestConfig): AxiosPromise<Raid>; | ||
/** | ||
@@ -1506,3 +1653,3 @@ * Delete a raid by path | ||
*/ | ||
deleteRaid(path: string, options?: any): AxiosPromise<BaseResponse>; | ||
deleteRaid(path: string, options?: RawAxiosRequestConfig): AxiosPromise<BaseResponse>; | ||
/** | ||
@@ -1515,3 +1662,3 @@ * Get a list of all raids, or a single raid by name. | ||
*/ | ||
getRaids(path?: string, options?: any): AxiosPromise<GetRaids200Response>; | ||
getRaids(path?: string, options?: RawAxiosRequestConfig): AxiosPromise<GetRaids200Response>; | ||
/** | ||
@@ -1524,3 +1671,3 @@ * Update raid-related configurations by name | ||
*/ | ||
updateRaid(putRaidBody: PutRaidBody, options?: any): AxiosPromise<Raid>; | ||
updateRaid(putRaidBody: PutRaidBody, options?: RawAxiosRequestConfig): AxiosPromise<Raid>; | ||
}; | ||
@@ -1659,3 +1806,3 @@ /** | ||
*/ | ||
createStorage(postStorageBody: PostStorageBody, options?: any): AxiosPromise<PostStorageBody>; | ||
createStorage(postStorageBody: PostStorageBody, options?: RawAxiosRequestConfig): AxiosPromise<PostStorageBody>; | ||
/** | ||
@@ -1668,3 +1815,3 @@ * Delete a storage by path | ||
*/ | ||
deleteStorage(path: string, options?: any): AxiosPromise<BaseResponse>; | ||
deleteStorage(path: string, options?: RawAxiosRequestConfig): AxiosPromise<BaseResponse>; | ||
/** | ||
@@ -1676,3 +1823,3 @@ * Get a list of all storage, or a single storage by path. | ||
*/ | ||
getAllStorages(options?: any): AxiosPromise<Array<StorageAggrgation>>; | ||
getAllStorages(options?: RawAxiosRequestConfig): AxiosPromise<Array<StorageAggrgation>>; | ||
/** | ||
@@ -1686,3 +1833,3 @@ * Get a list of all storage, or a single storage by path. | ||
*/ | ||
getStorage(system?: string, path?: string, options?: any): AxiosPromise<GetStorage200Response>; | ||
getStorage(system?: string, path?: string, options?: RawAxiosRequestConfig): AxiosPromise<GetStorage200Response>; | ||
}; | ||
@@ -1689,0 +1836,0 @@ /** |
{ | ||
"name": "@icewhale/zimaos-localstorage-openapi", | ||
"version": "v1.2.4-alpha1", | ||
"version": "v1.2.4-alpha13", | ||
"scripts": { | ||
"build": "rm -rf dist && tsc && rm -rf generate", | ||
"generate:local": "openapi-generator-cli generate -g typescript-axios -i ./api/local_storage/openapi.yaml -o ./generate", | ||
"generate:local_v1": "openapi-generator-cli generate -g typescript-axios -i ./api/local_storage/openapi_v1.yaml -o ./generate/v1", | ||
"generate:npx": "npx @openapitools/openapi-generator-cli generate -g typescript-axios -i ./api/local_storage/openapi.yaml -o ./generate", | ||
"generate:ts": "npx openapi-typescript-codegen --input ./api/local_storage/openapi.yaml --output ./generate", | ||
"start": "yarn generate:local && yarn build" | ||
"start": "yarn generate:local && yarn generate:local_v1 && yarn build" | ||
}, | ||
@@ -11,0 +12,0 @@ "homepage": "https://github.com/IceWhaleTech/ZimaOS-LocalStorage#readme", |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
277859
22
6664