@prorobotech/openapi-k8s-toolkit 1.2.0-alpha.14 → 1.2.0-alpha.16
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/mockServiceWorker.js +349 -0
- package/dist/openapi-k8s-toolkit.es.js +29795 -179
- package/dist/openapi-k8s-toolkit.es.js.map +1 -1
- package/dist/openapi-k8s-toolkit.umd.js +30149 -516
- package/dist/openapi-k8s-toolkit.umd.js.map +1 -1
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/PrometheusGraph.d.ts +6 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/atoms/WidthHeightDiv/WidthHeightDiv.d.ts +7 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/atoms/WidthHeightDiv/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/atoms/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/hooks/index.d.ts +3 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/hooks/queryRangeMatrix/index.d.ts +2 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/hooks/queryRangeMatrix/multi/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/hooks/queryRangeMatrix/multi/usePromMatrixToLineMulti.d.ts +8 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/hooks/queryRangeMatrix/single/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/hooks/queryRangeMatrix/single/usePromMatrixToLineSingle.d.ts +8 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/hooks/queryScalar/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/hooks/queryScalar/usePromScalar.d.ts +7 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/hooks/queryScalar/usePromScalar.test.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/hooks/queryVector/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/hooks/queryVector/usePromVector.d.ts +7 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/hooks/queryVector/usePromVector.test.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/organisms/index.d.ts +3 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/organisms/matrix/MatrixToAreaMulti/MatrixToAreaMulti.d.ts +3 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/organisms/matrix/MatrixToAreaMulti/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/organisms/matrix/MatrixToAreaSingle/MatrixToAreaSingle.d.ts +3 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/organisms/matrix/MatrixToAreaSingle/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/organisms/matrix/MatrixToAreaStacked/MatrixToAreaStacked.d.ts +3 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/organisms/matrix/MatrixToAreaStacked/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/organisms/matrix/MatrixToLineMulti/MatrixToLineMulti.d.ts +3 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/organisms/matrix/MatrixToLineMulti/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/organisms/matrix/MatrixToLineSingle/MatrixToLineSingle.d.ts +3 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/organisms/matrix/MatrixToLineSingle/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/organisms/matrix/MatrixToReducedBar/MatrixToReducedBar.d.ts +3 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/organisms/matrix/MatrixToReducedBar/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/organisms/matrix/MatrixToTableRows/MatrixToTableRows.d.ts +3 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/organisms/matrix/MatrixToTableRows/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/organisms/matrix/index.d.ts +7 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/organisms/scalar/ScalarToGauge/ScalarToGauge.d.ts +3 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/organisms/scalar/ScalarToGauge/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/organisms/scalar/ScalarToStat/ScalarToStat.d.ts +3 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/organisms/scalar/ScalarToStat/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/organisms/scalar/index.d.ts +2 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/organisms/vector/VectorToBarGauge/VectorToBarGauge.d.ts +3 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/organisms/vector/VectorToBarGauge/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/organisms/vector/VectorToBarHorizontal/VectorToBarHorizontal.d.ts +3 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/organisms/vector/VectorToBarHorizontal/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/organisms/vector/VectorToBarVertical/VectorToBarVertical.d.ts +3 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/organisms/vector/VectorToBarVertical/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/organisms/vector/VectorToGaugeRadial/VectorToGaugeRadial.d.ts +3 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/organisms/vector/VectorToGaugeRadial/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/organisms/vector/VectorToPie/VectorToPie.d.ts +3 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/organisms/vector/VectorToPie/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/organisms/vector/VectorToTableRows/VectorToTableRows.d.ts +3 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/organisms/vector/VectorToTableRows/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/organisms/vector/index.d.ts +6 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/types/chartsProps.d.ts +46 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/types/index.d.ts +2 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/types/responses.d.ts +27 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/utils/{prometheus.d.ts → buildPrometheusRangeParams/buildPrometheusRangeParams.d.ts} +2 -2
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/utils/buildPrometheusRangeParams/index.d.ts +2 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/utils/formatters/formatBytes.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/utils/formatters/formatTimestamp.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/utils/formatters/index.d.ts +2 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/utils/index.d.ts +9 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/utils/matrixAdapter/index.d.ts +8 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/utils/matrixAdapter/toAreaStacked/index.d.ts +2 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/utils/matrixAdapter/toAreaStacked/matrixToAreaStackedAdapter.d.ts +14 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/utils/matrixAdapter/toLine/index.d.ts +2 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/utils/matrixAdapter/toLine/matrixToLineAdapter.d.ts +12 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/utils/matrixAdapter/toLine/matrixToLineAdapter.test.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/utils/matrixAdapter/toReducedVector/index.d.ts +2 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/utils/matrixAdapter/toReducedVector/matrixToReducedVectorAdapter.d.ts +8 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/utils/matrixAdapter/toReducedVector/matrixToReducedVectorAdapter.test.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/utils/matrixAdapter/toTableRows/index.d.ts +2 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/utils/matrixAdapter/toTableRows/matrixToTableRowsAdapter.d.ts +12 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/utils/matrixAdapter/toTableRows/matrixToTableRowsAdapter.test.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/utils/scalarAdapter/index.d.ts +4 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/utils/scalarAdapter/toGauge/index.d.ts +2 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/utils/scalarAdapter/toGauge/scalarToGaugeAdapter.d.ts +15 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/utils/scalarAdapter/toGauge/scalarToGaugeAdapter.test.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/utils/scalarAdapter/toStat/index.d.ts +2 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/utils/scalarAdapter/toStat/scalarToStatAdapter.d.ts +11 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/utils/scalarAdapter/toStat/scalarToStatAdapter.test.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/utils/vectorAdapter/helpers/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/utils/vectorAdapter/helpers/pickSeriesId.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/utils/vectorAdapter/helpers/pickSeriesId.test.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/utils/vectorAdapter/index.d.ts +10 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/utils/vectorAdapter/prometheusVectorUtils.test.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/utils/vectorAdapter/toBar/index.d.ts +2 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/utils/vectorAdapter/toBar/vectorToBarAdapter.d.ts +18 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/utils/vectorAdapter/toBarGauge/index.d.ts +2 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/utils/vectorAdapter/toBarGauge/vectorToBarGaugeAdapter.d.ts +7 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/utils/vectorAdapter/toGaugeRadial/index.d.ts +2 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/utils/vectorAdapter/toGaugeRadial/vectorToGaugeRadialAdapter.d.ts +7 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/utils/vectorAdapter/toPie/index.d.ts +2 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/utils/vectorAdapter/toPie/vectorToPieAdapter.d.ts +7 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/utils/vectorAdapter/toTableRows/index.d.ts +2 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/utils/vectorAdapter/toTableRows/vectorToTableRowsAdapter.d.ts +8 -0
- package/dist/types/components/organisms/DynamicComponents/molecules/index.d.ts +1 -0
- package/dist/types/components/organisms/DynamicComponents/types.d.ts +17 -0
- package/package.json +9 -2
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/MemoryChart.d.ts +0 -6
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/MemoryChartMulti.d.ts +0 -6
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/hooks/usePrometheusQueryRange.d.ts +0 -7
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/hooks/usePrometheusQueryRangeMulti.d.ts +0 -7
- package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/utils/prometheusAdapter.d.ts +0 -21
- /package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/hooks/{usePrometheusQueryRange.test.d.ts → queryRangeMatrix/multi/usePromMatrixToLineMulti.test.d.ts} +0 -0
- /package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/hooks/{usePrometheusQueryRangeMulti.test.d.ts → queryRangeMatrix/single/usePromMatrixToLineSingle.test.d.ts} +0 -0
- /package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/utils/{prometheus.test.d.ts → buildPrometheusRangeParams/buildPrometheusRangeParams.test.d.ts} +0 -0
- /package/dist/types/components/organisms/DynamicComponents/molecules/PrometheusGraph/utils/{prometheusAdapter.test.d.ts → matrixAdapter/toAreaStacked/matrixToAreaStackedAdapter.test.d.ts} +0 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { TPrometheusVectorResponse } from '../../../types';
|
|
2
|
+
export type TTableRow = {
|
|
3
|
+
id: string;
|
|
4
|
+
value: number;
|
|
5
|
+
timestamp: number;
|
|
6
|
+
metric: Record<string, string>;
|
|
7
|
+
};
|
|
8
|
+
export declare const vectorToTableRows: (resp: TPrometheusVectorResponse) => TTableRow[];
|
|
@@ -157,6 +157,8 @@ export type TDynamicComponentsAppTypeMap = {
|
|
|
157
157
|
VisibilityContainer: {
|
|
158
158
|
id: number | string;
|
|
159
159
|
value: string;
|
|
160
|
+
criteria?: 'equals' | 'notEquals' | 'exists' | 'notExists';
|
|
161
|
+
valueToCompare?: string | string[];
|
|
160
162
|
};
|
|
161
163
|
ArrayOfObjectsToKeyValues: {
|
|
162
164
|
id: number | string;
|
|
@@ -430,4 +432,19 @@ export type TDynamicComponentsAppTypeMap = {
|
|
|
430
432
|
forcedFullWsPath?: string;
|
|
431
433
|
substractHeight?: number;
|
|
432
434
|
};
|
|
435
|
+
PrometheusGraph: {
|
|
436
|
+
id: number | string;
|
|
437
|
+
type: 'MatrixToAreaMulti' | 'MatrixToAreaSingle' | 'MatrixToAreaStacked' | 'MatrixToLineMulti' | 'MatrixToLineSingle' | 'MatrixToReducedBar' | 'MatrixToTableRows' | 'VectorToBarGauge' | 'VectorToBarHorizontal' | 'VectorToBarVertical' | 'VectorToGaugeRadial' | 'VectorToPie' | 'VectorToTableRows' | 'ScalarToGauge' | 'ScalarToStat';
|
|
438
|
+
width?: CSSProperties['width'];
|
|
439
|
+
height?: CSSProperties['height'];
|
|
440
|
+
baseUrl?: string;
|
|
441
|
+
query?: string;
|
|
442
|
+
refetchInterval?: number | false;
|
|
443
|
+
range?: string;
|
|
444
|
+
title?: string;
|
|
445
|
+
min?: number;
|
|
446
|
+
max?: number;
|
|
447
|
+
mode?: 'last' | 'avg' | 'sum' | 'max' | 'min';
|
|
448
|
+
topN?: number;
|
|
449
|
+
};
|
|
433
450
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prorobotech/openapi-k8s-toolkit",
|
|
3
|
-
"version": "1.2.0-alpha.
|
|
3
|
+
"version": "1.2.0-alpha.16",
|
|
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",
|
|
@@ -96,6 +96,8 @@
|
|
|
96
96
|
"jest": "29.7.0",
|
|
97
97
|
"jest-environment-jsdom": "29.7.0",
|
|
98
98
|
"jest-styled-components": "^7.2.0",
|
|
99
|
+
"msw": "2.12.4",
|
|
100
|
+
"msw-storybook-addon": "2.0.6",
|
|
99
101
|
"postcss": "8.5.2",
|
|
100
102
|
"postcss-styled-syntax": "0.7.1",
|
|
101
103
|
"prettier": "3.0.2",
|
|
@@ -127,5 +129,10 @@
|
|
|
127
129
|
},
|
|
128
130
|
"keywords": [],
|
|
129
131
|
"author": "",
|
|
130
|
-
"license": "MIT"
|
|
132
|
+
"license": "MIT",
|
|
133
|
+
"msw": {
|
|
134
|
+
"workerDirectory": [
|
|
135
|
+
"public"
|
|
136
|
+
]
|
|
137
|
+
}
|
|
131
138
|
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { ChartPoint } from '../utils/prometheusAdapter';
|
|
2
|
-
export declare const usePrometheusQueryRange: ({ query, range, refetchInterval, enabled, }: {
|
|
3
|
-
query: string;
|
|
4
|
-
range?: string | undefined;
|
|
5
|
-
refetchInterval?: number | false | undefined;
|
|
6
|
-
enabled?: boolean | undefined;
|
|
7
|
-
}) => import("@tanstack/react-query/build/legacy/types").UseQueryResult<ChartPoint[], Error>;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { RechartsSeries } from '../utils/prometheusAdapter';
|
|
2
|
-
export declare const usePrometheusQueryRangeMulti: ({ query, range, refetchInterval, enabled, }: {
|
|
3
|
-
query: string;
|
|
4
|
-
range?: string | undefined;
|
|
5
|
-
refetchInterval?: number | false | undefined;
|
|
6
|
-
enabled?: boolean | undefined;
|
|
7
|
-
}) => import("@tanstack/react-query/build/legacy/types").UseQueryResult<RechartsSeries[], Error>;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export type PrometheusRangeResponse = {
|
|
2
|
-
status: 'success' | 'error';
|
|
3
|
-
data: {
|
|
4
|
-
resultType: 'matrix';
|
|
5
|
-
result: {
|
|
6
|
-
metric: Record<string, string>;
|
|
7
|
-
values: [number, string][];
|
|
8
|
-
}[];
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
export type ChartPoint = {
|
|
12
|
-
timestamp: number;
|
|
13
|
-
value: number;
|
|
14
|
-
};
|
|
15
|
-
export declare const prometheusToRechartsSingle: (resp: PrometheusRangeResponse) => ChartPoint[];
|
|
16
|
-
export type RechartsSeries = {
|
|
17
|
-
id: string;
|
|
18
|
-
metric: Record<string, string>;
|
|
19
|
-
data: ChartPoint[];
|
|
20
|
-
};
|
|
21
|
-
export declare const prometheusToRechartsMulti: (resp: PrometheusRangeResponse) => RechartsSeries[];
|
|
File without changes
|
|
File without changes
|
|
File without changes
|