@prorobotech/openapi-k8s-toolkit 1.1.0-alpha.12 → 1.1.0-alpha.14
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 +374 -385
- package/dist/openapi-k8s-toolkit.es.js.map +1 -1
- package/dist/openapi-k8s-toolkit.umd.js +374 -385
- 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 +22 -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
|
@@ -2,8 +2,8 @@ import { AxiosError } from 'axios';
|
|
|
2
2
|
import { TSingleResource } from '../localTypes/k8s';
|
|
3
3
|
export type TUseK8sSmartResourceParams<T> = {
|
|
4
4
|
cluster: string;
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
apiGroup?: string;
|
|
6
|
+
apiVersion: string;
|
|
7
7
|
plural: string;
|
|
8
8
|
namespace?: string;
|
|
9
9
|
fieldSelector?: string;
|
|
@@ -25,5 +25,5 @@ type SmartResult<T> = {
|
|
|
25
25
|
used: 'list' | 'watch' | 'disabled' | 'verbs-loading' | 'verbs-error';
|
|
26
26
|
};
|
|
27
27
|
};
|
|
28
|
-
export declare const useK8sSmartResource: <T>({ cluster,
|
|
28
|
+
export declare const useK8sSmartResource: <T>({ cluster, apiGroup, apiVersion, plural, namespace, fieldSelector, labelSelector, isEnabled, listRefetchInterval, limit, mapListWatchState, }: TUseK8sSmartResourceParams<T>) => SmartResult<T>;
|
|
29
29
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export declare const usePermissions: ({
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
export declare const usePermissions: ({ cluster, namespace, apiGroup, plural, verb, name, refetchInterval, enabler, }: {
|
|
2
|
+
cluster: string;
|
|
3
|
+
apiGroup?: string | undefined;
|
|
4
|
+
plural: string;
|
|
5
5
|
namespace?: string | undefined;
|
|
6
6
|
name?: string | undefined;
|
|
7
7
|
verb: 'create' | 'delete' | 'patch' | 'update';
|
|
@@ -5,24 +5,24 @@ import { TFormPrefill } from '../formExtensions';
|
|
|
5
5
|
export type TPrepareFormReq = {
|
|
6
6
|
data: {
|
|
7
7
|
type: 'builtin';
|
|
8
|
-
|
|
8
|
+
plural: string;
|
|
9
9
|
prefillValuesSchema?: TJSON;
|
|
10
10
|
prefillValueNamespaceOnly?: string;
|
|
11
11
|
} | {
|
|
12
12
|
type: 'apis';
|
|
13
13
|
apiGroup: string;
|
|
14
14
|
apiVersion: string;
|
|
15
|
-
|
|
15
|
+
plural: string;
|
|
16
16
|
prefillValuesSchema?: TJSON;
|
|
17
17
|
prefillValueNamespaceOnly?: string;
|
|
18
18
|
};
|
|
19
|
-
|
|
19
|
+
cluster: string;
|
|
20
20
|
customizationId?: string;
|
|
21
21
|
};
|
|
22
22
|
export type TPrepareFormRes = {
|
|
23
23
|
result: 'error';
|
|
24
24
|
error: string | undefined;
|
|
25
|
-
|
|
25
|
+
kind: string | undefined;
|
|
26
26
|
fallbackToManualMode: true;
|
|
27
27
|
isNamespaced: boolean;
|
|
28
28
|
} | {
|
|
@@ -35,7 +35,7 @@ export type TPrepareFormRes = {
|
|
|
35
35
|
expandedPaths: string[][] | undefined;
|
|
36
36
|
persistedPaths: string[][] | undefined;
|
|
37
37
|
sortPaths: string[][] | undefined;
|
|
38
|
-
|
|
38
|
+
kind: string | undefined;
|
|
39
39
|
isNamespaced: boolean;
|
|
40
40
|
formPrefills?: TFormPrefill;
|
|
41
41
|
namespacesData?: string[];
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { TApiGroupResourceTypeList, TBuiltinResourceTypeList } from '../k8s';
|
|
2
2
|
export type TCheckIfApiInstanceNamespaceScopedReq = {
|
|
3
|
-
|
|
3
|
+
plural: string;
|
|
4
4
|
apiGroup: string;
|
|
5
5
|
apiVersion: string;
|
|
6
|
-
|
|
6
|
+
cluster: string;
|
|
7
7
|
};
|
|
8
8
|
export type TCheckIfApiInstanceNamespaceScopedRes = {
|
|
9
9
|
isClusterWide: boolean;
|
|
10
10
|
isNamespaceScoped: boolean;
|
|
11
11
|
};
|
|
12
12
|
export type TCheckIfBuiltInInstanceNamespaceScopedReq = {
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
plural: string;
|
|
14
|
+
cluster: string;
|
|
15
15
|
};
|
|
16
16
|
export type TCheckIfBuiltInInstanceNamespaceScopedRes = {
|
|
17
17
|
isClusterWide: boolean;
|
|
@@ -22,12 +22,12 @@ export type TFilterIfApiInstanceNamespaceScopedReq = {
|
|
|
22
22
|
data?: TApiGroupResourceTypeList;
|
|
23
23
|
apiGroup: string;
|
|
24
24
|
apiVersion: string;
|
|
25
|
-
|
|
25
|
+
cluster: string;
|
|
26
26
|
};
|
|
27
27
|
export type TFilterIfApiInstanceNamespaceScopedRes = TApiGroupResourceTypeList['resources'] | undefined;
|
|
28
28
|
export type TFilterIfBuiltInInstanceNamespaceScopedReq = {
|
|
29
29
|
namespace?: string;
|
|
30
30
|
data?: TBuiltinResourceTypeList;
|
|
31
|
-
|
|
31
|
+
cluster: string;
|
|
32
32
|
};
|
|
33
33
|
export type TFilterIfBuiltInInstanceNamespaceScopedRes = TBuiltinResourceTypeList['resources'] | undefined;
|
|
@@ -3,10 +3,10 @@ export type TPrepareTableReq = {
|
|
|
3
3
|
customizationId?: string;
|
|
4
4
|
tableMappingsReplaceValues?: Record<string, string | undefined>;
|
|
5
5
|
forceDefaultAdditionalPrinterColumns?: TAdditionalPrinterColumns;
|
|
6
|
-
|
|
6
|
+
cluster: string;
|
|
7
7
|
namespace?: string;
|
|
8
8
|
k8sResource?: {
|
|
9
|
-
|
|
9
|
+
plural: string;
|
|
10
10
|
apiGroup?: string;
|
|
11
11
|
apiVersion: string;
|
|
12
12
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TApiGroupList, TBuiltinResourceTypeList } from '../../localTypes/k8s';
|
|
2
|
-
export declare const getGroupsByCategory: ({
|
|
3
|
-
|
|
2
|
+
export declare const getGroupsByCategory: ({ cluster, apiGroupListData, builtinResourceTypesData, namespace, noncrds, }: {
|
|
3
|
+
cluster: string;
|
|
4
4
|
namespace?: string | undefined;
|
|
5
5
|
apiGroupListData?: {
|
|
6
6
|
apiVersion: string;
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
export declare const getBackLinkToTable: ({ fullPath }: {
|
|
2
2
|
fullPath: string;
|
|
3
3
|
}) => string;
|
|
4
|
-
export declare const getLinkToBuiltinForm: ({ cluster, baseprefix, namespace, syntheticProject,
|
|
4
|
+
export declare const getLinkToBuiltinForm: ({ cluster, baseprefix, namespace, syntheticProject, plural, inside, fullPath, }: {
|
|
5
5
|
cluster: string;
|
|
6
6
|
baseprefix?: string | undefined;
|
|
7
7
|
namespace?: string | undefined;
|
|
8
8
|
syntheticProject?: string | undefined;
|
|
9
|
-
|
|
9
|
+
plural: string;
|
|
10
10
|
inside?: boolean | undefined;
|
|
11
11
|
fullPath: string;
|
|
12
12
|
}) => string;
|
|
13
|
-
export declare const getLinkToApiForm: ({ cluster, baseprefix, namespace, syntheticProject, apiGroup, apiVersion,
|
|
13
|
+
export declare const getLinkToApiForm: ({ cluster, baseprefix, namespace, syntheticProject, apiGroup, apiVersion, plural, inside, fullPath, }: {
|
|
14
14
|
cluster: string;
|
|
15
15
|
baseprefix?: string | undefined;
|
|
16
16
|
namespace?: string | undefined;
|
|
17
17
|
syntheticProject?: string | undefined;
|
|
18
18
|
apiGroup?: string | undefined;
|
|
19
19
|
apiVersion?: string | undefined;
|
|
20
|
-
|
|
20
|
+
plural: string;
|
|
21
21
|
inside?: boolean | undefined;
|
|
22
22
|
fullPath: string;
|
|
23
23
|
searchMount?: boolean | undefined;
|
|
@@ -29,7 +29,7 @@ export declare const getLinkToForm: ({ apiGroup, ...rest }: {
|
|
|
29
29
|
syntheticProject?: string | undefined;
|
|
30
30
|
apiGroup?: string | undefined;
|
|
31
31
|
apiVersion?: string | undefined;
|
|
32
|
-
|
|
32
|
+
plural: string;
|
|
33
33
|
inside?: boolean | undefined;
|
|
34
34
|
fullPath: string;
|
|
35
35
|
searchMount?: boolean | undefined;
|
package/package.json
CHANGED