amf-client-js 5.0.8 → 5.0.9-RC.2
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 +10650 -10617
- package/package.json +1 -1
- package/typings/amf-client-js.d.ts +313 -83
package/package.json
CHANGED
|
@@ -2,6 +2,55 @@ declare module 'amf-client-js' {
|
|
|
2
2
|
export class AMFObjectResult {
|
|
3
3
|
results: Array<AMFValidationResult>
|
|
4
4
|
|
|
5
|
+
}
|
|
6
|
+
export class AbstractPayload implements DomainElement, Linkable {
|
|
7
|
+
mediaType: StrField
|
|
8
|
+
name: StrField
|
|
9
|
+
customDomainProperties: Array<DomainExtension>
|
|
10
|
+
linkTarget: undefined | DomainElement
|
|
11
|
+
isLink: boolean
|
|
12
|
+
isExternalLink: BoolField
|
|
13
|
+
id: string
|
|
14
|
+
schema: Shape
|
|
15
|
+
position: Range
|
|
16
|
+
linkLabel: StrField
|
|
17
|
+
extendsNode: Array<DomainElement>
|
|
18
|
+
|
|
19
|
+
link<T>(label: string): T
|
|
20
|
+
|
|
21
|
+
linkCopy(): Linkable
|
|
22
|
+
|
|
23
|
+
withName(name: string): this
|
|
24
|
+
|
|
25
|
+
withScalarSchema(name: string): ScalarShape
|
|
26
|
+
|
|
27
|
+
withArraySchema(name: string): ArrayShape
|
|
28
|
+
|
|
29
|
+
withObjectSchema(name: string): NodeShape
|
|
30
|
+
|
|
31
|
+
withSchema(schema: Shape): this
|
|
32
|
+
|
|
33
|
+
graph(): Graph
|
|
34
|
+
|
|
35
|
+
withIsExternalLink(isExternalLink: boolean): DomainElement
|
|
36
|
+
|
|
37
|
+
withMediaType(mediaType: string): this
|
|
38
|
+
|
|
39
|
+
withLinkLabel(label: string): this
|
|
40
|
+
|
|
41
|
+
withExtendsNode(extension: Array<ParametrizedDeclaration>): this
|
|
42
|
+
|
|
43
|
+
withCustomDomainProperties(extensions: Array<DomainExtension>): this
|
|
44
|
+
|
|
45
|
+
link<T>(): T
|
|
46
|
+
|
|
47
|
+
withLinkTarget(target: undefined): this
|
|
48
|
+
|
|
49
|
+
withId(id: string): this
|
|
50
|
+
|
|
51
|
+
annotations(): Annotations;
|
|
52
|
+
|
|
53
|
+
|
|
5
54
|
}
|
|
6
55
|
export class FinishedRenderingSyntaxEvent {
|
|
7
56
|
unit: BaseUnit
|
|
@@ -154,6 +203,18 @@ declare module 'amf-client-js' {
|
|
|
154
203
|
export interface JsAMFPlugin {
|
|
155
204
|
readonly ID: string
|
|
156
205
|
|
|
206
|
+
}
|
|
207
|
+
export interface AbstractRequest extends DomainElement {
|
|
208
|
+
queryParameters: Array<AbstractParameter>
|
|
209
|
+
name: StrField
|
|
210
|
+
|
|
211
|
+
withQueryParameters(parameters: Array<AbstractParameter>): this
|
|
212
|
+
|
|
213
|
+
withQueryParameter(name: string): AbstractParameter
|
|
214
|
+
|
|
215
|
+
withName(name: string): this
|
|
216
|
+
|
|
217
|
+
|
|
157
218
|
}
|
|
158
219
|
export interface BaseFileResourceLoader extends ResourceLoader {
|
|
159
220
|
fetch(resource: string): Promise<Content>
|
|
@@ -699,6 +760,46 @@ declare module 'amf-client-js' {
|
|
|
699
760
|
export class AMFDocumentResult extends AMFResult {
|
|
700
761
|
document: Document
|
|
701
762
|
|
|
763
|
+
}
|
|
764
|
+
export class AbstractOperation implements DomainElement {
|
|
765
|
+
method: StrField
|
|
766
|
+
name: StrField
|
|
767
|
+
customDomainProperties: Array<DomainExtension>
|
|
768
|
+
request: AbstractRequest
|
|
769
|
+
description: StrField
|
|
770
|
+
isExternalLink: BoolField
|
|
771
|
+
response: AbstractResponse
|
|
772
|
+
id: string
|
|
773
|
+
position: Range
|
|
774
|
+
extendsNode: Array<DomainElement>
|
|
775
|
+
|
|
776
|
+
withResponses(responses: Array<AbstractResponse>): this
|
|
777
|
+
|
|
778
|
+
withName(name: string): this
|
|
779
|
+
|
|
780
|
+
withMethod(method: string): this
|
|
781
|
+
|
|
782
|
+
withDescription(description: string): this
|
|
783
|
+
|
|
784
|
+
withRequest(name: string): AbstractRequest
|
|
785
|
+
|
|
786
|
+
withRequest(request: AbstractRequest): this
|
|
787
|
+
|
|
788
|
+
graph(): Graph
|
|
789
|
+
|
|
790
|
+
withIsExternalLink(isExternalLink: boolean): DomainElement
|
|
791
|
+
|
|
792
|
+
withResponse(name: string): AbstractResponse
|
|
793
|
+
|
|
794
|
+
withExtendsNode(extension: Array<ParametrizedDeclaration>): this
|
|
795
|
+
|
|
796
|
+
withCustomDomainProperties(extensions: Array<DomainExtension>): this
|
|
797
|
+
|
|
798
|
+
withId(id: string): this
|
|
799
|
+
|
|
800
|
+
annotations(): Annotations;
|
|
801
|
+
|
|
802
|
+
|
|
702
803
|
}
|
|
703
804
|
export class DetectedSyntaxMediaTypeEvent {
|
|
704
805
|
}
|
|
@@ -1132,8 +1233,62 @@ declare module 'amf-client-js' {
|
|
|
1132
1233
|
export class StartingValidationEvent {
|
|
1133
1234
|
totalPlugins: number
|
|
1134
1235
|
|
|
1236
|
+
}
|
|
1237
|
+
export interface AbstractResponse extends DomainElement {
|
|
1238
|
+
payload: AbstractPayload
|
|
1239
|
+
name: StrField
|
|
1240
|
+
|
|
1241
|
+
withPayload(payload: AbstractPayload): AbstractPayload
|
|
1242
|
+
|
|
1243
|
+
withName(name: string): this
|
|
1244
|
+
|
|
1245
|
+
|
|
1135
1246
|
}
|
|
1136
1247
|
export class StrictValidationMode extends ValidationMode {
|
|
1248
|
+
}
|
|
1249
|
+
export class AbstractParameter implements DomainElement {
|
|
1250
|
+
annotations(): Annotations
|
|
1251
|
+
name: StrField
|
|
1252
|
+
binding: StrField
|
|
1253
|
+
customDomainProperties: Array<DomainExtension>
|
|
1254
|
+
description: StrField
|
|
1255
|
+
isExternalLink: BoolField
|
|
1256
|
+
id: string
|
|
1257
|
+
schema: Shape
|
|
1258
|
+
parameterName: StrField
|
|
1259
|
+
position: Range
|
|
1260
|
+
required: BoolField
|
|
1261
|
+
extendsNode: Array<DomainElement>
|
|
1262
|
+
|
|
1263
|
+
withName(name: string): this
|
|
1264
|
+
|
|
1265
|
+
withScalarSchema(name: string): ScalarShape
|
|
1266
|
+
|
|
1267
|
+
withDescription(description: string): this
|
|
1268
|
+
|
|
1269
|
+
withObjectSchema(name: string): NodeShape
|
|
1270
|
+
|
|
1271
|
+
withSchema(schema: Shape): this
|
|
1272
|
+
|
|
1273
|
+
graph(): Graph
|
|
1274
|
+
|
|
1275
|
+
withIsExternalLink(isExternalLink: boolean): DomainElement
|
|
1276
|
+
|
|
1277
|
+
withExtendsNode(extension: Array<ParametrizedDeclaration>): this
|
|
1278
|
+
|
|
1279
|
+
withCustomDomainProperties(extensions: Array<DomainExtension>): this
|
|
1280
|
+
|
|
1281
|
+
cloneParameter(parent: string): this
|
|
1282
|
+
|
|
1283
|
+
withRequired(required: boolean): this
|
|
1284
|
+
|
|
1285
|
+
withId(id: string): this
|
|
1286
|
+
|
|
1287
|
+
withParameterName(name: string): this
|
|
1288
|
+
|
|
1289
|
+
withBinding(binding: string): this
|
|
1290
|
+
|
|
1291
|
+
|
|
1137
1292
|
}
|
|
1138
1293
|
export class ShapesElementClient extends BaseShapesElementClient {
|
|
1139
1294
|
getConfiguration(): ShapesConfiguration
|
|
@@ -1337,8 +1492,6 @@ declare module 'amf-client-js' {
|
|
|
1337
1492
|
|
|
1338
1493
|
withPayloads(payloads: Array<Payload>): this
|
|
1339
1494
|
|
|
1340
|
-
withPayload(): Payload
|
|
1341
|
-
|
|
1342
1495
|
linkCopy(): Message
|
|
1343
1496
|
|
|
1344
1497
|
withAbstract(isAbstract: boolean): this
|
|
@@ -1351,8 +1504,6 @@ declare module 'amf-client-js' {
|
|
|
1351
1504
|
|
|
1352
1505
|
withBindings(bindings: MessageBindings): this
|
|
1353
1506
|
|
|
1354
|
-
withPayload(mediaType: string): Payload
|
|
1355
|
-
|
|
1356
1507
|
withExamples(examples: Array<Example>): this
|
|
1357
1508
|
|
|
1358
1509
|
graph(): Graph
|
|
@@ -1375,8 +1526,6 @@ declare module 'amf-client-js' {
|
|
|
1375
1526
|
|
|
1376
1527
|
withLinkTarget(target: undefined): this
|
|
1377
1528
|
|
|
1378
|
-
withPayload(mediaType: undefined | string): Payload
|
|
1379
|
-
|
|
1380
1529
|
withDisplayName(displayName: string): this
|
|
1381
1530
|
|
|
1382
1531
|
withCorrelationId(correlationId: CorrelationId): this
|
|
@@ -1794,10 +1943,17 @@ declare module 'amf-client-js' {
|
|
|
1794
1943
|
|
|
1795
1944
|
|
|
1796
1945
|
}
|
|
1797
|
-
export class Response extends Message
|
|
1946
|
+
export class Response extends Message implements AbstractResponse {
|
|
1798
1947
|
statusCode: StrField
|
|
1799
|
-
|
|
1948
|
+
name: StrField
|
|
1949
|
+
customDomainProperties: Array<DomainExtension>
|
|
1950
|
+
payload: Payload
|
|
1951
|
+
isExternalLink: BoolField
|
|
1800
1952
|
links: Array<TemplatedLink>
|
|
1953
|
+
id: string
|
|
1954
|
+
position: Range
|
|
1955
|
+
headers: Array<Parameter>
|
|
1956
|
+
extendsNode: Array<DomainElement>
|
|
1801
1957
|
|
|
1802
1958
|
constructor()
|
|
1803
1959
|
|
|
@@ -1805,10 +1961,35 @@ declare module 'amf-client-js' {
|
|
|
1805
1961
|
|
|
1806
1962
|
withHeaders(headers: Array<Parameter>): this
|
|
1807
1963
|
|
|
1964
|
+
withStatusCode(statusCode: string): this
|
|
1965
|
+
|
|
1966
|
+
withName(name: string): this
|
|
1967
|
+
|
|
1968
|
+
graph(): Graph
|
|
1969
|
+
|
|
1970
|
+
withPayload(payload: Payload): Payload
|
|
1971
|
+
|
|
1972
|
+
withPayload(): Payload
|
|
1973
|
+
|
|
1974
|
+
withPayload(mediaType: string): Payload
|
|
1975
|
+
|
|
1976
|
+
withPayload(mediaType: undefined | string): Payload
|
|
1977
|
+
|
|
1978
|
+
withIsExternalLink(isExternalLink: boolean): DomainElement
|
|
1979
|
+
|
|
1980
|
+
withHeader(name: string): Parameter
|
|
1981
|
+
|
|
1982
|
+
withExtendsNode(extension: Array<ParametrizedDeclaration>): this
|
|
1983
|
+
|
|
1984
|
+
withCustomDomainProperties(extensions: Array<DomainExtension>): this
|
|
1985
|
+
|
|
1808
1986
|
withLinks(links: Array<TemplatedLink>): this
|
|
1809
1987
|
|
|
1988
|
+
withId(id: string): this
|
|
1989
|
+
|
|
1810
1990
|
withHeader(name: string): Parameter
|
|
1811
1991
|
|
|
1992
|
+
// @ts-ignore
|
|
1812
1993
|
linkCopy(): Response
|
|
1813
1994
|
|
|
1814
1995
|
|
|
@@ -2401,55 +2582,54 @@ declare module 'amf-client-js' {
|
|
|
2401
2582
|
|
|
2402
2583
|
|
|
2403
2584
|
}
|
|
2404
|
-
export class Payload
|
|
2405
|
-
mediaType: StrField
|
|
2406
|
-
name: StrField
|
|
2407
|
-
customDomainProperties: Array<DomainExtension>
|
|
2408
|
-
examples: Array<Example>
|
|
2585
|
+
export class Payload extends AbstractPayload {
|
|
2409
2586
|
encoding: Array<Encoding>
|
|
2410
|
-
|
|
2587
|
+
encodings: Array<Encoding>
|
|
2588
|
+
examples: Array<Example>
|
|
2589
|
+
extendsNode: Array<DomainElement>
|
|
2411
2590
|
id: string
|
|
2591
|
+
isExternalLink: BoolField
|
|
2592
|
+
position: Range
|
|
2412
2593
|
schema: Shape
|
|
2413
2594
|
schemaMediaType: StrField
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
extendsNode: Array<DomainElement>
|
|
2595
|
+
|
|
2596
|
+
annotations(): Annotations
|
|
2417
2597
|
|
|
2418
2598
|
constructor()
|
|
2419
2599
|
|
|
2420
|
-
|
|
2600
|
+
graph(): Graph
|
|
2421
2601
|
|
|
2422
|
-
|
|
2602
|
+
linkCopy(): Payload
|
|
2423
2603
|
|
|
2424
|
-
|
|
2604
|
+
withCustomDomainProperties(extensions: Array<DomainExtension>): this
|
|
2425
2605
|
|
|
2426
|
-
|
|
2606
|
+
withEncoding(encoding: Array<Encoding>): this
|
|
2427
2607
|
|
|
2428
|
-
|
|
2608
|
+
withEncoding(name: string): Encoding
|
|
2609
|
+
|
|
2610
|
+
withEncodings(encoding: Array<Encoding>): this
|
|
2429
2611
|
|
|
2430
2612
|
withExample(name: string): Example
|
|
2431
2613
|
|
|
2432
2614
|
withExamples(examples: Array<Example>): this
|
|
2433
2615
|
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
withSchema(schema: Shape): this
|
|
2616
|
+
withExtendsNode(extension: Array<ParametrizedDeclaration>): this
|
|
2437
2617
|
|
|
2438
|
-
|
|
2618
|
+
withId(id: string): this
|
|
2439
2619
|
|
|
2440
2620
|
withIsExternalLink(isExternalLink: boolean): DomainElement
|
|
2441
2621
|
|
|
2442
2622
|
withMediaType(mediaType: string): this
|
|
2443
2623
|
|
|
2444
|
-
|
|
2624
|
+
withName(name: string): this
|
|
2445
2625
|
|
|
2446
|
-
|
|
2626
|
+
withObjectSchema(name: string): NodeShape
|
|
2447
2627
|
|
|
2448
|
-
|
|
2628
|
+
withScalarSchema(name: string): ScalarShape
|
|
2449
2629
|
|
|
2450
|
-
|
|
2630
|
+
withSchema(schema: Shape): this
|
|
2451
2631
|
|
|
2452
|
-
|
|
2632
|
+
withSchemaMediaType(mediaType: string): this
|
|
2453
2633
|
|
|
2454
2634
|
|
|
2455
2635
|
}
|
|
@@ -2590,6 +2770,7 @@ declare module 'amf-client-js' {
|
|
|
2590
2770
|
static readonly AML: ProfileName
|
|
2591
2771
|
static readonly PAYLOAD: ProfileName
|
|
2592
2772
|
static readonly GRPC: ProfileName
|
|
2773
|
+
static readonly GRAPHQL: ProfileName
|
|
2593
2774
|
|
|
2594
2775
|
}
|
|
2595
2776
|
export class OAuth2Settings extends Settings {
|
|
@@ -2604,7 +2785,9 @@ declare module 'amf-client-js' {
|
|
|
2604
2785
|
|
|
2605
2786
|
|
|
2606
2787
|
}
|
|
2607
|
-
export class ShapeOperation
|
|
2788
|
+
export class ShapeOperation extends AbstractOperation {
|
|
2789
|
+
request: ShapeRequest
|
|
2790
|
+
response: ShapeResponse
|
|
2608
2791
|
name: StrField
|
|
2609
2792
|
customDomainProperties: Array<DomainExtension>
|
|
2610
2793
|
isExternalLink: BoolField
|
|
@@ -2628,6 +2811,13 @@ declare module 'amf-client-js' {
|
|
|
2628
2811
|
|
|
2629
2812
|
withId(id: string): this
|
|
2630
2813
|
|
|
2814
|
+
// @ts-ignore
|
|
2815
|
+
withRequest(request: ShapeRequest): this
|
|
2816
|
+
|
|
2817
|
+
withResponse(name: string): ShapeResponse
|
|
2818
|
+
|
|
2819
|
+
withResponses(responses: Array<ShapeResponse>): this
|
|
2820
|
+
|
|
2631
2821
|
|
|
2632
2822
|
}
|
|
2633
2823
|
export class Callback implements DomainElement {
|
|
@@ -2897,9 +3087,10 @@ declare module 'amf-client-js' {
|
|
|
2897
3087
|
|
|
2898
3088
|
|
|
2899
3089
|
}
|
|
2900
|
-
export class ShapeResponse implements
|
|
3090
|
+
export class ShapeResponse implements AbstractResponse {
|
|
2901
3091
|
name: StrField
|
|
2902
3092
|
customDomainProperties: Array<DomainExtension>
|
|
3093
|
+
payload: ShapePayload
|
|
2903
3094
|
isExternalLink: BoolField
|
|
2904
3095
|
id: string
|
|
2905
3096
|
position: Range
|
|
@@ -2913,6 +3104,8 @@ declare module 'amf-client-js' {
|
|
|
2913
3104
|
|
|
2914
3105
|
graph(): Graph
|
|
2915
3106
|
|
|
3107
|
+
withPayload(payload: ShapePayload): ShapePayload
|
|
3108
|
+
|
|
2916
3109
|
withIsExternalLink(isExternalLink: boolean): DomainElement
|
|
2917
3110
|
|
|
2918
3111
|
withExtendsNode(extension: Array<ParametrizedDeclaration>): this
|
|
@@ -3486,38 +3679,61 @@ declare module 'amf-client-js' {
|
|
|
3486
3679
|
|
|
3487
3680
|
|
|
3488
3681
|
}
|
|
3489
|
-
export class Request extends Message {
|
|
3490
|
-
|
|
3491
|
-
|
|
3492
|
-
headers: Array<Parameter>
|
|
3682
|
+
export class Request extends Message implements AbstractRequest {
|
|
3683
|
+
name: StrField
|
|
3684
|
+
customDomainProperties: Array<DomainExtension>
|
|
3493
3685
|
queryString: Shape
|
|
3686
|
+
isExternalLink: BoolField
|
|
3687
|
+
id: string
|
|
3494
3688
|
uriParameters: Array<Parameter>
|
|
3689
|
+
position: Range
|
|
3690
|
+
queryParameters: Array<Parameter>
|
|
3691
|
+
headers: Array<Parameter>
|
|
3692
|
+
required: BoolField
|
|
3495
3693
|
cookieParameters: Array<Parameter>
|
|
3694
|
+
extendsNode: Array<DomainElement>
|
|
3496
3695
|
|
|
3497
3696
|
constructor()
|
|
3498
3697
|
|
|
3499
|
-
|
|
3698
|
+
graph(): Graph
|
|
3500
3699
|
|
|
3501
|
-
|
|
3700
|
+
linkCopy(): Request
|
|
3701
|
+
|
|
3702
|
+
withCookieParameter(name: string): Parameter
|
|
3703
|
+
|
|
3704
|
+
withCookieParameters(cookieParameters: Array<Parameter>): this
|
|
3705
|
+
|
|
3706
|
+
withCustomDomainProperties(extensions: Array<DomainExtension>): this
|
|
3707
|
+
|
|
3708
|
+
withExtendsNode(extension: Array<ParametrizedDeclaration>): this
|
|
3709
|
+
|
|
3710
|
+
withHeader(name: string): Parameter
|
|
3502
3711
|
|
|
3503
3712
|
withHeaders(headers: Array<Parameter>): this
|
|
3504
3713
|
|
|
3505
|
-
|
|
3714
|
+
withId(id: string): this
|
|
3506
3715
|
|
|
3507
|
-
|
|
3716
|
+
withIsExternalLink(isExternalLink: boolean): DomainElement
|
|
3508
3717
|
|
|
3509
|
-
|
|
3718
|
+
withName(name: string): this
|
|
3510
3719
|
|
|
3511
3720
|
withQueryParameter(name: string): Parameter
|
|
3512
3721
|
|
|
3513
|
-
|
|
3722
|
+
withQueryParameters(parameters: Array<Parameter>): this
|
|
3723
|
+
|
|
3724
|
+
withQueryString(queryString: Shape): this
|
|
3725
|
+
|
|
3726
|
+
withRequired(required: boolean): this
|
|
3514
3727
|
|
|
3515
3728
|
withUriParameter(name: string): Parameter
|
|
3516
3729
|
|
|
3517
|
-
|
|
3730
|
+
withUriParameters(uriParameters: Array<Parameter>): this
|
|
3518
3731
|
|
|
3519
|
-
|
|
3732
|
+
withPayload(): Payload
|
|
3520
3733
|
|
|
3734
|
+
withPayload(mediaType: string): Payload
|
|
3735
|
+
|
|
3736
|
+
withPayload(mediaType: undefined | string): Payload
|
|
3521
3737
|
|
|
3522
3738
|
}
|
|
3523
3739
|
export class CreativeWork implements DomainElement {
|
|
@@ -3552,12 +3768,13 @@ declare module 'amf-client-js' {
|
|
|
3552
3768
|
|
|
3553
3769
|
|
|
3554
3770
|
}
|
|
3555
|
-
export class ShapeRequest implements
|
|
3771
|
+
export class ShapeRequest implements AbstractRequest {
|
|
3556
3772
|
name: StrField
|
|
3557
3773
|
customDomainProperties: Array<DomainExtension>
|
|
3558
3774
|
isExternalLink: BoolField
|
|
3559
3775
|
id: string
|
|
3560
3776
|
position: Range
|
|
3777
|
+
queryParameters: Array<ShapeParameter>
|
|
3561
3778
|
extendsNode: Array<DomainElement>
|
|
3562
3779
|
|
|
3563
3780
|
constructor()
|
|
@@ -3566,6 +3783,10 @@ declare module 'amf-client-js' {
|
|
|
3566
3783
|
|
|
3567
3784
|
withName(name: string): this
|
|
3568
3785
|
|
|
3786
|
+
withQueryParameter(name: string): ShapeParameter
|
|
3787
|
+
|
|
3788
|
+
withQueryParameters(parameters: Array<ShapeParameter>): this
|
|
3789
|
+
|
|
3569
3790
|
graph(): Graph
|
|
3570
3791
|
|
|
3571
3792
|
withIsExternalLink(isExternalLink: boolean): DomainElement
|
|
@@ -3607,74 +3828,73 @@ declare module 'amf-client-js' {
|
|
|
3607
3828
|
constructor(msj: string)
|
|
3608
3829
|
|
|
3609
3830
|
}
|
|
3610
|
-
export class Parameter
|
|
3611
|
-
|
|
3831
|
+
export class Parameter extends AbstractParameter {
|
|
3832
|
+
allowEmptyValue: BoolField
|
|
3833
|
+
allowReserved: BoolField
|
|
3612
3834
|
binding: StrField
|
|
3613
3835
|
customDomainProperties: Array<DomainExtension>
|
|
3614
|
-
examples: Array<Example>
|
|
3615
|
-
style: StrField
|
|
3616
|
-
description: StrField
|
|
3617
|
-
payloads: Array<Payload>
|
|
3618
3836
|
deprecated: BoolField
|
|
3619
|
-
|
|
3620
|
-
|
|
3621
|
-
id: string
|
|
3622
|
-
schema: Shape
|
|
3837
|
+
description: StrField
|
|
3838
|
+
examples: Array<Example>
|
|
3623
3839
|
explode: BoolField
|
|
3840
|
+
extendsNode: Array<DomainElement>
|
|
3841
|
+
id: string
|
|
3842
|
+
isExternalLink: BoolField
|
|
3843
|
+
name: StrField
|
|
3624
3844
|
parameterName: StrField
|
|
3845
|
+
payloads: Array<Payload>
|
|
3625
3846
|
position: Range
|
|
3626
3847
|
required: BoolField
|
|
3627
|
-
|
|
3628
|
-
|
|
3629
|
-
|
|
3630
|
-
constructor()
|
|
3848
|
+
schema: Shape
|
|
3849
|
+
style: StrField
|
|
3631
3850
|
|
|
3632
3851
|
annotations(): Annotations
|
|
3633
3852
|
|
|
3634
|
-
|
|
3853
|
+
constructor()
|
|
3635
3854
|
|
|
3636
|
-
|
|
3855
|
+
graph(): Graph
|
|
3637
3856
|
|
|
3638
|
-
|
|
3857
|
+
withAllowEmptyValue(allowEmptyValue: boolean): this
|
|
3639
3858
|
|
|
3640
|
-
|
|
3859
|
+
withAllowReserved(allowReserved: boolean): this
|
|
3641
3860
|
|
|
3642
|
-
|
|
3861
|
+
withBinding(binding: string): this
|
|
3643
3862
|
|
|
3644
|
-
|
|
3863
|
+
withCustomDomainProperties(extensions: Array<DomainExtension>): this
|
|
3645
3864
|
|
|
3646
|
-
|
|
3865
|
+
withDeprecated(deprecated: boolean): this
|
|
3647
3866
|
|
|
3648
|
-
|
|
3867
|
+
withDescription(description: string): this
|
|
3649
3868
|
|
|
3650
|
-
|
|
3869
|
+
withExample(name: string): Example
|
|
3651
3870
|
|
|
3652
3871
|
withExamples(examples: Array<Example>): this
|
|
3653
3872
|
|
|
3654
|
-
|
|
3873
|
+
withExplode(explode: boolean): this
|
|
3655
3874
|
|
|
3656
|
-
|
|
3875
|
+
withExtendsNode(extension: Array<ParametrizedDeclaration>): this
|
|
3657
3876
|
|
|
3658
|
-
|
|
3877
|
+
withId(id: string): this
|
|
3659
3878
|
|
|
3660
3879
|
withIsExternalLink(isExternalLink: boolean): DomainElement
|
|
3661
3880
|
|
|
3662
|
-
|
|
3881
|
+
withName(name: string): this
|
|
3663
3882
|
|
|
3664
|
-
|
|
3883
|
+
withObjectSchema(name: string): NodeShape
|
|
3665
3884
|
|
|
3666
|
-
|
|
3885
|
+
withParameterName(name: string): this
|
|
3667
3886
|
|
|
3668
|
-
|
|
3887
|
+
withPayload(mediaType: string): Payload
|
|
3669
3888
|
|
|
3670
|
-
|
|
3889
|
+
withPayloads(payloads: Array<Payload>): this
|
|
3671
3890
|
|
|
3672
|
-
|
|
3891
|
+
withRequired(required: boolean): this
|
|
3673
3892
|
|
|
3674
|
-
|
|
3893
|
+
withScalarSchema(name: string): ScalarShape
|
|
3675
3894
|
|
|
3676
|
-
|
|
3895
|
+
withSchema(schema: Shape): this
|
|
3677
3896
|
|
|
3897
|
+
withStyle(style: string): this
|
|
3678
3898
|
|
|
3679
3899
|
}
|
|
3680
3900
|
export class DocumentationItem extends Fragment {
|
|
@@ -3870,6 +4090,7 @@ declare module 'amf-client-js' {
|
|
|
3870
4090
|
}
|
|
3871
4091
|
export class NodeShape extends AnyShape {
|
|
3872
4092
|
isAbstract: BoolField
|
|
4093
|
+
isInputOnly: BoolField
|
|
3873
4094
|
minProperties: IntField
|
|
3874
4095
|
maxProperties: IntField
|
|
3875
4096
|
closed: BoolField
|
|
@@ -3892,6 +4113,8 @@ declare module 'amf-client-js' {
|
|
|
3892
4113
|
|
|
3893
4114
|
withIsAbstract(isAbstract: boolean): this
|
|
3894
4115
|
|
|
4116
|
+
withIsInputOnly(isInputOnly: boolean): this
|
|
4117
|
+
|
|
3895
4118
|
withMinProperties(min: number): this
|
|
3896
4119
|
|
|
3897
4120
|
withMaxProperties(max: number): this
|
|
@@ -4817,6 +5040,8 @@ declare module 'amf-client-js' {
|
|
|
4817
5040
|
|
|
4818
5041
|
objectRange(): Array<StrField>
|
|
4819
5042
|
|
|
5043
|
+
withMandatory(mandatory: boolean): PropertyMapping
|
|
5044
|
+
|
|
4820
5045
|
withPattern(pattern: string): PropertyMapping
|
|
4821
5046
|
|
|
4822
5047
|
withExtendsNode(extension: Array<ParametrizedDeclaration>): this
|
|
@@ -4839,6 +5064,8 @@ declare module 'amf-client-js' {
|
|
|
4839
5064
|
|
|
4840
5065
|
typeDiscriminatorName(): StrField
|
|
4841
5066
|
|
|
5067
|
+
mandatory(): BoolField
|
|
5068
|
+
|
|
4842
5069
|
name(): StrField
|
|
4843
5070
|
|
|
4844
5071
|
withAllowMultiple(allow: boolean): PropertyMapping
|
|
@@ -5205,7 +5432,7 @@ declare module 'amf-client-js' {
|
|
|
5205
5432
|
|
|
5206
5433
|
|
|
5207
5434
|
}
|
|
5208
|
-
export class Operation implements
|
|
5435
|
+
export class Operation extends AbstractOperation implements Linkable {
|
|
5209
5436
|
method: StrField
|
|
5210
5437
|
name: StrField
|
|
5211
5438
|
customDomainProperties: Array<DomainExtension>
|
|
@@ -5221,6 +5448,7 @@ declare module 'amf-client-js' {
|
|
|
5221
5448
|
servers: Array<Server>
|
|
5222
5449
|
schemes: Array<StrField>
|
|
5223
5450
|
isLink: boolean
|
|
5451
|
+
response: Response
|
|
5224
5452
|
isExternalLink: BoolField
|
|
5225
5453
|
id: string
|
|
5226
5454
|
contentType: Array<StrField>
|
|
@@ -5632,7 +5860,7 @@ declare module 'amf-client-js' {
|
|
|
5632
5860
|
|
|
5633
5861
|
|
|
5634
5862
|
}
|
|
5635
|
-
export class ShapeParameter
|
|
5863
|
+
export class ShapeParameter extends AbstractParameter {
|
|
5636
5864
|
name: StrField
|
|
5637
5865
|
customDomainProperties: Array<DomainExtension>
|
|
5638
5866
|
isExternalLink: BoolField
|
|
@@ -5887,7 +6115,7 @@ declare module 'amf-client-js' {
|
|
|
5887
6115
|
|
|
5888
6116
|
|
|
5889
6117
|
}
|
|
5890
|
-
export class ShapePayload
|
|
6118
|
+
export class ShapePayload extends AbstractPayload {
|
|
5891
6119
|
name: StrField
|
|
5892
6120
|
customDomainProperties: Array<DomainExtension>
|
|
5893
6121
|
isExternalLink: BoolField
|
|
@@ -5911,6 +6139,8 @@ declare module 'amf-client-js' {
|
|
|
5911
6139
|
|
|
5912
6140
|
withId(id: string): this
|
|
5913
6141
|
|
|
6142
|
+
linkCopy(): ShapePayload
|
|
6143
|
+
|
|
5914
6144
|
|
|
5915
6145
|
}
|
|
5916
6146
|
export class DataTypes {
|