@ovh-ux/manager-pci-common 0.13.0 → 0.14.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/CHANGELOG.md +16 -0
- package/dist/index.js +7442 -7423
- package/dist/index.js.map +1 -1
- package/dist/types/api/data/image.d.ts +17 -0
- package/dist/types/api/data/index.d.ts +2 -0
- package/dist/types/api/data/volume.d.ts +16 -0
- package/dist/types/api/hook/index.d.ts +2 -0
- package/dist/types/api/hook/useImage.d.ts +1 -0
- package/dist/types/api/hook/useVolume.d.ts +1 -0
- package/dist/types/components/quantity-selector/QuantitySelector.component.d.ts +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export type TImage = {
|
|
2
|
+
creationDate: string;
|
|
3
|
+
flavorType: string | null;
|
|
4
|
+
id: string;
|
|
5
|
+
minDisk: number;
|
|
6
|
+
minRam: number;
|
|
7
|
+
name: string;
|
|
8
|
+
planCode: string | null;
|
|
9
|
+
region: string;
|
|
10
|
+
size: number;
|
|
11
|
+
status: 'attaching' | 'available' | 'awaiting-transfer' | 'backing-up' | 'creating' | 'deleting' | 'detaching' | 'downloading' | 'error' | 'error_backing-up' | 'error_deleting' | 'error_extending' | 'error_restoring' | 'extending' | 'in-use' | 'maintenance' | 'reserved' | 'restoring-backup' | 'retyping' | 'uploading';
|
|
12
|
+
tags: string[];
|
|
13
|
+
type: 'classic' | 'classic-BETA' | 'high-speed' | 'high-speed-BETA' | 'high-speed-gen2';
|
|
14
|
+
user: string;
|
|
15
|
+
visibility: string;
|
|
16
|
+
};
|
|
17
|
+
export declare const getImages: (projectId: string) => Promise<TImage[]>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export type TVolume = {
|
|
2
|
+
id: string;
|
|
3
|
+
attachedTo: string[];
|
|
4
|
+
creationDate: string;
|
|
5
|
+
name: string;
|
|
6
|
+
description: string;
|
|
7
|
+
size: number;
|
|
8
|
+
status: string;
|
|
9
|
+
statusGroup: string;
|
|
10
|
+
region: string;
|
|
11
|
+
bootable: boolean;
|
|
12
|
+
planCode: string | null;
|
|
13
|
+
type: string;
|
|
14
|
+
regionName: string;
|
|
15
|
+
};
|
|
16
|
+
export declare const getVolumes: (projectId: string) => Promise<TVolume[]>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useImages: (projectId: string) => import("@tanstack/react-query").UseQueryResult<import("../data/image").TImage[], Error>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useVolumes: (projectId: string) => import("@tanstack/react-query").UseQueryResult<import("../data/volume").TVolume[], Error>;
|
|
@@ -9,4 +9,4 @@ export interface QuantitySelectorProps {
|
|
|
9
9
|
className?: string;
|
|
10
10
|
contentClassName?: string;
|
|
11
11
|
}
|
|
12
|
-
export declare function QuantitySelector({ label, labelHelpText, description, value, onValueChange, min, max, className, contentClassName, }: Readonly<QuantitySelectorProps>): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare function QuantitySelector({ label, labelHelpText, description, value, onValueChange, min, max, className, contentClassName, ...props }: Readonly<QuantitySelectorProps>): import("react/jsx-runtime").JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ovh-ux/manager-pci-common",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Public Cloud Common components",
|
|
6
6
|
"homepage": "https://github.com/ovh/manager/blob/master/packages/manager/modules/manager-pci-common/README.md",
|