@ovh-ux/manager-pci-common 2.3.3 → 2.4.1
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 +21 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +2034 -2032
- package/dist/index.esm.js.map +1 -1
- package/dist/types/api/hook/index.d.ts +1 -0
- package/dist/types/api/hook/useApiSchema.d.ts +1 -1
- package/dist/types/api/hook/useAvailability.d.ts +1 -1
- package/dist/types/api/hook/useCatalog.d.ts +1 -1
- package/dist/types/api/hook/useDbaasLogs.d.ts +22 -22
- package/dist/types/api/hook/useFlavors.d.ts +2 -2
- package/dist/types/api/hook/useImage.d.ts +1 -1
- package/dist/types/api/hook/useInstance.d.ts +2 -2
- package/dist/types/api/hook/useLogs.d.ts +12 -12
- package/dist/types/api/hook/useProject.d.ts +10 -10
- package/dist/types/api/hook/useRegions.d.ts +29 -29
- package/dist/types/api/hook/useVolume.d.ts +1 -1
- package/dist/types/components/region-selector/RegionList.component.d.ts +0 -1
- package/dist/types/components/region-selector/RegionSelector.component.d.ts +0 -1
- package/dist/types/components/region-selector/style.constants.d.ts +1 -1
- package/dist/types/components/region-selector/useRegionSelector.d.ts +10 -10
- package/dist/types/components/region-selector/useRegions.d.ts +2 -2
- package/dist/types/components/shape-input/ShapeInput.component.d.ts +0 -1
- package/dist/types/components/tabs-panel/TabsPanel.component.d.ts +0 -1
- package/dist/types/components/tiles-input-choice/TilesInputChoice.component.d.ts +0 -1
- package/dist/types/wrapperRenders.d.ts +1 -1
- package/package.json +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const useGetApiSchema: () => import("@tanstack/react-query
|
|
1
|
+
export declare const useGetApiSchema: () => import("@tanstack/react-query").UseQueryResult<import("../data/api-schema").TApiSchemaResponse, Error>;
|
|
@@ -3,7 +3,7 @@ export declare const getProductAvailabilityQuery: (projectId: string, ovhSubsidi
|
|
|
3
3
|
queryKey: (string | ProductAvailabilityFilter)[];
|
|
4
4
|
queryFn: () => Promise<import("../data/availability").TProductAvailability>;
|
|
5
5
|
};
|
|
6
|
-
export declare const useProductAvailability: (projectId: string, filter?: ProductAvailabilityFilter) => import("@tanstack/react-query
|
|
6
|
+
export declare const useProductAvailability: (projectId: string, filter?: ProductAvailabilityFilter) => import("@tanstack/react-query").UseQueryResult<import("../data/availability").TProductAvailability, Error>;
|
|
7
7
|
export declare const useRefreshProductAvailability: (projectId: string, ovhSubsidiary: string, filter?: ProductAvailabilityFilter) => {
|
|
8
8
|
refresh: () => Promise<void>;
|
|
9
9
|
};
|
|
@@ -5,4 +5,4 @@ export declare const getCatalogQuery: ({ ovhSubsidiary, productName, }: {
|
|
|
5
5
|
queryKey: string[];
|
|
6
6
|
queryFn: () => Promise<import("../data/catalog").TCatalog>;
|
|
7
7
|
};
|
|
8
|
-
export declare const useCatalog: (productName?: string) => import("@tanstack/react-query
|
|
8
|
+
export declare const useCatalog: (productName?: string) => import("@tanstack/react-query").UseQueryResult<import("../data/catalog").TCatalog, Error>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Filter } from '@ovh-ux/manager-core-api';
|
|
2
2
|
import { PaginationState } from '@ovh-ux/manager-react-components';
|
|
3
|
-
export declare const useLogs: () => import("@tanstack/react-query
|
|
4
|
-
export declare const useStream: (serviceName: string, streamId: string) => import("@tanstack/react-query
|
|
5
|
-
export declare const useStreams: (serviceName: string, pagination: PaginationState, filters: Filter[]) => import("@tanstack/react-query
|
|
3
|
+
export declare const useLogs: () => import("@tanstack/react-query").UseQueryResult<import("../data/dbaas-logs").TDbaasLog[], Error>;
|
|
4
|
+
export declare const useStream: (serviceName: string, streamId: string) => import("@tanstack/react-query").UseQueryResult<import("../data/dbaas-logs").TDbaasStream, Error>;
|
|
5
|
+
export declare const useStreams: (serviceName: string, pagination: PaginationState, filters: Filter[]) => import("@tanstack/react-query").UseQueryResult<{
|
|
6
6
|
data: import("../data/dbaas-logs").TDbaasStream[];
|
|
7
7
|
totalCount: number;
|
|
8
8
|
}, Error>;
|
|
@@ -10,9 +10,9 @@ export declare const useAllStreamIds: () => {
|
|
|
10
10
|
data: import("../data/dbaas-logs").TDbaasStream[];
|
|
11
11
|
isPending: boolean;
|
|
12
12
|
};
|
|
13
|
-
export declare const useStreamURL: (serviceName: string, streamId: string) => import("@tanstack/react-query
|
|
14
|
-
export declare const useRetention: (serviceName: string, clusterId: string, retentionId: string) => import("@tanstack/react-query
|
|
15
|
-
export declare const useSubscriptions: (serviceName: string, streamId: string) => import("@tanstack/react-query
|
|
13
|
+
export declare const useStreamURL: (serviceName: string, streamId: string) => import("@tanstack/react-query").UseQueryResult<import("../data/dbaas-logs").TStreamURL[], Error>;
|
|
14
|
+
export declare const useRetention: (serviceName: string, clusterId: string, retentionId: string) => import("@tanstack/react-query").UseQueryResult<import("../data/dbaas-logs").TRetention, Error>;
|
|
15
|
+
export declare const useSubscriptions: (serviceName: string, streamId: string) => import("@tanstack/react-query").UseQueryResult<import("../data/dbaas-logs").TSubscription[], Error>;
|
|
16
16
|
export interface CreateSubscriptionProps {
|
|
17
17
|
logsApiURL: string;
|
|
18
18
|
logsKind: string;
|
|
@@ -33,14 +33,14 @@ export declare const useCreateSubscription: ({ logsApiURL, logsKind, streamId, o
|
|
|
33
33
|
isPending: false;
|
|
34
34
|
isSuccess: false;
|
|
35
35
|
status: "idle";
|
|
36
|
-
mutate: import("@tanstack/react-query
|
|
36
|
+
mutate: import("@tanstack/react-query").UseMutateFunction<unknown, Error, void, unknown>;
|
|
37
37
|
reset: () => void;
|
|
38
38
|
context: unknown;
|
|
39
39
|
failureCount: number;
|
|
40
40
|
failureReason: Error;
|
|
41
41
|
isPaused: boolean;
|
|
42
42
|
submittedAt: number;
|
|
43
|
-
mutateAsync: import("@tanstack/react-query
|
|
43
|
+
mutateAsync: import("@tanstack/react-query").UseMutateAsyncFunction<unknown, Error, void, unknown>;
|
|
44
44
|
create: () => void;
|
|
45
45
|
} | {
|
|
46
46
|
data: undefined;
|
|
@@ -51,14 +51,14 @@ export declare const useCreateSubscription: ({ logsApiURL, logsKind, streamId, o
|
|
|
51
51
|
isPending: true;
|
|
52
52
|
isSuccess: false;
|
|
53
53
|
status: "pending";
|
|
54
|
-
mutate: import("@tanstack/react-query
|
|
54
|
+
mutate: import("@tanstack/react-query").UseMutateFunction<unknown, Error, void, unknown>;
|
|
55
55
|
reset: () => void;
|
|
56
56
|
context: unknown;
|
|
57
57
|
failureCount: number;
|
|
58
58
|
failureReason: Error;
|
|
59
59
|
isPaused: boolean;
|
|
60
60
|
submittedAt: number;
|
|
61
|
-
mutateAsync: import("@tanstack/react-query
|
|
61
|
+
mutateAsync: import("@tanstack/react-query").UseMutateAsyncFunction<unknown, Error, void, unknown>;
|
|
62
62
|
create: () => void;
|
|
63
63
|
} | {
|
|
64
64
|
data: undefined;
|
|
@@ -69,14 +69,14 @@ export declare const useCreateSubscription: ({ logsApiURL, logsKind, streamId, o
|
|
|
69
69
|
isPending: false;
|
|
70
70
|
isSuccess: false;
|
|
71
71
|
status: "error";
|
|
72
|
-
mutate: import("@tanstack/react-query
|
|
72
|
+
mutate: import("@tanstack/react-query").UseMutateFunction<unknown, Error, void, unknown>;
|
|
73
73
|
reset: () => void;
|
|
74
74
|
context: unknown;
|
|
75
75
|
failureCount: number;
|
|
76
76
|
failureReason: Error;
|
|
77
77
|
isPaused: boolean;
|
|
78
78
|
submittedAt: number;
|
|
79
|
-
mutateAsync: import("@tanstack/react-query
|
|
79
|
+
mutateAsync: import("@tanstack/react-query").UseMutateAsyncFunction<unknown, Error, void, unknown>;
|
|
80
80
|
create: () => void;
|
|
81
81
|
} | {
|
|
82
82
|
data: unknown;
|
|
@@ -87,14 +87,14 @@ export declare const useCreateSubscription: ({ logsApiURL, logsKind, streamId, o
|
|
|
87
87
|
isPending: false;
|
|
88
88
|
isSuccess: true;
|
|
89
89
|
status: "success";
|
|
90
|
-
mutate: import("@tanstack/react-query
|
|
90
|
+
mutate: import("@tanstack/react-query").UseMutateFunction<unknown, Error, void, unknown>;
|
|
91
91
|
reset: () => void;
|
|
92
92
|
context: unknown;
|
|
93
93
|
failureCount: number;
|
|
94
94
|
failureReason: Error;
|
|
95
95
|
isPaused: boolean;
|
|
96
96
|
submittedAt: number;
|
|
97
|
-
mutateAsync: import("@tanstack/react-query
|
|
97
|
+
mutateAsync: import("@tanstack/react-query").UseMutateAsyncFunction<unknown, Error, void, unknown>;
|
|
98
98
|
create: () => void;
|
|
99
99
|
};
|
|
100
100
|
export interface RemoveSubscriptionProps {
|
|
@@ -111,14 +111,14 @@ export declare const useRemoveSubscription: ({ logsApiURL, onError, onSuccess, }
|
|
|
111
111
|
isPending: false;
|
|
112
112
|
isSuccess: false;
|
|
113
113
|
status: "idle";
|
|
114
|
-
mutate: import("@tanstack/react-query
|
|
114
|
+
mutate: import("@tanstack/react-query").UseMutateFunction<unknown, Error, string, unknown>;
|
|
115
115
|
reset: () => void;
|
|
116
116
|
context: unknown;
|
|
117
117
|
failureCount: number;
|
|
118
118
|
failureReason: Error;
|
|
119
119
|
isPaused: boolean;
|
|
120
120
|
submittedAt: number;
|
|
121
|
-
mutateAsync: import("@tanstack/react-query
|
|
121
|
+
mutateAsync: import("@tanstack/react-query").UseMutateAsyncFunction<unknown, Error, string, unknown>;
|
|
122
122
|
remove: (id: string) => void;
|
|
123
123
|
} | {
|
|
124
124
|
data: undefined;
|
|
@@ -129,14 +129,14 @@ export declare const useRemoveSubscription: ({ logsApiURL, onError, onSuccess, }
|
|
|
129
129
|
isPending: true;
|
|
130
130
|
isSuccess: false;
|
|
131
131
|
status: "pending";
|
|
132
|
-
mutate: import("@tanstack/react-query
|
|
132
|
+
mutate: import("@tanstack/react-query").UseMutateFunction<unknown, Error, string, unknown>;
|
|
133
133
|
reset: () => void;
|
|
134
134
|
context: unknown;
|
|
135
135
|
failureCount: number;
|
|
136
136
|
failureReason: Error;
|
|
137
137
|
isPaused: boolean;
|
|
138
138
|
submittedAt: number;
|
|
139
|
-
mutateAsync: import("@tanstack/react-query
|
|
139
|
+
mutateAsync: import("@tanstack/react-query").UseMutateAsyncFunction<unknown, Error, string, unknown>;
|
|
140
140
|
remove: (id: string) => void;
|
|
141
141
|
} | {
|
|
142
142
|
data: undefined;
|
|
@@ -147,14 +147,14 @@ export declare const useRemoveSubscription: ({ logsApiURL, onError, onSuccess, }
|
|
|
147
147
|
isPending: false;
|
|
148
148
|
isSuccess: false;
|
|
149
149
|
status: "error";
|
|
150
|
-
mutate: import("@tanstack/react-query
|
|
150
|
+
mutate: import("@tanstack/react-query").UseMutateFunction<unknown, Error, string, unknown>;
|
|
151
151
|
reset: () => void;
|
|
152
152
|
context: unknown;
|
|
153
153
|
failureCount: number;
|
|
154
154
|
failureReason: Error;
|
|
155
155
|
isPaused: boolean;
|
|
156
156
|
submittedAt: number;
|
|
157
|
-
mutateAsync: import("@tanstack/react-query
|
|
157
|
+
mutateAsync: import("@tanstack/react-query").UseMutateAsyncFunction<unknown, Error, string, unknown>;
|
|
158
158
|
remove: (id: string) => void;
|
|
159
159
|
} | {
|
|
160
160
|
data: unknown;
|
|
@@ -165,13 +165,13 @@ export declare const useRemoveSubscription: ({ logsApiURL, onError, onSuccess, }
|
|
|
165
165
|
isPending: false;
|
|
166
166
|
isSuccess: true;
|
|
167
167
|
status: "success";
|
|
168
|
-
mutate: import("@tanstack/react-query
|
|
168
|
+
mutate: import("@tanstack/react-query").UseMutateFunction<unknown, Error, string, unknown>;
|
|
169
169
|
reset: () => void;
|
|
170
170
|
context: unknown;
|
|
171
171
|
failureCount: number;
|
|
172
172
|
failureReason: Error;
|
|
173
173
|
isPaused: boolean;
|
|
174
174
|
submittedAt: number;
|
|
175
|
-
mutateAsync: import("@tanstack/react-query
|
|
175
|
+
mutateAsync: import("@tanstack/react-query").UseMutateAsyncFunction<unknown, Error, string, unknown>;
|
|
176
176
|
remove: (id: string) => void;
|
|
177
177
|
};
|
|
@@ -22,9 +22,9 @@ export declare const KUBE_FLAVOR_CATEGORIES: ({
|
|
|
22
22
|
isNew: boolean;
|
|
23
23
|
})[];
|
|
24
24
|
export declare const getFlavorsQueryKey: (projectId: string, region: string) => string[];
|
|
25
|
-
export declare const useFlavors: (projectId: string, region: string) => import("@tanstack/react-query
|
|
25
|
+
export declare const useFlavors: (projectId: string, region: string) => import("@tanstack/react-query").UseQueryResult<TFlavor[], Error>;
|
|
26
26
|
export declare const getKubeFlavorsQueryKey: (projectId: string, region: string) => string[];
|
|
27
|
-
export declare const useKubeFlavors: (projectId: string, region: string) => import("@tanstack/react-query
|
|
27
|
+
export declare const useKubeFlavors: (projectId: string, region: string) => import("@tanstack/react-query").UseQueryResult<import("../data").TKubeFlavor[], Error>;
|
|
28
28
|
export declare const hasEnoughQuota: (flavor: TFlavor, quota: TQuota) => boolean;
|
|
29
29
|
export declare const useMergedKubeFlavors: (projectId: string, region: string) => {
|
|
30
30
|
mergedFlavors: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const useImages: (projectId: string) => import("@tanstack/react-query
|
|
1
|
+
export declare const useImages: (projectId: string) => import("@tanstack/react-query").UseQueryResult<import("../data/image").TImage[], Error>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export declare const useInstance: (projectId: string, instanceId: string) => import("@tanstack/react-query
|
|
1
|
+
export declare const useInstance: (projectId: string, instanceId: string) => import("@tanstack/react-query").UseQueryResult<import("../data/instance").TInstance, Error>;
|
|
2
2
|
export declare const getInstancesQuery: (projectId: string, region?: string) => {
|
|
3
3
|
queryKey: string[];
|
|
4
4
|
queryFn: () => Promise<import("../data/instance").TInstance[]>;
|
|
5
5
|
};
|
|
6
|
-
export declare const useInstances: (projectId: string, region?: string) => import("@tanstack/react-query
|
|
6
|
+
export declare const useInstances: (projectId: string, region?: string) => import("@tanstack/react-query").UseQueryResult<import("../data/instance").TInstance[], Error>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Filter } from '@ovh-ux/manager-core-api';
|
|
2
2
|
import { PaginationState } from '@ovh-ux/manager-react-components';
|
|
3
3
|
import { TSubscription } from '../data/dbaas-logs';
|
|
4
|
-
export declare const useDbaasLogs: () => import("@tanstack/react-query
|
|
5
|
-
export declare const useStream: (serviceName: string, streamId: string) => import("@tanstack/react-query
|
|
6
|
-
export declare const useStreams: (serviceName: string, pagination: PaginationState, filters: Filter[]) => import("@tanstack/react-query
|
|
4
|
+
export declare const useDbaasLogs: () => import("@tanstack/react-query").UseQueryResult<import("../data/logs").TDbaasLog[], Error>;
|
|
5
|
+
export declare const useStream: (serviceName: string, streamId: string) => import("@tanstack/react-query").UseQueryResult<import("../data/logs").TDbaasStream, Error>;
|
|
6
|
+
export declare const useStreams: (serviceName: string, pagination: PaginationState, filters: Filter[]) => import("@tanstack/react-query").UseQueryResult<{
|
|
7
7
|
data: import("../data/logs").TDbaasStream[];
|
|
8
8
|
totalCount: number;
|
|
9
9
|
}, Error>;
|
|
@@ -31,14 +31,14 @@ export declare const useRemoveSubscription: ({ logsApiURL, subscriptionId, onErr
|
|
|
31
31
|
isPending: false;
|
|
32
32
|
isSuccess: false;
|
|
33
33
|
status: "idle";
|
|
34
|
-
mutate: import("@tanstack/react-query
|
|
34
|
+
mutate: import("@tanstack/react-query").UseMutateFunction<unknown, Error, void, unknown>;
|
|
35
35
|
reset: () => void;
|
|
36
36
|
context: unknown;
|
|
37
37
|
failureCount: number;
|
|
38
38
|
failureReason: Error;
|
|
39
39
|
isPaused: boolean;
|
|
40
40
|
submittedAt: number;
|
|
41
|
-
mutateAsync: import("@tanstack/react-query
|
|
41
|
+
mutateAsync: import("@tanstack/react-query").UseMutateAsyncFunction<unknown, Error, void, unknown>;
|
|
42
42
|
remove: () => void;
|
|
43
43
|
} | {
|
|
44
44
|
data: undefined;
|
|
@@ -49,14 +49,14 @@ export declare const useRemoveSubscription: ({ logsApiURL, subscriptionId, onErr
|
|
|
49
49
|
isPending: true;
|
|
50
50
|
isSuccess: false;
|
|
51
51
|
status: "pending";
|
|
52
|
-
mutate: import("@tanstack/react-query
|
|
52
|
+
mutate: import("@tanstack/react-query").UseMutateFunction<unknown, Error, void, unknown>;
|
|
53
53
|
reset: () => void;
|
|
54
54
|
context: unknown;
|
|
55
55
|
failureCount: number;
|
|
56
56
|
failureReason: Error;
|
|
57
57
|
isPaused: boolean;
|
|
58
58
|
submittedAt: number;
|
|
59
|
-
mutateAsync: import("@tanstack/react-query
|
|
59
|
+
mutateAsync: import("@tanstack/react-query").UseMutateAsyncFunction<unknown, Error, void, unknown>;
|
|
60
60
|
remove: () => void;
|
|
61
61
|
} | {
|
|
62
62
|
data: undefined;
|
|
@@ -67,14 +67,14 @@ export declare const useRemoveSubscription: ({ logsApiURL, subscriptionId, onErr
|
|
|
67
67
|
isPending: false;
|
|
68
68
|
isSuccess: false;
|
|
69
69
|
status: "error";
|
|
70
|
-
mutate: import("@tanstack/react-query
|
|
70
|
+
mutate: import("@tanstack/react-query").UseMutateFunction<unknown, Error, void, unknown>;
|
|
71
71
|
reset: () => void;
|
|
72
72
|
context: unknown;
|
|
73
73
|
failureCount: number;
|
|
74
74
|
failureReason: Error;
|
|
75
75
|
isPaused: boolean;
|
|
76
76
|
submittedAt: number;
|
|
77
|
-
mutateAsync: import("@tanstack/react-query
|
|
77
|
+
mutateAsync: import("@tanstack/react-query").UseMutateAsyncFunction<unknown, Error, void, unknown>;
|
|
78
78
|
remove: () => void;
|
|
79
79
|
} | {
|
|
80
80
|
data: unknown;
|
|
@@ -85,17 +85,17 @@ export declare const useRemoveSubscription: ({ logsApiURL, subscriptionId, onErr
|
|
|
85
85
|
isPending: false;
|
|
86
86
|
isSuccess: true;
|
|
87
87
|
status: "success";
|
|
88
|
-
mutate: import("@tanstack/react-query
|
|
88
|
+
mutate: import("@tanstack/react-query").UseMutateFunction<unknown, Error, void, unknown>;
|
|
89
89
|
reset: () => void;
|
|
90
90
|
context: unknown;
|
|
91
91
|
failureCount: number;
|
|
92
92
|
failureReason: Error;
|
|
93
93
|
isPaused: boolean;
|
|
94
94
|
submittedAt: number;
|
|
95
|
-
mutateAsync: import("@tanstack/react-query
|
|
95
|
+
mutateAsync: import("@tanstack/react-query").UseMutateAsyncFunction<unknown, Error, void, unknown>;
|
|
96
96
|
remove: () => void;
|
|
97
97
|
};
|
|
98
|
-
export declare const useSubscribedLogs: (logsApiURL: string, kind: string) => import("@tanstack/react-query
|
|
98
|
+
export declare const useSubscribedLogs: (logsApiURL: string, kind: string) => import("@tanstack/react-query").UseQueryResult<TSubscription[], Error>;
|
|
99
99
|
export declare const useLogsDetails: (logsApiURL: string, logsKind: string) => {
|
|
100
100
|
data: {
|
|
101
101
|
data: import("../data/logs").TDbaasLog;
|
|
@@ -20,7 +20,7 @@ export declare const getProjectQuery: (projectId: string) => {
|
|
|
20
20
|
queryKey: string[];
|
|
21
21
|
queryFn: () => Promise<TProject>;
|
|
22
22
|
};
|
|
23
|
-
export declare const useProject: (projectId?: string, options?: QueryOptions<TProject, ResponseAPIError>) => import("@tanstack/react-query
|
|
23
|
+
export declare const useProject: (projectId?: string, options?: QueryOptions<TProject, ResponseAPIError>) => import("@tanstack/react-query").UseQueryResult<TProject, ResponseAPIError>;
|
|
24
24
|
export interface UpdateProjectProps {
|
|
25
25
|
projectId: string;
|
|
26
26
|
onError: (cause: Error) => void;
|
|
@@ -35,14 +35,14 @@ export declare const useUpdateProject: ({ projectId, onError, onSuccess, }: Upda
|
|
|
35
35
|
isPending: false;
|
|
36
36
|
isSuccess: false;
|
|
37
37
|
status: "idle";
|
|
38
|
-
mutate: import("@tanstack/react-query
|
|
38
|
+
mutate: import("@tanstack/react-query").UseMutateFunction<void, Error, TProjectUpdate, unknown>;
|
|
39
39
|
reset: () => void;
|
|
40
40
|
context: unknown;
|
|
41
41
|
failureCount: number;
|
|
42
42
|
failureReason: Error;
|
|
43
43
|
isPaused: boolean;
|
|
44
44
|
submittedAt: number;
|
|
45
|
-
mutateAsync: import("@tanstack/react-query
|
|
45
|
+
mutateAsync: import("@tanstack/react-query").UseMutateAsyncFunction<void, Error, TProjectUpdate, unknown>;
|
|
46
46
|
update: (changes: TProjectUpdate) => void;
|
|
47
47
|
} | {
|
|
48
48
|
data: undefined;
|
|
@@ -53,14 +53,14 @@ export declare const useUpdateProject: ({ projectId, onError, onSuccess, }: Upda
|
|
|
53
53
|
isPending: true;
|
|
54
54
|
isSuccess: false;
|
|
55
55
|
status: "pending";
|
|
56
|
-
mutate: import("@tanstack/react-query
|
|
56
|
+
mutate: import("@tanstack/react-query").UseMutateFunction<void, Error, TProjectUpdate, unknown>;
|
|
57
57
|
reset: () => void;
|
|
58
58
|
context: unknown;
|
|
59
59
|
failureCount: number;
|
|
60
60
|
failureReason: Error;
|
|
61
61
|
isPaused: boolean;
|
|
62
62
|
submittedAt: number;
|
|
63
|
-
mutateAsync: import("@tanstack/react-query
|
|
63
|
+
mutateAsync: import("@tanstack/react-query").UseMutateAsyncFunction<void, Error, TProjectUpdate, unknown>;
|
|
64
64
|
update: (changes: TProjectUpdate) => void;
|
|
65
65
|
} | {
|
|
66
66
|
data: undefined;
|
|
@@ -71,14 +71,14 @@ export declare const useUpdateProject: ({ projectId, onError, onSuccess, }: Upda
|
|
|
71
71
|
isPending: false;
|
|
72
72
|
isSuccess: false;
|
|
73
73
|
status: "error";
|
|
74
|
-
mutate: import("@tanstack/react-query
|
|
74
|
+
mutate: import("@tanstack/react-query").UseMutateFunction<void, Error, TProjectUpdate, unknown>;
|
|
75
75
|
reset: () => void;
|
|
76
76
|
context: unknown;
|
|
77
77
|
failureCount: number;
|
|
78
78
|
failureReason: Error;
|
|
79
79
|
isPaused: boolean;
|
|
80
80
|
submittedAt: number;
|
|
81
|
-
mutateAsync: import("@tanstack/react-query
|
|
81
|
+
mutateAsync: import("@tanstack/react-query").UseMutateAsyncFunction<void, Error, TProjectUpdate, unknown>;
|
|
82
82
|
update: (changes: TProjectUpdate) => void;
|
|
83
83
|
} | {
|
|
84
84
|
data: void;
|
|
@@ -89,14 +89,14 @@ export declare const useUpdateProject: ({ projectId, onError, onSuccess, }: Upda
|
|
|
89
89
|
isPending: false;
|
|
90
90
|
isSuccess: true;
|
|
91
91
|
status: "success";
|
|
92
|
-
mutate: import("@tanstack/react-query
|
|
92
|
+
mutate: import("@tanstack/react-query").UseMutateFunction<void, Error, TProjectUpdate, unknown>;
|
|
93
93
|
reset: () => void;
|
|
94
94
|
context: unknown;
|
|
95
95
|
failureCount: number;
|
|
96
96
|
failureReason: Error;
|
|
97
97
|
isPaused: boolean;
|
|
98
98
|
submittedAt: number;
|
|
99
|
-
mutateAsync: import("@tanstack/react-query
|
|
99
|
+
mutateAsync: import("@tanstack/react-query").UseMutateAsyncFunction<void, Error, TProjectUpdate, unknown>;
|
|
100
100
|
update: (changes: TProjectUpdate) => void;
|
|
101
101
|
};
|
|
102
102
|
export declare const getProjectQuotaQuery: (projectId: string) => {
|
|
@@ -105,4 +105,4 @@ export declare const getProjectQuotaQuery: (projectId: string) => {
|
|
|
105
105
|
};
|
|
106
106
|
export declare const useProjectQuota: (projectId?: string, filter?: {
|
|
107
107
|
region: string;
|
|
108
|
-
}, options?: QueryOptions<TQuota[], ResponseAPIError>) => import("@tanstack/react-query
|
|
108
|
+
}, options?: QueryOptions<TQuota[], ResponseAPIError>) => import("@tanstack/react-query").UseQueryResult<TQuota[], ResponseAPIError>;
|
|
@@ -2,7 +2,7 @@ export declare const useGetProjectRegionsQuery: (projectId: string) => {
|
|
|
2
2
|
queryKey: string[];
|
|
3
3
|
queryFn: () => Promise<import("../data/regions").TRegion[]>;
|
|
4
4
|
};
|
|
5
|
-
export declare const useGetProjectRegions: (projectId: string) => import("@tanstack/react-query
|
|
5
|
+
export declare const useGetProjectRegions: (projectId: string) => import("@tanstack/react-query").UseQueryResult<import("../data/regions").TRegion[], Error>;
|
|
6
6
|
export declare const useStorageRegions: ({ projectId, isS3Storage, }: {
|
|
7
7
|
projectId: string;
|
|
8
8
|
isS3Storage?: boolean;
|
|
@@ -29,8 +29,8 @@ export declare const useStorageRegions: ({ projectId, isS3Storage, }: {
|
|
|
29
29
|
isPlaceholderData: boolean;
|
|
30
30
|
isRefetching: boolean;
|
|
31
31
|
isStale: boolean;
|
|
32
|
-
refetch: (options?: import("@tanstack/query
|
|
33
|
-
fetchStatus: import("@tanstack/query
|
|
32
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("../data/regions").TRegion[], Error>>;
|
|
33
|
+
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
34
34
|
} | {
|
|
35
35
|
data: import("../data/regions").TRegion[];
|
|
36
36
|
error: null;
|
|
@@ -54,8 +54,8 @@ export declare const useStorageRegions: ({ projectId, isS3Storage, }: {
|
|
|
54
54
|
isPlaceholderData: boolean;
|
|
55
55
|
isRefetching: boolean;
|
|
56
56
|
isStale: boolean;
|
|
57
|
-
refetch: (options?: import("@tanstack/query
|
|
58
|
-
fetchStatus: import("@tanstack/query
|
|
57
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("../data/regions").TRegion[], Error>>;
|
|
58
|
+
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
59
59
|
} | {
|
|
60
60
|
data: import("../data/regions").TRegion[];
|
|
61
61
|
error: Error;
|
|
@@ -79,8 +79,8 @@ export declare const useStorageRegions: ({ projectId, isS3Storage, }: {
|
|
|
79
79
|
isPlaceholderData: boolean;
|
|
80
80
|
isRefetching: boolean;
|
|
81
81
|
isStale: boolean;
|
|
82
|
-
refetch: (options?: import("@tanstack/query
|
|
83
|
-
fetchStatus: import("@tanstack/query
|
|
82
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("../data/regions").TRegion[], Error>>;
|
|
83
|
+
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
84
84
|
} | {
|
|
85
85
|
data: import("../data/regions").TRegion[];
|
|
86
86
|
error: null;
|
|
@@ -104,8 +104,8 @@ export declare const useStorageRegions: ({ projectId, isS3Storage, }: {
|
|
|
104
104
|
isPlaceholderData: boolean;
|
|
105
105
|
isRefetching: boolean;
|
|
106
106
|
isStale: boolean;
|
|
107
|
-
refetch: (options?: import("@tanstack/query
|
|
108
|
-
fetchStatus: import("@tanstack/query
|
|
107
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("../data/regions").TRegion[], Error>>;
|
|
108
|
+
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
109
109
|
} | {
|
|
110
110
|
data: import("../data/regions").TRegion[];
|
|
111
111
|
error: null;
|
|
@@ -129,8 +129,8 @@ export declare const useStorageRegions: ({ projectId, isS3Storage, }: {
|
|
|
129
129
|
isPlaceholderData: boolean;
|
|
130
130
|
isRefetching: boolean;
|
|
131
131
|
isStale: boolean;
|
|
132
|
-
refetch: (options?: import("@tanstack/query
|
|
133
|
-
fetchStatus: import("@tanstack/query
|
|
132
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("../data/regions").TRegion[], Error>>;
|
|
133
|
+
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
134
134
|
};
|
|
135
135
|
export declare const useS3StorageRegions: (projectId: string) => {
|
|
136
136
|
data: import("../data/regions").TRegion[];
|
|
@@ -155,8 +155,8 @@ export declare const useS3StorageRegions: (projectId: string) => {
|
|
|
155
155
|
isPlaceholderData: boolean;
|
|
156
156
|
isRefetching: boolean;
|
|
157
157
|
isStale: boolean;
|
|
158
|
-
refetch: (options?: import("@tanstack/query
|
|
159
|
-
fetchStatus: import("@tanstack/query
|
|
158
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("../data/regions").TRegion[], Error>>;
|
|
159
|
+
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
160
160
|
} | {
|
|
161
161
|
data: import("../data/regions").TRegion[];
|
|
162
162
|
error: null;
|
|
@@ -180,8 +180,8 @@ export declare const useS3StorageRegions: (projectId: string) => {
|
|
|
180
180
|
isPlaceholderData: boolean;
|
|
181
181
|
isRefetching: boolean;
|
|
182
182
|
isStale: boolean;
|
|
183
|
-
refetch: (options?: import("@tanstack/query
|
|
184
|
-
fetchStatus: import("@tanstack/query
|
|
183
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("../data/regions").TRegion[], Error>>;
|
|
184
|
+
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
185
185
|
} | {
|
|
186
186
|
data: import("../data/regions").TRegion[];
|
|
187
187
|
error: Error;
|
|
@@ -205,8 +205,8 @@ export declare const useS3StorageRegions: (projectId: string) => {
|
|
|
205
205
|
isPlaceholderData: boolean;
|
|
206
206
|
isRefetching: boolean;
|
|
207
207
|
isStale: boolean;
|
|
208
|
-
refetch: (options?: import("@tanstack/query
|
|
209
|
-
fetchStatus: import("@tanstack/query
|
|
208
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("../data/regions").TRegion[], Error>>;
|
|
209
|
+
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
210
210
|
} | {
|
|
211
211
|
data: import("../data/regions").TRegion[];
|
|
212
212
|
error: null;
|
|
@@ -230,8 +230,8 @@ export declare const useS3StorageRegions: (projectId: string) => {
|
|
|
230
230
|
isPlaceholderData: boolean;
|
|
231
231
|
isRefetching: boolean;
|
|
232
232
|
isStale: boolean;
|
|
233
|
-
refetch: (options?: import("@tanstack/query
|
|
234
|
-
fetchStatus: import("@tanstack/query
|
|
233
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("../data/regions").TRegion[], Error>>;
|
|
234
|
+
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
235
235
|
} | {
|
|
236
236
|
data: import("../data/regions").TRegion[];
|
|
237
237
|
error: null;
|
|
@@ -255,8 +255,8 @@ export declare const useS3StorageRegions: (projectId: string) => {
|
|
|
255
255
|
isPlaceholderData: boolean;
|
|
256
256
|
isRefetching: boolean;
|
|
257
257
|
isStale: boolean;
|
|
258
|
-
refetch: (options?: import("@tanstack/query
|
|
259
|
-
fetchStatus: import("@tanstack/query
|
|
258
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("../data/regions").TRegion[], Error>>;
|
|
259
|
+
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
260
260
|
};
|
|
261
261
|
export interface AddProjectRegionProps {
|
|
262
262
|
projectId: string;
|
|
@@ -272,14 +272,14 @@ export declare const useAddProjectRegion: ({ projectId, onError, onSuccess, }: A
|
|
|
272
272
|
isPending: false;
|
|
273
273
|
isSuccess: false;
|
|
274
274
|
status: "idle";
|
|
275
|
-
mutate: import("@tanstack/react-query
|
|
275
|
+
mutate: import("@tanstack/react-query").UseMutateFunction<void, Error, string, unknown>;
|
|
276
276
|
reset: () => void;
|
|
277
277
|
context: unknown;
|
|
278
278
|
failureCount: number;
|
|
279
279
|
failureReason: Error;
|
|
280
280
|
isPaused: boolean;
|
|
281
281
|
submittedAt: number;
|
|
282
|
-
mutateAsync: import("@tanstack/react-query
|
|
282
|
+
mutateAsync: import("@tanstack/react-query").UseMutateAsyncFunction<void, Error, string, unknown>;
|
|
283
283
|
addRegion: (region: string) => void;
|
|
284
284
|
} | {
|
|
285
285
|
data: undefined;
|
|
@@ -290,14 +290,14 @@ export declare const useAddProjectRegion: ({ projectId, onError, onSuccess, }: A
|
|
|
290
290
|
isPending: true;
|
|
291
291
|
isSuccess: false;
|
|
292
292
|
status: "pending";
|
|
293
|
-
mutate: import("@tanstack/react-query
|
|
293
|
+
mutate: import("@tanstack/react-query").UseMutateFunction<void, Error, string, unknown>;
|
|
294
294
|
reset: () => void;
|
|
295
295
|
context: unknown;
|
|
296
296
|
failureCount: number;
|
|
297
297
|
failureReason: Error;
|
|
298
298
|
isPaused: boolean;
|
|
299
299
|
submittedAt: number;
|
|
300
|
-
mutateAsync: import("@tanstack/react-query
|
|
300
|
+
mutateAsync: import("@tanstack/react-query").UseMutateAsyncFunction<void, Error, string, unknown>;
|
|
301
301
|
addRegion: (region: string) => void;
|
|
302
302
|
} | {
|
|
303
303
|
data: undefined;
|
|
@@ -308,14 +308,14 @@ export declare const useAddProjectRegion: ({ projectId, onError, onSuccess, }: A
|
|
|
308
308
|
isPending: false;
|
|
309
309
|
isSuccess: false;
|
|
310
310
|
status: "error";
|
|
311
|
-
mutate: import("@tanstack/react-query
|
|
311
|
+
mutate: import("@tanstack/react-query").UseMutateFunction<void, Error, string, unknown>;
|
|
312
312
|
reset: () => void;
|
|
313
313
|
context: unknown;
|
|
314
314
|
failureCount: number;
|
|
315
315
|
failureReason: Error;
|
|
316
316
|
isPaused: boolean;
|
|
317
317
|
submittedAt: number;
|
|
318
|
-
mutateAsync: import("@tanstack/react-query
|
|
318
|
+
mutateAsync: import("@tanstack/react-query").UseMutateAsyncFunction<void, Error, string, unknown>;
|
|
319
319
|
addRegion: (region: string) => void;
|
|
320
320
|
} | {
|
|
321
321
|
data: void;
|
|
@@ -326,13 +326,13 @@ export declare const useAddProjectRegion: ({ projectId, onError, onSuccess, }: A
|
|
|
326
326
|
isPending: false;
|
|
327
327
|
isSuccess: true;
|
|
328
328
|
status: "success";
|
|
329
|
-
mutate: import("@tanstack/react-query
|
|
329
|
+
mutate: import("@tanstack/react-query").UseMutateFunction<void, Error, string, unknown>;
|
|
330
330
|
reset: () => void;
|
|
331
331
|
context: unknown;
|
|
332
332
|
failureCount: number;
|
|
333
333
|
failureReason: Error;
|
|
334
334
|
isPaused: boolean;
|
|
335
335
|
submittedAt: number;
|
|
336
|
-
mutateAsync: import("@tanstack/react-query
|
|
336
|
+
mutateAsync: import("@tanstack/react-query").UseMutateAsyncFunction<void, Error, string, unknown>;
|
|
337
337
|
addRegion: (region: string) => void;
|
|
338
338
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const useVolumes: (projectId: string) => import("@tanstack/react-query
|
|
1
|
+
export declare const useVolumes: (projectId: string) => import("@tanstack/react-query").UseQueryResult<import("../data/volume").TVolume[], Error>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export declare const regionContainer = "grid gap-6 list-none p-6 m-0 grid-cols-1 md:grid-cols-3";
|
|
2
2
|
export declare const regionTile = "cursor-pointer border-[--ods-color-primary-100] !bg-white hover:!bg-[--ods-color-primary-100] hover:border-[--ods-color-primary-600]";
|
|
3
|
-
export declare const regionTileSelected
|
|
3
|
+
export declare const regionTileSelected = "font-bold !bg-[--ods-color-primary-100] border-[--ods-color-primary-600]";
|