@api-client/ui 0.1.9 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/deployment.yml +0 -2
- package/build/src/decorators/reactive.d.ts.map +1 -1
- package/build/src/decorators/reactive.js +17 -8
- package/build/src/decorators/reactive.js.map +1 -1
- package/build/src/index.d.ts +0 -17
- package/build/src/index.d.ts.map +1 -1
- package/build/src/index.js +0 -18
- package/build/src/index.js.map +1 -1
- package/build/src/md/dialog/internals/Dialog.d.ts.map +1 -1
- package/build/src/md/dialog/internals/Dialog.js +6 -5
- package/build/src/md/dialog/internals/Dialog.js.map +1 -1
- package/build/src/md/dialog/internals/Dialog.styles.d.ts.map +1 -1
- package/build/src/md/dialog/internals/Dialog.styles.js +14 -10
- package/build/src/md/dialog/internals/Dialog.styles.js.map +1 -1
- package/demo/elements/authorization/api-key.html +1 -1
- package/demo/elements/authorization/basic.html +1 -1
- package/demo/elements/authorization/bearer.html +1 -1
- package/demo/elements/authorization/index.html +0 -3
- package/demo/elements/authorization/ntlm.html +1 -1
- package/demo/elements/authorization/oauth-authorize.html +1 -1
- package/demo/elements/authorization/oauth-error.html +1 -1
- package/demo/elements/authorization/oauth2.html +1 -1
- package/demo/elements/authorization/oidc.html +1 -1
- package/demo/elements/context-menu/basic.html +1 -1
- package/demo/elements/context-menu/custom-data.html +1 -1
- package/demo/elements/context-menu/enabled-state.html +1 -1
- package/demo/elements/context-menu/icons.html +1 -1
- package/demo/elements/context-menu/nested.html +1 -1
- package/demo/elements/context-menu/no-execute.html +1 -1
- package/demo/elements/context-menu/radio-menu.html +1 -1
- package/demo/elements/context-menu/separators.html +1 -1
- package/demo/elements/environment/environment-editor.html +1 -1
- package/demo/elements/environment/server-editor.html +1 -1
- package/demo/elements/environment/variables-editor.html +1 -1
- package/demo/elements/har/har-viewer.html +1 -1
- package/demo/elements/highlight/index.html +0 -4
- package/demo/elements/highlight/marked-highlight.html +1 -1
- package/demo/elements/highlight/prism-highlight.html +1 -1
- package/demo/elements/http/body-editor.html +1 -1
- package/demo/elements/http/headers.html +1 -1
- package/demo/elements/http/http-assertions.html +1 -1
- package/demo/elements/http/http-flows.html +1 -1
- package/demo/elements/http/request-editor.html +1 -1
- package/demo/elements/http/request-log.html +1 -1
- package/demo/elements/http/url-editing.html +1 -1
- package/demo/elements/icons/index.html +1 -1
- package/demo/elements/index.html +0 -3
- package/demo/elements/project/index.html +7 -0
- package/demo/elements/project/project-run-report.html +1 -1
- package/demo/elements/project/request-editor.html +1 -1
- package/demo/elements/user/user-avatar.html +1 -1
- package/demo/elements/user/user-avatar.ts +1 -1
- package/demo/index.html +3 -3
- package/demo/layout/index.html +1 -1
- package/demo/{elements/md → md}/UiDemoPage.ts +1 -1
- package/demo/{elements/md → md}/buttons/button.html +3 -3
- package/demo/{elements/md → md}/buttons/button.ts +10 -10
- package/demo/{elements/md → md}/buttons/icon-button.html +3 -3
- package/demo/{elements/md → md}/buttons/icon-button.ts +4 -4
- package/demo/{elements/md → md}/buttons/segmented-buttons.html +3 -3
- package/demo/{elements/md → md}/buttons/segmented-buttons.ts +4 -4
- package/demo/{elements/md → md}/chip/chip.html +3 -3
- package/demo/{elements/md → md}/chip/chip.ts +5 -5
- package/demo/{elements/md → md}/collapse/CustomDetail.ts +2 -2
- package/demo/{elements/md → md}/collapse/collapse.html +3 -3
- package/demo/{elements/md → md}/collapse/collapse.ts +1 -1
- package/demo/{elements/md → md}/dialog/dialog.html +7 -3
- package/demo/{elements/md → md}/dialog/dialog.ts +19 -12
- package/demo/{elements/md → md}/index.html +3 -3
- package/demo/{elements/md → md}/inputs/checkbox.html +3 -3
- package/demo/{elements/md → md}/inputs/checkbox.ts +4 -4
- package/demo/{elements/md → md}/inputs/input.html +3 -3
- package/demo/{elements/md → md}/inputs/input.ts +7 -7
- package/demo/{elements/md → md}/inputs/radio.html +3 -3
- package/demo/{elements/md → md}/inputs/radio.ts +4 -4
- package/demo/{elements/md → md}/inputs/switch.html +3 -3
- package/demo/{elements/md → md}/inputs/switch.ts +5 -5
- package/demo/{elements/md → md}/list/dropdown-list.html +3 -3
- package/demo/{elements/md → md}/list/dropdown-list.ts +9 -9
- package/demo/{elements/md → md}/list/list.html +3 -3
- package/demo/{elements/md → md}/list/list.ts +5 -5
- package/demo/{elements/md → md}/notification/snack.html +3 -3
- package/demo/{elements/md → md}/notification/snack.ts +2 -2
- package/demo/{elements/md → md}/progress/progress.html +3 -3
- package/demo/{elements/md → md}/progress/progress.ts +2 -2
- package/demo/{elements/md → md}/tabs/tabs.html +3 -3
- package/demo/{elements/md → md}/tabs/tabs.ts +7 -7
- package/demo/tsconfig.json +0 -3
- package/eslint.config.js +0 -3
- package/package.json +44 -71
- package/src/decorators/reactive.ts +18 -8
- package/src/index.ts +0 -19
- package/src/md/dialog/internals/Dialog.styles.ts +14 -10
- package/src/md/dialog/internals/Dialog.ts +6 -5
- package/test/core/activity.spec.ts +3 -3
- package/tsconfig.all.json +7 -0
- package/tsconfig.json +1 -0
- package/web-dev-server.config.js +21 -0
- package/web-test-runner.config.js +8 -28
- package/bin/dev.ts +0 -7
- package/bin/test.ts +0 -6
- package/build/src/amf/lib/AmfInputParser.d.ts +0 -69
- package/build/src/amf/lib/AmfInputParser.d.ts.map +0 -1
- package/build/src/amf/lib/AmfInputParser.js +0 -189
- package/build/src/amf/lib/AmfInputParser.js.map +0 -1
- package/build/src/amf/lib/AmfParameters.d.ts +0 -166
- package/build/src/amf/lib/AmfParameters.d.ts.map +0 -1
- package/build/src/amf/lib/AmfParameters.js +0 -720
- package/build/src/amf/lib/AmfParameters.js.map +0 -1
- package/build/src/amf/lib/AmfSecurity.d.ts +0 -7
- package/build/src/amf/lib/AmfSecurity.d.ts.map +0 -1
- package/build/src/amf/lib/AmfSecurity.js +0 -41
- package/build/src/amf/lib/AmfSecurity.js.map +0 -1
- package/build/src/amf/lib/InputCache.d.ts +0 -45
- package/build/src/amf/lib/InputCache.d.ts.map +0 -1
- package/build/src/amf/lib/InputCache.js +0 -92
- package/build/src/amf/lib/InputCache.js.map +0 -1
- package/build/src/amf/lib/Oauth2RamlCustomData.d.ts +0 -38
- package/build/src/amf/lib/Oauth2RamlCustomData.d.ts.map +0 -1
- package/build/src/amf/lib/Oauth2RamlCustomData.js +0 -248
- package/build/src/amf/lib/Oauth2RamlCustomData.js.map +0 -1
- package/build/src/amf/lib/PayloadUtils.d.ts +0 -19
- package/build/src/amf/lib/PayloadUtils.d.ts.map +0 -1
- package/build/src/amf/lib/PayloadUtils.js +0 -73
- package/build/src/amf/lib/PayloadUtils.js.map +0 -1
- package/build/src/amf/lib/QueryParameterProcessor.d.ts +0 -44
- package/build/src/amf/lib/QueryParameterProcessor.d.ts.map +0 -1
- package/build/src/amf/lib/QueryParameterProcessor.js +0 -167
- package/build/src/amf/lib/QueryParameterProcessor.js.map +0 -1
- package/build/src/amf/lib/UrlUtils.d.ts +0 -49
- package/build/src/amf/lib/UrlUtils.d.ts.map +0 -1
- package/build/src/amf/lib/UrlUtils.js +0 -209
- package/build/src/amf/lib/UrlUtils.js.map +0 -1
- package/build/src/amf/lib/Utils.d.ts +0 -43
- package/build/src/amf/lib/Utils.d.ts.map +0 -1
- package/build/src/amf/lib/Utils.js +0 -204
- package/build/src/amf/lib/Utils.js.map +0 -1
- package/build/src/amf/lib/navigation-layout/ApiSorting.d.ts +0 -8
- package/build/src/amf/lib/navigation-layout/ApiSorting.d.ts.map +0 -1
- package/build/src/amf/lib/navigation-layout/ApiSorting.js +0 -18
- package/build/src/amf/lib/navigation-layout/ApiSorting.js.map +0 -1
- package/build/src/amf/lib/navigation-layout/EndpointsTree.d.ts +0 -33
- package/build/src/amf/lib/navigation-layout/EndpointsTree.d.ts.map +0 -1
- package/build/src/amf/lib/navigation-layout/EndpointsTree.js +0 -178
- package/build/src/amf/lib/navigation-layout/EndpointsTree.js.map +0 -1
- package/build/src/amf/lib/navigation-layout/NaturalTree.d.ts +0 -25
- package/build/src/amf/lib/navigation-layout/NaturalTree.d.ts.map +0 -1
- package/build/src/amf/lib/navigation-layout/NaturalTree.js +0 -91
- package/build/src/amf/lib/navigation-layout/NaturalTree.js.map +0 -1
- package/build/src/amf/plugins/ApiNavigationCommands.d.ts +0 -4
- package/build/src/amf/plugins/ApiNavigationCommands.d.ts.map +0 -1
- package/build/src/amf/plugins/ApiNavigationCommands.js +0 -71
- package/build/src/amf/plugins/ApiNavigationCommands.js.map +0 -1
- package/build/src/amf/plugins/ApiNavigationContextMenu.d.ts +0 -16
- package/build/src/amf/plugins/ApiNavigationContextMenu.d.ts.map +0 -1
- package/build/src/amf/plugins/ApiNavigationContextMenu.js +0 -40
- package/build/src/amf/plugins/ApiNavigationContextMenu.js.map +0 -1
- package/build/src/amf/store/AmfGraphStore.d.ts +0 -39
- package/build/src/amf/store/AmfGraphStore.d.ts.map +0 -1
- package/build/src/amf/store/AmfGraphStore.js +0 -62
- package/build/src/amf/store/AmfGraphStore.js.map +0 -1
- package/build/src/amf/store/AmfStore.d.ts +0 -122
- package/build/src/amf/store/AmfStore.d.ts.map +0 -1
- package/build/src/amf/store/AmfStore.js +0 -171
- package/build/src/amf/store/AmfStore.js.map +0 -1
- package/build/src/amf/store/DomEventsAmfStore.d.ts +0 -6
- package/build/src/amf/store/DomEventsAmfStore.d.ts.map +0 -1
- package/build/src/amf/store/DomEventsAmfStore.js +0 -5
- package/build/src/amf/store/DomEventsAmfStore.js.map +0 -1
- package/build/src/amf/store/InMemAmfGraphStore.d.ts +0 -137
- package/build/src/amf/store/InMemAmfGraphStore.d.ts.map +0 -1
- package/build/src/amf/store/InMemAmfGraphStore.js +0 -586
- package/build/src/amf/store/InMemAmfGraphStore.js.map +0 -1
- package/build/src/amf/store/mixins/AmfStoreDomEventsMixin.d.ts +0 -38
- package/build/src/amf/store/mixins/AmfStoreDomEventsMixin.d.ts.map +0 -1
- package/build/src/amf/store/mixins/AmfStoreDomEventsMixin.js +0 -99
- package/build/src/amf/store/mixins/AmfStoreDomEventsMixin.js.map +0 -1
- package/build/src/amf/types.d.ts +0 -320
- package/build/src/amf/types.d.ts.map +0 -1
- package/build/src/amf/types.js +0 -2
- package/build/src/amf/types.js.map +0 -1
- package/build/src/define/amf/api-annotation-document.d.ts +0 -10
- package/build/src/define/amf/api-annotation-document.d.ts.map +0 -1
- package/build/src/define/amf/api-annotation-document.js +0 -27
- package/build/src/define/amf/api-annotation-document.js.map +0 -1
- package/build/src/define/amf/api-authorization-editor.d.ts +0 -10
- package/build/src/define/amf/api-authorization-editor.d.ts.map +0 -1
- package/build/src/define/amf/api-authorization-editor.js +0 -27
- package/build/src/define/amf/api-authorization-editor.js.map +0 -1
- package/build/src/define/amf/api-channel-document.d.ts +0 -10
- package/build/src/define/amf/api-channel-document.d.ts.map +0 -1
- package/build/src/define/amf/api-channel-document.js +0 -27
- package/build/src/define/amf/api-channel-document.js.map +0 -1
- package/build/src/define/amf/api-documentation-document.d.ts +0 -10
- package/build/src/define/amf/api-documentation-document.d.ts.map +0 -1
- package/build/src/define/amf/api-documentation-document.js +0 -27
- package/build/src/define/amf/api-documentation-document.js.map +0 -1
- package/build/src/define/amf/api-documentation.d.ts +0 -10
- package/build/src/define/amf/api-documentation.d.ts.map +0 -1
- package/build/src/define/amf/api-documentation.js +0 -27
- package/build/src/define/amf/api-documentation.js.map +0 -1
- package/build/src/define/amf/api-navigation.d.ts +0 -10
- package/build/src/define/amf/api-navigation.d.ts.map +0 -1
- package/build/src/define/amf/api-navigation.js +0 -27
- package/build/src/define/amf/api-navigation.js.map +0 -1
- package/build/src/define/amf/api-operation-document.d.ts +0 -10
- package/build/src/define/amf/api-operation-document.d.ts.map +0 -1
- package/build/src/define/amf/api-operation-document.js +0 -27
- package/build/src/define/amf/api-operation-document.js.map +0 -1
- package/build/src/define/amf/api-parameter-document.d.ts +0 -10
- package/build/src/define/amf/api-parameter-document.d.ts.map +0 -1
- package/build/src/define/amf/api-parameter-document.js +0 -27
- package/build/src/define/amf/api-parameter-document.js.map +0 -1
- package/build/src/define/amf/api-parametrized-security-scheme.d.ts +0 -10
- package/build/src/define/amf/api-parametrized-security-scheme.d.ts.map +0 -1
- package/build/src/define/amf/api-parametrized-security-scheme.js +0 -27
- package/build/src/define/amf/api-parametrized-security-scheme.js.map +0 -1
- package/build/src/define/amf/api-payload-document.d.ts +0 -10
- package/build/src/define/amf/api-payload-document.d.ts.map +0 -1
- package/build/src/define/amf/api-payload-document.js +0 -27
- package/build/src/define/amf/api-payload-document.js.map +0 -1
- package/build/src/define/amf/api-request-document.d.ts +0 -10
- package/build/src/define/amf/api-request-document.d.ts.map +0 -1
- package/build/src/define/amf/api-request-document.js +0 -27
- package/build/src/define/amf/api-request-document.js.map +0 -1
- package/build/src/define/amf/api-request-editor.d.ts +0 -10
- package/build/src/define/amf/api-request-editor.d.ts.map +0 -1
- package/build/src/define/amf/api-request-editor.js +0 -27
- package/build/src/define/amf/api-request-editor.js.map +0 -1
- package/build/src/define/amf/api-request.d.ts +0 -10
- package/build/src/define/amf/api-request.d.ts.map +0 -1
- package/build/src/define/amf/api-request.js +0 -27
- package/build/src/define/amf/api-request.js.map +0 -1
- package/build/src/define/amf/api-resource-document.d.ts +0 -10
- package/build/src/define/amf/api-resource-document.d.ts.map +0 -1
- package/build/src/define/amf/api-resource-document.js +0 -27
- package/build/src/define/amf/api-resource-document.js.map +0 -1
- package/build/src/define/amf/api-response-document.d.ts +0 -10
- package/build/src/define/amf/api-response-document.d.ts.map +0 -1
- package/build/src/define/amf/api-response-document.js +0 -27
- package/build/src/define/amf/api-response-document.js.map +0 -1
- package/build/src/define/amf/api-schema-document.d.ts +0 -10
- package/build/src/define/amf/api-schema-document.d.ts.map +0 -1
- package/build/src/define/amf/api-schema-document.js +0 -27
- package/build/src/define/amf/api-schema-document.js.map +0 -1
- package/build/src/define/amf/api-security-document.d.ts +0 -10
- package/build/src/define/amf/api-security-document.d.ts.map +0 -1
- package/build/src/define/amf/api-security-document.js +0 -27
- package/build/src/define/amf/api-security-document.js.map +0 -1
- package/build/src/define/amf/api-security-requirement-document.d.ts +0 -10
- package/build/src/define/amf/api-security-requirement-document.d.ts.map +0 -1
- package/build/src/define/amf/api-security-requirement-document.js +0 -27
- package/build/src/define/amf/api-security-requirement-document.js.map +0 -1
- package/build/src/define/amf/api-server-picker.d.ts +0 -10
- package/build/src/define/amf/api-server-picker.d.ts.map +0 -1
- package/build/src/define/amf/api-server-picker.js +0 -27
- package/build/src/define/amf/api-server-picker.js.map +0 -1
- package/build/src/define/amf/api-summary.d.ts +0 -10
- package/build/src/define/amf/api-summary.d.ts.map +0 -1
- package/build/src/define/amf/api-summary.js +0 -27
- package/build/src/define/amf/api-summary.js.map +0 -1
- package/build/src/define/amf/authorization/amf-apikey-authorization.d.ts +0 -10
- package/build/src/define/amf/authorization/amf-apikey-authorization.d.ts.map +0 -1
- package/build/src/define/amf/authorization/amf-apikey-authorization.js +0 -28
- package/build/src/define/amf/authorization/amf-apikey-authorization.js.map +0 -1
- package/build/src/define/amf/authorization/amf-basic-authorization.d.ts +0 -10
- package/build/src/define/amf/authorization/amf-basic-authorization.d.ts.map +0 -1
- package/build/src/define/amf/authorization/amf-basic-authorization.js +0 -28
- package/build/src/define/amf/authorization/amf-basic-authorization.js.map +0 -1
- package/build/src/define/amf/authorization/amf-bearer-authorization.d.ts +0 -10
- package/build/src/define/amf/authorization/amf-bearer-authorization.d.ts.map +0 -1
- package/build/src/define/amf/authorization/amf-bearer-authorization.js +0 -28
- package/build/src/define/amf/authorization/amf-bearer-authorization.js.map +0 -1
- package/build/src/define/amf/authorization/amf-oauth2-authorization.d.ts +0 -10
- package/build/src/define/amf/authorization/amf-oauth2-authorization.d.ts.map +0 -1
- package/build/src/define/amf/authorization/amf-oauth2-authorization.js +0 -31
- package/build/src/define/amf/authorization/amf-oauth2-authorization.js.map +0 -1
- package/build/src/define/amf/authorization/amf-oidc-authorization.d.ts +0 -10
- package/build/src/define/amf/authorization/amf-oidc-authorization.d.ts.map +0 -1
- package/build/src/define/amf/authorization/amf-oidc-authorization.js +0 -31
- package/build/src/define/amf/authorization/amf-oidc-authorization.js.map +0 -1
- package/build/src/define/amf/authorization/amf-passthrough-authorization.d.ts +0 -10
- package/build/src/define/amf/authorization/amf-passthrough-authorization.d.ts.map +0 -1
- package/build/src/define/amf/authorization/amf-passthrough-authorization.js +0 -28
- package/build/src/define/amf/authorization/amf-passthrough-authorization.js.map +0 -1
- package/build/src/define/amf/authorization/amf-ramlcustom-authorization.d.ts +0 -10
- package/build/src/define/amf/authorization/amf-ramlcustom-authorization.d.ts.map +0 -1
- package/build/src/define/amf/authorization/amf-ramlcustom-authorization.js +0 -28
- package/build/src/define/amf/authorization/amf-ramlcustom-authorization.js.map +0 -1
- package/build/src/elements/amf/ApiAnnotationDocument.element.d.ts +0 -61
- package/build/src/elements/amf/ApiAnnotationDocument.element.d.ts.map +0 -1
- package/build/src/elements/amf/ApiAnnotationDocument.element.js +0 -176
- package/build/src/elements/amf/ApiAnnotationDocument.element.js.map +0 -1
- package/build/src/elements/amf/ApiAnnotationDocument.styles.d.ts +0 -3
- package/build/src/elements/amf/ApiAnnotationDocument.styles.d.ts.map +0 -1
- package/build/src/elements/amf/ApiAnnotationDocument.styles.js +0 -46
- package/build/src/elements/amf/ApiAnnotationDocument.styles.js.map +0 -1
- package/build/src/elements/amf/ApiAuthorizationEditor.element.d.ts +0 -143
- package/build/src/elements/amf/ApiAuthorizationEditor.element.d.ts.map +0 -1
- package/build/src/elements/amf/ApiAuthorizationEditor.element.js +0 -379
- package/build/src/elements/amf/ApiAuthorizationEditor.element.js.map +0 -1
- package/build/src/elements/amf/ApiAuthorizationEditor.styles.d.ts +0 -3
- package/build/src/elements/amf/ApiAuthorizationEditor.styles.d.ts.map +0 -1
- package/build/src/elements/amf/ApiAuthorizationEditor.styles.js +0 -25
- package/build/src/elements/amf/ApiAuthorizationEditor.styles.js.map +0 -1
- package/build/src/elements/amf/ApiChannelDocument.element.d.ts +0 -28
- package/build/src/elements/amf/ApiChannelDocument.element.d.ts.map +0 -1
- package/build/src/elements/amf/ApiChannelDocument.element.js +0 -85
- package/build/src/elements/amf/ApiChannelDocument.element.js.map +0 -1
- package/build/src/elements/amf/ApiDocumentation.element.d.ts +0 -254
- package/build/src/elements/amf/ApiDocumentation.element.d.ts.map +0 -1
- package/build/src/elements/amf/ApiDocumentation.element.js +0 -686
- package/build/src/elements/amf/ApiDocumentation.element.js.map +0 -1
- package/build/src/elements/amf/ApiDocumentation.styles.d.ts +0 -3
- package/build/src/elements/amf/ApiDocumentation.styles.d.ts.map +0 -1
- package/build/src/elements/amf/ApiDocumentation.styles.js +0 -11
- package/build/src/elements/amf/ApiDocumentation.styles.js.map +0 -1
- package/build/src/elements/amf/ApiDocumentationBase.d.ts +0 -103
- package/build/src/elements/amf/ApiDocumentationBase.d.ts.map +0 -1
- package/build/src/elements/amf/ApiDocumentationBase.js +0 -291
- package/build/src/elements/amf/ApiDocumentationBase.js.map +0 -1
- package/build/src/elements/amf/ApiDocumentationDocument.element.d.ts +0 -29
- package/build/src/elements/amf/ApiDocumentationDocument.element.d.ts.map +0 -1
- package/build/src/elements/amf/ApiDocumentationDocument.element.js +0 -79
- package/build/src/elements/amf/ApiDocumentationDocument.element.js.map +0 -1
- package/build/src/elements/amf/ApiDocumentationDocument.styles.d.ts +0 -3
- package/build/src/elements/amf/ApiDocumentationDocument.styles.d.ts.map +0 -1
- package/build/src/elements/amf/ApiDocumentationDocument.styles.js +0 -32
- package/build/src/elements/amf/ApiDocumentationDocument.styles.js.map +0 -1
- package/build/src/elements/amf/ApiNavigation.element.d.ts +0 -579
- package/build/src/elements/amf/ApiNavigation.element.d.ts.map +0 -1
- package/build/src/elements/amf/ApiNavigation.element.js +0 -2244
- package/build/src/elements/amf/ApiNavigation.element.js.map +0 -1
- package/build/src/elements/amf/ApiNavigation.styles.d.ts +0 -3
- package/build/src/elements/amf/ApiNavigation.styles.d.ts.map +0 -1
- package/build/src/elements/amf/ApiNavigation.styles.js +0 -159
- package/build/src/elements/amf/ApiNavigation.styles.js.map +0 -1
- package/build/src/elements/amf/ApiOperationDocument.element.d.ts +0 -266
- package/build/src/elements/amf/ApiOperationDocument.element.d.ts.map +0 -1
- package/build/src/elements/amf/ApiOperationDocument.element.js +0 -1002
- package/build/src/elements/amf/ApiOperationDocument.element.js.map +0 -1
- package/build/src/elements/amf/ApiOperationDocument.styles.d.ts +0 -3
- package/build/src/elements/amf/ApiOperationDocument.styles.d.ts.map +0 -1
- package/build/src/elements/amf/ApiOperationDocument.styles.js +0 -67
- package/build/src/elements/amf/ApiOperationDocument.styles.js.map +0 -1
- package/build/src/elements/amf/ApiParameterDocument.element.d.ts +0 -32
- package/build/src/elements/amf/ApiParameterDocument.element.d.ts.map +0 -1
- package/build/src/elements/amf/ApiParameterDocument.element.js +0 -94
- package/build/src/elements/amf/ApiParameterDocument.element.js.map +0 -1
- package/build/src/elements/amf/ApiParameterDocument.styles.d.ts +0 -3
- package/build/src/elements/amf/ApiParameterDocument.styles.d.ts.map +0 -1
- package/build/src/elements/amf/ApiParameterDocument.styles.js +0 -15
- package/build/src/elements/amf/ApiParameterDocument.styles.js.map +0 -1
- package/build/src/elements/amf/ApiParametrizedSecurityScheme.element.d.ts +0 -19
- package/build/src/elements/amf/ApiParametrizedSecurityScheme.element.d.ts.map +0 -1
- package/build/src/elements/amf/ApiParametrizedSecurityScheme.element.js +0 -58
- package/build/src/elements/amf/ApiParametrizedSecurityScheme.element.js.map +0 -1
- package/build/src/elements/amf/ApiParametrizedSecurityScheme.styles.d.ts +0 -3
- package/build/src/elements/amf/ApiParametrizedSecurityScheme.styles.d.ts.map +0 -1
- package/build/src/elements/amf/ApiParametrizedSecurityScheme.styles.js +0 -4
- package/build/src/elements/amf/ApiParametrizedSecurityScheme.styles.js.map +0 -1
- package/build/src/elements/amf/ApiPayloadDocument.element.d.ts +0 -32
- package/build/src/elements/amf/ApiPayloadDocument.element.d.ts.map +0 -1
- package/build/src/elements/amf/ApiPayloadDocument.element.js +0 -131
- package/build/src/elements/amf/ApiPayloadDocument.element.js.map +0 -1
- package/build/src/elements/amf/ApiPayloadDocument.styles.d.ts +0 -3
- package/build/src/elements/amf/ApiPayloadDocument.styles.d.ts.map +0 -1
- package/build/src/elements/amf/ApiPayloadDocument.styles.js +0 -15
- package/build/src/elements/amf/ApiPayloadDocument.styles.js.map +0 -1
- package/build/src/elements/amf/ApiRequest.element.d.ts +0 -131
- package/build/src/elements/amf/ApiRequest.element.d.ts.map +0 -1
- package/build/src/elements/amf/ApiRequest.element.js +0 -318
- package/build/src/elements/amf/ApiRequest.element.js.map +0 -1
- package/build/src/elements/amf/ApiRequest.styles.d.ts +0 -3
- package/build/src/elements/amf/ApiRequest.styles.d.ts.map +0 -1
- package/build/src/elements/amf/ApiRequest.styles.js +0 -11
- package/build/src/elements/amf/ApiRequest.styles.js.map +0 -1
- package/build/src/elements/amf/ApiRequestDocument.element.d.ts +0 -115
- package/build/src/elements/amf/ApiRequestDocument.element.d.ts.map +0 -1
- package/build/src/elements/amf/ApiRequestDocument.element.js +0 -401
- package/build/src/elements/amf/ApiRequestDocument.element.js.map +0 -1
- package/build/src/elements/amf/ApiRequestDocument.styles.d.ts +0 -3
- package/build/src/elements/amf/ApiRequestDocument.styles.d.ts.map +0 -1
- package/build/src/elements/amf/ApiRequestDocument.styles.js +0 -13
- package/build/src/elements/amf/ApiRequestDocument.styles.js.map +0 -1
- package/build/src/elements/amf/ApiRequestEditor.element.d.ts +0 -485
- package/build/src/elements/amf/ApiRequestEditor.element.d.ts.map +0 -1
- package/build/src/elements/amf/ApiRequestEditor.element.js +0 -1735
- package/build/src/elements/amf/ApiRequestEditor.element.js.map +0 -1
- package/build/src/elements/amf/ApiRequestEditor.styles.d.ts +0 -3
- package/build/src/elements/amf/ApiRequestEditor.styles.d.ts.map +0 -1
- package/build/src/elements/amf/ApiRequestEditor.styles.js +0 -160
- package/build/src/elements/amf/ApiRequestEditor.styles.js.map +0 -1
- package/build/src/elements/amf/ApiResourceDocument.element.d.ts +0 -233
- package/build/src/elements/amf/ApiResourceDocument.element.d.ts.map +0 -1
- package/build/src/elements/amf/ApiResourceDocument.element.js +0 -706
- package/build/src/elements/amf/ApiResourceDocument.element.js.map +0 -1
- package/build/src/elements/amf/ApiResourceDocument.styles.d.ts +0 -3
- package/build/src/elements/amf/ApiResourceDocument.styles.d.ts.map +0 -1
- package/build/src/elements/amf/ApiResourceDocument.styles.js +0 -91
- package/build/src/elements/amf/ApiResourceDocument.styles.js.map +0 -1
- package/build/src/elements/amf/ApiResponseDocument.element.d.ts +0 -79
- package/build/src/elements/amf/ApiResponseDocument.element.d.ts.map +0 -1
- package/build/src/elements/amf/ApiResponseDocument.element.js +0 -298
- package/build/src/elements/amf/ApiResponseDocument.element.js.map +0 -1
- package/build/src/elements/amf/ApiResponseDocument.styles.d.ts +0 -3
- package/build/src/elements/amf/ApiResponseDocument.styles.d.ts.map +0 -1
- package/build/src/elements/amf/ApiResponseDocument.styles.js +0 -41
- package/build/src/elements/amf/ApiResponseDocument.styles.js.map +0 -1
- package/build/src/elements/amf/ApiSchemaDocument.element.d.ts +0 -144
- package/build/src/elements/amf/ApiSchemaDocument.element.d.ts.map +0 -1
- package/build/src/elements/amf/ApiSchemaDocument.element.js +0 -765
- package/build/src/elements/amf/ApiSchemaDocument.element.js.map +0 -1
- package/build/src/elements/amf/ApiSchemaDocument.styles.d.ts +0 -3
- package/build/src/elements/amf/ApiSchemaDocument.styles.d.ts.map +0 -1
- package/build/src/elements/amf/ApiSchemaDocument.styles.js +0 -41
- package/build/src/elements/amf/ApiSchemaDocument.styles.js.map +0 -1
- package/build/src/elements/amf/ApiSecurityDocument.element.d.ts +0 -180
- package/build/src/elements/amf/ApiSecurityDocument.element.d.ts.map +0 -1
- package/build/src/elements/amf/ApiSecurityDocument.element.js +0 -592
- package/build/src/elements/amf/ApiSecurityDocument.element.js.map +0 -1
- package/build/src/elements/amf/ApiSecurityDocument.styles.d.ts +0 -3
- package/build/src/elements/amf/ApiSecurityDocument.styles.d.ts.map +0 -1
- package/build/src/elements/amf/ApiSecurityDocument.styles.js +0 -89
- package/build/src/elements/amf/ApiSecurityDocument.styles.js.map +0 -1
- package/build/src/elements/amf/ApiSecurityRequirementDocument.element.d.ts +0 -16
- package/build/src/elements/amf/ApiSecurityRequirementDocument.element.d.ts.map +0 -1
- package/build/src/elements/amf/ApiSecurityRequirementDocument.element.js +0 -76
- package/build/src/elements/amf/ApiSecurityRequirementDocument.element.js.map +0 -1
- package/build/src/elements/amf/ApiSecurityRequirementDocument.styles.d.ts +0 -3
- package/build/src/elements/amf/ApiSecurityRequirementDocument.styles.d.ts.map +0 -1
- package/build/src/elements/amf/ApiSecurityRequirementDocument.styles.js +0 -7
- package/build/src/elements/amf/ApiSecurityRequirementDocument.styles.js.map +0 -1
- package/build/src/elements/amf/ApiServerPicker.element.d.ts +0 -256
- package/build/src/elements/amf/ApiServerPicker.element.d.ts.map +0 -1
- package/build/src/elements/amf/ApiServerPicker.element.js +0 -715
- package/build/src/elements/amf/ApiServerPicker.element.js.map +0 -1
- package/build/src/elements/amf/ApiServerPicker.styles.d.ts +0 -3
- package/build/src/elements/amf/ApiServerPicker.styles.d.ts.map +0 -1
- package/build/src/elements/amf/ApiServerPicker.styles.js +0 -25
- package/build/src/elements/amf/ApiServerPicker.styles.js.map +0 -1
- package/build/src/elements/amf/ApiSummary.element.d.ts +0 -90
- package/build/src/elements/amf/ApiSummary.element.d.ts.map +0 -1
- package/build/src/elements/amf/ApiSummary.element.js +0 -385
- package/build/src/elements/amf/ApiSummary.element.js.map +0 -1
- package/build/src/elements/amf/ApiSummary.styles.d.ts +0 -3
- package/build/src/elements/amf/ApiSummary.styles.d.ts.map +0 -1
- package/build/src/elements/amf/ApiSummary.styles.js +0 -192
- package/build/src/elements/amf/ApiSummary.styles.js.map +0 -1
- package/build/src/elements/amf/SchemaCommonTemplates.d.ts +0 -56
- package/build/src/elements/amf/SchemaCommonTemplates.d.ts.map +0 -1
- package/build/src/elements/amf/SchemaCommonTemplates.js +0 -499
- package/build/src/elements/amf/SchemaCommonTemplates.js.map +0 -1
- package/build/src/elements/amf/authorization/AmfApiKey.d.ts +0 -60
- package/build/src/elements/amf/authorization/AmfApiKey.d.ts.map +0 -1
- package/build/src/elements/amf/authorization/AmfApiKey.js +0 -237
- package/build/src/elements/amf/authorization/AmfApiKey.js.map +0 -1
- package/build/src/elements/amf/authorization/AmfBasic.d.ts +0 -16
- package/build/src/elements/amf/authorization/AmfBasic.d.ts.map +0 -1
- package/build/src/elements/amf/authorization/AmfBasic.js +0 -86
- package/build/src/elements/amf/authorization/AmfBasic.js.map +0 -1
- package/build/src/elements/amf/authorization/AmfBearer.d.ts +0 -15
- package/build/src/elements/amf/authorization/AmfBearer.d.ts.map +0 -1
- package/build/src/elements/amf/authorization/AmfBearer.js +0 -73
- package/build/src/elements/amf/authorization/AmfBearer.js.map +0 -1
- package/build/src/elements/amf/authorization/AmfOauth2.d.ts +0 -236
- package/build/src/elements/amf/authorization/AmfOauth2.d.ts.map +0 -1
- package/build/src/elements/amf/authorization/AmfOauth2.js +0 -795
- package/build/src/elements/amf/authorization/AmfOauth2.js.map +0 -1
- package/build/src/elements/amf/authorization/AmfOidc.d.ts +0 -14
- package/build/src/elements/amf/authorization/AmfOidc.d.ts.map +0 -1
- package/build/src/elements/amf/authorization/AmfOidc.js +0 -72
- package/build/src/elements/amf/authorization/AmfOidc.js.map +0 -1
- package/build/src/elements/amf/authorization/AmfPassThrough.d.ts +0 -58
- package/build/src/elements/amf/authorization/AmfPassThrough.d.ts.map +0 -1
- package/build/src/elements/amf/authorization/AmfPassThrough.js +0 -259
- package/build/src/elements/amf/authorization/AmfPassThrough.js.map +0 -1
- package/build/src/elements/amf/authorization/AmfRamlCustom.d.ts +0 -53
- package/build/src/elements/amf/authorization/AmfRamlCustom.d.ts.map +0 -1
- package/build/src/elements/amf/authorization/AmfRamlCustom.js +0 -291
- package/build/src/elements/amf/authorization/AmfRamlCustom.js.map +0 -1
- package/build/src/elements/amf/authorization/Authorization.styles.d.ts +0 -3
- package/build/src/elements/amf/authorization/Authorization.styles.d.ts.map +0 -1
- package/build/src/elements/amf/authorization/Authorization.styles.js +0 -40
- package/build/src/elements/amf/authorization/Authorization.styles.js.map +0 -1
- package/build/src/elements/amf/styles/AuthorizationMethod.d.ts +0 -3
- package/build/src/elements/amf/styles/AuthorizationMethod.d.ts.map +0 -1
- package/build/src/elements/amf/styles/AuthorizationMethod.js +0 -46
- package/build/src/elements/amf/styles/AuthorizationMethod.js.map +0 -1
- package/build/src/elements/amf/styles/Common.d.ts +0 -3
- package/build/src/elements/amf/styles/Common.d.ts.map +0 -1
- package/build/src/elements/amf/styles/Common.js +0 -150
- package/build/src/elements/amf/styles/Common.js.map +0 -1
- package/build/src/elements/amf/styles/SchemaCommon.d.ts +0 -3
- package/build/src/elements/amf/styles/SchemaCommon.d.ts.map +0 -1
- package/build/src/elements/amf/styles/SchemaCommon.js +0 -376
- package/build/src/elements/amf/styles/SchemaCommon.js.map +0 -1
- package/build/src/events/amf/ApiEvents.d.ts +0 -25
- package/build/src/events/amf/ApiEvents.d.ts.map +0 -1
- package/build/src/events/amf/ApiEvents.js +0 -42
- package/build/src/events/amf/ApiEvents.js.map +0 -1
- package/build/src/events/amf/BaseEvents.d.ts +0 -69
- package/build/src/events/amf/BaseEvents.d.ts.map +0 -1
- package/build/src/events/amf/BaseEvents.js +0 -64
- package/build/src/events/amf/BaseEvents.js.map +0 -1
- package/build/src/events/amf/DocumentationEvents.d.ts +0 -17
- package/build/src/events/amf/DocumentationEvents.d.ts.map +0 -1
- package/build/src/events/amf/DocumentationEvents.js +0 -27
- package/build/src/events/amf/DocumentationEvents.js.map +0 -1
- package/build/src/events/amf/EndpointEvents.d.ts +0 -21
- package/build/src/events/amf/EndpointEvents.d.ts.map +0 -1
- package/build/src/events/amf/EndpointEvents.js +0 -35
- package/build/src/events/amf/EndpointEvents.js.map +0 -1
- package/build/src/events/amf/EventTypes.d.ts +0 -65
- package/build/src/events/amf/EventTypes.d.ts.map +0 -1
- package/build/src/events/amf/EventTypes.js +0 -65
- package/build/src/events/amf/EventTypes.js.map +0 -1
- package/build/src/events/amf/Events.d.ts +0 -63
- package/build/src/events/amf/Events.d.ts.map +0 -1
- package/build/src/events/amf/Events.js +0 -38
- package/build/src/events/amf/Events.js.map +0 -1
- package/build/src/events/amf/NavigationEvents.d.ts +0 -50
- package/build/src/events/amf/NavigationEvents.d.ts.map +0 -1
- package/build/src/events/amf/NavigationEvents.js +0 -59
- package/build/src/events/amf/NavigationEvents.js.map +0 -1
- package/build/src/events/amf/OperationEvents.d.ts +0 -17
- package/build/src/events/amf/OperationEvents.d.ts.map +0 -1
- package/build/src/events/amf/OperationEvents.js +0 -27
- package/build/src/events/amf/OperationEvents.js.map +0 -1
- package/build/src/events/amf/PayloadEvents.d.ts +0 -10
- package/build/src/events/amf/PayloadEvents.d.ts.map +0 -1
- package/build/src/events/amf/PayloadEvents.js +0 -16
- package/build/src/events/amf/PayloadEvents.js.map +0 -1
- package/build/src/events/amf/ReportingEvents.d.ts +0 -16
- package/build/src/events/amf/ReportingEvents.d.ts.map +0 -1
- package/build/src/events/amf/ReportingEvents.js +0 -22
- package/build/src/events/amf/ReportingEvents.js.map +0 -1
- package/build/src/events/amf/RequestEvents.d.ts +0 -10
- package/build/src/events/amf/RequestEvents.d.ts.map +0 -1
- package/build/src/events/amf/RequestEvents.js +0 -15
- package/build/src/events/amf/RequestEvents.js.map +0 -1
- package/build/src/events/amf/ResponseEvents.d.ts +0 -10
- package/build/src/events/amf/ResponseEvents.d.ts.map +0 -1
- package/build/src/events/amf/ResponseEvents.js +0 -16
- package/build/src/events/amf/ResponseEvents.js.map +0 -1
- package/build/src/events/amf/SecurityEvents.d.ts +0 -31
- package/build/src/events/amf/SecurityEvents.d.ts.map +0 -1
- package/build/src/events/amf/SecurityEvents.js +0 -53
- package/build/src/events/amf/SecurityEvents.js.map +0 -1
- package/build/src/events/amf/ServerEvents.d.ts +0 -63
- package/build/src/events/amf/ServerEvents.d.ts.map +0 -1
- package/build/src/events/amf/ServerEvents.js +0 -70
- package/build/src/events/amf/ServerEvents.js.map +0 -1
- package/build/src/events/amf/StoreEvents.d.ts +0 -8
- package/build/src/events/amf/StoreEvents.d.ts.map +0 -1
- package/build/src/events/amf/StoreEvents.js +0 -16
- package/build/src/events/amf/StoreEvents.js.map +0 -1
- package/build/src/events/amf/TelemetryEvents.d.ts +0 -79
- package/build/src/events/amf/TelemetryEvents.d.ts.map +0 -1
- package/build/src/events/amf/TelemetryEvents.js +0 -65
- package/build/src/events/amf/TelemetryEvents.js.map +0 -1
- package/build/src/events/amf/TypeEvents.d.ts +0 -16
- package/build/src/events/amf/TypeEvents.d.ts.map +0 -1
- package/build/src/events/amf/TypeEvents.js +0 -25
- package/build/src/events/amf/TypeEvents.js.map +0 -1
- package/demo/amf/api-annotation.html +0 -21
- package/demo/amf/api-annotation.ts +0 -117
- package/demo/amf/api-channel.html +0 -25
- package/demo/amf/api-channel.ts +0 -76
- package/demo/amf/api-console.html +0 -23
- package/demo/amf/api-console.ts +0 -505
- package/demo/amf/api-documentation-document.html +0 -25
- package/demo/amf/api-documentation-document.ts +0 -79
- package/demo/amf/api-documentation.html +0 -25
- package/demo/amf/api-documentation.ts +0 -242
- package/demo/amf/api-navigation.html +0 -29
- package/demo/amf/api-navigation.ts +0 -278
- package/demo/amf/api-operation.html +0 -37
- package/demo/amf/api-operation.ts +0 -274
- package/demo/amf/api-payload.html +0 -25
- package/demo/amf/api-payload.ts +0 -176
- package/demo/amf/api-request.html +0 -24
- package/demo/amf/api-request.ts +0 -259
- package/demo/amf/api-resource.html +0 -31
- package/demo/amf/api-resource.ts +0 -264
- package/demo/amf/api-schema-documentation.html +0 -25
- package/demo/amf/api-schema-documentation.ts +0 -207
- package/demo/amf/api-security-documentation.html +0 -25
- package/demo/amf/api-security-documentation.ts +0 -94
- package/demo/amf/api-server-picker.html +0 -24
- package/demo/amf/api-server-picker.ts +0 -233
- package/demo/amf/api-summary.html +0 -25
- package/demo/amf/api-summary.ts +0 -84
- package/demo/amf/bare-components.css +0 -11
- package/demo/amf/bare-components.html +0 -38
- package/demo/amf/bare-components.ts +0 -18
- package/demo/amf/demo.css +0 -136
- package/demo/amf/index.html +0 -65
- package/demo/amf/lib/AmfDemoPage.ts +0 -285
- package/demo/amf/oauth-authorize.html +0 -74
- package/demo/amf/oauth-authorize.ts +0 -40
- package/demo/amf/request-editor.html +0 -24
- package/demo/amf/request-editor.ts +0 -267
- package/demo/amf/styles/api-console.css +0 -60
- package/demo/amf/styles/api-editor.css +0 -139
- package/demo/amf/styles/console-theme.css +0 -0
- package/demo/amf/styles/demo-grid.css +0 -26
- package/demo/apis/21143/21143.json +0 -638
- package/demo/apis/APIC-15/APIC-15.raml +0 -36
- package/demo/apis/APIC-15/data-types/organization-data-type.raml +0 -19
- package/demo/apis/APIC-15/examples/organization/organization-array-response.raml +0 -15
- package/demo/apis/APIC-15/examples/organization/organization-individual-response.raml +0 -8
- package/demo/apis/APIC-168/APIC-168.raml +0 -38
- package/demo/apis/APIC-282/APIC-282.raml +0 -57
- package/demo/apis/APIC-289/APIC-289.yaml +0 -21
- package/demo/apis/APIC-298/APIC-298.json +0 -588
- package/demo/apis/APIC-332/APIC-332.raml +0 -22
- package/demo/apis/APIC-349-cache-resolution/APIC-349-cache-resolution.raml +0 -141
- package/demo/apis/APIC-349-cache-resolution/docs/DocumentationItem-1.raml +0 -3
- package/demo/apis/APIC-349-cache-resolution/docs/api.md +0 -1
- package/demo/apis/APIC-349-cache-resolution/docs/documentationTitle.md +0 -1
- package/demo/apis/APIC-349-cache-resolution/examples/usingObj-example.json +0 -19
- package/demo/apis/APIC-349-cache-resolution/examples/usingObj-example2.json +0 -19
- package/demo/apis/APIC-349-cache-resolution/libraries/schema.json +0 -21
- package/demo/apis/APIC-349-cache-resolution/libraries/types.raml +0 -88
- package/demo/apis/APIC-390/APIC-390.raml +0 -13
- package/demo/apis/APIC-390/Types/ISO-standards.raml +0 -30
- package/demo/apis/APIC-429/APIC-429.yaml +0 -63
- package/demo/apis/APIC-435/APIC-435.yaml +0 -27
- package/demo/apis/APIC-449/APIC-449.yaml +0 -8
- package/demo/apis/APIC-463/APIC-463.raml +0 -13
- package/demo/apis/APIC-480/APIC-480.raml +0 -61
- package/demo/apis/APIC-480/examples/account-response.json +0 -5
- package/demo/apis/APIC-483/APIC-483.raml +0 -16
- package/demo/apis/APIC-483/example/list-of-bank-succ.json +0 -32
- package/demo/apis/APIC-483/schema/response-retrieve-list-bank.json +0 -68
- package/demo/apis/APIC-550/APIC-550.raml +0 -46
- package/demo/apis/APIC-553/APIC-553.raml +0 -59
- package/demo/apis/APIC-554/APIC-554.raml +0 -6
- package/demo/apis/APIC-554-ii/APIC-554-ii.raml +0 -5
- package/demo/apis/APIC-560/APIC-560.yaml +0 -209
- package/demo/apis/APIC-582/APIC-582.yaml +0 -23
- package/demo/apis/APIC-613/APIC-613.raml +0 -16
- package/demo/apis/APIC-631/APIC-631.raml +0 -20
- package/demo/apis/APIC-641/APIC-641.yaml +0 -29
- package/demo/apis/APIC-649/APIC-649.yaml +0 -118
- package/demo/apis/APIC-650/APIC-650.yaml +0 -24
- package/demo/apis/APIC-650/common-parameters.yaml +0 -23
- package/demo/apis/APIC-667/APIC-667.raml +0 -30
- package/demo/apis/APIC-671/APIC-671.yaml +0 -387
- package/demo/apis/APIC-689/APIC-689.raml +0 -20
- package/demo/apis/APIC-711/APIC-711.raml +0 -41
- package/demo/apis/SE-10469/Purchase-Order-oagis-id-dd32f9c6c01048a19e15c423c9c741ae.json +0 -1383
- package/demo/apis/SE-10469/SE-10469.raml +0 -11
- package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-address.raml +0 -126
- package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-base.raml +0 -31
- package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-basic-questions-set.raml +0 -42
- package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-code-description.raml +0 -36
- package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-code-origin.raml +0 -24
- package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-contact-information.raml +0 -69
- package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-content-data.raml +0 -19
- package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-content-metadata.raml +0 -243
- package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-content.raml +0 -47
- package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-contextual.raml +0 -18
- package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-currency.raml +0 -22
- package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-document-statistic.raml +0 -44
- package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-email-address.raml +0 -19
- package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-error.raml +0 -33
- package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-habit.raml +0 -61
- package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-language.raml +0 -32
- package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-log-entry.raml +0 -92
- package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-master-key.raml +0 -49
- package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-organization.raml +0 -38
- package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-party.raml +0 -37
- package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-performance-node.raml +0 -43
- package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-performance-report.raml +0 -22
- package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-person-name.raml +0 -45
- package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-person.raml +0 -103
- package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-phone.raml +0 -32
- package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-policyholder.raml +0 -1
- package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-preferable.raml +0 -15
- package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-property.raml +0 -61
- package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-role.raml +0 -51
- package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-social-media-account.raml +0 -28
- package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-source.raml +0 -65
- package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/data-types/dataType-version.raml +0 -36
- package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/docs/Legal.raml +0 -3
- package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/examples/example-error.raml +0 -7
- package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/examples/example-get-health-check.raml +0 -16
- package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/examples/example-performance-report.raml +0 -23
- package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/exchange.json +0 -1
- package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/libraries/library-address.raml +0 -7
- package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/libraries/library-base.raml +0 -3
- package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/libraries/library-basic-questions-set.raml +0 -7
- package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/libraries/library-code-description.raml +0 -7
- package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/libraries/library-contact-info.raml +0 -3
- package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/libraries/library-content.raml +0 -5
- package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/libraries/library-context-and-preference.raml +0 -4
- package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/libraries/library-email.raml +0 -7
- package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/libraries/library-entity.raml +0 -36
- package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/libraries/library-error.raml +0 -3
- package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/libraries/library-habit.raml +0 -7
- package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/libraries/library-language.raml +0 -7
- package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/libraries/library-master-key.raml +0 -3
- package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/libraries/library-organization.raml +0 -4
- package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/libraries/library-party.raml +0 -8
- package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/libraries/library-performance.raml +0 -8
- package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/libraries/library-person-name.raml +0 -3
- package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/libraries/library-person.raml +0 -7
- package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/libraries/library-phone.raml +0 -7
- package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/libraries/library-property.raml +0 -7
- package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/libraries/library-role.raml +0 -6
- package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/libraries/library-social-media.raml +0 -7
- package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/libraries/library-source.raml +0 -7
- package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/libraries/library-traits.raml +0 -11
- package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/libraries/library-version.raml +0 -7
- package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/resource-types/resourceType-applicable-to-collection-actions.raml +0 -51
- package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/resource-types/resourceType-applicable-to-collections.raml +0 -157
- package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/resource-types/resourceType-applicable-to-item-actions.raml +0 -48
- package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/resource-types/resourceType-applicable-to-items.raml +0 -154
- package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/resource-types/resourceType-get-health-check.raml +0 -39
- package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/security-schemes/securityScheme-basic.raml +0 -4
- package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/traits/trait-asynchronously-callable.raml +0 -12
- package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/traits/trait-filterable.raml +0 -19
- package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/traits/trait-identifyable.raml +0 -50
- package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/traits/trait-pageable.raml +0 -40
- package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/traits/trait-performance-monitorable.raml +0 -31
- package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/traits/trait-routable.raml +0 -22
- package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/traits/trait-selectable.raml +0 -140
- package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/traits/trait-sortable.raml +0 -20
- package/demo/apis/SE-11155/1/2/aflac-canonical-definitions/1.0.0/traits/trait-traceable.raml +0 -24
- package/demo/apis/SE-11155/SE-11155.raml +0 -43
- package/demo/apis/SE-11155/data-types/dataType-archive-users-request.raml +0 -19
- package/demo/apis/SE-11155/data-types/dataType-archive-users-response.raml +0 -20
- package/demo/apis/SE-11155/data-types/dataType-restore-user-request.raml +0 -1
- package/demo/apis/SE-11155/data-types/dataType-restore-user-response.raml +0 -1
- package/demo/apis/SE-11155/data-types/dataType-user.raml +0 -53
- package/demo/apis/SE-11155/examples/user-action-restore-user-200.raml +0 -3
- package/demo/apis/SE-11155/examples/user-action-restore-user-cds-202.raml +0 -7
- package/demo/apis/SE-11155/examples/user-action-restore-user.raml +0 -3
- package/demo/apis/SE-11155/examples/user-delete-cds-200.raml +0 -4
- package/demo/apis/SE-11155/examples/user-delete-cds-202.raml +0 -11
- package/demo/apis/SE-11155/examples/user-get-200.raml +0 -17
- package/demo/apis/SE-11155/examples/user-patch-200.raml +0 -14
- package/demo/apis/SE-11155/examples/user-patch-cds-200.raml +0 -4
- package/demo/apis/SE-11155/examples/user-patch-cds-202.raml +0 -7
- package/demo/apis/SE-11155/examples/user-patch.raml +0 -14
- package/demo/apis/SE-11155/examples/user-put-200.raml +0 -17
- package/demo/apis/SE-11155/examples/user-put-cds-200.raml +0 -4
- package/demo/apis/SE-11155/examples/user-put-cds-202.raml +0 -11
- package/demo/apis/SE-11155/examples/user-put.raml +0 -17
- package/demo/apis/SE-11155/examples/users-action-archive-users-200.raml +0 -5
- package/demo/apis/SE-11155/examples/users-action-archive-users-cds-200.raml +0 -5
- package/demo/apis/SE-11155/examples/users-action-archive-users.raml +0 -5
- package/demo/apis/SE-11155/examples/users-delete-cds-200.raml +0 -4
- package/demo/apis/SE-11155/examples/users-delete-cds-202.raml +0 -11
- package/demo/apis/SE-11155/examples/users-get-200.raml +0 -47
- package/demo/apis/SE-11155/examples/users-patch-200.raml +0 -32
- package/demo/apis/SE-11155/examples/users-patch-cds-200.raml +0 -4
- package/demo/apis/SE-11155/examples/users-patch-cds-202.raml +0 -11
- package/demo/apis/SE-11155/examples/users-patch.raml +0 -14
- package/demo/apis/SE-11155/examples/users-post-cds-200.raml +0 -4
- package/demo/apis/SE-11155/examples/users-post-cds-202.raml +0 -11
- package/demo/apis/SE-11155/examples/users-post-multi-200.raml +0 -47
- package/demo/apis/SE-11155/examples/users-post-multi.raml +0 -44
- package/demo/apis/SE-11155/examples/users-post-single-200.raml +0 -17
- package/demo/apis/SE-11155/examples/users-post-single.raml +0 -16
- package/demo/apis/SE-11155/libraries/library.raml +0 -16
- package/demo/apis/SE-11415/SE-11415.raml +0 -94
- package/demo/apis/SE-11415/canda-commons/canda-commons.raml +0 -50
- package/demo/apis/SE-11415/canda-commons/ref/log-levels-example.json +0 -3
- package/demo/apis/SE-11415/canda-commons/ref/log-levels-response-example.json +0 -3
- package/demo/apis/SE-11415/canda-commons/ref/log-levels-response-schema.json +0 -10
- package/demo/apis/SE-11415/canda-commons/ref/log-levels-schema.json +0 -30
- package/demo/apis/SE-11415/ref/additions-example.json +0 -12
- package/demo/apis/SE-11415/ref/additions-schema.json +0 -43
- package/demo/apis/SE-11415/ref/companies-example.json +0 -11
- package/demo/apis/SE-11415/ref/companies-schema.json +0 -36
- package/demo/apis/SE-11415/ref/greeting-example.json +0 -4
- package/demo/apis/SE-11415/ref/greeting-schema.json +0 -22
- package/demo/apis/SE-11415/ref/greetings-example.json +0 -15
- package/demo/apis/SE-11415/ref/greetings-schema.json +0 -34
- package/demo/apis/SE-11415/ref/jms-message-response-exmaple.json +0 -7
- package/demo/apis/SE-11415/ref/log-levels-example.json +0 -3
- package/demo/apis/SE-11415/ref/log-levels-response-example.json +0 -3
- package/demo/apis/SE-11415/ref/log-levels-response-schema.json +0 -10
- package/demo/apis/SE-11415/ref/log-levels-schema.json +0 -30
- package/demo/apis/SE-11508/SE-11508.raml +0 -257
- package/demo/apis/SE-11508/examples/change-credentials-post-201.raml +0 -9
- package/demo/apis/SE-11508/examples/convert-aggregator-quote-post-201.raml +0 -19
- package/demo/apis/SE-11508/examples/create-quote-post-200.raml +0 -12
- package/demo/apis/SE-11508/examples/create-quote-post-201.raml +0 -8
- package/demo/apis/SE-11508/examples/create-quote-post-request.raml +0 -19
- package/demo/apis/SE-11508/examples/customer-accounts-get-200.raml +0 -41
- package/demo/apis/SE-11508/examples/customer-accounts-patch-request.raml +0 -31
- package/demo/apis/SE-11508/examples/retrieve-quotes-post-200.raml +0 -17
- package/demo/apis/SE-11508/examples/send-correspondence-post-request.raml +0 -34
- package/demo/apis/SE-11508/examples/validate-credentials-post-200.raml +0 -30
- package/demo/apis/SE-11508/examples/validate-customer-account-hash-post-400.raml +0 -10
- package/demo/apis/SE-11508/examples/validate-customer-account-hash-post-request.raml +0 -7
- package/demo/apis/SE-11508/examples/validate-customer-account-post-200.raml +0 -76
- package/demo/apis/SE-11508/examples/validate-customer-account-post-400.raml +0 -10
- package/demo/apis/SE-11508/examples/validate-customer-account-post-request.raml +0 -8
- package/demo/apis/SE-11508/exchange_modules2/26d603ba-9696-4993-b97e-f568e49c27ac/securityscheme-system/0.0.4/auth.raml +0 -10
- package/demo/apis/SE-11508/exchange_modules2/26d603ba-9696-4993-b97e-f568e49c27ac/traits-system/0.0.19/api-headers-trait.raml +0 -20
- package/demo/apis/SE-11508/exchange_modules2/26d603ba-9696-4993-b97e-f568e49c27ac/traits-system/0.0.19/bad-responses.raml +0 -30
- package/demo/apis/SE-11508/exchange_modules2/26d603ba-9696-4993-b97e-f568e49c27ac/traits-system/0.0.19/create.raml +0 -30
- package/demo/apis/SE-11508/exchange_modules2/26d603ba-9696-4993-b97e-f568e49c27ac/traits-system/0.0.19/customer-account-filter-trait.raml +0 -8
- package/demo/apis/SE-11508/exchange_modules2/26d603ba-9696-4993-b97e-f568e49c27ac/traits-system/0.0.19/delete.raml +0 -48
- package/demo/apis/SE-11508/exchange_modules2/26d603ba-9696-4993-b97e-f568e49c27ac/traits-system/0.0.19/payment.raml +0 -10
- package/demo/apis/SE-11508/exchange_modules2/26d603ba-9696-4993-b97e-f568e49c27ac/traits-system/0.0.19/policy-filter-trait.raml +0 -8
- package/demo/apis/SE-11508/exchange_modules2/26d603ba-9696-4993-b97e-f568e49c27ac/traits-system/0.0.19/read.raml +0 -48
- package/demo/apis/SE-11508/exchange_modules2/26d603ba-9696-4993-b97e-f568e49c27ac/traits-system/0.0.19/types/common-responses.raml +0 -8
- package/demo/apis/SE-11508/exchange_modules2/26d603ba-9696-4993-b97e-f568e49c27ac/traits-system/0.0.19/types/error.raml +0 -12
- package/demo/apis/SE-11508/exchange_modules2/26d603ba-9696-4993-b97e-f568e49c27ac/traits-system/0.0.19/underwriting.raml +0 -11
- package/demo/apis/SE-11508/exchange_modules2/26d603ba-9696-4993-b97e-f568e49c27ac/traits-system/0.0.19/update.raml +0 -48
- package/demo/apis/SE-11508/model-system/api-headers.raml +0 -8
- package/demo/apis/SE-11508/model-system/api-strict-headers.raml +0 -25
- package/demo/apis/SE-11508/model-system/change-credentials-type.raml +0 -11
- package/demo/apis/SE-11508/model-system/convert-aggregator-quote-types.raml +0 -25
- package/demo/apis/SE-11508/model-system/create-quote-types.raml +0 -35
- package/demo/apis/SE-11508/model-system/customer-accounts-types.raml +0 -57
- package/demo/apis/SE-11508/model-system/ping-error-messages-types.raml +0 -17
- package/demo/apis/SE-11508/model-system/ping-validate-credentials.raml +0 -16
- package/demo/apis/SE-11508/model-system/retrieve-quotes-types.raml +0 -40
- package/demo/apis/SE-12042/SE-12042.raml +0 -52
- package/demo/apis/SE-12042/dataTypes/CheckAPIStatus.raml +0 -25
- package/demo/apis/SE-12042/examples/CheckAPIStatusExample1.raml +0 -7
- package/demo/apis/SE-12042/examples/CheckAPIStatusExample2.raml +0 -7
- package/demo/apis/SE-12042/securitySchemes/x-clientIdSecret.raml +0 -18
- package/demo/apis/SE-12224/SE-12224.raml +0 -89
- package/demo/apis/SE-12224/dataTypes/product.raml +0 -15
- package/demo/apis/SE-12224/dataTypes/products.raml +0 -5
- package/demo/apis/SE-12224/examples/product.json +0 -8
- package/demo/apis/SE-12224/examples/products.json +0 -8
- package/demo/apis/SE-12224/exchange_modules/ae8da8e3-99e3-4a45-acfa-86136e9d991f/ashley-base/1.0.2/error.raml +0 -14
- package/demo/apis/SE-12224/exchange_modules/ae8da8e3-99e3-4a45-acfa-86136e9d991f/ashley-base/1.0.2/examples/error.json +0 -13
- package/demo/apis/SE-12224/exchange_modules/ae8da8e3-99e3-4a45-acfa-86136e9d991f/ashley-base/1.0.2/examples/innerError.json +0 -7
- package/demo/apis/SE-12224/exchange_modules/ae8da8e3-99e3-4a45-acfa-86136e9d991f/ashley-base/1.0.2/exchange.json +0 -1
- package/demo/apis/SE-12224/exchange_modules/ae8da8e3-99e3-4a45-acfa-86136e9d991f/ashley-base/1.0.2/innerError.raml +0 -20
- package/demo/apis/SE-12224/exchange_modules/ae8da8e3-99e3-4a45-acfa-86136e9d991f/ashley-base/1.0.2/orderable.raml +0 -13
- package/demo/apis/SE-12224/exchange_modules/ae8da8e3-99e3-4a45-acfa-86136e9d991f/ashley-base/1.0.2/pageable.raml +0 -15
- package/demo/apis/SE-12224/exchange_modules/ae8da8e3-99e3-4a45-acfa-86136e9d991f/ashley-base/1.0.2/searchable.raml +0 -8
- package/demo/apis/SE-12224/exchange_modules/ae8da8e3-99e3-4a45-acfa-86136e9d991f/ashley-base/1.0.2/secured-by-aad-oauth2.raml +0 -15
- package/demo/apis/SE-12224/exchange_modules/ae8da8e3-99e3-4a45-acfa-86136e9d991f/ashley-base/1.0.2/secured-by-basic-authentication.raml +0 -10
- package/demo/apis/SE-12224/exchange_modules/ae8da8e3-99e3-4a45-acfa-86136e9d991f/ashley-base/1.0.2/secured-by-client-id-secret.raml +0 -15
- package/demo/apis/SE-12224/exchange_modules/ae8da8e3-99e3-4a45-acfa-86136e9d991f/ashley-base/1.0.2/secured-by-mule-oauth2.raml +0 -15
- package/demo/apis/SE-12291/SE-12291.json +0 -357
- package/demo/apis/SE-12752/SE-12752.raml +0 -36
- package/demo/apis/SE-12957/SE-12957.json +0 -741
- package/demo/apis/SE-12959/SE-12959.json +0 -741
- package/demo/apis/SE-17897/SE-17897.yaml +0 -21
- package/demo/apis/SE-19215/SE-19215.raml +0 -7
- package/demo/apis/SE-19500/SE-19500.raml +0 -95
- package/demo/apis/SE-19500/docs/home.md +0 -1
- package/demo/apis/SE-19500/modules/canada-commons/canda-commons.raml +0 -64
- package/demo/apis/SE-19500/modules/canada-commons/ref/log-levels-example.json +0 -3
- package/demo/apis/SE-19500/modules/canada-commons/ref/log-levels-response-example.json +0 -3
- package/demo/apis/SE-19500/modules/canada-commons/ref/log-levels-response-schema.json +0 -10
- package/demo/apis/SE-19500/modules/canada-commons/ref/log-levels-schema.json +0 -30
- package/demo/apis/SE-19500/modules/canada-commons/ref/ping-example.json +0 -7
- package/demo/apis/SE-19500/modules/canada-commons/ref/ping-schema.json +0 -49
- package/demo/apis/SE-19500/modules/canda-mule4-example-data-types/api.raml +0 -6
- package/demo/apis/SE-19500/modules/canda-mule4-example-data-types/examples/greeting-example.json +0 -4
- package/demo/apis/SE-19500/modules/canda-mule4-example-data-types/examples/greetings-example.json +0 -15
- package/demo/apis/SE-19500/modules/canda-mule4-example-data-types/types/greeting-schema.json +0 -22
- package/demo/apis/SE-19500/modules/canda-mule4-example-data-types/types/greetings-schema.json +0 -34
- package/demo/apis/SE-19500/ref/companies-example.json +0 -14
- package/demo/apis/SE-19500/ref/companies-schema.json +0 -70
- package/demo/apis/Streetlights/streetlights.yaml +0 -36
- package/demo/apis/aap-1698/aap-1698.raml +0 -26
- package/demo/apis/amf-helper-api/amf-helper-api.raml +0 -1024
- package/demo/apis/amf-helper-api/examples/comment-example.json +0 -42
- package/demo/apis/amf-helper-api/examples/commentCreateRequest-example.json +0 -7
- package/demo/apis/amf-helper-api/examples/commentList-example.json +0 -48
- package/demo/apis/amf-helper-api/examples/person.json +0 -14
- package/demo/apis/amf-helper-api/examples/person.raml +0 -13
- package/demo/apis/amf-helper-api/examples/person.xml +0 -14
- package/demo/apis/amf-helper-api/libraries/comment-lib.raml +0 -143
- package/demo/apis/amf-helper-api/library.raml +0 -7
- package/demo/apis/amf-helper-api/schemas/person.json +0 -104
- package/demo/apis/amf-helper-api/schemas/person.xsd +0 -26
- package/demo/apis/amf-helper-api/traits/file.raml +0 -33
- package/demo/apis/amf-helper-api/traits/pagination.raml +0 -80
- package/demo/apis/amf-helper-api/traits/results.raml +0 -19
- package/demo/apis/amf-helper-api/traits/visibility.raml +0 -14
- package/demo/apis/amf-helper-api/types/app-person.raml +0 -101
- package/demo/apis/amf-helper-api/types/dimensions.raml +0 -24
- package/demo/apis/amf-helper-api/types/external-type.raml +0 -7
- package/demo/apis/amf-helper-api/types/image.raml +0 -23
- package/demo/apis/amf-helper-api/types/product.raml +0 -52
- package/demo/apis/amf-helper-api/types/resource.raml +0 -11
- package/demo/apis/amf-helper-api/types/standard-request.raml +0 -50
- package/demo/apis/amf-helper-api/types/user.raml +0 -37
- package/demo/apis/annotated-api/annotated-api.raml +0 -82
- package/demo/apis/annotated-parameters/annotated-parameters.raml +0 -18
- package/demo/apis/anyOf/anyOf.yaml +0 -37
- package/demo/apis/api-keys/api-keys.yaml +0 -85
- package/demo/apis/apic-169/apic-169.raml +0 -28
- package/demo/apis/apic-83/apic-83.raml +0 -32
- package/demo/apis/appian-api/appian-api.raml +0 -184
- package/demo/apis/array-body/array-body.raml +0 -23
- package/demo/apis/async-api/async-api.yaml +0 -96
- package/demo/apis/demo-api/demo-api.raml +0 -1425
- package/demo/apis/demo-api/examples/e400.xml +0 -4
- package/demo/apis/demo-api/examples/e401.xml +0 -4
- package/demo/apis/demo-api/examples/e404.xml +0 -4
- package/demo/apis/demo-api/examples/image.xml +0 -5
- package/demo/apis/demo-api/examples/messages-example.json +0 -22
- package/demo/apis/demo-api/examples/messages-sent-example.json +0 -15
- package/demo/apis/demo-api/examples/person.json +0 -14
- package/demo/apis/demo-api/examples/person.raml +0 -14
- package/demo/apis/demo-api/examples/person.url.encoded +0 -1
- package/demo/apis/demo-api/examples/person.xml +0 -14
- package/demo/apis/demo-api/examples/product.xml +0 -9
- package/demo/apis/demo-api/library/demo-types.raml +0 -44
- package/demo/apis/demo-api/library.raml +0 -36
- package/demo/apis/demo-api/resourceTypes/app-person.raml +0 -111
- package/demo/apis/demo-api/resourceTypes/example-types.raml +0 -45
- package/demo/apis/demo-api/resourceTypes/image.raml +0 -23
- package/demo/apis/demo-api/resourceTypes/message-sent-type.raml +0 -23
- package/demo/apis/demo-api/resourceTypes/message-type.raml +0 -33
- package/demo/apis/demo-api/resourceTypes/product.raml +0 -52
- package/demo/apis/demo-api/resourceTypes/resource.raml +0 -11
- package/demo/apis/demo-api/schemas/error-response.xsd +0 -11
- package/demo/apis/demo-api/schemas/image.xsd +0 -11
- package/demo/apis/demo-api/schemas/person.json +0 -104
- package/demo/apis/demo-api/schemas/person.xsd +0 -26
- package/demo/apis/demo-api/schemas/product.xsd +0 -17
- package/demo/apis/demo-api/securitySchemes/basic.raml +0 -5
- package/demo/apis/demo-api/securitySchemes/oauth-2-custom-settings.raml +0 -143
- package/demo/apis/demo-api/securitySchemes/oauth2-header-delivery.raml +0 -13
- package/demo/apis/demo-api/securitySchemes/oauth2-no-delivery.raml +0 -8
- package/demo/apis/demo-api/securitySchemes/oauth2-no-grants.raml +0 -12
- package/demo/apis/demo-api/securitySchemes/oauth2-pkce.raml +0 -13
- package/demo/apis/demo-api/securitySchemes/oauth2-query-delivery.raml +0 -13
- package/demo/apis/demo-api/securitySchemes/oauth_1_0.raml +0 -8
- package/demo/apis/demo-api/securitySchemes/oauth_1_0_no-settings.raml +0 -3
- package/demo/apis/demo-api/securitySchemes/oauth_1_0_no-signature.raml +0 -7
- package/demo/apis/demo-api/securitySchemes/oauth_1_0_signature.raml +0 -8
- package/demo/apis/demo-api/securitySchemes/oauth_2_0.raml +0 -29
- package/demo/apis/demo-api/securitySchemes/passthrough-querystring.raml +0 -16
- package/demo/apis/demo-api/securitySchemes/passthrough.raml +0 -24
- package/demo/apis/demo-api/securitySchemes/x-custom.raml +0 -33
- package/demo/apis/demo-api/securitySchemes/x-other.raml +0 -29
- package/demo/apis/demo-api/securitySchemes/x-query-string.raml +0 -16
- package/demo/apis/demo-api/traits/adminable.raml +0 -23
- package/demo/apis/demo-api/traits/pagination.raml +0 -83
- package/demo/apis/demo-api/traits/rate-limited.raml +0 -9
- package/demo/apis/demo-api/types/DemoPerson.raml +0 -67
- package/demo/apis/demo-document/demo-document.raml +0 -21
- package/demo/apis/documentation-fragment/documentation-fragment.raml +0 -76
- package/demo/apis/documented-api/documented-api.raml +0 -29
- package/demo/apis/enum-test/enum-test.raml +0 -64
- package/demo/apis/example-fragment/example-fragment.raml +0 -8
- package/demo/apis/examples-api/Address-1.0.raml +0 -75
- package/demo/apis/examples-api/CompanyIdentification-1.0.raml +0 -48
- package/demo/apis/examples-api/CompanyProfile-1.0.raml +0 -14
- package/demo/apis/examples-api/CompanyProfileBase-1.0.raml +0 -48
- package/demo/apis/examples-api/contact-email-example.raml +0 -6
- package/demo/apis/examples-api/contact-example.raml +0 -7
- package/demo/apis/examples-api/contact-fax-example.raml +0 -7
- package/demo/apis/examples-api/contact-website-example.raml +0 -4
- package/demo/apis/examples-api/example-1.raml +0 -7
- package/demo/apis/examples-api/example-2.raml +0 -12
- package/demo/apis/examples-api/example-3.raml +0 -5
- package/demo/apis/examples-api/example-4.raml +0 -3
- package/demo/apis/examples-api/example-5.raml +0 -5
- package/demo/apis/examples-api/example-6.raml +0 -3
- package/demo/apis/examples-api/example-7.raml +0 -7
- package/demo/apis/examples-api/example.json +0 -14
- package/demo/apis/examples-api/example.xml +0 -15
- package/demo/apis/examples-api/example.xsd +0 -26
- package/demo/apis/examples-api/examples/Address_BE_Example-1.0.raml +0 -10
- package/demo/apis/examples-api/examples/Address_GB_Example-1.0.raml +0 -8
- package/demo/apis/examples-api/examples/Address_NL_Example-1.0.raml +0 -8
- package/demo/apis/examples-api/examples/Addresses_BE_Example-1.0.raml +0 -11
- package/demo/apis/examples-api/examples/Addresses_GB_Example-1.0.raml +0 -9
- package/demo/apis/examples-api/examples/Addresses_NL_Example-1.0.raml +0 -17
- package/demo/apis/examples-api/examples/CompanyIdentification_BE_Example-1.0.raml +0 -7
- package/demo/apis/examples-api/examples/CompanyIdentification_GB_Example-1.0.raml +0 -7
- package/demo/apis/examples-api/examples/CompanyIdentification_NL_BranchId_Example-1.0.raml +0 -7
- package/demo/apis/examples-api/examples/CompanyIdentification_NL_Example-1.0.raml +0 -7
- package/demo/apis/examples-api/examples/CompanyIdentification_NL_GY-Holding_Example-1.0.raml +0 -6
- package/demo/apis/examples-api/examples/CompanyLegalForm_BE_Example-1.0.raml +0 -3
- package/demo/apis/examples-api/examples/CompanyLegalForm_GB_Example-1.0.raml +0 -3
- package/demo/apis/examples-api/examples/CompanyLegalForm_NL_Example-1.0.raml +0 -3
- package/demo/apis/examples-api/examples/CompanyProfile_BE_Example-1.0.raml +0 -14
- package/demo/apis/examples-api/examples/CompanyProfile_GB_Example-1.0.raml +0 -11
- package/demo/apis/examples-api/examples/CompanyProfile_NL_Example-1.0.raml +0 -12
- package/demo/apis/examples-api/examples/Company_BE_Example-1.0.raml +0 -3
- package/demo/apis/examples-api/examples/Company_GB_Example-1.0.raml +0 -3
- package/demo/apis/examples-api/examples/Company_NL_Example-1.0.raml +0 -3
- package/demo/apis/examples-api/examples-api.raml +0 -313
- package/demo/apis/examples-api/linked-named-example.raml +0 -22
- package/demo/apis/examples-api/named-example-with-link.raml +0 -3
- package/demo/apis/examples-api/named-example.raml +0 -7
- package/demo/apis/examples-api/type-with-linked-examples.raml +0 -15
- package/demo/apis/examples-api/user-json-example.raml +0 -17
- package/demo/apis/examples-api/user-raml-example.raml +0 -37
- package/demo/apis/examples-api/user.json +0 -8
- package/demo/apis/examples-api/user.raml +0 -18
- package/demo/apis/examples-api/users-json-example.raml +0 -17
- package/demo/apis/examples-api/users-raml-example.raml +0 -32
- package/demo/apis/examples-api/users.json +0 -8
- package/demo/apis/expanded-api/expanded-api.raml +0 -8
- package/demo/apis/ext-docs/ext-docs.yaml +0 -15
- package/demo/apis/flattened-api/flattened-api.raml +0 -8
- package/demo/apis/google-drive-api/docs/api/headline.md +0 -1
- package/demo/apis/google-drive-api/docs/search-for-file.md +0 -176
- package/demo/apis/google-drive-api/docs/upload-files.md +0 -268
- package/demo/apis/google-drive-api/docs/uploadApi/headline.md +0 -1
- package/demo/apis/google-drive-api/docs/work-with-folders.md +0 -307
- package/demo/apis/google-drive-api/examples/about-example.json +0 -470
- package/demo/apis/google-drive-api/examples/app-example.json +0 -100
- package/demo/apis/google-drive-api/examples/app-list-example.json +0 -108
- package/demo/apis/google-drive-api/examples/change-example.json +0 -91
- package/demo/apis/google-drive-api/examples/changeList-example.json +0 -351
- package/demo/apis/google-drive-api/examples/channel-example.json +0 -8
- package/demo/apis/google-drive-api/examples/childList-example.json +0 -15
- package/demo/apis/google-drive-api/examples/childReference-example.json +0 -6
- package/demo/apis/google-drive-api/examples/comment-example.json +0 -42
- package/demo/apis/google-drive-api/examples/comment-reply-update-response.json +0 -18
- package/demo/apis/google-drive-api/examples/commentCreateRequest-example.json +0 -7
- package/demo/apis/google-drive-api/examples/commentList-example.json +0 -48
- package/demo/apis/google-drive-api/examples/commentReply-example.json +0 -17
- package/demo/apis/google-drive-api/examples/commentReplyList-example.json +0 -21
- package/demo/apis/google-drive-api/examples/commentReplyRequest-example.json +0 -4
- package/demo/apis/google-drive-api/examples/file-example.json +0 -92
- package/demo/apis/google-drive-api/examples/fileList-example.json +0 -98
- package/demo/apis/google-drive-api/examples/newFileRequest-example.json +0 -29
- package/demo/apis/google-drive-api/examples/parentList-example.json +0 -14
- package/demo/apis/google-drive-api/examples/parentReference-example.json +0 -7
- package/demo/apis/google-drive-api/examples/permission-example.json +0 -18
- package/demo/apis/google-drive-api/examples/permissionId-example.json +0 -4
- package/demo/apis/google-drive-api/examples/permissionList-example.json +0 -17
- package/demo/apis/google-drive-api/examples/permissionRequest-example.json +0 -9
- package/demo/apis/google-drive-api/examples/permissionUpdateRequest-example.json +0 -9
- package/demo/apis/google-drive-api/examples/property-example.json +0 -8
- package/demo/apis/google-drive-api/examples/propertyList-example.json +0 -13
- package/demo/apis/google-drive-api/examples/revision-example.json +0 -30
- package/demo/apis/google-drive-api/examples/revisionList-example.json +0 -35
- package/demo/apis/google-drive-api/examples/revisionUpdateRequest-example.json +0 -6
- package/demo/apis/google-drive-api/examples/stopWatchingRequest-example.json +0 -4
- package/demo/apis/google-drive-api/examples/watchRequest-example.json +0 -7
- package/demo/apis/google-drive-api/google-drive-api.raml +0 -1118
- package/demo/apis/google-drive-api/libraries/about-lib.raml +0 -121
- package/demo/apis/google-drive-api/libraries/annotations.raml +0 -4
- package/demo/apis/google-drive-api/libraries/app-lib.raml +0 -134
- package/demo/apis/google-drive-api/libraries/child-lib.raml +0 -53
- package/demo/apis/google-drive-api/libraries/comment-lib.raml +0 -145
- package/demo/apis/google-drive-api/libraries/file-lib.raml +0 -517
- package/demo/apis/google-drive-api/libraries/parent-lib.raml +0 -52
- package/demo/apis/google-drive-api/libraries/permission-lib.raml +0 -146
- package/demo/apis/google-drive-api/libraries/properties-lib.raml +0 -44
- package/demo/apis/google-drive-api/libraries/revision-lib.raml +0 -116
- package/demo/apis/google-drive-api/libraries/watch-lib.raml +0 -128
- package/demo/apis/google-drive-api/securitySchemes/oauth_2_0.raml +0 -25
- package/demo/apis/google-drive-api/traits/file.raml +0 -33
- package/demo/apis/google-drive-api/traits/results.raml +0 -19
- package/demo/apis/google-drive-api/traits/visibility.raml +0 -17
- package/demo/apis/google-drive-api/types/additional-role-info.raml +0 -12
- package/demo/apis/google-drive-api/types/channels-stop.raml +0 -11
- package/demo/apis/google-drive-api/types/export-format.raml +0 -11
- package/demo/apis/google-drive-api/types/feature.raml +0 -11
- package/demo/apis/google-drive-api/types/file-capabilities.raml +0 -69
- package/demo/apis/google-drive-api/types/file-labels.raml +0 -35
- package/demo/apis/google-drive-api/types/icon.raml +0 -25
- package/demo/apis/google-drive-api/types/import-format.raml +0 -11
- package/demo/apis/google-drive-api/types/new-drive-file.raml +0 -48
- package/demo/apis/google-drive-api/types/owners.raml +0 -32
- package/demo/apis/google-drive-api/types/picture.raml +0 -9
- package/demo/apis/google-drive-api/types/property.raml +0 -25
- package/demo/apis/google-drive-api/types/resource.raml +0 -28
- package/demo/apis/google-drive-api/types/role-set.raml +0 -11
- package/demo/apis/google-drive-api/types/service-quota.raml +0 -10
- package/demo/apis/google-drive-api/types/standard-request.raml +0 -51
- package/demo/apis/google-drive-api/types/team-drive-list.raml +0 -18
- package/demo/apis/google-drive-api/types/team-drive.raml +0 -59
- package/demo/apis/google-drive-api/types/thumbnail.raml +0 -14
- package/demo/apis/google-drive-api/types/upload-size.raml +0 -12
- package/demo/apis/google-drive-api/types/user.raml +0 -37
- package/demo/apis/httpbin/httpbin.json +0 -1836
- package/demo/apis/lib-fragment/lib-fragment.raml +0 -55
- package/demo/apis/loan-ms/loan-microservice.json +0 -699
- package/demo/apis/missing-endpoints/missing-endpoints.raml +0 -34
- package/demo/apis/mocking-service/mocking-service.raml +0 -149
- package/demo/apis/modular-api/models/ecommerce-canonical.raml +0 -89
- package/demo/apis/modular-api/models/ecommerce.raml +0 -36
- package/demo/apis/modular-api/models/things.raml +0 -32
- package/demo/apis/modular-api/modular-api.raml +0 -12
- package/demo/apis/multi-server/multi-server.yaml +0 -128
- package/demo/apis/multiple-servers/multiple-servers.yaml +0 -112
- package/demo/apis/navigation-api/library.raml +0 -7
- package/demo/apis/navigation-api/navigation-api.raml +0 -357
- package/demo/apis/navigation-api/types/app-person.raml +0 -101
- package/demo/apis/navigation-api/types/image.raml +0 -23
- package/demo/apis/navigation-api/types/product.raml +0 -52
- package/demo/apis/navigation-api/types/resource.raml +0 -11
- package/demo/apis/new-oas3-types/new-oas3-types.yaml +0 -84
- package/demo/apis/nexmo-sms-api/nexmo-sms-api.raml +0 -488
- package/demo/apis/no-endpoints/no-endpoints.raml +0 -14
- package/demo/apis/no-server/no-server.raml +0 -27
- package/demo/apis/no-servers-api/no-servers-api.yaml +0 -31
- package/demo/apis/not-schema/not-schema.yaml +0 -38
- package/demo/apis/oas-3-api/oas-3-api.yaml +0 -356
- package/demo/apis/oas-api/LoanMicrosrvice.yaml +0 -339
- package/demo/apis/oas-api/Petstore-v2.yaml +0 -144
- package/demo/apis/oas-api/Petstore.raml +0 -106
- package/demo/apis/oas-api/UBER.raml +0 -274
- package/demo/apis/oas-api/UBER.yaml +0 -272
- package/demo/apis/oas-api/petstore-expanded.raml +0 -141
- package/demo/apis/oas-api/petstore-expanded.yaml +0 -139
- package/demo/apis/oas-api/read-only-properties.yaml +0 -42
- package/demo/apis/oas-bearer/oas-bearer.yaml +0 -45
- package/demo/apis/oas-callbacks/oas-callbacks.yaml +0 -150
- package/demo/apis/oas-demo/oas-demo.yaml +0 -94
- package/demo/apis/oauth-flows/oauth-flows.yaml +0 -61
- package/demo/apis/oauth-pkce/oauth-2-pkce.raml +0 -33
- package/demo/apis/oauth-pkce/oauth-pkce.raml +0 -22
- package/demo/apis/oauth1-fragment/oauth1-fragment.raml +0 -7
- package/demo/apis/oauth2-fragment/oauth2-fragment.raml +0 -30
- package/demo/apis/petstore/petstore.yaml +0 -954
- package/demo/apis/prevent-xss/prevent-xss.json +0 -20
- package/demo/apis/rearrange-api/rearrange-api.raml +0 -32
- package/demo/apis/secured-api/oauth-2-custom-settings.raml +0 -143
- package/demo/apis/secured-api/oauth2-header-delivery.raml +0 -13
- package/demo/apis/secured-api/oauth2-no-delivery.raml +0 -8
- package/demo/apis/secured-api/oauth2-no-grants.raml +0 -12
- package/demo/apis/secured-api/oauth2-pkce.raml +0 -13
- package/demo/apis/secured-api/oauth2-query-delivery.raml +0 -13
- package/demo/apis/secured-api/oauth_1_0.raml +0 -8
- package/demo/apis/secured-api/oauth_1_0_no-settings.raml +0 -3
- package/demo/apis/secured-api/oauth_1_0_no-signature.raml +0 -7
- package/demo/apis/secured-api/oauth_1_0_signature.raml +0 -8
- package/demo/apis/secured-api/passthrough-querystring.raml +0 -16
- package/demo/apis/secured-api/passthrough.raml +0 -24
- package/demo/apis/secured-api/secured-api.raml +0 -231
- package/demo/apis/secured-api/x-custom.raml +0 -33
- package/demo/apis/secured-api/x-other.raml +0 -29
- package/demo/apis/secured-api/x-query-string.raml +0 -16
- package/demo/apis/secured-unions/secured-unions.yaml +0 -95
- package/demo/apis/security-api/oauth-2-custom-settings.raml +0 -154
- package/demo/apis/security-api/readme.md +0 -1
- package/demo/apis/security-api/security/basic.raml +0 -13
- package/demo/apis/security-api/security/digest.raml +0 -5
- package/demo/apis/security-api/security/oauth_1_0.raml +0 -27
- package/demo/apis/security-api/security/oauth_2_0.raml +0 -30
- package/demo/apis/security-api/security/oauth_2_0_no_scopes.raml +0 -29
- package/demo/apis/security-api/security/other-oauth_1_0.raml +0 -29
- package/demo/apis/security-api/security/passthrough.raml +0 -12
- package/demo/apis/security-api/security/x-custom.raml +0 -26
- package/demo/apis/security-api/security/x-other.raml +0 -29
- package/demo/apis/security-api/security-api.raml +0 -89
- package/demo/apis/servers-api/servers-api.yaml +0 -80
- package/demo/apis/simple-api/simple-api.raml +0 -12
- package/demo/apis/steveTest-1/exchange.json +0 -6
- package/demo/apis/steveTest-1/schemas/schema-termsConditionsAccept.json +0 -43
- package/demo/apis/steveTest-1/schemas_response/schema-termsConditionsAccept-Get.json +0 -24
- package/demo/apis/steveTest-1/stevetest.json +0 -167
- package/demo/apis/steveTest-1/traits/response-errors.json +0 -123
- package/demo/apis/steveTest-1/traits/schema-response-errors.json +0 -35
- package/demo/apis/streetlights2/streetlights2.yaml +0 -213
- package/demo/apis/tracked-examples/datatypes/employee.raml +0 -5
- package/demo/apis/tracked-examples/examples/employee.raml +0 -4
- package/demo/apis/tracked-examples/examples/employees.raml +0 -8
- package/demo/apis/tracked-examples/tracked-to-linked.raml +0 -28
- package/demo/apis/type-fragment/type-fragment.raml +0 -96
- package/demo/apis/types-list/exchange.json +0 -1
- package/demo/apis/types-list/library.raml +0 -7
- package/demo/apis/types-list/typeFromDataTypeFile.raml +0 -6
- package/demo/apis/types-list/types-list.raml +0 -38
- package/demo/apis/unordered-endpoints/unordered-endpoints.raml +0 -11
- package/demo/lib/DemoBindings.ts +0 -38
- package/demo/lib/amf/AmfPartialGraphStore.ts +0 -305
- package/demo/lib/amf/AmfPartialModel.ts +0 -690
- package/demo/lib/amf/ApiExamples.ts +0 -3270
- package/demo/lib/io/ApiStore.ts +0 -16
- package/demo/lib/io/SharedWorkerThread.ts +0 -31
- package/demo/lib/io/main.ts +0 -23
- package/demo/model.js +0 -203
- package/demo/store/IpAddress.js +0 -15
- package/demo/store/StorePlugin.js +0 -18
- package/demo/stores.md +0 -5
- package/dev/amf-server/AmfParser.js +0 -144
- package/dev/amf-server/AmfService.js +0 -136
- package/dev/amf-server/ApiError.js +0 -10
- package/dev/amf-server/ParserProcess.js +0 -101
- package/dev/amf-server/api.js +0 -146
- package/dev/types.d.ts +0 -28
- package/src/amf/lib/AmfInputParser.ts +0 -254
- package/src/amf/lib/AmfParameters.ts +0 -814
- package/src/amf/lib/AmfSecurity.ts +0 -45
- package/src/amf/lib/InputCache.ts +0 -100
- package/src/amf/lib/Oauth2RamlCustomData.ts +0 -265
- package/src/amf/lib/PayloadUtils.ts +0 -87
- package/src/amf/lib/QueryParameterProcessor.ts +0 -186
- package/src/amf/lib/UrlUtils.ts +0 -213
- package/src/amf/lib/Utils.ts +0 -220
- package/src/amf/lib/navigation-layout/ApiSorting.ts +0 -20
- package/src/amf/lib/navigation-layout/EndpointsTree.ts +0 -189
- package/src/amf/lib/navigation-layout/NaturalTree.ts +0 -100
- package/src/amf/plugins/ApiNavigationCommands.ts +0 -73
- package/src/amf/plugins/ApiNavigationContextMenu.ts +0 -43
- package/src/amf/store/AmfGraphStore.ts +0 -69
- package/src/amf/store/AmfStore.ts +0 -216
- package/src/amf/store/DomEventsAmfStore.ts +0 -4
- package/src/amf/store/InMemAmfGraphStore.ts +0 -630
- package/src/amf/store/Readme.md +0 -40
- package/src/amf/store/mixins/AmfStoreDomEventsMixin.ts +0 -132
- package/src/amf/types.ts +0 -359
- package/src/define/amf/api-annotation-document.ts +0 -14
- package/src/define/amf/api-authorization-editor.ts +0 -14
- package/src/define/amf/api-channel-document.ts +0 -14
- package/src/define/amf/api-documentation-document.ts +0 -14
- package/src/define/amf/api-documentation.ts +0 -14
- package/src/define/amf/api-navigation.ts +0 -14
- package/src/define/amf/api-operation-document.ts +0 -14
- package/src/define/amf/api-parameter-document.ts +0 -14
- package/src/define/amf/api-parametrized-security-scheme.ts +0 -14
- package/src/define/amf/api-payload-document.ts +0 -14
- package/src/define/amf/api-request-document.ts +0 -14
- package/src/define/amf/api-request-editor.ts +0 -14
- package/src/define/amf/api-request.ts +0 -14
- package/src/define/amf/api-resource-document.ts +0 -14
- package/src/define/amf/api-response-document.ts +0 -14
- package/src/define/amf/api-schema-document.ts +0 -14
- package/src/define/amf/api-security-document.ts +0 -14
- package/src/define/amf/api-security-requirement-document.ts +0 -14
- package/src/define/amf/api-server-picker.ts +0 -14
- package/src/define/amf/api-summary.ts +0 -14
- package/src/define/amf/authorization/amf-apikey-authorization.ts +0 -15
- package/src/define/amf/authorization/amf-basic-authorization.ts +0 -15
- package/src/define/amf/authorization/amf-bearer-authorization.ts +0 -15
- package/src/define/amf/authorization/amf-oauth2-authorization.ts +0 -18
- package/src/define/amf/authorization/amf-oidc-authorization.ts +0 -18
- package/src/define/amf/authorization/amf-passthrough-authorization.ts +0 -15
- package/src/define/amf/authorization/amf-ramlcustom-authorization.ts +0 -15
- package/src/elements/amf/ApiAnnotationDocument.element.ts +0 -181
- package/src/elements/amf/ApiAnnotationDocument.styles.ts +0 -46
- package/src/elements/amf/ApiAuthorizationEditor.element.ts +0 -364
- package/src/elements/amf/ApiAuthorizationEditor.styles.ts +0 -25
- package/src/elements/amf/ApiChannelDocument.element.ts +0 -89
- package/src/elements/amf/ApiDocumentation.element.ts +0 -642
- package/src/elements/amf/ApiDocumentation.styles.ts +0 -11
- package/src/elements/amf/ApiDocumentationBase.ts +0 -296
- package/src/elements/amf/ApiDocumentationDocument.element.ts +0 -85
- package/src/elements/amf/ApiDocumentationDocument.styles.ts +0 -32
- package/src/elements/amf/ApiNavigation.element.ts +0 -2285
- package/src/elements/amf/ApiNavigation.styles.ts +0 -159
- package/src/elements/amf/ApiOperationDocument.element.ts +0 -978
- package/src/elements/amf/ApiOperationDocument.styles.ts +0 -67
- package/src/elements/amf/ApiParameterDocument.element.ts +0 -105
- package/src/elements/amf/ApiParameterDocument.styles.ts +0 -15
- package/src/elements/amf/ApiParametrizedSecurityScheme.element.ts +0 -72
- package/src/elements/amf/ApiParametrizedSecurityScheme.styles.ts +0 -4
- package/src/elements/amf/ApiPayloadDocument.element.ts +0 -128
- package/src/elements/amf/ApiPayloadDocument.styles.ts +0 -15
- package/src/elements/amf/ApiRequest.element.ts +0 -260
- package/src/elements/amf/ApiRequest.styles.ts +0 -11
- package/src/elements/amf/ApiRequestDocument.element.ts +0 -388
- package/src/elements/amf/ApiRequestDocument.styles.ts +0 -13
- package/src/elements/amf/ApiRequestEditor.element.ts +0 -1773
- package/src/elements/amf/ApiRequestEditor.styles.ts +0 -160
- package/src/elements/amf/ApiResourceDocument.element.ts +0 -682
- package/src/elements/amf/ApiResourceDocument.styles.ts +0 -91
- package/src/elements/amf/ApiResponseDocument.element.ts +0 -290
- package/src/elements/amf/ApiResponseDocument.styles.ts +0 -41
- package/src/elements/amf/ApiSchemaDocument.element.ts +0 -786
- package/src/elements/amf/ApiSchemaDocument.styles.ts +0 -41
- package/src/elements/amf/ApiSecurityDocument.element.ts +0 -607
- package/src/elements/amf/ApiSecurityDocument.styles.ts +0 -89
- package/src/elements/amf/ApiSecurityRequirementDocument.element.ts +0 -72
- package/src/elements/amf/ApiSecurityRequirementDocument.styles.ts +0 -7
- package/src/elements/amf/ApiServerPicker.element.ts +0 -690
- package/src/elements/amf/ApiServerPicker.styles.ts +0 -25
- package/src/elements/amf/ApiSummary.element.ts +0 -387
- package/src/elements/amf/ApiSummary.styles.ts +0 -192
- package/src/elements/amf/SchemaCommonTemplates.ts +0 -563
- package/src/elements/amf/authorization/AmfApiKey.ts +0 -250
- package/src/elements/amf/authorization/AmfBasic.ts +0 -77
- package/src/elements/amf/authorization/AmfBearer.ts +0 -63
- package/src/elements/amf/authorization/AmfOauth2.ts +0 -830
- package/src/elements/amf/authorization/AmfOidc.ts +0 -66
- package/src/elements/amf/authorization/AmfPassThrough.ts +0 -261
- package/src/elements/amf/authorization/AmfRamlCustom.ts +0 -291
- package/src/elements/amf/authorization/Authorization.styles.ts +0 -40
- package/src/elements/amf/styles/AuthorizationMethod.ts +0 -46
- package/src/elements/amf/styles/Common.ts +0 -150
- package/src/elements/amf/styles/SchemaCommon.ts +0 -376
- package/src/events/amf/ApiEvents.ts +0 -47
- package/src/events/amf/BaseEvents.ts +0 -96
- package/src/events/amf/DocumentationEvents.ts +0 -29
- package/src/events/amf/EndpointEvents.ts +0 -37
- package/src/events/amf/EventTypes.ts +0 -64
- package/src/events/amf/Events.ts +0 -39
- package/src/events/amf/NavigationEvents.ts +0 -86
- package/src/events/amf/OperationEvents.ts +0 -29
- package/src/events/amf/PayloadEvents.ts +0 -18
- package/src/events/amf/ReportingEvents.ts +0 -28
- package/src/events/amf/RequestEvents.ts +0 -16
- package/src/events/amf/ResponseEvents.ts +0 -18
- package/src/events/amf/SecurityEvents.ts +0 -60
- package/src/events/amf/ServerEvents.ts +0 -94
- package/src/events/amf/StoreEvents.ts +0 -16
- package/src/events/amf/TelemetryEvents.ts +0 -115
- package/src/events/amf/TypeEvents.ts +0 -28
- package/test/amf/AmfLoader.ts +0 -575
- package/test/amf/MonacoSetup.ts +0 -63
- package/test/amf/authorization/ApiAuthorizationEditorElement.oas.test.ts +0 -253
- package/test/amf/authorization/ApiAuthorizationEditorElement.raml.test.ts +0 -477
- package/test/amf/authorization/ApiKeyMethod.test.ts +0 -160
- package/test/amf/authorization/CustomMethod.test.ts +0 -306
- package/test/amf/authorization/OAuth2-21143.test.ts +0 -40
- package/test/amf/authorization/OAuth2-flows.test.ts +0 -99
- package/test/amf/authorization/OAuth2-pkce.test.ts +0 -39
- package/test/amf/authorization/OAuth2Method.test.ts +0 -369
- package/test/amf/authorization/PassThroughMethod.test.ts +0 -180
- package/test/amf/elements/ApiAnnotationDocumentElement.test.ts +0 -123
- package/test/amf/elements/ApiDocumentationDocumentElement.test.ts +0 -153
- package/test/amf/elements/ApiDocumentationElement.test.ts +0 -680
- package/test/amf/elements/ApiOperationDocumentElement.test.ts +0 -753
- package/test/amf/elements/ApiRequestDocumentElement.test.ts +0 -165
- package/test/amf/elements/ApiResourceDocumentElement.test.ts +0 -320
- package/test/amf/elements/ApiResponseDocumentElement.test.ts +0 -288
- package/test/amf/elements/ApiSchemaDocumentElement.test.ts +0 -934
- package/test/amf/elements/ApiSecurityDocumentElement.test.ts +0 -667
- package/test/amf/elements/ApiSecurityRequirementDocumentElement.test.ts +0 -58
- package/test/amf/elements/ApiServerPickerElement.test.ts +0 -960
- package/test/amf/elements/ApiSummaryElement.test.ts +0 -485
- package/test/amf/elements/SE-12957.test.ts +0 -49
- package/test/amf/events/ApiEvents.test.ts +0 -32
- package/test/amf/events/EndpointEvents.test.ts +0 -94
- package/test/amf/events/EventHelper.ts +0 -11
- package/test/amf/events/EventTypes.test.ts +0 -241
- package/test/amf/events/NavigationEvents.test.ts +0 -58
- package/test/amf/events/ReportingEvents.test.ts +0 -53
- package/test/amf/events/StoreEvents.test.ts +0 -21
- package/test/amf/events/TelemetryEvents.test.ts +0 -202
- package/test/amf/http-request/APIC-289.test.ts +0 -66
- package/test/amf/http-request/APIC-298.test.ts +0 -49
- package/test/amf/http-request/APIC-689.test.ts +0 -45
- package/test/amf/http-request/ApiRequestEditorElement.test.ts +0 -1472
- package/test/amf/http-request/ApiRequestElement.test.ts +0 -39
- package/test/amf/http-request/SE-12042.test.ts +0 -56
- package/test/amf/http-request/SE-12957.test.ts +0 -80
- package/test/amf/http-request/server.ts +0 -154
- package/test/amf/lib/UrlUtils.test.ts +0 -324
- package/test/amf/navigation/ApiNavigationElement.test.ts +0 -1464
- package/test/amf/navigation/documentation-fragment.test.ts +0 -77
- package/test/amf/navigation/security-fragment.test.ts +0 -77
- package/test/amf/navigation/type-fragment.test.ts +0 -77
- package/tsconfig.browser.json +0 -40
- package/tsconfig.testing.json +0 -39
- package/wds-demo.config.js +0 -49
- /package/demo/{elements/md → md}/DemoStyles.ts +0 -0
- /package/demo/{elements/md → md}/chip/pawel6c9a.jpg +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Oauth2RamlCustomData.js","sourceRoot":"","sources":["../../../../src/amf/lib/Oauth2RamlCustomData.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,+CAA+C,CAAA;AAY5E;;;;GAIG;AACH,MAAM,OAAO,oBAAoB;IAC/B,UAAU,CAAC,UAA6C;QACtD,MAAM,MAAM,GAAoB,EAAE,CAAA;QAClC,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;YACtC,MAAM,UAAU,GAAG,UAAU,CAAC,GAAG,CAAC,CAAA;YAClC,IAAI,UAAU,CAAC,KAAK,CAAC,QAAQ,CAAC,YAAY,CAAC,GAAG,CAAC,YAAY,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC;gBACzE,MAAM,QAAQ,GAAG,IAAI,CAAC,WAAW,CAAC,UAA4B,CAAC,CAAA;gBAC/D,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;YACvB,CAAC;iBAAM,IAAI,UAAU,CAAC,KAAK,CAAC,QAAQ,CAAC,YAAY,CAAC,GAAG,CAAC,YAAY,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC;gBAChF,MAAM,QAAQ,GAAG,IAAI,CAAC,iBAAiB,CAAC,UAA4B,CAAC,CAAA;gBACrE,MAAM,CA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C,MAAM,CAAA;QAC3C,CAAC;IACH,CAAC;IAED;;;;;OAKG;IACH,iBAAiB,CAAC,IAAoB,EAAE,KAAqB;QAC3D,IAAI,CAAC,IAAI,IAAI,KAAK,EAAE,CAAC;YACnB,OAAO,IAAI,CAAA;QACb,CAAC;QACD,IAAI,CAAC,IAAI,EAAE,CAAC;YACV,OAAO,KAAK,CAAA;QACd,CAAC;QACD,MAAM,SAAS,GAAG,IAAI,CAAC,KAAK,IAAI,EAAE,CAAA;QAClC,IAAI,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,SAAS,KAAK,OAAO,EAAE,CAAC;YACtD,OAAO,IAAI,CAAA;QACb,CAAC;QACD,OAAO,KAAK,CAAA;IACd,CAAC;CACF","sourcesContent":["import { AmfNamespace } from '@api-client/core/amf/definitions/Namespace.js'\nimport type { IApiParameter } from '@api-client/core/amf/definitions/Api.js'\nimport type {\n IApiArrayShape,\n IApiDataNodeUnion,\n IApiObjectNode,\n IApiScalarNode,\n IApiScalarShape,\n IApiShape,\n IShapeUnion,\n} from '@api-client/core/amf/definitions/Shapes.js'\n\n/**\n * Computes a data model for custom definition for the OAuth 2 scheme\n * According to the annotation published at\n * https://github.com/raml-org/raml-annotations/tree/master/annotations/security-schemes\n */\nexport class Oauth2RamlCustomData {\n readParams(properties: Record<string, IApiDataNodeUnion>): IApiParameter[] {\n const result: IApiParameter[] = []\n Object.keys(properties).forEach((key) => {\n const definition = properties[key]\n if (definition.types.includes(AmfNamespace.aml.vocabularies.data.Object)) {\n const property = this.getProperty(definition as IApiObjectNode)\n result.push(property)\n } else if (definition.types.includes(AmfNamespace.aml.vocabularies.data.Scalar)) {\n const property = this.getPropertyScalar(definition as IApiScalarNode)\n result.push(property)\n }\n })\n return result\n }\n\n /**\n * Creates an IApiParameter for an annotation that has properties.\n * This expects the properties to be defined like RAML's type definition.\n */\n getProperty(definition: IApiObjectNode): IApiParameter {\n const { properties = {}, id, name } = definition\n const result: IApiParameter = {\n id,\n name,\n examples: [],\n payloads: [],\n types: [AmfNamespace.aml.vocabularies.apiContract.Parameter],\n customDomainProperties: [],\n }\n const schema = this.readSchema(definition)\n if (schema) {\n result.schema = schema\n }\n if (properties.required) {\n const req = properties.required as IApiScalarNode\n result.required = req.value === 'true'\n }\n return result\n }\n\n /**\n * Creates an IApiParameter for an annotation that has no properties but rather a simplified\n * notation of `propertyName: dataType`.\n */\n getPropertyScalar(definition: IApiScalarNode): IApiParameter {\n const { dataType = '', id, name } = definition\n const result: IApiParameter = {\n id,\n name,\n examples: [],\n payloads: [],\n types: [AmfNamespace.aml.vocabularies.apiContract.Parameter],\n customDomainProperties: [],\n }\n const schema = this.createSchema() as IApiScalarShape\n schema.types = [AmfNamespace.aml.vocabularies.shapes.ScalarShape]\n schema.id = id\n schema.name = name\n schema.dataType = this.typeToSchemaType(dataType)\n result.schema = schema\n return result\n }\n\n readSchema(property: IApiObjectNode): IShapeUnion | undefined {\n const { properties = {}, name, id } = property\n // const { example, examples, } = properties;\n const isArray = this.readIsSchemaArray(properties.type as IApiScalarNode, properties.items as IApiScalarNode)\n const type = this.readSchemaType(properties.type as IApiScalarNode, properties.items as IApiScalarNode)\n let schema: IShapeUnion | undefined\n if (isArray) {\n const s = this.createSchema() as IApiArrayShape\n s.types = [AmfNamespace.aml.vocabularies.shapes.ArrayShape]\n s.id = id\n s.name = name\n s.items = this.createTypedSchema(type, property)\n schema = s\n } else {\n schema = this.createTypedSchema(type, property)\n }\n return schema\n }\n\n createTypedSchema(type: string, object: IApiObjectNode): IShapeUnion | undefined {\n switch (type) {\n case 'string':\n case 'number':\n case 'integer':\n case 'float':\n case 'double':\n case 'long':\n case 'date-only':\n case 'date-time':\n case 'time-only':\n case 'nil':\n case 'date':\n case 'boolean':\n return this.createScalarSchema(object, type)\n default:\n return undefined\n }\n }\n\n createSchema(): IApiShape {\n return {\n id: '',\n types: [],\n and: [],\n name: '',\n inherits: [],\n or: [],\n values: [],\n xone: [],\n customDomainProperties: [],\n }\n }\n\n createScalarSchema(object: IApiObjectNode, type: string): IApiScalarShape {\n const { properties = {}, name, id } = object\n const schema = this.createSchema() as IApiScalarShape\n schema.types = [AmfNamespace.aml.vocabularies.shapes.ScalarShape]\n schema.id = id\n schema.name = name\n schema.dataType = this.typeToSchemaType(type)\n if (properties.format) {\n const item = properties.format as IApiScalarNode\n schema.format = item.value\n }\n if (properties.default) {\n const item = properties.default as IApiScalarNode\n schema.defaultValueStr = item.value\n // schema.defaultValue = item.value;\n }\n if (properties.description) {\n const item = properties.description as IApiScalarNode\n schema.description = item.value\n }\n if (properties.displayName) {\n const item = properties.displayName as IApiScalarNode\n schema.displayName = item.value\n }\n if (properties.pattern) {\n const item = properties.pattern as IApiScalarNode\n schema.pattern = item.value\n }\n if (properties.maximum) {\n const item = properties.maximum as IApiScalarNode\n const value = Number(item.value)\n if (!Number.isNaN(value)) {\n schema.maximum = value\n }\n }\n if (properties.minimum) {\n const item = properties.minimum as IApiScalarNode\n const value = Number(item.value)\n if (!Number.isNaN(value)) {\n schema.minimum = value\n }\n }\n if (properties.multipleOf) {\n const item = properties.multipleOf as IApiScalarNode\n const value = Number(item.value)\n if (!Number.isNaN(value)) {\n schema.multipleOf = value\n }\n }\n if (properties.maxLength) {\n const item = properties.maxLength as IApiScalarNode\n const value = Number(item.value)\n if (!Number.isNaN(value)) {\n schema.maxLength = value\n }\n }\n if (properties.minLength) {\n const item = properties.minLength as IApiScalarNode\n const value = Number(item.value)\n if (!Number.isNaN(value)) {\n schema.minLength = value\n }\n }\n return schema\n }\n\n /**\n * @param object\n * @param items The definition of the `items` property that corresponds to RAML's items property of an array\n */\n readSchemaType(object: IApiScalarNode, items?: IApiScalarNode): string {\n if (object.dataType !== AmfNamespace.w3.xmlSchema.string) {\n return AmfNamespace.w3.xmlSchema.string\n }\n let inputType = object.value || ''\n if (inputType.endsWith('[]')) {\n inputType = inputType.replace('[]', '')\n }\n if (inputType === 'array' && items) {\n return this.readSchemaType(items)\n }\n return inputType || 'string'\n }\n\n typeToSchemaType(type: string): string {\n switch (type) {\n case 'boolean':\n return AmfNamespace.w3.xmlSchema.boolean\n case 'number':\n return AmfNamespace.w3.xmlSchema.number\n case 'integer':\n return AmfNamespace.w3.xmlSchema.integer\n case 'float':\n return AmfNamespace.w3.xmlSchema.float\n case 'double':\n return AmfNamespace.w3.xmlSchema.double\n case 'long':\n return AmfNamespace.w3.xmlSchema.long\n case 'date-only':\n return AmfNamespace.w3.xmlSchema.date\n case 'date-time':\n return AmfNamespace.w3.xmlSchema.dateTime\n case 'time-only':\n return AmfNamespace.w3.xmlSchema.time\n case 'nil':\n return AmfNamespace.w3.xmlSchema.nil\n default:\n return AmfNamespace.w3.xmlSchema.string\n }\n }\n\n /**\n * Checks whether the custom property represents an array.\n * @param type\n * @param items The definition of the `items` property that corresponds to RAML's items property of an array\n * @returns True when the schema is an array.\n */\n readIsSchemaArray(type: IApiScalarNode, items: IApiScalarNode): boolean {\n if (!type && items) {\n return true\n }\n if (!type) {\n return false\n }\n const inputType = type.value || ''\n if (inputType.endsWith('[]') || inputType === 'array') {\n return true\n }\n return false\n }\n}\n"]}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { IApiPayload } from '@api-client/core/amf/definitions/Api.js';
|
|
2
|
-
import type { IProperty } from '@api-client/core/models/Property.js';
|
|
3
|
-
export interface PayloadInfo {
|
|
4
|
-
value: string | FormData | Blob;
|
|
5
|
-
model?: IProperty[];
|
|
6
|
-
schemas?: unknown;
|
|
7
|
-
}
|
|
8
|
-
export declare function getPayloadValue(payload: IApiPayload): PayloadInfo;
|
|
9
|
-
/**
|
|
10
|
-
* @param id The ApiPayload id.
|
|
11
|
-
* @param value The value to cache.
|
|
12
|
-
* @param model Optional model to set.
|
|
13
|
-
*/
|
|
14
|
-
export declare function cachePayloadValue(id: string, value: string, model?: IProperty[]): void;
|
|
15
|
-
/**
|
|
16
|
-
* @param id Payload id to read the value.
|
|
17
|
-
*/
|
|
18
|
-
export declare function readCachePayloadValue(id: string): PayloadInfo | undefined;
|
|
19
|
-
//# sourceMappingURL=PayloadUtils.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PayloadUtils.d.ts","sourceRoot":"","sources":["../../../../src/amf/lib/PayloadUtils.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yCAAyC,CAAA;AAE1E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qCAAqC,CAAA;AAEpE,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,GAAG,QAAQ,GAAG,IAAI,CAAA;IAC/B,KAAK,CAAC,EAAE,SAAS,EAAE,CAAA;IACnB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAID,wBAAgB,eAAe,CAAC,OAAO,EAAE,WAAW,GAAG,WAAW,CA+CjE;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,SAAS,EAAE,GAAG,IAAI,CAUtF;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,EAAE,EAAE,MAAM,GAAG,WAAW,GAAG,SAAS,CAEzE"}
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import { ApiExampleGenerator } from '@api-client/core/amf/ApiExampleGenerator.js';
|
|
2
|
-
import { ApiMonacoSchemaGenerator } from '@api-client/core/amf/ApiMonacoSchemaGenerator.js';
|
|
3
|
-
import { ApiSchemaGenerator } from '@api-client/core/amf/ApiSchemaGenerator.js';
|
|
4
|
-
const cache = new Map();
|
|
5
|
-
export function getPayloadValue(payload) {
|
|
6
|
-
if (cache.has(payload.id)) {
|
|
7
|
-
return cache.get(payload.id);
|
|
8
|
-
}
|
|
9
|
-
const { id, mediaType = 'text/plain', schema } = payload;
|
|
10
|
-
if (mediaType === 'multipart/form-data') {
|
|
11
|
-
// schema generators don't support this yet,
|
|
12
|
-
const info = { value: new FormData(), schemas: [] };
|
|
13
|
-
cache.set(id, info);
|
|
14
|
-
return info;
|
|
15
|
-
}
|
|
16
|
-
if (!schema) {
|
|
17
|
-
const info = { value: '', schemas: [] };
|
|
18
|
-
cache.set(id, info);
|
|
19
|
-
return info;
|
|
20
|
-
}
|
|
21
|
-
const schemaFactory = new ApiMonacoSchemaGenerator();
|
|
22
|
-
const monacoSchemes = schemaFactory.generate(schema, id);
|
|
23
|
-
let { examples } = payload;
|
|
24
|
-
if (!Array.isArray(examples) || !examples.length) {
|
|
25
|
-
examples = schema.examples;
|
|
26
|
-
}
|
|
27
|
-
if (Array.isArray(examples) && examples.length) {
|
|
28
|
-
const [example] = examples;
|
|
29
|
-
const generator = new ApiExampleGenerator();
|
|
30
|
-
const value = generator.read(example, mediaType);
|
|
31
|
-
const info = { value, schemas: monacoSchemes };
|
|
32
|
-
cache.set(id, info);
|
|
33
|
-
return info;
|
|
34
|
-
}
|
|
35
|
-
// generate values.
|
|
36
|
-
const result = ApiSchemaGenerator.asExample(schema, mediaType, {
|
|
37
|
-
selectedUnions: [],
|
|
38
|
-
renderExamples: true,
|
|
39
|
-
renderOptional: true,
|
|
40
|
-
renderMocked: true,
|
|
41
|
-
});
|
|
42
|
-
if (!result || !result.renderValue) {
|
|
43
|
-
const info = { value: '', schemas: monacoSchemes };
|
|
44
|
-
cache.set(id, info);
|
|
45
|
-
return info;
|
|
46
|
-
}
|
|
47
|
-
const info = { value: result.renderValue, schemas: monacoSchemes };
|
|
48
|
-
cache.set(id, info);
|
|
49
|
-
return info;
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* @param id The ApiPayload id.
|
|
53
|
-
* @param value The value to cache.
|
|
54
|
-
* @param model Optional model to set.
|
|
55
|
-
*/
|
|
56
|
-
export function cachePayloadValue(id, value, model) {
|
|
57
|
-
if (cache.has(id)) {
|
|
58
|
-
const info = cache.get(id);
|
|
59
|
-
info.value = value;
|
|
60
|
-
if (model) {
|
|
61
|
-
info.model = model;
|
|
62
|
-
}
|
|
63
|
-
return;
|
|
64
|
-
}
|
|
65
|
-
cache.set(id, { value, model });
|
|
66
|
-
}
|
|
67
|
-
/**
|
|
68
|
-
* @param id Payload id to read the value.
|
|
69
|
-
*/
|
|
70
|
-
export function readCachePayloadValue(id) {
|
|
71
|
-
return cache.get(id);
|
|
72
|
-
}
|
|
73
|
-
//# sourceMappingURL=PayloadUtils.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PayloadUtils.js","sourceRoot":"","sources":["../../../../src/amf/lib/PayloadUtils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,6CAA6C,CAAA;AACjF,OAAO,EAAE,wBAAwB,EAAE,MAAM,kDAAkD,CAAA;AAC3F,OAAO,EAAE,kBAAkB,EAAE,MAAM,4CAA4C,CAAA;AAW/E,MAAM,KAAK,GAAG,IAAI,GAAG,EAAuB,CAAA;AAE5C,MAAM,UAAU,eAAe,CAAC,OAAoB;IAClD,IAAI,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC,EAAE,CAAC;QAC1B,OAAO,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CAAgB,CAAA;IAC7C,CAAC;IACD,MAAM,EAAE,EAAE,EAAE,SAAS,GAAG,YAAY,EAAE,MAAM,EAAE,GAAG,OAAO,CAAA;IAExD,IAAI,SAAS,KAAK,qBAAqB,EAAE,CAAC;QACxC,4CAA4C;QAC5C,MAAM,IAAI,GAAG,EAAE,KAAK,EAAE,IAAI,QAAQ,EAAE,EAAE,OAAO,EAAE,EAAE,EAAiB,CAAA;QAClE,KAAK,CAAC,GAAG,CAAC,EAAE,EAAE,IAAI,CAAC,CAAA;QACnB,OAAO,IAAI,CAAA;IACb,CAAC;IACD,IAAI,CAAC,MAAM,EAAE,CAAC;QACZ,MAAM,IAAI,GAAG,EAAE,KAAK,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,CAAA;QACvC,KA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AAG,CAAC,EAAE,EAAE,IAAI,CAAC,CAAA;QACnB,OAAO,IAAI,CAAA;IACb,CAAC;IACD,MAAM,IAAI,GAAG,EAAE,KAAK,EAAE,MAAM,CAAC,WAAW,EAAE,OAAO,EAAE,aAAa,EAAiB,CAAA;IACjF,KAAK,CAAC,GAAG,CAAC,EAAE,EAAE,IAAI,CAAC,CAAA;IACnB,OAAO,IAAI,CAAA;AACb,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,iBAAiB,CAAC,EAAU,EAAE,KAAa,EAAE,KAAmB;IAC9E,IAAI,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,CAAC;QAClB,MAAM,IAAI,GAAG,KAAK,CAAC,GAAG,CAAC,EAAE,CAAgB,CAAA;QACzC,IAAI,CAAC,KAAK,GAAG,KAAK,CAAA;QAClB,IAAI,KAAK,EAAE,CAAC;YACV,IAAI,CAAC,KAAK,GAAG,KAAK,CAAA;QACpB,CAAC;QACD,OAAM;IACR,CAAC;IACD,KAAK,CAAC,GAAG,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,CAAA;AACjC,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,qBAAqB,CAAC,EAAU;IAC9C,OAAO,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,CAAA;AACtB,CAAC","sourcesContent":["import { ApiExampleGenerator } from '@api-client/core/amf/ApiExampleGenerator.js'\nimport { ApiMonacoSchemaGenerator } from '@api-client/core/amf/ApiMonacoSchemaGenerator.js'\nimport { ApiSchemaGenerator } from '@api-client/core/amf/ApiSchemaGenerator.js'\nimport type { IApiPayload } from '@api-client/core/amf/definitions/Api.js'\nimport type { IApiAnyShape } from '@api-client/core/amf/definitions/Shapes.js'\nimport type { IProperty } from '@api-client/core/models/Property.js'\n\nexport interface PayloadInfo {\n value: string | FormData | Blob\n model?: IProperty[]\n schemas?: unknown\n}\n\nconst cache = new Map<string, PayloadInfo>()\n\nexport function getPayloadValue(payload: IApiPayload): PayloadInfo {\n if (cache.has(payload.id)) {\n return cache.get(payload.id) as PayloadInfo\n }\n const { id, mediaType = 'text/plain', schema } = payload\n\n if (mediaType === 'multipart/form-data') {\n // schema generators don't support this yet,\n const info = { value: new FormData(), schemas: [] } as PayloadInfo\n cache.set(id, info)\n return info\n }\n if (!schema) {\n const info = { value: '', schemas: [] }\n cache.set(id, info)\n return info\n }\n\n const schemaFactory = new ApiMonacoSchemaGenerator()\n const monacoSchemes = schemaFactory.generate(schema, id)\n let { examples } = payload\n if (!Array.isArray(examples) || !examples.length) {\n examples = (schema as IApiAnyShape).examples\n }\n if (Array.isArray(examples) && examples.length) {\n const [example] = examples\n const generator = new ApiExampleGenerator()\n const value = generator.read(example, mediaType)\n const info = { value, schemas: monacoSchemes } as PayloadInfo\n cache.set(id, info)\n return info\n }\n // generate values.\n const result = ApiSchemaGenerator.asExample(schema, mediaType, {\n selectedUnions: [],\n renderExamples: true,\n renderOptional: true,\n renderMocked: true,\n })\n if (!result || !result.renderValue) {\n const info = { value: '', schemas: monacoSchemes }\n cache.set(id, info)\n return info\n }\n const info = { value: result.renderValue, schemas: monacoSchemes } as PayloadInfo\n cache.set(id, info)\n return info\n}\n\n/**\n * @param id The ApiPayload id.\n * @param value The value to cache.\n * @param model Optional model to set.\n */\nexport function cachePayloadValue(id: string, value: string, model?: IProperty[]): void {\n if (cache.has(id)) {\n const info = cache.get(id) as PayloadInfo\n info.value = value\n if (model) {\n info.model = model\n }\n return\n }\n cache.set(id, { value, model })\n}\n\n/**\n * @param id Payload id to read the value.\n */\nexport function readCachePayloadValue(id: string): PayloadInfo | undefined {\n return cache.get(id)\n}\n"]}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import type { IShapeUnion, IApiScalarShape, IApiNodeShape, IApiArrayShape, IApiUnionShape, IApiPropertyShape } from '@api-client/core/amf/definitions/Shapes.js';
|
|
2
|
-
import type { OperationParameter } from '../types.js';
|
|
3
|
-
/**
|
|
4
|
-
* A library to create a list of ApiParameters from a query string value.
|
|
5
|
-
*/
|
|
6
|
-
export declare class QueryParameterProcessor {
|
|
7
|
-
/**
|
|
8
|
-
* @param schema
|
|
9
|
-
* @param binding The parameter binding.
|
|
10
|
-
* @param source Optional parameter source.
|
|
11
|
-
*/
|
|
12
|
-
collectOperationParameters(schema: IShapeUnion, binding: string, source?: string): OperationParameter[];
|
|
13
|
-
/**
|
|
14
|
-
* @param shape
|
|
15
|
-
* @param binding The parameter binding.
|
|
16
|
-
* @param source Optional parameter source.
|
|
17
|
-
*/
|
|
18
|
-
scalarShapeOperationParameter(shape: IApiScalarShape, binding: string, source?: string): OperationParameter;
|
|
19
|
-
/**
|
|
20
|
-
* @param shape
|
|
21
|
-
* @param binding The parameter binding.
|
|
22
|
-
* @param source Optional parameter source.
|
|
23
|
-
*/
|
|
24
|
-
nodeShapeOperationParameter(shape: IApiNodeShape, binding: string, source?: string): OperationParameter[];
|
|
25
|
-
/**
|
|
26
|
-
* @param property The property to build the parameter for.
|
|
27
|
-
* @param binding The parameter binding.
|
|
28
|
-
* @param source Optional parameter source.
|
|
29
|
-
*/
|
|
30
|
-
parameterOperationParameter(property: IApiPropertyShape, binding: string, source?: string): OperationParameter;
|
|
31
|
-
/**
|
|
32
|
-
* @param shape
|
|
33
|
-
* @param binding The parameter binding.
|
|
34
|
-
* @param source Optional parameter source.
|
|
35
|
-
*/
|
|
36
|
-
arrayShapeOperationParameter(shape: IApiArrayShape, binding: string, source?: string): OperationParameter | OperationParameter[];
|
|
37
|
-
/**
|
|
38
|
-
* @param shape
|
|
39
|
-
* @param binding The parameter binding.
|
|
40
|
-
* @param source Optional parameter source.
|
|
41
|
-
*/
|
|
42
|
-
unionShapeOperationParameter(shape: IApiUnionShape, binding: string, source?: string): OperationParameter[] | undefined;
|
|
43
|
-
}
|
|
44
|
-
//# sourceMappingURL=QueryParameterProcessor.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"QueryParameterProcessor.d.ts","sourceRoot":"","sources":["../../../../src/amf/lib/QueryParameterProcessor.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,WAAW,EACX,eAAe,EACf,aAAa,EACb,cAAc,EACd,cAAc,EACd,iBAAiB,EAClB,MAAM,4CAA4C,CAAA;AACnD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAA;AAErD;;GAEG;AACH,qBAAa,uBAAuB;IAClC;;;;OAIG;IACH,0BAA0B,CAAC,MAAM,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,kBAAkB,EAAE;IA2BvG;;;;OAIG;IACH,6BAA6B,CAAC,KAAK,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,kBAAkB;IAuB3G;;;;OAIG;IACH,2BAA2B,CAAC,KAAK,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,kBAAkB,EAAE;IAYzG;;;;OAIG;IACH,2BAA2B,CAAC,QAAQ,EAAE,iBAAiB,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,kBAAkB;IAuB9G;;;;OAIG;IACH,4BAA4B,CAC1B,KAAK,EAAE,cAAc,EACrB,OAAO,EAAE,MAAM,EACf,MAAM,CAAC,EAAE,MAAM,GACd,kBAAkB,GAAG,kBAAkB,EAAE;IA4B5C;;;;OAIG;IACH,4BAA4B,CAC1B,KAAK,EAAE,cAAc,EACrB,OAAO,EAAE,MAAM,EACf,MAAM,CAAC,EAAE,MAAM,GACd,kBAAkB,EAAE,GAAG,SAAS;CAkBpC"}
|
|
@@ -1,167 +0,0 @@
|
|
|
1
|
-
import { AmfNamespace } from '@api-client/core/amf/definitions/Namespace.js';
|
|
2
|
-
/**
|
|
3
|
-
* A library to create a list of ApiParameters from a query string value.
|
|
4
|
-
*/
|
|
5
|
-
export class QueryParameterProcessor {
|
|
6
|
-
/**
|
|
7
|
-
* @param schema
|
|
8
|
-
* @param binding The parameter binding.
|
|
9
|
-
* @param source Optional parameter source.
|
|
10
|
-
*/
|
|
11
|
-
collectOperationParameters(schema, binding, source) {
|
|
12
|
-
let result = [];
|
|
13
|
-
if (!schema) {
|
|
14
|
-
return result;
|
|
15
|
-
}
|
|
16
|
-
const { types } = schema;
|
|
17
|
-
if (types.includes(AmfNamespace.aml.vocabularies.shapes.ScalarShape)) {
|
|
18
|
-
result.push(this.scalarShapeOperationParameter(schema, binding, source));
|
|
19
|
-
}
|
|
20
|
-
else if (types.includes(AmfNamespace.w3.shacl.NodeShape)) {
|
|
21
|
-
const params = this.nodeShapeOperationParameter(schema, binding, source);
|
|
22
|
-
result = result.concat(params);
|
|
23
|
-
}
|
|
24
|
-
else if (types.includes(AmfNamespace.aml.vocabularies.shapes.ArrayShape)) {
|
|
25
|
-
const arrResult = this.arrayShapeOperationParameter(schema, binding, source);
|
|
26
|
-
if (Array.isArray(arrResult)) {
|
|
27
|
-
result = result.concat(arrResult);
|
|
28
|
-
}
|
|
29
|
-
else if (arrResult) {
|
|
30
|
-
result.push(arrResult);
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
else if (types.includes(AmfNamespace.aml.vocabularies.shapes.UnionShape)) {
|
|
34
|
-
const params = this.unionShapeOperationParameter(schema, binding, source);
|
|
35
|
-
if (params) {
|
|
36
|
-
result = result.concat(params);
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
return result;
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* @param shape
|
|
43
|
-
* @param binding The parameter binding.
|
|
44
|
-
* @param source Optional parameter source.
|
|
45
|
-
*/
|
|
46
|
-
scalarShapeOperationParameter(shape, binding, source) {
|
|
47
|
-
const { id, name } = shape;
|
|
48
|
-
const constructed = {
|
|
49
|
-
id,
|
|
50
|
-
binding,
|
|
51
|
-
schema: shape,
|
|
52
|
-
name,
|
|
53
|
-
examples: [],
|
|
54
|
-
payloads: [],
|
|
55
|
-
types: [AmfNamespace.aml.vocabularies.apiContract.Parameter],
|
|
56
|
-
required: false,
|
|
57
|
-
customDomainProperties: [],
|
|
58
|
-
};
|
|
59
|
-
return {
|
|
60
|
-
binding,
|
|
61
|
-
paramId: id,
|
|
62
|
-
parameter: constructed,
|
|
63
|
-
source: source || '',
|
|
64
|
-
schemaId: id,
|
|
65
|
-
schema: shape,
|
|
66
|
-
};
|
|
67
|
-
}
|
|
68
|
-
/**
|
|
69
|
-
* @param shape
|
|
70
|
-
* @param binding The parameter binding.
|
|
71
|
-
* @param source Optional parameter source.
|
|
72
|
-
*/
|
|
73
|
-
nodeShapeOperationParameter(shape, binding, source) {
|
|
74
|
-
const result = [];
|
|
75
|
-
const { properties = [] } = shape;
|
|
76
|
-
if (!properties.length) {
|
|
77
|
-
return result;
|
|
78
|
-
}
|
|
79
|
-
properties.forEach((prop) => {
|
|
80
|
-
result.push(this.parameterOperationParameter(prop, binding, source));
|
|
81
|
-
});
|
|
82
|
-
return result;
|
|
83
|
-
}
|
|
84
|
-
/**
|
|
85
|
-
* @param property The property to build the parameter for.
|
|
86
|
-
* @param binding The parameter binding.
|
|
87
|
-
* @param source Optional parameter source.
|
|
88
|
-
*/
|
|
89
|
-
parameterOperationParameter(property, binding, source) {
|
|
90
|
-
const { id, range, name, minCount = 0 } = property;
|
|
91
|
-
const constructed = {
|
|
92
|
-
id,
|
|
93
|
-
binding,
|
|
94
|
-
schema: range,
|
|
95
|
-
name,
|
|
96
|
-
examples: [],
|
|
97
|
-
payloads: [],
|
|
98
|
-
types: [AmfNamespace.aml.vocabularies.apiContract.Parameter],
|
|
99
|
-
required: minCount > 0,
|
|
100
|
-
customDomainProperties: [],
|
|
101
|
-
};
|
|
102
|
-
return {
|
|
103
|
-
binding,
|
|
104
|
-
paramId: id,
|
|
105
|
-
parameter: constructed,
|
|
106
|
-
source: source || '',
|
|
107
|
-
schemaId: property.id,
|
|
108
|
-
schema: range,
|
|
109
|
-
};
|
|
110
|
-
}
|
|
111
|
-
/**
|
|
112
|
-
* @param shape
|
|
113
|
-
* @param binding The parameter binding.
|
|
114
|
-
* @param source Optional parameter source.
|
|
115
|
-
*/
|
|
116
|
-
arrayShapeOperationParameter(shape, binding, source) {
|
|
117
|
-
const target = shape.items || shape;
|
|
118
|
-
if (target.types.includes(AmfNamespace.w3.shacl.NodeShape)) {
|
|
119
|
-
const typed = shape.items;
|
|
120
|
-
return this.collectOperationParameters(typed, binding, source);
|
|
121
|
-
}
|
|
122
|
-
const { id, name } = target;
|
|
123
|
-
const constructed = {
|
|
124
|
-
id,
|
|
125
|
-
binding,
|
|
126
|
-
schema: shape,
|
|
127
|
-
name,
|
|
128
|
-
examples: [],
|
|
129
|
-
payloads: [],
|
|
130
|
-
types: [AmfNamespace.aml.vocabularies.apiContract.Parameter],
|
|
131
|
-
required: false,
|
|
132
|
-
customDomainProperties: [],
|
|
133
|
-
};
|
|
134
|
-
return {
|
|
135
|
-
binding,
|
|
136
|
-
paramId: id,
|
|
137
|
-
parameter: constructed,
|
|
138
|
-
source: source || '',
|
|
139
|
-
schemaId: id,
|
|
140
|
-
schema: shape,
|
|
141
|
-
};
|
|
142
|
-
}
|
|
143
|
-
/**
|
|
144
|
-
* @param shape
|
|
145
|
-
* @param binding The parameter binding.
|
|
146
|
-
* @param source Optional parameter source.
|
|
147
|
-
*/
|
|
148
|
-
unionShapeOperationParameter(shape, binding, source) {
|
|
149
|
-
const { anyOf = [], or = [], and = [], xone = [] } = shape;
|
|
150
|
-
if (and.length) {
|
|
151
|
-
let result = [];
|
|
152
|
-
and.forEach((item) => {
|
|
153
|
-
const itemResult = this.collectOperationParameters(item, binding, source);
|
|
154
|
-
if (itemResult) {
|
|
155
|
-
result = result.concat(itemResult);
|
|
156
|
-
}
|
|
157
|
-
});
|
|
158
|
-
return result;
|
|
159
|
-
}
|
|
160
|
-
const info = anyOf[0] || or[0] || xone[0];
|
|
161
|
-
if (!info) {
|
|
162
|
-
return undefined;
|
|
163
|
-
}
|
|
164
|
-
return this.collectOperationParameters(info, binding, source);
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
//# sourceMappingURL=QueryParameterProcessor.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"QueryParameterProcessor.js","sourceRoot":"","sources":["../../../../src/amf/lib/QueryParameterProcessor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,+CAA+C,CAAA;AAY5E;;GAEG;AACH,MAAM,OAAO,uBAAuB;IAClC;;;;OAIG;IACH,0BAA0B,CAAC,MAAmB,EAAE,OAAe,EAAE,MAAe;QAC9E,IAAI,MAAM,GAAyB,EAAE,CAAA;QACrC,IAAI,CAAC,MAAM,EAAE,CAAC;YACZ,OAAO,MAAM,CAAA;QACf,CAAC;QACD,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,CAAA;QACxB,IAAI,KAAK,CAAC,QAAQ,CAAC,YAAY,CAAC,GAAG,CAAC,YAAY,CAAC,MAAM,CAAC,WAAW,CAAC,EAAE,CAAC;YACrE,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,6BAA6B,CAAC,MAAyB,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC,CAAA;QAC7F,CAAC;aAAM,IAAI,KAAK,CAAC,QAAQ,CAAC,YAAY,CAAC,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC,EAAE,CAAC;YAC3D,MAAM,MAAM,GAAG,IAAI,CAAC,2BAA2B,CAAC,MAAuB,EAAE,OAAO,EAAE,MAAM,CAAC,CAAA;YACzF,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAA;QAChC,CAAC;aAAM,IAAI,KAAK,CAAC,QAAQ,CAAC,YAAY,CAAC,GAAG,CAAC,YAAY,CAAC,MAAM,CAAC,UAAU,CAAC,EAAE,CAAC;YAC3E,MAAM,SAAS,GAAG,IAAI,CAAC,4BAA4B,CAAC,MA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AM,CAAC,MAAM,CAAC,UAAU,CAAC,CAAA;gBACpC,CAAC;YACH,CAAC,CAAC,CAAA;YACF,OAAO,MAAM,CAAA;QACf,CAAC;QACD,MAAM,IAAI,GAAG,KAAK,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,CAAA;QACzC,IAAI,CAAC,IAAI,EAAE,CAAC;YACV,OAAO,SAAS,CAAA;QAClB,CAAC;QACD,OAAO,IAAI,CAAC,0BAA0B,CAAC,IAAI,EAAE,OAAO,EAAE,MAAM,CAAC,CAAA;IAC/D,CAAC;CACF","sourcesContent":["import { AmfNamespace } from '@api-client/core/amf/definitions/Namespace.js'\nimport type { IApiParameter } from '@api-client/core/amf/definitions/Api.js'\nimport type {\n IShapeUnion,\n IApiScalarShape,\n IApiNodeShape,\n IApiArrayShape,\n IApiUnionShape,\n IApiPropertyShape,\n} from '@api-client/core/amf/definitions/Shapes.js'\nimport type { OperationParameter } from '../types.js'\n\n/**\n * A library to create a list of ApiParameters from a query string value.\n */\nexport class QueryParameterProcessor {\n /**\n * @param schema\n * @param binding The parameter binding.\n * @param source Optional parameter source.\n */\n collectOperationParameters(schema: IShapeUnion, binding: string, source?: string): OperationParameter[] {\n let result: OperationParameter[] = []\n if (!schema) {\n return result\n }\n const { types } = schema\n if (types.includes(AmfNamespace.aml.vocabularies.shapes.ScalarShape)) {\n result.push(this.scalarShapeOperationParameter(schema as IApiScalarShape, binding, source))\n } else if (types.includes(AmfNamespace.w3.shacl.NodeShape)) {\n const params = this.nodeShapeOperationParameter(schema as IApiNodeShape, binding, source)\n result = result.concat(params)\n } else if (types.includes(AmfNamespace.aml.vocabularies.shapes.ArrayShape)) {\n const arrResult = this.arrayShapeOperationParameter(schema as IApiArrayShape, binding, source)\n if (Array.isArray(arrResult)) {\n result = result.concat(arrResult)\n } else if (arrResult) {\n result.push(arrResult)\n }\n } else if (types.includes(AmfNamespace.aml.vocabularies.shapes.UnionShape)) {\n const params = this.unionShapeOperationParameter(schema as IApiUnionShape, binding, source)\n if (params) {\n result = result.concat(params)\n }\n }\n return result\n }\n\n /**\n * @param shape\n * @param binding The parameter binding.\n * @param source Optional parameter source.\n */\n scalarShapeOperationParameter(shape: IApiScalarShape, binding: string, source?: string): OperationParameter {\n const { id, name } = shape\n const constructed: IApiParameter = {\n id,\n binding,\n schema: shape,\n name,\n examples: [],\n payloads: [],\n types: [AmfNamespace.aml.vocabularies.apiContract.Parameter],\n required: false,\n customDomainProperties: [],\n }\n return {\n binding,\n paramId: id,\n parameter: constructed,\n source: source || '',\n schemaId: id,\n schema: shape,\n }\n }\n\n /**\n * @param shape\n * @param binding The parameter binding.\n * @param source Optional parameter source.\n */\n nodeShapeOperationParameter(shape: IApiNodeShape, binding: string, source?: string): OperationParameter[] {\n const result: OperationParameter[] = []\n const { properties = [] } = shape\n if (!properties.length) {\n return result\n }\n properties.forEach((prop) => {\n result.push(this.parameterOperationParameter(prop, binding, source))\n })\n return result\n }\n\n /**\n * @param property The property to build the parameter for.\n * @param binding The parameter binding.\n * @param source Optional parameter source.\n */\n parameterOperationParameter(property: IApiPropertyShape, binding: string, source?: string): OperationParameter {\n const { id, range, name, minCount = 0 } = property\n const constructed: IApiParameter = {\n id,\n binding,\n schema: range,\n name,\n examples: [],\n payloads: [],\n types: [AmfNamespace.aml.vocabularies.apiContract.Parameter],\n required: minCount > 0,\n customDomainProperties: [],\n }\n return {\n binding,\n paramId: id,\n parameter: constructed,\n source: source || '',\n schemaId: property.id,\n schema: range,\n }\n }\n\n /**\n * @param shape\n * @param binding The parameter binding.\n * @param source Optional parameter source.\n */\n arrayShapeOperationParameter(\n shape: IApiArrayShape,\n binding: string,\n source?: string\n ): OperationParameter | OperationParameter[] {\n const target = shape.items || shape\n if (target.types.includes(AmfNamespace.w3.shacl.NodeShape)) {\n const typed = shape.items as IApiNodeShape\n return this.collectOperationParameters(typed, binding, source)\n }\n const { id, name } = target\n const constructed: IApiParameter = {\n id,\n binding,\n schema: shape,\n name,\n examples: [],\n payloads: [],\n types: [AmfNamespace.aml.vocabularies.apiContract.Parameter],\n required: false,\n customDomainProperties: [],\n }\n return {\n binding,\n paramId: id,\n parameter: constructed,\n source: source || '',\n schemaId: id,\n schema: shape,\n }\n }\n\n /**\n * @param shape\n * @param binding The parameter binding.\n * @param source Optional parameter source.\n */\n unionShapeOperationParameter(\n shape: IApiUnionShape,\n binding: string,\n source?: string\n ): OperationParameter[] | undefined {\n const { anyOf = [], or = [], and = [], xone = [] } = shape\n if (and.length) {\n let result: OperationParameter[] = []\n and.forEach((item) => {\n const itemResult = this.collectOperationParameters(item, binding, source)\n if (itemResult) {\n result = result.concat(itemResult)\n }\n })\n return result\n }\n const info = anyOf[0] || or[0] || xone[0]\n if (!info) {\n return undefined\n }\n return this.collectOperationParameters(info, binding, source)\n }\n}\n"]}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import type { ComputeBaseUriOptions } from '../types.js';
|
|
2
|
-
/**
|
|
3
|
-
* Computes the base URI value for the API/endpoint/operation.
|
|
4
|
-
*
|
|
5
|
-
* @param url The url to check for protocol information.
|
|
6
|
-
* @param options The computation options
|
|
7
|
-
* @returns The base uri value with a protocol,
|
|
8
|
-
*/
|
|
9
|
-
export declare function setProtocol(url?: string, options?: ComputeBaseUriOptions): string;
|
|
10
|
-
/**
|
|
11
|
-
* Computes the base URI value for the API/endpoint/operation.
|
|
12
|
-
*
|
|
13
|
-
* @param options The computation options
|
|
14
|
-
* @returns Base uri value. Can be empty string.
|
|
15
|
-
*/
|
|
16
|
-
export declare function computeApiBaseUri(options?: ComputeBaseUriOptions): string;
|
|
17
|
-
/**
|
|
18
|
-
* Computes the base URI value for the API/endpoint/operation.
|
|
19
|
-
*
|
|
20
|
-
* @param options The computation options
|
|
21
|
-
* @returns Base uri value. Can be empty string.
|
|
22
|
-
*/
|
|
23
|
-
export declare function computeEndpointUri(options?: ComputeBaseUriOptions): string;
|
|
24
|
-
/**
|
|
25
|
-
* @param str A key or value to encode as x-www-form-urlencoded.
|
|
26
|
-
* @param replacePlus When set it replaces `%20` with `+`.
|
|
27
|
-
*/
|
|
28
|
-
export declare function wwwFormUrlEncode(str: string, replacePlus: boolean): string;
|
|
29
|
-
/**
|
|
30
|
-
* @param url The current URL
|
|
31
|
-
* @param variables The path variables to apply.
|
|
32
|
-
* @param encode Whether to encode parameters.
|
|
33
|
-
*/
|
|
34
|
-
export declare function applyUrlVariables(url: string, variables: Record<string, unknown>, encode: boolean): string;
|
|
35
|
-
/**
|
|
36
|
-
* @param url The current URL
|
|
37
|
-
* @param params The query parameters to apply.
|
|
38
|
-
* @param encode Whether to encode parameters.
|
|
39
|
-
*/
|
|
40
|
-
export declare function applyUrlParameters(url: string, params: Record<string, unknown>, encode: boolean): string;
|
|
41
|
-
/**
|
|
42
|
-
* Applies query parameter values to an object.
|
|
43
|
-
* Repeated parameters will have array value instead of string value.
|
|
44
|
-
*
|
|
45
|
-
* @param param Query parameter value as string. Eg `name=value`
|
|
46
|
-
* @param obj Target for values
|
|
47
|
-
*/
|
|
48
|
-
export declare function applyQueryParamStringToObject(param: string, obj: Record<string, string | string[]>): void;
|
|
49
|
-
//# sourceMappingURL=UrlUtils.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"UrlUtils.d.ts","sourceRoot":"","sources":["../../../../src/amf/lib/UrlUtils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAA;AAExD;;;;;;GAMG;AACH,wBAAgB,WAAW,CAAC,GAAG,SAAK,EAAE,OAAO,GAAE,qBAA0B,GAAG,MAAM,CAgBjF;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,GAAE,qBAA0B,GAAG,MAAM,CAqB7E;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,GAAE,qBAA0B,GAAG,MAAM,CAa9E;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,EAAE,WAAW,EAAE,OAAO,GAAG,MAAM,CAW1E;AAaD;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,EAAE,OAAO,GAAG,MAAM,CAwB1G;AAyCD;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,EAAE,OAAO,GAAG,MAAM,CASxG;AAED;;;;;;GAMG;AACH,wBAAgB,6BAA6B,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC,GAAG,IAAI,CAczG"}
|
|
@@ -1,209 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Computes the base URI value for the API/endpoint/operation.
|
|
3
|
-
*
|
|
4
|
-
* @param url The url to check for protocol information.
|
|
5
|
-
* @param options The computation options
|
|
6
|
-
* @returns The base uri value with a protocol,
|
|
7
|
-
*/
|
|
8
|
-
export function setProtocol(url = '', options = {}) {
|
|
9
|
-
const { server, protocols = [] } = options;
|
|
10
|
-
const schemes = [...protocols];
|
|
11
|
-
if (server && server.protocol) {
|
|
12
|
-
schemes.unshift(server.protocol);
|
|
13
|
-
}
|
|
14
|
-
let result = url;
|
|
15
|
-
// this also run when an Async API is loaded so the protocol may be whatever.
|
|
16
|
-
const hasProtocol = !!result && result.includes('://');
|
|
17
|
-
if (result && !hasProtocol && schemes.length) {
|
|
18
|
-
result = `${schemes[0]}://${result}`;
|
|
19
|
-
}
|
|
20
|
-
else if (result && !hasProtocol && options.forceHttpProtocol) {
|
|
21
|
-
result = `http://${result}`;
|
|
22
|
-
}
|
|
23
|
-
return result;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Computes the base URI value for the API/endpoint/operation.
|
|
27
|
-
*
|
|
28
|
-
* @param options The computation options
|
|
29
|
-
* @returns Base uri value. Can be empty string.
|
|
30
|
-
*/
|
|
31
|
-
export function computeApiBaseUri(options = {}) {
|
|
32
|
-
const { baseUri, server, version } = options;
|
|
33
|
-
if (baseUri) {
|
|
34
|
-
let result = baseUri;
|
|
35
|
-
if (result.endsWith('/')) {
|
|
36
|
-
result = result.substr(0, result.length - 1);
|
|
37
|
-
}
|
|
38
|
-
return setProtocol(result, options);
|
|
39
|
-
}
|
|
40
|
-
if (!server) {
|
|
41
|
-
return '';
|
|
42
|
-
}
|
|
43
|
-
const { url = '' } = server;
|
|
44
|
-
let result = url;
|
|
45
|
-
if (version && result) {
|
|
46
|
-
result = result.replace('{version}', version);
|
|
47
|
-
}
|
|
48
|
-
if (result.endsWith('/')) {
|
|
49
|
-
result = result.substr(0, result.length - 1);
|
|
50
|
-
}
|
|
51
|
-
return setProtocol(result, options);
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* Computes the base URI value for the API/endpoint/operation.
|
|
55
|
-
*
|
|
56
|
-
* @param options The computation options
|
|
57
|
-
* @returns Base uri value. Can be empty string.
|
|
58
|
-
*/
|
|
59
|
-
export function computeEndpointUri(options = {}) {
|
|
60
|
-
let result = computeApiBaseUri(options);
|
|
61
|
-
if (options.endpoint) {
|
|
62
|
-
let { path = '' } = options.endpoint;
|
|
63
|
-
if (path[0] !== '/') {
|
|
64
|
-
path = `/${path}`;
|
|
65
|
-
}
|
|
66
|
-
result += path;
|
|
67
|
-
}
|
|
68
|
-
if (!result) {
|
|
69
|
-
result = '(unknown path)';
|
|
70
|
-
}
|
|
71
|
-
return result;
|
|
72
|
-
}
|
|
73
|
-
/**
|
|
74
|
-
* @param str A key or value to encode as x-www-form-urlencoded.
|
|
75
|
-
* @param replacePlus When set it replaces `%20` with `+`.
|
|
76
|
-
*/
|
|
77
|
-
export function wwwFormUrlEncode(str, replacePlus) {
|
|
78
|
-
// Spec says to normalize newlines to \r\n and replace %20 spaces with +.
|
|
79
|
-
// jQuery does this as well, so this is likely to be widely compatible.
|
|
80
|
-
if (!str) {
|
|
81
|
-
return '';
|
|
82
|
-
}
|
|
83
|
-
let result = encodeURIComponent(str.toString().replace(/\r?\n/g, '\r\n'));
|
|
84
|
-
if (replacePlus) {
|
|
85
|
-
result = result.replace(/%20/g, '+');
|
|
86
|
-
}
|
|
87
|
-
return result;
|
|
88
|
-
}
|
|
89
|
-
/**
|
|
90
|
-
* Creates a RegExp object to replace template variable from the base string
|
|
91
|
-
* @param name Name of the parameter to be replaced
|
|
92
|
-
*/
|
|
93
|
-
function createUrlReplaceRegex(name) {
|
|
94
|
-
if (name[0] === '+' || name[0] === '#') {
|
|
95
|
-
name = `\\${name}`;
|
|
96
|
-
}
|
|
97
|
-
return new RegExp(`{${name}}`, 'g');
|
|
98
|
-
}
|
|
99
|
-
/**
|
|
100
|
-
* @param url The current URL
|
|
101
|
-
* @param variables The path variables to apply.
|
|
102
|
-
* @param encode Whether to encode parameters.
|
|
103
|
-
*/
|
|
104
|
-
export function applyUrlVariables(url, variables, encode) {
|
|
105
|
-
let result = url || '';
|
|
106
|
-
Object.keys(variables).forEach((variable) => {
|
|
107
|
-
let value = variables[variable];
|
|
108
|
-
if (value === undefined) {
|
|
109
|
-
return;
|
|
110
|
-
}
|
|
111
|
-
value = String(value);
|
|
112
|
-
if (value === '') {
|
|
113
|
-
// this is to leave the URL template value in the URL so the validators
|
|
114
|
-
// can report an error.
|
|
115
|
-
return;
|
|
116
|
-
}
|
|
117
|
-
if (encode) {
|
|
118
|
-
if (variable[0] === '+' || variable[0] === '#') {
|
|
119
|
-
value = encodeURI(value);
|
|
120
|
-
}
|
|
121
|
-
else {
|
|
122
|
-
value = wwwFormUrlEncode(value, false);
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
const r = createUrlReplaceRegex(variable);
|
|
126
|
-
result = result.replace(r, String(value));
|
|
127
|
-
});
|
|
128
|
-
return result;
|
|
129
|
-
}
|
|
130
|
-
/**
|
|
131
|
-
* @param params The query parameters to use to generate the query string.
|
|
132
|
-
* @param encode Whether to encode query parameters.
|
|
133
|
-
* @returns The query string.
|
|
134
|
-
*/
|
|
135
|
-
function generateQueryString(params, encode) {
|
|
136
|
-
if (typeof params !== 'object') {
|
|
137
|
-
return '';
|
|
138
|
-
}
|
|
139
|
-
const parts = [];
|
|
140
|
-
function addPart(name, value) {
|
|
141
|
-
if (value === undefined) {
|
|
142
|
-
value = '';
|
|
143
|
-
}
|
|
144
|
-
else {
|
|
145
|
-
value = String(value);
|
|
146
|
-
}
|
|
147
|
-
if (encode) {
|
|
148
|
-
name = wwwFormUrlEncode(name, true);
|
|
149
|
-
value = wwwFormUrlEncode(value, true);
|
|
150
|
-
}
|
|
151
|
-
parts.push(`${name}=${value}`);
|
|
152
|
-
}
|
|
153
|
-
Object.keys(params).forEach((key) => {
|
|
154
|
-
const value = params[key];
|
|
155
|
-
if (Array.isArray(value)) {
|
|
156
|
-
value.forEach((v) => {
|
|
157
|
-
let arrayValue = v;
|
|
158
|
-
if (Array.isArray(arrayValue)) {
|
|
159
|
-
arrayValue = arrayValue.join(',');
|
|
160
|
-
}
|
|
161
|
-
addPart(key, arrayValue);
|
|
162
|
-
});
|
|
163
|
-
}
|
|
164
|
-
else {
|
|
165
|
-
addPart(key, value);
|
|
166
|
-
}
|
|
167
|
-
});
|
|
168
|
-
return parts.join('&');
|
|
169
|
-
}
|
|
170
|
-
/**
|
|
171
|
-
* @param url The current URL
|
|
172
|
-
* @param params The query parameters to apply.
|
|
173
|
-
* @param encode Whether to encode parameters.
|
|
174
|
-
*/
|
|
175
|
-
export function applyUrlParameters(url, params, encode) {
|
|
176
|
-
const query = generateQueryString(params, encode);
|
|
177
|
-
if (!query) {
|
|
178
|
-
return url;
|
|
179
|
-
}
|
|
180
|
-
let result = url || '';
|
|
181
|
-
result += result.indexOf('?') === -1 ? '?' : '&';
|
|
182
|
-
result += query;
|
|
183
|
-
return result;
|
|
184
|
-
}
|
|
185
|
-
/**
|
|
186
|
-
* Applies query parameter values to an object.
|
|
187
|
-
* Repeated parameters will have array value instead of string value.
|
|
188
|
-
*
|
|
189
|
-
* @param param Query parameter value as string. Eg `name=value`
|
|
190
|
-
* @param obj Target for values
|
|
191
|
-
*/
|
|
192
|
-
export function applyQueryParamStringToObject(param, obj) {
|
|
193
|
-
if (!param || !obj || typeof param !== 'string') {
|
|
194
|
-
return;
|
|
195
|
-
}
|
|
196
|
-
const parts = param.split('=');
|
|
197
|
-
const name = parts[0];
|
|
198
|
-
if (name in obj) {
|
|
199
|
-
if (!Array.isArray(obj[name])) {
|
|
200
|
-
obj[name] = [obj[name]];
|
|
201
|
-
}
|
|
202
|
-
;
|
|
203
|
-
obj[name].push(parts[1]);
|
|
204
|
-
}
|
|
205
|
-
else {
|
|
206
|
-
obj[name] = parts[1];
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
//# sourceMappingURL=UrlUtils.js.map
|