@intersystems-community/ascot 0.2.0 → 0.3.1
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/README.md +35 -30
- package/dist/index.d.ts +15 -11
- package/dist/index.js +25 -20
- package/dist/index.js.map +1 -1
- package/generated/ascot.js +1519 -1323
- package/generated/interfaces/iris-ascot-common.d.ts +21 -5
- package/generated/interfaces/iris-ascot-imported.d.ts +3 -2
- package/lib/ascot.core.wasm +0 -0
- package/package.json +5 -2
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
/** @module Interface iris:ascot/common **/
|
|
2
|
-
export interface RoutineSource {
|
|
3
|
-
text: string,
|
|
4
|
-
uri?: string,
|
|
5
|
-
}
|
|
6
2
|
export interface Position {
|
|
7
3
|
line: number,
|
|
8
4
|
character: number,
|
|
@@ -29,6 +25,22 @@ export interface PropertyInfo {
|
|
|
29
25
|
collection?: CollectionKind,
|
|
30
26
|
multidimensional: boolean,
|
|
31
27
|
}
|
|
28
|
+
/**
|
|
29
|
+
* # Variants
|
|
30
|
+
*
|
|
31
|
+
* ## `"one"`
|
|
32
|
+
*
|
|
33
|
+
* ## `"many"`
|
|
34
|
+
*
|
|
35
|
+
* ## `"parent"`
|
|
36
|
+
*
|
|
37
|
+
* ## `"children"`
|
|
38
|
+
*/
|
|
39
|
+
export type Cardinality = 'one' | 'many' | 'parent' | 'children';
|
|
40
|
+
export interface RelationshipInfo {
|
|
41
|
+
t?: string,
|
|
42
|
+
cardinality?: Cardinality,
|
|
43
|
+
}
|
|
32
44
|
/**
|
|
33
45
|
* # Variants
|
|
34
46
|
*
|
|
@@ -74,7 +86,7 @@ export interface MemberKindProperty {
|
|
|
74
86
|
}
|
|
75
87
|
export interface MemberKindRelationship {
|
|
76
88
|
tag: 'relationship',
|
|
77
|
-
val:
|
|
89
|
+
val: RelationshipInfo,
|
|
78
90
|
}
|
|
79
91
|
export interface MemberKindForeignKey {
|
|
80
92
|
tag: 'foreign-key',
|
|
@@ -131,6 +143,10 @@ export interface ClassInfo {
|
|
|
131
143
|
isDatatype?: boolean,
|
|
132
144
|
uri?: string,
|
|
133
145
|
}
|
|
146
|
+
export interface RoutineSource {
|
|
147
|
+
text: string,
|
|
148
|
+
uri?: string,
|
|
149
|
+
}
|
|
134
150
|
export interface Location {
|
|
135
151
|
uri: string,
|
|
136
152
|
range: Range,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/** @module Interface iris:ascot/imported **/
|
|
2
|
-
export type RoutineSource = import('./iris-ascot-common.js').RoutineSource;
|
|
3
2
|
export type ClassInfo = import('./iris-ascot-common.js').ClassInfo;
|
|
3
|
+
export type RoutineSource = import('./iris-ascot-common.js').RoutineSource;
|
|
4
|
+
export type Option<T> = { tag: 'none' } | { tag: 'some', val: T };
|
|
4
5
|
|
|
5
6
|
export class IrisConnection {
|
|
6
7
|
/**
|
|
@@ -9,5 +10,5 @@ export class IrisConnection {
|
|
|
9
10
|
private constructor();
|
|
10
11
|
getCls(cls: string): Promise<ClassInfo | undefined>;
|
|
11
12
|
getInc(name: string): Promise<RoutineSource | undefined>;
|
|
12
|
-
getIntOrMac(name: string): Promise<RoutineSource | undefined
|
|
13
|
+
getIntOrMac(name: string): Promise<Option<RoutineSource | undefined>>;
|
|
13
14
|
}
|
package/lib/ascot.core.wasm
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intersystems-community/ascot",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "ascot, a type checker and code intelligence engine for InterSystems ObjectScript, for Node and other JS consumers.",
|
|
5
5
|
"license": "MIT OR Apache-2.0",
|
|
6
6
|
"keywords": [
|
|
@@ -28,11 +28,14 @@
|
|
|
28
28
|
"node": ">=24"
|
|
29
29
|
},
|
|
30
30
|
"scripts": {
|
|
31
|
-
"build": "bash scripts/build.sh"
|
|
31
|
+
"build": "bash scripts/build.sh",
|
|
32
|
+
"format": "prettier --write .",
|
|
33
|
+
"format:check": "prettier --check ."
|
|
32
34
|
},
|
|
33
35
|
"devDependencies": {
|
|
34
36
|
"@bytecodealliance/jco": "^1.37.0",
|
|
35
37
|
"@types/node": "^26.6.5",
|
|
38
|
+
"prettier": "3.9.10",
|
|
36
39
|
"typescript": "^7.0.2"
|
|
37
40
|
}
|
|
38
41
|
}
|