amf-client-js 5.2.3 → 5.2.4-RC.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/amf.js +11560 -11435
- package/package.json +1 -1
- package/typings/amf-client-js.d.ts +92 -0
package/package.json
CHANGED
|
@@ -3299,6 +3299,8 @@ declare module "amf-client-js" {
|
|
|
3299
3299
|
export class JsonSchemaConfiguration {
|
|
3300
3300
|
static JsonSchema(): ShapesConfiguration;
|
|
3301
3301
|
}
|
|
3302
|
+
|
|
3303
|
+
|
|
3302
3304
|
export class JsonSchemaDocument extends Document {
|
|
3303
3305
|
schemaVersion: StrField;
|
|
3304
3306
|
|
|
@@ -5658,6 +5660,96 @@ declare module "amf-client-js" {
|
|
|
5658
5660
|
|
|
5659
5661
|
withUnitCache(cache: UnitCache): SemanticJsonSchemaConfiguration;
|
|
5660
5662
|
}
|
|
5663
|
+
|
|
5664
|
+
export class JsonLDSchemaConfiguration extends BaseShapesConfiguration{
|
|
5665
|
+
baseUnitClient(): JsonLDSchemaConfigurationClient;
|
|
5666
|
+
|
|
5667
|
+
withParsingOptions(parsingOptions: ParsingOptions): JsonLDSchemaConfiguration
|
|
5668
|
+
withRenderOptions(renderOptions: RenderOptions): JsonLDSchemaConfiguration
|
|
5669
|
+
withResourceLoader(rl: ResourceLoader): JsonLDSchemaConfiguration
|
|
5670
|
+
withResourceLoaders(rl: Array<ResourceLoader>): JsonLDSchemaConfiguration
|
|
5671
|
+
withUnitCache(cache: UnitCache): JsonLDSchemaConfiguration
|
|
5672
|
+
withTransformationPipeline(pipeline: TransformationPipeline): JsonLDSchemaConfiguration
|
|
5673
|
+
withErrorHandlerProvider(provider: ErrorHandlerProvider): JsonLDSchemaConfiguration
|
|
5674
|
+
withEventListener(listener: AMFEventListener): JsonLDSchemaConfiguration
|
|
5675
|
+
withExecutionEnvironment(executionEnv: ExecutionEnvironment): JsonLDSchemaConfiguration
|
|
5676
|
+
withDialect(dialect: Dialect): JsonLDSchemaConfiguration
|
|
5677
|
+
withDialect(url: string): Promise<JsonLDSchemaConfiguration>
|
|
5678
|
+
forInstance(url:string): Promise<JsonLDSchemaConfiguration>
|
|
5679
|
+
|
|
5680
|
+
static JsonLDSchema(): JsonLDSchemaConfiguration;
|
|
5681
|
+
}
|
|
5682
|
+
|
|
5683
|
+
export class JsonLDSchemaConfigurationClient extends BaseAMLBaseUnitClient{
|
|
5684
|
+
getConfiguration(): JsonLDSchemaConfiguration
|
|
5685
|
+
parseJsonLDInstance(url: string, jsonLDSchema: JsonSchemaDocument): Promise<JsonLDInstanceResult>
|
|
5686
|
+
parseJsonLDSchema(url:string): Promise<JsonLDSchemaResult>
|
|
5687
|
+
}
|
|
5688
|
+
|
|
5689
|
+
export class JsonLDSchemaResult extends AMFParseResult{
|
|
5690
|
+
jsonDocument: JsonSchemaDocument;
|
|
5691
|
+
}
|
|
5692
|
+
|
|
5693
|
+
export class JsonLDInstanceResult extends AMFParseResult{
|
|
5694
|
+
instance: JsonLDInstanceDocument;
|
|
5695
|
+
}
|
|
5696
|
+
|
|
5697
|
+
export class JsonLDInstanceDocument implements BaseUnit{
|
|
5698
|
+
id: string;
|
|
5699
|
+
location: string;
|
|
5700
|
+
modelVersion: StrField;
|
|
5701
|
+
processingData: BaseUnitProcessingData;
|
|
5702
|
+
raw: string;
|
|
5703
|
+
sourceInformation: BaseUnitSourceInformation;
|
|
5704
|
+
sourceSpec: Spec;
|
|
5705
|
+
usage: StrField;
|
|
5706
|
+
annotations(): Annotations;
|
|
5707
|
+
cloneUnit(): BaseUnit;
|
|
5708
|
+
findById(id: string): DomainElement;
|
|
5709
|
+
findByType(typeId: string): DomainElement[];
|
|
5710
|
+
pkg(): StrField;
|
|
5711
|
+
references(): BaseUnit[];
|
|
5712
|
+
withId(id: string): this;
|
|
5713
|
+
withLocation(location: string): this;
|
|
5714
|
+
withPkg(pkg: string): this;
|
|
5715
|
+
withProcessingData(data: BaseUnitProcessingData): this;
|
|
5716
|
+
withRaw(raw: string): this;
|
|
5717
|
+
withReferenceAlias(alias: string, id: string, fullUrl: string, relativeUrl: string): BaseUnit;
|
|
5718
|
+
withReferences(references: BaseUnit[]): this;
|
|
5719
|
+
withUsage(usage: string): this;
|
|
5720
|
+
withEncodes(encodes: Array<JsonLDObject>): JsonLDInstanceDocument;
|
|
5721
|
+
encodes: Array<JsonLDObject>;
|
|
5722
|
+
}
|
|
5723
|
+
|
|
5724
|
+
export class JsonLDObject implements DomainElement{
|
|
5725
|
+
customDomainProperties: DomainExtension[];
|
|
5726
|
+
extendsNode: DomainElement[];
|
|
5727
|
+
id: string;
|
|
5728
|
+
isExternalLink: BoolField;
|
|
5729
|
+
position: Range;
|
|
5730
|
+
annotations(): Annotations;
|
|
5731
|
+
graph(): Graph;
|
|
5732
|
+
withCustomDomainProperties(extensions: DomainExtension[]): this;
|
|
5733
|
+
withExtendsNode(extension: ParametrizedDeclaration[]): this;
|
|
5734
|
+
withId(id: string): this;
|
|
5735
|
+
withIsExternalLink(isExternalLink: boolean): DomainElement;
|
|
5736
|
+
|
|
5737
|
+
|
|
5738
|
+
componentId: string
|
|
5739
|
+
withProperty(property: string, value: string): JsonLDObject
|
|
5740
|
+
withProperty(property: string, value: number): JsonLDObject
|
|
5741
|
+
withProperty(property: string, value: number): JsonLDObject
|
|
5742
|
+
withProperty(property: string, value: Boolean): JsonLDObject
|
|
5743
|
+
withProperty(property: string, value: JsonLDObject): JsonLDObject
|
|
5744
|
+
withStringPropertyCollection(property: string, values: Array<string>): JsonLDObject
|
|
5745
|
+
withIntPropertyCollection(property: string, values: Array<number>): JsonLDObject
|
|
5746
|
+
withFloatPropertyCollection(property: string, values: Array<number>): JsonLDObject
|
|
5747
|
+
withBoolPropertyCollection(property: string, values: Array<Boolean>): JsonLDObject
|
|
5748
|
+
withObjPropertyCollection(property: string, values: Array<JsonLDObject>): JsonLDObject
|
|
5749
|
+
|
|
5750
|
+
}
|
|
5751
|
+
|
|
5752
|
+
|
|
5661
5753
|
export class Server implements DomainElement {
|
|
5662
5754
|
bindings: ServerBindings;
|
|
5663
5755
|
customDomainProperties: Array<DomainExtension>;
|