@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.
- package/build/browser.d.ts +9 -2
- package/build/browser.js +12 -2
- package/build/browser.js.map +1 -1
- package/build/index.d.ts +9 -2
- package/build/index.js +12 -2
- package/build/index.js.map +1 -1
- package/build/src/amf/AmfMixin.d.ts +395 -0
- package/build/src/amf/AmfMixin.js +1146 -0
- package/build/src/amf/AmfMixin.js.map +1 -0
- package/build/src/amf/AmfSerializer.d.ts +136 -0
- package/build/src/amf/AmfSerializer.js +1913 -0
- package/build/src/amf/AmfSerializer.js.map +1 -0
- package/build/src/amf/AmfShapeGenerator.d.ts +85 -0
- package/build/src/amf/AmfShapeGenerator.js +385 -0
- package/build/src/amf/AmfShapeGenerator.js.map +1 -0
- package/build/src/amf/AmfTypes.d.ts +24 -0
- package/build/src/amf/AmfTypes.js +122 -0
- package/build/src/amf/AmfTypes.js.map +1 -0
- package/build/src/amf/ApiExampleGenerator.d.ts +36 -0
- package/build/src/amf/ApiExampleGenerator.js +109 -0
- package/build/src/amf/ApiExampleGenerator.js.map +1 -0
- package/build/src/amf/ApiMonacoSchemaGenerator.d.ts +67 -0
- package/build/src/amf/ApiMonacoSchemaGenerator.js +243 -0
- package/build/src/amf/ApiMonacoSchemaGenerator.js.map +1 -0
- package/build/src/amf/ApiSchemaGenerator.d.ts +55 -0
- package/build/src/amf/ApiSchemaGenerator.js +94 -0
- package/build/src/amf/ApiSchemaGenerator.js.map +1 -0
- package/build/src/amf/ApiSchemaValues.d.ts +98 -0
- package/build/src/amf/ApiSchemaValues.js +382 -0
- package/build/src/amf/ApiSchemaValues.js.map +1 -0
- package/build/src/amf/Utils.d.ts +41 -0
- package/build/src/amf/Utils.js +176 -0
- package/build/src/amf/Utils.js.map +1 -0
- package/build/src/amf/data-node/DataNodeBase.d.ts +31 -0
- package/build/src/amf/data-node/DataNodeBase.js +77 -0
- package/build/src/amf/data-node/DataNodeBase.js.map +1 -0
- package/build/src/amf/data-node/JsonDataNodeGenerator.d.ts +15 -0
- package/build/src/amf/data-node/JsonDataNodeGenerator.js +24 -0
- package/build/src/amf/data-node/JsonDataNodeGenerator.js.map +1 -0
- package/build/src/amf/data-node/UrlEncodedDataNodeGenerator.d.ts +13 -0
- package/build/src/amf/data-node/UrlEncodedDataNodeGenerator.js +42 -0
- package/build/src/amf/data-node/UrlEncodedDataNodeGenerator.js.map +1 -0
- package/build/src/amf/data-node/XmlDataNodeGenerator.d.ts +21 -0
- package/build/src/amf/data-node/XmlDataNodeGenerator.js +30 -0
- package/build/src/amf/data-node/XmlDataNodeGenerator.js.map +1 -0
- package/build/src/amf/definitions/Amf.d.ts +362 -0
- package/build/src/amf/definitions/Amf.js +2 -0
- package/build/src/amf/definitions/Amf.js.map +1 -0
- package/build/src/amf/definitions/Api.d.ts +381 -0
- package/build/src/amf/definitions/Api.js +2 -0
- package/build/src/amf/definitions/Api.js.map +1 -0
- package/build/src/amf/definitions/Base.d.ts +11 -0
- package/build/src/amf/definitions/Base.js +2 -0
- package/build/src/amf/definitions/Base.js.map +1 -0
- package/build/src/amf/definitions/Namespace.d.ts +311 -0
- package/build/src/amf/definitions/Namespace.js +330 -0
- package/build/src/amf/definitions/Namespace.js.map +1 -0
- package/build/src/amf/definitions/Shapes.d.ts +309 -0
- package/build/src/amf/definitions/Shapes.js +87 -0
- package/build/src/amf/definitions/Shapes.js.map +1 -0
- package/build/src/amf/models/AmfDataNode.d.ts +68 -0
- package/build/src/amf/models/AmfDataNode.js +188 -0
- package/build/src/amf/models/AmfDataNode.js.map +1 -0
- package/build/src/amf/shape/ShapeBase.d.ts +75 -0
- package/build/src/amf/shape/ShapeBase.js +90 -0
- package/build/src/amf/shape/ShapeBase.js.map +1 -0
- package/build/src/amf/shape/ShapeJsonSchemaGenerator.d.ts +46 -0
- package/build/src/amf/shape/ShapeJsonSchemaGenerator.js +406 -0
- package/build/src/amf/shape/ShapeJsonSchemaGenerator.js.map +1 -0
- package/build/src/amf/shape/ShapeXmlSchemaGenerator.d.ts +84 -0
- package/build/src/amf/shape/ShapeXmlSchemaGenerator.js +820 -0
- package/build/src/amf/shape/ShapeXmlSchemaGenerator.js.map +1 -0
- package/build/src/models/Thing.d.ts +17 -0
- package/build/src/models/Thing.js +19 -1
- package/build/src/models/Thing.js.map +1 -1
- package/build/src/models/data/Bindings.d.ts +161 -0
- package/build/src/models/data/Bindings.js +2 -0
- package/build/src/models/data/Bindings.js.map +1 -0
- package/build/src/models/data/DataAssociation.d.ts +135 -14
- package/build/src/models/data/DataAssociation.js +154 -21
- package/build/src/models/data/DataAssociation.js.map +1 -1
- package/build/src/models/data/DataAssociationSchema.d.ts +36 -0
- package/build/src/models/data/DataEntity.d.ts +76 -4
- package/build/src/models/data/DataEntity.js +136 -9
- package/build/src/models/data/DataEntity.js.map +1 -1
- package/build/src/models/data/DataFile.d.ts +3 -0
- package/build/src/models/data/DataFile.js +3 -0
- package/build/src/models/data/DataFile.js.map +1 -1
- package/build/src/models/data/DataModel.d.ts +1 -1
- package/build/src/models/data/DataModel.js.map +1 -1
- package/build/src/models/data/DataNamespace.d.ts +6 -0
- package/build/src/models/data/DataNamespace.js +11 -1
- package/build/src/models/data/DataNamespace.js.map +1 -1
- package/build/src/models/data/DataProperty.d.ts +131 -36
- package/build/src/models/data/DataProperty.js +200 -17
- package/build/src/models/data/DataProperty.js.map +1 -1
- package/data/apis/oas-date/oas-date.yaml +28 -0
- package/data/apis/oas-types/oas-types.yaml +159 -0
- package/data/apis/oas-unions/oas-unions.yaml +75 -0
- package/data/apis/raml-date/raml-date.raml +28 -0
- package/data/apis/recursive/recursive.raml +14 -0
- package/data/apis/schema-api/examples/person.json +14 -0
- package/data/apis/schema-api/examples/person.raml +14 -0
- package/data/apis/schema-api/examples/person.url.encoded +1 -0
- package/data/apis/schema-api/examples/person.xml +14 -0
- package/data/apis/schema-api/library/demo-types.raml +43 -0
- package/data/apis/schema-api/schema-api.raml +644 -0
- package/data/apis/schema-api/schemas/person.json +104 -0
- package/data/apis/schema-api/schemas/person.xsd +26 -0
- package/data/apis/schema-api/types/DemoPerson.raml +67 -0
- package/data/model.js +106 -0
- package/data/models/oas-date.json +637 -0
- package/data/models/oas-types.json +5352 -0
- package/data/models/oas-unions.json +1881 -0
- package/data/models/raml-date.json +1096 -0
- package/data/models/recursive.json +610 -0
- package/data/models/schema-api.json +37319 -0
- package/package.json +9 -6
- package/src/amf/AmfMixin.ts +1623 -0
- package/src/amf/AmfSerializer.ts +2028 -0
- package/src/amf/AmfShapeGenerator.ts +400 -0
- package/src/amf/AmfTypes.ts +126 -0
- package/src/amf/ApiExampleGenerator.ts +112 -0
- package/src/amf/ApiMonacoSchemaGenerator.ts +296 -0
- package/src/amf/ApiSchemaGenerator.ts +108 -0
- package/src/amf/ApiSchemaValues.ts +411 -0
- package/src/amf/Utils.ts +182 -0
- package/src/amf/data-node/DataNodeBase.ts +81 -0
- package/src/amf/data-node/JsonDataNodeGenerator.ts +26 -0
- package/src/amf/data-node/README.md +3 -0
- package/src/amf/data-node/UrlEncodedDataNodeGenerator.ts +43 -0
- package/src/amf/data-node/XmlDataNodeGenerator.ts +38 -0
- package/src/amf/definitions/Amf.ts +443 -0
- package/src/amf/definitions/Api.ts +427 -0
- package/src/amf/definitions/Base.ts +13 -0
- package/src/amf/definitions/Namespace.ts +341 -0
- package/src/amf/definitions/Shapes.ts +414 -0
- package/src/amf/models/AmfDataNode.ts +200 -0
- package/src/amf/shape/README.md +4 -0
- package/src/amf/shape/ShapeBase.ts +160 -0
- package/src/amf/shape/ShapeJsonSchemaGenerator.ts +422 -0
- package/src/amf/shape/ShapeXmlSchemaGenerator.ts +876 -0
- package/src/models/Thing.ts +25 -1
- package/src/models/data/Bindings.ts +186 -0
- package/src/models/data/DataAssociation.ts +226 -29
- package/src/models/data/DataAssociationSchema.ts +38 -0
- package/src/models/data/DataEntity.ts +170 -13
- package/src/models/data/DataFile.ts +3 -0
- package/src/models/data/DataModel.ts +1 -1
- package/src/models/data/DataNamespace.ts +16 -1
- package/src/models/data/DataProperty.ts +250 -47
- package/build/src/models/data/DataPropertySchema.d.ts +0 -125
- package/build/src/models/data/DataPropertySchema.js +0 -33
- package/build/src/models/data/DataPropertySchema.js.map +0 -1
- package/src/models/data/DataPropertySchema.ts +0 -156
package/build/browser.d.ts
CHANGED
|
@@ -51,8 +51,15 @@ export { DataEntity, IDataEntity, Kind as DataEntityKind } from './src/models/da
|
|
|
51
51
|
export { DataFile, IDataFile, Kind as DataFileKind } from './src/models/data/DataFile.js';
|
|
52
52
|
export { DataModel, IDataModel, Kind as DataModelKind } from './src/models/data/DataModel.js';
|
|
53
53
|
export { DataNamespace, IDataNamespace, Kind as DataNamespaceKind, DataItem, IDataItem } from './src/models/data/DataNamespace.js';
|
|
54
|
-
export { DataProperty, IDataProperty, Kind as DataPropertyKind, DataPropertyType, DataPropertyTypes, DataPropertyList,
|
|
55
|
-
export {
|
|
54
|
+
export { DataProperty, IDataProperty, Kind as DataPropertyKind, DataPropertyType, DataPropertyTypes, DataPropertyList, DateFormat, DateFormats, DateFormatList } from './src/models/data/DataProperty.js';
|
|
55
|
+
export { AmfNamespace } from './src/amf/definitions/Namespace.js';
|
|
56
|
+
export { ApiExampleGenerator } from './src/amf/ApiExampleGenerator.js';
|
|
57
|
+
export { ApiMonacoSchemaGenerator } from './src/amf/ApiMonacoSchemaGenerator.js';
|
|
58
|
+
export { ApiSchemaValues } from './src/amf/ApiSchemaValues.js';
|
|
59
|
+
export { ApiSchemaGenerator } from './src/amf/ApiSchemaGenerator.js';
|
|
60
|
+
export { AmfShapeGenerator } from './src/amf/AmfShapeGenerator.js';
|
|
61
|
+
export { AmfSerializer } from './src/amf/AmfSerializer.js';
|
|
62
|
+
export { AmfMixin } from './src/amf/AmfMixin.js';
|
|
56
63
|
export { PayloadSerializer, ISafePayload, IMultipartBody, Payload, DeserializedPayload, IBlobMeta, IFileMeta } from './src/lib/transformers/PayloadSerializer.js';
|
|
57
64
|
export { ILogger, Logger } from './src/lib/logging/Logger.js';
|
|
58
65
|
export { DummyLogger } from './src/lib/logging/DummyLogger.js';
|
package/build/browser.js
CHANGED
|
@@ -47,8 +47,18 @@ export { DataEntity, Kind as DataEntityKind } from './src/models/data/DataEntity
|
|
|
47
47
|
export { DataFile, Kind as DataFileKind } from './src/models/data/DataFile.js';
|
|
48
48
|
export { DataModel, Kind as DataModelKind } from './src/models/data/DataModel.js';
|
|
49
49
|
export { DataNamespace, Kind as DataNamespaceKind, DataItem } from './src/models/data/DataNamespace.js';
|
|
50
|
-
export { DataProperty, Kind as DataPropertyKind, DataPropertyTypes, DataPropertyList } from './src/models/data/DataProperty.js';
|
|
51
|
-
|
|
50
|
+
export { DataProperty, Kind as DataPropertyKind, DataPropertyTypes, DataPropertyList, DateFormats, DateFormatList } from './src/models/data/DataProperty.js';
|
|
51
|
+
//
|
|
52
|
+
// AMF
|
|
53
|
+
//
|
|
54
|
+
export { AmfNamespace } from './src/amf/definitions/Namespace.js';
|
|
55
|
+
export { ApiExampleGenerator } from './src/amf/ApiExampleGenerator.js';
|
|
56
|
+
export { ApiMonacoSchemaGenerator } from './src/amf/ApiMonacoSchemaGenerator.js';
|
|
57
|
+
export { ApiSchemaValues } from './src/amf/ApiSchemaValues.js';
|
|
58
|
+
export { ApiSchemaGenerator } from './src/amf/ApiSchemaGenerator.js';
|
|
59
|
+
export { AmfShapeGenerator } from './src/amf/AmfShapeGenerator.js';
|
|
60
|
+
export { AmfSerializer } from './src/amf/AmfSerializer.js';
|
|
61
|
+
export { AmfMixin } from './src/amf/AmfMixin.js';
|
|
52
62
|
//
|
|
53
63
|
// Libs
|
|
54
64
|
//
|
package/build/browser.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"browser.js","sourceRoot":"","sources":["../browser.ts"],"names":[],"mappings":"AAAA,wDAAwD;AAMxD,OAAO,EAAE,QAAQ,EAAa,IAAI,IAAI,YAAY,EAAE,MAAM,0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M,EAAW,IAAI,IAAI,UAAU,EAAE,MAAM,gCAAgC,CAAC;AACrF,OAAO,EAAE,SAAS,EAAc,IAAI,IAAI,aAAa,EAAe,MAAM,mCAAmC,CAAC;AAC9G,OAAO,EAAE,cAAc,EAAmB,IAAI,IAAI,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AACrH,OAAO,KAAK,WAAW,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,QAAQ,EAAa,MAAM,2CAA2C,CAAC;AAChF,OAAO,EAAE,kBAAkB,EAAuB,IAAI,IAAI,sBAAsB,EAAE,MAAM,qDAAqD,CAAC;AAC9I,OAAO,EAAE,eAAe,EAAoB,IAAI,IAAI,mBAAmB,EAAE,MAAM,kDAAkD,CAAC;AAClI,OAAO,EAAE,iBAAiB,EAAsB,IAAI,IAAI,qBAAqB,EAAE,MAAM,oDAAoD,CAAC;AAE1I,GAAG;AACH,0BAA0B;AAC1B,GAAG;AACH,OAAO,EAAE,4BAA4B,EAAE,MAAM,2DAA2D,CAAC;AACzG,OAAO,EAAE,sBAAsB,EAAE,MAAM,qDAAqD,CAAC;AAC7F,OAAO,EAAE,mBAAmB,EAAE,MAAM,kDAAkD,CAAC"}
|
package/build/index.d.ts
CHANGED
|
@@ -51,8 +51,15 @@ export { DataEntity, IDataEntity, Kind as DataEntityKind } from './src/models/da
|
|
|
51
51
|
export { DataFile, IDataFile, Kind as DataFileKind } from './src/models/data/DataFile.js';
|
|
52
52
|
export { DataModel, IDataModel, Kind as DataModelKind } from './src/models/data/DataModel.js';
|
|
53
53
|
export { DataNamespace, IDataNamespace, Kind as DataNamespaceKind, DataItem, IDataItem } from './src/models/data/DataNamespace.js';
|
|
54
|
-
export { DataProperty, IDataProperty, Kind as DataPropertyKind, DataPropertyType, DataPropertyTypes, DataPropertyList,
|
|
55
|
-
export {
|
|
54
|
+
export { DataProperty, IDataProperty, Kind as DataPropertyKind, DataPropertyType, DataPropertyTypes, DataPropertyList, DateFormat, DateFormats, DateFormatList } from './src/models/data/DataProperty.js';
|
|
55
|
+
export { AmfNamespace } from './src/amf/definitions/Namespace.js';
|
|
56
|
+
export { ApiExampleGenerator } from './src/amf/ApiExampleGenerator.js';
|
|
57
|
+
export { ApiMonacoSchemaGenerator } from './src/amf/ApiMonacoSchemaGenerator.js';
|
|
58
|
+
export { ApiSchemaValues } from './src/amf/ApiSchemaValues.js';
|
|
59
|
+
export { ApiSchemaGenerator } from './src/amf/ApiSchemaGenerator.js';
|
|
60
|
+
export { AmfShapeGenerator } from './src/amf/AmfShapeGenerator.js';
|
|
61
|
+
export { AmfSerializer } from './src/amf/AmfSerializer.js';
|
|
62
|
+
export { AmfMixin } from './src/amf/AmfMixin.js';
|
|
56
63
|
export { PayloadSerializer, ISafePayload, IMultipartBody, Payload, DeserializedPayload, IBlobMeta, IFileMeta } from './src/lib/transformers/PayloadSerializer.js';
|
|
57
64
|
export { ILogger, Logger } from './src/lib/logging/Logger.js';
|
|
58
65
|
export { DummyLogger } from './src/lib/logging/DummyLogger.js';
|
package/build/index.js
CHANGED
|
@@ -47,8 +47,18 @@ export { DataEntity, Kind as DataEntityKind } from './src/models/data/DataEntity
|
|
|
47
47
|
export { DataFile, Kind as DataFileKind } from './src/models/data/DataFile.js';
|
|
48
48
|
export { DataModel, Kind as DataModelKind } from './src/models/data/DataModel.js';
|
|
49
49
|
export { DataNamespace, Kind as DataNamespaceKind, DataItem } from './src/models/data/DataNamespace.js';
|
|
50
|
-
export { DataProperty, Kind as DataPropertyKind, DataPropertyTypes, DataPropertyList } from './src/models/data/DataProperty.js';
|
|
51
|
-
|
|
50
|
+
export { DataProperty, Kind as DataPropertyKind, DataPropertyTypes, DataPropertyList, DateFormats, DateFormatList } from './src/models/data/DataProperty.js';
|
|
51
|
+
//
|
|
52
|
+
// AMF
|
|
53
|
+
//
|
|
54
|
+
export { AmfNamespace } from './src/amf/definitions/Namespace.js';
|
|
55
|
+
export { ApiExampleGenerator } from './src/amf/ApiExampleGenerator.js';
|
|
56
|
+
export { ApiMonacoSchemaGenerator } from './src/amf/ApiMonacoSchemaGenerator.js';
|
|
57
|
+
export { ApiSchemaValues } from './src/amf/ApiSchemaValues.js';
|
|
58
|
+
export { ApiSchemaGenerator } from './src/amf/ApiSchemaGenerator.js';
|
|
59
|
+
export { AmfShapeGenerator } from './src/amf/AmfShapeGenerator.js';
|
|
60
|
+
export { AmfSerializer } from './src/amf/AmfSerializer.js';
|
|
61
|
+
export { AmfMixin } from './src/amf/AmfMixin.js';
|
|
52
62
|
//
|
|
53
63
|
// Libs
|
|
54
64
|
//
|
package/build/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,2DAA2D;AAM3D,OAAO,EAAE,QAAQ,EAAa,IAAI,IAAI,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAErF,OAAO,EAAE,iBAAiB,EAAsB,MAAM,mCAAmC,CAAC;AAC1F,OAAO,EAAE,WAAW,EAA8L,IAAI,IAAI,eAAe,EAAE,MAAM,mCAAmC,CAAC;AACrR,OAAO,EAAE,WAAW,EAAgB,IAAI,IAAI,eAAe,EAAE,MAAM,6BAA6B,CAAC;AACjG,OAAO,EAAE,aAAa,EAAkB,MAAM,+BAA+B,CAAC;AAC9E,OAAO,EAAa,QAAQ,EAAE,IAAI,IAAI,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACrF,OAAO,EAAe,UAAU,EAA0C,MAAM,4BAA4B,CAAC;AAC7G,OAAO,EAAgB,WAAW,EAAE,IAAI,IAAI,eAAe,EAAuB,MAAM,6BAA6B,CAAC;AACtH,OAAO,EAAE,WAAW,EAAgB,IAAI,IAAI,eAAe,EAA0O,MAAM,6BAA6B,CAAC;AACzU,OAAO,EAAgB,WAAW,EAAE,IAAI,IAAI,eAAe,EAAE,MAAM,6BAA6B,CAAC;AACjG,OAAO,EAAE,YAAY,EAAiB,IAAI,IAAI,gBAAgB,EAAE,MAAM,8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C;AACrH,OAAO,KAAK,WAAW,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,QAAQ,EAAa,MAAM,2CAA2C,CAAC;AAChF,OAAO,EAAE,kBAAkB,EAAuB,IAAI,IAAI,sBAAsB,EAAE,MAAM,qDAAqD,CAAC;AAC9I,OAAO,EAAoB,eAAe,EAAE,IAAI,IAAI,mBAAmB,EAAE,MAAM,kDAAkD,CAAC;AAClI,OAAO,EAAsB,iBAAiB,EAAE,IAAI,IAAI,qBAAqB,EAAE,MAAM,oDAAoD,CAAC;AAC1I,OAAO,EAAE,iBAAiB,EAAE,MAAM,4CAA4C,CAAC;AAE/E,GAAG;AACH,kBAAkB;AAClB,GAAG;AACH,OAAO,EAAE,eAAe,EAAE,kBAAkB,EAAwF,MAAM,0CAA0C,CAAC;AACrL,OAAO,KAAK,oBAAoB,MAAO,yCAAyC,CAAC;AACjF,OAAO,KAAK,0BAA0B,MAAO,+CAA+C,CAAC;AAC7F,GAAG;AACH,0BAA0B;AAC1B,GAAG;AACH,OAAO,EAAE,4BAA4B,EAAE,MAAM,2DAA2D,CAAC;AACzG,OAAO,EAAE,sBAAsB,EAAE,MAAM,qDAAqD,CAAC;AAC7F,OAAO,EAAE,mBAAmB,EAAE,MAAM,kDAAkD,CAAC"}
|
|
@@ -0,0 +1,395 @@
|
|
|
1
|
+
import { AmfDocument, DomainElement, EndPoint, SecurityScheme, Shape, WebApi, Operation, AsyncApi, Server, Request } from './definitions/Amf.js';
|
|
2
|
+
export declare const expandKey: unique symbol;
|
|
3
|
+
export declare const findAmfType: unique symbol;
|
|
4
|
+
export declare const findReferenceObject: unique symbol;
|
|
5
|
+
export declare const getArrayItems: unique symbol;
|
|
6
|
+
export declare const computeReferenceSecurity: unique symbol;
|
|
7
|
+
export interface ServersQueryOptions {
|
|
8
|
+
/**
|
|
9
|
+
* An EndPoint to look for the servers in
|
|
10
|
+
*/
|
|
11
|
+
endpointId?: string;
|
|
12
|
+
/**
|
|
13
|
+
* An Operation to look for the servers in
|
|
14
|
+
*/
|
|
15
|
+
methodId?: string;
|
|
16
|
+
}
|
|
17
|
+
export interface ServerQueryOptions {
|
|
18
|
+
/**
|
|
19
|
+
* An EndPoint to look for the servers in. Required if Operation is provided
|
|
20
|
+
*/
|
|
21
|
+
endpointId?: string;
|
|
22
|
+
/**
|
|
23
|
+
* An Operation to look for the servers in
|
|
24
|
+
*/
|
|
25
|
+
methodId?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Optional selected server id
|
|
28
|
+
*/
|
|
29
|
+
id?: string;
|
|
30
|
+
}
|
|
31
|
+
declare type Constructor<T = {}> = new (...args: any[]) => T;
|
|
32
|
+
export declare class AmfMixinInterface {
|
|
33
|
+
amf?: AmfDocument;
|
|
34
|
+
/**
|
|
35
|
+
* This is an abstract method to be implemented by the components.
|
|
36
|
+
* If, instead, the component uses `amf` setter you must use `super.amf` to
|
|
37
|
+
* set the value.
|
|
38
|
+
* @param amf Current AMF model. Can be undefined.
|
|
39
|
+
*/
|
|
40
|
+
_amfChanged(amf?: AmfDocument): void;
|
|
41
|
+
/**
|
|
42
|
+
* Expands flattened AMF model
|
|
43
|
+
*/
|
|
44
|
+
_expand(amf: any): any;
|
|
45
|
+
/**
|
|
46
|
+
* Returns compact model key for given value.
|
|
47
|
+
* @param property AMF original property
|
|
48
|
+
* @param context A context to use. If not set, it looks for the context of the passed model
|
|
49
|
+
* @returns Compact model property name or the same value if value not found in the context.
|
|
50
|
+
*/
|
|
51
|
+
_getAmfKey(property?: string, context?: Record<string, string>): string | undefined;
|
|
52
|
+
/**
|
|
53
|
+
* Ensures that the model is AMF object.
|
|
54
|
+
*
|
|
55
|
+
* @param amf AMF json/ld model
|
|
56
|
+
* @returns The API spec
|
|
57
|
+
*/
|
|
58
|
+
_ensureAmfModel(amf: any): AmfDocument | undefined;
|
|
59
|
+
/**
|
|
60
|
+
* Ensures that the value is an array.
|
|
61
|
+
* It returns undefined when there's no value.
|
|
62
|
+
* It returns the same array if the value is already an array.
|
|
63
|
+
* It returns new array of the item is not an array.
|
|
64
|
+
*
|
|
65
|
+
* @param value An item to test
|
|
66
|
+
*/
|
|
67
|
+
_ensureArray(value?: any): unknown[] | undefined;
|
|
68
|
+
/**
|
|
69
|
+
* Gets a single scalar value from a model.
|
|
70
|
+
* @param model Amf model to extract the value from.
|
|
71
|
+
* @param untrustedKey Model key to search for the value
|
|
72
|
+
* @param context A context to use. If not set, it looks for the context of the passed model
|
|
73
|
+
* @returns Value for key
|
|
74
|
+
*/
|
|
75
|
+
_getValue(model: DomainElement, untrustedKey: string, context?: Record<string, string>): string | number | boolean | undefined | null;
|
|
76
|
+
/**
|
|
77
|
+
* Gets values from a model as an array of `@value` properties.
|
|
78
|
+
* @param model Amf model to extract the value from.
|
|
79
|
+
* @param untrustedKey Model key to search for the value
|
|
80
|
+
* @param context A context to use. If not set, it looks for the context of the passed model
|
|
81
|
+
* @returns The value for key
|
|
82
|
+
*/
|
|
83
|
+
_getValueArray(model: DomainElement, untrustedKey: string, context?: Record<string, string>): (string | number | boolean | null)[] | undefined;
|
|
84
|
+
/**
|
|
85
|
+
* Reads an array from the model.
|
|
86
|
+
*
|
|
87
|
+
* @param model Amf model to extract the value from.
|
|
88
|
+
* @param untrustedKey Model key to search for the value
|
|
89
|
+
* @param context A context to use. If not set, it looks for the context of the passed model
|
|
90
|
+
* @returns Value for the key
|
|
91
|
+
*/
|
|
92
|
+
[getArrayItems](model?: DomainElement, untrustedKey?: string, context?: Record<string, string>): DomainElement[] | undefined;
|
|
93
|
+
/**
|
|
94
|
+
* Reads the value of the `@id` property.
|
|
95
|
+
* @param model Amf model to extract the value from.
|
|
96
|
+
* @param untrustedKey Model key to search for the @id
|
|
97
|
+
* @param context A context to use. If not set, it looks for the context of the passed model
|
|
98
|
+
*/
|
|
99
|
+
_getLinkValue(model: DomainElement, untrustedKey: string, context?: Record<string, string>): string | undefined;
|
|
100
|
+
/**
|
|
101
|
+
* Reads the list of value for the `@id` property.
|
|
102
|
+
* @param model Amf model to extract the value from.
|
|
103
|
+
* @param untrustedKey Model key to search for the @id
|
|
104
|
+
* @param context A context to use. If not set, it looks for the context of the passed model
|
|
105
|
+
*/
|
|
106
|
+
_getLinkValues(model: DomainElement, untrustedKey: string, context?: Record<string, string>): string[] | undefined;
|
|
107
|
+
/**
|
|
108
|
+
* Checks if a model has a type.
|
|
109
|
+
* @param model Model to test
|
|
110
|
+
* @param type Type name
|
|
111
|
+
* @param context A context to use. If not set, it looks for the context of the passed model
|
|
112
|
+
* @returns True if model has a type.
|
|
113
|
+
*/
|
|
114
|
+
_hasType(model?: DomainElement, type?: string, context?: Record<string, string>): boolean;
|
|
115
|
+
/**
|
|
116
|
+
* Checks if a shape has a property.
|
|
117
|
+
* @param shape The shape to test
|
|
118
|
+
* @param untrustedKey Property name to test
|
|
119
|
+
* @param context A context to use. If not set, it looks for the context of the passed model
|
|
120
|
+
*/
|
|
121
|
+
_hasProperty(shape: DomainElement, untrustedKey: string, context?: Record<string, string>): boolean;
|
|
122
|
+
/**
|
|
123
|
+
* Computes array value of a property in a model (shape).
|
|
124
|
+
*
|
|
125
|
+
* @param shape AMF shape object
|
|
126
|
+
* @param untrustedKey Property name
|
|
127
|
+
* @param context A context to use. If not set, it looks for the context of the passed model
|
|
128
|
+
*/
|
|
129
|
+
_computePropertyArray(shape?: DomainElement, untrustedKey?: string, context?: Record<string, string>): (string | number | boolean | null | Object)[] | undefined;
|
|
130
|
+
/**
|
|
131
|
+
* Computes API version from the AMF model.
|
|
132
|
+
*
|
|
133
|
+
* @param amf
|
|
134
|
+
* @param context A context to use. If not set, it looks for the context of the passed model
|
|
135
|
+
*/
|
|
136
|
+
_computeApiVersion(amf?: AmfDocument, context?: Record<string, string>): string | undefined;
|
|
137
|
+
/**
|
|
138
|
+
* Computes model's `encodes` property.
|
|
139
|
+
*
|
|
140
|
+
* @param model AMF data model
|
|
141
|
+
* @param context A context to use. If not set, it looks for the context of the passed model
|
|
142
|
+
* @returns List of encodes
|
|
143
|
+
*/
|
|
144
|
+
_computeEncodes(model?: AmfDocument, context?: Record<string, string>): DomainElement | undefined;
|
|
145
|
+
/**
|
|
146
|
+
* Computes list of declarations in the AMF api model.
|
|
147
|
+
*
|
|
148
|
+
* @param model AMF json/ld model for an API
|
|
149
|
+
* @param context A context to use. If not set, it looks for the context of the passed model
|
|
150
|
+
* @returns List of declarations
|
|
151
|
+
*/
|
|
152
|
+
_computeDeclares(model?: AmfDocument, context?: Record<string, string>): DomainElement[] | undefined;
|
|
153
|
+
/**
|
|
154
|
+
* Computes list of references in the AMF api model.
|
|
155
|
+
*
|
|
156
|
+
* @param model AMF json/ld model for an API
|
|
157
|
+
* @param context A context to use. If not set, it looks for the context of the passed model
|
|
158
|
+
* @returns List of declarations
|
|
159
|
+
*/
|
|
160
|
+
_computeReferences(model?: AmfDocument, context?: Record<string, string>): DomainElement[] | undefined;
|
|
161
|
+
/**
|
|
162
|
+
* Computes AMF's `http://schema.org/WebAPI` model
|
|
163
|
+
*
|
|
164
|
+
* @param model AMF json/ld model for an API
|
|
165
|
+
* @param context A context to use. If not set, it looks for the context of the passed model
|
|
166
|
+
* @returns Web API declaration.
|
|
167
|
+
*/
|
|
168
|
+
_computeWebApi(model?: AmfDocument, context?: Record<string, string>): WebApi | undefined;
|
|
169
|
+
/**
|
|
170
|
+
* Computes AMF's `http://schema.org/API` model
|
|
171
|
+
*
|
|
172
|
+
* @param model AMF json/ld model for an API
|
|
173
|
+
* @param context A context to use. If not set, it looks for the context of the passed model
|
|
174
|
+
* @returns API declaration.
|
|
175
|
+
*/
|
|
176
|
+
_computeApi(model?: AmfDocument, context?: Record<string, string>): AsyncApi | WebApi | undefined;
|
|
177
|
+
/**
|
|
178
|
+
* Returns whether an AMF node is a WebAPI node
|
|
179
|
+
*
|
|
180
|
+
* @param model AMF json/ld model for an API
|
|
181
|
+
* @param context A context to use. If not set, it looks for the context of the passed model
|
|
182
|
+
*/
|
|
183
|
+
_isWebAPI(model?: AmfDocument, context?: Record<string, string>): boolean;
|
|
184
|
+
/**
|
|
185
|
+
* Returns whether an AMF node is an AsyncAPI node
|
|
186
|
+
*
|
|
187
|
+
* @param model AMF json/ld model for an API
|
|
188
|
+
* @param context A context to use. If not set, it looks for the context of the passed model
|
|
189
|
+
*/
|
|
190
|
+
_isAsyncAPI(model?: AmfDocument, context?: Record<string, string>): boolean;
|
|
191
|
+
/**
|
|
192
|
+
* Returns whether an AMF node is an API node
|
|
193
|
+
*
|
|
194
|
+
* @param model AMF json/ld model for an API
|
|
195
|
+
* @param context A context to use. If not set, it looks for the context of the passed model
|
|
196
|
+
*/
|
|
197
|
+
_isAPI(model?: AmfDocument, context?: Record<string, string>): boolean;
|
|
198
|
+
/**
|
|
199
|
+
* Determines whether a partial model is valid for reading servers from
|
|
200
|
+
* Current valid values:
|
|
201
|
+
* - Operation
|
|
202
|
+
* - Endpoint
|
|
203
|
+
* @param model The partial model to evaluate
|
|
204
|
+
* @param context A context to use. If not set, it looks for the context of the passed model
|
|
205
|
+
* @returns Whether the model's type is part of the array of valid node types from which
|
|
206
|
+
* to read servers
|
|
207
|
+
* @private
|
|
208
|
+
*/
|
|
209
|
+
_isValidServerPartial(model: DomainElement, context?: Record<string, string>): boolean;
|
|
210
|
+
/**
|
|
211
|
+
* @param options Server query options
|
|
212
|
+
* @param context A context to use. If not set, it looks for the context of the passed model
|
|
213
|
+
* @returns List of servers for method, if defined, or endpoint, if defined, or root level
|
|
214
|
+
*/
|
|
215
|
+
_getServers(options?: ServersQueryOptions, context?: Record<string, string>): Server[] | undefined;
|
|
216
|
+
/**
|
|
217
|
+
* Computes value for the `expects` property.
|
|
218
|
+
*
|
|
219
|
+
* @param method AMF `supportedOperation` model
|
|
220
|
+
* @param context A context to use. If not set, it looks for the context of the passed model
|
|
221
|
+
*/
|
|
222
|
+
_computeExpects(method?: Operation, context?: Record<string, string>): Request | undefined;
|
|
223
|
+
/**
|
|
224
|
+
* Computes list of endpoints from a WebApi model.
|
|
225
|
+
* @param webApi
|
|
226
|
+
* @param context A context to use. If not set, it looks for the context of the passed model
|
|
227
|
+
* @returns An array of endpoints.
|
|
228
|
+
*/
|
|
229
|
+
_computeEndpoints(webApi?: WebApi, context?: Record<string, string>): EndPoint[] | undefined;
|
|
230
|
+
/**
|
|
231
|
+
* Computes model for an endpoint documentation.
|
|
232
|
+
*
|
|
233
|
+
* @param webApi Current value of `webApi` property
|
|
234
|
+
* @param id Selected shape ID
|
|
235
|
+
* @param context A context to use. If not set, it looks for the context of the passed model
|
|
236
|
+
* @returns An endpoint definition
|
|
237
|
+
*/
|
|
238
|
+
_computeEndpointModel(webApi?: WebApi, id?: string, context?: Record<string, string>): EndPoint | undefined;
|
|
239
|
+
/**
|
|
240
|
+
* Computes method for the method documentation.
|
|
241
|
+
*
|
|
242
|
+
* @param webApi Current value of `webApi` property
|
|
243
|
+
* @param selected Selected shape
|
|
244
|
+
* @param context A context to use. If not set, it looks for the context of the passed model
|
|
245
|
+
* @returns A method definition
|
|
246
|
+
*/
|
|
247
|
+
_computeMethodModel(webApi?: WebApi, selected?: string, context?: Record<string, string>): Operation | undefined;
|
|
248
|
+
/**
|
|
249
|
+
* Computes an endpoint for a method.
|
|
250
|
+
* @param webApi The WebApi AMF model
|
|
251
|
+
* @param methodId Method id
|
|
252
|
+
* @param context A context to use. If not set, it looks for the context of the passed model
|
|
253
|
+
* @returns An endpoint model of undefined.
|
|
254
|
+
*/
|
|
255
|
+
_computeMethodEndpoint(webApi?: WebApi, methodId?: string, context?: Record<string, string>): EndPoint | undefined;
|
|
256
|
+
/**
|
|
257
|
+
* Computes a list of methods for an endpoint that contains a method with
|
|
258
|
+
* given id.
|
|
259
|
+
*
|
|
260
|
+
* @param webApi WebApi model
|
|
261
|
+
* @param methodId Method id.
|
|
262
|
+
* @param context A context to use. If not set, it looks for the context of the passed model
|
|
263
|
+
* @returns A list of sibling methods or undefined.
|
|
264
|
+
*/
|
|
265
|
+
__computeMethodsListForMethod(webApi?: WebApi, methodId?: string, context?: Record<string, string>): Operation[] | undefined;
|
|
266
|
+
/**
|
|
267
|
+
* Computes a type documentation model.
|
|
268
|
+
*
|
|
269
|
+
* @param declares Current value of `declares` property
|
|
270
|
+
* @param references Current value of `references` property
|
|
271
|
+
* @param selected Selected shape
|
|
272
|
+
* @param context A context to use. If not set, it looks for the context of the passed model
|
|
273
|
+
* @returns A type definition
|
|
274
|
+
*/
|
|
275
|
+
_computeType(declares?: DomainElement[], references?: DomainElement[], selected?: string, context?: Record<string, string>): Shape | undefined;
|
|
276
|
+
/**
|
|
277
|
+
* Finds a type in the model declares and references.
|
|
278
|
+
* @param domainId The domain id of the type (AMF's shape).
|
|
279
|
+
* @param context A context to use. If not set, it looks for the context of the passed model
|
|
280
|
+
* @returns The AMF shape or undefined when not found.
|
|
281
|
+
*/
|
|
282
|
+
[findAmfType](domainId?: string, context?: Record<string, string>): Shape | undefined;
|
|
283
|
+
/**
|
|
284
|
+
* Searches for an object in model's references list.
|
|
285
|
+
* It does not resolve the object (useful for handling links correctly).
|
|
286
|
+
*
|
|
287
|
+
* @param domainId The domain of the object to find in the references.
|
|
288
|
+
* @param context A context to use. If not set, it looks for the context of the passed model
|
|
289
|
+
* @returns The domain object or undefined.
|
|
290
|
+
*/
|
|
291
|
+
[findReferenceObject](domainId: string, context?: Record<string, string>): DomainElement | undefined;
|
|
292
|
+
/**
|
|
293
|
+
* Computes a type model from a reference (library for example).
|
|
294
|
+
* @param reference AMF model for a reference to extract the data from
|
|
295
|
+
* @param selected Node ID to look for
|
|
296
|
+
* @param context A context to use. If not set, it looks for the context of the passed model
|
|
297
|
+
* @returns Type definition or undefined if not found.
|
|
298
|
+
*/
|
|
299
|
+
_computeReferenceType(reference?: DomainElement, selected?: string, context?: Record<string, string>): Shape | undefined;
|
|
300
|
+
/**
|
|
301
|
+
* Computes a documentation model.
|
|
302
|
+
*
|
|
303
|
+
* @param webApi Current value of `webApi` property
|
|
304
|
+
* @param selected Selected shape
|
|
305
|
+
* @param context A context to use. If not set, it looks for the context of the passed model
|
|
306
|
+
*/
|
|
307
|
+
_computeDocument(webApi?: DomainElement, selected?: string, context?: Record<string, string>): DomainElement | undefined;
|
|
308
|
+
/**
|
|
309
|
+
* Resolves a reference to an external fragment.
|
|
310
|
+
*
|
|
311
|
+
* @param shape A shape to resolve
|
|
312
|
+
* @param context A context to use. If not set, it looks for the context of the passed model
|
|
313
|
+
* @returns Resolved shape.
|
|
314
|
+
*/
|
|
315
|
+
_resolve(shape: any, context?: Record<string, string>): any;
|
|
316
|
+
/**
|
|
317
|
+
* @param amf References object to search in
|
|
318
|
+
* @param id Id of the shape to resolve
|
|
319
|
+
* @param context A context to use. If not set, it looks for the context of the passed model
|
|
320
|
+
* @returns Resolved shape for given reference, undefined otherwise
|
|
321
|
+
*/
|
|
322
|
+
_getLinkTarget(amf?: AmfDocument, id?: string, context?: Record<string, string>): DomainElement | undefined;
|
|
323
|
+
/**
|
|
324
|
+
* Resolves the shape of a given reference.
|
|
325
|
+
*
|
|
326
|
+
* @param references References object to search in
|
|
327
|
+
* @param id Id of the shape to resolve
|
|
328
|
+
* @param context A context to use. If not set, it looks for the context of the passed model
|
|
329
|
+
* @returns Resolved shape for given reference, undefined otherwise
|
|
330
|
+
*/
|
|
331
|
+
_obtainShapeFromReferences(references?: DomainElement[], id?: string, context?: Record<string, string>): DomainElement | undefined;
|
|
332
|
+
/**
|
|
333
|
+
* Searches a node with a given ID in an array
|
|
334
|
+
*
|
|
335
|
+
* @param array Array to search for a given ID
|
|
336
|
+
* @param id Id to search for
|
|
337
|
+
* @returns Node with the given ID when found, undefined otherwise
|
|
338
|
+
*/
|
|
339
|
+
_findById(array?: DomainElement[], id?: string): DomainElement | undefined;
|
|
340
|
+
_getReferenceId(amf?: AmfDocument, id?: string, context?: Record<string, string>): DomainElement | undefined;
|
|
341
|
+
_resolveRecursive(shape: any, context?: Record<string, string>): void;
|
|
342
|
+
/**
|
|
343
|
+
* Merge two shapes together. If the resulting shape has one of the "special merge" keys,
|
|
344
|
+
* then the special merge function for that key will be used to match that property
|
|
345
|
+
* @param shapeA AMF node
|
|
346
|
+
* @param shapeB AMF node
|
|
347
|
+
* @param context A context to use. If not set, it looks for the context of the passed model
|
|
348
|
+
* @returns Merged AMF node
|
|
349
|
+
*/
|
|
350
|
+
_mergeShapes(shapeA: any, shapeB: any, context?: Record<string, string>): any;
|
|
351
|
+
/**
|
|
352
|
+
* Obtains source map sources value from two shapes and returns the merged result
|
|
353
|
+
* If neither shape has a sources node, then an empty object will be returned.
|
|
354
|
+
* Result is wrapped in an array as per AMF model standard
|
|
355
|
+
* @param shapeA AMF node
|
|
356
|
+
* @param shapeB AMF node
|
|
357
|
+
* @param context A context to use. If not set, it looks for the context of the passed model
|
|
358
|
+
* @returns Empty object or resulting merge, wrapped in an array
|
|
359
|
+
* @private
|
|
360
|
+
*/
|
|
361
|
+
_mergeSourceMapsSources(shapeA: any, shapeB: any, context?: Record<string, string>): (any | {})[];
|
|
362
|
+
/**
|
|
363
|
+
* Expands the key property from compacted mode to full mode.
|
|
364
|
+
* @param value The value to process
|
|
365
|
+
* @returns The expanded value.
|
|
366
|
+
*/
|
|
367
|
+
[expandKey](value: string, context?: Record<string, string>): string;
|
|
368
|
+
/**
|
|
369
|
+
* Computes a security model from a reference (library for example).
|
|
370
|
+
* @param domainId Domain id of the security requirement to find.
|
|
371
|
+
* @param context A context to use. If not set, it looks for the context of the passed model
|
|
372
|
+
* @returns Type definition or undefined if not found.
|
|
373
|
+
*/
|
|
374
|
+
findSecurityScheme(domainId: string, context?: Record<string, string>): SecurityScheme | undefined;
|
|
375
|
+
/**
|
|
376
|
+
* Computes a security model from a reference (library for example).
|
|
377
|
+
* @param reference AMF model for a reference to extract the data from
|
|
378
|
+
* @param selected Node ID to look for
|
|
379
|
+
* @param context A context to use. If not set, it looks for the context of the passed model
|
|
380
|
+
* @returns Type definition or undefined if not found.
|
|
381
|
+
*/
|
|
382
|
+
[computeReferenceSecurity](reference: DomainElement, selected: string, context?: Record<string, string>): SecurityScheme | undefined;
|
|
383
|
+
/**
|
|
384
|
+
* Collects domain objects by a domain type.
|
|
385
|
+
* @param source The element to search for declare/encoded objects.
|
|
386
|
+
* @param type The domain type
|
|
387
|
+
* @param context A context to use. If not set, it looks for the context of the passed model
|
|
388
|
+
*/
|
|
389
|
+
getByType(source: DomainElement, type: string, context?: Record<string, string>): DomainElement[];
|
|
390
|
+
}
|
|
391
|
+
/**
|
|
392
|
+
* Common functions used by AMF components to compute AMF values.
|
|
393
|
+
*/
|
|
394
|
+
export declare const AmfMixin: <T extends Constructor<any>>(superClass: T) => Constructor<AmfMixinInterface> & T;
|
|
395
|
+
export {};
|