@guihz/trading-vue-editor-tes 0.0.87 → 0.0.89

Sign up to get free protection for your applications and to get access to all the features.
@@ -15,9 +15,10 @@ import BuildInLinefill, { TLinefill, Linefill } from "./linefill";
15
15
  import BuildInBox, { IBoxArgs, Box } from "./box";
16
16
  import BuildInTable, { ITableArgs, Table } from "./table";
17
17
  import Strategy, { IOrder, IStrategy } from './strategy';
18
+ import Request from './request';
18
19
  import { Log } from './log';
19
20
  import { Runtime } from './runtime';
20
21
  export { TccErrorListener } from './errorListener';
21
22
  export type { IColorArgs } from './color';
22
- export { BuildInArray, BuildInMath, BuildInTa, BuildInInput, BuildInColor, BuildInMatrix, ChartPoint, Point, BuildInTimeframe, BuildInStr, BuildInMap, PseudoArray, BuildInLabel, BuildInPolyline, BuildInLine, Label, Polyline, Line, BuildInLinefill, Linefill, BuildInBox, Box, BuildInTable, Table, Log, Runtime, Strategy };
23
+ export { BuildInArray, BuildInMath, BuildInTa, BuildInInput, BuildInColor, BuildInMatrix, ChartPoint, Point, BuildInTimeframe, BuildInStr, BuildInMap, PseudoArray, BuildInLabel, BuildInPolyline, BuildInLine, Label, Polyline, Line, BuildInLinefill, Linefill, BuildInBox, Box, BuildInTable, Table, Log, Runtime, Strategy, Request };
23
24
  export type { PartialLabelArgs, IPolyline, ILineArgs, TLinefill, IBoxArgs, ITableArgs, IOrder, IStrategy };
@@ -0,0 +1,22 @@
1
+ import { BuiltInVariables } from "../buildInVariables";
2
+ import { VBarmergeGaps } from "../enum";
3
+ interface IRequestArgs {
4
+ symbol: string;
5
+ timeframe: string;
6
+ expression: string;
7
+ gaps?: VBarmergeGaps;
8
+ lookahead?: VBarmergeGaps;
9
+ ignore_invalid_symbol?: boolean;
10
+ currency?: string;
11
+ calc_bars_count?: number;
12
+ paramsExpr?: string[];
13
+ }
14
+ export default class Request {
15
+ private _variables;
16
+ private _scriptId;
17
+ constructor(variables: BuiltInVariables, id: string);
18
+ security(args: IRequestArgs, posStr: string): any;
19
+ private _getDependCodes;
20
+ private _runScripts;
21
+ }
22
+ export {};
@@ -6,6 +6,7 @@ export default class ParseToJs {
6
6
  private _prefixNameConst;
7
7
  private _userTypes;
8
8
  private _isInFunc;
9
+ private _currentFuncName?;
9
10
  private _varlist;
10
11
  private _memberIndexList;
11
12
  private _blockCount;
@@ -13,7 +14,6 @@ export default class ParseToJs {
13
14
  private _count;
14
15
  private _codesCol;
15
16
  private _dependsObj;
16
- private _currentParams;
17
17
  constructor(prefix: string);
18
18
  preParser(values: IKeyObjectValue[]): string | undefined;
19
19
  parser(values: IKeyObjectValue[]): string | undefined;
@@ -51,9 +51,9 @@ export default class ParseToJs {
51
51
  private _parserMethodExpression;
52
52
  private _parserMethodElement;
53
53
  private _parserArguments;
54
+ private _requestParamsHandle;
54
55
  private _getExpressionContext;
55
56
  private _getDependsCode;
56
57
  private _parserBrackethesized;
57
58
  private _functionalProcess;
58
- private _parserRequestArrowMethod;
59
59
  }