@ibm/ibmi-eventf-parser 1.0.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.
- package/LICENSE +201 -0
- package/README.md +3 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -0
- package/dist/src/ExpansionProcessor.d.ts +82 -0
- package/dist/src/IMarkerCreator.d.ts +10 -0
- package/dist/src/IProcessor.d.ts +108 -0
- package/dist/src/ISequentialFileReader.d.ts +11 -0
- package/dist/src/MapTable.d.ts +78 -0
- package/dist/src/Parser.d.ts +51 -0
- package/dist/src/ProcessorBlock.d.ts +93 -0
- package/dist/src/index.d.ts +3 -0
- package/dist/src/record/ErrorInformationRecord.d.ts +161 -0
- package/dist/src/record/ExpansionRecord.d.ts +100 -0
- package/dist/src/record/FeedbackCodeRecord.d.ts +35 -0
- package/dist/src/record/FileEndRecord.d.ts +48 -0
- package/dist/src/record/FileIDRecord.d.ts +58 -0
- package/dist/src/record/IRecord.d.ts +9 -0
- package/dist/src/record/IRecordT.d.ts +18 -0
- package/dist/src/record/MapDefineRecord.d.ts +74 -0
- package/dist/src/record/MapEndRecord.d.ts +61 -0
- package/dist/src/record/MapStartRecord.d.ts +48 -0
- package/dist/src/record/ProcessorRecord.d.ts +48 -0
- package/dist/src/record/ProgramRecord.d.ts +35 -0
- package/dist/src/record/TimestampRecord.d.ts +35 -0
- package/dist/webpack.config.d.ts +3 -0
- package/package.json +37 -0
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { IRecordT } from "./IRecordT";
|
|
2
|
+
import { IRecord } from "./IRecord";
|
|
3
|
+
/**
|
|
4
|
+
* This class represents a File End record in an events file.
|
|
5
|
+
*/
|
|
6
|
+
export declare class FileEndRecord implements IRecord {
|
|
7
|
+
private version;
|
|
8
|
+
private fileId;
|
|
9
|
+
private expansion;
|
|
10
|
+
constructor(version: string, fileId: string, expansion: string);
|
|
11
|
+
getRecordType(): IRecordT;
|
|
12
|
+
/**
|
|
13
|
+
* Get the version.
|
|
14
|
+
*
|
|
15
|
+
* @return The version.
|
|
16
|
+
*/
|
|
17
|
+
getVersion(): string;
|
|
18
|
+
/**
|
|
19
|
+
* Set the version.
|
|
20
|
+
*
|
|
21
|
+
* @param version The version.
|
|
22
|
+
*/
|
|
23
|
+
setVersion(version: string): void;
|
|
24
|
+
/**
|
|
25
|
+
* Get the file id.
|
|
26
|
+
*
|
|
27
|
+
* @return The file id.
|
|
28
|
+
*/
|
|
29
|
+
getFileId(): string;
|
|
30
|
+
/**
|
|
31
|
+
* Set the file id.
|
|
32
|
+
*
|
|
33
|
+
* @param fileId The file id.
|
|
34
|
+
*/
|
|
35
|
+
setFileId(fileId: string): void;
|
|
36
|
+
/**
|
|
37
|
+
* Get the expansion.
|
|
38
|
+
*
|
|
39
|
+
* @return The expansion.
|
|
40
|
+
*/
|
|
41
|
+
getExpansion(): string;
|
|
42
|
+
/**
|
|
43
|
+
* Set the expansion.
|
|
44
|
+
*
|
|
45
|
+
* @param expansion The expansion.
|
|
46
|
+
*/
|
|
47
|
+
setExpansion(expansion: string): void;
|
|
48
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { IRecordT } from "./IRecordT";
|
|
2
|
+
import { IRecord } from "./IRecord";
|
|
3
|
+
/**
|
|
4
|
+
* This class represents a File ID record in an events file.
|
|
5
|
+
*/
|
|
6
|
+
export declare class FileIDRecord implements IRecord {
|
|
7
|
+
private version;
|
|
8
|
+
private sourceId;
|
|
9
|
+
private line;
|
|
10
|
+
private length;
|
|
11
|
+
private filename;
|
|
12
|
+
private timestamp;
|
|
13
|
+
private flag;
|
|
14
|
+
constructor(version: string, sourceId: string, line: string, length: string, filename: string, timestamp: string, flag: string);
|
|
15
|
+
getRecordType(): IRecordT;
|
|
16
|
+
/**
|
|
17
|
+
* Get the version.
|
|
18
|
+
*
|
|
19
|
+
* @return The version.
|
|
20
|
+
*/
|
|
21
|
+
getVersion(): string;
|
|
22
|
+
/**
|
|
23
|
+
* Get the source id.
|
|
24
|
+
*
|
|
25
|
+
* @return The source id.
|
|
26
|
+
*/
|
|
27
|
+
getSourceId(): string;
|
|
28
|
+
/**
|
|
29
|
+
* Get the line.
|
|
30
|
+
*
|
|
31
|
+
* @return The line.
|
|
32
|
+
*/
|
|
33
|
+
getLine(): string;
|
|
34
|
+
/**
|
|
35
|
+
* Get the length.
|
|
36
|
+
*
|
|
37
|
+
* @return The length.
|
|
38
|
+
*/
|
|
39
|
+
getLength(): string;
|
|
40
|
+
/**
|
|
41
|
+
* Get the filename.
|
|
42
|
+
*
|
|
43
|
+
* @return The filename.
|
|
44
|
+
*/
|
|
45
|
+
getFilename(): string;
|
|
46
|
+
/**
|
|
47
|
+
* Get the timestamp.
|
|
48
|
+
*
|
|
49
|
+
* @return The timestamp.
|
|
50
|
+
*/
|
|
51
|
+
getTimestamp(): string;
|
|
52
|
+
/**
|
|
53
|
+
* Get the flag.
|
|
54
|
+
*
|
|
55
|
+
* @return The flag.
|
|
56
|
+
*/
|
|
57
|
+
getFlag(): string;
|
|
58
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This interface should be implemented by all classes that represent
|
|
3
|
+
* records in an events file.
|
|
4
|
+
*/
|
|
5
|
+
export declare enum IRecordT {
|
|
6
|
+
TIMESTAMP = "TIMESTAMP",
|
|
7
|
+
PROCESSOR = "PROCESSOR",
|
|
8
|
+
FILE_ID = "FILEID",
|
|
9
|
+
FILE_CONT = "FILEIDCONT",
|
|
10
|
+
FILE_END = "FILEEND",
|
|
11
|
+
ERROR_INFORMATION = "ERROR",
|
|
12
|
+
PROGRAM = "PROGRAM",
|
|
13
|
+
MAP_DEFINE = "MAPDEFINE",
|
|
14
|
+
MAP_START = "MAPSTART",
|
|
15
|
+
MAP_END = "MAPEND",
|
|
16
|
+
FEEDBACK_CODE = "FEEDBACK",
|
|
17
|
+
EXPANSION = "EXPANSION"
|
|
18
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { IRecordT } from "./IRecordT";
|
|
2
|
+
import { IRecord } from "./IRecord";
|
|
3
|
+
/**
|
|
4
|
+
* This class represents a Map Define record in an events file.
|
|
5
|
+
*/
|
|
6
|
+
export declare class MapDefineRecord implements IRecord {
|
|
7
|
+
private version;
|
|
8
|
+
private macroId;
|
|
9
|
+
private line;
|
|
10
|
+
private length;
|
|
11
|
+
private macroName;
|
|
12
|
+
constructor(version: string, macroId: string, line: string, length: string, macroName: string);
|
|
13
|
+
getRecordType(): IRecordT;
|
|
14
|
+
/**
|
|
15
|
+
* Get the version.
|
|
16
|
+
*
|
|
17
|
+
* @return The version.
|
|
18
|
+
*/
|
|
19
|
+
getVersion(): string;
|
|
20
|
+
/**
|
|
21
|
+
* Set the version.
|
|
22
|
+
*
|
|
23
|
+
* @param version The version.
|
|
24
|
+
*/
|
|
25
|
+
setVersion(version: string): void;
|
|
26
|
+
/**
|
|
27
|
+
* Get the macro id.
|
|
28
|
+
*
|
|
29
|
+
* @return The macro id.
|
|
30
|
+
*/
|
|
31
|
+
getMacroId(): string;
|
|
32
|
+
/**
|
|
33
|
+
* Set the macro id.
|
|
34
|
+
*
|
|
35
|
+
* @param macroId The macro id.
|
|
36
|
+
*/
|
|
37
|
+
setMacroId(macroId: string): void;
|
|
38
|
+
/**
|
|
39
|
+
* Get the line.
|
|
40
|
+
*
|
|
41
|
+
* @return The line.
|
|
42
|
+
*/
|
|
43
|
+
getLine(): string;
|
|
44
|
+
/**
|
|
45
|
+
* Set the line.
|
|
46
|
+
*
|
|
47
|
+
* @param line The line.
|
|
48
|
+
*/
|
|
49
|
+
setLine(line: string): void;
|
|
50
|
+
/**
|
|
51
|
+
* Get the length.
|
|
52
|
+
*
|
|
53
|
+
* @return The length.
|
|
54
|
+
*/
|
|
55
|
+
getLength(): string;
|
|
56
|
+
/**
|
|
57
|
+
* Set the length.
|
|
58
|
+
*
|
|
59
|
+
* @param length The length.
|
|
60
|
+
*/
|
|
61
|
+
setLength(length: string): void;
|
|
62
|
+
/**
|
|
63
|
+
* Get the macro name.
|
|
64
|
+
*
|
|
65
|
+
* @return The macro name.
|
|
66
|
+
*/
|
|
67
|
+
getMacroName(): string;
|
|
68
|
+
/**
|
|
69
|
+
* Set the macro name.
|
|
70
|
+
*
|
|
71
|
+
* @param macroName The macro name.
|
|
72
|
+
*/
|
|
73
|
+
setMacroName(macroName: string): void;
|
|
74
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { IRecordT } from "./IRecordT";
|
|
2
|
+
import { IRecord } from "./IRecord";
|
|
3
|
+
/**
|
|
4
|
+
* This class represents a Map End record in an events file.
|
|
5
|
+
*/
|
|
6
|
+
export declare class MapEndRecord implements IRecord {
|
|
7
|
+
private version;
|
|
8
|
+
private macroId;
|
|
9
|
+
private line;
|
|
10
|
+
private expansion;
|
|
11
|
+
constructor(version: string, macroId: string, line: string, expansion: string);
|
|
12
|
+
getRecordType(): IRecordT;
|
|
13
|
+
/**
|
|
14
|
+
* Get the version.
|
|
15
|
+
*
|
|
16
|
+
* @return The version.
|
|
17
|
+
*/
|
|
18
|
+
getVersion(): string;
|
|
19
|
+
/**
|
|
20
|
+
* Set the version.
|
|
21
|
+
*
|
|
22
|
+
* @param version The version.
|
|
23
|
+
*/
|
|
24
|
+
setVersion(version: string): void;
|
|
25
|
+
/**
|
|
26
|
+
* Get the macro id.
|
|
27
|
+
*
|
|
28
|
+
* @return The macro id.
|
|
29
|
+
*/
|
|
30
|
+
getMacroId(): string;
|
|
31
|
+
/**
|
|
32
|
+
* Set the macro id.
|
|
33
|
+
*
|
|
34
|
+
* @param macroId The macro id.
|
|
35
|
+
*/
|
|
36
|
+
setMacroId(macroId: string): void;
|
|
37
|
+
/**
|
|
38
|
+
* Get the line.
|
|
39
|
+
*
|
|
40
|
+
* @return The line.
|
|
41
|
+
*/
|
|
42
|
+
getLine(): string;
|
|
43
|
+
/**
|
|
44
|
+
* Set the line.
|
|
45
|
+
*
|
|
46
|
+
* @param line The line.
|
|
47
|
+
*/
|
|
48
|
+
setLine(line: string): void;
|
|
49
|
+
/**
|
|
50
|
+
* Get the expansion.
|
|
51
|
+
*
|
|
52
|
+
* @return The expansion.
|
|
53
|
+
*/
|
|
54
|
+
getExpansion(): string;
|
|
55
|
+
/**
|
|
56
|
+
* Set the expansion.
|
|
57
|
+
*
|
|
58
|
+
* @param expansion The expansion.
|
|
59
|
+
*/
|
|
60
|
+
setExpansion(expansion: string): void;
|
|
61
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { IRecordT } from "./IRecordT";
|
|
2
|
+
import { IRecord } from "./IRecord";
|
|
3
|
+
/**
|
|
4
|
+
* This class represents a Map Start record in an events file.
|
|
5
|
+
*/
|
|
6
|
+
export declare class MapStartRecord implements IRecord {
|
|
7
|
+
private version;
|
|
8
|
+
private macroId;
|
|
9
|
+
private line;
|
|
10
|
+
constructor(version: string, macroId: string, line: string);
|
|
11
|
+
getRecordType(): IRecordT;
|
|
12
|
+
/**
|
|
13
|
+
* Get the version.
|
|
14
|
+
*
|
|
15
|
+
* @return The version.
|
|
16
|
+
*/
|
|
17
|
+
getVersion(): string;
|
|
18
|
+
/**
|
|
19
|
+
* Set the version.
|
|
20
|
+
*
|
|
21
|
+
* @param version The version.
|
|
22
|
+
*/
|
|
23
|
+
setVersion(version: string): void;
|
|
24
|
+
/**
|
|
25
|
+
* Get the macro id.
|
|
26
|
+
*
|
|
27
|
+
* @return The macro id.
|
|
28
|
+
*/
|
|
29
|
+
getMacroId(): string;
|
|
30
|
+
/**
|
|
31
|
+
* Set the macro id.
|
|
32
|
+
*
|
|
33
|
+
* @param macroId The macro id.
|
|
34
|
+
*/
|
|
35
|
+
setMacroId(macroId: string): void;
|
|
36
|
+
/**
|
|
37
|
+
* Get the line.
|
|
38
|
+
*
|
|
39
|
+
* @return The line.
|
|
40
|
+
*/
|
|
41
|
+
getLine(): string;
|
|
42
|
+
/**
|
|
43
|
+
* Set the line.
|
|
44
|
+
*
|
|
45
|
+
* @param line The line.
|
|
46
|
+
*/
|
|
47
|
+
setLine(line: string): void;
|
|
48
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { IRecordT } from "./IRecordT";
|
|
2
|
+
import { IRecord } from "./IRecord";
|
|
3
|
+
/**
|
|
4
|
+
* This class represents a Processor record in an events file.
|
|
5
|
+
*/
|
|
6
|
+
export declare class ProcessorRecord implements IRecord {
|
|
7
|
+
private version;
|
|
8
|
+
private outputId;
|
|
9
|
+
private lineClass;
|
|
10
|
+
constructor(version: string, outputId: string, lineClass: string);
|
|
11
|
+
getRecordType(): IRecordT;
|
|
12
|
+
/**
|
|
13
|
+
* Get the version.
|
|
14
|
+
*
|
|
15
|
+
* @return The version.
|
|
16
|
+
*/
|
|
17
|
+
getVersion(): string;
|
|
18
|
+
/**
|
|
19
|
+
* Set the version.
|
|
20
|
+
*
|
|
21
|
+
* @param version The version.
|
|
22
|
+
*/
|
|
23
|
+
setVersion(version: string): void;
|
|
24
|
+
/**
|
|
25
|
+
* Get the output id.
|
|
26
|
+
*
|
|
27
|
+
* @return The output id.
|
|
28
|
+
*/
|
|
29
|
+
getOutputId(): string;
|
|
30
|
+
/**
|
|
31
|
+
* Set the output id.
|
|
32
|
+
*
|
|
33
|
+
* @param outputId The output id.
|
|
34
|
+
*/
|
|
35
|
+
setOutputId(outputId: string): void;
|
|
36
|
+
/**
|
|
37
|
+
* Get the line class.
|
|
38
|
+
*
|
|
39
|
+
* @return The line class.
|
|
40
|
+
*/
|
|
41
|
+
getLineClass(): string;
|
|
42
|
+
/**
|
|
43
|
+
* Set the line class.
|
|
44
|
+
*
|
|
45
|
+
* @param lineClass The line class.
|
|
46
|
+
*/
|
|
47
|
+
setLineClass(lineClass: string): void;
|
|
48
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { IRecord } from "./IRecord";
|
|
2
|
+
import { IRecordT } from "./IRecordT";
|
|
3
|
+
/**
|
|
4
|
+
* This class represents a Program record in an events file.
|
|
5
|
+
*/
|
|
6
|
+
export declare class ProgramRecord implements IRecord {
|
|
7
|
+
private version;
|
|
8
|
+
private line;
|
|
9
|
+
constructor(version: string, line: string);
|
|
10
|
+
getRecordType(): IRecordT;
|
|
11
|
+
/**
|
|
12
|
+
* Get the version.
|
|
13
|
+
*
|
|
14
|
+
* @return The version.
|
|
15
|
+
*/
|
|
16
|
+
getVersion(): string;
|
|
17
|
+
/**
|
|
18
|
+
* Set the version.
|
|
19
|
+
*
|
|
20
|
+
* @param version The version.
|
|
21
|
+
*/
|
|
22
|
+
setVersion(version: string): void;
|
|
23
|
+
/**
|
|
24
|
+
* Get the line.
|
|
25
|
+
*
|
|
26
|
+
* @return The line.
|
|
27
|
+
*/
|
|
28
|
+
getLine(): string;
|
|
29
|
+
/**
|
|
30
|
+
* Set the line.
|
|
31
|
+
*
|
|
32
|
+
* @param line The line.
|
|
33
|
+
*/
|
|
34
|
+
setLine(line: string): void;
|
|
35
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { IRecordT } from './IRecordT';
|
|
2
|
+
import { IRecord } from './IRecord';
|
|
3
|
+
/**
|
|
4
|
+
* This class represents a Timestamp record in an events file.
|
|
5
|
+
*/
|
|
6
|
+
export declare class TimestampRecord implements IRecord {
|
|
7
|
+
private version;
|
|
8
|
+
private timestamp;
|
|
9
|
+
constructor(version: string, timestamp: string);
|
|
10
|
+
getRecordType(): IRecordT;
|
|
11
|
+
/**
|
|
12
|
+
* Get the version.
|
|
13
|
+
*
|
|
14
|
+
* @return The version.
|
|
15
|
+
*/
|
|
16
|
+
getVersion(): string;
|
|
17
|
+
/**
|
|
18
|
+
* Set the version.
|
|
19
|
+
*
|
|
20
|
+
* @param version The version.
|
|
21
|
+
*/
|
|
22
|
+
setVersion(version: string): void;
|
|
23
|
+
/**
|
|
24
|
+
* Get the timestamp.
|
|
25
|
+
*
|
|
26
|
+
* @return The timestamp.
|
|
27
|
+
*/
|
|
28
|
+
getTimestamp(): string;
|
|
29
|
+
/**
|
|
30
|
+
* Set the timestamp.
|
|
31
|
+
*
|
|
32
|
+
* @param timestamp The timestamp.
|
|
33
|
+
*/
|
|
34
|
+
setTimestamp(timestamp: string): void;
|
|
35
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@ibm/ibmi-eventf-parser",
|
|
3
|
+
"description": "Parse event files that are generated by IBM i compilers",
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"publisher": "IBM",
|
|
6
|
+
"author": "IBM",
|
|
7
|
+
"license": "Apache-2.0",
|
|
8
|
+
"homepage": "https://github.com/IBM/ibmi-eventf-parser/blob/main/README.md",
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "https://github.com/IBM/ibmi-eventf-parser"
|
|
12
|
+
},
|
|
13
|
+
"bugs": {
|
|
14
|
+
"url": "https://github.com/IBM/ibmi-eventf-parser/issues"
|
|
15
|
+
},
|
|
16
|
+
"keywords": [
|
|
17
|
+
"ibmi",
|
|
18
|
+
"iseries",
|
|
19
|
+
"as400"
|
|
20
|
+
],
|
|
21
|
+
"main": "dist/index.js",
|
|
22
|
+
"types": "dist/index.d.ts",
|
|
23
|
+
"scripts": {
|
|
24
|
+
"webpack": "webpack --mode production --config ./webpack.config.js",
|
|
25
|
+
"webpack:dev": "webpack --mode none --config ./webpack.config.js",
|
|
26
|
+
"test": "npx vitest run",
|
|
27
|
+
"test:dev": "npx vitest",
|
|
28
|
+
"coverage": "npx vitest run --coverage"
|
|
29
|
+
},
|
|
30
|
+
"devDependencies": {
|
|
31
|
+
"@vitest/coverage-v8": "^0.33.0",
|
|
32
|
+
"ts-loader": "^9.4.4",
|
|
33
|
+
"vitest": "^0.33.0",
|
|
34
|
+
"webpack": "^5.88.2",
|
|
35
|
+
"webpack-cli": "^5.1.4"
|
|
36
|
+
}
|
|
37
|
+
}
|