@api-client/ui 0.1.9 → 0.2.2

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 (1357) hide show
  1. package/.github/workflows/deployment.yml +0 -2
  2. package/build/src/decorators/reactive.d.ts.map +1 -1
  3. package/build/src/decorators/reactive.js +17 -8
  4. package/build/src/decorators/reactive.js.map +1 -1
  5. package/build/src/index.d.ts +0 -17
  6. package/build/src/index.d.ts.map +1 -1
  7. package/build/src/index.js +0 -18
  8. package/build/src/index.js.map +1 -1
  9. package/build/src/md/dialog/internals/Dialog.d.ts.map +1 -1
  10. package/build/src/md/dialog/internals/Dialog.js +6 -5
  11. package/build/src/md/dialog/internals/Dialog.js.map +1 -1
  12. package/build/src/md/dialog/internals/Dialog.styles.d.ts.map +1 -1
  13. package/build/src/md/dialog/internals/Dialog.styles.js +14 -10
  14. package/build/src/md/dialog/internals/Dialog.styles.js.map +1 -1
  15. package/demo/elements/authorization/api-key.html +1 -1
  16. package/demo/elements/authorization/basic.html +1 -1
  17. package/demo/elements/authorization/bearer.html +1 -1
  18. package/demo/elements/authorization/index.html +0 -3
  19. package/demo/elements/authorization/ntlm.html +1 -1
  20. package/demo/elements/authorization/oauth-authorize.html +1 -1
  21. package/demo/elements/authorization/oauth-error.html +1 -1
  22. package/demo/elements/authorization/oauth2.html +1 -1
  23. package/demo/elements/authorization/oidc.html +1 -1
  24. package/demo/elements/context-menu/basic.html +1 -1
  25. package/demo/elements/context-menu/custom-data.html +1 -1
  26. package/demo/elements/context-menu/enabled-state.html +1 -1
  27. package/demo/elements/context-menu/icons.html +1 -1
  28. package/demo/elements/context-menu/nested.html +1 -1
  29. package/demo/elements/context-menu/no-execute.html +1 -1
  30. package/demo/elements/context-menu/radio-menu.html +1 -1
  31. package/demo/elements/context-menu/separators.html +1 -1
  32. package/demo/elements/environment/environment-editor.html +1 -1
  33. package/demo/elements/environment/server-editor.html +1 -1
  34. package/demo/elements/environment/variables-editor.html +1 -1
  35. package/demo/elements/har/har-viewer.html +1 -1
  36. package/demo/elements/highlight/index.html +0 -4
  37. package/demo/elements/highlight/marked-highlight.html +1 -1
  38. package/demo/elements/highlight/prism-highlight.html +1 -1
  39. package/demo/elements/http/body-editor.html +1 -1
  40. package/demo/elements/http/headers.html +1 -1
  41. package/demo/elements/http/http-assertions.html +1 -1
  42. package/demo/elements/http/http-flows.html +1 -1
  43. package/demo/elements/http/request-editor.html +1 -1
  44. package/demo/elements/http/request-log.html +1 -1
  45. package/demo/elements/http/url-editing.html +1 -1
  46. package/demo/elements/icons/index.html +1 -1
  47. package/demo/elements/index.html +0 -3
  48. package/demo/elements/project/index.html +7 -0
  49. package/demo/elements/project/project-run-report.html +1 -1
  50. package/demo/elements/project/request-editor.html +1 -1
  51. package/demo/elements/user/user-avatar.html +1 -1
  52. package/demo/elements/user/user-avatar.ts +1 -1
  53. package/demo/index.html +3 -3
  54. package/demo/layout/index.html +1 -1
  55. package/demo/{elements/md → md}/UiDemoPage.ts +1 -1
  56. package/demo/{elements/md → md}/buttons/button.html +3 -3
  57. package/demo/{elements/md → md}/buttons/button.ts +10 -10
  58. package/demo/{elements/md → md}/buttons/icon-button.html +3 -3
  59. package/demo/{elements/md → md}/buttons/icon-button.ts +4 -4
  60. package/demo/{elements/md → md}/buttons/segmented-buttons.html +3 -3
  61. package/demo/{elements/md → md}/buttons/segmented-buttons.ts +4 -4
  62. package/demo/{elements/md → md}/chip/chip.html +3 -3
  63. package/demo/{elements/md → md}/chip/chip.ts +5 -5
  64. package/demo/{elements/md → md}/collapse/CustomDetail.ts +2 -2
  65. package/demo/{elements/md → md}/collapse/collapse.html +3 -3
  66. package/demo/{elements/md → md}/collapse/collapse.ts +1 -1
  67. package/demo/{elements/md → md}/dialog/dialog.html +7 -3
  68. package/demo/{elements/md → md}/dialog/dialog.ts +19 -12
  69. package/demo/{elements/md → md}/index.html +3 -3
  70. package/demo/{elements/md → md}/inputs/checkbox.html +3 -3
  71. package/demo/{elements/md → md}/inputs/checkbox.ts +4 -4
  72. package/demo/{elements/md → md}/inputs/input.html +3 -3
  73. package/demo/{elements/md → md}/inputs/input.ts +7 -7
  74. package/demo/{elements/md → md}/inputs/radio.html +3 -3
  75. package/demo/{elements/md → md}/inputs/radio.ts +4 -4
  76. package/demo/{elements/md → md}/inputs/switch.html +3 -3
  77. package/demo/{elements/md → md}/inputs/switch.ts +5 -5
  78. package/demo/{elements/md → md}/list/dropdown-list.html +3 -3
  79. package/demo/{elements/md → md}/list/dropdown-list.ts +9 -9
  80. package/demo/{elements/md → md}/list/list.html +3 -3
  81. package/demo/{elements/md → md}/list/list.ts +5 -5
  82. package/demo/{elements/md → md}/notification/snack.html +3 -3
  83. package/demo/{elements/md → md}/notification/snack.ts +2 -2
  84. package/demo/{elements/md → md}/progress/progress.html +3 -3
  85. package/demo/{elements/md → md}/progress/progress.ts +2 -2
  86. package/demo/{elements/md → md}/tabs/tabs.html +3 -3
  87. package/demo/{elements/md → md}/tabs/tabs.ts +7 -7
  88. package/demo/tsconfig.json +0 -3
  89. package/eslint.config.js +0 -3
  90. package/package.json +44 -71
  91. package/src/decorators/reactive.ts +18 -8
  92. package/src/index.ts +0 -19
  93. package/src/md/dialog/internals/Dialog.styles.ts +14 -10
  94. package/src/md/dialog/internals/Dialog.ts +6 -5
  95. package/test/core/activity.spec.ts +3 -3
  96. package/tsconfig.all.json +7 -0
  97. package/tsconfig.json +1 -0
  98. package/web-dev-server.config.js +21 -0
  99. package/web-test-runner.config.js +8 -28
  100. package/bin/dev.ts +0 -7
  101. package/bin/test.ts +0 -6
  102. package/build/src/amf/lib/AmfInputParser.d.ts +0 -69
  103. package/build/src/amf/lib/AmfInputParser.d.ts.map +0 -1
  104. package/build/src/amf/lib/AmfInputParser.js +0 -189
  105. package/build/src/amf/lib/AmfInputParser.js.map +0 -1
  106. package/build/src/amf/lib/AmfParameters.d.ts +0 -166
  107. package/build/src/amf/lib/AmfParameters.d.ts.map +0 -1
  108. package/build/src/amf/lib/AmfParameters.js +0 -720
  109. package/build/src/amf/lib/AmfParameters.js.map +0 -1
  110. package/build/src/amf/lib/AmfSecurity.d.ts +0 -7
  111. package/build/src/amf/lib/AmfSecurity.d.ts.map +0 -1
  112. package/build/src/amf/lib/AmfSecurity.js +0 -41
  113. package/build/src/amf/lib/AmfSecurity.js.map +0 -1
  114. package/build/src/amf/lib/InputCache.d.ts +0 -45
  115. package/build/src/amf/lib/InputCache.d.ts.map +0 -1
  116. package/build/src/amf/lib/InputCache.js +0 -92
  117. package/build/src/amf/lib/InputCache.js.map +0 -1
  118. package/build/src/amf/lib/Oauth2RamlCustomData.d.ts +0 -38
  119. package/build/src/amf/lib/Oauth2RamlCustomData.d.ts.map +0 -1
  120. package/build/src/amf/lib/Oauth2RamlCustomData.js +0 -248
  121. package/build/src/amf/lib/Oauth2RamlCustomData.js.map +0 -1
  122. package/build/src/amf/lib/PayloadUtils.d.ts +0 -19
  123. package/build/src/amf/lib/PayloadUtils.d.ts.map +0 -1
  124. package/build/src/amf/lib/PayloadUtils.js +0 -73
  125. package/build/src/amf/lib/PayloadUtils.js.map +0 -1
  126. package/build/src/amf/lib/QueryParameterProcessor.d.ts +0 -44
  127. package/build/src/amf/lib/QueryParameterProcessor.d.ts.map +0 -1
  128. package/build/src/amf/lib/QueryParameterProcessor.js +0 -167
  129. package/build/src/amf/lib/QueryParameterProcessor.js.map +0 -1
  130. package/build/src/amf/lib/UrlUtils.d.ts +0 -49
  131. package/build/src/amf/lib/UrlUtils.d.ts.map +0 -1
  132. package/build/src/amf/lib/UrlUtils.js +0 -209
  133. package/build/src/amf/lib/UrlUtils.js.map +0 -1
  134. package/build/src/amf/lib/Utils.d.ts +0 -43
  135. package/build/src/amf/lib/Utils.d.ts.map +0 -1
  136. package/build/src/amf/lib/Utils.js +0 -204
  137. package/build/src/amf/lib/Utils.js.map +0 -1
  138. package/build/src/amf/lib/navigation-layout/ApiSorting.d.ts +0 -8
  139. package/build/src/amf/lib/navigation-layout/ApiSorting.d.ts.map +0 -1
  140. package/build/src/amf/lib/navigation-layout/ApiSorting.js +0 -18
  141. package/build/src/amf/lib/navigation-layout/ApiSorting.js.map +0 -1
  142. package/build/src/amf/lib/navigation-layout/EndpointsTree.d.ts +0 -33
  143. package/build/src/amf/lib/navigation-layout/EndpointsTree.d.ts.map +0 -1
  144. package/build/src/amf/lib/navigation-layout/EndpointsTree.js +0 -178
  145. package/build/src/amf/lib/navigation-layout/EndpointsTree.js.map +0 -1
  146. package/build/src/amf/lib/navigation-layout/NaturalTree.d.ts +0 -25
  147. package/build/src/amf/lib/navigation-layout/NaturalTree.d.ts.map +0 -1
  148. package/build/src/amf/lib/navigation-layout/NaturalTree.js +0 -91
  149. package/build/src/amf/lib/navigation-layout/NaturalTree.js.map +0 -1
  150. package/build/src/amf/plugins/ApiNavigationCommands.d.ts +0 -4
  151. package/build/src/amf/plugins/ApiNavigationCommands.d.ts.map +0 -1
  152. package/build/src/amf/plugins/ApiNavigationCommands.js +0 -71
  153. package/build/src/amf/plugins/ApiNavigationCommands.js.map +0 -1
  154. package/build/src/amf/plugins/ApiNavigationContextMenu.d.ts +0 -16
  155. package/build/src/amf/plugins/ApiNavigationContextMenu.d.ts.map +0 -1
  156. package/build/src/amf/plugins/ApiNavigationContextMenu.js +0 -40
  157. package/build/src/amf/plugins/ApiNavigationContextMenu.js.map +0 -1
  158. package/build/src/amf/store/AmfGraphStore.d.ts +0 -39
  159. package/build/src/amf/store/AmfGraphStore.d.ts.map +0 -1
  160. package/build/src/amf/store/AmfGraphStore.js +0 -62
  161. package/build/src/amf/store/AmfGraphStore.js.map +0 -1
  162. package/build/src/amf/store/AmfStore.d.ts +0 -122
  163. package/build/src/amf/store/AmfStore.d.ts.map +0 -1
  164. package/build/src/amf/store/AmfStore.js +0 -171
  165. package/build/src/amf/store/AmfStore.js.map +0 -1
  166. package/build/src/amf/store/DomEventsAmfStore.d.ts +0 -6
  167. package/build/src/amf/store/DomEventsAmfStore.d.ts.map +0 -1
  168. package/build/src/amf/store/DomEventsAmfStore.js +0 -5
  169. package/build/src/amf/store/DomEventsAmfStore.js.map +0 -1
  170. package/build/src/amf/store/InMemAmfGraphStore.d.ts +0 -137
  171. package/build/src/amf/store/InMemAmfGraphStore.d.ts.map +0 -1
  172. package/build/src/amf/store/InMemAmfGraphStore.js +0 -586
  173. package/build/src/amf/store/InMemAmfGraphStore.js.map +0 -1
  174. package/build/src/amf/store/mixins/AmfStoreDomEventsMixin.d.ts +0 -38
  175. package/build/src/amf/store/mixins/AmfStoreDomEventsMixin.d.ts.map +0 -1
  176. package/build/src/amf/store/mixins/AmfStoreDomEventsMixin.js +0 -99
  177. package/build/src/amf/store/mixins/AmfStoreDomEventsMixin.js.map +0 -1
  178. package/build/src/amf/types.d.ts +0 -320
  179. package/build/src/amf/types.d.ts.map +0 -1
  180. package/build/src/amf/types.js +0 -2
  181. package/build/src/amf/types.js.map +0 -1
  182. package/build/src/define/amf/api-annotation-document.d.ts +0 -10
  183. package/build/src/define/amf/api-annotation-document.d.ts.map +0 -1
  184. package/build/src/define/amf/api-annotation-document.js +0 -27
  185. package/build/src/define/amf/api-annotation-document.js.map +0 -1
  186. package/build/src/define/amf/api-authorization-editor.d.ts +0 -10
  187. package/build/src/define/amf/api-authorization-editor.d.ts.map +0 -1
  188. package/build/src/define/amf/api-authorization-editor.js +0 -27
  189. package/build/src/define/amf/api-authorization-editor.js.map +0 -1
  190. package/build/src/define/amf/api-channel-document.d.ts +0 -10
  191. package/build/src/define/amf/api-channel-document.d.ts.map +0 -1
  192. package/build/src/define/amf/api-channel-document.js +0 -27
  193. package/build/src/define/amf/api-channel-document.js.map +0 -1
  194. package/build/src/define/amf/api-documentation-document.d.ts +0 -10
  195. package/build/src/define/amf/api-documentation-document.d.ts.map +0 -1
  196. package/build/src/define/amf/api-documentation-document.js +0 -27
  197. package/build/src/define/amf/api-documentation-document.js.map +0 -1
  198. package/build/src/define/amf/api-documentation.d.ts +0 -10
  199. package/build/src/define/amf/api-documentation.d.ts.map +0 -1
  200. package/build/src/define/amf/api-documentation.js +0 -27
  201. package/build/src/define/amf/api-documentation.js.map +0 -1
  202. package/build/src/define/amf/api-navigation.d.ts +0 -10
  203. package/build/src/define/amf/api-navigation.d.ts.map +0 -1
  204. package/build/src/define/amf/api-navigation.js +0 -27
  205. package/build/src/define/amf/api-navigation.js.map +0 -1
  206. package/build/src/define/amf/api-operation-document.d.ts +0 -10
  207. package/build/src/define/amf/api-operation-document.d.ts.map +0 -1
  208. package/build/src/define/amf/api-operation-document.js +0 -27
  209. package/build/src/define/amf/api-operation-document.js.map +0 -1
  210. package/build/src/define/amf/api-parameter-document.d.ts +0 -10
  211. package/build/src/define/amf/api-parameter-document.d.ts.map +0 -1
  212. package/build/src/define/amf/api-parameter-document.js +0 -27
  213. package/build/src/define/amf/api-parameter-document.js.map +0 -1
  214. package/build/src/define/amf/api-parametrized-security-scheme.d.ts +0 -10
  215. package/build/src/define/amf/api-parametrized-security-scheme.d.ts.map +0 -1
  216. package/build/src/define/amf/api-parametrized-security-scheme.js +0 -27
  217. package/build/src/define/amf/api-parametrized-security-scheme.js.map +0 -1
  218. package/build/src/define/amf/api-payload-document.d.ts +0 -10
  219. package/build/src/define/amf/api-payload-document.d.ts.map +0 -1
  220. package/build/src/define/amf/api-payload-document.js +0 -27
  221. package/build/src/define/amf/api-payload-document.js.map +0 -1
  222. package/build/src/define/amf/api-request-document.d.ts +0 -10
  223. package/build/src/define/amf/api-request-document.d.ts.map +0 -1
  224. package/build/src/define/amf/api-request-document.js +0 -27
  225. package/build/src/define/amf/api-request-document.js.map +0 -1
  226. package/build/src/define/amf/api-request-editor.d.ts +0 -10
  227. package/build/src/define/amf/api-request-editor.d.ts.map +0 -1
  228. package/build/src/define/amf/api-request-editor.js +0 -27
  229. package/build/src/define/amf/api-request-editor.js.map +0 -1
  230. package/build/src/define/amf/api-request.d.ts +0 -10
  231. package/build/src/define/amf/api-request.d.ts.map +0 -1
  232. package/build/src/define/amf/api-request.js +0 -27
  233. package/build/src/define/amf/api-request.js.map +0 -1
  234. package/build/src/define/amf/api-resource-document.d.ts +0 -10
  235. package/build/src/define/amf/api-resource-document.d.ts.map +0 -1
  236. package/build/src/define/amf/api-resource-document.js +0 -27
  237. package/build/src/define/amf/api-resource-document.js.map +0 -1
  238. package/build/src/define/amf/api-response-document.d.ts +0 -10
  239. package/build/src/define/amf/api-response-document.d.ts.map +0 -1
  240. package/build/src/define/amf/api-response-document.js +0 -27
  241. package/build/src/define/amf/api-response-document.js.map +0 -1
  242. package/build/src/define/amf/api-schema-document.d.ts +0 -10
  243. package/build/src/define/amf/api-schema-document.d.ts.map +0 -1
  244. package/build/src/define/amf/api-schema-document.js +0 -27
  245. package/build/src/define/amf/api-schema-document.js.map +0 -1
  246. package/build/src/define/amf/api-security-document.d.ts +0 -10
  247. package/build/src/define/amf/api-security-document.d.ts.map +0 -1
  248. package/build/src/define/amf/api-security-document.js +0 -27
  249. package/build/src/define/amf/api-security-document.js.map +0 -1
  250. package/build/src/define/amf/api-security-requirement-document.d.ts +0 -10
  251. package/build/src/define/amf/api-security-requirement-document.d.ts.map +0 -1
  252. package/build/src/define/amf/api-security-requirement-document.js +0 -27
  253. package/build/src/define/amf/api-security-requirement-document.js.map +0 -1
  254. package/build/src/define/amf/api-server-picker.d.ts +0 -10
  255. package/build/src/define/amf/api-server-picker.d.ts.map +0 -1
  256. package/build/src/define/amf/api-server-picker.js +0 -27
  257. package/build/src/define/amf/api-server-picker.js.map +0 -1
  258. package/build/src/define/amf/api-summary.d.ts +0 -10
  259. package/build/src/define/amf/api-summary.d.ts.map +0 -1
  260. package/build/src/define/amf/api-summary.js +0 -27
  261. package/build/src/define/amf/api-summary.js.map +0 -1
  262. package/build/src/define/amf/authorization/amf-apikey-authorization.d.ts +0 -10
  263. package/build/src/define/amf/authorization/amf-apikey-authorization.d.ts.map +0 -1
  264. package/build/src/define/amf/authorization/amf-apikey-authorization.js +0 -28
  265. package/build/src/define/amf/authorization/amf-apikey-authorization.js.map +0 -1
  266. package/build/src/define/amf/authorization/amf-basic-authorization.d.ts +0 -10
  267. package/build/src/define/amf/authorization/amf-basic-authorization.d.ts.map +0 -1
  268. package/build/src/define/amf/authorization/amf-basic-authorization.js +0 -28
  269. package/build/src/define/amf/authorization/amf-basic-authorization.js.map +0 -1
  270. package/build/src/define/amf/authorization/amf-bearer-authorization.d.ts +0 -10
  271. package/build/src/define/amf/authorization/amf-bearer-authorization.d.ts.map +0 -1
  272. package/build/src/define/amf/authorization/amf-bearer-authorization.js +0 -28
  273. package/build/src/define/amf/authorization/amf-bearer-authorization.js.map +0 -1
  274. package/build/src/define/amf/authorization/amf-oauth2-authorization.d.ts +0 -10
  275. package/build/src/define/amf/authorization/amf-oauth2-authorization.d.ts.map +0 -1
  276. package/build/src/define/amf/authorization/amf-oauth2-authorization.js +0 -31
  277. package/build/src/define/amf/authorization/amf-oauth2-authorization.js.map +0 -1
  278. package/build/src/define/amf/authorization/amf-oidc-authorization.d.ts +0 -10
  279. package/build/src/define/amf/authorization/amf-oidc-authorization.d.ts.map +0 -1
  280. package/build/src/define/amf/authorization/amf-oidc-authorization.js +0 -31
  281. package/build/src/define/amf/authorization/amf-oidc-authorization.js.map +0 -1
  282. package/build/src/define/amf/authorization/amf-passthrough-authorization.d.ts +0 -10
  283. package/build/src/define/amf/authorization/amf-passthrough-authorization.d.ts.map +0 -1
  284. package/build/src/define/amf/authorization/amf-passthrough-authorization.js +0 -28
  285. package/build/src/define/amf/authorization/amf-passthrough-authorization.js.map +0 -1
  286. package/build/src/define/amf/authorization/amf-ramlcustom-authorization.d.ts +0 -10
  287. package/build/src/define/amf/authorization/amf-ramlcustom-authorization.d.ts.map +0 -1
  288. package/build/src/define/amf/authorization/amf-ramlcustom-authorization.js +0 -28
  289. package/build/src/define/amf/authorization/amf-ramlcustom-authorization.js.map +0 -1
  290. package/build/src/elements/amf/ApiAnnotationDocument.element.d.ts +0 -61
  291. package/build/src/elements/amf/ApiAnnotationDocument.element.d.ts.map +0 -1
  292. package/build/src/elements/amf/ApiAnnotationDocument.element.js +0 -176
  293. package/build/src/elements/amf/ApiAnnotationDocument.element.js.map +0 -1
  294. package/build/src/elements/amf/ApiAnnotationDocument.styles.d.ts +0 -3
  295. package/build/src/elements/amf/ApiAnnotationDocument.styles.d.ts.map +0 -1
  296. package/build/src/elements/amf/ApiAnnotationDocument.styles.js +0 -46
  297. package/build/src/elements/amf/ApiAnnotationDocument.styles.js.map +0 -1
  298. package/build/src/elements/amf/ApiAuthorizationEditor.element.d.ts +0 -143
  299. package/build/src/elements/amf/ApiAuthorizationEditor.element.d.ts.map +0 -1
  300. package/build/src/elements/amf/ApiAuthorizationEditor.element.js +0 -379
  301. package/build/src/elements/amf/ApiAuthorizationEditor.element.js.map +0 -1
  302. package/build/src/elements/amf/ApiAuthorizationEditor.styles.d.ts +0 -3
  303. package/build/src/elements/amf/ApiAuthorizationEditor.styles.d.ts.map +0 -1
  304. package/build/src/elements/amf/ApiAuthorizationEditor.styles.js +0 -25
  305. package/build/src/elements/amf/ApiAuthorizationEditor.styles.js.map +0 -1
  306. package/build/src/elements/amf/ApiChannelDocument.element.d.ts +0 -28
  307. package/build/src/elements/amf/ApiChannelDocument.element.d.ts.map +0 -1
  308. package/build/src/elements/amf/ApiChannelDocument.element.js +0 -85
  309. package/build/src/elements/amf/ApiChannelDocument.element.js.map +0 -1
  310. package/build/src/elements/amf/ApiDocumentation.element.d.ts +0 -254
  311. package/build/src/elements/amf/ApiDocumentation.element.d.ts.map +0 -1
  312. package/build/src/elements/amf/ApiDocumentation.element.js +0 -686
  313. package/build/src/elements/amf/ApiDocumentation.element.js.map +0 -1
  314. package/build/src/elements/amf/ApiDocumentation.styles.d.ts +0 -3
  315. package/build/src/elements/amf/ApiDocumentation.styles.d.ts.map +0 -1
  316. package/build/src/elements/amf/ApiDocumentation.styles.js +0 -11
  317. package/build/src/elements/amf/ApiDocumentation.styles.js.map +0 -1
  318. package/build/src/elements/amf/ApiDocumentationBase.d.ts +0 -103
  319. package/build/src/elements/amf/ApiDocumentationBase.d.ts.map +0 -1
  320. package/build/src/elements/amf/ApiDocumentationBase.js +0 -291
  321. package/build/src/elements/amf/ApiDocumentationBase.js.map +0 -1
  322. package/build/src/elements/amf/ApiDocumentationDocument.element.d.ts +0 -29
  323. package/build/src/elements/amf/ApiDocumentationDocument.element.d.ts.map +0 -1
  324. package/build/src/elements/amf/ApiDocumentationDocument.element.js +0 -79
  325. package/build/src/elements/amf/ApiDocumentationDocument.element.js.map +0 -1
  326. package/build/src/elements/amf/ApiDocumentationDocument.styles.d.ts +0 -3
  327. package/build/src/elements/amf/ApiDocumentationDocument.styles.d.ts.map +0 -1
  328. package/build/src/elements/amf/ApiDocumentationDocument.styles.js +0 -32
  329. package/build/src/elements/amf/ApiDocumentationDocument.styles.js.map +0 -1
  330. package/build/src/elements/amf/ApiNavigation.element.d.ts +0 -579
  331. package/build/src/elements/amf/ApiNavigation.element.d.ts.map +0 -1
  332. package/build/src/elements/amf/ApiNavigation.element.js +0 -2244
  333. package/build/src/elements/amf/ApiNavigation.element.js.map +0 -1
  334. package/build/src/elements/amf/ApiNavigation.styles.d.ts +0 -3
  335. package/build/src/elements/amf/ApiNavigation.styles.d.ts.map +0 -1
  336. package/build/src/elements/amf/ApiNavigation.styles.js +0 -159
  337. package/build/src/elements/amf/ApiNavigation.styles.js.map +0 -1
  338. package/build/src/elements/amf/ApiOperationDocument.element.d.ts +0 -266
  339. package/build/src/elements/amf/ApiOperationDocument.element.d.ts.map +0 -1
  340. package/build/src/elements/amf/ApiOperationDocument.element.js +0 -1002
  341. package/build/src/elements/amf/ApiOperationDocument.element.js.map +0 -1
  342. package/build/src/elements/amf/ApiOperationDocument.styles.d.ts +0 -3
  343. package/build/src/elements/amf/ApiOperationDocument.styles.d.ts.map +0 -1
  344. package/build/src/elements/amf/ApiOperationDocument.styles.js +0 -67
  345. package/build/src/elements/amf/ApiOperationDocument.styles.js.map +0 -1
  346. package/build/src/elements/amf/ApiParameterDocument.element.d.ts +0 -32
  347. package/build/src/elements/amf/ApiParameterDocument.element.d.ts.map +0 -1
  348. package/build/src/elements/amf/ApiParameterDocument.element.js +0 -94
  349. package/build/src/elements/amf/ApiParameterDocument.element.js.map +0 -1
  350. package/build/src/elements/amf/ApiParameterDocument.styles.d.ts +0 -3
  351. package/build/src/elements/amf/ApiParameterDocument.styles.d.ts.map +0 -1
  352. package/build/src/elements/amf/ApiParameterDocument.styles.js +0 -15
  353. package/build/src/elements/amf/ApiParameterDocument.styles.js.map +0 -1
  354. package/build/src/elements/amf/ApiParametrizedSecurityScheme.element.d.ts +0 -19
  355. package/build/src/elements/amf/ApiParametrizedSecurityScheme.element.d.ts.map +0 -1
  356. package/build/src/elements/amf/ApiParametrizedSecurityScheme.element.js +0 -58
  357. package/build/src/elements/amf/ApiParametrizedSecurityScheme.element.js.map +0 -1
  358. package/build/src/elements/amf/ApiParametrizedSecurityScheme.styles.d.ts +0 -3
  359. package/build/src/elements/amf/ApiParametrizedSecurityScheme.styles.d.ts.map +0 -1
  360. package/build/src/elements/amf/ApiParametrizedSecurityScheme.styles.js +0 -4
  361. package/build/src/elements/amf/ApiParametrizedSecurityScheme.styles.js.map +0 -1
  362. package/build/src/elements/amf/ApiPayloadDocument.element.d.ts +0 -32
  363. package/build/src/elements/amf/ApiPayloadDocument.element.d.ts.map +0 -1
  364. package/build/src/elements/amf/ApiPayloadDocument.element.js +0 -131
  365. package/build/src/elements/amf/ApiPayloadDocument.element.js.map +0 -1
  366. package/build/src/elements/amf/ApiPayloadDocument.styles.d.ts +0 -3
  367. package/build/src/elements/amf/ApiPayloadDocument.styles.d.ts.map +0 -1
  368. package/build/src/elements/amf/ApiPayloadDocument.styles.js +0 -15
  369. package/build/src/elements/amf/ApiPayloadDocument.styles.js.map +0 -1
  370. package/build/src/elements/amf/ApiRequest.element.d.ts +0 -131
  371. package/build/src/elements/amf/ApiRequest.element.d.ts.map +0 -1
  372. package/build/src/elements/amf/ApiRequest.element.js +0 -318
  373. package/build/src/elements/amf/ApiRequest.element.js.map +0 -1
  374. package/build/src/elements/amf/ApiRequest.styles.d.ts +0 -3
  375. package/build/src/elements/amf/ApiRequest.styles.d.ts.map +0 -1
  376. package/build/src/elements/amf/ApiRequest.styles.js +0 -11
  377. package/build/src/elements/amf/ApiRequest.styles.js.map +0 -1
  378. package/build/src/elements/amf/ApiRequestDocument.element.d.ts +0 -115
  379. package/build/src/elements/amf/ApiRequestDocument.element.d.ts.map +0 -1
  380. package/build/src/elements/amf/ApiRequestDocument.element.js +0 -401
  381. package/build/src/elements/amf/ApiRequestDocument.element.js.map +0 -1
  382. package/build/src/elements/amf/ApiRequestDocument.styles.d.ts +0 -3
  383. package/build/src/elements/amf/ApiRequestDocument.styles.d.ts.map +0 -1
  384. package/build/src/elements/amf/ApiRequestDocument.styles.js +0 -13
  385. package/build/src/elements/amf/ApiRequestDocument.styles.js.map +0 -1
  386. package/build/src/elements/amf/ApiRequestEditor.element.d.ts +0 -485
  387. package/build/src/elements/amf/ApiRequestEditor.element.d.ts.map +0 -1
  388. package/build/src/elements/amf/ApiRequestEditor.element.js +0 -1735
  389. package/build/src/elements/amf/ApiRequestEditor.element.js.map +0 -1
  390. package/build/src/elements/amf/ApiRequestEditor.styles.d.ts +0 -3
  391. package/build/src/elements/amf/ApiRequestEditor.styles.d.ts.map +0 -1
  392. package/build/src/elements/amf/ApiRequestEditor.styles.js +0 -160
  393. package/build/src/elements/amf/ApiRequestEditor.styles.js.map +0 -1
  394. package/build/src/elements/amf/ApiResourceDocument.element.d.ts +0 -233
  395. package/build/src/elements/amf/ApiResourceDocument.element.d.ts.map +0 -1
  396. package/build/src/elements/amf/ApiResourceDocument.element.js +0 -706
  397. package/build/src/elements/amf/ApiResourceDocument.element.js.map +0 -1
  398. package/build/src/elements/amf/ApiResourceDocument.styles.d.ts +0 -3
  399. package/build/src/elements/amf/ApiResourceDocument.styles.d.ts.map +0 -1
  400. package/build/src/elements/amf/ApiResourceDocument.styles.js +0 -91
  401. package/build/src/elements/amf/ApiResourceDocument.styles.js.map +0 -1
  402. package/build/src/elements/amf/ApiResponseDocument.element.d.ts +0 -79
  403. package/build/src/elements/amf/ApiResponseDocument.element.d.ts.map +0 -1
  404. package/build/src/elements/amf/ApiResponseDocument.element.js +0 -298
  405. package/build/src/elements/amf/ApiResponseDocument.element.js.map +0 -1
  406. package/build/src/elements/amf/ApiResponseDocument.styles.d.ts +0 -3
  407. package/build/src/elements/amf/ApiResponseDocument.styles.d.ts.map +0 -1
  408. package/build/src/elements/amf/ApiResponseDocument.styles.js +0 -41
  409. package/build/src/elements/amf/ApiResponseDocument.styles.js.map +0 -1
  410. package/build/src/elements/amf/ApiSchemaDocument.element.d.ts +0 -144
  411. package/build/src/elements/amf/ApiSchemaDocument.element.d.ts.map +0 -1
  412. package/build/src/elements/amf/ApiSchemaDocument.element.js +0 -765
  413. package/build/src/elements/amf/ApiSchemaDocument.element.js.map +0 -1
  414. package/build/src/elements/amf/ApiSchemaDocument.styles.d.ts +0 -3
  415. package/build/src/elements/amf/ApiSchemaDocument.styles.d.ts.map +0 -1
  416. package/build/src/elements/amf/ApiSchemaDocument.styles.js +0 -41
  417. package/build/src/elements/amf/ApiSchemaDocument.styles.js.map +0 -1
  418. package/build/src/elements/amf/ApiSecurityDocument.element.d.ts +0 -180
  419. package/build/src/elements/amf/ApiSecurityDocument.element.d.ts.map +0 -1
  420. package/build/src/elements/amf/ApiSecurityDocument.element.js +0 -592
  421. package/build/src/elements/amf/ApiSecurityDocument.element.js.map +0 -1
  422. package/build/src/elements/amf/ApiSecurityDocument.styles.d.ts +0 -3
  423. package/build/src/elements/amf/ApiSecurityDocument.styles.d.ts.map +0 -1
  424. package/build/src/elements/amf/ApiSecurityDocument.styles.js +0 -89
  425. package/build/src/elements/amf/ApiSecurityDocument.styles.js.map +0 -1
  426. package/build/src/elements/amf/ApiSecurityRequirementDocument.element.d.ts +0 -16
  427. package/build/src/elements/amf/ApiSecurityRequirementDocument.element.d.ts.map +0 -1
  428. package/build/src/elements/amf/ApiSecurityRequirementDocument.element.js +0 -76
  429. package/build/src/elements/amf/ApiSecurityRequirementDocument.element.js.map +0 -1
  430. package/build/src/elements/amf/ApiSecurityRequirementDocument.styles.d.ts +0 -3
  431. package/build/src/elements/amf/ApiSecurityRequirementDocument.styles.d.ts.map +0 -1
  432. package/build/src/elements/amf/ApiSecurityRequirementDocument.styles.js +0 -7
  433. package/build/src/elements/amf/ApiSecurityRequirementDocument.styles.js.map +0 -1
  434. package/build/src/elements/amf/ApiServerPicker.element.d.ts +0 -256
  435. package/build/src/elements/amf/ApiServerPicker.element.d.ts.map +0 -1
  436. package/build/src/elements/amf/ApiServerPicker.element.js +0 -715
  437. package/build/src/elements/amf/ApiServerPicker.element.js.map +0 -1
  438. package/build/src/elements/amf/ApiServerPicker.styles.d.ts +0 -3
  439. package/build/src/elements/amf/ApiServerPicker.styles.d.ts.map +0 -1
  440. package/build/src/elements/amf/ApiServerPicker.styles.js +0 -25
  441. package/build/src/elements/amf/ApiServerPicker.styles.js.map +0 -1
  442. package/build/src/elements/amf/ApiSummary.element.d.ts +0 -90
  443. package/build/src/elements/amf/ApiSummary.element.d.ts.map +0 -1
  444. package/build/src/elements/amf/ApiSummary.element.js +0 -385
  445. package/build/src/elements/amf/ApiSummary.element.js.map +0 -1
  446. package/build/src/elements/amf/ApiSummary.styles.d.ts +0 -3
  447. package/build/src/elements/amf/ApiSummary.styles.d.ts.map +0 -1
  448. package/build/src/elements/amf/ApiSummary.styles.js +0 -192
  449. package/build/src/elements/amf/ApiSummary.styles.js.map +0 -1
  450. package/build/src/elements/amf/SchemaCommonTemplates.d.ts +0 -56
  451. package/build/src/elements/amf/SchemaCommonTemplates.d.ts.map +0 -1
  452. package/build/src/elements/amf/SchemaCommonTemplates.js +0 -499
  453. package/build/src/elements/amf/SchemaCommonTemplates.js.map +0 -1
  454. package/build/src/elements/amf/authorization/AmfApiKey.d.ts +0 -60
  455. package/build/src/elements/amf/authorization/AmfApiKey.d.ts.map +0 -1
  456. package/build/src/elements/amf/authorization/AmfApiKey.js +0 -237
  457. package/build/src/elements/amf/authorization/AmfApiKey.js.map +0 -1
  458. package/build/src/elements/amf/authorization/AmfBasic.d.ts +0 -16
  459. package/build/src/elements/amf/authorization/AmfBasic.d.ts.map +0 -1
  460. package/build/src/elements/amf/authorization/AmfBasic.js +0 -86
  461. package/build/src/elements/amf/authorization/AmfBasic.js.map +0 -1
  462. package/build/src/elements/amf/authorization/AmfBearer.d.ts +0 -15
  463. package/build/src/elements/amf/authorization/AmfBearer.d.ts.map +0 -1
  464. package/build/src/elements/amf/authorization/AmfBearer.js +0 -73
  465. package/build/src/elements/amf/authorization/AmfBearer.js.map +0 -1
  466. package/build/src/elements/amf/authorization/AmfOauth2.d.ts +0 -236
  467. package/build/src/elements/amf/authorization/AmfOauth2.d.ts.map +0 -1
  468. package/build/src/elements/amf/authorization/AmfOauth2.js +0 -795
  469. package/build/src/elements/amf/authorization/AmfOauth2.js.map +0 -1
  470. package/build/src/elements/amf/authorization/AmfOidc.d.ts +0 -14
  471. package/build/src/elements/amf/authorization/AmfOidc.d.ts.map +0 -1
  472. package/build/src/elements/amf/authorization/AmfOidc.js +0 -72
  473. package/build/src/elements/amf/authorization/AmfOidc.js.map +0 -1
  474. package/build/src/elements/amf/authorization/AmfPassThrough.d.ts +0 -58
  475. package/build/src/elements/amf/authorization/AmfPassThrough.d.ts.map +0 -1
  476. package/build/src/elements/amf/authorization/AmfPassThrough.js +0 -259
  477. package/build/src/elements/amf/authorization/AmfPassThrough.js.map +0 -1
  478. package/build/src/elements/amf/authorization/AmfRamlCustom.d.ts +0 -53
  479. package/build/src/elements/amf/authorization/AmfRamlCustom.d.ts.map +0 -1
  480. package/build/src/elements/amf/authorization/AmfRamlCustom.js +0 -291
  481. package/build/src/elements/amf/authorization/AmfRamlCustom.js.map +0 -1
  482. package/build/src/elements/amf/authorization/Authorization.styles.d.ts +0 -3
  483. package/build/src/elements/amf/authorization/Authorization.styles.d.ts.map +0 -1
  484. package/build/src/elements/amf/authorization/Authorization.styles.js +0 -40
  485. package/build/src/elements/amf/authorization/Authorization.styles.js.map +0 -1
  486. package/build/src/elements/amf/styles/AuthorizationMethod.d.ts +0 -3
  487. package/build/src/elements/amf/styles/AuthorizationMethod.d.ts.map +0 -1
  488. package/build/src/elements/amf/styles/AuthorizationMethod.js +0 -46
  489. package/build/src/elements/amf/styles/AuthorizationMethod.js.map +0 -1
  490. package/build/src/elements/amf/styles/Common.d.ts +0 -3
  491. package/build/src/elements/amf/styles/Common.d.ts.map +0 -1
  492. package/build/src/elements/amf/styles/Common.js +0 -150
  493. package/build/src/elements/amf/styles/Common.js.map +0 -1
  494. package/build/src/elements/amf/styles/SchemaCommon.d.ts +0 -3
  495. package/build/src/elements/amf/styles/SchemaCommon.d.ts.map +0 -1
  496. package/build/src/elements/amf/styles/SchemaCommon.js +0 -376
  497. package/build/src/elements/amf/styles/SchemaCommon.js.map +0 -1
  498. package/build/src/events/amf/ApiEvents.d.ts +0 -25
  499. package/build/src/events/amf/ApiEvents.d.ts.map +0 -1
  500. package/build/src/events/amf/ApiEvents.js +0 -42
  501. package/build/src/events/amf/ApiEvents.js.map +0 -1
  502. package/build/src/events/amf/BaseEvents.d.ts +0 -69
  503. package/build/src/events/amf/BaseEvents.d.ts.map +0 -1
  504. package/build/src/events/amf/BaseEvents.js +0 -64
  505. package/build/src/events/amf/BaseEvents.js.map +0 -1
  506. package/build/src/events/amf/DocumentationEvents.d.ts +0 -17
  507. package/build/src/events/amf/DocumentationEvents.d.ts.map +0 -1
  508. package/build/src/events/amf/DocumentationEvents.js +0 -27
  509. package/build/src/events/amf/DocumentationEvents.js.map +0 -1
  510. package/build/src/events/amf/EndpointEvents.d.ts +0 -21
  511. package/build/src/events/amf/EndpointEvents.d.ts.map +0 -1
  512. package/build/src/events/amf/EndpointEvents.js +0 -35
  513. package/build/src/events/amf/EndpointEvents.js.map +0 -1
  514. package/build/src/events/amf/EventTypes.d.ts +0 -65
  515. package/build/src/events/amf/EventTypes.d.ts.map +0 -1
  516. package/build/src/events/amf/EventTypes.js +0 -65
  517. package/build/src/events/amf/EventTypes.js.map +0 -1
  518. package/build/src/events/amf/Events.d.ts +0 -63
  519. package/build/src/events/amf/Events.d.ts.map +0 -1
  520. package/build/src/events/amf/Events.js +0 -38
  521. package/build/src/events/amf/Events.js.map +0 -1
  522. package/build/src/events/amf/NavigationEvents.d.ts +0 -50
  523. package/build/src/events/amf/NavigationEvents.d.ts.map +0 -1
  524. package/build/src/events/amf/NavigationEvents.js +0 -59
  525. package/build/src/events/amf/NavigationEvents.js.map +0 -1
  526. package/build/src/events/amf/OperationEvents.d.ts +0 -17
  527. package/build/src/events/amf/OperationEvents.d.ts.map +0 -1
  528. package/build/src/events/amf/OperationEvents.js +0 -27
  529. package/build/src/events/amf/OperationEvents.js.map +0 -1
  530. package/build/src/events/amf/PayloadEvents.d.ts +0 -10
  531. package/build/src/events/amf/PayloadEvents.d.ts.map +0 -1
  532. package/build/src/events/amf/PayloadEvents.js +0 -16
  533. package/build/src/events/amf/PayloadEvents.js.map +0 -1
  534. package/build/src/events/amf/ReportingEvents.d.ts +0 -16
  535. package/build/src/events/amf/ReportingEvents.d.ts.map +0 -1
  536. package/build/src/events/amf/ReportingEvents.js +0 -22
  537. package/build/src/events/amf/ReportingEvents.js.map +0 -1
  538. package/build/src/events/amf/RequestEvents.d.ts +0 -10
  539. package/build/src/events/amf/RequestEvents.d.ts.map +0 -1
  540. package/build/src/events/amf/RequestEvents.js +0 -15
  541. package/build/src/events/amf/RequestEvents.js.map +0 -1
  542. package/build/src/events/amf/ResponseEvents.d.ts +0 -10
  543. package/build/src/events/amf/ResponseEvents.d.ts.map +0 -1
  544. package/build/src/events/amf/ResponseEvents.js +0 -16
  545. package/build/src/events/amf/ResponseEvents.js.map +0 -1
  546. package/build/src/events/amf/SecurityEvents.d.ts +0 -31
  547. package/build/src/events/amf/SecurityEvents.d.ts.map +0 -1
  548. package/build/src/events/amf/SecurityEvents.js +0 -53
  549. package/build/src/events/amf/SecurityEvents.js.map +0 -1
  550. package/build/src/events/amf/ServerEvents.d.ts +0 -63
  551. package/build/src/events/amf/ServerEvents.d.ts.map +0 -1
  552. package/build/src/events/amf/ServerEvents.js +0 -70
  553. package/build/src/events/amf/ServerEvents.js.map +0 -1
  554. package/build/src/events/amf/StoreEvents.d.ts +0 -8
  555. package/build/src/events/amf/StoreEvents.d.ts.map +0 -1
  556. package/build/src/events/amf/StoreEvents.js +0 -16
  557. package/build/src/events/amf/StoreEvents.js.map +0 -1
  558. package/build/src/events/amf/TelemetryEvents.d.ts +0 -79
  559. package/build/src/events/amf/TelemetryEvents.d.ts.map +0 -1
  560. package/build/src/events/amf/TelemetryEvents.js +0 -65
  561. package/build/src/events/amf/TelemetryEvents.js.map +0 -1
  562. package/build/src/events/amf/TypeEvents.d.ts +0 -16
  563. package/build/src/events/amf/TypeEvents.d.ts.map +0 -1
  564. package/build/src/events/amf/TypeEvents.js +0 -25
  565. package/build/src/events/amf/TypeEvents.js.map +0 -1
  566. package/demo/amf/api-annotation.html +0 -21
  567. package/demo/amf/api-annotation.ts +0 -117
  568. package/demo/amf/api-channel.html +0 -25
  569. package/demo/amf/api-channel.ts +0 -76
  570. package/demo/amf/api-console.html +0 -23
  571. package/demo/amf/api-console.ts +0 -505
  572. package/demo/amf/api-documentation-document.html +0 -25
  573. package/demo/amf/api-documentation-document.ts +0 -79
  574. package/demo/amf/api-documentation.html +0 -25
  575. package/demo/amf/api-documentation.ts +0 -242
  576. package/demo/amf/api-navigation.html +0 -29
  577. package/demo/amf/api-navigation.ts +0 -278
  578. package/demo/amf/api-operation.html +0 -37
  579. package/demo/amf/api-operation.ts +0 -274
  580. package/demo/amf/api-payload.html +0 -25
  581. package/demo/amf/api-payload.ts +0 -176
  582. package/demo/amf/api-request.html +0 -24
  583. package/demo/amf/api-request.ts +0 -259
  584. package/demo/amf/api-resource.html +0 -31
  585. package/demo/amf/api-resource.ts +0 -264
  586. package/demo/amf/api-schema-documentation.html +0 -25
  587. package/demo/amf/api-schema-documentation.ts +0 -207
  588. package/demo/amf/api-security-documentation.html +0 -25
  589. package/demo/amf/api-security-documentation.ts +0 -94
  590. package/demo/amf/api-server-picker.html +0 -24
  591. package/demo/amf/api-server-picker.ts +0 -233
  592. package/demo/amf/api-summary.html +0 -25
  593. package/demo/amf/api-summary.ts +0 -84
  594. package/demo/amf/bare-components.css +0 -11
  595. package/demo/amf/bare-components.html +0 -38
  596. package/demo/amf/bare-components.ts +0 -18
  597. package/demo/amf/demo.css +0 -136
  598. package/demo/amf/index.html +0 -65
  599. package/demo/amf/lib/AmfDemoPage.ts +0 -285
  600. package/demo/amf/oauth-authorize.html +0 -74
  601. package/demo/amf/oauth-authorize.ts +0 -40
  602. package/demo/amf/request-editor.html +0 -24
  603. package/demo/amf/request-editor.ts +0 -267
  604. package/demo/amf/styles/api-console.css +0 -60
  605. package/demo/amf/styles/api-editor.css +0 -139
  606. package/demo/amf/styles/console-theme.css +0 -0
  607. package/demo/amf/styles/demo-grid.css +0 -26
  608. package/demo/apis/21143/21143.json +0 -638
  609. package/demo/apis/APIC-15/APIC-15.raml +0 -36
  610. package/demo/apis/APIC-15/data-types/organization-data-type.raml +0 -19
  611. package/demo/apis/APIC-15/examples/organization/organization-array-response.raml +0 -15
  612. package/demo/apis/APIC-15/examples/organization/organization-individual-response.raml +0 -8
  613. package/demo/apis/APIC-168/APIC-168.raml +0 -38
  614. package/demo/apis/APIC-282/APIC-282.raml +0 -57
  615. package/demo/apis/APIC-289/APIC-289.yaml +0 -21
  616. package/demo/apis/APIC-298/APIC-298.json +0 -588
  617. package/demo/apis/APIC-332/APIC-332.raml +0 -22
  618. package/demo/apis/APIC-349-cache-resolution/APIC-349-cache-resolution.raml +0 -141
  619. package/demo/apis/APIC-349-cache-resolution/docs/DocumentationItem-1.raml +0 -3
  620. package/demo/apis/APIC-349-cache-resolution/docs/api.md +0 -1
  621. package/demo/apis/APIC-349-cache-resolution/docs/documentationTitle.md +0 -1
  622. package/demo/apis/APIC-349-cache-resolution/examples/usingObj-example.json +0 -19
  623. package/demo/apis/APIC-349-cache-resolution/examples/usingObj-example2.json +0 -19
  624. package/demo/apis/APIC-349-cache-resolution/libraries/schema.json +0 -21
  625. package/demo/apis/APIC-349-cache-resolution/libraries/types.raml +0 -88
  626. package/demo/apis/APIC-390/APIC-390.raml +0 -13
  627. package/demo/apis/APIC-390/Types/ISO-standards.raml +0 -30
  628. package/demo/apis/APIC-429/APIC-429.yaml +0 -63
  629. package/demo/apis/APIC-435/APIC-435.yaml +0 -27
  630. package/demo/apis/APIC-449/APIC-449.yaml +0 -8
  631. package/demo/apis/APIC-463/APIC-463.raml +0 -13
  632. package/demo/apis/APIC-480/APIC-480.raml +0 -61
  633. package/demo/apis/APIC-480/examples/account-response.json +0 -5
  634. package/demo/apis/APIC-483/APIC-483.raml +0 -16
  635. package/demo/apis/APIC-483/example/list-of-bank-succ.json +0 -32
  636. package/demo/apis/APIC-483/schema/response-retrieve-list-bank.json +0 -68
  637. package/demo/apis/APIC-550/APIC-550.raml +0 -46
  638. package/demo/apis/APIC-553/APIC-553.raml +0 -59
  639. package/demo/apis/APIC-554/APIC-554.raml +0 -6
  640. package/demo/apis/APIC-554-ii/APIC-554-ii.raml +0 -5
  641. package/demo/apis/APIC-560/APIC-560.yaml +0 -209
  642. package/demo/apis/APIC-582/APIC-582.yaml +0 -23
  643. package/demo/apis/APIC-613/APIC-613.raml +0 -16
  644. package/demo/apis/APIC-631/APIC-631.raml +0 -20
  645. package/demo/apis/APIC-641/APIC-641.yaml +0 -29
  646. package/demo/apis/APIC-649/APIC-649.yaml +0 -118
  647. package/demo/apis/APIC-650/APIC-650.yaml +0 -24
  648. package/demo/apis/APIC-650/common-parameters.yaml +0 -23
  649. package/demo/apis/APIC-667/APIC-667.raml +0 -30
  650. package/demo/apis/APIC-671/APIC-671.yaml +0 -387
  651. package/demo/apis/APIC-689/APIC-689.raml +0 -20
  652. package/demo/apis/APIC-711/APIC-711.raml +0 -41
  653. package/demo/apis/SE-10469/Purchase-Order-oagis-id-dd32f9c6c01048a19e15c423c9c741ae.json +0 -1383
  654. package/demo/apis/SE-10469/SE-10469.raml +0 -11
  655. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-address.raml +0 -126
  656. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-base.raml +0 -31
  657. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-basic-questions-set.raml +0 -42
  658. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-code-description.raml +0 -36
  659. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-code-origin.raml +0 -24
  660. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-contact-information.raml +0 -69
  661. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-content-data.raml +0 -19
  662. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-content-metadata.raml +0 -243
  663. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-content.raml +0 -47
  664. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-contextual.raml +0 -18
  665. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-currency.raml +0 -22
  666. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-document-statistic.raml +0 -44
  667. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-email-address.raml +0 -19
  668. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-error.raml +0 -33
  669. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-habit.raml +0 -61
  670. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-language.raml +0 -32
  671. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-log-entry.raml +0 -92
  672. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-master-key.raml +0 -49
  673. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-organization.raml +0 -38
  674. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-party.raml +0 -37
  675. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-performance-node.raml +0 -43
  676. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-performance-report.raml +0 -22
  677. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-person-name.raml +0 -45
  678. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-person.raml +0 -103
  679. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-phone.raml +0 -32
  680. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-policyholder.raml +0 -1
  681. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-preferable.raml +0 -15
  682. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-property.raml +0 -61
  683. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-role.raml +0 -51
  684. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-social-media-account.raml +0 -28
  685. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-source.raml +0 -65
  686. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-version.raml +0 -36
  687. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/docs/Legal.raml +0 -3
  688. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/examples/example-error.raml +0 -7
  689. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/examples/example-get-health-check.raml +0 -16
  690. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/examples/example-performance-report.raml +0 -23
  691. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/exchange.json +0 -1
  692. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/libraries/library-address.raml +0 -7
  693. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/libraries/library-base.raml +0 -3
  694. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/libraries/library-basic-questions-set.raml +0 -7
  695. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/libraries/library-code-description.raml +0 -7
  696. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/libraries/library-contact-info.raml +0 -3
  697. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/libraries/library-content.raml +0 -5
  698. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/libraries/library-context-and-preference.raml +0 -4
  699. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/libraries/library-email.raml +0 -7
  700. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/libraries/library-entity.raml +0 -36
  701. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/libraries/library-error.raml +0 -3
  702. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/libraries/library-habit.raml +0 -7
  703. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/libraries/library-language.raml +0 -7
  704. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/libraries/library-master-key.raml +0 -3
  705. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/libraries/library-organization.raml +0 -4
  706. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/libraries/library-party.raml +0 -8
  707. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/libraries/library-performance.raml +0 -8
  708. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/libraries/library-person-name.raml +0 -3
  709. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/libraries/library-person.raml +0 -7
  710. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/libraries/library-phone.raml +0 -7
  711. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/libraries/library-property.raml +0 -7
  712. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/libraries/library-role.raml +0 -6
  713. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/libraries/library-social-media.raml +0 -7
  714. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/libraries/library-source.raml +0 -7
  715. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/libraries/library-traits.raml +0 -11
  716. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/libraries/library-version.raml +0 -7
  717. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/resource-types/resourceType-applicable-to-collection-actions.raml +0 -51
  718. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/resource-types/resourceType-applicable-to-collections.raml +0 -157
  719. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/resource-types/resourceType-applicable-to-item-actions.raml +0 -48
  720. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/resource-types/resourceType-applicable-to-items.raml +0 -154
  721. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/resource-types/resourceType-get-health-check.raml +0 -39
  722. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/security-schemes/securityScheme-basic.raml +0 -4
  723. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/traits/trait-asynchronously-callable.raml +0 -12
  724. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/traits/trait-filterable.raml +0 -19
  725. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/traits/trait-identifyable.raml +0 -50
  726. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/traits/trait-pageable.raml +0 -40
  727. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/traits/trait-performance-monitorable.raml +0 -31
  728. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/traits/trait-routable.raml +0 -22
  729. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/traits/trait-selectable.raml +0 -140
  730. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/traits/trait-sortable.raml +0 -20
  731. package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/traits/trait-traceable.raml +0 -24
  732. package/demo/apis/SE-11155/SE-11155.raml +0 -43
  733. package/demo/apis/SE-11155/data-types/dataType-archive-users-request.raml +0 -19
  734. package/demo/apis/SE-11155/data-types/dataType-archive-users-response.raml +0 -20
  735. package/demo/apis/SE-11155/data-types/dataType-restore-user-request.raml +0 -1
  736. package/demo/apis/SE-11155/data-types/dataType-restore-user-response.raml +0 -1
  737. package/demo/apis/SE-11155/data-types/dataType-user.raml +0 -53
  738. package/demo/apis/SE-11155/examples/user-action-restore-user-200.raml +0 -3
  739. package/demo/apis/SE-11155/examples/user-action-restore-user-cds-202.raml +0 -7
  740. package/demo/apis/SE-11155/examples/user-action-restore-user.raml +0 -3
  741. package/demo/apis/SE-11155/examples/user-delete-cds-200.raml +0 -4
  742. package/demo/apis/SE-11155/examples/user-delete-cds-202.raml +0 -11
  743. package/demo/apis/SE-11155/examples/user-get-200.raml +0 -17
  744. package/demo/apis/SE-11155/examples/user-patch-200.raml +0 -14
  745. package/demo/apis/SE-11155/examples/user-patch-cds-200.raml +0 -4
  746. package/demo/apis/SE-11155/examples/user-patch-cds-202.raml +0 -7
  747. package/demo/apis/SE-11155/examples/user-patch.raml +0 -14
  748. package/demo/apis/SE-11155/examples/user-put-200.raml +0 -17
  749. package/demo/apis/SE-11155/examples/user-put-cds-200.raml +0 -4
  750. package/demo/apis/SE-11155/examples/user-put-cds-202.raml +0 -11
  751. package/demo/apis/SE-11155/examples/user-put.raml +0 -17
  752. package/demo/apis/SE-11155/examples/users-action-archive-users-200.raml +0 -5
  753. package/demo/apis/SE-11155/examples/users-action-archive-users-cds-200.raml +0 -5
  754. package/demo/apis/SE-11155/examples/users-action-archive-users.raml +0 -5
  755. package/demo/apis/SE-11155/examples/users-delete-cds-200.raml +0 -4
  756. package/demo/apis/SE-11155/examples/users-delete-cds-202.raml +0 -11
  757. package/demo/apis/SE-11155/examples/users-get-200.raml +0 -47
  758. package/demo/apis/SE-11155/examples/users-patch-200.raml +0 -32
  759. package/demo/apis/SE-11155/examples/users-patch-cds-200.raml +0 -4
  760. package/demo/apis/SE-11155/examples/users-patch-cds-202.raml +0 -11
  761. package/demo/apis/SE-11155/examples/users-patch.raml +0 -14
  762. package/demo/apis/SE-11155/examples/users-post-cds-200.raml +0 -4
  763. package/demo/apis/SE-11155/examples/users-post-cds-202.raml +0 -11
  764. package/demo/apis/SE-11155/examples/users-post-multi-200.raml +0 -47
  765. package/demo/apis/SE-11155/examples/users-post-multi.raml +0 -44
  766. package/demo/apis/SE-11155/examples/users-post-single-200.raml +0 -17
  767. package/demo/apis/SE-11155/examples/users-post-single.raml +0 -16
  768. package/demo/apis/SE-11155/libraries/library.raml +0 -16
  769. package/demo/apis/SE-11415/SE-11415.raml +0 -94
  770. package/demo/apis/SE-11415/canda-commons/canda-commons.raml +0 -50
  771. package/demo/apis/SE-11415/canda-commons/ref/log-levels-example.json +0 -3
  772. package/demo/apis/SE-11415/canda-commons/ref/log-levels-response-example.json +0 -3
  773. package/demo/apis/SE-11415/canda-commons/ref/log-levels-response-schema.json +0 -10
  774. package/demo/apis/SE-11415/canda-commons/ref/log-levels-schema.json +0 -30
  775. package/demo/apis/SE-11415/ref/additions-example.json +0 -12
  776. package/demo/apis/SE-11415/ref/additions-schema.json +0 -43
  777. package/demo/apis/SE-11415/ref/companies-example.json +0 -11
  778. package/demo/apis/SE-11415/ref/companies-schema.json +0 -36
  779. package/demo/apis/SE-11415/ref/greeting-example.json +0 -4
  780. package/demo/apis/SE-11415/ref/greeting-schema.json +0 -22
  781. package/demo/apis/SE-11415/ref/greetings-example.json +0 -15
  782. package/demo/apis/SE-11415/ref/greetings-schema.json +0 -34
  783. package/demo/apis/SE-11415/ref/jms-message-response-exmaple.json +0 -7
  784. package/demo/apis/SE-11415/ref/log-levels-example.json +0 -3
  785. package/demo/apis/SE-11415/ref/log-levels-response-example.json +0 -3
  786. package/demo/apis/SE-11415/ref/log-levels-response-schema.json +0 -10
  787. package/demo/apis/SE-11415/ref/log-levels-schema.json +0 -30
  788. package/demo/apis/SE-11508/SE-11508.raml +0 -257
  789. package/demo/apis/SE-11508/examples/change-credentials-post-201.raml +0 -9
  790. package/demo/apis/SE-11508/examples/convert-aggregator-quote-post-201.raml +0 -19
  791. package/demo/apis/SE-11508/examples/create-quote-post-200.raml +0 -12
  792. package/demo/apis/SE-11508/examples/create-quote-post-201.raml +0 -8
  793. package/demo/apis/SE-11508/examples/create-quote-post-request.raml +0 -19
  794. package/demo/apis/SE-11508/examples/customer-accounts-get-200.raml +0 -41
  795. package/demo/apis/SE-11508/examples/customer-accounts-patch-request.raml +0 -31
  796. package/demo/apis/SE-11508/examples/retrieve-quotes-post-200.raml +0 -17
  797. package/demo/apis/SE-11508/examples/send-correspondence-post-request.raml +0 -34
  798. package/demo/apis/SE-11508/examples/validate-credentials-post-200.raml +0 -30
  799. package/demo/apis/SE-11508/examples/validate-customer-account-hash-post-400.raml +0 -10
  800. package/demo/apis/SE-11508/examples/validate-customer-account-hash-post-request.raml +0 -7
  801. package/demo/apis/SE-11508/examples/validate-customer-account-post-200.raml +0 -76
  802. package/demo/apis/SE-11508/examples/validate-customer-account-post-400.raml +0 -10
  803. package/demo/apis/SE-11508/examples/validate-customer-account-post-request.raml +0 -8
  804. package/demo/apis/SE-11508/exchange_modules2/26d603ba-9696-4993-b97e-f568e49c27ac/securityscheme-system/0.0.4/auth.raml +0 -10
  805. package/demo/apis/SE-11508/exchange_modules2/26d603ba-9696-4993-b97e-f568e49c27ac/traits-system/0.0.19/api-headers-trait.raml +0 -20
  806. package/demo/apis/SE-11508/exchange_modules2/26d603ba-9696-4993-b97e-f568e49c27ac/traits-system/0.0.19/bad-responses.raml +0 -30
  807. package/demo/apis/SE-11508/exchange_modules2/26d603ba-9696-4993-b97e-f568e49c27ac/traits-system/0.0.19/create.raml +0 -30
  808. package/demo/apis/SE-11508/exchange_modules2/26d603ba-9696-4993-b97e-f568e49c27ac/traits-system/0.0.19/customer-account-filter-trait.raml +0 -8
  809. package/demo/apis/SE-11508/exchange_modules2/26d603ba-9696-4993-b97e-f568e49c27ac/traits-system/0.0.19/delete.raml +0 -48
  810. package/demo/apis/SE-11508/exchange_modules2/26d603ba-9696-4993-b97e-f568e49c27ac/traits-system/0.0.19/payment.raml +0 -10
  811. package/demo/apis/SE-11508/exchange_modules2/26d603ba-9696-4993-b97e-f568e49c27ac/traits-system/0.0.19/policy-filter-trait.raml +0 -8
  812. package/demo/apis/SE-11508/exchange_modules2/26d603ba-9696-4993-b97e-f568e49c27ac/traits-system/0.0.19/read.raml +0 -48
  813. package/demo/apis/SE-11508/exchange_modules2/26d603ba-9696-4993-b97e-f568e49c27ac/traits-system/0.0.19/types/common-responses.raml +0 -8
  814. package/demo/apis/SE-11508/exchange_modules2/26d603ba-9696-4993-b97e-f568e49c27ac/traits-system/0.0.19/types/error.raml +0 -12
  815. package/demo/apis/SE-11508/exchange_modules2/26d603ba-9696-4993-b97e-f568e49c27ac/traits-system/0.0.19/underwriting.raml +0 -11
  816. package/demo/apis/SE-11508/exchange_modules2/26d603ba-9696-4993-b97e-f568e49c27ac/traits-system/0.0.19/update.raml +0 -48
  817. package/demo/apis/SE-11508/model-system/api-headers.raml +0 -8
  818. package/demo/apis/SE-11508/model-system/api-strict-headers.raml +0 -25
  819. package/demo/apis/SE-11508/model-system/change-credentials-type.raml +0 -11
  820. package/demo/apis/SE-11508/model-system/convert-aggregator-quote-types.raml +0 -25
  821. package/demo/apis/SE-11508/model-system/create-quote-types.raml +0 -35
  822. package/demo/apis/SE-11508/model-system/customer-accounts-types.raml +0 -57
  823. package/demo/apis/SE-11508/model-system/ping-error-messages-types.raml +0 -17
  824. package/demo/apis/SE-11508/model-system/ping-validate-credentials.raml +0 -16
  825. package/demo/apis/SE-11508/model-system/retrieve-quotes-types.raml +0 -40
  826. package/demo/apis/SE-12042/SE-12042.raml +0 -52
  827. package/demo/apis/SE-12042/dataTypes/CheckAPIStatus.raml +0 -25
  828. package/demo/apis/SE-12042/examples/CheckAPIStatusExample1.raml +0 -7
  829. package/demo/apis/SE-12042/examples/CheckAPIStatusExample2.raml +0 -7
  830. package/demo/apis/SE-12042/securitySchemes/x-clientIdSecret.raml +0 -18
  831. package/demo/apis/SE-12224/SE-12224.raml +0 -89
  832. package/demo/apis/SE-12224/dataTypes/product.raml +0 -15
  833. package/demo/apis/SE-12224/dataTypes/products.raml +0 -5
  834. package/demo/apis/SE-12224/examples/product.json +0 -8
  835. package/demo/apis/SE-12224/examples/products.json +0 -8
  836. package/demo/apis/SE-12224/exchange_modules/ae8da8e3-99e3-4a45-acfa-86136e9d991f/ashley-base/1.0.2/error.raml +0 -14
  837. package/demo/apis/SE-12224/exchange_modules/ae8da8e3-99e3-4a45-acfa-86136e9d991f/ashley-base/1.0.2/examples/error.json +0 -13
  838. package/demo/apis/SE-12224/exchange_modules/ae8da8e3-99e3-4a45-acfa-86136e9d991f/ashley-base/1.0.2/examples/innerError.json +0 -7
  839. package/demo/apis/SE-12224/exchange_modules/ae8da8e3-99e3-4a45-acfa-86136e9d991f/ashley-base/1.0.2/exchange.json +0 -1
  840. package/demo/apis/SE-12224/exchange_modules/ae8da8e3-99e3-4a45-acfa-86136e9d991f/ashley-base/1.0.2/innerError.raml +0 -20
  841. package/demo/apis/SE-12224/exchange_modules/ae8da8e3-99e3-4a45-acfa-86136e9d991f/ashley-base/1.0.2/orderable.raml +0 -13
  842. package/demo/apis/SE-12224/exchange_modules/ae8da8e3-99e3-4a45-acfa-86136e9d991f/ashley-base/1.0.2/pageable.raml +0 -15
  843. package/demo/apis/SE-12224/exchange_modules/ae8da8e3-99e3-4a45-acfa-86136e9d991f/ashley-base/1.0.2/searchable.raml +0 -8
  844. package/demo/apis/SE-12224/exchange_modules/ae8da8e3-99e3-4a45-acfa-86136e9d991f/ashley-base/1.0.2/secured-by-aad-oauth2.raml +0 -15
  845. package/demo/apis/SE-12224/exchange_modules/ae8da8e3-99e3-4a45-acfa-86136e9d991f/ashley-base/1.0.2/secured-by-basic-authentication.raml +0 -10
  846. package/demo/apis/SE-12224/exchange_modules/ae8da8e3-99e3-4a45-acfa-86136e9d991f/ashley-base/1.0.2/secured-by-client-id-secret.raml +0 -15
  847. package/demo/apis/SE-12224/exchange_modules/ae8da8e3-99e3-4a45-acfa-86136e9d991f/ashley-base/1.0.2/secured-by-mule-oauth2.raml +0 -15
  848. package/demo/apis/SE-12291/SE-12291.json +0 -357
  849. package/demo/apis/SE-12752/SE-12752.raml +0 -36
  850. package/demo/apis/SE-12957/SE-12957.json +0 -741
  851. package/demo/apis/SE-12959/SE-12959.json +0 -741
  852. package/demo/apis/SE-17897/SE-17897.yaml +0 -21
  853. package/demo/apis/SE-19215/SE-19215.raml +0 -7
  854. package/demo/apis/SE-19500/SE-19500.raml +0 -95
  855. package/demo/apis/SE-19500/docs/home.md +0 -1
  856. package/demo/apis/SE-19500/modules/canada-commons/canda-commons.raml +0 -64
  857. package/demo/apis/SE-19500/modules/canada-commons/ref/log-levels-example.json +0 -3
  858. package/demo/apis/SE-19500/modules/canada-commons/ref/log-levels-response-example.json +0 -3
  859. package/demo/apis/SE-19500/modules/canada-commons/ref/log-levels-response-schema.json +0 -10
  860. package/demo/apis/SE-19500/modules/canada-commons/ref/log-levels-schema.json +0 -30
  861. package/demo/apis/SE-19500/modules/canada-commons/ref/ping-example.json +0 -7
  862. package/demo/apis/SE-19500/modules/canada-commons/ref/ping-schema.json +0 -49
  863. package/demo/apis/SE-19500/modules/canda-mule4-example-data-types/api.raml +0 -6
  864. package/demo/apis/SE-19500/modules/canda-mule4-example-data-types/examples/greeting-example.json +0 -4
  865. package/demo/apis/SE-19500/modules/canda-mule4-example-data-types/examples/greetings-example.json +0 -15
  866. package/demo/apis/SE-19500/modules/canda-mule4-example-data-types/types/greeting-schema.json +0 -22
  867. package/demo/apis/SE-19500/modules/canda-mule4-example-data-types/types/greetings-schema.json +0 -34
  868. package/demo/apis/SE-19500/ref/companies-example.json +0 -14
  869. package/demo/apis/SE-19500/ref/companies-schema.json +0 -70
  870. package/demo/apis/Streetlights/streetlights.yaml +0 -36
  871. package/demo/apis/aap-1698/aap-1698.raml +0 -26
  872. package/demo/apis/amf-helper-api/amf-helper-api.raml +0 -1024
  873. package/demo/apis/amf-helper-api/examples/comment-example.json +0 -42
  874. package/demo/apis/amf-helper-api/examples/commentCreateRequest-example.json +0 -7
  875. package/demo/apis/amf-helper-api/examples/commentList-example.json +0 -48
  876. package/demo/apis/amf-helper-api/examples/person.json +0 -14
  877. package/demo/apis/amf-helper-api/examples/person.raml +0 -13
  878. package/demo/apis/amf-helper-api/examples/person.xml +0 -14
  879. package/demo/apis/amf-helper-api/libraries/comment-lib.raml +0 -143
  880. package/demo/apis/amf-helper-api/library.raml +0 -7
  881. package/demo/apis/amf-helper-api/schemas/person.json +0 -104
  882. package/demo/apis/amf-helper-api/schemas/person.xsd +0 -26
  883. package/demo/apis/amf-helper-api/traits/file.raml +0 -33
  884. package/demo/apis/amf-helper-api/traits/pagination.raml +0 -80
  885. package/demo/apis/amf-helper-api/traits/results.raml +0 -19
  886. package/demo/apis/amf-helper-api/traits/visibility.raml +0 -14
  887. package/demo/apis/amf-helper-api/types/app-person.raml +0 -101
  888. package/demo/apis/amf-helper-api/types/dimensions.raml +0 -24
  889. package/demo/apis/amf-helper-api/types/external-type.raml +0 -7
  890. package/demo/apis/amf-helper-api/types/image.raml +0 -23
  891. package/demo/apis/amf-helper-api/types/product.raml +0 -52
  892. package/demo/apis/amf-helper-api/types/resource.raml +0 -11
  893. package/demo/apis/amf-helper-api/types/standard-request.raml +0 -50
  894. package/demo/apis/amf-helper-api/types/user.raml +0 -37
  895. package/demo/apis/annotated-api/annotated-api.raml +0 -82
  896. package/demo/apis/annotated-parameters/annotated-parameters.raml +0 -18
  897. package/demo/apis/anyOf/anyOf.yaml +0 -37
  898. package/demo/apis/api-keys/api-keys.yaml +0 -85
  899. package/demo/apis/apic-169/apic-169.raml +0 -28
  900. package/demo/apis/apic-83/apic-83.raml +0 -32
  901. package/demo/apis/appian-api/appian-api.raml +0 -184
  902. package/demo/apis/array-body/array-body.raml +0 -23
  903. package/demo/apis/async-api/async-api.yaml +0 -96
  904. package/demo/apis/demo-api/demo-api.raml +0 -1425
  905. package/demo/apis/demo-api/examples/e400.xml +0 -4
  906. package/demo/apis/demo-api/examples/e401.xml +0 -4
  907. package/demo/apis/demo-api/examples/e404.xml +0 -4
  908. package/demo/apis/demo-api/examples/image.xml +0 -5
  909. package/demo/apis/demo-api/examples/messages-example.json +0 -22
  910. package/demo/apis/demo-api/examples/messages-sent-example.json +0 -15
  911. package/demo/apis/demo-api/examples/person.json +0 -14
  912. package/demo/apis/demo-api/examples/person.raml +0 -14
  913. package/demo/apis/demo-api/examples/person.url.encoded +0 -1
  914. package/demo/apis/demo-api/examples/person.xml +0 -14
  915. package/demo/apis/demo-api/examples/product.xml +0 -9
  916. package/demo/apis/demo-api/library/demo-types.raml +0 -44
  917. package/demo/apis/demo-api/library.raml +0 -36
  918. package/demo/apis/demo-api/resourceTypes/app-person.raml +0 -111
  919. package/demo/apis/demo-api/resourceTypes/example-types.raml +0 -45
  920. package/demo/apis/demo-api/resourceTypes/image.raml +0 -23
  921. package/demo/apis/demo-api/resourceTypes/message-sent-type.raml +0 -23
  922. package/demo/apis/demo-api/resourceTypes/message-type.raml +0 -33
  923. package/demo/apis/demo-api/resourceTypes/product.raml +0 -52
  924. package/demo/apis/demo-api/resourceTypes/resource.raml +0 -11
  925. package/demo/apis/demo-api/schemas/error-response.xsd +0 -11
  926. package/demo/apis/demo-api/schemas/image.xsd +0 -11
  927. package/demo/apis/demo-api/schemas/person.json +0 -104
  928. package/demo/apis/demo-api/schemas/person.xsd +0 -26
  929. package/demo/apis/demo-api/schemas/product.xsd +0 -17
  930. package/demo/apis/demo-api/securitySchemes/basic.raml +0 -5
  931. package/demo/apis/demo-api/securitySchemes/oauth-2-custom-settings.raml +0 -143
  932. package/demo/apis/demo-api/securitySchemes/oauth2-header-delivery.raml +0 -13
  933. package/demo/apis/demo-api/securitySchemes/oauth2-no-delivery.raml +0 -8
  934. package/demo/apis/demo-api/securitySchemes/oauth2-no-grants.raml +0 -12
  935. package/demo/apis/demo-api/securitySchemes/oauth2-pkce.raml +0 -13
  936. package/demo/apis/demo-api/securitySchemes/oauth2-query-delivery.raml +0 -13
  937. package/demo/apis/demo-api/securitySchemes/oauth_1_0.raml +0 -8
  938. package/demo/apis/demo-api/securitySchemes/oauth_1_0_no-settings.raml +0 -3
  939. package/demo/apis/demo-api/securitySchemes/oauth_1_0_no-signature.raml +0 -7
  940. package/demo/apis/demo-api/securitySchemes/oauth_1_0_signature.raml +0 -8
  941. package/demo/apis/demo-api/securitySchemes/oauth_2_0.raml +0 -29
  942. package/demo/apis/demo-api/securitySchemes/passthrough-querystring.raml +0 -16
  943. package/demo/apis/demo-api/securitySchemes/passthrough.raml +0 -24
  944. package/demo/apis/demo-api/securitySchemes/x-custom.raml +0 -33
  945. package/demo/apis/demo-api/securitySchemes/x-other.raml +0 -29
  946. package/demo/apis/demo-api/securitySchemes/x-query-string.raml +0 -16
  947. package/demo/apis/demo-api/traits/adminable.raml +0 -23
  948. package/demo/apis/demo-api/traits/pagination.raml +0 -83
  949. package/demo/apis/demo-api/traits/rate-limited.raml +0 -9
  950. package/demo/apis/demo-api/types/DemoPerson.raml +0 -67
  951. package/demo/apis/demo-document/demo-document.raml +0 -21
  952. package/demo/apis/documentation-fragment/documentation-fragment.raml +0 -76
  953. package/demo/apis/documented-api/documented-api.raml +0 -29
  954. package/demo/apis/enum-test/enum-test.raml +0 -64
  955. package/demo/apis/example-fragment/example-fragment.raml +0 -8
  956. package/demo/apis/examples-api/Address-1.0.raml +0 -75
  957. package/demo/apis/examples-api/CompanyIdentification-1.0.raml +0 -48
  958. package/demo/apis/examples-api/CompanyProfile-1.0.raml +0 -14
  959. package/demo/apis/examples-api/CompanyProfileBase-1.0.raml +0 -48
  960. package/demo/apis/examples-api/contact-email-example.raml +0 -6
  961. package/demo/apis/examples-api/contact-example.raml +0 -7
  962. package/demo/apis/examples-api/contact-fax-example.raml +0 -7
  963. package/demo/apis/examples-api/contact-website-example.raml +0 -4
  964. package/demo/apis/examples-api/example-1.raml +0 -7
  965. package/demo/apis/examples-api/example-2.raml +0 -12
  966. package/demo/apis/examples-api/example-3.raml +0 -5
  967. package/demo/apis/examples-api/example-4.raml +0 -3
  968. package/demo/apis/examples-api/example-5.raml +0 -5
  969. package/demo/apis/examples-api/example-6.raml +0 -3
  970. package/demo/apis/examples-api/example-7.raml +0 -7
  971. package/demo/apis/examples-api/example.json +0 -14
  972. package/demo/apis/examples-api/example.xml +0 -15
  973. package/demo/apis/examples-api/example.xsd +0 -26
  974. package/demo/apis/examples-api/examples/Address_BE_Example-1.0.raml +0 -10
  975. package/demo/apis/examples-api/examples/Address_GB_Example-1.0.raml +0 -8
  976. package/demo/apis/examples-api/examples/Address_NL_Example-1.0.raml +0 -8
  977. package/demo/apis/examples-api/examples/Addresses_BE_Example-1.0.raml +0 -11
  978. package/demo/apis/examples-api/examples/Addresses_GB_Example-1.0.raml +0 -9
  979. package/demo/apis/examples-api/examples/Addresses_NL_Example-1.0.raml +0 -17
  980. package/demo/apis/examples-api/examples/CompanyIdentification_BE_Example-1.0.raml +0 -7
  981. package/demo/apis/examples-api/examples/CompanyIdentification_GB_Example-1.0.raml +0 -7
  982. package/demo/apis/examples-api/examples/CompanyIdentification_NL_BranchId_Example-1.0.raml +0 -7
  983. package/demo/apis/examples-api/examples/CompanyIdentification_NL_Example-1.0.raml +0 -7
  984. package/demo/apis/examples-api/examples/CompanyIdentification_NL_GY-Holding_Example-1.0.raml +0 -6
  985. package/demo/apis/examples-api/examples/CompanyLegalForm_BE_Example-1.0.raml +0 -3
  986. package/demo/apis/examples-api/examples/CompanyLegalForm_GB_Example-1.0.raml +0 -3
  987. package/demo/apis/examples-api/examples/CompanyLegalForm_NL_Example-1.0.raml +0 -3
  988. package/demo/apis/examples-api/examples/CompanyProfile_BE_Example-1.0.raml +0 -14
  989. package/demo/apis/examples-api/examples/CompanyProfile_GB_Example-1.0.raml +0 -11
  990. package/demo/apis/examples-api/examples/CompanyProfile_NL_Example-1.0.raml +0 -12
  991. package/demo/apis/examples-api/examples/Company_BE_Example-1.0.raml +0 -3
  992. package/demo/apis/examples-api/examples/Company_GB_Example-1.0.raml +0 -3
  993. package/demo/apis/examples-api/examples/Company_NL_Example-1.0.raml +0 -3
  994. package/demo/apis/examples-api/examples-api.raml +0 -313
  995. package/demo/apis/examples-api/linked-named-example.raml +0 -22
  996. package/demo/apis/examples-api/named-example-with-link.raml +0 -3
  997. package/demo/apis/examples-api/named-example.raml +0 -7
  998. package/demo/apis/examples-api/type-with-linked-examples.raml +0 -15
  999. package/demo/apis/examples-api/user-json-example.raml +0 -17
  1000. package/demo/apis/examples-api/user-raml-example.raml +0 -37
  1001. package/demo/apis/examples-api/user.json +0 -8
  1002. package/demo/apis/examples-api/user.raml +0 -18
  1003. package/demo/apis/examples-api/users-json-example.raml +0 -17
  1004. package/demo/apis/examples-api/users-raml-example.raml +0 -32
  1005. package/demo/apis/examples-api/users.json +0 -8
  1006. package/demo/apis/expanded-api/expanded-api.raml +0 -8
  1007. package/demo/apis/ext-docs/ext-docs.yaml +0 -15
  1008. package/demo/apis/flattened-api/flattened-api.raml +0 -8
  1009. package/demo/apis/google-drive-api/docs/api/headline.md +0 -1
  1010. package/demo/apis/google-drive-api/docs/search-for-file.md +0 -176
  1011. package/demo/apis/google-drive-api/docs/upload-files.md +0 -268
  1012. package/demo/apis/google-drive-api/docs/uploadApi/headline.md +0 -1
  1013. package/demo/apis/google-drive-api/docs/work-with-folders.md +0 -307
  1014. package/demo/apis/google-drive-api/examples/about-example.json +0 -470
  1015. package/demo/apis/google-drive-api/examples/app-example.json +0 -100
  1016. package/demo/apis/google-drive-api/examples/app-list-example.json +0 -108
  1017. package/demo/apis/google-drive-api/examples/change-example.json +0 -91
  1018. package/demo/apis/google-drive-api/examples/changeList-example.json +0 -351
  1019. package/demo/apis/google-drive-api/examples/channel-example.json +0 -8
  1020. package/demo/apis/google-drive-api/examples/childList-example.json +0 -15
  1021. package/demo/apis/google-drive-api/examples/childReference-example.json +0 -6
  1022. package/demo/apis/google-drive-api/examples/comment-example.json +0 -42
  1023. package/demo/apis/google-drive-api/examples/comment-reply-update-response.json +0 -18
  1024. package/demo/apis/google-drive-api/examples/commentCreateRequest-example.json +0 -7
  1025. package/demo/apis/google-drive-api/examples/commentList-example.json +0 -48
  1026. package/demo/apis/google-drive-api/examples/commentReply-example.json +0 -17
  1027. package/demo/apis/google-drive-api/examples/commentReplyList-example.json +0 -21
  1028. package/demo/apis/google-drive-api/examples/commentReplyRequest-example.json +0 -4
  1029. package/demo/apis/google-drive-api/examples/file-example.json +0 -92
  1030. package/demo/apis/google-drive-api/examples/fileList-example.json +0 -98
  1031. package/demo/apis/google-drive-api/examples/newFileRequest-example.json +0 -29
  1032. package/demo/apis/google-drive-api/examples/parentList-example.json +0 -14
  1033. package/demo/apis/google-drive-api/examples/parentReference-example.json +0 -7
  1034. package/demo/apis/google-drive-api/examples/permission-example.json +0 -18
  1035. package/demo/apis/google-drive-api/examples/permissionId-example.json +0 -4
  1036. package/demo/apis/google-drive-api/examples/permissionList-example.json +0 -17
  1037. package/demo/apis/google-drive-api/examples/permissionRequest-example.json +0 -9
  1038. package/demo/apis/google-drive-api/examples/permissionUpdateRequest-example.json +0 -9
  1039. package/demo/apis/google-drive-api/examples/property-example.json +0 -8
  1040. package/demo/apis/google-drive-api/examples/propertyList-example.json +0 -13
  1041. package/demo/apis/google-drive-api/examples/revision-example.json +0 -30
  1042. package/demo/apis/google-drive-api/examples/revisionList-example.json +0 -35
  1043. package/demo/apis/google-drive-api/examples/revisionUpdateRequest-example.json +0 -6
  1044. package/demo/apis/google-drive-api/examples/stopWatchingRequest-example.json +0 -4
  1045. package/demo/apis/google-drive-api/examples/watchRequest-example.json +0 -7
  1046. package/demo/apis/google-drive-api/google-drive-api.raml +0 -1118
  1047. package/demo/apis/google-drive-api/libraries/about-lib.raml +0 -121
  1048. package/demo/apis/google-drive-api/libraries/annotations.raml +0 -4
  1049. package/demo/apis/google-drive-api/libraries/app-lib.raml +0 -134
  1050. package/demo/apis/google-drive-api/libraries/child-lib.raml +0 -53
  1051. package/demo/apis/google-drive-api/libraries/comment-lib.raml +0 -145
  1052. package/demo/apis/google-drive-api/libraries/file-lib.raml +0 -517
  1053. package/demo/apis/google-drive-api/libraries/parent-lib.raml +0 -52
  1054. package/demo/apis/google-drive-api/libraries/permission-lib.raml +0 -146
  1055. package/demo/apis/google-drive-api/libraries/properties-lib.raml +0 -44
  1056. package/demo/apis/google-drive-api/libraries/revision-lib.raml +0 -116
  1057. package/demo/apis/google-drive-api/libraries/watch-lib.raml +0 -128
  1058. package/demo/apis/google-drive-api/securitySchemes/oauth_2_0.raml +0 -25
  1059. package/demo/apis/google-drive-api/traits/file.raml +0 -33
  1060. package/demo/apis/google-drive-api/traits/results.raml +0 -19
  1061. package/demo/apis/google-drive-api/traits/visibility.raml +0 -17
  1062. package/demo/apis/google-drive-api/types/additional-role-info.raml +0 -12
  1063. package/demo/apis/google-drive-api/types/channels-stop.raml +0 -11
  1064. package/demo/apis/google-drive-api/types/export-format.raml +0 -11
  1065. package/demo/apis/google-drive-api/types/feature.raml +0 -11
  1066. package/demo/apis/google-drive-api/types/file-capabilities.raml +0 -69
  1067. package/demo/apis/google-drive-api/types/file-labels.raml +0 -35
  1068. package/demo/apis/google-drive-api/types/icon.raml +0 -25
  1069. package/demo/apis/google-drive-api/types/import-format.raml +0 -11
  1070. package/demo/apis/google-drive-api/types/new-drive-file.raml +0 -48
  1071. package/demo/apis/google-drive-api/types/owners.raml +0 -32
  1072. package/demo/apis/google-drive-api/types/picture.raml +0 -9
  1073. package/demo/apis/google-drive-api/types/property.raml +0 -25
  1074. package/demo/apis/google-drive-api/types/resource.raml +0 -28
  1075. package/demo/apis/google-drive-api/types/role-set.raml +0 -11
  1076. package/demo/apis/google-drive-api/types/service-quota.raml +0 -10
  1077. package/demo/apis/google-drive-api/types/standard-request.raml +0 -51
  1078. package/demo/apis/google-drive-api/types/team-drive-list.raml +0 -18
  1079. package/demo/apis/google-drive-api/types/team-drive.raml +0 -59
  1080. package/demo/apis/google-drive-api/types/thumbnail.raml +0 -14
  1081. package/demo/apis/google-drive-api/types/upload-size.raml +0 -12
  1082. package/demo/apis/google-drive-api/types/user.raml +0 -37
  1083. package/demo/apis/httpbin/httpbin.json +0 -1836
  1084. package/demo/apis/lib-fragment/lib-fragment.raml +0 -55
  1085. package/demo/apis/loan-ms/loan-microservice.json +0 -699
  1086. package/demo/apis/missing-endpoints/missing-endpoints.raml +0 -34
  1087. package/demo/apis/mocking-service/mocking-service.raml +0 -149
  1088. package/demo/apis/modular-api/models/ecommerce-canonical.raml +0 -89
  1089. package/demo/apis/modular-api/models/ecommerce.raml +0 -36
  1090. package/demo/apis/modular-api/models/things.raml +0 -32
  1091. package/demo/apis/modular-api/modular-api.raml +0 -12
  1092. package/demo/apis/multi-server/multi-server.yaml +0 -128
  1093. package/demo/apis/multiple-servers/multiple-servers.yaml +0 -112
  1094. package/demo/apis/navigation-api/library.raml +0 -7
  1095. package/demo/apis/navigation-api/navigation-api.raml +0 -357
  1096. package/demo/apis/navigation-api/types/app-person.raml +0 -101
  1097. package/demo/apis/navigation-api/types/image.raml +0 -23
  1098. package/demo/apis/navigation-api/types/product.raml +0 -52
  1099. package/demo/apis/navigation-api/types/resource.raml +0 -11
  1100. package/demo/apis/new-oas3-types/new-oas3-types.yaml +0 -84
  1101. package/demo/apis/nexmo-sms-api/nexmo-sms-api.raml +0 -488
  1102. package/demo/apis/no-endpoints/no-endpoints.raml +0 -14
  1103. package/demo/apis/no-server/no-server.raml +0 -27
  1104. package/demo/apis/no-servers-api/no-servers-api.yaml +0 -31
  1105. package/demo/apis/not-schema/not-schema.yaml +0 -38
  1106. package/demo/apis/oas-3-api/oas-3-api.yaml +0 -356
  1107. package/demo/apis/oas-api/LoanMicrosrvice.yaml +0 -339
  1108. package/demo/apis/oas-api/Petstore-v2.yaml +0 -144
  1109. package/demo/apis/oas-api/Petstore.raml +0 -106
  1110. package/demo/apis/oas-api/UBER.raml +0 -274
  1111. package/demo/apis/oas-api/UBER.yaml +0 -272
  1112. package/demo/apis/oas-api/petstore-expanded.raml +0 -141
  1113. package/demo/apis/oas-api/petstore-expanded.yaml +0 -139
  1114. package/demo/apis/oas-api/read-only-properties.yaml +0 -42
  1115. package/demo/apis/oas-bearer/oas-bearer.yaml +0 -45
  1116. package/demo/apis/oas-callbacks/oas-callbacks.yaml +0 -150
  1117. package/demo/apis/oas-demo/oas-demo.yaml +0 -94
  1118. package/demo/apis/oauth-flows/oauth-flows.yaml +0 -61
  1119. package/demo/apis/oauth-pkce/oauth-2-pkce.raml +0 -33
  1120. package/demo/apis/oauth-pkce/oauth-pkce.raml +0 -22
  1121. package/demo/apis/oauth1-fragment/oauth1-fragment.raml +0 -7
  1122. package/demo/apis/oauth2-fragment/oauth2-fragment.raml +0 -30
  1123. package/demo/apis/petstore/petstore.yaml +0 -954
  1124. package/demo/apis/prevent-xss/prevent-xss.json +0 -20
  1125. package/demo/apis/rearrange-api/rearrange-api.raml +0 -32
  1126. package/demo/apis/secured-api/oauth-2-custom-settings.raml +0 -143
  1127. package/demo/apis/secured-api/oauth2-header-delivery.raml +0 -13
  1128. package/demo/apis/secured-api/oauth2-no-delivery.raml +0 -8
  1129. package/demo/apis/secured-api/oauth2-no-grants.raml +0 -12
  1130. package/demo/apis/secured-api/oauth2-pkce.raml +0 -13
  1131. package/demo/apis/secured-api/oauth2-query-delivery.raml +0 -13
  1132. package/demo/apis/secured-api/oauth_1_0.raml +0 -8
  1133. package/demo/apis/secured-api/oauth_1_0_no-settings.raml +0 -3
  1134. package/demo/apis/secured-api/oauth_1_0_no-signature.raml +0 -7
  1135. package/demo/apis/secured-api/oauth_1_0_signature.raml +0 -8
  1136. package/demo/apis/secured-api/passthrough-querystring.raml +0 -16
  1137. package/demo/apis/secured-api/passthrough.raml +0 -24
  1138. package/demo/apis/secured-api/secured-api.raml +0 -231
  1139. package/demo/apis/secured-api/x-custom.raml +0 -33
  1140. package/demo/apis/secured-api/x-other.raml +0 -29
  1141. package/demo/apis/secured-api/x-query-string.raml +0 -16
  1142. package/demo/apis/secured-unions/secured-unions.yaml +0 -95
  1143. package/demo/apis/security-api/oauth-2-custom-settings.raml +0 -154
  1144. package/demo/apis/security-api/readme.md +0 -1
  1145. package/demo/apis/security-api/security/basic.raml +0 -13
  1146. package/demo/apis/security-api/security/digest.raml +0 -5
  1147. package/demo/apis/security-api/security/oauth_1_0.raml +0 -27
  1148. package/demo/apis/security-api/security/oauth_2_0.raml +0 -30
  1149. package/demo/apis/security-api/security/oauth_2_0_no_scopes.raml +0 -29
  1150. package/demo/apis/security-api/security/other-oauth_1_0.raml +0 -29
  1151. package/demo/apis/security-api/security/passthrough.raml +0 -12
  1152. package/demo/apis/security-api/security/x-custom.raml +0 -26
  1153. package/demo/apis/security-api/security/x-other.raml +0 -29
  1154. package/demo/apis/security-api/security-api.raml +0 -89
  1155. package/demo/apis/servers-api/servers-api.yaml +0 -80
  1156. package/demo/apis/simple-api/simple-api.raml +0 -12
  1157. package/demo/apis/steveTest-1/exchange.json +0 -6
  1158. package/demo/apis/steveTest-1/schemas/schema-termsConditionsAccept.json +0 -43
  1159. package/demo/apis/steveTest-1/schemas_response/schema-termsConditionsAccept-Get.json +0 -24
  1160. package/demo/apis/steveTest-1/stevetest.json +0 -167
  1161. package/demo/apis/steveTest-1/traits/response-errors.json +0 -123
  1162. package/demo/apis/steveTest-1/traits/schema-response-errors.json +0 -35
  1163. package/demo/apis/streetlights2/streetlights2.yaml +0 -213
  1164. package/demo/apis/tracked-examples/datatypes/employee.raml +0 -5
  1165. package/demo/apis/tracked-examples/examples/employee.raml +0 -4
  1166. package/demo/apis/tracked-examples/examples/employees.raml +0 -8
  1167. package/demo/apis/tracked-examples/tracked-to-linked.raml +0 -28
  1168. package/demo/apis/type-fragment/type-fragment.raml +0 -96
  1169. package/demo/apis/types-list/exchange.json +0 -1
  1170. package/demo/apis/types-list/library.raml +0 -7
  1171. package/demo/apis/types-list/typeFromDataTypeFile.raml +0 -6
  1172. package/demo/apis/types-list/types-list.raml +0 -38
  1173. package/demo/apis/unordered-endpoints/unordered-endpoints.raml +0 -11
  1174. package/demo/lib/DemoBindings.ts +0 -38
  1175. package/demo/lib/amf/AmfPartialGraphStore.ts +0 -305
  1176. package/demo/lib/amf/AmfPartialModel.ts +0 -690
  1177. package/demo/lib/amf/ApiExamples.ts +0 -3270
  1178. package/demo/lib/io/ApiStore.ts +0 -16
  1179. package/demo/lib/io/SharedWorkerThread.ts +0 -31
  1180. package/demo/lib/io/main.ts +0 -23
  1181. package/demo/model.js +0 -203
  1182. package/demo/store/IpAddress.js +0 -15
  1183. package/demo/store/StorePlugin.js +0 -18
  1184. package/demo/stores.md +0 -5
  1185. package/dev/amf-server/AmfParser.js +0 -144
  1186. package/dev/amf-server/AmfService.js +0 -136
  1187. package/dev/amf-server/ApiError.js +0 -10
  1188. package/dev/amf-server/ParserProcess.js +0 -101
  1189. package/dev/amf-server/api.js +0 -146
  1190. package/dev/types.d.ts +0 -28
  1191. package/src/amf/lib/AmfInputParser.ts +0 -254
  1192. package/src/amf/lib/AmfParameters.ts +0 -814
  1193. package/src/amf/lib/AmfSecurity.ts +0 -45
  1194. package/src/amf/lib/InputCache.ts +0 -100
  1195. package/src/amf/lib/Oauth2RamlCustomData.ts +0 -265
  1196. package/src/amf/lib/PayloadUtils.ts +0 -87
  1197. package/src/amf/lib/QueryParameterProcessor.ts +0 -186
  1198. package/src/amf/lib/UrlUtils.ts +0 -213
  1199. package/src/amf/lib/Utils.ts +0 -220
  1200. package/src/amf/lib/navigation-layout/ApiSorting.ts +0 -20
  1201. package/src/amf/lib/navigation-layout/EndpointsTree.ts +0 -189
  1202. package/src/amf/lib/navigation-layout/NaturalTree.ts +0 -100
  1203. package/src/amf/plugins/ApiNavigationCommands.ts +0 -73
  1204. package/src/amf/plugins/ApiNavigationContextMenu.ts +0 -43
  1205. package/src/amf/store/AmfGraphStore.ts +0 -69
  1206. package/src/amf/store/AmfStore.ts +0 -216
  1207. package/src/amf/store/DomEventsAmfStore.ts +0 -4
  1208. package/src/amf/store/InMemAmfGraphStore.ts +0 -630
  1209. package/src/amf/store/Readme.md +0 -40
  1210. package/src/amf/store/mixins/AmfStoreDomEventsMixin.ts +0 -132
  1211. package/src/amf/types.ts +0 -359
  1212. package/src/define/amf/api-annotation-document.ts +0 -14
  1213. package/src/define/amf/api-authorization-editor.ts +0 -14
  1214. package/src/define/amf/api-channel-document.ts +0 -14
  1215. package/src/define/amf/api-documentation-document.ts +0 -14
  1216. package/src/define/amf/api-documentation.ts +0 -14
  1217. package/src/define/amf/api-navigation.ts +0 -14
  1218. package/src/define/amf/api-operation-document.ts +0 -14
  1219. package/src/define/amf/api-parameter-document.ts +0 -14
  1220. package/src/define/amf/api-parametrized-security-scheme.ts +0 -14
  1221. package/src/define/amf/api-payload-document.ts +0 -14
  1222. package/src/define/amf/api-request-document.ts +0 -14
  1223. package/src/define/amf/api-request-editor.ts +0 -14
  1224. package/src/define/amf/api-request.ts +0 -14
  1225. package/src/define/amf/api-resource-document.ts +0 -14
  1226. package/src/define/amf/api-response-document.ts +0 -14
  1227. package/src/define/amf/api-schema-document.ts +0 -14
  1228. package/src/define/amf/api-security-document.ts +0 -14
  1229. package/src/define/amf/api-security-requirement-document.ts +0 -14
  1230. package/src/define/amf/api-server-picker.ts +0 -14
  1231. package/src/define/amf/api-summary.ts +0 -14
  1232. package/src/define/amf/authorization/amf-apikey-authorization.ts +0 -15
  1233. package/src/define/amf/authorization/amf-basic-authorization.ts +0 -15
  1234. package/src/define/amf/authorization/amf-bearer-authorization.ts +0 -15
  1235. package/src/define/amf/authorization/amf-oauth2-authorization.ts +0 -18
  1236. package/src/define/amf/authorization/amf-oidc-authorization.ts +0 -18
  1237. package/src/define/amf/authorization/amf-passthrough-authorization.ts +0 -15
  1238. package/src/define/amf/authorization/amf-ramlcustom-authorization.ts +0 -15
  1239. package/src/elements/amf/ApiAnnotationDocument.element.ts +0 -181
  1240. package/src/elements/amf/ApiAnnotationDocument.styles.ts +0 -46
  1241. package/src/elements/amf/ApiAuthorizationEditor.element.ts +0 -364
  1242. package/src/elements/amf/ApiAuthorizationEditor.styles.ts +0 -25
  1243. package/src/elements/amf/ApiChannelDocument.element.ts +0 -89
  1244. package/src/elements/amf/ApiDocumentation.element.ts +0 -642
  1245. package/src/elements/amf/ApiDocumentation.styles.ts +0 -11
  1246. package/src/elements/amf/ApiDocumentationBase.ts +0 -296
  1247. package/src/elements/amf/ApiDocumentationDocument.element.ts +0 -85
  1248. package/src/elements/amf/ApiDocumentationDocument.styles.ts +0 -32
  1249. package/src/elements/amf/ApiNavigation.element.ts +0 -2285
  1250. package/src/elements/amf/ApiNavigation.styles.ts +0 -159
  1251. package/src/elements/amf/ApiOperationDocument.element.ts +0 -978
  1252. package/src/elements/amf/ApiOperationDocument.styles.ts +0 -67
  1253. package/src/elements/amf/ApiParameterDocument.element.ts +0 -105
  1254. package/src/elements/amf/ApiParameterDocument.styles.ts +0 -15
  1255. package/src/elements/amf/ApiParametrizedSecurityScheme.element.ts +0 -72
  1256. package/src/elements/amf/ApiParametrizedSecurityScheme.styles.ts +0 -4
  1257. package/src/elements/amf/ApiPayloadDocument.element.ts +0 -128
  1258. package/src/elements/amf/ApiPayloadDocument.styles.ts +0 -15
  1259. package/src/elements/amf/ApiRequest.element.ts +0 -260
  1260. package/src/elements/amf/ApiRequest.styles.ts +0 -11
  1261. package/src/elements/amf/ApiRequestDocument.element.ts +0 -388
  1262. package/src/elements/amf/ApiRequestDocument.styles.ts +0 -13
  1263. package/src/elements/amf/ApiRequestEditor.element.ts +0 -1773
  1264. package/src/elements/amf/ApiRequestEditor.styles.ts +0 -160
  1265. package/src/elements/amf/ApiResourceDocument.element.ts +0 -682
  1266. package/src/elements/amf/ApiResourceDocument.styles.ts +0 -91
  1267. package/src/elements/amf/ApiResponseDocument.element.ts +0 -290
  1268. package/src/elements/amf/ApiResponseDocument.styles.ts +0 -41
  1269. package/src/elements/amf/ApiSchemaDocument.element.ts +0 -786
  1270. package/src/elements/amf/ApiSchemaDocument.styles.ts +0 -41
  1271. package/src/elements/amf/ApiSecurityDocument.element.ts +0 -607
  1272. package/src/elements/amf/ApiSecurityDocument.styles.ts +0 -89
  1273. package/src/elements/amf/ApiSecurityRequirementDocument.element.ts +0 -72
  1274. package/src/elements/amf/ApiSecurityRequirementDocument.styles.ts +0 -7
  1275. package/src/elements/amf/ApiServerPicker.element.ts +0 -690
  1276. package/src/elements/amf/ApiServerPicker.styles.ts +0 -25
  1277. package/src/elements/amf/ApiSummary.element.ts +0 -387
  1278. package/src/elements/amf/ApiSummary.styles.ts +0 -192
  1279. package/src/elements/amf/SchemaCommonTemplates.ts +0 -563
  1280. package/src/elements/amf/authorization/AmfApiKey.ts +0 -250
  1281. package/src/elements/amf/authorization/AmfBasic.ts +0 -77
  1282. package/src/elements/amf/authorization/AmfBearer.ts +0 -63
  1283. package/src/elements/amf/authorization/AmfOauth2.ts +0 -830
  1284. package/src/elements/amf/authorization/AmfOidc.ts +0 -66
  1285. package/src/elements/amf/authorization/AmfPassThrough.ts +0 -261
  1286. package/src/elements/amf/authorization/AmfRamlCustom.ts +0 -291
  1287. package/src/elements/amf/authorization/Authorization.styles.ts +0 -40
  1288. package/src/elements/amf/styles/AuthorizationMethod.ts +0 -46
  1289. package/src/elements/amf/styles/Common.ts +0 -150
  1290. package/src/elements/amf/styles/SchemaCommon.ts +0 -376
  1291. package/src/events/amf/ApiEvents.ts +0 -47
  1292. package/src/events/amf/BaseEvents.ts +0 -96
  1293. package/src/events/amf/DocumentationEvents.ts +0 -29
  1294. package/src/events/amf/EndpointEvents.ts +0 -37
  1295. package/src/events/amf/EventTypes.ts +0 -64
  1296. package/src/events/amf/Events.ts +0 -39
  1297. package/src/events/amf/NavigationEvents.ts +0 -86
  1298. package/src/events/amf/OperationEvents.ts +0 -29
  1299. package/src/events/amf/PayloadEvents.ts +0 -18
  1300. package/src/events/amf/ReportingEvents.ts +0 -28
  1301. package/src/events/amf/RequestEvents.ts +0 -16
  1302. package/src/events/amf/ResponseEvents.ts +0 -18
  1303. package/src/events/amf/SecurityEvents.ts +0 -60
  1304. package/src/events/amf/ServerEvents.ts +0 -94
  1305. package/src/events/amf/StoreEvents.ts +0 -16
  1306. package/src/events/amf/TelemetryEvents.ts +0 -115
  1307. package/src/events/amf/TypeEvents.ts +0 -28
  1308. package/test/amf/AmfLoader.ts +0 -575
  1309. package/test/amf/MonacoSetup.ts +0 -63
  1310. package/test/amf/authorization/ApiAuthorizationEditorElement.oas.test.ts +0 -253
  1311. package/test/amf/authorization/ApiAuthorizationEditorElement.raml.test.ts +0 -477
  1312. package/test/amf/authorization/ApiKeyMethod.test.ts +0 -160
  1313. package/test/amf/authorization/CustomMethod.test.ts +0 -306
  1314. package/test/amf/authorization/OAuth2-21143.test.ts +0 -40
  1315. package/test/amf/authorization/OAuth2-flows.test.ts +0 -99
  1316. package/test/amf/authorization/OAuth2-pkce.test.ts +0 -39
  1317. package/test/amf/authorization/OAuth2Method.test.ts +0 -369
  1318. package/test/amf/authorization/PassThroughMethod.test.ts +0 -180
  1319. package/test/amf/elements/ApiAnnotationDocumentElement.test.ts +0 -123
  1320. package/test/amf/elements/ApiDocumentationDocumentElement.test.ts +0 -153
  1321. package/test/amf/elements/ApiDocumentationElement.test.ts +0 -680
  1322. package/test/amf/elements/ApiOperationDocumentElement.test.ts +0 -753
  1323. package/test/amf/elements/ApiRequestDocumentElement.test.ts +0 -165
  1324. package/test/amf/elements/ApiResourceDocumentElement.test.ts +0 -320
  1325. package/test/amf/elements/ApiResponseDocumentElement.test.ts +0 -288
  1326. package/test/amf/elements/ApiSchemaDocumentElement.test.ts +0 -934
  1327. package/test/amf/elements/ApiSecurityDocumentElement.test.ts +0 -667
  1328. package/test/amf/elements/ApiSecurityRequirementDocumentElement.test.ts +0 -58
  1329. package/test/amf/elements/ApiServerPickerElement.test.ts +0 -960
  1330. package/test/amf/elements/ApiSummaryElement.test.ts +0 -485
  1331. package/test/amf/elements/SE-12957.test.ts +0 -49
  1332. package/test/amf/events/ApiEvents.test.ts +0 -32
  1333. package/test/amf/events/EndpointEvents.test.ts +0 -94
  1334. package/test/amf/events/EventHelper.ts +0 -11
  1335. package/test/amf/events/EventTypes.test.ts +0 -241
  1336. package/test/amf/events/NavigationEvents.test.ts +0 -58
  1337. package/test/amf/events/ReportingEvents.test.ts +0 -53
  1338. package/test/amf/events/StoreEvents.test.ts +0 -21
  1339. package/test/amf/events/TelemetryEvents.test.ts +0 -202
  1340. package/test/amf/http-request/APIC-289.test.ts +0 -66
  1341. package/test/amf/http-request/APIC-298.test.ts +0 -49
  1342. package/test/amf/http-request/APIC-689.test.ts +0 -45
  1343. package/test/amf/http-request/ApiRequestEditorElement.test.ts +0 -1472
  1344. package/test/amf/http-request/ApiRequestElement.test.ts +0 -39
  1345. package/test/amf/http-request/SE-12042.test.ts +0 -56
  1346. package/test/amf/http-request/SE-12957.test.ts +0 -80
  1347. package/test/amf/http-request/server.ts +0 -154
  1348. package/test/amf/lib/UrlUtils.test.ts +0 -324
  1349. package/test/amf/navigation/ApiNavigationElement.test.ts +0 -1464
  1350. package/test/amf/navigation/documentation-fragment.test.ts +0 -77
  1351. package/test/amf/navigation/security-fragment.test.ts +0 -77
  1352. package/test/amf/navigation/type-fragment.test.ts +0 -77
  1353. package/tsconfig.browser.json +0 -40
  1354. package/tsconfig.testing.json +0 -39
  1355. package/wds-demo.config.js +0 -49
  1356. /package/demo/{elements/md → md}/DemoStyles.ts +0 -0
  1357. /package/demo/{elements/md → md}/chip/pawel6c9a.jpg +0 -0
@@ -1,1472 +0,0 @@
1
- /* eslint-disable max-len */
2
- import { fixture, assert, html, nextFrame, aTimeout } from '@open-wc/testing'
3
- import sinon from 'sinon'
4
- import { AmfDefinitions, ApiDefinitions, IRequestAuthorization } from '@api-client/core/browser.js'
5
- import * as InputCache from '../../../src/amf/lib/InputCache.js'
6
- import { AmfLoader } from '../AmfLoader.js'
7
- import { loadMonaco } from '../MonacoSetup.js'
8
- import { EventTypes } from '../../../src/events/amf/EventTypes.js'
9
- import { DomEventsAmfStore } from '../../../src/index.js'
10
- import ApiRequestEditorElement from '../../../src/elements/amf/ApiRequestEditor.element.js'
11
- import { SecuritySelectorListItem } from '../../../src/amf/types.js'
12
- import '../../../src/define/amf/api-request-editor.js'
13
-
14
- describe.skip('ApiRequestEditorElement', () => {
15
- const store = new DomEventsAmfStore(window)
16
- store.listen()
17
-
18
- let loader: AmfLoader
19
- before(async () => {
20
- await loadMonaco()
21
- loader = new AmfLoader()
22
- })
23
-
24
- async function basicFixture(): Promise<ApiRequestEditorElement> {
25
- const element = await fixture(html`<api-request-editor></api-request-editor>`)
26
- await aTimeout(2)
27
- return element as ApiRequestEditorElement
28
- }
29
-
30
- async function allowCustomFixture(): Promise<ApiRequestEditorElement> {
31
- const element = await fixture(html`<api-request-editor allowCustom></api-request-editor>`)
32
- await aTimeout(2)
33
- return element as ApiRequestEditorElement
34
- }
35
-
36
- async function modelFixture(selected?: string): Promise<ApiRequestEditorElement> {
37
- const element = await fixture(html`<api-request-editor .domainId="${selected}"></api-request-editor>`)
38
- await aTimeout(2)
39
- return element as ApiRequestEditorElement
40
- }
41
-
42
- async function urlEditorFixture(selected?: string): Promise<ApiRequestEditorElement> {
43
- const element = await fixture(html`<api-request-editor .domainId="${selected}" urlEditor></api-request-editor>`)
44
- await aTimeout(2)
45
- return element as ApiRequestEditorElement
46
- }
47
-
48
- async function urlLabelFixture(selected?: string): Promise<ApiRequestEditorElement> {
49
- const element = await fixture(html`<api-request-editor .domainId="${selected}" urlLabel></api-request-editor>`)
50
- await aTimeout(2)
51
- return element as ApiRequestEditorElement
52
- }
53
-
54
- async function customBaseUriSlotFixture(): Promise<ApiRequestEditorElement> {
55
- const element = await fixture(
56
- html` <api-request-editor>
57
- <ui-list-item slot="custom-base-uri" data-value="http://customServer.com">Custom</ui-list-item>
58
- </api-request-editor>`
59
- )
60
- await aTimeout(2)
61
- return element as ApiRequestEditorElement
62
- }
63
-
64
- async function noSelectorFixture(): Promise<ApiRequestEditorElement> {
65
- const element = await fixture(
66
- html` <api-request-editor noServerSelector>
67
- <ui-list-item slot="custom-base-uri" data-value="http://customServer.com">http://customServer.com</ui-list-item>
68
- </api-request-editor>`
69
- )
70
- await aTimeout(2)
71
- return element as ApiRequestEditorElement
72
- }
73
-
74
- async function hideOptionalFixture(selected?: string): Promise<ApiRequestEditorElement> {
75
- const element = await fixture(
76
- html`<api-request-editor .domainId="${selected}" allowHideOptional></api-request-editor>`
77
- )
78
- await aTimeout(2)
79
- return element as ApiRequestEditorElement
80
- }
81
-
82
- describe('initialization', () => {
83
- it('can be initialized with document.createElement', () => {
84
- const element = document.createElement('api-request-editor')
85
- assert.ok(element)
86
- })
87
-
88
- it('does not render the URL editor by default', async () => {
89
- const element = await basicFixture()
90
- const node = element.shadowRoot!.querySelector('.url-input')
91
- assert.notOk(node)
92
- })
93
-
94
- it('renders the url editor when configured', async () => {
95
- const element = await urlEditorFixture()
96
- const node = element.shadowRoot!.querySelector('.url-input')
97
- assert.ok(node)
98
- })
99
-
100
- it('renders the send button without the model', async () => {
101
- const element = await basicFixture()
102
- const node = element.shadowRoot!.querySelector('.send-button')
103
- assert.ok(node)
104
- })
105
-
106
- it('send button has "send" label', async () => {
107
- const element = await basicFixture()
108
- const node = element.shadowRoot!.querySelector('.send-button') as HTMLElement
109
- assert.equal((node.textContent as string).trim(), 'Send')
110
- })
111
-
112
- it('does not render headers form without the model', async () => {
113
- const element = await basicFixture()
114
- const node = element.shadowRoot!.querySelector('.params-section.header')
115
- assert.notOk(node)
116
- })
117
-
118
- it('does not render parameters form without the model', async () => {
119
- const element = await basicFixture()
120
- const node = element.shadowRoot!.querySelector('.params-section.parameter')
121
- assert.notOk(node)
122
- })
123
-
124
- it('does not render payload editor without the model', async () => {
125
- const element = await basicFixture()
126
- const node = element.shadowRoot!.querySelector('.body-editor')
127
- assert.notOk(node)
128
- })
129
-
130
- it('does not render authorization editor without the model', async () => {
131
- const element = await basicFixture()
132
- const node = element.shadowRoot!.querySelector('api-authorization-editor')
133
- assert.notOk(node)
134
- })
135
-
136
- it('does not render url label', async () => {
137
- const element = await basicFixture()
138
- const node = element.shadowRoot!.querySelector('.url-label')
139
- assert.notOk(node)
140
- })
141
- })
142
-
143
- describe('custom properties', () => {
144
- let element: ApiRequestEditorElement
145
- beforeEach(async () => {
146
- element = await allowCustomFixture()
147
- })
148
-
149
- it('renders parameters form', async () => {
150
- const node = element.shadowRoot!.querySelector('.params-section.parameter')
151
- assert.ok(node)
152
- })
153
-
154
- it('renders the parameters add button', async () => {
155
- const node = element.shadowRoot!.querySelector('.params-section.parameter .add-custom-button')
156
- assert.ok(node)
157
- })
158
-
159
- it('renders header form', async () => {
160
- const node = element.shadowRoot!.querySelector('.params-section.header')
161
- assert.ok(node)
162
- })
163
-
164
- it('renders the header add button', async () => {
165
- const node = element.shadowRoot!.querySelector('.params-section.header .add-custom-button')
166
- assert.ok(node)
167
- })
168
- })
169
-
170
- describe('OAuth2 redirect URI change event', () => {
171
- let element: ApiRequestEditorElement
172
- beforeEach(async () => {
173
- element = await basicFixture()
174
- })
175
-
176
- // it('sets redirectUri from the event (legacy)', () => {
177
- // const value = 'https://auth.domain.com'
178
- // document.body.dispatchEvent(
179
- // new CustomEvent(EventTypes.Request.redirectUriChangeLegacy, {
180
- // bubbles: true,
181
- // detail: {
182
- // value,
183
- // },
184
- // })
185
- // )
186
- // assert.equal(element.redirectUri, value)
187
- // })
188
-
189
- it('sets redirectUri from the event', () => {
190
- const value = 'https://auth.domain.com'
191
- document.body.dispatchEvent(
192
- new CustomEvent(EventTypes.Request.redirectUriChange, {
193
- bubbles: true,
194
- detail: {
195
- value,
196
- },
197
- })
198
- )
199
- assert.equal(element.redirectUri, value)
200
- })
201
- })
202
-
203
- // describe('[responseHandler]()', () => {
204
- // let element: ApiRequestEditorElement;
205
- // const requestId = 'test-id';
206
- // beforeEach(async () => {
207
- // InputCache.globalValues.clear();
208
- // element = await basicFixture();
209
- // element.loadingRequest = true;
210
- // element.requestId = requestId;
211
- // });
212
-
213
- // it('does nothing when the id is different', () => {
214
- // const e = new ApiResponseEvent(EventTypes.Request.apiResponse, {
215
- // id: 'otherId',
216
- // isError: true,
217
- // loadingTime: 0,
218
- // request: {
219
- // method: '',
220
- // url: '',
221
- // },
222
- // response: {
223
- // status: 0,
224
- // },
225
- // });
226
- // element[responseHandler](e);
227
- // assert.isTrue(element.loadingRequest);
228
- // });
229
-
230
- // it('does nothing when no detail', () => {
231
- // const e = new CustomEvent(EventTypes.Request.apiResponse);
232
- // element[responseHandler](e);
233
- // assert.isTrue(element.loadingRequest);
234
- // });
235
-
236
- // it('resets the loadingRequest property', () => {
237
- // const e = new CustomEvent(EventTypes.Request.apiResponse, {
238
- // detail: {
239
- // id: requestId,
240
- // }
241
- // });
242
- // element[responseHandler](e);
243
- // assert.isFalse(element.loadingRequest);
244
- // });
245
-
246
- // it('event handler is connected', () => {
247
- // RequestEvents.apiResponse(document.body, {
248
- // id: requestId,
249
- // isError: true,
250
- // loadingTime: 0,
251
- // request: {
252
- // method: '',
253
- // url: '',
254
- // },
255
- // response: {
256
- // status: 0,
257
- // },
258
- // });
259
- // assert.isFalse(element.loadingRequest);
260
- // });
261
- // });
262
-
263
- describe('Unit #1', () => {
264
- const httpbinApi = 'httpbin'
265
- const driveApi = 'google-drive-api'
266
- const demoApi = 'demo-api'
267
-
268
- describe('http method computation', () => {
269
- let model: AmfDefinitions.IAmfDocument
270
- before(async () => {
271
- model = await loader.getGraph(httpbinApi)
272
- store.amf = model
273
- })
274
-
275
- it('sets httpMethod property (get)', async () => {
276
- const method = loader.lookupOperation(model, '/anything', 'get') as AmfDefinitions.IAmfOperation
277
- const element = await modelFixture(method['@id'])
278
- assert.equal(element.httpMethod, 'get')
279
- })
280
-
281
- it('sets httpMethod property (post)', async () => {
282
- const method = loader.lookupOperation(model, '/anything', 'post') as AmfDefinitions.IAmfOperation
283
- const element = await modelFixture(method['@id'])
284
- assert.equal(element.httpMethod, 'post')
285
- })
286
-
287
- it('sets httpMethod property (put)', async () => {
288
- const method = loader.lookupOperation(model, '/anything', 'put') as AmfDefinitions.IAmfOperation
289
- const element = await modelFixture(method['@id'])
290
- assert.equal(element.httpMethod, 'put')
291
- })
292
-
293
- it('sets httpMethod property (delete)', async () => {
294
- const method = loader.lookupOperation(model, '/anything', 'delete') as AmfDefinitions.IAmfOperation
295
- const element = await modelFixture(method['@id'])
296
- assert.equal(element.httpMethod, 'delete')
297
- })
298
- })
299
-
300
- describe('#payloads and #payload', () => {
301
- let model: AmfDefinitions.IAmfDocument
302
- before(async () => {
303
- model = await loader.getGraph(driveApi)
304
- store.amf = model
305
- })
306
-
307
- it('sets the #payloads for the endpoint', async () => {
308
- const method = loader.lookupOperation(model, '/files/{fileId}', 'patch') as AmfDefinitions.IAmfOperation
309
- const element = await modelFixture(method['@id'])
310
- assert.typeOf(element.payloads, 'array')
311
- assert.lengthOf(element.payloads as ApiDefinitions.IApiPayload[], 1)
312
- })
313
-
314
- it('sets the #payload property', async () => {
315
- const method = loader.lookupOperation(model, '/files/{fileId}', 'patch') as AmfDefinitions.IAmfOperation
316
- const element = await modelFixture(method['@id'])
317
- assert.typeOf(element.payload, 'object')
318
- })
319
- })
320
-
321
- describe('Security computations', () => {
322
- let model: AmfDefinitions.IAmfDocument
323
- before(async () => {
324
- model = await loader.getGraph(driveApi)
325
- store.amf = model
326
- })
327
-
328
- it('does not set variables when no security', async () => {
329
- const element = await basicFixture()
330
- assert.isUndefined(element.security)
331
- })
332
-
333
- it('sets the security value', async () => {
334
- const method = loader.lookupOperation(model, '/files', 'get') as AmfDefinitions.IAmfOperation
335
- const element = await modelFixture(method['@id'])
336
- assert.typeOf(element.security, 'array', 'has the security')
337
- assert.lengthOf(element.security as SecuritySelectorListItem[], 1, 'has the single scheme')
338
- const [scheme] = element.security as SecuritySelectorListItem[]
339
- assert.deepEqual(scheme.types, ['OAuth 2.0'], 'has types definition')
340
- assert.deepEqual(scheme.labels, ['oauth_2_0'], 'has labels definition')
341
- assert.typeOf(scheme.security, 'object', 'has the security definition')
342
- })
343
-
344
- it('sets the selectedSecurity', async () => {
345
- const method = loader.lookupOperation(model, '/files', 'get') as AmfDefinitions.IAmfOperation
346
- const element = await modelFixture(method['@id'])
347
- assert.isNotEmpty(element.selectedSecurity)
348
- })
349
- })
350
-
351
- // describe('RAML parameters computations', () => {
352
- // let model: AmfDefinitions.IAmfDocument;
353
- // before(async () => {
354
- // model = await loader.getGraph(demoApi);
355
- // store.amf = model;
356
- // });
357
-
358
- // it('sets server parameters when no operation', async () => {
359
- // const element = await basicFixture();
360
- // assert.lengthOf(element.parametersValue, 1, 'has a single parameter');
361
- // const [param] = element.parametersValue;
362
- // assert.equal(param.binding, 'path', 'has a path parameter');
363
- // assert.equal(param.source, 'server', 'the parameter was set by the server');
364
- // });
365
-
366
- // it('sets path parameters from the server and the endpoint', async () => {
367
- // const method = loader.lookupOperation(model, '/test-parameters/{feature}', 'get')
368
- // as AmfDefinitions.IAmfOperation;
369
- // const element = await modelFixture(method['@id']);
370
- // const path = element.parametersValue.filter(p => p.binding === 'path')
371
- // assert.lengthOf(path, 2, 'has all parameters');
372
- // assert.typeOf(
373
- // path.find(p => p.parameter.name === 'feature'),
374
- // 'object',
375
- // 'has the endpoints path parameter'
376
- // );
377
- // assert.typeOf(
378
- // path.find(p => p.parameter.name === 'instance'),
379
- // 'object',
380
- // 'has the server path parameter'
381
- // );
382
- // });
383
-
384
- // it('sets query parameters', async () => {
385
- // const method = loader.lookupOperation(model, '/test-parameters/{feature}', 'get')
386
- // as AmfDefinitions.IAmfOperation;
387
- // const element = await modelFixture(method['@id']);
388
- // const path = element.parametersValue.filter(p => p.binding === 'query')
389
- // assert.lengthOf(path, 3, 'has all parameters');
390
- // assert.typeOf(
391
- // path.find(p => p.parameter.name === 'testRepeatable'),
392
- // 'object',
393
- // 'has the testRepeatable parameter'
394
- // );
395
- // assert.typeOf(
396
- // path.find(p => p.parameter.name === 'numericRepeatable'),
397
- // 'object',
398
- // 'has the numericRepeatable parameter'
399
- // );
400
- // assert.typeOf(
401
- // path.find(p => p.parameter.name === 'notRequiredRepeatable'),
402
- // 'object',
403
- // 'has the notRequiredRepeatable parameter'
404
- // );
405
- // });
406
-
407
- // it('sets header parameters', async () => {
408
- // const method = loader.lookupOperation(model, '/people', 'get') as AmfDefinitions.IAmfOperation;
409
- // const element = await modelFixture(method['@id']);
410
- // const params = element.parametersValue.filter(p => p.binding === 'header');
411
- // assert.lengthOf(params, 2, 'has all parameters');
412
- // assert.typeOf(
413
- // params.find(p => p.parameter.name === 'x-people-op-id'),
414
- // 'object',
415
- // 'has the x-people-op-id parameter'
416
- // );
417
- // });
418
- // });
419
-
420
- describe('#mimeType', () => {
421
- let model: AmfDefinitions.IAmfDocument
422
- before(async () => {
423
- model = await loader.getGraph(demoApi)
424
- store.amf = model
425
- })
426
-
427
- it('sets content type from the body', async () => {
428
- const method = loader.lookupOperation(model, '/content-type', 'post') as AmfDefinitions.IAmfOperation
429
- const element = await modelFixture(method['@id'])
430
- assert.equal(element.mimeType, 'application/json')
431
- })
432
- })
433
-
434
- describe('ui state', () => {
435
- let model: AmfDefinitions.IAmfDocument
436
- before(async () => {
437
- model = await loader.getGraph(demoApi)
438
- store.amf = model
439
- })
440
-
441
- it('renders the authorization editor when authorization is required', async () => {
442
- const method = loader.lookupOperation(model, '/messages', 'get') as AmfDefinitions.IAmfOperation
443
- const element = await modelFixture(method['@id'])
444
- const node = element.shadowRoot!.querySelector('api-authorization-editor')
445
- assert.ok(node)
446
- })
447
-
448
- it('renders query/uri forms when model is set', async () => {
449
- const method = loader.lookupOperation(model, '/people', 'get') as AmfDefinitions.IAmfOperation
450
- const element = await modelFixture(method['@id'])
451
- const node = element.shadowRoot!.querySelector('.params-section.parameter')
452
- assert.ok(node)
453
- })
454
-
455
- it('renders headers editor when model is set', async () => {
456
- const method = loader.lookupOperation(model, '/people', 'get') as AmfDefinitions.IAmfOperation
457
- const element = await modelFixture(method['@id'])
458
- const node = element.shadowRoot!.querySelector('.params-section.header')
459
- assert.ok(node)
460
- })
461
-
462
- it('renders the URL editor when urlEditor', async () => {
463
- const method = loader.lookupOperation(model, '/people', 'get') as AmfDefinitions.IAmfOperation
464
- const element = await urlEditorFixture(method['@id'])
465
- const node = element.shadowRoot!.querySelector('.url-input')
466
- assert.ok(node)
467
- })
468
- })
469
-
470
- describe('execute()', () => {
471
- let model: AmfDefinitions.IAmfDocument
472
- before(async () => {
473
- model = await loader.getGraph(demoApi)
474
- store.amf = model
475
- })
476
-
477
- let element: ApiRequestEditorElement
478
- beforeEach(async () => {
479
- InputCache.globalValues.clear()
480
- const method = loader.lookupOperation(model, '/people', 'get') as AmfDefinitions.IAmfOperation
481
- element = await modelFixture(method['@id'])
482
- })
483
-
484
- // it('dispatches the legacy request event', () => {
485
- // const spy = sinon.spy()
486
- // element.addEventListener(EventTypes.Request.apiRequestLegacy, spy)
487
- // element.execute()
488
- // assert.isTrue(spy.called)
489
- // })
490
-
491
- // it('dispatches the request event', () => {
492
- // const spy = sinon.spy()
493
- // element.addEventListener(EventTypes.Request.apiRequest, spy)
494
- // element.execute()
495
- // assert.isTrue(spy.called)
496
- // })
497
-
498
- it('sets loadingRequest property', () => {
499
- element.execute()
500
- assert.isTrue(element.loadingRequest)
501
- })
502
-
503
- // it('sets requestId property', () => {
504
- // element.execute()
505
- // assert.typeOf(element.requestId, 'string')
506
- // })
507
-
508
- it('calls the serialize() function', () => {
509
- const spy = sinon.spy(element, 'serialize')
510
- element.execute()
511
- assert.isTrue(spy.called)
512
- })
513
-
514
- // it('the event has the serialized request', () => {
515
- // const spy = sinon.spy()
516
- // element.addEventListener(EventTypes.Request.apiRequest, spy)
517
- // element.execute()
518
- // const { detail } = spy.args[0][0]
519
- // assert.equal(detail.method, 'GET')
520
- // assert.equal(detail.url, 'http://production.domain.com/people')
521
- // assert.equal(detail.headers, 'x-people-op-id: 9719fa6f-c666-48e0-a191-290890760b30\nx-rate-client-id: 5757gh76')
522
- // assert.typeOf(detail.id, 'string')
523
- // assert.typeOf(detail.authorization, 'array', 'has the authorization array')
524
- // assert.lengthOf(detail.authorization, 1, 'has as single authorization definition')
525
- // })
526
- })
527
-
528
- describe('abort()', () => {
529
- let model: AmfDefinitions.IAmfDocument
530
- before(async () => {
531
- model = await loader.getGraph(demoApi)
532
- store.amf = model
533
- })
534
-
535
- let element: ApiRequestEditorElement
536
- beforeEach(async () => {
537
- InputCache.globalValues.clear()
538
- const method = loader.lookupOperation(model, '/people', 'get') as AmfDefinitions.IAmfOperation
539
- element = await modelFixture(method['@id'])
540
- element.loadingRequest = true
541
- // element.requestId = 'test-request'
542
- element.requestUpdate()
543
- await element.updateComplete
544
- })
545
-
546
- // it('dispatched the event when the abort button pressed', () => {
547
- // const spy = sinon.spy()
548
- // element.addEventListener(EventTypes.Request.abortApiRequest, spy)
549
- // const button = element.shadowRoot!.querySelector('.send-button.abort') as HTMLElement
550
- // button.click()
551
- // assert.isTrue(spy.calledOnce)
552
- // })
553
-
554
- // it('dispatched the legacy event when the abort button pressed', () => {
555
- // const spy = sinon.spy()
556
- // element.addEventListener(EventTypes.Request.abortApiRequestLegacy, spy)
557
- // const button = element.shadowRoot!.querySelector('.send-button.abort') as HTMLElement
558
- // button.click()
559
- // assert.isTrue(spy.calledOnce)
560
- // })
561
-
562
- // it('the event contains the url and the id', () => {
563
- // const spy = sinon.spy()
564
- // element.addEventListener(EventTypes.Request.abortApiRequest, spy)
565
- // element.abort()
566
- // const { detail } = spy.args[0][0]
567
- // assert.equal(detail.url, element.url, 'URL is set')
568
- // assert.equal(detail.id, 'test-request', 'id is set')
569
- // })
570
-
571
- it('resets the loadingRequest property', () => {
572
- element.abort()
573
- assert.isFalse(element.loadingRequest)
574
- })
575
-
576
- // it('resets the requestId property', () => {
577
- // element.abort()
578
- // assert.isUndefined(element.requestId)
579
- // })
580
- })
581
-
582
- describe('serialize()', () => {
583
- let model: AmfDefinitions.IAmfDocument
584
- before(async () => {
585
- model = await loader.getGraph(demoApi)
586
- store.amf = model
587
- })
588
-
589
- beforeEach(async () => {
590
- InputCache.globalValues.clear()
591
- })
592
-
593
- it('returns an object', async () => {
594
- const method = loader.lookupOperation(model, '/people', 'get') as AmfDefinitions.IAmfOperation
595
- const element = await modelFixture(method['@id'])
596
- const result = await element.serialize()
597
- assert.typeOf(result, 'object')
598
- })
599
-
600
- it('sets editor url', async () => {
601
- const method = loader.lookupOperation(model, '/people', 'get') as AmfDefinitions.IAmfOperation
602
- const element = await modelFixture(method['@id'])
603
- await nextFrame()
604
- const result = await element.serialize()
605
- assert.equal(result.expects.url, 'http://production.domain.com/people')
606
- })
607
-
608
- it('sets editor method', async () => {
609
- const method = loader.lookupOperation(model, '/people', 'get') as AmfDefinitions.IAmfOperation
610
- const element = await modelFixture(method['@id'])
611
- const result = await element.serialize()
612
- assert.equal(result.expects.method, 'GET')
613
- })
614
-
615
- it('sets headers from the editor', async () => {
616
- const method = loader.lookupOperation(model, '/post-headers', 'post') as AmfDefinitions.IAmfOperation
617
- const element = await modelFixture(method['@id'])
618
- await aTimeout(10)
619
- const result = await element.serialize()
620
- assert.equal(result.expects.headers, 'x-string: my-value\ncontent-type: application/json')
621
- })
622
-
623
- it('sets editor payload', async () => {
624
- const method = loader.lookupOperation(model, '/people', 'post') as AmfDefinitions.IAmfOperation
625
- const element = await modelFixture(method['@id'])
626
- await aTimeout(0)
627
- const result = await element.serialize()
628
- assert.typeOf(result.expects.payload, 'string', 'has the payload')
629
-
630
- const body = JSON.parse(String(result.expects.payload))
631
- // just any value, it's not important here.
632
- assert.equal(body.gender, 'female', 'has payload values')
633
- })
634
-
635
- it('sets authorization data', async () => {
636
- const method = loader.lookupOperation(model, '/people/{personId}', 'get') as AmfDefinitions.IAmfOperation
637
- const element = await modelFixture(method['@id'])
638
- await aTimeout(0)
639
- const result = await element.serialize()
640
- assert.typeOf(result.authorization, 'array')
641
- assert.lengthOf(result.authorization as IRequestAuthorization[], 1)
642
- assert.equal((result.authorization as IRequestAuthorization[])[0].type, 'custom')
643
- })
644
-
645
- it('does not set editor payload when GET request', async () => {
646
- const postMethod = loader.lookupOperation(model, '/people', 'post') as AmfDefinitions.IAmfOperation
647
- const element = await modelFixture(postMethod['@id'])
648
- await aTimeout(0)
649
- const getMethod = loader.lookupOperation(model, '/people', 'get') as AmfDefinitions.IAmfOperation
650
- element.domainId = getMethod['@id']
651
- await aTimeout(0)
652
- const result = await element.serialize()
653
- assert.isUndefined(result.expects.payload)
654
- })
655
-
656
- it('does not set editor payload when HEAD request', async () => {
657
- const postMethod = loader.lookupOperation(model, '/people', 'post') as AmfDefinitions.IAmfOperation
658
- const element = await modelFixture(postMethod['@id'])
659
- await aTimeout(0)
660
- const getMethod = loader.lookupOperation(model, '/people', 'head') as AmfDefinitions.IAmfOperation
661
- element.domainId = getMethod['@id']
662
- await aTimeout(0)
663
- const result = await element.serialize()
664
- assert.isUndefined(result.expects.payload)
665
- })
666
-
667
- // it('sets the content-type header if not present but set in component', async () => {
668
- // const method = loader.lookupOperation(model, '/people', 'post') as AmfDefinitions.IAmfOperation;
669
- // const element = await modelFixture(method['@id']);
670
- // element.parametersValue = element.parametersValue.filter(p => p.binding !== 'header');
671
- // const result = await element.serialize();
672
- // assert.equal(result.headers, 'content-type: application/json');
673
- // });
674
- })
675
-
676
- describe('[sendHandler]()', () => {
677
- let model: AmfDefinitions.IAmfDocument
678
- before(async () => {
679
- model = await loader.getGraph(demoApi)
680
- store.amf = model
681
- })
682
-
683
- // it('calls authAndExecute() when authorization is required', async () => {
684
- // const method = store.lookupOperation(model, '/messages', 'get') as AmfDefinitions.IAmfOperation;
685
- // const element = await modelFixture(method['@id']);
686
- // await aTimeout(5);
687
- // const spy = sinon.spy(element, 'authAndExecute');
688
- // const button = element.shadowRoot!.querySelector('.send-button') as HTMLElement;
689
- // /** @type HTMLElement */ (button).click();
690
- // await aTimeout(25);
691
- // assert.isTrue(spy.called);
692
- // });
693
-
694
- it('calls execute() when authorization is not required', async () => {
695
- const method = loader.lookupOperation(model, '/people', 'get') as AmfDefinitions.IAmfOperation
696
- const element = await modelFixture(method['@id'])
697
- const spy = sinon.spy(element, 'execute')
698
- const button = element.shadowRoot!.querySelector('.send-button') as HTMLElement
699
- button.click()
700
- assert.isTrue(spy.called)
701
- })
702
- })
703
-
704
- describe('#urlLabel', () => {
705
- let model: AmfDefinitions.IAmfDocument
706
- before(async () => {
707
- model = await loader.getGraph(demoApi)
708
- store.amf = model
709
- })
710
-
711
- it('renders the url label', async () => {
712
- const method = loader.lookupOperation(model, '/people', 'get') as AmfDefinitions.IAmfOperation
713
- const element = await urlLabelFixture(method['@id'])
714
- const node = element.shadowRoot!.querySelector('.url-label')
715
- assert.ok(node)
716
- })
717
-
718
- it('renders the url value', async () => {
719
- const method = loader.lookupOperation(model, '/people', 'get') as AmfDefinitions.IAmfOperation
720
- const element = await urlLabelFixture(method['@id'])
721
- await nextFrame()
722
- const node = element.shadowRoot!.querySelector('.url-label') as HTMLElement
723
- const text = (node.textContent as string).trim()
724
- assert.equal(text, element.url)
725
- })
726
- })
727
-
728
- // TODO: fixme
729
- // describe.skip('slotted servers', () => {
730
- // let element: ApiRequestEditorElement;
731
- // let model: AmfDefinitions.IAmfDocument;
732
- // before(async () => {
733
- // model = await loader.getGraph();
734
- // store.amf = model;
735
- // });
736
-
737
- // beforeEach(async () => {
738
- // element = await customBaseUriSlotFixture();
739
- // const op = loader.lookupOperation(model, '/people/{personId}', 'get') as AmfDefinitions.IAmfOperation;
740
- // element.domainId = op['@id'];
741
- // await aTimeout(2);
742
- // });
743
-
744
- // it('should update api-url-editor value after selecting slotted base uri', async () => {
745
- // element[serverHandler](new CustomEvent('apiserverchanged', { detail: { value: 'http://customServer.com', type: 'custom' } }));
746
- // await aTimeout(2);
747
- // assert.equal(element.url, 'http://customServer.com/people/1234');
748
- // });
749
-
750
- // it('changing the URL in the url input changes the parameters', async () => {
751
- // element.urlEditor = true;
752
- // await nextFrame();
753
- // element[serverHandler](new CustomEvent('apiserverchanged', { detail: { value: 'http://customServer.com', type: 'custom' } }));
754
- // await aTimeout(2);
755
- // const input = (element.shadowRoot!.querySelector('.url-input')) as HTMLInputElement;
756
- // input.value = 'http://customServer.com/people/5678';
757
- // input.dispatchEvent(new Event('change'));
758
- // await nextFrame();
759
- // assert.equal(element.url, 'http://customServer.com/people/5678', 'url value is changed');
760
- // const paramInput = (element.shadowRoot!.querySelector('[name="personId"]')) as HTMLInputElement;
761
- // assert.equal(paramInput.value, '5678', 'the input is changed');
762
- // });
763
- // });
764
-
765
- describe('#allowHideOptional', () => {
766
- let model: AmfDefinitions.IAmfDocument
767
- before(async () => {
768
- model = await loader.getGraph(demoApi)
769
- store.amf = model
770
- })
771
-
772
- describe('query parameters', () => {
773
- it('renders the optional toggle button', async () => {
774
- const method = loader.lookupOperation(model, '/people', 'get') as AmfDefinitions.IAmfOperation
775
- const element = await hideOptionalFixture(method['@id'])
776
- const toggle = element.shadowRoot!.querySelector('.query-params .toggle-optional-switch')
777
- assert.ok(toggle)
778
- })
779
-
780
- it('optional parameters are hidden', async () => {
781
- const method = loader.lookupOperation(model, '/people', 'get') as AmfDefinitions.IAmfOperation
782
- const element = await hideOptionalFixture(method['@id'])
783
- const allItems = element.shadowRoot!.querySelectorAll('.query-params .form-item.optional')
784
- Array.from(allItems).forEach((node) => {
785
- const { display } = getComputedStyle(node)
786
- assert.equal(display, 'none')
787
- })
788
- })
789
-
790
- it('toggles the visibility of the parameters', async () => {
791
- const method = loader.lookupOperation(model, '/people', 'get') as AmfDefinitions.IAmfOperation
792
- const element = await hideOptionalFixture(method['@id'])
793
- const toggle = element.shadowRoot!.querySelector('.query-params .toggle-optional-switch') as HTMLElement
794
- toggle.click()
795
- await nextFrame()
796
- assert.deepEqual(element.openedOptional, ['query'], 'adds query to the openedOptional')
797
- const container = element.shadowRoot!.querySelector('.query-params .form-item.optional') as HTMLElement
798
- const { display } = getComputedStyle(container)
799
- assert.equal(display, 'flex')
800
- })
801
-
802
- it('does not render the toggle button for all required', async () => {
803
- const method = loader.lookupOperation(
804
- model,
805
- '/required-query-parameters',
806
- 'get'
807
- ) as AmfDefinitions.IAmfOperation
808
- const element = await hideOptionalFixture(method['@id'])
809
- const toggle = element.shadowRoot!.querySelector('.query-params .toggle-optional-switch')
810
- assert.notOk(toggle, 'toggle is not rendered')
811
- const allItems = element.shadowRoot!.querySelectorAll('.query-params .form-item')
812
- Array.from(allItems).forEach((node) => {
813
- const { display } = getComputedStyle(node)
814
- assert.equal(display, 'flex')
815
- })
816
- })
817
- })
818
-
819
- describe('header parameters', () => {
820
- it('renders the optional toggle button', async () => {
821
- const method = loader.lookupOperation(model, '/optional-headers', 'get') as AmfDefinitions.IAmfOperation
822
- const element = await hideOptionalFixture(method['@id'])
823
- const toggle = element.shadowRoot!.querySelector('.params-section.header .toggle-optional-switch')
824
- assert.ok(toggle)
825
- })
826
-
827
- it('optional parameters are hidden', async () => {
828
- const method = loader.lookupOperation(model, '/optional-headers', 'get') as AmfDefinitions.IAmfOperation
829
- const element = await hideOptionalFixture(method['@id'])
830
- const allItems = element.shadowRoot!.querySelectorAll('.params-section.header .form-item.optional')
831
- Array.from(allItems).forEach((node) => {
832
- const { display } = getComputedStyle(node)
833
- assert.equal(display, 'none')
834
- })
835
- })
836
-
837
- it('toggles the visibility of the parameters', async () => {
838
- const method = loader.lookupOperation(model, '/optional-headers', 'get') as AmfDefinitions.IAmfOperation
839
- const element = await hideOptionalFixture(method['@id'])
840
- const toggle = element.shadowRoot!.querySelector(
841
- '.params-section.header .toggle-optional-switch'
842
- ) as HTMLElement
843
- toggle.click()
844
- await nextFrame()
845
- assert.deepEqual(element.openedOptional, ['header'], 'adds query to the openedOptional')
846
- const container = element.shadowRoot!.querySelector(
847
- '.params-section.header .form-item.optional'
848
- ) as HTMLElement
849
- const { display } = getComputedStyle(container)
850
- assert.equal(display, 'flex')
851
- })
852
-
853
- it('does not render the toggle button for all required', async () => {
854
- const method = loader.lookupOperation(model, '/required-headers', 'get') as AmfDefinitions.IAmfOperation
855
- const element = await hideOptionalFixture(method['@id'])
856
- const toggle = element.shadowRoot!.querySelector('.params-section.header .toggle-optional-switch')
857
- assert.notOk(toggle, 'toggle is not rendered')
858
- const allItems = element.shadowRoot!.querySelectorAll('.params-section.header .form-item')
859
- Array.from(allItems).forEach((node) => {
860
- const { display } = getComputedStyle(node)
861
- assert.equal(display, 'flex')
862
- })
863
- })
864
- })
865
- })
866
-
867
- describe('Body editing', () => {
868
- describe('Value settings', () => {
869
- let model: AmfDefinitions.IAmfDocument
870
- before(async () => {
871
- model = await loader.getGraph(demoApi)
872
- store.amf = model
873
- })
874
-
875
- it('sets value from a RAML example for a JSON body', async () => {
876
- const method = loader.lookupOperation(model, '/body-types/json', 'post') as AmfDefinitions.IAmfOperation
877
- const element = await modelFixture(method['@id'])
878
- const request = await element.serialize()
879
- const data = JSON.parse(String(request.expects.payload))
880
- assert.equal(data.name, 'Pawel Psztyc')
881
-
882
- const bodyEditor = element.shadowRoot!.querySelector('http-body-text-editor')!
883
- assert.equal(bodyEditor.contentType, 'application/json', 'body editor has the content type')
884
- })
885
-
886
- it('sets value from a RAML example for an XML body', async () => {
887
- const method = loader.lookupOperation(model, '/body-types/xml', 'post') as AmfDefinitions.IAmfOperation
888
- const element = await modelFixture(method['@id'])
889
- const request = await element.serialize()
890
- const body = String(request.expects.payload)
891
- assert.include(body, '<name>Pawel Psztyc</name>')
892
-
893
- const bodyEditor = element.shadowRoot!.querySelector('http-body-text-editor')!
894
- assert.equal(bodyEditor.contentType, 'application/xml', 'body editor has the content type')
895
- })
896
-
897
- it('sets value from a RAML example for an x-www-form-urlencoded body', async () => {
898
- const method = loader.lookupOperation(model, '/body-types/form', 'post') as AmfDefinitions.IAmfOperation
899
- const element = await modelFixture(method['@id'])
900
- const request = await element.serialize()
901
- const body = String(request.expects.payload)
902
- assert.include(body, 'name=Pawel+Psztyc')
903
-
904
- const bodyEditor = element.shadowRoot!.querySelector('http-body-urlencoded-editor')
905
- assert.ok(bodyEditor, 'renders the specialized form data editor')
906
- })
907
-
908
- // this can be done by adding support for a new media type in the `api-schema` module.
909
- // for now an empty FormData instance is created
910
- it('it has no example values for form data', async () => {
911
- const method = loader.lookupOperation(
912
- model,
913
- '/body-types/multi-parts',
914
- 'post'
915
- ) as AmfDefinitions.IAmfOperation
916
- const element = await modelFixture(method['@id'])
917
- const request = await element.serialize()
918
- assert.typeOf(request.expects.payload, 'FormData')
919
-
920
- const bodyEditor = element.shadowRoot!.querySelector('http-body-multipart-editor')
921
- assert.ok(bodyEditor, 'renders the specialized multipart editor')
922
- })
923
-
924
- it('sets a generated from schema example', async () => {
925
- const method = loader.lookupOperation(model, '/generated-example', 'post') as AmfDefinitions.IAmfOperation
926
- const element = await modelFixture(method['@id'])
927
- const request = await element.serialize()
928
- const data = JSON.parse(String(request.expects.payload))
929
- assert.typeOf(data.birthday, 'string', 'a date property is set')
930
- assert.isNotEmpty(data.birthday, 'a date property has a value')
931
- assert.equal(data.name, 'John Smith', 'has generated schema value')
932
- })
933
-
934
- it('renders media type selector', async () => {
935
- const method = loader.lookupOperation(model, '/generated-example', 'post') as AmfDefinitions.IAmfOperation
936
- const element = await modelFixture(method['@id'])
937
-
938
- const container = element.shadowRoot!.querySelector('.payload-mime-selector') as HTMLElement
939
- assert.ok(container, 'has the media selector container')
940
-
941
- const options = container.querySelectorAll('ui-radio')
942
- assert.lengthOf(options, 3, 'has all defined in the API media types')
943
-
944
- assert.equal(options[0].textContent!.trim(), 'application/json', 'has the application/json option')
945
- assert.equal(options[1].textContent!.trim(), 'application/xml', 'has the application/xml option')
946
- assert.equal(
947
- options[2].textContent!.trim(),
948
- 'application/x-www-form-urlencoded',
949
- 'has the application/x-www-form-urlencoded option'
950
- )
951
- })
952
-
953
- it('changes selected mime type', async () => {
954
- const method = loader.lookupOperation(model, '/generated-example', 'post') as AmfDefinitions.IAmfOperation
955
- const element = await modelFixture(method['@id'])
956
-
957
- const options = element.shadowRoot!.querySelectorAll(
958
- '.payload-mime-selector ui-radio'
959
- ) as NodeListOf<HTMLElement>
960
- options[1].click()
961
-
962
- await nextFrame()
963
-
964
- const request = await element.serialize()
965
- const body = String(request.expects.payload)
966
- assert.include(body, '<url>')
967
-
968
- const bodyEditor = element.shadowRoot!.querySelector('http-body-text-editor')!
969
- assert.equal(bodyEditor.contentType, 'application/xml', 'body editor has the content type')
970
- })
971
- })
972
-
973
- describe('apic-169', () => {
974
- let model: AmfDefinitions.IAmfDocument
975
- before(async () => {
976
- model = await loader.getGraph('apic-169')
977
- store.amf = model
978
- })
979
-
980
- it('sets the value with optional and generated', async () => {
981
- const method = loader.lookupOperation(model, '/new', 'post') as AmfDefinitions.IAmfOperation
982
- const element = await modelFixture(method['@id'])
983
- const request = await element.serialize()
984
- const data = JSON.parse(String(request.expects.payload))
985
- assert.equal(data.name, 'MuleSoft')
986
- })
987
- })
988
-
989
- describe('APIC-480', () => {
990
- let model: AmfDefinitions.IAmfDocument
991
- before(async () => {
992
- model = await loader.getGraph('APIC-480')
993
- store.amf = model
994
- })
995
-
996
- it('sets the content type of the operation', async () => {
997
- const method = loader.lookupOperation(
998
- model,
999
- '/accounts/{accountNumber}',
1000
- 'patch'
1001
- ) as AmfDefinitions.IAmfOperation
1002
- const element = await modelFixture(method['@id'])
1003
- const request = await element.serialize()
1004
- assert.include(request.expects.headers, 'content-type: application/json')
1005
- })
1006
- })
1007
-
1008
- describe('APIC-613', () => {
1009
- let model: AmfDefinitions.IAmfDocument
1010
- before(async () => {
1011
- model = await loader.getGraph('APIC-613')
1012
- store.amf = model
1013
- })
1014
-
1015
- it('should not reset input fields when manipulating them', async () => {
1016
- const method = loader.lookupOperation(model, '/files', 'post') as AmfDefinitions.IAmfOperation
1017
- const element = await modelFixture(method['@id'])
1018
-
1019
- const editor = element.shadowRoot!.querySelector('http-body-multipart-editor')!
1020
- ;(editor.shadowRoot!.querySelector('.add-param.text-part') as HTMLElement).click()
1021
- // waiting for the input to render.
1022
- await nextFrame()
1023
-
1024
- const input = editor.shadowRoot!.querySelector('anypoint-input[data-property="name"]') as HTMLInputElement
1025
- input.value = 'Test'
1026
- input.dispatchEvent(new Event('input'))
1027
- input.dispatchEvent(new Event('change'))
1028
-
1029
- await nextFrame()
1030
- assert.exists(editor.shadowRoot!.querySelector('anypoint-input[data-property="name"]'))
1031
- })
1032
- })
1033
- })
1034
- })
1035
-
1036
- describe('#allowCustomBaseUri', () => {
1037
- let element: ApiRequestEditorElement
1038
- beforeEach(async () => {
1039
- element = await customBaseUriSlotFixture()
1040
- })
1041
-
1042
- it('has 1 server by default', () => {
1043
- assert.equal(element.serversCount, 1)
1044
- })
1045
-
1046
- it('hides server selector with a single server', async () => {
1047
- assert.isTrue(element.serverSelectorHidden)
1048
- })
1049
-
1050
- it('sets hidden attribute to server selector', async () => {
1051
- const serverSelector = element.shadowRoot!.querySelector('api-server-picker')!
1052
- assert.exists(serverSelector)
1053
- assert.isTrue(serverSelector.hasAttribute('hidden'))
1054
- })
1055
-
1056
- it('has 2 servers', async () => {
1057
- element.allowCustomBaseUri = true
1058
- await nextFrame()
1059
- assert.equal(element.serversCount, 2)
1060
- })
1061
-
1062
- it('does not hide server selector', async () => {
1063
- element.allowCustomBaseUri = true
1064
- await nextFrame()
1065
- assert.isFalse(element.serverSelectorHidden)
1066
- })
1067
-
1068
- it('should set hidden attribute to false in server selector', async () => {
1069
- element.allowCustomBaseUri = true
1070
- await nextFrame()
1071
- const serverSelector = element.shadowRoot!.querySelector('api-server-picker') as HTMLElement
1072
- assert.exists(serverSelector)
1073
- assert.isFalse(serverSelector.hasAttribute('hidden'))
1074
- })
1075
- })
1076
-
1077
- describe('#noServerSelector', () => {
1078
- it('hides server selector', async () => {
1079
- const element = await noSelectorFixture()
1080
- assert.isTrue(element.serverSelectorHidden)
1081
- })
1082
-
1083
- it('should set hidden attribute to server selector', async () => {
1084
- const element = await noSelectorFixture()
1085
- const serverSelector = element.shadowRoot!.querySelector('api-server-picker') as HTMLElement
1086
- assert.exists(serverSelector)
1087
- assert.isTrue(serverSelector.hasAttribute('hidden'))
1088
- })
1089
-
1090
- it('renders server selector at first', async () => {
1091
- const element = await customBaseUriSlotFixture()
1092
- element.allowCustomBaseUri = true
1093
- await nextFrame()
1094
- assert.isFalse(element.serverSelectorHidden)
1095
- })
1096
-
1097
- it('hides the selector', async () => {
1098
- const element = await customBaseUriSlotFixture()
1099
- element.allowCustomBaseUri = true
1100
- await nextFrame()
1101
- element.noServerSelector = true
1102
- await nextFrame()
1103
- assert.isTrue(element.serverSelectorHidden)
1104
- const serverSelector = element.shadowRoot!.querySelector('api-server-picker') as HTMLElement
1105
- assert.exists(serverSelector)
1106
- assert.isTrue(serverSelector.hasAttribute('hidden'))
1107
- })
1108
- })
1109
-
1110
- const multiServerApi = 'multi-server'
1111
-
1112
- function dispatchSelectionEvent(element: HTMLElement, value: string, type: string): void {
1113
- const e = {
1114
- detail: {
1115
- value,
1116
- type,
1117
- },
1118
- }
1119
- const node = element.shadowRoot!.querySelector('api-server-picker') as HTMLElement
1120
- node.dispatchEvent(new CustomEvent('apiserverchanged', e))
1121
- }
1122
-
1123
- async function changeSelection(element: ApiRequestEditorElement, domainId: string): Promise<void> {
1124
- element.domainId = domainId
1125
- await nextFrame()
1126
- }
1127
-
1128
- describe('Multi server', () => {
1129
- describe('custom URI selection', () => {
1130
- let model: AmfDefinitions.IAmfDocument
1131
- before(async () => {
1132
- model = await loader.getGraph(multiServerApi)
1133
- store.amf = model
1134
- })
1135
-
1136
- let element: ApiRequestEditorElement
1137
- beforeEach(async () => {
1138
- element = await modelFixture()
1139
- // This is equivalent to Custom URI being selected, and 'https://www.google.com' being input
1140
- dispatchSelectionEvent(element, 'https://www.google.com', 'custom')
1141
- })
1142
-
1143
- it('has servers computed', () => {
1144
- assert.lengthOf(element.servers!, 4)
1145
- })
1146
-
1147
- it('updates serverValue', () => {
1148
- assert.equal(element.serverValue, 'https://www.google.com')
1149
- })
1150
-
1151
- it('renders selector for custom URI', () => {
1152
- assert.exists(element.shadowRoot!.querySelector('api-server-picker'))
1153
- })
1154
-
1155
- it('sets effectiveBaseUri to baseUri value', () => {
1156
- element.baseUri = 'https://example.org'
1157
- assert.equal(element.effectiveBaseUri, element.baseUri)
1158
- assert.equal(element.effectiveBaseUri, 'https://example.org')
1159
- })
1160
-
1161
- it('sets effectiveBaseUri serverValue value', () => {
1162
- assert.equal(element.effectiveBaseUri, element.serverValue)
1163
- assert.equal(element.effectiveBaseUri, 'https://www.google.com')
1164
- })
1165
-
1166
- it('updates computed server', async () => {
1167
- dispatchSelectionEvent(element, 'https://{customerId}.saas-app.com:{port}/v2', 'server')
1168
- await nextFrame()
1169
- assert.isDefined(element.server)
1170
- })
1171
- })
1172
-
1173
- describe('from navigation events', () => {
1174
- let model: AmfDefinitions.IAmfDocument
1175
- before(async () => {
1176
- model = await loader.getGraph(multiServerApi)
1177
- store.amf = model
1178
- })
1179
-
1180
- let element: ApiRequestEditorElement
1181
- beforeEach(async () => {
1182
- element = await modelFixture()
1183
- })
1184
-
1185
- it('has default number of servers', async () => {
1186
- assert.lengthOf(element.servers!, 4)
1187
- })
1188
-
1189
- it('computes servers when first navigation', async () => {
1190
- const method = loader.lookupOperation(model, '/default', 'get') as AmfDefinitions.IAmfOperation
1191
- await changeSelection(element, method['@id'])
1192
- assert.lengthOf(element.servers!, 4)
1193
- })
1194
-
1195
- it('computes servers after subsequent navigation', async () => {
1196
- // default navigation
1197
- await changeSelection(
1198
- element,
1199
- (loader.lookupOperation(model, '/default', 'get') as AmfDefinitions.IAmfOperation)['@id']
1200
- )
1201
- // other endpoint
1202
- await changeSelection(
1203
- element,
1204
- (loader.lookupOperation(model, '/files', 'get') as AmfDefinitions.IAmfOperation)['@id']
1205
- )
1206
- assert.lengthOf(element.servers!, 1)
1207
- })
1208
-
1209
- it('automatically selects the first available server', async () => {
1210
- await changeSelection(
1211
- element,
1212
- (loader.lookupOperation(model, '/default', 'get') as AmfDefinitions.IAmfOperation)['@id']
1213
- )
1214
- await nextFrame()
1215
- assert.equal(element.serverValue, 'https://{customerId}.saas-app.com:{port}/v2')
1216
- })
1217
-
1218
- it('auto change selected server', async () => {
1219
- await changeSelection(
1220
- element,
1221
- (loader.lookupOperation(model, '/default', 'get') as AmfDefinitions.IAmfOperation)['@id']
1222
- )
1223
- await changeSelection(
1224
- element,
1225
- (loader.lookupOperation(model, '/files', 'get') as AmfDefinitions.IAmfOperation)['@id']
1226
- )
1227
- assert.equal(element.serverValue, 'https://files.example.com')
1228
- })
1229
-
1230
- it('keeps server selection when possible', async () => {
1231
- await changeSelection(
1232
- element,
1233
- (loader.lookupOperation(model, '/default', 'get') as AmfDefinitions.IAmfOperation)['@id']
1234
- )
1235
-
1236
- dispatchSelectionEvent(element, 'https://{region}.api.cognitive.microsoft.com', 'server')
1237
-
1238
- await changeSelection(
1239
- element,
1240
- (loader.lookupOperation(model, '/copy', 'get') as AmfDefinitions.IAmfOperation)['@id']
1241
- )
1242
- assert.equal(element.serverValue, 'https://{region}.api.cognitive.microsoft.com')
1243
- })
1244
-
1245
- it('initializes with selected server', async () => {
1246
- const methodId = (loader.lookupOperation(model, '/ping', 'get') as AmfDefinitions.IAmfOperation)['@id']
1247
- element = await modelFixture(methodId)
1248
- await nextFrame()
1249
- assert.lengthOf(element.servers!, 2)
1250
- })
1251
- })
1252
- })
1253
-
1254
- // TODO: fix me
1255
- describe(`Populating annotated fields`, () => {
1256
- const annotatedParametersApi = 'annotated-parameters'
1257
-
1258
- let model: AmfDefinitions.IAmfDocument
1259
- before(async () => {
1260
- model = await loader.getGraph(annotatedParametersApi)
1261
- store.amf = model
1262
- })
1263
-
1264
- let element: ApiRequestEditorElement
1265
- beforeEach(async () => {
1266
- InputCache.globalValues.clear()
1267
- const selected = (loader.lookupOperation(model, '/test', 'get') as AmfDefinitions.IAmfOperation)['@id']
1268
- element = await modelFixture(selected)
1269
- })
1270
-
1271
- // it('should populate annotated query parameter field', () => {
1272
- // const detail = { values: [{ annotationName: 'credentialType', annotationValue: 'id', fieldValue: 'test value' }] };
1273
- // document.dispatchEvent(new CustomEvent('populate_annotated_fields', { detail, bubbles: true }));
1274
- // const values: string[] = [];
1275
- // element.parametersValue.forEach((p) => {
1276
- // if (p.parameter.binding !== 'query') {
1277
- // return;
1278
- // }
1279
- // values[values.length] = InputCache.get(element, p.paramId, false) as string;
1280
- // })
1281
- // assert.deepEqual(values, ['', 'test value']);
1282
- // });
1283
-
1284
- // it('should populate annotated header field', () => {
1285
- // const detail = { values: [{ annotationName: 'credentialType', annotationValue: 'secret', fieldValue: 'test value' }] };
1286
- // document.dispatchEvent(new CustomEvent('populate_annotated_fields', { detail, bubbles: true }));
1287
- // const values: string[] = [];
1288
- // element.parametersValue.forEach((p) => {
1289
- // if (p.parameter.binding !== 'header') {
1290
- // return;
1291
- // }
1292
- // values[values.length] = InputCache.get(element, p.paramId, false) as string;
1293
- // });
1294
- // assert.deepEqual(values, [ 'test value', '' ]);
1295
- // const { headers } = await element.serialize();
1296
- // assert.equal(headers, 'annotatedHeader: test value\nnormalHeader: ');
1297
- // });
1298
-
1299
- it('should populate annotated query parameter and header fields', async () => {
1300
- const detail = {
1301
- values: [
1302
- { annotationName: 'credentialType', annotationValue: 'id', fieldValue: 'test value 1' },
1303
- { annotationName: 'credentialType', annotationValue: 'secret', fieldValue: 'test value 2' },
1304
- ],
1305
- }
1306
- document.dispatchEvent(new CustomEvent('populate_annotated_fields', { detail, bubbles: true }))
1307
- const serialized = await element.serialize()
1308
- const { headers, url } = serialized.expects
1309
- assert.equal(headers, 'annotatedHeader: test value 2\nnormalHeader: ')
1310
- assert.include(url, 'normalQueryparam=&annotatedQueryParam=test+value+1')
1311
- })
1312
- })
1313
-
1314
- describe('Authorization', () => {
1315
- const fileName = 'oas-demo'
1316
-
1317
- describe(`Single method`, () => {
1318
- let model: AmfDefinitions.IAmfDocument
1319
- before(async () => {
1320
- model = await loader.getGraph(fileName)
1321
- store.amf = model
1322
- })
1323
-
1324
- let element: ApiRequestEditorElement
1325
- beforeEach(async () => {
1326
- const operation = loader.getOperation(model, '/single', 'get')
1327
- element = await modelFixture(operation.id)
1328
- })
1329
-
1330
- it('sets the security value', async () => {
1331
- assert.typeOf(element.security, 'array', 'has the security')
1332
- assert.lengthOf(element.security!, 1, 'has the single scheme')
1333
- const [scheme] = element.security!
1334
- assert.deepEqual(scheme.types, ['http'], 'has types definition')
1335
- assert.deepEqual(scheme.labels, ['BasicAuth'], 'has labels definition')
1336
- assert.typeOf(scheme.security, 'object', 'has the security definition')
1337
- })
1338
-
1339
- it('sets the selectedSecurity', async () => {
1340
- assert.isNotEmpty(element.selectedSecurity)
1341
- })
1342
-
1343
- it('has no selector', () => {
1344
- const node = element.shadowRoot!.querySelector('.auth-selector')
1345
- assert.notOk(node)
1346
- })
1347
- })
1348
-
1349
- describe(`Single method with union`, () => {
1350
- let model: AmfDefinitions.IAmfDocument
1351
- before(async () => {
1352
- model = await loader.getGraph(fileName)
1353
- store.amf = model
1354
- })
1355
-
1356
- let element: ApiRequestEditorElement
1357
- beforeEach(async () => {
1358
- const operation = loader.getOperation(model, '/and-and-or-union', 'get')
1359
- element = await modelFixture(operation.id)
1360
- })
1361
-
1362
- it('sets the security value', async () => {
1363
- assert.typeOf(element.security, 'array', 'has the security')
1364
- assert.lengthOf(element.security!, 2, 'has the both schemes')
1365
- const [scheme1] = element.security!
1366
- assert.deepEqual(scheme1.types, ['Api Key', 'Api Key'], 'has types definition')
1367
- assert.deepEqual(scheme1.labels, ['ApiKeyQuery', 'ApiKeyAuth'], 'has labels definition')
1368
- assert.typeOf(scheme1.security, 'object', 'has the security definition')
1369
- })
1370
-
1371
- it('has method selector', () => {
1372
- const node = element.shadowRoot!.querySelector('.auth-selector')
1373
- assert.ok(node)
1374
- })
1375
-
1376
- it('renders combined label', () => {
1377
- const node = element.shadowRoot!.querySelector('ui-list-item[data-label="ApiKeyQuery, ApiKeyAuth"]')
1378
- assert.ok(node)
1379
- })
1380
-
1381
- it('renders label with names and types', () => {
1382
- const node = element.shadowRoot!.querySelector(
1383
- 'ui-list-item[data-label="ApiKeyQuery, ApiKeyAuth"]'
1384
- ) as HTMLElement
1385
- const parts = (node.textContent as string)
1386
- .trim()
1387
- .split('\n')
1388
- .map((item) => item.trim())
1389
- assert.equal(parts[0], 'ApiKeyQuery, ApiKeyAuth')
1390
- assert.equal(parts[1], 'Api Key, Api Key')
1391
- })
1392
-
1393
- it('renders as single editor', () => {
1394
- const nodes = element.shadowRoot!.querySelectorAll('api-authorization-editor')
1395
- assert.lengthOf(nodes, 1)
1396
- })
1397
- })
1398
-
1399
- describe(`Multiple unions`, () => {
1400
- let model: AmfDefinitions.IAmfDocument
1401
- before(async () => {
1402
- model = await loader.getGraph(fileName)
1403
- store.amf = model
1404
- })
1405
-
1406
- let element: ApiRequestEditorElement
1407
- beforeEach(async () => {
1408
- const operation = loader.getOperation(model, '/cross-union', 'get')
1409
- element = await modelFixture(operation.id)
1410
- })
1411
-
1412
- it('sets the security value', async () => {
1413
- assert.typeOf(element.security, 'array', 'has the security')
1414
- assert.lengthOf(element.security!, 3, 'has the both schemes')
1415
- const [scheme1] = element.security!
1416
- assert.deepEqual(scheme1.types, ['Api Key', 'Api Key'], 'has types definition')
1417
- assert.deepEqual(scheme1.labels, ['ApiKeyQuery', 'ApiKeyAuth'], 'has labels definition')
1418
- assert.typeOf(scheme1.security, 'object', 'has the security definition')
1419
- })
1420
-
1421
- it('has method selector', () => {
1422
- const node = element.shadowRoot!.querySelector('.auth-selector')
1423
- assert.ok(node)
1424
- })
1425
-
1426
- it('has no scheme label', () => {
1427
- const node = element.shadowRoot!.querySelector('.auth-selector-label')
1428
- assert.notOk(node)
1429
- })
1430
-
1431
- it('does not render method labels for API Key', () => {
1432
- const nodes = element.shadowRoot!.querySelectorAll('.auth-label')
1433
- assert.lengthOf(nodes, 0)
1434
- })
1435
- })
1436
- })
1437
-
1438
- describe('a11y', () => {
1439
- let model: AmfDefinitions.IAmfDocument
1440
- before(async () => {
1441
- model = await loader.getGraph()
1442
- store.amf = model
1443
- })
1444
-
1445
- // this is result of the a11y audit on API Console
1446
- it('renders the * Required field label when has required query', async () => {
1447
- const method = loader.lookupOperation(model, '/query-params/string', 'get') as AmfDefinitions.IAmfOperation
1448
- const element = await modelFixture(method['@id'])
1449
- const section = element.shadowRoot!.querySelector('.params-section.parameter') as HTMLElement
1450
- const label = section.querySelector('.required-field')
1451
- assert.ok(label, 'has the label')
1452
- })
1453
-
1454
- // this is result of the a11y audit on API Console
1455
- it('does not render the * Required field label when has required header', async () => {
1456
- const method = loader.lookupOperation(model, '/required-headers', 'get') as AmfDefinitions.IAmfOperation
1457
- const element = await modelFixture(method['@id'])
1458
- const section = element.shadowRoot!.querySelector('.params-section.header') as HTMLElement
1459
- const label = section.querySelector('.required-field')
1460
- assert.ok(label, 'has the label')
1461
- })
1462
-
1463
- // this is result of the a11y audit on API Console
1464
- it('does not render the * Required field label when has no required header', async () => {
1465
- const method = loader.lookupOperation(model, '/optional-headers', 'get') as AmfDefinitions.IAmfOperation
1466
- const element = await modelFixture(method['@id'])
1467
- const section = element.shadowRoot!.querySelector('.params-section.header') as HTMLElement
1468
- const label = section.querySelector('.required-field')
1469
- assert.notOk(label, 'has no label')
1470
- })
1471
- })
1472
- })