@api-client/core 0.19.10 → 0.19.11

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 (429) hide show
  1. package/LICENSE.md +9 -63
  2. package/bin/test.ts +1 -12
  3. package/build/src/browser.d.ts +0 -15
  4. package/build/src/browser.d.ts.map +1 -1
  5. package/build/src/browser.js +0 -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 +0 -15
  16. package/build/src/index.d.ts.map +1 -1
  17. package/build/src/index.js +0 -17
  18. package/build/src/index.js.map +1 -1
  19. package/build/src/modeling/Bindings.d.ts +3 -3
  20. package/build/src/modeling/Bindings.d.ts.map +1 -1
  21. package/build/src/modeling/Bindings.js.map +1 -1
  22. package/build/src/modeling/DomainAssociation.d.ts +5 -5
  23. package/build/src/modeling/DomainAssociation.d.ts.map +1 -1
  24. package/build/src/modeling/DomainAssociation.js.map +1 -1
  25. package/build/src/modeling/DomainEntity.d.ts +2 -3
  26. package/build/src/modeling/DomainEntity.d.ts.map +1 -1
  27. package/build/src/modeling/DomainEntity.js +1 -1
  28. package/build/src/modeling/DomainEntity.js.map +1 -1
  29. package/build/src/modeling/DomainProperty.d.ts +2 -3
  30. package/build/src/modeling/DomainProperty.d.ts.map +1 -1
  31. package/build/src/modeling/DomainProperty.js +1 -1
  32. package/build/src/modeling/DomainProperty.js.map +1 -1
  33. package/build/src/modeling/ai/types.d.ts +2 -2
  34. package/build/src/modeling/ai/types.d.ts.map +1 -1
  35. package/build/src/modeling/ai/types.js.map +1 -1
  36. package/build/src/{amf → modeling/amf}/DataValueGenerator.d.ts +1 -1
  37. package/build/src/modeling/amf/DataValueGenerator.d.ts.map +1 -0
  38. package/build/src/{amf → modeling/amf}/DataValueGenerator.js +2 -3
  39. package/build/src/modeling/amf/DataValueGenerator.js.map +1 -0
  40. package/build/src/modeling/amf/ShapeGenerator.d.ts +20 -20
  41. package/build/src/modeling/amf/ShapeGenerator.d.ts.map +1 -1
  42. package/build/src/modeling/amf/ShapeGenerator.js +16 -18
  43. package/build/src/modeling/amf/ShapeGenerator.js.map +1 -1
  44. package/build/src/modeling/amf/core_types.d.ts +9 -0
  45. package/build/src/modeling/amf/core_types.d.ts.map +1 -0
  46. package/build/src/modeling/amf/core_types.js +45 -0
  47. package/build/src/modeling/amf/core_types.js.map +1 -0
  48. package/build/src/models/http-flows/LegacyTranslator.js +1 -1
  49. package/build/src/models/http-flows/LegacyTranslator.js.map +1 -1
  50. package/build/src/runtime/http-runner/HttpFlows.js +1 -1
  51. package/build/src/runtime/http-runner/HttpFlows.js.map +1 -1
  52. package/build/tsconfig.tsbuildinfo +1 -1
  53. package/eslint.config.js +0 -1
  54. package/package.json +11 -14
  55. package/src/events/EventTypes.ts +0 -2
  56. package/src/events/Events.ts +0 -2
  57. package/src/modeling/Bindings.ts +3 -3
  58. package/src/modeling/DomainAssociation.ts +5 -5
  59. package/src/modeling/DomainEntity.ts +3 -4
  60. package/src/modeling/DomainProperty.ts +3 -4
  61. package/src/modeling/ai/types.ts +2 -2
  62. package/src/{amf → modeling/amf}/DataValueGenerator.ts +3 -4
  63. package/src/modeling/amf/ShapeGenerator.ts +45 -61
  64. package/src/modeling/amf/core_types.ts +47 -0
  65. package/src/models/http-flows/LegacyTranslator.ts +1 -1
  66. package/src/runtime/http-runner/HttpFlows.ts +1 -1
  67. package/tests/unit/{amf → modeling/amf}/data_value_generator.spec.ts +2 -2
  68. package/tests/unit/modeling/amf/shape_generator.spec.ts +146 -167
  69. package/tests/unit/modeling/domain_asociation.spec.ts +13 -13
  70. package/tests/unit/runtime/runners/http_assertion_runner.spec.ts +1 -1
  71. package/tests/unit/runtime/runners/http_flow_runner.spec.ts +1 -1
  72. package/tests/unit/runtime/runners/project_runner.spec.ts +1 -1
  73. package/tests/unit/runtime/runners/request_runner.spec.ts +1 -1
  74. package/tests/unit/runtime/runners/serial_runner.spec.ts +1 -1
  75. package/build/src/amf/AmfMixin.d.ts +0 -396
  76. package/build/src/amf/AmfMixin.d.ts.map +0 -1
  77. package/build/src/amf/AmfMixin.js +0 -1138
  78. package/build/src/amf/AmfMixin.js.map +0 -1
  79. package/build/src/amf/AmfSerializer.d.ts +0 -137
  80. package/build/src/amf/AmfSerializer.d.ts.map +0 -1
  81. package/build/src/amf/AmfSerializer.js +0 -1947
  82. package/build/src/amf/AmfSerializer.js.map +0 -1
  83. package/build/src/amf/AmfTypes.d.ts +0 -25
  84. package/build/src/amf/AmfTypes.d.ts.map +0 -1
  85. package/build/src/amf/AmfTypes.js +0 -143
  86. package/build/src/amf/AmfTypes.js.map +0 -1
  87. package/build/src/amf/ApiExampleGenerator.d.ts +0 -40
  88. package/build/src/amf/ApiExampleGenerator.d.ts.map +0 -1
  89. package/build/src/amf/ApiExampleGenerator.js +0 -112
  90. package/build/src/amf/ApiExampleGenerator.js.map +0 -1
  91. package/build/src/amf/ApiMonacoSchemaGenerator.d.ts +0 -68
  92. package/build/src/amf/ApiMonacoSchemaGenerator.d.ts.map +0 -1
  93. package/build/src/amf/ApiMonacoSchemaGenerator.js +0 -248
  94. package/build/src/amf/ApiMonacoSchemaGenerator.js.map +0 -1
  95. package/build/src/amf/ApiSchemaGenerator.d.ts +0 -56
  96. package/build/src/amf/ApiSchemaGenerator.d.ts.map +0 -1
  97. package/build/src/amf/ApiSchemaGenerator.js +0 -94
  98. package/build/src/amf/ApiSchemaGenerator.js.map +0 -1
  99. package/build/src/amf/ApiSchemaValues.d.ts +0 -111
  100. package/build/src/amf/ApiSchemaValues.d.ts.map +0 -1
  101. package/build/src/amf/ApiSchemaValues.js +0 -463
  102. package/build/src/amf/ApiSchemaValues.js.map +0 -1
  103. package/build/src/amf/DataValueGenerator.d.ts.map +0 -1
  104. package/build/src/amf/DataValueGenerator.js.map +0 -1
  105. package/build/src/amf/Parsing.d.ts +0 -48
  106. package/build/src/amf/Parsing.d.ts.map +0 -1
  107. package/build/src/amf/Parsing.js +0 -2
  108. package/build/src/amf/Parsing.js.map +0 -1
  109. package/build/src/amf/Utils.d.ts +0 -37
  110. package/build/src/amf/Utils.d.ts.map +0 -1
  111. package/build/src/amf/Utils.js +0 -169
  112. package/build/src/amf/Utils.js.map +0 -1
  113. package/build/src/amf/data-node/DataNodeBase.d.ts +0 -34
  114. package/build/src/amf/data-node/DataNodeBase.d.ts.map +0 -1
  115. package/build/src/amf/data-node/DataNodeBase.js +0 -77
  116. package/build/src/amf/data-node/DataNodeBase.js.map +0 -1
  117. package/build/src/amf/data-node/JsonDataNodeGenerator.d.ts +0 -15
  118. package/build/src/amf/data-node/JsonDataNodeGenerator.d.ts.map +0 -1
  119. package/build/src/amf/data-node/JsonDataNodeGenerator.js +0 -23
  120. package/build/src/amf/data-node/JsonDataNodeGenerator.js.map +0 -1
  121. package/build/src/amf/data-node/UrlEncodedDataNodeGenerator.d.ts +0 -14
  122. package/build/src/amf/data-node/UrlEncodedDataNodeGenerator.d.ts.map +0 -1
  123. package/build/src/amf/data-node/UrlEncodedDataNodeGenerator.js +0 -48
  124. package/build/src/amf/data-node/UrlEncodedDataNodeGenerator.js.map +0 -1
  125. package/build/src/amf/data-node/XmlDataNodeGenerator.d.ts +0 -22
  126. package/build/src/amf/data-node/XmlDataNodeGenerator.d.ts.map +0 -1
  127. package/build/src/amf/data-node/XmlDataNodeGenerator.js +0 -34
  128. package/build/src/amf/data-node/XmlDataNodeGenerator.js.map +0 -1
  129. package/build/src/amf/definitions/Amf.d.ts +0 -363
  130. package/build/src/amf/definitions/Amf.d.ts.map +0 -1
  131. package/build/src/amf/definitions/Amf.js +0 -3
  132. package/build/src/amf/definitions/Amf.js.map +0 -1
  133. package/build/src/amf/definitions/Api.d.ts +0 -383
  134. package/build/src/amf/definitions/Api.d.ts.map +0 -1
  135. package/build/src/amf/definitions/Api.js +0 -2
  136. package/build/src/amf/definitions/Api.js.map +0 -1
  137. package/build/src/amf/definitions/Base.d.ts +0 -12
  138. package/build/src/amf/definitions/Base.d.ts.map +0 -1
  139. package/build/src/amf/definitions/Base.js +0 -2
  140. package/build/src/amf/definitions/Base.js.map +0 -1
  141. package/build/src/amf/definitions/Namespace.d.ts +0 -327
  142. package/build/src/amf/definitions/Namespace.d.ts.map +0 -1
  143. package/build/src/amf/definitions/Namespace.js +0 -346
  144. package/build/src/amf/definitions/Namespace.js.map +0 -1
  145. package/build/src/amf/definitions/Shapes.d.ts +0 -312
  146. package/build/src/amf/definitions/Shapes.d.ts.map +0 -1
  147. package/build/src/amf/definitions/Shapes.js +0 -87
  148. package/build/src/amf/definitions/Shapes.js.map +0 -1
  149. package/build/src/amf/models/AmfDataNode.d.ts +0 -67
  150. package/build/src/amf/models/AmfDataNode.d.ts.map +0 -1
  151. package/build/src/amf/models/AmfDataNode.js +0 -192
  152. package/build/src/amf/models/AmfDataNode.js.map +0 -1
  153. package/build/src/amf/shape/ShapeBase.d.ts +0 -74
  154. package/build/src/amf/shape/ShapeBase.d.ts.map +0 -1
  155. package/build/src/amf/shape/ShapeBase.js +0 -93
  156. package/build/src/amf/shape/ShapeBase.js.map +0 -1
  157. package/build/src/amf/shape/ShapeJsonSchemaGenerator.d.ts +0 -47
  158. package/build/src/amf/shape/ShapeJsonSchemaGenerator.d.ts.map +0 -1
  159. package/build/src/amf/shape/ShapeJsonSchemaGenerator.js +0 -420
  160. package/build/src/amf/shape/ShapeJsonSchemaGenerator.js.map +0 -1
  161. package/build/src/amf/shape/ShapeXmlSchemaGenerator.d.ts +0 -85
  162. package/build/src/amf/shape/ShapeXmlSchemaGenerator.d.ts.map +0 -1
  163. package/build/src/amf/shape/ShapeXmlSchemaGenerator.js +0 -852
  164. package/build/src/amf/shape/ShapeXmlSchemaGenerator.js.map +0 -1
  165. package/build/src/events/amf/AmfEventTypes.d.ts +0 -7
  166. package/build/src/events/amf/AmfEventTypes.d.ts.map +0 -1
  167. package/build/src/events/amf/AmfEventTypes.js +0 -7
  168. package/build/src/events/amf/AmfEventTypes.js.map +0 -1
  169. package/build/src/events/amf/AmfEvents.d.ts +0 -34
  170. package/build/src/events/amf/AmfEvents.d.ts.map +0 -1
  171. package/build/src/events/amf/AmfEvents.js +0 -63
  172. package/build/src/events/amf/AmfEvents.js.map +0 -1
  173. package/build/src/mocking/RandExp.d.ts +0 -55
  174. package/build/src/mocking/RandExp.d.ts.map +0 -1
  175. package/build/src/mocking/RandExp.js +0 -302
  176. package/build/src/mocking/RandExp.js.map +0 -1
  177. package/build/src/mocking/lib/ret.d.ts +0 -16
  178. package/build/src/mocking/lib/ret.d.ts.map +0 -1
  179. package/build/src/mocking/lib/ret.js +0 -284
  180. package/build/src/mocking/lib/ret.js.map +0 -1
  181. package/data/apis/APIC-187/APIC-187.raml +0 -21
  182. package/data/apis/APIC-187/dataType.raml +0 -132
  183. package/data/apis/APIC-187/example.raml +0 -84
  184. package/data/apis/APIC-188/APIC-188.raml +0 -21
  185. package/data/apis/APIC-188/dataType.raml +0 -132
  186. package/data/apis/APIC-188/example.raml +0 -84
  187. package/data/apis/APIC-233/APIC-233.raml +0 -15
  188. package/data/apis/APIC-391/APIC-391.raml +0 -44
  189. package/data/apis/APIC-391/examples/post-body-request-example.raml +0 -7
  190. package/data/apis/APIC-483/APIC-483.raml +0 -16
  191. package/data/apis/APIC-483/example/list-of-bank-succ.json +0 -32
  192. package/data/apis/APIC-483/schema/response-retrieve-list-bank.json +0 -68
  193. package/data/apis/APIC-487/APIC-487.raml +0 -36
  194. package/data/apis/APIC-655/APIC-655.raml +0 -44
  195. package/data/apis/APIC-655/delivery.json +0 -12
  196. package/data/apis/APIC-689/APIC-689.raml +0 -20
  197. package/data/apis/APIC-690/APIC-690.raml +0 -17
  198. package/data/apis/APIC-690/datatypes/Address.raml +0 -10
  199. package/data/apis/APIC-690/datatypes/Customer.raml +0 -17
  200. package/data/apis/APIC-690/examples/CustomerExample2.raml +0 -17
  201. package/data/apis/APIC-690/examples/CustomersExample.raml +0 -34
  202. package/data/apis/SE-10469/Purchase-Order-oagis-id-dd32f9c6c01048a19e15c423c9c741ae.json +0 -1383
  203. package/data/apis/SE-10469/SE-10469.raml +0 -11
  204. package/data/apis/SE-13092/Examples/PersonExample.raml +0 -7
  205. package/data/apis/SE-13092/SE-13092.raml +0 -37
  206. package/data/apis/SE-13092/datatypes/Address.raml +0 -5
  207. package/data/apis/SE-13092/datatypes/InlineType.raml +0 -5
  208. package/data/apis/SE-13092/datatypes/Person.raml +0 -15
  209. package/data/apis/SE-22063/SE-22063.raml +0 -14
  210. package/data/apis/SE-22063/stock.raml +0 -41
  211. package/data/apis/amf-helper-api/amf-helper-api.raml +0 -1024
  212. package/data/apis/amf-helper-api/examples/comment-example.json +0 -42
  213. package/data/apis/amf-helper-api/examples/commentCreateRequest-example.json +0 -7
  214. package/data/apis/amf-helper-api/examples/commentList-example.json +0 -48
  215. package/data/apis/amf-helper-api/examples/person.json +0 -14
  216. package/data/apis/amf-helper-api/examples/person.raml +0 -13
  217. package/data/apis/amf-helper-api/examples/person.xml +0 -14
  218. package/data/apis/amf-helper-api/libraries/comment-lib.raml +0 -143
  219. package/data/apis/amf-helper-api/library.raml +0 -7
  220. package/data/apis/amf-helper-api/schemas/person.json +0 -104
  221. package/data/apis/amf-helper-api/schemas/person.xsd +0 -26
  222. package/data/apis/amf-helper-api/traits/file.raml +0 -33
  223. package/data/apis/amf-helper-api/traits/pagination.raml +0 -80
  224. package/data/apis/amf-helper-api/traits/results.raml +0 -19
  225. package/data/apis/amf-helper-api/traits/visibility.raml +0 -14
  226. package/data/apis/amf-helper-api/types/app-person.raml +0 -101
  227. package/data/apis/amf-helper-api/types/dimensions.raml +0 -24
  228. package/data/apis/amf-helper-api/types/external-type.raml +0 -7
  229. package/data/apis/amf-helper-api/types/image.raml +0 -23
  230. package/data/apis/amf-helper-api/types/product.raml +0 -52
  231. package/data/apis/amf-helper-api/types/resource.raml +0 -11
  232. package/data/apis/amf-helper-api/types/standard-request.raml +0 -50
  233. package/data/apis/amf-helper-api/types/user.raml +0 -37
  234. package/data/apis/arc-demo-api/arc-demo-api.raml +0 -468
  235. package/data/apis/arc-demo-api/examples/e400.xml +0 -4
  236. package/data/apis/arc-demo-api/examples/e401.xml +0 -4
  237. package/data/apis/arc-demo-api/examples/e404.xml +0 -4
  238. package/data/apis/arc-demo-api/examples/image.xml +0 -5
  239. package/data/apis/arc-demo-api/examples/messages-example.json +0 -22
  240. package/data/apis/arc-demo-api/examples/messages-sent-example.json +0 -15
  241. package/data/apis/arc-demo-api/examples/person.json +0 -14
  242. package/data/apis/arc-demo-api/examples/person.url.encoded +0 -1
  243. package/data/apis/arc-demo-api/examples/person.xml +0 -14
  244. package/data/apis/arc-demo-api/examples/product.xml +0 -9
  245. package/data/apis/arc-demo-api/library.raml +0 -36
  246. package/data/apis/arc-demo-api/resourceTypes/app-person.raml +0 -49
  247. package/data/apis/arc-demo-api/resourceTypes/example-types.raml +0 -45
  248. package/data/apis/arc-demo-api/resourceTypes/image.raml +0 -23
  249. package/data/apis/arc-demo-api/resourceTypes/message-sent-type.raml +0 -23
  250. package/data/apis/arc-demo-api/resourceTypes/message-type.raml +0 -33
  251. package/data/apis/arc-demo-api/resourceTypes/product.raml +0 -52
  252. package/data/apis/arc-demo-api/resourceTypes/resource.raml +0 -11
  253. package/data/apis/arc-demo-api/schemas/error-response.xsd +0 -11
  254. package/data/apis/arc-demo-api/schemas/image.xsd +0 -11
  255. package/data/apis/arc-demo-api/schemas/person.json +0 -104
  256. package/data/apis/arc-demo-api/schemas/person.xsd +0 -26
  257. package/data/apis/arc-demo-api/schemas/product.xsd +0 -17
  258. package/data/apis/arc-demo-api/securitySchemes/basic.raml +0 -5
  259. package/data/apis/arc-demo-api/securitySchemes/oauth_2_0.raml +0 -29
  260. package/data/apis/arc-demo-api/securitySchemes/x-custom.raml +0 -26
  261. package/data/apis/arc-demo-api/traits/adminable.raml +0 -23
  262. package/data/apis/arc-demo-api/traits/pagination.raml +0 -83
  263. package/data/apis/arc-demo-api/traits/rate-limited.raml +0 -9
  264. package/data/apis/async-api/async-api.yaml +0 -96
  265. package/data/apis/example-generator-api/contact-email-example.raml +0 -6
  266. package/data/apis/example-generator-api/contact-example.raml +0 -5
  267. package/data/apis/example-generator-api/contact-fax-example.raml +0 -5
  268. package/data/apis/example-generator-api/contact-website-example.raml +0 -2
  269. package/data/apis/example-generator-api/example-1.raml +0 -6
  270. package/data/apis/example-generator-api/example-2.raml +0 -9
  271. package/data/apis/example-generator-api/example-3.raml +0 -4
  272. package/data/apis/example-generator-api/example-4.raml +0 -2
  273. package/data/apis/example-generator-api/example-5.raml +0 -4
  274. package/data/apis/example-generator-api/example-6.raml +0 -2
  275. package/data/apis/example-generator-api/example-7.raml +0 -5
  276. package/data/apis/example-generator-api/example-generator-api.raml +0 -423
  277. package/data/apis/example-generator-api/example.json +0 -14
  278. package/data/apis/example-generator-api/example.xml +0 -15
  279. package/data/apis/example-generator-api/example.xsd +0 -26
  280. package/data/apis/example-generator-api/examples/employee.raml +0 -7
  281. package/data/apis/example-generator-api/examples/employees.raml +0 -7
  282. package/data/apis/example-generator-api/linked-named-example.raml +0 -21
  283. package/data/apis/example-generator-api/named-example-with-link.raml +0 -5
  284. package/data/apis/example-generator-api/named-example.raml +0 -9
  285. package/data/apis/example-generator-api/user-json-example.raml +0 -17
  286. package/data/apis/example-generator-api/user-raml-example.raml +0 -37
  287. package/data/apis/example-generator-api/user.json +0 -8
  288. package/data/apis/example-generator-api/user.raml +0 -18
  289. package/data/apis/example-generator-api/users-json-example.raml +0 -17
  290. package/data/apis/example-generator-api/users-raml-example.raml +0 -32
  291. package/data/apis/example-generator-api/users.json +0 -8
  292. package/data/apis/expanded-api/expanded-api.raml +0 -8
  293. package/data/apis/flattened-api/flattened-api.raml +0 -8
  294. package/data/apis/multiple-servers/multiple-servers.yaml +0 -112
  295. package/data/apis/oas-3-api/oas-3-api.yaml +0 -356
  296. package/data/apis/oas-date/oas-date.yaml +0 -28
  297. package/data/apis/oas-types/oas-types.yaml +0 -159
  298. package/data/apis/oas-unions/oas-unions.yaml +0 -75
  299. package/data/apis/petstore/petstore.yaml +0 -954
  300. package/data/apis/raml-date/raml-date.raml +0 -28
  301. package/data/apis/recursive/recursive.raml +0 -14
  302. package/data/apis/schema-api/examples/person.json +0 -14
  303. package/data/apis/schema-api/examples/person.raml +0 -14
  304. package/data/apis/schema-api/examples/person.url.encoded +0 -1
  305. package/data/apis/schema-api/examples/person.xml +0 -14
  306. package/data/apis/schema-api/library/demo-types.raml +0 -43
  307. package/data/apis/schema-api/schema-api.raml +0 -656
  308. package/data/apis/schema-api/schemas/person.json +0 -104
  309. package/data/apis/schema-api/schemas/person.xsd +0 -26
  310. package/data/apis/schema-api/types/DemoPerson.raml +0 -67
  311. package/data/apis/secured-api/oauth-2-custom-settings.raml +0 -143
  312. package/data/apis/secured-api/oauth2-header-delivery.raml +0 -13
  313. package/data/apis/secured-api/oauth2-no-delivery.raml +0 -8
  314. package/data/apis/secured-api/oauth2-no-grants.raml +0 -12
  315. package/data/apis/secured-api/oauth2-pkce.raml +0 -13
  316. package/data/apis/secured-api/oauth2-query-delivery.raml +0 -13
  317. package/data/apis/secured-api/oauth_1_0.raml +0 -8
  318. package/data/apis/secured-api/oauth_1_0_no-settings.raml +0 -3
  319. package/data/apis/secured-api/oauth_1_0_no-signature.raml +0 -7
  320. package/data/apis/secured-api/oauth_1_0_signature.raml +0 -8
  321. package/data/apis/secured-api/passthrough-querystring.raml +0 -16
  322. package/data/apis/secured-api/passthrough.raml +0 -24
  323. package/data/apis/secured-api/secured-api.raml +0 -231
  324. package/data/apis/secured-api/x-custom.raml +0 -33
  325. package/data/apis/secured-api/x-other.raml +0 -29
  326. package/data/apis/secured-api/x-query-string.raml +0 -16
  327. package/data/apis/tracked-examples/datatypes/employee.raml +0 -5
  328. package/data/apis/tracked-examples/examples/employee.raml +0 -4
  329. package/data/apis/tracked-examples/examples/employees.raml +0 -8
  330. package/data/apis/tracked-examples/tracked-to-linked.raml +0 -28
  331. package/data/model.js +0 -129
  332. package/data/models/APIC-187.json +0 -11416
  333. package/data/models/APIC-188.json +0 -11416
  334. package/data/models/APIC-233.json +0 -539
  335. package/data/models/APIC-391.json +0 -1903
  336. package/data/models/APIC-483.json +0 -3110
  337. package/data/models/APIC-487.json +0 -1225
  338. package/data/models/APIC-655.json +0 -3145
  339. package/data/models/APIC-689.json +0 -797
  340. package/data/models/APIC-690.json +0 -5992
  341. package/data/models/SE-10469.json +0 -22898
  342. package/data/models/SE-13092.json +0 -2769
  343. package/data/models/SE-22063.json +0 -2314
  344. package/data/models/amf-helper-api.json +0 -84457
  345. package/data/models/arc-demo-api.json +0 -52041
  346. package/data/models/async-api.json +0 -3227
  347. package/data/models/example-generator-api.json +0 -45209
  348. package/data/models/expanded-api.json +0 -251
  349. package/data/models/flattened-api.json +0 -251
  350. package/data/models/multiple-servers.json +0 -2769
  351. package/data/models/oas-3-api.json +0 -10590
  352. package/data/models/oas-date.json +0 -637
  353. package/data/models/oas-types.json +0 -5352
  354. package/data/models/oas-unions.json +0 -1935
  355. package/data/models/petstore.json +0 -27712
  356. package/data/models/raml-date.json +0 -1114
  357. package/data/models/recursive.json +0 -610
  358. package/data/models/schema-api.json +0 -35527
  359. package/data/models/secured-api.json +0 -21071
  360. package/data/models/tracked-to-linked.json +0 -1914
  361. package/src/amf/AmfMixin.ts +0 -1726
  362. package/src/amf/AmfSerializer.ts +0 -2358
  363. package/src/amf/AmfTypes.ts +0 -147
  364. package/src/amf/ApiExampleGenerator.ts +0 -122
  365. package/src/amf/ApiMonacoSchemaGenerator.ts +0 -332
  366. package/src/amf/ApiSchemaGenerator.ts +0 -115
  367. package/src/amf/ApiSchemaValues.ts +0 -509
  368. package/src/amf/Parsing.ts +0 -50
  369. package/src/amf/Utils.ts +0 -172
  370. package/src/amf/data-node/DataNodeBase.ts +0 -83
  371. package/src/amf/data-node/JsonDataNodeGenerator.ts +0 -24
  372. package/src/amf/data-node/README.md +0 -3
  373. package/src/amf/data-node/UrlEncodedDataNodeGenerator.ts +0 -49
  374. package/src/amf/data-node/XmlDataNodeGenerator.ts +0 -46
  375. package/src/amf/definitions/Amf.ts +0 -440
  376. package/src/amf/definitions/Api.ts +0 -445
  377. package/src/amf/definitions/Base.ts +0 -13
  378. package/src/amf/definitions/Namespace.ts +0 -357
  379. package/src/amf/definitions/Shapes.ts +0 -438
  380. package/src/amf/models/AmfDataNode.ts +0 -210
  381. package/src/amf/shape/README.md +0 -4
  382. package/src/amf/shape/ShapeBase.ts +0 -174
  383. package/src/amf/shape/ShapeJsonSchemaGenerator.ts +0 -457
  384. package/src/amf/shape/ShapeXmlSchemaGenerator.ts +0 -933
  385. package/src/events/amf/AmfEventTypes.ts +0 -6
  386. package/src/events/amf/AmfEvents.ts +0 -78
  387. package/src/mocking/RandExp.ts +0 -335
  388. package/src/mocking/lib/ret.ts +0 -279
  389. package/tests/unit/amf/APIC-187.spec.ts +0 -41
  390. package/tests/unit/amf/APIC-188.spec.ts +0 -30
  391. package/tests/unit/amf/APIC-233.spec.ts +0 -32
  392. package/tests/unit/amf/APIC-391.spec.ts +0 -39
  393. package/tests/unit/amf/APIC-487.spec.ts +0 -44
  394. package/tests/unit/amf/APIC-655.spec.ts +0 -41
  395. package/tests/unit/amf/APIC-689.spec.ts +0 -28
  396. package/tests/unit/amf/APIC-690.spec.ts +0 -93
  397. package/tests/unit/amf/AmfLoader.ts +0 -538
  398. package/tests/unit/amf/AmfMixin.spec.ts +0 -1707
  399. package/tests/unit/amf/ApiExampleGenerator.spec.ts +0 -250
  400. package/tests/unit/amf/ApiMonacoSchemaGenerator.spec.ts +0 -183
  401. package/tests/unit/amf/ApiSchemaValues.spec.ts +0 -602
  402. package/tests/unit/amf/Namepsace.spec.ts +0 -494
  403. package/tests/unit/amf/SE-10469.spec.ts +0 -35
  404. package/tests/unit/amf/SE-13092.spec.ts +0 -64
  405. package/tests/unit/amf/SE-22063.spec.ts +0 -45
  406. package/tests/unit/amf/raml-examples.spec.ts +0 -43
  407. package/tests/unit/amf/schema_gen_array.spec.ts +0 -199
  408. package/tests/unit/amf/schema_gen_oas.spec.ts +0 -140
  409. package/tests/unit/amf/schema_gen_object.spec.ts +0 -279
  410. package/tests/unit/amf/schema_gen_scalar.spec.ts +0 -143
  411. package/tests/unit/amf/schema_gen_union.spec.ts +0 -401
  412. package/tests/unit/amf/schema_gen_unknown.spec.ts +0 -42
  413. package/tests/unit/amf/schema_gen_xml.spec.ts +0 -726
  414. package/tests/unit/amf/serializer/APIC-483.spec.ts +0 -36
  415. package/tests/unit/amf/serializer/Anotations.spec.ts +0 -50
  416. package/tests/unit/amf/serializer/Api.spec.ts +0 -210
  417. package/tests/unit/amf/serializer/Documentation.spec.ts +0 -52
  418. package/tests/unit/amf/serializer/Endpoints.spec.ts +0 -172
  419. package/tests/unit/amf/serializer/Operations.spec.ts +0 -330
  420. package/tests/unit/amf/serializer/Parameters.spec.ts +0 -149
  421. package/tests/unit/amf/serializer/PayloadExamples.spec.ts +0 -152
  422. package/tests/unit/amf/serializer/Security.spec.ts +0 -626
  423. package/tests/unit/amf/serializer/Server.spec.ts +0 -78
  424. package/tests/unit/amf/serializer/Shapes.spec.ts +0 -304
  425. package/tests/unit/amf/serializer/SourceMaps.spec.ts +0 -52
  426. package/tests/unit/amf/shapes/ShapeXmlSchemaGenerator.spec.ts +0 -28
  427. package/tests/unit/amf/tracked-to-linked.spec.ts +0 -90
  428. package/tests/unit/amf/xml-data-processing.spec.ts +0 -217
  429. package/tests/unit/events/amf.spec.ts +0 -151
@@ -1,420 +0,0 @@
1
- import { AmfNamespace as ns } from '../definitions/Namespace.js';
2
- import { ShapeBase } from './ShapeBase.js';
3
- import { JsonDataNodeGenerator } from '../data-node/JsonDataNodeGenerator.js';
4
- export class ShapeJsonSchemaGenerator extends ShapeBase {
5
- /**
6
- * Generates a schema from AMF's shape.
7
- *
8
- * @param schema The Shape definition
9
- */
10
- generate(schema) {
11
- let result;
12
- if (schema.types.includes(ns.w3.shacl.PropertyShape)) {
13
- result = this._propertyShapeObject(schema);
14
- }
15
- else {
16
- result = this.toObject(schema);
17
- }
18
- if (result !== null && typeof result === 'object') {
19
- return this.serialize(result);
20
- }
21
- return result;
22
- }
23
- /**
24
- * Processes the Shape definition and returns a JavaScript object or array.
25
- */
26
- toObject(schema) {
27
- const { types } = schema;
28
- if (types.includes(ns.aml.vocabularies.shapes.ScalarShape)) {
29
- return this._scalarShapeObject(schema);
30
- }
31
- if (types.includes(ns.w3.shacl.NodeShape)) {
32
- return this._nodeShapeObject(schema);
33
- }
34
- if (types.includes(ns.aml.vocabularies.shapes.UnionShape)) {
35
- return this._unionShapeObject(schema);
36
- }
37
- if (types.includes(ns.aml.vocabularies.shapes.FileShape)) {
38
- return this._fileShapeObject();
39
- }
40
- if (types.includes(ns.aml.vocabularies.shapes.SchemaShape)) {
41
- return this._schemaShapeObject();
42
- }
43
- if (types.includes(ns.aml.vocabularies.shapes.TupleShape)) {
44
- return this._tupleShapeObject(schema);
45
- }
46
- if (types.includes(ns.aml.vocabularies.shapes.ArrayShape) ||
47
- types.includes(ns.aml.vocabularies.shapes.MatrixShape)) {
48
- return this._arrayShapeObject(schema);
49
- }
50
- return this._anyShapeObject(schema);
51
- }
52
- /**
53
- * Serializes generated JS value according to the mime type.
54
- */
55
- serialize(value) {
56
- return JSON.stringify(value, null, 2);
57
- }
58
- _scalarShapeObject(schema) {
59
- return this._scalarValue(schema);
60
- }
61
- _nilShapeObject() {
62
- return undefined;
63
- }
64
- _nodeShapeObject(schema) {
65
- const { inherits } = schema;
66
- let { examples = [] } = schema;
67
- if (Array.isArray(inherits) && inherits.length) {
68
- inherits.forEach((parent) => {
69
- const anyParent = parent;
70
- if (Array.isArray(anyParent.examples) && anyParent.examples.length) {
71
- examples = examples.concat(anyParent.examples);
72
- }
73
- });
74
- }
75
- if (this.opts.renderExamples && examples.length) {
76
- const example = examples.find((item) => !!item.structuredValue);
77
- const value = this._exampleToObject(example);
78
- if (value !== undefined) {
79
- return value;
80
- }
81
- }
82
- let result = {};
83
- const { properties } = schema;
84
- if (Array.isArray(inherits) && inherits.length) {
85
- inherits.forEach((s) => {
86
- const part = this.toObject(s);
87
- if (typeof part === 'object') {
88
- result = { ...result, ...part };
89
- }
90
- });
91
- }
92
- properties.forEach((property) => {
93
- const { name } = property;
94
- const value = this._propertyShapeObject(property);
95
- if (typeof value !== 'undefined' && name) {
96
- result[name] = value;
97
- }
98
- });
99
- return result;
100
- }
101
- _unionShapeObject(schema) {
102
- if (schema.and && schema.and.length) {
103
- return this._allOfUnion(schema);
104
- }
105
- if (schema.xone && schema.xone.length) {
106
- return this._oneOfUnion(schema);
107
- }
108
- // the default
109
- return this._anyOfUnion(schema);
110
- }
111
- _anyOfUnion(schema) {
112
- let { anyOf = [], examples = [] } = schema;
113
- if (Array.isArray(schema.inherits) && schema.inherits) {
114
- schema.inherits.forEach((parent) => {
115
- const anyParent = parent;
116
- if (Array.isArray(anyParent.examples) && anyParent.examples.length) {
117
- examples = examples.concat(anyParent.examples);
118
- }
119
- const typed = parent;
120
- if (Array.isArray(typed.anyOf) && typed.anyOf.length) {
121
- anyOf = anyOf.concat(typed.anyOf);
122
- }
123
- });
124
- }
125
- const { opts } = this;
126
- if (this._isNotRequiredUnion(anyOf)) {
127
- // This generates schema for required values.
128
- // This implicitly mean that the property is not required therefore the value should
129
- // not be generated.
130
- return undefined;
131
- }
132
- if (this.opts.renderExamples) {
133
- const example = examples.find((item) => !!item.structuredValue);
134
- const value = this._exampleToObject(example);
135
- if (value !== undefined) {
136
- return value;
137
- }
138
- }
139
- if (schema.defaultValue) {
140
- return this._unionDefaultValue(anyOf, schema.defaultValue);
141
- }
142
- const { selectedUnions } = opts;
143
- let renderedItem;
144
- if (selectedUnions && selectedUnions.length) {
145
- renderedItem = anyOf.find((item) => selectedUnions.includes(item.id));
146
- }
147
- else {
148
- ;
149
- [renderedItem] = anyOf;
150
- }
151
- if (renderedItem) {
152
- return this.toObject(renderedItem);
153
- }
154
- return undefined;
155
- }
156
- _oneOfUnion(schema) {
157
- let { examples = [] } = schema;
158
- const { xone = [] } = schema;
159
- if (Array.isArray(schema.inherits) && schema.inherits) {
160
- schema.inherits.forEach((parent) => {
161
- const anyParent = parent;
162
- if (Array.isArray(anyParent.examples) && anyParent.examples.length) {
163
- examples = examples.concat(anyParent.examples);
164
- }
165
- });
166
- }
167
- const { opts } = this;
168
- if (this.opts.renderExamples) {
169
- const example = examples.find((item) => !!item.structuredValue);
170
- const value = this._exampleToObject(example);
171
- if (value !== undefined) {
172
- return value;
173
- }
174
- }
175
- if (schema.defaultValue) {
176
- return this._unionDefaultValue(xone, schema.defaultValue);
177
- }
178
- const { selectedUnions } = opts;
179
- let renderedItem;
180
- if (selectedUnions && selectedUnions.length) {
181
- renderedItem = xone.find((item) => selectedUnions.includes(item.id));
182
- }
183
- else {
184
- ;
185
- [renderedItem] = xone;
186
- }
187
- if (renderedItem) {
188
- return this.toObject(renderedItem);
189
- }
190
- return undefined;
191
- }
192
- /**
193
- * Combines all properties from both all shapes in the union
194
- */
195
- _allOfUnion(schema) {
196
- let { examples = [] } = schema;
197
- const { and = [] } = schema;
198
- if (Array.isArray(schema.inherits) && schema.inherits) {
199
- schema.inherits.forEach((parent) => {
200
- const anyParent = parent;
201
- if (Array.isArray(anyParent.examples) && anyParent.examples.length) {
202
- examples = examples.concat(anyParent.examples);
203
- }
204
- });
205
- }
206
- if (this.opts.renderExamples) {
207
- const example = examples.find((item) => !!item.structuredValue);
208
- const value = this._exampleToObject(example);
209
- if (value !== undefined) {
210
- return value;
211
- }
212
- }
213
- let result = {};
214
- and.forEach((item) => {
215
- const props = this.toObject(item);
216
- if (typeof props === 'object') {
217
- result = { ...result, ...props };
218
- }
219
- });
220
- return result;
221
- }
222
- /**
223
- * @param union The list of unions in the shape
224
- * @param defaultValue The definition of a default value.
225
- */
226
- _unionDefaultValue(union, defaultValue) {
227
- const gen = new JsonDataNodeGenerator();
228
- const result = gen.generate(defaultValue);
229
- let hasNumber = false;
230
- let hasBoolean = false;
231
- let hasNil = false;
232
- union.forEach((i) => {
233
- if (i.types.includes(ns.aml.vocabularies.shapes.NilShape)) {
234
- hasNil = true;
235
- }
236
- if (!i.types.includes(ns.aml.vocabularies.shapes.ScalarShape)) {
237
- return;
238
- }
239
- const scalar = i;
240
- if (!hasBoolean) {
241
- hasBoolean = scalar.dataType === ns.w3.xmlSchema.boolean;
242
- }
243
- if (!hasNumber) {
244
- hasNumber = [
245
- ns.w3.xmlSchema.number,
246
- ns.w3.xmlSchema.long,
247
- ns.w3.xmlSchema.integer,
248
- ns.w3.xmlSchema.float,
249
- ns.w3.xmlSchema.double,
250
- ns.aml.vocabularies.shapes.number,
251
- ns.aml.vocabularies.shapes.long,
252
- ns.aml.vocabularies.shapes.integer,
253
- ns.aml.vocabularies.shapes.float,
254
- ns.aml.vocabularies.shapes.double,
255
- ].includes(scalar.dataType);
256
- }
257
- if (!hasNil) {
258
- hasNil = scalar.dataType === ns.w3.xmlSchema.nil;
259
- }
260
- });
261
- if (hasNumber) {
262
- const parsed = Number(result);
263
- if (!Number.isNaN(parsed)) {
264
- return parsed;
265
- }
266
- }
267
- if (hasBoolean) {
268
- if (result === 'true') {
269
- return true;
270
- }
271
- if (result === 'false') {
272
- return false;
273
- }
274
- }
275
- if (hasNil && (result === 'null' || result === 'nil')) {
276
- return null;
277
- }
278
- return result;
279
- }
280
- _arrayShapeObject(schema) {
281
- const { items } = schema;
282
- const defaultValue = schema.defaultValue || (items && items.defaultValue);
283
- let { examples = [] } = schema;
284
- const anyItems = items;
285
- if (Array.isArray(anyItems.examples)) {
286
- examples = examples.concat(anyItems.examples);
287
- }
288
- if (this.opts.renderExamples && examples && examples.length) {
289
- const example = examples.find((item) => !!item.structuredValue);
290
- const value = this._exampleToObject(example);
291
- if (Array.isArray(value)) {
292
- return value;
293
- }
294
- if (typeof value !== 'undefined') {
295
- return [value];
296
- }
297
- }
298
- if (defaultValue) {
299
- const gen = new JsonDataNodeGenerator();
300
- const arr = gen.processNode(defaultValue);
301
- if (Array.isArray(arr)) {
302
- return arr;
303
- }
304
- else if (arr) {
305
- return [arr];
306
- }
307
- }
308
- if (items) {
309
- const value = this.toObject(items);
310
- if (typeof value !== 'undefined') {
311
- return [value];
312
- }
313
- }
314
- return [];
315
- }
316
- _tupleShapeObject(schema) {
317
- const { items, examples } = schema;
318
- if (this.opts.renderExamples && examples && examples.length) {
319
- const example = examples.find((item) => !!item.structuredValue);
320
- const value = this._exampleToObject(example);
321
- if (typeof value !== 'undefined') {
322
- return [value];
323
- }
324
- }
325
- if (schema.defaultValue) {
326
- const gen = new JsonDataNodeGenerator();
327
- const arr = gen.processNode(schema.defaultValue);
328
- if (Array.isArray(arr)) {
329
- return arr;
330
- }
331
- }
332
- if (items.length) {
333
- const result = [];
334
- items.forEach((i) => {
335
- const value = this.toObject(i);
336
- if (typeof value !== 'undefined') {
337
- result.push(value);
338
- }
339
- });
340
- return result;
341
- }
342
- return [];
343
- }
344
- _anyShapeObject(schema) {
345
- const { and = [], xone = [], or = [] } = schema;
346
- if (and.length) {
347
- let result = {};
348
- and.forEach((item) => {
349
- const props = this.toObject(item);
350
- if (typeof props === 'object') {
351
- result = { ...result, ...props };
352
- }
353
- });
354
- return result;
355
- }
356
- if (xone.length) {
357
- const { selectedUnions = [] } = this.opts;
358
- let selected = xone.find((i) => selectedUnions.includes(i.id));
359
- if (!selected) {
360
- // select firs available
361
- selected = xone[0];
362
- }
363
- return this.toObject(selected);
364
- }
365
- if (or.length) {
366
- const { selectedUnions = [] } = this.opts;
367
- let selected = or.find((i) => selectedUnions.includes(i.id));
368
- if (!selected) {
369
- // select firs available
370
- selected = or[0];
371
- }
372
- return this.toObject(selected);
373
- }
374
- return this._scalarShapeObject(schema);
375
- }
376
- /**
377
- * @returns The value for the property or undefined when cannot generate the value.
378
- */
379
- _propertyShapeObject(schema) {
380
- const { minCount = 0 } = schema;
381
- if (minCount === 0 && !this.opts.renderOptional) {
382
- return undefined;
383
- }
384
- const { range } = schema;
385
- if (!range) {
386
- return undefined;
387
- }
388
- const { types } = range;
389
- if (types.includes(ns.aml.vocabularies.shapes.ScalarShape)) {
390
- // const defaultValue = schema.defaultValue || range.defaultValue;
391
- // if (!this.opts.renderExamples && defaultValue) {
392
- // const gen = new JsonDataNodeGenerator();
393
- // const value = gen.generate(defaultValue);
394
- // if (value) {
395
- // return ApiSchemaValues.readTypedValue(value, /** @type IScalarShape */ (range).dataType);
396
- // }
397
- // }
398
- const anyRange = range;
399
- return this._scalarShapeObject(anyRange);
400
- }
401
- return this.toObject(range);
402
- }
403
- /**
404
- * @param example The example to turn into a JS object
405
- */
406
- _exampleToObject(example) {
407
- if (example && example.structuredValue) {
408
- const jsonGenerator = new JsonDataNodeGenerator();
409
- return jsonGenerator.processNode(example.structuredValue);
410
- }
411
- return undefined;
412
- }
413
- _fileShapeObject() {
414
- return undefined;
415
- }
416
- _schemaShapeObject() {
417
- return undefined;
418
- }
419
- }
420
- //# sourceMappingURL=ShapeJsonSchemaGenerator.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ShapeJsonSchemaGenerator.js","sourceRoot":"","sources":["../../../../src/amf/shape/ShapeJsonSchemaGenerator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,IAAI,EAAE,EAAE,MAAM,6BAA6B,CAAA;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAC1C,OAAO,EAAE,qBAAqB,EAAE,MAAM,uCAAuC,CAAA;AAc7E,MAAM,OAAO,wBAAyB,SAAQ,SAAS;IACrD;;;;OAIG;IACH,QAAQ,CAAC,MAAoD;QAC3D,IAAI,MAAwE,CAAA;QAC5E,IAAI,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE,CA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,QAAQ,GAAG,KAAqB,CAAA;YACtC,OAAO,IAAI,CAAC,kBAAkB,CAAC,QAAQ,CAAC,CAAA;QAC1C,CAAC;QACD,OAAO,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAA;IAC7B,CAAC;IAED;;OAEG;IACO,gBAAgB,CACxB,OAAyB;QAEzB,IAAI,OAAO,IAAI,OAAO,CAAC,eAAe,EAAE,CAAC;YACvC,MAAM,aAAa,GAAG,IAAI,qBAAqB,EAAE,CAAA;YACjD,OAAO,aAAa,CAAC,WAAW,CAAC,OAAO,CAAC,eAAe,CAAC,CAAA;QAC3D,CAAC;QACD,OAAO,SAAS,CAAA;IAClB,CAAC;IAES,gBAAgB;QACxB,OAAO,SAAS,CAAA;IAClB,CAAC;IAES,kBAAkB;QAC1B,OAAO,SAAS,CAAA;IAClB,CAAC;CACF","sourcesContent":["import { AmfNamespace as ns } from '../definitions/Namespace.js'\nimport { ShapeBase } from './ShapeBase.js'\nimport { JsonDataNodeGenerator } from '../data-node/JsonDataNodeGenerator.js'\nimport {\n IApiAnyShape,\n IApiArrayShape,\n IApiDataExample,\n IApiDataNodeUnion,\n IApiNodeShape,\n IApiPropertyShape,\n IApiScalarShape,\n IShapeUnion,\n IApiTupleShape,\n IApiUnionShape,\n} from '../definitions/Shapes.js'\n\nexport class ShapeJsonSchemaGenerator extends ShapeBase {\n /**\n * Generates a schema from AMF's shape.\n *\n * @param schema The Shape definition\n */\n generate(schema: IShapeUnion | IApiPropertyShape<IShapeUnion>): string | number | boolean | null | undefined {\n let result: string | number | boolean | object | object[] | null | undefined\n if (schema.types.includes(ns.w3.shacl.PropertyShape)) {\n result = this._propertyShapeObject(schema as IApiPropertyShape<IShapeUnion>)\n } else {\n result = this.toObject(schema as IShapeUnion)\n }\n if (result !== null && typeof result === 'object') {\n return this.serialize(result)\n }\n return result\n }\n\n /**\n * Processes the Shape definition and returns a JavaScript object or array.\n */\n toObject(schema: IShapeUnion): object | object[] | string | number | boolean | null | undefined {\n const { types } = schema\n if (types.includes(ns.aml.vocabularies.shapes.ScalarShape)) {\n return this._scalarShapeObject(schema as IApiScalarShape)\n }\n if (types.includes(ns.w3.shacl.NodeShape)) {\n return this._nodeShapeObject(schema as IApiNodeShape)\n }\n if (types.includes(ns.aml.vocabularies.shapes.UnionShape)) {\n return this._unionShapeObject(schema as IApiUnionShape)\n }\n if (types.includes(ns.aml.vocabularies.shapes.FileShape)) {\n return this._fileShapeObject()\n }\n if (types.includes(ns.aml.vocabularies.shapes.SchemaShape)) {\n return this._schemaShapeObject()\n }\n if (types.includes(ns.aml.vocabularies.shapes.TupleShape)) {\n return this._tupleShapeObject(schema as IApiTupleShape)\n }\n if (\n types.includes(ns.aml.vocabularies.shapes.ArrayShape) ||\n types.includes(ns.aml.vocabularies.shapes.MatrixShape)\n ) {\n return this._arrayShapeObject(schema as IApiArrayShape)\n }\n return this._anyShapeObject(schema as IApiAnyShape)\n }\n\n /**\n * Serializes generated JS value according to the mime type.\n */\n serialize(value: object | object[]): string {\n return JSON.stringify(value, null, 2)\n }\n\n protected _scalarShapeObject(schema: IApiScalarShape): string | number | boolean | null | undefined {\n return this._scalarValue(schema)\n }\n\n protected _nilShapeObject(): undefined {\n return undefined\n }\n\n protected _nodeShapeObject(schema: IApiNodeShape): object {\n const { inherits } = schema\n let { examples = [] } = schema\n if (Array.isArray(inherits) && inherits.length) {\n inherits.forEach((parent) => {\n const anyParent = parent as IApiAnyShape\n if (Array.isArray(anyParent.examples) && anyParent.examples.length) {\n examples = examples.concat(anyParent.examples)\n }\n })\n }\n if (this.opts.renderExamples && examples.length) {\n const example = examples.find((item) => !!item.structuredValue)\n const value = this._exampleToObject(example)\n if (value !== undefined) {\n return value as object | object[]\n }\n }\n let result: Record<string, unknown> = {}\n const { properties } = schema\n if (Array.isArray(inherits) && inherits.length) {\n inherits.forEach((s) => {\n const part = this.toObject(s)\n if (typeof part === 'object') {\n result = { ...result, ...part }\n }\n })\n }\n properties.forEach((property) => {\n const { name } = property\n const value = this._propertyShapeObject(property)\n if (typeof value !== 'undefined' && name) {\n result[name] = value\n }\n })\n return result\n }\n\n protected _unionShapeObject(\n schema: IApiUnionShape\n ): object | object[] | string | number | boolean | null | undefined {\n if (schema.and && schema.and.length) {\n return this._allOfUnion(schema)\n }\n if (schema.xone && schema.xone.length) {\n return this._oneOfUnion(schema)\n }\n // the default\n return this._anyOfUnion(schema)\n }\n\n protected _anyOfUnion(schema: IApiUnionShape): object | object[] | string | number | boolean | null | undefined {\n let { anyOf = [], examples = [] } = schema\n if (Array.isArray(schema.inherits) && schema.inherits) {\n schema.inherits.forEach((parent) => {\n const anyParent = parent as IApiAnyShape\n if (Array.isArray(anyParent.examples) && anyParent.examples.length) {\n examples = examples.concat(anyParent.examples)\n }\n const typed = parent as IApiUnionShape\n if (Array.isArray(typed.anyOf) && typed.anyOf.length) {\n anyOf = anyOf.concat(typed.anyOf)\n }\n })\n }\n const { opts } = this\n if (this._isNotRequiredUnion(anyOf)) {\n // This generates schema for required values.\n // This implicitly mean that the property is not required therefore the value should\n // not be generated.\n return undefined\n }\n if (this.opts.renderExamples) {\n const example = examples.find((item) => !!item.structuredValue)\n const value = this._exampleToObject(example)\n if (value !== undefined) {\n return value\n }\n }\n if (schema.defaultValue) {\n return this._unionDefaultValue(anyOf, schema.defaultValue)\n }\n const { selectedUnions } = opts\n let renderedItem: IShapeUnion | undefined\n if (selectedUnions && selectedUnions.length) {\n renderedItem = anyOf.find((item) => selectedUnions.includes(item.id))\n } else {\n ;[renderedItem] = anyOf\n }\n if (renderedItem) {\n return this.toObject(renderedItem)\n }\n return undefined\n }\n\n protected _oneOfUnion(schema: IApiUnionShape): object | object[] | string | number | boolean | null | undefined {\n let { examples = [] } = schema\n const { xone = [] } = schema\n if (Array.isArray(schema.inherits) && schema.inherits) {\n schema.inherits.forEach((parent) => {\n const anyParent = parent as IApiAnyShape\n if (Array.isArray(anyParent.examples) && anyParent.examples.length) {\n examples = examples.concat(anyParent.examples)\n }\n })\n }\n const { opts } = this\n if (this.opts.renderExamples) {\n const example = examples.find((item) => !!item.structuredValue)\n const value = this._exampleToObject(example)\n if (value !== undefined) {\n return value\n }\n }\n if (schema.defaultValue) {\n return this._unionDefaultValue(xone, schema.defaultValue)\n }\n const { selectedUnions } = opts\n let renderedItem: IShapeUnion | undefined\n if (selectedUnions && selectedUnions.length) {\n renderedItem = xone.find((item) => selectedUnions.includes(item.id))\n } else {\n ;[renderedItem] = xone\n }\n if (renderedItem) {\n return this.toObject(renderedItem)\n }\n return undefined\n }\n\n /**\n * Combines all properties from both all shapes in the union\n */\n protected _allOfUnion(schema: IApiUnionShape): object | object[] | string | number | boolean | null | undefined {\n let { examples = [] } = schema\n const { and = [] } = schema\n if (Array.isArray(schema.inherits) && schema.inherits) {\n schema.inherits.forEach((parent) => {\n const anyParent = parent as IApiAnyShape\n if (Array.isArray(anyParent.examples) && anyParent.examples.length) {\n examples = examples.concat(anyParent.examples)\n }\n })\n }\n if (this.opts.renderExamples) {\n const example = examples.find((item) => !!item.structuredValue)\n const value = this._exampleToObject(example)\n if (value !== undefined) {\n return value\n }\n }\n let result: Record<string, unknown> = {}\n and.forEach((item) => {\n const props = this.toObject(item)\n if (typeof props === 'object') {\n result = { ...result, ...props }\n }\n })\n return result\n }\n\n /**\n * @param union The list of unions in the shape\n * @param defaultValue The definition of a default value.\n */\n protected _unionDefaultValue(\n union: IShapeUnion[],\n defaultValue: IApiDataNodeUnion\n ): string | number | boolean | null | undefined {\n const gen = new JsonDataNodeGenerator()\n const result = gen.generate(defaultValue)\n let hasNumber = false\n let hasBoolean = false\n let hasNil = false\n union.forEach((i) => {\n if (i.types.includes(ns.aml.vocabularies.shapes.NilShape)) {\n hasNil = true\n }\n if (!i.types.includes(ns.aml.vocabularies.shapes.ScalarShape)) {\n return\n }\n const scalar = i as IApiScalarShape\n if (!hasBoolean) {\n hasBoolean = scalar.dataType === ns.w3.xmlSchema.boolean\n }\n if (!hasNumber) {\n hasNumber = [\n ns.w3.xmlSchema.number,\n ns.w3.xmlSchema.long,\n ns.w3.xmlSchema.integer,\n ns.w3.xmlSchema.float,\n ns.w3.xmlSchema.double,\n ns.aml.vocabularies.shapes.number,\n ns.aml.vocabularies.shapes.long,\n ns.aml.vocabularies.shapes.integer,\n ns.aml.vocabularies.shapes.float,\n ns.aml.vocabularies.shapes.double,\n ].includes(scalar.dataType as string)\n }\n if (!hasNil) {\n hasNil = scalar.dataType === ns.w3.xmlSchema.nil\n }\n })\n if (hasNumber) {\n const parsed = Number(result)\n if (!Number.isNaN(parsed)) {\n return parsed\n }\n }\n if (hasBoolean) {\n if (result === 'true') {\n return true\n }\n if (result === 'false') {\n return false\n }\n }\n if (hasNil && (result === 'null' || result === 'nil')) {\n return null\n }\n return result\n }\n\n protected _arrayShapeObject(schema: IApiArrayShape): unknown[] {\n const { items } = schema\n const defaultValue = schema.defaultValue || (items && items.defaultValue)\n\n let { examples = [] } = schema\n const anyItems = items as IApiAnyShape\n if (Array.isArray(anyItems.examples)) {\n examples = examples.concat(anyItems.examples)\n }\n if (this.opts.renderExamples && examples && examples.length) {\n const example = examples.find((item) => !!item.structuredValue)\n const value = this._exampleToObject(example)\n if (Array.isArray(value)) {\n return value\n }\n if (typeof value !== 'undefined') {\n return [value]\n }\n }\n if (defaultValue) {\n const gen = new JsonDataNodeGenerator()\n const arr = gen.processNode(defaultValue)\n if (Array.isArray(arr)) {\n return arr\n } else if (arr) {\n return [arr]\n }\n }\n if (items) {\n const value = this.toObject(items)\n if (typeof value !== 'undefined') {\n return [value]\n }\n }\n return []\n }\n\n protected _tupleShapeObject(\n schema: IApiTupleShape\n ): object | object[] | string | number | boolean | null | undefined {\n const { items, examples } = schema\n if (this.opts.renderExamples && examples && examples.length) {\n const example = examples.find((item) => !!item.structuredValue)\n const value = this._exampleToObject(example)\n if (typeof value !== 'undefined') {\n return [value]\n }\n }\n if (schema.defaultValue) {\n const gen = new JsonDataNodeGenerator()\n const arr = gen.processNode(schema.defaultValue)\n if (Array.isArray(arr)) {\n return arr\n }\n }\n if (items.length) {\n const result: unknown[] = []\n items.forEach((i) => {\n const value = this.toObject(i)\n if (typeof value !== 'undefined') {\n result.push(value)\n }\n })\n return result\n }\n return []\n }\n\n protected _anyShapeObject(schema: IApiAnyShape): object | object[] | string | number | boolean | null | undefined {\n const { and = [], xone = [], or = [] } = schema\n if (and.length) {\n let result: Record<string, unknown> = {}\n and.forEach((item) => {\n const props = this.toObject(item)\n if (typeof props === 'object') {\n result = { ...result, ...props }\n }\n })\n return result\n }\n if (xone.length) {\n const { selectedUnions = [] } = this.opts\n let selected = xone.find((i) => selectedUnions.includes(i.id))\n if (!selected) {\n // select firs available\n selected = xone[0]\n }\n return this.toObject(selected)\n }\n if (or.length) {\n const { selectedUnions = [] } = this.opts\n let selected = or.find((i) => selectedUnions.includes(i.id))\n if (!selected) {\n // select firs available\n selected = or[0]\n }\n return this.toObject(selected)\n }\n return this._scalarShapeObject(schema)\n }\n\n /**\n * @returns The value for the property or undefined when cannot generate the value.\n */\n protected _propertyShapeObject(\n schema: IApiPropertyShape\n ): object | object[] | string | number | boolean | null | undefined {\n const { minCount = 0 } = schema\n if (minCount === 0 && !this.opts.renderOptional) {\n return undefined\n }\n const { range } = schema\n if (!range) {\n return undefined\n }\n const { types } = range\n if (types.includes(ns.aml.vocabularies.shapes.ScalarShape)) {\n // const defaultValue = schema.defaultValue || range.defaultValue;\n // if (!this.opts.renderExamples && defaultValue) {\n // const gen = new JsonDataNodeGenerator();\n // const value = gen.generate(defaultValue);\n // if (value) {\n // return ApiSchemaValues.readTypedValue(value, /** @type IScalarShape */ (range).dataType);\n // }\n // }\n const anyRange = range as IApiAnyShape\n return this._scalarShapeObject(anyRange)\n }\n return this.toObject(range)\n }\n\n /**\n * @param example The example to turn into a JS object\n */\n protected _exampleToObject(\n example?: IApiDataExample\n ): object | object[] | string | number | boolean | null | undefined {\n if (example && example.structuredValue) {\n const jsonGenerator = new JsonDataNodeGenerator()\n return jsonGenerator.processNode(example.structuredValue)\n }\n return undefined\n }\n\n protected _fileShapeObject(): undefined {\n return undefined\n }\n\n protected _schemaShapeObject(): undefined {\n return undefined\n }\n}\n"]}
@@ -1,85 +0,0 @@
1
- import { ShapeBase } from './ShapeBase.js';
2
- import { IApiAnyShape, IApiArrayShape, IApiDataExample, IApiDataNodeUnion, IApiNodeShape, IApiPropertyShape, IApiScalarShape, IShapeUnion, IApiUnionShape } from '../definitions/Shapes.js';
3
- interface IProcessNodeOptions {
4
- forceName?: string;
5
- indent?: number;
6
- noWrap?: boolean;
7
- }
8
- interface ICollectExamplesOptions {
9
- nodeName?: string;
10
- indent?: number;
11
- isWrapped?: boolean;
12
- tagFill?: string;
13
- }
14
- /**
15
- * Normalizes given name to a value that can be accepted by `createElement`
16
- * function on a document object.
17
- * @param name A name to process
18
- * @returns The normalized name
19
- */
20
- export declare const normalizeXmlTagName: (name: string) => string;
21
- export declare function shapeToXmlTagName(shape: IApiAnyShape): string;
22
- export declare class ShapeXmlSchemaGenerator extends ShapeBase {
23
- /**
24
- * Generates a XML example from the structured value.
25
- *
26
- * @param schema The Shape definition
27
- */
28
- generate(schema: IShapeUnion | IApiPropertyShape<IShapeUnion>): string | undefined;
29
- /**
30
- * Processes the Shape definition and returns a JavaScript object or array.
31
- */
32
- processNode(schema: IShapeUnion, options?: IProcessNodeOptions, isRoot?: boolean): string | undefined;
33
- /**
34
- * Serializes generated JS value according to the mime type.
35
- */
36
- serialize(value: unknown): string | undefined;
37
- /**
38
- * Picks the union member to render.
39
- */
40
- protected _readCurrentUnion(anyOf: IShapeUnion[]): IShapeUnion;
41
- protected _collectProperties(schema: IApiNodeShape): IApiPropertyShape[];
42
- protected _nodeShapeObject(schema: IApiNodeShape, options?: IProcessNodeOptions): string;
43
- protected _scalarShapeObject(schema: IApiScalarShape, options?: IProcessNodeOptions): string;
44
- protected _nilShapeObject(schema: IApiScalarShape, options?: IProcessNodeOptions): string | undefined;
45
- /**
46
- * @returns The value for the property or undefined when cannot generate the value.
47
- */
48
- protected _propertyShapeObject(schema: IApiPropertyShape, options?: IProcessNodeOptions): string | undefined;
49
- protected _collectExamples(schema: IShapeUnion, opts?: ICollectExamplesOptions): string | undefined;
50
- protected _createTabs(indent?: number, offset?: number): string;
51
- protected _nodePropertyObject(schema: IApiPropertyShape<IApiNodeShape>, options?: IProcessNodeOptions): string;
52
- protected _nodePropertyArray(schema: IApiPropertyShape<IApiArrayShape>, options?: IProcessNodeOptions): string;
53
- protected _arrayShapeObject(schema: IApiArrayShape, options?: IProcessNodeOptions, isRoot?: boolean): string;
54
- /**
55
- * Creates an example from an array shape when the items is the scalar shape.
56
- * Note, it assumes the previous step tested whether the `items` is scalar.
57
- *
58
- * @param schema The array schema
59
- * @param options Processing options.
60
- */
61
- protected _scalarItems(schema: IApiArrayShape<IApiScalarShape>, options?: IProcessNodeOptions): string;
62
- /**
63
- * Renders a NodeShape as an array item.
64
- *
65
- * @param schema The array shape with item that is NodeShape.
66
- * @param options Rendering options.
67
- */
68
- protected _nodeItems(schema: IApiArrayShape<IApiNodeShape>, options?: IProcessNodeOptions): string;
69
- /**
70
- * @param example The example to turn into a JS object
71
- */
72
- protected _exampleToObject(example?: IApiDataExample): string | undefined;
73
- protected _unionShapeObject(schema: IApiUnionShape, options?: IProcessNodeOptions): string | undefined;
74
- /**
75
- * @param schema The schema with unions
76
- * @param defaultValue The definition of a default value.
77
- */
78
- protected _unionDefaultValue(schema: IShapeUnion, defaultValue: IApiDataNodeUnion, options?: IProcessNodeOptions): string | undefined;
79
- protected _fileShapeObject(): string | undefined;
80
- protected _schemaShapeObject(): string | undefined;
81
- protected _tupleShapeObject(): string | undefined;
82
- protected _anyShapeObject(schema: IApiAnyShape): string | undefined;
83
- }
84
- export {};
85
- //# sourceMappingURL=ShapeXmlSchemaGenerator.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ShapeXmlSchemaGenerator.d.ts","sourceRoot":"","sources":["../../../../src/amf/shape/ShapeXmlSchemaGenerator.ts"],"names":[],"mappings":"A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