@prorobotech/openapi-k8s-toolkit 1.4.0-alpha.14 → 1.4.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.
@@ -2,10 +2,11 @@ import React from 'react';
2
2
  import type { TActionUnion, TEvictActionProps } from '../../../../types/ActionsDropdown';
3
3
  import type { TDeleteChildrenModalData, TDrainResponse, TEvictModalData, TParseContext } from './types';
4
4
  export declare const parseValueIfString: (value: unknown, ctx: TParseContext) => unknown;
5
- /**
6
- * Resolves a multiQuery template path like "{reqs[0]['spec','jobTemplate']}" to the actual JS object.
7
- */
8
- export declare const resolveObjectFromTemplate: (template: string, multiQueryData: Record<string, unknown>) => unknown;
5
+ export declare const resolveObjectByReqIndexAndJsonPath: ({ reqIndex, jsonPathToObj, multiQueryData, }: {
6
+ reqIndex: string;
7
+ jsonPathToObj: string;
8
+ multiQueryData: Record<string, unknown>;
9
+ }) => Record<string, unknown> | undefined;
9
10
  export declare const buildEvictModalData: (props: TEvictActionProps, ctx: TParseContext) => TEvictModalData;
10
11
  export declare const buildEvictBody: (data: TEvictModalData) => {
11
12
  deleteOptions?: Record<string, unknown> | undefined;
@@ -1,3 +1,3 @@
1
1
  export { useActionsDropdownHandlers } from './useActionsDropdownHandlers';
2
2
  export type { TCreateFromFilesModalData, TDeleteChildrenModalData, TDrainModalData, TDrainResponse, TEvictModalData, TParseContext, TRerunModalData, TRollbackModalData, TScaleModalData, } from './types';
3
- export { buildDeleteChildrenData, buildEvictBody, buildEvictModalData, parseValueIfString, stripMetadataForRerun, } from './helpers';
3
+ export { buildDeleteChildrenData, buildEvictBody, buildEvictModalData, parseValueIfString, resolveObjectByReqIndexAndJsonPath, stripMetadataForRerun, } from './helpers';
@@ -81,7 +81,8 @@ export type TScaleActionProps = TActionBaseProps & {
81
81
  export type TTriggerRunActionProps = TActionBaseProps & {
82
82
  createEndpoint: string;
83
83
  cronJobName: string;
84
- jobTemplate: string;
84
+ reqIndex: string;
85
+ jsonPathToObj: string;
85
86
  };
86
87
  export type TDeleteChildrenActionProps = TActionBaseProps & {
87
88
  children: string;
@@ -89,8 +90,9 @@ export type TDeleteChildrenActionProps = TActionBaseProps & {
89
90
  };
90
91
  export type TRerunLastActionProps = TActionBaseProps & {
91
92
  createEndpoint: string;
92
- sourceJobSpec: string;
93
93
  sourceJobName: string;
94
+ reqIndex: string;
95
+ jsonPathToObj: string;
94
96
  };
95
97
  export type TDrainActionProps = TActionBaseProps & {
96
98
  bffEndpoint: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prorobotech/openapi-k8s-toolkit",
3
- "version": "1.4.0-alpha.14",
3
+ "version": "1.4.0-alpha.15",
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",