@shaclmate/compiler 4.0.57 → 4.0.59
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/_ShapesGraphToAstTransformer/transformPropertyShapeToAstStructTypeField.js +5 -5
- package/dist/_ShapesGraphToAstTransformer/transformShapeToAstCompoundType.js +3 -3
- package/dist/_ShapesGraphToAstTransformer/transformShapeToAstStructType.js +1 -1
- package/dist/ast/AbstractCompoundType.d.ts +3 -3
- package/dist/ast/AbstractCompoundType.js +1 -1
- package/dist/ast/AbstractContainerType.d.ts +2 -2
- package/dist/ast/AbstractContainerType.js +1 -1
- package/dist/ast/AbstractLazyType.d.ts +2 -2
- package/dist/ast/{UnionType.d.ts → DiscriminatedUnionType.d.ts} +7 -7
- package/dist/ast/{UnionType.js → DiscriminatedUnionType.js} +9 -8
- package/dist/ast/ListType.d.ts +2 -2
- package/dist/ast/ListType.js +1 -1
- package/dist/ast/StructCompoundType.d.ts +2 -2
- package/dist/ast/StructCompoundType.js +1 -1
- package/dist/ast/StructDiscriminatedUnionType.d.ts +4 -0
- package/dist/ast/StructDiscriminatedUnionType.js +2 -0
- package/dist/ast/StructType.js +1 -1
- package/dist/ast/Type.d.ts +2 -2
- package/dist/ast/Type.js +1 -1
- package/dist/ast/index.d.ts +2 -2
- package/dist/ast/index.js +2 -2
- package/dist/generators/transformAstToLabeledPropertyGraph.js +2 -2
- package/dist/generators/ts/AbstractCollectionType.d.ts +2 -2
- package/dist/generators/ts/AbstractContainerType.d.ts +5 -5
- package/dist/generators/ts/AbstractContainerType.js +2 -2
- package/dist/generators/ts/AbstractIdentifierType.d.ts +1 -1
- package/dist/generators/ts/AbstractLazyType.d.ts +8 -8
- package/dist/generators/ts/AbstractLazyType.js +9 -9
- package/dist/generators/ts/AbstractLiteralType.d.ts +2 -2
- package/dist/generators/ts/AbstractNumericType.d.ts +1 -1
- package/dist/generators/ts/AbstractObjectSetType.d.ts +4 -4
- package/dist/generators/ts/AbstractObjectSetType.js +4 -3
- package/dist/generators/ts/AbstractPrimitiveType.d.ts +2 -2
- package/dist/generators/ts/AbstractTermType.d.ts +2 -2
- package/dist/generators/ts/AbstractType.d.ts +15 -75
- package/dist/generators/ts/AbstractType.js +6 -63
- package/dist/generators/ts/AbstractTypedLiteralType.d.ts +2 -2
- package/dist/generators/ts/BigDecimalType.d.ts +1 -1
- package/dist/generators/ts/BigIntType.d.ts +1 -1
- package/dist/generators/ts/BooleanType.d.ts +1 -1
- package/dist/generators/ts/DateTimeType.d.ts +1 -1
- package/dist/generators/ts/DateType.d.ts +1 -1
- package/dist/generators/ts/DefaultValueType.d.ts +4 -4
- package/dist/generators/ts/DefaultValueType.js +2 -2
- package/dist/generators/ts/{UnionType.d.ts → DiscriminatedUnionType.d.ts} +6 -6
- package/dist/generators/ts/{UnionType.js → DiscriminatedUnionType.js} +31 -31
- package/dist/generators/ts/FloatType.d.ts +1 -1
- package/dist/generators/ts/GraphqlSchema.d.ts +4 -4
- package/dist/generators/ts/GraphqlSchema.js +5 -4
- package/dist/generators/ts/IntType.d.ts +1 -1
- package/dist/generators/ts/LazyOptionType.d.ts +3 -3
- package/dist/generators/ts/ListType.d.ts +3 -3
- package/dist/generators/ts/ListType.js +2 -2
- package/dist/generators/ts/{ObjectUnionType.d.ts → ObjectDiscriminatedUnionType.d.ts} +4 -4
- package/dist/generators/ts/{ObjectUnionType.js → ObjectDiscriminatedUnionType.js} +8 -8
- package/dist/generators/ts/ObjectSetType.js +1 -1
- package/dist/generators/ts/ObjectType.d.ts +11 -11
- package/dist/generators/ts/ObjectType.js +6 -6
- package/dist/generators/ts/RdfjsDatasetObjectSetType.js +8 -5
- package/dist/generators/ts/SparqlObjectSetType.js +4 -1
- package/dist/generators/ts/StringType.d.ts +1 -1
- package/dist/generators/ts/TsGenerator.d.ts +1 -1
- package/dist/generators/ts/TsGenerator.js +19 -19
- package/dist/generators/ts/Type.d.ts +3 -3
- package/dist/generators/ts/TypeFactory.d.ts +5 -5
- package/dist/generators/ts/TypeFactory.js +16 -16
- package/dist/generators/ts/ZodGenerator.js +5 -5
- package/dist/generators/ts/_AbstractType/AbstractType_ConversionFunction.d.ts +10 -0
- package/dist/generators/ts/_AbstractType/AbstractType_ConversionFunction.js +2 -0
- package/dist/generators/ts/_AbstractType/AbstractType_DiscriminantProperty.d.ts +9 -0
- package/dist/generators/ts/_AbstractType/AbstractType_DiscriminantProperty.js +2 -0
- package/dist/generators/ts/_AbstractType/AbstractType_GraphqlType.d.ts +18 -0
- package/dist/generators/ts/_AbstractType/AbstractType_GraphqlType.js +33 -0
- package/dist/generators/ts/_AbstractType/AbstractType_JsType.d.ts +34 -0
- package/dist/generators/ts/_AbstractType/AbstractType_JsType.js +16 -0
- package/dist/generators/ts/_AbstractType/AbstractType_JsonType.d.ts +16 -0
- package/dist/generators/ts/_AbstractType/AbstractType_JsonType.js +31 -0
- package/dist/generators/ts/_ObjectType/{AbstractProperty.d.ts → ObjectType_AbstractProperty.d.ts} +2 -2
- package/dist/generators/ts/_ObjectType/{AbstractProperty.js → ObjectType_AbstractProperty.js} +2 -2
- package/dist/generators/ts/_ObjectType/ObjectType_DiscriminantProperty.d.ts +45 -0
- package/dist/generators/ts/_ObjectType/{DiscriminantProperty.js → ObjectType_DiscriminantProperty.js} +12 -9
- package/dist/generators/ts/_ObjectType/ObjectType_IdentifierProperty.d.ts +43 -0
- package/dist/generators/ts/_ObjectType/{IdentifierProperty.js → ObjectType_IdentifierProperty.js} +11 -11
- package/dist/generators/ts/_ObjectType/ObjectType_Property.d.ts +6 -0
- package/dist/generators/ts/_ObjectType/ObjectType_Property.js +2 -0
- package/dist/generators/ts/_ObjectType/ObjectType_ShaclProperty.d.ts +53 -0
- package/dist/generators/ts/_ObjectType/{ShaclProperty.js → ObjectType_ShaclProperty.js} +10 -10
- package/package.json +34 -24
- package/dist/ast/StructUnionType.d.ts +0 -4
- package/dist/ast/StructUnionType.js +0 -2
- package/dist/generators/ts/_ObjectType/DiscriminantProperty.d.ts +0 -45
- package/dist/generators/ts/_ObjectType/IdentifierProperty.d.ts +0 -43
- package/dist/generators/ts/_ObjectType/Property.d.ts +0 -6
- package/dist/generators/ts/_ObjectType/Property.js +0 -2
- package/dist/generators/ts/_ObjectType/ShaclProperty.d.ts +0 -53
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export var AbstractType_JsType;
|
|
2
|
+
(function (AbstractType_JsType) {
|
|
3
|
+
function equals(left, right) {
|
|
4
|
+
if (left.typeof !== right.typeof) {
|
|
5
|
+
return false;
|
|
6
|
+
}
|
|
7
|
+
if (left.typeof === "object" &&
|
|
8
|
+
right.typeof === "object" &&
|
|
9
|
+
left.instanceof !== right.instanceof) {
|
|
10
|
+
return false;
|
|
11
|
+
}
|
|
12
|
+
return true;
|
|
13
|
+
}
|
|
14
|
+
AbstractType_JsType.equals = equals;
|
|
15
|
+
})(AbstractType_JsType || (AbstractType_JsType = {}));
|
|
16
|
+
//# sourceMappingURL=AbstractType_JsType.js.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type Code } from "../ts-poet-wrapper.js";
|
|
2
|
+
export declare class AbstractType_JsonType {
|
|
3
|
+
/**
|
|
4
|
+
* Is the type optional in JSON? Equivalent to ? in TypeScript or | undefined.
|
|
5
|
+
*/
|
|
6
|
+
readonly optional: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* The expression of the type when it's required i.e. -- so it should never include "| undefined".
|
|
9
|
+
*/
|
|
10
|
+
readonly requiredExpression: Code;
|
|
11
|
+
constructor(requiredExpression: Code, parameters?: {
|
|
12
|
+
optional: boolean;
|
|
13
|
+
});
|
|
14
|
+
get expression(): Code;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=AbstractType_JsonType.d.ts.map
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { Memoize } from "typescript-memoize";
|
|
8
|
+
import { code } from "../ts-poet-wrapper.js";
|
|
9
|
+
export class AbstractType_JsonType {
|
|
10
|
+
/**
|
|
11
|
+
* Is the type optional in JSON? Equivalent to ? in TypeScript or | undefined.
|
|
12
|
+
*/
|
|
13
|
+
optional;
|
|
14
|
+
/**
|
|
15
|
+
* The expression of the type when it's required i.e. -- so it should never include "| undefined".
|
|
16
|
+
*/
|
|
17
|
+
requiredExpression;
|
|
18
|
+
constructor(requiredExpression, parameters) {
|
|
19
|
+
this.optional = !!parameters?.optional;
|
|
20
|
+
this.requiredExpression = requiredExpression;
|
|
21
|
+
}
|
|
22
|
+
get expression() {
|
|
23
|
+
return this.optional
|
|
24
|
+
? code `(${this.requiredExpression}) | undefined`
|
|
25
|
+
: this.requiredExpression;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
__decorate([
|
|
29
|
+
Memoize()
|
|
30
|
+
], AbstractType_JsonType.prototype, "expression", null);
|
|
31
|
+
//# sourceMappingURL=AbstractType_JsonType.js.map
|
package/dist/generators/ts/_ObjectType/{AbstractProperty.d.ts → ObjectType_AbstractProperty.d.ts}
RENAMED
|
@@ -5,7 +5,7 @@ import { rdfjsTermExpression } from "../rdfjsTermExpression.js";
|
|
|
5
5
|
import type { TsGenerator } from "../TsGenerator.js";
|
|
6
6
|
import type { Type } from "../Type.js";
|
|
7
7
|
import { type Code } from "../ts-poet-wrapper.js";
|
|
8
|
-
export declare abstract class
|
|
8
|
+
export declare abstract class ObjectType_AbstractProperty<TypeT extends Pick<Type, "expression" | "filterFunction" | "mutable" | "schema">> {
|
|
9
9
|
protected readonly configuration: TsGenerator.Configuration;
|
|
10
10
|
protected readonly logger: Logger;
|
|
11
11
|
protected readonly objectType: {
|
|
@@ -214,4 +214,4 @@ export declare abstract class AbstractProperty<TypeT extends Pick<Type, "express
|
|
|
214
214
|
}): Maybe<Code>;
|
|
215
215
|
protected readonly rdfjsTermExpression: (parameters: Parameters<typeof rdfjsTermExpression>[0]) => Code;
|
|
216
216
|
}
|
|
217
|
-
//# sourceMappingURL=
|
|
217
|
+
//# sourceMappingURL=ObjectType_AbstractProperty.d.ts.map
|
package/dist/generators/ts/_ObjectType/{AbstractProperty.js → ObjectType_AbstractProperty.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { rdfjsTermExpression } from "../rdfjsTermExpression.js";
|
|
2
2
|
import { code } from "../ts-poet-wrapper.js";
|
|
3
|
-
export class
|
|
3
|
+
export class ObjectType_AbstractProperty {
|
|
4
4
|
configuration;
|
|
5
5
|
logger;
|
|
6
6
|
objectType;
|
|
@@ -34,4 +34,4 @@ export class AbstractProperty {
|
|
|
34
34
|
}
|
|
35
35
|
rdfjsTermExpression;
|
|
36
36
|
}
|
|
37
|
-
//# sourceMappingURL=
|
|
37
|
+
//# sourceMappingURL=ObjectType_AbstractProperty.js.map
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { Maybe } from "purify-ts";
|
|
2
|
+
import { type Code } from "../ts-poet-wrapper.js";
|
|
3
|
+
import { ObjectType_AbstractProperty } from "./ObjectType_AbstractProperty.js";
|
|
4
|
+
export declare class ObjectType_DiscriminantProperty extends ObjectType_AbstractProperty<ObjectType_DiscriminantProperty.Type> {
|
|
5
|
+
readonly constructorParameter: ObjectType_AbstractProperty<ObjectType_DiscriminantProperty.Type>["constructorParameter"];
|
|
6
|
+
readonly declaration: Code;
|
|
7
|
+
readonly filterProperty: ObjectType_AbstractProperty<ObjectType_DiscriminantProperty.Type>["filterProperty"];
|
|
8
|
+
readonly graphqlField: ObjectType_AbstractProperty<ObjectType_DiscriminantProperty.Type>["graphqlField"];
|
|
9
|
+
readonly hashFunctionParameter: Code;
|
|
10
|
+
readonly jsonName = "@type";
|
|
11
|
+
readonly jsonSignature: Maybe<Code>;
|
|
12
|
+
readonly kind = "Discriminant";
|
|
13
|
+
readonly mutable = false;
|
|
14
|
+
readonly recursive = false;
|
|
15
|
+
readonly schema: Maybe<Code>;
|
|
16
|
+
readonly schemaType: Maybe<Code>;
|
|
17
|
+
readonly value: string;
|
|
18
|
+
constructor({ value, ...superParameters }: {
|
|
19
|
+
value: string;
|
|
20
|
+
} & Omit<ConstructorParameters<typeof ObjectType_AbstractProperty>[0], "type">);
|
|
21
|
+
get jsonSchema(): ObjectType_AbstractProperty<ObjectType_DiscriminantProperty.Type>["jsonSchema"];
|
|
22
|
+
get values(): readonly string[];
|
|
23
|
+
private get constValue();
|
|
24
|
+
constructorInitializer(): Maybe<Code>;
|
|
25
|
+
fromJsonInitializer(): Maybe<Code>;
|
|
26
|
+
fromRdfResourceValuesInitializer(): Maybe<Code>;
|
|
27
|
+
hashStatements({ variables, }: Parameters<ObjectType_AbstractProperty<ObjectType_DiscriminantProperty.Type>["hashStatements"]>[0]): readonly Code[];
|
|
28
|
+
jsonUiSchemaElement({ variables, }: Parameters<ObjectType_AbstractProperty<ObjectType_DiscriminantProperty.Type>["jsonUiSchemaElement"]>[0]): Maybe<Code>;
|
|
29
|
+
sparqlConstructTriplesExpression(): Maybe<Code>;
|
|
30
|
+
sparqlWherePatternsExpression(): ReturnType<ObjectType_AbstractProperty<ObjectType_DiscriminantProperty.Type>["sparqlWherePatternsExpression"]>;
|
|
31
|
+
toJsonInitializer({ variables, }: Parameters<ObjectType_AbstractProperty<ObjectType_DiscriminantProperty.Type>["toJsonInitializer"]>[0]): Maybe<Code>;
|
|
32
|
+
toRdfRdfResourceValuesStatements(): readonly Code[];
|
|
33
|
+
toStringInitializer(): Maybe<Code>;
|
|
34
|
+
}
|
|
35
|
+
export declare namespace ObjectType_DiscriminantProperty {
|
|
36
|
+
class Type {
|
|
37
|
+
readonly value: string;
|
|
38
|
+
readonly filterFunction: Code;
|
|
39
|
+
readonly mutable = false;
|
|
40
|
+
constructor(value: string);
|
|
41
|
+
get expression(): Code;
|
|
42
|
+
get schema(): Code;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=ObjectType_DiscriminantProperty.d.ts.map
|
|
@@ -7,8 +7,8 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
import { Maybe } from "purify-ts";
|
|
8
8
|
import { Memoize } from "typescript-memoize";
|
|
9
9
|
import { code, literalOf } from "../ts-poet-wrapper.js";
|
|
10
|
-
import {
|
|
11
|
-
export class
|
|
10
|
+
import { ObjectType_AbstractProperty } from "./ObjectType_AbstractProperty.js";
|
|
11
|
+
export class ObjectType_DiscriminantProperty extends ObjectType_AbstractProperty {
|
|
12
12
|
constructorParameter = Maybe.empty();
|
|
13
13
|
declaration = code `readonly ${this.name}: ${this.type.expression};`;
|
|
14
14
|
filterProperty = Maybe.empty();
|
|
@@ -23,7 +23,10 @@ export class DiscriminantProperty extends AbstractProperty {
|
|
|
23
23
|
schemaType = Maybe.empty();
|
|
24
24
|
value;
|
|
25
25
|
constructor({ value, ...superParameters }) {
|
|
26
|
-
super({
|
|
26
|
+
super({
|
|
27
|
+
...superParameters,
|
|
28
|
+
type: new ObjectType_DiscriminantProperty.Type(value),
|
|
29
|
+
});
|
|
27
30
|
this.value = value;
|
|
28
31
|
}
|
|
29
32
|
get jsonSchema() {
|
|
@@ -74,11 +77,11 @@ export class DiscriminantProperty extends AbstractProperty {
|
|
|
74
77
|
}
|
|
75
78
|
__decorate([
|
|
76
79
|
Memoize()
|
|
77
|
-
],
|
|
80
|
+
], ObjectType_DiscriminantProperty.prototype, "jsonSchema", null);
|
|
78
81
|
__decorate([
|
|
79
82
|
Memoize()
|
|
80
|
-
],
|
|
81
|
-
(function (
|
|
83
|
+
], ObjectType_DiscriminantProperty.prototype, "values", null);
|
|
84
|
+
(function (ObjectType_DiscriminantProperty) {
|
|
82
85
|
class Type {
|
|
83
86
|
value;
|
|
84
87
|
filterFunction = code `nonextant`;
|
|
@@ -99,6 +102,6 @@ __decorate([
|
|
|
99
102
|
__decorate([
|
|
100
103
|
Memoize()
|
|
101
104
|
], Type.prototype, "schema", null);
|
|
102
|
-
|
|
103
|
-
})(
|
|
104
|
-
//# sourceMappingURL=
|
|
105
|
+
ObjectType_DiscriminantProperty.Type = Type;
|
|
106
|
+
})(ObjectType_DiscriminantProperty || (ObjectType_DiscriminantProperty = {}));
|
|
107
|
+
//# sourceMappingURL=ObjectType_DiscriminantProperty.js.map
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { Maybe } from "purify-ts";
|
|
2
|
+
import type { BlankNodeType } from "../BlankNodeType.js";
|
|
3
|
+
import type { IdentifierType } from "../IdentifierType.js";
|
|
4
|
+
import type { IriType } from "../IriType.js";
|
|
5
|
+
import { type Code } from "../ts-poet-wrapper.js";
|
|
6
|
+
import { ObjectType_AbstractProperty } from "./ObjectType_AbstractProperty.js";
|
|
7
|
+
export declare class ObjectType_IdentifierProperty extends ObjectType_AbstractProperty<BlankNodeType | IdentifierType | IriType> {
|
|
8
|
+
readonly kind = "Identifier";
|
|
9
|
+
readonly mutable = false;
|
|
10
|
+
readonly recursive = false;
|
|
11
|
+
get constructorParameter(): Maybe<{
|
|
12
|
+
hasQuestionToken: boolean;
|
|
13
|
+
signature: Code;
|
|
14
|
+
}>;
|
|
15
|
+
get declaration(): Code;
|
|
16
|
+
get filterProperty(): Maybe<{
|
|
17
|
+
name: string;
|
|
18
|
+
type: Code;
|
|
19
|
+
}>;
|
|
20
|
+
get graphqlField(): ObjectType_AbstractProperty<IdentifierType>["graphqlField"];
|
|
21
|
+
get hashFunctionParameter(): Code;
|
|
22
|
+
get jsonSchema(): ObjectType_AbstractProperty<IdentifierType>["jsonSchema"];
|
|
23
|
+
get jsonSignature(): Maybe<Code>;
|
|
24
|
+
get schema(): Maybe<Code>;
|
|
25
|
+
get schemaType(): Maybe<Code>;
|
|
26
|
+
private get typeExpression();
|
|
27
|
+
private get typeSchemaVariable();
|
|
28
|
+
accessExpression({ variables, }: Parameters<ObjectType_AbstractProperty<BlankNodeType | IdentifierType | IriType>["accessExpression"]>[0]): Code;
|
|
29
|
+
constructorInitializer({ variables, }: Parameters<ObjectType_AbstractProperty<IdentifierType>["constructorInitializer"]>[0]): Maybe<Code>;
|
|
30
|
+
fromJsonInitializer({ variables, }: Parameters<ObjectType_AbstractProperty<IdentifierType>["fromJsonInitializer"]>[0]): Maybe<Code>;
|
|
31
|
+
fromRdfResourceValuesInitializer({ variables, }: Parameters<ObjectType_AbstractProperty<IdentifierType>["fromRdfResourceValuesInitializer"]>[0]): Maybe<Code>;
|
|
32
|
+
hashStatements({ variables, }: Parameters<ObjectType_AbstractProperty<IdentifierType>["hashStatements"]>[0]): readonly Code[];
|
|
33
|
+
jsonUiSchemaElement({ variables, }: Parameters<ObjectType_AbstractProperty<IdentifierType>["jsonUiSchemaElement"]>[0]): Maybe<Code>;
|
|
34
|
+
sparqlConstructTriplesExpression(): Maybe<Code>;
|
|
35
|
+
sparqlWherePatternsExpression({ variables, }: Parameters<ObjectType_AbstractProperty<IdentifierType>["sparqlWherePatternsExpression"]>[0]): Maybe<{
|
|
36
|
+
condition: Code;
|
|
37
|
+
patterns: Code;
|
|
38
|
+
}>;
|
|
39
|
+
toJsonInitializer({ variables, }: Parameters<ObjectType_AbstractProperty<IdentifierType>["toJsonInitializer"]>[0]): Maybe<Code>;
|
|
40
|
+
toRdfRdfResourceValuesStatements(): readonly Code[];
|
|
41
|
+
toStringInitializer(parameters: Parameters<ObjectType_AbstractProperty<IdentifierType>["toStringInitializer"]>[0]): Maybe<Code>;
|
|
42
|
+
}
|
|
43
|
+
//# sourceMappingURL=ObjectType_IdentifierProperty.d.ts.map
|
package/dist/generators/ts/_ObjectType/{IdentifierProperty.js → ObjectType_IdentifierProperty.js}
RENAMED
|
@@ -10,8 +10,8 @@ import { Maybe } from "purify-ts";
|
|
|
10
10
|
import { invariant } from "ts-invariant";
|
|
11
11
|
import { Memoize } from "typescript-memoize";
|
|
12
12
|
import { arrayOf, code, joinCode, literalOf, } from "../ts-poet-wrapper.js";
|
|
13
|
-
import {
|
|
14
|
-
export class
|
|
13
|
+
import { ObjectType_AbstractProperty } from "./ObjectType_AbstractProperty.js";
|
|
14
|
+
export class ObjectType_IdentifierProperty extends ObjectType_AbstractProperty {
|
|
15
15
|
kind = "Identifier";
|
|
16
16
|
mutable = false;
|
|
17
17
|
recursive = false;
|
|
@@ -180,26 +180,26 @@ export class IdentifierProperty extends AbstractProperty {
|
|
|
180
180
|
}
|
|
181
181
|
__decorate([
|
|
182
182
|
Memoize()
|
|
183
|
-
],
|
|
183
|
+
], ObjectType_IdentifierProperty.prototype, "constructorParameter", null);
|
|
184
184
|
__decorate([
|
|
185
185
|
Memoize()
|
|
186
|
-
],
|
|
186
|
+
], ObjectType_IdentifierProperty.prototype, "declaration", null);
|
|
187
187
|
__decorate([
|
|
188
188
|
Memoize()
|
|
189
|
-
],
|
|
189
|
+
], ObjectType_IdentifierProperty.prototype, "filterProperty", null);
|
|
190
190
|
__decorate([
|
|
191
191
|
Memoize()
|
|
192
|
-
],
|
|
192
|
+
], ObjectType_IdentifierProperty.prototype, "graphqlField", null);
|
|
193
193
|
__decorate([
|
|
194
194
|
Memoize()
|
|
195
|
-
],
|
|
195
|
+
], ObjectType_IdentifierProperty.prototype, "hashFunctionParameter", null);
|
|
196
196
|
__decorate([
|
|
197
197
|
Memoize()
|
|
198
|
-
],
|
|
198
|
+
], ObjectType_IdentifierProperty.prototype, "jsonSchema", null);
|
|
199
199
|
__decorate([
|
|
200
200
|
Memoize()
|
|
201
|
-
],
|
|
201
|
+
], ObjectType_IdentifierProperty.prototype, "jsonSignature", null);
|
|
202
202
|
__decorate([
|
|
203
203
|
Memoize()
|
|
204
|
-
],
|
|
205
|
-
//# sourceMappingURL=
|
|
204
|
+
], ObjectType_IdentifierProperty.prototype, "typeExpression", null);
|
|
205
|
+
//# sourceMappingURL=ObjectType_IdentifierProperty.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { Type } from "../Type.js";
|
|
2
|
+
import type { ObjectType_DiscriminantProperty } from "./ObjectType_DiscriminantProperty.js";
|
|
3
|
+
import type { ObjectType_IdentifierProperty } from "./ObjectType_IdentifierProperty.js";
|
|
4
|
+
import type { ObjectType_ShaclProperty } from "./ObjectType_ShaclProperty.js";
|
|
5
|
+
export type ObjectType_Property = ObjectType_IdentifierProperty | ObjectType_ShaclProperty<Type> | ObjectType_DiscriminantProperty;
|
|
6
|
+
//# sourceMappingURL=ObjectType_Property.d.ts.map
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import type { PropertyPath } from "@rdfx/resource";
|
|
2
|
+
import { Maybe } from "purify-ts";
|
|
3
|
+
import type { Type } from "../Type.js";
|
|
4
|
+
import { type Code } from "../ts-poet-wrapper.js";
|
|
5
|
+
import { ObjectType_AbstractProperty } from "./ObjectType_AbstractProperty.js";
|
|
6
|
+
export declare class ObjectType_ShaclProperty<TypeT extends Type> extends ObjectType_AbstractProperty<TypeT> {
|
|
7
|
+
private readonly comment;
|
|
8
|
+
private readonly description;
|
|
9
|
+
private readonly display;
|
|
10
|
+
private readonly label;
|
|
11
|
+
readonly kind = "Shacl";
|
|
12
|
+
readonly mutable: boolean;
|
|
13
|
+
readonly path: PropertyPath;
|
|
14
|
+
readonly recursive: boolean;
|
|
15
|
+
constructor({ comment, description, display, label, mutable, path, recursive, ...superParameters }: {
|
|
16
|
+
comment: Maybe<string>;
|
|
17
|
+
description: Maybe<string>;
|
|
18
|
+
display: boolean;
|
|
19
|
+
label: Maybe<string>;
|
|
20
|
+
mutable: boolean;
|
|
21
|
+
path: PropertyPath;
|
|
22
|
+
recursive: boolean;
|
|
23
|
+
} & ConstructorParameters<typeof ObjectType_AbstractProperty<TypeT>>[0]);
|
|
24
|
+
get constructorParameter(): Maybe<{
|
|
25
|
+
hasQuestionToken: boolean;
|
|
26
|
+
signature: Code;
|
|
27
|
+
}>;
|
|
28
|
+
get declaration(): Code;
|
|
29
|
+
get filterProperty(): Maybe<{
|
|
30
|
+
name: string;
|
|
31
|
+
type: Code;
|
|
32
|
+
}>;
|
|
33
|
+
get graphqlField(): ObjectType_AbstractProperty<TypeT>["graphqlField"];
|
|
34
|
+
get hashFunctionParameter(): Code;
|
|
35
|
+
get jsonSchema(): ObjectType_AbstractProperty<TypeT>["jsonSchema"];
|
|
36
|
+
get jsonSignature(): Maybe<Code>;
|
|
37
|
+
get schema(): Maybe<Code>;
|
|
38
|
+
get schemaType(): Maybe<Code>;
|
|
39
|
+
private get schemaVariable();
|
|
40
|
+
private get typeSchemaVariable();
|
|
41
|
+
constructorInitializer({ variables, }: Parameters<ObjectType_AbstractProperty<TypeT>["constructorInitializer"]>[0]): Maybe<Code>;
|
|
42
|
+
fromJsonInitializer({ variables, }: Parameters<ObjectType_AbstractProperty<TypeT>["fromJsonInitializer"]>[0]): Maybe<Code>;
|
|
43
|
+
fromRdfResourceValuesInitializer({ variables, }: Parameters<ObjectType_AbstractProperty<TypeT>["fromRdfResourceValuesInitializer"]>[0]): Maybe<Code>;
|
|
44
|
+
hashStatements({ variables, }: Parameters<ObjectType_AbstractProperty<TypeT>["hashStatements"]>[0]): readonly Code[];
|
|
45
|
+
jsonUiSchemaElement({ variables, }: Parameters<ObjectType_AbstractProperty<TypeT>["jsonUiSchemaElement"]>[0]): Maybe<Code>;
|
|
46
|
+
sparqlConstructTriplesExpression({ variables, }: Parameters<ObjectType_AbstractProperty<TypeT>["sparqlConstructTriplesExpression"]>[0]): Maybe<Code>;
|
|
47
|
+
sparqlWherePatternsExpression({ variables, }: Parameters<ObjectType_AbstractProperty<TypeT>["sparqlWherePatternsExpression"]>[0]): ReturnType<ObjectType_AbstractProperty<TypeT>["sparqlWherePatternsExpression"]>;
|
|
48
|
+
toJsonInitializer(parameters: Parameters<ObjectType_AbstractProperty<TypeT>["toJsonInitializer"]>[0]): Maybe<Code>;
|
|
49
|
+
toRdfRdfResourceValuesStatements({ variables, }: Parameters<ObjectType_AbstractProperty<TypeT>["toRdfRdfResourceValuesStatements"]>[0]): readonly Code[];
|
|
50
|
+
toStringInitializer(parameters: Parameters<ObjectType_AbstractProperty<TypeT>["toStringInitializer"]>[0]): Maybe<Code>;
|
|
51
|
+
private propertyPathToCode;
|
|
52
|
+
}
|
|
53
|
+
//# sourceMappingURL=ObjectType_ShaclProperty.d.ts.map
|
|
@@ -8,8 +8,8 @@ import { Maybe } from "purify-ts";
|
|
|
8
8
|
import { Memoize } from "typescript-memoize";
|
|
9
9
|
import { code, joinCode, literalOf } from "../ts-poet-wrapper.js";
|
|
10
10
|
import { tsComment } from "../tsComment.js";
|
|
11
|
-
import {
|
|
12
|
-
export class
|
|
11
|
+
import { ObjectType_AbstractProperty } from "./ObjectType_AbstractProperty.js";
|
|
12
|
+
export class ObjectType_ShaclProperty extends ObjectType_AbstractProperty {
|
|
13
13
|
comment;
|
|
14
14
|
description;
|
|
15
15
|
display;
|
|
@@ -262,23 +262,23 @@ export class ShaclProperty extends AbstractProperty {
|
|
|
262
262
|
}
|
|
263
263
|
__decorate([
|
|
264
264
|
Memoize()
|
|
265
|
-
],
|
|
265
|
+
], ObjectType_ShaclProperty.prototype, "constructorParameter", null);
|
|
266
266
|
__decorate([
|
|
267
267
|
Memoize()
|
|
268
|
-
],
|
|
268
|
+
], ObjectType_ShaclProperty.prototype, "declaration", null);
|
|
269
269
|
__decorate([
|
|
270
270
|
Memoize()
|
|
271
|
-
],
|
|
271
|
+
], ObjectType_ShaclProperty.prototype, "filterProperty", null);
|
|
272
272
|
__decorate([
|
|
273
273
|
Memoize()
|
|
274
|
-
],
|
|
274
|
+
], ObjectType_ShaclProperty.prototype, "graphqlField", null);
|
|
275
275
|
__decorate([
|
|
276
276
|
Memoize()
|
|
277
|
-
],
|
|
277
|
+
], ObjectType_ShaclProperty.prototype, "jsonSchema", null);
|
|
278
278
|
__decorate([
|
|
279
279
|
Memoize()
|
|
280
|
-
],
|
|
280
|
+
], ObjectType_ShaclProperty.prototype, "jsonSignature", null);
|
|
281
281
|
__decorate([
|
|
282
282
|
Memoize()
|
|
283
|
-
],
|
|
284
|
-
//# sourceMappingURL=
|
|
283
|
+
], ObjectType_ShaclProperty.prototype, "schemaVariable", null);
|
|
284
|
+
//# sourceMappingURL=ObjectType_ShaclProperty.js.map
|
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"dependencies": {
|
|
3
|
-
"@shaclmate/shacl-ast": "4.0.
|
|
3
|
+
"@shaclmate/shacl-ast": "4.0.59",
|
|
4
4
|
"@rdfjs/dataset": "~2.0.2",
|
|
5
5
|
"@rdfjs/prefix-map": "~0.1.2",
|
|
6
6
|
"@rdfjs/term-map": "~2.0.2",
|
|
7
7
|
"@rdfjs/term-set": "~2.0.3",
|
|
8
8
|
"@rdfjs/types": "~2.0.1",
|
|
9
|
-
"@rdfx/data-factory": "0.0.
|
|
10
|
-
"@rdfx/literal": "0.0.
|
|
11
|
-
"@rdfx/resource": "0.0.
|
|
12
|
-
"@rdfx/string": "0.0.
|
|
9
|
+
"@rdfx/data-factory": "0.0.29",
|
|
10
|
+
"@rdfx/literal": "0.0.29",
|
|
11
|
+
"@rdfx/resource": "0.0.29",
|
|
12
|
+
"@rdfx/string": "0.0.29",
|
|
13
13
|
"@sindresorhus/base62": "~0.1.0",
|
|
14
14
|
"@tpluscode/rdf-ns-builders": "~4.3.0",
|
|
15
15
|
"@types/rdfjs__dataset": "~2.0.7",
|
|
@@ -76,6 +76,8 @@
|
|
|
76
76
|
"dist/ast/BlankNodeType.js",
|
|
77
77
|
"dist/ast/DefaultValueType.d.ts",
|
|
78
78
|
"dist/ast/DefaultValueType.js",
|
|
79
|
+
"dist/ast/DiscriminatedUnionType.d.ts",
|
|
80
|
+
"dist/ast/DiscriminatedUnionType.js",
|
|
79
81
|
"dist/ast/IdentifierType.d.ts",
|
|
80
82
|
"dist/ast/IdentifierType.js",
|
|
81
83
|
"dist/ast/IntersectionType.d.ts",
|
|
@@ -98,18 +100,16 @@
|
|
|
98
100
|
"dist/ast/SetType.js",
|
|
99
101
|
"dist/ast/StructCompoundType.d.ts",
|
|
100
102
|
"dist/ast/StructCompoundType.js",
|
|
103
|
+
"dist/ast/StructDiscriminatedUnionType.d.ts",
|
|
104
|
+
"dist/ast/StructDiscriminatedUnionType.js",
|
|
101
105
|
"dist/ast/StructIntersectionType.d.ts",
|
|
102
106
|
"dist/ast/StructIntersectionType.js",
|
|
103
107
|
"dist/ast/StructType.d.ts",
|
|
104
108
|
"dist/ast/StructType.js",
|
|
105
|
-
"dist/ast/StructUnionType.d.ts",
|
|
106
|
-
"dist/ast/StructUnionType.js",
|
|
107
109
|
"dist/ast/TermType.d.ts",
|
|
108
110
|
"dist/ast/TermType.js",
|
|
109
111
|
"dist/ast/Type.d.ts",
|
|
110
112
|
"dist/ast/Type.js",
|
|
111
|
-
"dist/ast/UnionType.d.ts",
|
|
112
|
-
"dist/ast/UnionType.js",
|
|
113
113
|
"dist/ast/equals.d.ts",
|
|
114
114
|
"dist/ast/equals.js",
|
|
115
115
|
"dist/ast/index.d.ts",
|
|
@@ -164,6 +164,8 @@
|
|
|
164
164
|
"dist/generators/ts/DateType.js",
|
|
165
165
|
"dist/generators/ts/DefaultValueType.d.ts",
|
|
166
166
|
"dist/generators/ts/DefaultValueType.js",
|
|
167
|
+
"dist/generators/ts/DiscriminatedUnionType.d.ts",
|
|
168
|
+
"dist/generators/ts/DiscriminatedUnionType.js",
|
|
167
169
|
"dist/generators/ts/FloatType.d.ts",
|
|
168
170
|
"dist/generators/ts/FloatType.js",
|
|
169
171
|
"dist/generators/ts/GraphqlSchema.d.ts",
|
|
@@ -188,12 +190,12 @@
|
|
|
188
190
|
"dist/generators/ts/ListType.js",
|
|
189
191
|
"dist/generators/ts/LiteralType.d.ts",
|
|
190
192
|
"dist/generators/ts/LiteralType.js",
|
|
193
|
+
"dist/generators/ts/ObjectDiscriminatedUnionType.d.ts",
|
|
194
|
+
"dist/generators/ts/ObjectDiscriminatedUnionType.js",
|
|
191
195
|
"dist/generators/ts/ObjectSetType.d.ts",
|
|
192
196
|
"dist/generators/ts/ObjectSetType.js",
|
|
193
197
|
"dist/generators/ts/ObjectType.d.ts",
|
|
194
198
|
"dist/generators/ts/ObjectType.js",
|
|
195
|
-
"dist/generators/ts/ObjectUnionType.d.ts",
|
|
196
|
-
"dist/generators/ts/ObjectUnionType.js",
|
|
197
199
|
"dist/generators/ts/OptionType.d.ts",
|
|
198
200
|
"dist/generators/ts/OptionType.js",
|
|
199
201
|
"dist/generators/ts/RdfjsDatasetObjectSetType.d.ts",
|
|
@@ -224,16 +226,28 @@
|
|
|
224
226
|
"dist/generators/ts/TypeFactory.js",
|
|
225
227
|
"dist/generators/ts/Typeof.d.ts",
|
|
226
228
|
"dist/generators/ts/Typeof.js",
|
|
227
|
-
"dist/generators/ts/UnionType.d.ts",
|
|
228
|
-
"dist/generators/ts/UnionType.js",
|
|
229
229
|
"dist/generators/ts/ZodGenerator.d.ts",
|
|
230
230
|
"dist/generators/ts/ZodGenerator.js",
|
|
231
|
-
"dist/generators/ts/
|
|
232
|
-
"dist/generators/ts/
|
|
233
|
-
"dist/generators/ts/
|
|
234
|
-
"dist/generators/ts/
|
|
235
|
-
"dist/generators/ts/
|
|
236
|
-
"dist/generators/ts/
|
|
231
|
+
"dist/generators/ts/_AbstractType/AbstractType_ConversionFunction.d.ts",
|
|
232
|
+
"dist/generators/ts/_AbstractType/AbstractType_ConversionFunction.js",
|
|
233
|
+
"dist/generators/ts/_AbstractType/AbstractType_DiscriminantProperty.d.ts",
|
|
234
|
+
"dist/generators/ts/_AbstractType/AbstractType_DiscriminantProperty.js",
|
|
235
|
+
"dist/generators/ts/_AbstractType/AbstractType_GraphqlType.d.ts",
|
|
236
|
+
"dist/generators/ts/_AbstractType/AbstractType_GraphqlType.js",
|
|
237
|
+
"dist/generators/ts/_AbstractType/AbstractType_JsType.d.ts",
|
|
238
|
+
"dist/generators/ts/_AbstractType/AbstractType_JsType.js",
|
|
239
|
+
"dist/generators/ts/_AbstractType/AbstractType_JsonType.d.ts",
|
|
240
|
+
"dist/generators/ts/_AbstractType/AbstractType_JsonType.js",
|
|
241
|
+
"dist/generators/ts/_ObjectType/ObjectType_AbstractProperty.d.ts",
|
|
242
|
+
"dist/generators/ts/_ObjectType/ObjectType_AbstractProperty.js",
|
|
243
|
+
"dist/generators/ts/_ObjectType/ObjectType_DiscriminantProperty.d.ts",
|
|
244
|
+
"dist/generators/ts/_ObjectType/ObjectType_DiscriminantProperty.js",
|
|
245
|
+
"dist/generators/ts/_ObjectType/ObjectType_IdentifierProperty.d.ts",
|
|
246
|
+
"dist/generators/ts/_ObjectType/ObjectType_IdentifierProperty.js",
|
|
247
|
+
"dist/generators/ts/_ObjectType/ObjectType_Property.d.ts",
|
|
248
|
+
"dist/generators/ts/_ObjectType/ObjectType_Property.js",
|
|
249
|
+
"dist/generators/ts/_ObjectType/ObjectType_ShaclProperty.d.ts",
|
|
250
|
+
"dist/generators/ts/_ObjectType/ObjectType_ShaclProperty.js",
|
|
237
251
|
"dist/generators/ts/_ObjectType/ObjectType_createFunctionExpression.d.ts",
|
|
238
252
|
"dist/generators/ts/_ObjectType/ObjectType_createFunctionExpression.js",
|
|
239
253
|
"dist/generators/ts/_ObjectType/ObjectType_equalsFunctionExpression.d.ts",
|
|
@@ -288,10 +302,6 @@
|
|
|
288
302
|
"dist/generators/ts/_ObjectType/ObjectType_valueSparqlConstructTriplesFunctionExpression.js",
|
|
289
303
|
"dist/generators/ts/_ObjectType/ObjectType_valueSparqlWherePatternsFunctionExpression.d.ts",
|
|
290
304
|
"dist/generators/ts/_ObjectType/ObjectType_valueSparqlWherePatternsFunctionExpression.js",
|
|
291
|
-
"dist/generators/ts/_ObjectType/Property.d.ts",
|
|
292
|
-
"dist/generators/ts/_ObjectType/Property.js",
|
|
293
|
-
"dist/generators/ts/_ObjectType/ShaclProperty.d.ts",
|
|
294
|
-
"dist/generators/ts/_ObjectType/ShaclProperty.js",
|
|
295
305
|
"dist/generators/ts/_snippets/snippets_BlankNodeFilter.d.ts",
|
|
296
306
|
"dist/generators/ts/_snippets/snippets_BlankNodeFilter.js",
|
|
297
307
|
"dist/generators/ts/_snippets/snippets_BlankNodeSchema.d.ts",
|
|
@@ -660,5 +670,5 @@
|
|
|
660
670
|
},
|
|
661
671
|
"type": "module",
|
|
662
672
|
"types": "./dist/index.d.ts",
|
|
663
|
-
"version": "4.0.
|
|
673
|
+
"version": "4.0.59"
|
|
664
674
|
}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { Maybe } from "purify-ts";
|
|
2
|
-
import { type Code } from "../ts-poet-wrapper.js";
|
|
3
|
-
import { AbstractProperty } from "./AbstractProperty.js";
|
|
4
|
-
export declare class DiscriminantProperty extends AbstractProperty<DiscriminantProperty.Type> {
|
|
5
|
-
readonly constructorParameter: AbstractProperty<DiscriminantProperty.Type>["constructorParameter"];
|
|
6
|
-
readonly declaration: Code;
|
|
7
|
-
readonly filterProperty: AbstractProperty<DiscriminantProperty.Type>["filterProperty"];
|
|
8
|
-
readonly graphqlField: AbstractProperty<DiscriminantProperty.Type>["graphqlField"];
|
|
9
|
-
readonly hashFunctionParameter: Code;
|
|
10
|
-
readonly jsonName = "@type";
|
|
11
|
-
readonly jsonSignature: Maybe<Code>;
|
|
12
|
-
readonly kind = "Discriminant";
|
|
13
|
-
readonly mutable = false;
|
|
14
|
-
readonly recursive = false;
|
|
15
|
-
readonly schema: Maybe<Code>;
|
|
16
|
-
readonly schemaType: Maybe<Code>;
|
|
17
|
-
readonly value: string;
|
|
18
|
-
constructor({ value, ...superParameters }: {
|
|
19
|
-
value: string;
|
|
20
|
-
} & Omit<ConstructorParameters<typeof AbstractProperty>[0], "type">);
|
|
21
|
-
get jsonSchema(): AbstractProperty<DiscriminantProperty.Type>["jsonSchema"];
|
|
22
|
-
get values(): readonly string[];
|
|
23
|
-
private get constValue();
|
|
24
|
-
constructorInitializer(): Maybe<Code>;
|
|
25
|
-
fromJsonInitializer(): Maybe<Code>;
|
|
26
|
-
fromRdfResourceValuesInitializer(): Maybe<Code>;
|
|
27
|
-
hashStatements({ variables, }: Parameters<AbstractProperty<DiscriminantProperty.Type>["hashStatements"]>[0]): readonly Code[];
|
|
28
|
-
jsonUiSchemaElement({ variables, }: Parameters<AbstractProperty<DiscriminantProperty.Type>["jsonUiSchemaElement"]>[0]): Maybe<Code>;
|
|
29
|
-
sparqlConstructTriplesExpression(): Maybe<Code>;
|
|
30
|
-
sparqlWherePatternsExpression(): ReturnType<AbstractProperty<DiscriminantProperty.Type>["sparqlWherePatternsExpression"]>;
|
|
31
|
-
toJsonInitializer({ variables, }: Parameters<AbstractProperty<DiscriminantProperty.Type>["toJsonInitializer"]>[0]): Maybe<Code>;
|
|
32
|
-
toRdfRdfResourceValuesStatements(): readonly Code[];
|
|
33
|
-
toStringInitializer(): Maybe<Code>;
|
|
34
|
-
}
|
|
35
|
-
export declare namespace DiscriminantProperty {
|
|
36
|
-
class Type {
|
|
37
|
-
readonly value: string;
|
|
38
|
-
readonly filterFunction: Code;
|
|
39
|
-
readonly mutable = false;
|
|
40
|
-
constructor(value: string);
|
|
41
|
-
get expression(): Code;
|
|
42
|
-
get schema(): Code;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
//# sourceMappingURL=DiscriminantProperty.d.ts.map
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { Maybe } from "purify-ts";
|
|
2
|
-
import type { BlankNodeType } from "../BlankNodeType.js";
|
|
3
|
-
import type { IdentifierType } from "../IdentifierType.js";
|
|
4
|
-
import type { IriType } from "../IriType.js";
|
|
5
|
-
import { type Code } from "../ts-poet-wrapper.js";
|
|
6
|
-
import { AbstractProperty } from "./AbstractProperty.js";
|
|
7
|
-
export declare class IdentifierProperty extends AbstractProperty<BlankNodeType | IdentifierType | IriType> {
|
|
8
|
-
readonly kind = "Identifier";
|
|
9
|
-
readonly mutable = false;
|
|
10
|
-
readonly recursive = false;
|
|
11
|
-
get constructorParameter(): Maybe<{
|
|
12
|
-
hasQuestionToken: boolean;
|
|
13
|
-
signature: Code;
|
|
14
|
-
}>;
|
|
15
|
-
get declaration(): Code;
|
|
16
|
-
get filterProperty(): Maybe<{
|
|
17
|
-
name: string;
|
|
18
|
-
type: Code;
|
|
19
|
-
}>;
|
|
20
|
-
get graphqlField(): AbstractProperty<IdentifierType>["graphqlField"];
|
|
21
|
-
get hashFunctionParameter(): Code;
|
|
22
|
-
get jsonSchema(): AbstractProperty<IdentifierType>["jsonSchema"];
|
|
23
|
-
get jsonSignature(): Maybe<Code>;
|
|
24
|
-
get schema(): Maybe<Code>;
|
|
25
|
-
get schemaType(): Maybe<Code>;
|
|
26
|
-
private get typeExpression();
|
|
27
|
-
private get typeSchemaVariable();
|
|
28
|
-
accessExpression({ variables, }: Parameters<AbstractProperty<BlankNodeType | IdentifierType | IriType>["accessExpression"]>[0]): Code;
|
|
29
|
-
constructorInitializer({ variables, }: Parameters<AbstractProperty<IdentifierType>["constructorInitializer"]>[0]): Maybe<Code>;
|
|
30
|
-
fromJsonInitializer({ variables, }: Parameters<AbstractProperty<IdentifierType>["fromJsonInitializer"]>[0]): Maybe<Code>;
|
|
31
|
-
fromRdfResourceValuesInitializer({ variables, }: Parameters<AbstractProperty<IdentifierType>["fromRdfResourceValuesInitializer"]>[0]): Maybe<Code>;
|
|
32
|
-
hashStatements({ variables, }: Parameters<AbstractProperty<IdentifierType>["hashStatements"]>[0]): readonly Code[];
|
|
33
|
-
jsonUiSchemaElement({ variables, }: Parameters<AbstractProperty<IdentifierType>["jsonUiSchemaElement"]>[0]): Maybe<Code>;
|
|
34
|
-
sparqlConstructTriplesExpression(): Maybe<Code>;
|
|
35
|
-
sparqlWherePatternsExpression({ variables, }: Parameters<AbstractProperty<IdentifierType>["sparqlWherePatternsExpression"]>[0]): Maybe<{
|
|
36
|
-
condition: Code;
|
|
37
|
-
patterns: Code;
|
|
38
|
-
}>;
|
|
39
|
-
toJsonInitializer({ variables, }: Parameters<AbstractProperty<IdentifierType>["toJsonInitializer"]>[0]): Maybe<Code>;
|
|
40
|
-
toRdfRdfResourceValuesStatements(): readonly Code[];
|
|
41
|
-
toStringInitializer(parameters: Parameters<AbstractProperty<IdentifierType>["toStringInitializer"]>[0]): Maybe<Code>;
|
|
42
|
-
}
|
|
43
|
-
//# sourceMappingURL=IdentifierProperty.d.ts.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { Type } from "../Type.js";
|
|
2
|
-
import type { DiscriminantProperty } from "./DiscriminantProperty.js";
|
|
3
|
-
import type { IdentifierProperty } from "./IdentifierProperty.js";
|
|
4
|
-
import type { ShaclProperty } from "./ShaclProperty.js";
|
|
5
|
-
export type Property = IdentifierProperty | ShaclProperty<Type> | DiscriminantProperty;
|
|
6
|
-
//# sourceMappingURL=Property.d.ts.map
|