@vates/types 1.7.0 → 1.9.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/common.d.mts +4 -0
- package/dist/lib/xen-orchestra-xapi.d.mts +16 -7
- package/dist/xo.d.mts +1 -1
- package/package.json +1 -1
package/dist/common.d.mts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { XoHost } from './xo.mjs';
|
|
1
2
|
declare const __brand: unique symbol;
|
|
2
3
|
export type Branded<TBrand extends string, TType = string> = TType & {
|
|
3
4
|
[__brand]: TBrand;
|
|
@@ -593,4 +594,7 @@ export type XapiVmStatsRaw = {
|
|
|
593
594
|
vbdAvgquSz?: RecordStatValues;
|
|
594
595
|
};
|
|
595
596
|
export type XapiVmStats = XapiStatsResponse<XapiVmStatsRaw>;
|
|
597
|
+
export type XapiPoolStats = Record<XoHost['id'], XapiHostStats | {
|
|
598
|
+
error: Record<string, unknown>;
|
|
599
|
+
}>;
|
|
596
600
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { WrappedXenApiRecord, XenApiNetworkWrapped, XenApiRecord, XenApiSr, XenApiVdi, XenApiVm, XenApiVmWrapped } from '../xen-api.mjs';
|
|
1
|
+
import { WrappedXenApiRecord, XenApiHost, XenApiNetworkWrapped, XenApiRecord, XenApiSr, XenApiTask, XenApiVdi, XenApiVm, XenApiVmWrapped } from '../xen-api.mjs';
|
|
2
2
|
import type { Readable } from 'node:stream';
|
|
3
3
|
import type { XoGpuGroup, XoVgpuType, XoHost, XoNetwork, XoPif, XoSr, XoUser, XoVdi, XoVm, XoVmTemplate } from '../xo.mjs';
|
|
4
|
-
type XcpPatches = {
|
|
4
|
+
export type XcpPatches = {
|
|
5
5
|
changelog?: {
|
|
6
6
|
author: string;
|
|
7
7
|
date: number;
|
|
@@ -15,7 +15,7 @@ type XcpPatches = {
|
|
|
15
15
|
url: string;
|
|
16
16
|
version: string;
|
|
17
17
|
};
|
|
18
|
-
type XsPatches = {
|
|
18
|
+
export type XsPatches = {
|
|
19
19
|
conflicts?: string[];
|
|
20
20
|
date: string;
|
|
21
21
|
description: string;
|
|
@@ -56,14 +56,17 @@ export interface Xapi {
|
|
|
56
56
|
/**
|
|
57
57
|
* if startOnly is true and the VM is not halted, throw VM_BAD_POWER_STATE
|
|
58
58
|
* otherwise, unpause/resume the VM
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
59
|
+
*
|
|
60
|
+
* @default false
|
|
61
|
+
*/
|
|
62
62
|
startOnly?: boolean;
|
|
63
63
|
}): Promise<void>;
|
|
64
64
|
VM_import(stream: Readable, srRef?: XenApiSr['$ref'], onVmCreation?: null | ((vm: XenApiVm) => unknown)): Promise<XenApiVm['$ref']>;
|
|
65
65
|
createVm(templateUuid: XoVmTemplate['uuid'], metadataVm: {
|
|
66
66
|
affinityHost?: XoHost['id'];
|
|
67
|
+
autoPoweron?: boolean;
|
|
68
|
+
memory?: number;
|
|
69
|
+
name_description?: string;
|
|
67
70
|
name_label: string;
|
|
68
71
|
nameLabel?: string;
|
|
69
72
|
clone?: boolean;
|
|
@@ -117,5 +120,11 @@ export interface Xapi {
|
|
|
117
120
|
bypassBlockedOperation?: boolean;
|
|
118
121
|
forceDeleteDefaultTemplate?: boolean;
|
|
119
122
|
}): Promise<void>;
|
|
123
|
+
getResource(pathname: string, params?: {
|
|
124
|
+
host?: XenApiHost;
|
|
125
|
+
query?: Record<string, unknown>;
|
|
126
|
+
task?: boolean | XenApiTask['$ref'];
|
|
127
|
+
}): Promise<{
|
|
128
|
+
body: Readable;
|
|
129
|
+
}>;
|
|
120
130
|
}
|
|
121
|
-
export {};
|
package/dist/xo.d.mts
CHANGED