@code0-tech/definition-reader 0.0.16 → 0.0.17
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/dist/index.d.ts +2 -0
- package/dist/mapper/dataTypeMapper.d.ts +6 -0
- package/dist/mapper/flowTypeMapper.d.ts +5 -0
- package/dist/mapper/functionMapper.d.ts +5 -0
- package/dist/mapper/translation.d.ts +3 -0
- package/dist/parser.d.ts +10 -0
- package/package.json +7 -5
- package/src/index.ts +2 -0
- package/index.ts +0 -2
- /package/dist/{definition-reader.js → index.js} +0 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { DataType, DataTypeIdentifier } from '@code0-tech/sagittarius-graphql-types';
|
|
2
|
+
import { DataTypeIdentifier as TucanaDataTypeIdentifier } from '@code0-tech/tucana/pb/shared.data_type_pb.ts';
|
|
3
|
+
import { ConstructedDataTypes } from '../parser.ts';
|
|
4
|
+
declare function getDataType(identifier: string, constructedDataTypes: ConstructedDataTypes): DataType | null;
|
|
5
|
+
declare function getDataTypeIdentifier(identifier: TucanaDataTypeIdentifier | undefined, constructedDataTypes: ConstructedDataTypes): DataTypeIdentifier | null;
|
|
6
|
+
export { getDataType, getDataTypeIdentifier };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { FlowType as TucanaFlowType } from '@code0-tech/tucana/pb/shared.flow_definition_pb.ts';
|
|
2
|
+
import { FlowType } from '@code0-tech/sagittarius-graphql-types';
|
|
3
|
+
import { ConstructedDataTypes } from '../parser.ts';
|
|
4
|
+
declare function mapFlowType(flowType: TucanaFlowType, constructed: ConstructedDataTypes): FlowType | null;
|
|
5
|
+
export { mapFlowType };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { FunctionDefinition } from '@code0-tech/sagittarius-graphql-types';
|
|
2
|
+
import { RuntimeFunctionDefinition as TucanaFunction } from '@code0-tech/tucana/pb/shared.runtime_function_pb.ts';
|
|
3
|
+
import { ConstructedDataTypes } from '../parser.ts';
|
|
4
|
+
declare function mapFunction(func: TucanaFunction, constructed: ConstructedDataTypes): FunctionDefinition | null;
|
|
5
|
+
export { mapFunction };
|
package/dist/parser.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Feature } from './types.ts';
|
|
2
|
+
import { DataType } from '@code0-tech/sagittarius-graphql-types';
|
|
3
|
+
import { DefinitionDataType } from '@code0-tech/tucana/pb/shared.data_type_pb.ts';
|
|
4
|
+
export interface ConstructedDataTypes {
|
|
5
|
+
scannedTucanaTypes: DefinitionDataType[];
|
|
6
|
+
constructedDataTypes: DataType[];
|
|
7
|
+
id: number;
|
|
8
|
+
}
|
|
9
|
+
export declare function getID(constructedDataTypes: ConstructedDataTypes): number;
|
|
10
|
+
export declare const Definition: (rootPath: string) => Feature[];
|
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@code0-tech/definition-reader",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.17",
|
|
4
4
|
"description": "Reader for Code0-Definitions",
|
|
5
|
-
"main": "./dist/
|
|
5
|
+
"main": "./dist/index.js",
|
|
6
|
+
"types": "./dist/index.d.ts",
|
|
6
7
|
"type": "module",
|
|
7
8
|
"scripts": {
|
|
8
|
-
"build": "npx vite build
|
|
9
|
+
"build": "npx vite build"
|
|
9
10
|
},
|
|
10
11
|
"author": "",
|
|
11
12
|
"license": "",
|
|
@@ -20,7 +21,7 @@
|
|
|
20
21
|
},
|
|
21
22
|
"files": [
|
|
22
23
|
"dist",
|
|
23
|
-
"index.ts",
|
|
24
|
+
"src/index.ts",
|
|
24
25
|
"src"
|
|
25
26
|
],
|
|
26
27
|
"publishConfig": {
|
|
@@ -29,6 +30,7 @@
|
|
|
29
30
|
"dependencies": {
|
|
30
31
|
"@code0-tech/sagittarius-graphql-types": "^0.0.0-00f33663039d78ad59e95306730878c687de5c48",
|
|
31
32
|
"@code0-tech/tucana": "^0.0.37",
|
|
32
|
-
"@protobuf-ts/runtime": "^2.11.1"
|
|
33
|
+
"@protobuf-ts/runtime": "^2.11.1",
|
|
34
|
+
"vite-plugin-dts": "^4.5.4"
|
|
33
35
|
}
|
|
34
36
|
}
|
package/src/index.ts
ADDED
package/index.ts
DELETED
|
File without changes
|