@api-client/ui 0.2.0 → 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 +43 -70
- 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,1773 +0,0 @@
|
|
|
1
|
-
import { html, nothing, TemplateResult } from 'lit'
|
|
2
|
-
import { property, state } from 'lit/decorators.js'
|
|
3
|
-
import { classMap } from 'lit/directives/class-map.js'
|
|
4
|
-
import { nanoid } from 'nanoid'
|
|
5
|
-
import { Headers } from '@api-client/core/lib/headers/Headers.js'
|
|
6
|
-
import type {
|
|
7
|
-
IApiEndPoint,
|
|
8
|
-
IApiOperation,
|
|
9
|
-
IApiParameter,
|
|
10
|
-
IApiPayload,
|
|
11
|
-
IApiServer,
|
|
12
|
-
} from '@api-client/core/amf/definitions/Api.js'
|
|
13
|
-
import { IRequestProxyInit } from '@api-client/core/proxy/RequestProxy.js'
|
|
14
|
-
import { IProxyResult } from '@api-client/core/proxy/Proxy.js'
|
|
15
|
-
import { IRequestLog } from '@api-client/core/models/RequestLog.js'
|
|
16
|
-
import { Request, type IRequest } from '@api-client/core/models/Request.js'
|
|
17
|
-
import { IApiScalarNode } from '@api-client/core/amf/definitions/Shapes.js'
|
|
18
|
-
import { Kind as HttpRequestKind } from '@api-client/core/models/HttpRequest.js'
|
|
19
|
-
import { cancelEvent } from '@api-client/core/lib/events/Utils.js'
|
|
20
|
-
import { Events as CoreEvents } from '@api-client/core/events/Events.js'
|
|
21
|
-
import { ensureContentType, generateHeaders } from '../../amf/lib/Utils.js'
|
|
22
|
-
import { cachePayloadValue, getPayloadValue, PayloadInfo, readCachePayloadValue } from '../../amf/lib/PayloadUtils.js'
|
|
23
|
-
import {
|
|
24
|
-
applyUrlParameters,
|
|
25
|
-
applyUrlVariables,
|
|
26
|
-
computeEndpointUri,
|
|
27
|
-
applyQueryParamStringToObject,
|
|
28
|
-
} from '../../amf/lib/UrlUtils.js'
|
|
29
|
-
import { AmfInputParser } from '../../amf/lib/AmfInputParser.js'
|
|
30
|
-
import * as InputCache from '../../amf/lib/InputCache.js'
|
|
31
|
-
import { Events } from '../../events/amf/Events.js'
|
|
32
|
-
import { EventTypes } from '../../events/amf/EventTypes.js'
|
|
33
|
-
import { EventTypes as UiEventTypes } from '../../events/EventTypes.js'
|
|
34
|
-
import { OperationParameter, PopulationInfo, SecuritySelectorListItem, ServerType } from '../../amf/types.js'
|
|
35
|
-
import { Oauth2Credentials } from '../authorization/types.js'
|
|
36
|
-
import BodyTextEditor from '../http/BodyTextEditor.js'
|
|
37
|
-
import BodyUrlEncodedEditor from '../http/BodyUrlEncodedEditor.js'
|
|
38
|
-
import { ifProperty } from '../../directives/if-property.js'
|
|
39
|
-
import ApiElement from '../ApiElement.js'
|
|
40
|
-
import type Input from '../../md/input/Input.js'
|
|
41
|
-
import type RadioElement from '../../md/radio/internals/RadioElement.js'
|
|
42
|
-
import { AmfParameters } from '../../amf/lib/AmfParameters.js'
|
|
43
|
-
import { UiDropdownListSelection } from '../../md/dropdown-list/internals/UiDropdownList.js'
|
|
44
|
-
import { AmfSecurity } from '../../amf/lib/AmfSecurity.js'
|
|
45
|
-
import { SnackNotifications } from '../../md/notification/SnackNotifications.js'
|
|
46
|
-
import '../../define/amf/api-authorization-editor.js'
|
|
47
|
-
import '../../define/amf/api-server-picker.js'
|
|
48
|
-
import '../../define/http/http-body-urlencoded-editor.js'
|
|
49
|
-
import '../../define/http/http-body-multipart-editor.js'
|
|
50
|
-
import '../../define/http/http-body-text-editor.js'
|
|
51
|
-
import '../../md/icons/ui-icon.js'
|
|
52
|
-
import '../../md/text-field/ui-text-field.js'
|
|
53
|
-
import '../../md/switch/ui-switch.js'
|
|
54
|
-
import '../../md/button/ui-filled-tonal-button.js'
|
|
55
|
-
import '../../md/button/ui-outlined-button.js'
|
|
56
|
-
import '../../md/dropdown-list/ui-dropdown-list.js'
|
|
57
|
-
import '../../md/list/ui-list.js'
|
|
58
|
-
import '../../md/list/ui-list-item.js'
|
|
59
|
-
import '../../md/progress/ui-progress.js'
|
|
60
|
-
|
|
61
|
-
export const EventCategory = 'API Request editor'
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* @fires amfstoreopget - Dispatched when querying for an operation data
|
|
65
|
-
* @fires amfstoreopgetparent - Dispatched when querying for an operation data for an endpoint
|
|
66
|
-
* @fires amfstoreendpointget - Dispatched when querying for an endpoint data
|
|
67
|
-
* @fires apistoreserverquery - Dispatched when querying for API servers
|
|
68
|
-
* @fires amfstoreapiprotocols - Dispatched when querying for API protocols
|
|
69
|
-
* @fires amfstoreapiversion - Dispatched when querying for API version
|
|
70
|
-
* @fires response - Dispatched when the response was received by the editor.
|
|
71
|
-
*/
|
|
72
|
-
export default class ApiRequestEditor extends ApiElement {
|
|
73
|
-
/**
|
|
74
|
-
* The currently selected media type for the payloads.
|
|
75
|
-
* @attribute
|
|
76
|
-
*/
|
|
77
|
-
@property({ type: String, reflect: true }) accessor mimeType: string | undefined
|
|
78
|
-
|
|
79
|
-
/**
|
|
80
|
-
* When set it renders a label with the computed URL.
|
|
81
|
-
* @attribute
|
|
82
|
-
*/
|
|
83
|
-
@property({ type: Boolean, reflect: true }) accessor urlLabel: boolean | undefined
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* When set it renders the URL input above the URL parameters.
|
|
87
|
-
* @attribute
|
|
88
|
-
*/
|
|
89
|
-
@property({ type: Boolean, reflect: true }) accessor urlEditor: boolean | undefined
|
|
90
|
-
|
|
91
|
-
/**
|
|
92
|
-
* If set it computes `hasOptional` property and shows checkbox in the
|
|
93
|
-
* form to show / hide optional properties.
|
|
94
|
-
* @attribute
|
|
95
|
-
*/
|
|
96
|
-
@property({ type: Boolean, reflect: true }) accessor allowHideOptional: boolean | undefined
|
|
97
|
-
|
|
98
|
-
/**
|
|
99
|
-
* When set, renders "add custom" item button.
|
|
100
|
-
* If the element is to be used without AMF model this should always
|
|
101
|
-
* be enabled. Otherwise users won't be able to add a parameter.
|
|
102
|
-
* @attribute
|
|
103
|
-
*/
|
|
104
|
-
@property({ type: Boolean, reflect: true }) accessor allowCustom: boolean | undefined
|
|
105
|
-
|
|
106
|
-
/**
|
|
107
|
-
* OAuth2 redirect URI.
|
|
108
|
-
* This value **must** be set in order for OAuth 1/2 to work properly.
|
|
109
|
-
* @attribute
|
|
110
|
-
*/
|
|
111
|
-
@property({ type: String }) accessor redirectUri: string | undefined
|
|
112
|
-
|
|
113
|
-
/**
|
|
114
|
-
* Final request URL including settings like `baseUri`, AMF
|
|
115
|
-
* model settings and user provided parameters.
|
|
116
|
-
* @attribute
|
|
117
|
-
*/
|
|
118
|
-
@property({ type: String }) accessor url: string | undefined
|
|
119
|
-
|
|
120
|
-
/**
|
|
121
|
-
* Holds the value of the currently selected server
|
|
122
|
-
* Data type: URI
|
|
123
|
-
* @attribute
|
|
124
|
-
*/
|
|
125
|
-
@property({ type: String }) accessor serverValue: string | undefined
|
|
126
|
-
|
|
127
|
-
/**
|
|
128
|
-
* Holds the type of the currently selected server
|
|
129
|
-
* Values: `server` | `uri` | `custom`
|
|
130
|
-
* @attribute
|
|
131
|
-
*/
|
|
132
|
-
@property({ type: String }) accessor serverType: string | undefined
|
|
133
|
-
|
|
134
|
-
/**
|
|
135
|
-
* Optional property to set
|
|
136
|
-
* If true, the server selector is not rendered
|
|
137
|
-
* @attribute
|
|
138
|
-
*/
|
|
139
|
-
@property({ type: Boolean, reflect: true }) accessor noServerSelector: boolean | undefined
|
|
140
|
-
|
|
141
|
-
/**
|
|
142
|
-
* Optional property to set
|
|
143
|
-
* If true, the server selector custom base URI option is rendered
|
|
144
|
-
* @attribute
|
|
145
|
-
*/
|
|
146
|
-
@property({ type: Boolean, reflect: true }) accessor allowCustomBaseUri: boolean | undefined
|
|
147
|
-
|
|
148
|
-
/**
|
|
149
|
-
* List of credentials source
|
|
150
|
-
*/
|
|
151
|
-
@property({ type: Array }) accessor credentialsSource: Oauth2Credentials[] | undefined
|
|
152
|
-
|
|
153
|
-
/**
|
|
154
|
-
* The domain id key of the selected security
|
|
155
|
-
* @attribute
|
|
156
|
-
*/
|
|
157
|
-
@property({ type: String }) accessor selectedSecurity: string | undefined
|
|
158
|
-
|
|
159
|
-
/**
|
|
160
|
-
* Optional. The parent endpoint id. When set it uses this value to query for the endpoint
|
|
161
|
-
* instead of querying for a parent through the operation id.
|
|
162
|
-
* Also, when `endpoint` is set and the `endpointId` match then it ignores querying for
|
|
163
|
-
* the endpoint.
|
|
164
|
-
* @attribute
|
|
165
|
-
*/
|
|
166
|
-
@property({ type: String }) accessor endpointId: string | undefined
|
|
167
|
-
|
|
168
|
-
protected domainIdValue: string | undefined
|
|
169
|
-
|
|
170
|
-
/**
|
|
171
|
-
* The domain id (AMF id) of the rendered operation.
|
|
172
|
-
* @attribute
|
|
173
|
-
*/
|
|
174
|
-
get domainId(): string | undefined {
|
|
175
|
-
return this.domainIdValue
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
@property({ type: String, reflect: true })
|
|
179
|
-
set domainId(value: string | undefined) {
|
|
180
|
-
const old = this.domainIdValue
|
|
181
|
-
/* istanbul ignore if */
|
|
182
|
-
if (old === value) {
|
|
183
|
-
return
|
|
184
|
-
}
|
|
185
|
-
this.domainIdValue = value
|
|
186
|
-
this.requestUpdate('domainId', old)
|
|
187
|
-
this.processDebounce()
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
protected endpointValue: IApiEndPoint | undefined
|
|
191
|
-
|
|
192
|
-
get endpoint(): IApiEndPoint | undefined {
|
|
193
|
-
return this.endpointValue
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
set endpoint(value: IApiEndPoint | undefined) {
|
|
197
|
-
const old = this.endpointValue
|
|
198
|
-
if (old === value) {
|
|
199
|
-
return
|
|
200
|
-
}
|
|
201
|
-
this.endpointValue = value
|
|
202
|
-
this.requestUpdate()
|
|
203
|
-
this.readUrlData()
|
|
204
|
-
this.notifyChange()
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
/**
|
|
208
|
-
* The HTTP method name.
|
|
209
|
-
*/
|
|
210
|
-
get httpMethod(): string | undefined {
|
|
211
|
-
const op = this.operationValue
|
|
212
|
-
if (!op) {
|
|
213
|
-
return undefined
|
|
214
|
-
}
|
|
215
|
-
return op.method
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
/**
|
|
219
|
-
* A flag set when the request is being made.
|
|
220
|
-
*/
|
|
221
|
-
@state() accessor loadingRequest: boolean | undefined
|
|
222
|
-
|
|
223
|
-
protected baseUriValue: string | undefined
|
|
224
|
-
|
|
225
|
-
/**
|
|
226
|
-
* A base URI for the API. To be set if RAML spec is missing `baseUri`
|
|
227
|
-
* declaration and this produces invalid URL input. This information
|
|
228
|
-
* is passed to the URL editor that prefixes the URL with `baseUri` value
|
|
229
|
-
* if passed URL is a relative URL.
|
|
230
|
-
* @attribute
|
|
231
|
-
*/
|
|
232
|
-
get baseUri(): string | undefined {
|
|
233
|
-
return this.baseUriValue
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
@property({ type: String })
|
|
237
|
-
set baseUri(value: string | undefined) {
|
|
238
|
-
const old = this.baseUriValue
|
|
239
|
-
if (old === value) {
|
|
240
|
-
return
|
|
241
|
-
}
|
|
242
|
-
this.baseUriValue = value
|
|
243
|
-
this.readUrlData()
|
|
244
|
-
this.requestUpdate('baseUri', old)
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
protected serversValue: IApiServer[] | undefined
|
|
248
|
-
|
|
249
|
-
/**
|
|
250
|
-
* The computed list of servers.
|
|
251
|
-
*/
|
|
252
|
-
get servers(): IApiServer[] | undefined {
|
|
253
|
-
return this.serversValue
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
protected serverLocalValue: IApiServer | undefined
|
|
257
|
-
|
|
258
|
-
get server(): IApiServer | undefined {
|
|
259
|
-
return this.serverLocalValue
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
/**
|
|
263
|
-
* This is the final computed value for the baseUri to propagate downwards
|
|
264
|
-
* If baseUri is defined, return baseUri
|
|
265
|
-
* Else, return the selectedServerValue if serverType is not `server`
|
|
266
|
-
*/
|
|
267
|
-
get effectiveBaseUri(): string {
|
|
268
|
-
if (this.baseUri) {
|
|
269
|
-
return this.baseUri
|
|
270
|
-
}
|
|
271
|
-
if (this.serverType !== 'server') {
|
|
272
|
-
return this.serverValue as string
|
|
273
|
-
}
|
|
274
|
-
return ''
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
/**
|
|
278
|
-
* @return True when there is not enough servers to render the selector
|
|
279
|
-
*/
|
|
280
|
-
get serverSelectorHidden(): boolean {
|
|
281
|
-
const { serversCount = 0, noServerSelector = false, allowCustomBaseUri } = this
|
|
282
|
-
return noServerSelector || (!allowCustomBaseUri && serversCount < 2)
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
/**
|
|
286
|
-
* The list of security list items to render.
|
|
287
|
-
* An operation may have multiple security definition in an or/and fashion.
|
|
288
|
-
* This allows to render the selector to pick the current security.
|
|
289
|
-
*/
|
|
290
|
-
protected securityList: SecuritySelectorListItem[] | undefined
|
|
291
|
-
|
|
292
|
-
/**
|
|
293
|
-
* The security requirement for the operation or undefined.
|
|
294
|
-
*/
|
|
295
|
-
get security(): SecuritySelectorListItem[] | undefined {
|
|
296
|
-
const items = this.securityList
|
|
297
|
-
if (Array.isArray(items) && items.length) {
|
|
298
|
-
return items
|
|
299
|
-
}
|
|
300
|
-
return undefined
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
/**
|
|
304
|
-
* The currently rendered payload, if any.
|
|
305
|
-
*/
|
|
306
|
-
get payload(): IApiPayload | undefined {
|
|
307
|
-
const { payloads } = this
|
|
308
|
-
if (!payloads) {
|
|
309
|
-
return undefined
|
|
310
|
-
}
|
|
311
|
-
const { mimeType } = this
|
|
312
|
-
let payload: IApiPayload | undefined
|
|
313
|
-
if (mimeType) {
|
|
314
|
-
payload = payloads.find((i) => i.mediaType === mimeType)
|
|
315
|
-
}
|
|
316
|
-
if (!payload) {
|
|
317
|
-
;[payload] = payloads
|
|
318
|
-
}
|
|
319
|
-
return payload
|
|
320
|
-
}
|
|
321
|
-
|
|
322
|
-
/**
|
|
323
|
-
* The list of all possible payloads for this operation.
|
|
324
|
-
*/
|
|
325
|
-
get payloads(): IApiPayload[] | undefined {
|
|
326
|
-
const operation = this.operationValue
|
|
327
|
-
if (!operation) {
|
|
328
|
-
return undefined
|
|
329
|
-
}
|
|
330
|
-
const { request } = operation
|
|
331
|
-
if (!request) {
|
|
332
|
-
return undefined
|
|
333
|
-
}
|
|
334
|
-
const { payloads } = request
|
|
335
|
-
if (!Array.isArray(payloads) || !payloads.length) {
|
|
336
|
-
return undefined
|
|
337
|
-
}
|
|
338
|
-
return payloads
|
|
339
|
-
}
|
|
340
|
-
|
|
341
|
-
/**
|
|
342
|
-
* @returns API defined base URI (current server + the endpoint)
|
|
343
|
-
*/
|
|
344
|
-
get apiBaseUri(): string | undefined {
|
|
345
|
-
const endpoint = this.endpointValue
|
|
346
|
-
const server = this.serverLocalValue
|
|
347
|
-
if (!server || !endpoint) {
|
|
348
|
-
return undefined
|
|
349
|
-
}
|
|
350
|
-
const { path = '' } = endpoint
|
|
351
|
-
let { url = '' } = server
|
|
352
|
-
if (url.endsWith('/')) {
|
|
353
|
-
url = url.substr(0, url.length - 1)
|
|
354
|
-
}
|
|
355
|
-
return `${url}${path}`
|
|
356
|
-
}
|
|
357
|
-
|
|
358
|
-
protected urlInvalidValue?: boolean
|
|
359
|
-
|
|
360
|
-
/**
|
|
361
|
-
* True when the URL input is invalid.
|
|
362
|
-
*/
|
|
363
|
-
get urlInvalid(): boolean | undefined {
|
|
364
|
-
return this.urlInvalidValue
|
|
365
|
-
}
|
|
366
|
-
|
|
367
|
-
protected protocolsValue: string[] | undefined
|
|
368
|
-
|
|
369
|
-
/**
|
|
370
|
-
* The API's protocols.
|
|
371
|
-
*/
|
|
372
|
-
get protocols(): string[] | undefined {
|
|
373
|
-
return this.protocolsValue
|
|
374
|
-
}
|
|
375
|
-
|
|
376
|
-
protected versionValue: string | undefined
|
|
377
|
-
|
|
378
|
-
/**
|
|
379
|
-
* The API's version.
|
|
380
|
-
*/
|
|
381
|
-
get version(): string | undefined {
|
|
382
|
-
return this.versionValue
|
|
383
|
-
}
|
|
384
|
-
|
|
385
|
-
queryDebouncerTimeout: number
|
|
386
|
-
|
|
387
|
-
/**
|
|
388
|
-
* Set when the selection change, this is a JS object created form the
|
|
389
|
-
* supportedOperation definition of the AMF graph.
|
|
390
|
-
*/
|
|
391
|
-
protected operationValue?: IApiOperation
|
|
392
|
-
|
|
393
|
-
/**
|
|
394
|
-
* The list of parameter groups that are opened when `allowHideOptional` is set.
|
|
395
|
-
*/
|
|
396
|
-
openedOptional: string[]
|
|
397
|
-
|
|
398
|
-
protected debounceValue: unknown
|
|
399
|
-
|
|
400
|
-
protected urlSearchRegexpValue: RegExp | undefined
|
|
401
|
-
|
|
402
|
-
serversCount?: number
|
|
403
|
-
|
|
404
|
-
amfParameters: AmfParameters
|
|
405
|
-
|
|
406
|
-
/**
|
|
407
|
-
* This is set while the HTTP request is being executed.
|
|
408
|
-
* It allows to abort the request.
|
|
409
|
-
*/
|
|
410
|
-
requestController?: AbortController
|
|
411
|
-
|
|
412
|
-
/**
|
|
413
|
-
* @constructor
|
|
414
|
-
*/
|
|
415
|
-
constructor() {
|
|
416
|
-
super()
|
|
417
|
-
/**
|
|
418
|
-
* The timeout after which the `queryGraph()` function is called
|
|
419
|
-
* in the debouncer.
|
|
420
|
-
*/
|
|
421
|
-
this.queryDebouncerTimeout = 1
|
|
422
|
-
this.authRedirectChangedHandler = this.authRedirectChangedHandler.bind(this)
|
|
423
|
-
this.populateAnnotatedFieldsHandler = this.populateAnnotatedFieldsHandler.bind(this)
|
|
424
|
-
|
|
425
|
-
this.openedOptional = []
|
|
426
|
-
this.amfParameters = new AmfParameters(this)
|
|
427
|
-
this.amfParameters.addEventListener('render', () => this.requestUpdate())
|
|
428
|
-
this.amfParameters.addEventListener('change', () => this.notifyChange())
|
|
429
|
-
this.amfParameters.addEventListener('paramchange', this.paramChangeHandler.bind(this) as EventListener)
|
|
430
|
-
InputCache.registerLocal(this)
|
|
431
|
-
this.graphChangeHandler = this.graphChangeHandler.bind(this)
|
|
432
|
-
this.addEventListener(UiEventTypes.Http.Request.send, this.internalSendHandler.bind(this))
|
|
433
|
-
}
|
|
434
|
-
|
|
435
|
-
override connectedCallback(): void {
|
|
436
|
-
super.connectedCallback()
|
|
437
|
-
this.processDebounce()
|
|
438
|
-
this.amfParameters.globalCache = true
|
|
439
|
-
const node = this.eventsTarget
|
|
440
|
-
node.addEventListener(EventTypes.Store.graphChange, this.graphChangeHandler)
|
|
441
|
-
node.addEventListener(EventTypes.Request.redirectUriChange, this.authRedirectChangedHandler as EventListener)
|
|
442
|
-
node.addEventListener(
|
|
443
|
-
EventTypes.Request.populateAnnotatedFields,
|
|
444
|
-
this.populateAnnotatedFieldsHandler as EventListener
|
|
445
|
-
)
|
|
446
|
-
}
|
|
447
|
-
|
|
448
|
-
override disconnectedCallback(): void {
|
|
449
|
-
super.disconnectedCallback()
|
|
450
|
-
if (this.debounceValue) {
|
|
451
|
-
clearTimeout(this.debounceValue as number)
|
|
452
|
-
this.debounceValue = undefined
|
|
453
|
-
}
|
|
454
|
-
const node = this.eventsTarget
|
|
455
|
-
node.removeEventListener(EventTypes.Store.graphChange, this.graphChangeHandler)
|
|
456
|
-
node.removeEventListener(EventTypes.Request.redirectUriChange, this.authRedirectChangedHandler as EventListener)
|
|
457
|
-
node.removeEventListener(
|
|
458
|
-
EventTypes.Request.populateAnnotatedFields,
|
|
459
|
-
this.populateAnnotatedFieldsHandler as EventListener
|
|
460
|
-
)
|
|
461
|
-
}
|
|
462
|
-
|
|
463
|
-
/**
|
|
464
|
-
* Handler for the event dispatched by the store when the graph model change.
|
|
465
|
-
*/
|
|
466
|
-
protected graphChangeHandler(): void {
|
|
467
|
-
this.processDebounce()
|
|
468
|
-
}
|
|
469
|
-
|
|
470
|
-
/**
|
|
471
|
-
* Calls the `queryGraph()` function in a debouncer.
|
|
472
|
-
*/
|
|
473
|
-
protected processDebounce(): void {
|
|
474
|
-
if (this.debounceValue) {
|
|
475
|
-
clearTimeout(this.debounceValue as number)
|
|
476
|
-
}
|
|
477
|
-
this.debounceValue = setTimeout(() => {
|
|
478
|
-
this.debounceValue = undefined
|
|
479
|
-
this.processGraph()
|
|
480
|
-
}, this.queryDebouncerTimeout)
|
|
481
|
-
}
|
|
482
|
-
|
|
483
|
-
/**
|
|
484
|
-
* Reads the URL data from the ApiUrlDataModel library and sets local variables.
|
|
485
|
-
*/
|
|
486
|
-
readUrlData(): void {
|
|
487
|
-
this.updateServerParameters()
|
|
488
|
-
this.orderPathParameters()
|
|
489
|
-
this.computeUrlValue()
|
|
490
|
-
}
|
|
491
|
-
|
|
492
|
-
/**
|
|
493
|
-
* It makes sure that the path parameters are rendered in order (server, endpoint)
|
|
494
|
-
* and in order of occurrence in the URL.
|
|
495
|
-
*/
|
|
496
|
-
protected orderPathParameters(): void {
|
|
497
|
-
const params = this.getOrderedPathParams()
|
|
498
|
-
if (!params || !params.length) {
|
|
499
|
-
return
|
|
500
|
-
}
|
|
501
|
-
const { amfParameters } = this
|
|
502
|
-
amfParameters.parametersValue = amfParameters.parametersValue.filter((item) => item.binding !== 'path')
|
|
503
|
-
amfParameters.parametersValue = amfParameters.parametersValue.concat(params)
|
|
504
|
-
}
|
|
505
|
-
|
|
506
|
-
protected paramChangeHandler(e: CustomEvent<string>): void {
|
|
507
|
-
this.paramChanged(e.detail)
|
|
508
|
-
}
|
|
509
|
-
|
|
510
|
-
/**
|
|
511
|
-
* A function to be overwritten by child classes to execute an action when a parameter has changed.
|
|
512
|
-
*/
|
|
513
|
-
protected paramChanged(key: string): void {
|
|
514
|
-
this.computeUrlValue()
|
|
515
|
-
this.validateUrl()
|
|
516
|
-
const { amfParameters } = this
|
|
517
|
-
const param = amfParameters.parametersValue.find((p) => p.paramId === key)
|
|
518
|
-
if (param && param.binding === 'header' && (param.parameter.name || '').toLocaleLowerCase() === 'content-type') {
|
|
519
|
-
const value = InputCache.get(this, param.paramId, true) as string
|
|
520
|
-
this.mimeType = value
|
|
521
|
-
}
|
|
522
|
-
}
|
|
523
|
-
|
|
524
|
-
/**
|
|
525
|
-
* Computes the URL value for the current serves, selected server, and endpoint's path.
|
|
526
|
-
*/
|
|
527
|
-
protected computeUrlValue(): void {
|
|
528
|
-
const { effectiveBaseUri, server, protocols, version } = this
|
|
529
|
-
const endpoint = this.endpointValue
|
|
530
|
-
const result = computeEndpointUri({
|
|
531
|
-
baseUri: effectiveBaseUri,
|
|
532
|
-
server,
|
|
533
|
-
endpoint,
|
|
534
|
-
protocols,
|
|
535
|
-
version,
|
|
536
|
-
forceHttpProtocol: true,
|
|
537
|
-
})
|
|
538
|
-
const { amfParameters } = this
|
|
539
|
-
const params = amfParameters.parametersValue.map((p) => p.parameter)
|
|
540
|
-
const report = AmfInputParser.reportRequestInputs(params, InputCache.getStore(this, true), amfParameters.nilValues)
|
|
541
|
-
let url = applyUrlVariables(result, report.path, true)
|
|
542
|
-
url = applyUrlParameters(url, report.query, true)
|
|
543
|
-
this.url = url
|
|
544
|
-
}
|
|
545
|
-
|
|
546
|
-
/**
|
|
547
|
-
* Checks if the current server has variables and update the parameters array
|
|
548
|
-
*/
|
|
549
|
-
protected updateServerParameters(): void {
|
|
550
|
-
const { server } = this
|
|
551
|
-
const source = 'server'
|
|
552
|
-
const { amfParameters } = this
|
|
553
|
-
// clears previously set request parameters related to server configuration.
|
|
554
|
-
amfParameters.parametersValue = amfParameters.parametersValue.filter((item) => item.source !== source)
|
|
555
|
-
if (!server || ['custom', 'uri'].includes(this.serverType || '')) {
|
|
556
|
-
// we don't need to compute server variables for a custom URLs.
|
|
557
|
-
return
|
|
558
|
-
}
|
|
559
|
-
if (Array.isArray(server.variables) && server.variables.length) {
|
|
560
|
-
server.variables.forEach((param) => {
|
|
561
|
-
const item: OperationParameter = {
|
|
562
|
-
binding: param.binding || '',
|
|
563
|
-
paramId: param.id,
|
|
564
|
-
parameter: param,
|
|
565
|
-
source,
|
|
566
|
-
}
|
|
567
|
-
if (param.schema) {
|
|
568
|
-
item.schema = param.schema
|
|
569
|
-
item.schemaId = param.schema.id
|
|
570
|
-
}
|
|
571
|
-
amfParameters.parametersValue.push(item)
|
|
572
|
-
})
|
|
573
|
-
}
|
|
574
|
-
}
|
|
575
|
-
|
|
576
|
-
/**
|
|
577
|
-
* Checks if the current endpoint has variables and requests them when needed.
|
|
578
|
-
*/
|
|
579
|
-
protected updateEndpointParameters(): void {
|
|
580
|
-
const source = 'endpoint'
|
|
581
|
-
const { amfParameters } = this
|
|
582
|
-
// clears previously set request parameters related to server configuration.
|
|
583
|
-
amfParameters.parametersValue = amfParameters.parametersValue.filter((item) => item.source !== source)
|
|
584
|
-
const endpoint = this.endpointValue
|
|
585
|
-
if (!endpoint) {
|
|
586
|
-
// we don't need to compute endpoint variables for a custom URLs.
|
|
587
|
-
return
|
|
588
|
-
}
|
|
589
|
-
if (Array.isArray(endpoint.parameters) && endpoint.parameters.length) {
|
|
590
|
-
endpoint.parameters.forEach((param) => {
|
|
591
|
-
const item: OperationParameter = {
|
|
592
|
-
binding: param.binding || '',
|
|
593
|
-
paramId: param.id,
|
|
594
|
-
parameter: param,
|
|
595
|
-
source,
|
|
596
|
-
}
|
|
597
|
-
if (param.schema) {
|
|
598
|
-
item.schema = param.schema
|
|
599
|
-
item.schemaId = param.schema.id
|
|
600
|
-
}
|
|
601
|
-
amfParameters.parametersValue.push(item)
|
|
602
|
-
})
|
|
603
|
-
}
|
|
604
|
-
}
|
|
605
|
-
|
|
606
|
-
reset(): void {
|
|
607
|
-
this.securityList = undefined
|
|
608
|
-
this.mimeType = undefined
|
|
609
|
-
this.amfParameters.parametersValue = []
|
|
610
|
-
}
|
|
611
|
-
|
|
612
|
-
/**
|
|
613
|
-
* Processes the selection of the domain id for an operation.
|
|
614
|
-
*/
|
|
615
|
-
async processGraph(): Promise<void> {
|
|
616
|
-
await this.queryEndpoint()
|
|
617
|
-
await this.queryOperation()
|
|
618
|
-
await this.queryServers()
|
|
619
|
-
await this.queryProtocols()
|
|
620
|
-
this.processEndpoint()
|
|
621
|
-
this.processOperation()
|
|
622
|
-
this.processSecurity()
|
|
623
|
-
this.processPayload()
|
|
624
|
-
this.computeUrlValue()
|
|
625
|
-
this.readUrlData()
|
|
626
|
-
this.notifyChange()
|
|
627
|
-
}
|
|
628
|
-
|
|
629
|
-
/**
|
|
630
|
-
* Queries the store for the operation data, when needed.
|
|
631
|
-
*/
|
|
632
|
-
async queryOperation(): Promise<void> {
|
|
633
|
-
const { domainId } = this
|
|
634
|
-
if (!domainId || domainId === 'undefined') {
|
|
635
|
-
// this.operationValue = undefined;
|
|
636
|
-
return
|
|
637
|
-
}
|
|
638
|
-
if (this.operationValue && this.operationValue.id === domainId) {
|
|
639
|
-
// in case the operation model was provided via the property setter.
|
|
640
|
-
return
|
|
641
|
-
}
|
|
642
|
-
try {
|
|
643
|
-
const endpointId = this.endpointValue && this.endpointValue.id
|
|
644
|
-
const info = await Events.Operation.get(this, domainId, endpointId)
|
|
645
|
-
this.operationValue = info
|
|
646
|
-
} catch (e) {
|
|
647
|
-
const ex = e as Error
|
|
648
|
-
Events.Telemetry.exception(this, ex.message, false)
|
|
649
|
-
Events.Reporting.error(this, ex, `Unable to query for API operation data: ${ex.message}`, this.localName)
|
|
650
|
-
}
|
|
651
|
-
}
|
|
652
|
-
|
|
653
|
-
/**
|
|
654
|
-
* Queries the store for the endpoint data.
|
|
655
|
-
* @returns {Promise<void>}
|
|
656
|
-
*/
|
|
657
|
-
async queryEndpoint(): Promise<void> {
|
|
658
|
-
const { domainId, endpointId } = this
|
|
659
|
-
if (!domainId || domainId === 'undefined') {
|
|
660
|
-
// this.endpointValue = undefined;
|
|
661
|
-
return
|
|
662
|
-
}
|
|
663
|
-
if (this.endpointValue && this.endpointValue.id === endpointId) {
|
|
664
|
-
// in case the endpoint model was provided via the property setter.
|
|
665
|
-
return
|
|
666
|
-
}
|
|
667
|
-
this.endpointValue = undefined
|
|
668
|
-
try {
|
|
669
|
-
const info = await (endpointId
|
|
670
|
-
? Events.Endpoint.get(this, endpointId)
|
|
671
|
-
: Events.Operation.getParent(this, domainId))
|
|
672
|
-
this.endpointValue = info
|
|
673
|
-
} catch (e) {
|
|
674
|
-
const ex = e as Error
|
|
675
|
-
Events.Telemetry.exception(this, ex.message, false)
|
|
676
|
-
Events.Reporting.error(this, ex, `Unable to query for API endpoint data: ${ex.message}`, this.localName)
|
|
677
|
-
}
|
|
678
|
-
}
|
|
679
|
-
|
|
680
|
-
/**
|
|
681
|
-
* Queries for the current servers value.
|
|
682
|
-
*/
|
|
683
|
-
async queryServers(): Promise<void> {
|
|
684
|
-
const { domainId } = this
|
|
685
|
-
const endpointId = this.endpointValue && this.endpointValue.id
|
|
686
|
-
try {
|
|
687
|
-
const info = await Events.Server.query(this, {
|
|
688
|
-
endpointId,
|
|
689
|
-
methodId: domainId,
|
|
690
|
-
})
|
|
691
|
-
this.serversValue = info || undefined
|
|
692
|
-
} catch (e) {
|
|
693
|
-
const ex = e as Error
|
|
694
|
-
this.serversValue = undefined
|
|
695
|
-
Events.Telemetry.exception(this, ex.message, false)
|
|
696
|
-
Events.Reporting.error(this, ex, `Unable to query for API servers: ${ex.message}`, this.localName)
|
|
697
|
-
}
|
|
698
|
-
}
|
|
699
|
-
|
|
700
|
-
/**
|
|
701
|
-
* Queries the API store for the API protocols list.
|
|
702
|
-
*/
|
|
703
|
-
async queryProtocols(): Promise<void> {
|
|
704
|
-
this.protocolsValue = undefined
|
|
705
|
-
try {
|
|
706
|
-
const info = await Events.Api.protocols(this)
|
|
707
|
-
this.protocolsValue = info
|
|
708
|
-
} catch (e) {
|
|
709
|
-
const ex = e as Error
|
|
710
|
-
Events.Telemetry.exception(this, ex.message, false)
|
|
711
|
-
Events.Reporting.error(this, ex, `Unable to query for API protocols list: ${ex.message}`, this.localName)
|
|
712
|
-
}
|
|
713
|
-
}
|
|
714
|
-
|
|
715
|
-
/**
|
|
716
|
-
* Searches for the current operation endpoint and sets variables from the endpoint definition.
|
|
717
|
-
*/
|
|
718
|
-
protected processEndpoint(): void {
|
|
719
|
-
this.updateEndpointParameters()
|
|
720
|
-
this.computeUrlRegexp()
|
|
721
|
-
}
|
|
722
|
-
|
|
723
|
-
/**
|
|
724
|
-
* Collects operations input parameters into a single object.
|
|
725
|
-
*/
|
|
726
|
-
protected processOperation(): void {
|
|
727
|
-
const source = 'request'
|
|
728
|
-
const operation = this.operationValue
|
|
729
|
-
const { amfParameters } = this
|
|
730
|
-
// clears previously set request parameters (query, path, headers)
|
|
731
|
-
amfParameters.parametersValue = amfParameters.parametersValue.filter((item) => item.source !== source)
|
|
732
|
-
if (!operation) {
|
|
733
|
-
return
|
|
734
|
-
}
|
|
735
|
-
const { request } = operation
|
|
736
|
-
if (!request) {
|
|
737
|
-
return
|
|
738
|
-
}
|
|
739
|
-
const uri: IApiParameter[] = []
|
|
740
|
-
if (Array.isArray(request.uriParameters)) {
|
|
741
|
-
// OAS has this weird thing where you can define URI parameters on the endpoint and the operation.
|
|
742
|
-
// this eliminates the duplicates and merges the schemas
|
|
743
|
-
request.uriParameters.forEach((param) => {
|
|
744
|
-
if (!param.paramName) {
|
|
745
|
-
uri.push(param)
|
|
746
|
-
return
|
|
747
|
-
}
|
|
748
|
-
const index = amfParameters.parametersValue.findIndex(
|
|
749
|
-
(p) => p.binding === 'path' && p.parameter.paramName === param.paramName
|
|
750
|
-
)
|
|
751
|
-
if (index !== -1) {
|
|
752
|
-
// remove the parameter that is being replaced by the local definition
|
|
753
|
-
amfParameters.parametersValue.splice(index, 1)
|
|
754
|
-
}
|
|
755
|
-
uri.push(param)
|
|
756
|
-
})
|
|
757
|
-
}
|
|
758
|
-
this.appendToParams(uri, source)
|
|
759
|
-
this.appendToParams(request.queryParameters, source)
|
|
760
|
-
this.appendToParams(request.headers, source)
|
|
761
|
-
this.appendToParams(request.cookieParameters, source)
|
|
762
|
-
}
|
|
763
|
-
|
|
764
|
-
/**
|
|
765
|
-
* Processes security information for the UI.
|
|
766
|
-
*/
|
|
767
|
-
protected processSecurity(): void {
|
|
768
|
-
const operation = this.operationValue
|
|
769
|
-
if (!operation) {
|
|
770
|
-
return
|
|
771
|
-
}
|
|
772
|
-
const { security } = operation
|
|
773
|
-
this.securityList = AmfSecurity.readSecurityList(security)
|
|
774
|
-
const [first] = this.securityList
|
|
775
|
-
this.selectedSecurity = first ? first.security.id : undefined
|
|
776
|
-
}
|
|
777
|
-
|
|
778
|
-
/**
|
|
779
|
-
* Makes sure the correct mime type is selected for the current selection.
|
|
780
|
-
*/
|
|
781
|
-
protected processPayload(): void {
|
|
782
|
-
const operation = this.operationValue
|
|
783
|
-
if (!operation) {
|
|
784
|
-
return
|
|
785
|
-
}
|
|
786
|
-
const { request } = operation
|
|
787
|
-
if (!request) {
|
|
788
|
-
return
|
|
789
|
-
}
|
|
790
|
-
const { payloads = [] } = request
|
|
791
|
-
if (!payloads.length) {
|
|
792
|
-
return
|
|
793
|
-
}
|
|
794
|
-
let mime = this.mimeType
|
|
795
|
-
|
|
796
|
-
if (mime) {
|
|
797
|
-
const has = payloads.find((p) => p.mediaType === mime)
|
|
798
|
-
if (!has) {
|
|
799
|
-
mime = undefined
|
|
800
|
-
}
|
|
801
|
-
}
|
|
802
|
-
if (!mime) {
|
|
803
|
-
const first = payloads.find((p) => p.mediaType)
|
|
804
|
-
if (first) {
|
|
805
|
-
mime = first.mediaType
|
|
806
|
-
}
|
|
807
|
-
}
|
|
808
|
-
this.mimeType = mime
|
|
809
|
-
}
|
|
810
|
-
|
|
811
|
-
/**
|
|
812
|
-
* Appends a list of parameters to the list of rendered parameters
|
|
813
|
-
*/
|
|
814
|
-
protected appendToParams(list: IApiParameter[], source: string): void {
|
|
815
|
-
const params = this.amfParameters.parametersValue
|
|
816
|
-
if (Array.isArray(list)) {
|
|
817
|
-
list.forEach((param) => {
|
|
818
|
-
params.push({
|
|
819
|
-
paramId: param.id,
|
|
820
|
-
parameter: param,
|
|
821
|
-
binding: param.binding || '',
|
|
822
|
-
source,
|
|
823
|
-
schema: param.schema,
|
|
824
|
-
schemaId: param.schema && param.schema.id ? param.schema.id : undefined,
|
|
825
|
-
})
|
|
826
|
-
})
|
|
827
|
-
}
|
|
828
|
-
}
|
|
829
|
-
|
|
830
|
-
/**
|
|
831
|
-
* A handler for the change event dispatched by the `raw` editor.
|
|
832
|
-
*/
|
|
833
|
-
protected rawBodyChangeHandler(e: Event): void {
|
|
834
|
-
const editor = e.target as BodyTextEditor
|
|
835
|
-
const { value, dataset } = editor
|
|
836
|
-
const { payloadId } = dataset
|
|
837
|
-
if (!payloadId) {
|
|
838
|
-
return
|
|
839
|
-
}
|
|
840
|
-
cachePayloadValue(payloadId, value as string)
|
|
841
|
-
}
|
|
842
|
-
|
|
843
|
-
/**
|
|
844
|
-
* A handler for the change event dispatched by the
|
|
845
|
-
* `urlEncode` editor.
|
|
846
|
-
* Updated the local value, model, and notifies the change.
|
|
847
|
-
*/
|
|
848
|
-
protected modelBodyEditorChangeHandler(e: Event): void {
|
|
849
|
-
const editor = e.target as BodyUrlEncodedEditor
|
|
850
|
-
const { value, model, dataset } = editor
|
|
851
|
-
const { payloadId } = dataset
|
|
852
|
-
if (!payloadId) {
|
|
853
|
-
return
|
|
854
|
-
}
|
|
855
|
-
cachePayloadValue(payloadId, value as string, model)
|
|
856
|
-
}
|
|
857
|
-
|
|
858
|
-
protected handleAuthSelect(e: CustomEvent<UiDropdownListSelection>): void {
|
|
859
|
-
const { item } = e.detail
|
|
860
|
-
const { id } = item.dataset
|
|
861
|
-
if (!id) {
|
|
862
|
-
return
|
|
863
|
-
}
|
|
864
|
-
this.selectedSecurity = id
|
|
865
|
-
this.requestUpdate()
|
|
866
|
-
}
|
|
867
|
-
|
|
868
|
-
/**
|
|
869
|
-
* Handles send button click.
|
|
870
|
-
* Depending on authorization validity it either sends the
|
|
871
|
-
* request or forces authorization and sends the request.
|
|
872
|
-
*/
|
|
873
|
-
protected sendHandler(): void {
|
|
874
|
-
this.execute()
|
|
875
|
-
}
|
|
876
|
-
|
|
877
|
-
/**
|
|
878
|
-
* To be called when the user want to execute the request but
|
|
879
|
-
* authorization is invalid (missing values).
|
|
880
|
-
* This function brings the auth panel to front and displays error toast
|
|
881
|
-
*/
|
|
882
|
-
async authAndExecute(): Promise<void> {
|
|
883
|
-
const { shadowRoot } = this
|
|
884
|
-
if (!shadowRoot) {
|
|
885
|
-
throw new Error(`Invalid state. The element is not initialized.`)
|
|
886
|
-
}
|
|
887
|
-
|
|
888
|
-
const panel = shadowRoot.querySelector('api-authorization-editor')
|
|
889
|
-
if (!panel) {
|
|
890
|
-
throw new Error(`Invalid state. The authorization editor element was removed from the DOM.`)
|
|
891
|
-
}
|
|
892
|
-
await panel.authorize()
|
|
893
|
-
const valid = panel.validate()
|
|
894
|
-
if (valid) {
|
|
895
|
-
this.execute()
|
|
896
|
-
}
|
|
897
|
-
}
|
|
898
|
-
|
|
899
|
-
protected async proxyRequest(init: IRequestProxyInit): Promise<IProxyResult<IRequestLog> | undefined> {
|
|
900
|
-
let result: IProxyResult<IRequestLog> | undefined
|
|
901
|
-
try {
|
|
902
|
-
result = await CoreEvents.Transport.Core.request(init, this)
|
|
903
|
-
} catch {
|
|
904
|
-
// ...
|
|
905
|
-
}
|
|
906
|
-
return result
|
|
907
|
-
}
|
|
908
|
-
|
|
909
|
-
/**
|
|
910
|
-
* Proxies the request to the endpoint using the core libraries.
|
|
911
|
-
*/
|
|
912
|
-
async execute(): Promise<void> {
|
|
913
|
-
if (this.loadingRequest) {
|
|
914
|
-
this.abort()
|
|
915
|
-
}
|
|
916
|
-
Events.Telemetry.event(this, {
|
|
917
|
-
category: EventCategory,
|
|
918
|
-
action: 'request-execute',
|
|
919
|
-
label: 'true',
|
|
920
|
-
})
|
|
921
|
-
const request = await this.serialize()
|
|
922
|
-
const ctrl = new AbortController()
|
|
923
|
-
this.requestController = ctrl
|
|
924
|
-
const init: IRequestProxyInit = {
|
|
925
|
-
kind: HttpRequestKind,
|
|
926
|
-
request: request.expects,
|
|
927
|
-
authorization: request.authorization,
|
|
928
|
-
signal: ctrl.signal,
|
|
929
|
-
}
|
|
930
|
-
this.loadingRequest = true
|
|
931
|
-
const result = await this.proxyRequest(init)
|
|
932
|
-
this.loadingRequest = false
|
|
933
|
-
if (!result) {
|
|
934
|
-
if (ctrl.signal.aborted) {
|
|
935
|
-
return
|
|
936
|
-
}
|
|
937
|
-
const message = `The request was not sent. Proxy not available.`
|
|
938
|
-
SnackNotifications.notify(message, { timeout: 2000, close: true })
|
|
939
|
-
throw new Error(message)
|
|
940
|
-
}
|
|
941
|
-
this.dispatchEvent(new CustomEvent<IRequestLog>('response', { detail: result.result }))
|
|
942
|
-
}
|
|
943
|
-
|
|
944
|
-
/**
|
|
945
|
-
* Uses the `requestController` to abort the ongoing HTTP request.
|
|
946
|
-
*/
|
|
947
|
-
abort(): void {
|
|
948
|
-
Events.Telemetry.event(this, {
|
|
949
|
-
category: EventCategory,
|
|
950
|
-
action: 'request-abort',
|
|
951
|
-
label: 'true',
|
|
952
|
-
})
|
|
953
|
-
const { requestController } = this
|
|
954
|
-
if (!requestController) {
|
|
955
|
-
return
|
|
956
|
-
}
|
|
957
|
-
requestController.abort()
|
|
958
|
-
this.requestController = undefined
|
|
959
|
-
this.loadingRequest = false
|
|
960
|
-
}
|
|
961
|
-
|
|
962
|
-
/**
|
|
963
|
-
* Event handler for abort click.
|
|
964
|
-
*/
|
|
965
|
-
protected abortHandler(): void {
|
|
966
|
-
this.abort()
|
|
967
|
-
}
|
|
968
|
-
|
|
969
|
-
/**
|
|
970
|
-
* Serializes the state of the request editor.
|
|
971
|
-
*/
|
|
972
|
-
async serialize(): Promise<IRequest> {
|
|
973
|
-
const op = this.operationValue
|
|
974
|
-
if (!op) {
|
|
975
|
-
throw new Error(`No API operation defined on the editor`)
|
|
976
|
-
}
|
|
977
|
-
const method = (op.method || 'get').toUpperCase()
|
|
978
|
-
const params: IApiParameter[] = []
|
|
979
|
-
const { amfParameters } = this
|
|
980
|
-
amfParameters.parametersValue.forEach((item) => {
|
|
981
|
-
const { parameter, enabled } = item
|
|
982
|
-
if (enabled === false) {
|
|
983
|
-
return
|
|
984
|
-
}
|
|
985
|
-
params.push(parameter)
|
|
986
|
-
})
|
|
987
|
-
const report = AmfInputParser.reportRequestInputs(params, InputCache.getStore(this, true), amfParameters.nilValues)
|
|
988
|
-
const serverUrl = computeEndpointUri({
|
|
989
|
-
baseUri: this.effectiveBaseUri,
|
|
990
|
-
server: this.server,
|
|
991
|
-
endpoint: this.endpointValue,
|
|
992
|
-
protocols: this.protocols,
|
|
993
|
-
forceHttpProtocol: true,
|
|
994
|
-
})
|
|
995
|
-
let url = applyUrlVariables(serverUrl, report.path, true)
|
|
996
|
-
url = applyUrlParameters(url, report.query, true)
|
|
997
|
-
const headers = generateHeaders(report.header)
|
|
998
|
-
|
|
999
|
-
const instance = new Request()
|
|
1000
|
-
const expects = instance.getExpects()
|
|
1001
|
-
expects.method = method
|
|
1002
|
-
expects.url = url
|
|
1003
|
-
expects.headers = headers
|
|
1004
|
-
|
|
1005
|
-
if (!['GET', 'HEAD'].includes(method)) {
|
|
1006
|
-
let body: string | FormData | Blob | File | ArrayBuffer | undefined
|
|
1007
|
-
const { payload } = this
|
|
1008
|
-
if (payload) {
|
|
1009
|
-
const info = readCachePayloadValue(payload.id)
|
|
1010
|
-
if (info && info.value) {
|
|
1011
|
-
body = info.value
|
|
1012
|
-
}
|
|
1013
|
-
}
|
|
1014
|
-
if (body instanceof FormData) {
|
|
1015
|
-
const parser = new Headers(expects.headers)
|
|
1016
|
-
parser.delete('content-type')
|
|
1017
|
-
expects.headers = parser.toString()
|
|
1018
|
-
} else if (payload) {
|
|
1019
|
-
expects.headers = ensureContentType(expects.headers || '', payload.mediaType)
|
|
1020
|
-
}
|
|
1021
|
-
if (typeof body !== 'undefined') {
|
|
1022
|
-
await expects.writePayload(body)
|
|
1023
|
-
}
|
|
1024
|
-
}
|
|
1025
|
-
|
|
1026
|
-
const result = instance.toJSON()
|
|
1027
|
-
|
|
1028
|
-
const authElement = this.shadowRoot?.querySelector('api-authorization-editor')
|
|
1029
|
-
if (authElement) {
|
|
1030
|
-
const auth = authElement.serialize()
|
|
1031
|
-
result.authorization = auth
|
|
1032
|
-
}
|
|
1033
|
-
return result
|
|
1034
|
-
}
|
|
1035
|
-
|
|
1036
|
-
/**
|
|
1037
|
-
* Handler for the `oauth2-redirect-uri-changed` custom event. Changes
|
|
1038
|
-
* the `redirectUri` property.
|
|
1039
|
-
*/
|
|
1040
|
-
protected authRedirectChangedHandler(e: CustomEvent): void {
|
|
1041
|
-
this.redirectUri = e.detail.value
|
|
1042
|
-
}
|
|
1043
|
-
|
|
1044
|
-
/**
|
|
1045
|
-
* Handle event for populating annotated fields in the editor.
|
|
1046
|
-
*/
|
|
1047
|
-
protected populateAnnotatedFieldsHandler(e: CustomEvent): void {
|
|
1048
|
-
const populationInfoArray: PopulationInfo[] = e.detail.values
|
|
1049
|
-
const { parametersValue = [] } = this.amfParameters
|
|
1050
|
-
const allAnnotated = parametersValue.filter(
|
|
1051
|
-
(param) =>
|
|
1052
|
-
Array.isArray(param.parameter.customDomainProperties) && !!param.parameter.customDomainProperties.length
|
|
1053
|
-
)
|
|
1054
|
-
let update = false
|
|
1055
|
-
populationInfoArray.forEach(({ annotationName, annotationValue, fieldValue }) => {
|
|
1056
|
-
allAnnotated.forEach((item) => {
|
|
1057
|
-
const { parameter, paramId } = item
|
|
1058
|
-
const hasAnnotation = (parameter.customDomainProperties || []).some(
|
|
1059
|
-
(prop) => prop.name === annotationName && (prop.extension as IApiScalarNode).value === annotationValue
|
|
1060
|
-
)
|
|
1061
|
-
if (!hasAnnotation) {
|
|
1062
|
-
return
|
|
1063
|
-
}
|
|
1064
|
-
InputCache.set(this, paramId, fieldValue, true)
|
|
1065
|
-
update = true
|
|
1066
|
-
})
|
|
1067
|
-
})
|
|
1068
|
-
if (update) {
|
|
1069
|
-
this.requestUpdate()
|
|
1070
|
-
}
|
|
1071
|
-
/* @TODO populate values for the security schema. */
|
|
1072
|
-
}
|
|
1073
|
-
|
|
1074
|
-
/**
|
|
1075
|
-
* Computes a current server value for selection made in the server selector.
|
|
1076
|
-
*/
|
|
1077
|
-
protected updateServer(): void {
|
|
1078
|
-
const { serverValue, serverType, servers = [] } = this
|
|
1079
|
-
if (serverType !== 'server') {
|
|
1080
|
-
this.serverLocalValue = undefined
|
|
1081
|
-
} else {
|
|
1082
|
-
this.serverLocalValue = servers.find((server) => server.url === serverValue)
|
|
1083
|
-
}
|
|
1084
|
-
this.readUrlData()
|
|
1085
|
-
this.computeUrlRegexp()
|
|
1086
|
-
}
|
|
1087
|
-
|
|
1088
|
-
/**
|
|
1089
|
-
* Handler for the change dispatched from the server selector.
|
|
1090
|
-
*/
|
|
1091
|
-
protected serverCountHandler(e: CustomEvent): void {
|
|
1092
|
-
const { value = 0 } = e.detail
|
|
1093
|
-
this.serversCount = value
|
|
1094
|
-
this.updateServer()
|
|
1095
|
-
this.requestUpdate()
|
|
1096
|
-
}
|
|
1097
|
-
|
|
1098
|
-
/**
|
|
1099
|
-
* Handler for the change dispatched from the server selector.
|
|
1100
|
-
*/
|
|
1101
|
-
protected serverHandler(e: CustomEvent): void {
|
|
1102
|
-
const { value, type } = e.detail
|
|
1103
|
-
this.serverType = type
|
|
1104
|
-
this.serverValue = value
|
|
1105
|
-
this.updateServer()
|
|
1106
|
-
this.computeUrlRegexp()
|
|
1107
|
-
}
|
|
1108
|
-
|
|
1109
|
-
/**
|
|
1110
|
-
* Computes a regexp for the base URI defined in the server to process URL input change
|
|
1111
|
-
* and set the `.urlSearchRegexpValue` value.
|
|
1112
|
-
* This should be computed only when a server and en endpoint change.
|
|
1113
|
-
*/
|
|
1114
|
-
protected computeUrlRegexp(): void {
|
|
1115
|
-
const { effectiveBaseUri } = this
|
|
1116
|
-
let value
|
|
1117
|
-
if (effectiveBaseUri) {
|
|
1118
|
-
value = computeEndpointUri({
|
|
1119
|
-
baseUri: effectiveBaseUri,
|
|
1120
|
-
endpoint: this.endpointValue,
|
|
1121
|
-
forceHttpProtocol: true,
|
|
1122
|
-
})
|
|
1123
|
-
} else {
|
|
1124
|
-
value = this.apiBaseUri
|
|
1125
|
-
}
|
|
1126
|
-
if (!value) {
|
|
1127
|
-
this.urlSearchRegexpValue = undefined
|
|
1128
|
-
} else {
|
|
1129
|
-
value = value.replace('?', '\\?')
|
|
1130
|
-
value = value.replace(/(\.|\/)/g, '\\$1')
|
|
1131
|
-
value = value.replace(/{[\w\\+]+}/g, "([a-zA-Z0-9\\$\\-_\\.~\\+!'\\(\\)\\*\\{\\}]+)")
|
|
1132
|
-
value += '.*'
|
|
1133
|
-
this.urlSearchRegexpValue = new RegExp(value)
|
|
1134
|
-
}
|
|
1135
|
-
}
|
|
1136
|
-
|
|
1137
|
-
protected handleMediaTypeSelect(e: Event): void {
|
|
1138
|
-
const node = e.target as RadioElement
|
|
1139
|
-
const { value } = node
|
|
1140
|
-
this.mimeType = value
|
|
1141
|
-
const ctParam = this.amfParameters.parametersValue.find(
|
|
1142
|
-
(p) => p.binding === 'header' && (p.parameter.name || '').toLocaleLowerCase() === 'content-type'
|
|
1143
|
-
)
|
|
1144
|
-
if (ctParam) {
|
|
1145
|
-
InputCache.set(this, ctParam.paramId, value, true)
|
|
1146
|
-
}
|
|
1147
|
-
}
|
|
1148
|
-
|
|
1149
|
-
protected async notifyResizeAfterUpdate(): Promise<void> {
|
|
1150
|
-
await this.updateComplete
|
|
1151
|
-
this.dispatchEvent(new Event('resize', { bubbles: true, composed: true }))
|
|
1152
|
-
}
|
|
1153
|
-
|
|
1154
|
-
/**
|
|
1155
|
-
* Toggles optional parameter groups.
|
|
1156
|
-
*/
|
|
1157
|
-
protected handleOptionalToggle(e: Event): void {
|
|
1158
|
-
const node = e.target as HTMLElement
|
|
1159
|
-
const { target } = node.dataset
|
|
1160
|
-
if (!target) {
|
|
1161
|
-
return
|
|
1162
|
-
}
|
|
1163
|
-
if (!Array.isArray(this.openedOptional)) {
|
|
1164
|
-
this.openedOptional = []
|
|
1165
|
-
}
|
|
1166
|
-
if (this.openedOptional.includes(target)) {
|
|
1167
|
-
const index = this.openedOptional.indexOf(target)
|
|
1168
|
-
this.openedOptional.splice(index, 1)
|
|
1169
|
-
} else {
|
|
1170
|
-
this.openedOptional.push(target)
|
|
1171
|
-
}
|
|
1172
|
-
this.requestUpdate()
|
|
1173
|
-
this.notifyResizeAfterUpdate()
|
|
1174
|
-
}
|
|
1175
|
-
|
|
1176
|
-
/**
|
|
1177
|
-
* When enabled it adds a new custom parameter to the request section defined in the source button.
|
|
1178
|
-
*/
|
|
1179
|
-
protected addCustomHandler(e: Event): void {
|
|
1180
|
-
const button = e.currentTarget as HTMLElement
|
|
1181
|
-
const { type } = button.dataset
|
|
1182
|
-
if (!['query', 'header'].includes(type as string)) {
|
|
1183
|
-
return
|
|
1184
|
-
}
|
|
1185
|
-
const id = nanoid()
|
|
1186
|
-
const param: OperationParameter = {
|
|
1187
|
-
binding: type || '',
|
|
1188
|
-
source: 'custom',
|
|
1189
|
-
paramId: id,
|
|
1190
|
-
parameter: {
|
|
1191
|
-
id,
|
|
1192
|
-
required: true,
|
|
1193
|
-
binding: type,
|
|
1194
|
-
name: '',
|
|
1195
|
-
examples: [],
|
|
1196
|
-
payloads: [],
|
|
1197
|
-
customDomainProperties: [],
|
|
1198
|
-
types: [],
|
|
1199
|
-
},
|
|
1200
|
-
}
|
|
1201
|
-
this.amfParameters.parametersValue.push(param)
|
|
1202
|
-
this.requestUpdate()
|
|
1203
|
-
}
|
|
1204
|
-
|
|
1205
|
-
/**
|
|
1206
|
-
* Updates path/query model from user input.
|
|
1207
|
-
*
|
|
1208
|
-
* @param e The change event
|
|
1209
|
-
*/
|
|
1210
|
-
protected handleUrlEditorChange(e: Event): void {
|
|
1211
|
-
const { value } = e.target as Input
|
|
1212
|
-
let matches
|
|
1213
|
-
const uriRegexp = this.urlSearchRegexpValue
|
|
1214
|
-
// parameters must be in order from server to the endpoint
|
|
1215
|
-
const pathParams = this.getOrderedPathParams()
|
|
1216
|
-
let changed = false
|
|
1217
|
-
if (pathParams.length && uriRegexp) {
|
|
1218
|
-
matches = value.match(uriRegexp)
|
|
1219
|
-
if (matches) {
|
|
1220
|
-
matches.shift()
|
|
1221
|
-
changed = this.applyUriValues(matches, pathParams)
|
|
1222
|
-
}
|
|
1223
|
-
}
|
|
1224
|
-
const matchesNew = value.match(/[^&?]*?=[^&?]*/g)
|
|
1225
|
-
if (matchesNew) {
|
|
1226
|
-
const params: Record<string, string | string[]> = {}
|
|
1227
|
-
matchesNew.forEach((item) => applyQueryParamStringToObject(item, params))
|
|
1228
|
-
const qpChanged = this.applyQueryParamsValues(params)
|
|
1229
|
-
if (!changed) {
|
|
1230
|
-
changed = qpChanged
|
|
1231
|
-
}
|
|
1232
|
-
}
|
|
1233
|
-
this.url = value
|
|
1234
|
-
this.validateUrl()
|
|
1235
|
-
this.notifyChange()
|
|
1236
|
-
this.requestUpdate()
|
|
1237
|
-
}
|
|
1238
|
-
|
|
1239
|
-
/**
|
|
1240
|
-
* Sets the value of `.urlInvalidValue` and therefore `urlInvalid` properties.
|
|
1241
|
-
*/
|
|
1242
|
-
validateUrl(): void {
|
|
1243
|
-
this.urlInvalidValue = !this.readUrlValidity()
|
|
1244
|
-
this.requestUpdate()
|
|
1245
|
-
}
|
|
1246
|
-
|
|
1247
|
-
/**
|
|
1248
|
-
* Validates the current URL value.
|
|
1249
|
-
* @returns True when the current URL is a valid URL.
|
|
1250
|
-
*/
|
|
1251
|
-
protected readUrlValidity(): boolean {
|
|
1252
|
-
const { url } = this
|
|
1253
|
-
if (!url) {
|
|
1254
|
-
return false
|
|
1255
|
-
}
|
|
1256
|
-
if (typeof url !== 'string') {
|
|
1257
|
-
return false
|
|
1258
|
-
}
|
|
1259
|
-
if (url.indexOf('{') !== -1 && url.indexOf('}') !== -1) {
|
|
1260
|
-
return false
|
|
1261
|
-
}
|
|
1262
|
-
const { shadowRoot } = this
|
|
1263
|
-
if (!shadowRoot) {
|
|
1264
|
-
return true
|
|
1265
|
-
}
|
|
1266
|
-
const inputElement = shadowRoot.querySelector('.url-input') as Input
|
|
1267
|
-
if (inputElement) {
|
|
1268
|
-
return inputElement.reportValidity()
|
|
1269
|
-
}
|
|
1270
|
-
return true
|
|
1271
|
-
}
|
|
1272
|
-
|
|
1273
|
-
/**
|
|
1274
|
-
* Reads the ordered list of path parameters from the server and the endpoint.
|
|
1275
|
-
*/
|
|
1276
|
-
protected getOrderedPathParams(): OperationParameter[] {
|
|
1277
|
-
const result: OperationParameter[] = []
|
|
1278
|
-
const { effectiveBaseUri } = this
|
|
1279
|
-
let url
|
|
1280
|
-
if (effectiveBaseUri) {
|
|
1281
|
-
url = computeEndpointUri({
|
|
1282
|
-
baseUri: effectiveBaseUri,
|
|
1283
|
-
endpoint: this.endpointValue,
|
|
1284
|
-
forceHttpProtocol: true,
|
|
1285
|
-
})
|
|
1286
|
-
} else {
|
|
1287
|
-
url = this.apiBaseUri
|
|
1288
|
-
}
|
|
1289
|
-
if (!url) {
|
|
1290
|
-
return result
|
|
1291
|
-
}
|
|
1292
|
-
const matches = url.match(/{[\w\\+]+}/g)
|
|
1293
|
-
if (!matches) {
|
|
1294
|
-
return result
|
|
1295
|
-
}
|
|
1296
|
-
const all = this.amfParameters.parametersValue
|
|
1297
|
-
matches.forEach((tpl) => {
|
|
1298
|
-
const name = tpl.substr(1, tpl.length - 2)
|
|
1299
|
-
const param = all.find((p) => p.binding === 'path' && p.parameter.name === name)
|
|
1300
|
-
if (param) {
|
|
1301
|
-
result.push(param)
|
|
1302
|
-
}
|
|
1303
|
-
})
|
|
1304
|
-
return result
|
|
1305
|
-
}
|
|
1306
|
-
|
|
1307
|
-
/**
|
|
1308
|
-
* Applies values from the `values` array to the uri parameters which names are in the `names` array.
|
|
1309
|
-
* Both lists are ordered list of parameters.
|
|
1310
|
-
*
|
|
1311
|
-
* @param values Values for the parameters
|
|
1312
|
-
* @param params List of path parameters.
|
|
1313
|
-
* @returns True when any parameter was changed.
|
|
1314
|
-
*/
|
|
1315
|
-
protected applyUriValues(values: string[], params: OperationParameter[]): boolean {
|
|
1316
|
-
let changed = false
|
|
1317
|
-
for (let i = 0, len = params.length; i < len; i++) {
|
|
1318
|
-
const value = values[i]
|
|
1319
|
-
if (value && value[0] === '{') {
|
|
1320
|
-
// This is still a variable
|
|
1321
|
-
continue
|
|
1322
|
-
}
|
|
1323
|
-
const param = params[i]
|
|
1324
|
-
if (InputCache.get(this, param.paramId, true) !== value) {
|
|
1325
|
-
InputCache.set(this, param.paramId, value, true)
|
|
1326
|
-
changed = true
|
|
1327
|
-
}
|
|
1328
|
-
}
|
|
1329
|
-
return changed
|
|
1330
|
-
}
|
|
1331
|
-
|
|
1332
|
-
/**
|
|
1333
|
-
* Applies query parameters values to the render list.
|
|
1334
|
-
*
|
|
1335
|
-
* @returns True when any parameter was changed.
|
|
1336
|
-
*/
|
|
1337
|
-
protected applyQueryParamsValues(map: Record<string, string | string[]>): boolean {
|
|
1338
|
-
if (!map) {
|
|
1339
|
-
return false
|
|
1340
|
-
}
|
|
1341
|
-
const keys = Object.keys(map)
|
|
1342
|
-
let changed = false
|
|
1343
|
-
keys.forEach((key) => {
|
|
1344
|
-
const value = map[key]
|
|
1345
|
-
if (value && value[0] === '{') {
|
|
1346
|
-
// This is still a variable
|
|
1347
|
-
return
|
|
1348
|
-
}
|
|
1349
|
-
const param = this.amfParameters.parametersValue.find((p) => p.binding === 'query' && p.parameter.name === key)
|
|
1350
|
-
if (param) {
|
|
1351
|
-
if (InputCache.get(this, param.paramId, true) !== value) {
|
|
1352
|
-
InputCache.set(this, param.paramId, value, true)
|
|
1353
|
-
changed = true
|
|
1354
|
-
}
|
|
1355
|
-
}
|
|
1356
|
-
})
|
|
1357
|
-
return changed
|
|
1358
|
-
}
|
|
1359
|
-
|
|
1360
|
-
protected internalSendHandler(e: Event): void {
|
|
1361
|
-
e.stopPropagation()
|
|
1362
|
-
this.execute()
|
|
1363
|
-
}
|
|
1364
|
-
|
|
1365
|
-
/**
|
|
1366
|
-
* A handler for the change event on the authorization panel.
|
|
1367
|
-
*/
|
|
1368
|
-
protected authorizationChangeHandler(): void {
|
|
1369
|
-
this.notifyChange()
|
|
1370
|
-
}
|
|
1371
|
-
|
|
1372
|
-
override render(): TemplateResult {
|
|
1373
|
-
return html` <div class="content">
|
|
1374
|
-
${this.serverSelectorTemplate()} ${this.urlLabelTemplate()} ${this.renderUrlEditor()} ${this.parametersTemplate()}
|
|
1375
|
-
${this.headersTemplate()} ${this.mediaTypeSelectorTemplate()} ${this.bodyTemplate()}
|
|
1376
|
-
${this.authorizationTemplate()} ${this.formActionsTemplate()}
|
|
1377
|
-
</div>`
|
|
1378
|
-
}
|
|
1379
|
-
|
|
1380
|
-
/**
|
|
1381
|
-
* @return Template for the request URL label.
|
|
1382
|
-
*/
|
|
1383
|
-
protected urlLabelTemplate(): TemplateResult | typeof nothing {
|
|
1384
|
-
const { urlLabel, url } = this
|
|
1385
|
-
if (!urlLabel) {
|
|
1386
|
-
return nothing
|
|
1387
|
-
}
|
|
1388
|
-
return html`<div class="url-label text-selectable" title="Current request URL">${url}</div>`
|
|
1389
|
-
}
|
|
1390
|
-
|
|
1391
|
-
protected authorizationTemplate(): TemplateResult | typeof nothing {
|
|
1392
|
-
const { security } = this
|
|
1393
|
-
if (!security) {
|
|
1394
|
-
return nothing
|
|
1395
|
-
}
|
|
1396
|
-
const { selectedSecurity, redirectUri, credentialsSource } = this
|
|
1397
|
-
const rendered = security.find((i) => i.security.id === selectedSecurity)
|
|
1398
|
-
if (!rendered) {
|
|
1399
|
-
return nothing
|
|
1400
|
-
}
|
|
1401
|
-
return html`
|
|
1402
|
-
<section class="authorization params-section">
|
|
1403
|
-
<div class="section-title"><span class="label">Credentials</span></div>
|
|
1404
|
-
${security.length > 1 ? this.authorizationSelectorTemplate(security, rendered) : ''}
|
|
1405
|
-
<api-authorization-editor
|
|
1406
|
-
.security="${rendered.security}"
|
|
1407
|
-
.oauth2RedirectUri="${redirectUri}"
|
|
1408
|
-
.credentialsSource="${credentialsSource}"
|
|
1409
|
-
@change="${this.authorizationChangeHandler}"
|
|
1410
|
-
></api-authorization-editor>
|
|
1411
|
-
</section>
|
|
1412
|
-
`
|
|
1413
|
-
}
|
|
1414
|
-
|
|
1415
|
-
/**
|
|
1416
|
-
* @returns The template for the security drop down selector.
|
|
1417
|
-
*/
|
|
1418
|
-
protected authorizationSelectorTemplate(
|
|
1419
|
-
security: SecuritySelectorListItem[],
|
|
1420
|
-
selected: SecuritySelectorListItem
|
|
1421
|
-
): TemplateResult {
|
|
1422
|
-
const finalValue = selected.labels.join(', ')
|
|
1423
|
-
return html`
|
|
1424
|
-
<ui-dropdown-list
|
|
1425
|
-
class="authorization-selector"
|
|
1426
|
-
closeOnOutsideClick
|
|
1427
|
-
matchTriggerWidth
|
|
1428
|
-
@select="${this.handleAuthSelect}"
|
|
1429
|
-
>
|
|
1430
|
-
<ui-text-field
|
|
1431
|
-
class="dropdown-trigger"
|
|
1432
|
-
label="Authorization method"
|
|
1433
|
-
readOnly
|
|
1434
|
-
name="authorization"
|
|
1435
|
-
.value="${finalValue || ''}"
|
|
1436
|
-
@select="${cancelEvent}"
|
|
1437
|
-
>
|
|
1438
|
-
<ui-icon icon="arrowDropDown" role="presentation" slot="suffix"></ui-icon>
|
|
1439
|
-
</ui-text-field>
|
|
1440
|
-
<ui-list slot="dropdown" role="menu" selector="[data-value]" selectActive>
|
|
1441
|
-
${security.map((item) => this.authorizationSelectorItemTemplate(item))}
|
|
1442
|
-
</ui-list>
|
|
1443
|
-
</ui-dropdown-list>
|
|
1444
|
-
`
|
|
1445
|
-
}
|
|
1446
|
-
|
|
1447
|
-
/**
|
|
1448
|
-
* @returns The template for the security drop down selector list item.
|
|
1449
|
-
*/
|
|
1450
|
-
protected authorizationSelectorItemTemplate(info: SecuritySelectorListItem): TemplateResult {
|
|
1451
|
-
const { labels, types, security } = info
|
|
1452
|
-
|
|
1453
|
-
const label = labels.join(', ')
|
|
1454
|
-
const type = types.join(', ')
|
|
1455
|
-
const single = !type
|
|
1456
|
-
return html`
|
|
1457
|
-
<ui-list-item role="menuitem" lines="${single ? 'one' : 'two'}" data-id="${security.id}">
|
|
1458
|
-
${label} ${!single ? html`<div slot="supporting-text">${type}</div>` : ''}
|
|
1459
|
-
</ui-list-item>
|
|
1460
|
-
`
|
|
1461
|
-
}
|
|
1462
|
-
|
|
1463
|
-
protected formActionsTemplate(): TemplateResult {
|
|
1464
|
-
const loading = this.loadingRequest
|
|
1465
|
-
return html` <div class="action-bar">
|
|
1466
|
-
${loading ? this.abortButtonTemplate() : this.sendButtonTemplate()}
|
|
1467
|
-
<ui-progress ?hidden="${!loading}" indeterminate class="request-progress"></ui-progress>
|
|
1468
|
-
</div>`
|
|
1469
|
-
}
|
|
1470
|
-
|
|
1471
|
-
/**
|
|
1472
|
-
* Creates a template for the "abort" button.
|
|
1473
|
-
*/
|
|
1474
|
-
protected abortButtonTemplate(): TemplateResult {
|
|
1475
|
-
return html` <ui-filled-tonal-button class="send-button abort" @click="${this.abortHandler}"
|
|
1476
|
-
>Abort</ui-filled-tonal-button
|
|
1477
|
-
>`
|
|
1478
|
-
}
|
|
1479
|
-
|
|
1480
|
-
/**
|
|
1481
|
-
* Creates a template for the "send" or "auth and send" button.
|
|
1482
|
-
*/
|
|
1483
|
-
protected sendButtonTemplate(): TemplateResult {
|
|
1484
|
-
return html` <ui-filled-tonal-button class="send-button" @click="${this.sendHandler}">Send</ui-filled-tonal-button>`
|
|
1485
|
-
}
|
|
1486
|
-
|
|
1487
|
-
/**
|
|
1488
|
-
* @return A template for the server selector
|
|
1489
|
-
*/
|
|
1490
|
-
protected serverSelectorTemplate(): TemplateResult {
|
|
1491
|
-
const { serverType, serverValue, allowCustomBaseUri, serverSelectorHidden, domainId } = this
|
|
1492
|
-
return html` <api-server-picker
|
|
1493
|
-
?hidden="${serverSelectorHidden}"
|
|
1494
|
-
?custom="${allowCustomBaseUri}"
|
|
1495
|
-
.value="${serverValue}"
|
|
1496
|
-
.type="${serverType as ServerType}"
|
|
1497
|
-
.domainId="${domainId}"
|
|
1498
|
-
domainType="operation"
|
|
1499
|
-
auto
|
|
1500
|
-
@serverscountchanged="${this.serverCountHandler}"
|
|
1501
|
-
@apiserverchanged="${this.serverHandler}"
|
|
1502
|
-
>
|
|
1503
|
-
<slot name="custom-base-uri" slot="custom-base-uri"></slot>
|
|
1504
|
-
</api-server-picker>`
|
|
1505
|
-
}
|
|
1506
|
-
|
|
1507
|
-
/**
|
|
1508
|
-
* @return
|
|
1509
|
-
*/
|
|
1510
|
-
protected parametersTemplate(): TemplateResult | typeof nothing {
|
|
1511
|
-
const qp: OperationParameter[] = []
|
|
1512
|
-
const path: OperationParameter[] = []
|
|
1513
|
-
// NOTE, the "* Required field" has been added after the a11y audit of API Console.
|
|
1514
|
-
let hasRequired = false
|
|
1515
|
-
const { amfParameters } = this
|
|
1516
|
-
amfParameters.parametersValue.forEach((item) => {
|
|
1517
|
-
if (!hasRequired && item.parameter && item.parameter.required) {
|
|
1518
|
-
hasRequired = true
|
|
1519
|
-
}
|
|
1520
|
-
if (item.binding === 'query') {
|
|
1521
|
-
qp.push(item)
|
|
1522
|
-
} else if (item.binding === 'path') {
|
|
1523
|
-
path.push(item)
|
|
1524
|
-
}
|
|
1525
|
-
})
|
|
1526
|
-
const { allowCustom, openedOptional = [] } = this
|
|
1527
|
-
if (!allowCustom && !qp.length && !path.length) {
|
|
1528
|
-
return nothing
|
|
1529
|
-
}
|
|
1530
|
-
const pathOptions = Object.freeze({ required: true })
|
|
1531
|
-
const queryClasses = {
|
|
1532
|
-
'query-params': true,
|
|
1533
|
-
'hide-optional': !!this.allowHideOptional && !openedOptional.includes('query'),
|
|
1534
|
-
}
|
|
1535
|
-
return html`
|
|
1536
|
-
<section class="params-section parameter">
|
|
1537
|
-
<div class="section-title"><span class="label">Parameters</span></div>
|
|
1538
|
-
${hasRequired ? html`<p class="required-field">* Required field</p>` : ''}
|
|
1539
|
-
<div class="path-params">${path.map((param) => amfParameters.parameterTemplate(param, pathOptions))}</div>
|
|
1540
|
-
<div class="${classMap(queryClasses)}">
|
|
1541
|
-
${this.renderToggleOptional('query', qp)} ${qp.map((param) => amfParameters.parameterTemplate(param))}
|
|
1542
|
-
${allowCustom ? this.addCustomButtonTemplate('query') : ''}
|
|
1543
|
-
</div>
|
|
1544
|
-
</section>
|
|
1545
|
-
`
|
|
1546
|
-
}
|
|
1547
|
-
|
|
1548
|
-
protected headersTemplate(): TemplateResult | typeof nothing {
|
|
1549
|
-
const headers: OperationParameter[] = []
|
|
1550
|
-
// NOTE, the "* Required field" has been added after the a11y audit of API Console.
|
|
1551
|
-
let hasRequired = false
|
|
1552
|
-
const { amfParameters } = this
|
|
1553
|
-
amfParameters.parametersValue.forEach((item) => {
|
|
1554
|
-
if (item.binding === 'header') {
|
|
1555
|
-
headers.push(item)
|
|
1556
|
-
if (!hasRequired && item.parameter && item.parameter.required) {
|
|
1557
|
-
hasRequired = true
|
|
1558
|
-
}
|
|
1559
|
-
}
|
|
1560
|
-
})
|
|
1561
|
-
const { allowCustom, openedOptional = [] } = this
|
|
1562
|
-
if (!allowCustom && !headers.length) {
|
|
1563
|
-
return nothing
|
|
1564
|
-
}
|
|
1565
|
-
const classes = {
|
|
1566
|
-
'header-params': true,
|
|
1567
|
-
'hide-optional': !!this.allowHideOptional && !openedOptional.includes('header'),
|
|
1568
|
-
}
|
|
1569
|
-
return html`
|
|
1570
|
-
<section class="params-section header" aria-label="HTTP headers">
|
|
1571
|
-
<div class="section-title"><span class="label">Headers</span></div>
|
|
1572
|
-
${hasRequired ? html`<p class="required-field">* Required field</p>` : ''}
|
|
1573
|
-
${this.renderToggleOptional('header', headers)}
|
|
1574
|
-
<div class="${classMap(classes)}">
|
|
1575
|
-
${headers.map((param) => amfParameters.parameterTemplate(param))}
|
|
1576
|
-
${allowCustom ? this.addCustomButtonTemplate('header') : ''}
|
|
1577
|
-
</div>
|
|
1578
|
-
</section>
|
|
1579
|
-
`
|
|
1580
|
-
}
|
|
1581
|
-
|
|
1582
|
-
/**
|
|
1583
|
-
* @returns The template for the add custom parameter button
|
|
1584
|
-
*/
|
|
1585
|
-
protected addCustomButtonTemplate(type: string): TemplateResult {
|
|
1586
|
-
return html`
|
|
1587
|
-
<div class="add-custom-button">
|
|
1588
|
-
<ui-outlined-button
|
|
1589
|
-
data-type="${type}"
|
|
1590
|
-
title="Adds a new custom parameter to the request"
|
|
1591
|
-
@click="${this.addCustomHandler}"
|
|
1592
|
-
>
|
|
1593
|
-
<ui-icon icon="add" role="presentation"></ui-icon>
|
|
1594
|
-
Add custom
|
|
1595
|
-
</ui-outlined-button>
|
|
1596
|
-
</div>
|
|
1597
|
-
`
|
|
1598
|
-
}
|
|
1599
|
-
|
|
1600
|
-
/**
|
|
1601
|
-
* @return The template for the payload's mime type selector.
|
|
1602
|
-
*/
|
|
1603
|
-
protected mediaTypeSelectorTemplate(): TemplateResult | typeof nothing {
|
|
1604
|
-
const { payloads, mimeType } = this
|
|
1605
|
-
if (!payloads || payloads.length === 1) {
|
|
1606
|
-
return nothing
|
|
1607
|
-
}
|
|
1608
|
-
const mimes = payloads.map((p) => p.mediaType)
|
|
1609
|
-
let index = mimes.indexOf(mimeType)
|
|
1610
|
-
if (index === -1) {
|
|
1611
|
-
index = 0
|
|
1612
|
-
}
|
|
1613
|
-
|
|
1614
|
-
return html`
|
|
1615
|
-
<div class="payload-mime-selector">
|
|
1616
|
-
<span id="body-mime" class="label-large">Body media type</span>
|
|
1617
|
-
${mimes.map(
|
|
1618
|
-
(item) => html`
|
|
1619
|
-
<label class="label-large">
|
|
1620
|
-
<ui-radio
|
|
1621
|
-
name="mediaTypeValue"
|
|
1622
|
-
value="${item || ''}"
|
|
1623
|
-
.checked="${item === mimeType}"
|
|
1624
|
-
@change="${this.handleMediaTypeSelect}"
|
|
1625
|
-
></ui-radio>
|
|
1626
|
-
${item}
|
|
1627
|
-
</label>
|
|
1628
|
-
`
|
|
1629
|
-
)}
|
|
1630
|
-
</div>
|
|
1631
|
-
`
|
|
1632
|
-
}
|
|
1633
|
-
|
|
1634
|
-
/**
|
|
1635
|
-
* @returns The template for the body editor.
|
|
1636
|
-
*/
|
|
1637
|
-
protected bodyTemplate(): TemplateResult | typeof nothing {
|
|
1638
|
-
const { payload } = this
|
|
1639
|
-
if (!payload) {
|
|
1640
|
-
return nothing
|
|
1641
|
-
}
|
|
1642
|
-
const info = getPayloadValue(payload)
|
|
1643
|
-
const mimeType = payload.mediaType
|
|
1644
|
-
let content: TemplateResult
|
|
1645
|
-
if (mimeType === 'application/x-www-form-urlencoded') {
|
|
1646
|
-
content = this.formDataEditorTemplate(info, payload.id)
|
|
1647
|
-
} else if (mimeType === 'multipart/form-data') {
|
|
1648
|
-
content = this.multipartEditorTemplate(info, payload.id)
|
|
1649
|
-
} else {
|
|
1650
|
-
content = this.rawEditorTemplate(info, payload.id, mimeType)
|
|
1651
|
-
}
|
|
1652
|
-
return html`
|
|
1653
|
-
<section class="params-section body" aria-label="HTTP body">
|
|
1654
|
-
<div class="section-title"><span class="label">Body</span></div>
|
|
1655
|
-
${content}
|
|
1656
|
-
</section>
|
|
1657
|
-
`
|
|
1658
|
-
}
|
|
1659
|
-
|
|
1660
|
-
/**
|
|
1661
|
-
* @returns The template for the editor that specializes in the URL encoded form data
|
|
1662
|
-
*/
|
|
1663
|
-
protected formDataEditorTemplate(info: PayloadInfo, id: string): TemplateResult {
|
|
1664
|
-
const editorModel = info.model
|
|
1665
|
-
const effectiveValue = Array.isArray(editorModel) && editorModel.length ? undefined : info.value
|
|
1666
|
-
return html`
|
|
1667
|
-
<http-body-urlencoded-editor
|
|
1668
|
-
class="body-editor"
|
|
1669
|
-
autoEncode
|
|
1670
|
-
.value="${ifProperty(effectiveValue)}"
|
|
1671
|
-
.model="${ifProperty(editorModel)}"
|
|
1672
|
-
data-payload-id="${id}"
|
|
1673
|
-
@change="${this.modelBodyEditorChangeHandler}"
|
|
1674
|
-
></http-body-urlencoded-editor>
|
|
1675
|
-
`
|
|
1676
|
-
}
|
|
1677
|
-
|
|
1678
|
-
/**
|
|
1679
|
-
* @returns The template for the editor that specializes in the multipart form data
|
|
1680
|
-
*/
|
|
1681
|
-
protected multipartEditorTemplate(info: PayloadInfo, id: string): TemplateResult {
|
|
1682
|
-
const editorModel = info.model
|
|
1683
|
-
const effectiveValue = Array.isArray(editorModel) && editorModel.length ? undefined : info.value
|
|
1684
|
-
return html`
|
|
1685
|
-
<http-body-multipart-editor
|
|
1686
|
-
class="body-editor"
|
|
1687
|
-
.value="${ifProperty(effectiveValue)}"
|
|
1688
|
-
.model="${ifProperty(editorModel)}"
|
|
1689
|
-
data-payload-id="${id}"
|
|
1690
|
-
@change="${this.modelBodyEditorChangeHandler}"
|
|
1691
|
-
></http-body-multipart-editor>
|
|
1692
|
-
`
|
|
1693
|
-
}
|
|
1694
|
-
|
|
1695
|
-
/**
|
|
1696
|
-
* @returns The template for the editor that specializes in any text data
|
|
1697
|
-
*/
|
|
1698
|
-
protected rawEditorTemplate(info: PayloadInfo, id: string, mimeType?: string): TemplateResult {
|
|
1699
|
-
let schemas
|
|
1700
|
-
if (Array.isArray(info.schemas) && info.schemas.length) {
|
|
1701
|
-
schemas = info.schemas
|
|
1702
|
-
}
|
|
1703
|
-
return html`
|
|
1704
|
-
<http-body-text-editor
|
|
1705
|
-
class="body-editor"
|
|
1706
|
-
.value="${info.value as string}"
|
|
1707
|
-
.contentType="${mimeType}"
|
|
1708
|
-
.schemas="${ifProperty(schemas)}"
|
|
1709
|
-
data-payload-id="${id}"
|
|
1710
|
-
@change="${this.rawBodyChangeHandler}"
|
|
1711
|
-
></http-body-text-editor>
|
|
1712
|
-
`
|
|
1713
|
-
}
|
|
1714
|
-
|
|
1715
|
-
/**
|
|
1716
|
-
* @param target The name of the target parameter group.
|
|
1717
|
-
* @param params The list of parameters. When all are required or empty it won't render then button.
|
|
1718
|
-
* @returns Template for the switch button to toggle visibility of the optional items.
|
|
1719
|
-
*/
|
|
1720
|
-
protected renderToggleOptional(target: string, params: OperationParameter[]): TemplateResult | typeof nothing {
|
|
1721
|
-
const { openedOptional = [], allowHideOptional } = this
|
|
1722
|
-
if (!allowHideOptional || !params || !params.length) {
|
|
1723
|
-
return nothing
|
|
1724
|
-
}
|
|
1725
|
-
const optional = params.some((p) => !!p.parameter && !p.parameter.required)
|
|
1726
|
-
if (!optional) {
|
|
1727
|
-
return nothing
|
|
1728
|
-
}
|
|
1729
|
-
const checked = openedOptional.includes(target)
|
|
1730
|
-
return html`
|
|
1731
|
-
<div class="optional-checkbox">
|
|
1732
|
-
<label class="label-large">
|
|
1733
|
-
<ui-switch
|
|
1734
|
-
class="toggle-optional-switch"
|
|
1735
|
-
.checked="${checked}"
|
|
1736
|
-
@change="${this.handleOptionalToggle}"
|
|
1737
|
-
title="Toggles optional parameters"
|
|
1738
|
-
data-target="${target}"
|
|
1739
|
-
name="toggleOptional"
|
|
1740
|
-
aria-label="Toggle optional parameters"
|
|
1741
|
-
></ui-switch>
|
|
1742
|
-
Show optional parameters
|
|
1743
|
-
</label>
|
|
1744
|
-
</div>
|
|
1745
|
-
`
|
|
1746
|
-
}
|
|
1747
|
-
|
|
1748
|
-
/**
|
|
1749
|
-
* @returns A template for the URL editor.
|
|
1750
|
-
*/
|
|
1751
|
-
protected renderUrlEditor(): TemplateResult | typeof nothing {
|
|
1752
|
-
const { urlEditor, url, urlInvalid } = this
|
|
1753
|
-
if (!urlEditor) {
|
|
1754
|
-
return nothing
|
|
1755
|
-
}
|
|
1756
|
-
return html`
|
|
1757
|
-
<div class="url-input-wrapper">
|
|
1758
|
-
<ui-text-field
|
|
1759
|
-
name="url"
|
|
1760
|
-
type="url"
|
|
1761
|
-
class="url-input"
|
|
1762
|
-
?invalid="${urlInvalid}"
|
|
1763
|
-
required
|
|
1764
|
-
invalidText="The URL is invalid"
|
|
1765
|
-
.value="${url || ''}"
|
|
1766
|
-
@change="${this.handleUrlEditorChange}"
|
|
1767
|
-
@blur="${this.validateUrl}"
|
|
1768
|
-
label="Request URL"
|
|
1769
|
-
></ui-text-field>
|
|
1770
|
-
</div>
|
|
1771
|
-
`
|
|
1772
|
-
}
|
|
1773
|
-
}
|