@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
package/SECURITY.md
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# Security Policy
|
|
2
|
+
|
|
3
|
+
## Supported Versions
|
|
4
|
+
|
|
5
|
+
We support only latest major version of the package. For previous major versions, please, upgrade the package to the newest version or introduce a PR with a fix.
|
|
6
|
+
|
|
7
|
+
| Version | Supported |
|
|
8
|
+
| ------- | ------------------ |
|
|
9
|
+
| >= 0.8.0 | :white_check_mark: |
|
|
10
|
+
| < 0.8.0 | :x: |
|
|
11
|
+
|
|
12
|
+
## Reporting a Vulnerability
|
|
13
|
+
|
|
14
|
+
Please, contact me at "jarrodek @ gmail . com" to report a security issue. I will respond as soon as I read the email.
|
package/build/browser.d.ts
CHANGED
|
@@ -54,6 +54,9 @@ export { DataProperty, IDataProperty, Kind as DataPropertyKind, DataPropertyType
|
|
|
54
54
|
export { AppRequest, IAppRequest, Kind as AppRequestKind } from './src/models/AppRequest.js';
|
|
55
55
|
export * from './src/models/AppProject.js';
|
|
56
56
|
export { AmfNamespace } from './src/amf/definitions/Namespace.js';
|
|
57
|
+
export * as ApiDefinitions from './src/amf/definitions/Api.js';
|
|
58
|
+
export * as AmfDefinitions from './src/amf/definitions/Amf.js';
|
|
59
|
+
export * as AmfShapes from './src/amf/definitions/Shapes.js';
|
|
57
60
|
export { ApiExampleGenerator } from './src/amf/ApiExampleGenerator.js';
|
|
58
61
|
export { ApiMonacoSchemaGenerator } from './src/amf/ApiMonacoSchemaGenerator.js';
|
|
59
62
|
export { ApiSchemaValues } from './src/amf/ApiSchemaValues.js';
|
|
@@ -61,6 +64,9 @@ export { ApiSchemaGenerator } from './src/amf/ApiSchemaGenerator.js';
|
|
|
61
64
|
export { AmfShapeGenerator } from './src/amf/AmfShapeGenerator.js';
|
|
62
65
|
export { AmfSerializer } from './src/amf/AmfSerializer.js';
|
|
63
66
|
export { AmfMixin } from './src/amf/AmfMixin.js';
|
|
67
|
+
export * as AmfTypes from './src/amf/AmfTypes.js';
|
|
68
|
+
export * as AmfParsing from './src/amf/Parsing.js';
|
|
69
|
+
export * as AmfUtils from './src/amf/Utils.js';
|
|
64
70
|
export { PayloadSerializer, ISafePayload, IMultipartBody, Payload, DeserializedPayload, IBlobMeta, IFileMeta } from './src/lib/transformers/PayloadSerializer.js';
|
|
65
71
|
export { ILogger, Logger } from './src/lib/logging/Logger.js';
|
|
66
72
|
export { DummyLogger } from './src/lib/logging/DummyLogger.js';
|
package/build/browser.js
CHANGED
|
@@ -53,6 +53,9 @@ export * from './src/models/AppProject.js';
|
|
|
53
53
|
// AMF
|
|
54
54
|
//
|
|
55
55
|
export { AmfNamespace } from './src/amf/definitions/Namespace.js';
|
|
56
|
+
export * as ApiDefinitions from './src/amf/definitions/Api.js';
|
|
57
|
+
export * as AmfDefinitions from './src/amf/definitions/Amf.js';
|
|
58
|
+
export * as AmfShapes from './src/amf/definitions/Shapes.js';
|
|
56
59
|
export { ApiExampleGenerator } from './src/amf/ApiExampleGenerator.js';
|
|
57
60
|
export { ApiMonacoSchemaGenerator } from './src/amf/ApiMonacoSchemaGenerator.js';
|
|
58
61
|
export { ApiSchemaValues } from './src/amf/ApiSchemaValues.js';
|
|
@@ -60,6 +63,9 @@ export { ApiSchemaGenerator } from './src/amf/ApiSchemaGenerator.js';
|
|
|
60
63
|
export { AmfShapeGenerator } from './src/amf/AmfShapeGenerator.js';
|
|
61
64
|
export { AmfSerializer } from './src/amf/AmfSerializer.js';
|
|
62
65
|
export { AmfMixin } from './src/amf/AmfMixin.js';
|
|
66
|
+
export * as AmfTypes from './src/amf/AmfTypes.js';
|
|
67
|
+
export * as AmfParsing from './src/amf/Parsing.js';
|
|
68
|
+
export * as AmfUtils from './src/amf/Utils.js';
|
|
63
69
|
//
|
|
64
70
|
// Libs
|
|
65
71
|
//
|
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,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,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;AAEjH,GAAG;AACH,UAAU;AACV,GAAG;AACH,cAAc,8BAA8B,CAAC;AAE7C,EAAE;AACF,cAAc;AACd,EAAE;AACF,OAAO,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAC;AAEzE,GAAG;AACH,SAAS;AACT,GAAG;AACH,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACxD,cAAc,4BAA4B,CAAC;AA8B3C,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
|
@@ -54,6 +54,9 @@ export { DataProperty, IDataProperty, Kind as DataPropertyKind, DataPropertyType
|
|
|
54
54
|
export { AppRequest, IAppRequest, Kind as AppRequestKind, } from './src/models/AppRequest.js';
|
|
55
55
|
export * from './src/models/AppProject.js';
|
|
56
56
|
export { AmfNamespace } from './src/amf/definitions/Namespace.js';
|
|
57
|
+
export * as ApiDefinitions from './src/amf/definitions/Api.js';
|
|
58
|
+
export * as AmfDefinitions from './src/amf/definitions/Amf.js';
|
|
59
|
+
export * as AmfShapes from './src/amf/definitions/Shapes.js';
|
|
57
60
|
export { ApiExampleGenerator } from './src/amf/ApiExampleGenerator.js';
|
|
58
61
|
export { ApiMonacoSchemaGenerator } from './src/amf/ApiMonacoSchemaGenerator.js';
|
|
59
62
|
export { ApiSchemaValues } from './src/amf/ApiSchemaValues.js';
|
|
@@ -61,6 +64,9 @@ export { ApiSchemaGenerator } from './src/amf/ApiSchemaGenerator.js';
|
|
|
61
64
|
export { AmfShapeGenerator } from './src/amf/AmfShapeGenerator.js';
|
|
62
65
|
export { AmfSerializer } from './src/amf/AmfSerializer.js';
|
|
63
66
|
export { AmfMixin } from './src/amf/AmfMixin.js';
|
|
67
|
+
export * as AmfTypes from './src/amf/AmfTypes.js';
|
|
68
|
+
export * as AmfParsing from './src/amf/Parsing.js';
|
|
69
|
+
export * as AmfUtils from './src/amf/Utils.js';
|
|
64
70
|
export { PayloadSerializer, ISafePayload, IMultipartBody, Payload, DeserializedPayload, IBlobMeta, IFileMeta } from './src/lib/transformers/PayloadSerializer.js';
|
|
65
71
|
export { ILogger, Logger } from './src/lib/logging/Logger.js';
|
|
66
72
|
export { DummyLogger } from './src/lib/logging/DummyLogger.js';
|
package/build/index.js
CHANGED
|
@@ -53,6 +53,9 @@ export * from './src/models/AppProject.js';
|
|
|
53
53
|
// AMF
|
|
54
54
|
//
|
|
55
55
|
export { AmfNamespace } from './src/amf/definitions/Namespace.js';
|
|
56
|
+
export * as ApiDefinitions from './src/amf/definitions/Api.js';
|
|
57
|
+
export * as AmfDefinitions from './src/amf/definitions/Amf.js';
|
|
58
|
+
export * as AmfShapes from './src/amf/definitions/Shapes.js';
|
|
56
59
|
export { ApiExampleGenerator } from './src/amf/ApiExampleGenerator.js';
|
|
57
60
|
export { ApiMonacoSchemaGenerator } from './src/amf/ApiMonacoSchemaGenerator.js';
|
|
58
61
|
export { ApiSchemaValues } from './src/amf/ApiSchemaValues.js';
|
|
@@ -60,6 +63,9 @@ export { ApiSchemaGenerator } from './src/amf/ApiSchemaGenerator.js';
|
|
|
60
63
|
export { AmfShapeGenerator } from './src/amf/AmfShapeGenerator.js';
|
|
61
64
|
export { AmfSerializer } from './src/amf/AmfSerializer.js';
|
|
62
65
|
export { AmfMixin } from './src/amf/AmfMixin.js';
|
|
66
|
+
export * as AmfTypes from './src/amf/AmfTypes.js';
|
|
67
|
+
export * as AmfParsing from './src/amf/Parsing.js';
|
|
68
|
+
export * as AmfUtils from './src/amf/Utils.js';
|
|
63
69
|
//
|
|
64
70
|
// Libs
|
|
65
71
|
//
|
package/build/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-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,CAAC;AAEzC,GAAG;AACH,UAAU;AACV,GAAG;AACH,cAAc,8BAA8B,CAAC;AAE7C,EAAE;AACF,cAAc;AACd,EAAE;AACF,OAAO,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAC;AAEzE,GAAG;AACH,SAAS;AACT,GAAG;AACH,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACxD,cAAc,4BAA4B,CAAC;AA8B3C,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;AAEvF,GAAG;AACH,cAAc;AACd,GAAG;AACH,OAAO,EAAgB,OAAO,IAAI,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AACzE,OAAO,EAAwB,OAAO,IAAI,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAClG,OAAO,EAAyB,OAAO,IAAI,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACrG,OAAO,EAAqB,OAAO,IAAI,YAAY,EAAE,MAAM,6BAA6B,CAAC;AACzF,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,6BAA6B,CAAC"}
|
|
@@ -1,4 +1,17 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
@license
|
|
3
|
+
Copyright 2018 The Advanced REST client authors <arc@mulesoft.com>
|
|
4
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
|
5
|
+
use this file except in compliance with the License. You may obtain a copy of
|
|
6
|
+
the License at
|
|
7
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
Unless required by applicable law or agreed to in writing, software
|
|
9
|
+
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
10
|
+
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
11
|
+
License for the specific language governing permissions and limitations under
|
|
12
|
+
the License.
|
|
13
|
+
*/
|
|
14
|
+
import { IAmfDocument, IAmfDomainElement, IAmfEndPoint, IAmfSecurityScheme, IAmfShape, IAmfWebApi, IAmfOperation, IAmfAsyncApi, IAmfServer, IAmfRequest } from './definitions/Amf.js';
|
|
2
15
|
export declare const expandKey: unique symbol;
|
|
3
16
|
export declare const findAmfType: unique symbol;
|
|
4
17
|
export declare const findReferenceObject: unique symbol;
|
|
@@ -30,14 +43,14 @@ export interface ServerQueryOptions {
|
|
|
30
43
|
}
|
|
31
44
|
declare type Constructor<T = {}> = new (...args: any[]) => T;
|
|
32
45
|
export declare class AmfMixinInterface {
|
|
33
|
-
amf?:
|
|
46
|
+
amf?: IAmfDocument;
|
|
34
47
|
/**
|
|
35
48
|
* This is an abstract method to be implemented by the components.
|
|
36
49
|
* If, instead, the component uses `amf` setter you must use `super.amf` to
|
|
37
50
|
* set the value.
|
|
38
51
|
* @param amf Current AMF model. Can be undefined.
|
|
39
52
|
*/
|
|
40
|
-
_amfChanged(amf?:
|
|
53
|
+
_amfChanged(amf?: IAmfDocument): void;
|
|
41
54
|
/**
|
|
42
55
|
* Expands flattened AMF model
|
|
43
56
|
*/
|
|
@@ -48,14 +61,14 @@ export declare class AmfMixinInterface {
|
|
|
48
61
|
* @param context A context to use. If not set, it looks for the context of the passed model
|
|
49
62
|
* @returns Compact model property name or the same value if value not found in the context.
|
|
50
63
|
*/
|
|
51
|
-
_getAmfKey(property?: string, context?: Record<string, string>): string
|
|
64
|
+
_getAmfKey(property?: string, context?: Record<string, string>): string;
|
|
52
65
|
/**
|
|
53
66
|
* Ensures that the model is AMF object.
|
|
54
67
|
*
|
|
55
68
|
* @param amf AMF json/ld model
|
|
56
69
|
* @returns The API spec
|
|
57
70
|
*/
|
|
58
|
-
_ensureAmfModel(amf: any):
|
|
71
|
+
_ensureAmfModel(amf: any): IAmfDocument | undefined;
|
|
59
72
|
/**
|
|
60
73
|
* Ensures that the value is an array.
|
|
61
74
|
* It returns undefined when there's no value.
|
|
@@ -72,7 +85,7 @@ export declare class AmfMixinInterface {
|
|
|
72
85
|
* @param context A context to use. If not set, it looks for the context of the passed model
|
|
73
86
|
* @returns Value for key
|
|
74
87
|
*/
|
|
75
|
-
_getValue(model:
|
|
88
|
+
_getValue(model: IAmfDomainElement, untrustedKey: string, context?: Record<string, string>): string | number | boolean | undefined | null;
|
|
76
89
|
/**
|
|
77
90
|
* Gets values from a model as an array of `@value` properties.
|
|
78
91
|
* @param model Amf model to extract the value from.
|
|
@@ -80,7 +93,7 @@ export declare class AmfMixinInterface {
|
|
|
80
93
|
* @param context A context to use. If not set, it looks for the context of the passed model
|
|
81
94
|
* @returns The value for key
|
|
82
95
|
*/
|
|
83
|
-
_getValueArray(model:
|
|
96
|
+
_getValueArray(model: IAmfDomainElement, untrustedKey: string, context?: Record<string, string>): (string | number | boolean | null)[] | undefined;
|
|
84
97
|
/**
|
|
85
98
|
* Reads an array from the model.
|
|
86
99
|
*
|
|
@@ -89,21 +102,21 @@ export declare class AmfMixinInterface {
|
|
|
89
102
|
* @param context A context to use. If not set, it looks for the context of the passed model
|
|
90
103
|
* @returns Value for the key
|
|
91
104
|
*/
|
|
92
|
-
[getArrayItems](model?:
|
|
105
|
+
[getArrayItems](model?: IAmfDomainElement, untrustedKey?: string, context?: Record<string, string>): IAmfDomainElement[] | undefined;
|
|
93
106
|
/**
|
|
94
107
|
* Reads the value of the `@id` property.
|
|
95
108
|
* @param model Amf model to extract the value from.
|
|
96
109
|
* @param untrustedKey Model key to search for the @id
|
|
97
110
|
* @param context A context to use. If not set, it looks for the context of the passed model
|
|
98
111
|
*/
|
|
99
|
-
_getLinkValue(model:
|
|
112
|
+
_getLinkValue(model: IAmfDomainElement, untrustedKey: string, context?: Record<string, string>): string | undefined;
|
|
100
113
|
/**
|
|
101
114
|
* Reads the list of value for the `@id` property.
|
|
102
115
|
* @param model Amf model to extract the value from.
|
|
103
116
|
* @param untrustedKey Model key to search for the @id
|
|
104
117
|
* @param context A context to use. If not set, it looks for the context of the passed model
|
|
105
118
|
*/
|
|
106
|
-
_getLinkValues(model:
|
|
119
|
+
_getLinkValues(model: IAmfDomainElement, untrustedKey: string, context?: Record<string, string>): string[] | undefined;
|
|
107
120
|
/**
|
|
108
121
|
* Checks if a model has a type.
|
|
109
122
|
* @param model Model to test
|
|
@@ -111,14 +124,14 @@ export declare class AmfMixinInterface {
|
|
|
111
124
|
* @param context A context to use. If not set, it looks for the context of the passed model
|
|
112
125
|
* @returns True if model has a type.
|
|
113
126
|
*/
|
|
114
|
-
_hasType(model?:
|
|
127
|
+
_hasType(model?: IAmfDomainElement, type?: string, context?: Record<string, string>): boolean;
|
|
115
128
|
/**
|
|
116
129
|
* Checks if a shape has a property.
|
|
117
130
|
* @param shape The shape to test
|
|
118
131
|
* @param untrustedKey Property name to test
|
|
119
132
|
* @param context A context to use. If not set, it looks for the context of the passed model
|
|
120
133
|
*/
|
|
121
|
-
_hasProperty(shape:
|
|
134
|
+
_hasProperty(shape: IAmfDomainElement, untrustedKey: string, context?: Record<string, string>): boolean;
|
|
122
135
|
/**
|
|
123
136
|
* Computes array value of a property in a model (shape).
|
|
124
137
|
*
|
|
@@ -126,14 +139,14 @@ export declare class AmfMixinInterface {
|
|
|
126
139
|
* @param untrustedKey Property name
|
|
127
140
|
* @param context A context to use. If not set, it looks for the context of the passed model
|
|
128
141
|
*/
|
|
129
|
-
_computePropertyArray(shape?:
|
|
142
|
+
_computePropertyArray(shape?: IAmfDomainElement, untrustedKey?: string, context?: Record<string, string>): (string | number | boolean | null | Object)[] | undefined;
|
|
130
143
|
/**
|
|
131
144
|
* Computes API version from the AMF model.
|
|
132
145
|
*
|
|
133
146
|
* @param amf
|
|
134
147
|
* @param context A context to use. If not set, it looks for the context of the passed model
|
|
135
148
|
*/
|
|
136
|
-
_computeApiVersion(amf?:
|
|
149
|
+
_computeApiVersion(amf?: IAmfDocument, context?: Record<string, string>): string | undefined;
|
|
137
150
|
/**
|
|
138
151
|
* Computes model's `encodes` property.
|
|
139
152
|
*
|
|
@@ -141,7 +154,7 @@ export declare class AmfMixinInterface {
|
|
|
141
154
|
* @param context A context to use. If not set, it looks for the context of the passed model
|
|
142
155
|
* @returns List of encodes
|
|
143
156
|
*/
|
|
144
|
-
_computeEncodes(model?:
|
|
157
|
+
_computeEncodes(model?: IAmfDocument, context?: Record<string, string>): IAmfDomainElement | undefined;
|
|
145
158
|
/**
|
|
146
159
|
* Computes list of declarations in the AMF api model.
|
|
147
160
|
*
|
|
@@ -149,7 +162,7 @@ export declare class AmfMixinInterface {
|
|
|
149
162
|
* @param context A context to use. If not set, it looks for the context of the passed model
|
|
150
163
|
* @returns List of declarations
|
|
151
164
|
*/
|
|
152
|
-
_computeDeclares(model?:
|
|
165
|
+
_computeDeclares(model?: IAmfDocument, context?: Record<string, string>): IAmfDomainElement[] | undefined;
|
|
153
166
|
/**
|
|
154
167
|
* Computes list of references in the AMF api model.
|
|
155
168
|
*
|
|
@@ -157,7 +170,7 @@ export declare class AmfMixinInterface {
|
|
|
157
170
|
* @param context A context to use. If not set, it looks for the context of the passed model
|
|
158
171
|
* @returns List of declarations
|
|
159
172
|
*/
|
|
160
|
-
_computeReferences(model?:
|
|
173
|
+
_computeReferences(model?: IAmfDocument, context?: Record<string, string>): IAmfDomainElement[] | undefined;
|
|
161
174
|
/**
|
|
162
175
|
* Computes AMF's `http://schema.org/WebAPI` model
|
|
163
176
|
*
|
|
@@ -165,7 +178,7 @@ export declare class AmfMixinInterface {
|
|
|
165
178
|
* @param context A context to use. If not set, it looks for the context of the passed model
|
|
166
179
|
* @returns Web API declaration.
|
|
167
180
|
*/
|
|
168
|
-
_computeWebApi(model?:
|
|
181
|
+
_computeWebApi(model?: IAmfDocument, context?: Record<string, string>): IAmfWebApi | undefined;
|
|
169
182
|
/**
|
|
170
183
|
* Computes AMF's `http://schema.org/API` model
|
|
171
184
|
*
|
|
@@ -173,28 +186,28 @@ export declare class AmfMixinInterface {
|
|
|
173
186
|
* @param context A context to use. If not set, it looks for the context of the passed model
|
|
174
187
|
* @returns API declaration.
|
|
175
188
|
*/
|
|
176
|
-
_computeApi(model?:
|
|
189
|
+
_computeApi(model?: IAmfDocument, context?: Record<string, string>): IAmfAsyncApi | IAmfWebApi | undefined;
|
|
177
190
|
/**
|
|
178
191
|
* Returns whether an AMF node is a WebAPI node
|
|
179
192
|
*
|
|
180
193
|
* @param model AMF json/ld model for an API
|
|
181
194
|
* @param context A context to use. If not set, it looks for the context of the passed model
|
|
182
195
|
*/
|
|
183
|
-
_isWebAPI(model?:
|
|
196
|
+
_isWebAPI(model?: IAmfDocument, context?: Record<string, string>): boolean;
|
|
184
197
|
/**
|
|
185
198
|
* Returns whether an AMF node is an AsyncAPI node
|
|
186
199
|
*
|
|
187
200
|
* @param model AMF json/ld model for an API
|
|
188
201
|
* @param context A context to use. If not set, it looks for the context of the passed model
|
|
189
202
|
*/
|
|
190
|
-
_isAsyncAPI(model?:
|
|
203
|
+
_isAsyncAPI(model?: IAmfDocument, context?: Record<string, string>): boolean;
|
|
191
204
|
/**
|
|
192
205
|
* Returns whether an AMF node is an API node
|
|
193
206
|
*
|
|
194
207
|
* @param model AMF json/ld model for an API
|
|
195
208
|
* @param context A context to use. If not set, it looks for the context of the passed model
|
|
196
209
|
*/
|
|
197
|
-
_isAPI(model?:
|
|
210
|
+
_isAPI(model?: IAmfDocument, context?: Record<string, string>): boolean;
|
|
198
211
|
/**
|
|
199
212
|
* Determines whether a partial model is valid for reading servers from
|
|
200
213
|
* Current valid values:
|
|
@@ -206,27 +219,27 @@ export declare class AmfMixinInterface {
|
|
|
206
219
|
* to read servers
|
|
207
220
|
* @private
|
|
208
221
|
*/
|
|
209
|
-
_isValidServerPartial(model:
|
|
222
|
+
_isValidServerPartial(model: IAmfDomainElement, context?: Record<string, string>): boolean;
|
|
210
223
|
/**
|
|
211
224
|
* @param options Server query options
|
|
212
225
|
* @param context A context to use. If not set, it looks for the context of the passed model
|
|
213
226
|
* @returns List of servers for method, if defined, or endpoint, if defined, or root level
|
|
214
227
|
*/
|
|
215
|
-
_getServers(options?: ServersQueryOptions, context?: Record<string, string>):
|
|
228
|
+
_getServers(options?: ServersQueryOptions, context?: Record<string, string>): IAmfServer[] | undefined;
|
|
216
229
|
/**
|
|
217
230
|
* Computes value for the `expects` property.
|
|
218
231
|
*
|
|
219
232
|
* @param method AMF `supportedOperation` model
|
|
220
233
|
* @param context A context to use. If not set, it looks for the context of the passed model
|
|
221
234
|
*/
|
|
222
|
-
_computeExpects(method?:
|
|
235
|
+
_computeExpects(method?: IAmfOperation, context?: Record<string, string>): IAmfRequest | undefined;
|
|
223
236
|
/**
|
|
224
237
|
* Computes list of endpoints from a WebApi model.
|
|
225
238
|
* @param webApi
|
|
226
239
|
* @param context A context to use. If not set, it looks for the context of the passed model
|
|
227
240
|
* @returns An array of endpoints.
|
|
228
241
|
*/
|
|
229
|
-
_computeEndpoints(webApi?:
|
|
242
|
+
_computeEndpoints(webApi?: IAmfWebApi, context?: Record<string, string>): IAmfEndPoint[] | undefined;
|
|
230
243
|
/**
|
|
231
244
|
* Computes model for an endpoint documentation.
|
|
232
245
|
*
|
|
@@ -235,7 +248,7 @@ export declare class AmfMixinInterface {
|
|
|
235
248
|
* @param context A context to use. If not set, it looks for the context of the passed model
|
|
236
249
|
* @returns An endpoint definition
|
|
237
250
|
*/
|
|
238
|
-
_computeEndpointModel(webApi?:
|
|
251
|
+
_computeEndpointModel(webApi?: IAmfWebApi, id?: string, context?: Record<string, string>): IAmfEndPoint | undefined;
|
|
239
252
|
/**
|
|
240
253
|
* Computes method for the method documentation.
|
|
241
254
|
*
|
|
@@ -244,7 +257,7 @@ export declare class AmfMixinInterface {
|
|
|
244
257
|
* @param context A context to use. If not set, it looks for the context of the passed model
|
|
245
258
|
* @returns A method definition
|
|
246
259
|
*/
|
|
247
|
-
_computeMethodModel(webApi?:
|
|
260
|
+
_computeMethodModel(webApi?: IAmfWebApi, selected?: string, context?: Record<string, string>): IAmfOperation | undefined;
|
|
248
261
|
/**
|
|
249
262
|
* Computes an endpoint for a method.
|
|
250
263
|
* @param webApi The WebApi AMF model
|
|
@@ -252,7 +265,7 @@ export declare class AmfMixinInterface {
|
|
|
252
265
|
* @param context A context to use. If not set, it looks for the context of the passed model
|
|
253
266
|
* @returns An endpoint model of undefined.
|
|
254
267
|
*/
|
|
255
|
-
_computeMethodEndpoint(webApi?:
|
|
268
|
+
_computeMethodEndpoint(webApi?: IAmfWebApi, methodId?: string, context?: Record<string, string>): IAmfEndPoint | undefined;
|
|
256
269
|
/**
|
|
257
270
|
* Computes a list of methods for an endpoint that contains a method with
|
|
258
271
|
* given id.
|
|
@@ -262,7 +275,7 @@ export declare class AmfMixinInterface {
|
|
|
262
275
|
* @param context A context to use. If not set, it looks for the context of the passed model
|
|
263
276
|
* @returns A list of sibling methods or undefined.
|
|
264
277
|
*/
|
|
265
|
-
__computeMethodsListForMethod(webApi?:
|
|
278
|
+
__computeMethodsListForMethod(webApi?: IAmfWebApi, methodId?: string, context?: Record<string, string>): IAmfOperation[] | undefined;
|
|
266
279
|
/**
|
|
267
280
|
* Computes a type documentation model.
|
|
268
281
|
*
|
|
@@ -272,14 +285,14 @@ export declare class AmfMixinInterface {
|
|
|
272
285
|
* @param context A context to use. If not set, it looks for the context of the passed model
|
|
273
286
|
* @returns A type definition
|
|
274
287
|
*/
|
|
275
|
-
_computeType(declares?:
|
|
288
|
+
_computeType(declares?: IAmfDomainElement[], references?: IAmfDomainElement[], selected?: string, context?: Record<string, string>): IAmfShape | undefined;
|
|
276
289
|
/**
|
|
277
290
|
* Finds a type in the model declares and references.
|
|
278
291
|
* @param domainId The domain id of the type (AMF's shape).
|
|
279
292
|
* @param context A context to use. If not set, it looks for the context of the passed model
|
|
280
293
|
* @returns The AMF shape or undefined when not found.
|
|
281
294
|
*/
|
|
282
|
-
[findAmfType](domainId?: string, context?: Record<string, string>):
|
|
295
|
+
[findAmfType](domainId?: string, context?: Record<string, string>): IAmfShape | undefined;
|
|
283
296
|
/**
|
|
284
297
|
* Searches for an object in model's references list.
|
|
285
298
|
* It does not resolve the object (useful for handling links correctly).
|
|
@@ -288,7 +301,7 @@ export declare class AmfMixinInterface {
|
|
|
288
301
|
* @param context A context to use. If not set, it looks for the context of the passed model
|
|
289
302
|
* @returns The domain object or undefined.
|
|
290
303
|
*/
|
|
291
|
-
[findReferenceObject](domainId: string, context?: Record<string, string>):
|
|
304
|
+
[findReferenceObject](domainId: string, context?: Record<string, string>): IAmfDomainElement | undefined;
|
|
292
305
|
/**
|
|
293
306
|
* Computes a type model from a reference (library for example).
|
|
294
307
|
* @param reference AMF model for a reference to extract the data from
|
|
@@ -296,7 +309,7 @@ export declare class AmfMixinInterface {
|
|
|
296
309
|
* @param context A context to use. If not set, it looks for the context of the passed model
|
|
297
310
|
* @returns Type definition or undefined if not found.
|
|
298
311
|
*/
|
|
299
|
-
_computeReferenceType(reference?:
|
|
312
|
+
_computeReferenceType(reference?: IAmfDomainElement, selected?: string, context?: Record<string, string>): IAmfShape | undefined;
|
|
300
313
|
/**
|
|
301
314
|
* Computes a documentation model.
|
|
302
315
|
*
|
|
@@ -304,7 +317,7 @@ export declare class AmfMixinInterface {
|
|
|
304
317
|
* @param selected Selected shape
|
|
305
318
|
* @param context A context to use. If not set, it looks for the context of the passed model
|
|
306
319
|
*/
|
|
307
|
-
_computeDocument(webApi?:
|
|
320
|
+
_computeDocument(webApi?: IAmfDomainElement, selected?: string, context?: Record<string, string>): IAmfDomainElement | undefined;
|
|
308
321
|
/**
|
|
309
322
|
* Resolves a reference to an external fragment.
|
|
310
323
|
*
|
|
@@ -319,7 +332,7 @@ export declare class AmfMixinInterface {
|
|
|
319
332
|
* @param context A context to use. If not set, it looks for the context of the passed model
|
|
320
333
|
* @returns Resolved shape for given reference, undefined otherwise
|
|
321
334
|
*/
|
|
322
|
-
_getLinkTarget(amf?:
|
|
335
|
+
_getLinkTarget(amf?: IAmfDocument, id?: string, context?: Record<string, string>): IAmfDomainElement | undefined;
|
|
323
336
|
/**
|
|
324
337
|
* Resolves the shape of a given reference.
|
|
325
338
|
*
|
|
@@ -328,7 +341,7 @@ export declare class AmfMixinInterface {
|
|
|
328
341
|
* @param context A context to use. If not set, it looks for the context of the passed model
|
|
329
342
|
* @returns Resolved shape for given reference, undefined otherwise
|
|
330
343
|
*/
|
|
331
|
-
_obtainShapeFromReferences(references?:
|
|
344
|
+
_obtainShapeFromReferences(references?: IAmfDomainElement[], id?: string, context?: Record<string, string>): IAmfDomainElement | undefined;
|
|
332
345
|
/**
|
|
333
346
|
* Searches a node with a given ID in an array
|
|
334
347
|
*
|
|
@@ -336,8 +349,8 @@ export declare class AmfMixinInterface {
|
|
|
336
349
|
* @param id Id to search for
|
|
337
350
|
* @returns Node with the given ID when found, undefined otherwise
|
|
338
351
|
*/
|
|
339
|
-
_findById(array?:
|
|
340
|
-
_getReferenceId(amf?:
|
|
352
|
+
_findById(array?: IAmfDomainElement[], id?: string): IAmfDomainElement | undefined;
|
|
353
|
+
_getReferenceId(amf?: IAmfDocument, id?: string, context?: Record<string, string>): IAmfDomainElement | undefined;
|
|
341
354
|
_resolveRecursive(shape: any, context?: Record<string, string>): void;
|
|
342
355
|
/**
|
|
343
356
|
* Merge two shapes together. If the resulting shape has one of the "special merge" keys,
|
|
@@ -371,7 +384,7 @@ export declare class AmfMixinInterface {
|
|
|
371
384
|
* @param context A context to use. If not set, it looks for the context of the passed model
|
|
372
385
|
* @returns Type definition or undefined if not found.
|
|
373
386
|
*/
|
|
374
|
-
findSecurityScheme(domainId: string, context?: Record<string, string>):
|
|
387
|
+
findSecurityScheme(domainId: string, context?: Record<string, string>): IAmfSecurityScheme | undefined;
|
|
375
388
|
/**
|
|
376
389
|
* Computes a security model from a reference (library for example).
|
|
377
390
|
* @param reference AMF model for a reference to extract the data from
|
|
@@ -379,14 +392,14 @@ export declare class AmfMixinInterface {
|
|
|
379
392
|
* @param context A context to use. If not set, it looks for the context of the passed model
|
|
380
393
|
* @returns Type definition or undefined if not found.
|
|
381
394
|
*/
|
|
382
|
-
[computeReferenceSecurity](reference:
|
|
395
|
+
[computeReferenceSecurity](reference: IAmfDomainElement, selected: string, context?: Record<string, string>): IAmfSecurityScheme | undefined;
|
|
383
396
|
/**
|
|
384
397
|
* Collects domain objects by a domain type.
|
|
385
398
|
* @param source The element to search for declare/encoded objects.
|
|
386
399
|
* @param type The domain type
|
|
387
400
|
* @param context A context to use. If not set, it looks for the context of the passed model
|
|
388
401
|
*/
|
|
389
|
-
getByType(source:
|
|
402
|
+
getByType(source: IAmfDomainElement, type: string, context?: Record<string, string>): IAmfDomainElement[];
|
|
390
403
|
}
|
|
391
404
|
/**
|
|
392
405
|
* Common functions used by AMF components to compute AMF values.
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/ban-ts-comment */
|
|
2
|
+
/* eslint-disable @typescript-eslint/ban-types */
|
|
3
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
4
|
+
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
1
5
|
/**
|
|
2
6
|
@license
|
|
3
7
|
Copyright 2018 The Advanced REST client authors <arc@mulesoft.com>
|
|
@@ -61,7 +65,9 @@ export const AmfMixin = (superClass) => {
|
|
|
61
65
|
* @param amf Current AMF model. Can be undefined.
|
|
62
66
|
*/
|
|
63
67
|
/* eslint-disable-next-line no-unused-vars */
|
|
64
|
-
_amfChanged(amf) {
|
|
68
|
+
_amfChanged(amf) {
|
|
69
|
+
// ...
|
|
70
|
+
}
|
|
65
71
|
/**
|
|
66
72
|
* Expands flattened AMF model
|
|
67
73
|
*/
|
|
@@ -84,7 +90,7 @@ export const AmfMixin = (superClass) => {
|
|
|
84
90
|
*/
|
|
85
91
|
_getAmfKey(property, context) {
|
|
86
92
|
if (!property) {
|
|
87
|
-
return
|
|
93
|
+
return '';
|
|
88
94
|
}
|
|
89
95
|
let { amf } = this;
|
|
90
96
|
if (!amf && !context) {
|
|
@@ -753,7 +759,7 @@ export const AmfMixin = (superClass) => {
|
|
|
753
759
|
}
|
|
754
760
|
const compactId = domainId.replace('amf://id', '');
|
|
755
761
|
for (let i = 0, len = references.length; i < len; i++) {
|
|
756
|
-
const ref = /** @type
|
|
762
|
+
const ref = /** @type IAmfDocument */ (references[i]);
|
|
757
763
|
const declares = this._computeDeclares(ref, context);
|
|
758
764
|
if (!Array.isArray(declares)) {
|
|
759
765
|
continue;
|