@abaplint/runtime 2.7.90 → 2.7.91
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/build/src/abap_regex.d.ts +4 -0
- package/build/src/binary_search.d.ts +7 -0
- package/build/src/builtin/abs.d.ts +5 -0
- package/build/src/builtin/boolc.d.ts +4 -0
- package/build/src/builtin/ceil.d.ts +5 -0
- package/build/src/builtin/concat_lines_of.d.ts +7 -0
- package/build/src/builtin/condense.d.ts +9 -0
- package/build/src/builtin/contains.d.ts +15 -0
- package/build/src/builtin/cos.d.ts +5 -0
- package/build/src/builtin/count.d.ts +12 -0
- package/build/src/builtin/count_any_of.d.ts +8 -0
- package/build/src/builtin/escape.d.ts +7 -0
- package/build/src/builtin/find.d.ts +13 -0
- package/build/src/builtin/floor.d.ts +5 -0
- package/build/src/builtin/frac.d.ts +6 -0
- package/build/src/builtin/index.d.ts +54 -0
- package/build/src/builtin/insert.d.ts +9 -0
- package/build/src/builtin/ipow.d.ts +6 -0
- package/build/src/builtin/lines.d.ts +4 -0
- package/build/src/builtin/match.d.ts +5 -0
- package/build/src/builtin/matches.d.ts +6 -0
- package/build/src/builtin/nmax.d.ts +14 -0
- package/build/src/builtin/nmin.d.ts +14 -0
- package/build/src/builtin/numofchar.d.ts +5 -0
- package/build/src/builtin/repeat.d.ts +6 -0
- package/build/src/builtin/replace.d.ts +13 -0
- package/build/src/builtin/reverse.d.ts +5 -0
- package/build/src/builtin/round.d.ts +8 -0
- package/build/src/builtin/segment.d.ts +8 -0
- package/build/src/builtin/shift_left.d.ts +9 -0
- package/build/src/builtin/shift_right.d.ts +9 -0
- package/build/src/builtin/sign.d.ts +5 -0
- package/build/src/builtin/sin.d.ts +5 -0
- package/build/src/builtin/sqrt.d.ts +5 -0
- package/build/src/builtin/strlen.d.ts +5 -0
- package/build/src/builtin/substring.d.ts +8 -0
- package/build/src/builtin/substring_after.d.ts +6 -0
- package/build/src/builtin/substring_before.d.ts +6 -0
- package/build/src/builtin/sy.d.ts +2 -0
- package/build/src/builtin/tan.d.ts +5 -0
- package/build/src/builtin/to_lower.d.ts +4 -0
- package/build/src/builtin/to_mixed.d.ts +9 -0
- package/build/src/builtin/to_upper.d.ts +4 -0
- package/build/src/builtin/translate.d.ts +6 -0
- package/build/src/builtin/trunc.d.ts +5 -0
- package/build/src/builtin/xstrlen.d.ts +5 -0
- package/build/src/classic_error.d.ts +6 -0
- package/build/src/clone.d.ts +1 -0
- package/build/src/compare/assigned.d.ts +2 -0
- package/build/src/compare/between.d.ts +2 -0
- package/build/src/compare/ca.d.ts +4 -0
- package/build/src/compare/cn.d.ts +3 -0
- package/build/src/compare/co.d.ts +4 -0
- package/build/src/compare/cp.d.ts +4 -0
- package/build/src/compare/cs.d.ts +3 -0
- package/build/src/compare/eq.d.ts +4 -0
- package/build/src/compare/ge.d.ts +3 -0
- package/build/src/compare/gt.d.ts +4 -0
- package/build/src/compare/in.d.ts +4 -0
- package/build/src/compare/index.d.ts +22 -0
- package/build/src/compare/initial.d.ts +4 -0
- package/build/src/compare/instance_of.d.ts +2 -0
- package/build/src/compare/le.d.ts +3 -0
- package/build/src/compare/lt.d.ts +4 -0
- package/build/src/compare/m.d.ts +3 -0
- package/build/src/compare/na.d.ts +3 -0
- package/build/src/compare/ne.d.ts +3 -0
- package/build/src/compare/np.d.ts +3 -0
- package/build/src/compare/ns.d.ts +3 -0
- package/build/src/compare/o.d.ts +2 -0
- package/build/src/compare/z.d.ts +2 -0
- package/build/src/console/console.d.ts +7 -0
- package/build/src/console/memory_console.d.ts +9 -0
- package/build/src/console/standard_out_console.d.ts +9 -0
- package/build/src/context.d.ts +13 -0
- package/build/src/db/db.d.ts +55 -0
- package/build/src/expand_dynamic.d.ts +2 -0
- package/build/src/expand_in.d.ts +2 -0
- package/build/src/index.d.ts +67 -0
- package/build/src/offset_length.d.ts +16 -0
- package/build/src/operators/_bit_operations.d.ts +6 -0
- package/build/src/operators/_parse.d.ts +4 -0
- package/build/src/operators/add.d.ts +4 -0
- package/build/src/operators/bit-and.d.ts +2 -0
- package/build/src/operators/bit-not.d.ts +2 -0
- package/build/src/operators/bit-or.d.ts +2 -0
- package/build/src/operators/bit-xor.d.ts +2 -0
- package/build/src/operators/concat.d.ts +4 -0
- package/build/src/operators/div.d.ts +4 -0
- package/build/src/operators/divide.d.ts +4 -0
- package/build/src/operators/index.d.ts +12 -0
- package/build/src/operators/minus.d.ts +4 -0
- package/build/src/operators/mod.d.ts +4 -0
- package/build/src/operators/multiply.d.ts +4 -0
- package/build/src/operators/power.d.ts +4 -0
- package/build/src/prefix.d.ts +1 -0
- package/build/src/rfc.d.ts +25 -0
- package/build/src/statements/append.d.ts +13 -0
- package/build/src/statements/assert.d.ts +1 -0
- package/build/src/statements/assign.d.ts +12 -0
- package/build/src/statements/call_function.d.ts +16 -0
- package/build/src/statements/call_transaction.d.ts +1 -0
- package/build/src/statements/cast.d.ts +2 -0
- package/build/src/statements/clear.d.ts +4 -0
- package/build/src/statements/collect.d.ts +3 -0
- package/build/src/statements/commit.d.ts +1 -0
- package/build/src/statements/concatenate.d.ts +11 -0
- package/build/src/statements/condense.d.ts +4 -0
- package/build/src/statements/convert.d.ts +14 -0
- package/build/src/statements/create_data.d.ts +17 -0
- package/build/src/statements/delete_database.d.ts +13 -0
- package/build/src/statements/delete_internal.d.ts +12 -0
- package/build/src/statements/describe.d.ts +13 -0
- package/build/src/statements/find.d.ts +17 -0
- package/build/src/statements/get_bit.d.ts +4 -0
- package/build/src/statements/get_locale.d.ts +2 -0
- package/build/src/statements/get_parameter.d.ts +2 -0
- package/build/src/statements/get_run_time.d.ts +2 -0
- package/build/src/statements/get_time.d.ts +9 -0
- package/build/src/statements/index.d.ts +106 -0
- package/build/src/statements/insert_database.d.ts +13 -0
- package/build/src/statements/insert_internal.d.ts +14 -0
- package/build/src/statements/loop.d.ts +15 -0
- package/build/src/statements/message.d.ts +17 -0
- package/build/src/statements/modify_database.d.ts +12 -0
- package/build/src/statements/modify_internal.d.ts +9 -0
- package/build/src/statements/move_corresponding.d.ts +2 -0
- package/build/src/statements/overlay.d.ts +3 -0
- package/build/src/statements/raise_event.d.ts +1 -0
- package/build/src/statements/read_report.d.ts +8 -0
- package/build/src/statements/read_table.d.ts +27 -0
- package/build/src/statements/receive.d.ts +9 -0
- package/build/src/statements/replace.d.ts +14 -0
- package/build/src/statements/rollback.d.ts +1 -0
- package/build/src/statements/select.d.ts +8 -0
- package/build/src/statements/set_bit.d.ts +4 -0
- package/build/src/statements/set_handler.d.ts +3 -0
- package/build/src/statements/set_locale.d.ts +2 -0
- package/build/src/statements/shift.d.ts +12 -0
- package/build/src/statements/sort.d.ts +10 -0
- package/build/src/statements/split.d.ts +9 -0
- package/build/src/statements/translate.d.ts +2 -0
- package/build/src/statements/update_database.d.ts +14 -0
- package/build/src/statements/wait.d.ts +5 -0
- package/build/src/statements/write.d.ts +17 -0
- package/build/src/template_formatting.d.ts +14 -0
- package/build/src/throw_error.d.ts +1 -0
- package/build/src/types/_abstract_type_data.d.ts +5 -0
- package/build/src/types/_character.d.ts +11 -0
- package/build/src/types/_date_helper.d.ts +2 -0
- package/build/src/types/_numeric.d.ts +5 -0
- package/build/src/types/abap_object.d.ts +14 -0
- package/build/src/types/character.d.ts +27 -0
- package/build/src/types/data_reference.d.ts +29 -0
- package/build/src/types/date.d.ts +20 -0
- package/build/src/types/decfloat34.d.ts +11 -0
- package/build/src/types/field_symbol.d.ts +32 -0
- package/build/src/types/float.d.ts +15 -0
- package/build/src/types/hex.d.ts +20 -0
- package/build/src/types/index.d.ts +18 -0
- package/build/src/types/integer.d.ts +15 -0
- package/build/src/types/integer8.d.ts +16 -0
- package/build/src/types/numc.d.ts +21 -0
- package/build/src/types/packed.d.ts +19 -0
- package/build/src/types/string.d.ts +19 -0
- package/build/src/types/structure.d.ts +31 -0
- package/build/src/types/table.d.ts +114 -0
- package/build/src/types/time.d.ts +20 -0
- package/build/src/types/utc_long.d.ts +18 -0
- package/build/src/types/xstring.d.ts +18 -0
- package/build/src/unit_test.d.ts +26 -0
- package/package.json +1 -1
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Console } from "./console/console";
|
|
2
|
+
import { DatabaseClient } from "./db/db";
|
|
3
|
+
import * as RFC from "./rfc";
|
|
4
|
+
export declare class Context {
|
|
5
|
+
console: Console;
|
|
6
|
+
databaseConnections: {
|
|
7
|
+
[name: string]: DatabaseClient;
|
|
8
|
+
};
|
|
9
|
+
RFCDestinations: {
|
|
10
|
+
[name: string]: RFC.RFCClient;
|
|
11
|
+
};
|
|
12
|
+
defaultDB(): DatabaseClient;
|
|
13
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
export interface DeleteDatabaseOptions {
|
|
2
|
+
table: string;
|
|
3
|
+
where: string;
|
|
4
|
+
}
|
|
5
|
+
export interface UpdateDatabaseOptions {
|
|
6
|
+
table: string;
|
|
7
|
+
where: string;
|
|
8
|
+
set: string[];
|
|
9
|
+
}
|
|
10
|
+
export interface InsertDatabaseOptions {
|
|
11
|
+
table: string;
|
|
12
|
+
columns: string[];
|
|
13
|
+
values: string[];
|
|
14
|
+
}
|
|
15
|
+
export interface SelectDatabaseOptions {
|
|
16
|
+
/** select statement, in ABAP SQL syntax */
|
|
17
|
+
select: string;
|
|
18
|
+
/** list of primary key fields, in lower case, if known */
|
|
19
|
+
primaryKey?: string[];
|
|
20
|
+
}
|
|
21
|
+
export interface SelectRuntimeOptions {
|
|
22
|
+
appending?: boolean;
|
|
23
|
+
}
|
|
24
|
+
export type DatabaseValue = number | string | Uint8Array | null;
|
|
25
|
+
export type DatabaseRow = {
|
|
26
|
+
[name: string]: DatabaseValue;
|
|
27
|
+
};
|
|
28
|
+
export type DatabaseRows = DatabaseRow[];
|
|
29
|
+
export interface SelectDatabaseResult {
|
|
30
|
+
rows: DatabaseRows;
|
|
31
|
+
}
|
|
32
|
+
export interface DatabaseClient {
|
|
33
|
+
/*** the type/name/identifier of the database */
|
|
34
|
+
name: string;
|
|
35
|
+
connect(): Promise<void>;
|
|
36
|
+
disconnect(): Promise<void>;
|
|
37
|
+
/*** execute any native SQL command */
|
|
38
|
+
execute(sql: string | string[]): Promise<void>;
|
|
39
|
+
beginTransaction(): Promise<void>;
|
|
40
|
+
commit(): Promise<void>;
|
|
41
|
+
rollback(): Promise<void>;
|
|
42
|
+
delete(options: DeleteDatabaseOptions): Promise<{
|
|
43
|
+
subrc: number;
|
|
44
|
+
dbcnt: number;
|
|
45
|
+
}>;
|
|
46
|
+
update(options: UpdateDatabaseOptions): Promise<{
|
|
47
|
+
subrc: number;
|
|
48
|
+
dbcnt: number;
|
|
49
|
+
}>;
|
|
50
|
+
insert(options: InsertDatabaseOptions): Promise<{
|
|
51
|
+
subrc: number;
|
|
52
|
+
dbcnt: number;
|
|
53
|
+
}>;
|
|
54
|
+
select(options: SelectDatabaseOptions): Promise<SelectDatabaseResult>;
|
|
55
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { Context } from "./context";
|
|
2
|
+
import { OffsetLength } from "./offset_length";
|
|
3
|
+
import { Statements } from "./statements";
|
|
4
|
+
import { templateFormatting } from "./template_formatting";
|
|
5
|
+
import { UnitTestResult } from "./unit_test";
|
|
6
|
+
import * as builtin from "./builtin";
|
|
7
|
+
import * as compare from "./compare";
|
|
8
|
+
import * as DB from "./db/db";
|
|
9
|
+
import * as operators from "./operators";
|
|
10
|
+
import * as RFC from "./rfc";
|
|
11
|
+
import * as types from "./types";
|
|
12
|
+
import { expandIN } from "./expand_in";
|
|
13
|
+
import { expandDynamic } from "./expand_dynamic";
|
|
14
|
+
import { ClassicError } from "./classic_error";
|
|
15
|
+
import { Console } from "./console/console";
|
|
16
|
+
import { MemoryConsole } from "./console/memory_console";
|
|
17
|
+
import { buildDbTableName } from "./prefix";
|
|
18
|
+
export { UnitTestResult, RFC, types, DB, MemoryConsole };
|
|
19
|
+
export type RuntimeDatabaseOptions = {
|
|
20
|
+
schemaPrefix?: string;
|
|
21
|
+
tablePrefix?: string;
|
|
22
|
+
};
|
|
23
|
+
export type RuntimeOptions = {
|
|
24
|
+
console?: Console;
|
|
25
|
+
database?: RuntimeDatabaseOptions;
|
|
26
|
+
};
|
|
27
|
+
export declare class ABAP {
|
|
28
|
+
Classes: {
|
|
29
|
+
[name: string]: any;
|
|
30
|
+
};
|
|
31
|
+
DDIC: {
|
|
32
|
+
[name: string]: any;
|
|
33
|
+
};
|
|
34
|
+
FunctionModules: {
|
|
35
|
+
[name: string]: any;
|
|
36
|
+
};
|
|
37
|
+
Interfaces: {
|
|
38
|
+
[name: string]: any;
|
|
39
|
+
};
|
|
40
|
+
MSAG: {
|
|
41
|
+
[name: string]: any;
|
|
42
|
+
};
|
|
43
|
+
SMIM: {
|
|
44
|
+
[name: string]: any;
|
|
45
|
+
};
|
|
46
|
+
TypePools: {
|
|
47
|
+
[name: string]: any;
|
|
48
|
+
};
|
|
49
|
+
W3MI: {
|
|
50
|
+
[name: string]: any;
|
|
51
|
+
};
|
|
52
|
+
statements: Statements;
|
|
53
|
+
types: typeof types;
|
|
54
|
+
builtin: typeof builtin;
|
|
55
|
+
operators: typeof operators;
|
|
56
|
+
compare: typeof compare;
|
|
57
|
+
readonly console: Console;
|
|
58
|
+
OffsetLength: typeof OffsetLength;
|
|
59
|
+
templateFormatting: typeof templateFormatting;
|
|
60
|
+
expandIN: typeof expandIN;
|
|
61
|
+
expandDynamic: typeof expandDynamic;
|
|
62
|
+
buildDbTableName: typeof buildDbTableName;
|
|
63
|
+
ClassicError: typeof ClassicError;
|
|
64
|
+
readonly context: Context;
|
|
65
|
+
readonly dbo: RuntimeDatabaseOptions;
|
|
66
|
+
constructor(input?: RuntimeOptions);
|
|
67
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Character, Hex, Structure, XString } from "./types";
|
|
2
|
+
import { ICharacter } from "./types/_character";
|
|
3
|
+
import { INumeric } from "./types/_numeric";
|
|
4
|
+
export interface IOffsetLengthOptions {
|
|
5
|
+
length?: INumeric | number;
|
|
6
|
+
offset?: INumeric | number;
|
|
7
|
+
}
|
|
8
|
+
export declare class OffsetLength {
|
|
9
|
+
private readonly obj;
|
|
10
|
+
private readonly offset?;
|
|
11
|
+
private readonly length?;
|
|
12
|
+
private readonly isHex;
|
|
13
|
+
constructor(obj: ICharacter | Character | Hex | XString | Structure, options: IOffsetLengthOptions);
|
|
14
|
+
get(): string;
|
|
15
|
+
set(value: ICharacter | string): void;
|
|
16
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { FieldSymbol, Float, Hex, Integer } from "../types";
|
|
2
|
+
import { ICharacter } from "../types/_character";
|
|
3
|
+
import { INumeric } from "../types/_numeric";
|
|
4
|
+
export declare function add(left: INumeric | ICharacter | string | number | Float | Integer | Hex | FieldSymbol, right: INumeric | ICharacter | string | number | Float | Integer | Hex | FieldSymbol): Integer | Float;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { String } from "../types";
|
|
2
|
+
import { ICharacter } from "../types/_character";
|
|
3
|
+
import { INumeric } from "../types/_numeric";
|
|
4
|
+
export declare function concat(left: INumeric | ICharacter | string | number | any[], right: INumeric | ICharacter | string | number): String;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Integer, Integer8 } from "../types";
|
|
2
|
+
import { ICharacter } from "../types/_character";
|
|
3
|
+
import { INumeric } from "../types/_numeric";
|
|
4
|
+
export declare function div(left: INumeric | ICharacter | string | number, right: INumeric | ICharacter | string | number): Integer | Integer8;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export * from "./add";
|
|
2
|
+
export * from "./div";
|
|
3
|
+
export * from "./divide";
|
|
4
|
+
export * from "./minus";
|
|
5
|
+
export * from "./mod";
|
|
6
|
+
export * from "./multiply";
|
|
7
|
+
export * from "./power";
|
|
8
|
+
export * from "./bit-and";
|
|
9
|
+
export * from "./bit-not";
|
|
10
|
+
export * from "./bit-or";
|
|
11
|
+
export * from "./bit-xor";
|
|
12
|
+
export * from "./concat";
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { FieldSymbol, Float, Integer } from "../types";
|
|
2
|
+
import { ICharacter } from "../types/_character";
|
|
3
|
+
import { INumeric } from "../types/_numeric";
|
|
4
|
+
export declare function minus(left: INumeric | ICharacter | string | number | Integer | Float | FieldSymbol, right: INumeric | ICharacter | string | number | Integer | Float | FieldSymbol): Integer | Float;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Integer, Integer8 } from "../types";
|
|
2
|
+
import { ICharacter } from "../types/_character";
|
|
3
|
+
import { INumeric } from "../types/_numeric";
|
|
4
|
+
export declare function mod(left: INumeric | ICharacter | string | number, right: INumeric | ICharacter | string | number): Integer | Integer8;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Float, Integer } from "../types";
|
|
2
|
+
import { ICharacter } from "../types/_character";
|
|
3
|
+
import { INumeric } from "../types/_numeric";
|
|
4
|
+
export declare function multiply(left: INumeric | ICharacter | string | number, right: INumeric | ICharacter | string | number): Float | Integer;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function buildDbTableName(table: string): string;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { FieldSymbol, Structure, Table } from "./types";
|
|
2
|
+
import { ICharacter } from "./types/_character";
|
|
3
|
+
import { INumeric } from "./types/_numeric";
|
|
4
|
+
type TypeType = INumeric | Table | ICharacter | Structure | FieldSymbol;
|
|
5
|
+
export type RFCCallSignature = {
|
|
6
|
+
exporting?: {
|
|
7
|
+
[name: string]: TypeType;
|
|
8
|
+
};
|
|
9
|
+
importing?: {
|
|
10
|
+
[name: string]: TypeType;
|
|
11
|
+
};
|
|
12
|
+
tables?: {
|
|
13
|
+
[name: string]: TypeType;
|
|
14
|
+
};
|
|
15
|
+
changing?: {
|
|
16
|
+
[name: string]: TypeType;
|
|
17
|
+
};
|
|
18
|
+
exceptions?: {
|
|
19
|
+
[name: string]: number;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
export interface RFCClient {
|
|
23
|
+
call(name: string, signature: RFCCallSignature): Promise<void>;
|
|
24
|
+
}
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { DataReference, FieldSymbol, Table, TableRowType } from "../types";
|
|
2
|
+
import { ICharacter } from "../types/_character";
|
|
3
|
+
import { INumeric } from "../types/_numeric";
|
|
4
|
+
export interface IAppendOptions {
|
|
5
|
+
source: TableRowType | FieldSymbol | Table;
|
|
6
|
+
target: Table | FieldSymbol | undefined;
|
|
7
|
+
lines?: boolean;
|
|
8
|
+
assigning?: FieldSymbol;
|
|
9
|
+
referenceInto?: DataReference;
|
|
10
|
+
from?: ICharacter | INumeric;
|
|
11
|
+
to?: ICharacter | INumeric;
|
|
12
|
+
}
|
|
13
|
+
export declare function append(input: IAppendOptions): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function assert(input: boolean): void;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { DataReference, FieldSymbol, Structure, Table } from "../types";
|
|
2
|
+
import { ICharacter } from "../types/_character";
|
|
3
|
+
import { INumeric } from "../types/_numeric";
|
|
4
|
+
export interface IAssignInput {
|
|
5
|
+
source?: INumeric | ICharacter | Table | Structure | DataReference;
|
|
6
|
+
target: FieldSymbol;
|
|
7
|
+
dynamicName?: string;
|
|
8
|
+
dynamicSource?: ICharacter;
|
|
9
|
+
casting?: boolean;
|
|
10
|
+
component?: string | ICharacter;
|
|
11
|
+
}
|
|
12
|
+
export declare function assign(input: IAssignInput): void;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Context } from "../context";
|
|
2
|
+
export interface ICallFunctionOptions {
|
|
3
|
+
name: string;
|
|
4
|
+
destination?: string;
|
|
5
|
+
calling?: (INPUT: any) => any;
|
|
6
|
+
exporting?: any;
|
|
7
|
+
importing?: any;
|
|
8
|
+
tables?: any;
|
|
9
|
+
changing?: any;
|
|
10
|
+
exceptions?: any;
|
|
11
|
+
}
|
|
12
|
+
export declare class CallFunction {
|
|
13
|
+
private readonly context;
|
|
14
|
+
constructor(context: Context);
|
|
15
|
+
callFunction(options: ICallFunctionOptions): Promise<void>;
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function callTransaction(): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function commit(): void;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { INumeric } from "../types/_numeric";
|
|
2
|
+
import { ICharacter } from "../types/_character";
|
|
3
|
+
import { Table } from "../types";
|
|
4
|
+
export interface IConcatenateInput {
|
|
5
|
+
source: (number | string | INumeric | ICharacter | Table)[];
|
|
6
|
+
target: ICharacter;
|
|
7
|
+
separatedBy?: number | string | INumeric | ICharacter;
|
|
8
|
+
respectingBlanks?: boolean;
|
|
9
|
+
lines?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare function concatenate(input: IConcatenateInput): void;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ICharacter } from "../types/_character";
|
|
2
|
+
import { INumeric } from "../types/_numeric";
|
|
3
|
+
export interface IConvertSource {
|
|
4
|
+
date?: ICharacter | string;
|
|
5
|
+
time?: ICharacter | string;
|
|
6
|
+
stamp?: ICharacter | INumeric | string;
|
|
7
|
+
zone: ICharacter | string;
|
|
8
|
+
}
|
|
9
|
+
export interface IConvertTarget {
|
|
10
|
+
stamp?: ICharacter;
|
|
11
|
+
date?: ICharacter;
|
|
12
|
+
time?: ICharacter;
|
|
13
|
+
}
|
|
14
|
+
export declare function convert(source: IConvertSource, target: IConvertTarget): void;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ABAPObject, DataReference, FieldSymbol, Structure, Table } from "../types";
|
|
2
|
+
import { ICharacter } from "../types/_character";
|
|
3
|
+
import { INumeric } from "../types/_numeric";
|
|
4
|
+
type PointerType = INumeric | Table | ICharacter | ABAPObject | undefined | Structure | FieldSymbol;
|
|
5
|
+
export interface ICreateDataOptions {
|
|
6
|
+
table?: boolean;
|
|
7
|
+
name?: string;
|
|
8
|
+
type?: PointerType;
|
|
9
|
+
typeName?: string;
|
|
10
|
+
length?: INumeric;
|
|
11
|
+
decimals?: INumeric;
|
|
12
|
+
likeLineOf?: FieldSymbol | Table;
|
|
13
|
+
typeLineOf?: boolean;
|
|
14
|
+
like?: any;
|
|
15
|
+
}
|
|
16
|
+
export declare function createData(target: DataReference | FieldSymbol, options?: ICreateDataOptions): void;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Context } from "../context";
|
|
2
|
+
import { FieldSymbol, Structure, Table } from "../types";
|
|
3
|
+
import { ICharacter } from "../types/_character";
|
|
4
|
+
export interface IDeleteDatabaseOptions {
|
|
5
|
+
from?: Structure | FieldSymbol;
|
|
6
|
+
where?: string;
|
|
7
|
+
table?: Table | FieldSymbol;
|
|
8
|
+
}
|
|
9
|
+
export declare class DeleteDatabase {
|
|
10
|
+
private readonly context;
|
|
11
|
+
constructor(context: Context);
|
|
12
|
+
deleteDatabase(table: string | ICharacter, options: IDeleteDatabaseOptions): Promise<void>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FieldSymbol, HashedTable, Table } from "../types";
|
|
2
|
+
import { INumeric } from "../types/_numeric";
|
|
3
|
+
export interface IDeleteInternalOptions {
|
|
4
|
+
where?: (i: any) => boolean;
|
|
5
|
+
index?: INumeric;
|
|
6
|
+
adjacent?: boolean;
|
|
7
|
+
comparing?: string[];
|
|
8
|
+
fromValue?: any;
|
|
9
|
+
from?: any;
|
|
10
|
+
to?: any;
|
|
11
|
+
}
|
|
12
|
+
export declare function deleteInternal(target: Table | HashedTable | FieldSymbol, options?: IDeleteInternalOptions): Promise<void>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Table } from "../types";
|
|
2
|
+
import { ICharacter } from "../types/_character";
|
|
3
|
+
import { INumeric } from "../types/_numeric";
|
|
4
|
+
export interface IDescribeOptions {
|
|
5
|
+
field: any;
|
|
6
|
+
type?: ICharacter;
|
|
7
|
+
length?: INumeric;
|
|
8
|
+
decimals?: INumeric;
|
|
9
|
+
lines?: INumeric;
|
|
10
|
+
table?: Table;
|
|
11
|
+
mode?: "BYTE" | "CHARACTER";
|
|
12
|
+
}
|
|
13
|
+
export declare function describe(input: IDescribeOptions): void;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ABAPObject, Structure, Table } from "../types";
|
|
2
|
+
import { ICharacter } from "../types/_character";
|
|
3
|
+
import { INumeric } from "../types/_numeric";
|
|
4
|
+
export interface IFindOptions {
|
|
5
|
+
find?: ICharacter | string;
|
|
6
|
+
first?: boolean;
|
|
7
|
+
regex?: string | ICharacter | ABAPObject;
|
|
8
|
+
offset?: INumeric;
|
|
9
|
+
sectionOffset?: INumeric;
|
|
10
|
+
byteMode?: boolean;
|
|
11
|
+
length?: INumeric;
|
|
12
|
+
count?: INumeric;
|
|
13
|
+
results?: Table | Structure;
|
|
14
|
+
ignoringCase?: boolean;
|
|
15
|
+
submatches?: ICharacter[];
|
|
16
|
+
}
|
|
17
|
+
export declare function find(input: ICharacter | Table, options: IFindOptions): void;
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { append } from "./append";
|
|
2
|
+
import { assert } from "./assert";
|
|
3
|
+
import { assign } from "./assign";
|
|
4
|
+
import { clear } from "./clear";
|
|
5
|
+
import { commit } from "./commit";
|
|
6
|
+
import { concatenate } from "./concatenate";
|
|
7
|
+
import { condense } from "./condense";
|
|
8
|
+
import { convert } from "./convert";
|
|
9
|
+
import { createData } from "./create_data";
|
|
10
|
+
import { deleteInternal } from "./delete_internal";
|
|
11
|
+
import { describe } from "./describe";
|
|
12
|
+
import { find } from "./find";
|
|
13
|
+
import { collect } from "./collect";
|
|
14
|
+
import { overlay } from "./overlay";
|
|
15
|
+
import { cast } from "./cast";
|
|
16
|
+
import { getBit } from "./get_bit";
|
|
17
|
+
import { readReport } from "./read_report";
|
|
18
|
+
import { raiseEvent } from "./raise_event";
|
|
19
|
+
import { receive } from "./receive";
|
|
20
|
+
import { getLocale } from "./get_locale";
|
|
21
|
+
import { getParameter } from "./get_parameter";
|
|
22
|
+
import { setLocale } from "./set_locale";
|
|
23
|
+
import { getRunTime } from "./get_run_time";
|
|
24
|
+
import { getTime } from "./get_time";
|
|
25
|
+
import { IInsertDatabaseOptions } from "./insert_database";
|
|
26
|
+
import { insertInternal } from "./insert_internal";
|
|
27
|
+
import { IDeleteDatabaseOptions } from "./delete_database";
|
|
28
|
+
import { loop } from "./loop";
|
|
29
|
+
import { IMessageOptions } from "./message";
|
|
30
|
+
import { IModifyDatabaseOptions } from "./modify_database";
|
|
31
|
+
import { modifyInternal } from "./modify_internal";
|
|
32
|
+
import { moveCorresponding } from "./move_corresponding";
|
|
33
|
+
import { readTable } from "./read_table";
|
|
34
|
+
import { replace } from "./replace";
|
|
35
|
+
import { rollback } from "./rollback";
|
|
36
|
+
import { setBit } from "./set_bit";
|
|
37
|
+
import { shift } from "./shift";
|
|
38
|
+
import { sort } from "./sort";
|
|
39
|
+
import { wait } from "./wait";
|
|
40
|
+
import { setHandler } from "./set_handler";
|
|
41
|
+
import { split } from "./split";
|
|
42
|
+
import { translate } from "./translate";
|
|
43
|
+
import { callTransaction } from "./call_transaction";
|
|
44
|
+
import { IUpdateDatabaseOptions } from "./update_database";
|
|
45
|
+
import { IWriteOptions } from "./write";
|
|
46
|
+
import { Context } from "../context";
|
|
47
|
+
import { ICharacter } from "../types/_character";
|
|
48
|
+
import { FieldSymbol, Structure, Table } from "../types";
|
|
49
|
+
import { INumeric } from "../types/_numeric";
|
|
50
|
+
import { ICallFunctionOptions } from "./call_function";
|
|
51
|
+
import { SelectDatabaseOptions, SelectRuntimeOptions } from "../db/db";
|
|
52
|
+
export declare class Statements {
|
|
53
|
+
append: typeof append;
|
|
54
|
+
assert: typeof assert;
|
|
55
|
+
assign: typeof assign;
|
|
56
|
+
cast: typeof cast;
|
|
57
|
+
clear: typeof clear;
|
|
58
|
+
collect: typeof collect;
|
|
59
|
+
commit: typeof commit;
|
|
60
|
+
concatenate: typeof concatenate;
|
|
61
|
+
condense: typeof condense;
|
|
62
|
+
convert: typeof convert;
|
|
63
|
+
createData: typeof createData;
|
|
64
|
+
deleteInternal: typeof deleteInternal;
|
|
65
|
+
describe: typeof describe;
|
|
66
|
+
find: typeof find;
|
|
67
|
+
getBit: typeof getBit;
|
|
68
|
+
readReport: typeof readReport;
|
|
69
|
+
getLocale: typeof getLocale;
|
|
70
|
+
getParameter: typeof getParameter;
|
|
71
|
+
getRunTime: typeof getRunTime;
|
|
72
|
+
getTime: typeof getTime;
|
|
73
|
+
insertInternal: typeof insertInternal;
|
|
74
|
+
loop: typeof loop;
|
|
75
|
+
modifyInternal: typeof modifyInternal;
|
|
76
|
+
moveCorresponding: typeof moveCorresponding;
|
|
77
|
+
overlay: typeof overlay;
|
|
78
|
+
raiseEvent: typeof raiseEvent;
|
|
79
|
+
readTable: typeof readTable;
|
|
80
|
+
replace: typeof replace;
|
|
81
|
+
rollback: typeof rollback;
|
|
82
|
+
setBit: typeof setBit;
|
|
83
|
+
setHandler: typeof setHandler;
|
|
84
|
+
setLocale: typeof setLocale;
|
|
85
|
+
shift: typeof shift;
|
|
86
|
+
sort: typeof sort;
|
|
87
|
+
split: typeof split;
|
|
88
|
+
translate: typeof translate;
|
|
89
|
+
wait: typeof wait;
|
|
90
|
+
receive: typeof receive;
|
|
91
|
+
callTransaction: typeof callTransaction;
|
|
92
|
+
private readonly context;
|
|
93
|
+
private readonly traceTotals;
|
|
94
|
+
constructor(context: Context);
|
|
95
|
+
private _trace;
|
|
96
|
+
private _traceAsync;
|
|
97
|
+
_setTrace(min?: number, totals?: boolean): void;
|
|
98
|
+
deleteDatabase(table: string | ICharacter, options: IDeleteDatabaseOptions): Promise<void>;
|
|
99
|
+
insertDatabase(table: string | ICharacter, options: IInsertDatabaseOptions): Promise<number | undefined>;
|
|
100
|
+
message(options: IMessageOptions): Promise<void>;
|
|
101
|
+
modifyDatabase(table: string | ICharacter, options: IModifyDatabaseOptions): Promise<void>;
|
|
102
|
+
select(target: Structure | Table | FieldSymbol, select: SelectDatabaseOptions, runtimeOptions?: SelectRuntimeOptions): Promise<void>;
|
|
103
|
+
updateDatabase(table: string | ICharacter, options: IUpdateDatabaseOptions): Promise<number>;
|
|
104
|
+
callFunction(options: ICallFunctionOptions): Promise<void>;
|
|
105
|
+
write(source: INumeric | ICharacter | FieldSymbol | string | number, options?: IWriteOptions): void;
|
|
106
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Context } from "../context";
|
|
2
|
+
import { Structure, Table } from "../types";
|
|
3
|
+
import { ICharacter } from "../types/_character";
|
|
4
|
+
export declare function toValue(value: any): any;
|
|
5
|
+
export interface IInsertDatabaseOptions {
|
|
6
|
+
values?: Structure;
|
|
7
|
+
table?: Table;
|
|
8
|
+
}
|
|
9
|
+
export declare class InsertDatabase {
|
|
10
|
+
private readonly context;
|
|
11
|
+
constructor(context: Context);
|
|
12
|
+
insertDatabase(table: string | ICharacter, options: IInsertDatabaseOptions): Promise<number | undefined>;
|
|
13
|
+
}
|