@dexteel/mesf-core 7.5.2 → 7.6.0

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.
@@ -0,0 +1,2 @@
1
+ import React from "react";
2
+ export declare const SPExecutorPage: () => React.JSX.Element;
@@ -0,0 +1,9 @@
1
+ import React from "react";
2
+ import type { ParameterFormState, SPParameter } from "../models/SPExecutorModels";
3
+ type Props = {
4
+ parameters: SPParameter[];
5
+ onExecute: (params: ParameterFormState[]) => void;
6
+ isExecuting: boolean;
7
+ };
8
+ export declare const DynamicParameterForm: ({ parameters, onExecute, isExecuting, }: Props) => React.JSX.Element;
9
+ export {};
@@ -0,0 +1,6 @@
1
+ import React, { type ReactNode } from "react";
2
+ type Props = {
3
+ children: ReactNode;
4
+ };
5
+ export declare const PinGate: ({ children }: Props) => React.JSX.Element;
6
+ export {};
@@ -0,0 +1,9 @@
1
+ import React from "react";
2
+ import type { ExecutionResult } from "../models/SPExecutorModels";
3
+ type Props = {
4
+ results: ExecutionResult[];
5
+ onDeleteResult: (id: string) => void;
6
+ onClearAll: () => void;
7
+ };
8
+ export declare const ResultsList: ({ results, onDeleteResult, onClearAll }: Props) => React.JSX.Element;
9
+ export {};
@@ -0,0 +1,11 @@
1
+ import React from "react";
2
+ import type { StoredProcedure } from "../models/SPExecutorModels";
3
+ type Props = {
4
+ procedures: StoredProcedure[];
5
+ value: StoredProcedure | null;
6
+ onChange: (value: StoredProcedure | null) => void;
7
+ isLoading: boolean;
8
+ disabled?: boolean;
9
+ };
10
+ export declare const SPAutocomplete: ({ procedures, value, onChange, isLoading, disabled, }: Props) => React.JSX.Element;
11
+ export {};
@@ -0,0 +1,2 @@
1
+ export { SPExecutorPage } from "./SPExecutorPage";
2
+ export type { ExecutionResult, ParameterFormState, SPParameter, StoredProcedure, } from "./models/SPExecutorModels";
@@ -0,0 +1,37 @@
1
+ export interface StoredProcedure {
2
+ SchemaName: string;
3
+ ProcedureName: string;
4
+ FullName: string;
5
+ }
6
+ export interface SPParameter {
7
+ FullName: string;
8
+ ParameterName: string;
9
+ DataType: string;
10
+ MaxLength: number;
11
+ Precision: number;
12
+ Scale: number;
13
+ IsOptional: boolean;
14
+ HasDefault: boolean;
15
+ ParameterOrder: number;
16
+ }
17
+ export interface ParameterFormState {
18
+ parameterName: string;
19
+ include: boolean;
20
+ sendAsNull: boolean;
21
+ value: any;
22
+ dataType: string;
23
+ isOptional: boolean;
24
+ }
25
+ export interface ExecutionResult {
26
+ id: string;
27
+ procedureName: string;
28
+ parameters: {
29
+ name: string;
30
+ value: any;
31
+ }[];
32
+ timestamp: Date;
33
+ duration: number;
34
+ data: any;
35
+ isError: boolean;
36
+ errorMessage?: string;
37
+ }
@@ -0,0 +1,3 @@
1
+ import { type spParameter } from "../../../services";
2
+ export declare const getStoredProceduresWithParameters: (schemaFilter?: string) => Promise<import("../../../services").ResponseMESF>;
3
+ export declare const executeStoredProcedure: (procedureName: string, parameters: spParameter[]) => Promise<import("../../../services").ResponseMESF>;
@@ -0,0 +1,11 @@
1
+ import React from "react";
2
+ import type { ViewTagsMap } from "../../models/TrendingModelsV2";
3
+ interface Props {
4
+ open: boolean;
5
+ handleClose: () => void;
6
+ viewTags: ViewTagsMap;
7
+ onAddBits: (sourceTagId: number, bitIndices: number[]) => void;
8
+ existingBitTags: Set<string>;
9
+ }
10
+ export declare const BitSelectorModal: ({ open, handleClose, viewTags, onAddBits, existingBitTags, }: Props) => React.JSX.Element;
11
+ export {};
@@ -10,6 +10,9 @@ export interface ViewTag {
10
10
  Unit: string;
11
11
  TagType: "A" | "D";
12
12
  TagTypeCode?: string;
13
+ SourceTagId?: number;
14
+ BitIndex?: number;
15
+ IsBitExtracted?: boolean;
13
16
  }
14
17
  export interface View {
15
18
  ViewId: number;
@@ -85,6 +88,9 @@ export interface TagTableRow {
85
88
  max: number;
86
89
  overallMin: number;
87
90
  overallMax: number;
91
+ isBitExtracted?: boolean;
92
+ sourceTagId?: number;
93
+ bitIndex?: number;
88
94
  }
89
95
  export interface TagFromTree {
90
96
  Tagkey: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dexteel/mesf-core",
3
- "version": "7.5.2",
3
+ "version": "7.6.0",
4
4
  "author": "Dexteel Team",
5
5
  "module": "dist/index.esm.js",
6
6
  "typings": "dist/index.d.ts",