@scalar/api-client 2.9.1 → 2.10.0
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/CHANGELOG.md +25 -0
- package/README.md +2 -2
- package/dist/libs/send-request/build-request-security.d.ts.map +1 -1
- package/dist/libs/send-request/build-request-security.js +1 -1
- package/dist/libs/send-request/create-fetch-query-params.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts +89 -0
- package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts.map +1 -0
- package/dist/v2/blocks/operation-block/OperationBlock.vue.js +129 -0
- package/dist/v2/blocks/operation-block/OperationBlock.vue2.js +4 -0
- package/dist/v2/{features/operation → blocks/operation-block}/components/Header.vue.d.ts +8 -27
- package/dist/v2/blocks/operation-block/components/Header.vue.d.ts.map +1 -0
- package/dist/v2/blocks/operation-block/components/Header.vue.js +7 -0
- package/dist/v2/blocks/operation-block/components/Header.vue2.js +93 -0
- package/dist/v2/blocks/operation-block/index.d.ts +2 -0
- package/dist/v2/blocks/operation-block/index.d.ts.map +1 -0
- package/dist/v2/blocks/operation-block/index.js +4 -0
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts +8 -24
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.js +2 -2
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue2.js +60 -59
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts +7 -28
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.js +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue2.js +97 -87
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.d.ts +7 -17
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.js +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue2.js +46 -41
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.js +4 -5
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.js +47 -45
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.d.ts +5 -5
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.js +7 -7
- package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue.d.ts +6 -9
- package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue.js +2 -2
- package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue2.js +255 -206
- package/dist/v2/blocks/scalar-operation-block/components/OperationBody.vue.d.ts +30 -25
- package/dist/v2/blocks/scalar-operation-block/components/OperationBody.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-operation-block/components/OperationBody.vue.js +2 -2
- package/dist/v2/blocks/scalar-operation-block/components/OperationBody.vue2.js +140 -97
- package/dist/v2/blocks/scalar-operation-block/components/OperationParams.vue.d.ts +1 -0
- package/dist/v2/blocks/scalar-operation-block/components/OperationParams.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-operation-block/components/OperationParams.vue.js +31 -29
- package/dist/v2/blocks/scalar-operation-block/components/OperationTable.vue.d.ts +1 -0
- package/dist/v2/blocks/scalar-operation-block/components/OperationTable.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-operation-block/components/OperationTable.vue.js +2 -2
- package/dist/v2/blocks/scalar-operation-block/components/OperationTable.vue2.js +32 -29
- package/dist/v2/blocks/scalar-operation-block/components/OperationTableRow.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-operation-block/components/OperationTableRow.vue.js +56 -51
- package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue.d.ts +2 -4
- package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue.js +3 -3
- package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue2.js +39 -38
- package/dist/v2/components/sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/v2/components/sidebar/Sidebar.vue.js +43 -42
- package/dist/v2/features/app/App.vue.d.ts.map +1 -1
- package/dist/v2/features/app/App.vue.js +62 -49
- package/dist/v2/features/app/components/AppSidebar.vue.d.ts +1 -1
- package/dist/v2/features/app/components/AppSidebar.vue.js +2 -2
- package/dist/v2/features/app/helpers/routes.d.ts +5 -1
- package/dist/v2/features/app/helpers/routes.d.ts.map +1 -1
- package/dist/v2/features/app/helpers/routes.js +1 -1
- package/dist/v2/features/collection/DocumentCollection.vue2.js +27 -24
- package/dist/v2/features/collection/WorkspaceCollection.vue2.js +15 -12
- package/dist/v2/features/collection/components/Authentication.vue.d.ts +4 -25
- package/dist/v2/features/collection/components/Authentication.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/components/Authentication.vue.js +1 -1
- package/dist/v2/features/collection/components/Authentication.vue2.js +27 -28
- package/dist/v2/features/collection/components/Environment.vue2.js +3 -0
- package/dist/v2/features/collection/components/Overview.vue2.js +24 -21
- package/dist/v2/features/operation/Operation.vue.d.ts +10 -77
- package/dist/v2/features/operation/Operation.vue.d.ts.map +1 -1
- package/dist/v2/features/operation/Operation.vue.js +56 -114
- package/dist/v2/hooks/use-workspace-client-events.d.ts.map +1 -1
- package/dist/v2/hooks/use-workspace-client-events.js +131 -18
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/dist/views/Request/libs/oauth2.d.ts.map +1 -1
- package/dist/views/Request/libs/oauth2.js +8 -6
- package/package.json +17 -17
- package/dist/components/CodeInput/CodeInput.test.d.ts +0 -2
- package/dist/components/CodeInput/CodeInput.test.d.ts.map +0 -1
- package/dist/components/ImportCollection/utils/get-openapi-version.test.d.ts +0 -2
- package/dist/components/ImportCollection/utils/get-openapi-version.test.d.ts.map +0 -1
- package/dist/components/ImportCollection/utils/is-document.test.d.ts +0 -2
- package/dist/components/ImportCollection/utils/is-document.test.d.ts.map +0 -1
- package/dist/components/ImportCollection/utils/is-url.test.d.ts +0 -2
- package/dist/components/ImportCollection/utils/is-url.test.d.ts.map +0 -1
- package/dist/components/Search/useSearch.test.d.ts +0 -2
- package/dist/components/Search/useSearch.test.d.ts.map +0 -1
- package/dist/components/Server/ServerDropdown.test.d.ts +0 -2
- package/dist/components/Server/ServerDropdown.test.d.ts.map +0 -1
- package/dist/components/ViewLayout/ViewLayoutSection.test.d.ts +0 -2
- package/dist/components/ViewLayout/ViewLayoutSection.test.d.ts.map +0 -1
- package/dist/hooks/useResponseBody.test.d.ts +0 -2
- package/dist/hooks/useResponseBody.test.d.ts.map +0 -1
- package/dist/hooks/useSidebar.test.d.ts +0 -2
- package/dist/hooks/useSidebar.test.d.ts.map +0 -1
- package/dist/layouts/App/create-api-client-app.test.d.ts +0 -2
- package/dist/layouts/App/create-api-client-app.test.d.ts.map +0 -1
- package/dist/layouts/Modal/create-api-client-modal.test.d.ts +0 -2
- package/dist/layouts/Modal/create-api-client-modal.test.d.ts.map +0 -1
- package/dist/layouts/Web/create-api-client-web.test.d.ts +0 -2
- package/dist/layouts/Web/create-api-client-web.test.d.ts.map +0 -1
- package/dist/libs/create-client.test.d.ts +0 -2
- package/dist/libs/create-client.test.d.ts.map +0 -1
- package/dist/libs/env-helpers.test.d.ts +0 -2
- package/dist/libs/env-helpers.test.d.ts.map +0 -1
- package/dist/libs/event-bus.test.d.ts +0 -2
- package/dist/libs/event-bus.test.d.ts.map +0 -1
- package/dist/libs/extractAttachmentFilename.test.d.ts +0 -2
- package/dist/libs/extractAttachmentFilename.test.d.ts.map +0 -1
- package/dist/libs/find-request.test.d.ts +0 -2
- package/dist/libs/find-request.test.d.ts.map +0 -1
- package/dist/libs/get-request-uid-by-path-method.test.d.ts +0 -2
- package/dist/libs/get-request-uid-by-path-method.test.d.ts.map +0 -1
- package/dist/libs/hot-keys.test.d.ts +0 -2
- package/dist/libs/hot-keys.test.d.ts.map +0 -1
- package/dist/libs/importers/curl.test.d.ts +0 -2
- package/dist/libs/importers/curl.test.d.ts.map +0 -1
- package/dist/libs/normalize-headers.test.d.ts +0 -2
- package/dist/libs/normalize-headers.test.d.ts.map +0 -1
- package/dist/libs/parse-curl.test.d.ts +0 -2
- package/dist/libs/parse-curl.test.d.ts.map +0 -1
- package/dist/libs/send-request/build-request-security.test.d.ts +0 -2
- package/dist/libs/send-request/build-request-security.test.d.ts.map +0 -1
- package/dist/libs/send-request/create-fetch-auth.test.d.ts +0 -2
- package/dist/libs/send-request/create-fetch-auth.test.d.ts.map +0 -1
- package/dist/libs/send-request/create-fetch-body.test.d.ts +0 -2
- package/dist/libs/send-request/create-fetch-body.test.d.ts.map +0 -1
- package/dist/libs/send-request/create-fetch-headers.test.d.ts +0 -2
- package/dist/libs/send-request/create-fetch-headers.test.d.ts.map +0 -1
- package/dist/libs/send-request/create-fetch-query-params.test.d.ts +0 -2
- package/dist/libs/send-request/create-fetch-query-params.test.d.ts.map +0 -1
- package/dist/libs/send-request/create-request-operation.test.d.ts +0 -191
- package/dist/libs/send-request/create-request-operation.test.d.ts.map +0 -1
- package/dist/libs/send-request/decode-buffer.test.d.ts +0 -2
- package/dist/libs/send-request/decode-buffer.test.d.ts.map +0 -1
- package/dist/libs/send-request/set-request-cookies.test.d.ts +0 -2
- package/dist/libs/send-request/set-request-cookies.test.d.ts.map +0 -1
- package/dist/libs/string-template.test.d.ts +0 -2
- package/dist/libs/string-template.test.d.ts.map +0 -1
- package/dist/libs/validate-parameters.test.d.ts +0 -2
- package/dist/libs/validate-parameters.test.d.ts.map +0 -1
- package/dist/plugins/plugin-manager.test.d.ts +0 -2
- package/dist/plugins/plugin-manager.test.d.ts.map +0 -1
- package/dist/routes.test.d.ts +0 -2
- package/dist/routes.test.d.ts.map +0 -1
- package/dist/store/collections.test.d.ts +0 -2
- package/dist/store/collections.test.d.ts.map +0 -1
- package/dist/store/request.test.d.ts +0 -2
- package/dist/store/request.test.d.ts.map +0 -1
- package/dist/v2/blocks/operation-code-sample/components/ExamplePicker.test.d.ts +0 -2
- package/dist/v2/blocks/operation-code-sample/components/ExamplePicker.test.d.ts.map +0 -1
- package/dist/v2/blocks/operation-code-sample/components/HttpMethod.test.d.ts +0 -2
- package/dist/v2/blocks/operation-code-sample/components/HttpMethod.test.d.ts.map +0 -1
- package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.test.d.ts +0 -2
- package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.test.d.ts.map +0 -1
- package/dist/v2/blocks/operation-code-sample/helpers/find-client.test.d.ts +0 -2
- package/dist/v2/blocks/operation-code-sample/helpers/find-client.test.d.ts.map +0 -1
- package/dist/v2/blocks/operation-code-sample/helpers/generate-client-options.test.d.ts +0 -2
- package/dist/v2/blocks/operation-code-sample/helpers/generate-client-options.test.d.ts.map +0 -1
- package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.test.d.ts +0 -2
- package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.test.d.ts.map +0 -1
- package/dist/v2/blocks/operation-code-sample/helpers/get-example-from-schema.test.d.ts +0 -2
- package/dist/v2/blocks/operation-code-sample/helpers/get-example-from-schema.test.d.ts.map +0 -1
- package/dist/v2/blocks/operation-code-sample/helpers/get-resolved-ref-deep.test.d.ts +0 -2
- package/dist/v2/blocks/operation-code-sample/helpers/get-resolved-ref-deep.test.d.ts.map +0 -1
- package/dist/v2/blocks/operation-code-sample/helpers/get-secrets.test.d.ts +0 -2
- package/dist/v2/blocks/operation-code-sample/helpers/get-secrets.test.d.ts.map +0 -1
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/get-example-value.test.d.ts +0 -2
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/get-example-value.test.d.ts.map +0 -1
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/operation-to-har.test.d.ts +0 -2
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/operation-to-har.test.d.ts.map +0 -1
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-body.test.d.ts +0 -2
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-body.test.d.ts.map +0 -1
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-parameters.test.d.ts +0 -2
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-parameters.test.d.ts.map +0 -1
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-security-schemes.test.d.ts +0 -2
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-security-schemes.test.d.ts.map +0 -1
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-server-url.test.d.ts +0 -2
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-server-url.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-operation-block/components/OperationParams.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-operation-block/components/OperationParams.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-operation-block/components/OperationTable.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-operation-block/components/OperationTable.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-operation-block/components/OperationTableRow.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-operation-block/components/OperationTableRow.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-operation-block/components/OperationTableTooltip.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-operation-block/components/OperationTableTooltip.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-operation-block/helpers/file.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-operation-block/helpers/file.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-content.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-content.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-example.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-example.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-schema.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-schema.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-operation-block/helpers/group-by.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-operation-block/helpers/group-by.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-operation-block/helpers/validate-parameter.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-operation-block/helpers/validate-parameter.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/components/Headers.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-response-block/components/Headers.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyDownload.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyDownload.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyPreview.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyPreview.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyStreaming.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyStreaming.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/components/ResponseCookies.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-response-block/components/ResponseCookies.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/helpers/extract-filename.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-response-block/helpers/extract-filename.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/helpers/get-content-length.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-response-block/helpers/get-content-length.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/helpers/media-types.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-response-block/helpers/media-types.test.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-response-block/helpers/process-response-body.test.d.ts +0 -2
- package/dist/v2/blocks/scalar-response-block/helpers/process-response-body.test.d.ts.map +0 -1
- package/dist/v2/components/code-input/CodeInput.test.d.ts +0 -2
- package/dist/v2/components/code-input/CodeInput.test.d.ts.map +0 -1
- package/dist/v2/components/code-input/code-variable-widget.test.d.ts +0 -2
- package/dist/v2/components/code-input/code-variable-widget.test.d.ts.map +0 -1
- package/dist/v2/components/server/ServerDropdown.test.d.ts +0 -2
- package/dist/v2/components/server/ServerDropdown.test.d.ts.map +0 -1
- package/dist/v2/components/server/ServerDropdownItem.test.d.ts +0 -2
- package/dist/v2/components/server/ServerDropdownItem.test.d.ts.map +0 -1
- package/dist/v2/features/app/App.test.d.ts +0 -2
- package/dist/v2/features/app/App.test.d.ts.map +0 -1
- package/dist/v2/features/collection/DocumentCollection.test.d.ts +0 -2
- package/dist/v2/features/collection/DocumentCollection.test.d.ts.map +0 -1
- package/dist/v2/features/collection/components/Authentication.test.d.ts +0 -2
- package/dist/v2/features/collection/components/Authentication.test.d.ts.map +0 -1
- package/dist/v2/features/collection/components/Environment.test.d.ts +0 -2
- package/dist/v2/features/collection/components/Environment.test.d.ts.map +0 -1
- package/dist/v2/features/collection/components/LabelInput.test.d.ts +0 -2
- package/dist/v2/features/collection/components/LabelInput.test.d.ts.map +0 -1
- package/dist/v2/features/collection/components/Overview.test.d.ts +0 -2
- package/dist/v2/features/collection/components/Overview.test.d.ts.map +0 -1
- package/dist/v2/features/collection/components/Servers.test.d.ts +0 -2
- package/dist/v2/features/collection/components/Servers.test.d.ts.map +0 -1
- package/dist/v2/features/collection/components/Settings.test.d.ts +0 -2
- package/dist/v2/features/collection/components/Settings.test.d.ts.map +0 -1
- package/dist/v2/features/collection/components/Tabs.test.d.ts +0 -2
- package/dist/v2/features/collection/components/Tabs.test.d.ts.map +0 -1
- package/dist/v2/features/environments/EnvironmentsList.test.d.ts +0 -2
- package/dist/v2/features/environments/EnvironmentsList.test.d.ts.map +0 -1
- package/dist/v2/features/environments/components/Environment.test.d.ts +0 -2
- package/dist/v2/features/environments/components/Environment.test.d.ts.map +0 -1
- package/dist/v2/features/environments/components/EnvironmentColors.test.d.ts +0 -2
- package/dist/v2/features/environments/components/EnvironmentColors.test.d.ts.map +0 -1
- package/dist/v2/features/environments/components/EnvironmentVariablesTable.test.d.ts +0 -2
- package/dist/v2/features/environments/components/EnvironmentVariablesTable.test.d.ts.map +0 -1
- package/dist/v2/features/global-cookies/components/CookiesTable.test.d.ts +0 -2
- package/dist/v2/features/global-cookies/components/CookiesTable.test.d.ts.map +0 -1
- package/dist/v2/features/global-cookies/components/GlobalCookies.test.d.ts +0 -2
- package/dist/v2/features/global-cookies/components/GlobalCookies.test.d.ts.map +0 -1
- package/dist/v2/features/operation/Operation.test.d.ts +0 -2
- package/dist/v2/features/operation/Operation.test.d.ts.map +0 -1
- package/dist/v2/features/operation/components/Header.test.d.ts +0 -2
- package/dist/v2/features/operation/components/Header.test.d.ts.map +0 -1
- package/dist/v2/features/operation/components/Header.vue.d.ts.map +0 -1
- package/dist/v2/features/operation/components/Header.vue.js +0 -7
- package/dist/v2/features/operation/components/Header.vue2.js +0 -97
- package/dist/v2/features/settings/Settings.test.d.ts +0 -2
- package/dist/v2/features/settings/Settings.test.d.ts.map +0 -1
- package/dist/v2/hooks/use-document-watcher.test.d.ts +0 -2
- package/dist/v2/hooks/use-document-watcher.test.d.ts.map +0 -1
- package/dist/views/Components/CodeSnippet/CodeSnippet.test.d.ts +0 -2
- package/dist/views/Components/CodeSnippet/CodeSnippet.test.d.ts.map +0 -1
- package/dist/views/Components/CodeSnippet/helpers/convert-to-har-request.test.d.ts +0 -2
- package/dist/views/Components/CodeSnippet/helpers/convert-to-har-request.test.d.ts.map +0 -1
- package/dist/views/Components/CodeSnippet/helpers/get-har-request.test.d.ts +0 -2
- package/dist/views/Components/CodeSnippet/helpers/get-har-request.test.d.ts.map +0 -1
- package/dist/views/Components/CodeSnippet/helpers/get-snippet.test.d.ts +0 -2
- package/dist/views/Components/CodeSnippet/helpers/get-snippet.test.d.ts.map +0 -1
- package/dist/views/Request/RequestRoot.test.d.ts +0 -2
- package/dist/views/Request/RequestRoot.test.d.ts.map +0 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.test.d.ts +0 -2
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.test.d.ts.map +0 -1
- package/dist/views/Request/RequestSection/RequestAuth/helpers/restore-auth-from-local-storage.test.d.ts +0 -2
- package/dist/views/Request/RequestSection/RequestAuth/helpers/restore-auth-from-local-storage.test.d.ts.map +0 -1
- package/dist/views/Request/RequestSection/RequestBody.test.d.ts +0 -2
- package/dist/views/Request/RequestSection/RequestBody.test.d.ts.map +0 -1
- package/dist/views/Request/RequestSection/RequestCodeExample.test.d.ts +0 -2
- package/dist/views/Request/RequestSection/RequestCodeExample.test.d.ts.map +0 -1
- package/dist/views/Request/RequestSection/RequestSection.test.d.ts +0 -2
- package/dist/views/Request/RequestSection/RequestSection.test.d.ts.map +0 -1
- package/dist/views/Request/RequestSection/helpers/filter-security-requirements.test.d.ts +0 -2
- package/dist/views/Request/RequestSection/helpers/filter-security-requirements.test.d.ts.map +0 -1
- package/dist/views/Request/RequestSection/helpers/getting-started.test.d.ts +0 -2
- package/dist/views/Request/RequestSection/helpers/getting-started.test.d.ts.map +0 -1
- package/dist/views/Request/RequestSection/helpers/update-scheme.test.d.ts +0 -2
- package/dist/views/Request/RequestSection/helpers/update-scheme.test.d.ts.map +0 -1
- package/dist/views/Request/RequestSubpageHeader.test.d.ts +0 -2
- package/dist/views/Request/RequestSubpageHeader.test.d.ts.map +0 -1
- package/dist/views/Request/ResponseSection/ResponseBodyVirtual.test.d.ts +0 -2
- package/dist/views/Request/ResponseSection/ResponseBodyVirtual.test.d.ts.map +0 -1
- package/dist/views/Request/ResponseSection/ResponseSection.test.d.ts +0 -2
- package/dist/views/Request/ResponseSection/ResponseSection.test.d.ts.map +0 -1
- package/dist/views/Request/consts/mediaTypes.test.d.ts +0 -2
- package/dist/views/Request/consts/mediaTypes.test.d.ts.map +0 -1
- package/dist/views/Request/libs/auth.test.d.ts +0 -2
- package/dist/views/Request/libs/auth.test.d.ts.map +0 -1
- package/dist/views/Request/libs/oauth2.test.d.ts +0 -2
- package/dist/views/Request/libs/oauth2.test.d.ts.map +0 -1
- package/dist/views/Request/libs/request.test.d.ts +0 -2
- package/dist/views/Request/libs/request.test.d.ts.map +0 -1
- package/dist/views/Request/libs/watch-mode.test.d.ts +0 -2
- package/dist/views/Request/libs/watch-mode.test.d.ts.map +0 -1
- package/dist/vitest.setup.d.ts +0 -34
- package/dist/vitest.setup.d.ts.map +0 -1
|
@@ -1,240 +1,289 @@
|
|
|
1
|
-
import { defineComponent as E,
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
|
|
1
|
+
import { defineComponent as E, computed as f, ref as C, useId as S, watch as O, createBlock as V, openBlock as i, withCtx as k, withDirectives as d, createElementBlock as B, createVNode as u, unref as v, vShow as y, Fragment as U, renderList as H, createCommentVNode as w, resolveDynamicComponent as I, createElementVNode as N, toDisplayString as P } from "vue";
|
|
2
|
+
import { ScalarErrorBoundary as Q } from "@scalar/components";
|
|
3
|
+
import { canMethodHaveBody as q, REGEX as R } from "@scalar/oas-utils/helpers";
|
|
4
|
+
import { getResolvedRef as g } from "@scalar/workspace-store/helpers/get-resolved-ref";
|
|
5
|
+
import F from "../../../../components/SectionFilter.vue.js";
|
|
6
|
+
import L from "../../../../components/ViewLayout/ViewLayoutSection.vue.js";
|
|
7
|
+
import M from "./OperationBody.vue.js";
|
|
8
|
+
import b from "./OperationParams.vue.js";
|
|
9
|
+
import { groupBy as $ } from "../helpers/group-by.js";
|
|
10
|
+
import j from "../../scalar-auth-selector-block/components/AuthSelector.vue.js";
|
|
11
|
+
const z = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg:pr-24" }, G = ["for"], X = ["id", "placeholder", "value"], J = {
|
|
11
12
|
key: 2,
|
|
12
13
|
class: "text-c-1 flex h-8 items-center"
|
|
13
|
-
},
|
|
14
|
+
}, re = /* @__PURE__ */ E({
|
|
14
15
|
__name: "OperationBlock",
|
|
15
16
|
props: {
|
|
16
17
|
method: {},
|
|
17
18
|
path: {},
|
|
18
19
|
operation: {},
|
|
20
|
+
authMeta: { default: () => ({ type: "document" }) },
|
|
19
21
|
exampleKey: {},
|
|
20
|
-
selectedContentType: {},
|
|
21
22
|
securitySchemes: {},
|
|
22
23
|
selectedSecurity: {},
|
|
23
24
|
security: {},
|
|
24
25
|
server: {},
|
|
25
26
|
layout: {},
|
|
26
27
|
plugins: {},
|
|
28
|
+
eventBus: {},
|
|
27
29
|
environment: {},
|
|
28
30
|
envVariables: {}
|
|
29
31
|
},
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
),
|
|
32
|
+
setup(l) {
|
|
33
|
+
const o = f(() => ({
|
|
34
|
+
method: l.method,
|
|
35
|
+
path: l.path,
|
|
36
|
+
exampleKey: l.exampleKey
|
|
37
|
+
})), m = f(
|
|
38
|
+
() => $(l.operation.parameters?.map((e) => g(e)) ?? [], "in")
|
|
39
|
+
), T = [
|
|
36
40
|
"Auth",
|
|
37
41
|
"Variables",
|
|
38
42
|
"Cookies",
|
|
39
43
|
"Headers",
|
|
40
44
|
"Query",
|
|
41
45
|
"Body"
|
|
42
|
-
],
|
|
43
|
-
const
|
|
44
|
-
return
|
|
45
|
-
}), n =
|
|
46
|
+
], s = C("All"), A = f(() => {
|
|
47
|
+
const e = /* @__PURE__ */ new Set(["All", ...T]);
|
|
48
|
+
return m.value.path?.length || e.delete("Variables"), q(l.method) || e.delete("Body"), K.value && e.delete("Auth"), [...e];
|
|
49
|
+
}), n = f(
|
|
46
50
|
() => Object.fromEntries(
|
|
47
|
-
|
|
51
|
+
A.value.map((e) => [e, S()])
|
|
48
52
|
)
|
|
49
53
|
);
|
|
50
|
-
|
|
51
|
-
() =>
|
|
52
|
-
(
|
|
53
|
-
|
|
54
|
+
O(
|
|
55
|
+
() => l.method,
|
|
56
|
+
(e) => {
|
|
57
|
+
s.value === "Body" && !q(e) && (s.value = "All");
|
|
54
58
|
}
|
|
55
59
|
);
|
|
56
|
-
const
|
|
57
|
-
() =>
|
|
58
|
-
), D = () =>
|
|
59
|
-
return (
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
}
|
|
80
|
-
}, null, 40, W)) : (s(), v("span", Y, L(r.operation.summary), 1))
|
|
81
|
-
]),
|
|
82
|
-
i($, {
|
|
83
|
-
modelValue: u.value,
|
|
84
|
-
"onUpdate:modelValue": e[1] || (e[1] = (t) => u.value = t),
|
|
85
|
-
filterIds: n.value,
|
|
86
|
-
filters: B.value
|
|
87
|
-
}, null, 8, ["modelValue", "filterIds", "filters"])
|
|
88
|
-
]),
|
|
89
|
-
default: S(() => [
|
|
90
|
-
m(i(l(M), {
|
|
91
|
-
id: n.value.Auth,
|
|
92
|
-
envVariables: r.envVariables,
|
|
93
|
-
environment: r.environment,
|
|
94
|
-
layout: "client",
|
|
95
|
-
security: r.security,
|
|
96
|
-
securitySchemes: r.securitySchemes,
|
|
97
|
-
selectedSecurity: r.selectedSecurity,
|
|
98
|
-
server: r.server,
|
|
99
|
-
title: "Authorization",
|
|
100
|
-
onDeleteOperationAuth: e[2] || (e[2] = (t) => a("auth:delete", t)),
|
|
101
|
-
"onUpdate:securityScheme": e[3] || (e[3] = (t) => a("auth:update:securityScheme", t)),
|
|
102
|
-
"onUpdate:selectedScopes": e[4] || (e[4] = (t) => a("auth:update:selectedScopes", t)),
|
|
103
|
-
"onUpdate:selectedSecurity": e[5] || (e[5] = (t) => a("auth:update:selectedSecurity", t))
|
|
104
|
-
}, null, 8, ["id", "envVariables", "environment", "security", "securitySchemes", "selectedSecurity", "server"]), [
|
|
105
|
-
[y, p("Auth") && !q.value]
|
|
106
|
-
]),
|
|
107
|
-
m(i(f, {
|
|
108
|
-
id: n.value.Variables,
|
|
109
|
-
envVariables: r.envVariables,
|
|
110
|
-
environment: r.environment,
|
|
111
|
-
exampleKey: r.exampleKey,
|
|
112
|
-
parameters: l(d).path ?? [],
|
|
113
|
-
title: "Variables",
|
|
114
|
-
onAdd: e[6] || (e[6] = (t) => a("parameters:add", {
|
|
115
|
-
type: "path",
|
|
116
|
-
payload: t
|
|
117
|
-
})),
|
|
118
|
-
onDelete: e[7] || (e[7] = (t) => a("parameters:delete", {
|
|
119
|
-
type: "path",
|
|
120
|
-
...t
|
|
121
|
-
})),
|
|
122
|
-
onDeleteAll: e[8] || (e[8] = () => a("parameters:deleteAll", {
|
|
123
|
-
type: "path"
|
|
124
|
-
})),
|
|
125
|
-
onUpdate: e[9] || (e[9] = (t) => a("parameters:update", {
|
|
126
|
-
type: "path",
|
|
127
|
-
...t
|
|
128
|
-
}))
|
|
129
|
-
}, null, 8, ["id", "envVariables", "environment", "exampleKey", "parameters"]), [
|
|
130
|
-
[y, p("Variables") && l(d).path?.length]
|
|
131
|
-
]),
|
|
132
|
-
m(i(f, {
|
|
133
|
-
id: n.value.Cookies,
|
|
134
|
-
envVariables: r.envVariables,
|
|
135
|
-
environment: r.environment,
|
|
136
|
-
exampleKey: r.exampleKey,
|
|
137
|
-
parameters: l(d).cookie ?? [],
|
|
138
|
-
title: "Cookies",
|
|
139
|
-
onAdd: e[10] || (e[10] = (t) => a("parameters:add", {
|
|
140
|
-
type: "cookie",
|
|
141
|
-
payload: t
|
|
142
|
-
})),
|
|
143
|
-
onDelete: e[11] || (e[11] = (t) => a("parameters:delete", {
|
|
144
|
-
type: "cookie",
|
|
145
|
-
...t
|
|
146
|
-
})),
|
|
147
|
-
onDeleteAll: e[12] || (e[12] = () => a("parameters:deleteAll", {
|
|
148
|
-
type: "cookie"
|
|
149
|
-
})),
|
|
150
|
-
onUpdate: e[13] || (e[13] = (t) => a("parameters:update", {
|
|
151
|
-
type: "cookie",
|
|
152
|
-
...t
|
|
153
|
-
}))
|
|
154
|
-
}, null, 8, ["id", "envVariables", "environment", "exampleKey", "parameters"]), [
|
|
155
|
-
[y, p("Cookies")]
|
|
156
|
-
]),
|
|
157
|
-
m(i(f, {
|
|
158
|
-
id: n.value.Headers,
|
|
159
|
-
envVariables: r.envVariables,
|
|
160
|
-
environment: r.environment,
|
|
161
|
-
exampleKey: r.exampleKey,
|
|
162
|
-
parameters: l(d).header ?? [],
|
|
163
|
-
title: "Headers",
|
|
164
|
-
onAdd: e[14] || (e[14] = (t) => a("parameters:add", {
|
|
165
|
-
type: "header",
|
|
166
|
-
payload: t
|
|
167
|
-
})),
|
|
168
|
-
onDelete: e[15] || (e[15] = (t) => a("parameters:delete", {
|
|
169
|
-
type: "header",
|
|
170
|
-
...t
|
|
171
|
-
})),
|
|
172
|
-
onDeleteAll: e[16] || (e[16] = () => a("parameters:deleteAll", {
|
|
173
|
-
type: "header"
|
|
174
|
-
})),
|
|
175
|
-
onUpdate: e[17] || (e[17] = (t) => a("parameters:update", {
|
|
176
|
-
type: "header",
|
|
177
|
-
...t
|
|
178
|
-
}))
|
|
179
|
-
}, null, 8, ["id", "envVariables", "environment", "exampleKey", "parameters"]), [
|
|
180
|
-
[y, p("Headers")]
|
|
181
|
-
]),
|
|
182
|
-
m(i(f, {
|
|
183
|
-
id: n.value.Query,
|
|
184
|
-
envVariables: r.envVariables,
|
|
185
|
-
environment: r.environment,
|
|
186
|
-
exampleKey: r.exampleKey,
|
|
187
|
-
parameters: l(d).query ?? [],
|
|
188
|
-
title: "Query Parameters",
|
|
189
|
-
onAdd: e[18] || (e[18] = (t) => a("parameters:add", {
|
|
190
|
-
type: "query",
|
|
191
|
-
payload: t
|
|
192
|
-
})),
|
|
193
|
-
onDelete: e[19] || (e[19] = (t) => a("parameters:delete", {
|
|
194
|
-
type: "query",
|
|
195
|
-
...t
|
|
196
|
-
})),
|
|
197
|
-
onDeleteAll: e[20] || (e[20] = () => a("parameters:deleteAll", {
|
|
198
|
-
type: "query"
|
|
199
|
-
})),
|
|
200
|
-
onUpdate: e[21] || (e[21] = (t) => a("parameters:update", {
|
|
201
|
-
type: "query",
|
|
202
|
-
...t
|
|
60
|
+
const K = f(
|
|
61
|
+
() => l.layout === "modal" && !l.operation.security && !Object.keys(l.securitySchemes ?? {}).length
|
|
62
|
+
), D = () => l.operation.summary ? l.operation.summary : l.path.replace(R.PROTOCOL, "") ? l.path.replace(R.PROTOCOL, "") : "Request Name", p = (e) => s.value === "All" || s.value === e, h = S();
|
|
63
|
+
return (e, a) => (i(), V(L, {
|
|
64
|
+
"aria-label": `Request: ${e.operation.summary}`
|
|
65
|
+
}, {
|
|
66
|
+
title: k(() => [
|
|
67
|
+
N("div", z, [
|
|
68
|
+
e.layout !== "modal" ? (i(), B("label", {
|
|
69
|
+
key: 0,
|
|
70
|
+
class: "pointer-events-auto absolute top-0 left-0 h-full w-full cursor-text opacity-0",
|
|
71
|
+
for: v(h)
|
|
72
|
+
}, null, 8, G)) : w("", !0),
|
|
73
|
+
e.layout !== "modal" ? (i(), B("input", {
|
|
74
|
+
key: 1,
|
|
75
|
+
id: v(h),
|
|
76
|
+
class: "text-c-1 group-hover-input pointer-events-auto relative z-10 -ml-0.5 h-8 w-full rounded pl-1.25 has-[:focus-visible]:outline md:-ml-1.25",
|
|
77
|
+
placeholder: D(),
|
|
78
|
+
value: e.operation.summary,
|
|
79
|
+
onInput: a[0] || (a[0] = (t) => e.eventBus.emit("operation:update:summary", {
|
|
80
|
+
meta: o.value,
|
|
81
|
+
payload: {
|
|
82
|
+
summary: t.target.value
|
|
83
|
+
}
|
|
203
84
|
}))
|
|
204
|
-
}, null,
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
85
|
+
}, null, 40, X)) : (i(), B("span", J, P(e.operation.summary), 1))
|
|
86
|
+
]),
|
|
87
|
+
u(F, {
|
|
88
|
+
modelValue: s.value,
|
|
89
|
+
"onUpdate:modelValue": a[1] || (a[1] = (t) => s.value = t),
|
|
90
|
+
filterIds: n.value,
|
|
91
|
+
filters: A.value
|
|
92
|
+
}, null, 8, ["modelValue", "filterIds", "filters"])
|
|
93
|
+
]),
|
|
94
|
+
default: k(() => [
|
|
95
|
+
d(u(v(j), {
|
|
96
|
+
id: n.value.Auth,
|
|
97
|
+
envVariables: e.envVariables,
|
|
98
|
+
environment: e.environment,
|
|
99
|
+
layout: "client",
|
|
100
|
+
security: e.security,
|
|
101
|
+
securitySchemes: e.securitySchemes,
|
|
102
|
+
selectedSecurity: e.selectedSecurity,
|
|
103
|
+
server: e.server,
|
|
104
|
+
title: "Authorization",
|
|
105
|
+
meta: e.authMeta,
|
|
106
|
+
eventBus: e.eventBus
|
|
107
|
+
}, null, 8, ["id", "envVariables", "environment", "security", "securitySchemes", "selectedSecurity", "server", "meta", "eventBus"]), [
|
|
108
|
+
[y, p("Auth") && !K.value]
|
|
109
|
+
]),
|
|
110
|
+
d(u(b, {
|
|
111
|
+
id: n.value.Variables,
|
|
112
|
+
envVariables: e.envVariables,
|
|
113
|
+
environment: e.environment,
|
|
114
|
+
exampleKey: e.exampleKey,
|
|
115
|
+
parameters: m.value.path ?? [],
|
|
116
|
+
title: "Variables",
|
|
117
|
+
"show-add-row-placeholder": !1,
|
|
118
|
+
onDelete: a[2] || (a[2] = ({ index: t }) => e.eventBus.emit("operation:delete:parameter", {
|
|
119
|
+
type: "path",
|
|
120
|
+
index: t,
|
|
121
|
+
meta: o.value
|
|
122
|
+
})),
|
|
123
|
+
onDeleteAll: a[3] || (a[3] = () => e.eventBus.emit("operation:delete-all:parameters", {
|
|
124
|
+
type: "path",
|
|
125
|
+
meta: o.value
|
|
126
|
+
})),
|
|
127
|
+
onUpdate: a[4] || (a[4] = ({ index: t, payload: r }) => e.eventBus.emit("operation:update:parameter", {
|
|
128
|
+
type: "path",
|
|
129
|
+
index: t,
|
|
130
|
+
payload: r,
|
|
131
|
+
meta: o.value
|
|
132
|
+
}))
|
|
133
|
+
}, null, 8, ["id", "envVariables", "environment", "exampleKey", "parameters"]), [
|
|
134
|
+
[y, p("Variables") && m.value.path?.length]
|
|
135
|
+
]),
|
|
136
|
+
d(u(b, {
|
|
137
|
+
id: n.value.Cookies,
|
|
138
|
+
envVariables: e.envVariables,
|
|
139
|
+
environment: e.environment,
|
|
140
|
+
exampleKey: e.exampleKey,
|
|
141
|
+
parameters: m.value.cookie ?? [],
|
|
142
|
+
title: "Cookies",
|
|
143
|
+
"show-add-row-placeholder": !0,
|
|
144
|
+
onAdd: a[5] || (a[5] = ({ key: t, value: r }) => e.eventBus.emit("operation:add:parameter", {
|
|
145
|
+
type: "cookie",
|
|
146
|
+
payload: { key: t ?? "", value: r ?? "", isEnabled: !0 },
|
|
147
|
+
meta: o.value
|
|
148
|
+
})),
|
|
149
|
+
onDelete: a[6] || (a[6] = ({ index: t }) => e.eventBus.emit("operation:delete:parameter", {
|
|
150
|
+
type: "cookie",
|
|
151
|
+
index: t,
|
|
152
|
+
meta: o.value
|
|
153
|
+
})),
|
|
154
|
+
onDeleteAll: a[7] || (a[7] = () => e.eventBus.emit("operation:delete-all:parameters", {
|
|
155
|
+
type: "cookie",
|
|
156
|
+
meta: o.value
|
|
157
|
+
})),
|
|
158
|
+
onUpdate: a[8] || (a[8] = ({ index: t, payload: r }) => e.eventBus.emit("operation:update:parameter", {
|
|
159
|
+
type: "cookie",
|
|
160
|
+
index: t,
|
|
161
|
+
payload: r,
|
|
162
|
+
meta: o.value
|
|
163
|
+
}))
|
|
164
|
+
}, null, 8, ["id", "envVariables", "environment", "exampleKey", "parameters"]), [
|
|
165
|
+
[y, p("Cookies")]
|
|
232
166
|
]),
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
167
|
+
d(u(b, {
|
|
168
|
+
id: n.value.Headers,
|
|
169
|
+
envVariables: e.envVariables,
|
|
170
|
+
environment: e.environment,
|
|
171
|
+
exampleKey: e.exampleKey,
|
|
172
|
+
parameters: m.value.header ?? [],
|
|
173
|
+
title: "Headers",
|
|
174
|
+
onAdd: a[9] || (a[9] = ({ key: t, value: r }) => e.eventBus.emit("operation:add:parameter", {
|
|
175
|
+
type: "header",
|
|
176
|
+
payload: { key: t ?? "", value: r ?? "", isEnabled: !0 },
|
|
177
|
+
meta: o.value
|
|
178
|
+
})),
|
|
179
|
+
onDelete: a[10] || (a[10] = ({ index: t }) => e.eventBus.emit("operation:delete:parameter", {
|
|
180
|
+
type: "header",
|
|
181
|
+
index: t,
|
|
182
|
+
meta: o.value
|
|
183
|
+
})),
|
|
184
|
+
onDeleteAll: a[11] || (a[11] = () => e.eventBus.emit("operation:delete-all:parameters", {
|
|
185
|
+
type: "header",
|
|
186
|
+
meta: o.value
|
|
187
|
+
})),
|
|
188
|
+
onUpdate: a[12] || (a[12] = ({ index: t, payload: r }) => e.eventBus.emit("operation:update:parameter", {
|
|
189
|
+
type: "header",
|
|
190
|
+
index: t,
|
|
191
|
+
payload: r,
|
|
192
|
+
meta: o.value
|
|
193
|
+
}))
|
|
194
|
+
}, null, 8, ["id", "envVariables", "environment", "exampleKey", "parameters"]), [
|
|
195
|
+
[y, p("Headers")]
|
|
196
|
+
]),
|
|
197
|
+
d(u(b, {
|
|
198
|
+
id: n.value.Query,
|
|
199
|
+
envVariables: e.envVariables,
|
|
200
|
+
environment: e.environment,
|
|
201
|
+
exampleKey: e.exampleKey,
|
|
202
|
+
parameters: m.value.query ?? [],
|
|
203
|
+
title: "Query Parameters",
|
|
204
|
+
onAdd: a[13] || (a[13] = ({ key: t, value: r }) => e.eventBus.emit("operation:add:parameter", {
|
|
205
|
+
type: "query",
|
|
206
|
+
payload: { key: t ?? "", value: r ?? "", isEnabled: !0 },
|
|
207
|
+
meta: o.value
|
|
208
|
+
})),
|
|
209
|
+
onDelete: a[14] || (a[14] = ({ index: t }) => e.eventBus.emit("operation:delete:parameter", {
|
|
210
|
+
type: "query",
|
|
211
|
+
index: t,
|
|
212
|
+
meta: o.value
|
|
213
|
+
})),
|
|
214
|
+
onDeleteAll: a[15] || (a[15] = () => e.eventBus.emit("operation:delete-all:parameters", {
|
|
215
|
+
type: "query",
|
|
216
|
+
meta: o.value
|
|
217
|
+
})),
|
|
218
|
+
onUpdate: a[16] || (a[16] = ({ index: t, payload: r }) => e.eventBus.emit("operation:update:parameter", {
|
|
219
|
+
type: "query",
|
|
220
|
+
index: t,
|
|
221
|
+
payload: r,
|
|
222
|
+
meta: o.value
|
|
223
|
+
}))
|
|
224
|
+
}, null, 8, ["id", "envVariables", "environment", "exampleKey", "parameters"]), [
|
|
225
|
+
[y, p("Query")]
|
|
226
|
+
]),
|
|
227
|
+
d(u(M, {
|
|
228
|
+
id: n.value.Body,
|
|
229
|
+
envVariables: e.envVariables,
|
|
230
|
+
environment: e.environment,
|
|
231
|
+
exampleKey: e.exampleKey,
|
|
232
|
+
requestBody: v(g)(e.operation.requestBody),
|
|
233
|
+
title: "Request Body",
|
|
234
|
+
"onAdd:formRow": a[17] || (a[17] = (t) => e.eventBus.emit("operation:add:requestBody:formRow", {
|
|
235
|
+
contentType: t.contentType,
|
|
236
|
+
meta: o.value,
|
|
237
|
+
payload: {
|
|
238
|
+
key: t.data.key,
|
|
239
|
+
value: t.data.value
|
|
240
|
+
}
|
|
241
|
+
})),
|
|
242
|
+
"onUpdate:contentType": a[18] || (a[18] = (t) => e.eventBus.emit("operation:update:requestBody:contentType", {
|
|
243
|
+
payload: {
|
|
244
|
+
contentType: t.value
|
|
245
|
+
},
|
|
246
|
+
meta: o.value
|
|
247
|
+
})),
|
|
248
|
+
"onUpdate:formRow": a[19] || (a[19] = (t) => e.eventBus.emit("operation:update:requestBody:formRow", {
|
|
249
|
+
contentType: t.contentType,
|
|
250
|
+
meta: o.value,
|
|
251
|
+
index: t.index,
|
|
252
|
+
payload: {
|
|
253
|
+
key: t.data.key,
|
|
254
|
+
value: t.data.value
|
|
255
|
+
}
|
|
256
|
+
})),
|
|
257
|
+
"onDelete:fromRow": a[20] || (a[20] = (t) => e.eventBus.emit("operation:delete:requestBody:formRow", {
|
|
258
|
+
contentType: t.contentType,
|
|
259
|
+
index: t.index,
|
|
260
|
+
meta: o.value
|
|
261
|
+
})),
|
|
262
|
+
"onUpdate:value": a[21] || (a[21] = (t) => e.eventBus.emit("operation:update:requestBody:value", {
|
|
263
|
+
contentType: t.contentType,
|
|
264
|
+
payload: {
|
|
265
|
+
value: t.value
|
|
266
|
+
},
|
|
267
|
+
meta: o.value
|
|
268
|
+
}))
|
|
269
|
+
}, null, 8, ["id", "envVariables", "environment", "exampleKey", "requestBody"]), [
|
|
270
|
+
[y, p("Body") && v(q)(e.method)]
|
|
271
|
+
]),
|
|
272
|
+
(i(!0), B(U, null, H(e.plugins, (t, r) => (i(), V(v(Q), { key: r }, {
|
|
273
|
+
default: k(() => [
|
|
274
|
+
t?.components?.request ? (i(), V(I(t.components.request), {
|
|
275
|
+
key: 0,
|
|
276
|
+
operation: e.operation,
|
|
277
|
+
selectedExample: e.exampleKey
|
|
278
|
+
}, null, 8, ["operation", "selectedExample"])) : w("", !0)
|
|
279
|
+
]),
|
|
280
|
+
_: 2
|
|
281
|
+
}, 1024))), 128))
|
|
282
|
+
]),
|
|
283
|
+
_: 1
|
|
284
|
+
}, 8, ["aria-label"]));
|
|
236
285
|
}
|
|
237
286
|
});
|
|
238
287
|
export {
|
|
239
|
-
|
|
288
|
+
re as default
|
|
240
289
|
};
|
|
@@ -4,8 +4,6 @@ import type { EnvVariable } from '../../../../store/active-entities.js';
|
|
|
4
4
|
type __VLS_Props = {
|
|
5
5
|
/** Request body */
|
|
6
6
|
requestBody?: RequestBodyObject;
|
|
7
|
-
/** Currently selected content type for the current operation */
|
|
8
|
-
selectedContentType: keyof typeof contentTypes | (string & {});
|
|
9
7
|
/** Currently selected example key for the current operation */
|
|
10
8
|
exampleKey: string;
|
|
11
9
|
/** Display title */
|
|
@@ -14,34 +12,32 @@ type __VLS_Props = {
|
|
|
14
12
|
environment: Environment;
|
|
15
13
|
envVariables: EnvVariable[];
|
|
16
14
|
};
|
|
17
|
-
declare const contentTypes: {
|
|
18
|
-
readonly 'multipart/form-data': "Multipart Form";
|
|
19
|
-
readonly 'application/x-www-form-urlencoded': "Form URL Encoded";
|
|
20
|
-
readonly 'application/octet-stream': "Binary File";
|
|
21
|
-
readonly 'application/json': "JSON";
|
|
22
|
-
readonly 'application/xml': "XML";
|
|
23
|
-
readonly 'application/yaml': "YAML";
|
|
24
|
-
readonly 'application/edn': "EDN";
|
|
25
|
-
readonly other: "Other";
|
|
26
|
-
readonly none: "None";
|
|
27
|
-
};
|
|
28
15
|
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
29
16
|
"update:contentType": (payload: {
|
|
30
17
|
value: string;
|
|
31
18
|
}) => any;
|
|
32
19
|
"update:value": (payload: {
|
|
33
20
|
value?: string | File;
|
|
21
|
+
contentType: string;
|
|
22
|
+
}) => any;
|
|
23
|
+
"add:formRow": (payload: {
|
|
24
|
+
data: Partial<{
|
|
25
|
+
key: string;
|
|
26
|
+
value?: string | File;
|
|
27
|
+
}>;
|
|
28
|
+
contentType: string;
|
|
34
29
|
}) => any;
|
|
35
|
-
"add:formRow": (payload: Partial<{
|
|
36
|
-
key: string;
|
|
37
|
-
value?: string | File;
|
|
38
|
-
}>) => any;
|
|
39
30
|
"update:formRow": (payload: {
|
|
40
31
|
index: number;
|
|
41
|
-
|
|
32
|
+
data: Partial<{
|
|
42
33
|
key: string;
|
|
43
|
-
value
|
|
34
|
+
value: string | File | null;
|
|
44
35
|
}>;
|
|
36
|
+
contentType: string;
|
|
37
|
+
}) => any;
|
|
38
|
+
"delete:fromRow": (payload: {
|
|
39
|
+
index: number;
|
|
40
|
+
contentType: string;
|
|
45
41
|
}) => any;
|
|
46
42
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
47
43
|
"onUpdate:contentType"?: ((payload: {
|
|
@@ -49,17 +45,26 @@ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
49
45
|
}) => any) | undefined;
|
|
50
46
|
"onUpdate:value"?: ((payload: {
|
|
51
47
|
value?: string | File;
|
|
48
|
+
contentType: string;
|
|
49
|
+
}) => any) | undefined;
|
|
50
|
+
"onAdd:formRow"?: ((payload: {
|
|
51
|
+
data: Partial<{
|
|
52
|
+
key: string;
|
|
53
|
+
value?: string | File;
|
|
54
|
+
}>;
|
|
55
|
+
contentType: string;
|
|
52
56
|
}) => any) | undefined;
|
|
53
|
-
"onAdd:formRow"?: ((payload: Partial<{
|
|
54
|
-
key: string;
|
|
55
|
-
value?: string | File;
|
|
56
|
-
}>) => any) | undefined;
|
|
57
57
|
"onUpdate:formRow"?: ((payload: {
|
|
58
58
|
index: number;
|
|
59
|
-
|
|
59
|
+
data: Partial<{
|
|
60
60
|
key: string;
|
|
61
|
-
value
|
|
61
|
+
value: string | File | null;
|
|
62
62
|
}>;
|
|
63
|
+
contentType: string;
|
|
64
|
+
}) => any) | undefined;
|
|
65
|
+
"onDelete:fromRow"?: ((payload: {
|
|
66
|
+
index: number;
|
|
67
|
+
contentType: string;
|
|
63
68
|
}) => any) | undefined;
|
|
64
69
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
65
70
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OperationBody.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-operation-block/components/OperationBody.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"OperationBody.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-operation-block/components/OperationBody.vue"],"names":[],"mappings":"AA2VA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AAEzE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8DAA8D,CAAA;AAUrG,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAK1D,KAAK,WAAW,GAAG;IACf,mBAAmB;IACnB,WAAW,CAAC,EAAE,iBAAiB,CAAA;IAC/B,+DAA+D;IAC/D,UAAU,EAAE,MAAM,CAAA;IAClB,oBAAoB;IACpB,KAAK,EAAE,MAAM,CAAA;IAEb,4CAA4C;IAC5C,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;CAC5B,CAAC;;;eAK0C,MAAM;;;gBAI7B,MAAM,GAAG,IAAI;qBAAe,MAAM;;;cAM7C,OAAO,CAAC;YAAE,GAAG,EAAE,MAAM,CAAC;YAAC,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;SAAE,CAAC;qBACxC,MAAM;;;eAMZ,MAAM;cACP,OAAO,CAAC;YAAE,GAAG,EAAE,MAAM,CAAC;YAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAAA;SAAE,CAAC;qBAC9C,MAAM;;;eAGiB,MAAM;qBAAe,MAAM;;;;eAtBvB,MAAM;;;gBAI7B,MAAM,GAAG,IAAI;qBAAe,MAAM;;;cAM7C,OAAO,CAAC;YAAE,GAAG,EAAE,MAAM,CAAC;YAAC,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;SAAE,CAAC;qBACxC,MAAM;;;eAMZ,MAAM;cACP,OAAO,CAAC;YAAE,GAAG,EAAE,MAAM,CAAC;YAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAAA;SAAE,CAAC;qBAC9C,MAAM;;;eAGiB,MAAM;qBAAe,MAAM;;;AA0jBrE,wBAOG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./OperationBody.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-caf58516"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
f as default
|
|
7
7
|
};
|