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