amf-client-js 5.0.0 → 5.0.2-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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "amf-client-js",
3
- "version": "5.0.0",
3
+ "version": "5.0.2-RC.0",
4
4
  "description": "AMF Library",
5
5
  "main": "amf.js",
6
6
  "author": "amf team",
@@ -191,12 +191,6 @@ declare module 'amf-client-js' {
191
191
 
192
192
  getExtensions(): Array<SemanticExtension>
193
193
 
194
- findSemanticByPropertyTerm(dialect: Dialect, uri: string): Array<SemanticExtension>
195
-
196
- findSemanticByTarget(dialect: Dialect, uri: string): Array<SemanticExtension>
197
-
198
- findSemanticByName(dialect: Dialect, name: string): undefined | SemanticExtension
199
-
200
194
 
201
195
  }
202
196
  export class SkippedValidationPluginEvent {
@@ -251,6 +245,7 @@ declare module 'amf-client-js' {
251
245
  modelVersion: StrField
252
246
  sourceSpec: undefined | Spec
253
247
  processingData: BaseUnitProcessingData
248
+ sourceInformation: BaseUnitSourceInformation
254
249
 
255
250
  references(): Array<BaseUnit>
256
251
 
@@ -875,6 +870,7 @@ declare module 'amf-client-js' {
875
870
  raw: undefined | string
876
871
  processingData: BaseUnitProcessingData
877
872
  sourceSpec: undefined | Spec
873
+ sourceInformation: BaseUnitSourceInformation
878
874
  modelVersion: StrField
879
875
  encodes: DomainElement
880
876
 
@@ -1408,6 +1404,7 @@ declare module 'amf-client-js' {
1408
1404
  raw: undefined | string
1409
1405
  processingData: BaseUnitProcessingData
1410
1406
  sourceSpec: undefined | Spec
1407
+ sourceInformation: BaseUnitSourceInformation
1411
1408
  modelVersion: StrField
1412
1409
  declares: Array<DomainElement>
1413
1410
  externals: Array<External>
@@ -1494,6 +1491,7 @@ declare module 'amf-client-js' {
1494
1491
  raw: undefined | string
1495
1492
  processingData: BaseUnitProcessingData
1496
1493
  sourceSpec: undefined | Spec
1494
+ sourceInformation: BaseUnitSourceInformation
1497
1495
  modelVersion: StrField
1498
1496
  encodes: NodeMapping
1499
1497
  externals: Array<External>
@@ -1735,6 +1733,7 @@ declare module 'amf-client-js' {
1735
1733
  raw: undefined | string
1736
1734
  processingData: BaseUnitProcessingData
1737
1735
  sourceSpec: undefined | Spec
1736
+ sourceInformation: BaseUnitSourceInformation
1738
1737
  modelVersion: StrField
1739
1738
  encodes: DomainElement
1740
1739
  declares: Array<DomainElement>
@@ -2529,6 +2528,7 @@ declare module 'amf-client-js' {
2529
2528
  raw: undefined | string
2530
2529
  processingData: BaseUnitProcessingData
2531
2530
  sourceSpec: undefined | Spec
2531
+ sourceInformation: BaseUnitSourceInformation
2532
2532
  modelVersion: StrField
2533
2533
  declares: Array<DomainElement>
2534
2534
 
@@ -2600,8 +2600,9 @@ declare module 'amf-client-js' {
2600
2600
  usage: StrField
2601
2601
  id: string
2602
2602
  raw: undefined | string
2603
- processingData: BaseUnitProcessingData
2603
+ processingData: DialectInstanceProcessingData
2604
2604
  sourceSpec: undefined | Spec
2605
+ sourceInformation: BaseUnitSourceInformation
2605
2606
  modelVersion: StrField
2606
2607
  encodes: DialectDomainElement
2607
2608
  declares: Array<DomainElement>
@@ -2651,8 +2652,6 @@ declare module 'amf-client-js' {
2651
2652
 
2652
2653
  references(): Array<BaseUnit>
2653
2654
 
2654
- withProcessingData(data: BaseUnitProcessingData): this
2655
-
2656
2655
  withId(id: string): this
2657
2656
 
2658
2657
 
@@ -2747,6 +2746,18 @@ declare module 'amf-client-js' {
2747
2746
  linkCopy(): NilShape
2748
2747
 
2749
2748
 
2749
+ }
2750
+ export class BaseUnitSourceInformation {
2751
+ rootLocation: StrField
2752
+ additionalLocations: Array<LocationInformation>
2753
+
2754
+ constructor()
2755
+
2756
+ withRootLocation(value: string): this
2757
+
2758
+ withAdditionalLocations(locations: Array<LocationInformation>): this
2759
+
2760
+
2750
2761
  }
2751
2762
  export class APIContractProcessingData extends BaseUnitProcessingData {
2752
2763
  modelVersion: StrField
@@ -3104,6 +3115,7 @@ declare module 'amf-client-js' {
3104
3115
  libraryHeader: undefined | string
3105
3116
  header: string
3106
3117
  sourceSpec: undefined | Spec
3118
+ sourceInformation: BaseUnitSourceInformation
3107
3119
  modelVersion: StrField
3108
3120
  encodes: DomainElement
3109
3121
  declares: Array<DomainElement>
@@ -3693,8 +3705,9 @@ declare module 'amf-client-js' {
3693
3705
  usage: StrField
3694
3706
  id: string
3695
3707
  raw: undefined | string
3696
- processingData: BaseUnitProcessingData
3708
+ processingData: DialectInstanceProcessingData
3697
3709
  sourceSpec: undefined | Spec
3710
+ sourceInformation: BaseUnitSourceInformation
3698
3711
  modelVersion: StrField
3699
3712
  encodes: DialectDomainElement
3700
3713
  declares: Array<DomainElement>
@@ -3744,8 +3757,6 @@ declare module 'amf-client-js' {
3744
3757
 
3745
3758
  references(): Array<BaseUnit>
3746
3759
 
3747
- withProcessingData(data: BaseUnitProcessingData): this
3748
-
3749
3760
  withId(id: string): this
3750
3761
 
3751
3762
 
@@ -4068,8 +4079,9 @@ declare module 'amf-client-js' {
4068
4079
  usage: StrField
4069
4080
  id: string
4070
4081
  raw: undefined | string
4071
- processingData: BaseUnitProcessingData
4082
+ processingData: DialectInstanceProcessingData
4072
4083
  sourceSpec: undefined | Spec
4084
+ sourceInformation: BaseUnitSourceInformation
4073
4085
  modelVersion: StrField
4074
4086
  encodes: DialectDomainElement
4075
4087
 
@@ -4111,8 +4123,6 @@ declare module 'amf-client-js' {
4111
4123
 
4112
4124
  references(): Array<BaseUnit>
4113
4125
 
4114
- withProcessingData(data: BaseUnitProcessingData): this
4115
-
4116
4126
  withId(id: string): this
4117
4127
 
4118
4128
 
@@ -4361,6 +4371,7 @@ declare module 'amf-client-js' {
4361
4371
  raw: undefined | string
4362
4372
  processingData: BaseUnitProcessingData
4363
4373
  sourceSpec: undefined | Spec
4374
+ sourceInformation: BaseUnitSourceInformation
4364
4375
  modelVersion: StrField
4365
4376
  declares: Array<DomainElement>
4366
4377
  externals: Array<External>
@@ -4770,8 +4781,9 @@ declare module 'amf-client-js' {
4770
4781
  usage: StrField
4771
4782
  id: string
4772
4783
  raw: undefined | string
4773
- processingData: BaseUnitProcessingData
4784
+ processingData: DialectInstanceProcessingData
4774
4785
  sourceSpec: undefined | Spec
4786
+ sourceInformation: BaseUnitSourceInformation
4775
4787
  modelVersion: StrField
4776
4788
  declares: Array<DomainElement>
4777
4789
 
@@ -4813,8 +4825,6 @@ declare module 'amf-client-js' {
4813
4825
 
4814
4826
  references(): Array<BaseUnit>
4815
4827
 
4816
- withProcessingData(data: BaseUnitProcessingData): this
4817
-
4818
4828
  withId(id: string): this
4819
4829
 
4820
4830
 
@@ -5417,6 +5427,7 @@ declare module 'amf-client-js' {
5417
5427
  schemaVersion: JSONSchemaVersion
5418
5428
  isWithCompactUris: boolean
5419
5429
  isWithSourceMaps: boolean
5430
+ isWithSourceInformation: boolean
5420
5431
  isAmfJsonLdSerialization: boolean
5421
5432
  isPrettyPrint: boolean
5422
5433
  isEmitNodeIds: boolean
@@ -5431,6 +5442,10 @@ declare module 'amf-client-js' {
5431
5442
 
5432
5443
  withoutSourceMaps(): RenderOptions
5433
5444
 
5445
+ withSourceInformation(): RenderOptions
5446
+
5447
+ withoutSourceInformation(): RenderOptions
5448
+
5434
5449
  withCompactUris(): RenderOptions
5435
5450
 
5436
5451
  withoutCompactUris(): RenderOptions
@@ -5725,6 +5740,19 @@ declare module 'amf-client-js' {
5725
5740
  static validate(baseUnit: BaseUnit, conf: AMFGraphConfiguration): Promise<AMFValidationReport>
5726
5741
 
5727
5742
 
5743
+ }
5744
+ export class LocationInformation {
5745
+ locationValue: StrField
5746
+
5747
+ constructor()
5748
+
5749
+ withLocation(value: string): this
5750
+
5751
+ elements(): Array<StrField>
5752
+
5753
+ withElements(elements: Array<string>): this
5754
+
5755
+
5728
5756
  }
5729
5757
  export class Trait extends AbstractDeclaration {
5730
5758
  linkTarget: undefined | DomainElement
@@ -6067,4 +6095,4 @@ declare module 'amf-client-js' {
6067
6095
 
6068
6096
 
6069
6097
  }
6070
- }
6098
+ }