@api-client/core 0.7.12 → 0.8.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/SECURITY.md +14 -0
- package/build/browser.d.ts +6 -0
- package/build/browser.js +6 -0
- package/build/browser.js.map +1 -1
- package/build/index.d.ts +6 -0
- package/build/index.js +6 -0
- package/build/index.js.map +1 -1
- package/build/src/amf/AmfMixin.d.ts +55 -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/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/package.json +1 -1
- package/src/amf/AmfMixin.ts +124 -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/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,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { IApiDomainProperty } from "./Base.js";
|
|
2
|
+
import { IApiDataExample, IApiDataNode, IApiDataNodeUnion, IShapeUnion } from "./Shapes.js";
|
|
3
3
|
export declare type IScalarDataTypes = 'string' | 'base64Binary' | 'boolean' | 'date' | 'dateTime' | 'double' | 'float' | 'integer' | 'long' | 'number' | 'time';
|
|
4
|
-
export interface
|
|
4
|
+
export interface IApiSummary extends IApiDomainProperty {
|
|
5
5
|
name?: string;
|
|
6
6
|
description?: string;
|
|
7
7
|
schemes: string[];
|
|
@@ -9,46 +9,46 @@ export interface ApiSummary extends IDomainProperty {
|
|
|
9
9
|
contentType: string[];
|
|
10
10
|
version?: string;
|
|
11
11
|
termsOfService?: string;
|
|
12
|
-
provider?:
|
|
13
|
-
license?:
|
|
14
|
-
documentations:
|
|
15
|
-
tags:
|
|
16
|
-
sourceMaps?:
|
|
12
|
+
provider?: IApiOrganization;
|
|
13
|
+
license?: IApiLicense;
|
|
14
|
+
documentations: IApiDocumentation[];
|
|
15
|
+
tags: IApiTag[];
|
|
16
|
+
sourceMaps?: IApiDocumentSourceMaps;
|
|
17
17
|
}
|
|
18
|
-
export interface
|
|
19
|
-
endPoints:
|
|
20
|
-
servers:
|
|
21
|
-
security:
|
|
18
|
+
export interface IApiBase extends IApiSummary {
|
|
19
|
+
endPoints: IApiEndPoint[];
|
|
20
|
+
servers: IApiServer[];
|
|
21
|
+
security: IApiSecurityRequirement[];
|
|
22
22
|
}
|
|
23
|
-
export interface
|
|
23
|
+
export interface IApiWeb extends IApiBase {
|
|
24
24
|
}
|
|
25
|
-
export interface
|
|
25
|
+
export interface IApiAsync extends IApiBase {
|
|
26
26
|
}
|
|
27
|
-
export interface
|
|
27
|
+
export interface IApiOrganization extends IApiDomainProperty {
|
|
28
28
|
url?: string;
|
|
29
29
|
name?: string;
|
|
30
30
|
email?: string;
|
|
31
|
-
sourceMaps?:
|
|
31
|
+
sourceMaps?: IApiDocumentSourceMaps;
|
|
32
32
|
}
|
|
33
|
-
export interface
|
|
33
|
+
export interface IApiLicense extends IApiDomainProperty {
|
|
34
34
|
url?: string;
|
|
35
35
|
name?: string;
|
|
36
|
-
sourceMaps?:
|
|
36
|
+
sourceMaps?: IApiDocumentSourceMaps;
|
|
37
37
|
}
|
|
38
|
-
export interface
|
|
38
|
+
export interface IApiEndPoint extends IApiDomainProperty {
|
|
39
39
|
description?: string;
|
|
40
40
|
name?: string;
|
|
41
41
|
summary?: string;
|
|
42
42
|
path: string;
|
|
43
|
-
operations:
|
|
44
|
-
parameters:
|
|
45
|
-
payloads:
|
|
46
|
-
servers:
|
|
47
|
-
security:
|
|
48
|
-
sourceMaps?:
|
|
49
|
-
extends:
|
|
50
|
-
}
|
|
51
|
-
export interface
|
|
43
|
+
operations: IApiOperation[];
|
|
44
|
+
parameters: IApiParameter[];
|
|
45
|
+
payloads: IApiPayload[];
|
|
46
|
+
servers: IApiServer[];
|
|
47
|
+
security: IApiSecurityRequirement[];
|
|
48
|
+
sourceMaps?: IApiDocumentSourceMaps;
|
|
49
|
+
extends: IApiParametrizedDeclaration[];
|
|
50
|
+
}
|
|
51
|
+
export interface IApiOperation extends IApiDomainProperty {
|
|
52
52
|
method: string;
|
|
53
53
|
name?: string;
|
|
54
54
|
description?: string;
|
|
@@ -58,30 +58,30 @@ export interface ApiOperation extends IDomainProperty {
|
|
|
58
58
|
accepts?: string[];
|
|
59
59
|
contentType?: string[];
|
|
60
60
|
operationId?: string;
|
|
61
|
-
documentation?:
|
|
62
|
-
request?:
|
|
63
|
-
responses:
|
|
64
|
-
security:
|
|
65
|
-
callbacks:
|
|
66
|
-
servers:
|
|
67
|
-
tags:
|
|
68
|
-
sourceMaps?:
|
|
69
|
-
extends:
|
|
70
|
-
}
|
|
71
|
-
export interface
|
|
61
|
+
documentation?: IApiDocumentation;
|
|
62
|
+
request?: IApiRequest;
|
|
63
|
+
responses: IApiResponse[];
|
|
64
|
+
security: IApiSecurityRequirement[];
|
|
65
|
+
callbacks: IApiCallback[];
|
|
66
|
+
servers: IApiServer[];
|
|
67
|
+
tags: IApiTag[];
|
|
68
|
+
sourceMaps?: IApiDocumentSourceMaps;
|
|
69
|
+
extends: IApiParametrizedTrait[];
|
|
70
|
+
}
|
|
71
|
+
export interface IApiTag extends IApiDomainProperty {
|
|
72
72
|
name: string;
|
|
73
|
-
sourceMaps?:
|
|
73
|
+
sourceMaps?: IApiDocumentSourceMaps;
|
|
74
74
|
}
|
|
75
|
-
export interface
|
|
75
|
+
export interface IApiServer extends IApiDomainProperty {
|
|
76
76
|
url: string;
|
|
77
77
|
description?: string;
|
|
78
|
-
variables:
|
|
79
|
-
sourceMaps?:
|
|
78
|
+
variables: IApiParameter[];
|
|
79
|
+
sourceMaps?: IApiDocumentSourceMaps;
|
|
80
80
|
protocol?: string;
|
|
81
81
|
protocolVersion?: string;
|
|
82
|
-
security?:
|
|
82
|
+
security?: IApiSecurityRequirement[];
|
|
83
83
|
}
|
|
84
|
-
export interface
|
|
84
|
+
export interface IApiParameter extends IApiDomainProperty {
|
|
85
85
|
name?: string;
|
|
86
86
|
paramName?: string;
|
|
87
87
|
description?: string;
|
|
@@ -93,199 +93,199 @@ export interface ApiParameter extends IDomainProperty {
|
|
|
93
93
|
allowReserved?: boolean;
|
|
94
94
|
binding?: string;
|
|
95
95
|
schema?: IShapeUnion;
|
|
96
|
-
payloads:
|
|
97
|
-
examples:
|
|
98
|
-
sourceMaps?:
|
|
96
|
+
payloads: IApiPayload[];
|
|
97
|
+
examples: IApiDataExample[];
|
|
98
|
+
sourceMaps?: IApiDocumentSourceMaps;
|
|
99
99
|
}
|
|
100
|
-
export interface
|
|
100
|
+
export interface IApiPayload extends IApiDomainProperty {
|
|
101
101
|
name?: string;
|
|
102
102
|
mediaType?: string;
|
|
103
103
|
schema?: IShapeUnion;
|
|
104
|
-
examples:
|
|
105
|
-
sourceMaps?:
|
|
104
|
+
examples: IApiDataExample[];
|
|
105
|
+
sourceMaps?: IApiDocumentSourceMaps;
|
|
106
106
|
}
|
|
107
|
-
export interface
|
|
107
|
+
export interface IApiResponse extends IApiDomainProperty {
|
|
108
108
|
name?: string;
|
|
109
109
|
description?: string;
|
|
110
110
|
statusCode?: string;
|
|
111
|
-
headers:
|
|
112
|
-
payloads:
|
|
113
|
-
examples:
|
|
114
|
-
links:
|
|
115
|
-
sourceMaps?:
|
|
111
|
+
headers: IApiParameter[];
|
|
112
|
+
payloads: IApiPayload[];
|
|
113
|
+
examples: IApiDataExample[];
|
|
114
|
+
links: IApiTemplatedLink[];
|
|
115
|
+
sourceMaps?: IApiDocumentSourceMaps;
|
|
116
116
|
}
|
|
117
|
-
export interface
|
|
117
|
+
export interface IApiTemplatedLink extends IApiDomainProperty {
|
|
118
118
|
name?: string;
|
|
119
119
|
description?: string;
|
|
120
120
|
template?: string;
|
|
121
121
|
operationId?: string;
|
|
122
122
|
requestBody?: string;
|
|
123
|
-
mapping:
|
|
124
|
-
server?:
|
|
125
|
-
sourceMaps?:
|
|
123
|
+
mapping: IApiIriTemplateMapping[];
|
|
124
|
+
server?: IApiServer;
|
|
125
|
+
sourceMaps?: IApiDocumentSourceMaps;
|
|
126
126
|
}
|
|
127
|
-
export interface
|
|
127
|
+
export interface IApiIriTemplateMapping extends IApiDomainProperty {
|
|
128
128
|
templateVariable?: string;
|
|
129
129
|
linkExpression?: string;
|
|
130
|
-
sourceMaps?:
|
|
130
|
+
sourceMaps?: IApiDocumentSourceMaps;
|
|
131
131
|
}
|
|
132
|
-
export interface
|
|
132
|
+
export interface IApiSecurityRequirement extends IApiDomainProperty {
|
|
133
133
|
name?: string;
|
|
134
|
-
schemes:
|
|
135
|
-
sourceMaps?:
|
|
134
|
+
schemes: IApiParametrizedSecurityScheme[];
|
|
135
|
+
sourceMaps?: IApiDocumentSourceMaps;
|
|
136
136
|
}
|
|
137
|
-
export interface
|
|
137
|
+
export interface IApiParametrizedSecurityScheme extends IApiDomainProperty {
|
|
138
138
|
name?: string;
|
|
139
|
-
settings?:
|
|
140
|
-
scheme?:
|
|
141
|
-
sourceMaps?:
|
|
139
|
+
settings?: IApiSecuritySettingsUnion;
|
|
140
|
+
scheme?: IApiSecurityScheme;
|
|
141
|
+
sourceMaps?: IApiDocumentSourceMaps;
|
|
142
142
|
}
|
|
143
|
-
export interface
|
|
143
|
+
export interface IApiSecurityScheme extends IApiDomainProperty {
|
|
144
144
|
name?: string;
|
|
145
145
|
type?: string;
|
|
146
146
|
displayName?: string;
|
|
147
147
|
description?: string;
|
|
148
|
-
settings?:
|
|
149
|
-
headers:
|
|
150
|
-
queryParameters:
|
|
151
|
-
responses:
|
|
148
|
+
settings?: IApiSecuritySettingsUnion;
|
|
149
|
+
headers: IApiParameter[];
|
|
150
|
+
queryParameters: IApiParameter[];
|
|
151
|
+
responses: IApiResponse[];
|
|
152
152
|
queryString?: IShapeUnion;
|
|
153
|
-
sourceMaps?:
|
|
153
|
+
sourceMaps?: IApiDocumentSourceMaps;
|
|
154
154
|
}
|
|
155
|
-
export interface
|
|
156
|
-
additionalProperties?:
|
|
157
|
-
sourceMaps?:
|
|
155
|
+
export interface IApiSecuritySettings extends IApiDomainProperty {
|
|
156
|
+
additionalProperties?: IApiDataNodeUnion;
|
|
157
|
+
sourceMaps?: IApiDocumentSourceMaps;
|
|
158
158
|
}
|
|
159
|
-
export interface
|
|
159
|
+
export interface IApiSecurityOAuth1Settings extends IApiSecuritySettings {
|
|
160
160
|
requestTokenUri?: string;
|
|
161
161
|
authorizationUri?: string;
|
|
162
162
|
tokenCredentialsUri?: string;
|
|
163
163
|
signatures: string[];
|
|
164
|
-
sourceMaps?:
|
|
164
|
+
sourceMaps?: IApiDocumentSourceMaps;
|
|
165
165
|
}
|
|
166
|
-
export interface
|
|
166
|
+
export interface IApiSecurityOAuth2Settings extends IApiSecuritySettings {
|
|
167
167
|
authorizationGrants: string[];
|
|
168
|
-
flows:
|
|
169
|
-
sourceMaps?:
|
|
168
|
+
flows: IApiSecurityOAuth2Flow[];
|
|
169
|
+
sourceMaps?: IApiDocumentSourceMaps;
|
|
170
170
|
}
|
|
171
|
-
export interface
|
|
171
|
+
export interface IApiSecurityApiKeySettings extends IApiSecuritySettings {
|
|
172
172
|
name?: string;
|
|
173
173
|
in?: string;
|
|
174
|
-
sourceMaps?:
|
|
174
|
+
sourceMaps?: IApiDocumentSourceMaps;
|
|
175
175
|
}
|
|
176
|
-
export interface
|
|
176
|
+
export interface IApiSecurityHttpSettings extends IApiSecuritySettings {
|
|
177
177
|
scheme?: string;
|
|
178
178
|
bearerFormat?: string;
|
|
179
|
-
sourceMaps?:
|
|
179
|
+
sourceMaps?: IApiDocumentSourceMaps;
|
|
180
180
|
}
|
|
181
|
-
export interface
|
|
181
|
+
export interface IApiSecurityOpenIdConnectSettings extends IApiSecuritySettings {
|
|
182
182
|
url?: string;
|
|
183
|
-
sourceMaps?:
|
|
183
|
+
sourceMaps?: IApiDocumentSourceMaps;
|
|
184
184
|
}
|
|
185
|
-
export declare type
|
|
186
|
-
export interface
|
|
185
|
+
export declare type IApiSecuritySettingsUnion = IApiSecuritySettings | IApiSecurityOAuth1Settings | IApiSecurityOAuth2Settings | IApiSecurityApiKeySettings | IApiSecurityHttpSettings | IApiSecurityOpenIdConnectSettings;
|
|
186
|
+
export interface IApiSecurityOAuth2Flow extends IApiDomainProperty {
|
|
187
187
|
authorizationUri?: string;
|
|
188
188
|
accessTokenUri?: string;
|
|
189
189
|
flow?: string;
|
|
190
190
|
refreshUri?: string;
|
|
191
|
-
scopes:
|
|
192
|
-
sourceMaps?:
|
|
191
|
+
scopes: IApiSecurityScope[];
|
|
192
|
+
sourceMaps?: IApiDocumentSourceMaps;
|
|
193
193
|
}
|
|
194
|
-
export interface
|
|
194
|
+
export interface IApiSecurityScope extends IApiDomainProperty {
|
|
195
195
|
name?: string;
|
|
196
196
|
description?: string;
|
|
197
|
-
sourceMaps?:
|
|
197
|
+
sourceMaps?: IApiDocumentSourceMaps;
|
|
198
198
|
}
|
|
199
|
-
export interface
|
|
199
|
+
export interface IApiRequest extends IApiDomainProperty {
|
|
200
200
|
description?: string;
|
|
201
201
|
required?: boolean;
|
|
202
|
-
queryParameters:
|
|
203
|
-
headers:
|
|
204
|
-
payloads:
|
|
202
|
+
queryParameters: IApiParameter[];
|
|
203
|
+
headers: IApiParameter[];
|
|
204
|
+
payloads: IApiPayload[];
|
|
205
205
|
queryString?: IShapeUnion;
|
|
206
|
-
uriParameters:
|
|
207
|
-
cookieParameters:
|
|
208
|
-
sourceMaps?:
|
|
206
|
+
uriParameters: IApiParameter[];
|
|
207
|
+
cookieParameters: IApiParameter[];
|
|
208
|
+
sourceMaps?: IApiDocumentSourceMaps;
|
|
209
209
|
}
|
|
210
|
-
export interface
|
|
210
|
+
export interface IApiCallback extends IApiDomainProperty {
|
|
211
211
|
name?: string;
|
|
212
212
|
expression?: string;
|
|
213
|
-
endpoint?:
|
|
214
|
-
sourceMaps?:
|
|
213
|
+
endpoint?: IApiEndPoint;
|
|
214
|
+
sourceMaps?: IApiDocumentSourceMaps;
|
|
215
215
|
}
|
|
216
216
|
/**
|
|
217
217
|
* The definition of the domain extension
|
|
218
218
|
*/
|
|
219
|
-
export interface
|
|
219
|
+
export interface IApiCustomDomainExtension extends IApiDomainProperty {
|
|
220
220
|
name?: string;
|
|
221
221
|
displayName?: string;
|
|
222
222
|
description?: string;
|
|
223
223
|
domain: string[];
|
|
224
224
|
schema?: IShapeUnion;
|
|
225
|
-
sourceMaps?:
|
|
225
|
+
sourceMaps?: IApiDocumentSourceMaps;
|
|
226
226
|
}
|
|
227
227
|
/**
|
|
228
228
|
* Applies to an object domain extension
|
|
229
229
|
*/
|
|
230
|
-
export interface
|
|
230
|
+
export interface IApiDomainExtension extends IApiDomainProperty {
|
|
231
231
|
name?: string;
|
|
232
|
-
definedBy?:
|
|
233
|
-
extension?:
|
|
234
|
-
sourceMaps?:
|
|
232
|
+
definedBy?: IApiCustomDomainExtension;
|
|
233
|
+
extension?: IApiDataNodeUnion;
|
|
234
|
+
sourceMaps?: IApiDocumentSourceMaps;
|
|
235
235
|
}
|
|
236
|
-
export interface
|
|
236
|
+
export interface IApiDocumentation extends IApiDomainProperty {
|
|
237
237
|
url?: string;
|
|
238
238
|
description?: string;
|
|
239
239
|
title?: string;
|
|
240
|
-
sourceMaps?:
|
|
240
|
+
sourceMaps?: IApiDocumentSourceMaps;
|
|
241
241
|
}
|
|
242
|
-
export interface
|
|
242
|
+
export interface IApiEncoding {
|
|
243
243
|
propertyName?: string;
|
|
244
244
|
contentType?: string;
|
|
245
245
|
style?: string;
|
|
246
246
|
explode?: boolean;
|
|
247
247
|
allowReserved?: boolean;
|
|
248
|
-
headers:
|
|
249
|
-
sourceMaps?:
|
|
248
|
+
headers: IApiParameter[];
|
|
249
|
+
sourceMaps?: IApiDocumentSourceMaps;
|
|
250
250
|
}
|
|
251
|
-
export interface
|
|
251
|
+
export interface IApiDocumentSourceMaps {
|
|
252
252
|
id?: string;
|
|
253
253
|
types?: string[];
|
|
254
|
-
synthesizedField?:
|
|
255
|
-
lexical?:
|
|
256
|
-
trackedElement?:
|
|
257
|
-
autoGeneratedName?:
|
|
258
|
-
parsedJsonSchema?:
|
|
259
|
-
declaredElement?:
|
|
260
|
-
}
|
|
261
|
-
export interface
|
|
254
|
+
synthesizedField?: IApiSynthesizedField[];
|
|
255
|
+
lexical?: IApiSynthesizedField[];
|
|
256
|
+
trackedElement?: IApiSynthesizedField;
|
|
257
|
+
autoGeneratedName?: IApiSynthesizedField[];
|
|
258
|
+
parsedJsonSchema?: IApiSynthesizedField;
|
|
259
|
+
declaredElement?: IApiSynthesizedField;
|
|
260
|
+
}
|
|
261
|
+
export interface IApiSynthesizedField {
|
|
262
262
|
id: string;
|
|
263
263
|
element?: string;
|
|
264
264
|
value: string;
|
|
265
265
|
}
|
|
266
|
-
export interface
|
|
266
|
+
export interface IApiParametrizedDeclaration extends IApiDomainProperty {
|
|
267
267
|
name?: string;
|
|
268
|
-
target?:
|
|
269
|
-
variables:
|
|
270
|
-
sourceMaps?:
|
|
268
|
+
target?: IApiAbstractDeclaration;
|
|
269
|
+
variables: IApiVariableValue[];
|
|
270
|
+
sourceMaps?: IApiDocumentSourceMaps;
|
|
271
271
|
}
|
|
272
|
-
export interface
|
|
272
|
+
export interface IApiVariableValue extends IApiDomainProperty {
|
|
273
273
|
name: string;
|
|
274
|
-
value?:
|
|
275
|
-
sourceMaps?:
|
|
274
|
+
value?: IApiDataNode;
|
|
275
|
+
sourceMaps?: IApiDocumentSourceMaps;
|
|
276
276
|
}
|
|
277
|
-
export interface
|
|
277
|
+
export interface IApiAbstractDeclaration extends IApiDomainProperty {
|
|
278
278
|
name: string;
|
|
279
279
|
description?: string;
|
|
280
|
-
dataNode?:
|
|
280
|
+
dataNode?: IApiDataNode;
|
|
281
281
|
variables: string[];
|
|
282
|
-
sourceMaps?:
|
|
282
|
+
sourceMaps?: IApiDocumentSourceMaps;
|
|
283
283
|
}
|
|
284
|
-
export interface
|
|
284
|
+
export interface IApiParametrizedTrait extends IApiParametrizedDeclaration {
|
|
285
285
|
}
|
|
286
|
-
export interface
|
|
286
|
+
export interface IApiParametrizedResourceType extends IApiParametrizedDeclaration {
|
|
287
287
|
}
|
|
288
|
-
export interface
|
|
288
|
+
export interface IShapeProcessingOptions {
|
|
289
289
|
/**
|
|
290
290
|
* This is set when serializing a shape / parameter.
|
|
291
291
|
* It is used to determine which example of the schema to include.
|
|
@@ -304,8 +304,8 @@ export interface ShapeProcessingOptions {
|
|
|
304
304
|
* - `custom`: custom base URI value (entered by the user)
|
|
305
305
|
* - `extra`: an application controlled server value selected by the user.
|
|
306
306
|
*/
|
|
307
|
-
export declare type
|
|
308
|
-
export declare type
|
|
307
|
+
export declare type IServerType = 'server' | 'custom' | 'extra';
|
|
308
|
+
export declare type ISelectionType = 'summary' | 'resource' | 'operation' | 'schema' | 'security' | 'documentation';
|
|
309
309
|
/**
|
|
310
310
|
* API navigation layout options.
|
|
311
311
|
*
|
|
@@ -314,8 +314,8 @@ export declare type SelectionType = 'summary' | 'resource' | 'operation' | 'sche
|
|
|
314
314
|
* - natural-sort - as `natural` but endpoints are sorted by name.
|
|
315
315
|
* - off (or none) - just like in the API spec.
|
|
316
316
|
*/
|
|
317
|
-
export declare type
|
|
318
|
-
export interface
|
|
317
|
+
export declare type INavigationLayout = 'tree' | 'natural' | 'natural-sort' | 'off';
|
|
318
|
+
export interface ISelectableMenuItem {
|
|
319
319
|
/**
|
|
320
320
|
* Whether the item is a selected menu item.
|
|
321
321
|
*/
|
|
@@ -326,13 +326,13 @@ export interface SelectableMenuItem {
|
|
|
326
326
|
*/
|
|
327
327
|
secondarySelected?: boolean;
|
|
328
328
|
}
|
|
329
|
-
export interface
|
|
329
|
+
export interface IEditableMenuItem {
|
|
330
330
|
/**
|
|
331
331
|
* When set the name editor for the item is enabled.
|
|
332
332
|
*/
|
|
333
333
|
nameEditor?: boolean;
|
|
334
334
|
}
|
|
335
|
-
export interface
|
|
335
|
+
export interface IApiEndPointListItem {
|
|
336
336
|
/**
|
|
337
337
|
* The domain id of the endpoint.
|
|
338
338
|
* It may be undefined when the endpoint is created "abstract" endpoint vor the visualization.
|
|
@@ -341,41 +341,41 @@ export interface ApiEndPointListItem {
|
|
|
341
341
|
path: string;
|
|
342
342
|
name?: string;
|
|
343
343
|
}
|
|
344
|
-
export interface
|
|
345
|
-
operations:
|
|
344
|
+
export interface IApiEndPointWithOperationsListItem extends IApiEndPointListItem {
|
|
345
|
+
operations: IApiOperationListItem[];
|
|
346
346
|
}
|
|
347
|
-
export interface
|
|
347
|
+
export interface IApiOperationListItem {
|
|
348
348
|
id: string;
|
|
349
349
|
method: string;
|
|
350
350
|
name?: string;
|
|
351
351
|
}
|
|
352
|
-
export interface
|
|
352
|
+
export interface IApiEndpointsTreeItem extends IApiEndPointWithOperationsListItem {
|
|
353
353
|
label: string;
|
|
354
354
|
indent: number;
|
|
355
355
|
hasShortPath?: boolean;
|
|
356
356
|
hasChildren?: boolean;
|
|
357
357
|
}
|
|
358
|
-
export interface
|
|
358
|
+
export interface IApiSecuritySchemeListItem {
|
|
359
359
|
id: string;
|
|
360
360
|
type: string;
|
|
361
361
|
name?: string;
|
|
362
362
|
displayName?: string;
|
|
363
363
|
types: string[];
|
|
364
364
|
}
|
|
365
|
-
export declare interface
|
|
365
|
+
export declare interface IApiNodeShapeListItem {
|
|
366
366
|
id: string;
|
|
367
367
|
name?: string;
|
|
368
368
|
displayName?: string;
|
|
369
369
|
}
|
|
370
|
-
export interface
|
|
371
|
-
operations:
|
|
370
|
+
export interface IEndpointItem extends IApiEndpointsTreeItem, ISelectableMenuItem, IEditableMenuItem {
|
|
371
|
+
operations: IOperationItem[];
|
|
372
372
|
}
|
|
373
|
-
export interface
|
|
373
|
+
export interface IOperationItem extends IApiOperationListItem, ISelectableMenuItem, IEditableMenuItem {
|
|
374
374
|
}
|
|
375
|
-
export interface
|
|
375
|
+
export interface INodeShapeItem extends IApiNodeShapeListItem, ISelectableMenuItem, IEditableMenuItem {
|
|
376
376
|
}
|
|
377
|
-
export interface
|
|
377
|
+
export interface ISecurityItem extends IApiSecuritySchemeListItem, ISelectableMenuItem {
|
|
378
378
|
}
|
|
379
|
-
export interface
|
|
379
|
+
export interface IDocumentationItem extends IApiDocumentation, ISelectableMenuItem, IEditableMenuItem {
|
|
380
380
|
}
|
|
381
|
-
export declare type
|
|
381
|
+
export declare type ISchemaAddType = 'scalar' | 'object' | 'file' | 'array' | 'union';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export interface
|
|
1
|
+
import { IApiDataNodeUnion } from "./Shapes.js";
|
|
2
|
+
export interface IApiDomainProperty {
|
|
3
3
|
id: string;
|
|
4
4
|
types: string[];
|
|
5
|
-
customDomainProperties:
|
|
5
|
+
customDomainProperties: IApiCustomDomainProperty[];
|
|
6
6
|
}
|
|
7
|
-
export interface
|
|
7
|
+
export interface IApiCustomDomainProperty {
|
|
8
8
|
id: string;
|
|
9
9
|
name: string;
|
|
10
|
-
extension:
|
|
10
|
+
extension: IApiDataNodeUnion;
|
|
11
11
|
}
|