amf-client-js 5.0.9 → 5.0.10

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.
Files changed (3) hide show
  1. package/amf.js +10707 -10667
  2. package/package.json +1 -1
  3. package/typings/amf-client-js.d.ts +31 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "amf-client-js",
3
- "version": "5.0.9",
3
+ "version": "5.0.10",
4
4
  "description": "AMF Library",
5
5
  "main": "amf.js",
6
6
  "author": "amf team",
@@ -120,6 +120,8 @@ declare module 'amf-client-js' {
120
120
  ifShape: Shape
121
121
  elseShape: Shape
122
122
  thenShape: Shape
123
+ isExtension: BoolField
124
+ hasExplicitName: boolean
123
125
 
124
126
  annotations(): Annotations
125
127
 
@@ -163,6 +165,8 @@ declare module 'amf-client-js' {
163
165
 
164
166
  withThen(thenShape: Shape): this
165
167
 
168
+ withIsExtension(value: boolean): this
169
+
166
170
 
167
171
  }
168
172
  export class AMFParseResult extends AMFResult {
@@ -744,6 +748,7 @@ declare module 'amf-client-js' {
744
748
 
745
749
  parseSemanticSchemaContent(content: string): Promise<AMFSemanticSchemaResult>
746
750
 
751
+
747
752
  }
748
753
  export interface ValidationResult {
749
754
  readonly keyword: string
@@ -808,6 +813,7 @@ declare module 'amf-client-js' {
808
813
  displayName: StrField
809
814
  name: StrField
810
815
  customDomainProperties: Array<DomainExtension>
816
+ isExtension: BoolField
811
817
  xone: Array<Shape>
812
818
  readOnly: BoolField
813
819
  description: StrField
@@ -817,6 +823,7 @@ declare module 'amf-client-js' {
817
823
  or: Array<Shape>
818
824
  elseShape: Shape
819
825
  linkTarget: undefined | DomainElement
826
+ hasExplicitName: boolean
820
827
  isLink: boolean
821
828
  isExternalLink: BoolField
822
829
  customShapeProperties: Array<ShapeExtension>
@@ -849,6 +856,8 @@ declare module 'amf-client-js' {
849
856
 
850
857
  withIf(ifShape: Shape): this
851
858
 
859
+ withIsExtension(value: boolean): this
860
+
852
861
  withCustomShapePropertyDefinition(name: string): PropertyShape
853
862
 
854
863
  graph(): Graph
@@ -1492,6 +1501,8 @@ declare module 'amf-client-js' {
1492
1501
 
1493
1502
  withPayloads(payloads: Array<Payload>): this
1494
1503
 
1504
+ withPayload(): Payload
1505
+
1495
1506
  linkCopy(): Message
1496
1507
 
1497
1508
  withAbstract(isAbstract: boolean): this
@@ -1504,6 +1515,8 @@ declare module 'amf-client-js' {
1504
1515
 
1505
1516
  withBindings(bindings: MessageBindings): this
1506
1517
 
1518
+ withPayload(mediaType: string): Payload
1519
+
1507
1520
  withExamples(examples: Array<Example>): this
1508
1521
 
1509
1522
  graph(): Graph
@@ -1526,6 +1539,8 @@ declare module 'amf-client-js' {
1526
1539
 
1527
1540
  withLinkTarget(target: undefined): this
1528
1541
 
1542
+ withPayload(mediaType: undefined | string): Payload
1543
+
1529
1544
  withDisplayName(displayName: string): this
1530
1545
 
1531
1546
  withCorrelationId(correlationId: CorrelationId): this
@@ -1928,6 +1943,7 @@ declare module 'amf-client-js' {
1928
1943
  isAmfJsonLdSerialization: boolean
1929
1944
  definedBaseUrl: undefined | string
1930
1945
  getMaxYamlReferences: undefined | number
1946
+ getMaxJSONComplexity: undefined | number
1931
1947
 
1932
1948
  constructor()
1933
1949
 
@@ -1941,6 +1957,8 @@ declare module 'amf-client-js' {
1941
1957
 
1942
1958
  setMaxYamlReferences(value: number): ParsingOptions
1943
1959
 
1960
+ setMaxJSONComplexity(value: number): ParsingOptions
1961
+
1944
1962
 
1945
1963
  }
1946
1964
  export class Response extends Message implements AbstractResponse {
@@ -1963,6 +1981,9 @@ declare module 'amf-client-js' {
1963
1981
 
1964
1982
  withStatusCode(statusCode: string): this
1965
1983
 
1984
+ // @ts-ignore
1985
+ linkCopy(): Response
1986
+
1966
1987
  withName(name: string): this
1967
1988
 
1968
1989
  graph(): Graph
@@ -1989,9 +2010,6 @@ declare module 'amf-client-js' {
1989
2010
 
1990
2011
  withHeader(name: string): Parameter
1991
2012
 
1992
- // @ts-ignore
1993
- linkCopy(): Response
1994
-
1995
2013
 
1996
2014
  }
1997
2015
  export class Document implements BaseUnit, EncodesModel, DeclaresModel {
@@ -2160,6 +2178,7 @@ declare module 'amf-client-js' {
2160
2178
  name: StrField
2161
2179
  serializationOrder: IntField
2162
2180
  customDomainProperties: Array<DomainExtension>
2181
+ isExtension: BoolField
2163
2182
  path: StrField
2164
2183
  xone: Array<Shape>
2165
2184
  readOnly: BoolField
@@ -2170,6 +2189,7 @@ declare module 'amf-client-js' {
2170
2189
  elseShape: Shape
2171
2190
  linkTarget: undefined | DomainElement
2172
2191
  maxCount: IntField
2192
+ hasExplicitName: boolean
2173
2193
  isLink: boolean
2174
2194
  isExternalLink: BoolField
2175
2195
  customShapeProperties: Array<ShapeExtension>
@@ -2213,6 +2233,8 @@ declare module 'amf-client-js' {
2213
2233
 
2214
2234
  withIf(ifShape: Shape): this
2215
2235
 
2236
+ withIsExtension(value: boolean): this
2237
+
2216
2238
  withSerializationOrder(order: number): this
2217
2239
 
2218
2240
  withCustomShapePropertyDefinition(name: string): PropertyShape
@@ -3931,6 +3953,7 @@ declare module 'amf-client-js' {
3931
3953
  displayName: StrField
3932
3954
  name: StrField
3933
3955
  customDomainProperties: Array<DomainExtension>
3956
+ isExtension: BoolField
3934
3957
  examples: Array<Example>
3935
3958
  xone: Array<Shape>
3936
3959
  readOnly: BoolField
@@ -3942,6 +3965,7 @@ declare module 'amf-client-js' {
3942
3965
  or: Array<Shape>
3943
3966
  elseShape: Shape
3944
3967
  linkTarget: undefined | DomainElement
3968
+ hasExplicitName: boolean
3945
3969
  isLink: boolean
3946
3970
  isExternalLink: BoolField
3947
3971
  customShapeProperties: Array<ShapeExtension>
@@ -3979,6 +4003,8 @@ declare module 'amf-client-js' {
3979
4003
 
3980
4004
  withIf(ifShape: Shape): this
3981
4005
 
4006
+ withIsExtension(value: boolean): this
4007
+
3982
4008
  withCustomShapePropertyDefinition(name: string): PropertyShape
3983
4009
 
3984
4010
  withExamples(examples: Array<Example>): this
@@ -5979,6 +6005,7 @@ declare module 'amf-client-js' {
5979
6005
 
5980
6006
  }
5981
6007
  export class RenderOptions {
6008
+ withGovernanceMode: RenderOptions
5982
6009
  isWithDocumentation: boolean
5983
6010
  isWithCompactedEmission: boolean
5984
6011
  schemaVersion: JSONSchemaVersion
@@ -5989,6 +6016,7 @@ declare module 'amf-client-js' {
5989
6016
  isPrettyPrint: boolean
5990
6017
  isEmitNodeIds: boolean
5991
6018
  isRawFieldEmission: boolean
6019
+ isGovernanceMode: boolean
5992
6020
 
5993
6021
  constructor()
5994
6022