@prorobotech/openapi-k8s-toolkit 0.0.1-alpha.97 → 0.0.1-alpha.98

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 (23) hide show
  1. package/dist/openapi-k8s-toolkit.es.js +786 -95
  2. package/dist/openapi-k8s-toolkit.es.js.map +1 -1
  3. package/dist/openapi-k8s-toolkit.umd.js +785 -94
  4. package/dist/openapi-k8s-toolkit.umd.js.map +1 -1
  5. package/dist/types/components/organisms/DynamicComponents/molecules/Taints/Taints.d.ts +6 -0
  6. package/dist/types/components/organisms/DynamicComponents/molecules/Taints/index.d.ts +1 -0
  7. package/dist/types/components/organisms/DynamicComponents/molecules/Taints/molecules/EditModal/EditModal.d.ts +17 -0
  8. package/dist/types/components/organisms/DynamicComponents/molecules/Taints/molecules/EditModal/index.d.ts +1 -0
  9. package/dist/types/components/organisms/DynamicComponents/molecules/Taints/molecules/EditModal/styled.d.ts +23 -0
  10. package/dist/types/components/organisms/DynamicComponents/molecules/Taints/molecules/index.d.ts +1 -0
  11. package/dist/types/components/organisms/DynamicComponents/molecules/Taints/types.d.ts +6 -0
  12. package/dist/types/components/organisms/DynamicComponents/molecules/Taints/utils.d.ts +9 -0
  13. package/dist/types/components/organisms/DynamicComponents/molecules/Tolerations/Tolerations.d.ts +6 -0
  14. package/dist/types/components/organisms/DynamicComponents/molecules/Tolerations/index.d.ts +1 -0
  15. package/dist/types/components/organisms/DynamicComponents/molecules/Tolerations/molecules/EditModal/EditModal.d.ts +17 -0
  16. package/dist/types/components/organisms/DynamicComponents/molecules/Tolerations/molecules/EditModal/index.d.ts +1 -0
  17. package/dist/types/components/organisms/DynamicComponents/molecules/Tolerations/molecules/EditModal/styled.d.ts +23 -0
  18. package/dist/types/components/organisms/DynamicComponents/molecules/Tolerations/molecules/index.d.ts +1 -0
  19. package/dist/types/components/organisms/DynamicComponents/molecules/Tolerations/types.d.ts +8 -0
  20. package/dist/types/components/organisms/DynamicComponents/molecules/Tolerations/utils.d.ts +8 -0
  21. package/dist/types/components/organisms/DynamicComponents/molecules/index.d.ts +2 -0
  22. package/dist/types/components/organisms/DynamicComponents/types.d.ts +35 -0
  23. package/package.json +1 -1
@@ -0,0 +1,6 @@
1
+ import { FC } from 'react';
2
+ import { TDynamicComponentsAppTypeMap } from '../../types';
3
+ export declare const Taints: FC<{
4
+ data: TDynamicComponentsAppTypeMap['Taints'];
5
+ children?: any;
6
+ }>;
@@ -0,0 +1,17 @@
1
+ import { FC } from 'react';
2
+ import { TTaintLike } from '../../types';
3
+ type TEditModalProps = {
4
+ open: boolean;
5
+ close: () => void;
6
+ values?: TTaintLike[];
7
+ openNotificationSuccess?: () => void;
8
+ modalTitle: string;
9
+ modalDescriptionText?: string;
10
+ inputLabel?: string;
11
+ endpoint: string;
12
+ pathToValue: string;
13
+ editModalWidth?: number | string;
14
+ cols: number[];
15
+ };
16
+ export declare const EditModal: FC<TEditModalProps>;
17
+ export {};
@@ -0,0 +1,23 @@
1
+ /// <reference types="react" />
2
+ export declare const ResetedFormList: import("styled-components").IStyledComponent<"web", {
3
+ prefixCls?: string | undefined;
4
+ name: string | number | (string | number)[];
5
+ rules?: import("rc-field-form/lib/interface").ValidatorRule[] | undefined;
6
+ initialValue?: any[] | undefined;
7
+ children: (fields: import("antd").FormListFieldData[], operation: import("antd").FormListOperation, meta: {
8
+ errors: import("react").ReactNode[];
9
+ warnings: import("react").ReactNode[];
10
+ }) => import("react").ReactNode;
11
+ }>;
12
+ export declare const Styled: {
13
+ ResetedFormList: import("styled-components").IStyledComponent<"web", {
14
+ prefixCls?: string | undefined;
15
+ name: string | number | (string | number)[];
16
+ rules?: import("rc-field-form/lib/interface").ValidatorRule[] | undefined;
17
+ initialValue?: any[] | undefined;
18
+ children: (fields: import("antd").FormListFieldData[], operation: import("antd").FormListOperation, meta: {
19
+ errors: import("react").ReactNode[];
20
+ warnings: import("react").ReactNode[];
21
+ }) => import("react").ReactNode;
22
+ }>;
23
+ };
@@ -0,0 +1,6 @@
1
+ export type TTaintEffect = 'NoSchedule' | 'PreferNoSchedule' | 'NoExecute';
2
+ export type TTaintLike = {
3
+ key?: string;
4
+ value?: string;
5
+ effect: TTaintEffect;
6
+ };
@@ -0,0 +1,9 @@
1
+ import { TTaintLike } from './types';
2
+ export declare const isTaintLike: (x: unknown) => x is TTaintLike;
3
+ /** Filters any unknown value to an array of valid {key?, value?, effect} objects */
4
+ export declare const filterTaintLikes: (input: unknown) => TTaintLike[];
5
+ export declare const getItemsInside: (value: any[]) => {
6
+ counter?: number;
7
+ taints?: TTaintLike[];
8
+ error?: string;
9
+ };
@@ -0,0 +1,6 @@
1
+ import { FC } from 'react';
2
+ import { TDynamicComponentsAppTypeMap } from '../../types';
3
+ export declare const Tolerations: FC<{
4
+ data: TDynamicComponentsAppTypeMap['Tolerations'];
5
+ children?: any;
6
+ }>;
@@ -0,0 +1,17 @@
1
+ import { FC } from 'react';
2
+ import { TToleration } from '../../types';
3
+ type TEditModalProps = {
4
+ open: boolean;
5
+ close: () => void;
6
+ values?: TToleration[];
7
+ openNotificationSuccess?: () => void;
8
+ modalTitle: string;
9
+ modalDescriptionText?: string;
10
+ inputLabel?: string;
11
+ endpoint: string;
12
+ pathToValue: string;
13
+ editModalWidth?: number | string;
14
+ cols: number[];
15
+ };
16
+ export declare const EditModal: FC<TEditModalProps>;
17
+ export {};
@@ -0,0 +1,23 @@
1
+ /// <reference types="react" />
2
+ export declare const ResetedFormList: import("styled-components").IStyledComponent<"web", {
3
+ prefixCls?: string | undefined;
4
+ name: string | number | (string | number)[];
5
+ rules?: import("rc-field-form/lib/interface").ValidatorRule[] | undefined;
6
+ initialValue?: any[] | undefined;
7
+ children: (fields: import("antd").FormListFieldData[], operation: import("antd").FormListOperation, meta: {
8
+ errors: import("react").ReactNode[];
9
+ warnings: import("react").ReactNode[];
10
+ }) => import("react").ReactNode;
11
+ }>;
12
+ export declare const Styled: {
13
+ ResetedFormList: import("styled-components").IStyledComponent<"web", {
14
+ prefixCls?: string | undefined;
15
+ name: string | number | (string | number)[];
16
+ rules?: import("rc-field-form/lib/interface").ValidatorRule[] | undefined;
17
+ initialValue?: any[] | undefined;
18
+ children: (fields: import("antd").FormListFieldData[], operation: import("antd").FormListOperation, meta: {
19
+ errors: import("react").ReactNode[];
20
+ warnings: import("react").ReactNode[];
21
+ }) => import("react").ReactNode;
22
+ }>;
23
+ };
@@ -0,0 +1,8 @@
1
+ export type TTolerationOperator = 'Exists' | 'Equal';
2
+ export type TTaintEffect = 'NoSchedule' | 'PreferNoSchedule' | 'NoExecute';
3
+ export type TToleration = {
4
+ key?: string;
5
+ operator?: TTolerationOperator;
6
+ value?: string;
7
+ effect?: TTaintEffect;
8
+ };
@@ -0,0 +1,8 @@
1
+ import { TToleration } from './types';
2
+ export declare const isToleration: (x: unknown) => x is TToleration;
3
+ export declare const filterTolerations: (input: unknown) => TToleration[];
4
+ export declare const getItemsInside: (value: any[]) => {
5
+ counter?: number;
6
+ tolerations?: TToleration[];
7
+ error?: string;
8
+ };
@@ -27,3 +27,5 @@ export * from './ItemCounter';
27
27
  export * from './KeyCounter';
28
28
  export * from './Labels';
29
29
  export * from './LabelsToSearchParams';
30
+ export * from './Taints';
31
+ export * from './Tolerations';
@@ -197,4 +197,39 @@ export type TDynamicComponentsAppTypeMap = {
197
197
  jsonPathToLabels: string;
198
198
  linkPrefix: string;
199
199
  } & Omit<LinkProps, 'id' | 'children' | 'href'>;
200
+ Taints: {
201
+ id: number | string;
202
+ reqIndex: string;
203
+ jsonPathToArray: string;
204
+ text: string;
205
+ errorText: string;
206
+ style?: CSSProperties;
207
+ notificationSuccessMessage?: string;
208
+ notificationSuccessMessageDescription?: string;
209
+ modalTitle?: string;
210
+ modalDescriptionText?: string;
211
+ inputLabel?: string;
212
+ containerStyle?: CSSProperties;
213
+ endpoint?: string;
214
+ pathToValue?: string;
215
+ editModalWidth?: number | string;
216
+ cols: number[];
217
+ };
218
+ Tolerations: {
219
+ id: number | string;
220
+ reqIndex: string;
221
+ jsonPathToArray: string;
222
+ text: string;
223
+ errorText: string;
224
+ containerStyle?: CSSProperties;
225
+ notificationSuccessMessage?: string;
226
+ notificationSuccessMessageDescription?: string;
227
+ modalTitle?: string;
228
+ modalDescriptionText?: string;
229
+ inputLabel?: string;
230
+ endpoint?: string;
231
+ pathToValue?: string;
232
+ editModalWidth?: number | string;
233
+ cols: number[];
234
+ };
200
235
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prorobotech/openapi-k8s-toolkit",
3
- "version": "0.0.1-alpha.97",
3
+ "version": "0.0.1-alpha.98",
4
4
  "description": "ProRobotech OpenAPI k8s tools",
5
5
  "main": "dist/openapi-k8s-toolkit.cjs.js",
6
6
  "module": "dist/openapi-k8s-toolkit.es.js",