@api-client/core 0.7.12 → 0.8.1
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/SECURITY.md +14 -0
- package/build/browser.d.ts +8 -1
- package/build/browser.js +7 -0
- package/build/browser.js.map +1 -1
- package/build/index.d.ts +8 -1
- package/build/index.js +7 -0
- package/build/index.js.map +1 -1
- package/build/src/amf/AmfMixin.d.ts +56 -42
- package/build/src/amf/AmfMixin.js +9 -3
- package/build/src/amf/AmfMixin.js.map +1 -1
- package/build/src/amf/AmfSerializer.d.ts +72 -72
- package/build/src/amf/AmfSerializer.js +9 -4
- package/build/src/amf/AmfSerializer.js.map +1 -1
- package/build/src/amf/AmfShapeGenerator.d.ts +17 -17
- package/build/src/amf/AmfShapeGenerator.js +3 -3
- package/build/src/amf/AmfShapeGenerator.js.map +1 -1
- package/build/src/amf/AmfTypes.d.ts +16 -16
- package/build/src/amf/AmfTypes.js +16 -16
- package/build/src/amf/AmfTypes.js.map +1 -1
- package/build/src/amf/ApiExampleGenerator.d.ts +3 -3
- package/build/src/amf/ApiExampleGenerator.js.map +1 -1
- package/build/src/amf/ApiMonacoSchemaGenerator.d.ts +6 -6
- package/build/src/amf/ApiMonacoSchemaGenerator.js.map +1 -1
- package/build/src/amf/ApiSchemaGenerator.d.ts +2 -2
- package/build/src/amf/ApiSchemaGenerator.js.map +1 -1
- package/build/src/amf/ApiSchemaValues.d.ts +12 -12
- package/build/src/amf/ApiSchemaValues.js.map +1 -1
- package/build/src/amf/Parsing.d.ts +5 -5
- package/build/src/amf/Utils.d.ts +6 -6
- package/build/src/amf/Utils.js.map +1 -1
- package/build/src/amf/data-node/DataNodeBase.d.ts +5 -5
- package/build/src/amf/data-node/DataNodeBase.js.map +1 -1
- package/build/src/amf/data-node/JsonDataNodeGenerator.d.ts +2 -2
- package/build/src/amf/data-node/JsonDataNodeGenerator.js.map +1 -1
- package/build/src/amf/data-node/UrlEncodedDataNodeGenerator.d.ts +2 -2
- package/build/src/amf/data-node/UrlEncodedDataNodeGenerator.js.map +1 -1
- package/build/src/amf/data-node/XmlDataNodeGenerator.d.ts +2 -2
- package/build/src/amf/data-node/XmlDataNodeGenerator.js.map +1 -1
- package/build/src/amf/definitions/Amf.d.ts +339 -339
- package/build/src/amf/definitions/Api.d.ts +158 -158
- package/build/src/amf/definitions/Base.d.ts +5 -5
- package/build/src/amf/definitions/Shapes.d.ts +46 -46
- package/build/src/amf/definitions/Shapes.js +11 -11
- package/build/src/amf/definitions/Shapes.js.map +1 -1
- package/build/src/amf/models/AmfDataNode.d.ts +5 -5
- package/build/src/amf/models/AmfDataNode.js +4 -4
- package/build/src/amf/models/AmfDataNode.js.map +1 -1
- package/build/src/amf/shape/ShapeBase.d.ts +13 -13
- package/build/src/amf/shape/ShapeBase.js.map +1 -1
- package/build/src/amf/shape/ShapeJsonSchemaGenerator.d.ts +13 -13
- package/build/src/amf/shape/ShapeJsonSchemaGenerator.js.map +1 -1
- package/build/src/amf/shape/ShapeXmlSchemaGenerator.d.ts +16 -16
- package/build/src/amf/shape/ShapeXmlSchemaGenerator.js.map +1 -1
- package/build/src/events/amf/AmfEvents.d.ts +4 -4
- package/build/src/events/amf/AmfEvents.js.map +1 -1
- package/build/src/lib/timers/Timers.d.ts +9 -0
- package/build/src/lib/timers/Timers.js +13 -0
- package/build/src/lib/timers/Timers.js.map +1 -1
- package/build/src/models/data/Bindings.d.ts +2 -2
- package/build/src/models/data/DataAssociation.d.ts +4 -4
- package/build/src/models/data/DataAssociation.js.map +1 -1
- package/build/src/models/data/DataEntity.d.ts +2 -2
- package/build/src/models/data/DataProperty.d.ts +2 -2
- package/data/apis/amf-helper-api/amf-helper-api.raml +1024 -0
- package/data/apis/amf-helper-api/examples/comment-example.json +42 -0
- package/data/apis/amf-helper-api/examples/commentCreateRequest-example.json +7 -0
- package/data/apis/amf-helper-api/examples/commentList-example.json +48 -0
- package/data/apis/amf-helper-api/examples/person.json +14 -0
- package/data/apis/amf-helper-api/examples/person.raml +13 -0
- package/data/apis/amf-helper-api/examples/person.xml +14 -0
- package/data/apis/amf-helper-api/libraries/comment-lib.raml +143 -0
- package/data/apis/amf-helper-api/library.raml +7 -0
- package/data/apis/amf-helper-api/schemas/person.json +104 -0
- package/data/apis/amf-helper-api/schemas/person.xsd +26 -0
- package/data/apis/amf-helper-api/traits/file.raml +33 -0
- package/data/apis/amf-helper-api/traits/pagination.raml +80 -0
- package/data/apis/amf-helper-api/traits/results.raml +19 -0
- package/data/apis/amf-helper-api/traits/visibility.raml +14 -0
- package/data/apis/amf-helper-api/types/app-person.raml +101 -0
- package/data/apis/amf-helper-api/types/dimensions.raml +24 -0
- package/data/apis/amf-helper-api/types/external-type.raml +7 -0
- package/data/apis/amf-helper-api/types/image.raml +23 -0
- package/data/apis/amf-helper-api/types/product.raml +52 -0
- package/data/apis/amf-helper-api/types/resource.raml +11 -0
- package/data/apis/amf-helper-api/types/standard-request.raml +50 -0
- package/data/apis/amf-helper-api/types/user.raml +37 -0
- package/data/apis/async-api/async-api.yaml +96 -0
- package/data/apis/expanded-api/expanded-api.raml +8 -0
- package/data/apis/flattened-api/flattened-api.raml +8 -0
- package/data/apis/multiple-servers/multiple-servers.yaml +112 -0
- package/data/model.js +5 -0
- package/data/models/amf-helper-api.json +85908 -0
- package/data/models/async-api.json +3108 -0
- package/data/models/expanded-api.json +251 -0
- package/data/models/flattened-api.json +251 -0
- package/data/models/multiple-servers.json +2753 -0
- package/package.json +1 -1
- package/src/amf/AmfMixin.ts +125 -117
- package/src/amf/AmfSerializer.ts +245 -240
- package/src/amf/AmfShapeGenerator.ts +23 -23
- package/src/amf/AmfTypes.ts +16 -16
- package/src/amf/ApiExampleGenerator.ts +4 -4
- package/src/amf/ApiMonacoSchemaGenerator.ts +11 -11
- package/src/amf/ApiSchemaGenerator.ts +3 -3
- package/src/amf/ApiSchemaValues.ts +21 -21
- package/src/amf/Parsing.ts +5 -5
- package/src/amf/Utils.ts +15 -15
- package/src/amf/data-node/DataNodeBase.ts +8 -8
- package/src/amf/data-node/JsonDataNodeGenerator.ts +2 -2
- package/src/amf/data-node/UrlEncodedDataNodeGenerator.ts +2 -2
- package/src/amf/data-node/XmlDataNodeGenerator.ts +2 -2
- package/src/amf/definitions/Amf.ts +315 -314
- package/src/amf/definitions/Api.ts +158 -157
- package/src/amf/definitions/Base.ts +5 -5
- package/src/amf/definitions/Shapes.ts +60 -60
- package/src/amf/models/AmfDataNode.ts +17 -17
- package/src/amf/shape/ShapeBase.ts +16 -16
- package/src/amf/shape/ShapeJsonSchemaGenerator.ts +27 -27
- package/src/amf/shape/ShapeXmlSchemaGenerator.ts +42 -42
- package/src/events/amf/AmfEvents.ts +7 -7
- package/src/lib/timers/Timers.ts +14 -0
- package/src/models/data/Bindings.ts +2 -2
- package/src/models/data/DataAssociation.ts +4 -4
- package/src/models/data/DataEntity.ts +2 -2
- package/src/models/data/DataProperty.ts +2 -2
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-empty-interface */
|
|
2
|
+
import { IApiDomainProperty } from "./Base.js";
|
|
3
|
+
import { IApiDataExample, IApiDataNode, IApiDataNodeUnion, IShapeUnion } from "./Shapes.js";
|
|
3
4
|
|
|
4
5
|
export type IScalarDataTypes = 'string' | 'base64Binary' | 'boolean' | 'date' | 'dateTime' | 'double' | 'float' | 'integer' | 'long' | 'number' | 'time';
|
|
5
6
|
|
|
6
|
-
export interface
|
|
7
|
+
export interface IApiSummary extends IApiDomainProperty {
|
|
7
8
|
name?: string;
|
|
8
9
|
description?: string;
|
|
9
10
|
// identifier?: string; <- not sure what this is.
|
|
@@ -12,50 +13,50 @@ export interface ApiSummary extends IDomainProperty {
|
|
|
12
13
|
contentType: string[];
|
|
13
14
|
version?: string;
|
|
14
15
|
termsOfService?: string;
|
|
15
|
-
provider?:
|
|
16
|
-
license?:
|
|
17
|
-
documentations:
|
|
18
|
-
tags:
|
|
19
|
-
sourceMaps?:
|
|
16
|
+
provider?: IApiOrganization;
|
|
17
|
+
license?: IApiLicense;
|
|
18
|
+
documentations: IApiDocumentation[];
|
|
19
|
+
tags: IApiTag[];
|
|
20
|
+
sourceMaps?: IApiDocumentSourceMaps;
|
|
20
21
|
}
|
|
21
22
|
|
|
22
|
-
export interface
|
|
23
|
-
endPoints:
|
|
24
|
-
servers:
|
|
25
|
-
security:
|
|
23
|
+
export interface IApiBase extends IApiSummary {
|
|
24
|
+
endPoints: IApiEndPoint[];
|
|
25
|
+
servers: IApiServer[];
|
|
26
|
+
security: IApiSecurityRequirement[];
|
|
26
27
|
}
|
|
27
28
|
|
|
28
|
-
export interface
|
|
29
|
-
export interface
|
|
29
|
+
export interface IApiWeb extends IApiBase {}
|
|
30
|
+
export interface IApiAsync extends IApiBase {}
|
|
30
31
|
|
|
31
|
-
export interface
|
|
32
|
+
export interface IApiOrganization extends IApiDomainProperty {
|
|
32
33
|
url?: string;
|
|
33
34
|
name?: string;
|
|
34
35
|
email?: string;
|
|
35
|
-
sourceMaps?:
|
|
36
|
+
sourceMaps?: IApiDocumentSourceMaps;
|
|
36
37
|
}
|
|
37
38
|
|
|
38
|
-
export interface
|
|
39
|
+
export interface IApiLicense extends IApiDomainProperty {
|
|
39
40
|
url?: string;
|
|
40
41
|
name?: string;
|
|
41
|
-
sourceMaps?:
|
|
42
|
+
sourceMaps?: IApiDocumentSourceMaps;
|
|
42
43
|
}
|
|
43
44
|
|
|
44
|
-
export interface
|
|
45
|
+
export interface IApiEndPoint extends IApiDomainProperty {
|
|
45
46
|
description?: string;
|
|
46
47
|
name?: string;
|
|
47
48
|
summary?: string;
|
|
48
49
|
path: string;
|
|
49
|
-
operations:
|
|
50
|
-
parameters:
|
|
51
|
-
payloads:
|
|
52
|
-
servers:
|
|
53
|
-
security:
|
|
54
|
-
sourceMaps?:
|
|
55
|
-
extends:
|
|
50
|
+
operations: IApiOperation[];
|
|
51
|
+
parameters: IApiParameter[];
|
|
52
|
+
payloads: IApiPayload[];
|
|
53
|
+
servers: IApiServer[];
|
|
54
|
+
security: IApiSecurityRequirement[];
|
|
55
|
+
sourceMaps?: IApiDocumentSourceMaps;
|
|
56
|
+
extends: IApiParametrizedDeclaration[];
|
|
56
57
|
}
|
|
57
58
|
|
|
58
|
-
export interface
|
|
59
|
+
export interface IApiOperation extends IApiDomainProperty {
|
|
59
60
|
method: string;
|
|
60
61
|
name?: string;
|
|
61
62
|
description?: string;
|
|
@@ -65,33 +66,33 @@ export interface ApiOperation extends IDomainProperty {
|
|
|
65
66
|
accepts?: string[];
|
|
66
67
|
contentType?: string[];
|
|
67
68
|
operationId?: string;
|
|
68
|
-
documentation?:
|
|
69
|
-
request?:
|
|
70
|
-
responses:
|
|
71
|
-
security:
|
|
72
|
-
callbacks:
|
|
73
|
-
servers:
|
|
74
|
-
tags:
|
|
75
|
-
sourceMaps?:
|
|
76
|
-
extends:
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
export interface
|
|
69
|
+
documentation?: IApiDocumentation;
|
|
70
|
+
request?: IApiRequest;
|
|
71
|
+
responses: IApiResponse[];
|
|
72
|
+
security: IApiSecurityRequirement[];
|
|
73
|
+
callbacks: IApiCallback[];
|
|
74
|
+
servers: IApiServer[];
|
|
75
|
+
tags: IApiTag[];
|
|
76
|
+
sourceMaps?: IApiDocumentSourceMaps;
|
|
77
|
+
extends: IApiParametrizedTrait[];
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export interface IApiTag extends IApiDomainProperty {
|
|
80
81
|
name: string;
|
|
81
|
-
sourceMaps?:
|
|
82
|
+
sourceMaps?: IApiDocumentSourceMaps;
|
|
82
83
|
}
|
|
83
84
|
|
|
84
|
-
export interface
|
|
85
|
+
export interface IApiServer extends IApiDomainProperty {
|
|
85
86
|
url: string;
|
|
86
87
|
description?: string;
|
|
87
|
-
variables:
|
|
88
|
-
sourceMaps?:
|
|
88
|
+
variables: IApiParameter[];
|
|
89
|
+
sourceMaps?: IApiDocumentSourceMaps;
|
|
89
90
|
protocol?: string;
|
|
90
91
|
protocolVersion?: string;
|
|
91
|
-
security?:
|
|
92
|
+
security?: IApiSecurityRequirement[];
|
|
92
93
|
}
|
|
93
94
|
|
|
94
|
-
export interface
|
|
95
|
+
export interface IApiParameter extends IApiDomainProperty {
|
|
95
96
|
name?: string;
|
|
96
97
|
paramName?: string;
|
|
97
98
|
description?: string;
|
|
@@ -103,228 +104,228 @@ export interface ApiParameter extends IDomainProperty {
|
|
|
103
104
|
allowReserved?: boolean;
|
|
104
105
|
binding?: string;
|
|
105
106
|
schema?: IShapeUnion;
|
|
106
|
-
payloads:
|
|
107
|
-
examples:
|
|
108
|
-
sourceMaps?:
|
|
107
|
+
payloads: IApiPayload[];
|
|
108
|
+
examples: IApiDataExample[];
|
|
109
|
+
sourceMaps?: IApiDocumentSourceMaps;
|
|
109
110
|
}
|
|
110
111
|
|
|
111
|
-
export interface
|
|
112
|
+
export interface IApiPayload extends IApiDomainProperty {
|
|
112
113
|
name?: string;
|
|
113
114
|
mediaType?: string;
|
|
114
115
|
schema?: IShapeUnion;
|
|
115
|
-
examples:
|
|
116
|
+
examples: IApiDataExample[];
|
|
116
117
|
// encoding: ApiEncoding[];
|
|
117
|
-
sourceMaps?:
|
|
118
|
+
sourceMaps?: IApiDocumentSourceMaps;
|
|
118
119
|
}
|
|
119
120
|
|
|
120
|
-
export interface
|
|
121
|
+
export interface IApiResponse extends IApiDomainProperty {
|
|
121
122
|
name?: string;
|
|
122
123
|
description?: string;
|
|
123
124
|
statusCode?: string;
|
|
124
|
-
headers:
|
|
125
|
-
payloads:
|
|
126
|
-
examples:
|
|
127
|
-
links:
|
|
128
|
-
sourceMaps?:
|
|
125
|
+
headers: IApiParameter[];
|
|
126
|
+
payloads: IApiPayload[];
|
|
127
|
+
examples: IApiDataExample[];
|
|
128
|
+
links: IApiTemplatedLink[];
|
|
129
|
+
sourceMaps?: IApiDocumentSourceMaps;
|
|
129
130
|
}
|
|
130
131
|
|
|
131
|
-
export interface
|
|
132
|
+
export interface IApiTemplatedLink extends IApiDomainProperty {
|
|
132
133
|
name?: string;
|
|
133
134
|
description?: string;
|
|
134
135
|
template?: string;
|
|
135
136
|
operationId?: string;
|
|
136
137
|
requestBody?: string;
|
|
137
|
-
mapping:
|
|
138
|
-
server?:
|
|
139
|
-
sourceMaps?:
|
|
138
|
+
mapping: IApiIriTemplateMapping[];
|
|
139
|
+
server?: IApiServer;
|
|
140
|
+
sourceMaps?: IApiDocumentSourceMaps;
|
|
140
141
|
}
|
|
141
142
|
|
|
142
|
-
export interface
|
|
143
|
+
export interface IApiIriTemplateMapping extends IApiDomainProperty {
|
|
143
144
|
templateVariable?: string;
|
|
144
145
|
linkExpression?: string;
|
|
145
|
-
sourceMaps?:
|
|
146
|
+
sourceMaps?: IApiDocumentSourceMaps;
|
|
146
147
|
}
|
|
147
148
|
|
|
148
|
-
export interface
|
|
149
|
+
export interface IApiSecurityRequirement extends IApiDomainProperty {
|
|
149
150
|
name?: string;
|
|
150
|
-
schemes:
|
|
151
|
-
sourceMaps?:
|
|
151
|
+
schemes: IApiParametrizedSecurityScheme[];
|
|
152
|
+
sourceMaps?: IApiDocumentSourceMaps;
|
|
152
153
|
}
|
|
153
154
|
|
|
154
|
-
export interface
|
|
155
|
+
export interface IApiParametrizedSecurityScheme extends IApiDomainProperty {
|
|
155
156
|
name?: string;
|
|
156
|
-
settings?:
|
|
157
|
-
scheme?:
|
|
158
|
-
sourceMaps?:
|
|
157
|
+
settings?: IApiSecuritySettingsUnion;
|
|
158
|
+
scheme?: IApiSecurityScheme;
|
|
159
|
+
sourceMaps?: IApiDocumentSourceMaps;
|
|
159
160
|
}
|
|
160
161
|
|
|
161
|
-
export interface
|
|
162
|
+
export interface IApiSecurityScheme extends IApiDomainProperty {
|
|
162
163
|
name?: string;
|
|
163
164
|
type?: string;
|
|
164
165
|
displayName?: string;
|
|
165
166
|
description?: string;
|
|
166
|
-
settings?:
|
|
167
|
-
headers:
|
|
168
|
-
queryParameters:
|
|
169
|
-
responses:
|
|
167
|
+
settings?: IApiSecuritySettingsUnion;
|
|
168
|
+
headers: IApiParameter[];
|
|
169
|
+
queryParameters: IApiParameter[];
|
|
170
|
+
responses: IApiResponse[];
|
|
170
171
|
queryString?: IShapeUnion;
|
|
171
|
-
sourceMaps?:
|
|
172
|
+
sourceMaps?: IApiDocumentSourceMaps;
|
|
172
173
|
}
|
|
173
174
|
|
|
174
175
|
|
|
175
|
-
export interface
|
|
176
|
-
additionalProperties?:
|
|
177
|
-
sourceMaps?:
|
|
176
|
+
export interface IApiSecuritySettings extends IApiDomainProperty {
|
|
177
|
+
additionalProperties?: IApiDataNodeUnion;
|
|
178
|
+
sourceMaps?: IApiDocumentSourceMaps;
|
|
178
179
|
}
|
|
179
180
|
|
|
180
|
-
export interface
|
|
181
|
+
export interface IApiSecurityOAuth1Settings extends IApiSecuritySettings {
|
|
181
182
|
requestTokenUri?: string;
|
|
182
183
|
authorizationUri?: string;
|
|
183
184
|
tokenCredentialsUri?: string;
|
|
184
185
|
signatures: string[];
|
|
185
|
-
sourceMaps?:
|
|
186
|
+
sourceMaps?: IApiDocumentSourceMaps;
|
|
186
187
|
}
|
|
187
188
|
|
|
188
|
-
export interface
|
|
189
|
+
export interface IApiSecurityOAuth2Settings extends IApiSecuritySettings {
|
|
189
190
|
authorizationGrants: string[];
|
|
190
|
-
flows:
|
|
191
|
-
sourceMaps?:
|
|
191
|
+
flows: IApiSecurityOAuth2Flow[];
|
|
192
|
+
sourceMaps?: IApiDocumentSourceMaps;
|
|
192
193
|
}
|
|
193
194
|
|
|
194
|
-
export interface
|
|
195
|
+
export interface IApiSecurityApiKeySettings extends IApiSecuritySettings {
|
|
195
196
|
name?: string;
|
|
196
197
|
in?: string;
|
|
197
|
-
sourceMaps?:
|
|
198
|
+
sourceMaps?: IApiDocumentSourceMaps;
|
|
198
199
|
}
|
|
199
200
|
|
|
200
|
-
export interface
|
|
201
|
+
export interface IApiSecurityHttpSettings extends IApiSecuritySettings {
|
|
201
202
|
scheme?: string;
|
|
202
203
|
bearerFormat?: string;
|
|
203
|
-
sourceMaps?:
|
|
204
|
+
sourceMaps?: IApiDocumentSourceMaps;
|
|
204
205
|
}
|
|
205
206
|
|
|
206
|
-
export interface
|
|
207
|
+
export interface IApiSecurityOpenIdConnectSettings extends IApiSecuritySettings {
|
|
207
208
|
url?: string;
|
|
208
|
-
sourceMaps?:
|
|
209
|
+
sourceMaps?: IApiDocumentSourceMaps;
|
|
209
210
|
}
|
|
210
211
|
|
|
211
|
-
export type
|
|
212
|
+
export type IApiSecuritySettingsUnion = IApiSecuritySettings | IApiSecurityOAuth1Settings | IApiSecurityOAuth2Settings | IApiSecurityApiKeySettings | IApiSecurityHttpSettings | IApiSecurityOpenIdConnectSettings;
|
|
212
213
|
|
|
213
|
-
export interface
|
|
214
|
+
export interface IApiSecurityOAuth2Flow extends IApiDomainProperty {
|
|
214
215
|
authorizationUri?: string;
|
|
215
216
|
accessTokenUri?: string;
|
|
216
217
|
flow?: string;
|
|
217
218
|
refreshUri?: string;
|
|
218
|
-
scopes:
|
|
219
|
-
sourceMaps?:
|
|
219
|
+
scopes: IApiSecurityScope[];
|
|
220
|
+
sourceMaps?: IApiDocumentSourceMaps;
|
|
220
221
|
}
|
|
221
222
|
|
|
222
|
-
export interface
|
|
223
|
+
export interface IApiSecurityScope extends IApiDomainProperty {
|
|
223
224
|
name?: string;
|
|
224
225
|
description?: string;
|
|
225
|
-
sourceMaps?:
|
|
226
|
+
sourceMaps?: IApiDocumentSourceMaps;
|
|
226
227
|
}
|
|
227
228
|
|
|
228
|
-
export interface
|
|
229
|
+
export interface IApiRequest extends IApiDomainProperty {
|
|
229
230
|
description?: string;
|
|
230
231
|
required?: boolean;
|
|
231
|
-
queryParameters:
|
|
232
|
-
headers:
|
|
233
|
-
payloads:
|
|
232
|
+
queryParameters: IApiParameter[];
|
|
233
|
+
headers: IApiParameter[];
|
|
234
|
+
payloads: IApiPayload[];
|
|
234
235
|
queryString?: IShapeUnion;
|
|
235
|
-
uriParameters:
|
|
236
|
-
cookieParameters:
|
|
237
|
-
sourceMaps?:
|
|
236
|
+
uriParameters: IApiParameter[];
|
|
237
|
+
cookieParameters: IApiParameter[];
|
|
238
|
+
sourceMaps?: IApiDocumentSourceMaps;
|
|
238
239
|
}
|
|
239
240
|
|
|
240
|
-
export interface
|
|
241
|
+
export interface IApiCallback extends IApiDomainProperty {
|
|
241
242
|
name?: string;
|
|
242
243
|
expression?: string;
|
|
243
|
-
endpoint?:
|
|
244
|
-
sourceMaps?:
|
|
244
|
+
endpoint?: IApiEndPoint;
|
|
245
|
+
sourceMaps?: IApiDocumentSourceMaps;
|
|
245
246
|
}
|
|
246
247
|
|
|
247
248
|
/**
|
|
248
249
|
* The definition of the domain extension
|
|
249
250
|
*/
|
|
250
|
-
export interface
|
|
251
|
+
export interface IApiCustomDomainExtension extends IApiDomainProperty {
|
|
251
252
|
name?: string;
|
|
252
253
|
displayName?: string;
|
|
253
254
|
description?: string;
|
|
254
255
|
domain: string[];
|
|
255
256
|
schema?: IShapeUnion;
|
|
256
|
-
sourceMaps?:
|
|
257
|
+
sourceMaps?: IApiDocumentSourceMaps;
|
|
257
258
|
}
|
|
258
259
|
|
|
259
260
|
/**
|
|
260
261
|
* Applies to an object domain extension
|
|
261
262
|
*/
|
|
262
|
-
export interface
|
|
263
|
+
export interface IApiDomainExtension extends IApiDomainProperty {
|
|
263
264
|
name?: string;
|
|
264
|
-
definedBy?:
|
|
265
|
-
extension?:
|
|
266
|
-
sourceMaps?:
|
|
265
|
+
definedBy?: IApiCustomDomainExtension;
|
|
266
|
+
extension?: IApiDataNodeUnion;
|
|
267
|
+
sourceMaps?: IApiDocumentSourceMaps;
|
|
267
268
|
}
|
|
268
269
|
|
|
269
|
-
export interface
|
|
270
|
+
export interface IApiDocumentation extends IApiDomainProperty {
|
|
270
271
|
url?: string;
|
|
271
272
|
description?: string;
|
|
272
273
|
title?: string;
|
|
273
|
-
sourceMaps?:
|
|
274
|
+
sourceMaps?: IApiDocumentSourceMaps;
|
|
274
275
|
}
|
|
275
276
|
|
|
276
|
-
export interface
|
|
277
|
+
export interface IApiEncoding {
|
|
277
278
|
propertyName?: string;
|
|
278
279
|
contentType?: string;
|
|
279
280
|
style?: string;
|
|
280
281
|
explode?: boolean;
|
|
281
282
|
allowReserved?: boolean;
|
|
282
|
-
headers:
|
|
283
|
-
sourceMaps?:
|
|
283
|
+
headers: IApiParameter[];
|
|
284
|
+
sourceMaps?: IApiDocumentSourceMaps;
|
|
284
285
|
}
|
|
285
286
|
|
|
286
|
-
export interface
|
|
287
|
+
export interface IApiDocumentSourceMaps {
|
|
287
288
|
id?: string;
|
|
288
289
|
types?: string[];
|
|
289
|
-
synthesizedField?:
|
|
290
|
-
lexical?:
|
|
291
|
-
trackedElement?:
|
|
292
|
-
autoGeneratedName?:
|
|
293
|
-
parsedJsonSchema?:
|
|
294
|
-
declaredElement?:
|
|
290
|
+
synthesizedField?: IApiSynthesizedField[];
|
|
291
|
+
lexical?: IApiSynthesizedField[];
|
|
292
|
+
trackedElement?: IApiSynthesizedField;
|
|
293
|
+
autoGeneratedName?: IApiSynthesizedField[];
|
|
294
|
+
parsedJsonSchema?: IApiSynthesizedField;
|
|
295
|
+
declaredElement?: IApiSynthesizedField;
|
|
295
296
|
}
|
|
296
297
|
|
|
297
|
-
export interface
|
|
298
|
+
export interface IApiSynthesizedField {
|
|
298
299
|
id: string;
|
|
299
300
|
element?: string;
|
|
300
301
|
value: string;
|
|
301
302
|
}
|
|
302
303
|
|
|
303
|
-
export interface
|
|
304
|
+
export interface IApiParametrizedDeclaration extends IApiDomainProperty {
|
|
304
305
|
name?: string;
|
|
305
|
-
target?:
|
|
306
|
-
variables:
|
|
307
|
-
sourceMaps?:
|
|
306
|
+
target?: IApiAbstractDeclaration;
|
|
307
|
+
variables: IApiVariableValue[];
|
|
308
|
+
sourceMaps?: IApiDocumentSourceMaps;
|
|
308
309
|
}
|
|
309
310
|
|
|
310
|
-
export interface
|
|
311
|
+
export interface IApiVariableValue extends IApiDomainProperty {
|
|
311
312
|
name: string;
|
|
312
|
-
value?:
|
|
313
|
-
sourceMaps?:
|
|
313
|
+
value?: IApiDataNode;
|
|
314
|
+
sourceMaps?: IApiDocumentSourceMaps;
|
|
314
315
|
}
|
|
315
316
|
|
|
316
|
-
export interface
|
|
317
|
+
export interface IApiAbstractDeclaration extends IApiDomainProperty {
|
|
317
318
|
name: string;
|
|
318
319
|
description?: string;
|
|
319
|
-
dataNode?:
|
|
320
|
+
dataNode?: IApiDataNode;
|
|
320
321
|
variables: string[];
|
|
321
|
-
sourceMaps?:
|
|
322
|
+
sourceMaps?: IApiDocumentSourceMaps;
|
|
322
323
|
}
|
|
323
324
|
|
|
324
|
-
export interface
|
|
325
|
-
export interface
|
|
325
|
+
export interface IApiParametrizedTrait extends IApiParametrizedDeclaration {}
|
|
326
|
+
export interface IApiParametrizedResourceType extends IApiParametrizedDeclaration {}
|
|
326
327
|
|
|
327
|
-
export interface
|
|
328
|
+
export interface IShapeProcessingOptions {
|
|
328
329
|
/**
|
|
329
330
|
* This is set when serializing a shape / parameter.
|
|
330
331
|
* It is used to determine which example of the schema to include.
|
|
@@ -344,8 +345,8 @@ export interface ShapeProcessingOptions {
|
|
|
344
345
|
* - `custom`: custom base URI value (entered by the user)
|
|
345
346
|
* - `extra`: an application controlled server value selected by the user.
|
|
346
347
|
*/
|
|
347
|
-
export type
|
|
348
|
-
export type
|
|
348
|
+
export type IServerType = 'server' | 'custom' | 'extra';
|
|
349
|
+
export type ISelectionType = 'summary' | 'resource' | 'operation' | 'schema' | 'security' | 'documentation';
|
|
349
350
|
/**
|
|
350
351
|
* API navigation layout options.
|
|
351
352
|
*
|
|
@@ -354,9 +355,9 @@ export type SelectionType = 'summary' | 'resource' | 'operation' | 'schema' | 's
|
|
|
354
355
|
* - natural-sort - as `natural` but endpoints are sorted by name.
|
|
355
356
|
* - off (or none) - just like in the API spec.
|
|
356
357
|
*/
|
|
357
|
-
export type
|
|
358
|
+
export type INavigationLayout = 'tree' | 'natural' | 'natural-sort' | 'off';
|
|
358
359
|
|
|
359
|
-
export interface
|
|
360
|
+
export interface ISelectableMenuItem {
|
|
360
361
|
/**
|
|
361
362
|
* Whether the item is a selected menu item.
|
|
362
363
|
*/
|
|
@@ -368,14 +369,14 @@ export interface SelectableMenuItem {
|
|
|
368
369
|
secondarySelected?: boolean;
|
|
369
370
|
}
|
|
370
371
|
|
|
371
|
-
export interface
|
|
372
|
+
export interface IEditableMenuItem {
|
|
372
373
|
/**
|
|
373
374
|
* When set the name editor for the item is enabled.
|
|
374
375
|
*/
|
|
375
376
|
nameEditor?: boolean;
|
|
376
377
|
}
|
|
377
378
|
|
|
378
|
-
export interface
|
|
379
|
+
export interface IApiEndPointListItem {
|
|
379
380
|
/**
|
|
380
381
|
* The domain id of the endpoint.
|
|
381
382
|
* It may be undefined when the endpoint is created "abstract" endpoint vor the visualization.
|
|
@@ -385,24 +386,24 @@ export interface ApiEndPointListItem {
|
|
|
385
386
|
name?: string;
|
|
386
387
|
}
|
|
387
388
|
|
|
388
|
-
export interface
|
|
389
|
-
operations:
|
|
389
|
+
export interface IApiEndPointWithOperationsListItem extends IApiEndPointListItem {
|
|
390
|
+
operations: IApiOperationListItem[];
|
|
390
391
|
}
|
|
391
392
|
|
|
392
|
-
export interface
|
|
393
|
+
export interface IApiOperationListItem {
|
|
393
394
|
id: string;
|
|
394
395
|
method: string;
|
|
395
396
|
name?: string;
|
|
396
397
|
}
|
|
397
398
|
|
|
398
|
-
export interface
|
|
399
|
+
export interface IApiEndpointsTreeItem extends IApiEndPointWithOperationsListItem {
|
|
399
400
|
label: string;
|
|
400
401
|
indent: number;
|
|
401
402
|
hasShortPath?: boolean;
|
|
402
403
|
hasChildren?: boolean;
|
|
403
404
|
}
|
|
404
405
|
|
|
405
|
-
export interface
|
|
406
|
+
export interface IApiSecuritySchemeListItem {
|
|
406
407
|
id: string;
|
|
407
408
|
type: string;
|
|
408
409
|
name?: string;
|
|
@@ -410,18 +411,18 @@ export interface ApiSecuritySchemeListItem {
|
|
|
410
411
|
types: string[];
|
|
411
412
|
}
|
|
412
413
|
|
|
413
|
-
export declare interface
|
|
414
|
+
export declare interface IApiNodeShapeListItem {
|
|
414
415
|
id: string;
|
|
415
416
|
name?: string;
|
|
416
417
|
displayName?: string;
|
|
417
418
|
}
|
|
418
419
|
|
|
419
|
-
export interface
|
|
420
|
-
operations:
|
|
420
|
+
export interface IEndpointItem extends IApiEndpointsTreeItem, ISelectableMenuItem, IEditableMenuItem {
|
|
421
|
+
operations: IOperationItem[];
|
|
421
422
|
}
|
|
422
423
|
|
|
423
|
-
export interface
|
|
424
|
-
export interface
|
|
425
|
-
export interface
|
|
426
|
-
export interface
|
|
427
|
-
export type
|
|
424
|
+
export interface IOperationItem extends IApiOperationListItem, ISelectableMenuItem, IEditableMenuItem {}
|
|
425
|
+
export interface INodeShapeItem extends IApiNodeShapeListItem, ISelectableMenuItem, IEditableMenuItem {}
|
|
426
|
+
export interface ISecurityItem extends IApiSecuritySchemeListItem, ISelectableMenuItem {}
|
|
427
|
+
export interface IDocumentationItem extends IApiDocumentation, ISelectableMenuItem, IEditableMenuItem {}
|
|
428
|
+
export type ISchemaAddType = 'scalar'|'object'|'file'|'array'|'union';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IApiDataNodeUnion } from "./Shapes.js";
|
|
2
2
|
|
|
3
|
-
export interface
|
|
3
|
+
export interface IApiDomainProperty {
|
|
4
4
|
id: string;
|
|
5
5
|
types: string[];
|
|
6
|
-
customDomainProperties:
|
|
6
|
+
customDomainProperties: IApiCustomDomainProperty[];
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
export interface
|
|
9
|
+
export interface IApiCustomDomainProperty {
|
|
10
10
|
id: string;
|
|
11
11
|
name: string;
|
|
12
|
-
extension:
|
|
12
|
+
extension: IApiDataNodeUnion;
|
|
13
13
|
}
|