@api-client/ui 0.0.17 → 0.1.1
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 +3 -1
- package/README.md +74 -11
- package/bin/dev.ts +1 -0
- package/build/src/amf/lib/AmfInputParser.d.ts +7 -6
- package/build/src/amf/lib/AmfInputParser.d.ts.map +1 -1
- package/build/src/amf/lib/AmfInputParser.js +2 -1
- package/build/src/amf/lib/AmfInputParser.js.map +1 -1
- package/build/src/amf/lib/AmfParameters.d.ts +16 -15
- package/build/src/amf/lib/AmfParameters.d.ts.map +1 -1
- package/build/src/amf/lib/AmfParameters.js +5 -3
- package/build/src/amf/lib/AmfParameters.js.map +1 -1
- package/build/src/amf/lib/AmfSecurity.d.ts +3 -3
- package/build/src/amf/lib/AmfSecurity.d.ts.map +1 -1
- package/build/src/amf/lib/AmfSecurity.js +1 -0
- package/build/src/amf/lib/AmfSecurity.js.map +1 -1
- package/build/src/amf/lib/Oauth2RamlCustomData.d.ts +13 -12
- package/build/src/amf/lib/Oauth2RamlCustomData.d.ts.map +1 -1
- package/build/src/amf/lib/Oauth2RamlCustomData.js +3 -3
- package/build/src/amf/lib/Oauth2RamlCustomData.js.map +1 -1
- package/build/src/amf/lib/PayloadUtils.d.ts +3 -2
- package/build/src/amf/lib/PayloadUtils.d.ts.map +1 -1
- package/build/src/amf/lib/PayloadUtils.js +3 -1
- package/build/src/amf/lib/PayloadUtils.js.map +1 -1
- package/build/src/amf/lib/QueryParameterProcessor.d.ts +7 -7
- package/build/src/amf/lib/QueryParameterProcessor.d.ts.map +1 -1
- package/build/src/amf/lib/QueryParameterProcessor.js +1 -1
- package/build/src/amf/lib/QueryParameterProcessor.js.map +1 -1
- package/build/src/amf/lib/Utils.d.ts +6 -5
- package/build/src/amf/lib/Utils.d.ts.map +1 -1
- package/build/src/amf/lib/Utils.js +2 -1
- package/build/src/amf/lib/Utils.js.map +1 -1
- package/build/src/amf/store/AmfGraphStore.d.ts +2 -2
- package/build/src/amf/store/AmfGraphStore.d.ts.map +1 -1
- package/build/src/amf/store/AmfGraphStore.js +2 -2
- package/build/src/amf/store/AmfGraphStore.js.map +1 -1
- package/build/src/amf/store/AmfStore.d.ts +21 -17
- package/build/src/amf/store/AmfStore.d.ts.map +1 -1
- package/build/src/amf/store/AmfStore.js +1 -2
- package/build/src/amf/store/AmfStore.js.map +1 -1
- package/build/src/amf/store/InMemAmfGraphStore.d.ts +24 -21
- package/build/src/amf/store/InMemAmfGraphStore.d.ts.map +1 -1
- package/build/src/amf/store/InMemAmfGraphStore.js +2 -1
- package/build/src/amf/store/InMemAmfGraphStore.js.map +1 -1
- package/build/src/amf/types.d.ts +9 -8
- package/build/src/amf/types.d.ts.map +1 -1
- package/build/src/amf/types.js.map +1 -1
- package/build/src/bindings/base/ConfigurationBindings.d.ts +1 -1
- package/build/src/bindings/base/ConfigurationBindings.d.ts.map +1 -1
- package/build/src/bindings/base/ConfigurationBindings.js.map +1 -1
- package/build/src/bindings/base/IoThread.d.ts +1 -1
- package/build/src/bindings/base/IoThread.d.ts.map +1 -1
- package/build/src/bindings/base/IoThread.js +1 -1
- package/build/src/bindings/base/IoThread.js.map +1 -1
- package/build/src/bindings/base/PlatformBindings.js +1 -1
- package/build/src/bindings/base/PlatformBindings.js.map +1 -1
- package/build/src/bindings/web/WebConfigurationBindings.d.ts.map +1 -1
- package/build/src/bindings/web/WebConfigurationBindings.js.map +1 -1
- package/build/src/code-snippets/Bash/CurlSnippet.d.ts +2 -1
- package/build/src/code-snippets/Bash/CurlSnippet.d.ts.map +1 -1
- package/build/src/code-snippets/Bash/CurlSnippet.js.map +1 -1
- package/build/src/code-snippets/C/CcurlSnippet.d.ts +2 -1
- package/build/src/code-snippets/C/CcurlSnippet.d.ts.map +1 -1
- package/build/src/code-snippets/C/CcurlSnippet.js.map +1 -1
- package/build/src/code-snippets/CodeSnippet.d.ts +3 -1
- package/build/src/code-snippets/CodeSnippet.d.ts.map +1 -1
- package/build/src/code-snippets/CodeSnippet.js +1 -1
- package/build/src/code-snippets/CodeSnippet.js.map +1 -1
- package/build/src/code-snippets/Dart/DartSnippet.d.ts +2 -1
- package/build/src/code-snippets/Dart/DartSnippet.d.ts.map +1 -1
- package/build/src/code-snippets/Dart/DartSnippet.js.map +1 -1
- package/build/src/code-snippets/HTTP/RawSnippet.d.ts +2 -1
- package/build/src/code-snippets/HTTP/RawSnippet.d.ts.map +1 -1
- package/build/src/code-snippets/HTTP/RawSnippet.js.map +1 -1
- package/build/src/code-snippets/Java/PlatformSnippet.d.ts +2 -1
- package/build/src/code-snippets/Java/PlatformSnippet.d.ts.map +1 -1
- package/build/src/code-snippets/Java/PlatformSnippet.js.map +1 -1
- package/build/src/code-snippets/Java/SpringSnippet.d.ts +2 -1
- package/build/src/code-snippets/Java/SpringSnippet.d.ts.map +1 -1
- package/build/src/code-snippets/Java/SpringSnippet.js.map +1 -1
- package/build/src/code-snippets/JavaScript/AsyncFetchSnippet.d.ts +2 -1
- package/build/src/code-snippets/JavaScript/AsyncFetchSnippet.d.ts.map +1 -1
- package/build/src/code-snippets/JavaScript/AsyncFetchSnippet.js.map +1 -1
- package/build/src/code-snippets/JavaScript/AxiosSnippet.d.ts +2 -1
- package/build/src/code-snippets/JavaScript/AxiosSnippet.d.ts.map +1 -1
- package/build/src/code-snippets/JavaScript/AxiosSnippet.js.map +1 -1
- package/build/src/code-snippets/JavaScript/FetchSnippet.d.ts +2 -1
- package/build/src/code-snippets/JavaScript/FetchSnippet.d.ts.map +1 -1
- package/build/src/code-snippets/JavaScript/FetchSnippet.js.map +1 -1
- package/build/src/code-snippets/JavaScript/NodeSnippet.d.ts +2 -1
- package/build/src/code-snippets/JavaScript/NodeSnippet.d.ts.map +1 -1
- package/build/src/code-snippets/JavaScript/NodeSnippet.js.map +1 -1
- package/build/src/code-snippets/JavaScript/XhrSnippet.d.ts +2 -1
- package/build/src/code-snippets/JavaScript/XhrSnippet.d.ts.map +1 -1
- package/build/src/code-snippets/JavaScript/XhrSnippet.js.map +1 -1
- package/build/src/code-snippets/JavaScript/jQuerySnippet.d.ts +2 -1
- package/build/src/code-snippets/JavaScript/jQuerySnippet.d.ts.map +1 -1
- package/build/src/code-snippets/JavaScript/jQuerySnippet.js.map +1 -1
- package/build/src/code-snippets/Python/Python27Snippet.d.ts +2 -1
- package/build/src/code-snippets/Python/Python27Snippet.d.ts.map +1 -1
- package/build/src/code-snippets/Python/Python27Snippet.js.map +1 -1
- package/build/src/code-snippets/Python/Python31Snippet.d.ts +2 -1
- package/build/src/code-snippets/Python/Python31Snippet.d.ts.map +1 -1
- package/build/src/code-snippets/Python/Python31Snippet.js.map +1 -1
- package/build/src/code-snippets/Python/RequestsSnippet.d.ts +2 -1
- package/build/src/code-snippets/Python/RequestsSnippet.d.ts.map +1 -1
- package/build/src/code-snippets/Python/RequestsSnippet.js.map +1 -1
- package/build/src/controllers/LiveDataController.d.ts +1 -1
- package/build/src/controllers/LiveDataController.d.ts.map +1 -1
- package/build/src/controllers/LiveDataController.js.map +1 -1
- package/build/src/core/Activity.d.ts +19 -1
- package/build/src/core/Activity.d.ts.map +1 -1
- package/build/src/core/Activity.js +286 -238
- package/build/src/core/Activity.js.map +1 -1
- package/build/src/core/ActivityManager.d.ts +8 -1
- package/build/src/core/ActivityManager.d.ts.map +1 -1
- package/build/src/core/ActivityManager.js +22 -1
- package/build/src/core/ActivityManager.js.map +1 -1
- package/build/src/core/Fragment.d.ts +5 -0
- package/build/src/core/Fragment.d.ts.map +1 -1
- package/build/src/core/Fragment.js +11 -0
- package/build/src/core/Fragment.js.map +1 -1
- package/build/src/core/FragmentManager.d.ts +1 -1
- package/build/src/core/FragmentManager.d.ts.map +1 -1
- package/build/src/core/FragmentManager.js.map +1 -1
- package/build/src/core/ModalActivity.d.ts +1 -1
- package/build/src/core/ModalActivity.js +1 -1
- package/build/src/core/ModalActivity.js.map +1 -1
- package/build/src/directives/live.d.ts +1 -1
- package/build/src/directives/live.d.ts.map +1 -1
- package/build/src/directives/live.js.map +1 -1
- package/build/src/elements/amf/ApiAnnotationDocument.element.d.ts +6 -5
- package/build/src/elements/amf/ApiAnnotationDocument.element.d.ts.map +1 -1
- package/build/src/elements/amf/ApiAnnotationDocument.element.js +1 -1
- package/build/src/elements/amf/ApiAnnotationDocument.element.js.map +1 -1
- package/build/src/elements/amf/ApiAuthorizationEditor.element.d.ts +16 -15
- package/build/src/elements/amf/ApiAuthorizationEditor.element.d.ts.map +1 -1
- package/build/src/elements/amf/ApiAuthorizationEditor.element.js.map +1 -1
- package/build/src/elements/amf/ApiChannelDocument.element.d.ts +2 -2
- package/build/src/elements/amf/ApiChannelDocument.element.d.ts.map +1 -1
- package/build/src/elements/amf/ApiChannelDocument.element.js.map +1 -1
- package/build/src/elements/amf/ApiDocumentation.element.d.ts +2 -2
- package/build/src/elements/amf/ApiDocumentation.element.d.ts.map +1 -1
- package/build/src/elements/amf/ApiDocumentation.element.js +1 -1
- package/build/src/elements/amf/ApiDocumentation.element.js.map +1 -1
- package/build/src/elements/amf/ApiDocumentationBase.d.ts +6 -4
- package/build/src/elements/amf/ApiDocumentationBase.d.ts.map +1 -1
- package/build/src/elements/amf/ApiDocumentationBase.js +1 -1
- package/build/src/elements/amf/ApiDocumentationBase.js.map +1 -1
- package/build/src/elements/amf/ApiDocumentationDocument.element.d.ts +5 -5
- package/build/src/elements/amf/ApiDocumentationDocument.element.d.ts.map +1 -1
- package/build/src/elements/amf/ApiDocumentationDocument.element.js.map +1 -1
- package/build/src/elements/amf/ApiNavigation.element.d.ts +12 -12
- package/build/src/elements/amf/ApiNavigation.element.d.ts.map +1 -1
- package/build/src/elements/amf/ApiNavigation.element.js.map +1 -1
- package/build/src/elements/amf/ApiOperationDocument.element.d.ts +27 -27
- package/build/src/elements/amf/ApiOperationDocument.element.d.ts.map +1 -1
- package/build/src/elements/amf/ApiOperationDocument.element.js +3 -1
- package/build/src/elements/amf/ApiOperationDocument.element.js.map +1 -1
- package/build/src/elements/amf/ApiParameterDocument.element.d.ts +6 -5
- package/build/src/elements/amf/ApiParameterDocument.element.d.ts.map +1 -1
- package/build/src/elements/amf/ApiParameterDocument.element.js.map +1 -1
- package/build/src/elements/amf/ApiParametrizedSecurityScheme.element.d.ts +6 -6
- package/build/src/elements/amf/ApiParametrizedSecurityScheme.element.d.ts.map +1 -1
- package/build/src/elements/amf/ApiParametrizedSecurityScheme.element.js +1 -1
- package/build/src/elements/amf/ApiParametrizedSecurityScheme.element.js.map +1 -1
- package/build/src/elements/amf/ApiPayloadDocument.element.d.ts +7 -7
- package/build/src/elements/amf/ApiPayloadDocument.element.d.ts.map +1 -1
- package/build/src/elements/amf/ApiPayloadDocument.element.js.map +1 -1
- package/build/src/elements/amf/ApiRequest.element.d.ts +2 -1
- package/build/src/elements/amf/ApiRequest.element.d.ts.map +1 -1
- package/build/src/elements/amf/ApiRequest.element.js.map +1 -1
- package/build/src/elements/amf/ApiRequestDocument.element.d.ts +9 -9
- package/build/src/elements/amf/ApiRequestDocument.element.d.ts.map +1 -1
- package/build/src/elements/amf/ApiRequestDocument.element.js.map +1 -1
- package/build/src/elements/amf/ApiRequestEditor.element.d.ts +16 -12
- package/build/src/elements/amf/ApiRequestEditor.element.d.ts.map +1 -1
- package/build/src/elements/amf/ApiRequestEditor.element.js +8 -3
- package/build/src/elements/amf/ApiRequestEditor.element.js.map +1 -1
- package/build/src/elements/amf/ApiResourceDocument.element.d.ts +17 -16
- package/build/src/elements/amf/ApiResourceDocument.element.d.ts.map +1 -1
- package/build/src/elements/amf/ApiResourceDocument.element.js +2 -1
- package/build/src/elements/amf/ApiResourceDocument.element.js.map +1 -1
- package/build/src/elements/amf/ApiResponseDocument.element.d.ts +9 -9
- package/build/src/elements/amf/ApiResponseDocument.element.d.ts.map +1 -1
- package/build/src/elements/amf/ApiResponseDocument.element.js.map +1 -1
- package/build/src/elements/amf/ApiSchemaDocument.element.d.ts +22 -22
- package/build/src/elements/amf/ApiSchemaDocument.element.d.ts.map +1 -1
- package/build/src/elements/amf/ApiSchemaDocument.element.js +4 -3
- package/build/src/elements/amf/ApiSchemaDocument.element.js.map +1 -1
- package/build/src/elements/amf/ApiSecurityDocument.element.d.ts +19 -19
- package/build/src/elements/amf/ApiSecurityDocument.element.d.ts.map +1 -1
- package/build/src/elements/amf/ApiSecurityDocument.element.js +1 -1
- package/build/src/elements/amf/ApiSecurityDocument.element.js.map +1 -1
- package/build/src/elements/amf/ApiSecurityRequirementDocument.element.d.ts +4 -4
- package/build/src/elements/amf/ApiSecurityRequirementDocument.element.d.ts.map +1 -1
- package/build/src/elements/amf/ApiSecurityRequirementDocument.element.js.map +1 -1
- package/build/src/elements/amf/ApiServerPicker.element.d.ts +3 -3
- package/build/src/elements/amf/ApiServerPicker.element.d.ts.map +1 -1
- package/build/src/elements/amf/ApiServerPicker.element.js +3 -3
- package/build/src/elements/amf/ApiServerPicker.element.js.map +1 -1
- package/build/src/elements/amf/ApiSummary.element.d.ts +13 -13
- package/build/src/elements/amf/ApiSummary.element.d.ts.map +1 -1
- package/build/src/elements/amf/ApiSummary.element.js +1 -1
- package/build/src/elements/amf/ApiSummary.element.js.map +1 -1
- package/build/src/elements/amf/SchemaCommonTemplates.d.ts +5 -5
- package/build/src/elements/amf/SchemaCommonTemplates.d.ts.map +1 -1
- package/build/src/elements/amf/SchemaCommonTemplates.js +1 -1
- package/build/src/elements/amf/SchemaCommonTemplates.js.map +1 -1
- package/build/src/elements/amf/authorization/AmfApiKey.d.ts +4 -2
- package/build/src/elements/amf/authorization/AmfApiKey.d.ts.map +1 -1
- package/build/src/elements/amf/authorization/AmfApiKey.js +2 -1
- package/build/src/elements/amf/authorization/AmfApiKey.js.map +1 -1
- package/build/src/elements/amf/authorization/AmfBasic.d.ts +3 -2
- package/build/src/elements/amf/authorization/AmfBasic.d.ts.map +1 -1
- package/build/src/elements/amf/authorization/AmfBasic.js +1 -1
- package/build/src/elements/amf/authorization/AmfBasic.js.map +1 -1
- package/build/src/elements/amf/authorization/AmfBearer.d.ts +3 -2
- package/build/src/elements/amf/authorization/AmfBearer.d.ts.map +1 -1
- package/build/src/elements/amf/authorization/AmfBearer.js +1 -1
- package/build/src/elements/amf/authorization/AmfBearer.js.map +1 -1
- package/build/src/elements/amf/authorization/AmfOauth2.d.ts +22 -18
- package/build/src/elements/amf/authorization/AmfOauth2.d.ts.map +1 -1
- package/build/src/elements/amf/authorization/AmfOauth2.js +2 -1
- package/build/src/elements/amf/authorization/AmfOauth2.js.map +1 -1
- package/build/src/elements/amf/authorization/AmfOidc.d.ts +3 -2
- package/build/src/elements/amf/authorization/AmfOidc.d.ts.map +1 -1
- package/build/src/elements/amf/authorization/AmfOidc.js +1 -1
- package/build/src/elements/amf/authorization/AmfOidc.js.map +1 -1
- package/build/src/elements/amf/authorization/AmfPassThrough.d.ts +7 -4
- package/build/src/elements/amf/authorization/AmfPassThrough.d.ts.map +1 -1
- package/build/src/elements/amf/authorization/AmfPassThrough.js +2 -1
- package/build/src/elements/amf/authorization/AmfPassThrough.js.map +1 -1
- package/build/src/elements/amf/authorization/AmfRamlCustom.d.ts +7 -4
- package/build/src/elements/amf/authorization/AmfRamlCustom.d.ts.map +1 -1
- package/build/src/elements/amf/authorization/AmfRamlCustom.js +2 -1
- package/build/src/elements/amf/authorization/AmfRamlCustom.js.map +1 -1
- package/build/src/elements/authorization/OAuth2Authorize.d.ts +1 -1
- package/build/src/elements/authorization/OAuth2Authorize.d.ts.map +1 -1
- package/build/src/elements/authorization/OAuth2Authorize.js +2 -1
- package/build/src/elements/authorization/OAuth2Authorize.js.map +1 -1
- package/build/src/elements/authorization/OidcAuthorize.d.ts +1 -1
- package/build/src/elements/authorization/OidcAuthorize.d.ts.map +1 -1
- package/build/src/elements/authorization/OidcAuthorize.js +2 -1
- package/build/src/elements/authorization/OidcAuthorize.js.map +1 -1
- package/build/src/elements/authorization/ui/ApiKeyAuthorization.d.ts +1 -1
- package/build/src/elements/authorization/ui/ApiKeyAuthorization.d.ts.map +1 -1
- package/build/src/elements/authorization/ui/ApiKeyAuthorization.js.map +1 -1
- package/build/src/elements/authorization/ui/Authorization.d.ts +1 -1
- package/build/src/elements/authorization/ui/Authorization.d.ts.map +1 -1
- package/build/src/elements/authorization/ui/Authorization.js.map +1 -1
- package/build/src/elements/authorization/ui/BasicAuthorization.d.ts +1 -1
- package/build/src/elements/authorization/ui/BasicAuthorization.d.ts.map +1 -1
- package/build/src/elements/authorization/ui/BasicAuthorization.js.map +1 -1
- package/build/src/elements/authorization/ui/BearerAuthorization.d.ts +1 -1
- package/build/src/elements/authorization/ui/BearerAuthorization.d.ts.map +1 -1
- package/build/src/elements/authorization/ui/BearerAuthorization.js.map +1 -1
- package/build/src/elements/authorization/ui/CcAuthorization.d.ts +3 -1
- package/build/src/elements/authorization/ui/CcAuthorization.d.ts.map +1 -1
- package/build/src/elements/authorization/ui/CcAuthorization.js +2 -1
- package/build/src/elements/authorization/ui/CcAuthorization.js.map +1 -1
- package/build/src/elements/authorization/ui/NtlmAuthorization.d.ts +1 -1
- package/build/src/elements/authorization/ui/NtlmAuthorization.d.ts.map +1 -1
- package/build/src/elements/authorization/ui/NtlmAuthorization.js.map +1 -1
- package/build/src/elements/authorization/ui/OAuth2Authorization.d.ts +2 -1
- package/build/src/elements/authorization/ui/OAuth2Authorization.d.ts.map +1 -1
- package/build/src/elements/authorization/ui/OAuth2Authorization.js +3 -2
- package/build/src/elements/authorization/ui/OAuth2Authorization.js.map +1 -1
- package/build/src/elements/authorization/ui/OidcAuthorization.d.ts +2 -1
- package/build/src/elements/authorization/ui/OidcAuthorization.d.ts.map +1 -1
- package/build/src/elements/authorization/ui/OidcAuthorization.js +4 -2
- package/build/src/elements/authorization/ui/OidcAuthorization.js.map +1 -1
- package/build/src/elements/code/HttpSnippets.d.ts +1 -1
- package/build/src/elements/code/HttpSnippets.d.ts.map +1 -1
- package/build/src/elements/code/HttpSnippets.js.map +1 -1
- package/build/src/elements/data-table/{internals/DataTable.d.ts → DataTable.d.ts} +1 -1
- package/build/src/elements/data-table/DataTable.d.ts.map +1 -0
- package/build/src/elements/data-table/{internals/DataTable.js → DataTable.js} +1 -1
- package/build/src/elements/data-table/DataTable.js.map +1 -0
- package/build/src/elements/data-table/DataTable.styles.d.ts.map +1 -0
- package/build/src/elements/data-table/DataTable.styles.js.map +1 -0
- package/build/src/elements/dialog/internals/DeleteCookieAction.element.d.ts +1 -1
- package/build/src/elements/dialog/internals/DeleteCookieAction.element.d.ts.map +1 -1
- package/build/src/elements/dialog/internals/DeleteCookieAction.element.js +1 -1
- package/build/src/elements/dialog/internals/DeleteCookieAction.element.js.map +1 -1
- package/build/src/elements/dialog/internals/SetCookieAction.element.d.ts +1 -1
- package/build/src/elements/dialog/internals/SetCookieAction.element.d.ts.map +1 -1
- package/build/src/elements/dialog/internals/SetCookieAction.element.js +1 -1
- package/build/src/elements/dialog/internals/SetCookieAction.element.js.map +1 -1
- package/build/src/elements/environment/EnvironmentEditor.d.ts +5 -1
- package/build/src/elements/environment/EnvironmentEditor.d.ts.map +1 -1
- package/build/src/elements/environment/EnvironmentEditor.js +3 -1
- package/build/src/elements/environment/EnvironmentEditor.js.map +1 -1
- package/build/src/elements/environment/ServerEditor.d.ts +2 -1
- package/build/src/elements/environment/ServerEditor.d.ts.map +1 -1
- package/build/src/elements/environment/ServerEditor.js +1 -1
- package/build/src/elements/environment/ServerEditor.js.map +1 -1
- package/build/src/elements/environment/VariablesEditor.d.ts +1 -1
- package/build/src/elements/environment/VariablesEditor.d.ts.map +1 -1
- package/build/src/elements/environment/VariablesEditor.js +1 -1
- package/build/src/elements/environment/VariablesEditor.js.map +1 -1
- package/build/src/elements/file-system/internals/Breadcrumbs.d.ts +2 -2
- package/build/src/elements/file-system/internals/Breadcrumbs.d.ts.map +1 -1
- package/build/src/elements/file-system/internals/Breadcrumbs.js +1 -1
- package/build/src/elements/file-system/internals/Breadcrumbs.js.map +1 -1
- package/build/src/elements/har/HarViewer.js +1 -1
- package/build/src/elements/har/HarViewer.js.map +1 -1
- package/build/src/elements/http/BodyEditor.d.ts +3 -1
- package/build/src/elements/http/BodyEditor.d.ts.map +1 -1
- package/build/src/elements/http/BodyEditor.js +1 -1
- package/build/src/elements/http/BodyEditor.js.map +1 -1
- package/build/src/elements/http/BodyMultipartEditor.d.ts +1 -1
- package/build/src/elements/http/BodyMultipartEditor.d.ts.map +1 -1
- package/build/src/elements/http/BodyMultipartEditor.js +3 -2
- package/build/src/elements/http/BodyMultipartEditor.js.map +1 -1
- package/build/src/elements/http/BodyUrlEncodedEditor.d.ts +1 -1
- package/build/src/elements/http/BodyUrlEncodedEditor.d.ts.map +1 -1
- package/build/src/elements/http/BodyUrlEncodedEditor.js +1 -1
- package/build/src/elements/http/BodyUrlEncodedEditor.js.map +1 -1
- package/build/src/elements/http/CertificateAdd.element.d.ts +1 -1
- package/build/src/elements/http/CertificateAdd.element.d.ts.map +1 -1
- package/build/src/elements/http/CertificateAdd.element.js +2 -1
- package/build/src/elements/http/CertificateAdd.element.js.map +1 -1
- package/build/src/elements/http/HeadersForm.d.ts +2 -1
- package/build/src/elements/http/HeadersForm.d.ts.map +1 -1
- package/build/src/elements/http/HeadersForm.js +6 -3
- package/build/src/elements/http/HeadersForm.js.map +1 -1
- package/build/src/elements/http/HttpAssertions.element.d.ts +2 -1
- package/build/src/elements/http/HttpAssertions.element.d.ts.map +1 -1
- package/build/src/elements/http/HttpAssertions.element.js.map +1 -1
- package/build/src/elements/http/HttpFlows.element.d.ts +2 -1
- package/build/src/elements/http/HttpFlows.element.d.ts.map +1 -1
- package/build/src/elements/http/HttpFlows.element.js.map +1 -1
- package/build/src/elements/http/HttpFlowsUi.d.ts +5 -1
- package/build/src/elements/http/HttpFlowsUi.d.ts.map +1 -1
- package/build/src/elements/http/HttpFlowsUi.js +5 -1
- package/build/src/elements/http/HttpFlowsUi.js.map +1 -1
- package/build/src/elements/http/LogBody.d.ts +1 -1
- package/build/src/elements/http/LogBody.d.ts.map +1 -1
- package/build/src/elements/http/LogBody.js +1 -1
- package/build/src/elements/http/LogBody.js.map +1 -1
- package/build/src/elements/http/LogHeaders.d.ts +5 -1
- package/build/src/elements/http/LogHeaders.d.ts.map +1 -1
- package/build/src/elements/http/LogHeaders.js +3 -1
- package/build/src/elements/http/LogHeaders.js.map +1 -1
- package/build/src/elements/http/LogTimings.d.ts +1 -1
- package/build/src/elements/http/LogTimings.d.ts.map +1 -1
- package/build/src/elements/http/LogTimings.js.map +1 -1
- package/build/src/elements/http/RequestConfigElement.d.ts +1 -1
- package/build/src/elements/http/RequestConfigElement.d.ts.map +1 -1
- package/build/src/elements/http/RequestConfigElement.js +1 -1
- package/build/src/elements/http/RequestConfigElement.js.map +1 -1
- package/build/src/elements/http/RequestEditor.d.ts +9 -1
- package/build/src/elements/http/RequestEditor.d.ts.map +1 -1
- package/build/src/elements/http/RequestEditor.js +6 -1
- package/build/src/elements/http/RequestEditor.js.map +1 -1
- package/build/src/elements/http/RequestLog.d.ts +6 -1
- package/build/src/elements/http/RequestLog.d.ts.map +1 -1
- package/build/src/elements/http/RequestLog.js +3 -1
- package/build/src/elements/http/RequestLog.js.map +1 -1
- package/build/src/elements/http/UrlEncodeUtils.d.ts +1 -1
- package/build/src/elements/http/UrlEncodeUtils.d.ts.map +1 -1
- package/build/src/elements/http/UrlEncodeUtils.js +1 -1
- package/build/src/elements/http/UrlEncodeUtils.js.map +1 -1
- package/build/src/elements/http/UrlInput.d.ts +1 -1
- package/build/src/elements/http/UrlInput.d.ts.map +1 -1
- package/build/src/elements/http/UrlInput.js.map +1 -1
- package/build/src/elements/http/UrlParamsForm.d.ts +1 -1
- package/build/src/elements/http/UrlParamsForm.d.ts.map +1 -1
- package/build/src/elements/http/UrlParamsForm.js +2 -1
- package/build/src/elements/http/UrlParamsForm.js.map +1 -1
- package/build/src/elements/layout/SplitPanel.js +3 -3
- package/build/src/elements/layout/SplitPanel.js.map +1 -1
- package/build/src/elements/navigation/internals/AppNavigation.styles.d.ts.map +1 -1
- package/build/src/elements/navigation/internals/AppNavigation.styles.js +1 -0
- package/build/src/elements/navigation/internals/AppNavigation.styles.js.map +1 -1
- package/build/src/elements/navigation/internals/AppNavigationElement.d.ts.map +1 -1
- package/build/src/elements/navigation/internals/AppNavigationElement.js +2 -7
- package/build/src/elements/navigation/internals/AppNavigationElement.js.map +1 -1
- package/build/src/elements/project/HttpHistoryChart.d.ts +1 -1
- package/build/src/elements/project/HttpHistoryChart.d.ts.map +1 -1
- package/build/src/elements/project/HttpHistoryChart.js +1 -1
- package/build/src/elements/project/HttpHistoryChart.js.map +1 -1
- package/build/src/elements/project/HttpProjectRequest.d.ts +17 -3
- package/build/src/elements/project/HttpProjectRequest.d.ts.map +1 -1
- package/build/src/elements/project/HttpProjectRequest.js +6 -1
- package/build/src/elements/project/HttpProjectRequest.js.map +1 -1
- package/build/src/elements/project/HttpProjectRequestHistory.d.ts +2 -1
- package/build/src/elements/project/HttpProjectRequestHistory.d.ts.map +1 -1
- package/build/src/elements/project/HttpProjectRequestHistory.js +1 -1
- package/build/src/elements/project/HttpProjectRequestHistory.js.map +1 -1
- package/build/src/elements/project/ProjectNavigation.d.ts +4 -1
- package/build/src/elements/project/ProjectNavigation.d.ts.map +1 -1
- package/build/src/elements/project/ProjectNavigation.js +3 -1
- package/build/src/elements/project/ProjectNavigation.js.map +1 -1
- package/build/src/elements/project/ProjectRunReport.d.ts +2 -1
- package/build/src/elements/project/ProjectRunReport.d.ts.map +1 -1
- package/build/src/elements/project/ProjectRunReport.js +1 -1
- package/build/src/elements/project/ProjectRunReport.js.map +1 -1
- package/build/src/elements/project/ProjectRunner.d.ts +5 -1
- package/build/src/elements/project/ProjectRunner.d.ts.map +1 -1
- package/build/src/elements/project/ProjectRunner.js +2 -1
- package/build/src/elements/project/ProjectRunner.js.map +1 -1
- package/build/src/elements/project/ProjectRunnerNavigationElement.d.ts +3 -1
- package/build/src/elements/project/ProjectRunnerNavigationElement.d.ts.map +1 -1
- package/build/src/elements/project/ProjectRunnerNavigationElement.js +1 -1
- package/build/src/elements/project/ProjectRunnerNavigationElement.js.map +1 -1
- package/build/src/elements/user/internals/UserAvatar.d.ts +1 -1
- package/build/src/elements/user/internals/UserAvatar.d.ts.map +1 -1
- package/build/src/elements/user/internals/UserAvatar.js.map +1 -1
- package/build/src/events/BroadcastUiEvents.d.ts +2 -1
- package/build/src/events/BroadcastUiEvents.d.ts.map +1 -1
- package/build/src/events/BroadcastUiEvents.js.map +1 -1
- package/build/src/events/ConfigEvents.d.ts +1 -1
- package/build/src/events/ConfigEvents.d.ts.map +1 -1
- package/build/src/events/ConfigEvents.js.map +1 -1
- package/build/src/events/Events.d.ts +2 -2
- package/build/src/events/HttpClientEvents.d.ts +3 -1
- package/build/src/events/HttpClientEvents.d.ts.map +1 -1
- package/build/src/events/HttpClientEvents.js +1 -1
- package/build/src/events/HttpClientEvents.js.map +1 -1
- package/build/src/events/HttpProjectEvents.d.ts +2 -1
- package/build/src/events/HttpProjectEvents.d.ts.map +1 -1
- package/build/src/events/HttpProjectEvents.js +1 -1
- package/build/src/events/HttpProjectEvents.js.map +1 -1
- package/build/src/events/IntentEvents.d.ts +1 -1
- package/build/src/events/IntentEvents.js +1 -1
- package/build/src/events/IntentEvents.js.map +1 -1
- package/build/src/events/StoreEvents.d.ts +9 -4
- package/build/src/events/StoreEvents.d.ts.map +1 -1
- package/build/src/events/StoreEvents.js.map +1 -1
- package/build/src/events/amf/ApiEvents.d.ts +2 -2
- package/build/src/events/amf/ApiEvents.d.ts.map +1 -1
- package/build/src/events/amf/ApiEvents.js.map +1 -1
- package/build/src/events/amf/DocumentationEvents.d.ts +3 -3
- package/build/src/events/amf/DocumentationEvents.d.ts.map +1 -1
- package/build/src/events/amf/DocumentationEvents.js.map +1 -1
- package/build/src/events/amf/EndpointEvents.d.ts +4 -4
- package/build/src/events/amf/EndpointEvents.d.ts.map +1 -1
- package/build/src/events/amf/EndpointEvents.js.map +1 -1
- package/build/src/events/amf/Events.d.ts +17 -17
- package/build/src/events/amf/OperationEvents.d.ts +3 -3
- package/build/src/events/amf/OperationEvents.d.ts.map +1 -1
- package/build/src/events/amf/OperationEvents.js.map +1 -1
- package/build/src/events/amf/PayloadEvents.d.ts +2 -2
- package/build/src/events/amf/PayloadEvents.d.ts.map +1 -1
- package/build/src/events/amf/PayloadEvents.js.map +1 -1
- package/build/src/events/amf/RequestEvents.d.ts +2 -2
- package/build/src/events/amf/RequestEvents.d.ts.map +1 -1
- package/build/src/events/amf/RequestEvents.js.map +1 -1
- package/build/src/events/amf/ResponseEvents.d.ts +2 -2
- package/build/src/events/amf/ResponseEvents.d.ts.map +1 -1
- package/build/src/events/amf/ResponseEvents.js.map +1 -1
- package/build/src/events/amf/SecurityEvents.d.ts +4 -4
- package/build/src/events/amf/SecurityEvents.d.ts.map +1 -1
- package/build/src/events/amf/SecurityEvents.js.map +1 -1
- package/build/src/events/amf/ServerEvents.d.ts +4 -3
- package/build/src/events/amf/ServerEvents.d.ts.map +1 -1
- package/build/src/events/amf/ServerEvents.js.map +1 -1
- package/build/src/events/amf/TypeEvents.d.ts +4 -3
- package/build/src/events/amf/TypeEvents.d.ts.map +1 -1
- package/build/src/events/amf/TypeEvents.js.map +1 -1
- package/build/src/index.d.ts +1 -1
- package/build/src/index.d.ts.map +1 -1
- package/build/src/index.js +1 -1
- package/build/src/index.js.map +1 -1
- package/build/src/lib/UserCache.d.ts +1 -1
- package/build/src/lib/UserCache.d.ts.map +1 -1
- package/build/src/lib/UserCache.js.map +1 -1
- package/build/src/lib/http/Har.d.ts +1 -1
- package/build/src/lib/http/Har.d.ts.map +1 -1
- package/build/src/lib/http/Har.js.map +1 -1
- package/build/src/lib/http/HeadersArray.js +1 -1
- package/build/src/lib/http/HeadersArray.js.map +1 -1
- package/build/src/lib/http/Payload.d.ts +1 -1
- package/build/src/lib/http/Payload.d.ts.map +1 -1
- package/build/src/lib/http/Payload.js.map +1 -1
- package/build/src/lib/http/Url.d.ts +1 -1
- package/build/src/lib/http/Url.d.ts.map +1 -1
- package/build/src/lib/http/Url.js.map +1 -1
- package/build/src/md/chip/internals/Chip.d.ts.map +1 -1
- package/build/src/md/chip/internals/Chip.js +3 -3
- package/build/src/md/chip/internals/Chip.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 +5 -0
- package/build/src/md/dialog/internals/Dialog.styles.js.map +1 -1
- package/build/src/md/dropdown-list/internals/UiDropdownList.d.ts.map +1 -1
- package/build/src/md/dropdown-list/internals/UiDropdownList.js +3 -3
- package/build/src/md/dropdown-list/internals/UiDropdownList.js.map +1 -1
- package/build/src/md/listbox/internals/Listbox.js +2 -2
- package/build/src/md/listbox/internals/Listbox.js.map +1 -1
- package/build/src/md/snackbar/internals/Snackbar.d.ts.map +1 -1
- package/build/src/md/snackbar/internals/Snackbar.js +3 -5
- package/build/src/md/snackbar/internals/Snackbar.js.map +1 -1
- package/build/src/mixins/FileDropMixin.d.ts +1 -0
- package/build/src/mixins/FileDropMixin.d.ts.map +1 -1
- package/build/src/mixins/FileDropMixin.js +24 -12
- package/build/src/mixins/FileDropMixin.js.map +1 -1
- package/build/src/{core → reactive}/LiveData.d.ts +1 -1
- package/build/src/reactive/LiveData.d.ts.map +1 -0
- package/build/src/{core → reactive}/LiveData.js +1 -1
- package/build/src/reactive/LiveData.js.map +1 -0
- package/build/src/reactive/reactive.d.ts.map +1 -0
- package/build/src/reactive/reactive.js.map +1 -0
- package/build/src/visualization/plugin/positioning/DataModelLayout.d.ts +2 -2
- package/build/src/visualization/plugin/positioning/DataModelLayout.d.ts.map +1 -1
- package/build/src/visualization/plugin/positioning/DataModelLayout.js +1 -2
- package/build/src/visualization/plugin/positioning/DataModelLayout.js.map +1 -1
- package/build/src/visualization/plugin/positioning/WorkspaceLayout.d.ts +2 -2
- package/build/src/visualization/plugin/positioning/WorkspaceLayout.d.ts.map +1 -1
- package/build/src/visualization/plugin/positioning/WorkspaceLayout.js +1 -1
- package/build/src/visualization/plugin/positioning/WorkspaceLayout.js.map +1 -1
- package/demo/amf/api-annotation.ts +4 -3
- package/demo/amf/api-channel.ts +1 -1
- package/demo/amf/api-console.ts +21 -22
- package/demo/amf/api-documentation-document.ts +1 -1
- package/demo/amf/api-documentation.ts +3 -2
- package/demo/amf/api-navigation.ts +5 -3
- package/demo/amf/api-operation.ts +3 -2
- package/demo/amf/api-payload.ts +13 -11
- package/demo/amf/api-request.ts +4 -3
- package/demo/amf/api-resource.ts +3 -2
- package/demo/amf/api-schema-documentation.ts +13 -10
- package/demo/amf/api-security-documentation.ts +3 -2
- package/demo/amf/api-server-picker.ts +4 -2
- package/demo/amf/api-summary.ts +1 -1
- package/demo/amf/bare-components.ts +3 -3
- package/demo/amf/lib/AmfDemoPage.ts +15 -10
- package/demo/amf/oauth-authorize.ts +3 -3
- package/demo/amf/request-editor.ts +3 -3
- package/demo/elements/authorization/api-key.ts +1 -1
- package/demo/elements/authorization/basic.ts +1 -1
- package/demo/elements/authorization/bearer.ts +1 -1
- package/demo/elements/authorization/ntlm.ts +1 -1
- package/demo/elements/authorization/oauth-authorize.ts +3 -3
- package/demo/elements/authorization/oauth2.ts +2 -1
- package/demo/elements/authorization/oidc.ts +2 -1
- package/demo/elements/environment/environment-editor.ts +1 -1
- package/demo/elements/environment/server-editor.ts +1 -1
- package/demo/elements/environment/variables-editor.ts +1 -1
- package/demo/elements/har/har-viewer.ts +1 -1
- package/demo/elements/highlight/marked-highlight.ts +1 -1
- package/demo/elements/http/body-editor.ts +1 -1
- package/demo/elements/http/headers.ts +1 -1
- package/demo/elements/http/http-assertions.ts +2 -2
- package/demo/elements/http/http-flows.ts +2 -2
- package/demo/elements/http/request-editor.ts +4 -10
- package/demo/elements/http/request-log.ts +4 -1
- package/demo/elements/http/url-editing.ts +1 -1
- package/demo/elements/md/list/list.ts +1 -1
- package/demo/elements/project/project-run-report.ts +3 -7
- package/demo/elements/project/request-editor.ts +8 -11
- package/demo/index.html +0 -3
- package/demo/layout/index.ts +2 -2
- package/demo/lib/DemoBindings.ts +1 -1
- package/demo/lib/amf/AmfPartialGraphStore.ts +39 -35
- package/demo/lib/amf/AmfPartialModel.ts +52 -52
- package/dev/amf-server/AmfService.js +2 -2
- package/license.md +15 -0
- package/package.json +48 -42
- package/src/amf/lib/AmfInputParser.ts +19 -11
- package/src/amf/lib/AmfParameters.ts +42 -45
- package/src/amf/lib/AmfSecurity.ts +3 -3
- package/src/amf/lib/Oauth2RamlCustomData.ts +44 -40
- package/src/amf/lib/PayloadUtils.ts +8 -10
- package/src/amf/lib/QueryParameterProcessor.ts +24 -23
- package/src/amf/lib/Utils.ts +23 -13
- package/src/amf/store/AmfGraphStore.ts +4 -3
- package/src/amf/store/AmfStore.ts +32 -24
- package/src/amf/store/InMemAmfGraphStore.ts +40 -36
- package/src/amf/types.ts +16 -12
- package/src/bindings/base/ConfigurationBindings.ts +1 -1
- package/src/bindings/base/IoThread.ts +1 -1
- package/src/bindings/base/PlatformBindings.ts +1 -1
- package/src/bindings/web/WebConfigurationBindings.ts +1 -1
- package/src/code-snippets/Bash/CurlSnippet.ts +2 -1
- package/src/code-snippets/C/CcurlSnippet.ts +2 -1
- package/src/code-snippets/CodeSnippet.ts +3 -1
- package/src/code-snippets/Dart/DartSnippet.ts +2 -1
- package/src/code-snippets/HTTP/RawSnippet.ts +2 -1
- package/src/code-snippets/Java/PlatformSnippet.ts +2 -1
- package/src/code-snippets/Java/SpringSnippet.ts +2 -1
- package/src/code-snippets/JavaScript/AsyncFetchSnippet.ts +2 -1
- package/src/code-snippets/JavaScript/AxiosSnippet.ts +2 -1
- package/src/code-snippets/JavaScript/FetchSnippet.ts +2 -1
- package/src/code-snippets/JavaScript/NodeSnippet.ts +2 -1
- package/src/code-snippets/JavaScript/XhrSnippet.ts +2 -1
- package/src/code-snippets/JavaScript/jQuerySnippet.ts +2 -1
- package/src/code-snippets/Python/Python27Snippet.ts +2 -1
- package/src/code-snippets/Python/Python31Snippet.ts +2 -1
- package/src/code-snippets/Python/RequestsSnippet.ts +2 -1
- package/src/controllers/LiveDataController.ts +1 -1
- package/src/core/Activity.ts +38 -1
- package/src/core/ActivityManager.ts +24 -1
- package/src/core/Fragment.ts +12 -0
- package/src/core/FragmentManager.ts +1 -1
- package/src/core/ModalActivity.ts +1 -1
- package/src/directives/live.ts +1 -1
- package/src/elements/amf/ApiAnnotationDocument.element.ts +9 -7
- package/src/elements/amf/ApiAuthorizationEditor.element.ts +21 -19
- package/src/elements/amf/ApiChannelDocument.element.ts +2 -5
- package/src/elements/amf/ApiDocumentation.element.ts +4 -3
- package/src/elements/amf/ApiDocumentationBase.ts +7 -4
- package/src/elements/amf/ApiDocumentationDocument.element.ts +4 -4
- package/src/elements/amf/ApiNavigation.element.ts +18 -12
- package/src/elements/amf/ApiOperationDocument.element.ts +45 -39
- package/src/elements/amf/ApiParameterDocument.element.ts +5 -4
- package/src/elements/amf/ApiParametrizedSecurityScheme.element.ts +15 -10
- package/src/elements/amf/ApiPayloadDocument.element.ts +6 -6
- package/src/elements/amf/ApiRequest.element.ts +2 -1
- package/src/elements/amf/ApiRequestDocument.element.ts +22 -19
- package/src/elements/amf/ApiRequestEditor.element.ts +34 -32
- package/src/elements/amf/ApiResourceDocument.element.ts +18 -17
- package/src/elements/amf/ApiResponseDocument.element.ts +14 -9
- package/src/elements/amf/ApiSchemaDocument.element.ts +55 -41
- package/src/elements/amf/ApiSecurityDocument.element.ts +35 -25
- package/src/elements/amf/ApiSecurityRequirementDocument.element.ts +4 -4
- package/src/elements/amf/ApiServerPicker.element.ts +6 -5
- package/src/elements/amf/ApiSummary.element.ts +21 -17
- package/src/elements/amf/SchemaCommonTemplates.ts +28 -17
- package/src/elements/amf/authorization/AmfApiKey.ts +15 -11
- package/src/elements/amf/authorization/AmfBasic.ts +6 -6
- package/src/elements/amf/authorization/AmfBearer.ts +6 -6
- package/src/elements/amf/authorization/AmfOauth2.ts +57 -47
- package/src/elements/amf/authorization/AmfOidc.ts +10 -7
- package/src/elements/amf/authorization/AmfPassThrough.ts +12 -12
- package/src/elements/amf/authorization/AmfRamlCustom.ts +14 -14
- package/src/elements/authorization/OAuth2Authorize.ts +5 -8
- package/src/elements/authorization/OidcAuthorize.ts +5 -9
- package/src/elements/authorization/ui/ApiKeyAuthorization.ts +1 -1
- package/src/elements/authorization/ui/Authorization.ts +1 -1
- package/src/elements/authorization/ui/BasicAuthorization.ts +1 -1
- package/src/elements/authorization/ui/BearerAuthorization.ts +1 -1
- package/src/elements/authorization/ui/CcAuthorization.ts +5 -8
- package/src/elements/authorization/ui/NtlmAuthorization.ts +1 -1
- package/src/elements/authorization/ui/OAuth2Authorization.ts +9 -10
- package/src/elements/authorization/ui/OidcAuthorization.ts +7 -7
- package/src/elements/code/HttpSnippets.ts +1 -1
- package/src/elements/data-table/{internals/DataTable.ts → DataTable.ts} +2 -2
- package/src/elements/dialog/internals/DeleteCookieAction.element.ts +4 -1
- package/src/elements/dialog/internals/SetCookieAction.element.ts +2 -1
- package/src/elements/environment/EnvironmentEditor.ts +5 -10
- package/src/elements/environment/ServerEditor.ts +2 -1
- package/src/elements/environment/VariablesEditor.ts +1 -1
- package/src/elements/file-system/internals/Breadcrumbs.ts +3 -2
- package/src/elements/har/HarViewer.ts +1 -1
- package/src/elements/http/BodyEditor.ts +5 -7
- package/src/elements/http/BodyMultipartEditor.ts +7 -7
- package/src/elements/http/BodyUrlEncodedEditor.ts +1 -1
- package/src/elements/http/CertificateAdd.element.ts +2 -1
- package/src/elements/http/HeadersForm.ts +6 -3
- package/src/elements/http/HttpAssertions.element.ts +2 -1
- package/src/elements/http/HttpFlows.element.ts +2 -1
- package/src/elements/http/HttpFlowsUi.ts +8 -8
- package/src/elements/http/LogBody.ts +6 -1
- package/src/elements/http/LogHeaders.ts +6 -9
- package/src/elements/http/LogTimings.ts +1 -1
- package/src/elements/http/RequestConfigElement.ts +1 -1
- package/src/elements/http/RequestEditor.ts +11 -18
- package/src/elements/http/RequestLog.ts +8 -11
- package/src/elements/http/UrlEncodeUtils.ts +1 -1
- package/src/elements/http/UrlInput.ts +1 -1
- package/src/elements/http/UrlParamsForm.ts +2 -1
- package/src/elements/layout/SplitPanel.ts +3 -3
- package/src/elements/navigation/internals/AppNavigation.styles.ts +1 -0
- package/src/elements/navigation/internals/AppNavigationElement.ts +2 -7
- package/src/elements/project/HttpHistoryChart.ts +3 -1
- package/src/elements/project/HttpProjectRequest.ts +21 -28
- package/src/elements/project/HttpProjectRequestHistory.ts +5 -8
- package/src/elements/project/ProjectNavigation.ts +5 -9
- package/src/elements/project/ProjectRunReport.ts +5 -7
- package/src/elements/project/ProjectRunner.ts +9 -12
- package/src/elements/project/ProjectRunnerNavigationElement.ts +3 -1
- package/src/elements/user/internals/UserAvatar.ts +1 -1
- package/src/events/BroadcastUiEvents.ts +2 -6
- package/src/events/ConfigEvents.ts +1 -1
- package/src/events/HttpClientEvents.ts +3 -7
- package/src/events/HttpProjectEvents.ts +5 -5
- package/src/events/IntentEvents.ts +1 -1
- package/src/events/StoreEvents.ts +10 -16
- package/src/events/amf/ApiEvents.ts +3 -3
- package/src/events/amf/DocumentationEvents.ts +5 -5
- package/src/events/amf/EndpointEvents.ts +7 -7
- package/src/events/amf/OperationEvents.ts +5 -5
- package/src/events/amf/PayloadEvents.ts +3 -3
- package/src/events/amf/RequestEvents.ts +3 -3
- package/src/events/amf/ResponseEvents.ts +3 -3
- package/src/events/amf/SecurityEvents.ts +11 -7
- package/src/events/amf/ServerEvents.ts +5 -4
- package/src/events/amf/TypeEvents.ts +6 -5
- package/src/index.ts +1 -1
- package/src/lib/UserCache.ts +1 -1
- package/src/lib/http/Har.ts +1 -1
- package/src/lib/http/HeadersArray.ts +1 -1
- package/src/lib/http/Payload.ts +1 -1
- package/src/lib/http/Url.ts +1 -1
- package/src/md/chip/internals/Chip.ts +3 -3
- package/src/md/dialog/internals/Dialog.styles.ts +5 -0
- package/src/md/dropdown-list/internals/UiDropdownList.ts +3 -3
- package/src/md/listbox/internals/Listbox.ts +2 -2
- package/src/md/snackbar/internals/Snackbar.ts +3 -5
- package/src/mixins/FileDropMixin.ts +28 -11
- package/src/{core → reactive}/LiveData.ts +1 -1
- package/src/visualization/plugin/positioning/DataModelLayout.ts +3 -2
- package/src/visualization/plugin/positioning/WorkspaceLayout.ts +3 -3
- package/test/core/live_data.spec.ts +1 -1
- package/test/elements/data-table/DataTable.browser.test.ts +2 -2
- package/test/elements/http/CertificateAdd.test.ts +5 -1
- package/test/elements/layout/SplitPanel.test.ts +1 -1
- package/web-test-runner.config.js +1 -1
- package/build/src/apps/activities/ApiActivity.d.ts +0 -21
- package/build/src/apps/activities/ApiActivity.d.ts.map +0 -1
- package/build/src/apps/activities/ApiActivity.js +0 -23
- package/build/src/apps/activities/ApiActivity.js.map +0 -1
- package/build/src/apps/activities/AppStartActivity.d.ts +0 -61
- package/build/src/apps/activities/AppStartActivity.d.ts.map +0 -1
- package/build/src/apps/activities/AppStartActivity.js +0 -100
- package/build/src/apps/activities/AppStartActivity.js.map +0 -1
- package/build/src/apps/activities/BrowseDataDomainActivity.d.ts +0 -375
- package/build/src/apps/activities/BrowseDataDomainActivity.d.ts.map +0 -1
- package/build/src/apps/activities/BrowseDataDomainActivity.js +0 -943
- package/build/src/apps/activities/BrowseDataDomainActivity.js.map +0 -1
- package/build/src/apps/activities/CreateFolderDialogActivity.d.ts +0 -30
- package/build/src/apps/activities/CreateFolderDialogActivity.d.ts.map +0 -1
- package/build/src/apps/activities/CreateFolderDialogActivity.js +0 -135
- package/build/src/apps/activities/CreateFolderDialogActivity.js.map +0 -1
- package/build/src/apps/activities/DeleteDataDomainActivity.d.ts +0 -47
- package/build/src/apps/activities/DeleteDataDomainActivity.d.ts.map +0 -1
- package/build/src/apps/activities/DeleteDataDomainActivity.js +0 -162
- package/build/src/apps/activities/DeleteDataDomainActivity.js.map +0 -1
- package/build/src/apps/activities/LoadingActivity.d.ts +0 -26
- package/build/src/apps/activities/LoadingActivity.d.ts.map +0 -1
- package/build/src/apps/activities/LoadingActivity.js +0 -67
- package/build/src/apps/activities/LoadingActivity.js.map +0 -1
- package/build/src/apps/activities/LoginActivity.d.ts +0 -26
- package/build/src/apps/activities/LoginActivity.d.ts.map +0 -1
- package/build/src/apps/activities/LoginActivity.js +0 -186
- package/build/src/apps/activities/LoginActivity.js.map +0 -1
- package/build/src/apps/activities/OrganizationSelectionActivity.d.ts +0 -35
- package/build/src/apps/activities/OrganizationSelectionActivity.d.ts.map +0 -1
- package/build/src/apps/activities/OrganizationSelectionActivity.js +0 -107
- package/build/src/apps/activities/OrganizationSelectionActivity.js.map +0 -1
- package/build/src/apps/activities/OrganizationSetupActivity.d.ts +0 -40
- package/build/src/apps/activities/OrganizationSetupActivity.d.ts.map +0 -1
- package/build/src/apps/activities/OrganizationSetupActivity.js +0 -171
- package/build/src/apps/activities/OrganizationSetupActivity.js.map +0 -1
- package/build/src/apps/activities/RenameFileDialogActivity.d.ts +0 -32
- package/build/src/apps/activities/RenameFileDialogActivity.d.ts.map +0 -1
- package/build/src/apps/activities/RenameFileDialogActivity.js +0 -168
- package/build/src/apps/activities/RenameFileDialogActivity.js.map +0 -1
- package/build/src/apps/activities/styles/BrowseDataDomain.styles.d.ts +0 -3
- package/build/src/apps/activities/styles/BrowseDataDomain.styles.d.ts.map +0 -1
- package/build/src/apps/activities/styles/BrowseDataDomain.styles.js +0 -28
- package/build/src/apps/activities/styles/BrowseDataDomain.styles.js.map +0 -1
- package/build/src/apps/activities/styles/DeleteDataDomain.styles.d.ts +0 -3
- package/build/src/apps/activities/styles/DeleteDataDomain.styles.d.ts.map +0 -1
- package/build/src/apps/activities/styles/DeleteDataDomain.styles.js +0 -26
- package/build/src/apps/activities/styles/DeleteDataDomain.styles.js.map +0 -1
- package/build/src/apps/activities/styles/login.d.ts +0 -3
- package/build/src/apps/activities/styles/login.d.ts.map +0 -1
- package/build/src/apps/activities/styles/login.js +0 -66
- package/build/src/apps/activities/styles/login.js.map +0 -1
- package/build/src/apps/api_service.d.ts +0 -18
- package/build/src/apps/api_service.d.ts.map +0 -1
- package/build/src/apps/api_service.js +0 -4
- package/build/src/apps/api_service.js.map +0 -1
- package/build/src/apps/fragments/loading.d.ts +0 -21
- package/build/src/apps/fragments/loading.d.ts.map +0 -1
- package/build/src/apps/fragments/loading.js +0 -63
- package/build/src/apps/fragments/loading.js.map +0 -1
- package/build/src/apps/quick-api/Intents.d.ts +0 -12
- package/build/src/apps/quick-api/Intents.d.ts.map +0 -1
- package/build/src/apps/quick-api/Intents.js +0 -12
- package/build/src/apps/quick-api/Intents.js.map +0 -1
- package/build/src/apps/quick-api/QuickApiApp.d.ts +0 -10
- package/build/src/apps/quick-api/QuickApiApp.d.ts.map +0 -1
- package/build/src/apps/quick-api/QuickApiApp.js +0 -61
- package/build/src/apps/quick-api/QuickApiApp.js.map +0 -1
- package/build/src/apps/quick-api/Schema.styles.d.ts +0 -3
- package/build/src/apps/quick-api/Schema.styles.d.ts.map +0 -1
- package/build/src/apps/quick-api/Schema.styles.js +0 -95
- package/build/src/apps/quick-api/Schema.styles.js.map +0 -1
- package/build/src/apps/quick-api/SchemaEditorApp.d.ts +0 -9
- package/build/src/apps/quick-api/SchemaEditorApp.d.ts.map +0 -1
- package/build/src/apps/quick-api/SchemaEditorApp.js +0 -60
- package/build/src/apps/quick-api/SchemaEditorApp.js.map +0 -1
- package/build/src/apps/quick-api/SchemaScreenActivity.d.ts +0 -49
- package/build/src/apps/quick-api/SchemaScreenActivity.d.ts.map +0 -1
- package/build/src/apps/quick-api/SchemaScreenActivity.js +0 -285
- package/build/src/apps/quick-api/SchemaScreenActivity.js.map +0 -1
- package/build/src/apps/quick-api/SchemaScreenViewModel.d.ts +0 -43
- package/build/src/apps/quick-api/SchemaScreenViewModel.d.ts.map +0 -1
- package/build/src/apps/quick-api/SchemaScreenViewModel.js +0 -40
- package/build/src/apps/quick-api/SchemaScreenViewModel.js.map +0 -1
- package/build/src/apps/quick-api/Start.styles.d.ts +0 -3
- package/build/src/apps/quick-api/Start.styles.d.ts.map +0 -1
- package/build/src/apps/quick-api/Start.styles.js +0 -125
- package/build/src/apps/quick-api/Start.styles.js.map +0 -1
- package/build/src/apps/quick-api/StartScreenActivity.d.ts +0 -46
- package/build/src/apps/quick-api/StartScreenActivity.d.ts.map +0 -1
- package/build/src/apps/quick-api/StartScreenActivity.js +0 -70
- package/build/src/apps/quick-api/StartScreenActivity.js.map +0 -1
- package/build/src/apps/quick-api/filesystem/Files.styles.d.ts +0 -3
- package/build/src/apps/quick-api/filesystem/Files.styles.d.ts.map +0 -1
- package/build/src/apps/quick-api/filesystem/Files.styles.js +0 -72
- package/build/src/apps/quick-api/filesystem/Files.styles.js.map +0 -1
- package/build/src/apps/quick-api/filesystem/FilesLib.d.ts +0 -10
- package/build/src/apps/quick-api/filesystem/FilesLib.d.ts.map +0 -1
- package/build/src/apps/quick-api/filesystem/FilesLib.js +0 -41
- package/build/src/apps/quick-api/filesystem/FilesLib.js.map +0 -1
- package/build/src/apps/quick-api/fragments/FilesystemFragment.d.ts +0 -92
- package/build/src/apps/quick-api/fragments/FilesystemFragment.d.ts.map +0 -1
- package/build/src/apps/quick-api/fragments/FilesystemFragment.js +0 -400
- package/build/src/apps/quick-api/fragments/FilesystemFragment.js.map +0 -1
- package/build/src/apps/quick-api/fragments/HeaderFragment.d.ts +0 -23
- package/build/src/apps/quick-api/fragments/HeaderFragment.d.ts.map +0 -1
- package/build/src/apps/quick-api/fragments/HeaderFragment.js +0 -64
- package/build/src/apps/quick-api/fragments/HeaderFragment.js.map +0 -1
- package/build/src/apps/quick-api/fragments/MainFragment.d.ts +0 -17
- package/build/src/apps/quick-api/fragments/MainFragment.d.ts.map +0 -1
- package/build/src/apps/quick-api/fragments/MainFragment.js +0 -39
- package/build/src/apps/quick-api/fragments/MainFragment.js.map +0 -1
- package/build/src/apps/quick-api/fragments/NavigationFragment.d.ts +0 -19
- package/build/src/apps/quick-api/fragments/NavigationFragment.d.ts.map +0 -1
- package/build/src/apps/quick-api/fragments/NavigationFragment.js +0 -158
- package/build/src/apps/quick-api/fragments/NavigationFragment.js.map +0 -1
- package/build/src/apps/quick-api/fragments/SchemaEditorEmptyState.fragment.d.ts +0 -9
- package/build/src/apps/quick-api/fragments/SchemaEditorEmptyState.fragment.d.ts.map +0 -1
- package/build/src/apps/quick-api/fragments/SchemaEditorEmptyState.fragment.js +0 -11
- package/build/src/apps/quick-api/fragments/SchemaEditorEmptyState.fragment.js.map +0 -1
- package/build/src/apps/quick-api/fragments/SchemaEditorHost.d.ts +0 -56
- package/build/src/apps/quick-api/fragments/SchemaEditorHost.d.ts.map +0 -1
- package/build/src/apps/quick-api/fragments/SchemaEditorHost.js +0 -241
- package/build/src/apps/quick-api/fragments/SchemaEditorHost.js.map +0 -1
- package/build/src/apps/quick-api/fragments/SchemaEditorHost.styles.d.ts +0 -3
- package/build/src/apps/quick-api/fragments/SchemaEditorHost.styles.d.ts.map +0 -1
- package/build/src/apps/quick-api/fragments/SchemaEditorHost.styles.js +0 -22
- package/build/src/apps/quick-api/fragments/SchemaEditorHost.styles.js.map +0 -1
- package/build/src/apps/quick-api/fragments/SchemaHeaderFragment.d.ts +0 -20
- package/build/src/apps/quick-api/fragments/SchemaHeaderFragment.d.ts.map +0 -1
- package/build/src/apps/quick-api/fragments/SchemaHeaderFragment.js +0 -106
- package/build/src/apps/quick-api/fragments/SchemaHeaderFragment.js.map +0 -1
- package/build/src/apps/quick-api/fragments/SchemaNavigation.styles.d.ts +0 -3
- package/build/src/apps/quick-api/fragments/SchemaNavigation.styles.d.ts.map +0 -1
- package/build/src/apps/quick-api/fragments/SchemaNavigation.styles.js +0 -16
- package/build/src/apps/quick-api/fragments/SchemaNavigation.styles.js.map +0 -1
- package/build/src/apps/quick-api/fragments/SchemaNavigationFragment.d.ts +0 -45
- package/build/src/apps/quick-api/fragments/SchemaNavigationFragment.d.ts.map +0 -1
- package/build/src/apps/quick-api/fragments/SchemaNavigationFragment.js +0 -282
- package/build/src/apps/quick-api/fragments/SchemaNavigationFragment.js.map +0 -1
- package/build/src/apps/quick-api/fragments/TrashFragment.d.ts +0 -40
- package/build/src/apps/quick-api/fragments/TrashFragment.d.ts.map +0 -1
- package/build/src/apps/quick-api/fragments/TrashFragment.js +0 -179
- package/build/src/apps/quick-api/fragments/TrashFragment.js.map +0 -1
- package/build/src/apps/quick-api/lib/SchemaContextualMenu.d.ts +0 -6
- package/build/src/apps/quick-api/lib/SchemaContextualMenu.d.ts.map +0 -1
- package/build/src/apps/quick-api/lib/SchemaContextualMenu.js +0 -61
- package/build/src/apps/quick-api/lib/SchemaContextualMenu.js.map +0 -1
- package/build/src/apps/quick-api/lib/UiLib.d.ts +0 -8
- package/build/src/apps/quick-api/lib/UiLib.d.ts.map +0 -1
- package/build/src/apps/quick-api/lib/UiLib.js +0 -16
- package/build/src/apps/quick-api/lib/UiLib.js.map +0 -1
- package/build/src/apps/services/ConfigurationService.d.ts +0 -12
- package/build/src/apps/services/ConfigurationService.d.ts.map +0 -1
- package/build/src/apps/services/ConfigurationService.js +0 -23
- package/build/src/apps/services/ConfigurationService.js.map +0 -1
- package/build/src/apps/services/LoggingService.d.ts +0 -17
- package/build/src/apps/services/LoggingService.d.ts.map +0 -1
- package/build/src/apps/services/LoggingService.js +0 -37
- package/build/src/apps/services/LoggingService.js.map +0 -1
- package/build/src/apps/services/OrganizationService.d.ts +0 -54
- package/build/src/apps/services/OrganizationService.d.ts.map +0 -1
- package/build/src/apps/services/OrganizationService.js +0 -133
- package/build/src/apps/services/OrganizationService.js.map +0 -1
- package/build/src/apps/services/SdkService.d.ts +0 -17
- package/build/src/apps/services/SdkService.d.ts.map +0 -1
- package/build/src/apps/services/SdkService.js +0 -36
- package/build/src/apps/services/SdkService.js.map +0 -1
- package/build/src/apps/services/TransmitService.d.ts +0 -10
- package/build/src/apps/services/TransmitService.d.ts.map +0 -1
- package/build/src/apps/services/TransmitService.js +0 -17
- package/build/src/apps/services/TransmitService.js.map +0 -1
- package/build/src/apps/services/UserService.d.ts +0 -23
- package/build/src/apps/services/UserService.d.ts.map +0 -1
- package/build/src/apps/services/UserService.js +0 -62
- package/build/src/apps/services/UserService.js.map +0 -1
- package/build/src/apps/transmit_client.d.ts +0 -3
- package/build/src/apps/transmit_client.d.ts.map +0 -1
- package/build/src/apps/transmit_client.js +0 -5
- package/build/src/apps/transmit_client.js.map +0 -1
- package/build/src/apps/types.d.ts +0 -11
- package/build/src/apps/types.d.ts.map +0 -1
- package/build/src/apps/types.js +0 -2
- package/build/src/apps/types.js.map +0 -1
- package/build/src/boot.d.ts +0 -3
- package/build/src/boot.d.ts.map +0 -1
- package/build/src/boot.js +0 -17
- package/build/src/boot.js.map +0 -1
- package/build/src/builders/DialogBuilder.d.ts +0 -131
- package/build/src/builders/DialogBuilder.d.ts.map +0 -1
- package/build/src/builders/DialogBuilder.js +0 -227
- package/build/src/builders/DialogBuilder.js.map +0 -1
- package/build/src/core/LiveData.d.ts.map +0 -1
- package/build/src/core/LiveData.js.map +0 -1
- package/build/src/core/container.d.ts +0 -14
- package/build/src/core/container.d.ts.map +0 -1
- package/build/src/core/container.js +0 -4
- package/build/src/core/container.js.map +0 -1
- package/build/src/core/reactive/reactive.d.ts.map +0 -1
- package/build/src/core/reactive/reactive.js.map +0 -1
- package/build/src/data/BreadcrumbsModel.d.ts +0 -36
- package/build/src/data/BreadcrumbsModel.d.ts.map +0 -1
- package/build/src/data/BreadcrumbsModel.js +0 -65
- package/build/src/data/BreadcrumbsModel.js.map +0 -1
- package/build/src/data/FileModel.d.ts +0 -35
- package/build/src/data/FileModel.d.ts.map +0 -1
- package/build/src/data/FileModel.js +0 -54
- package/build/src/data/FileModel.js.map +0 -1
- package/build/src/data/FilesModel.d.ts +0 -71
- package/build/src/data/FilesModel.d.ts.map +0 -1
- package/build/src/data/FilesModel.js +0 -166
- package/build/src/data/FilesModel.js.map +0 -1
- package/build/src/data/PatchableFileModel.d.ts +0 -141
- package/build/src/data/PatchableFileModel.d.ts.map +0 -1
- package/build/src/data/PatchableFileModel.js +0 -212
- package/build/src/data/PatchableFileModel.js.map +0 -1
- package/build/src/data/PatchableLiveDataContentModel.d.ts +0 -13
- package/build/src/data/PatchableLiveDataContentModel.d.ts.map +0 -1
- package/build/src/data/PatchableLiveDataContentModel.js +0 -18
- package/build/src/data/PatchableLiveDataContentModel.js.map +0 -1
- package/build/src/data/PatchableRawContentModel.d.ts +0 -14
- package/build/src/data/PatchableRawContentModel.d.ts.map +0 -1
- package/build/src/data/PatchableRawContentModel.js +0 -32
- package/build/src/data/PatchableRawContentModel.js.map +0 -1
- package/build/src/data/TrashModel.d.ts +0 -50
- package/build/src/data/TrashModel.d.ts.map +0 -1
- package/build/src/data/TrashModel.js +0 -102
- package/build/src/data/TrashModel.js.map +0 -1
- package/build/src/elements/data-table/filesystem-table.d.ts +0 -11
- package/build/src/elements/data-table/filesystem-table.d.ts.map +0 -1
- package/build/src/elements/data-table/filesystem-table.js +0 -28
- package/build/src/elements/data-table/filesystem-table.js.map +0 -1
- package/build/src/elements/data-table/internals/DataTable.d.ts.map +0 -1
- package/build/src/elements/data-table/internals/DataTable.js.map +0 -1
- package/build/src/elements/data-table/internals/DataTable.styles.d.ts.map +0 -1
- package/build/src/elements/data-table/internals/DataTable.styles.js.map +0 -1
- package/build/src/elements/data-table/internals/Filesystem.styles.d.ts +0 -3
- package/build/src/elements/data-table/internals/Filesystem.styles.d.ts.map +0 -1
- package/build/src/elements/data-table/internals/Filesystem.styles.js +0 -17
- package/build/src/elements/data-table/internals/Filesystem.styles.js.map +0 -1
- package/build/src/elements/data-table/internals/FilesystemDataTable.d.ts +0 -35
- package/build/src/elements/data-table/internals/FilesystemDataTable.d.ts.map +0 -1
- package/build/src/elements/data-table/internals/FilesystemDataTable.js +0 -237
- package/build/src/elements/data-table/internals/FilesystemDataTable.js.map +0 -1
- package/build/src/elements/data-table/internals/TrashDataTable.d.ts +0 -34
- package/build/src/elements/data-table/internals/TrashDataTable.d.ts.map +0 -1
- package/build/src/elements/data-table/internals/TrashDataTable.js +0 -173
- package/build/src/elements/data-table/internals/TrashDataTable.js.map +0 -1
- package/build/src/elements/data-table/trash-table.d.ts +0 -11
- package/build/src/elements/data-table/trash-table.d.ts.map +0 -1
- package/build/src/elements/data-table/trash-table.js +0 -28
- package/build/src/elements/data-table/trash-table.js.map +0 -1
- package/build/src/elements/modeling/domain-association-editor.d.ts +0 -10
- package/build/src/elements/modeling/domain-association-editor.d.ts.map +0 -1
- package/build/src/elements/modeling/domain-association-editor.js +0 -28
- package/build/src/elements/modeling/domain-association-editor.js.map +0 -1
- package/build/src/elements/modeling/domain-entity-editor.d.ts +0 -10
- package/build/src/elements/modeling/domain-entity-editor.d.ts.map +0 -1
- package/build/src/elements/modeling/domain-entity-editor.js +0 -30
- package/build/src/elements/modeling/domain-entity-editor.js.map +0 -1
- package/build/src/elements/modeling/domain-model-editor.d.ts +0 -10
- package/build/src/elements/modeling/domain-model-editor.d.ts.map +0 -1
- package/build/src/elements/modeling/domain-model-editor.js +0 -30
- package/build/src/elements/modeling/domain-model-editor.js.map +0 -1
- package/build/src/elements/modeling/domain-namespace-editor.d.ts +0 -10
- package/build/src/elements/modeling/domain-namespace-editor.d.ts.map +0 -1
- package/build/src/elements/modeling/domain-namespace-editor.js +0 -30
- package/build/src/elements/modeling/domain-namespace-editor.js.map +0 -1
- package/build/src/elements/modeling/domain-navigation.d.ts +0 -10
- package/build/src/elements/modeling/domain-navigation.d.ts.map +0 -1
- package/build/src/elements/modeling/domain-navigation.js +0 -28
- package/build/src/elements/modeling/domain-navigation.js.map +0 -1
- package/build/src/elements/modeling/domain-property-editor.d.ts +0 -10
- package/build/src/elements/modeling/domain-property-editor.d.ts.map +0 -1
- package/build/src/elements/modeling/domain-property-editor.js +0 -29
- package/build/src/elements/modeling/domain-property-editor.js.map +0 -1
- package/build/src/elements/modeling/internals/DomainAssociationEditor.d.ts +0 -100
- package/build/src/elements/modeling/internals/DomainAssociationEditor.d.ts.map +0 -1
- package/build/src/elements/modeling/internals/DomainAssociationEditor.js +0 -535
- package/build/src/elements/modeling/internals/DomainAssociationEditor.js.map +0 -1
- package/build/src/elements/modeling/internals/DomainEntityEditor.d.ts +0 -130
- package/build/src/elements/modeling/internals/DomainEntityEditor.d.ts.map +0 -1
- package/build/src/elements/modeling/internals/DomainEntityEditor.js +0 -809
- package/build/src/elements/modeling/internals/DomainEntityEditor.js.map +0 -1
- package/build/src/elements/modeling/internals/DomainModelEditor.d.ts +0 -19
- package/build/src/elements/modeling/internals/DomainModelEditor.d.ts.map +0 -1
- package/build/src/elements/modeling/internals/DomainModelEditor.js +0 -235
- package/build/src/elements/modeling/internals/DomainModelEditor.js.map +0 -1
- package/build/src/elements/modeling/internals/DomainNamespaceEditor.d.ts +0 -20
- package/build/src/elements/modeling/internals/DomainNamespaceEditor.d.ts.map +0 -1
- package/build/src/elements/modeling/internals/DomainNamespaceEditor.js +0 -200
- package/build/src/elements/modeling/internals/DomainNamespaceEditor.js.map +0 -1
- package/build/src/elements/modeling/internals/DomainNavigation.d.ts +0 -33
- package/build/src/elements/modeling/internals/DomainNavigation.d.ts.map +0 -1
- package/build/src/elements/modeling/internals/DomainNavigation.js +0 -286
- package/build/src/elements/modeling/internals/DomainNavigation.js.map +0 -1
- package/build/src/elements/modeling/internals/DomainPropertyEditor.d.ts +0 -271
- package/build/src/elements/modeling/internals/DomainPropertyEditor.d.ts.map +0 -1
- package/build/src/elements/modeling/internals/DomainPropertyEditor.js +0 -1096
- package/build/src/elements/modeling/internals/DomainPropertyEditor.js.map +0 -1
- package/build/src/elements/modeling/internals/ModelingElement.d.ts +0 -26
- package/build/src/elements/modeling/internals/ModelingElement.d.ts.map +0 -1
- package/build/src/elements/modeling/internals/ModelingElement.js +0 -66
- package/build/src/elements/modeling/internals/ModelingElement.js.map +0 -1
- package/build/src/elements/modeling/internals/lib/UiMapping.d.ts +0 -37
- package/build/src/elements/modeling/internals/lib/UiMapping.d.ts.map +0 -1
- package/build/src/elements/modeling/internals/lib/UiMapping.js +0 -208
- package/build/src/elements/modeling/internals/lib/UiMapping.js.map +0 -1
- package/build/src/elements/modeling/internals/styles/DomainEntityEditor.styles.d.ts +0 -3
- package/build/src/elements/modeling/internals/styles/DomainEntityEditor.styles.d.ts.map +0 -1
- package/build/src/elements/modeling/internals/styles/DomainEntityEditor.styles.js +0 -83
- package/build/src/elements/modeling/internals/styles/DomainEntityEditor.styles.js.map +0 -1
- package/build/src/elements/modeling/internals/styles/DomainModelEditor.styles.d.ts +0 -3
- package/build/src/elements/modeling/internals/styles/DomainModelEditor.styles.d.ts.map +0 -1
- package/build/src/elements/modeling/internals/styles/DomainModelEditor.styles.js +0 -7
- package/build/src/elements/modeling/internals/styles/DomainModelEditor.styles.js.map +0 -1
- package/build/src/elements/modeling/internals/styles/DomainNamespaceEditor.styles.d.ts +0 -3
- package/build/src/elements/modeling/internals/styles/DomainNamespaceEditor.styles.d.ts.map +0 -1
- package/build/src/elements/modeling/internals/styles/DomainNamespaceEditor.styles.js +0 -7
- package/build/src/elements/modeling/internals/styles/DomainNamespaceEditor.styles.js.map +0 -1
- package/build/src/elements/modeling/internals/styles/DomainNavigation.styles.d.ts +0 -3
- package/build/src/elements/modeling/internals/styles/DomainNavigation.styles.d.ts.map +0 -1
- package/build/src/elements/modeling/internals/styles/DomainNavigation.styles.js +0 -27
- package/build/src/elements/modeling/internals/styles/DomainNavigation.styles.js.map +0 -1
- package/build/src/elements/modeling/internals/styles/DomainPropertyEditor.styles.d.ts +0 -3
- package/build/src/elements/modeling/internals/styles/DomainPropertyEditor.styles.d.ts.map +0 -1
- package/build/src/elements/modeling/internals/styles/DomainPropertyEditor.styles.js +0 -18
- package/build/src/elements/modeling/internals/styles/DomainPropertyEditor.styles.js.map +0 -1
- package/build/src/elements/modeling/internals/styles/form_styles.d.ts +0 -3
- package/build/src/elements/modeling/internals/styles/form_styles.d.ts.map +0 -1
- package/build/src/elements/modeling/internals/styles/form_styles.js +0 -63
- package/build/src/elements/modeling/internals/styles/form_styles.js.map +0 -1
- package/build/src/elements/modeling/internals/styles/learning.styles.d.ts +0 -3
- package/build/src/elements/modeling/internals/styles/learning.styles.d.ts.map +0 -1
- package/build/src/elements/modeling/internals/styles/learning.styles.js +0 -40
- package/build/src/elements/modeling/internals/styles/learning.styles.js.map +0 -1
- package/build/src/elements/modeling/types.d.ts +0 -32
- package/build/src/elements/modeling/types.d.ts.map +0 -1
- package/build/src/elements/modeling/types.js +0 -2
- package/build/src/elements/modeling/types.js.map +0 -1
- package/build/src/elements/schema-design/AssociationFormElement.d.ts +0 -34
- package/build/src/elements/schema-design/AssociationFormElement.d.ts.map +0 -1
- package/build/src/elements/schema-design/AssociationFormElement.js +0 -178
- package/build/src/elements/schema-design/AssociationFormElement.js.map +0 -1
- package/build/src/elements/schema-design/CommonStyles.d.ts +0 -3
- package/build/src/elements/schema-design/CommonStyles.d.ts.map +0 -1
- package/build/src/elements/schema-design/CommonStyles.js +0 -62
- package/build/src/elements/schema-design/CommonStyles.js.map +0 -1
- package/build/src/elements/schema-design/DataEntityEditorElement.d.ts +0 -69
- package/build/src/elements/schema-design/DataEntityEditorElement.d.ts.map +0 -1
- package/build/src/elements/schema-design/DataEntityEditorElement.js +0 -415
- package/build/src/elements/schema-design/DataEntityEditorElement.js.map +0 -1
- package/build/src/elements/schema-design/DataModelVisualizationElement.d.ts +0 -62
- package/build/src/elements/schema-design/DataModelVisualizationElement.d.ts.map +0 -1
- package/build/src/elements/schema-design/DataModelVisualizationElement.js +0 -417
- package/build/src/elements/schema-design/DataModelVisualizationElement.js.map +0 -1
- package/build/src/elements/schema-design/DataSchemaDocument.d.ts +0 -176
- package/build/src/elements/schema-design/DataSchemaDocument.d.ts.map +0 -1
- package/build/src/elements/schema-design/DataSchemaDocument.js +0 -949
- package/build/src/elements/schema-design/DataSchemaDocument.js.map +0 -1
- package/build/src/elements/schema-design/EntityFormElement.d.ts +0 -64
- package/build/src/elements/schema-design/EntityFormElement.d.ts.map +0 -1
- package/build/src/elements/schema-design/EntityFormElement.js +0 -331
- package/build/src/elements/schema-design/EntityFormElement.js.map +0 -1
- package/build/src/elements/schema-design/PropertyFormElement.d.ts +0 -96
- package/build/src/elements/schema-design/PropertyFormElement.d.ts.map +0 -1
- package/build/src/elements/schema-design/PropertyFormElement.js +0 -647
- package/build/src/elements/schema-design/PropertyFormElement.js.map +0 -1
- package/build/src/elements/schema-design/SchemaNamespaceSelector.d.ts +0 -27
- package/build/src/elements/schema-design/SchemaNamespaceSelector.d.ts.map +0 -1
- package/build/src/elements/schema-design/SchemaNamespaceSelector.js +0 -97
- package/build/src/elements/schema-design/SchemaNamespaceSelector.js.map +0 -1
- package/build/src/elements/schema-design/SchemaNamespaceSelector.styles.d.ts +0 -3
- package/build/src/elements/schema-design/SchemaNamespaceSelector.styles.d.ts.map +0 -1
- package/build/src/elements/schema-design/SchemaNamespaceSelector.styles.js +0 -28
- package/build/src/elements/schema-design/SchemaNamespaceSelector.styles.js.map +0 -1
- package/build/src/elements/schema-design/data-association-form.d.ts +0 -7
- package/build/src/elements/schema-design/data-association-form.d.ts.map +0 -1
- package/build/src/elements/schema-design/data-association-form.js +0 -3
- package/build/src/elements/schema-design/data-association-form.js.map +0 -1
- package/build/src/elements/schema-design/data-entity-editor.d.ts +0 -7
- package/build/src/elements/schema-design/data-entity-editor.d.ts.map +0 -1
- package/build/src/elements/schema-design/data-entity-editor.js +0 -3
- package/build/src/elements/schema-design/data-entity-editor.js.map +0 -1
- package/build/src/elements/schema-design/data-entity-form.d.ts +0 -7
- package/build/src/elements/schema-design/data-entity-form.d.ts.map +0 -1
- package/build/src/elements/schema-design/data-entity-form.js +0 -3
- package/build/src/elements/schema-design/data-entity-form.js.map +0 -1
- package/build/src/elements/schema-design/data-model-visualization.d.ts +0 -7
- package/build/src/elements/schema-design/data-model-visualization.d.ts.map +0 -1
- package/build/src/elements/schema-design/data-model-visualization.js +0 -3
- package/build/src/elements/schema-design/data-model-visualization.js.map +0 -1
- package/build/src/elements/schema-design/data-property-form.d.ts +0 -7
- package/build/src/elements/schema-design/data-property-form.d.ts.map +0 -1
- package/build/src/elements/schema-design/data-property-form.js +0 -3
- package/build/src/elements/schema-design/data-property-form.js.map +0 -1
- package/build/src/elements/schema-design/data-schema-document.d.ts +0 -7
- package/build/src/elements/schema-design/data-schema-document.d.ts.map +0 -1
- package/build/src/elements/schema-design/data-schema-document.js +0 -3
- package/build/src/elements/schema-design/data-schema-document.js.map +0 -1
- package/build/src/elements/schema-design/schemaCommon.d.ts +0 -3
- package/build/src/elements/schema-design/schemaCommon.d.ts.map +0 -1
- package/build/src/elements/schema-design/schemaCommon.js +0 -375
- package/build/src/elements/schema-design/schemaCommon.js.map +0 -1
- package/build/src/exceptions/FileLoadException.d.ts +0 -8
- package/build/src/exceptions/FileLoadException.d.ts.map +0 -1
- package/build/src/exceptions/FileLoadException.js +0 -8
- package/build/src/exceptions/FileLoadException.js.map +0 -1
- package/build/src/exceptions/MisconfigurationException.d.ts +0 -8
- package/build/src/exceptions/MisconfigurationException.d.ts.map +0 -1
- package/build/src/exceptions/MisconfigurationException.js +0 -8
- package/build/src/exceptions/MisconfigurationException.js.map +0 -1
- package/build/src/sdk/UiSdk.d.ts +0 -17
- package/build/src/sdk/UiSdk.d.ts.map +0 -1
- package/build/src/sdk/UiSdk.js +0 -41
- package/build/src/sdk/UiSdk.js.map +0 -1
- package/demo/apps/auth-callback.html +0 -37
- package/demo/apps/main.html +0 -23
- package/demo/apps/main.ts +0 -5
- package/demo/apps/schema.html +0 -22
- package/demo/apps/schema.ts +0 -5
- package/src/apps/activities/ApiActivity.ts +0 -40
- package/src/apps/activities/AppStartActivity.ts +0 -123
- package/src/apps/activities/BrowseDataDomainActivity.ts +0 -1073
- package/src/apps/activities/CreateFolderDialogActivity.ts +0 -128
- package/src/apps/activities/DeleteDataDomainActivity.ts +0 -150
- package/src/apps/activities/LoadingActivity.ts +0 -90
- package/src/apps/activities/LoginActivity.ts +0 -193
- package/src/apps/activities/OrganizationSelectionActivity.ts +0 -102
- package/src/apps/activities/OrganizationSetupActivity.ts +0 -146
- package/src/apps/activities/RenameFileDialogActivity.ts +0 -156
- package/src/apps/activities/styles/BrowseDataDomain.styles.ts +0 -28
- package/src/apps/activities/styles/DeleteDataDomain.styles.ts +0 -26
- package/src/apps/activities/styles/login.ts +0 -66
- package/src/apps/api_service.ts +0 -20
- package/src/apps/fragments/loading.ts +0 -84
- package/src/apps/quick-api/Intents.ts +0 -14
- package/src/apps/quick-api/QuickApiApp.ts +0 -55
- package/src/apps/quick-api/Schema.styles.ts +0 -95
- package/src/apps/quick-api/SchemaEditorApp.ts +0 -60
- package/src/apps/quick-api/SchemaScreenActivity.ts +0 -319
- package/src/apps/quick-api/SchemaScreenViewModel.ts +0 -74
- package/src/apps/quick-api/Start.styles.ts +0 -125
- package/src/apps/quick-api/StartScreenActivity.ts +0 -102
- package/src/apps/quick-api/filesystem/Files.styles.ts +0 -72
- package/src/apps/quick-api/filesystem/FilesLib.ts +0 -43
- package/src/apps/quick-api/fragments/FilesystemFragment.ts +0 -417
- package/src/apps/quick-api/fragments/HeaderFragment.ts +0 -72
- package/src/apps/quick-api/fragments/MainFragment.ts +0 -47
- package/src/apps/quick-api/fragments/NavigationFragment.ts +0 -165
- package/src/apps/quick-api/fragments/SchemaEditorEmptyState.fragment.ts +0 -11
- package/src/apps/quick-api/fragments/SchemaEditorHost.styles.ts +0 -22
- package/src/apps/quick-api/fragments/SchemaEditorHost.ts +0 -239
- package/src/apps/quick-api/fragments/SchemaHeaderFragment.ts +0 -117
- package/src/apps/quick-api/fragments/SchemaNavigation.styles.ts +0 -16
- package/src/apps/quick-api/fragments/SchemaNavigationFragment.ts +0 -292
- package/src/apps/quick-api/fragments/TrashFragment.ts +0 -174
- package/src/apps/quick-api/lib/SchemaContextualMenu.ts +0 -63
- package/src/apps/quick-api/lib/UiLib.ts +0 -17
- package/src/apps/services/ConfigurationService.ts +0 -28
- package/src/apps/services/LoggingService.ts +0 -48
- package/src/apps/services/OrganizationService.ts +0 -138
- package/src/apps/services/SdkService.ts +0 -45
- package/src/apps/services/TransmitService.ts +0 -21
- package/src/apps/services/UserService.ts +0 -69
- package/src/apps/transmit_client.ts +0 -5
- package/src/apps/types.ts +0 -10
- package/src/boot.ts +0 -18
- package/src/builders/DialogBuilder.ts +0 -248
- package/src/core/container.ts +0 -15
- package/src/data/BreadcrumbsModel.ts +0 -69
- package/src/data/FileModel.ts +0 -58
- package/src/data/FilesModel.ts +0 -186
- package/src/data/PatchableFileModel.ts +0 -266
- package/src/data/PatchableLiveDataContentModel.ts +0 -26
- package/src/data/PatchableRawContentModel.ts +0 -42
- package/src/data/TrashModel.ts +0 -114
- package/src/elements/data-table/filesystem-table.ts +0 -16
- package/src/elements/data-table/internals/Filesystem.styles.ts +0 -17
- package/src/elements/data-table/internals/FilesystemDataTable.ts +0 -230
- package/src/elements/data-table/internals/TrashDataTable.ts +0 -165
- package/src/elements/data-table/trash-table.ts +0 -16
- package/src/elements/modeling/domain-association-editor.ts +0 -15
- package/src/elements/modeling/domain-entity-editor.ts +0 -17
- package/src/elements/modeling/domain-model-editor.ts +0 -17
- package/src/elements/modeling/domain-namespace-editor.ts +0 -17
- package/src/elements/modeling/domain-navigation.ts +0 -15
- package/src/elements/modeling/domain-property-editor.ts +0 -16
- package/src/elements/modeling/internals/DomainAssociationEditor.ts +0 -550
- package/src/elements/modeling/internals/DomainEntityEditor.ts +0 -813
- package/src/elements/modeling/internals/DomainModelEditor.ts +0 -241
- package/src/elements/modeling/internals/DomainNamespaceEditor.ts +0 -207
- package/src/elements/modeling/internals/DomainNavigation.ts +0 -285
- package/src/elements/modeling/internals/DomainPropertyEditor.ts +0 -1112
- package/src/elements/modeling/internals/ModelingElement.ts +0 -48
- package/src/elements/modeling/internals/lib/UiMapping.ts +0 -218
- package/src/elements/modeling/internals/styles/DomainEntityEditor.styles.ts +0 -83
- package/src/elements/modeling/internals/styles/DomainModelEditor.styles.ts +0 -7
- package/src/elements/modeling/internals/styles/DomainNamespaceEditor.styles.ts +0 -7
- package/src/elements/modeling/internals/styles/DomainNavigation.styles.ts +0 -27
- package/src/elements/modeling/internals/styles/DomainPropertyEditor.styles.ts +0 -18
- package/src/elements/modeling/internals/styles/form_styles.ts +0 -63
- package/src/elements/modeling/internals/styles/learning.styles.ts +0 -40
- package/src/elements/modeling/types.ts +0 -33
- package/src/elements/schema-design/AssociationFormElement.ts +0 -155
- package/src/elements/schema-design/CommonStyles.ts +0 -62
- package/src/elements/schema-design/DataEntityEditorElement.ts +0 -376
- package/src/elements/schema-design/DataModelVisualizationElement.ts +0 -417
- package/src/elements/schema-design/DataSchemaDocument.ts +0 -959
- package/src/elements/schema-design/EntityFormElement.ts +0 -315
- package/src/elements/schema-design/PropertyFormElement.ts +0 -672
- package/src/elements/schema-design/SchemaNamespaceSelector.styles.ts +0 -28
- package/src/elements/schema-design/SchemaNamespaceSelector.ts +0 -78
- package/src/elements/schema-design/data-association-form.ts +0 -9
- package/src/elements/schema-design/data-entity-editor.ts +0 -9
- package/src/elements/schema-design/data-entity-form.ts +0 -9
- package/src/elements/schema-design/data-model-visualization.ts +0 -9
- package/src/elements/schema-design/data-property-form.ts +0 -9
- package/src/elements/schema-design/data-schema-document.ts +0 -9
- package/src/elements/schema-design/schemaCommon.ts +0 -375
- package/src/exceptions/FileLoadException.ts +0 -8
- package/src/exceptions/MisconfigurationException.ts +0 -8
- package/src/sdk/UiSdk.ts +0 -47
- package/test/elements/modeling/domain-entity-editor.spec.ts +0 -1377
- package/test/elements/modeling/domain-property-editor.spec.ts +0 -1551
- /package/build/src/elements/data-table/{internals/DataTable.styles.d.ts → DataTable.styles.d.ts} +0 -0
- /package/build/src/elements/data-table/{internals/DataTable.styles.js → DataTable.styles.js} +0 -0
- /package/build/src/{core/reactive → reactive}/reactive.d.ts +0 -0
- /package/build/src/{core/reactive → reactive}/reactive.js +0 -0
- /package/src/elements/data-table/{internals/DataTable.styles.ts → DataTable.styles.ts} +0 -0
- /package/src/{core/reactive → reactive}/reactive.ts +0 -0
- /package/{web-dev-server.config.js → wds-demo.config.js} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":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;OAEG;IACM,KAAK,CAAC,OAAO,CAAC,EAAU;QAC/B,MAAM,EAAE,GAAG,EAAE,GAAG,IAAI,CAAA;QACpB,IAAI,CAAC,GAAG,EAAE,CAAC;YACT,OAAO,SAAS,CAAA;QAClB,CAAC;QACD,MAAM,KAAK,GAAG,IAAI,CAAC,gBAAgB,EAAE,CAAA;QACrC,gEAAgE;QAChE,IAAI,KAAK,CAAC,QAAQ,CAAC,YAAY,CAAC,GAAG,CAAC,YAAY,CAAC,MAAM,CAAC,gBAAgB,CAAC,EAAE,CAAC;YAC1E,MAAM,OAAO,GAAG,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,CAAA;YACzC,OAAO,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,OAAiC,CAAC,CAAA;QACxE,CAAC;QACD,MAAM,QAAQ,GAAG,IAAI,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAA;QAC3C,MAAM,UAAU,GAAG,IAAI,CAAC,kBAAkB,CAAC,GAAG,CAAC,CAAA;QAC/C,MAAM,IAAI,GAAG,IAAI,CAAC,YAAY,CAC5B,QAA8C,EAC9C,UAAgD,EAChD,EAAE,CACH,CAAA;QACD,IAAI,CAAC,IAAI,EAAE,CAAC;YACV,OAAO,SAAS,CAAA;QAClB,CAAC;QACD,OAAO,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,IAAI,CAAC,CAAA;IAC3C,CAAC;CACF","sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\nimport {\n type AmfDefinitions,\n type ApiDefinitions,\n type AmfShapes,\n AmfMixin,\n AmfNamespace,\n type ServersQueryOptions,\n} from '@api-client/core/browser.js'\nimport { StoreEvents } from '../../events/amf/StoreEvents.js'\nimport { AmfStore } from './AmfStore.js'\nimport {\n type DocumentMeta,\n type ApiEndPointWithOperationsListItem,\n type ApiSecuritySchemeListItem,\n type ApiNodeShapeListItem,\n} from '../types.js'\n\n/**\n * The store that provides an API to read data from the AMF graph model.\n * The graph model is kept in memory in a form of a Raw ld+json graph representation of the\n * AMF's domain model.\n */\nexport class InMemAmfGraphStore extends AmfMixin(AmfStore) {\n /**\n * @param target The event target to dispatch the events on.\n * @param graph The full API model.\n */\n constructor(target: EventTarget = window, graph?: AmfDefinitions.IAmfDocument) {\n super(target, graph)\n let amf = graph\n if (Array.isArray(graph)) {\n ;[amf] = graph\n }\n /**\n * The graph model.\n */\n this.amf = amf\n }\n\n override _amfChanged(amf: AmfDefinitions.IAmfDocument): void {\n super._amfChanged(amf)\n this.serializer.amf = amf\n if (this.target) {\n StoreEvents.graphChange(this.target)\n }\n }\n\n /**\n * @returns The list of domain types for the currently loaded document.\n */\n override getDocumentTypes(): string[] {\n let { amf } = this\n if (Array.isArray(amf)) {\n ;[amf] = amf\n }\n if (!amf) {\n return []\n }\n return this.serializer.readTypes(amf['@type'])\n }\n\n /**\n * Gathers information about the loaded document.\n * This is mainly used by the `api-documentation` element to decide which documentation to render.\n */\n override async documentMeta(): Promise<DocumentMeta> {\n const result: DocumentMeta = {\n isApi: false,\n isAsync: false,\n isFragment: false,\n isLibrary: false,\n types: this.getDocumentTypes(),\n encodesId: undefined,\n }\n let { amf } = this\n if (Array.isArray(amf)) {\n ;[amf] = amf\n }\n if (!amf) {\n return result\n }\n const encodes = this._computeEncodes(amf)\n result.encodesId = encodes && encodes['@id']\n const api = this._computeApi(amf)\n const isApi = !!api\n result.isApi = isApi\n if (isApi) {\n result.isAsync = this._isAsyncAPI(amf)\n } else if (result.types[0] === AmfNamespace.aml.vocabularies.document.Module) {\n result.isLibrary = true\n } else {\n const fragmentTypes = [\n AmfNamespace.aml.vocabularies.security.SecuritySchemeFragment,\n AmfNamespace.aml.vocabularies.apiContract.UserDocumentationFragment,\n AmfNamespace.aml.vocabularies.shapes.DataTypeFragment,\n ]\n result.isFragment = fragmentTypes.some((type) => result.types.includes(type))\n }\n return result\n }\n\n /**\n * @returns API summary for the summary view.\n */\n override async apiSummary(): Promise<ApiDefinitions.IApiSummary | undefined> {\n const { amf } = this\n if (!amf) {\n return undefined\n }\n const api = this._computeApi(amf)\n if (!api) {\n return undefined\n }\n const result = this.serializer.apiSummary(api)\n return result\n }\n\n /**\n * @returns Currently loaded API's protocols\n */\n override async apiProtocols(): Promise<string[] | undefined> {\n const { amf } = this\n if (!amf) {\n return undefined\n }\n const wa = this._computeApi(amf)\n if (!wa) {\n return undefined\n }\n const protocols = this._getValueArray(wa, AmfNamespace.aml.vocabularies.apiContract.scheme) as string[]\n return protocols\n }\n\n /**\n * @returns Currently loaded API's version\n */\n override async apiVersion(): Promise<string | undefined> {\n const { amf } = this\n if (!amf) {\n return undefined\n }\n const version = this._computeApiVersion(amf) || undefined\n return version\n }\n\n /**\n * Finds an endpoint in the graph.\n * @param id The domain id of the endpoint.\n * @private\n */\n findEndpoint(id: string): ApiDefinitions.IApiEndPoint | undefined {\n const { amf } = this\n if (!amf) {\n return undefined\n }\n const api = this._computeApi(amf)\n if (!api) {\n return undefined\n }\n const endpoint = this._computeEndpointModel(api, id)\n if (!endpoint) {\n throw new Error(`Endpoint ${id} does not exist.`)\n }\n const result = this.serializer.endPoint(endpoint)\n return result\n }\n\n /**\n * Reads an endpoint by its id.\n * @param id The domain id of the endpoint.\n */\n override async getEndpoint(id: string): Promise<ApiDefinitions.IApiEndPoint | undefined> {\n return this.findEndpoint(id)\n }\n\n /**\n * Reads an endpoint by its path.\n * @param path The path value of the endpoint or channel name.\n */\n override async getEndpointByPath(path: string): Promise<ApiDefinitions.IApiEndPoint | undefined> {\n const { amf } = this\n if (!amf) {\n return undefined\n }\n const api = this._computeApi(amf)\n if (!api) {\n return undefined\n }\n const endpoints = this._computeEndpoints(api)\n if (!Array.isArray(endpoints) || !endpoints.length) {\n throw new Error(`This API has no endpoints.`)\n }\n const endpoint = endpoints.find((e) => this._getValue(e, AmfNamespace.aml.vocabularies.apiContract.path) === path)\n if (!endpoint) {\n throw new Error(`Endpoint ${endpoint} does not exist.`)\n }\n const result = this.serializer.endPoint(endpoint)\n return result\n }\n\n /**\n * Lists all endpoints with operations included into the result.\n */\n override async listEndpointsWithOperations(): Promise<ApiEndPointWithOperationsListItem[]> {\n const { amf } = this\n if (!amf) {\n return []\n }\n const api = this._computeApi(amf)\n if (!api) {\n return []\n }\n const endpoints = this._computeEndpoints(api)\n if (!Array.isArray(endpoints) || !endpoints.length) {\n return []\n }\n return endpoints.map((ep) => this.serializer.endPointWithOperationsListItem(ep))\n }\n\n /**\n * Queries for the list of servers for method, if defined, or endpoint, if defined, or root level\n * @param query Server query options\n * @returns The list of servers for given query.\n */\n override async queryServers(query?: ServersQueryOptions): Promise<ApiDefinitions.IApiServer[]> {\n const { amf } = this\n if (!amf) {\n return []\n }\n const servers = this._getServers(query)\n if (!Array.isArray(servers)) {\n return []\n }\n return servers.map((s) => this.serializer.server(s))\n }\n\n /**\n * Searches for an operation in the API.\n * @param operationId The domain id of the operation to read.\n * @param endpointId Optional endpoint id. When not set it searches through all endpoints.\n */\n findOperation(operationId: string, endpointId?: string): ApiDefinitions.IApiOperation | undefined {\n if (endpointId) {\n const ep = this.findEndpoint(endpointId)\n if (!ep) {\n return undefined\n }\n return ep.operations.find((op) => op.id === operationId || op.method === operationId)\n }\n const { amf } = this\n if (!amf) {\n return undefined\n }\n const api = this._computeApi(amf)\n if (!api) {\n return undefined\n }\n const endpoints = this._computeEndpoints(api)\n if (!endpoints) {\n return undefined\n }\n const { apiContract } = AmfNamespace.aml.vocabularies\n const opKey = this._getAmfKey(apiContract.supportedOperation) as string\n for (const endpoint of endpoints) {\n let operations = (endpoint as any)[opKey]\n if (!operations) {\n continue\n }\n if (!Array.isArray(operations)) {\n operations = [operations]\n }\n for (const operation of operations) {\n if (operation['@id'] === operationId || this._getValue(operation, apiContract.method) === operationId) {\n return this.serializer.operation(operation)\n }\n }\n }\n return undefined\n }\n\n /**\n * Reads the operation model.\n * @param operationId The domain id of the operation to read.\n * @param endpointId Optional endpoint id. When not set it searches through all endpoints.\n */\n override async getOperation(operationId: string, endpointId?: string): Promise<ApiDefinitions.IApiOperation> {\n const op = this.findOperation(operationId, endpointId)\n if (!op) {\n throw new Error(`No operation ${operationId} in the graph`)\n }\n return op\n }\n\n /**\n * Finds an endpoint that has the operation.\n * @param id Method name or the domain id of the operation to find\n */\n override async getOperationParent(id: string): Promise<ApiDefinitions.IApiEndPoint | undefined> {\n const { amf } = this\n if (!amf) {\n return undefined\n }\n const api = this._computeApi(amf)\n if (!api) {\n return undefined\n }\n const endpoint = this._computeMethodEndpoint(api, id)\n if (!endpoint) {\n throw new Error(`Operation ${id} does not exist.`)\n }\n const result = this.serializer.endPoint(endpoint)\n return result\n }\n\n /**\n * Lists the documentation definitions for the API.\n */\n override async listDocumentations(): Promise<ApiDefinitions.IApiDocumentation[] | undefined> {\n const { amf } = this\n if (!amf) {\n return undefined\n }\n if (this._hasType(amf, AmfNamespace.aml.vocabularies.apiContract.UserDocumentationFragment)) {\n const model = this._computeEncodes(amf)\n if (!model) {\n return undefined\n }\n return [this.serializer.documentation(model)]\n }\n const api = this._computeApi(amf)\n if (!api) {\n return undefined\n }\n const key = this._getAmfKey(AmfNamespace.aml.vocabularies.core.documentation) as string\n const docs = this._ensureArray((api as any)[key]) as AmfDefinitions.IAmfCreativeWork[]\n if (docs) {\n return docs.map((doc) => this.serializer.documentation(doc))\n }\n return undefined\n }\n\n /**\n * Reads the documentation object from the store.\n * @param id The domain id of the documentation object\n * @returns The read documentation.\n */\n override async getDocumentation(id: string): Promise<ApiDefinitions.IApiDocumentation | undefined> {\n const { amf } = this\n if (!amf) {\n return undefined\n }\n const types = this.getDocumentTypes()\n // when we have loaded Documentation fragment then the id doesn't matter.\n if (types.includes(AmfNamespace.aml.vocabularies.apiContract.UserDocumentationFragment)) {\n const encodes = this._computeEncodes(amf)\n return this.serializer.documentation(encodes as AmfDefinitions.IAmfApi)\n }\n const api = this._computeApi(amf)\n if (!api) {\n return undefined\n }\n const creative = this._computeDocument(api, id)\n if (!creative) {\n throw new Error(`Documentation ${id} does not exist.`)\n }\n const result = this.serializer.documentation(creative)\n return result\n }\n\n /**\n * Reads the SecurityScheme object from the graph.\n * @param id The domain id of the SecurityScheme\n */\n override async getSecurityScheme(id: string): Promise<ApiDefinitions.IApiSecurityScheme | undefined> {\n const types = this.getDocumentTypes()\n // when we have loaded Security fragment then the id doesn't matter.\n if (types.includes(AmfNamespace.aml.vocabularies.security.SecuritySchemeFragment)) {\n const { amf } = this\n if (!amf) {\n return undefined\n }\n const encodes = this._computeEncodes(amf)\n return this.serializer.securityScheme(encodes as AmfDefinitions.IAmfApi)\n }\n const object = this.findSecurityScheme(id)\n if (!object) {\n throw new Error(`No SecurityRequirement for ${id}`)\n }\n return this.serializer.securityScheme(object)\n }\n\n /**\n * Reads the SecurityRequirement object from the graph.\n * @param id The domain id of the SecurityRequirement\n */\n override async getSecurityRequirement(id: string): Promise<ApiDefinitions.IApiSecurityRequirement | undefined> {\n const { amf } = this\n if (!amf) {\n return undefined\n }\n const wa = this._computeApi(amf)\n if (!wa) {\n return undefined\n }\n const endpoints = (wa as any)[this._getAmfKey(AmfNamespace.aml.vocabularies.apiContract.endpoint) as string]\n if (!Array.isArray(endpoints)) {\n return undefined\n }\n for (const endpoint of endpoints) {\n const operations =\n endpoint[this._getAmfKey(AmfNamespace.aml.vocabularies.apiContract.supportedOperation) as string]\n if (Array.isArray(operations)) {\n for (const operation of operations) {\n const securityList = operation[this._getAmfKey(AmfNamespace.aml.vocabularies.security.security) as string]\n if (Array.isArray(securityList)) {\n for (const security of securityList) {\n if (security['@id'] === id) {\n return this.serializer.securityRequirement(security)\n }\n }\n }\n }\n }\n }\n return undefined\n }\n\n /**\n * Lists the security definitions for the API.\n */\n override async listSecurity(): Promise<ApiSecuritySchemeListItem[]> {\n const { amf } = this\n if (!amf) {\n return []\n }\n if (this._hasType(amf, AmfNamespace.aml.vocabularies.security.SecuritySchemeFragment)) {\n const model = this._computeEncodes(amf)\n if (!model) {\n return []\n }\n return [this.serializer.securitySchemeListItem(model)]\n }\n const items = this.getByType(amf, AmfNamespace.aml.vocabularies.security.SecurityScheme)\n return items.map((item) => this.serializer.securitySchemeListItem(item))\n }\n\n /**\n * Reads the Request object from the graph.\n * @param id The domain id of the Request\n */\n override async getRequest(id: string): Promise<ApiDefinitions.IApiRequest | undefined> {\n const { amf } = this\n if (!amf) {\n return undefined\n }\n const wa = this._computeApi(amf)\n if (!wa) {\n return undefined\n }\n const endpoints = (wa as any)[this._getAmfKey(AmfNamespace.aml.vocabularies.apiContract.endpoint) as string]\n if (!Array.isArray(endpoints)) {\n return undefined\n }\n for (const endpoint of endpoints) {\n const operations =\n endpoint[this._getAmfKey(AmfNamespace.aml.vocabularies.apiContract.supportedOperation) as string]\n if (Array.isArray(operations)) {\n for (const operation of operations) {\n const expectsList = operation[this._getAmfKey(AmfNamespace.aml.vocabularies.apiContract.expects) as string]\n if (Array.isArray(expectsList)) {\n for (const expects of expectsList) {\n if (expects['@id'] === id) {\n return this.serializer.request(expects)\n }\n }\n }\n }\n }\n }\n return undefined\n }\n\n /**\n * Reads the response data from the graph.\n * @param id The domain id of the response.\n */\n override async getResponse(id: string): Promise<ApiDefinitions.IApiResponse | undefined> {\n const { amf } = this\n if (!amf) {\n return undefined\n }\n const wa = this._computeApi(amf)\n if (!wa) {\n return undefined\n }\n const endpoints = (wa as any)[this._getAmfKey(AmfNamespace.aml.vocabularies.apiContract.endpoint) as string]\n if (!Array.isArray(endpoints)) {\n return undefined\n }\n for (const endpoint of endpoints) {\n const operations =\n endpoint[this._getAmfKey(AmfNamespace.aml.vocabularies.apiContract.supportedOperation) as string]\n if (Array.isArray(operations)) {\n for (const operation of operations) {\n const returnsList = operation[this._getAmfKey(AmfNamespace.aml.vocabularies.apiContract.returns) as string]\n if (Array.isArray(returnsList)) {\n for (const returns of returnsList) {\n if (returns['@id'] === id) {\n return this.serializer.response(returns)\n }\n }\n }\n }\n }\n }\n return undefined\n }\n\n /**\n * Finds a payload in a request or a response object.\n */\n findPayload(object: AmfDefinitions.IAmfDomainElement, domainId: string): ApiDefinitions.IApiPayload | undefined {\n const list = (object as any)[this._getAmfKey(AmfNamespace.aml.vocabularies.apiContract.payload) as string]\n if (!Array.isArray(list) || !list.length) {\n return undefined\n }\n const model = list.find((i) => i['@id'] === domainId)\n if (!model) {\n return undefined\n }\n return this.serializer.payload(model)\n }\n\n /**\n * Reads Payload data from the graph\n * @param id The domain id of the payload\n */\n override async getPayload(id: string): Promise<ApiDefinitions.IApiPayload | undefined> {\n const { amf } = this\n if (!amf) {\n return undefined\n }\n const wa = this._computeApi(amf)\n if (!wa) {\n return undefined\n }\n const endpoints = (wa as any)[this._getAmfKey(AmfNamespace.aml.vocabularies.apiContract.endpoint) as string]\n if (!Array.isArray(endpoints)) {\n return undefined\n }\n for (const endpoint of endpoints) {\n const operations =\n endpoint[this._getAmfKey(AmfNamespace.aml.vocabularies.apiContract.supportedOperation) as string]\n if (Array.isArray(operations)) {\n for (const operation of operations) {\n const expectsList = operation[this._getAmfKey(AmfNamespace.aml.vocabularies.apiContract.expects) as string]\n if (Array.isArray(expectsList)) {\n for (const expects of expectsList) {\n const payload = this.findPayload(expects, id)\n if (payload) {\n return payload\n }\n }\n }\n const returnsList = operation[this._getAmfKey(AmfNamespace.aml.vocabularies.apiContract.returns) as string]\n if (Array.isArray(returnsList)) {\n for (const returns of returnsList) {\n const payload = this.findPayload(returns, id)\n if (payload) {\n return payload\n }\n }\n }\n }\n }\n }\n return undefined\n }\n\n /**\n * Lists the type (schema) definitions for the API.\n */\n override async listTypes(): Promise<ApiNodeShapeListItem[]> {\n const { amf } = this\n if (!amf) {\n return []\n }\n if (this._hasType(amf, AmfNamespace.aml.vocabularies.shapes.DataTypeFragment)) {\n const model = this._computeEncodes(amf)\n if (!model) {\n return []\n }\n return [this.serializer.unknownShape(model)]\n }\n const items = this.getByType(amf, AmfNamespace.aml.vocabularies.shapes.Shape)\n return items.map((item) => this.serializer.unknownShape(item))\n }\n\n /**\n * @param id The domain id of the API type (schema).\n */\n override async getType(id: string): Promise<AmfShapes.IShapeUnion | undefined> {\n const { amf } = this\n if (!amf) {\n return undefined\n }\n const types = this.getDocumentTypes()\n // when we have loaded Type fragment then the id doesn't matter.\n if (types.includes(AmfNamespace.aml.vocabularies.shapes.DataTypeFragment)) {\n const encodes = this._computeEncodes(amf)\n return this.serializer.unknownShape(encodes as AmfDefinitions.IAmfApi)\n }\n const declares = this._computeDeclares(amf)\n const references = this._computeReferences(amf)\n const type = this._computeType(\n declares as AmfDefinitions.IAmfDomainElement[],\n references as AmfDefinitions.IAmfDomainElement[],\n id\n )\n if (!type) {\n return undefined\n }\n return this.serializer.unknownShape(type)\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"InMemAmfGraphStore.js","sourceRoot":"","sources":["../../../../src/amf/store/InMemAmfGraphStore.ts"],"names":[],"mappings":"AAAA,uDAAuD;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAA;AAC7D,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAOxC,OAAO,EAAE,QAAQ,EAAuB,MAAM,kCAAkC,CAAA;AAehF,OAAO,EAAE,YAAY,EAAE,MAAM,+CAA+C,CAAA;AAE5E;;;;GAIG;AACH,MAAM,OAAO,kBAAmB,SAAQ,QAAQ,CAAC,QAAQ,CAAC;IACxD;;;OAGG;IACH,YAAY,SAAsB,MAAM,EAAE,KAAoB;QAC5D,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC,CAAA;QACpB,IAAI,GAAG,GAAG,KAAK,CAAA;QACf,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;YACzB,CAAC;YAAA,CAAC,GAAG,CAAC,GAAG,KAAK,CAAA;QAChB,CAAC;QACD;;WAEG;QACH,IAAI,CAAC,GAAG,GAAG,GAAG,CAAA;IAChB,CAAC;IAEQ,WAAW,CAAC,GAAiB;QACpC,KAAK,CAAC,WAAW,CAAC,GAAG,CAAC,CAAA;QACtB,IAAI,CAAC,UAAU,CAAC,GAAG,GAAG,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QAClB,CAAC;QACD,OAAO,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,IAAI,CAAC,CAAA;IAC3C,CAAC;CACF","sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { StoreEvents } from '../../events/amf/StoreEvents.js'\nimport { AmfStore } from './AmfStore.js'\nimport {\n type DocumentMeta,\n type ApiEndPointWithOperationsListItem,\n type ApiSecuritySchemeListItem,\n type ApiNodeShapeListItem,\n} from '../types.js'\nimport { AmfMixin, ServersQueryOptions } from '@api-client/core/amf/AmfMixin.js'\nimport { IAmfDocument, IAmfCreativeWork, IAmfApi, IAmfDomainElement } from '@api-client/core/amf/definitions/Amf.js'\nimport {\n IApiSummary,\n IApiEndPoint,\n IApiServer,\n IApiOperation,\n IApiDocumentation,\n IApiSecurityScheme,\n IApiSecurityRequirement,\n IApiRequest,\n IApiResponse,\n IApiPayload,\n} from '@api-client/core/amf/definitions/Api.js'\nimport type { IShapeUnion } from '@api-client/core/amf/definitions/Shapes.js'\nimport { AmfNamespace } from '@api-client/core/amf/definitions/Namespace.js'\n\n/**\n * The store that provides an API to read data from the AMF graph model.\n * The graph model is kept in memory in a form of a Raw ld+json graph representation of the\n * AMF's domain model.\n */\nexport class InMemAmfGraphStore extends AmfMixin(AmfStore) {\n /**\n * @param target The event target to dispatch the events on.\n * @param graph The full API model.\n */\n constructor(target: EventTarget = window, graph?: IAmfDocument) {\n super(target, graph)\n let amf = graph\n if (Array.isArray(graph)) {\n ;[amf] = graph\n }\n /**\n * The graph model.\n */\n this.amf = amf\n }\n\n override _amfChanged(amf: IAmfDocument): void {\n super._amfChanged(amf)\n this.serializer.amf = amf\n if (this.target) {\n StoreEvents.graphChange(this.target)\n }\n }\n\n /**\n * @returns The list of domain types for the currently loaded document.\n */\n override getDocumentTypes(): string[] {\n let { amf } = this\n if (Array.isArray(amf)) {\n ;[amf] = amf\n }\n if (!amf) {\n return []\n }\n return this.serializer.readTypes(amf['@type'])\n }\n\n /**\n * Gathers information about the loaded document.\n * This is mainly used by the `api-documentation` element to decide which documentation to render.\n */\n override async documentMeta(): Promise<DocumentMeta> {\n const result: DocumentMeta = {\n isApi: false,\n isAsync: false,\n isFragment: false,\n isLibrary: false,\n types: this.getDocumentTypes(),\n encodesId: undefined,\n }\n let { amf } = this\n if (Array.isArray(amf)) {\n ;[amf] = amf\n }\n if (!amf) {\n return result\n }\n const encodes = this._computeEncodes(amf)\n result.encodesId = encodes && encodes['@id']\n const api = this._computeApi(amf)\n const isApi = !!api\n result.isApi = isApi\n if (isApi) {\n result.isAsync = this._isAsyncAPI(amf)\n } else if (result.types[0] === AmfNamespace.aml.vocabularies.document.Module) {\n result.isLibrary = true\n } else {\n const fragmentTypes = [\n AmfNamespace.aml.vocabularies.security.SecuritySchemeFragment,\n AmfNamespace.aml.vocabularies.apiContract.UserDocumentationFragment,\n AmfNamespace.aml.vocabularies.shapes.DataTypeFragment,\n ]\n result.isFragment = fragmentTypes.some((type) => result.types.includes(type))\n }\n return result\n }\n\n /**\n * @returns API summary for the summary view.\n */\n override async apiSummary(): Promise<IApiSummary | undefined> {\n const { amf } = this\n if (!amf) {\n return undefined\n }\n const api = this._computeApi(amf)\n if (!api) {\n return undefined\n }\n const result = this.serializer.apiSummary(api)\n return result\n }\n\n /**\n * @returns Currently loaded API's protocols\n */\n override async apiProtocols(): Promise<string[] | undefined> {\n const { amf } = this\n if (!amf) {\n return undefined\n }\n const wa = this._computeApi(amf)\n if (!wa) {\n return undefined\n }\n const protocols = this._getValueArray(wa, AmfNamespace.aml.vocabularies.apiContract.scheme) as string[]\n return protocols\n }\n\n /**\n * @returns Currently loaded API's version\n */\n override async apiVersion(): Promise<string | undefined> {\n const { amf } = this\n if (!amf) {\n return undefined\n }\n const version = this._computeApiVersion(amf) || undefined\n return version\n }\n\n /**\n * Finds an endpoint in the graph.\n * @param id The domain id of the endpoint.\n * @private\n */\n findEndpoint(id: string): IApiEndPoint | undefined {\n const { amf } = this\n if (!amf) {\n return undefined\n }\n const api = this._computeApi(amf)\n if (!api) {\n return undefined\n }\n const endpoint = this._computeEndpointModel(api, id)\n if (!endpoint) {\n throw new Error(`Endpoint ${id} does not exist.`)\n }\n const result = this.serializer.endPoint(endpoint)\n return result\n }\n\n /**\n * Reads an endpoint by its id.\n * @param id The domain id of the endpoint.\n */\n override async getEndpoint(id: string): Promise<IApiEndPoint | undefined> {\n return this.findEndpoint(id)\n }\n\n /**\n * Reads an endpoint by its path.\n * @param path The path value of the endpoint or channel name.\n */\n override async getEndpointByPath(path: string): Promise<IApiEndPoint | undefined> {\n const { amf } = this\n if (!amf) {\n return undefined\n }\n const api = this._computeApi(amf)\n if (!api) {\n return undefined\n }\n const endpoints = this._computeEndpoints(api)\n if (!Array.isArray(endpoints) || !endpoints.length) {\n throw new Error(`This API has no endpoints.`)\n }\n const endpoint = endpoints.find((e) => this._getValue(e, AmfNamespace.aml.vocabularies.apiContract.path) === path)\n if (!endpoint) {\n throw new Error(`Endpoint ${endpoint} does not exist.`)\n }\n const result = this.serializer.endPoint(endpoint)\n return result\n }\n\n /**\n * Lists all endpoints with operations included into the result.\n */\n override async listEndpointsWithOperations(): Promise<ApiEndPointWithOperationsListItem[]> {\n const { amf } = this\n if (!amf) {\n return []\n }\n const api = this._computeApi(amf)\n if (!api) {\n return []\n }\n const endpoints = this._computeEndpoints(api)\n if (!Array.isArray(endpoints) || !endpoints.length) {\n return []\n }\n return endpoints.map((ep) => this.serializer.endPointWithOperationsListItem(ep))\n }\n\n /**\n * Queries for the list of servers for method, if defined, or endpoint, if defined, or root level\n * @param query Server query options\n * @returns The list of servers for given query.\n */\n override async queryServers(query?: ServersQueryOptions): Promise<IApiServer[]> {\n const { amf } = this\n if (!amf) {\n return []\n }\n const servers = this._getServers(query)\n if (!Array.isArray(servers)) {\n return []\n }\n return servers.map((s) => this.serializer.server(s))\n }\n\n /**\n * Searches for an operation in the API.\n * @param operationId The domain id of the operation to read.\n * @param endpointId Optional endpoint id. When not set it searches through all endpoints.\n */\n findOperation(operationId: string, endpointId?: string): IApiOperation | undefined {\n if (endpointId) {\n const ep = this.findEndpoint(endpointId)\n if (!ep) {\n return undefined\n }\n return ep.operations.find((op) => op.id === operationId || op.method === operationId)\n }\n const { amf } = this\n if (!amf) {\n return undefined\n }\n const api = this._computeApi(amf)\n if (!api) {\n return undefined\n }\n const endpoints = this._computeEndpoints(api)\n if (!endpoints) {\n return undefined\n }\n const { apiContract } = AmfNamespace.aml.vocabularies\n const opKey = this._getAmfKey(apiContract.supportedOperation) as string\n for (const endpoint of endpoints) {\n let operations = (endpoint as any)[opKey]\n if (!operations) {\n continue\n }\n if (!Array.isArray(operations)) {\n operations = [operations]\n }\n for (const operation of operations) {\n if (operation['@id'] === operationId || this._getValue(operation, apiContract.method) === operationId) {\n return this.serializer.operation(operation)\n }\n }\n }\n return undefined\n }\n\n /**\n * Reads the operation model.\n * @param operationId The domain id of the operation to read.\n * @param endpointId Optional endpoint id. When not set it searches through all endpoints.\n */\n override async getOperation(operationId: string, endpointId?: string): Promise<IApiOperation> {\n const op = this.findOperation(operationId, endpointId)\n if (!op) {\n throw new Error(`No operation ${operationId} in the graph`)\n }\n return op\n }\n\n /**\n * Finds an endpoint that has the operation.\n * @param id Method name or the domain id of the operation to find\n */\n override async getOperationParent(id: string): Promise<IApiEndPoint | undefined> {\n const { amf } = this\n if (!amf) {\n return undefined\n }\n const api = this._computeApi(amf)\n if (!api) {\n return undefined\n }\n const endpoint = this._computeMethodEndpoint(api, id)\n if (!endpoint) {\n throw new Error(`Operation ${id} does not exist.`)\n }\n const result = this.serializer.endPoint(endpoint)\n return result\n }\n\n /**\n * Lists the documentation definitions for the API.\n */\n override async listDocumentations(): Promise<IApiDocumentation[] | undefined> {\n const { amf } = this\n if (!amf) {\n return undefined\n }\n if (this._hasType(amf, AmfNamespace.aml.vocabularies.apiContract.UserDocumentationFragment)) {\n const model = this._computeEncodes(amf)\n if (!model) {\n return undefined\n }\n return [this.serializer.documentation(model)]\n }\n const api = this._computeApi(amf)\n if (!api) {\n return undefined\n }\n const key = this._getAmfKey(AmfNamespace.aml.vocabularies.core.documentation) as string\n const docs = this._ensureArray((api as any)[key]) as IAmfCreativeWork[]\n if (docs) {\n return docs.map((doc) => this.serializer.documentation(doc))\n }\n return undefined\n }\n\n /**\n * Reads the documentation object from the store.\n * @param id The domain id of the documentation object\n * @returns The read documentation.\n */\n override async getDocumentation(id: string): Promise<IApiDocumentation | undefined> {\n const { amf } = this\n if (!amf) {\n return undefined\n }\n const types = this.getDocumentTypes()\n // when we have loaded Documentation fragment then the id doesn't matter.\n if (types.includes(AmfNamespace.aml.vocabularies.apiContract.UserDocumentationFragment)) {\n const encodes = this._computeEncodes(amf)\n return this.serializer.documentation(encodes as IAmfApi)\n }\n const api = this._computeApi(amf)\n if (!api) {\n return undefined\n }\n const creative = this._computeDocument(api, id)\n if (!creative) {\n throw new Error(`Documentation ${id} does not exist.`)\n }\n const result = this.serializer.documentation(creative)\n return result\n }\n\n /**\n * Reads the SecurityScheme object from the graph.\n * @param id The domain id of the SecurityScheme\n */\n override async getSecurityScheme(id: string): Promise<IApiSecurityScheme | undefined> {\n const types = this.getDocumentTypes()\n // when we have loaded Security fragment then the id doesn't matter.\n if (types.includes(AmfNamespace.aml.vocabularies.security.SecuritySchemeFragment)) {\n const { amf } = this\n if (!amf) {\n return undefined\n }\n const encodes = this._computeEncodes(amf)\n return this.serializer.securityScheme(encodes as IAmfApi)\n }\n const object = this.findSecurityScheme(id)\n if (!object) {\n throw new Error(`No SecurityRequirement for ${id}`)\n }\n return this.serializer.securityScheme(object)\n }\n\n /**\n * Reads the SecurityRequirement object from the graph.\n * @param id The domain id of the SecurityRequirement\n */\n override async getSecurityRequirement(id: string): Promise<IApiSecurityRequirement | undefined> {\n const { amf } = this\n if (!amf) {\n return undefined\n }\n const wa = this._computeApi(amf)\n if (!wa) {\n return undefined\n }\n const endpoints = (wa as any)[this._getAmfKey(AmfNamespace.aml.vocabularies.apiContract.endpoint) as string]\n if (!Array.isArray(endpoints)) {\n return undefined\n }\n for (const endpoint of endpoints) {\n const operations =\n endpoint[this._getAmfKey(AmfNamespace.aml.vocabularies.apiContract.supportedOperation) as string]\n if (Array.isArray(operations)) {\n for (const operation of operations) {\n const securityList = operation[this._getAmfKey(AmfNamespace.aml.vocabularies.security.security) as string]\n if (Array.isArray(securityList)) {\n for (const security of securityList) {\n if (security['@id'] === id) {\n return this.serializer.securityRequirement(security)\n }\n }\n }\n }\n }\n }\n return undefined\n }\n\n /**\n * Lists the security definitions for the API.\n */\n override async listSecurity(): Promise<ApiSecuritySchemeListItem[]> {\n const { amf } = this\n if (!amf) {\n return []\n }\n if (this._hasType(amf, AmfNamespace.aml.vocabularies.security.SecuritySchemeFragment)) {\n const model = this._computeEncodes(amf)\n if (!model) {\n return []\n }\n return [this.serializer.securitySchemeListItem(model)]\n }\n const items = this.getByType(amf, AmfNamespace.aml.vocabularies.security.SecurityScheme)\n return items.map((item) => this.serializer.securitySchemeListItem(item))\n }\n\n /**\n * Reads the Request object from the graph.\n * @param id The domain id of the Request\n */\n override async getRequest(id: string): Promise<IApiRequest | undefined> {\n const { amf } = this\n if (!amf) {\n return undefined\n }\n const wa = this._computeApi(amf)\n if (!wa) {\n return undefined\n }\n const endpoints = (wa as any)[this._getAmfKey(AmfNamespace.aml.vocabularies.apiContract.endpoint) as string]\n if (!Array.isArray(endpoints)) {\n return undefined\n }\n for (const endpoint of endpoints) {\n const operations =\n endpoint[this._getAmfKey(AmfNamespace.aml.vocabularies.apiContract.supportedOperation) as string]\n if (Array.isArray(operations)) {\n for (const operation of operations) {\n const expectsList = operation[this._getAmfKey(AmfNamespace.aml.vocabularies.apiContract.expects) as string]\n if (Array.isArray(expectsList)) {\n for (const expects of expectsList) {\n if (expects['@id'] === id) {\n return this.serializer.request(expects)\n }\n }\n }\n }\n }\n }\n return undefined\n }\n\n /**\n * Reads the response data from the graph.\n * @param id The domain id of the response.\n */\n override async getResponse(id: string): Promise<IApiResponse | undefined> {\n const { amf } = this\n if (!amf) {\n return undefined\n }\n const wa = this._computeApi(amf)\n if (!wa) {\n return undefined\n }\n const endpoints = (wa as any)[this._getAmfKey(AmfNamespace.aml.vocabularies.apiContract.endpoint) as string]\n if (!Array.isArray(endpoints)) {\n return undefined\n }\n for (const endpoint of endpoints) {\n const operations =\n endpoint[this._getAmfKey(AmfNamespace.aml.vocabularies.apiContract.supportedOperation) as string]\n if (Array.isArray(operations)) {\n for (const operation of operations) {\n const returnsList = operation[this._getAmfKey(AmfNamespace.aml.vocabularies.apiContract.returns) as string]\n if (Array.isArray(returnsList)) {\n for (const returns of returnsList) {\n if (returns['@id'] === id) {\n return this.serializer.response(returns)\n }\n }\n }\n }\n }\n }\n return undefined\n }\n\n /**\n * Finds a payload in a request or a response object.\n */\n findPayload(object: IAmfDomainElement, domainId: string): IApiPayload | undefined {\n const list = (object as any)[this._getAmfKey(AmfNamespace.aml.vocabularies.apiContract.payload) as string]\n if (!Array.isArray(list) || !list.length) {\n return undefined\n }\n const model = list.find((i) => i['@id'] === domainId)\n if (!model) {\n return undefined\n }\n return this.serializer.payload(model)\n }\n\n /**\n * Reads Payload data from the graph\n * @param id The domain id of the payload\n */\n override async getPayload(id: string): Promise<IApiPayload | undefined> {\n const { amf } = this\n if (!amf) {\n return undefined\n }\n const wa = this._computeApi(amf)\n if (!wa) {\n return undefined\n }\n const endpoints = (wa as any)[this._getAmfKey(AmfNamespace.aml.vocabularies.apiContract.endpoint) as string]\n if (!Array.isArray(endpoints)) {\n return undefined\n }\n for (const endpoint of endpoints) {\n const operations =\n endpoint[this._getAmfKey(AmfNamespace.aml.vocabularies.apiContract.supportedOperation) as string]\n if (Array.isArray(operations)) {\n for (const operation of operations) {\n const expectsList = operation[this._getAmfKey(AmfNamespace.aml.vocabularies.apiContract.expects) as string]\n if (Array.isArray(expectsList)) {\n for (const expects of expectsList) {\n const payload = this.findPayload(expects, id)\n if (payload) {\n return payload\n }\n }\n }\n const returnsList = operation[this._getAmfKey(AmfNamespace.aml.vocabularies.apiContract.returns) as string]\n if (Array.isArray(returnsList)) {\n for (const returns of returnsList) {\n const payload = this.findPayload(returns, id)\n if (payload) {\n return payload\n }\n }\n }\n }\n }\n }\n return undefined\n }\n\n /**\n * Lists the type (schema) definitions for the API.\n */\n override async listTypes(): Promise<ApiNodeShapeListItem[]> {\n const { amf } = this\n if (!amf) {\n return []\n }\n if (this._hasType(amf, AmfNamespace.aml.vocabularies.shapes.DataTypeFragment)) {\n const model = this._computeEncodes(amf)\n if (!model) {\n return []\n }\n return [this.serializer.unknownShape(model)]\n }\n const items = this.getByType(amf, AmfNamespace.aml.vocabularies.shapes.Shape)\n return items.map((item) => this.serializer.unknownShape(item))\n }\n\n /**\n * @param id The domain id of the API type (schema).\n */\n override async getType(id: string): Promise<IShapeUnion | undefined> {\n const { amf } = this\n if (!amf) {\n return undefined\n }\n const types = this.getDocumentTypes()\n // when we have loaded Type fragment then the id doesn't matter.\n if (types.includes(AmfNamespace.aml.vocabularies.shapes.DataTypeFragment)) {\n const encodes = this._computeEncodes(amf)\n return this.serializer.unknownShape(encodes as IAmfApi)\n }\n const declares = this._computeDeclares(amf)\n const references = this._computeReferences(amf)\n const type = this._computeType(declares as IAmfDomainElement[], references as IAmfDomainElement[], id)\n if (!type) {\n return undefined\n }\n return this.serializer.unknownShape(type)\n }\n}\n"]}
|
package/build/src/amf/types.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { IApiDocumentation, IApiEndPoint, IApiParameter, IApiSecurityRequirement, IApiServer } from '@api-client/core/amf/definitions/Api.js';
|
|
2
|
+
import type { IApiDataExample, IShapeUnion } from '@api-client/core/amf/definitions/Shapes.js';
|
|
2
3
|
export interface PopulationInfo {
|
|
3
4
|
annotationName: string;
|
|
4
5
|
annotationValue: string;
|
|
@@ -15,11 +16,11 @@ export interface OperationParameter {
|
|
|
15
16
|
* The parameter definition transformed from the AMF graph model.
|
|
16
17
|
* This is set for path, query, and header parameters.
|
|
17
18
|
*/
|
|
18
|
-
parameter:
|
|
19
|
+
parameter: IApiParameter;
|
|
19
20
|
/**
|
|
20
21
|
* The schema associated with the parameter. Determines the shape of the user input control.
|
|
21
22
|
*/
|
|
22
|
-
schema?:
|
|
23
|
+
schema?: IShapeUnion;
|
|
23
24
|
/**
|
|
24
25
|
* Link to `parameter.id`.
|
|
25
26
|
*/
|
|
@@ -40,7 +41,7 @@ export interface OperationParameter {
|
|
|
40
41
|
export interface SecuritySelectorListItem {
|
|
41
42
|
types: (string | undefined)[];
|
|
42
43
|
labels: (string | undefined)[];
|
|
43
|
-
security:
|
|
44
|
+
security: IApiSecurityRequirement;
|
|
44
45
|
}
|
|
45
46
|
export interface ParameterRenderOptions {
|
|
46
47
|
/**
|
|
@@ -66,12 +67,12 @@ export interface ComputeBaseUriOptions {
|
|
|
66
67
|
* When the `baseUri` is set this value is ignored.
|
|
67
68
|
* When both are missing then the URL computations ignores the base URI part and reads the path only.
|
|
68
69
|
*/
|
|
69
|
-
server?:
|
|
70
|
+
server?: IApiServer;
|
|
70
71
|
/**
|
|
71
72
|
* The endpoint definition used to compute path of the URL.
|
|
72
73
|
* When not set it ignores the path part.
|
|
73
74
|
*/
|
|
74
|
-
endpoint?:
|
|
75
|
+
endpoint?: IApiEndPoint;
|
|
75
76
|
/**
|
|
76
77
|
* The protocols to use with the computation of the URL.
|
|
77
78
|
* When the server has no protocol (http or https) defined on the base URI
|
|
@@ -193,7 +194,7 @@ export declare interface NodeShapeItem extends ApiNodeShapeListItem, SelectableM
|
|
|
193
194
|
}
|
|
194
195
|
export declare interface SecurityItem extends ApiSecuritySchemeListItem, SelectableMenuItem {
|
|
195
196
|
}
|
|
196
|
-
export declare interface DocumentationItem extends
|
|
197
|
+
export declare interface DocumentationItem extends IApiDocumentation, SelectableMenuItem, EditableMenuItem {
|
|
197
198
|
}
|
|
198
199
|
export declare type SchemaAddType = 'scalar' | 'object' | 'file' | 'array' | 'union';
|
|
199
200
|
export declare interface TargetModel {
|
|
@@ -204,7 +205,7 @@ export declare interface TargetModel {
|
|
|
204
205
|
_typeIds?: string[];
|
|
205
206
|
_basePaths?: string[];
|
|
206
207
|
}
|
|
207
|
-
export declare interface SchemaExample extends
|
|
208
|
+
export declare interface SchemaExample extends IApiDataExample {
|
|
208
209
|
/**
|
|
209
210
|
* The value to render as the example value.
|
|
210
211
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/amf/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/amf/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EACjB,YAAY,EACZ,aAAa,EACb,uBAAuB,EACvB,UAAU,EACX,MAAM,yCAAyC,CAAA;AAChD,OAAO,KAAK,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,4CAA4C,CAAA;AAE9F,MAAM,WAAW,cAAc;IAC7B,cAAc,EAAE,MAAM,CAAA;IACtB,eAAe,EAAE,MAAM,CAAA;IACvB,UAAU,EAAE,MAAM,CAAA;CACnB;AAED,MAAM,WAAW,kBAAkB;IACjC;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB;;;OAGG;IACH,SAAS,EAAE,aAAa,CAAA;IACxB;;OAEG;IACH,MAAM,CAAC,EAAE,WAAW,CAAA;IACpB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAA;IACf;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAA;IACf;;OAEG;IACH,MAAM,EAAE,MAAM,CAAA;CACf;AAED,MAAM,WAAW,wBAAwB;IACvC,KAAK,EAAE,CAAC,MAAM,GAAG,SAAS,CAAC,EAAE,CAAA;IAC7B,MAAM,EAAE,CAAC,MAAM,GAAG,SAAS,CAAC,EAAE,CAAA;IAC9B,QAAQ,E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B,QAAQ,EAAE,MAAM,EAAE,CAAA;CACnB;AAED,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAA;CACvB;AAED,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,KAAK,EAAE,OAAO,CAAA;IACd;;OAEG;IACH,OAAO,EAAE,OAAO,CAAA;IAChB;;OAEG;IACH,UAAU,EAAE,OAAO,CAAA;IACnB;;OAEG;IACH,SAAS,EAAE,OAAO,CAAA;IAClB;;OAEG;IACH,KAAK,EAAE,MAAM,EAAE,CAAA;IACf;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/amf/types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ApiDefinitions, AmfShapes } from '@api-client/core/browser.js'\n\nexport interface PopulationInfo {\n annotationName: string\n annotationValue: string\n fieldValue: string\n}\n\nexport interface OperationParameter {\n /**\n * Works with the `allowDisableParams` configuration. By default\n * a parameter is always enabled regardless of this value.\n * When the `allowDisableParams` is set it uses this value to ignore some parameters (even the required ones).\n */\n enabled?: boolean\n /**\n * The parameter definition transformed from the AMF graph model.\n * This is set for path, query, and header parameters.\n */\n parameter: ApiDefinitions.IApiParameter\n /**\n * The schema associated with the parameter. Determines the shape of the user input control.\n */\n schema?: AmfShapes.IShapeUnion\n /**\n * Link to `parameter.id`.\n */\n paramId: string\n /**\n * Link to `schema.id`.\n */\n schemaId?: string\n /**\n * The value of the binding. Determines where the control should be rendered (parameters or headers).\n */\n binding: string\n /**\n * A property set to determine from where the object came from. Used internally in the code.\n */\n source: string\n}\n\nexport interface SecuritySelectorListItem {\n types: (string | undefined)[]\n labels: (string | undefined)[]\n security: ApiDefinitions.IApiSecurityRequirement\n}\n\nexport interface ParameterRenderOptions {\n /**\n * When set it overrides the parameter's / schema's required property\n * and renders the input as required.\n * This also forces the renderer to force example value when default is not present.\n */\n required?: boolean\n}\n\nexport interface ShapeTemplateOptions extends ParameterRenderOptions {\n nillable?: boolean\n arrayItem?: boolean\n index?: number\n value?: unknown\n}\n\nexport interface ComputeBaseUriOptions {\n /**\n * The API base URI to use. When not set it computes the base URI from the `server` and `protocols`.\n */\n baseUri?: string\n /**\n * When set it uses the server to determine the base URI.\n * When the `baseUri` is set this value is ignored.\n * When both are missing then the URL computations ignores the base URI part and reads the path only.\n */\n server?: ApiDefinitions.IApiServer\n /**\n * The endpoint definition used to compute path of the URL.\n * When not set it ignores the path part.\n */\n endpoint?: ApiDefinitions.IApiEndPoint\n /**\n * The protocols to use with the computation of the URL.\n * When the server has no protocol (http or https) defined on the base URI\n * then these protocols will be used.\n * If in both cases this is missing then the protocol is not included.\n * Note, it adds the protocol only when the base URI is defined (from the server).\n */\n protocols?: string[]\n /**\n * The API version. When set it replaces the `{version}` URI template with the value.\n */\n version?: string\n /**\n * When set is forces setting an HTTP protocol (http:) when protocol information is missing in the API spec.\n */\n forceHttpProtocol?: boolean\n}\n\n// export interface OperationParameter {\n// parameter: ApiDefinitions.IApiParameter;\n// schema?: ApiShapeUnion;\n// paramId: string;\n// schemaId?: string;\n// binding: string;\n// source: string;\n// }\n\nexport declare interface SelectionInfo {\n /**\n * Type of the detected selection\n */\n type: string\n /**\n * The normalized value to be used by API editors\n */\n value: string\n}\n\nexport declare interface UpdateServersOptions {\n /**\n * The selected node type where servers should be fetched\n */\n type?: string\n /**\n * The selected node ID where servers should be fetched\n */\n id?: string\n /**\n * Optional endpoint id the method id belongs to\n */\n endpointId?: string\n}\n\n/**\n * The selected type\n *\n * - `server`: server from the AMF model\n * - `custom`: custom base URI value (entered by the user)\n * - `extra`: an application controlled server value selected by the user.\n */\nexport type ServerType = 'server' | 'custom' | 'extra'\nexport type SelectionType = 'summary' | 'resource' | 'operation' | 'schema' | 'security' | 'documentation'\n/**\n * API navigation layout options.\n *\n * - tree - creates a tree structure from the endpoints list\n * - natural - behavior consistent with the previous version of the navigation.\n * Creates a tree structure based on the previous endpoints.\n * - natural-sort - as `natural` but endpoints are sorted by name.\n * - off (or none) - just like in the API spec.\n */\nexport type NavigationLayout = 'tree' | 'natural' | 'natural-sort' | 'off'\n\nexport interface SelectableMenuItem {\n /**\n * Whether the item is a selected menu item.\n */\n selected?: boolean\n /**\n * Whether the item has secondary selection.\n * This happens when a \"passive\" selection has been applied to the item.\n */\n secondarySelected?: boolean\n}\n\nexport interface EditableMenuItem {\n /**\n * When set the name editor for the item is enabled.\n */\n nameEditor?: boolean\n}\n\nexport interface ApiEndPointListItem {\n /**\n * The domain id of the endpoint.\n * It may be undefined when the endpoint is created \"abstract\" endpoint vor the visualization.\n */\n id?: string\n path: string\n name?: string\n}\n\nexport interface ApiEndPointWithOperationsListItem extends ApiEndPointListItem {\n operations: ApiOperationListItem[]\n}\n\nexport interface ApiOperationListItem {\n id: string\n method: string\n name?: string\n}\n\nexport interface ApiEndpointsTreeItem extends ApiEndPointWithOperationsListItem {\n label: string | undefined\n indent: number\n hasShortPath?: boolean\n hasChildren?: boolean\n}\n\nexport interface ApiSecuritySchemeListItem {\n id: string\n types: string[]\n type: string\n name?: string\n displayName?: string\n}\n\nexport declare interface ApiNodeShapeListItem {\n id: string\n name?: string\n displayName?: string\n}\n\nexport declare interface EndpointItem extends ApiEndpointsTreeItem, SelectableMenuItem, EditableMenuItem {\n operations: OperationItem[]\n}\n\nexport declare interface OperationItem extends ApiOperationListItem, SelectableMenuItem, EditableMenuItem {}\nexport declare interface NodeShapeItem extends ApiNodeShapeListItem, SelectableMenuItem, EditableMenuItem {}\nexport declare interface SecurityItem extends ApiSecuritySchemeListItem, SelectableMenuItem {}\nexport declare interface DocumentationItem\n extends ApiDefinitions.IApiDocumentation,\n SelectableMenuItem,\n EditableMenuItem {}\nexport declare type SchemaAddType = 'scalar' | 'object' | 'file' | 'array' | 'union'\n\nexport declare interface TargetModel {\n documentation?: DocumentationItem[]\n types?: NodeShapeItem[]\n securitySchemes?: SecurityItem[]\n endpoints?: EndpointItem[]\n _typeIds?: string[]\n _basePaths?: string[]\n}\n\nexport declare interface SchemaExample extends AmfShapes.IApiDataExample {\n /**\n * The value to render as the example value.\n */\n renderValue?: string\n label?: string\n}\n\nexport declare interface ShapeRenderOptions {\n /**\n * All selected unions in the current view.\n * When the processor encounter an union it checks this array\n * to pick the selected union.\n * When the selected union cannot be determined it picks the first union.\n */\n selectedUnions?: string[]\n /**\n * Whether to include optional fields into the schema.\n * @default false\n */\n renderOptional?: boolean\n /**\n * When set it uses the data mocking library to generate the values\n * when examples and default are not set.\n */\n renderMocked?: boolean\n /**\n * The library **always** uses default values in the schema.\n * When a default value is not set by default it inserts an empty value for\n * the given data type ('', false, null, random date). When this is set\n * it includes examples in the generated value.\n */\n renderExamples?: boolean\n}\n\nexport interface MonacoSchema {\n uri: string\n schema: MonacoProperty\n fileMatch?: string[]\n}\n\nexport interface MonacoProperty {\n $id?: string\n title: string\n type: string\n description?: string\n readOnly?: boolean\n writeOnly?: boolean\n}\n\nexport interface MonacoScalarProperty extends MonacoProperty {\n default?: string\n pattern?: string\n format?: string\n exclusiveMaximum?: boolean\n exclusiveMinimum?: boolean\n maxLength?: number\n minLength?: number\n minimum?: number\n maximum?: number\n multipleOf?: number\n enum?: string[]\n}\n\nexport interface MonacoObjectProperty extends MonacoProperty {\n properties: Record<string, MonacoProperty>\n required: string[]\n additionalProperties?: boolean\n minProperties?: number\n maxProperties?: number\n}\n\nexport interface MonacoArrayProperty extends MonacoProperty {\n additionalItems?: boolean\n items: {\n anyOf: MonacoProperty[]\n }\n uniqueItems?: boolean\n minItems?: number\n maxItems?: number\n required: string[]\n}\n\nexport interface ApiSchemaReadOptions {\n /**\n * Whether the value should be read only when the required property is set.\n */\n requiredOnly?: boolean\n /**\n * Whether to read the examples to generate the value.\n */\n fromExamples?: boolean\n}\n\nexport interface DocumentMeta {\n /**\n * True when the loaded document represent an API (in an opposite to a fragment or a partial model).\n */\n isApi: boolean\n /**\n * Whether the loaded document represent an Async API.\n */\n isAsync: boolean\n /**\n * Whether the loaded document represent a RAML fragment / OAS reference.\n */\n isFragment: boolean\n /**\n * A special type of fragment that is a RAML library.\n */\n isLibrary: boolean\n /**\n * The list of types of the loaded document.\n */\n types: string[]\n /**\n * The domain id of the `encodes` property.\n */\n encodesId?: string\n}\n"]}
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/amf/types.ts"],"names":[],"mappings":"","sourcesContent":["import type {\n IApiDocumentation,\n IApiEndPoint,\n IApiParameter,\n IApiSecurityRequirement,\n IApiServer,\n} from '@api-client/core/amf/definitions/Api.js'\nimport type { IApiDataExample, IShapeUnion } from '@api-client/core/amf/definitions/Shapes.js'\n\nexport interface PopulationInfo {\n annotationName: string\n annotationValue: string\n fieldValue: string\n}\n\nexport interface OperationParameter {\n /**\n * Works with the `allowDisableParams` configuration. By default\n * a parameter is always enabled regardless of this value.\n * When the `allowDisableParams` is set it uses this value to ignore some parameters (even the required ones).\n */\n enabled?: boolean\n /**\n * The parameter definition transformed from the AMF graph model.\n * This is set for path, query, and header parameters.\n */\n parameter: IApiParameter\n /**\n * The schema associated with the parameter. Determines the shape of the user input control.\n */\n schema?: IShapeUnion\n /**\n * Link to `parameter.id`.\n */\n paramId: string\n /**\n * Link to `schema.id`.\n */\n schemaId?: string\n /**\n * The value of the binding. Determines where the control should be rendered (parameters or headers).\n */\n binding: string\n /**\n * A property set to determine from where the object came from. Used internally in the code.\n */\n source: string\n}\n\nexport interface SecuritySelectorListItem {\n types: (string | undefined)[]\n labels: (string | undefined)[]\n security: IApiSecurityRequirement\n}\n\nexport interface ParameterRenderOptions {\n /**\n * When set it overrides the parameter's / schema's required property\n * and renders the input as required.\n * This also forces the renderer to force example value when default is not present.\n */\n required?: boolean\n}\n\nexport interface ShapeTemplateOptions extends ParameterRenderOptions {\n nillable?: boolean\n arrayItem?: boolean\n index?: number\n value?: unknown\n}\n\nexport interface ComputeBaseUriOptions {\n /**\n * The API base URI to use. When not set it computes the base URI from the `server` and `protocols`.\n */\n baseUri?: string\n /**\n * When set it uses the server to determine the base URI.\n * When the `baseUri` is set this value is ignored.\n * When both are missing then the URL computations ignores the base URI part and reads the path only.\n */\n server?: IApiServer\n /**\n * The endpoint definition used to compute path of the URL.\n * When not set it ignores the path part.\n */\n endpoint?: IApiEndPoint\n /**\n * The protocols to use with the computation of the URL.\n * When the server has no protocol (http or https) defined on the base URI\n * then these protocols will be used.\n * If in both cases this is missing then the protocol is not included.\n * Note, it adds the protocol only when the base URI is defined (from the server).\n */\n protocols?: string[]\n /**\n * The API version. When set it replaces the `{version}` URI template with the value.\n */\n version?: string\n /**\n * When set is forces setting an HTTP protocol (http:) when protocol information is missing in the API spec.\n */\n forceHttpProtocol?: boolean\n}\n\n// export interface OperationParameter {\n// parameter: IApiParameter;\n// schema?: ApiShapeUnion;\n// paramId: string;\n// schemaId?: string;\n// binding: string;\n// source: string;\n// }\n\nexport declare interface SelectionInfo {\n /**\n * Type of the detected selection\n */\n type: string\n /**\n * The normalized value to be used by API editors\n */\n value: string\n}\n\nexport declare interface UpdateServersOptions {\n /**\n * The selected node type where servers should be fetched\n */\n type?: string\n /**\n * The selected node ID where servers should be fetched\n */\n id?: string\n /**\n * Optional endpoint id the method id belongs to\n */\n endpointId?: string\n}\n\n/**\n * The selected type\n *\n * - `server`: server from the AMF model\n * - `custom`: custom base URI value (entered by the user)\n * - `extra`: an application controlled server value selected by the user.\n */\nexport type ServerType = 'server' | 'custom' | 'extra'\nexport type SelectionType = 'summary' | 'resource' | 'operation' | 'schema' | 'security' | 'documentation'\n/**\n * API navigation layout options.\n *\n * - tree - creates a tree structure from the endpoints list\n * - natural - behavior consistent with the previous version of the navigation.\n * Creates a tree structure based on the previous endpoints.\n * - natural-sort - as `natural` but endpoints are sorted by name.\n * - off (or none) - just like in the API spec.\n */\nexport type NavigationLayout = 'tree' | 'natural' | 'natural-sort' | 'off'\n\nexport interface SelectableMenuItem {\n /**\n * Whether the item is a selected menu item.\n */\n selected?: boolean\n /**\n * Whether the item has secondary selection.\n * This happens when a \"passive\" selection has been applied to the item.\n */\n secondarySelected?: boolean\n}\n\nexport interface EditableMenuItem {\n /**\n * When set the name editor for the item is enabled.\n */\n nameEditor?: boolean\n}\n\nexport interface ApiEndPointListItem {\n /**\n * The domain id of the endpoint.\n * It may be undefined when the endpoint is created \"abstract\" endpoint vor the visualization.\n */\n id?: string\n path: string\n name?: string\n}\n\nexport interface ApiEndPointWithOperationsListItem extends ApiEndPointListItem {\n operations: ApiOperationListItem[]\n}\n\nexport interface ApiOperationListItem {\n id: string\n method: string\n name?: string\n}\n\nexport interface ApiEndpointsTreeItem extends ApiEndPointWithOperationsListItem {\n label: string | undefined\n indent: number\n hasShortPath?: boolean\n hasChildren?: boolean\n}\n\nexport interface ApiSecuritySchemeListItem {\n id: string\n types: string[]\n type: string\n name?: string\n displayName?: string\n}\n\nexport declare interface ApiNodeShapeListItem {\n id: string\n name?: string\n displayName?: string\n}\n\nexport declare interface EndpointItem extends ApiEndpointsTreeItem, SelectableMenuItem, EditableMenuItem {\n operations: OperationItem[]\n}\n\nexport declare interface OperationItem extends ApiOperationListItem, SelectableMenuItem, EditableMenuItem {}\nexport declare interface NodeShapeItem extends ApiNodeShapeListItem, SelectableMenuItem, EditableMenuItem {}\nexport declare interface SecurityItem extends ApiSecuritySchemeListItem, SelectableMenuItem {}\nexport declare interface DocumentationItem extends IApiDocumentation, SelectableMenuItem, EditableMenuItem {}\nexport declare type SchemaAddType = 'scalar' | 'object' | 'file' | 'array' | 'union'\n\nexport declare interface TargetModel {\n documentation?: DocumentationItem[]\n types?: NodeShapeItem[]\n securitySchemes?: SecurityItem[]\n endpoints?: EndpointItem[]\n _typeIds?: string[]\n _basePaths?: string[]\n}\n\nexport declare interface SchemaExample extends IApiDataExample {\n /**\n * The value to render as the example value.\n */\n renderValue?: string\n label?: string\n}\n\nexport declare interface ShapeRenderOptions {\n /**\n * All selected unions in the current view.\n * When the processor encounter an union it checks this array\n * to pick the selected union.\n * When the selected union cannot be determined it picks the first union.\n */\n selectedUnions?: string[]\n /**\n * Whether to include optional fields into the schema.\n * @default false\n */\n renderOptional?: boolean\n /**\n * When set it uses the data mocking library to generate the values\n * when examples and default are not set.\n */\n renderMocked?: boolean\n /**\n * The library **always** uses default values in the schema.\n * When a default value is not set by default it inserts an empty value for\n * the given data type ('', false, null, random date). When this is set\n * it includes examples in the generated value.\n */\n renderExamples?: boolean\n}\n\nexport interface MonacoSchema {\n uri: string\n schema: MonacoProperty\n fileMatch?: string[]\n}\n\nexport interface MonacoProperty {\n $id?: string\n title: string\n type: string\n description?: string\n readOnly?: boolean\n writeOnly?: boolean\n}\n\nexport interface MonacoScalarProperty extends MonacoProperty {\n default?: string\n pattern?: string\n format?: string\n exclusiveMaximum?: boolean\n exclusiveMinimum?: boolean\n maxLength?: number\n minLength?: number\n minimum?: number\n maximum?: number\n multipleOf?: number\n enum?: string[]\n}\n\nexport interface MonacoObjectProperty extends MonacoProperty {\n properties: Record<string, MonacoProperty>\n required: string[]\n additionalProperties?: boolean\n minProperties?: number\n maxProperties?: number\n}\n\nexport interface MonacoArrayProperty extends MonacoProperty {\n additionalItems?: boolean\n items: {\n anyOf: MonacoProperty[]\n }\n uniqueItems?: boolean\n minItems?: number\n maxItems?: number\n required: string[]\n}\n\nexport interface ApiSchemaReadOptions {\n /**\n * Whether the value should be read only when the required property is set.\n */\n requiredOnly?: boolean\n /**\n * Whether to read the examples to generate the value.\n */\n fromExamples?: boolean\n}\n\nexport interface DocumentMeta {\n /**\n * True when the loaded document represent an API (in an opposite to a fragment or a partial model).\n */\n isApi: boolean\n /**\n * Whether the loaded document represent an Async API.\n */\n isAsync: boolean\n /**\n * Whether the loaded document represent a RAML fragment / OAS reference.\n */\n isFragment: boolean\n /**\n * A special type of fragment that is a RAML library.\n */\n isLibrary: boolean\n /**\n * The list of types of the loaded document.\n */\n types: string[]\n /**\n * The domain id of the `encodes` property.\n */\n encodesId?: string\n}\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TelemetryConfig } from '@api-client/core/browser.js';
|
|
2
1
|
import { PlatformBindings } from './PlatformBindings.js';
|
|
2
|
+
import type { TelemetryConfig } from '@api-client/core/config/index.js';
|
|
3
3
|
export declare const KeyPrefix = "api-client.config.";
|
|
4
4
|
export declare const TelemetryKey = "api-client.config.telemetry";
|
|
5
5
|
export interface LocalConfiguration {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConfigurationBindings.d.ts","sourceRoot":"","sources":["../../../../src/bindings/base/ConfigurationBindings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"ConfigurationBindings.d.ts","sourceRoot":"","sources":["../../../../src/bindings/base/ConfigurationBindings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AAExD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAA;AAEvE,eAAO,MAAM,SAAS,uBAAuB,CAAA;AAC7C,eAAO,MAAM,YAAY,gCAA0B,CAAA;AAEnD,MAAM,WAAW,kBAAkB;IACjC;;;;;OAKG;IACH,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,GAAG,SAAS,CAAC,CAAA;IAE9C;;;;;OAKG;IACH,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;IAE/C;;;;OAIG;IACH,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;CACnC;AAED,MAAM,WAAW,oBAAoB;IACnC;;;;;OAKG;IACH,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,GAAG,SAAS,CAAC,CAAA;IAE9C;;;;;OAKG;IACH,GAAG,CAAC,GA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,CAAC,GAAG,CAAC,CAAA;IAChD,CAAC;IAES,eAAe,CAAC,KAAY;QACpC,MAAM,CAAC,GAAG,KAAoB,CAAA;QAC9B,CAAC,CAAC,cAAc,EAAE,CAAA;QAClB,CAAC,CAAC,MAAM,CAAC,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAA;IAChE,CAAC;IAES,kBAAkB,CAAC,KAAY;QACvC,MAAM,CAAC,GAAG,KAAoB,CAAA;QAC9B,CAAC,CAAC,cAAc,EAAE,CAAA;QAClB,CAAC,CAAC,MAAM,CAAC,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAA;IACnD,CAAC;IAES,oBAAoB,CAAC,KAAY;QACzC,MAAM,CAAC,GAAG,KAAoB,CAAA;QAC9B,CAAC,CAAC,cAAc,EAAE,CAAA;QAClB,CAAC,CAAC,MAAM,CAAC,MAAM,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,CAAA;IACzC,CAAC;IAES,mBAAmB,CAAC,KAAY;QACxC,MAAM,CAAC,GAAG,KAAoB,CAAA;QAC9B,CAAC,CAAC,cAAc,EAAE,CAAA;QAClB,CAAC,CAAC,MAAM,CAAC,MAAM,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAA;IACvD,CAAC;CACF","sourcesContent":["import { PlatformBindings } from './PlatformBindings.js'\nimport { EventTypes } from '../../events/EventTypes.js'\nimport type { TelemetryConfig } from '@api-client/core/config/index.js'\n\nexport const KeyPrefix = 'api-client.config.'\nexport const TelemetryKey = `${KeyPrefix}telemetry`\n\nexport interface LocalConfiguration {\n /**\n * Reads a previously stored local value.\n *\n * @param key The key under which the property was stored.\n * @returns The configuration value or undefined when not found.\n */\n get(key: string): Promise<unknown | undefined>\n\n /**\n * Sets a config property that is permanently stored.\n *\n * @param key The key under to store the value.\n * @param value The value to store. If this is not a primitive it will be serialized with `JSON.stringify()`.\n */\n set(key: string, value: unknown): Promise<void>\n\n /**\n * Deletes previously stored local value.\n *\n * @param key The key under which the property was stored.\n */\n delete(key: string): Promise<void>\n}\n\nexport interface SessionConfiguration {\n /**\n * Reads a previously stored session value.\n *\n * @param key The key under which the property was stored.\n * @returns The configuration value or undefined when not found.\n */\n get(key: string): Promise<unknown | undefined>\n\n /**\n * Sets a config property that is held in the storage only for the time of the current session.\n *\n * @param key The key under to store the value.\n * @param value The value to store. If this is not a primitive it will be serialized with `JSON.stringify()`.\n */\n set(key: string, value: unknown): Promise<void>\n\n /**\n * Deletes previously stored session value.\n *\n * @param key The key under which the property was stored.\n */\n delete(key: string): Promise<void>\n}\n\nexport interface TelemetryConfiguration {\n /**\n * Reads the set telemetry configuration. If the configuration is missing a default value is returned.\n */\n read(): Promise<TelemetryConfig>\n\n /**\n * Sets the configuration for telemetry.\n *\n * @param config The configuration to set.\n */\n set(config: TelemetryConfig): Promise<void>\n}\n\n/**\n * The base class for application settings bindings.\n */\nexport abstract class ConfigurationBindings extends PlatformBindings {\n abstract local: LocalConfiguration\n\n abstract session: SessionConfiguration\n\n abstract telemetry: TelemetryConfiguration\n\n async initialize(): Promise<void> {\n window.addEventListener(EventTypes.Config.Session.get, this.getSessionHandler.bind(this))\n window.addEventListener(EventTypes.Config.Session.set, this.setSessionHandler.bind(this))\n window.addEventListener(EventTypes.Config.Session.delete, this.deleteSessionHandler.bind(this))\n\n window.addEventListener(EventTypes.Config.Local.get, this.getLocalHandler.bind(this))\n window.addEventListener(EventTypes.Config.Local.set, this.setLocalHandler.bind(this))\n window.addEventListener(EventTypes.Config.Local.delete, this.deleteLocalHandler.bind(this))\n\n window.addEventListener(EventTypes.Config.Telemetry.read, this.telemetryReadHandler.bind(this))\n window.addEventListener(EventTypes.Config.Telemetry.set, this.telemetrySetHandler.bind(this))\n }\n\n protected getSessionHandler(input: Event): void {\n const e = input as CustomEvent\n e.preventDefault()\n e.detail.result = this.session.get(e.detail.key)\n }\n\n protected setSessionHandler(input: Event): void {\n const e = input as CustomEvent\n e.preventDefault()\n e.detail.result = this.session.set(e.detail.key, e.detail.value)\n }\n\n protected deleteSessionHandler(input: Event): void {\n const e = input as CustomEvent\n e.preventDefault()\n e.detail.result = this.session.delete(e.detail.key)\n }\n\n protected getLocalHandler(input: Event): void {\n const e = input as CustomEvent\n e.preventDefault()\n e.detail.result = this.local.get(e.detail.key)\n }\n\n protected setLocalHandler(input: Event): void {\n const e = input as CustomEvent\n e.preventDefault()\n e.detail.result = this.local.set(e.detail.key, e.detail.value)\n }\n\n protected deleteLocalHandler(input: Event): void {\n const e = input as CustomEvent\n e.preventDefault()\n e.detail.result = this.local.delete(e.detail.key)\n }\n\n protected telemetryReadHandler(input: Event): void {\n const e = input as CustomEvent\n e.preventDefault()\n e.detail.result = this.telemetry.read()\n }\n\n protected telemetrySetHandler(input: Event): void {\n const e = input as CustomEvent\n e.preventDefault()\n e.detail.result = this.telemetry.set(e.detail.config)\n }\n}\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ApiError } from '@api-client/core/
|
|
1
|
+
import { ApiError } from '@api-client/core/runtime/store/Errors.js';
|
|
2
2
|
import { type IoEvent, type IoCommand, type IoNotification } from './PlatformBindings.js';
|
|
3
3
|
/**
|
|
4
4
|
* The base IO thread class containing the communication logic with the clients.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IoThread.d.ts","sourceRoot":"","sources":["../../../../src/bindings/base/IoThread.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"IoThread.d.ts","sourceRoot":"","sources":["../../../../src/bindings/base/IoThread.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,0CAA0C,CAAA;AACnE,OAAO,EAAE,KAAK,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAEzF;;GAEG;AACH,8BAAsB,QAAQ;IAC5B;;OAEG;IACH,QAAQ,CAAC,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;IAEpC;;;;;OAKG;IACH,QAAQ,CAAC,WAAW,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,GAAG,IAAI;IAE7D;;OAEG;IACH,SAAS,CAAC,aAAa,CAAC,KAAK,EAAE,SAAS,GAAG,OAAO,GAAG,IAAI;IA0CzD,SAAS,CAAC,WAAW,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,GAAG,IAAI;IAWxD,SAAS,CAAC,WAAW,CAAC,EAAE,EAAE,MAAM,GAAG,QAAQ,GAAG,SAAS;IAiBvD;;;;;;OAMG;cAEa,IAAI,CAAC,QAAQ,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAoBhF;;;;;OAKG;IACH,SAAS,CAAC,aAAa,CAAC,SAAS,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,IAAI;CAQjE"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
2
|
/* eslint-disable no-console */
|
|
3
|
-
import { ApiError } from '@api-client/core/
|
|
3
|
+
import { ApiError } from '@api-client/core/runtime/store/Errors.js';
|
|
4
4
|
/**
|
|
5
5
|
* The base IO thread class containing the communication logic with the clients.
|
|
6
6
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IoThread.js","sourceRoot":"","sources":["../../../../src/bindings/base/IoThread.ts"],"names":[],"mappings":"AAAA,uDAAuD;AACvD,+BAA+B;AAC/B,OAAO,EAAE,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,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AAC,MAAM,GAAG,MAAM,OAAO,CAAA;YAC5B,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAA;QACzB,CAAC;QAAC,OAAO,CAAC,EAAE,CAAC;YACX,KAAK,CAAC,IAAI,GAAG,OAAO,CAAA;YACpB,KAAK,CAAC,OAAO,GAAI,CAAW,CAAC,OAAO,CAAA;YACpC,IAAK,CAAc,CAAC,IAAI,EAAE,CAAC;gBACzB,KAAK,CAAC,MAAM,GAAG,CAAC,CAAA;YAClB,CAAC;YACD,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAA;QACzB,CAAC;IACH,CAAC;IAED;;;;;OAKG;IACO,aAAa,CAAC,SAAiB,EAAE,GAAG,IAAW;QACvD,MAAM,IAAI,GAAmB;YAC3B,IAAI,EAAE,iBAAiB;YACvB,IAAI;YACJ,IAAI,EAAE,SAAS;SAChB,CAAA;QACD,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,CAAA;IACxB,CAAC;CACF","sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\n/* eslint-disable no-console */\nimport { ApiError } from '@api-client/core/runtime/store/Errors.js'\nimport { type IoEvent, type IoCommand, type IoNotification } from './PlatformBindings.js'\n\n/**\n * The base IO thread class containing the communication logic with the clients.\n */\nexport abstract class IoThread {\n /**\n * Initializes the communication channel with the clients.\n */\n abstract initialize(): Promise<void>\n\n /**\n * The IO thread must implement this method to send the message to the client with\n * their particular implementation of message passing.\n *\n * @param message The message to send.\n */\n abstract postMessage(message: IoNotification | IoEvent): void\n\n /**\n * To be called by the IO thread implementation when receiving a message from the client.\n */\n protected handleMessage(event: IoCommand | IoEvent): void {\n if (!event.kind) {\n console.warn('Invalid message received on the app-config-channel.', event)\n return\n }\n if (event.kind === 'IO#Event') {\n // message sent by self.\n return\n }\n const { args, fn, id } = event\n\n if (typeof id !== 'number') {\n console.warn('Invalid message received on the app-config-channel. The id must be a number.')\n return\n }\n\n if (typeof fn !== 'string' || !fn) {\n const err = new ApiError(\n 'Invalid message received on the io-channel. The second argument must be a function name to call.',\n 400\n )\n this.notifyError(id, err)\n console.warn(err.message)\n return\n }\n\n const callable = this.getFunction(fn)\n const isFunction = typeof callable === 'function'\n\n if (!isFunction) {\n const err = new ApiError(\n `Invalid message received on the io-channel. The function \"${fn}\" is either not implemented or invalid.`,\n 400\n )\n this.notifyError(id, err)\n console.warn(err.message)\n return\n }\n\n this.call(callable, id, args)\n }\n\n protected notifyError(id: number, error: ApiError): void {\n const event: IoEvent = {\n kind: 'IO#Event',\n id,\n type: 'error',\n result: error,\n }\n this.postMessage(event)\n }\n\n // eslint-disable-next-line @typescript-eslint/no-unsafe-function-type\n protected getFunction(fn: string): Function | undefined {\n const path = fn.trim().split('.')\n // eslint-disable-next-line @typescript-eslint/no-this-alias\n let current: any = this\n path.forEach((key) => {\n if (!current) {\n return\n }\n const scope = current\n current = current[key as any]\n if (current && current.bind) {\n current = current.bind(scope)\n }\n })\n return current\n }\n\n /**\n * Calls the function on self, creates a response event, and dispatches it.\n *\n * @param fnName The function name to call.\n * @param id The request id sent back to the client.\n * @param args The function arguments.\n */\n // eslint-disable-next-line @typescript-eslint/no-unsafe-function-type\n protected async call(callable: Function, id: number, args: any[]): Promise<void> {\n const event: IoEvent = {\n kind: 'IO#Event',\n id,\n type: 'result',\n }\n try {\n const promise = (callable as (...init: any[]) => Promise<any>)(...args)\n event.result = await promise\n this.postMessage(event)\n } catch (e) {\n event.type = 'error'\n event.message = (e as Error).message\n if ((e as ApiError).code) {\n event.result = e\n }\n this.postMessage(event)\n }\n }\n\n /**\n * Sends a message to the clients that is a request to send a client DOM event.\n *\n * @param eventPath The path in the `Events` prototype.\n * @param args The arguments to call the event with.\n */\n protected notifyClients(eventPath: string, ...args: any[]): void {\n const info: IoNotification = {\n kind: 'IO#Notification',\n args,\n path: eventPath,\n }\n this.postMessage(info)\n }\n}\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-unsafe-function-type */
|
|
2
|
-
import { ApiError } from '@api-client/core/
|
|
2
|
+
import { ApiError } from '@api-client/core/runtime/store/Errors.js';
|
|
3
3
|
import { Events } from '../../events/Events.js';
|
|
4
4
|
/**
|
|
5
5
|
* A base class for all platform bindings.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PlatformBindings.js","sourceRoot":"","sources":["../../../../src/bindings/base/PlatformBindings.ts"],"names":[],"mappings":"AAAA,+DAA+D;AAC/D,OAAO,EAAE,QAAQ,EAAkB,MAAM,
|
|
1
|
+
{"version":3,"file":"PlatformBindings.js","sourceRoot":"","sources":["../../../../src/bindings/base/PlatformBindings.ts"],"names":[],"mappings":"AAAA,+DAA+D;AAC/D,OAAO,EAAE,QAAQ,EAAkB,MAAM,0CAA0C,CAAA;AACnF,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAA;AAgD/C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,MAAM,OAAgB,gBAAgB;IACpC;;;OAGG;IACK,EAAE,GAAG,CAAC,CAAA;IAEJ,KAAK,GAAgB,EAAE,CAAA;IAOjC;;OAEG;IACO,KAAK;QACb,IAAI,CAAC,EAAE,IAAI,CAAC,CAAA;QACZ,OAAO,IAAI,CAAC,EAAE,CAAA;IAChB,CAAC;IAWD;;;;;;;OAOG;IACO,MAAM,CAAC,EAAU,EAAE,GAAG,IAAe;QAC7C,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;YACrC,MAAM,EAAE,GAAG,IAAI,CAAC,KAAK,EAAE,CAAA;YACvB,MAAM,IAAI,GAAG;gBACX,OAAO;gBACP,MAAM;gBACN,EAAE;gBACF,EAAE;gBACF,IAAI;aACL,CAAA;YACD,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;YACrB,MAAM,GAAG,GAAc;gBACrB,EAAE;gBACF,EAAE;gBACF,IAAI;gBACJ,IAAI,EAAE,YAAY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AC;CACF","sourcesContent":["/* eslint-disable @typescript-eslint/no-unsafe-function-type */\nimport { ApiError, type IApiError } from '@api-client/core/runtime/store/Errors.js'\nimport { Events } from '../../events/Events.js'\n\n/**\n * A command sent from the client to a IO thread.\n */\nexport interface IoCommand {\n kind: 'IO#Command'\n id: number\n fn: string\n args: unknown[]\n}\n\n/**\n * An event dispatched from the IO thread to the clients.\n */\nexport interface IoEvent {\n kind: 'IO#Event'\n id: number\n type: 'error' | 'result'\n message?: string\n result?: unknown\n}\n\n/**\n * A special kind of an event from the IO thread to the clients that asks to notify the client\n * using the events system.\n */\nexport interface IoNotification {\n kind: 'IO#Notification'\n path: string\n args: unknown[]\n}\n\n/**\n * Events queue on the client side.\n * This is used when communication with the IO thread via Promises is impossible and event based.\n * The client wraps the execution into a promise and pushes this schema into the queue.\n * When the event is dispatched by the IO thread it resolves/rejects cached promise.\n */\nexport interface QueueItem {\n id: number\n resolve: (value: unknown) => void\n reject: (reason?: Error) => void\n // helpful for debugging\n fn: string\n args: unknown[]\n}\n\n/**\n * A base class for all platform bindings.\n *\n * Platform bindings is the way how the application runs a platform specific logic.\n *\n * For example, it implements how the application stores the state or implements file picker / file saver.\n * Depending on the platform (Electron, web, Chrome, more?) it uses different set of bindings\n * defined in the target application. This creates a framework for the bindings to exist.\n *\n * The IO thread can be any process that is separated from the browser tab context.\n * Can be a WebWorker, ServiceWorker, of an API call to a server.\n * When communication with the binding is not possible via the Promise API\n * this system should be used to communicate with the background page.\n *\n * ```typescript\n * class MyBinding extends ParentBaseBinding {\n * channel: BroadcastChannel;\n * constructor() {\n * super();\n * this.channel = new BroadcastChannel('my-channel');\n * }\n *\n * doStuff(arg: any): Promise<any> {\n * return this.invoke('doStuff', 'own argument', arg);\n * }\n * }\n * ```\n *\n * This assumes that the IO thread has the `doStuff` function implemented.\n * The IO thread extends the `IoThread` class which has the defined the communication logic.\n */\nexport abstract class PlatformBindings {\n /**\n * Used with the queue as the identifier of the request.\n * USe the `getId()` to read a unique request id.\n */\n private id = 0\n\n protected queue: QueueItem[] = []\n\n /**\n * Initializes the bindings.\n */\n abstract initialize(): Promise<void>\n\n /**\n * @returns A unique for the current session id.\n */\n protected getId(): number {\n this.id += 1\n return this.id\n }\n\n /**\n * This method to be implemented by child classes that uses the events system to communicate with the\n * IO thread. The argument is the prepared command message ready to be sent to the IO thread.\n * Specific implementation of the communication channel is left to the child class.\n *\n * @param cmd The command to send to the IO thread.\n */\n protected abstract sendIoCommand(cmd: IoCommand): void\n\n /**\n * Invokes a function in the IO thread.\n *\n * @param fn The function name to invoke (or an identifier understood by the IO thread)\n * @param args The function arguments to pass.\n * @returns A promise that should be returned to the client's application logic.\n * The promise is resolved when the IO thread sends an event with the same identifier generated with this call.\n */\n protected invoke(fn: string, ...args: unknown[]): Promise<unknown> {\n return new Promise((resolve, reject) => {\n const id = this.getId()\n const item = {\n resolve,\n reject,\n id,\n fn,\n args,\n }\n this.queue.push(item)\n const cmd: IoCommand = {\n id,\n fn,\n args,\n kind: 'IO#Command',\n }\n this.sendIoCommand(cmd)\n })\n }\n\n /**\n * To be called by the child class when the IO thread send an event.\n * It recognizes the type of the message sent by the IO thread an performs the requested operation.\n *\n * @param message The message sent by the IO thread.\n */\n protected handleIoMessage(message: IoCommand | IoEvent | IoNotification): void {\n if (!message.kind) {\n // eslint-disable-next-line no-console\n console.warn('Invalid message received on the app-config-channel.', message)\n return\n }\n if (message.kind === 'IO#Command') {\n // message sent by self.\n return\n }\n if (message.kind === 'IO#Notification') {\n this.notify(message)\n } else if (message.kind === 'IO#Event') {\n this.resolve(message)\n }\n }\n\n /**\n * Resolves a pending promise stored in the `queue`.\n *\n * @param event The IO thread event\n */\n protected resolve(event: IoEvent): void {\n const { id, type, message, result } = event\n if (typeof id !== 'number') {\n // eslint-disable-next-line no-console\n console.warn(`Unknown event from the IO thread. Id is not a number.`, event)\n return\n }\n const index = this.queue.findIndex((i) => i.id === id)\n if (index < 0) {\n // this might be used by another tab.\n return\n }\n const info = this.queue[index]\n this.queue.splice(index, 1)\n\n if (type === 'result') {\n info.resolve(result)\n } else if (type === 'error') {\n const apiErr = result as IApiError | undefined\n if (apiErr && apiErr.code) {\n info.reject(new ApiError(apiErr))\n } else {\n info.reject(new Error(message))\n }\n } else {\n // eslint-disable-next-line no-console\n console.warn(`Unknown event from the IO thread`, event)\n }\n }\n\n /**\n * Notifies this tab about something using the `Events` definition.\n *\n * This expects that the event has the path to the event function,\n * for example `Events.Config.Environment.State.created`.\n *\n * @param event The IO thread event\n */\n protected notify(event: IoNotification): void {\n const { path, args } = event\n const parts = path.split('.')\n let current = Events as unknown\n if (parts[0] === 'Events') {\n parts.shift()\n }\n for (const part of parts) {\n // @ts-expect-error It's dynamic access to a deep property.\n if (!current[part]) {\n // eslint-disable-next-line no-console\n console.warn(`Invalid notification path`, path)\n return\n }\n // @ts-expect-error It's dynamic access to a deep property.\n current = current[part]\n }\n ;(current as Function)(...args)\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WebConfigurationBindings.d.ts","sourceRoot":"","sources":["../../../../src/bindings/web/WebConfigurationBindings.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"WebConfigurationBindings.d.ts","sourceRoot":"","sources":["../../../../src/bindings/web/WebConfigurationBindings.ts"],"names":[],"mappings":"AACA,OAAO,EACL,qBAAqB,EACrB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAE5B,MAAM,kCAAkC,CAAA;AAIzC;;;;;;;;GAQG;AACH,qBAAa,wBAAyB,SAAQ,qBAAqB;IACjE,SAAS,mBAA+C;cAErC,aAAa,IAAI,IAAI;IAIxC,KAAK,EAAE,kBAAkB,CA8CxB;IAED,OAAO,EAAE,oBAAoB,CAoC5B;IAED,SAAS,EAAE,sBAAsB,CAkBhC;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WebConfigurationBindings.js","sourceRoot":"","sources":["../../../../src/bindings/web/WebConfigurationBindings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,YAAY,CAAA;
|
|
1
|
+
{"version":3,"file":"WebConfigurationBindings.js","sourceRoot":"","sources":["../../../../src/bindings/web/WebConfigurationBindings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,YAAY,CAAA;AAC1C,OAAO,EACL,qBAAqB,EAIrB,YAAY,GACb,MAAM,kCAAkC,CAAA;AACzC,OAAO,EAAmB,sBAAsB,EAAE,MAAM,4BAA4B,CAAA;AAGpF;;;;;;;;GAQG;AACH,MAAM,OAAO,wBAAyB,SAAQ,qBAAqB;IACjE,SAAS,GAAG,IAAI,gBAAgB,CAAC,sBAAsB,CAAC,CAAA;IAErC,aAAa;QAC9B,EAAE;IACJ,CAAC;IAED,KAAK,GAAuB;QAC1B;;;;;WAKG;QACH,GAAG,EAAE,KAAK,EAAE,GAAW,EAAgC,EAAE;YACvD,MAAM,KAAK,GAAG,MAAM,GAAG,CAAC,GAAG,CAAC,CAAA;YAC5B,IAAI,KAAK,EAAE,CAAC;gBACV,OAAO,KAAK,CAAC,KAAK,CAAA;YACpB,CAAC;YACD,OAAO,SAAS,CAAA;QAClB,CAAC;QAED;;;;;WAKG;QACH,GAAG,EAAE,KAAK,EAAE,GAAW,EAAE,KAAc,EAAiB,EAAE;YACxD,MAAM,WAAW,GAAG;gBAClB,IAAI,EAAE,OAAO,KAAK;gBAClB,KAAK;aACN,CAAA;YACD,MAAM,GAAG,CAAC,GAAG,EAAE,WAAW,CAAC,CAAA;YAC3B,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;gBACzB,IAAI,EAAE,WAAW;gBACjB,GAAG;gBACH,KAAK;aACa,CAAC,CAAA;QACvB,CAAC;QAED;;;;WAIG;QACH,MAAM,EAAE,KAAK,EAAE,GAAW,EAAiB,EAAE;YAC3C,MAAM,GAAG,CA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IAAI,IAAI,GAAG,CAAC,MAAM,GAAG,CAAC,YAAY,CAAC,CAAoB,CAAA;YACvD,IAAI,CAAC,IAAI,EAAE,CAAC;gBACV,IAAI,GAAG;oBACL,KAAK,EAAE,QAAQ;iBAChB,CAAA;YACH,CAAC;YACD,OAAO,IAAI,CAAA;QACb,CAAC;QAED,GAAG,EAAE,KAAK,EAAE,MAAuB,EAAiB,EAAE;YACpD,MAAM,GAAG,CAAC,YAAY,EAAE,MAAM,CAAC,CAAA;YAC/B,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;gBACzB,IAAI,EAAE,eAAe;gBACrB,KAAK,EAAE,MAAM;aACK,CAAC,CAAA;QACvB,CAAC;KACF,CAAA;CACF","sourcesContent":["import { get, set, del } from 'idb-keyval'\nimport {\n ConfigurationBindings,\n type LocalConfiguration,\n type SessionConfiguration,\n type TelemetryConfiguration,\n TelemetryKey,\n} from '../base/ConfigurationBindings.js'\nimport { ConfigBroadcast, ConfigBroadcastChannel } from '../../lib/config/Config.js'\nimport type { TelemetryConfig } from '@api-client/core/config/index.js'\n\n/**\n * The background worker supporting application configuration.\n * It stores user local and session configuration, telemetry configuration,\n * and, in the future, any other data stored by the application locally.\n *\n * Data that are stored on the server (through the API) should not be stored here.\n *\n * The logic uses a `BroadcastChannel` to populate the changes across opened tabs and contexts.\n */\nexport class WebConfigurationBindings extends ConfigurationBindings {\n broadcast = new BroadcastChannel(ConfigBroadcastChannel)\n\n protected override sendIoCommand(): void {\n //\n }\n\n local: LocalConfiguration = {\n /**\n * Reads a previously stored local value.\n *\n * @param key The key under which the property was stored.\n * @returns The configuration value or undefined when not found.\n */\n get: async (key: string): Promise<unknown | undefined> => {\n const value = await get(key)\n if (value) {\n return value.value\n }\n return undefined\n },\n\n /**\n * Sets a config property that is permanently stored.\n *\n * @param key The key under to store the value.\n * @param value The value to store. If this is not a primitive it will be serialized with `JSON.stringify()`.\n */\n set: async (key: string, value: unknown): Promise<void> => {\n const storedValue = {\n type: typeof value,\n value,\n }\n await set(key, storedValue)\n this.broadcast.postMessage({\n path: 'local.set',\n key,\n value,\n } as ConfigBroadcast)\n },\n\n /**\n * Deletes previously stored local value.\n *\n * @param key The key under which the property was stored.\n */\n delete: async (key: string): Promise<void> => {\n await del(key)\n this.broadcast.postMessage({\n path: 'local.delete',\n key,\n } as ConfigBroadcast)\n },\n }\n\n session: SessionConfiguration = {\n get: async (key: string): Promise<unknown> => {\n const data = sessionStorage.getItem(key)\n if (data === null) {\n return undefined\n }\n let restored: unknown | undefined\n try {\n const parsed = JSON.parse(data)\n restored = parsed.value\n } catch {\n // ...\n }\n return restored\n },\n\n set: async (key: string, value: unknown): Promise<void> => {\n const storedValue = {\n type: typeof value,\n value,\n }\n sessionStorage.setItem(key, JSON.stringify(storedValue))\n this.broadcast.postMessage({\n path: 'session.set',\n key,\n value,\n } as ConfigBroadcast)\n },\n\n delete: async (key: string): Promise<void> => {\n sessionStorage.removeItem(key)\n this.broadcast.postMessage({\n path: 'session.delete',\n key,\n } as ConfigBroadcast)\n },\n }\n\n telemetry: TelemetryConfiguration = {\n read: async (): Promise<TelemetryConfig> => {\n let data = (await get(TelemetryKey)) as TelemetryConfig\n if (!data) {\n data = {\n level: 'noting',\n }\n }\n return data\n },\n\n set: async (config: TelemetryConfig): Promise<void> => {\n await set(TelemetryKey, config)\n this.broadcast.postMessage({\n path: 'telemetry.set',\n value: config,\n } as ConfigBroadcast)\n },\n }\n}\n"]}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { Payload } from '@api-client/core/lib/transformers/PayloadSerializer.js';
|
|
2
|
+
import type { Headers } from '@api-client/core/lib/headers/Headers.js';
|
|
2
3
|
import CodeSnippet from '../CodeSnippet.js';
|
|
3
4
|
import 'prismjs/components/prism-bash.min.js';
|
|
4
5
|
export default class CurlSnippet extends CodeSnippet {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CurlSnippet.d.ts","sourceRoot":"","sources":["../../../../src/code-snippets/Bash/CurlSnippet.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"CurlSnippet.d.ts","sourceRoot":"","sources":["../../../../src/code-snippets/Bash/CurlSnippet.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wDAAwD,CAAA;AACrF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yCAAyC,CAAA;AACtE,OAAO,WAAW,MAAM,mBAAmB,CAAA;AAC3C,OAAO,sCAAsC,CAAA;AAE7C,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,WAAW;IAClD,QAAQ,CAAC,IAAI,UAAS;IAEtB,cAAc,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,OAAO,GAAG,MAAM;CA0B1F"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CurlSnippet.js","sourceRoot":"","sources":["../../../../src/code-snippets/Bash/CurlSnippet.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CurlSnippet.js","sourceRoot":"","sources":["../../../../src/code-snippets/Bash/CurlSnippet.ts"],"names":[],"mappings":"AAEA,OAAO,WAAW,MAAM,mBAAmB,CAAA;AAC3C,OAAO,sCAAsC,CAAA;AAE7C,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,WAAW;IACzC,IAAI,GAAG,MAAM,CAAA;IAEtB,cAAc,CAAC,GAAW,EAAE,MAAc,EAAE,OAAiB,EAAE,OAAiB;QAC9E,IAAI,MAAM,GAAG,SAAS,GAAG,QAAQ,CAAA;QACjC,IAAI,MAAM,KAAK,KAAK,EAAE,CAAC;YACrB,MAAM,IAAI,QAAQ,MAAM,OAAO,CAAA;QACjC,CAAC;QACD,IAAI,OAAO,OAAO,KAAK,QAAQ,EAAE,CAAC;YAChC,IAAI,IAAI,GAAG,EAAE,CAAA;YACb,IAAI,CAAC;gBACH,OAAO,GAAG,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAA;YACnC,CAAC;YAAC,MAAM,CAAC;gBACP,IAAI,GAAG,GAAG,CAAA;YACZ,CAAC;YACD,MAAM,IAAI,QAAQ,IAAI,GAAG,OAAO,GAAG,IAAI,OAAO,CAAA;QAChD,CAAC;QACD,IAAI,OAAO,EAAE,CAAC;YACZ,MAAM,KAAK,GAAa,EAAE,CAAA;YAC1B,KAAK,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,IAAI,OAAO,EAAE,CAAC;gBACpC,KAAK,CAAC,IAAI,CAAC,SAAS,IAAI,KAAK,KAAK,IAAI,CAAC,CAAA;YACzC,CAAC;YACD,MAAM,IAAI,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QAC9B,CAAC;QACD,IAAI,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,KAAK,MAAM,EAAE,CAAC;YACpC,MAAM,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC,EAAE,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,CAAA;QACjD,CAAC;QACD,OAAO,MAAM,CAAA;IACf,CAAC;CACF","sourcesContent":["import type { Payload } from '@api-client/core/lib/transformers/PayloadSerializer.js'\nimport type { Headers } from '@api-client/core/lib/headers/Headers.js'\nimport CodeSnippet from '../CodeSnippet.js'\nimport 'prismjs/components/prism-bash.min.js'\n\nexport default class CurlSnippet extends CodeSnippet {\n readonly lang = 'bash'\n\n computeCommand(url: string, method: string, headers?: Headers, payload?: Payload): string {\n let result = `curl \"${url}\" \\\\\\n`\n if (method !== 'GET') {\n result += ` -X ${method} \\\\\\n`\n }\n if (typeof payload === 'string') {\n let quot = ''\n try {\n payload = JSON.stringify(payload)\n } catch {\n quot = '\"'\n }\n result += ` -d ${quot}${payload}${quot} \\\\\\n`\n }\n if (headers) {\n const parts: string[] = []\n for (const [name, value] of headers) {\n parts.push(` -H \"${name}: ${value}\" `)\n }\n result += parts.join('\\\\\\n')\n }\n if (result.substring(-2) === '\\\\\\n') {\n result = result.substring(0, result.length - 3)\n }\n return result\n }\n}\n"]}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { Payload
|
|
1
|
+
import type { Payload } from '@api-client/core/lib/transformers/PayloadSerializer.js';
|
|
2
|
+
import type { Headers } from '@api-client/core/lib/headers/Headers.js';
|
|
2
3
|
import CodeSnippet from '../CodeSnippet.js';
|
|
3
4
|
export default class CcurlSnippet extends CodeSnippet {
|
|
4
5
|
readonly lang = "clike";
|