@prorobotech/openapi-k8s-toolkit 1.1.0-alpha.13 → 1.1.0-alpha.15
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/openapi-k8s-toolkit.es.js +350 -379
- package/dist/openapi-k8s-toolkit.es.js.map +1 -1
- package/dist/openapi-k8s-toolkit.umd.js +350 -379
- package/dist/openapi-k8s-toolkit.umd.js.map +1 -1
- package/dist/types/api/bff/scopes/checkScopes.d.ts +6 -6
- package/dist/types/api/bff/scopes/filterScopes.d.ts +4 -4
- package/dist/types/api/bff/search/getKinds.d.ts +2 -2
- package/dist/types/api/bff/swagger/getSwagger.d.ts +2 -2
- package/dist/types/api/getApiResource.d.ts +8 -8
- package/dist/types/api/getApiResourceTypes.d.ts +4 -4
- package/dist/types/api/getBuiltinResource.d.ts +8 -8
- package/dist/types/api/getBuiltinResourceTypes.d.ts +2 -2
- package/dist/types/api/getCrdData.d.ts +2 -2
- package/dist/types/api/getCrdResource.d.ts +5 -5
- package/dist/types/api/permissions.d.ts +4 -4
- package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeForm/BlackholeForm.d.ts +3 -3
- package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeFormProvider/BlackholeFormProvider.d.ts +3 -3
- package/dist/types/components/molecules/EnrichedTable/organisms/EnrichedTable/types.d.ts +2 -2
- package/dist/types/components/molecules/EnrichedTable/organisms/EnrichedTableProvider/EnrichedTableProvider.d.ts +2 -2
- package/dist/types/components/molecules/EnrichedTable/organisms/EnrichedTableProvider/utils.d.ts +1 -1
- package/dist/types/components/molecules/Events/Events.d.ts +2 -2
- package/dist/types/components/molecules/MarketPlace/MarketPlace.d.ts +3 -3
- package/dist/types/components/molecules/MarketPlace/molecules/AddEditFormModal/AddEditFormModal.d.ts +3 -3
- package/dist/types/components/molecules/MarketPlace/molecules/MarketplaceCard/MarketplaceCard.d.ts +1 -1
- package/dist/types/components/molecules/MarketPlace/molecules/MarketplaceCard/utils.d.ts +9 -9
- package/dist/types/components/molecules/ProjectInfoCard/ProjectInfoCard.d.ts +3 -3
- package/dist/types/components/molecules/YamlEditorSingleton/YamlEditorSingleton.d.ts +1 -1
- package/dist/types/components/organisms/DynamicComponents/molecules/OwnerRefs/organsisms/RefsList/RefsList.d.ts +2 -2
- package/dist/types/components/organisms/DynamicComponents/types.d.ts +18 -18
- package/dist/types/hooks/useApiResource.d.ts +8 -8
- package/dist/types/hooks/useApisResourceTypes.d.ts +4 -4
- package/dist/types/hooks/useBuiltinResource.d.ts +8 -8
- package/dist/types/hooks/useBuiltinResourceTypes.d.ts +2 -2
- package/dist/types/hooks/useCrdData.d.ts +2 -2
- package/dist/types/hooks/useCrdResource.d.ts +5 -5
- package/dist/types/hooks/useK8sSmartResource.d.ts +3 -3
- package/dist/types/hooks/usePermissions.d.ts +4 -4
- package/dist/types/localTypes/bff/form.d.ts +5 -5
- package/dist/types/localTypes/bff/scopes.d.ts +6 -6
- package/dist/types/localTypes/bff/table.d.ts +2 -2
- package/dist/types/localTypes/form.d.ts +2 -2
- package/dist/types/localTypes/marketplace.d.ts +1 -1
- package/dist/types/utils/getGroupsByCategory/getGroupsByCategory.d.ts +2 -2
- package/dist/types/utils/tableLocations/tableLocations.d.ts +5 -5
- package/package.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { TCheckIfApiInstanceNamespaceScopedRes, TCheckIfBuiltInInstanceNamespaceScopedRes } from '../../../localTypes/bff/scopes';
|
|
2
|
-
export declare const checkIfApiInstanceNamespaceScoped: ({
|
|
3
|
-
|
|
2
|
+
export declare const checkIfApiInstanceNamespaceScoped: ({ plural, apiGroup, apiVersion, cluster, }: {
|
|
3
|
+
plural: string;
|
|
4
4
|
apiGroup: string;
|
|
5
5
|
apiVersion: string;
|
|
6
|
-
|
|
6
|
+
cluster: string;
|
|
7
7
|
}) => Promise<TCheckIfApiInstanceNamespaceScopedRes>;
|
|
8
|
-
export declare const checkIfBuiltInInstanceNamespaceScoped: ({
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
export declare const checkIfBuiltInInstanceNamespaceScoped: ({ plural, cluster, }: {
|
|
9
|
+
plural: string;
|
|
10
|
+
cluster: string;
|
|
11
11
|
}) => Promise<TCheckIfBuiltInInstanceNamespaceScopedRes>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TFilterIfApiInstanceNamespaceScopedRes, TFilterIfBuiltInInstanceNamespaceScopedRes } from '../../../localTypes/bff/scopes';
|
|
2
2
|
import { TApiGroupResourceTypeList, TBuiltinResourceTypeList } from '../../../localTypes/k8s';
|
|
3
|
-
export declare const filterIfApiInstanceNamespaceScoped: ({
|
|
3
|
+
export declare const filterIfApiInstanceNamespaceScoped: ({ cluster, namespace, apiGroup, apiVersion, data, }: {
|
|
4
4
|
namespace?: string | undefined;
|
|
5
5
|
data?: {
|
|
6
6
|
apiVersion: string;
|
|
@@ -13,10 +13,10 @@ export declare const filterIfApiInstanceNamespaceScoped: ({ namespace, data, api
|
|
|
13
13
|
} | undefined;
|
|
14
14
|
apiGroup: string;
|
|
15
15
|
apiVersion: string;
|
|
16
|
-
|
|
16
|
+
cluster: string;
|
|
17
17
|
}) => Promise<TFilterIfApiInstanceNamespaceScopedRes>;
|
|
18
|
-
export declare const filterIfBuiltInInstanceNamespaceScoped: ({ namespace, data,
|
|
18
|
+
export declare const filterIfBuiltInInstanceNamespaceScoped: ({ cluster, namespace, data, }: {
|
|
19
|
+
cluster: string;
|
|
19
20
|
namespace?: string | undefined;
|
|
20
21
|
data?: TBuiltinResourceTypeList | undefined;
|
|
21
|
-
clusterName: string;
|
|
22
22
|
}) => Promise<TFilterIfBuiltInInstanceNamespaceScopedRes>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AxiosResponse } from 'axios';
|
|
2
2
|
import { TGetDerefedSwaggerRes } from '../../../localTypes/bff/swagger';
|
|
3
|
-
export declare const getSwagger: ({
|
|
4
|
-
|
|
3
|
+
export declare const getSwagger: ({ cluster }: {
|
|
4
|
+
cluster: string;
|
|
5
5
|
}) => Promise<AxiosResponse<TGetDerefedSwaggerRes>>;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { AxiosResponse } from 'axios';
|
|
2
|
-
export declare const getApiResources: <T>({
|
|
3
|
-
|
|
2
|
+
export declare const getApiResources: <T>({ cluster, namespace, apiGroup, apiVersion, plural, name, labels, fields, limit, }: {
|
|
3
|
+
cluster: string;
|
|
4
4
|
namespace?: string | undefined;
|
|
5
5
|
apiGroup: string;
|
|
6
6
|
apiVersion: string;
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
plural: string;
|
|
8
|
+
name?: string | undefined;
|
|
9
9
|
labels?: string[] | undefined;
|
|
10
10
|
fields?: string[] | undefined;
|
|
11
11
|
limit: string | null;
|
|
12
12
|
}) => Promise<AxiosResponse<T, any, {}>>;
|
|
13
|
-
export declare const getApiResourceSingle: <T>({
|
|
14
|
-
|
|
13
|
+
export declare const getApiResourceSingle: <T>({ cluster, namespace, apiGroup, apiVersion, plural, name, }: {
|
|
14
|
+
cluster: string;
|
|
15
15
|
namespace?: string | undefined;
|
|
16
16
|
apiGroup: string;
|
|
17
17
|
apiVersion: string;
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
plural: string;
|
|
19
|
+
name: string;
|
|
20
20
|
}) => Promise<AxiosResponse<T, any, {}>>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { AxiosResponse } from 'axios';
|
|
2
|
-
export declare const getApiResourceTypes: <T>({
|
|
3
|
-
|
|
2
|
+
export declare const getApiResourceTypes: <T>({ cluster }: {
|
|
3
|
+
cluster: string;
|
|
4
4
|
}) => Promise<AxiosResponse<T, any, {}>>;
|
|
5
|
-
export declare const getApiResourceTypesByApiGroup: <T>({
|
|
6
|
-
|
|
5
|
+
export declare const getApiResourceTypesByApiGroup: <T>({ cluster, apiGroup, apiVersion, }: {
|
|
6
|
+
cluster: string;
|
|
7
7
|
apiGroup: string;
|
|
8
8
|
apiVersion: string;
|
|
9
9
|
}) => Promise<AxiosResponse<T, any, {}>>;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { AxiosResponse } from 'axios';
|
|
2
|
-
export declare const getBuiltinResources: <T>({
|
|
3
|
-
|
|
2
|
+
export declare const getBuiltinResources: <T>({ cluster, namespace, plural, name, labels, fields, limit, }: {
|
|
3
|
+
cluster: string;
|
|
4
4
|
namespace?: string | undefined;
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
plural: string;
|
|
6
|
+
name?: string | undefined;
|
|
7
7
|
labels?: string[] | undefined;
|
|
8
8
|
fields?: string[] | undefined;
|
|
9
9
|
limit: string | null;
|
|
10
10
|
}) => Promise<AxiosResponse<T, any, {}>>;
|
|
11
|
-
export declare const getBuiltinResourceSingle: <T>({
|
|
12
|
-
|
|
11
|
+
export declare const getBuiltinResourceSingle: <T>({ cluster, namespace, plural, name, }: {
|
|
12
|
+
cluster: string;
|
|
13
13
|
namespace?: string | undefined;
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
plural: string;
|
|
15
|
+
name: string;
|
|
16
16
|
}) => Promise<AxiosResponse<T, any, {}>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AxiosResponse } from 'axios';
|
|
2
|
-
export declare const getCrdData: <T>({
|
|
3
|
-
|
|
2
|
+
export declare const getCrdData: <T>({ cluster, apiExtensionVersion, crdName, }: {
|
|
3
|
+
cluster: string;
|
|
4
4
|
apiExtensionVersion: string;
|
|
5
5
|
crdName: string;
|
|
6
6
|
}) => Promise<AxiosResponse<T, any, {}>>;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { AxiosResponse } from 'axios';
|
|
2
|
-
export declare const getCrdResources: <T>({
|
|
3
|
-
|
|
2
|
+
export declare const getCrdResources: <T>({ cluster, namespace, apiGroup, apiVersion, crdName, }: {
|
|
3
|
+
cluster: string;
|
|
4
4
|
namespace?: string | undefined;
|
|
5
5
|
apiGroup: string;
|
|
6
6
|
apiVersion: string;
|
|
7
7
|
crdName: string;
|
|
8
8
|
}) => Promise<AxiosResponse<T, any, {}>>;
|
|
9
|
-
export declare const getCrdResourceSingle: <T>({
|
|
10
|
-
|
|
9
|
+
export declare const getCrdResourceSingle: <T>({ cluster, namespace, apiGroup, apiVersion, crdName, name, }: {
|
|
10
|
+
cluster: string;
|
|
11
11
|
namespace?: string | undefined;
|
|
12
12
|
apiGroup: string;
|
|
13
13
|
apiVersion: string;
|
|
14
14
|
crdName: string;
|
|
15
|
-
|
|
15
|
+
name: string;
|
|
16
16
|
}) => Promise<AxiosResponse<T, any, {}>>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { AxiosResponse } from 'axios';
|
|
2
|
-
export declare const checkPermission: ({
|
|
3
|
-
|
|
2
|
+
export declare const checkPermission: ({ cluster, body, }: {
|
|
3
|
+
cluster: string;
|
|
4
4
|
body: {
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
apiGroup?: string;
|
|
6
|
+
plural: string;
|
|
7
7
|
verb: 'get' | 'list' | 'watch' | 'create' | 'delete' | 'patch' | 'update';
|
|
8
8
|
namespace?: string;
|
|
9
9
|
name?: string;
|
package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeForm/BlackholeForm.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export type TBlackholeFormProps = {
|
|
|
9
9
|
urlParams: TUrlParams;
|
|
10
10
|
urlParamsForPermissions: {
|
|
11
11
|
apiGroup?: string;
|
|
12
|
-
|
|
12
|
+
plural?: string;
|
|
13
13
|
};
|
|
14
14
|
formsPrefills?: TFormPrefill;
|
|
15
15
|
staticProperties: OpenAPIV2.SchemaObject['properties'];
|
|
@@ -24,8 +24,8 @@ export type TBlackholeFormProps = {
|
|
|
24
24
|
isCreate?: boolean;
|
|
25
25
|
type: 'builtin' | 'apis';
|
|
26
26
|
apiGroupApiVersion: string;
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
kind: string;
|
|
28
|
+
plural: string;
|
|
29
29
|
backlink?: string | null;
|
|
30
30
|
designNewLayout?: boolean;
|
|
31
31
|
designNewLayoutHeight?: number;
|
|
@@ -7,18 +7,18 @@ export type TBlackholeFormProviderProps = {
|
|
|
7
7
|
urlParams: TUrlParams;
|
|
8
8
|
urlParamsForPermissions: {
|
|
9
9
|
apiGroup?: string;
|
|
10
|
-
|
|
10
|
+
plural?: string;
|
|
11
11
|
};
|
|
12
12
|
data: {
|
|
13
13
|
type: 'builtin';
|
|
14
|
-
|
|
14
|
+
plural: string;
|
|
15
15
|
prefillValuesSchema?: TJSON;
|
|
16
16
|
prefillValueNamespaceOnly?: string;
|
|
17
17
|
} | {
|
|
18
18
|
type: 'apis';
|
|
19
19
|
apiGroup: string;
|
|
20
20
|
apiVersion: string;
|
|
21
|
-
|
|
21
|
+
plural: string;
|
|
22
22
|
prefillValuesSchema?: TJSON;
|
|
23
23
|
prefillValueNamespaceOnly?: string;
|
|
24
24
|
};
|
|
@@ -10,14 +10,14 @@ export type TEnrichedTableProviderProps = {
|
|
|
10
10
|
dataItems: TJSON[];
|
|
11
11
|
resourceSchema?: TJSON;
|
|
12
12
|
k8sResource?: {
|
|
13
|
-
|
|
13
|
+
plural: string;
|
|
14
14
|
apiGroup?: string;
|
|
15
15
|
apiVersion: string;
|
|
16
16
|
};
|
|
17
17
|
dataForControls?: {
|
|
18
18
|
cluster: string;
|
|
19
19
|
syntheticProject?: string;
|
|
20
|
-
|
|
20
|
+
plural: string;
|
|
21
21
|
apiGroup?: string;
|
|
22
22
|
apiVersion: string;
|
|
23
23
|
};
|
package/dist/types/components/molecules/EnrichedTable/organisms/EnrichedTableProvider/utils.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export declare const prepare: ({ dataItems, resourceSchema, dataForControls, add
|
|
|
9
9
|
syntheticProject?: string | undefined;
|
|
10
10
|
pathPrefix: string;
|
|
11
11
|
apiVersion: string;
|
|
12
|
-
|
|
12
|
+
plural: string;
|
|
13
13
|
backlink: string;
|
|
14
14
|
deletePathPrefix: string;
|
|
15
15
|
onDeleteHandle: (name: string, endpoint: string) => void;
|
|
@@ -11,7 +11,7 @@ export type TEventsProps = {
|
|
|
11
11
|
baseFactoryNamespacedBuiltinKey: string;
|
|
12
12
|
baseFactoryClusterSceopedBuiltinKey: string;
|
|
13
13
|
baseNamespaceFactoryKey: string;
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
baseNavigationPlural: string;
|
|
15
|
+
baseNavigationName: string;
|
|
16
16
|
};
|
|
17
17
|
export declare const Events: FC<TEventsProps>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
2
|
export type TMarketPlaceProps = {
|
|
3
|
-
|
|
3
|
+
cluster: string;
|
|
4
4
|
namespace?: string;
|
|
5
5
|
baseApiGroup: string;
|
|
6
6
|
baseApiVersion: string;
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
marketplacePlural: string;
|
|
8
|
+
marketplaceKind: string;
|
|
9
9
|
baseprefix?: string;
|
|
10
10
|
standalone?: boolean;
|
|
11
11
|
forceAddedMode?: boolean;
|
package/dist/types/components/molecules/MarketPlace/molecules/AddEditFormModal/AddEditFormModal.d.ts
CHANGED
|
@@ -2,11 +2,11 @@ import { FC, Dispatch, SetStateAction } from 'react';
|
|
|
2
2
|
import { AxiosError } from 'axios';
|
|
3
3
|
import { TMarketPlacePanelResource } from '../../../../../localTypes/marketplace';
|
|
4
4
|
type TAddEditFormModalProps = {
|
|
5
|
-
|
|
5
|
+
cluster: string;
|
|
6
6
|
baseApiGroup: string;
|
|
7
7
|
baseApiVersion: string;
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
marketplacePlural: string;
|
|
9
|
+
marketplaceKind: string;
|
|
10
10
|
isOpen: boolean | TMarketPlacePanelResource;
|
|
11
11
|
setIsOpen: Dispatch<SetStateAction<boolean | TMarketPlacePanelResource>>;
|
|
12
12
|
setError: Dispatch<SetStateAction<AxiosError | Error | undefined>>;
|
package/dist/types/components/molecules/MarketPlace/molecules/MarketplaceCard/MarketplaceCard.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { FC } from 'react';
|
|
|
2
2
|
import { TMarketPlacePanel } from '../../../../../localTypes/marketplace';
|
|
3
3
|
export type TMarketplaceCardProps = {
|
|
4
4
|
baseprefix?: string;
|
|
5
|
-
|
|
5
|
+
cluster: string;
|
|
6
6
|
namespace: string;
|
|
7
7
|
isEditMode?: boolean;
|
|
8
8
|
onDeleteClick?: () => void;
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
export declare const getPathToNav: ({
|
|
2
|
-
|
|
1
|
+
export declare const getPathToNav: ({ cluster, namespace, type, pathToNav, plural, apiGroup, apiVersion, baseprefix, }: {
|
|
2
|
+
cluster: string;
|
|
3
3
|
namespace: string;
|
|
4
4
|
type: string;
|
|
5
5
|
pathToNav?: string | undefined;
|
|
6
|
-
|
|
6
|
+
plural?: string | undefined;
|
|
7
7
|
apiGroup?: string | undefined;
|
|
8
8
|
apiVersion?: string | undefined;
|
|
9
9
|
baseprefix?: string | undefined;
|
|
10
10
|
}) => string;
|
|
11
|
-
export declare const getCreatePathToNav: ({
|
|
12
|
-
|
|
11
|
+
export declare const getCreatePathToNav: ({ cluster, namespace, type, pathToNav, plural, apiGroup, apiVersion, baseprefix, }: {
|
|
12
|
+
cluster: string;
|
|
13
13
|
namespace: string;
|
|
14
14
|
type: string;
|
|
15
15
|
pathToNav?: string | undefined;
|
|
16
|
-
|
|
16
|
+
plural?: string | undefined;
|
|
17
17
|
apiGroup?: string | undefined;
|
|
18
18
|
apiVersion?: string | undefined;
|
|
19
19
|
baseprefix?: string | undefined;
|
|
20
20
|
}) => string;
|
|
21
|
-
export declare const getListPath: ({
|
|
22
|
-
|
|
21
|
+
export declare const getListPath: ({ cluster, namespace, type, plural, apiGroup, apiVersion, }: {
|
|
22
|
+
cluster: string;
|
|
23
23
|
namespace: string;
|
|
24
24
|
type: string;
|
|
25
|
-
|
|
25
|
+
plural?: string | undefined;
|
|
26
26
|
apiGroup?: string | undefined;
|
|
27
27
|
apiVersion?: string | undefined;
|
|
28
28
|
}) => string | undefined;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
2
|
export type TProjectInfoCardProps = {
|
|
3
|
-
|
|
3
|
+
cluster: string;
|
|
4
4
|
namespace?: string;
|
|
5
5
|
baseApiGroup: string;
|
|
6
6
|
baseApiVersion: string;
|
|
7
7
|
baseProjectApiGroup: string;
|
|
8
8
|
baseProjectVersion: string;
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
projectPlural: string;
|
|
10
|
+
marketplacePlural: string;
|
|
11
11
|
baseprefix?: string;
|
|
12
12
|
accessGroups: string[];
|
|
13
13
|
showZeroResources?: boolean;
|
|
@@ -15,8 +15,8 @@ export type TRefsListProps = {
|
|
|
15
15
|
baseFactoryClusterSceopedAPIKey: string;
|
|
16
16
|
baseFactoryNamespacedBuiltinKey: string;
|
|
17
17
|
baseFactoryClusterSceopedBuiltinKey: string;
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
baseNavigationPlural: string;
|
|
19
|
+
baseNavigationName: string;
|
|
20
20
|
listFlexProps?: FlexProps;
|
|
21
21
|
};
|
|
22
22
|
export declare const RefsList: FC<TRefsListProps>;
|
|
@@ -53,26 +53,26 @@ export type TDynamicComponentsAppTypeMap = {
|
|
|
53
53
|
};
|
|
54
54
|
ProjectInfoCard: {
|
|
55
55
|
id: number | string;
|
|
56
|
-
|
|
57
|
-
|
|
56
|
+
cluster: string;
|
|
57
|
+
namespace: string;
|
|
58
58
|
baseApiGroup: string;
|
|
59
59
|
baseApiVersion: string;
|
|
60
60
|
baseProjectApiGroup: string;
|
|
61
61
|
baseProjectVersion: string;
|
|
62
|
-
|
|
63
|
-
|
|
62
|
+
projectPlural: string;
|
|
63
|
+
marketplacePlural: string;
|
|
64
64
|
accessGroups: string[];
|
|
65
65
|
baseprefix?: string;
|
|
66
66
|
showZeroResources?: boolean;
|
|
67
67
|
};
|
|
68
68
|
MarketplaceCard: {
|
|
69
69
|
id: number | string;
|
|
70
|
-
|
|
71
|
-
|
|
70
|
+
cluster: string;
|
|
71
|
+
namespace: string;
|
|
72
72
|
baseApiGroup: string;
|
|
73
73
|
baseApiVersion: string;
|
|
74
|
-
|
|
75
|
-
|
|
74
|
+
marketplacePlural: string;
|
|
75
|
+
marketplaceKind: string;
|
|
76
76
|
baseprefix?: string;
|
|
77
77
|
standalone?: boolean;
|
|
78
78
|
forceAddedMode?: boolean;
|
|
@@ -104,13 +104,13 @@ export type TDynamicComponentsAppTypeMap = {
|
|
|
104
104
|
id: number | string;
|
|
105
105
|
fetchUrl?: string;
|
|
106
106
|
k8sResourceToFetch?: {
|
|
107
|
-
|
|
108
|
-
|
|
107
|
+
apiGroup?: string;
|
|
108
|
+
apiVersion: string;
|
|
109
109
|
plural: string;
|
|
110
110
|
namespace?: string;
|
|
111
111
|
};
|
|
112
112
|
pathToItems: string | string[];
|
|
113
|
-
|
|
113
|
+
cluster: string;
|
|
114
114
|
labelSelector?: Record<string, string>;
|
|
115
115
|
labelSelectorFull?: {
|
|
116
116
|
reqIndex: number;
|
|
@@ -145,7 +145,7 @@ export type TDynamicComponentsAppTypeMap = {
|
|
|
145
145
|
type: 'builtin' | 'apis';
|
|
146
146
|
apiGroup?: string;
|
|
147
147
|
apiVersion?: string;
|
|
148
|
-
|
|
148
|
+
plural: string;
|
|
149
149
|
forcedKind?: string;
|
|
150
150
|
prefillValuesRequestIndex: number;
|
|
151
151
|
pathToData?: string | string[];
|
|
@@ -313,7 +313,7 @@ export type TDynamicComponentsAppTypeMap = {
|
|
|
313
313
|
Events: {
|
|
314
314
|
id: number | string;
|
|
315
315
|
baseprefix?: string;
|
|
316
|
-
|
|
316
|
+
cluster: string;
|
|
317
317
|
wsUrl: string;
|
|
318
318
|
pageSize?: number;
|
|
319
319
|
substractHeight?: number;
|
|
@@ -329,13 +329,13 @@ export type TDynamicComponentsAppTypeMap = {
|
|
|
329
329
|
baseFactoryNamespacedBuiltinKey: string;
|
|
330
330
|
baseFactoryClusterSceopedBuiltinKey: string;
|
|
331
331
|
baseNamespaceFactoryKey: string;
|
|
332
|
-
|
|
333
|
-
|
|
332
|
+
baseNavigationPlural: string;
|
|
333
|
+
baseNavigationName: string;
|
|
334
334
|
};
|
|
335
335
|
OwnerRefs: {
|
|
336
336
|
id: number | string;
|
|
337
337
|
baseprefix?: string;
|
|
338
|
-
|
|
338
|
+
cluster: string;
|
|
339
339
|
reqIndex: string;
|
|
340
340
|
errorText: string;
|
|
341
341
|
notArrayErrorText: string;
|
|
@@ -355,8 +355,8 @@ export type TDynamicComponentsAppTypeMap = {
|
|
|
355
355
|
baseFactoryClusterSceopedAPIKey: string;
|
|
356
356
|
baseFactoryNamespacedBuiltinKey: string;
|
|
357
357
|
baseFactoryClusterSceopedBuiltinKey: string;
|
|
358
|
-
|
|
359
|
-
|
|
358
|
+
baseNavigationPlural: string;
|
|
359
|
+
baseNavigationName: string;
|
|
360
360
|
};
|
|
361
361
|
Toggler: {
|
|
362
362
|
id: number | string;
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { TApiResources } from '../localTypes/k8s';
|
|
2
|
-
export declare const useApiResources: ({
|
|
3
|
-
|
|
2
|
+
export declare const useApiResources: ({ cluster, namespace, apiGroup, apiVersion, plural, name, labels, fields, limit, refetchInterval, isEnabled, }: {
|
|
3
|
+
cluster: string;
|
|
4
4
|
namespace?: string | undefined;
|
|
5
5
|
apiGroup: string;
|
|
6
6
|
apiVersion: string;
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
plural: string;
|
|
8
|
+
name?: string | undefined;
|
|
9
9
|
labels?: string[] | undefined;
|
|
10
10
|
fields?: string[] | undefined;
|
|
11
11
|
limit: string | null;
|
|
12
12
|
refetchInterval?: number | false | undefined;
|
|
13
13
|
isEnabled?: boolean | undefined;
|
|
14
14
|
}) => import("@tanstack/react-query/build/legacy/types").UseQueryResult<TApiResources, Error>;
|
|
15
|
-
export declare const useApiResourceSingle: ({
|
|
16
|
-
|
|
15
|
+
export declare const useApiResourceSingle: ({ cluster, namespace, apiGroup, apiVersion, plural, name, refetchInterval, }: {
|
|
16
|
+
cluster: string;
|
|
17
17
|
namespace?: string | undefined;
|
|
18
18
|
apiGroup: string;
|
|
19
19
|
apiVersion: string;
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
plural: string;
|
|
21
|
+
name: string;
|
|
22
22
|
refetchInterval?: number | false | undefined;
|
|
23
23
|
}) => import("@tanstack/react-query/build/legacy/types").UseQueryResult<{
|
|
24
24
|
metadata: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare const useApisResourceTypes: ({
|
|
2
|
-
|
|
1
|
+
export declare const useApisResourceTypes: ({ cluster }: {
|
|
2
|
+
cluster: string;
|
|
3
3
|
}) => import("@tanstack/react-query/build/legacy/types").UseQueryResult<{
|
|
4
4
|
apiVersion: string;
|
|
5
5
|
kind: string;
|
|
@@ -15,8 +15,8 @@ export declare const useApisResourceTypes: ({ clusterName }: {
|
|
|
15
15
|
};
|
|
16
16
|
}[];
|
|
17
17
|
}, Error>;
|
|
18
|
-
export declare const useApiResourceTypesByGroup: ({
|
|
19
|
-
|
|
18
|
+
export declare const useApiResourceTypesByGroup: ({ cluster, apiGroup, apiVersion, }: {
|
|
19
|
+
cluster: string;
|
|
20
20
|
apiGroup: string;
|
|
21
21
|
apiVersion: string;
|
|
22
22
|
}) => import("@tanstack/react-query/build/legacy/types").UseQueryResult<{
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { TBuiltinResources } from '../localTypes/k8s';
|
|
2
|
-
export declare const useBuiltinResources: ({
|
|
3
|
-
|
|
2
|
+
export declare const useBuiltinResources: ({ cluster, namespace, plural, name, labels, fields, limit, refetchInterval, isEnabled, }: {
|
|
3
|
+
cluster: string;
|
|
4
4
|
namespace?: string | undefined;
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
plural: string;
|
|
6
|
+
name?: string | undefined;
|
|
7
7
|
labels?: string[] | undefined;
|
|
8
8
|
fields?: string[] | undefined;
|
|
9
9
|
limit: string | null;
|
|
10
10
|
refetchInterval?: number | false | undefined;
|
|
11
11
|
isEnabled?: boolean | undefined;
|
|
12
12
|
}) => import("@tanstack/react-query/build/legacy/types").UseQueryResult<TBuiltinResources, Error>;
|
|
13
|
-
export declare const useBuiltinResourceSingle: ({
|
|
14
|
-
|
|
13
|
+
export declare const useBuiltinResourceSingle: ({ cluster, namespace, plural, name, refetchInterval, }: {
|
|
14
|
+
cluster: string;
|
|
15
15
|
namespace?: string | undefined;
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
plural: string;
|
|
17
|
+
name: string;
|
|
18
18
|
refetchInterval?: number | false | undefined;
|
|
19
19
|
}) => import("@tanstack/react-query/build/legacy/types").UseQueryResult<{
|
|
20
20
|
metadata: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { TBuiltinResourceTypeList } from '../localTypes/k8s';
|
|
2
|
-
export declare const useBuiltinResourceTypes: ({
|
|
3
|
-
|
|
2
|
+
export declare const useBuiltinResourceTypes: ({ cluster }: {
|
|
3
|
+
cluster: string;
|
|
4
4
|
}) => import("@tanstack/react-query/build/legacy/types").UseQueryResult<TBuiltinResourceTypeList, Error>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare const useCrdData: ({
|
|
2
|
-
|
|
1
|
+
export declare const useCrdData: ({ cluster, apiExtensionVersion, crdName, }: {
|
|
2
|
+
cluster: string;
|
|
3
3
|
apiExtensionVersion: string;
|
|
4
4
|
crdName: string;
|
|
5
5
|
}) => import("@tanstack/react-query/build/legacy/types").UseQueryResult<{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TJSON } from '../localTypes/JSON';
|
|
2
|
-
export declare const useCrdResources: <T = TJSON[]>({
|
|
3
|
-
|
|
2
|
+
export declare const useCrdResources: <T = TJSON[]>({ cluster, namespace, apiGroup, apiVersion, crdName, refetchInterval, isEnabled, }: {
|
|
3
|
+
cluster: string;
|
|
4
4
|
namespace?: string | undefined;
|
|
5
5
|
apiGroup: string;
|
|
6
6
|
apiVersion: string;
|
|
@@ -19,13 +19,13 @@ export declare const useCrdResources: <T = TJSON[]>({ clusterName, namespace, ap
|
|
|
19
19
|
reason?: string | undefined;
|
|
20
20
|
} | undefined;
|
|
21
21
|
}, Error>;
|
|
22
|
-
export declare const useCrdResourceSingle: ({
|
|
23
|
-
|
|
22
|
+
export declare const useCrdResourceSingle: ({ cluster, namespace, apiGroup, apiVersion, crdName, name, refetchInterval, }: {
|
|
23
|
+
cluster: string;
|
|
24
24
|
namespace?: string | undefined;
|
|
25
25
|
apiGroup: string;
|
|
26
26
|
apiVersion: string;
|
|
27
27
|
crdName: string;
|
|
28
|
-
|
|
28
|
+
name: string;
|
|
29
29
|
refetchInterval?: number | false | undefined;
|
|
30
30
|
}) => import("@tanstack/react-query/build/legacy/types").UseQueryResult<{
|
|
31
31
|
metadata: {
|