@api-client/core 0.19.10 → 0.19.12

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 (466) hide show
  1. package/LICENSE.md +9 -63
  2. package/bin/test.ts +1 -12
  3. package/build/src/browser.d.ts +3 -16
  4. package/build/src/browser.d.ts.map +1 -1
  5. package/build/src/browser.js +2 -17
  6. package/build/src/browser.js.map +1 -1
  7. package/build/src/events/EventTypes.d.ts +0 -6
  8. package/build/src/events/EventTypes.d.ts.map +1 -1
  9. package/build/src/events/EventTypes.js +0 -2
  10. package/build/src/events/EventTypes.js.map +1 -1
  11. package/build/src/events/Events.d.ts +0 -2
  12. package/build/src/events/Events.d.ts.map +1 -1
  13. package/build/src/events/Events.js +0 -2
  14. package/build/src/events/Events.js.map +1 -1
  15. package/build/src/index.d.ts +3 -16
  16. package/build/src/index.d.ts.map +1 -1
  17. package/build/src/index.js +2 -17
  18. package/build/src/index.js.map +1 -1
  19. package/build/src/modeling/ApiValidation.d.ts +26 -0
  20. package/build/src/modeling/ApiValidation.d.ts.map +1 -0
  21. package/build/src/modeling/ApiValidation.js +73 -0
  22. package/build/src/modeling/ApiValidation.js.map +1 -0
  23. package/build/src/modeling/Bindings.d.ts +3 -3
  24. package/build/src/modeling/Bindings.d.ts.map +1 -1
  25. package/build/src/modeling/Bindings.js.map +1 -1
  26. package/build/src/modeling/DomainAssociation.d.ts +5 -5
  27. package/build/src/modeling/DomainAssociation.d.ts.map +1 -1
  28. package/build/src/modeling/DomainAssociation.js.map +1 -1
  29. package/build/src/modeling/DomainEntity.d.ts +2 -3
  30. package/build/src/modeling/DomainEntity.d.ts.map +1 -1
  31. package/build/src/modeling/DomainEntity.js +1 -1
  32. package/build/src/modeling/DomainEntity.js.map +1 -1
  33. package/build/src/modeling/DomainProperty.d.ts +2 -3
  34. package/build/src/modeling/DomainProperty.d.ts.map +1 -1
  35. package/build/src/modeling/DomainProperty.js +1 -1
  36. package/build/src/modeling/DomainProperty.js.map +1 -1
  37. package/build/src/modeling/DomainValidation.d.ts +10 -4
  38. package/build/src/modeling/DomainValidation.d.ts.map +1 -1
  39. package/build/src/modeling/DomainValidation.js +55 -72
  40. package/build/src/modeling/DomainValidation.js.map +1 -1
  41. package/build/src/modeling/ai/types.d.ts +2 -2
  42. package/build/src/modeling/ai/types.d.ts.map +1 -1
  43. package/build/src/modeling/ai/types.js.map +1 -1
  44. package/build/src/{amf → modeling/amf}/DataValueGenerator.d.ts +1 -1
  45. package/build/src/modeling/amf/DataValueGenerator.d.ts.map +1 -0
  46. package/build/src/{amf → modeling/amf}/DataValueGenerator.js +2 -3
  47. package/build/src/modeling/amf/DataValueGenerator.js.map +1 -0
  48. package/build/src/modeling/amf/ShapeGenerator.d.ts +20 -20
  49. package/build/src/modeling/amf/ShapeGenerator.d.ts.map +1 -1
  50. package/build/src/modeling/amf/ShapeGenerator.js +16 -18
  51. package/build/src/modeling/amf/ShapeGenerator.js.map +1 -1
  52. package/build/src/modeling/amf/core_types.d.ts +9 -0
  53. package/build/src/modeling/amf/core_types.d.ts.map +1 -0
  54. package/build/src/modeling/amf/core_types.js +45 -0
  55. package/build/src/modeling/amf/core_types.js.map +1 -0
  56. package/build/src/modeling/validation/api_model_rules.d.ts +1 -2
  57. package/build/src/modeling/validation/api_model_rules.d.ts.map +1 -1
  58. package/build/src/modeling/validation/api_model_rules.js +0 -26
  59. package/build/src/modeling/validation/api_model_rules.js.map +1 -1
  60. package/build/src/modeling/validation/association_validation.d.ts +4 -4
  61. package/build/src/modeling/validation/association_validation.d.ts.map +1 -1
  62. package/build/src/modeling/validation/association_validation.js.map +1 -1
  63. package/build/src/modeling/validation/entity_validation.d.ts +6 -6
  64. package/build/src/modeling/validation/entity_validation.d.ts.map +1 -1
  65. package/build/src/modeling/validation/entity_validation.js.map +1 -1
  66. package/build/src/modeling/validation/property_validation.d.ts +3 -3
  67. package/build/src/modeling/validation/property_validation.d.ts.map +1 -1
  68. package/build/src/modeling/validation/property_validation.js.map +1 -1
  69. package/build/src/modeling/validation/rules.d.ts +2 -2
  70. package/build/src/modeling/validation/rules.d.ts.map +1 -1
  71. package/build/src/modeling/validation/rules.js.map +1 -1
  72. package/build/src/modeling/validation/semantic_validation.d.ts +2 -2
  73. package/build/src/modeling/validation/semantic_validation.d.ts.map +1 -1
  74. package/build/src/modeling/validation/semantic_validation.js.map +1 -1
  75. package/build/src/models/http-flows/LegacyTranslator.js +1 -1
  76. package/build/src/models/http-flows/LegacyTranslator.js.map +1 -1
  77. package/build/src/runtime/http-runner/HttpFlows.js +1 -1
  78. package/build/src/runtime/http-runner/HttpFlows.js.map +1 -1
  79. package/build/tsconfig.tsbuildinfo +1 -1
  80. package/eslint.config.js +0 -1
  81. package/package.json +11 -14
  82. package/src/events/EventTypes.ts +0 -2
  83. package/src/events/Events.ts +0 -2
  84. package/src/modeling/ApiValidation.ts +86 -0
  85. package/src/modeling/Bindings.ts +3 -3
  86. package/src/modeling/DomainAssociation.ts +5 -5
  87. package/src/modeling/DomainEntity.ts +3 -4
  88. package/src/modeling/DomainProperty.ts +3 -4
  89. package/src/modeling/DomainValidation.ts +57 -74
  90. package/src/modeling/ai/types.ts +2 -2
  91. package/src/{amf → modeling/amf}/DataValueGenerator.ts +3 -4
  92. package/src/modeling/amf/ShapeGenerator.ts +45 -61
  93. package/src/modeling/amf/core_types.ts +47 -0
  94. package/src/modeling/validation/api_model_rules.ts +1 -31
  95. package/src/modeling/validation/association_validation.ts +6 -6
  96. package/src/modeling/validation/entity_validation.ts +11 -11
  97. package/src/modeling/validation/property_validation.ts +4 -4
  98. package/src/modeling/validation/rules.ts +6 -3
  99. package/src/modeling/validation/semantic_validation.ts +11 -11
  100. package/src/models/http-flows/LegacyTranslator.ts +1 -1
  101. package/src/runtime/http-runner/HttpFlows.ts +1 -1
  102. package/tests/unit/{amf → modeling/amf}/data_value_generator.spec.ts +2 -2
  103. package/tests/unit/modeling/amf/shape_generator.spec.ts +146 -167
  104. package/tests/unit/modeling/domain_asociation.spec.ts +13 -13
  105. package/tests/unit/modeling/domain_validation.spec.ts +7 -13
  106. package/tests/unit/modeling/validation/api_model_rules.spec.ts +11 -9
  107. package/tests/unit/runtime/runners/http_assertion_runner.spec.ts +1 -1
  108. package/tests/unit/runtime/runners/http_flow_runner.spec.ts +1 -1
  109. package/tests/unit/runtime/runners/project_runner.spec.ts +1 -1
  110. package/tests/unit/runtime/runners/request_runner.spec.ts +1 -1
  111. package/tests/unit/runtime/runners/serial_runner.spec.ts +1 -1
  112. package/build/src/amf/AmfMixin.d.ts +0 -396
  113. package/build/src/amf/AmfMixin.d.ts.map +0 -1
  114. package/build/src/amf/AmfMixin.js +0 -1138
  115. package/build/src/amf/AmfMixin.js.map +0 -1
  116. package/build/src/amf/AmfSerializer.d.ts +0 -137
  117. package/build/src/amf/AmfSerializer.d.ts.map +0 -1
  118. package/build/src/amf/AmfSerializer.js +0 -1947
  119. package/build/src/amf/AmfSerializer.js.map +0 -1
  120. package/build/src/amf/AmfTypes.d.ts +0 -25
  121. package/build/src/amf/AmfTypes.d.ts.map +0 -1
  122. package/build/src/amf/AmfTypes.js +0 -143
  123. package/build/src/amf/AmfTypes.js.map +0 -1
  124. package/build/src/amf/ApiExampleGenerator.d.ts +0 -40
  125. package/build/src/amf/ApiExampleGenerator.d.ts.map +0 -1
  126. package/build/src/amf/ApiExampleGenerator.js +0 -112
  127. package/build/src/amf/ApiExampleGenerator.js.map +0 -1
  128. package/build/src/amf/ApiMonacoSchemaGenerator.d.ts +0 -68
  129. package/build/src/amf/ApiMonacoSchemaGenerator.d.ts.map +0 -1
  130. package/build/src/amf/ApiMonacoSchemaGenerator.js +0 -248
  131. package/build/src/amf/ApiMonacoSchemaGenerator.js.map +0 -1
  132. package/build/src/amf/ApiSchemaGenerator.d.ts +0 -56
  133. package/build/src/amf/ApiSchemaGenerator.d.ts.map +0 -1
  134. package/build/src/amf/ApiSchemaGenerator.js +0 -94
  135. package/build/src/amf/ApiSchemaGenerator.js.map +0 -1
  136. package/build/src/amf/ApiSchemaValues.d.ts +0 -111
  137. package/build/src/amf/ApiSchemaValues.d.ts.map +0 -1
  138. package/build/src/amf/ApiSchemaValues.js +0 -463
  139. package/build/src/amf/ApiSchemaValues.js.map +0 -1
  140. package/build/src/amf/DataValueGenerator.d.ts.map +0 -1
  141. package/build/src/amf/DataValueGenerator.js.map +0 -1
  142. package/build/src/amf/Parsing.d.ts +0 -48
  143. package/build/src/amf/Parsing.d.ts.map +0 -1
  144. package/build/src/amf/Parsing.js +0 -2
  145. package/build/src/amf/Parsing.js.map +0 -1
  146. package/build/src/amf/Utils.d.ts +0 -37
  147. package/build/src/amf/Utils.d.ts.map +0 -1
  148. package/build/src/amf/Utils.js +0 -169
  149. package/build/src/amf/Utils.js.map +0 -1
  150. package/build/src/amf/data-node/DataNodeBase.d.ts +0 -34
  151. package/build/src/amf/data-node/DataNodeBase.d.ts.map +0 -1
  152. package/build/src/amf/data-node/DataNodeBase.js +0 -77
  153. package/build/src/amf/data-node/DataNodeBase.js.map +0 -1
  154. package/build/src/amf/data-node/JsonDataNodeGenerator.d.ts +0 -15
  155. package/build/src/amf/data-node/JsonDataNodeGenerator.d.ts.map +0 -1
  156. package/build/src/amf/data-node/JsonDataNodeGenerator.js +0 -23
  157. package/build/src/amf/data-node/JsonDataNodeGenerator.js.map +0 -1
  158. package/build/src/amf/data-node/UrlEncodedDataNodeGenerator.d.ts +0 -14
  159. package/build/src/amf/data-node/UrlEncodedDataNodeGenerator.d.ts.map +0 -1
  160. package/build/src/amf/data-node/UrlEncodedDataNodeGenerator.js +0 -48
  161. package/build/src/amf/data-node/UrlEncodedDataNodeGenerator.js.map +0 -1
  162. package/build/src/amf/data-node/XmlDataNodeGenerator.d.ts +0 -22
  163. package/build/src/amf/data-node/XmlDataNodeGenerator.d.ts.map +0 -1
  164. package/build/src/amf/data-node/XmlDataNodeGenerator.js +0 -34
  165. package/build/src/amf/data-node/XmlDataNodeGenerator.js.map +0 -1
  166. package/build/src/amf/definitions/Amf.d.ts +0 -363
  167. package/build/src/amf/definitions/Amf.d.ts.map +0 -1
  168. package/build/src/amf/definitions/Amf.js +0 -3
  169. package/build/src/amf/definitions/Amf.js.map +0 -1
  170. package/build/src/amf/definitions/Api.d.ts +0 -383
  171. package/build/src/amf/definitions/Api.d.ts.map +0 -1
  172. package/build/src/amf/definitions/Api.js +0 -2
  173. package/build/src/amf/definitions/Api.js.map +0 -1
  174. package/build/src/amf/definitions/Base.d.ts +0 -12
  175. package/build/src/amf/definitions/Base.d.ts.map +0 -1
  176. package/build/src/amf/definitions/Base.js +0 -2
  177. package/build/src/amf/definitions/Base.js.map +0 -1
  178. package/build/src/amf/definitions/Namespace.d.ts +0 -327
  179. package/build/src/amf/definitions/Namespace.d.ts.map +0 -1
  180. package/build/src/amf/definitions/Namespace.js +0 -346
  181. package/build/src/amf/definitions/Namespace.js.map +0 -1
  182. package/build/src/amf/definitions/Shapes.d.ts +0 -312
  183. package/build/src/amf/definitions/Shapes.d.ts.map +0 -1
  184. package/build/src/amf/definitions/Shapes.js +0 -87
  185. package/build/src/amf/definitions/Shapes.js.map +0 -1
  186. package/build/src/amf/models/AmfDataNode.d.ts +0 -67
  187. package/build/src/amf/models/AmfDataNode.d.ts.map +0 -1
  188. package/build/src/amf/models/AmfDataNode.js +0 -192
  189. package/build/src/amf/models/AmfDataNode.js.map +0 -1
  190. package/build/src/amf/shape/ShapeBase.d.ts +0 -74
  191. package/build/src/amf/shape/ShapeBase.d.ts.map +0 -1
  192. package/build/src/amf/shape/ShapeBase.js +0 -93
  193. package/build/src/amf/shape/ShapeBase.js.map +0 -1
  194. package/build/src/amf/shape/ShapeJsonSchemaGenerator.d.ts +0 -47
  195. package/build/src/amf/shape/ShapeJsonSchemaGenerator.d.ts.map +0 -1
  196. package/build/src/amf/shape/ShapeJsonSchemaGenerator.js +0 -420
  197. package/build/src/amf/shape/ShapeJsonSchemaGenerator.js.map +0 -1
  198. package/build/src/amf/shape/ShapeXmlSchemaGenerator.d.ts +0 -85
  199. package/build/src/amf/shape/ShapeXmlSchemaGenerator.d.ts.map +0 -1
  200. package/build/src/amf/shape/ShapeXmlSchemaGenerator.js +0 -852
  201. package/build/src/amf/shape/ShapeXmlSchemaGenerator.js.map +0 -1
  202. package/build/src/events/amf/AmfEventTypes.d.ts +0 -7
  203. package/build/src/events/amf/AmfEventTypes.d.ts.map +0 -1
  204. package/build/src/events/amf/AmfEventTypes.js +0 -7
  205. package/build/src/events/amf/AmfEventTypes.js.map +0 -1
  206. package/build/src/events/amf/AmfEvents.d.ts +0 -34
  207. package/build/src/events/amf/AmfEvents.d.ts.map +0 -1
  208. package/build/src/events/amf/AmfEvents.js +0 -63
  209. package/build/src/events/amf/AmfEvents.js.map +0 -1
  210. package/build/src/mocking/RandExp.d.ts +0 -55
  211. package/build/src/mocking/RandExp.d.ts.map +0 -1
  212. package/build/src/mocking/RandExp.js +0 -302
  213. package/build/src/mocking/RandExp.js.map +0 -1
  214. package/build/src/mocking/lib/ret.d.ts +0 -16
  215. package/build/src/mocking/lib/ret.d.ts.map +0 -1
  216. package/build/src/mocking/lib/ret.js +0 -284
  217. package/build/src/mocking/lib/ret.js.map +0 -1
  218. package/data/apis/APIC-187/APIC-187.raml +0 -21
  219. package/data/apis/APIC-187/dataType.raml +0 -132
  220. package/data/apis/APIC-187/example.raml +0 -84
  221. package/data/apis/APIC-188/APIC-188.raml +0 -21
  222. package/data/apis/APIC-188/dataType.raml +0 -132
  223. package/data/apis/APIC-188/example.raml +0 -84
  224. package/data/apis/APIC-233/APIC-233.raml +0 -15
  225. package/data/apis/APIC-391/APIC-391.raml +0 -44
  226. package/data/apis/APIC-391/examples/post-body-request-example.raml +0 -7
  227. package/data/apis/APIC-483/APIC-483.raml +0 -16
  228. package/data/apis/APIC-483/example/list-of-bank-succ.json +0 -32
  229. package/data/apis/APIC-483/schema/response-retrieve-list-bank.json +0 -68
  230. package/data/apis/APIC-487/APIC-487.raml +0 -36
  231. package/data/apis/APIC-655/APIC-655.raml +0 -44
  232. package/data/apis/APIC-655/delivery.json +0 -12
  233. package/data/apis/APIC-689/APIC-689.raml +0 -20
  234. package/data/apis/APIC-690/APIC-690.raml +0 -17
  235. package/data/apis/APIC-690/datatypes/Address.raml +0 -10
  236. package/data/apis/APIC-690/datatypes/Customer.raml +0 -17
  237. package/data/apis/APIC-690/examples/CustomerExample2.raml +0 -17
  238. package/data/apis/APIC-690/examples/CustomersExample.raml +0 -34
  239. package/data/apis/SE-10469/Purchase-Order-oagis-id-dd32f9c6c01048a19e15c423c9c741ae.json +0 -1383
  240. package/data/apis/SE-10469/SE-10469.raml +0 -11
  241. package/data/apis/SE-13092/Examples/PersonExample.raml +0 -7
  242. package/data/apis/SE-13092/SE-13092.raml +0 -37
  243. package/data/apis/SE-13092/datatypes/Address.raml +0 -5
  244. package/data/apis/SE-13092/datatypes/InlineType.raml +0 -5
  245. package/data/apis/SE-13092/datatypes/Person.raml +0 -15
  246. package/data/apis/SE-22063/SE-22063.raml +0 -14
  247. package/data/apis/SE-22063/stock.raml +0 -41
  248. package/data/apis/amf-helper-api/amf-helper-api.raml +0 -1024
  249. package/data/apis/amf-helper-api/examples/comment-example.json +0 -42
  250. package/data/apis/amf-helper-api/examples/commentCreateRequest-example.json +0 -7
  251. package/data/apis/amf-helper-api/examples/commentList-example.json +0 -48
  252. package/data/apis/amf-helper-api/examples/person.json +0 -14
  253. package/data/apis/amf-helper-api/examples/person.raml +0 -13
  254. package/data/apis/amf-helper-api/examples/person.xml +0 -14
  255. package/data/apis/amf-helper-api/libraries/comment-lib.raml +0 -143
  256. package/data/apis/amf-helper-api/library.raml +0 -7
  257. package/data/apis/amf-helper-api/schemas/person.json +0 -104
  258. package/data/apis/amf-helper-api/schemas/person.xsd +0 -26
  259. package/data/apis/amf-helper-api/traits/file.raml +0 -33
  260. package/data/apis/amf-helper-api/traits/pagination.raml +0 -80
  261. package/data/apis/amf-helper-api/traits/results.raml +0 -19
  262. package/data/apis/amf-helper-api/traits/visibility.raml +0 -14
  263. package/data/apis/amf-helper-api/types/app-person.raml +0 -101
  264. package/data/apis/amf-helper-api/types/dimensions.raml +0 -24
  265. package/data/apis/amf-helper-api/types/external-type.raml +0 -7
  266. package/data/apis/amf-helper-api/types/image.raml +0 -23
  267. package/data/apis/amf-helper-api/types/product.raml +0 -52
  268. package/data/apis/amf-helper-api/types/resource.raml +0 -11
  269. package/data/apis/amf-helper-api/types/standard-request.raml +0 -50
  270. package/data/apis/amf-helper-api/types/user.raml +0 -37
  271. package/data/apis/arc-demo-api/arc-demo-api.raml +0 -468
  272. package/data/apis/arc-demo-api/examples/e400.xml +0 -4
  273. package/data/apis/arc-demo-api/examples/e401.xml +0 -4
  274. package/data/apis/arc-demo-api/examples/e404.xml +0 -4
  275. package/data/apis/arc-demo-api/examples/image.xml +0 -5
  276. package/data/apis/arc-demo-api/examples/messages-example.json +0 -22
  277. package/data/apis/arc-demo-api/examples/messages-sent-example.json +0 -15
  278. package/data/apis/arc-demo-api/examples/person.json +0 -14
  279. package/data/apis/arc-demo-api/examples/person.url.encoded +0 -1
  280. package/data/apis/arc-demo-api/examples/person.xml +0 -14
  281. package/data/apis/arc-demo-api/examples/product.xml +0 -9
  282. package/data/apis/arc-demo-api/library.raml +0 -36
  283. package/data/apis/arc-demo-api/resourceTypes/app-person.raml +0 -49
  284. package/data/apis/arc-demo-api/resourceTypes/example-types.raml +0 -45
  285. package/data/apis/arc-demo-api/resourceTypes/image.raml +0 -23
  286. package/data/apis/arc-demo-api/resourceTypes/message-sent-type.raml +0 -23
  287. package/data/apis/arc-demo-api/resourceTypes/message-type.raml +0 -33
  288. package/data/apis/arc-demo-api/resourceTypes/product.raml +0 -52
  289. package/data/apis/arc-demo-api/resourceTypes/resource.raml +0 -11
  290. package/data/apis/arc-demo-api/schemas/error-response.xsd +0 -11
  291. package/data/apis/arc-demo-api/schemas/image.xsd +0 -11
  292. package/data/apis/arc-demo-api/schemas/person.json +0 -104
  293. package/data/apis/arc-demo-api/schemas/person.xsd +0 -26
  294. package/data/apis/arc-demo-api/schemas/product.xsd +0 -17
  295. package/data/apis/arc-demo-api/securitySchemes/basic.raml +0 -5
  296. package/data/apis/arc-demo-api/securitySchemes/oauth_2_0.raml +0 -29
  297. package/data/apis/arc-demo-api/securitySchemes/x-custom.raml +0 -26
  298. package/data/apis/arc-demo-api/traits/adminable.raml +0 -23
  299. package/data/apis/arc-demo-api/traits/pagination.raml +0 -83
  300. package/data/apis/arc-demo-api/traits/rate-limited.raml +0 -9
  301. package/data/apis/async-api/async-api.yaml +0 -96
  302. package/data/apis/example-generator-api/contact-email-example.raml +0 -6
  303. package/data/apis/example-generator-api/contact-example.raml +0 -5
  304. package/data/apis/example-generator-api/contact-fax-example.raml +0 -5
  305. package/data/apis/example-generator-api/contact-website-example.raml +0 -2
  306. package/data/apis/example-generator-api/example-1.raml +0 -6
  307. package/data/apis/example-generator-api/example-2.raml +0 -9
  308. package/data/apis/example-generator-api/example-3.raml +0 -4
  309. package/data/apis/example-generator-api/example-4.raml +0 -2
  310. package/data/apis/example-generator-api/example-5.raml +0 -4
  311. package/data/apis/example-generator-api/example-6.raml +0 -2
  312. package/data/apis/example-generator-api/example-7.raml +0 -5
  313. package/data/apis/example-generator-api/example-generator-api.raml +0 -423
  314. package/data/apis/example-generator-api/example.json +0 -14
  315. package/data/apis/example-generator-api/example.xml +0 -15
  316. package/data/apis/example-generator-api/example.xsd +0 -26
  317. package/data/apis/example-generator-api/examples/employee.raml +0 -7
  318. package/data/apis/example-generator-api/examples/employees.raml +0 -7
  319. package/data/apis/example-generator-api/linked-named-example.raml +0 -21
  320. package/data/apis/example-generator-api/named-example-with-link.raml +0 -5
  321. package/data/apis/example-generator-api/named-example.raml +0 -9
  322. package/data/apis/example-generator-api/user-json-example.raml +0 -17
  323. package/data/apis/example-generator-api/user-raml-example.raml +0 -37
  324. package/data/apis/example-generator-api/user.json +0 -8
  325. package/data/apis/example-generator-api/user.raml +0 -18
  326. package/data/apis/example-generator-api/users-json-example.raml +0 -17
  327. package/data/apis/example-generator-api/users-raml-example.raml +0 -32
  328. package/data/apis/example-generator-api/users.json +0 -8
  329. package/data/apis/expanded-api/expanded-api.raml +0 -8
  330. package/data/apis/flattened-api/flattened-api.raml +0 -8
  331. package/data/apis/multiple-servers/multiple-servers.yaml +0 -112
  332. package/data/apis/oas-3-api/oas-3-api.yaml +0 -356
  333. package/data/apis/oas-date/oas-date.yaml +0 -28
  334. package/data/apis/oas-types/oas-types.yaml +0 -159
  335. package/data/apis/oas-unions/oas-unions.yaml +0 -75
  336. package/data/apis/petstore/petstore.yaml +0 -954
  337. package/data/apis/raml-date/raml-date.raml +0 -28
  338. package/data/apis/recursive/recursive.raml +0 -14
  339. package/data/apis/schema-api/examples/person.json +0 -14
  340. package/data/apis/schema-api/examples/person.raml +0 -14
  341. package/data/apis/schema-api/examples/person.url.encoded +0 -1
  342. package/data/apis/schema-api/examples/person.xml +0 -14
  343. package/data/apis/schema-api/library/demo-types.raml +0 -43
  344. package/data/apis/schema-api/schema-api.raml +0 -656
  345. package/data/apis/schema-api/schemas/person.json +0 -104
  346. package/data/apis/schema-api/schemas/person.xsd +0 -26
  347. package/data/apis/schema-api/types/DemoPerson.raml +0 -67
  348. package/data/apis/secured-api/oauth-2-custom-settings.raml +0 -143
  349. package/data/apis/secured-api/oauth2-header-delivery.raml +0 -13
  350. package/data/apis/secured-api/oauth2-no-delivery.raml +0 -8
  351. package/data/apis/secured-api/oauth2-no-grants.raml +0 -12
  352. package/data/apis/secured-api/oauth2-pkce.raml +0 -13
  353. package/data/apis/secured-api/oauth2-query-delivery.raml +0 -13
  354. package/data/apis/secured-api/oauth_1_0.raml +0 -8
  355. package/data/apis/secured-api/oauth_1_0_no-settings.raml +0 -3
  356. package/data/apis/secured-api/oauth_1_0_no-signature.raml +0 -7
  357. package/data/apis/secured-api/oauth_1_0_signature.raml +0 -8
  358. package/data/apis/secured-api/passthrough-querystring.raml +0 -16
  359. package/data/apis/secured-api/passthrough.raml +0 -24
  360. package/data/apis/secured-api/secured-api.raml +0 -231
  361. package/data/apis/secured-api/x-custom.raml +0 -33
  362. package/data/apis/secured-api/x-other.raml +0 -29
  363. package/data/apis/secured-api/x-query-string.raml +0 -16
  364. package/data/apis/tracked-examples/datatypes/employee.raml +0 -5
  365. package/data/apis/tracked-examples/examples/employee.raml +0 -4
  366. package/data/apis/tracked-examples/examples/employees.raml +0 -8
  367. package/data/apis/tracked-examples/tracked-to-linked.raml +0 -28
  368. package/data/model.js +0 -129
  369. package/data/models/APIC-187.json +0 -11416
  370. package/data/models/APIC-188.json +0 -11416
  371. package/data/models/APIC-233.json +0 -539
  372. package/data/models/APIC-391.json +0 -1903
  373. package/data/models/APIC-483.json +0 -3110
  374. package/data/models/APIC-487.json +0 -1225
  375. package/data/models/APIC-655.json +0 -3145
  376. package/data/models/APIC-689.json +0 -797
  377. package/data/models/APIC-690.json +0 -5992
  378. package/data/models/SE-10469.json +0 -22898
  379. package/data/models/SE-13092.json +0 -2769
  380. package/data/models/SE-22063.json +0 -2314
  381. package/data/models/amf-helper-api.json +0 -84457
  382. package/data/models/arc-demo-api.json +0 -52041
  383. package/data/models/async-api.json +0 -3227
  384. package/data/models/example-generator-api.json +0 -45209
  385. package/data/models/expanded-api.json +0 -251
  386. package/data/models/flattened-api.json +0 -251
  387. package/data/models/multiple-servers.json +0 -2769
  388. package/data/models/oas-3-api.json +0 -10590
  389. package/data/models/oas-date.json +0 -637
  390. package/data/models/oas-types.json +0 -5352
  391. package/data/models/oas-unions.json +0 -1935
  392. package/data/models/petstore.json +0 -27712
  393. package/data/models/raml-date.json +0 -1114
  394. package/data/models/recursive.json +0 -610
  395. package/data/models/schema-api.json +0 -35527
  396. package/data/models/secured-api.json +0 -21071
  397. package/data/models/tracked-to-linked.json +0 -1914
  398. package/src/amf/AmfMixin.ts +0 -1726
  399. package/src/amf/AmfSerializer.ts +0 -2358
  400. package/src/amf/AmfTypes.ts +0 -147
  401. package/src/amf/ApiExampleGenerator.ts +0 -122
  402. package/src/amf/ApiMonacoSchemaGenerator.ts +0 -332
  403. package/src/amf/ApiSchemaGenerator.ts +0 -115
  404. package/src/amf/ApiSchemaValues.ts +0 -509
  405. package/src/amf/Parsing.ts +0 -50
  406. package/src/amf/Utils.ts +0 -172
  407. package/src/amf/data-node/DataNodeBase.ts +0 -83
  408. package/src/amf/data-node/JsonDataNodeGenerator.ts +0 -24
  409. package/src/amf/data-node/README.md +0 -3
  410. package/src/amf/data-node/UrlEncodedDataNodeGenerator.ts +0 -49
  411. package/src/amf/data-node/XmlDataNodeGenerator.ts +0 -46
  412. package/src/amf/definitions/Amf.ts +0 -440
  413. package/src/amf/definitions/Api.ts +0 -445
  414. package/src/amf/definitions/Base.ts +0 -13
  415. package/src/amf/definitions/Namespace.ts +0 -357
  416. package/src/amf/definitions/Shapes.ts +0 -438
  417. package/src/amf/models/AmfDataNode.ts +0 -210
  418. package/src/amf/shape/README.md +0 -4
  419. package/src/amf/shape/ShapeBase.ts +0 -174
  420. package/src/amf/shape/ShapeJsonSchemaGenerator.ts +0 -457
  421. package/src/amf/shape/ShapeXmlSchemaGenerator.ts +0 -933
  422. package/src/events/amf/AmfEventTypes.ts +0 -6
  423. package/src/events/amf/AmfEvents.ts +0 -78
  424. package/src/mocking/RandExp.ts +0 -335
  425. package/src/mocking/lib/ret.ts +0 -279
  426. package/tests/unit/amf/APIC-187.spec.ts +0 -41
  427. package/tests/unit/amf/APIC-188.spec.ts +0 -30
  428. package/tests/unit/amf/APIC-233.spec.ts +0 -32
  429. package/tests/unit/amf/APIC-391.spec.ts +0 -39
  430. package/tests/unit/amf/APIC-487.spec.ts +0 -44
  431. package/tests/unit/amf/APIC-655.spec.ts +0 -41
  432. package/tests/unit/amf/APIC-689.spec.ts +0 -28
  433. package/tests/unit/amf/APIC-690.spec.ts +0 -93
  434. package/tests/unit/amf/AmfLoader.ts +0 -538
  435. package/tests/unit/amf/AmfMixin.spec.ts +0 -1707
  436. package/tests/unit/amf/ApiExampleGenerator.spec.ts +0 -250
  437. package/tests/unit/amf/ApiMonacoSchemaGenerator.spec.ts +0 -183
  438. package/tests/unit/amf/ApiSchemaValues.spec.ts +0 -602
  439. package/tests/unit/amf/Namepsace.spec.ts +0 -494
  440. package/tests/unit/amf/SE-10469.spec.ts +0 -35
  441. package/tests/unit/amf/SE-13092.spec.ts +0 -64
  442. package/tests/unit/amf/SE-22063.spec.ts +0 -45
  443. package/tests/unit/amf/raml-examples.spec.ts +0 -43
  444. package/tests/unit/amf/schema_gen_array.spec.ts +0 -199
  445. package/tests/unit/amf/schema_gen_oas.spec.ts +0 -140
  446. package/tests/unit/amf/schema_gen_object.spec.ts +0 -279
  447. package/tests/unit/amf/schema_gen_scalar.spec.ts +0 -143
  448. package/tests/unit/amf/schema_gen_union.spec.ts +0 -401
  449. package/tests/unit/amf/schema_gen_unknown.spec.ts +0 -42
  450. package/tests/unit/amf/schema_gen_xml.spec.ts +0 -726
  451. package/tests/unit/amf/serializer/APIC-483.spec.ts +0 -36
  452. package/tests/unit/amf/serializer/Anotations.spec.ts +0 -50
  453. package/tests/unit/amf/serializer/Api.spec.ts +0 -210
  454. package/tests/unit/amf/serializer/Documentation.spec.ts +0 -52
  455. package/tests/unit/amf/serializer/Endpoints.spec.ts +0 -172
  456. package/tests/unit/amf/serializer/Operations.spec.ts +0 -330
  457. package/tests/unit/amf/serializer/Parameters.spec.ts +0 -149
  458. package/tests/unit/amf/serializer/PayloadExamples.spec.ts +0 -152
  459. package/tests/unit/amf/serializer/Security.spec.ts +0 -626
  460. package/tests/unit/amf/serializer/Server.spec.ts +0 -78
  461. package/tests/unit/amf/serializer/Shapes.spec.ts +0 -304
  462. package/tests/unit/amf/serializer/SourceMaps.spec.ts +0 -52
  463. package/tests/unit/amf/shapes/ShapeXmlSchemaGenerator.spec.ts +0 -28
  464. package/tests/unit/amf/tracked-to-linked.spec.ts +0 -90
  465. package/tests/unit/amf/xml-data-processing.spec.ts +0 -217
  466. package/tests/unit/events/amf.spec.ts +0 -151
@@ -1 +0,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YAC/B,QAAQ,EAAE,GAAG,QAAQ,UAAU;YAC/B,QAAQ,EAAE,GAAG,QAAQ,UAAU;YAC/B,IAAI,EAAE,GAAG,QAAQ,MAAM;YACvB,GAAG,EAAE,GAAG,QAAQ,KAAK;YACrB,EAAE,EAAE,GAAG,QAAQ,IAAI;YACnB,MAAM,EAAE,GAAG,QAAQ,QAAQ;YAC3B,IAAI,EAAE,GAAG,QAAQ,MAAM;SACxB;QACD,wBAAwB;QACxB,SAAS,EAAE;YACT,GAAG,EAAE,YAAY;YACjB,OAAO,EAAE,GAAG,YAAY,SAAS;YACjC,MAAM,EAAE,GAAG,YAAY,QAAQ;YAC/B,MAAM,EAAE,GAAG,YAAY,QAAQ;YAC/B,OAAO,EAAE,GAAG,YAAY,SAAS;YACjC,IAAI,EAAE,GAAG,YAAY,MAAM;YAC3B,MAAM,EAAE,GAAG,YAAY,QAAQ;YAC/B,KAAK,EAAE,GAAG,YAAY,OAAO;YAC7B,GAAG,EAAE,GAAG,YAAY,KAAK;YACzB,QAAQ,EAAE,GAAG,YAAY,UAAU;YACnC,IAAI,EAAE,GAAG,YAAY,MAAM;YAC3B,IAAI,EAAE,GAAG,YAAY,MAAM;YAC3B,YAAY,EAAE,GAAG,YAAY,cAAc;YAC3C,IAAI,EAAE,GAAG,YAAY,MAAM;SAC5B;QACD,SAAS,EAAE;YACT,GAAG,EAAE,YAAY;YAEjB,GAAG,EAAE,GAAG,YAAY,KAAK;YACzB,MAAM,EAAE,GAAG,YAAY,QAAQ;SAChC;QAED,SAAS,EAAE;YACT,GAAG,EAAE,YAAY;YAEjB,GAAG,EAAE,GAAG,YAAY,KAAK;YACzB,MAAM,EAAE,GAAG,YAAY,QAAQ;SAChC;KACF;CACF,CAAA","sourcesContent":["const amlKey = 'http://a.ml/'\nconst vocKey = `${amlKey}vocabularies/`\nconst docKey = `${vocKey}document#`\nconst coreKey = `${vocKey}core#`\nconst secKey = `${vocKey}security#`\nconst contractKey = `${vocKey}apiContract#`\nconst bindingKey = `${vocKey}apiBinding#`\nconst shapesKey = `${vocKey}shapes#`\nconst dataKey = `${vocKey}data#`\nconst dsmKey = `${vocKey}document-source-maps#`\nconst w3Key = 'http://www.w3.org/'\nconst shaclKey = `${w3Key}ns/shacl#`\nconst xmlSchemaKey = `${w3Key}2001/XMLSchema#`\nconst rdfSyntaxKey = `${w3Key}1999/02/22-rdf-syntax-ns#`\nconst rdfSchemaKey = `${w3Key}2000/01/rdf-schema#`\n\n/**\n * AMF namespace.\n */\nexport const AmfNamespace = {\n aml: {\n key: 'http://a.ml/',\n vocabularies: {\n key: vocKey,\n document: {\n key: docKey,\n Module: `${docKey}Module`,\n Document: `${docKey}Document`,\n SecuritySchemeFragment: `${docKey}SecuritySchemeFragment`,\n UserDocumentation: `${docKey}UserDocumentation`,\n DataType: `${docKey}DataType`,\n NamedExamples: `${docKey}NamedExamples`,\n DomainElement: `${docKey}DomainElement`,\n DomainProperty: `${docKey}DomainProperty`,\n ParametrizedDeclaration: `${docKey}ParametrizedDeclaration`,\n ExternalDomainElement: `${docKey}ExternalDomainElement`,\n\n customDomainProperties: `${docKey}customDomainProperties`,\n encodes: `${docKey}encodes`,\n declares: `${docKey}declares`,\n references: `${docKey}references`,\n examples: `${docKey}examples`,\n linkTarget: `${docKey}link-target`,\n linkLabel: `${docKey}link-label`,\n referenceId: `${docKey}reference-id`,\n structuredValue: `${docKey}structuredValue`,\n raw: `${docKey}raw`,\n extends: `${docKey}extends`,\n value: `${docKey}value`,\n name: `${docKey}name`,\n strict: `${docKey}strict`,\n deprecated: `${docKey}deprecated`,\n location: `${docKey}location`,\n variable: `${docKey}variable`,\n target: `${docKey}target`,\n dataNode: `${docKey}dataNode`,\n root: `${docKey}root`,\n usage: `${docKey}usage`,\n version: `${docKey}version`,\n },\n core: {\n key: coreKey,\n CreativeWork: `${coreKey}CreativeWork`,\n\n version: `${coreKey}version`,\n urlTemplate: `${coreKey}urlTemplate`,\n displayName: `${coreKey}displayName`,\n title: `${coreKey}title`,\n name: `${coreKey}name`,\n description: `${coreKey}description`,\n documentation: `${coreKey}documentation`,\n summary: `${coreKey}summary`,\n provider: `${coreKey}provider`,\n email: `${coreKey}email`,\n url: `${coreKey}url`,\n termsOfService: `${coreKey}termsOfService`,\n license: `${coreKey}license`,\n mediaType: `${coreKey}mediaType`,\n extensionName: `${coreKey}extensionName`,\n deprecated: `${coreKey}deprecated`,\n },\n security: {\n key: secKey,\n ParametrizedSecurityScheme: `${secKey}ParametrizedSecurityScheme`,\n SecuritySchemeFragment: `${secKey}SecuritySchemeFragment`,\n SecurityScheme: `${secKey}SecurityScheme`,\n OAuth1Settings: `${secKey}OAuth1Settings`,\n OAuth2Settings: `${secKey}OAuth2Settings`,\n OAuth2Flow: `${secKey}OAuth2Flow`,\n Scope: `${secKey}Scope`,\n Settings: `${secKey}Settings`,\n HttpSettings: `${secKey}HttpSettings`,\n ApiKeySettings: `${secKey}ApiKeySettings`,\n OpenIdConnectSettings: `${secKey}OpenIdConnectSettings`,\n SecurityRequirement: `${secKey}SecurityRequirement`,\n security: `${secKey}security`,\n scheme: `${secKey}scheme`,\n schemes: `${secKey}schemes`,\n settings: `${secKey}settings`,\n name: `${secKey}name`,\n type: `${secKey}type`,\n scope: `${secKey}scope`,\n accessTokenUri: `${secKey}accessTokenUri`,\n authorizationUri: `${secKey}authorizationUri`,\n authorizationGrant: `${secKey}authorizationGrant`,\n flows: `${secKey}flows`,\n flow: `${secKey}flow`,\n signature: `${secKey}signature`,\n tokenCredentialsUri: `${secKey}tokenCredentialsUri`,\n requestTokenUri: `${secKey}requestTokenUri`,\n refreshUri: `${secKey}refreshUri`,\n /**\n * @deprecated Use `SecurityRequirement` instead.\n */\n securityRequirement: `${secKey}SecurityRequirement`,\n openIdConnectUrl: `${secKey}openIdConnectUrl`,\n bearerFormat: `${secKey}bearerFormat`,\n in: `${secKey}in`,\n },\n apiContract: {\n key: contractKey,\n Payload: `${contractKey}Payload`,\n Request: `${contractKey}Request`,\n Response: `${contractKey}Response`,\n EndPoint: `${contractKey}EndPoint`,\n Parameter: `${contractKey}Parameter`,\n Operation: `${contractKey}Operation`,\n WebAPI: `${contractKey}WebAPI`,\n API: `${contractKey}API`,\n AsyncAPI: `${contractKey}AsyncAPI`,\n UserDocumentationFragment: `${contractKey}UserDocumentationFragment`,\n Example: `${contractKey}Example`,\n Server: `${contractKey}Server`,\n ParametrizedResourceType: `${contractKey}ParametrizedResourceType`,\n ParametrizedTrait: `${contractKey}ParametrizedTrait`,\n Callback: `${contractKey}Callback`,\n TemplatedLink: `${contractKey}TemplatedLink`,\n IriTemplateMapping: `${contractKey}IriTemplateMapping`,\n Tag: `${contractKey}Tag`,\n Message: `${contractKey}Message`,\n DomainExtension: `${contractKey}DomainExtension`,\n\n header: `${contractKey}header`,\n parameter: `${contractKey}parameter`,\n paramName: `${contractKey}paramName`,\n uriParameter: `${contractKey}uriParameter`,\n cookieParameter: `${contractKey}cookieParameter`,\n variable: `${contractKey}variable`,\n payload: `${contractKey}payload`,\n server: `${contractKey}server`,\n path: `${contractKey}path`,\n url: `${contractKey}url`,\n scheme: `${contractKey}scheme`,\n endpoint: `${contractKey}endpoint`,\n queryString: `${contractKey}queryString`,\n accepts: `${contractKey}accepts`,\n guiSummary: `${contractKey}guiSummary`,\n binding: `${contractKey}binding`,\n response: `${contractKey}response`,\n returns: `${contractKey}returns`,\n expects: `${contractKey}expects`,\n examples: `${contractKey}examples`,\n supportedOperation: `${contractKey}supportedOperation`,\n messageId: `${contractKey}messageId`,\n statusCode: `${contractKey}statusCode`,\n method: `${contractKey}method`,\n required: `${contractKey}required`,\n callback: `${contractKey}callback`,\n expression: `${contractKey}expression`,\n link: `${contractKey}link`,\n linkExpression: `${contractKey}linkExpression`,\n templateVariable: `${contractKey}templateVariable`,\n mapping: `${contractKey}mapping`,\n operationId: `${contractKey}operationId`,\n protocol: `${contractKey}protocol`,\n protocolVersion: `${contractKey}protocolVersion`,\n headerSchema: `${contractKey}headerSchema`,\n contentType: `${contractKey}contentType`,\n allowEmptyValue: `${contractKey}allowEmptyValue`,\n style: `${contractKey}style`,\n explode: `${contractKey}explode`,\n allowReserved: `${contractKey}allowReserved`,\n tag: `${contractKey}tag`,\n tags: `${contractKey}tags`,\n },\n apiBinding: {\n key: bindingKey,\n binding: `${bindingKey}binding`,\n bindings: `${bindingKey}bindings`,\n messageKey: `${bindingKey}messageKey`,\n type: `${bindingKey}type`,\n },\n shapes: {\n key: shapesKey,\n Shape: `${shapesKey}Shape`,\n ScalarShape: `${shapesKey}ScalarShape`,\n ArrayShape: `${shapesKey}ArrayShape`,\n UnionShape: `${shapesKey}UnionShape`,\n NilShape: `${shapesKey}NilShape`,\n FileShape: `${shapesKey}FileShape`,\n AnyShape: `${shapesKey}AnyShape`,\n SchemaShape: `${shapesKey}SchemaShape`,\n MatrixShape: `${shapesKey}MatrixShape`,\n TupleShape: `${shapesKey}TupleShape`,\n RecursiveShape: `${shapesKey}RecursiveShape`,\n DataTypeFragment: `${shapesKey}DataTypeFragment`,\n XMLSerializer: `${shapesKey}XMLSerializer`,\n\n // data types\n number: `${shapesKey}number`,\n integer: `${shapesKey}integer`,\n long: `${shapesKey}long`,\n double: `${shapesKey}double`,\n boolean: `${shapesKey}boolean`,\n float: `${shapesKey}float`,\n nil: `${shapesKey}nil`,\n password: `${shapesKey}password`,\n\n // extra data types for Protocol buffers\n int32: `${shapesKey}int32`,\n int64: `${shapesKey}int64`,\n uint32: `${shapesKey}uint32`,\n uint64: `${shapesKey}uint64`,\n sint32: `${shapesKey}sint32`,\n sint64: `${shapesKey}sint64`,\n fixed32: `${shapesKey}fixed32`,\n fixed64: `${shapesKey}fixed64`,\n sfixed32: `${shapesKey}sfixed32`,\n sfixed64: `${shapesKey}sfixed64`,\n\n // API shapes\n dateTimeOnly: `${shapesKey}dateTimeOnly`,\n\n range: `${shapesKey}range`,\n items: `${shapesKey}items`,\n anyOf: `${shapesKey}anyOf`,\n fileType: `${shapesKey}fileType`,\n schema: `${shapesKey}schema`,\n xmlSerialization: `${shapesKey}xmlSerialization`,\n xmlName: `${shapesKey}xmlName`,\n xmlAttribute: `${shapesKey}xmlAttribute`,\n xmlWrapped: `${shapesKey}xmlWrapped`,\n xmlNamespace: `${shapesKey}xmlNamespace`,\n xmlPrefix: `${shapesKey}xmlPrefix`,\n readOnly: `${shapesKey}readOnly`,\n writeOnly: `${shapesKey}writeOnly`,\n deprecated: `${shapesKey}deprecated`,\n fixPoint: `${shapesKey}fixPoint`,\n discriminator: `${shapesKey}discriminator`,\n discriminatorValue: `${shapesKey}discriminatorValue`,\n format: `${shapesKey}format`,\n multipleOf: `${shapesKey}multipleOf`,\n uniqueItems: `${shapesKey}uniqueItems`,\n },\n data: {\n key: dataKey,\n Scalar: `${dataKey}Scalar`,\n Object: `${dataKey}Object`,\n Array: `${dataKey}Array`,\n Node: `${dataKey}Node`,\n\n value: `${dataKey}value`,\n type: `${dataKey}type`,\n description: `${dataKey}description`,\n required: `${dataKey}required`,\n displayName: `${dataKey}displayName`,\n minLength: `${dataKey}minLength`,\n maxLength: `${dataKey}maxLength`,\n default: `${dataKey}default`,\n multipleOf: `${dataKey}multipleOf`,\n minimum: `${dataKey}minimum`,\n maximum: `${dataKey}maximum`,\n enum: `${dataKey}enum`,\n pattern: `${dataKey}pattern`,\n items: `${dataKey}items`,\n format: `${dataKey}format`,\n example: `${dataKey}example`,\n examples: `${dataKey}examples`,\n },\n docSourceMaps: {\n key: dsmKey,\n SourceMap: `${dsmKey}SourceMap`,\n sources: `${dsmKey}sources`,\n element: `${dsmKey}element`,\n value: `${dsmKey}value`,\n declaredElement: `${dsmKey}declared-element`,\n trackedElement: `${dsmKey}tracked-element`,\n parsedJsonSchema: `${dsmKey}parsed-json-schema`,\n autoGeneratedName: `${dsmKey}auto-generated-name`,\n lexical: `${dsmKey}lexical`,\n synthesizedField: `${dsmKey}synthesized-field`,\n },\n },\n },\n w3: {\n key: w3Key,\n shacl: {\n key: shaclKey,\n Shape: `${shaclKey}Shape`,\n NodeShape: `${shaclKey}NodeShape`,\n SchemaShape: `${shaclKey}SchemaShape`,\n PropertyShape: `${shaclKey}PropertyShape`,\n in: `${shaclKey}in`,\n defaultValue: `${shaclKey}defaultValue`,\n defaultValueStr: `${shaclKey}defaultValueStr`,\n pattern: `${shaclKey}pattern`,\n minInclusive: `${shaclKey}minInclusive`,\n maxInclusive: `${shaclKey}maxInclusive`,\n multipleOf: `${shaclKey}multipleOf`,\n minLength: `${shaclKey}minLength`,\n maxLength: `${shaclKey}maxLength`,\n fileType: `${shaclKey}fileType`,\n and: `${shaclKey}and`,\n property: `${shaclKey}property`,\n name: `${shaclKey}name`,\n raw: `${shaclKey}raw`,\n datatype: `${shaclKey}datatype`,\n minCount: `${shaclKey}minCount`,\n maxCount: `${shaclKey}maxCount`,\n xone: `${shaclKey}xone`,\n not: `${shaclKey}not`,\n or: `${shaclKey}or`,\n closed: `${shaclKey}closed`,\n path: `${shaclKey}path`,\n },\n // XML schema data types\n xmlSchema: {\n key: xmlSchemaKey,\n boolean: `${xmlSchemaKey}boolean`,\n string: `${xmlSchemaKey}string`,\n number: `${xmlSchemaKey}number`,\n integer: `${xmlSchemaKey}integer`,\n long: `${xmlSchemaKey}long`,\n double: `${xmlSchemaKey}double`,\n float: `${xmlSchemaKey}float`,\n nil: `${xmlSchemaKey}nil`,\n dateTime: `${xmlSchemaKey}dateTime`,\n time: `${xmlSchemaKey}time`,\n date: `${xmlSchemaKey}date`,\n base64Binary: `${xmlSchemaKey}base64Binary`,\n byte: `${xmlSchemaKey}byte`,\n },\n rdfSyntax: {\n key: rdfSyntaxKey,\n\n Seq: `${rdfSyntaxKey}Seq`,\n member: `${rdfSyntaxKey}member`,\n },\n\n rdfSchema: {\n key: rdfSchemaKey,\n\n Seq: `${rdfSchemaKey}Seq`,\n member: `${rdfSchemaKey}member`,\n },\n },\n}\n"]}
@@ -1,312 +0,0 @@
1
- import { IApiDocumentation, IApiDocumentSourceMaps } from './Api.js';
2
- import { IApiDomainProperty } from './Base.js';
3
- export type IShapeUnion = IApiScalarShape | IApiNodeShape | IApiUnionShape | IApiFileShape | IApiSchemaShape | IApiAnyShape | IApiArrayShape | IApiTupleShape | IApiRecursiveShape;
4
- export interface IApiAssociationShape {
5
- /**
6
- * This is a custom property that not available in the AMF library and is used with data associations.
7
- *
8
- * Whether the target entity should be embedded under the property name.
9
- * When false, this association is just an information that one entity depend on another.
10
- * When true, it changes the definition of the schema having this association to
11
- * add the target schema properties inline with this property.
12
- *
13
- * **When true**
14
- *
15
- * ```javascript
16
- * // generated schema for `address` association
17
- * {
18
- * "name": "example value",
19
- * "address": {
20
- * "city": "example value",
21
- * ...
22
- * }
23
- * }
24
- * ```
25
- *
26
- * **When false**
27
- *
28
- * ```javascript
29
- * // generated schema for `address` association
30
- * {
31
- * "name": "example value",
32
- * "address": "the key of the referenced schema"
33
- * }
34
- * ```
35
- */
36
- linked?: boolean;
37
- /**
38
- * When the association has multiple targets the union type should be
39
- * set to describe which union this is.
40
- *
41
- * Possible values are:
42
- *
43
- * - allOf - To validate against `allOf`, the given data must be valid against
44
- * all of the given sub-schemas. When generating, it's a sum of all properties.
45
- * - anyOf - To validate against `anyOf`, the given data must be valid against
46
- * any (one or more) of the given sub-schemas. When generation a schema, it takes first union schema.
47
- * - oneOf - To validate against `oneOf`, the given data must be valid against
48
- * exactly one of the given sub-schemas. It behaves the same as `anyOf` when generating a schema
49
- * - not - The `not` keyword declares that an instance validates if it doesn’t
50
- * validate against the given sub-schema. It has no use when generating a schema.
51
- *
52
- * @default anyOf
53
- */
54
- unionType?: 'allOf' | 'anyOf' | 'oneOf' | 'not';
55
- }
56
- export interface IApiDataExample extends IApiDomainProperty {
57
- name?: string;
58
- displayName?: string;
59
- description?: string;
60
- /**
61
- * This is the "raw" property of AMF
62
- */
63
- value?: string;
64
- structuredValue?: IApiDataNodeUnion;
65
- strict: boolean;
66
- mediaType?: string;
67
- location?: string;
68
- sourceMaps?: IApiDocumentSourceMaps;
69
- }
70
- export declare function xmlSerializer(id: string): IApiXmlSerializer;
71
- export declare function shape(id: string): IApiShape;
72
- export declare function anyShape(id: string): IApiAnyShape;
73
- export declare function nodeShape(id: string): IApiNodeShape;
74
- export declare function scalarShape(id: string): IApiScalarShape;
75
- export declare function unionShape(id: string): IApiUnionShape;
76
- export declare function fileShape(id: string): IApiFileShape;
77
- export declare function arrayShape(id: string): IApiArrayShape;
78
- export declare function tupleShape(id: string): IApiTupleShape;
79
- export declare function propertyShape(id: string): IApiPropertyShape;
80
- export declare function recursiveShape(id: string, fixedId?: string): IApiRecursiveShape;
81
- export interface IApiShape extends IApiDomainProperty {
82
- /**
83
- * Enum values for this shape.
84
- */
85
- values: IApiDataNodeUnion[];
86
- /**
87
- * The list of shapes that this shape inherits from
88
- */
89
- inherits: IShapeUnion[];
90
- /**
91
- * The `anyOf` union type.
92
- */
93
- or: IShapeUnion[];
94
- /**
95
- * The `allOf` union type.
96
- */
97
- and: IShapeUnion[];
98
- /**
99
- * The `oneOf` union type.
100
- */
101
- xone: IShapeUnion[];
102
- /**
103
- * The name of the shape in the system.
104
- */
105
- name?: string;
106
- /**
107
- * The display name for the shape in the UI.
108
- */
109
- displayName?: string;
110
- /**
111
- * The description of the shape.
112
- */
113
- description?: string;
114
- /**
115
- * The default value encoded as a string
116
- */
117
- defaultValueStr?: string;
118
- /**
119
- * The description of the default value of the shape.
120
- */
121
- defaultValue?: IApiDataNodeUnion;
122
- /**
123
- * Whether the shape is deprecated.
124
- */
125
- deprecated?: boolean;
126
- /**
127
- * Whether the shape is a read only shape (disallow writes to the value)
128
- */
129
- readOnly?: boolean;
130
- /**
131
- * Whether the shape can only be written to (disallow reading the value)
132
- */
133
- writeOnly?: boolean;
134
- not?: IShapeUnion;
135
- /**
136
- * A label that appeared on a link.
137
- */
138
- linkLabel?: string;
139
- sourceMaps?: IApiDocumentSourceMaps;
140
- }
141
- /**
142
- * A property of an API operation.
143
- */
144
- export interface IApiPropertyShape<T = IShapeUnion> extends IApiShape {
145
- /**
146
- * The path of the property. Essentially, it is link generated by the AMF library
147
- * where the fragment part is the name of the property.
148
- */
149
- path?: string;
150
- /**
151
- * The parameter shape definition
152
- */
153
- range?: T;
154
- /**
155
- * When > 0 then the parameter is required.
156
- */
157
- minCount?: number;
158
- maxCount?: number;
159
- }
160
- export interface IApiAnyShape extends IApiShape {
161
- documentation?: IApiDocumentation;
162
- /**
163
- * Description of how the shape should be serialized as XML.
164
- */
165
- xmlSerialization: IApiXmlSerializer;
166
- /**
167
- * Examples defined for the shape.
168
- */
169
- examples: IApiDataExample[];
170
- }
171
- /**
172
- * Describes an object shape.
173
- */
174
- export interface IApiNodeShape extends IApiAnyShape {
175
- minProperties?: number;
176
- maxProperties?: number;
177
- closed?: boolean;
178
- customShapeProperties: string[];
179
- customShapePropertyDefinitions: string[];
180
- discriminator?: string;
181
- discriminatorValue?: string;
182
- properties: IApiPropertyShape[];
183
- dependencies: string[];
184
- }
185
- export interface IApiXmlSerializer extends IApiDomainProperty {
186
- /**
187
- * Whether this property should be represented as an attribute of the parent shape.
188
- *
189
- * ```
190
- * <Person name="John Doe"></Person>
191
- * ```
192
- */
193
- attribute?: boolean;
194
- /**
195
- * When the property is an array (has the `multiple` set to true in the data model)
196
- * then it tells that the list of values should be wrapped with a parent
197
- * element:
198
- *
199
- * ```
200
- * <Person>
201
- * <Person fullName="John Doe"></Person>
202
- * <Person fullName="Other Doe"></Person>
203
- * </Person>
204
- * ```
205
- *
206
- * Use this with the combination with `name` to describe the name of the wrapped
207
- * element
208
- *
209
- * ```
210
- * <people>
211
- * <Person fullName="John Doe"></Person>
212
- * </people>
213
- * ```
214
- *
215
- * Note, this is mutually exclusive with `attribute`.
216
- */
217
- wrapped?: boolean;
218
- /**
219
- * The name of the attribute or a wrapped property to use when serializing the property.
220
- *
221
- * Attribute name
222
- * ```xml
223
- * <Person fullName="John Doe"></Person>
224
- * ```
225
- *
226
- * Wrapped name
227
- * ```xml
228
- * <people>
229
- * <Person name="John Doe"></Person>
230
- * </people>
231
- * ```
232
- */
233
- name?: string;
234
- /**
235
- * The XML namespace to use.
236
- *
237
- * ```xml
238
- * <Person ns:name="John Doe"></Person>
239
- * ```
240
- */
241
- namespace?: string;
242
- /**
243
- * Name prefix
244
- *
245
- * ```xml
246
- * <ns:Person name="John Doe"></ns:Person>
247
- * ```
248
- */
249
- prefix?: string;
250
- sourceMaps?: IApiDocumentSourceMaps;
251
- }
252
- export interface IApiScalarShape extends IApiAnyShape {
253
- dataType?: string;
254
- pattern?: string;
255
- minLength?: number;
256
- maxLength?: number;
257
- minimum?: number;
258
- maximum?: number;
259
- exclusiveMinimum?: boolean;
260
- exclusiveMaximum?: boolean;
261
- format?: string;
262
- multipleOf?: number;
263
- }
264
- export interface IApiFileShape extends IApiAnyShape {
265
- fileTypes?: string[];
266
- pattern?: string;
267
- minLength?: number;
268
- maxLength?: number;
269
- minimum?: number;
270
- maximum?: number;
271
- exclusiveMinimum?: boolean;
272
- exclusiveMaximum?: boolean;
273
- format?: string;
274
- multipleOf?: number;
275
- }
276
- export interface IApiSchemaShape extends IApiAnyShape {
277
- mediaType?: string;
278
- raw?: string;
279
- }
280
- export interface IApiUnionShape extends IApiAnyShape {
281
- anyOf: IShapeUnion[];
282
- }
283
- export interface IApiDataArrangeShape extends IApiAnyShape {
284
- minItems?: number;
285
- maxItems?: number;
286
- uniqueItems?: boolean;
287
- }
288
- export interface IApiArrayShape<T = IShapeUnion> extends IApiDataArrangeShape {
289
- items?: T;
290
- }
291
- export interface IApiTupleShape<T = IShapeUnion> extends IApiDataArrangeShape {
292
- items: T[];
293
- additionalItems?: boolean;
294
- }
295
- export interface IApiRecursiveShape extends IApiShape {
296
- fixPoint: string;
297
- }
298
- export interface IApiDataNode extends IApiDomainProperty {
299
- name?: string;
300
- }
301
- export interface IApiObjectNode extends IApiDataNode {
302
- properties: Record<string, IApiDataNodeUnion>;
303
- }
304
- export interface IApiScalarNode extends IApiDataNode {
305
- value?: string;
306
- dataType?: string;
307
- }
308
- export interface IApiArrayNode extends IApiDataNode {
309
- members: IApiDataNodeUnion[];
310
- }
311
- export type IApiDataNodeUnion = IApiDataNode | IApiObjectNode | IApiScalarNode | IApiArrayNode;
312
- //# sourceMappingURL=Shapes.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Shapes.d.ts","sourceRoot":"","sources":["../../../../src/amf/definitions/Shapes.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAA;AACpE,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAA;AAE9C,MAAM,MAAM,WAAW,GACnB,eAAe,GACf,aAAa,GACb,cAAc,GACd,aAAa,GACb,eAAe,GACf,YAAY,GACZ,cAAc,GACd,cAAc,GACd,kBAAkB,CAAA;AAEtB,MAAM,WAAW,oBAAoB;IACnC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA8BG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB;;;;;;;;;;;;;;;;OAgBG;IACH,SAAS,CAAC,EAAE,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,KAAK,CAAA;CAChD;AAED,MAAM,WAAW,eAAgB,SAAQ,kBAAkB;IACzD,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,eAAe,CAAC,EAAE,iBAAiB,CAAA;IACnC,MAAM,EAAE,OAAO,CAAA;IACf,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,UAAU,CAAC,EAAE,sBAAsB,CAAA;CACpC;AAED,wBAAgB,aAAa,CAAC,EAAE,EAAE,MAAM,GAAG,iBAAiB,CAM3D;AAED,wBAAgB,KAAK,CAAC,EAAE,EAAE,MAAM,GAAG,SAAS,CAY3C;AAED,wBAAgB,QAAQ,CAAC,EA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,CAAC,EAAE,MAAM,CAAA;IACjB,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB;AAED,MAAM,WAAW,cAAc,CAAC,CAAC,GAAG,WAAW,CAAE,SAAQ,oBAAoB;IAC3E,KAAK,CAAC,EAAE,CAAC,CAAA;CACV;AAED,MAAM,WAAW,cAAc,CAAC,CAAC,GAAG,WAAW,CAAE,SAAQ,oBAAoB;IAC3E,KAAK,EAAE,CAAC,EAAE,CAAA;IACV,eAAe,CAAC,EAAE,OAAO,CAAA;CAC1B;AAED,MAAM,WAAW,kBAAmB,SAAQ,SAAS;IACnD,QAAQ,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,WAAW,YAAa,SAAQ,kBAAkB;IACtD,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAED,MAAM,WAAW,cAAe,SAAQ,YAAY;IAClD,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAA;CAC9C;AAED,MAAM,WAAW,cAAe,SAAQ,YAAY;IAClD,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB;AAED,MAAM,WAAW,aAAc,SAAQ,YAAY;IACjD,OAAO,EAAE,iBAAiB,EAAE,CAAA;CAC7B;AAED,MAAM,MAAM,iBAAiB,GAAG,YAAY,GAAG,cAAc,GAAG,cAAc,GAAG,aAAa,CAAA"}
@@ -1,87 +0,0 @@
1
- import { IAmfAnyTypes, IAmfArrayTypes, IAmfFileTypes, IAmfNodeTypes, IAmfPropertyTypes, IAmfRecursiveTypes, IAmfScalarTypes, IAmfTupleTypes, IAmfUnionTypes, IAmfXmlSerializationTypes, } from '../AmfTypes.js';
2
- export function xmlSerializer(id) {
3
- return {
4
- id: `xml-serializer-${id}`,
5
- types: IAmfXmlSerializationTypes,
6
- customDomainProperties: [],
7
- };
8
- }
9
- export function shape(id) {
10
- const result = {
11
- id,
12
- types: [],
13
- values: [],
14
- inherits: [],
15
- or: [],
16
- and: [],
17
- xone: [],
18
- customDomainProperties: [],
19
- };
20
- return result;
21
- }
22
- export function anyShape(id) {
23
- const result = {
24
- ...shape(id),
25
- types: IAmfAnyTypes,
26
- examples: [],
27
- xmlSerialization: xmlSerializer(id),
28
- };
29
- return result;
30
- }
31
- export function nodeShape(id) {
32
- const result = anyShape(id);
33
- result.types = IAmfNodeTypes;
34
- result.id = `node-shape-${id}`;
35
- return {
36
- ...result,
37
- properties: [],
38
- dependencies: [],
39
- customShapeProperties: [],
40
- customShapePropertyDefinitions: [],
41
- };
42
- }
43
- export function scalarShape(id) {
44
- const result = anyShape(id);
45
- result.id = `scalar-shape-${id}`;
46
- result.types = IAmfScalarTypes;
47
- return result;
48
- }
49
- export function unionShape(id) {
50
- const result = anyShape(id);
51
- result.id = `union-shape-${id}`;
52
- result.types = IAmfUnionTypes;
53
- return { ...result, anyOf: [] };
54
- }
55
- export function fileShape(id) {
56
- const result = anyShape(id);
57
- result.id = `file-shape-${id}`;
58
- result.types = IAmfFileTypes;
59
- return result;
60
- }
61
- export function arrayShape(id) {
62
- const result = anyShape(id);
63
- result.id = `array-shape-${id}`;
64
- result.types = IAmfArrayTypes;
65
- return result;
66
- }
67
- export function tupleShape(id) {
68
- const result = anyShape(id);
69
- result.id = `tuple-shape-${id}`;
70
- result.types = IAmfTupleTypes;
71
- return { ...result, items: [] };
72
- }
73
- export function propertyShape(id) {
74
- const result = anyShape(id);
75
- result.types = IAmfPropertyTypes;
76
- return result;
77
- }
78
- export function recursiveShape(id, fixedId) {
79
- const result = {
80
- ...shape(id),
81
- id: `recursive-${id}`,
82
- types: IAmfRecursiveTypes,
83
- fixPoint: fixedId || '',
84
- };
85
- return result;
86
- }
87
- //# sourceMappingURL=Shapes.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Shapes.js","sourceRoot":"","sources":["../../../../src/amf/definitions/Shapes.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,cAAc,EACd,aAAa,EACb,aAAa,EACb,i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iB,CAAA;IAChC,OAAO,MAAM,CAAA;AACf,CAAC;AAED,MAAM,UAAU,cAAc,CAAC,EAAU,EAAE,OAAgB;IACzD,MAAM,MAAM,GAAuB;QACjC,GAAG,KAAK,CAAC,EAAE,CAAC;QACZ,EAAE,EAAE,aAAa,EAAE,EAAE;QACrB,KAAK,EAAE,kBAAkB;QACzB,QAAQ,EAAE,OAAO,IAAI,EAAE;KACxB,CAAA;IACD,OAAO,MAAM,CAAA;AACf,CAAC","sourcesContent":["import {\n IAmfAnyTypes,\n IAmfArrayTypes,\n IAmfFileTypes,\n IAmfNodeTypes,\n IAmfPropertyTypes,\n IAmfRecursiveTypes,\n IAmfScalarTypes,\n IAmfTupleTypes,\n IAmfUnionTypes,\n IAmfXmlSerializationTypes,\n} from '../AmfTypes.js'\nimport { IApiDocumentation, IApiDocumentSourceMaps } from './Api.js'\nimport { IApiDomainProperty } from './Base.js'\n\nexport type IShapeUnion =\n | IApiScalarShape\n | IApiNodeShape\n | IApiUnionShape\n | IApiFileShape\n | IApiSchemaShape\n | IApiAnyShape\n | IApiArrayShape\n | IApiTupleShape\n | IApiRecursiveShape\n\nexport interface IApiAssociationShape {\n /**\n * This is a custom property that not available in the AMF library and is used with data associations.\n *\n * Whether the target entity should be embedded under the property name.\n * When false, this association is just an information that one entity depend on another.\n * When true, it changes the definition of the schema having this association to\n * add the target schema properties inline with this property.\n *\n * **When true**\n *\n * ```javascript\n * // generated schema for `address` association\n * {\n * \"name\": \"example value\",\n * \"address\": {\n * \"city\": \"example value\",\n * ...\n * }\n * }\n * ```\n *\n * **When false**\n *\n * ```javascript\n * // generated schema for `address` association\n * {\n * \"name\": \"example value\",\n * \"address\": \"the key of the referenced schema\"\n * }\n * ```\n */\n linked?: boolean\n /**\n * When the association has multiple targets the union type should be\n * set to describe which union this is.\n *\n * Possible values are:\n *\n * - allOf - To validate against `allOf`, the given data must be valid against\n * all of the given sub-schemas. When generating, it's a sum of all properties.\n * - anyOf - To validate against `anyOf`, the given data must be valid against\n * any (one or more) of the given sub-schemas. When generation a schema, it takes first union schema.\n * - oneOf - To validate against `oneOf`, the given data must be valid against\n * exactly one of the given sub-schemas. It behaves the same as `anyOf` when generating a schema\n * - not - The `not` keyword declares that an instance validates if it doesn’t\n * validate against the given sub-schema. It has no use when generating a schema.\n *\n * @default anyOf\n */\n unionType?: 'allOf' | 'anyOf' | 'oneOf' | 'not'\n}\n\nexport interface IApiDataExample extends IApiDomainProperty {\n name?: string\n displayName?: string\n description?: string\n /**\n * This is the \"raw\" property of AMF\n */\n value?: string\n structuredValue?: IApiDataNodeUnion\n strict: boolean\n mediaType?: string\n location?: string\n sourceMaps?: IApiDocumentSourceMaps\n}\n\nexport function xmlSerializer(id: string): IApiXmlSerializer {\n return {\n id: `xml-serializer-${id}`,\n types: IAmfXmlSerializationTypes,\n customDomainProperties: [],\n }\n}\n\nexport function shape(id: string): IApiShape {\n const result: IApiShape = {\n id,\n types: [],\n values: [],\n inherits: [],\n or: [],\n and: [],\n xone: [],\n customDomainProperties: [],\n }\n return result\n}\n\nexport function anyShape(id: string): IApiAnyShape {\n const result: IApiAnyShape = {\n ...shape(id),\n types: IAmfAnyTypes,\n examples: [],\n xmlSerialization: xmlSerializer(id),\n }\n return result\n}\n\nexport function nodeShape(id: string): IApiNodeShape {\n const result = anyShape(id)\n result.types = IAmfNodeTypes\n result.id = `node-shape-${id}`\n return {\n ...result,\n properties: [],\n dependencies: [],\n customShapeProperties: [],\n customShapePropertyDefinitions: [],\n }\n}\n\nexport function scalarShape(id: string): IApiScalarShape {\n const result = anyShape(id)\n result.id = `scalar-shape-${id}`\n result.types = IAmfScalarTypes\n return result\n}\n\nexport function unionShape(id: string): IApiUnionShape {\n const result = anyShape(id)\n result.id = `union-shape-${id}`\n result.types = IAmfUnionTypes\n return { ...result, anyOf: [] }\n}\n\nexport function fileShape(id: string): IApiFileShape {\n const result = anyShape(id)\n result.id = `file-shape-${id}`\n result.types = IAmfFileTypes\n return result\n}\n\nexport function arrayShape(id: string): IApiArrayShape {\n const result = anyShape(id)\n result.id = `array-shape-${id}`\n result.types = IAmfArrayTypes\n return result\n}\n\nexport function tupleShape(id: string): IApiTupleShape {\n const result = anyShape(id)\n result.id = `tuple-shape-${id}`\n result.types = IAmfTupleTypes\n return { ...result, items: [] }\n}\n\nexport function propertyShape(id: string): IApiPropertyShape {\n const result = anyShape(id)\n result.types = IAmfPropertyTypes\n return result\n}\n\nexport function recursiveShape(id: string, fixedId?: string): IApiRecursiveShape {\n const result: IApiRecursiveShape = {\n ...shape(id),\n id: `recursive-${id}`,\n types: IAmfRecursiveTypes,\n fixPoint: fixedId || '',\n }\n return result\n}\n\nexport interface IApiShape extends IApiDomainProperty {\n /**\n * Enum values for this shape.\n */\n values: IApiDataNodeUnion[]\n /**\n * The list of shapes that this shape inherits from\n */\n inherits: IShapeUnion[]\n /**\n * The `anyOf` union type.\n */\n or: IShapeUnion[]\n /**\n * The `allOf` union type.\n */\n and: IShapeUnion[]\n /**\n * The `oneOf` union type.\n */\n xone: IShapeUnion[]\n /**\n * The name of the shape in the system.\n */\n name?: string\n /**\n * The display name for the shape in the UI.\n */\n displayName?: string\n /**\n * The description of the shape.\n */\n description?: string\n /**\n * The default value encoded as a string\n */\n defaultValueStr?: string\n /**\n * The description of the default value of the shape.\n */\n defaultValue?: IApiDataNodeUnion\n /**\n * Whether the shape is deprecated.\n */\n deprecated?: boolean\n /**\n * Whether the shape is a read only shape (disallow writes to the value)\n */\n readOnly?: boolean\n /**\n * Whether the shape can only be written to (disallow reading the value)\n */\n writeOnly?: boolean\n not?: IShapeUnion\n /**\n * A label that appeared on a link.\n */\n linkLabel?: string\n sourceMaps?: IApiDocumentSourceMaps\n}\n\n/**\n * A property of an API operation.\n */\nexport interface IApiPropertyShape<T = IShapeUnion> extends IApiShape {\n /**\n * The path of the property. Essentially, it is link generated by the AMF library\n * where the fragment part is the name of the property.\n */\n path?: string\n /**\n * The parameter shape definition\n */\n range?: T\n /**\n * When > 0 then the parameter is required.\n */\n minCount?: number\n maxCount?: number\n}\n\nexport interface IApiAnyShape extends IApiShape {\n documentation?: IApiDocumentation\n /**\n * Description of how the shape should be serialized as XML.\n */\n xmlSerialization: IApiXmlSerializer\n /**\n * Examples defined for the shape.\n */\n examples: IApiDataExample[]\n}\n\n/**\n * Describes an object shape.\n */\nexport interface IApiNodeShape extends IApiAnyShape {\n minProperties?: number\n maxProperties?: number\n closed?: boolean\n customShapeProperties: string[]\n customShapePropertyDefinitions: string[]\n discriminator?: string\n discriminatorValue?: string\n properties: IApiPropertyShape[]\n dependencies: string[]\n}\n\nexport interface IApiXmlSerializer extends IApiDomainProperty {\n /**\n * Whether this property should be represented as an attribute of the parent shape.\n *\n * ```\n * <Person name=\"John Doe\"></Person>\n * ```\n */\n attribute?: boolean\n /**\n * When the property is an array (has the `multiple` set to true in the data model)\n * then it tells that the list of values should be wrapped with a parent\n * element:\n *\n * ```\n * <Person>\n * <Person fullName=\"John Doe\"></Person>\n * <Person fullName=\"Other Doe\"></Person>\n * </Person>\n * ```\n *\n * Use this with the combination with `name` to describe the name of the wrapped\n * element\n *\n * ```\n * <people>\n * <Person fullName=\"John Doe\"></Person>\n * </people>\n * ```\n *\n * Note, this is mutually exclusive with `attribute`.\n */\n wrapped?: boolean\n /**\n * The name of the attribute or a wrapped property to use when serializing the property.\n *\n * Attribute name\n * ```xml\n * <Person fullName=\"John Doe\"></Person>\n * ```\n *\n * Wrapped name\n * ```xml\n * <people>\n * <Person name=\"John Doe\"></Person>\n * </people>\n * ```\n */\n name?: string\n /**\n * The XML namespace to use.\n *\n * ```xml\n * <Person ns:name=\"John Doe\"></Person>\n * ```\n */\n namespace?: string\n /**\n * Name prefix\n *\n * ```xml\n * <ns:Person name=\"John Doe\"></ns:Person>\n * ```\n */\n prefix?: string\n sourceMaps?: IApiDocumentSourceMaps\n}\n\nexport interface IApiScalarShape extends IApiAnyShape {\n dataType?: string\n pattern?: string\n minLength?: number\n maxLength?: number\n minimum?: number\n maximum?: number\n exclusiveMinimum?: boolean\n exclusiveMaximum?: boolean\n format?: string\n multipleOf?: number\n}\n\nexport interface IApiFileShape extends IApiAnyShape {\n fileTypes?: string[]\n pattern?: string\n minLength?: number\n maxLength?: number\n minimum?: number\n maximum?: number\n exclusiveMinimum?: boolean\n exclusiveMaximum?: boolean\n format?: string\n multipleOf?: number\n}\n\nexport interface IApiSchemaShape extends IApiAnyShape {\n mediaType?: string\n raw?: string\n}\n\nexport interface IApiUnionShape extends IApiAnyShape {\n anyOf: IShapeUnion[]\n}\n\nexport interface IApiDataArrangeShape extends IApiAnyShape {\n minItems?: number\n maxItems?: number\n uniqueItems?: boolean\n}\n\nexport interface IApiArrayShape<T = IShapeUnion> extends IApiDataArrangeShape {\n items?: T\n}\n\nexport interface IApiTupleShape<T = IShapeUnion> extends IApiDataArrangeShape {\n items: T[]\n additionalItems?: boolean\n}\n\nexport interface IApiRecursiveShape extends IApiShape {\n fixPoint: string\n}\n\nexport interface IApiDataNode extends IApiDomainProperty {\n name?: string\n}\n\nexport interface IApiObjectNode extends IApiDataNode {\n properties: Record<string, IApiDataNodeUnion>\n}\n\nexport interface IApiScalarNode extends IApiDataNode {\n value?: string\n dataType?: string\n}\n\nexport interface IApiArrayNode extends IApiDataNode {\n members: IApiDataNodeUnion[]\n}\n\nexport type IApiDataNodeUnion = IApiDataNode | IApiObjectNode | IApiScalarNode | IApiArrayNode\n"]}
@@ -1,67 +0,0 @@
1
- import { IApiCustomDomainProperty } from '../definitions/Base.js';
2
- import { IApiDataNodeUnion } from '../definitions/Shapes.js';
3
- export type IDataNodeInit = 'scalar' | 'object' | 'array';
4
- /**
5
- * A class that manipulates the AMF's DataNode node.
6
- */
7
- export declare class AmfDataNode {
8
- id: string;
9
- /**
10
- * AMF domain types.
11
- * This is set in the constructor
12
- */
13
- types: string[];
14
- /**
15
- * The name of this data node.
16
- */
17
- name?: string;
18
- /**
19
- * Set when the object node type
20
- */
21
- properties?: Record<string, AmfDataNode>;
22
- /**
23
- * Scalar type value. Always a string.
24
- */
25
- value?: string;
26
- /**
27
- * Scalar type value data type.
28
- */
29
- dataType?: string;
30
- /**
31
- * Set when the type is array.
32
- */
33
- members?: AmfDataNode[];
34
- customDomainProperties: IApiCustomDomainProperty[];
35
- static scalar(value: string, type: string): AmfDataNode;
36
- constructor(init: IApiDataNodeUnion | IDataNodeInit);
37
- toJSON(): IApiDataNodeUnion;
38
- /**
39
- * Adds a member to the list of members.
40
- * It throws when this is not an array node.
41
- *
42
- * @param init The member to add.
43
- */
44
- addMember(init: AmfDataNode): void;
45
- /**
46
- * Removes a member from the list of members.
47
- * It throws when this is not an array node.
48
- *
49
- * @param id The domain id of the member to remove.
50
- */
51
- removeMember(id: string): void;
52
- /**
53
- * Adds a property to the ObjectNode.
54
- * It throws when this is not an object node.
55
- *
56
- * @param name The name of the property.
57
- * @param value The instance of the DataNode to set.
58
- */
59
- addProperty(name: string, value: AmfDataNode): void;
60
- /**
61
- * Deletes a property by name.
62
- *
63
- * @param name The name of the property to delete.
64
- */
65
- removeProperty(name: string): void;
66
- }
67
- //# sourceMappingURL=AmfDataNode.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AmfDataNode.d.ts","sourceRoot":"","sources":["../../../../src/amf/models/AmfDataNode.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAA;AAEjE,OAAO,EAGL,iBAAiB,EAGlB,MAAM,0BAA0B,CAAA;AAEjC,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAA;AAEzD;;GAEG;AACH,qBAAa,WAAW;IACtB,EAAE,SAAW;IAEb;;;OAGG;IACH,KAAK,EAAE,MAAM,EAAE,CAAA;IAEf;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CAAA;IAExC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;IAEjB;;OAEG;IACH,OAAO,CAAC,EAAE,WAAW,EAAE,CAAA;IAEvB,sBAAsB,EAAE,wBAAwB,EAAE,CAAK;IAEvD,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,WAAW;gBAO3C,IAAI,EAAE,iBAAiB,GAAG,aAAa;IA8CnD,MAAM,IAAI,iBAAiB;IAoC3B;;;;;OAKG;IACH,SAAS,CAAC,IAAI,EAAE,WAAW,GAAG,IAAI;IAUlC;;;;;OAKG;IACH,YAAY,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI;IAa9B;;;;;;OAMG;IACH,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,WAAW,GAAG,IAAI;IAUnD;;;;OAIG;IACH,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;CAUnC"}