@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.
Files changed (45) hide show
  1. package/dist/openapi-k8s-toolkit.es.js +350 -379
  2. package/dist/openapi-k8s-toolkit.es.js.map +1 -1
  3. package/dist/openapi-k8s-toolkit.umd.js +350 -379
  4. package/dist/openapi-k8s-toolkit.umd.js.map +1 -1
  5. package/dist/types/api/bff/scopes/checkScopes.d.ts +6 -6
  6. package/dist/types/api/bff/scopes/filterScopes.d.ts +4 -4
  7. package/dist/types/api/bff/search/getKinds.d.ts +2 -2
  8. package/dist/types/api/bff/swagger/getSwagger.d.ts +2 -2
  9. package/dist/types/api/getApiResource.d.ts +8 -8
  10. package/dist/types/api/getApiResourceTypes.d.ts +4 -4
  11. package/dist/types/api/getBuiltinResource.d.ts +8 -8
  12. package/dist/types/api/getBuiltinResourceTypes.d.ts +2 -2
  13. package/dist/types/api/getCrdData.d.ts +2 -2
  14. package/dist/types/api/getCrdResource.d.ts +5 -5
  15. package/dist/types/api/permissions.d.ts +4 -4
  16. package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeForm/BlackholeForm.d.ts +3 -3
  17. package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeFormProvider/BlackholeFormProvider.d.ts +3 -3
  18. package/dist/types/components/molecules/EnrichedTable/organisms/EnrichedTable/types.d.ts +2 -2
  19. package/dist/types/components/molecules/EnrichedTable/organisms/EnrichedTableProvider/EnrichedTableProvider.d.ts +2 -2
  20. package/dist/types/components/molecules/EnrichedTable/organisms/EnrichedTableProvider/utils.d.ts +1 -1
  21. package/dist/types/components/molecules/Events/Events.d.ts +2 -2
  22. package/dist/types/components/molecules/MarketPlace/MarketPlace.d.ts +3 -3
  23. package/dist/types/components/molecules/MarketPlace/molecules/AddEditFormModal/AddEditFormModal.d.ts +3 -3
  24. package/dist/types/components/molecules/MarketPlace/molecules/MarketplaceCard/MarketplaceCard.d.ts +1 -1
  25. package/dist/types/components/molecules/MarketPlace/molecules/MarketplaceCard/utils.d.ts +9 -9
  26. package/dist/types/components/molecules/ProjectInfoCard/ProjectInfoCard.d.ts +3 -3
  27. package/dist/types/components/molecules/YamlEditorSingleton/YamlEditorSingleton.d.ts +1 -1
  28. package/dist/types/components/organisms/DynamicComponents/molecules/OwnerRefs/organsisms/RefsList/RefsList.d.ts +2 -2
  29. package/dist/types/components/organisms/DynamicComponents/types.d.ts +18 -18
  30. package/dist/types/hooks/useApiResource.d.ts +8 -8
  31. package/dist/types/hooks/useApisResourceTypes.d.ts +4 -4
  32. package/dist/types/hooks/useBuiltinResource.d.ts +8 -8
  33. package/dist/types/hooks/useBuiltinResourceTypes.d.ts +2 -2
  34. package/dist/types/hooks/useCrdData.d.ts +2 -2
  35. package/dist/types/hooks/useCrdResource.d.ts +5 -5
  36. package/dist/types/hooks/useK8sSmartResource.d.ts +3 -3
  37. package/dist/types/hooks/usePermissions.d.ts +4 -4
  38. package/dist/types/localTypes/bff/form.d.ts +5 -5
  39. package/dist/types/localTypes/bff/scopes.d.ts +6 -6
  40. package/dist/types/localTypes/bff/table.d.ts +2 -2
  41. package/dist/types/localTypes/form.d.ts +2 -2
  42. package/dist/types/localTypes/marketplace.d.ts +1 -1
  43. package/dist/types/utils/getGroupsByCategory/getGroupsByCategory.d.ts +2 -2
  44. package/dist/types/utils/tableLocations/tableLocations.d.ts +5 -5
  45. package/package.json +1 -1
@@ -1,11 +1,11 @@
1
1
  import { TCheckIfApiInstanceNamespaceScopedRes, TCheckIfBuiltInInstanceNamespaceScopedRes } from '../../../localTypes/bff/scopes';
2
- export declare const checkIfApiInstanceNamespaceScoped: ({ typeName, apiGroup, apiVersion, clusterName, }: {
3
- typeName: string;
2
+ export declare const checkIfApiInstanceNamespaceScoped: ({ plural, apiGroup, apiVersion, cluster, }: {
3
+ plural: string;
4
4
  apiGroup: string;
5
5
  apiVersion: string;
6
- clusterName: string;
6
+ cluster: string;
7
7
  }) => Promise<TCheckIfApiInstanceNamespaceScopedRes>;
8
- export declare const checkIfBuiltInInstanceNamespaceScoped: ({ typeName, clusterName, }: {
9
- typeName: string;
10
- clusterName: string;
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: ({ namespace, data, apiGroup, apiVersion, clusterName, }: {
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
- clusterName: string;
16
+ cluster: string;
17
17
  }) => Promise<TFilterIfApiInstanceNamespaceScopedRes>;
18
- export declare const filterIfBuiltInInstanceNamespaceScoped: ({ namespace, data, clusterName, }: {
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,4 +1,4 @@
1
1
  import { TKindIndex } from '../../../localTypes/bff/search';
2
- export declare const getKinds: ({ clusterName }: {
3
- clusterName: string;
2
+ export declare const getKinds: ({ cluster }: {
3
+ cluster: string;
4
4
  }) => Promise<TKindIndex>;
@@ -1,5 +1,5 @@
1
1
  import { AxiosResponse } from 'axios';
2
2
  import { TGetDerefedSwaggerRes } from '../../../localTypes/bff/swagger';
3
- export declare const getSwagger: ({ clusterName, }: {
4
- clusterName: string;
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>({ clusterName, namespace, apiGroup, apiVersion, typeName, specificName, labels, fields, limit, }: {
3
- clusterName: string;
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
- typeName: string;
8
- specificName?: string | undefined;
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>({ clusterName, namespace, apiGroup, apiVersion, typeName, entryName, }: {
14
- clusterName: string;
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
- typeName: string;
19
- entryName: string;
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>({ clusterName }: {
3
- clusterName: string;
2
+ export declare const getApiResourceTypes: <T>({ cluster }: {
3
+ cluster: string;
4
4
  }) => Promise<AxiosResponse<T, any, {}>>;
5
- export declare const getApiResourceTypesByApiGroup: <T>({ clusterName, apiGroup, apiVersion, }: {
6
- clusterName: string;
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>({ clusterName, namespace, typeName, specificName, labels, fields, limit, }: {
3
- clusterName: string;
2
+ export declare const getBuiltinResources: <T>({ cluster, namespace, plural, name, labels, fields, limit, }: {
3
+ cluster: string;
4
4
  namespace?: string | undefined;
5
- typeName: string;
6
- specificName?: string | undefined;
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>({ clusterName, namespace, typeName, entryName, }: {
12
- clusterName: string;
11
+ export declare const getBuiltinResourceSingle: <T>({ cluster, namespace, plural, name, }: {
12
+ cluster: string;
13
13
  namespace?: string | undefined;
14
- typeName: string;
15
- entryName: string;
14
+ plural: string;
15
+ name: string;
16
16
  }) => Promise<AxiosResponse<T, any, {}>>;
@@ -1,4 +1,4 @@
1
1
  import { AxiosResponse } from 'axios';
2
- export declare const getBuiltinResourceTypes: <T>({ clusterName, }: {
3
- clusterName: string;
2
+ export declare const getBuiltinResourceTypes: <T>({ cluster }: {
3
+ cluster: string;
4
4
  }) => Promise<AxiosResponse<T, any, {}>>;
@@ -1,6 +1,6 @@
1
1
  import { AxiosResponse } from 'axios';
2
- export declare const getCrdData: <T>({ clusterName, apiExtensionVersion, crdName, }: {
3
- clusterName: string;
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>({ clusterName, namespace, apiGroup, apiVersion, crdName, }: {
3
- clusterName: string;
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>({ clusterName, namespace, apiGroup, apiVersion, crdName, entryName, }: {
10
- clusterName: string;
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
- entryName: string;
15
+ name: string;
16
16
  }) => Promise<AxiosResponse<T, any, {}>>;
@@ -1,9 +1,9 @@
1
1
  import { AxiosResponse } from 'axios';
2
- export declare const checkPermission: ({ clusterName, body, }: {
3
- clusterName: string;
2
+ export declare const checkPermission: ({ cluster, body, }: {
3
+ cluster: string;
4
4
  body: {
5
- group?: string;
6
- resource: string;
5
+ apiGroup?: string;
6
+ plural: string;
7
7
  verb: 'get' | 'list' | 'watch' | 'create' | 'delete' | 'patch' | 'update';
8
8
  namespace?: string;
9
9
  name?: string;
@@ -9,7 +9,7 @@ export type TBlackholeFormProps = {
9
9
  urlParams: TUrlParams;
10
10
  urlParamsForPermissions: {
11
11
  apiGroup?: string;
12
- typeName?: string;
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
- kindName: string;
28
- typeName: string;
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
- typeName?: string;
10
+ plural?: string;
11
11
  };
12
12
  data: {
13
13
  type: 'builtin';
14
- typeName: string;
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
- typeName: string;
21
+ plural: string;
22
22
  prefillValuesSchema?: TJSON;
23
23
  prefillValueNamespaceOnly?: string;
24
24
  };
@@ -2,8 +2,8 @@ export type TInternalDataForControls = {
2
2
  cluster: string;
3
3
  pathPrefix: string;
4
4
  apiGroupAndVersion: string;
5
- typeName: string;
6
- entryName: string;
5
+ plural: string;
6
+ name: string;
7
7
  backlink: string;
8
8
  namespace?: string;
9
9
  syntheticProject?: string;
@@ -10,14 +10,14 @@ export type TEnrichedTableProviderProps = {
10
10
  dataItems: TJSON[];
11
11
  resourceSchema?: TJSON;
12
12
  k8sResource?: {
13
- resource: string;
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
- resource: string;
20
+ plural: string;
21
21
  apiGroup?: string;
22
22
  apiVersion: string;
23
23
  };
@@ -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
- typeName: string;
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
- baseNavigationPluralName: string;
15
- baseNavigationSpecificName: string;
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
- clusterName?: string;
3
+ cluster: string;
4
4
  namespace?: string;
5
5
  baseApiGroup: string;
6
6
  baseApiVersion: string;
7
- mpResourceName: string;
8
- mpResourceKind: string;
7
+ marketplacePlural: string;
8
+ marketplaceKind: string;
9
9
  baseprefix?: string;
10
10
  standalone?: boolean;
11
11
  forceAddedMode?: boolean;
@@ -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
- clusterName?: string;
5
+ cluster: string;
6
6
  baseApiGroup: string;
7
7
  baseApiVersion: string;
8
- mpResourceName: string;
9
- mpResourceKind: string;
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>>;
@@ -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
- clusterName: string;
5
+ cluster: string;
6
6
  namespace: string;
7
7
  isEditMode?: boolean;
8
8
  onDeleteClick?: () => void;
@@ -1,28 +1,28 @@
1
- export declare const getPathToNav: ({ clusterName, namespace, type, pathToNav, typeName, apiGroup, apiVersion, baseprefix, }: {
2
- clusterName: string;
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
- typeName?: string | undefined;
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: ({ clusterName, namespace, type, pathToNav, typeName, apiGroup, apiVersion, baseprefix, }: {
12
- clusterName: string;
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
- typeName?: string | undefined;
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: ({ clusterName, namespace, type, typeName, apiGroup, apiVersion, }: {
22
- clusterName: string;
21
+ export declare const getListPath: ({ cluster, namespace, type, plural, apiGroup, apiVersion, }: {
22
+ cluster: string;
23
23
  namespace: string;
24
24
  type: string;
25
- typeName?: string | undefined;
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
- clusterName?: string;
3
+ cluster: string;
4
4
  namespace?: string;
5
5
  baseApiGroup: string;
6
6
  baseApiVersion: string;
7
7
  baseProjectApiGroup: string;
8
8
  baseProjectVersion: string;
9
- projectResourceName: string;
10
- mpResourceName: string;
9
+ projectPlural: string;
10
+ marketplacePlural: string;
11
11
  baseprefix?: string;
12
12
  accessGroups: string[];
13
13
  showZeroResources?: boolean;
@@ -8,7 +8,7 @@ type TYamlEditorSingletonProps = {
8
8
  isCreate?: boolean;
9
9
  type: 'builtin' | 'apis';
10
10
  apiGroupApiVersion: string;
11
- typeName: string;
11
+ plural: string;
12
12
  backlink?: string | null;
13
13
  designNewLayout?: boolean;
14
14
  designNewLayoutHeight?: number;
@@ -15,8 +15,8 @@ export type TRefsListProps = {
15
15
  baseFactoryClusterSceopedAPIKey: string;
16
16
  baseFactoryNamespacedBuiltinKey: string;
17
17
  baseFactoryClusterSceopedBuiltinKey: string;
18
- baseNavigationPluralName: string;
19
- baseNavigationSpecificName: string;
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
- clusterNamePartOfUrl: string;
57
- namespacePartOfUrl: string;
56
+ cluster: string;
57
+ namespace: string;
58
58
  baseApiGroup: string;
59
59
  baseApiVersion: string;
60
60
  baseProjectApiGroup: string;
61
61
  baseProjectVersion: string;
62
- projectResourceName: string;
63
- mpResourceName: string;
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
- clusterNamePartOfUrl: string;
71
- namespacePartOfUrl: string;
70
+ cluster: string;
71
+ namespace: string;
72
72
  baseApiGroup: string;
73
73
  baseApiVersion: string;
74
- mpResourceName: string;
75
- mpResourceKind: string;
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
- group?: string;
108
- version: string;
107
+ apiGroup?: string;
108
+ apiVersion: string;
109
109
  plural: string;
110
110
  namespace?: string;
111
111
  };
112
112
  pathToItems: string | string[];
113
- clusterNamePartOfUrl: string;
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
- typeName: string;
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
- clusterNamePartOfUrl: string;
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
- baseNavigationPluralName: string;
333
- baseNavigationSpecificName: string;
332
+ baseNavigationPlural: string;
333
+ baseNavigationName: string;
334
334
  };
335
335
  OwnerRefs: {
336
336
  id: number | string;
337
337
  baseprefix?: string;
338
- clusterNamePartOfUrl: string;
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
- baseNavigationPluralName: string;
359
- baseNavigationSpecificName: string;
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: ({ clusterName, namespace, apiGroup, apiVersion, typeName, specificName, labels, fields, limit, refetchInterval, isEnabled, }: {
3
- clusterName: string;
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
- typeName: string;
8
- specificName?: string | undefined;
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: ({ clusterName, namespace, apiGroup, apiVersion, typeName, entryName, refetchInterval, }: {
16
- clusterName: string;
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
- typeName: string;
21
- entryName: string;
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: ({ clusterName }: {
2
- clusterName: string;
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: ({ clusterName, apiGroup, apiVersion, }: {
19
- clusterName: string;
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: ({ clusterName, namespace, typeName, specificName, labels, fields, limit, refetchInterval, isEnabled, }: {
3
- clusterName: string;
2
+ export declare const useBuiltinResources: ({ cluster, namespace, plural, name, labels, fields, limit, refetchInterval, isEnabled, }: {
3
+ cluster: string;
4
4
  namespace?: string | undefined;
5
- typeName: string;
6
- specificName?: string | undefined;
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: ({ clusterName, namespace, typeName, entryName, refetchInterval, }: {
14
- clusterName: string;
13
+ export declare const useBuiltinResourceSingle: ({ cluster, namespace, plural, name, refetchInterval, }: {
14
+ cluster: string;
15
15
  namespace?: string | undefined;
16
- typeName: string;
17
- entryName: string;
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: ({ clusterName }: {
3
- clusterName: string;
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: ({ clusterName, apiExtensionVersion, crdName, }: {
2
- clusterName: string;
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[]>({ clusterName, namespace, apiGroup, apiVersion, crdName, refetchInterval, isEnabled, }: {
3
- clusterName: string;
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: ({ clusterName, namespace, apiGroup, apiVersion, crdName, entryName, refetchInterval, }: {
23
- clusterName: string;
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
- entryName: string;
28
+ name: string;
29
29
  refetchInterval?: number | false | undefined;
30
30
  }) => import("@tanstack/react-query/build/legacy/types").UseQueryResult<{
31
31
  metadata: {