@api-client/core 0.6.13 → 0.6.16

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 (155) hide show
  1. package/build/browser.d.ts +9 -2
  2. package/build/browser.js +12 -2
  3. package/build/browser.js.map +1 -1
  4. package/build/index.d.ts +9 -2
  5. package/build/index.js +12 -2
  6. package/build/index.js.map +1 -1
  7. package/build/src/amf/AmfMixin.d.ts +395 -0
  8. package/build/src/amf/AmfMixin.js +1146 -0
  9. package/build/src/amf/AmfMixin.js.map +1 -0
  10. package/build/src/amf/AmfSerializer.d.ts +136 -0
  11. package/build/src/amf/AmfSerializer.js +1913 -0
  12. package/build/src/amf/AmfSerializer.js.map +1 -0
  13. package/build/src/amf/AmfShapeGenerator.d.ts +85 -0
  14. package/build/src/amf/AmfShapeGenerator.js +385 -0
  15. package/build/src/amf/AmfShapeGenerator.js.map +1 -0
  16. package/build/src/amf/AmfTypes.d.ts +24 -0
  17. package/build/src/amf/AmfTypes.js +122 -0
  18. package/build/src/amf/AmfTypes.js.map +1 -0
  19. package/build/src/amf/ApiExampleGenerator.d.ts +36 -0
  20. package/build/src/amf/ApiExampleGenerator.js +109 -0
  21. package/build/src/amf/ApiExampleGenerator.js.map +1 -0
  22. package/build/src/amf/ApiMonacoSchemaGenerator.d.ts +67 -0
  23. package/build/src/amf/ApiMonacoSchemaGenerator.js +243 -0
  24. package/build/src/amf/ApiMonacoSchemaGenerator.js.map +1 -0
  25. package/build/src/amf/ApiSchemaGenerator.d.ts +55 -0
  26. package/build/src/amf/ApiSchemaGenerator.js +94 -0
  27. package/build/src/amf/ApiSchemaGenerator.js.map +1 -0
  28. package/build/src/amf/ApiSchemaValues.d.ts +98 -0
  29. package/build/src/amf/ApiSchemaValues.js +382 -0
  30. package/build/src/amf/ApiSchemaValues.js.map +1 -0
  31. package/build/src/amf/Utils.d.ts +41 -0
  32. package/build/src/amf/Utils.js +176 -0
  33. package/build/src/amf/Utils.js.map +1 -0
  34. package/build/src/amf/data-node/DataNodeBase.d.ts +31 -0
  35. package/build/src/amf/data-node/DataNodeBase.js +77 -0
  36. package/build/src/amf/data-node/DataNodeBase.js.map +1 -0
  37. package/build/src/amf/data-node/JsonDataNodeGenerator.d.ts +15 -0
  38. package/build/src/amf/data-node/JsonDataNodeGenerator.js +24 -0
  39. package/build/src/amf/data-node/JsonDataNodeGenerator.js.map +1 -0
  40. package/build/src/amf/data-node/UrlEncodedDataNodeGenerator.d.ts +13 -0
  41. package/build/src/amf/data-node/UrlEncodedDataNodeGenerator.js +42 -0
  42. package/build/src/amf/data-node/UrlEncodedDataNodeGenerator.js.map +1 -0
  43. package/build/src/amf/data-node/XmlDataNodeGenerator.d.ts +21 -0
  44. package/build/src/amf/data-node/XmlDataNodeGenerator.js +30 -0
  45. package/build/src/amf/data-node/XmlDataNodeGenerator.js.map +1 -0
  46. package/build/src/amf/definitions/Amf.d.ts +362 -0
  47. package/build/src/amf/definitions/Amf.js +2 -0
  48. package/build/src/amf/definitions/Amf.js.map +1 -0
  49. package/build/src/amf/definitions/Api.d.ts +381 -0
  50. package/build/src/amf/definitions/Api.js +2 -0
  51. package/build/src/amf/definitions/Api.js.map +1 -0
  52. package/build/src/amf/definitions/Base.d.ts +11 -0
  53. package/build/src/amf/definitions/Base.js +2 -0
  54. package/build/src/amf/definitions/Base.js.map +1 -0
  55. package/build/src/amf/definitions/Namespace.d.ts +311 -0
  56. package/build/src/amf/definitions/Namespace.js +330 -0
  57. package/build/src/amf/definitions/Namespace.js.map +1 -0
  58. package/build/src/amf/definitions/Shapes.d.ts +309 -0
  59. package/build/src/amf/definitions/Shapes.js +87 -0
  60. package/build/src/amf/definitions/Shapes.js.map +1 -0
  61. package/build/src/amf/models/AmfDataNode.d.ts +68 -0
  62. package/build/src/amf/models/AmfDataNode.js +188 -0
  63. package/build/src/amf/models/AmfDataNode.js.map +1 -0
  64. package/build/src/amf/shape/ShapeBase.d.ts +75 -0
  65. package/build/src/amf/shape/ShapeBase.js +90 -0
  66. package/build/src/amf/shape/ShapeBase.js.map +1 -0
  67. package/build/src/amf/shape/ShapeJsonSchemaGenerator.d.ts +46 -0
  68. package/build/src/amf/shape/ShapeJsonSchemaGenerator.js +406 -0
  69. package/build/src/amf/shape/ShapeJsonSchemaGenerator.js.map +1 -0
  70. package/build/src/amf/shape/ShapeXmlSchemaGenerator.d.ts +84 -0
  71. package/build/src/amf/shape/ShapeXmlSchemaGenerator.js +820 -0
  72. package/build/src/amf/shape/ShapeXmlSchemaGenerator.js.map +1 -0
  73. package/build/src/models/Thing.d.ts +17 -0
  74. package/build/src/models/Thing.js +19 -1
  75. package/build/src/models/Thing.js.map +1 -1
  76. package/build/src/models/data/Bindings.d.ts +161 -0
  77. package/build/src/models/data/Bindings.js +2 -0
  78. package/build/src/models/data/Bindings.js.map +1 -0
  79. package/build/src/models/data/DataAssociation.d.ts +135 -14
  80. package/build/src/models/data/DataAssociation.js +154 -21
  81. package/build/src/models/data/DataAssociation.js.map +1 -1
  82. package/build/src/models/data/DataAssociationSchema.d.ts +36 -0
  83. package/build/src/models/data/DataEntity.d.ts +76 -4
  84. package/build/src/models/data/DataEntity.js +136 -9
  85. package/build/src/models/data/DataEntity.js.map +1 -1
  86. package/build/src/models/data/DataFile.d.ts +3 -0
  87. package/build/src/models/data/DataFile.js +3 -0
  88. package/build/src/models/data/DataFile.js.map +1 -1
  89. package/build/src/models/data/DataModel.d.ts +1 -1
  90. package/build/src/models/data/DataModel.js.map +1 -1
  91. package/build/src/models/data/DataNamespace.d.ts +6 -0
  92. package/build/src/models/data/DataNamespace.js +11 -1
  93. package/build/src/models/data/DataNamespace.js.map +1 -1
  94. package/build/src/models/data/DataProperty.d.ts +131 -36
  95. package/build/src/models/data/DataProperty.js +200 -17
  96. package/build/src/models/data/DataProperty.js.map +1 -1
  97. package/data/apis/oas-date/oas-date.yaml +28 -0
  98. package/data/apis/oas-types/oas-types.yaml +159 -0
  99. package/data/apis/oas-unions/oas-unions.yaml +75 -0
  100. package/data/apis/raml-date/raml-date.raml +28 -0
  101. package/data/apis/recursive/recursive.raml +14 -0
  102. package/data/apis/schema-api/examples/person.json +14 -0
  103. package/data/apis/schema-api/examples/person.raml +14 -0
  104. package/data/apis/schema-api/examples/person.url.encoded +1 -0
  105. package/data/apis/schema-api/examples/person.xml +14 -0
  106. package/data/apis/schema-api/library/demo-types.raml +43 -0
  107. package/data/apis/schema-api/schema-api.raml +644 -0
  108. package/data/apis/schema-api/schemas/person.json +104 -0
  109. package/data/apis/schema-api/schemas/person.xsd +26 -0
  110. package/data/apis/schema-api/types/DemoPerson.raml +67 -0
  111. package/data/model.js +106 -0
  112. package/data/models/oas-date.json +637 -0
  113. package/data/models/oas-types.json +5352 -0
  114. package/data/models/oas-unions.json +1881 -0
  115. package/data/models/raml-date.json +1096 -0
  116. package/data/models/recursive.json +610 -0
  117. package/data/models/schema-api.json +37319 -0
  118. package/package.json +9 -6
  119. package/src/amf/AmfMixin.ts +1623 -0
  120. package/src/amf/AmfSerializer.ts +2028 -0
  121. package/src/amf/AmfShapeGenerator.ts +400 -0
  122. package/src/amf/AmfTypes.ts +126 -0
  123. package/src/amf/ApiExampleGenerator.ts +112 -0
  124. package/src/amf/ApiMonacoSchemaGenerator.ts +296 -0
  125. package/src/amf/ApiSchemaGenerator.ts +108 -0
  126. package/src/amf/ApiSchemaValues.ts +411 -0
  127. package/src/amf/Utils.ts +182 -0
  128. package/src/amf/data-node/DataNodeBase.ts +81 -0
  129. package/src/amf/data-node/JsonDataNodeGenerator.ts +26 -0
  130. package/src/amf/data-node/README.md +3 -0
  131. package/src/amf/data-node/UrlEncodedDataNodeGenerator.ts +43 -0
  132. package/src/amf/data-node/XmlDataNodeGenerator.ts +38 -0
  133. package/src/amf/definitions/Amf.ts +443 -0
  134. package/src/amf/definitions/Api.ts +427 -0
  135. package/src/amf/definitions/Base.ts +13 -0
  136. package/src/amf/definitions/Namespace.ts +341 -0
  137. package/src/amf/definitions/Shapes.ts +414 -0
  138. package/src/amf/models/AmfDataNode.ts +200 -0
  139. package/src/amf/shape/README.md +4 -0
  140. package/src/amf/shape/ShapeBase.ts +160 -0
  141. package/src/amf/shape/ShapeJsonSchemaGenerator.ts +422 -0
  142. package/src/amf/shape/ShapeXmlSchemaGenerator.ts +876 -0
  143. package/src/models/Thing.ts +25 -1
  144. package/src/models/data/Bindings.ts +186 -0
  145. package/src/models/data/DataAssociation.ts +226 -29
  146. package/src/models/data/DataAssociationSchema.ts +38 -0
  147. package/src/models/data/DataEntity.ts +170 -13
  148. package/src/models/data/DataFile.ts +3 -0
  149. package/src/models/data/DataModel.ts +1 -1
  150. package/src/models/data/DataNamespace.ts +16 -1
  151. package/src/models/data/DataProperty.ts +250 -47
  152. package/build/src/models/data/DataPropertySchema.d.ts +0 -125
  153. package/build/src/models/data/DataPropertySchema.js +0 -33
  154. package/build/src/models/data/DataPropertySchema.js.map +0 -1
  155. package/src/models/data/DataPropertySchema.ts +0 -156
@@ -0,0 +1,427 @@
1
+ import { IDomainProperty } from "./Base.js";
2
+ import { IDataExample, IDataNode, IDataNodeUnion, IShapeUnion } from "./Shapes.js";
3
+
4
+ export type IScalarDataTypes = 'string' | 'base64Binary' | 'boolean' | 'date' | 'dateTime' | 'double' | 'float' | 'integer' | 'long' | 'number' | 'time';
5
+
6
+ export interface ApiSummary extends IDomainProperty {
7
+ name?: string;
8
+ description?: string;
9
+ // identifier?: string; <- not sure what this is.
10
+ schemes: string[];
11
+ accepts: string[];
12
+ contentType: string[];
13
+ version?: string;
14
+ termsOfService?: string;
15
+ provider?: ApiOrganization;
16
+ license?: ApiLicense;
17
+ documentations: ApiDocumentation[];
18
+ tags: ApiTag[];
19
+ sourceMaps?: ApiDocumentSourceMaps;
20
+ }
21
+
22
+ export interface ApiBase extends ApiSummary {
23
+ endPoints: ApiEndPoint[];
24
+ servers: ApiServer[];
25
+ security: ApiSecurityRequirement[];
26
+ }
27
+
28
+ export interface ApiWeb extends ApiBase {}
29
+ export interface ApiAsync extends ApiBase {}
30
+
31
+ export interface ApiOrganization extends IDomainProperty {
32
+ url?: string;
33
+ name?: string;
34
+ email?: string;
35
+ sourceMaps?: ApiDocumentSourceMaps;
36
+ }
37
+
38
+ export interface ApiLicense extends IDomainProperty {
39
+ url?: string;
40
+ name?: string;
41
+ sourceMaps?: ApiDocumentSourceMaps;
42
+ }
43
+
44
+ export interface ApiEndPoint extends IDomainProperty {
45
+ description?: string;
46
+ name?: string;
47
+ summary?: string;
48
+ path: string;
49
+ operations: ApiOperation[];
50
+ parameters: ApiParameter[];
51
+ payloads: ApiPayload[];
52
+ servers: ApiServer[];
53
+ security: ApiSecurityRequirement[];
54
+ sourceMaps?: ApiDocumentSourceMaps;
55
+ extends: ApiParametrizedDeclaration[];
56
+ }
57
+
58
+ export interface ApiOperation extends IDomainProperty {
59
+ method: string;
60
+ name?: string;
61
+ description?: string;
62
+ summary?: string;
63
+ deprecated: boolean;
64
+ schemes?: string[];
65
+ accepts?: string[];
66
+ contentType?: string[];
67
+ operationId?: string;
68
+ documentation?: ApiDocumentation;
69
+ request?: ApiRequest;
70
+ responses: ApiResponse[];
71
+ security: ApiSecurityRequirement[];
72
+ callbacks: ApiCallback[];
73
+ servers: ApiServer[];
74
+ tags: ApiTag[];
75
+ sourceMaps?: ApiDocumentSourceMaps;
76
+ extends: ApiParametrizedTrait[];
77
+ }
78
+
79
+ export interface ApiTag extends IDomainProperty {
80
+ name: string;
81
+ sourceMaps?: ApiDocumentSourceMaps;
82
+ }
83
+
84
+ export interface ApiServer extends IDomainProperty {
85
+ url: string;
86
+ description?: string;
87
+ variables: ApiParameter[];
88
+ sourceMaps?: ApiDocumentSourceMaps;
89
+ protocol?: string;
90
+ protocolVersion?: string;
91
+ security?: ApiSecurityRequirement[];
92
+ }
93
+
94
+ export interface ApiParameter extends IDomainProperty {
95
+ name?: string;
96
+ paramName?: string;
97
+ description?: string;
98
+ required?: boolean;
99
+ deprecated?: boolean;
100
+ allowEmptyValue?: boolean;
101
+ style?: string;
102
+ explode?: boolean;
103
+ allowReserved?: boolean;
104
+ binding?: string;
105
+ schema?: IShapeUnion;
106
+ payloads: ApiPayload[];
107
+ examples: IDataExample[];
108
+ sourceMaps?: ApiDocumentSourceMaps;
109
+ }
110
+
111
+ export interface ApiPayload extends IDomainProperty {
112
+ name?: string;
113
+ mediaType?: string;
114
+ schema?: IShapeUnion;
115
+ examples: IDataExample[];
116
+ // encoding: ApiEncoding[];
117
+ sourceMaps?: ApiDocumentSourceMaps;
118
+ }
119
+
120
+ export interface ApiResponse extends IDomainProperty {
121
+ name?: string;
122
+ description?: string;
123
+ statusCode?: string;
124
+ headers: ApiParameter[];
125
+ payloads: ApiPayload[];
126
+ examples: IDataExample[];
127
+ links: ApiTemplatedLink[];
128
+ sourceMaps?: ApiDocumentSourceMaps;
129
+ }
130
+
131
+ export interface ApiTemplatedLink extends IDomainProperty {
132
+ name?: string;
133
+ description?: string;
134
+ template?: string;
135
+ operationId?: string;
136
+ requestBody?: string;
137
+ mapping: ApiIriTemplateMapping[];
138
+ server?: ApiServer;
139
+ sourceMaps?: ApiDocumentSourceMaps;
140
+ }
141
+
142
+ export interface ApiIriTemplateMapping extends IDomainProperty {
143
+ templateVariable?: string;
144
+ linkExpression?: string;
145
+ sourceMaps?: ApiDocumentSourceMaps;
146
+ }
147
+
148
+ export interface ApiSecurityRequirement extends IDomainProperty {
149
+ name?: string;
150
+ schemes: ApiParametrizedSecurityScheme[];
151
+ sourceMaps?: ApiDocumentSourceMaps;
152
+ }
153
+
154
+ export interface ApiParametrizedSecurityScheme extends IDomainProperty {
155
+ name?: string;
156
+ settings?: ApiSecuritySettingsUnion;
157
+ scheme?: ApiSecurityScheme;
158
+ sourceMaps?: ApiDocumentSourceMaps;
159
+ }
160
+
161
+ export interface ApiSecurityScheme extends IDomainProperty {
162
+ name?: string;
163
+ type?: string;
164
+ displayName?: string;
165
+ description?: string;
166
+ settings?: ApiSecuritySettingsUnion;
167
+ headers: ApiParameter[];
168
+ queryParameters: ApiParameter[];
169
+ responses: ApiResponse[];
170
+ queryString?: IShapeUnion;
171
+ sourceMaps?: ApiDocumentSourceMaps;
172
+ }
173
+
174
+
175
+ export interface ApiSecuritySettings extends IDomainProperty {
176
+ additionalProperties?: IDataNodeUnion;
177
+ sourceMaps?: ApiDocumentSourceMaps;
178
+ }
179
+
180
+ export interface ApiSecurityOAuth1Settings extends ApiSecuritySettings {
181
+ requestTokenUri?: string;
182
+ authorizationUri?: string;
183
+ tokenCredentialsUri?: string;
184
+ signatures: string[];
185
+ sourceMaps?: ApiDocumentSourceMaps;
186
+ }
187
+
188
+ export interface ApiSecurityOAuth2Settings extends ApiSecuritySettings {
189
+ authorizationGrants: string[];
190
+ flows: ApiSecurityOAuth2Flow[];
191
+ sourceMaps?: ApiDocumentSourceMaps;
192
+ }
193
+
194
+ export interface ApiSecurityApiKeySettings extends ApiSecuritySettings {
195
+ name?: string;
196
+ in?: string;
197
+ sourceMaps?: ApiDocumentSourceMaps;
198
+ }
199
+
200
+ export interface ApiSecurityHttpSettings extends ApiSecuritySettings {
201
+ scheme?: string;
202
+ bearerFormat?: string;
203
+ sourceMaps?: ApiDocumentSourceMaps;
204
+ }
205
+
206
+ export interface ApiSecurityOpenIdConnectSettings extends ApiSecuritySettings {
207
+ url?: string;
208
+ sourceMaps?: ApiDocumentSourceMaps;
209
+ }
210
+
211
+ export type ApiSecuritySettingsUnion = ApiSecuritySettings | ApiSecurityOAuth1Settings | ApiSecurityOAuth2Settings | ApiSecurityApiKeySettings | ApiSecurityHttpSettings | ApiSecurityOpenIdConnectSettings;
212
+
213
+ export interface ApiSecurityOAuth2Flow extends IDomainProperty {
214
+ authorizationUri?: string;
215
+ accessTokenUri?: string;
216
+ flow?: string;
217
+ refreshUri?: string;
218
+ scopes: ApiSecurityScope[];
219
+ sourceMaps?: ApiDocumentSourceMaps;
220
+ }
221
+
222
+ export interface ApiSecurityScope extends IDomainProperty {
223
+ name?: string;
224
+ description?: string;
225
+ sourceMaps?: ApiDocumentSourceMaps;
226
+ }
227
+
228
+ export interface ApiRequest extends IDomainProperty {
229
+ description?: string;
230
+ required?: boolean;
231
+ queryParameters: ApiParameter[];
232
+ headers: ApiParameter[];
233
+ payloads: ApiPayload[];
234
+ queryString?: IShapeUnion;
235
+ uriParameters: ApiParameter[];
236
+ cookieParameters: ApiParameter[];
237
+ sourceMaps?: ApiDocumentSourceMaps;
238
+ }
239
+
240
+ export interface ApiCallback extends IDomainProperty {
241
+ name?: string;
242
+ expression?: string;
243
+ endpoint?: ApiEndPoint;
244
+ sourceMaps?: ApiDocumentSourceMaps;
245
+ }
246
+
247
+ /**
248
+ * The definition of the domain extension
249
+ */
250
+ export interface ApiCustomDomainExtension extends IDomainProperty {
251
+ name?: string;
252
+ displayName?: string;
253
+ description?: string;
254
+ domain: string[];
255
+ schema?: IShapeUnion;
256
+ sourceMaps?: ApiDocumentSourceMaps;
257
+ }
258
+
259
+ /**
260
+ * Applies to an object domain extension
261
+ */
262
+ export interface ApiDomainExtension extends IDomainProperty {
263
+ name?: string;
264
+ definedBy?: ApiCustomDomainExtension;
265
+ extension?: IDataNodeUnion;
266
+ sourceMaps?: ApiDocumentSourceMaps;
267
+ }
268
+
269
+ export interface ApiDocumentation extends IDomainProperty {
270
+ url?: string;
271
+ description?: string;
272
+ title?: string;
273
+ sourceMaps?: ApiDocumentSourceMaps;
274
+ }
275
+
276
+ export interface ApiEncoding {
277
+ propertyName?: string;
278
+ contentType?: string;
279
+ style?: string;
280
+ explode?: boolean;
281
+ allowReserved?: boolean;
282
+ headers: ApiParameter[];
283
+ sourceMaps?: ApiDocumentSourceMaps;
284
+ }
285
+
286
+ export interface ApiDocumentSourceMaps {
287
+ id?: string;
288
+ types?: string[];
289
+ synthesizedField?: ApiSynthesizedField[];
290
+ lexical?: ApiSynthesizedField[];
291
+ trackedElement?: ApiSynthesizedField;
292
+ autoGeneratedName?: ApiSynthesizedField[];
293
+ parsedJsonSchema?: ApiSynthesizedField;
294
+ declaredElement?: ApiSynthesizedField;
295
+ }
296
+
297
+ export interface ApiSynthesizedField {
298
+ id: string;
299
+ element?: string;
300
+ value: string;
301
+ }
302
+
303
+ export interface ApiParametrizedDeclaration extends IDomainProperty {
304
+ name?: string;
305
+ target?: ApiAbstractDeclaration;
306
+ variables: ApiVariableValue[];
307
+ sourceMaps?: ApiDocumentSourceMaps;
308
+ }
309
+
310
+ export interface ApiVariableValue extends IDomainProperty {
311
+ name: string;
312
+ value?: IDataNode;
313
+ sourceMaps?: ApiDocumentSourceMaps;
314
+ }
315
+
316
+ export interface ApiAbstractDeclaration extends IDomainProperty {
317
+ name: string;
318
+ description?: string;
319
+ dataNode?: IDataNode;
320
+ variables: string[];
321
+ sourceMaps?: ApiDocumentSourceMaps;
322
+ }
323
+
324
+ export interface ApiParametrizedTrait extends ApiParametrizedDeclaration {}
325
+ export interface ApiParametrizedResourceType extends ApiParametrizedDeclaration {}
326
+
327
+ export interface ShapeProcessingOptions {
328
+ /**
329
+ * This is set when serializing a shape / parameter.
330
+ * It is used to determine which example of the schema to include.
331
+ *
332
+ * When an example has the `tracked-element` in the source maps then this
333
+ * is used to determine the only examples included to the schema.
334
+ *
335
+ * Note, the value of the tracked-element can be a list of IDs separated by coma.
336
+ */
337
+ trackedId?: string;
338
+ }
339
+
340
+ /**
341
+ * The selected type
342
+ *
343
+ * - `server`: server from the AMF model
344
+ * - `custom`: custom base URI value (entered by the user)
345
+ * - `extra`: an application controlled server value selected by the user.
346
+ */
347
+ export type ServerType = 'server' | 'custom' | 'extra';
348
+ export type SelectionType = 'summary' | 'resource' | 'operation' | 'schema' | 'security' | 'documentation';
349
+ /**
350
+ * API navigation layout options.
351
+ *
352
+ * - tree - creates a tree structure from the endpoints list
353
+ * - natural - behavior consistent with the previous version of the navigation. Creates a tree structure based on the previous endpoints.
354
+ * - natural-sort - as `natural` but endpoints are sorted by name.
355
+ * - off (or none) - just like in the API spec.
356
+ */
357
+ export type NavigationLayout = 'tree' | 'natural' | 'natural-sort' | 'off';
358
+
359
+ export interface SelectableMenuItem {
360
+ /**
361
+ * Whether the item is a selected menu item.
362
+ */
363
+ selected?: boolean;
364
+ /**
365
+ * Whether the item has secondary selection.
366
+ * This happens when a "passive" selection has been applied to the item.
367
+ */
368
+ secondarySelected?: boolean;
369
+ }
370
+
371
+ export interface EditableMenuItem {
372
+ /**
373
+ * When set the name editor for the item is enabled.
374
+ */
375
+ nameEditor?: boolean;
376
+ }
377
+
378
+ export interface ApiEndPointListItem {
379
+ /**
380
+ * The domain id of the endpoint.
381
+ * It may be undefined when the endpoint is created "abstract" endpoint vor the visualization.
382
+ */
383
+ id?: string;
384
+ path: string;
385
+ name?: string;
386
+ }
387
+
388
+ export interface ApiEndPointWithOperationsListItem extends ApiEndPointListItem {
389
+ operations: ApiOperationListItem[];
390
+ }
391
+
392
+ export interface ApiOperationListItem {
393
+ id: string;
394
+ method: string;
395
+ name?: string;
396
+ }
397
+
398
+ export interface ApiEndpointsTreeItem extends ApiEndPointWithOperationsListItem {
399
+ label: string;
400
+ indent: number;
401
+ hasShortPath?: boolean;
402
+ hasChildren?: boolean;
403
+ }
404
+
405
+ export interface ApiSecuritySchemeListItem {
406
+ id: string;
407
+ type: string;
408
+ name?: string;
409
+ displayName?: string;
410
+ types: string[];
411
+ }
412
+
413
+ export declare interface ApiNodeShapeListItem {
414
+ id: string;
415
+ name?: string;
416
+ displayName?: string;
417
+ }
418
+
419
+ export interface EndpointItem extends ApiEndpointsTreeItem, SelectableMenuItem, EditableMenuItem {
420
+ operations: OperationItem[];
421
+ }
422
+
423
+ export interface OperationItem extends ApiOperationListItem, SelectableMenuItem, EditableMenuItem {}
424
+ export interface NodeShapeItem extends ApiNodeShapeListItem, SelectableMenuItem, EditableMenuItem {}
425
+ export interface SecurityItem extends ApiSecuritySchemeListItem, SelectableMenuItem {}
426
+ export interface DocumentationItem extends ApiDocumentation, SelectableMenuItem, EditableMenuItem {}
427
+ export type SchemaAddType = 'scalar'|'object'|'file'|'array'|'union';
@@ -0,0 +1,13 @@
1
+ import { IDataNodeUnion } from "./Shapes.js";
2
+
3
+ export interface IDomainProperty {
4
+ id: string;
5
+ types: string[];
6
+ customDomainProperties: ICustomDomainProperty[];
7
+ }
8
+
9
+ export interface ICustomDomainProperty {
10
+ id: string;
11
+ name: string;
12
+ extension: IDataNodeUnion;
13
+ }