@api-client/core 0.7.12 → 0.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (125) hide show
  1. package/SECURITY.md +14 -0
  2. package/build/browser.d.ts +8 -1
  3. package/build/browser.js +7 -0
  4. package/build/browser.js.map +1 -1
  5. package/build/index.d.ts +8 -1
  6. package/build/index.js +7 -0
  7. package/build/index.js.map +1 -1
  8. package/build/src/amf/AmfMixin.d.ts +56 -42
  9. package/build/src/amf/AmfMixin.js +9 -3
  10. package/build/src/amf/AmfMixin.js.map +1 -1
  11. package/build/src/amf/AmfSerializer.d.ts +72 -72
  12. package/build/src/amf/AmfSerializer.js +9 -4
  13. package/build/src/amf/AmfSerializer.js.map +1 -1
  14. package/build/src/amf/AmfShapeGenerator.d.ts +17 -17
  15. package/build/src/amf/AmfShapeGenerator.js +3 -3
  16. package/build/src/amf/AmfShapeGenerator.js.map +1 -1
  17. package/build/src/amf/AmfTypes.d.ts +16 -16
  18. package/build/src/amf/AmfTypes.js +16 -16
  19. package/build/src/amf/AmfTypes.js.map +1 -1
  20. package/build/src/amf/ApiExampleGenerator.d.ts +3 -3
  21. package/build/src/amf/ApiExampleGenerator.js.map +1 -1
  22. package/build/src/amf/ApiMonacoSchemaGenerator.d.ts +6 -6
  23. package/build/src/amf/ApiMonacoSchemaGenerator.js.map +1 -1
  24. package/build/src/amf/ApiSchemaGenerator.d.ts +2 -2
  25. package/build/src/amf/ApiSchemaGenerator.js.map +1 -1
  26. package/build/src/amf/ApiSchemaValues.d.ts +12 -12
  27. package/build/src/amf/ApiSchemaValues.js.map +1 -1
  28. package/build/src/amf/Parsing.d.ts +5 -5
  29. package/build/src/amf/Utils.d.ts +6 -6
  30. package/build/src/amf/Utils.js.map +1 -1
  31. package/build/src/amf/data-node/DataNodeBase.d.ts +5 -5
  32. package/build/src/amf/data-node/DataNodeBase.js.map +1 -1
  33. package/build/src/amf/data-node/JsonDataNodeGenerator.d.ts +2 -2
  34. package/build/src/amf/data-node/JsonDataNodeGenerator.js.map +1 -1
  35. package/build/src/amf/data-node/UrlEncodedDataNodeGenerator.d.ts +2 -2
  36. package/build/src/amf/data-node/UrlEncodedDataNodeGenerator.js.map +1 -1
  37. package/build/src/amf/data-node/XmlDataNodeGenerator.d.ts +2 -2
  38. package/build/src/amf/data-node/XmlDataNodeGenerator.js.map +1 -1
  39. package/build/src/amf/definitions/Amf.d.ts +339 -339
  40. package/build/src/amf/definitions/Api.d.ts +158 -158
  41. package/build/src/amf/definitions/Base.d.ts +5 -5
  42. package/build/src/amf/definitions/Shapes.d.ts +46 -46
  43. package/build/src/amf/definitions/Shapes.js +11 -11
  44. package/build/src/amf/definitions/Shapes.js.map +1 -1
  45. package/build/src/amf/models/AmfDataNode.d.ts +5 -5
  46. package/build/src/amf/models/AmfDataNode.js +4 -4
  47. package/build/src/amf/models/AmfDataNode.js.map +1 -1
  48. package/build/src/amf/shape/ShapeBase.d.ts +13 -13
  49. package/build/src/amf/shape/ShapeBase.js.map +1 -1
  50. package/build/src/amf/shape/ShapeJsonSchemaGenerator.d.ts +13 -13
  51. package/build/src/amf/shape/ShapeJsonSchemaGenerator.js.map +1 -1
  52. package/build/src/amf/shape/ShapeXmlSchemaGenerator.d.ts +16 -16
  53. package/build/src/amf/shape/ShapeXmlSchemaGenerator.js.map +1 -1
  54. package/build/src/events/amf/AmfEvents.d.ts +4 -4
  55. package/build/src/events/amf/AmfEvents.js.map +1 -1
  56. package/build/src/lib/timers/Timers.d.ts +9 -0
  57. package/build/src/lib/timers/Timers.js +13 -0
  58. package/build/src/lib/timers/Timers.js.map +1 -1
  59. package/build/src/models/data/Bindings.d.ts +2 -2
  60. package/build/src/models/data/DataAssociation.d.ts +4 -4
  61. package/build/src/models/data/DataAssociation.js.map +1 -1
  62. package/build/src/models/data/DataEntity.d.ts +2 -2
  63. package/build/src/models/data/DataProperty.d.ts +2 -2
  64. package/data/apis/amf-helper-api/amf-helper-api.raml +1024 -0
  65. package/data/apis/amf-helper-api/examples/comment-example.json +42 -0
  66. package/data/apis/amf-helper-api/examples/commentCreateRequest-example.json +7 -0
  67. package/data/apis/amf-helper-api/examples/commentList-example.json +48 -0
  68. package/data/apis/amf-helper-api/examples/person.json +14 -0
  69. package/data/apis/amf-helper-api/examples/person.raml +13 -0
  70. package/data/apis/amf-helper-api/examples/person.xml +14 -0
  71. package/data/apis/amf-helper-api/libraries/comment-lib.raml +143 -0
  72. package/data/apis/amf-helper-api/library.raml +7 -0
  73. package/data/apis/amf-helper-api/schemas/person.json +104 -0
  74. package/data/apis/amf-helper-api/schemas/person.xsd +26 -0
  75. package/data/apis/amf-helper-api/traits/file.raml +33 -0
  76. package/data/apis/amf-helper-api/traits/pagination.raml +80 -0
  77. package/data/apis/amf-helper-api/traits/results.raml +19 -0
  78. package/data/apis/amf-helper-api/traits/visibility.raml +14 -0
  79. package/data/apis/amf-helper-api/types/app-person.raml +101 -0
  80. package/data/apis/amf-helper-api/types/dimensions.raml +24 -0
  81. package/data/apis/amf-helper-api/types/external-type.raml +7 -0
  82. package/data/apis/amf-helper-api/types/image.raml +23 -0
  83. package/data/apis/amf-helper-api/types/product.raml +52 -0
  84. package/data/apis/amf-helper-api/types/resource.raml +11 -0
  85. package/data/apis/amf-helper-api/types/standard-request.raml +50 -0
  86. package/data/apis/amf-helper-api/types/user.raml +37 -0
  87. package/data/apis/async-api/async-api.yaml +96 -0
  88. package/data/apis/expanded-api/expanded-api.raml +8 -0
  89. package/data/apis/flattened-api/flattened-api.raml +8 -0
  90. package/data/apis/multiple-servers/multiple-servers.yaml +112 -0
  91. package/data/model.js +5 -0
  92. package/data/models/amf-helper-api.json +85908 -0
  93. package/data/models/async-api.json +3108 -0
  94. package/data/models/expanded-api.json +251 -0
  95. package/data/models/flattened-api.json +251 -0
  96. package/data/models/multiple-servers.json +2753 -0
  97. package/package.json +1 -1
  98. package/src/amf/AmfMixin.ts +125 -117
  99. package/src/amf/AmfSerializer.ts +245 -240
  100. package/src/amf/AmfShapeGenerator.ts +23 -23
  101. package/src/amf/AmfTypes.ts +16 -16
  102. package/src/amf/ApiExampleGenerator.ts +4 -4
  103. package/src/amf/ApiMonacoSchemaGenerator.ts +11 -11
  104. package/src/amf/ApiSchemaGenerator.ts +3 -3
  105. package/src/amf/ApiSchemaValues.ts +21 -21
  106. package/src/amf/Parsing.ts +5 -5
  107. package/src/amf/Utils.ts +15 -15
  108. package/src/amf/data-node/DataNodeBase.ts +8 -8
  109. package/src/amf/data-node/JsonDataNodeGenerator.ts +2 -2
  110. package/src/amf/data-node/UrlEncodedDataNodeGenerator.ts +2 -2
  111. package/src/amf/data-node/XmlDataNodeGenerator.ts +2 -2
  112. package/src/amf/definitions/Amf.ts +315 -314
  113. package/src/amf/definitions/Api.ts +158 -157
  114. package/src/amf/definitions/Base.ts +5 -5
  115. package/src/amf/definitions/Shapes.ts +60 -60
  116. package/src/amf/models/AmfDataNode.ts +17 -17
  117. package/src/amf/shape/ShapeBase.ts +16 -16
  118. package/src/amf/shape/ShapeJsonSchemaGenerator.ts +27 -27
  119. package/src/amf/shape/ShapeXmlSchemaGenerator.ts +42 -42
  120. package/src/events/amf/AmfEvents.ts +7 -7
  121. package/src/lib/timers/Timers.ts +14 -0
  122. package/src/models/data/Bindings.ts +2 -2
  123. package/src/models/data/DataAssociation.ts +4 -4
  124. package/src/models/data/DataEntity.ts +2 -2
  125. 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.
@@ -54,13 +54,20 @@ 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';
60
+ export * as AmfBase from './src/amf/definitions/Base.js';
57
61
  export { ApiExampleGenerator } from './src/amf/ApiExampleGenerator.js';
58
62
  export { ApiMonacoSchemaGenerator } from './src/amf/ApiMonacoSchemaGenerator.js';
59
63
  export { ApiSchemaValues } from './src/amf/ApiSchemaValues.js';
60
64
  export { ApiSchemaGenerator } from './src/amf/ApiSchemaGenerator.js';
61
65
  export { AmfShapeGenerator } from './src/amf/AmfShapeGenerator.js';
62
66
  export { AmfSerializer } from './src/amf/AmfSerializer.js';
63
- export { AmfMixin } from './src/amf/AmfMixin.js';
67
+ export { AmfMixin, ServersQueryOptions } from './src/amf/AmfMixin.js';
68
+ export * as AmfTypes from './src/amf/AmfTypes.js';
69
+ export * as AmfParsing from './src/amf/Parsing.js';
70
+ export * as AmfUtils from './src/amf/Utils.js';
64
71
  export { PayloadSerializer, ISafePayload, IMultipartBody, Payload, DeserializedPayload, IBlobMeta, IFileMeta } from './src/lib/transformers/PayloadSerializer.js';
65
72
  export { ILogger, Logger } from './src/lib/logging/Logger.js';
66
73
  export { DummyLogger } from './src/lib/logging/DummyLogger.js';
package/build/browser.js CHANGED
@@ -53,6 +53,10 @@ 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';
59
+ export * as AmfBase from './src/amf/definitions/Base.js';
56
60
  export { ApiExampleGenerator } from './src/amf/ApiExampleGenerator.js';
57
61
  export { ApiMonacoSchemaGenerator } from './src/amf/ApiMonacoSchemaGenerator.js';
58
62
  export { ApiSchemaValues } from './src/amf/ApiSchemaValues.js';
@@ -60,6 +64,9 @@ export { ApiSchemaGenerator } from './src/amf/ApiSchemaGenerator.js';
60
64
  export { AmfShapeGenerator } from './src/amf/AmfShapeGenerator.js';
61
65
  export { AmfSerializer } from './src/amf/AmfSerializer.js';
62
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';
63
70
  //
64
71
  // Libs
65
72
  //
@@ -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,MAAM,6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nD,OAAO,EAAE,QAAQ,EAAa,QAAQ,EAAa,MAAM,+BAA+B,CAAC;AACzF,OAAO,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AAEnE,GAAG;AACH,sBAAsB;AACtB,GAAG;AACH,OAAO,EAAE,QAAQ,EAAoD,MAAM,qCAAqC,CAAC;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,13 +54,20 @@ 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';
60
+ export * as AmfBase from './src/amf/definitions/Base.js';
57
61
  export { ApiExampleGenerator } from './src/amf/ApiExampleGenerator.js';
58
62
  export { ApiMonacoSchemaGenerator } from './src/amf/ApiMonacoSchemaGenerator.js';
59
63
  export { ApiSchemaValues } from './src/amf/ApiSchemaValues.js';
60
64
  export { ApiSchemaGenerator } from './src/amf/ApiSchemaGenerator.js';
61
65
  export { AmfShapeGenerator } from './src/amf/AmfShapeGenerator.js';
62
66
  export { AmfSerializer } from './src/amf/AmfSerializer.js';
63
- export { AmfMixin } from './src/amf/AmfMixin.js';
67
+ export { AmfMixin, ServersQueryOptions } from './src/amf/AmfMixin.js';
68
+ export * as AmfTypes from './src/amf/AmfTypes.js';
69
+ export * as AmfParsing from './src/amf/Parsing.js';
70
+ export * as AmfUtils from './src/amf/Utils.js';
64
71
  export { PayloadSerializer, ISafePayload, IMultipartBody, Payload, DeserializedPayload, IBlobMeta, IFileMeta } from './src/lib/transformers/PayloadSerializer.js';
65
72
  export { ILogger, Logger } from './src/lib/logging/Logger.js';
66
73
  export { DummyLogger } from './src/lib/logging/DummyLogger.js';
package/build/index.js CHANGED
@@ -53,6 +53,10 @@ 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';
59
+ export * as AmfBase from './src/amf/definitions/Base.js';
56
60
  export { ApiExampleGenerator } from './src/amf/ApiExampleGenerator.js';
57
61
  export { ApiMonacoSchemaGenerator } from './src/amf/ApiMonacoSchemaGenerator.js';
58
62
  export { ApiSchemaValues } from './src/amf/ApiSchemaValues.js';
@@ -60,6 +64,9 @@ export { ApiSchemaGenerator } from './src/amf/ApiSchemaGenerator.js';
60
64
  export { AmfShapeGenerator } from './src/amf/AmfShapeGenerator.js';
61
65
  export { AmfSerializer } from './src/amf/AmfSerializer.js';
62
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';
63
70
  //
64
71
  // Libs
65
72
  //
@@ -1 +1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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
- import { AmfDocument, DomainElement, EndPoint, SecurityScheme, Shape, WebApi, Operation, AsyncApi, Server, Request } from './definitions/Amf.js';
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,15 @@ export interface ServerQueryOptions {
30
43
  }
31
44
  declare type Constructor<T = {}> = new (...args: any[]) => T;
32
45
  export declare class AmfMixinInterface {
33
- amf?: AmfDocument;
46
+ amf?: IAmfDocument;
47
+ _amf?: IAmfDocument;
34
48
  /**
35
49
  * This is an abstract method to be implemented by the components.
36
50
  * If, instead, the component uses `amf` setter you must use `super.amf` to
37
51
  * set the value.
38
52
  * @param amf Current AMF model. Can be undefined.
39
53
  */
40
- _amfChanged(amf?: AmfDocument): void;
54
+ _amfChanged(amf?: IAmfDocument): void;
41
55
  /**
42
56
  * Expands flattened AMF model
43
57
  */
@@ -48,14 +62,14 @@ export declare class AmfMixinInterface {
48
62
  * @param context A context to use. If not set, it looks for the context of the passed model
49
63
  * @returns Compact model property name or the same value if value not found in the context.
50
64
  */
51
- _getAmfKey(property?: string, context?: Record<string, string>): string | undefined;
65
+ _getAmfKey(property?: string, context?: Record<string, string>): string;
52
66
  /**
53
67
  * Ensures that the model is AMF object.
54
68
  *
55
69
  * @param amf AMF json/ld model
56
70
  * @returns The API spec
57
71
  */
58
- _ensureAmfModel(amf: any): AmfDocument | undefined;
72
+ _ensureAmfModel(amf: any): IAmfDocument | undefined;
59
73
  /**
60
74
  * Ensures that the value is an array.
61
75
  * It returns undefined when there's no value.
@@ -72,7 +86,7 @@ export declare class AmfMixinInterface {
72
86
  * @param context A context to use. If not set, it looks for the context of the passed model
73
87
  * @returns Value for key
74
88
  */
75
- _getValue(model: DomainElement, untrustedKey: string, context?: Record<string, string>): string | number | boolean | undefined | null;
89
+ _getValue(model: IAmfDomainElement, untrustedKey: string, context?: Record<string, string>): string | number | boolean | undefined | null;
76
90
  /**
77
91
  * Gets values from a model as an array of `@value` properties.
78
92
  * @param model Amf model to extract the value from.
@@ -80,7 +94,7 @@ export declare class AmfMixinInterface {
80
94
  * @param context A context to use. If not set, it looks for the context of the passed model
81
95
  * @returns The value for key
82
96
  */
83
- _getValueArray(model: DomainElement, untrustedKey: string, context?: Record<string, string>): (string | number | boolean | null)[] | undefined;
97
+ _getValueArray(model: IAmfDomainElement, untrustedKey: string, context?: Record<string, string>): (string | number | boolean | null)[] | undefined;
84
98
  /**
85
99
  * Reads an array from the model.
86
100
  *
@@ -89,21 +103,21 @@ export declare class AmfMixinInterface {
89
103
  * @param context A context to use. If not set, it looks for the context of the passed model
90
104
  * @returns Value for the key
91
105
  */
92
- [getArrayItems](model?: DomainElement, untrustedKey?: string, context?: Record<string, string>): DomainElement[] | undefined;
106
+ [getArrayItems](model?: IAmfDomainElement, untrustedKey?: string, context?: Record<string, string>): IAmfDomainElement[] | undefined;
93
107
  /**
94
108
  * Reads the value of the `@id` property.
95
109
  * @param model Amf model to extract the value from.
96
110
  * @param untrustedKey Model key to search for the @id
97
111
  * @param context A context to use. If not set, it looks for the context of the passed model
98
112
  */
99
- _getLinkValue(model: DomainElement, untrustedKey: string, context?: Record<string, string>): string | undefined;
113
+ _getLinkValue(model: IAmfDomainElement, untrustedKey: string, context?: Record<string, string>): string | undefined;
100
114
  /**
101
115
  * Reads the list of value for the `@id` property.
102
116
  * @param model Amf model to extract the value from.
103
117
  * @param untrustedKey Model key to search for the @id
104
118
  * @param context A context to use. If not set, it looks for the context of the passed model
105
119
  */
106
- _getLinkValues(model: DomainElement, untrustedKey: string, context?: Record<string, string>): string[] | undefined;
120
+ _getLinkValues(model: IAmfDomainElement, untrustedKey: string, context?: Record<string, string>): string[] | undefined;
107
121
  /**
108
122
  * Checks if a model has a type.
109
123
  * @param model Model to test
@@ -111,14 +125,14 @@ export declare class AmfMixinInterface {
111
125
  * @param context A context to use. If not set, it looks for the context of the passed model
112
126
  * @returns True if model has a type.
113
127
  */
114
- _hasType(model?: DomainElement, type?: string, context?: Record<string, string>): boolean;
128
+ _hasType(model?: IAmfDomainElement, type?: string, context?: Record<string, string>): boolean;
115
129
  /**
116
130
  * Checks if a shape has a property.
117
131
  * @param shape The shape to test
118
132
  * @param untrustedKey Property name to test
119
133
  * @param context A context to use. If not set, it looks for the context of the passed model
120
134
  */
121
- _hasProperty(shape: DomainElement, untrustedKey: string, context?: Record<string, string>): boolean;
135
+ _hasProperty(shape: IAmfDomainElement, untrustedKey: string, context?: Record<string, string>): boolean;
122
136
  /**
123
137
  * Computes array value of a property in a model (shape).
124
138
  *
@@ -126,14 +140,14 @@ export declare class AmfMixinInterface {
126
140
  * @param untrustedKey Property name
127
141
  * @param context A context to use. If not set, it looks for the context of the passed model
128
142
  */
129
- _computePropertyArray(shape?: DomainElement, untrustedKey?: string, context?: Record<string, string>): (string | number | boolean | null | Object)[] | undefined;
143
+ _computePropertyArray(shape?: IAmfDomainElement, untrustedKey?: string, context?: Record<string, string>): (string | number | boolean | null | Object)[] | undefined;
130
144
  /**
131
145
  * Computes API version from the AMF model.
132
146
  *
133
147
  * @param amf
134
148
  * @param context A context to use. If not set, it looks for the context of the passed model
135
149
  */
136
- _computeApiVersion(amf?: AmfDocument, context?: Record<string, string>): string | undefined;
150
+ _computeApiVersion(amf?: IAmfDocument, context?: Record<string, string>): string | undefined;
137
151
  /**
138
152
  * Computes model's `encodes` property.
139
153
  *
@@ -141,7 +155,7 @@ export declare class AmfMixinInterface {
141
155
  * @param context A context to use. If not set, it looks for the context of the passed model
142
156
  * @returns List of encodes
143
157
  */
144
- _computeEncodes(model?: AmfDocument, context?: Record<string, string>): DomainElement | undefined;
158
+ _computeEncodes(model?: IAmfDocument, context?: Record<string, string>): IAmfDomainElement | undefined;
145
159
  /**
146
160
  * Computes list of declarations in the AMF api model.
147
161
  *
@@ -149,7 +163,7 @@ export declare class AmfMixinInterface {
149
163
  * @param context A context to use. If not set, it looks for the context of the passed model
150
164
  * @returns List of declarations
151
165
  */
152
- _computeDeclares(model?: AmfDocument, context?: Record<string, string>): DomainElement[] | undefined;
166
+ _computeDeclares(model?: IAmfDocument, context?: Record<string, string>): IAmfDomainElement[] | undefined;
153
167
  /**
154
168
  * Computes list of references in the AMF api model.
155
169
  *
@@ -157,7 +171,7 @@ export declare class AmfMixinInterface {
157
171
  * @param context A context to use. If not set, it looks for the context of the passed model
158
172
  * @returns List of declarations
159
173
  */
160
- _computeReferences(model?: AmfDocument, context?: Record<string, string>): DomainElement[] | undefined;
174
+ _computeReferences(model?: IAmfDocument, context?: Record<string, string>): IAmfDomainElement[] | undefined;
161
175
  /**
162
176
  * Computes AMF's `http://schema.org/WebAPI` model
163
177
  *
@@ -165,7 +179,7 @@ export declare class AmfMixinInterface {
165
179
  * @param context A context to use. If not set, it looks for the context of the passed model
166
180
  * @returns Web API declaration.
167
181
  */
168
- _computeWebApi(model?: AmfDocument, context?: Record<string, string>): WebApi | undefined;
182
+ _computeWebApi(model?: IAmfDocument, context?: Record<string, string>): IAmfWebApi | undefined;
169
183
  /**
170
184
  * Computes AMF's `http://schema.org/API` model
171
185
  *
@@ -173,28 +187,28 @@ export declare class AmfMixinInterface {
173
187
  * @param context A context to use. If not set, it looks for the context of the passed model
174
188
  * @returns API declaration.
175
189
  */
176
- _computeApi(model?: AmfDocument, context?: Record<string, string>): AsyncApi | WebApi | undefined;
190
+ _computeApi(model?: IAmfDocument, context?: Record<string, string>): IAmfAsyncApi | IAmfWebApi | undefined;
177
191
  /**
178
192
  * Returns whether an AMF node is a WebAPI node
179
193
  *
180
194
  * @param model AMF json/ld model for an API
181
195
  * @param context A context to use. If not set, it looks for the context of the passed model
182
196
  */
183
- _isWebAPI(model?: AmfDocument, context?: Record<string, string>): boolean;
197
+ _isWebAPI(model?: IAmfDocument, context?: Record<string, string>): boolean;
184
198
  /**
185
199
  * Returns whether an AMF node is an AsyncAPI node
186
200
  *
187
201
  * @param model AMF json/ld model for an API
188
202
  * @param context A context to use. If not set, it looks for the context of the passed model
189
203
  */
190
- _isAsyncAPI(model?: AmfDocument, context?: Record<string, string>): boolean;
204
+ _isAsyncAPI(model?: IAmfDocument, context?: Record<string, string>): boolean;
191
205
  /**
192
206
  * Returns whether an AMF node is an API node
193
207
  *
194
208
  * @param model AMF json/ld model for an API
195
209
  * @param context A context to use. If not set, it looks for the context of the passed model
196
210
  */
197
- _isAPI(model?: AmfDocument, context?: Record<string, string>): boolean;
211
+ _isAPI(model?: IAmfDocument, context?: Record<string, string>): boolean;
198
212
  /**
199
213
  * Determines whether a partial model is valid for reading servers from
200
214
  * Current valid values:
@@ -206,27 +220,27 @@ export declare class AmfMixinInterface {
206
220
  * to read servers
207
221
  * @private
208
222
  */
209
- _isValidServerPartial(model: DomainElement, context?: Record<string, string>): boolean;
223
+ _isValidServerPartial(model: IAmfDomainElement | IAmfDomainElement[], context?: Record<string, string>): boolean;
210
224
  /**
211
225
  * @param options Server query options
212
226
  * @param context A context to use. If not set, it looks for the context of the passed model
213
227
  * @returns List of servers for method, if defined, or endpoint, if defined, or root level
214
228
  */
215
- _getServers(options?: ServersQueryOptions, context?: Record<string, string>): Server[] | undefined;
229
+ _getServers(options?: ServersQueryOptions, context?: Record<string, string>): IAmfServer[] | undefined;
216
230
  /**
217
231
  * Computes value for the `expects` property.
218
232
  *
219
233
  * @param method AMF `supportedOperation` model
220
234
  * @param context A context to use. If not set, it looks for the context of the passed model
221
235
  */
222
- _computeExpects(method?: Operation, context?: Record<string, string>): Request | undefined;
236
+ _computeExpects(method?: IAmfOperation, context?: Record<string, string>): IAmfRequest | undefined;
223
237
  /**
224
238
  * Computes list of endpoints from a WebApi model.
225
239
  * @param webApi
226
240
  * @param context A context to use. If not set, it looks for the context of the passed model
227
241
  * @returns An array of endpoints.
228
242
  */
229
- _computeEndpoints(webApi?: WebApi, context?: Record<string, string>): EndPoint[] | undefined;
243
+ _computeEndpoints(webApi?: IAmfWebApi, context?: Record<string, string>): IAmfEndPoint[] | undefined;
230
244
  /**
231
245
  * Computes model for an endpoint documentation.
232
246
  *
@@ -235,7 +249,7 @@ export declare class AmfMixinInterface {
235
249
  * @param context A context to use. If not set, it looks for the context of the passed model
236
250
  * @returns An endpoint definition
237
251
  */
238
- _computeEndpointModel(webApi?: WebApi, id?: string, context?: Record<string, string>): EndPoint | undefined;
252
+ _computeEndpointModel(webApi?: IAmfWebApi, id?: string, context?: Record<string, string>): IAmfEndPoint | undefined;
239
253
  /**
240
254
  * Computes method for the method documentation.
241
255
  *
@@ -244,7 +258,7 @@ export declare class AmfMixinInterface {
244
258
  * @param context A context to use. If not set, it looks for the context of the passed model
245
259
  * @returns A method definition
246
260
  */
247
- _computeMethodModel(webApi?: WebApi, selected?: string, context?: Record<string, string>): Operation | undefined;
261
+ _computeMethodModel(webApi?: IAmfWebApi, selected?: string, context?: Record<string, string>): IAmfOperation | undefined;
248
262
  /**
249
263
  * Computes an endpoint for a method.
250
264
  * @param webApi The WebApi AMF model
@@ -252,7 +266,7 @@ export declare class AmfMixinInterface {
252
266
  * @param context A context to use. If not set, it looks for the context of the passed model
253
267
  * @returns An endpoint model of undefined.
254
268
  */
255
- _computeMethodEndpoint(webApi?: WebApi, methodId?: string, context?: Record<string, string>): EndPoint | undefined;
269
+ _computeMethodEndpoint(webApi?: IAmfWebApi, methodId?: string, context?: Record<string, string>): IAmfEndPoint | undefined;
256
270
  /**
257
271
  * Computes a list of methods for an endpoint that contains a method with
258
272
  * given id.
@@ -262,7 +276,7 @@ export declare class AmfMixinInterface {
262
276
  * @param context A context to use. If not set, it looks for the context of the passed model
263
277
  * @returns A list of sibling methods or undefined.
264
278
  */
265
- __computeMethodsListForMethod(webApi?: WebApi, methodId?: string, context?: Record<string, string>): Operation[] | undefined;
279
+ __computeMethodsListForMethod(webApi?: IAmfWebApi, methodId?: string, context?: Record<string, string>): IAmfOperation[] | undefined;
266
280
  /**
267
281
  * Computes a type documentation model.
268
282
  *
@@ -272,14 +286,14 @@ export declare class AmfMixinInterface {
272
286
  * @param context A context to use. If not set, it looks for the context of the passed model
273
287
  * @returns A type definition
274
288
  */
275
- _computeType(declares?: DomainElement[], references?: DomainElement[], selected?: string, context?: Record<string, string>): Shape | undefined;
289
+ _computeType(declares?: IAmfDomainElement[], references?: IAmfDomainElement[], selected?: string, context?: Record<string, string>): IAmfShape | undefined;
276
290
  /**
277
291
  * Finds a type in the model declares and references.
278
292
  * @param domainId The domain id of the type (AMF's shape).
279
293
  * @param context A context to use. If not set, it looks for the context of the passed model
280
294
  * @returns The AMF shape or undefined when not found.
281
295
  */
282
- [findAmfType](domainId?: string, context?: Record<string, string>): Shape | undefined;
296
+ [findAmfType](domainId?: string, context?: Record<string, string>): IAmfShape | undefined;
283
297
  /**
284
298
  * Searches for an object in model's references list.
285
299
  * It does not resolve the object (useful for handling links correctly).
@@ -288,7 +302,7 @@ export declare class AmfMixinInterface {
288
302
  * @param context A context to use. If not set, it looks for the context of the passed model
289
303
  * @returns The domain object or undefined.
290
304
  */
291
- [findReferenceObject](domainId: string, context?: Record<string, string>): DomainElement | undefined;
305
+ [findReferenceObject](domainId: string, context?: Record<string, string>): IAmfDomainElement | undefined;
292
306
  /**
293
307
  * Computes a type model from a reference (library for example).
294
308
  * @param reference AMF model for a reference to extract the data from
@@ -296,7 +310,7 @@ export declare class AmfMixinInterface {
296
310
  * @param context A context to use. If not set, it looks for the context of the passed model
297
311
  * @returns Type definition or undefined if not found.
298
312
  */
299
- _computeReferenceType(reference?: DomainElement, selected?: string, context?: Record<string, string>): Shape | undefined;
313
+ _computeReferenceType(reference?: IAmfDomainElement, selected?: string, context?: Record<string, string>): IAmfShape | undefined;
300
314
  /**
301
315
  * Computes a documentation model.
302
316
  *
@@ -304,7 +318,7 @@ export declare class AmfMixinInterface {
304
318
  * @param selected Selected shape
305
319
  * @param context A context to use. If not set, it looks for the context of the passed model
306
320
  */
307
- _computeDocument(webApi?: DomainElement, selected?: string, context?: Record<string, string>): DomainElement | undefined;
321
+ _computeDocument(webApi?: IAmfDomainElement, selected?: string, context?: Record<string, string>): IAmfDomainElement | undefined;
308
322
  /**
309
323
  * Resolves a reference to an external fragment.
310
324
  *
@@ -319,7 +333,7 @@ export declare class AmfMixinInterface {
319
333
  * @param context A context to use. If not set, it looks for the context of the passed model
320
334
  * @returns Resolved shape for given reference, undefined otherwise
321
335
  */
322
- _getLinkTarget(amf?: AmfDocument, id?: string, context?: Record<string, string>): DomainElement | undefined;
336
+ _getLinkTarget(amf?: IAmfDocument, id?: string, context?: Record<string, string>): IAmfDomainElement | undefined;
323
337
  /**
324
338
  * Resolves the shape of a given reference.
325
339
  *
@@ -328,7 +342,7 @@ export declare class AmfMixinInterface {
328
342
  * @param context A context to use. If not set, it looks for the context of the passed model
329
343
  * @returns Resolved shape for given reference, undefined otherwise
330
344
  */
331
- _obtainShapeFromReferences(references?: DomainElement[], id?: string, context?: Record<string, string>): DomainElement | undefined;
345
+ _obtainShapeFromReferences(references?: IAmfDomainElement[], id?: string, context?: Record<string, string>): IAmfDomainElement | undefined;
332
346
  /**
333
347
  * Searches a node with a given ID in an array
334
348
  *
@@ -336,8 +350,8 @@ export declare class AmfMixinInterface {
336
350
  * @param id Id to search for
337
351
  * @returns Node with the given ID when found, undefined otherwise
338
352
  */
339
- _findById(array?: DomainElement[], id?: string): DomainElement | undefined;
340
- _getReferenceId(amf?: AmfDocument, id?: string, context?: Record<string, string>): DomainElement | undefined;
353
+ _findById(array?: IAmfDomainElement[], id?: string): IAmfDomainElement | undefined;
354
+ _getReferenceId(amf?: IAmfDocument, id?: string, context?: Record<string, string>): IAmfDomainElement | undefined;
341
355
  _resolveRecursive(shape: any, context?: Record<string, string>): void;
342
356
  /**
343
357
  * Merge two shapes together. If the resulting shape has one of the "special merge" keys,
@@ -371,7 +385,7 @@ export declare class AmfMixinInterface {
371
385
  * @param context A context to use. If not set, it looks for the context of the passed model
372
386
  * @returns Type definition or undefined if not found.
373
387
  */
374
- findSecurityScheme(domainId: string, context?: Record<string, string>): SecurityScheme | undefined;
388
+ findSecurityScheme(domainId: string, context?: Record<string, string>): IAmfSecurityScheme | undefined;
375
389
  /**
376
390
  * Computes a security model from a reference (library for example).
377
391
  * @param reference AMF model for a reference to extract the data from
@@ -379,14 +393,14 @@ export declare class AmfMixinInterface {
379
393
  * @param context A context to use. If not set, it looks for the context of the passed model
380
394
  * @returns Type definition or undefined if not found.
381
395
  */
382
- [computeReferenceSecurity](reference: DomainElement, selected: string, context?: Record<string, string>): SecurityScheme | undefined;
396
+ [computeReferenceSecurity](reference: IAmfDomainElement, selected: string, context?: Record<string, string>): IAmfSecurityScheme | undefined;
383
397
  /**
384
398
  * Collects domain objects by a domain type.
385
399
  * @param source The element to search for declare/encoded objects.
386
400
  * @param type The domain type
387
401
  * @param context A context to use. If not set, it looks for the context of the passed model
388
402
  */
389
- getByType(source: DomainElement, type: string, context?: Record<string, string>): DomainElement[];
403
+ getByType(source: IAmfDomainElement, type: string, context?: Record<string, string>): IAmfDomainElement[];
390
404
  }
391
405
  /**
392
406
  * 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 undefined;
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 AmfDocument */ (references[i]);
762
+ const ref = /** @type IAmfDocument */ (references[i]);
757
763
  const declares = this._computeDeclares(ref, context);
758
764
  if (!Array.isArray(declares)) {
759
765
  continue;