@api-client/core 0.20.10 → 0.21.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 +12 -0
- package/bin/test.ts +0 -16
- package/build/src/browser.d.ts +0 -19
- package/build/src/browser.d.ts.map +1 -1
- package/build/src/browser.js +0 -31
- package/build/src/browser.js.map +1 -1
- package/build/src/events/EventTypes.d.ts +0 -40
- package/build/src/events/EventTypes.d.ts.map +1 -1
- package/build/src/events/EventTypes.js +0 -8
- package/build/src/events/EventTypes.js.map +1 -1
- package/build/src/events/Events.d.ts +0 -20
- package/build/src/events/Events.d.ts.map +1 -1
- package/build/src/events/Events.js +0 -8
- package/build/src/events/Events.js.map +1 -1
- package/build/src/events/index.d.ts +0 -3
- package/build/src/events/index.d.ts.map +1 -1
- package/build/src/events/index.js.map +1 -1
- package/build/src/index.d.ts +0 -31
- package/build/src/index.d.ts.map +1 -1
- package/build/src/index.js +0 -55
- package/build/src/index.js.map +1 -1
- package/build/src/lib/headers/Headers.d.ts +0 -9
- package/build/src/lib/headers/Headers.d.ts.map +1 -1
- package/build/src/lib/headers/Headers.js +0 -20
- package/build/src/lib/headers/Headers.js.map +1 -1
- package/build/src/mocking/lib/File.d.ts.map +1 -1
- package/build/src/mocking/lib/File.js +3 -5
- package/build/src/mocking/lib/File.js.map +1 -1
- package/build/src/mocking/lib/Trash.d.ts.map +1 -1
- package/build/src/mocking/lib/Trash.js +2 -8
- package/build/src/mocking/lib/Trash.js.map +1 -1
- package/build/src/models/Folder.d.ts +1 -1
- package/build/src/models/Folder.d.ts.map +1 -1
- package/build/src/models/Folder.js +3 -3
- package/build/src/models/Folder.js.map +1 -1
- package/build/src/models/index.d.ts +1 -51
- package/build/src/models/index.d.ts.map +1 -1
- package/build/src/models/index.js +1 -56
- package/build/src/models/index.js.map +1 -1
- package/build/src/models/kinds.d.ts +1 -6
- package/build/src/models/kinds.d.ts.map +1 -1
- package/build/src/models/kinds.js +1 -6
- package/build/src/models/kinds.js.map +1 -1
- package/build/src/sdk/AiSdk.d.ts +4 -4
- package/build/src/sdk/AiSdk.d.ts.map +1 -1
- package/build/src/sdk/AiSdk.js +2 -2
- package/build/src/sdk/AiSdk.js.map +1 -1
- package/build/src/sdk/DataCatalogSdk.d.ts +5 -5
- package/build/src/sdk/DataCatalogSdk.d.ts.map +1 -1
- package/build/src/sdk/DataCatalogSdk.js +1 -1
- package/build/src/sdk/DataCatalogSdk.js.map +1 -1
- package/build/src/sdk/DeploymentsSdk.d.ts +2 -2
- package/build/src/sdk/DeploymentsSdk.d.ts.map +1 -1
- package/build/src/sdk/DeploymentsSdk.js +2 -2
- package/build/src/sdk/DeploymentsSdk.js.map +1 -1
- package/build/src/sdk/FilesSdk.d.ts +8 -8
- package/build/src/sdk/FilesSdk.d.ts.map +1 -1
- package/build/src/sdk/FilesSdk.js +3 -3
- package/build/src/sdk/FilesSdk.js.map +1 -1
- package/build/src/sdk/GroupsSdk.d.ts +2 -2
- package/build/src/sdk/GroupsSdk.d.ts.map +1 -1
- package/build/src/sdk/GroupsSdk.js +1 -1
- package/build/src/sdk/GroupsSdk.js.map +1 -1
- package/build/src/sdk/HttpNode.js +1 -1
- package/build/src/sdk/HttpNode.js.map +1 -1
- package/build/src/sdk/HttpWeb.d.ts +1 -0
- package/build/src/sdk/HttpWeb.d.ts.map +1 -1
- package/build/src/sdk/HttpWeb.js +28 -3
- package/build/src/sdk/HttpWeb.js.map +1 -1
- package/build/src/sdk/OrganizationsSdk.d.ts +5 -5
- package/build/src/sdk/OrganizationsSdk.d.ts.map +1 -1
- package/build/src/sdk/OrganizationsSdk.js +1 -1
- package/build/src/sdk/OrganizationsSdk.js.map +1 -1
- package/build/src/sdk/RevisionsSdk.d.ts +2 -2
- package/build/src/sdk/RevisionsSdk.d.ts.map +1 -1
- package/build/src/sdk/RevisionsSdk.js +1 -1
- package/build/src/sdk/RevisionsSdk.js.map +1 -1
- package/build/src/sdk/RouteBuilder.d.ts +3 -3
- package/build/src/sdk/RouteBuilder.d.ts.map +1 -1
- package/build/src/sdk/RouteBuilder.js.map +1 -1
- package/build/src/sdk/Sdk.d.ts +1 -21
- package/build/src/sdk/Sdk.d.ts.map +1 -1
- package/build/src/sdk/Sdk.js +0 -15
- package/build/src/sdk/Sdk.js.map +1 -1
- package/build/src/sdk/SdkBase.d.ts +3 -3
- package/build/src/sdk/SdkBase.d.ts.map +1 -1
- package/build/src/sdk/SdkBase.js +1 -1
- package/build/src/sdk/SdkBase.js.map +1 -1
- package/build/src/sdk/SdkMock.d.ts +2 -2
- package/build/src/sdk/SdkMock.d.ts.map +1 -1
- package/build/src/sdk/SdkMock.js +6 -6
- package/build/src/sdk/SdkMock.js.map +1 -1
- package/build/src/sdk/SdkNetworkMock.d.ts +323 -0
- package/build/src/sdk/SdkNetworkMock.d.ts.map +1 -0
- package/build/src/sdk/SdkNetworkMock.js +1196 -0
- package/build/src/sdk/SdkNetworkMock.js.map +1 -0
- package/build/src/sdk/SharedSdk.d.ts +2 -2
- package/build/src/sdk/SharedSdk.d.ts.map +1 -1
- package/build/src/sdk/SharedSdk.js +1 -1
- package/build/src/sdk/SharedSdk.js.map +1 -1
- package/build/src/sdk/StoreSdkNode.d.ts +0 -2
- package/build/src/sdk/StoreSdkNode.d.ts.map +1 -1
- package/build/src/sdk/StoreSdkNode.js +0 -2
- package/build/src/sdk/StoreSdkNode.js.map +1 -1
- package/build/src/sdk/StoreSdkWeb.d.ts +0 -2
- package/build/src/sdk/StoreSdkWeb.d.ts.map +1 -1
- package/build/src/sdk/StoreSdkWeb.js +0 -2
- package/build/src/sdk/StoreSdkWeb.js.map +1 -1
- package/build/src/sdk/TrashSdk.d.ts +2 -2
- package/build/src/sdk/TrashSdk.d.ts.map +1 -1
- package/build/src/sdk/TrashSdk.js +1 -1
- package/build/src/sdk/TrashSdk.js.map +1 -1
- package/build/src/sdk/UsersSdk.d.ts +1 -1
- package/build/src/sdk/UsersSdk.d.ts.map +1 -1
- package/build/src/sdk/UsersSdk.js +1 -1
- package/build/src/sdk/UsersSdk.js.map +1 -1
- package/build/tsconfig.build.tsbuildinfo +1 -0
- package/eslint.config.js +0 -4
- package/knip.json +10 -0
- package/lupa.config.ts +43 -0
- package/package.json +25 -67
- package/src/events/EventTypes.ts +0 -8
- package/src/events/Events.ts +0 -8
- package/src/lib/headers/Headers.ts +0 -22
- package/src/mocking/lib/File.ts +3 -6
- package/src/mocking/lib/Trash.ts +2 -8
- package/src/models/Folder.ts +3 -3
- package/src/models/kinds.ts +1 -6
- package/src/sdk/AiSdk.ts +6 -6
- package/src/sdk/DataCatalogSdk.ts +6 -6
- package/src/sdk/DeploymentsSdk.ts +3 -3
- package/src/sdk/FilesSdk.ts +10 -10
- package/src/sdk/GroupsSdk.ts +3 -3
- package/src/sdk/HttpNode.ts +1 -1
- package/src/sdk/HttpWeb.ts +28 -3
- package/src/sdk/OrganizationsSdk.ts +6 -6
- package/src/sdk/RevisionsSdk.ts +3 -3
- package/src/sdk/RouteBuilder.ts +3 -3
- package/src/sdk/Sdk.ts +1 -22
- package/src/sdk/SdkBase.ts +3 -3
- package/src/sdk/SdkMock.ts +11 -11
- package/src/sdk/SdkNetworkMock.ts +1607 -0
- package/src/sdk/SharedSdk.ts +3 -3
- package/src/sdk/StoreSdkNode.ts +0 -3
- package/src/sdk/StoreSdkWeb.ts +0 -3
- package/src/sdk/TrashSdk.ts +3 -3
- package/src/sdk/UsersSdk.ts +2 -2
- package/tests/client/env.ts +11 -0
- package/tests/client/lib/dom_purify.spec.ts +12 -0
- package/tests/client/sdk/DataCatalog.spec.ts +565 -0
- package/tests/client/sdk/Deployments.spec.ts +214 -0
- package/tests/client/sdk/FilesSdk.spec.ts +716 -0
- package/tests/client/sdk/groups.spec.ts +244 -0
- package/tests/client/sdk/network-mock/ai-mock.spec.ts +124 -0
- package/tests/client/sdk/network-mock/deployments-mock.spec.ts +182 -0
- package/tests/client/sdk/network-mock/files-mock.spec.ts +119 -0
- package/tests/client/sdk/network-mock/groups-mock.spec.ts +83 -0
- package/tests/client/sdk/network-mock/organizations-mock.spec.ts +129 -0
- package/tests/client/sdk/network-mock/shared-mock.spec.ts +25 -0
- package/tests/client/sdk/network-mock/trash-mock.spec.ts +43 -0
- package/tests/client/sdk/network-mock/users-mock.spec.ts +79 -0
- package/tests/client/sdk/organizations.spec.ts +2468 -0
- package/tests/client/src/platform.spec.ts +14 -0
- package/tests/unit/mocking/current/File.spec.ts +5 -5
- package/tests/unit/mocking/current/Trash.spec.ts +5 -5
- package/tests/unit/modeling/RuntimeApiModel.spec.ts +24 -4
- package/tests/unit/models/File/createFileCapabilities.spec.ts +3 -2
- package/tsconfig.build.json +8 -0
- package/RELEASE.md +0 -163
- package/RELEASE_SETUP.md +0 -237
- package/TESTING_SETUP.md +0 -198
- package/Testing.md +0 -21
- package/amf-models/dialects/ApiProjectVocabulary.yaml +0 -233
- package/amf-models/dialects/Environment.yaml +0 -38
- package/amf-models/dialects/HttpProject.yaml +0 -55
- package/amf-models/dialects/License.yaml +0 -31
- package/amf-models/dialects/ProjectFolder.yaml +0 -43
- package/amf-models/dialects/ProjectItem.yaml +0 -22
- package/amf-models/dialects/ProjectRequest.yaml +0 -23
- package/amf-models/dialects/ProjectSchema.yaml +0 -36
- package/amf-models/dialects/Property.yaml +0 -43
- package/amf-models/dialects/Provider.yaml +0 -32
- package/amf-models/dialects/Server.yaml +0 -31
- package/amf-models/dialects/Thing.yaml +0 -28
- package/bin/context.ts +0 -22
- package/bin/server.ts +0 -83
- package/build/src/authorization/AuthorizationError.d.ts +0 -24
- package/build/src/authorization/AuthorizationError.d.ts.map +0 -1
- package/build/src/authorization/AuthorizationError.js +0 -32
- package/build/src/authorization/AuthorizationError.js.map +0 -1
- package/build/src/authorization/CustomParameters.d.ts +0 -25
- package/build/src/authorization/CustomParameters.d.ts.map +0 -1
- package/build/src/authorization/CustomParameters.js +0 -61
- package/build/src/authorization/CustomParameters.js.map +0 -1
- package/build/src/authorization/OAuth2Authorization.d.ts +0 -333
- package/build/src/authorization/OAuth2Authorization.d.ts.map +0 -1
- package/build/src/authorization/OAuth2Authorization.js +0 -963
- package/build/src/authorization/OAuth2Authorization.js.map +0 -1
- package/build/src/authorization/OidcAuthorization.d.ts +0 -36
- package/build/src/authorization/OidcAuthorization.d.ts.map +0 -1
- package/build/src/authorization/OidcAuthorization.js +0 -146
- package/build/src/authorization/OidcAuthorization.js.map +0 -1
- package/build/src/authorization/Utils.d.ts +0 -52
- package/build/src/authorization/Utils.d.ts.map +0 -1
- package/build/src/authorization/Utils.js +0 -130
- package/build/src/authorization/Utils.js.map +0 -1
- package/build/src/authorization/index.d.ts +0 -10
- package/build/src/authorization/index.d.ts.map +0 -1
- package/build/src/authorization/index.js +0 -10
- package/build/src/authorization/index.js.map +0 -1
- package/build/src/authorization/lib/IframeAuthorization.d.ts +0 -54
- package/build/src/authorization/lib/IframeAuthorization.d.ts.map +0 -1
- package/build/src/authorization/lib/IframeAuthorization.js +0 -115
- package/build/src/authorization/lib/IframeAuthorization.js.map +0 -1
- package/build/src/authorization/lib/KnownGrants.d.ts +0 -7
- package/build/src/authorization/lib/KnownGrants.d.ts.map +0 -1
- package/build/src/authorization/lib/KnownGrants.js +0 -7
- package/build/src/authorization/lib/KnownGrants.js.map +0 -1
- package/build/src/authorization/lib/PopupAuthorization.d.ts +0 -42
- package/build/src/authorization/lib/PopupAuthorization.d.ts.map +0 -1
- package/build/src/authorization/lib/PopupAuthorization.js +0 -73
- package/build/src/authorization/lib/PopupAuthorization.js.map +0 -1
- package/build/src/authorization/lib/SecurityProcessor.d.ts +0 -67
- package/build/src/authorization/lib/SecurityProcessor.d.ts.map +0 -1
- package/build/src/authorization/lib/SecurityProcessor.js +0 -245
- package/build/src/authorization/lib/SecurityProcessor.js.map +0 -1
- package/build/src/authorization/lib/Tokens.d.ts +0 -56
- package/build/src/authorization/lib/Tokens.d.ts.map +0 -1
- package/build/src/authorization/lib/Tokens.js +0 -121
- package/build/src/authorization/lib/Tokens.js.map +0 -1
- package/build/src/authorization/lib/Utils.d.ts +0 -45
- package/build/src/authorization/lib/Utils.d.ts.map +0 -1
- package/build/src/authorization/lib/Utils.js +0 -91
- package/build/src/authorization/lib/Utils.js.map +0 -1
- package/build/src/authorization/types.d.ts +0 -196
- package/build/src/authorization/types.d.ts.map +0 -1
- package/build/src/authorization/types.js +0 -2
- package/build/src/authorization/types.js.map +0 -1
- package/build/src/cookies/CookieJar.d.ts +0 -24
- package/build/src/cookies/CookieJar.d.ts.map +0 -1
- package/build/src/cookies/CookieJar.js +0 -3
- package/build/src/cookies/CookieJar.js.map +0 -1
- package/build/src/cookies/CookieParser.d.ts +0 -81
- package/build/src/cookies/CookieParser.d.ts.map +0 -1
- package/build/src/cookies/CookieParser.js +0 -333
- package/build/src/cookies/CookieParser.js.map +0 -1
- package/build/src/cookies/InMemoryCookieJar.d.ts +0 -13
- package/build/src/cookies/InMemoryCookieJar.d.ts.map +0 -1
- package/build/src/cookies/InMemoryCookieJar.js +0 -68
- package/build/src/cookies/InMemoryCookieJar.js.map +0 -1
- package/build/src/cookies/Punycode.d.ts +0 -13
- package/build/src/cookies/Punycode.d.ts.map +0 -1
- package/build/src/cookies/Punycode.js +0 -127
- package/build/src/cookies/Punycode.js.map +0 -1
- package/build/src/data/DataExtractor.d.ts +0 -66
- package/build/src/data/DataExtractor.d.ts.map +0 -1
- package/build/src/data/DataExtractor.js +0 -178
- package/build/src/data/DataExtractor.js.map +0 -1
- package/build/src/data/DataReader.d.ts +0 -11
- package/build/src/data/DataReader.d.ts.map +0 -1
- package/build/src/data/DataReader.js +0 -4
- package/build/src/data/DataReader.js.map +0 -1
- package/build/src/data/JmespathReader.d.ts +0 -13
- package/build/src/data/JmespathReader.d.ts.map +0 -1
- package/build/src/data/JmespathReader.js +0 -27
- package/build/src/data/JmespathReader.js.map +0 -1
- package/build/src/data/Json2Xml.d.ts +0 -86
- package/build/src/data/Json2Xml.d.ts.map +0 -1
- package/build/src/data/Json2Xml.js +0 -187
- package/build/src/data/Json2Xml.js.map +0 -1
- package/build/src/data/JsonReader.d.ts +0 -9
- package/build/src/data/JsonReader.d.ts.map +0 -1
- package/build/src/data/JsonReader.js +0 -40
- package/build/src/data/JsonReader.js.map +0 -1
- package/build/src/data/PayloadPointer.d.ts +0 -22
- package/build/src/data/PayloadPointer.d.ts.map +0 -1
- package/build/src/data/PayloadPointer.js +0 -48
- package/build/src/data/PayloadPointer.js.map +0 -1
- package/build/src/data/RequestDataExtractor.d.ts +0 -49
- package/build/src/data/RequestDataExtractor.d.ts.map +0 -1
- package/build/src/data/RequestDataExtractor.js +0 -111
- package/build/src/data/RequestDataExtractor.js.map +0 -1
- package/build/src/data/UrlEncodedReader.d.ts +0 -13
- package/build/src/data/UrlEncodedReader.d.ts.map +0 -1
- package/build/src/data/UrlEncodedReader.js +0 -21
- package/build/src/data/UrlEncodedReader.js.map +0 -1
- package/build/src/data/XmlReader.d.ts +0 -15
- package/build/src/data/XmlReader.d.ts.map +0 -1
- package/build/src/data/XmlReader.js +0 -122
- package/build/src/data/XmlReader.js.map +0 -1
- package/build/src/data/index.d.ts +0 -10
- package/build/src/data/index.d.ts.map +0 -1
- package/build/src/data/index.js +0 -10
- package/build/src/data/index.js.map +0 -1
- package/build/src/events/authorization/AuthorizationEventTypes.d.ts +0 -23
- package/build/src/events/authorization/AuthorizationEventTypes.d.ts.map +0 -1
- package/build/src/events/authorization/AuthorizationEventTypes.js +0 -23
- package/build/src/events/authorization/AuthorizationEventTypes.js.map +0 -1
- package/build/src/events/authorization/AuthorizationEvents.d.ts +0 -35
- package/build/src/events/authorization/AuthorizationEvents.d.ts.map +0 -1
- package/build/src/events/authorization/AuthorizationEvents.js +0 -55
- package/build/src/events/authorization/AuthorizationEvents.js.map +0 -1
- package/build/src/events/cookies/CookieEventTypes.d.ts +0 -14
- package/build/src/events/cookies/CookieEventTypes.d.ts.map +0 -1
- package/build/src/events/cookies/CookieEventTypes.js +0 -14
- package/build/src/events/cookies/CookieEventTypes.js.map +0 -1
- package/build/src/events/cookies/CookieEvents.d.ts +0 -92
- package/build/src/events/cookies/CookieEvents.d.ts.map +0 -1
- package/build/src/events/cookies/CookieEvents.js +0 -128
- package/build/src/events/cookies/CookieEvents.js.map +0 -1
- package/build/src/events/environment/EnvironmentEventTypes.d.ts +0 -4
- package/build/src/events/environment/EnvironmentEventTypes.d.ts.map +0 -1
- package/build/src/events/environment/EnvironmentEventTypes.js +0 -4
- package/build/src/events/environment/EnvironmentEventTypes.js.map +0 -1
- package/build/src/events/environment/EnvironmentEvents.d.ts +0 -16
- package/build/src/events/environment/EnvironmentEvents.d.ts.map +0 -1
- package/build/src/events/environment/EnvironmentEvents.js +0 -20
- package/build/src/events/environment/EnvironmentEvents.js.map +0 -1
- package/build/src/events/transport/TransportEventTypes.d.ts +0 -30
- package/build/src/events/transport/TransportEventTypes.d.ts.map +0 -1
- package/build/src/events/transport/TransportEventTypes.js +0 -31
- package/build/src/events/transport/TransportEventTypes.js.map +0 -1
- package/build/src/events/transport/TransportEvents.d.ts +0 -63
- package/build/src/events/transport/TransportEvents.d.ts.map +0 -1
- package/build/src/events/transport/TransportEvents.js +0 -77
- package/build/src/events/transport/TransportEvents.js.map +0 -1
- package/build/src/legacy.d.ts +0 -40
- package/build/src/legacy.d.ts.map +0 -1
- package/build/src/legacy.js +0 -40
- package/build/src/legacy.js.map +0 -1
- package/build/src/lib/Buffer.d.ts +0 -21
- package/build/src/lib/Buffer.d.ts.map +0 -1
- package/build/src/lib/Buffer.js +0 -57
- package/build/src/lib/Buffer.js.map +0 -1
- package/build/src/lib/definitions/HttpDefinitions.d.ts +0 -35
- package/build/src/lib/definitions/HttpDefinitions.d.ts.map +0 -1
- package/build/src/lib/definitions/HttpDefinitions.js +0 -59
- package/build/src/lib/definitions/HttpDefinitions.js.map +0 -1
- package/build/src/lib/fs/Fs.d.ts +0 -53
- package/build/src/lib/fs/Fs.d.ts.map +0 -1
- package/build/src/lib/fs/Fs.js +0 -245
- package/build/src/lib/fs/Fs.js.map +0 -1
- package/build/src/lib/headers/HeadersData.d.ts +0 -36
- package/build/src/lib/headers/HeadersData.d.ts.map +0 -1
- package/build/src/lib/headers/HeadersData.js +0 -657
- package/build/src/lib/headers/HeadersData.js.map +0 -1
- package/build/src/lib/parsers/UriTemplate.d.ts +0 -110
- package/build/src/lib/parsers/UriTemplate.d.ts.map +0 -1
- package/build/src/lib/parsers/UriTemplate.js +0 -437
- package/build/src/lib/parsers/UriTemplate.js.map +0 -1
- package/build/src/lib/parsers/UrlEncoder.d.ts +0 -57
- package/build/src/lib/parsers/UrlEncoder.d.ts.map +0 -1
- package/build/src/lib/parsers/UrlEncoder.js +0 -125
- package/build/src/lib/parsers/UrlEncoder.js.map +0 -1
- package/build/src/lib/parsers/UrlParser.d.ts +0 -105
- package/build/src/lib/parsers/UrlParser.d.ts.map +0 -1
- package/build/src/lib/parsers/UrlParser.js +0 -190
- package/build/src/lib/parsers/UrlParser.js.map +0 -1
- package/build/src/lib/parsers/UrlProcessor.d.ts +0 -285
- package/build/src/lib/parsers/UrlProcessor.d.ts.map +0 -1
- package/build/src/lib/parsers/UrlProcessor.js +0 -763
- package/build/src/lib/parsers/UrlProcessor.js.map +0 -1
- package/build/src/lib/parsers/UrlValueParser.d.ts +0 -93
- package/build/src/lib/parsers/UrlValueParser.d.ts.map +0 -1
- package/build/src/lib/parsers/UrlValueParser.js +0 -172
- package/build/src/lib/parsers/UrlValueParser.js.map +0 -1
- package/build/src/lib/timers/Timers.d.ts +0 -15
- package/build/src/lib/timers/Timers.d.ts.map +0 -1
- package/build/src/lib/timers/Timers.js +0 -28
- package/build/src/lib/timers/Timers.js.map +0 -1
- package/build/src/lib/transformers/PayloadSerializer.d.ts +0 -221
- package/build/src/lib/transformers/PayloadSerializer.d.ts.map +0 -1
- package/build/src/lib/transformers/PayloadSerializer.js +0 -423
- package/build/src/lib/transformers/PayloadSerializer.js.map +0 -1
- package/build/src/mocking/LegacyInterfaces.d.ts +0 -47
- package/build/src/mocking/LegacyInterfaces.d.ts.map +0 -1
- package/build/src/mocking/LegacyInterfaces.js +0 -2
- package/build/src/mocking/LegacyInterfaces.js.map +0 -1
- package/build/src/mocking/LegacyMock.d.ts +0 -25
- package/build/src/mocking/LegacyMock.d.ts.map +0 -1
- package/build/src/mocking/LegacyMock.js +0 -34
- package/build/src/mocking/LegacyMock.js.map +0 -1
- package/build/src/mocking/ProjectMock.d.ts +0 -27
- package/build/src/mocking/ProjectMock.d.ts.map +0 -1
- package/build/src/mocking/ProjectMock.js +0 -31
- package/build/src/mocking/ProjectMock.js.map +0 -1
- package/build/src/mocking/legacy/Authorization.d.ts +0 -21
- package/build/src/mocking/legacy/Authorization.d.ts.map +0 -1
- package/build/src/mocking/legacy/Authorization.js +0 -35
- package/build/src/mocking/legacy/Authorization.js.map +0 -1
- package/build/src/mocking/legacy/Certificates.d.ts +0 -57
- package/build/src/mocking/legacy/Certificates.d.ts.map +0 -1
- package/build/src/mocking/legacy/Certificates.js +0 -128
- package/build/src/mocking/legacy/Certificates.js.map +0 -1
- package/build/src/mocking/legacy/Cookies.d.ts +0 -22
- package/build/src/mocking/legacy/Cookies.d.ts.map +0 -1
- package/build/src/mocking/legacy/Cookies.js +0 -48
- package/build/src/mocking/legacy/Cookies.js.map +0 -1
- package/build/src/mocking/legacy/HostRules.d.ts +0 -23
- package/build/src/mocking/legacy/HostRules.d.ts.map +0 -1
- package/build/src/mocking/legacy/HostRules.js +0 -40
- package/build/src/mocking/legacy/HostRules.js.map +0 -1
- package/build/src/mocking/legacy/Http.d.ts +0 -85
- package/build/src/mocking/legacy/Http.d.ts.map +0 -1
- package/build/src/mocking/legacy/Http.js +0 -199
- package/build/src/mocking/legacy/Http.js.map +0 -1
- package/build/src/mocking/legacy/HttpResponse.d.ts +0 -24
- package/build/src/mocking/legacy/HttpResponse.d.ts.map +0 -1
- package/build/src/mocking/legacy/HttpResponse.js +0 -98
- package/build/src/mocking/legacy/HttpResponse.js.map +0 -1
- package/build/src/mocking/legacy/RestApi.d.ts +0 -16
- package/build/src/mocking/legacy/RestApi.d.ts.map +0 -1
- package/build/src/mocking/legacy/RestApi.js +0 -63
- package/build/src/mocking/legacy/RestApi.js.map +0 -1
- package/build/src/mocking/legacy/Urls.d.ts +0 -22
- package/build/src/mocking/legacy/Urls.d.ts.map +0 -1
- package/build/src/mocking/legacy/Urls.js +0 -41
- package/build/src/mocking/legacy/Urls.js.map +0 -1
- package/build/src/mocking/legacy/Variables.d.ts +0 -19
- package/build/src/mocking/legacy/Variables.d.ts.map +0 -1
- package/build/src/mocking/legacy/Variables.js +0 -51
- package/build/src/mocking/legacy/Variables.js.map +0 -1
- package/build/src/mocking/lib/Certificates.d.ts +0 -28
- package/build/src/mocking/lib/Certificates.d.ts.map +0 -1
- package/build/src/mocking/lib/Certificates.js +0 -55
- package/build/src/mocking/lib/Certificates.js.map +0 -1
- package/build/src/mocking/lib/History.d.ts +0 -75
- package/build/src/mocking/lib/History.d.ts.map +0 -1
- package/build/src/mocking/lib/History.js +0 -128
- package/build/src/mocking/lib/History.js.map +0 -1
- package/build/src/mocking/lib/HostRules.d.ts +0 -23
- package/build/src/mocking/lib/HostRules.d.ts.map +0 -1
- package/build/src/mocking/lib/HostRules.js +0 -40
- package/build/src/mocking/lib/HostRules.js.map +0 -1
- package/build/src/mocking/lib/Request.d.ts +0 -44
- package/build/src/mocking/lib/Request.d.ts.map +0 -1
- package/build/src/mocking/lib/Request.js +0 -70
- package/build/src/mocking/lib/Request.js.map +0 -1
- package/build/src/mocking/lib/Response.d.ts +0 -38
- package/build/src/mocking/lib/Response.d.ts.map +0 -1
- package/build/src/mocking/lib/Response.js +0 -99
- package/build/src/mocking/lib/Response.js.map +0 -1
- package/build/src/mocking/lib/Url.d.ts +0 -22
- package/build/src/mocking/lib/Url.d.ts.map +0 -1
- package/build/src/mocking/lib/Url.js +0 -40
- package/build/src/mocking/lib/Url.js.map +0 -1
- package/build/src/models/Authorization.d.ts +0 -452
- package/build/src/models/Authorization.d.ts.map +0 -1
- package/build/src/models/Authorization.js +0 -2
- package/build/src/models/Authorization.js.map +0 -1
- package/build/src/models/AuthorizationData.d.ts +0 -30
- package/build/src/models/AuthorizationData.d.ts.map +0 -1
- package/build/src/models/AuthorizationData.js +0 -59
- package/build/src/models/AuthorizationData.js.map +0 -1
- package/build/src/models/CertificateFile.d.ts +0 -19
- package/build/src/models/CertificateFile.d.ts.map +0 -1
- package/build/src/models/CertificateFile.js +0 -70
- package/build/src/models/CertificateFile.js.map +0 -1
- package/build/src/models/ClientCertificate.d.ts +0 -188
- package/build/src/models/ClientCertificate.d.ts.map +0 -1
- package/build/src/models/ClientCertificate.js +0 -193
- package/build/src/models/ClientCertificate.js.map +0 -1
- package/build/src/models/Environment.d.ts +0 -134
- package/build/src/models/Environment.d.ts.map +0 -1
- package/build/src/models/Environment.js +0 -256
- package/build/src/models/Environment.js.map +0 -1
- package/build/src/models/ErrorResponse.d.ts +0 -37
- package/build/src/models/ErrorResponse.d.ts.map +0 -1
- package/build/src/models/ErrorResponse.js +0 -103
- package/build/src/models/ErrorResponse.js.map +0 -1
- package/build/src/models/HeadersArray.d.ts +0 -22
- package/build/src/models/HeadersArray.d.ts.map +0 -1
- package/build/src/models/HeadersArray.js +0 -58
- package/build/src/models/HeadersArray.js.map +0 -1
- package/build/src/models/HostRule.d.ts +0 -87
- package/build/src/models/HostRule.d.ts.map +0 -1
- package/build/src/models/HostRule.js +0 -142
- package/build/src/models/HostRule.js.map +0 -1
- package/build/src/models/HttpCookie.d.ts +0 -175
- package/build/src/models/HttpCookie.d.ts.map +0 -1
- package/build/src/models/HttpCookie.js +0 -343
- package/build/src/models/HttpCookie.js.map +0 -1
- package/build/src/models/HttpHistory.d.ts +0 -143
- package/build/src/models/HttpHistory.d.ts.map +0 -1
- package/build/src/models/HttpHistory.js +0 -179
- package/build/src/models/HttpHistory.js.map +0 -1
- package/build/src/models/HttpProject.d.ts +0 -540
- package/build/src/models/HttpProject.d.ts.map +0 -1
- package/build/src/models/HttpProject.js +0 -1237
- package/build/src/models/HttpProject.js.map +0 -1
- package/build/src/models/HttpRequest.d.ts +0 -88
- package/build/src/models/HttpRequest.d.ts.map +0 -1
- package/build/src/models/HttpRequest.js +0 -127
- package/build/src/models/HttpRequest.js.map +0 -1
- package/build/src/models/HttpResponse.d.ts +0 -54
- package/build/src/models/HttpResponse.d.ts.map +0 -1
- package/build/src/models/HttpResponse.js +0 -114
- package/build/src/models/HttpResponse.js.map +0 -1
- package/build/src/models/License.d.ts +0 -53
- package/build/src/models/License.d.ts.map +0 -1
- package/build/src/models/License.js +0 -91
- package/build/src/models/License.js.map +0 -1
- package/build/src/models/Project.d.ts +0 -27
- package/build/src/models/Project.d.ts.map +0 -1
- package/build/src/models/Project.js +0 -81
- package/build/src/models/Project.js.map +0 -1
- package/build/src/models/ProjectDefinitionProperty.d.ts +0 -35
- package/build/src/models/ProjectDefinitionProperty.d.ts.map +0 -1
- package/build/src/models/ProjectDefinitionProperty.js +0 -2
- package/build/src/models/ProjectDefinitionProperty.js.map +0 -1
- package/build/src/models/ProjectExecution.d.ts +0 -116
- package/build/src/models/ProjectExecution.d.ts.map +0 -1
- package/build/src/models/ProjectExecution.js +0 -147
- package/build/src/models/ProjectExecution.js.map +0 -1
- package/build/src/models/ProjectFolder.d.ts +0 -219
- package/build/src/models/ProjectFolder.d.ts.map +0 -1
- package/build/src/models/ProjectFolder.js +0 -341
- package/build/src/models/ProjectFolder.js.map +0 -1
- package/build/src/models/ProjectItem.d.ts +0 -68
- package/build/src/models/ProjectItem.d.ts.map +0 -1
- package/build/src/models/ProjectItem.js +0 -139
- package/build/src/models/ProjectItem.js.map +0 -1
- package/build/src/models/ProjectParent.d.ts +0 -27
- package/build/src/models/ProjectParent.d.ts.map +0 -1
- package/build/src/models/ProjectParent.js +0 -19
- package/build/src/models/ProjectParent.js.map +0 -1
- package/build/src/models/ProjectRequest.d.ts +0 -203
- package/build/src/models/ProjectRequest.d.ts.map +0 -1
- package/build/src/models/ProjectRequest.js +0 -440
- package/build/src/models/ProjectRequest.js.map +0 -1
- package/build/src/models/ProjectSchema.d.ts +0 -106
- package/build/src/models/ProjectSchema.d.ts.map +0 -1
- package/build/src/models/ProjectSchema.js +0 -156
- package/build/src/models/ProjectSchema.js.map +0 -1
- package/build/src/models/Property.d.ts +0 -140
- package/build/src/models/Property.d.ts.map +0 -1
- package/build/src/models/Property.js +0 -427
- package/build/src/models/Property.js.map +0 -1
- package/build/src/models/Provider.d.ts +0 -54
- package/build/src/models/Provider.d.ts.map +0 -1
- package/build/src/models/Provider.js +0 -75
- package/build/src/models/Provider.js.map +0 -1
- package/build/src/models/Request.d.ts +0 -175
- package/build/src/models/Request.d.ts.map +0 -1
- package/build/src/models/Request.js +0 -398
- package/build/src/models/Request.js.map +0 -1
- package/build/src/models/RequestAuthorization.d.ts +0 -58
- package/build/src/models/RequestAuthorization.d.ts.map +0 -1
- package/build/src/models/RequestAuthorization.js +0 -88
- package/build/src/models/RequestAuthorization.js.map +0 -1
- package/build/src/models/RequestConfig.d.ts +0 -174
- package/build/src/models/RequestConfig.d.ts.map +0 -1
- package/build/src/models/RequestConfig.js +0 -274
- package/build/src/models/RequestConfig.js.map +0 -1
- package/build/src/models/RequestLog.d.ts +0 -88
- package/build/src/models/RequestLog.d.ts.map +0 -1
- package/build/src/models/RequestLog.js +0 -158
- package/build/src/models/RequestLog.js.map +0 -1
- package/build/src/models/RequestTime.d.ts +0 -35
- package/build/src/models/RequestTime.d.ts.map +0 -1
- package/build/src/models/RequestTime.js +0 -89
- package/build/src/models/RequestTime.js.map +0 -1
- package/build/src/models/RequestUiMeta.d.ts +0 -166
- package/build/src/models/RequestUiMeta.d.ts.map +0 -1
- package/build/src/models/RequestUiMeta.js +0 -110
- package/build/src/models/RequestUiMeta.js.map +0 -1
- package/build/src/models/RequestsSize.d.ts +0 -33
- package/build/src/models/RequestsSize.d.ts.map +0 -1
- package/build/src/models/RequestsSize.js +0 -50
- package/build/src/models/RequestsSize.js.map +0 -1
- package/build/src/models/Response.d.ts +0 -61
- package/build/src/models/Response.d.ts.map +0 -1
- package/build/src/models/Response.js +0 -140
- package/build/src/models/Response.js.map +0 -1
- package/build/src/models/ResponseAuthorization.d.ts +0 -55
- package/build/src/models/ResponseAuthorization.d.ts.map +0 -1
- package/build/src/models/ResponseAuthorization.js +0 -82
- package/build/src/models/ResponseAuthorization.js.map +0 -1
- package/build/src/models/ResponseRedirect.d.ts +0 -72
- package/build/src/models/ResponseRedirect.d.ts.map +0 -1
- package/build/src/models/ResponseRedirect.js +0 -125
- package/build/src/models/ResponseRedirect.js.map +0 -1
- package/build/src/models/SentRequest.d.ts +0 -61
- package/build/src/models/SentRequest.d.ts.map +0 -1
- package/build/src/models/SentRequest.js +0 -91
- package/build/src/models/SentRequest.js.map +0 -1
- package/build/src/models/SerializablePayload.d.ts +0 -60
- package/build/src/models/SerializablePayload.d.ts.map +0 -1
- package/build/src/models/SerializablePayload.js +0 -79
- package/build/src/models/SerializablePayload.js.map +0 -1
- package/build/src/models/Server.d.ts +0 -89
- package/build/src/models/Server.d.ts.map +0 -1
- package/build/src/models/Server.js +0 -151
- package/build/src/models/Server.js.map +0 -1
- package/build/src/models/Url.d.ts +0 -50
- package/build/src/models/Url.d.ts.map +0 -1
- package/build/src/models/Url.js +0 -69
- package/build/src/models/Url.js.map +0 -1
- package/build/src/models/http-flows/AssertionError.d.ts +0 -37
- package/build/src/models/http-flows/AssertionError.d.ts.map +0 -1
- package/build/src/models/http-flows/AssertionError.js +0 -35
- package/build/src/models/http-flows/AssertionError.js.map +0 -1
- package/build/src/models/http-flows/HttpAssertion.d.ts +0 -86
- package/build/src/models/http-flows/HttpAssertion.d.ts.map +0 -1
- package/build/src/models/http-flows/HttpAssertion.js +0 -53
- package/build/src/models/http-flows/HttpAssertion.js.map +0 -1
- package/build/src/models/http-flows/HttpFlows.d.ts +0 -78
- package/build/src/models/http-flows/HttpFlows.d.ts.map +0 -1
- package/build/src/models/http-flows/HttpFlows.js +0 -35
- package/build/src/models/http-flows/HttpFlows.js.map +0 -1
- package/build/src/models/http-flows/HttpStep.d.ts +0 -30
- package/build/src/models/http-flows/HttpStep.d.ts.map +0 -1
- package/build/src/models/http-flows/HttpStep.js +0 -30
- package/build/src/models/http-flows/HttpStep.js.map +0 -1
- package/build/src/models/http-flows/LegacyTranslator.d.ts +0 -18
- package/build/src/models/http-flows/LegacyTranslator.d.ts.map +0 -1
- package/build/src/models/http-flows/LegacyTranslator.js +0 -278
- package/build/src/models/http-flows/LegacyTranslator.js.map +0 -1
- package/build/src/models/http-flows/steps/assertion/EqualAssertion.d.ts +0 -75
- package/build/src/models/http-flows/steps/assertion/EqualAssertion.d.ts.map +0 -1
- package/build/src/models/http-flows/steps/assertion/EqualAssertion.js +0 -79
- package/build/src/models/http-flows/steps/assertion/EqualAssertion.js.map +0 -1
- package/build/src/models/http-flows/steps/assertion/GreaterThanAssertion.d.ts +0 -35
- package/build/src/models/http-flows/steps/assertion/GreaterThanAssertion.d.ts.map +0 -1
- package/build/src/models/http-flows/steps/assertion/GreaterThanAssertion.js +0 -59
- package/build/src/models/http-flows/steps/assertion/GreaterThanAssertion.js.map +0 -1
- package/build/src/models/http-flows/steps/assertion/IncludesAssertion.d.ts +0 -27
- package/build/src/models/http-flows/steps/assertion/IncludesAssertion.d.ts.map +0 -1
- package/build/src/models/http-flows/steps/assertion/IncludesAssertion.js +0 -45
- package/build/src/models/http-flows/steps/assertion/IncludesAssertion.js.map +0 -1
- package/build/src/models/http-flows/steps/assertion/IsEmptyAssertion.d.ts +0 -19
- package/build/src/models/http-flows/steps/assertion/IsEmptyAssertion.d.ts.map +0 -1
- package/build/src/models/http-flows/steps/assertion/IsEmptyAssertion.js +0 -29
- package/build/src/models/http-flows/steps/assertion/IsEmptyAssertion.js.map +0 -1
- package/build/src/models/http-flows/steps/assertion/IsNotEmptyAssertion.d.ts +0 -19
- package/build/src/models/http-flows/steps/assertion/IsNotEmptyAssertion.d.ts.map +0 -1
- package/build/src/models/http-flows/steps/assertion/IsNotEmptyAssertion.js +0 -29
- package/build/src/models/http-flows/steps/assertion/IsNotEmptyAssertion.js.map +0 -1
- package/build/src/models/http-flows/steps/assertion/LengthOfAssertion.d.ts +0 -27
- package/build/src/models/http-flows/steps/assertion/LengthOfAssertion.d.ts.map +0 -1
- package/build/src/models/http-flows/steps/assertion/LengthOfAssertion.js +0 -45
- package/build/src/models/http-flows/steps/assertion/LengthOfAssertion.js.map +0 -1
- package/build/src/models/http-flows/steps/assertion/LessThanAssertion.d.ts +0 -35
- package/build/src/models/http-flows/steps/assertion/LessThanAssertion.d.ts.map +0 -1
- package/build/src/models/http-flows/steps/assertion/LessThanAssertion.js +0 -59
- package/build/src/models/http-flows/steps/assertion/LessThanAssertion.js.map +0 -1
- package/build/src/models/http-flows/steps/assertion/MatchesAssertion.d.ts +0 -27
- package/build/src/models/http-flows/steps/assertion/MatchesAssertion.d.ts.map +0 -1
- package/build/src/models/http-flows/steps/assertion/MatchesAssertion.js +0 -45
- package/build/src/models/http-flows/steps/assertion/MatchesAssertion.js.map +0 -1
- package/build/src/models/http-flows/steps/assertion/MatchesSchemaAssertion.d.ts +0 -39
- package/build/src/models/http-flows/steps/assertion/MatchesSchemaAssertion.d.ts.map +0 -1
- package/build/src/models/http-flows/steps/assertion/MatchesSchemaAssertion.js +0 -60
- package/build/src/models/http-flows/steps/assertion/MatchesSchemaAssertion.js.map +0 -1
- package/build/src/models/http-flows/steps/assertion/NotEqualAssertion.d.ts +0 -75
- package/build/src/models/http-flows/steps/assertion/NotEqualAssertion.d.ts.map +0 -1
- package/build/src/models/http-flows/steps/assertion/NotEqualAssertion.js +0 -79
- package/build/src/models/http-flows/steps/assertion/NotEqualAssertion.js.map +0 -1
- package/build/src/models/http-flows/steps/assertion/NotIncludesAssertion.d.ts +0 -27
- package/build/src/models/http-flows/steps/assertion/NotIncludesAssertion.d.ts.map +0 -1
- package/build/src/models/http-flows/steps/assertion/NotIncludesAssertion.js +0 -45
- package/build/src/models/http-flows/steps/assertion/NotIncludesAssertion.js.map +0 -1
- package/build/src/models/http-flows/steps/assertion/NotOkAssertion.d.ts +0 -19
- package/build/src/models/http-flows/steps/assertion/NotOkAssertion.d.ts.map +0 -1
- package/build/src/models/http-flows/steps/assertion/NotOkAssertion.js +0 -29
- package/build/src/models/http-flows/steps/assertion/NotOkAssertion.js.map +0 -1
- package/build/src/models/http-flows/steps/assertion/NotToBeAssertion.d.ts +0 -28
- package/build/src/models/http-flows/steps/assertion/NotToBeAssertion.d.ts.map +0 -1
- package/build/src/models/http-flows/steps/assertion/NotToBeAssertion.js +0 -45
- package/build/src/models/http-flows/steps/assertion/NotToBeAssertion.js.map +0 -1
- package/build/src/models/http-flows/steps/assertion/OkAssertion.d.ts +0 -19
- package/build/src/models/http-flows/steps/assertion/OkAssertion.d.ts.map +0 -1
- package/build/src/models/http-flows/steps/assertion/OkAssertion.js +0 -29
- package/build/src/models/http-flows/steps/assertion/OkAssertion.js.map +0 -1
- package/build/src/models/http-flows/steps/assertion/ToBeAssertion.d.ts +0 -34
- package/build/src/models/http-flows/steps/assertion/ToBeAssertion.d.ts.map +0 -1
- package/build/src/models/http-flows/steps/assertion/ToBeAssertion.js +0 -53
- package/build/src/models/http-flows/steps/assertion/ToBeAssertion.js.map +0 -1
- package/build/src/models/http-flows/steps/assertion/index.d.ts +0 -16
- package/build/src/models/http-flows/steps/assertion/index.d.ts.map +0 -1
- package/build/src/models/http-flows/steps/assertion/index.js +0 -16
- package/build/src/models/http-flows/steps/assertion/index.js.map +0 -1
- package/build/src/models/http-flows/steps/data/DeleteCookieStep.d.ts +0 -49
- package/build/src/models/http-flows/steps/data/DeleteCookieStep.d.ts.map +0 -1
- package/build/src/models/http-flows/steps/data/DeleteCookieStep.js +0 -73
- package/build/src/models/http-flows/steps/data/DeleteCookieStep.js.map +0 -1
- package/build/src/models/http-flows/steps/data/DeleteVariableStep.d.ts +0 -37
- package/build/src/models/http-flows/steps/data/DeleteVariableStep.d.ts.map +0 -1
- package/build/src/models/http-flows/steps/data/DeleteVariableStep.js +0 -45
- package/build/src/models/http-flows/steps/data/DeleteVariableStep.js.map +0 -1
- package/build/src/models/http-flows/steps/data/ReadDataSourceStep.d.ts +0 -54
- package/build/src/models/http-flows/steps/data/ReadDataSourceStep.d.ts.map +0 -1
- package/build/src/models/http-flows/steps/data/ReadDataSourceStep.js +0 -60
- package/build/src/models/http-flows/steps/data/ReadDataSourceStep.js.map +0 -1
- package/build/src/models/http-flows/steps/data/ReadDataStep.d.ts +0 -68
- package/build/src/models/http-flows/steps/data/ReadDataStep.d.ts.map +0 -1
- package/build/src/models/http-flows/steps/data/ReadDataStep.js +0 -78
- package/build/src/models/http-flows/steps/data/ReadDataStep.js.map +0 -1
- package/build/src/models/http-flows/steps/data/ReadValueStep.d.ts +0 -46
- package/build/src/models/http-flows/steps/data/ReadValueStep.d.ts.map +0 -1
- package/build/src/models/http-flows/steps/data/ReadValueStep.js +0 -53
- package/build/src/models/http-flows/steps/data/ReadValueStep.js.map +0 -1
- package/build/src/models/http-flows/steps/data/SetCookieStep.d.ts +0 -102
- package/build/src/models/http-flows/steps/data/SetCookieStep.d.ts.map +0 -1
- package/build/src/models/http-flows/steps/data/SetCookieStep.js +0 -139
- package/build/src/models/http-flows/steps/data/SetCookieStep.js.map +0 -1
- package/build/src/models/http-flows/steps/data/SetDataStep.d.ts +0 -78
- package/build/src/models/http-flows/steps/data/SetDataStep.d.ts.map +0 -1
- package/build/src/models/http-flows/steps/data/SetDataStep.js +0 -70
- package/build/src/models/http-flows/steps/data/SetDataStep.js.map +0 -1
- package/build/src/models/http-flows/steps/data/SetVariableStep.d.ts +0 -41
- package/build/src/models/http-flows/steps/data/SetVariableStep.d.ts.map +0 -1
- package/build/src/models/http-flows/steps/data/SetVariableStep.js +0 -45
- package/build/src/models/http-flows/steps/data/SetVariableStep.js.map +0 -1
- package/build/src/models/http-flows/steps/data/index.d.ts +0 -9
- package/build/src/models/http-flows/steps/data/index.d.ts.map +0 -1
- package/build/src/models/http-flows/steps/data/index.js +0 -9
- package/build/src/models/http-flows/steps/data/index.js.map +0 -1
- package/build/src/models/http-flows/steps/transformation/AsLowerCaseStep.d.ts +0 -19
- package/build/src/models/http-flows/steps/transformation/AsLowerCaseStep.d.ts.map +0 -1
- package/build/src/models/http-flows/steps/transformation/AsLowerCaseStep.js +0 -29
- package/build/src/models/http-flows/steps/transformation/AsLowerCaseStep.js.map +0 -1
- package/build/src/models/http-flows/steps/transformation/AsNumberStep.d.ts +0 -19
- package/build/src/models/http-flows/steps/transformation/AsNumberStep.d.ts.map +0 -1
- package/build/src/models/http-flows/steps/transformation/AsNumberStep.js +0 -29
- package/build/src/models/http-flows/steps/transformation/AsNumberStep.js.map +0 -1
- package/build/src/models/http-flows/steps/transformation/AsUpperCaseStep.d.ts +0 -19
- package/build/src/models/http-flows/steps/transformation/AsUpperCaseStep.d.ts.map +0 -1
- package/build/src/models/http-flows/steps/transformation/AsUpperCaseStep.js +0 -29
- package/build/src/models/http-flows/steps/transformation/AsUpperCaseStep.js.map +0 -1
- package/build/src/models/http-flows/steps/transformation/RoundStep.d.ts +0 -44
- package/build/src/models/http-flows/steps/transformation/RoundStep.d.ts.map +0 -1
- package/build/src/models/http-flows/steps/transformation/RoundStep.js +0 -53
- package/build/src/models/http-flows/steps/transformation/RoundStep.js.map +0 -1
- package/build/src/models/http-flows/steps/transformation/SubstringStep.d.ts +0 -41
- package/build/src/models/http-flows/steps/transformation/SubstringStep.d.ts.map +0 -1
- package/build/src/models/http-flows/steps/transformation/SubstringStep.js +0 -67
- package/build/src/models/http-flows/steps/transformation/SubstringStep.js.map +0 -1
- package/build/src/models/http-flows/steps/transformation/TrimStep.d.ts +0 -21
- package/build/src/models/http-flows/steps/transformation/TrimStep.d.ts.map +0 -1
- package/build/src/models/http-flows/steps/transformation/TrimStep.js +0 -30
- package/build/src/models/http-flows/steps/transformation/TrimStep.js.map +0 -1
- package/build/src/models/http-flows/steps/transformation/index.d.ts +0 -7
- package/build/src/models/http-flows/steps/transformation/index.d.ts.map +0 -1
- package/build/src/models/http-flows/steps/transformation/index.js +0 -7
- package/build/src/models/http-flows/steps/transformation/index.js.map +0 -1
- package/build/src/models/legacy/DataExport.d.ts +0 -243
- package/build/src/models/legacy/DataExport.d.ts.map +0 -1
- package/build/src/models/legacy/DataExport.js +0 -2
- package/build/src/models/legacy/DataExport.js.map +0 -1
- package/build/src/models/legacy/Normalizer.d.ts +0 -12
- package/build/src/models/legacy/Normalizer.d.ts.map +0 -1
- package/build/src/models/legacy/Normalizer.js +0 -98
- package/build/src/models/legacy/Normalizer.js.map +0 -1
- package/build/src/models/legacy/actions/Actions.d.ts +0 -259
- package/build/src/models/legacy/actions/Actions.d.ts.map +0 -1
- package/build/src/models/legacy/actions/Actions.js +0 -2
- package/build/src/models/legacy/actions/Actions.js.map +0 -1
- package/build/src/models/legacy/authorization/Authorization.d.ts +0 -542
- package/build/src/models/legacy/authorization/Authorization.d.ts.map +0 -1
- package/build/src/models/legacy/authorization/Authorization.js +0 -2
- package/build/src/models/legacy/authorization/Authorization.js.map +0 -1
- package/build/src/models/legacy/models/ApiTypes.d.ts +0 -193
- package/build/src/models/legacy/models/ApiTypes.d.ts.map +0 -1
- package/build/src/models/legacy/models/ApiTypes.js +0 -2
- package/build/src/models/legacy/models/ApiTypes.js.map +0 -1
- package/build/src/models/legacy/models/ArcLegacyProject.d.ts +0 -38
- package/build/src/models/legacy/models/ArcLegacyProject.d.ts.map +0 -1
- package/build/src/models/legacy/models/ArcLegacyProject.js +0 -2
- package/build/src/models/legacy/models/ArcLegacyProject.js.map +0 -1
- package/build/src/models/legacy/models/AuthData.d.ts +0 -15
- package/build/src/models/legacy/models/AuthData.d.ts.map +0 -1
- package/build/src/models/legacy/models/AuthData.js +0 -2
- package/build/src/models/legacy/models/AuthData.js.map +0 -1
- package/build/src/models/legacy/models/ClientCertificate.d.ts +0 -90
- package/build/src/models/legacy/models/ClientCertificate.d.ts.map +0 -1
- package/build/src/models/legacy/models/ClientCertificate.js +0 -2
- package/build/src/models/legacy/models/ClientCertificate.js.map +0 -1
- package/build/src/models/legacy/models/Cookies.d.ts +0 -53
- package/build/src/models/legacy/models/Cookies.d.ts.map +0 -1
- package/build/src/models/legacy/models/Cookies.js +0 -2
- package/build/src/models/legacy/models/Cookies.js.map +0 -1
- package/build/src/models/legacy/models/HostRule.d.ts +0 -34
- package/build/src/models/legacy/models/HostRule.d.ts.map +0 -1
- package/build/src/models/legacy/models/HostRule.js +0 -2
- package/build/src/models/legacy/models/HostRule.js.map +0 -1
- package/build/src/models/legacy/models/RestApi.d.ts +0 -48
- package/build/src/models/legacy/models/RestApi.d.ts.map +0 -1
- package/build/src/models/legacy/models/RestApi.js +0 -2
- package/build/src/models/legacy/models/RestApi.js.map +0 -1
- package/build/src/models/legacy/models/UrlHistory.d.ts +0 -33
- package/build/src/models/legacy/models/UrlHistory.d.ts.map +0 -1
- package/build/src/models/legacy/models/UrlHistory.js +0 -2
- package/build/src/models/legacy/models/UrlHistory.js.map +0 -1
- package/build/src/models/legacy/models/Variable.d.ts +0 -37
- package/build/src/models/legacy/models/Variable.d.ts.map +0 -1
- package/build/src/models/legacy/models/Variable.js +0 -2
- package/build/src/models/legacy/models/Variable.js.map +0 -1
- package/build/src/models/legacy/models/base.d.ts +0 -91
- package/build/src/models/legacy/models/base.d.ts.map +0 -1
- package/build/src/models/legacy/models/base.js +0 -2
- package/build/src/models/legacy/models/base.js.map +0 -1
- package/build/src/models/legacy/request/ArcRequest.d.ts +0 -387
- package/build/src/models/legacy/request/ArcRequest.d.ts.map +0 -1
- package/build/src/models/legacy/request/ArcRequest.js +0 -2
- package/build/src/models/legacy/request/ArcRequest.js.map +0 -1
- package/build/src/models/legacy/request/ArcResponse.d.ts +0 -166
- package/build/src/models/legacy/request/ArcResponse.d.ts.map +0 -1
- package/build/src/models/legacy/request/ArcResponse.js +0 -2
- package/build/src/models/legacy/request/ArcResponse.js.map +0 -1
- package/build/src/models/legacy/request/HistoryData.d.ts +0 -45
- package/build/src/models/legacy/request/HistoryData.d.ts.map +0 -1
- package/build/src/models/legacy/request/HistoryData.js +0 -2
- package/build/src/models/legacy/request/HistoryData.js.map +0 -1
- package/build/src/models/legacy/request/Legacy.d.ts +0 -43
- package/build/src/models/legacy/request/Legacy.d.ts.map +0 -1
- package/build/src/models/legacy/request/Legacy.js +0 -2
- package/build/src/models/legacy/request/Legacy.js.map +0 -1
- package/build/src/models/legacy/request/RequestBody.d.ts +0 -83
- package/build/src/models/legacy/request/RequestBody.d.ts.map +0 -1
- package/build/src/models/legacy/request/RequestBody.js +0 -2
- package/build/src/models/legacy/request/RequestBody.js.map +0 -1
- package/build/src/models/transformers/ArcDexieTransformer.d.ts +0 -109
- package/build/src/models/transformers/ArcDexieTransformer.d.ts.map +0 -1
- package/build/src/models/transformers/ArcDexieTransformer.js +0 -249
- package/build/src/models/transformers/ArcDexieTransformer.js.map +0 -1
- package/build/src/models/transformers/ArcLegacyNormalizer.d.ts +0 -43
- package/build/src/models/transformers/ArcLegacyNormalizer.d.ts.map +0 -1
- package/build/src/models/transformers/ArcLegacyNormalizer.js +0 -79
- package/build/src/models/transformers/ArcLegacyNormalizer.js.map +0 -1
- package/build/src/models/transformers/ArcLegacyTransformer.d.ts +0 -86
- package/build/src/models/transformers/ArcLegacyTransformer.d.ts.map +0 -1
- package/build/src/models/transformers/ArcLegacyTransformer.js +0 -151
- package/build/src/models/transformers/ArcLegacyTransformer.js.map +0 -1
- package/build/src/models/transformers/ArcPouchTransformer.d.ts +0 -46
- package/build/src/models/transformers/ArcPouchTransformer.d.ts.map +0 -1
- package/build/src/models/transformers/ArcPouchTransformer.js +0 -170
- package/build/src/models/transformers/ArcPouchTransformer.js.map +0 -1
- package/build/src/models/transformers/BaseTransformer.d.ts +0 -49
- package/build/src/models/transformers/BaseTransformer.d.ts.map +0 -1
- package/build/src/models/transformers/BaseTransformer.js +0 -104
- package/build/src/models/transformers/BaseTransformer.js.map +0 -1
- package/build/src/models/transformers/ImportUtils.d.ts +0 -45
- package/build/src/models/transformers/ImportUtils.d.ts.map +0 -1
- package/build/src/models/transformers/ImportUtils.js +0 -131
- package/build/src/models/transformers/ImportUtils.js.map +0 -1
- package/build/src/models/transformers/LegacyDataExportToApiProject.d.ts +0 -16
- package/build/src/models/transformers/LegacyDataExportToApiProject.d.ts.map +0 -1
- package/build/src/models/transformers/LegacyDataExportToApiProject.js +0 -70
- package/build/src/models/transformers/LegacyDataExportToApiProject.js.map +0 -1
- package/build/src/models/transformers/LegacyExportProcessor.d.ts +0 -48
- package/build/src/models/transformers/LegacyExportProcessor.d.ts.map +0 -1
- package/build/src/models/transformers/LegacyExportProcessor.js +0 -214
- package/build/src/models/transformers/LegacyExportProcessor.js.map +0 -1
- package/build/src/models/transformers/PostmanBackupTransformer.d.ts +0 -97
- package/build/src/models/transformers/PostmanBackupTransformer.d.ts.map +0 -1
- package/build/src/models/transformers/PostmanBackupTransformer.js +0 -185
- package/build/src/models/transformers/PostmanBackupTransformer.js.map +0 -1
- package/build/src/models/transformers/PostmanDataTransformer.d.ts +0 -10
- package/build/src/models/transformers/PostmanDataTransformer.d.ts.map +0 -1
- package/build/src/models/transformers/PostmanDataTransformer.js +0 -50
- package/build/src/models/transformers/PostmanDataTransformer.js.map +0 -1
- package/build/src/models/transformers/PostmanTransformer.d.ts +0 -50
- package/build/src/models/transformers/PostmanTransformer.d.ts.map +0 -1
- package/build/src/models/transformers/PostmanTransformer.js +0 -90
- package/build/src/models/transformers/PostmanTransformer.js.map +0 -1
- package/build/src/models/transformers/PostmanV21Transformer.d.ts +0 -129
- package/build/src/models/transformers/PostmanV21Transformer.d.ts.map +0 -1
- package/build/src/models/transformers/PostmanV21Transformer.js +0 -196
- package/build/src/models/transformers/PostmanV21Transformer.js.map +0 -1
- package/build/src/models/transformers/PostmanV2Transformer.d.ts +0 -129
- package/build/src/models/transformers/PostmanV2Transformer.d.ts.map +0 -1
- package/build/src/models/transformers/PostmanV2Transformer.js +0 -196
- package/build/src/models/transformers/PostmanV2Transformer.js.map +0 -1
- package/build/src/models/transformers/har.d.ts +0 -858
- package/build/src/models/transformers/har.d.ts.map +0 -1
- package/build/src/models/transformers/har.js +0 -2
- package/build/src/models/transformers/har.js.map +0 -1
- package/build/src/proxy/HttpProjectProxy.d.ts +0 -42
- package/build/src/proxy/HttpProjectProxy.d.ts.map +0 -1
- package/build/src/proxy/HttpProjectProxy.js +0 -132
- package/build/src/proxy/HttpProjectProxy.js.map +0 -1
- package/build/src/proxy/Proxy.d.ts +0 -27
- package/build/src/proxy/Proxy.d.ts.map +0 -1
- package/build/src/proxy/Proxy.js +0 -7
- package/build/src/proxy/Proxy.js.map +0 -1
- package/build/src/proxy/ProxyService.d.ts +0 -24
- package/build/src/proxy/ProxyService.d.ts.map +0 -1
- package/build/src/proxy/ProxyService.js +0 -29
- package/build/src/proxy/ProxyService.js.map +0 -1
- package/build/src/proxy/RequestProxy.d.ts +0 -52
- package/build/src/proxy/RequestProxy.d.ts.map +0 -1
- package/build/src/proxy/RequestProxy.js +0 -56
- package/build/src/proxy/RequestProxy.js.map +0 -1
- package/build/src/runtime/http-engine/CoreEngine.d.ts +0 -299
- package/build/src/runtime/http-engine/CoreEngine.d.ts.map +0 -1
- package/build/src/runtime/http-engine/CoreEngine.js +0 -928
- package/build/src/runtime/http-engine/CoreEngine.js.map +0 -1
- package/build/src/runtime/http-engine/CoreEngine2.d.ts +0 -2
- package/build/src/runtime/http-engine/CoreEngine2.d.ts.map +0 -1
- package/build/src/runtime/http-engine/CoreEngine2.js +0 -2
- package/build/src/runtime/http-engine/CoreEngine2.js.map +0 -1
- package/build/src/runtime/http-engine/FormData.d.ts +0 -50
- package/build/src/runtime/http-engine/FormData.d.ts.map +0 -1
- package/build/src/runtime/http-engine/FormData.js +0 -167
- package/build/src/runtime/http-engine/FormData.js.map +0 -1
- package/build/src/runtime/http-engine/HttpErrorCodes.d.ts +0 -4
- package/build/src/runtime/http-engine/HttpErrorCodes.d.ts.map +0 -1
- package/build/src/runtime/http-engine/HttpErrorCodes.js +0 -166
- package/build/src/runtime/http-engine/HttpErrorCodes.js.map +0 -1
- package/build/src/runtime/http-engine/PayloadSupport.d.ts +0 -19
- package/build/src/runtime/http-engine/PayloadSupport.d.ts.map +0 -1
- package/build/src/runtime/http-engine/PayloadSupport.js +0 -80
- package/build/src/runtime/http-engine/PayloadSupport.js.map +0 -1
- package/build/src/runtime/http-engine/RequestUtils.d.ts +0 -66
- package/build/src/runtime/http-engine/RequestUtils.d.ts.map +0 -1
- package/build/src/runtime/http-engine/RequestUtils.js +0 -143
- package/build/src/runtime/http-engine/RequestUtils.js.map +0 -1
- package/build/src/runtime/http-engine/auth/AuthManager.d.ts +0 -73
- package/build/src/runtime/http-engine/auth/AuthManager.d.ts.map +0 -1
- package/build/src/runtime/http-engine/auth/AuthManager.js +0 -186
- package/build/src/runtime/http-engine/auth/AuthManager.js.map +0 -1
- package/build/src/runtime/http-engine/auth/index.d.ts +0 -2
- package/build/src/runtime/http-engine/auth/index.d.ts.map +0 -1
- package/build/src/runtime/http-engine/auth/index.js +0 -2
- package/build/src/runtime/http-engine/auth/index.js.map +0 -1
- package/build/src/runtime/http-engine/certificates/CertificateManager.d.ts +0 -11
- package/build/src/runtime/http-engine/certificates/CertificateManager.d.ts.map +0 -1
- package/build/src/runtime/http-engine/certificates/CertificateManager.js +0 -76
- package/build/src/runtime/http-engine/certificates/CertificateManager.js.map +0 -1
- package/build/src/runtime/http-engine/certificates/index.d.ts +0 -2
- package/build/src/runtime/http-engine/certificates/index.d.ts.map +0 -1
- package/build/src/runtime/http-engine/certificates/index.js +0 -2
- package/build/src/runtime/http-engine/certificates/index.js.map +0 -1
- package/build/src/runtime/http-engine/compression/CompressionManager.d.ts +0 -25
- package/build/src/runtime/http-engine/compression/CompressionManager.d.ts.map +0 -1
- package/build/src/runtime/http-engine/compression/CompressionManager.js +0 -89
- package/build/src/runtime/http-engine/compression/CompressionManager.js.map +0 -1
- package/build/src/runtime/http-engine/compression/index.d.ts +0 -2
- package/build/src/runtime/http-engine/compression/index.d.ts.map +0 -1
- package/build/src/runtime/http-engine/compression/index.js +0 -2
- package/build/src/runtime/http-engine/compression/index.js.map +0 -1
- package/build/src/runtime/http-engine/connections/ConnectionManager.d.ts +0 -57
- package/build/src/runtime/http-engine/connections/ConnectionManager.d.ts.map +0 -1
- package/build/src/runtime/http-engine/connections/ConnectionManager.js +0 -78
- package/build/src/runtime/http-engine/connections/ConnectionManager.js.map +0 -1
- package/build/src/runtime/http-engine/connections/DigestAuthHandler.d.ts +0 -70
- package/build/src/runtime/http-engine/connections/DigestAuthHandler.d.ts.map +0 -1
- package/build/src/runtime/http-engine/connections/DigestAuthHandler.js +0 -184
- package/build/src/runtime/http-engine/connections/DigestAuthHandler.js.map +0 -1
- package/build/src/runtime/http-engine/connections/DirectConnection.d.ts +0 -22
- package/build/src/runtime/http-engine/connections/DirectConnection.d.ts.map +0 -1
- package/build/src/runtime/http-engine/connections/DirectConnection.js +0 -111
- package/build/src/runtime/http-engine/connections/DirectConnection.js.map +0 -1
- package/build/src/runtime/http-engine/connections/ProxyAuthHandler.d.ts +0 -60
- package/build/src/runtime/http-engine/connections/ProxyAuthHandler.d.ts.map +0 -1
- package/build/src/runtime/http-engine/connections/ProxyAuthHandler.js +0 -138
- package/build/src/runtime/http-engine/connections/ProxyAuthHandler.js.map +0 -1
- package/build/src/runtime/http-engine/connections/ProxyConnection.d.ts +0 -14
- package/build/src/runtime/http-engine/connections/ProxyConnection.d.ts.map +0 -1
- package/build/src/runtime/http-engine/connections/ProxyConnection.js +0 -47
- package/build/src/runtime/http-engine/connections/ProxyConnection.js.map +0 -1
- package/build/src/runtime/http-engine/connections/TunnelConnection.d.ts +0 -13
- package/build/src/runtime/http-engine/connections/TunnelConnection.d.ts.map +0 -1
- package/build/src/runtime/http-engine/connections/TunnelConnection.js +0 -175
- package/build/src/runtime/http-engine/connections/TunnelConnection.js.map +0 -1
- package/build/src/runtime/http-engine/connections/index.d.ts +0 -7
- package/build/src/runtime/http-engine/connections/index.d.ts.map +0 -1
- package/build/src/runtime/http-engine/connections/index.js +0 -7
- package/build/src/runtime/http-engine/connections/index.js.map +0 -1
- package/build/src/runtime/http-engine/constants.d.ts +0 -69
- package/build/src/runtime/http-engine/constants.d.ts.map +0 -1
- package/build/src/runtime/http-engine/constants.js +0 -90
- package/build/src/runtime/http-engine/constants.js.map +0 -1
- package/build/src/runtime/http-engine/cookies/CookieProcessor.d.ts +0 -5
- package/build/src/runtime/http-engine/cookies/CookieProcessor.d.ts.map +0 -1
- package/build/src/runtime/http-engine/cookies/CookieProcessor.js +0 -20
- package/build/src/runtime/http-engine/cookies/CookieProcessor.js.map +0 -1
- package/build/src/runtime/http-engine/cookies/index.d.ts +0 -2
- package/build/src/runtime/http-engine/cookies/index.d.ts.map +0 -1
- package/build/src/runtime/http-engine/cookies/index.js +0 -2
- package/build/src/runtime/http-engine/cookies/index.js.map +0 -1
- package/build/src/runtime/http-engine/errors/HttpEngineErrors.d.ts +0 -156
- package/build/src/runtime/http-engine/errors/HttpEngineErrors.d.ts.map +0 -1
- package/build/src/runtime/http-engine/errors/HttpEngineErrors.js +0 -227
- package/build/src/runtime/http-engine/errors/HttpEngineErrors.js.map +0 -1
- package/build/src/runtime/http-engine/errors/index.d.ts +0 -2
- package/build/src/runtime/http-engine/errors/index.d.ts.map +0 -1
- package/build/src/runtime/http-engine/errors/index.js +0 -2
- package/build/src/runtime/http-engine/errors/index.js.map +0 -1
- package/build/src/runtime/http-engine/message/MessageBuilder.d.ts +0 -66
- package/build/src/runtime/http-engine/message/MessageBuilder.d.ts.map +0 -1
- package/build/src/runtime/http-engine/message/MessageBuilder.js +0 -161
- package/build/src/runtime/http-engine/message/MessageBuilder.js.map +0 -1
- package/build/src/runtime/http-engine/message/MessageProcessor.d.ts +0 -27
- package/build/src/runtime/http-engine/message/MessageProcessor.d.ts.map +0 -1
- package/build/src/runtime/http-engine/message/MessageProcessor.js +0 -51
- package/build/src/runtime/http-engine/message/MessageProcessor.js.map +0 -1
- package/build/src/runtime/http-engine/message/index.d.ts +0 -3
- package/build/src/runtime/http-engine/message/index.d.ts.map +0 -1
- package/build/src/runtime/http-engine/message/index.js +0 -3
- package/build/src/runtime/http-engine/message/index.js.map +0 -1
- package/build/src/runtime/http-engine/ntlm/Des.d.ts +0 -5
- package/build/src/runtime/http-engine/ntlm/Des.d.ts.map +0 -1
- package/build/src/runtime/http-engine/ntlm/Des.js +0 -361
- package/build/src/runtime/http-engine/ntlm/Des.js.map +0 -1
- package/build/src/runtime/http-engine/ntlm/MD4.d.ts +0 -14
- package/build/src/runtime/http-engine/ntlm/MD4.d.ts.map +0 -1
- package/build/src/runtime/http-engine/ntlm/MD4.js +0 -122
- package/build/src/runtime/http-engine/ntlm/MD4.js.map +0 -1
- package/build/src/runtime/http-engine/ntlm/NtlmAuth.d.ts +0 -21
- package/build/src/runtime/http-engine/ntlm/NtlmAuth.d.ts.map +0 -1
- package/build/src/runtime/http-engine/ntlm/NtlmAuth.js +0 -163
- package/build/src/runtime/http-engine/ntlm/NtlmAuth.js.map +0 -1
- package/build/src/runtime/http-engine/ntlm/NtlmMessage.d.ts +0 -11
- package/build/src/runtime/http-engine/ntlm/NtlmMessage.d.ts.map +0 -1
- package/build/src/runtime/http-engine/ntlm/NtlmMessage.js +0 -58
- package/build/src/runtime/http-engine/ntlm/NtlmMessage.js.map +0 -1
- package/build/src/runtime/http-engine/parsers/BodyParser.d.ts +0 -39
- package/build/src/runtime/http-engine/parsers/BodyParser.d.ts.map +0 -1
- package/build/src/runtime/http-engine/parsers/BodyParser.js +0 -145
- package/build/src/runtime/http-engine/parsers/BodyParser.js.map +0 -1
- package/build/src/runtime/http-engine/parsers/HeadersParser.d.ts +0 -29
- package/build/src/runtime/http-engine/parsers/HeadersParser.d.ts.map +0 -1
- package/build/src/runtime/http-engine/parsers/HeadersParser.js +0 -88
- package/build/src/runtime/http-engine/parsers/HeadersParser.js.map +0 -1
- package/build/src/runtime/http-engine/parsers/HttpResponseParser.d.ts +0 -91
- package/build/src/runtime/http-engine/parsers/HttpResponseParser.d.ts.map +0 -1
- package/build/src/runtime/http-engine/parsers/HttpResponseParser.js +0 -236
- package/build/src/runtime/http-engine/parsers/HttpResponseParser.js.map +0 -1
- package/build/src/runtime/http-engine/parsers/StatusParser.d.ts +0 -20
- package/build/src/runtime/http-engine/parsers/StatusParser.d.ts.map +0 -1
- package/build/src/runtime/http-engine/parsers/StatusParser.js +0 -51
- package/build/src/runtime/http-engine/parsers/StatusParser.js.map +0 -1
- package/build/src/runtime/http-engine/parsers/index.d.ts +0 -5
- package/build/src/runtime/http-engine/parsers/index.d.ts.map +0 -1
- package/build/src/runtime/http-engine/parsers/index.js +0 -5
- package/build/src/runtime/http-engine/parsers/index.js.map +0 -1
- package/build/src/runtime/http-engine/response/ResponseProcessor.d.ts +0 -22
- package/build/src/runtime/http-engine/response/ResponseProcessor.d.ts.map +0 -1
- package/build/src/runtime/http-engine/response/ResponseProcessor.js +0 -25
- package/build/src/runtime/http-engine/response/ResponseProcessor.js.map +0 -1
- package/build/src/runtime/http-engine/response/index.d.ts +0 -2
- package/build/src/runtime/http-engine/response/index.d.ts.map +0 -1
- package/build/src/runtime/http-engine/response/index.js +0 -2
- package/build/src/runtime/http-engine/response/index.js.map +0 -1
- package/build/src/runtime/http-engine/statistics/StatisticsProcessor.d.ts +0 -7
- package/build/src/runtime/http-engine/statistics/StatisticsProcessor.d.ts.map +0 -1
- package/build/src/runtime/http-engine/statistics/StatisticsProcessor.js +0 -40
- package/build/src/runtime/http-engine/statistics/StatisticsProcessor.js.map +0 -1
- package/build/src/runtime/http-engine/statistics/index.d.ts +0 -2
- package/build/src/runtime/http-engine/statistics/index.d.ts.map +0 -1
- package/build/src/runtime/http-engine/statistics/index.js +0 -2
- package/build/src/runtime/http-engine/statistics/index.js.map +0 -1
- package/build/src/runtime/http-engine/url/UrlProcessor.d.ts +0 -24
- package/build/src/runtime/http-engine/url/UrlProcessor.d.ts.map +0 -1
- package/build/src/runtime/http-engine/url/UrlProcessor.js +0 -50
- package/build/src/runtime/http-engine/url/UrlProcessor.js.map +0 -1
- package/build/src/runtime/http-engine/url/index.d.ts +0 -2
- package/build/src/runtime/http-engine/url/index.d.ts.map +0 -1
- package/build/src/runtime/http-engine/url/index.js +0 -2
- package/build/src/runtime/http-engine/url/index.js.map +0 -1
- package/build/src/runtime/http-runner/ConditionCheck.d.ts +0 -75
- package/build/src/runtime/http-runner/ConditionCheck.d.ts.map +0 -1
- package/build/src/runtime/http-runner/ConditionCheck.js +0 -185
- package/build/src/runtime/http-runner/ConditionCheck.js.map +0 -1
- package/build/src/runtime/http-runner/HttpAssertionRunner.d.ts +0 -26
- package/build/src/runtime/http-runner/HttpAssertionRunner.d.ts.map +0 -1
- package/build/src/runtime/http-runner/HttpAssertionRunner.js +0 -180
- package/build/src/runtime/http-runner/HttpAssertionRunner.js.map +0 -1
- package/build/src/runtime/http-runner/HttpFlowRunner.d.ts +0 -21
- package/build/src/runtime/http-runner/HttpFlowRunner.d.ts.map +0 -1
- package/build/src/runtime/http-runner/HttpFlowRunner.js +0 -74
- package/build/src/runtime/http-runner/HttpFlowRunner.js.map +0 -1
- package/build/src/runtime/http-runner/HttpFlows.d.ts +0 -120
- package/build/src/runtime/http-runner/HttpFlows.d.ts.map +0 -1
- package/build/src/runtime/http-runner/HttpFlows.js +0 -568
- package/build/src/runtime/http-runner/HttpFlows.js.map +0 -1
- package/build/src/runtime/http-runner/HttpRequestRunner.d.ts +0 -148
- package/build/src/runtime/http-runner/HttpRequestRunner.d.ts.map +0 -1
- package/build/src/runtime/http-runner/HttpRequestRunner.js +0 -380
- package/build/src/runtime/http-runner/HttpRequestRunner.js.map +0 -1
- package/build/src/runtime/http-runner/HttpRuntimeEnvironment.d.ts +0 -26
- package/build/src/runtime/http-runner/HttpRuntimeEnvironment.d.ts.map +0 -1
- package/build/src/runtime/http-runner/HttpRuntimeEnvironment.js +0 -2
- package/build/src/runtime/http-runner/HttpRuntimeEnvironment.js.map +0 -1
- package/build/src/runtime/http-runner/RequestCookiesProcessor.d.ts +0 -26
- package/build/src/runtime/http-runner/RequestCookiesProcessor.d.ts.map +0 -1
- package/build/src/runtime/http-runner/RequestCookiesProcessor.js +0 -66
- package/build/src/runtime/http-runner/RequestCookiesProcessor.js.map +0 -1
- package/build/src/runtime/node/BaseRunner.d.ts +0 -21
- package/build/src/runtime/node/BaseRunner.d.ts.map +0 -1
- package/build/src/runtime/node/BaseRunner.js +0 -27
- package/build/src/runtime/node/BaseRunner.js.map +0 -1
- package/build/src/runtime/node/InteropInterfaces.d.ts +0 -136
- package/build/src/runtime/node/InteropInterfaces.d.ts.map +0 -1
- package/build/src/runtime/node/InteropInterfaces.js +0 -2
- package/build/src/runtime/node/InteropInterfaces.js.map +0 -1
- package/build/src/runtime/node/ProjectParallelRunner.d.ts +0 -96
- package/build/src/runtime/node/ProjectParallelRunner.d.ts.map +0 -1
- package/build/src/runtime/node/ProjectParallelRunner.js +0 -253
- package/build/src/runtime/node/ProjectParallelRunner.js.map +0 -1
- package/build/src/runtime/node/ProjectRequestRunner.d.ts +0 -109
- package/build/src/runtime/node/ProjectRequestRunner.d.ts.map +0 -1
- package/build/src/runtime/node/ProjectRequestRunner.js +0 -300
- package/build/src/runtime/node/ProjectRequestRunner.js.map +0 -1
- package/build/src/runtime/node/ProjectRunner.d.ts +0 -192
- package/build/src/runtime/node/ProjectRunner.d.ts.map +0 -1
- package/build/src/runtime/node/ProjectRunner.js +0 -304
- package/build/src/runtime/node/ProjectRunner.js.map +0 -1
- package/build/src/runtime/node/ProjectRunnerWorker.d.ts +0 -2
- package/build/src/runtime/node/ProjectRunnerWorker.d.ts.map +0 -1
- package/build/src/runtime/node/ProjectRunnerWorker.js +0 -77
- package/build/src/runtime/node/ProjectRunnerWorker.js.map +0 -1
- package/build/src/runtime/node/ProjectSerialRunner.d.ts +0 -12
- package/build/src/runtime/node/ProjectSerialRunner.d.ts.map +0 -1
- package/build/src/runtime/node/ProjectSerialRunner.js +0 -37
- package/build/src/runtime/node/ProjectSerialRunner.js.map +0 -1
- package/build/src/runtime/node/enums.d.ts +0 -9
- package/build/src/runtime/node/enums.d.ts.map +0 -1
- package/build/src/runtime/node/enums.js +0 -10
- package/build/src/runtime/node/enums.js.map +0 -1
- package/build/src/runtime/reporters/ProjectRunCliReporter.d.ts +0 -8
- package/build/src/runtime/reporters/ProjectRunCliReporter.d.ts.map +0 -1
- package/build/src/runtime/reporters/ProjectRunCliReporter.js +0 -75
- package/build/src/runtime/reporters/ProjectRunCliReporter.js.map +0 -1
- package/build/src/runtime/reporters/Reporter.d.ts +0 -36
- package/build/src/runtime/reporters/Reporter.d.ts.map +0 -1
- package/build/src/runtime/reporters/Reporter.js +0 -98
- package/build/src/runtime/reporters/Reporter.js.map +0 -1
- package/build/src/runtime/variables/Cache.d.ts +0 -24
- package/build/src/runtime/variables/Cache.d.ts.map +0 -1
- package/build/src/runtime/variables/Cache.js +0 -51
- package/build/src/runtime/variables/Cache.js.map +0 -1
- package/build/src/runtime/variables/EvalFunctions.d.ts +0 -59
- package/build/src/runtime/variables/EvalFunctions.d.ts.map +0 -1
- package/build/src/runtime/variables/EvalFunctions.js +0 -126
- package/build/src/runtime/variables/EvalFunctions.js.map +0 -1
- package/build/src/runtime/variables/ProjectVariables.d.ts +0 -6
- package/build/src/runtime/variables/ProjectVariables.d.ts.map +0 -1
- package/build/src/runtime/variables/ProjectVariables.js +0 -7
- package/build/src/runtime/variables/ProjectVariables.js.map +0 -1
- package/build/src/runtime/variables/VariablesProcessor.d.ts +0 -169
- package/build/src/runtime/variables/VariablesProcessor.d.ts.map +0 -1
- package/build/src/runtime/variables/VariablesProcessor.js +0 -518
- package/build/src/runtime/variables/VariablesProcessor.js.map +0 -1
- package/build/src/runtime/variables/VariablesTokenizer.d.ts +0 -27
- package/build/src/runtime/variables/VariablesTokenizer.d.ts.map +0 -1
- package/build/src/runtime/variables/VariablesTokenizer.js +0 -53
- package/build/src/runtime/variables/VariablesTokenizer.js.map +0 -1
- package/build/src/sdk/HistorySdk.d.ts +0 -60
- package/build/src/sdk/HistorySdk.d.ts.map +0 -1
- package/build/src/sdk/HistorySdk.js +0 -243
- package/build/src/sdk/HistorySdk.js.map +0 -1
- package/build/src/sdk/ProjectExecutionsSdk.d.ts +0 -56
- package/build/src/sdk/ProjectExecutionsSdk.d.ts.map +0 -1
- package/build/src/sdk/ProjectExecutionsSdk.js +0 -114
- package/build/src/sdk/ProjectExecutionsSdk.js.map +0 -1
- package/build/src/sdk/WsClient.d.ts +0 -25
- package/build/src/sdk/WsClient.d.ts.map +0 -1
- package/build/src/sdk/WsClient.js +0 -4
- package/build/src/sdk/WsClient.js.map +0 -1
- package/build/src/sdk/WsClientNode.d.ts +0 -25
- package/build/src/sdk/WsClientNode.d.ts.map +0 -1
- package/build/src/sdk/WsClientNode.js +0 -66
- package/build/src/sdk/WsClientNode.js.map +0 -1
- package/build/src/sdk/WsClientWeb.d.ts +0 -24
- package/build/src/sdk/WsClientWeb.d.ts.map +0 -1
- package/build/src/sdk/WsClientWeb.js +0 -73
- package/build/src/sdk/WsClientWeb.js.map +0 -1
- package/build/src/testing/TestCliHelper.d.ts +0 -30
- package/build/src/testing/TestCliHelper.d.ts.map +0 -1
- package/build/src/testing/TestCliHelper.js +0 -83
- package/build/src/testing/TestCliHelper.js.map +0 -1
- package/build/src/testing/getPort.d.ts +0 -52
- package/build/src/testing/getPort.d.ts.map +0 -1
- package/build/src/testing/getPort.js +0 -169
- package/build/src/testing/getPort.js.map +0 -1
- package/build/tsconfig.tsbuildinfo +0 -1
- package/noop.ts +0 -3
- package/oauth-popup.html +0 -33
- package/skills-lock.json +0 -10
- package/src/authorization/AuthorizationError.ts +0 -32
- package/src/authorization/CustomParameters.ts +0 -66
- package/src/authorization/OAuth2Authorization.ts +0 -1013
- package/src/authorization/OidcAuthorization.ts +0 -158
- package/src/authorization/Utils.ts +0 -136
- package/src/authorization/lib/IframeAuthorization.ts +0 -127
- package/src/authorization/lib/KnownGrants.ts +0 -6
- package/src/authorization/lib/PopupAuthorization.ts +0 -80
- package/src/authorization/lib/SecurityProcessor.ts +0 -294
- package/src/authorization/lib/Tokens.ts +0 -135
- package/src/authorization/lib/Utils.ts +0 -95
- package/src/authorization/types.ts +0 -197
- package/src/cookies/CookieJar.ts +0 -26
- package/src/cookies/CookieParser.ts +0 -353
- package/src/cookies/InMemoryCookieJar.ts +0 -70
- package/src/cookies/Punycode.ts +0 -134
- package/src/data/DataExtractor.ts +0 -200
- package/src/data/DataReader.ts +0 -11
- package/src/data/JmespathReader.ts +0 -26
- package/src/data/Json2Xml.ts +0 -192
- package/src/data/JsonReader.ts +0 -41
- package/src/data/PayloadPointer.ts +0 -50
- package/src/data/RequestDataExtractor.ts +0 -124
- package/src/data/UrlEncodedReader.ts +0 -21
- package/src/data/XmlReader.ts +0 -128
- package/src/events/authorization/AuthorizationEventTypes.ts +0 -22
- package/src/events/authorization/AuthorizationEvents.ts +0 -74
- package/src/events/cookies/CookieEventTypes.ts +0 -13
- package/src/events/cookies/CookieEvents.ts +0 -168
- package/src/events/environment/EnvironmentEventTypes.ts +0 -3
- package/src/events/environment/EnvironmentEvents.ts +0 -25
- package/src/events/transport/TransportEventTypes.ts +0 -32
- package/src/events/transport/TransportEvents.ts +0 -105
- package/src/lib/Buffer.ts +0 -62
- package/src/lib/definitions/HttpDefinitions.ts +0 -68
- package/src/lib/fs/Fs.ts +0 -258
- package/src/lib/headers/HeadersData.ts +0 -692
- package/src/lib/parsers/UriTemplate.ts +0 -533
- package/src/lib/parsers/UrlEncoder.ts +0 -129
- package/src/lib/parsers/UrlParser.ts +0 -202
- package/src/lib/parsers/UrlProcessor.ts +0 -882
- package/src/lib/parsers/UrlValueParser.ts +0 -213
- package/src/lib/timers/Timers.ts +0 -27
- package/src/lib/transformers/PayloadSerializer.ts +0 -538
- package/src/mocking/LegacyInterfaces.ts +0 -51
- package/src/mocking/LegacyMock.ts +0 -37
- package/src/mocking/ProjectMock.ts +0 -38
- package/src/mocking/README.md +0 -40
- package/src/mocking/legacy/Authorization.ts +0 -40
- package/src/mocking/legacy/Certificates.ts +0 -148
- package/src/mocking/legacy/Cookies.ts +0 -53
- package/src/mocking/legacy/HostRules.ts +0 -45
- package/src/mocking/legacy/Http.ts +0 -248
- package/src/mocking/legacy/HttpResponse.ts +0 -107
- package/src/mocking/legacy/RestApi.ts +0 -70
- package/src/mocking/legacy/Urls.ts +0 -46
- package/src/mocking/legacy/Variables.ts +0 -54
- package/src/mocking/lib/Certificates.ts +0 -64
- package/src/mocking/lib/History.ts +0 -187
- package/src/mocking/lib/HostRules.ts +0 -45
- package/src/mocking/lib/Request.ts +0 -100
- package/src/mocking/lib/Response.ts +0 -121
- package/src/mocking/lib/Url.ts +0 -45
- package/src/models/Authorization.ts +0 -502
- package/src/models/AuthorizationData.ts +0 -67
- package/src/models/CertificateFile.ts +0 -79
- package/src/models/ClientCertificate.ts +0 -328
- package/src/models/Environment.ts +0 -309
- package/src/models/ErrorResponse.ts +0 -115
- package/src/models/HeadersArray.ts +0 -63
- package/src/models/HostRule.ts +0 -178
- package/src/models/HttpCookie.ts +0 -459
- package/src/models/HttpHistory.ts +0 -256
- package/src/models/HttpProject.ts +0 -1533
- package/src/models/HttpRequest.ts +0 -166
- package/src/models/HttpResponse.ts +0 -136
- package/src/models/License.ts +0 -113
- package/src/models/Project.ts +0 -93
- package/src/models/ProjectDefinitionProperty.ts +0 -40
- package/src/models/ProjectExecution.ts +0 -225
- package/src/models/ProjectFolder.ts +0 -440
- package/src/models/ProjectItem.ts +0 -158
- package/src/models/ProjectParent.ts +0 -34
- package/src/models/ProjectRequest.ts +0 -522
- package/src/models/ProjectSchema.ts +0 -202
- package/src/models/Property.ts +0 -517
- package/src/models/Provider.ts +0 -99
- package/src/models/Request.ts +0 -475
- package/src/models/RequestAuthorization.ts +0 -122
- package/src/models/RequestConfig.ts +0 -368
- package/src/models/RequestLog.ts +0 -193
- package/src/models/RequestTime.ts +0 -105
- package/src/models/RequestUiMeta.ts +0 -248
- package/src/models/RequestsSize.ts +0 -63
- package/src/models/Response.ts +0 -163
- package/src/models/ResponseAuthorization.ts +0 -104
- package/src/models/ResponseRedirect.ts +0 -156
- package/src/models/SentRequest.ts +0 -122
- package/src/models/SerializablePayload.ts +0 -122
- package/src/models/Server.ts +0 -183
- package/src/models/Url.ts +0 -87
- package/src/models/http-flows/AssertionError.ts +0 -57
- package/src/models/http-flows/HttpAssertion.ts +0 -90
- package/src/models/http-flows/HttpFlows.ts +0 -82
- package/src/models/http-flows/HttpStep.ts +0 -50
- package/src/models/http-flows/LegacyTranslator.ts +0 -303
- package/src/models/http-flows/steps/assertion/EqualAssertion.ts +0 -124
- package/src/models/http-flows/steps/assertion/GreaterThanAssertion.ts +0 -81
- package/src/models/http-flows/steps/assertion/IncludesAssertion.ts +0 -62
- package/src/models/http-flows/steps/assertion/IsEmptyAssertion.ts +0 -41
- package/src/models/http-flows/steps/assertion/IsNotEmptyAssertion.ts +0 -41
- package/src/models/http-flows/steps/assertion/LengthOfAssertion.ts +0 -62
- package/src/models/http-flows/steps/assertion/LessThanAssertion.ts +0 -81
- package/src/models/http-flows/steps/assertion/MatchesAssertion.ts +0 -62
- package/src/models/http-flows/steps/assertion/MatchesSchemaAssertion.ts +0 -87
- package/src/models/http-flows/steps/assertion/NotEqualAssertion.ts +0 -124
- package/src/models/http-flows/steps/assertion/NotIncludesAssertion.ts +0 -62
- package/src/models/http-flows/steps/assertion/NotOkAssertion.ts +0 -41
- package/src/models/http-flows/steps/assertion/NotToBeAssertion.ts +0 -63
- package/src/models/http-flows/steps/assertion/OkAssertion.ts +0 -41
- package/src/models/http-flows/steps/assertion/ToBeAssertion.ts +0 -70
- package/src/models/http-flows/steps/data/DeleteCookieStep.ts +0 -108
- package/src/models/http-flows/steps/data/DeleteVariableStep.ts +0 -78
- package/src/models/http-flows/steps/data/ReadDataSourceStep.ts +0 -104
- package/src/models/http-flows/steps/data/ReadDataStep.ts +0 -133
- package/src/models/http-flows/steps/data/ReadValueStep.ts +0 -89
- package/src/models/http-flows/steps/data/SetCookieStep.ts +0 -208
- package/src/models/http-flows/steps/data/SetDataStep.ts +0 -125
- package/src/models/http-flows/steps/data/SetVariableStep.ts +0 -82
- package/src/models/http-flows/steps/transformation/AsLowerCaseStep.ts +0 -41
- package/src/models/http-flows/steps/transformation/AsNumberStep.ts +0 -41
- package/src/models/http-flows/steps/transformation/AsUpperCaseStep.ts +0 -41
- package/src/models/http-flows/steps/transformation/RoundStep.ts +0 -87
- package/src/models/http-flows/steps/transformation/SubstringStep.ts +0 -96
- package/src/models/http-flows/steps/transformation/TrimStep.ts +0 -43
- package/src/models/legacy/DataExport.ts +0 -254
- package/src/models/legacy/Normalizer.ts +0 -107
- package/src/models/legacy/actions/Actions.ts +0 -277
- package/src/models/legacy/authorization/Authorization.ts +0 -581
- package/src/models/legacy/models/ApiTypes.ts +0 -202
- package/src/models/legacy/models/ArcLegacyProject.ts +0 -38
- package/src/models/legacy/models/AuthData.ts +0 -15
- package/src/models/legacy/models/ClientCertificate.ts +0 -93
- package/src/models/legacy/models/Cookies.ts +0 -52
- package/src/models/legacy/models/HostRule.ts +0 -35
- package/src/models/legacy/models/RestApi.ts +0 -49
- package/src/models/legacy/models/UrlHistory.ts +0 -33
- package/src/models/legacy/models/Variable.ts +0 -40
- package/src/models/legacy/models/base.ts +0 -95
- package/src/models/legacy/request/ArcRequest.ts +0 -405
- package/src/models/legacy/request/ArcResponse.ts +0 -177
- package/src/models/legacy/request/HistoryData.ts +0 -47
- package/src/models/legacy/request/RequestBody.ts +0 -87
- package/src/models/transformers/ArcDexieTransformer.ts +0 -323
- package/src/models/transformers/ArcLegacyNormalizer.ts +0 -84
- package/src/models/transformers/ArcLegacyTransformer.ts +0 -196
- package/src/models/transformers/ArcPouchTransformer.ts +0 -184
- package/src/models/transformers/BaseTransformer.ts +0 -113
- package/src/models/transformers/ImportUtils.ts +0 -135
- package/src/models/transformers/LegacyDataExportToApiProject.ts +0 -76
- package/src/models/transformers/LegacyExportProcessor.ts +0 -248
- package/src/models/transformers/PostmanBackupTransformer.ts +0 -303
- package/src/models/transformers/PostmanDataTransformer.ts +0 -54
- package/src/models/transformers/PostmanTransformer.ts +0 -113
- package/src/models/transformers/PostmanV21Transformer.ts +0 -317
- package/src/models/transformers/PostmanV2Transformer.ts +0 -317
- package/src/models/transformers/har.ts +0 -865
- package/src/proxy/HttpProjectProxy.ts +0 -169
- package/src/proxy/Proxy.ts +0 -30
- package/src/proxy/ProxyService.ts +0 -37
- package/src/proxy/RequestProxy.ts +0 -101
- package/src/proxy/readme.md +0 -8
- package/src/runtime/http-engine/CoreEngine.ts +0 -1084
- package/src/runtime/http-engine/CoreEngine2.ts +0 -0
- package/src/runtime/http-engine/FormData.ts +0 -200
- package/src/runtime/http-engine/HttpErrorCodes.ts +0 -176
- package/src/runtime/http-engine/PayloadSupport.ts +0 -93
- package/src/runtime/http-engine/RequestUtils.ts +0 -162
- package/src/runtime/http-engine/auth/AuthManager.ts +0 -242
- package/src/runtime/http-engine/certificates/CertificateManager.ts +0 -74
- package/src/runtime/http-engine/compression/CompressionManager.ts +0 -99
- package/src/runtime/http-engine/connections/ConnectionManager.ts +0 -123
- package/src/runtime/http-engine/connections/DigestAuthHandler.ts +0 -238
- package/src/runtime/http-engine/connections/DirectConnection.ts +0 -138
- package/src/runtime/http-engine/connections/ProxyAuthHandler.ts +0 -179
- package/src/runtime/http-engine/connections/ProxyConnection.ts +0 -55
- package/src/runtime/http-engine/connections/TunnelConnection.ts +0 -192
- package/src/runtime/http-engine/constants.ts +0 -103
- package/src/runtime/http-engine/cookies/CookieProcessor.ts +0 -25
- package/src/runtime/http-engine/errors/HttpEngineErrors.ts +0 -319
- package/src/runtime/http-engine/message/MessageBuilder.ts +0 -201
- package/src/runtime/http-engine/message/MessageProcessor.ts +0 -73
- package/src/runtime/http-engine/ntlm/Des.ts +0 -372
- package/src/runtime/http-engine/ntlm/MD4.ts +0 -137
- package/src/runtime/http-engine/ntlm/NtlmAuth.ts +0 -187
- package/src/runtime/http-engine/ntlm/NtlmMessage.ts +0 -64
- package/src/runtime/http-engine/parsers/BodyParser.ts +0 -171
- package/src/runtime/http-engine/parsers/HeadersParser.ts +0 -103
- package/src/runtime/http-engine/parsers/HttpResponseParser.ts +0 -280
- package/src/runtime/http-engine/parsers/StatusParser.ts +0 -69
- package/src/runtime/http-engine/response/ResponseProcessor.ts +0 -46
- package/src/runtime/http-engine/statistics/StatisticsProcessor.ts +0 -52
- package/src/runtime/http-engine/url/UrlProcessor.ts +0 -55
- package/src/runtime/http-runner/ConditionCheck.ts +0 -193
- package/src/runtime/http-runner/HttpAssertionRunner.ts +0 -204
- package/src/runtime/http-runner/HttpFlowRunner.ts +0 -105
- package/src/runtime/http-runner/HttpFlows.ts +0 -649
- package/src/runtime/http-runner/HttpRequestRunner.ts +0 -427
- package/src/runtime/http-runner/HttpRuntimeEnvironment.ts +0 -27
- package/src/runtime/http-runner/RequestCookiesProcessor.ts +0 -80
- package/src/runtime/node/BaseRunner.ts +0 -29
- package/src/runtime/node/InteropInterfaces.ts +0 -143
- package/src/runtime/node/ProjectParallelRunner.ts +0 -321
- package/src/runtime/node/ProjectRequestRunner.ts +0 -364
- package/src/runtime/node/ProjectRunner.ts +0 -395
- package/src/runtime/node/ProjectRunnerWorker.ts +0 -83
- package/src/runtime/node/ProjectSerialRunner.ts +0 -37
- package/src/runtime/node/enums.ts +0 -8
- package/src/runtime/reporters/ProjectRunCliReporter.ts +0 -81
- package/src/runtime/reporters/Reporter.ts +0 -113
- package/src/runtime/variables/Cache.ts +0 -53
- package/src/runtime/variables/EvalFunctions.ts +0 -135
- package/src/runtime/variables/ProjectVariables.ts +0 -5
- package/src/runtime/variables/VariablesProcessor.ts +0 -555
- package/src/runtime/variables/VariablesTokenizer.ts +0 -55
- package/src/sdk/HistorySdk.ts +0 -272
- package/src/sdk/ProjectExecutionsSdk.ts +0 -135
- package/src/sdk/WsClient.ts +0 -28
- package/src/sdk/WsClientNode.ts +0 -68
- package/src/sdk/WsClientWeb.ts +0 -75
- package/src/testing/TestCliHelper.ts +0 -93
- package/src/testing/getPort.ts +0 -215
- package/tests/resources/http/drive-list.ts +0 -575
- package/tests/resources/http/html.html +0 -317
- package/tests/resources/http/jpeg.jpg +0 -0
- package/tests/resources/http/json.json +0 -187
- package/tests/resources/http/png.png +0 -0
- package/tests/resources/http/svg.svg +0 -3
- package/tests/resources/http/webp.webp +0 -0
- package/tests/resources/http/xml.xml +0 -211
- package/tests/resources/ssl/cert-auth-server/alice-password.p12 +0 -0
- package/tests/resources/ssl/cert-auth-server/alice-password.txt +0 -1
- package/tests/resources/ssl/cert-auth-server/alice.p12 +0 -0
- package/tests/resources/ssl/cert-auth-server/alice_cert.pem +0 -28
- package/tests/resources/ssl/cert-auth-server/alice_csr.pem +0 -26
- package/tests/resources/ssl/cert-auth-server/alice_key.pem +0 -52
- package/tests/resources/ssl/cert-auth-server/bob-password.txt +0 -1
- package/tests/resources/ssl/cert-auth-server/bob.p12 +0 -0
- package/tests/resources/ssl/cert-auth-server/bob_cert.pem +0 -27
- package/tests/resources/ssl/cert-auth-server/bob_csr.pem +0 -26
- package/tests/resources/ssl/cert-auth-server/bob_key.pem +0 -52
- package/tests/resources/ssl/cert-auth-server/create.sh +0 -17
- package/tests/resources/ssl/cert-auth-server/server_cert.pem +0 -31
- package/tests/resources/ssl/cert-auth-server/server_key.pem +0 -52
- package/tests/resources/ssl/certs/ca.cert.pem +0 -23
- package/tests/resources/ssl/certs/ca.privkey.pem +0 -27
- package/tests/resources/ssl/certs/ca.srl +0 -1
- package/tests/resources/ssl/certs/cert.pem +0 -20
- package/tests/resources/ssl/certs/csr.pem +0 -17
- package/tests/resources/ssl/certs/fullchain.pem +0 -43
- package/tests/resources/ssl/certs/privkey.pem +0 -27
- package/tests/resources/ssl/certs/root-ca.crt +0 -0
- package/tests/servers/ExpressServer.ts +0 -124
- package/tests/servers/ProxyServer.ts +0 -374
- package/tests/servers/cert-helper.ts +0 -2
- package/tests/servers/express-routes/ApiEndpoint.ts +0 -24
- package/tests/servers/express-routes/BaseApi.ts +0 -106
- package/tests/servers/express-routes/BasicAuthRoute.ts +0 -36
- package/tests/servers/express-routes/BearerAuthRoute.ts +0 -35
- package/tests/servers/express-routes/CertificatesApi.ts +0 -46
- package/tests/servers/express-routes/CompressApi.ts +0 -71
- package/tests/servers/express-routes/CookieApi.ts +0 -20
- package/tests/servers/express-routes/DelayRoute.ts +0 -28
- package/tests/servers/express-routes/GetApi.ts +0 -58
- package/tests/servers/express-routes/HeadersApi.ts +0 -17
- package/tests/servers/express-routes/ImagesApi.ts +0 -44
- package/tests/servers/express-routes/NTLMRoute.ts +0 -29
- package/tests/servers/express-routes/PostApi.ts +0 -31
- package/tests/servers/express-routes/QueryParamsApi.ts +0 -17
- package/tests/servers/express-routes/RedirectsApi.ts +0 -139
- package/tests/servers/express-routes/ResponsesApi.ts +0 -68
- package/tests/servers/express-routes/StatusCodeApi.ts +0 -38
- package/tests/servers/express-routes/StreamApi.ts +0 -60
- package/tests/servers/express-routes/TestsApi.ts +0 -47
- package/tests/servers/oauth2mock/ServerMock.js +0 -454
- package/tests/servers/ssl.ts +0 -93
- package/tests/unit/authorization/SecurityProcessor.spec.ts +0 -538
- package/tests/unit/cookies/CookieParser.spec.ts +0 -354
- package/tests/unit/cookies/InMemoryCookieJar.spec.ts +0 -112
- package/tests/unit/data/JmesparthReader.spec.ts +0 -36
- package/tests/unit/data/Json2Xml.spec.ts +0 -178
- package/tests/unit/data/JsonReader.spec.ts +0 -82
- package/tests/unit/data/PayloadPointer.spec.ts +0 -56
- package/tests/unit/data/RequestDataExtractor.spec.ts +0 -469
- package/tests/unit/data/UrlEncodedReader.spec.ts +0 -12
- package/tests/unit/data/XmlReader.spec.ts +0 -84
- package/tests/unit/events/authorization.spec.ts +0 -150
- package/tests/unit/events/cookie.spec.ts +0 -274
- package/tests/unit/events/transport.spec.ts +0 -139
- package/tests/unit/legacy-transformers/ARC-legacy-import.spec.ts +0 -150
- package/tests/unit/legacy-transformers/ArcDexieTransformer.spec.ts +0 -194
- package/tests/unit/legacy-transformers/ArcLegacyTransformer.spec.ts +0 -112
- package/tests/unit/legacy-transformers/ArcPouchTransformer.spec.ts +0 -245
- package/tests/unit/legacy-transformers/DataTestHelper.ts +0 -50
- package/tests/unit/legacy-transformers/LegacyExportProcessor.spec.ts +0 -450
- package/tests/unit/legacy-transformers/data/arc-pouchdb.json +0 -396
- package/tests/unit/legacy-transformers/data/dexie-data-export.json +0 -890
- package/tests/unit/legacy-transformers/data/dexie-history-export.json +0 -877
- package/tests/unit/legacy-transformers/data/dexie-saved-export.json +0 -385
- package/tests/unit/legacy-transformers/data/legacy-data-import.json +0 -51
- package/tests/unit/legacy-transformers/data/legacy-request-import.json +0 -20
- package/tests/unit/legacy-transformers/data/pouch-data-export.json +0 -242
- package/tests/unit/lib/UriTemplate.spec.ts +0 -418
- package/tests/unit/lib/UrlEncoder.spec.ts +0 -36
- package/tests/unit/lib/UrlParser.spec.ts +0 -359
- package/tests/unit/lib/UrlProcessor.spec.ts +0 -894
- package/tests/unit/lib/buffer.spec.ts +0 -33
- package/tests/unit/lib/payload_serializer.spec.ts +0 -171
- package/tests/unit/mocking/current/Certificates.spec.ts +0 -96
- package/tests/unit/mocking/current/HostRules.spec.ts +0 -59
- package/tests/unit/mocking/current/Urls.spec.ts +0 -58
- package/tests/unit/mocking/legacy/ArcMock.spec.ts +0 -16
- package/tests/unit/mocking/legacy/Authorization.spec.ts +0 -57
- package/tests/unit/mocking/legacy/Certificates.spec.ts +0 -185
- package/tests/unit/mocking/legacy/Cookies.spec.ts +0 -67
- package/tests/unit/mocking/legacy/HostRules.spec.ts +0 -59
- package/tests/unit/mocking/legacy/Http.spec.ts +0 -533
- package/tests/unit/mocking/legacy/RestApi.spec.ts +0 -132
- package/tests/unit/mocking/legacy/Urls.spec.ts +0 -57
- package/tests/unit/mocking/legacy/Variables.spec.ts +0 -73
- package/tests/unit/models/Certificate/from_name.spec.ts +0 -21
- package/tests/unit/models/Project/consume.spec.ts +0 -16
- package/tests/unit/models/Project/create.spec.ts +0 -132
- package/tests/unit/models/certificate.spec.ts +0 -257
- package/tests/unit/models/environment.spec.ts +0 -574
- package/tests/unit/models/error_response.spec.ts +0 -183
- package/tests/unit/models/headers_array.spec.ts +0 -86
- package/tests/unit/models/host_rule.spec.ts +0 -196
- package/tests/unit/models/http-actions/assertion/equal_assertion.spec.ts +0 -103
- package/tests/unit/models/http-actions/assertion/greater_than_assertion.spec.ts +0 -91
- package/tests/unit/models/http-actions/assertion/includes_assertion.spec.ts +0 -71
- package/tests/unit/models/http-actions/assertion/less_than_assertion.spec.ts +0 -91
- package/tests/unit/models/http-actions/assertion/matches_assertion.spec.ts +0 -71
- package/tests/unit/models/http-actions/assertion/matches_schema_assertion.spec.ts +0 -117
- package/tests/unit/models/http-actions/assertion/not_equal_assertion.spec.ts +0 -103
- package/tests/unit/models/http-actions/assertion/not_includes_assertion.spec.ts +0 -71
- package/tests/unit/models/http-actions/assertion/not_ok_assertion.spec.ts +0 -47
- package/tests/unit/models/http-actions/assertion/not_to_be_assertion.spec.ts +0 -72
- package/tests/unit/models/http-actions/assertion/ok_assertion.spec.ts +0 -44
- package/tests/unit/models/http-actions/assertion/to_be_assertion.spec.ts +0 -71
- package/tests/unit/models/http-actions/transformation/as_lower_case_step.spec.ts +0 -47
- package/tests/unit/models/http-actions/transformation/as_number_step.spec.ts +0 -47
- package/tests/unit/models/http-actions/transformation/as_upper_case_step.spec.ts +0 -47
- package/tests/unit/models/http-actions/transformation/round_step.spec.ts +0 -69
- package/tests/unit/models/http-actions/transformation/substring_step.spec.ts +0 -85
- package/tests/unit/models/http-actions/transformation/trim_step.spec.ts +0 -44
- package/tests/unit/models/http_cookie.spec.ts +0 -516
- package/tests/unit/models/http_history.spec.ts +0 -443
- package/tests/unit/models/http_project.spec.ts +0 -2424
- package/tests/unit/models/http_request.spec.ts +0 -365
- package/tests/unit/models/http_response.spec.ts +0 -289
- package/tests/unit/models/license.spec.ts +0 -108
- package/tests/unit/models/project_folder.spec.ts +0 -926
- package/tests/unit/models/project_item.spec.ts +0 -137
- package/tests/unit/models/project_request.spec.ts +0 -1047
- package/tests/unit/models/project_schema.spec.ts +0 -236
- package/tests/unit/models/property.spec.ts +0 -625
- package/tests/unit/models/provider.spec.ts +0 -102
- package/tests/unit/models/request.spec.ts +0 -1206
- package/tests/unit/models/request_log.spec.ts +0 -308
- package/tests/unit/models/request_time.spec.ts +0 -138
- package/tests/unit/models/response.spec.ts +0 -384
- package/tests/unit/models/response_redirect.spec.ts +0 -303
- package/tests/unit/models/sent_request.spec.ts +0 -206
- package/tests/unit/models/server.spec.ts +0 -195
- package/tests/unit/postman-transformers/PostmanTransformer.spec.ts +0 -418
- package/tests/unit/postman-transformers/data/Backup.postman_dump.json +0 -750
- package/tests/unit/postman-transformers/data/HTTPBin.postman_collection-2.0.json +0 -508
- package/tests/unit/postman-transformers/data/HTTPBin.postman_collection-2.1.json +0 -542
- package/tests/unit/runtime/http-engine/HttpResponseParser.spec.ts +0 -337
- package/tests/unit/runtime/http-engine/abort.spec.ts +0 -83
- package/tests/unit/runtime/http-engine/auth.spec.ts +0 -52
- package/tests/unit/runtime/http-engine/certificates/CertificateManager.spec.ts +0 -482
- package/tests/unit/runtime/http-engine/certificates.spec.ts +0 -180
- package/tests/unit/runtime/http-engine/cleanup.spec.ts +0 -44
- package/tests/unit/runtime/http-engine/compression/CompressionManager.spec.ts +0 -498
- package/tests/unit/runtime/http-engine/compression.spec.ts +0 -114
- package/tests/unit/runtime/http-engine/connections/ConnectionManager.spec.ts +0 -379
- package/tests/unit/runtime/http-engine/connections/DigestAuthHandler.spec.ts +0 -164
- package/tests/unit/runtime/http-engine/core_engine.spec.ts +0 -560
- package/tests/unit/runtime/http-engine/engine_statuses.spec.ts +0 -58
- package/tests/unit/runtime/http-engine/events.spec.ts +0 -50
- package/tests/unit/runtime/http-engine/form_data.spec.ts +0 -112
- package/tests/unit/runtime/http-engine/headers.spec.ts +0 -149
- package/tests/unit/runtime/http-engine/hosts.spec.ts +0 -29
- package/tests/unit/runtime/http-engine/http-get.spec.ts +0 -36
- package/tests/unit/runtime/http-engine/http-post.spec.ts +0 -72
- package/tests/unit/runtime/http-engine/logger.spec.ts +0 -24
- package/tests/unit/runtime/http-engine/message.spec.ts +0 -184
- package/tests/unit/runtime/http-engine/params.spec.ts +0 -388
- package/tests/unit/runtime/http-engine/payload_support.spec.ts +0 -127
- package/tests/unit/runtime/http-engine/proxy.spec.ts +0 -522
- package/tests/unit/runtime/http-engine/redirects.spec.ts +0 -217
- package/tests/unit/runtime/http-engine/request_utils.spec.ts +0 -176
- package/tests/unit/runtime/http-engine/responses.spec.ts +0 -272
- package/tests/unit/runtime/http-engine/timeout.spec.ts +0 -33
- package/tests/unit/runtime/http-engine/timings.spec.ts +0 -50
- package/tests/unit/runtime/proxy/HttpProjectProxy.spec.ts +0 -241
- package/tests/unit/runtime/proxy/RequestProxy.spec.ts +0 -130
- package/tests/unit/runtime/reporters/project_run_cli_reporter.spec.ts +0 -62
- package/tests/unit/runtime/runners/http_assertion_runner.spec.ts +0 -1303
- package/tests/unit/runtime/runners/http_flow_runner.spec.ts +0 -1174
- package/tests/unit/runtime/runners/parallel_runner.spec.ts +0 -365
- package/tests/unit/runtime/runners/project_runner.spec.ts +0 -839
- package/tests/unit/runtime/runners/request_runner.spec.ts +0 -933
- package/tests/unit/runtime/runners/serial_runner.spec.ts +0 -629
- package/tests/unit/runtime/variables/cache.spec.ts +0 -95
- package/tests/unit/runtime/variables/eval_functions.spec.ts +0 -66
- package/tests/unit/runtime/variables/variables_processor.spec.ts +0 -563
- package/tests/unit/src/Platform.spec.ts +0 -24
- package/tsconfig.browser.json +0 -33
- package/tsconfig.node.json +0 -34
- /package/{API_MODELING_EXPLAINER.md → architecture/API_MODELING_EXPLAINER.md} +0 -0
- /package/{DATA_MODELING_EXPLAINER.md → architecture/DATA_MODELING_EXPLAINER.md} +0 -0
|
@@ -1,1237 +0,0 @@
|
|
|
1
|
-
/* eslint-disable @typescript-eslint/no-empty-object-type */
|
|
2
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
3
|
-
/* eslint-disable @typescript-eslint/no-this-alias */
|
|
4
|
-
import { ProjectParent } from './ProjectParent.js';
|
|
5
|
-
import { Environment, Kind as EnvironmentKind } from './Environment.js';
|
|
6
|
-
import { License } from './License.js';
|
|
7
|
-
import { Provider } from './Provider.js';
|
|
8
|
-
import { Thing } from './Thing.js';
|
|
9
|
-
import { ProjectItem } from './ProjectItem.js';
|
|
10
|
-
import { ProjectFolder } from './ProjectFolder.js';
|
|
11
|
-
import { ProjectRequest, Kind as ProjectRequestKind } from './ProjectRequest.js';
|
|
12
|
-
import { ProjectSchema } from './ProjectSchema.js';
|
|
13
|
-
import { Request } from './Request.js';
|
|
14
|
-
import { nanoid } from '../nanoid.js';
|
|
15
|
-
import { PostmanDataTransformer } from './transformers/PostmanDataTransformer.js';
|
|
16
|
-
import { Certificate } from './ClientCertificate.js';
|
|
17
|
-
import { ProjectFolderKind } from './kinds.js';
|
|
18
|
-
export const Kind = 'Core#HttpProject';
|
|
19
|
-
/**
|
|
20
|
-
* An instance of an HttpProject.
|
|
21
|
-
*/
|
|
22
|
-
export class HttpProject extends ProjectParent {
|
|
23
|
-
kind = Kind;
|
|
24
|
-
initEnvironments;
|
|
25
|
-
/**
|
|
26
|
-
* The license information for this HTTP project.
|
|
27
|
-
*/
|
|
28
|
-
license;
|
|
29
|
-
/**
|
|
30
|
-
* Information about project provider.
|
|
31
|
-
*/
|
|
32
|
-
provider;
|
|
33
|
-
/**
|
|
34
|
-
* The list of all requests stored in this project.
|
|
35
|
-
* Note, this is not used to visualized the request in the UI.
|
|
36
|
-
* This is just the source of data.
|
|
37
|
-
* The `items` property is used to build the view.
|
|
38
|
-
*/
|
|
39
|
-
definitions = HttpProject.defaultDefinitions();
|
|
40
|
-
static defaultDefinitions() {
|
|
41
|
-
return { environments: [], folders: [], requests: [], schemas: [], certificates: [] };
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Creates a new HTTP project from a name.
|
|
45
|
-
* @param {string} name The name to set.
|
|
46
|
-
*/
|
|
47
|
-
static fromName(name) {
|
|
48
|
-
const project = new HttpProject();
|
|
49
|
-
const info = Thing.fromName(name);
|
|
50
|
-
project.info = info;
|
|
51
|
-
return project;
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* Creates an HTTP project instance from ARC's legacy project definition.
|
|
55
|
-
*/
|
|
56
|
-
static async fromLegacy(project, requests) {
|
|
57
|
-
const { name = 'Unnamed project', description, requests: ids } = project;
|
|
58
|
-
const typedLegacyDb = project;
|
|
59
|
-
const result = HttpProject.fromName(name);
|
|
60
|
-
if (typedLegacyDb._id) {
|
|
61
|
-
result.key = typedLegacyDb._id;
|
|
62
|
-
}
|
|
63
|
-
if (description) {
|
|
64
|
-
result.info.description = description;
|
|
65
|
-
}
|
|
66
|
-
if (Array.isArray(ids) && ids.length) {
|
|
67
|
-
const promises = ids.map(async (id) => {
|
|
68
|
-
const old = requests.find((item) => item._id === id);
|
|
69
|
-
if (!old) {
|
|
70
|
-
return;
|
|
71
|
-
}
|
|
72
|
-
const request = await Request.fromLegacy(old);
|
|
73
|
-
const projectRequest = ProjectRequest.fromRequest(request.toJSON(), result);
|
|
74
|
-
if (old._id) {
|
|
75
|
-
projectRequest.key = old._id;
|
|
76
|
-
}
|
|
77
|
-
result.addRequest(projectRequest);
|
|
78
|
-
});
|
|
79
|
-
await Promise.allSettled(promises);
|
|
80
|
-
}
|
|
81
|
-
return result;
|
|
82
|
-
}
|
|
83
|
-
/**
|
|
84
|
-
* Creates an HTTP project from a Postman collection
|
|
85
|
-
* @param init The postman collection object or a string that can be parsed to one.
|
|
86
|
-
*/
|
|
87
|
-
static async fromPostman(init) {
|
|
88
|
-
const result = await PostmanDataTransformer.transform(init);
|
|
89
|
-
if (Array.isArray(result) && result.length > 1) {
|
|
90
|
-
throw new Error(`Unable to process postman data. It contains multiple collections.`);
|
|
91
|
-
}
|
|
92
|
-
const project = Array.isArray(result) ? result[0] : result;
|
|
93
|
-
return project;
|
|
94
|
-
}
|
|
95
|
-
/**
|
|
96
|
-
* Creates a new project from a set of options.
|
|
97
|
-
*/
|
|
98
|
-
static fromInitOptions(init) {
|
|
99
|
-
const { name = 'Unnamed project' } = init;
|
|
100
|
-
return HttpProject.fromName(name);
|
|
101
|
-
}
|
|
102
|
-
/**
|
|
103
|
-
* @param input The project definition used to restore the state.
|
|
104
|
-
* @param environments Optional list of environments to use with this project. It overrides
|
|
105
|
-
* environments stored in the project definition.
|
|
106
|
-
*/
|
|
107
|
-
constructor(input, environments) {
|
|
108
|
-
super();
|
|
109
|
-
if (Array.isArray(environments)) {
|
|
110
|
-
this.initEnvironments = environments.map((i) => new Environment(i));
|
|
111
|
-
}
|
|
112
|
-
let init;
|
|
113
|
-
if (typeof input === 'string') {
|
|
114
|
-
init = JSON.parse(input);
|
|
115
|
-
}
|
|
116
|
-
else if (typeof input === 'object') {
|
|
117
|
-
init = input;
|
|
118
|
-
if (!init.kind) {
|
|
119
|
-
init.kind = Kind;
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
else {
|
|
123
|
-
init = {
|
|
124
|
-
kind: Kind,
|
|
125
|
-
key: nanoid(),
|
|
126
|
-
definitions: {},
|
|
127
|
-
items: [],
|
|
128
|
-
info: Thing.fromName('').toJSON(),
|
|
129
|
-
};
|
|
130
|
-
}
|
|
131
|
-
this.new(init);
|
|
132
|
-
}
|
|
133
|
-
/**
|
|
134
|
-
* Creates a new project definition clearing anything that is so far defined.
|
|
135
|
-
*
|
|
136
|
-
* Note, this throws an error when the project is not an API Client project.
|
|
137
|
-
*/
|
|
138
|
-
new(init) {
|
|
139
|
-
if (!init || !init.definitions || !init.items) {
|
|
140
|
-
throw new Error(`Not a project.`);
|
|
141
|
-
}
|
|
142
|
-
const { key = nanoid(), definitions = {}, items, info, license, provider } = init;
|
|
143
|
-
this.key = key;
|
|
144
|
-
if (license) {
|
|
145
|
-
this.license = new License(license);
|
|
146
|
-
}
|
|
147
|
-
else {
|
|
148
|
-
this.license = undefined;
|
|
149
|
-
}
|
|
150
|
-
if (provider) {
|
|
151
|
-
this.provider = new Provider(provider);
|
|
152
|
-
}
|
|
153
|
-
else {
|
|
154
|
-
this.provider = undefined;
|
|
155
|
-
}
|
|
156
|
-
if (info) {
|
|
157
|
-
this.info = new Thing(info);
|
|
158
|
-
}
|
|
159
|
-
else {
|
|
160
|
-
this.info = Thing.fromName('');
|
|
161
|
-
}
|
|
162
|
-
this.items = [];
|
|
163
|
-
if (Array.isArray(items)) {
|
|
164
|
-
this.items = items.map((i) => new ProjectItem(this, i));
|
|
165
|
-
}
|
|
166
|
-
this.definitions = HttpProject.defaultDefinitions();
|
|
167
|
-
if (Array.isArray(definitions.environments)) {
|
|
168
|
-
this.definitions.environments = definitions.environments.map((i) => new Environment(i));
|
|
169
|
-
}
|
|
170
|
-
if (Array.isArray(definitions.requests)) {
|
|
171
|
-
this.definitions.requests = definitions.requests.map((i) => {
|
|
172
|
-
const instance = new ProjectRequest(this, i);
|
|
173
|
-
instance.attachedCallback();
|
|
174
|
-
return instance;
|
|
175
|
-
});
|
|
176
|
-
}
|
|
177
|
-
if (Array.isArray(definitions.folders)) {
|
|
178
|
-
this.definitions.folders = definitions.folders.map((i) => {
|
|
179
|
-
const instance = new ProjectFolder(this, i);
|
|
180
|
-
instance.attachedCallback();
|
|
181
|
-
return instance;
|
|
182
|
-
});
|
|
183
|
-
}
|
|
184
|
-
if (Array.isArray(definitions.schemas)) {
|
|
185
|
-
this.definitions.schemas = definitions.schemas.map((i) => new ProjectSchema(i));
|
|
186
|
-
}
|
|
187
|
-
if (Array.isArray(definitions.certificates)) {
|
|
188
|
-
this.definitions.certificates = definitions.certificates.map((i) => new Certificate(i));
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
toJSON() {
|
|
192
|
-
const result = {
|
|
193
|
-
kind: Kind,
|
|
194
|
-
key: this.key,
|
|
195
|
-
definitions: {},
|
|
196
|
-
items: [],
|
|
197
|
-
info: this.info.toJSON(),
|
|
198
|
-
};
|
|
199
|
-
if (Array.isArray(this.definitions.environments) && this.definitions.environments.length) {
|
|
200
|
-
result.definitions.environments = this.definitions.environments.map((i) => i.toJSON());
|
|
201
|
-
}
|
|
202
|
-
if (Array.isArray(this.definitions.requests) && this.definitions.requests.length) {
|
|
203
|
-
result.definitions.requests = this.definitions.requests.map((i) => i.toJSON());
|
|
204
|
-
}
|
|
205
|
-
if (Array.isArray(this.definitions.folders) && this.definitions.folders.length) {
|
|
206
|
-
result.definitions.folders = this.definitions.folders.map((i) => i.toJSON());
|
|
207
|
-
}
|
|
208
|
-
if (Array.isArray(this.definitions.schemas) && this.definitions.schemas.length) {
|
|
209
|
-
result.definitions.schemas = this.definitions.schemas.map((i) => i.toJSON());
|
|
210
|
-
}
|
|
211
|
-
if (Array.isArray(this.definitions.certificates) && this.definitions.certificates.length) {
|
|
212
|
-
result.definitions.certificates = this.definitions.certificates.map((i) => i.toJSON());
|
|
213
|
-
}
|
|
214
|
-
if (Array.isArray(this.items) && this.items.length) {
|
|
215
|
-
result.items = this.items.map((i) => i.toJSON());
|
|
216
|
-
}
|
|
217
|
-
if (this.provider) {
|
|
218
|
-
result.provider = this.provider.toJSON();
|
|
219
|
-
}
|
|
220
|
-
if (this.license) {
|
|
221
|
-
result.license = this.license.toJSON();
|
|
222
|
-
}
|
|
223
|
-
return result;
|
|
224
|
-
}
|
|
225
|
-
/**
|
|
226
|
-
* @returns JSON representation of the project
|
|
227
|
-
*/
|
|
228
|
-
toString() {
|
|
229
|
-
return JSON.stringify(this);
|
|
230
|
-
}
|
|
231
|
-
/**
|
|
232
|
-
* Finds a parent of a definition.
|
|
233
|
-
*
|
|
234
|
-
* @param key The key of the definition.
|
|
235
|
-
* @returns The parent or undefine when not found.
|
|
236
|
-
*/
|
|
237
|
-
findParent(key) {
|
|
238
|
-
const { definitions, items = [] } = this;
|
|
239
|
-
const projectItemsIndex = items.findIndex((i) => i.key === key);
|
|
240
|
-
if (projectItemsIndex > -1) {
|
|
241
|
-
return this;
|
|
242
|
-
}
|
|
243
|
-
const definition = definitions.folders.find((i) => i.items.some((item) => item.key === key));
|
|
244
|
-
if (definition) {
|
|
245
|
-
return definition;
|
|
246
|
-
}
|
|
247
|
-
return undefined;
|
|
248
|
-
}
|
|
249
|
-
/**
|
|
250
|
-
* Appends a new folder to the project or a sub-folder.
|
|
251
|
-
*
|
|
252
|
-
* Passing the folder schema as the fist argument is primarily used to insert a folder on the client side
|
|
253
|
-
* after a folder was created in the store.
|
|
254
|
-
*
|
|
255
|
-
* @param init The name or a folder schema. When not set a default name is assumed.
|
|
256
|
-
* @param opts Folder create options.
|
|
257
|
-
* @returns The newly inserted folder. If the folder already existed it returns its instance.
|
|
258
|
-
*/
|
|
259
|
-
addFolder(init = ProjectFolder.defaultName, opts = {}) {
|
|
260
|
-
if (!Array.isArray(this.items)) {
|
|
261
|
-
this.items = [];
|
|
262
|
-
}
|
|
263
|
-
if (!Array.isArray(this.definitions.folders)) {
|
|
264
|
-
this.definitions.folders = [];
|
|
265
|
-
}
|
|
266
|
-
const { skipExisting, parent } = opts;
|
|
267
|
-
let root;
|
|
268
|
-
if (parent) {
|
|
269
|
-
const rootCandidate = this.findFolder(parent);
|
|
270
|
-
if (!rootCandidate) {
|
|
271
|
-
throw new Error(`Unable to find the parent folder ${parent}`);
|
|
272
|
-
}
|
|
273
|
-
root = rootCandidate;
|
|
274
|
-
}
|
|
275
|
-
else {
|
|
276
|
-
root = this;
|
|
277
|
-
}
|
|
278
|
-
let definition;
|
|
279
|
-
if (typeof init === 'string') {
|
|
280
|
-
definition = ProjectFolder.fromName(this, init);
|
|
281
|
-
}
|
|
282
|
-
else if (init instanceof ProjectFolder) {
|
|
283
|
-
definition = init;
|
|
284
|
-
}
|
|
285
|
-
else {
|
|
286
|
-
definition = new ProjectFolder(this, init);
|
|
287
|
-
}
|
|
288
|
-
if (skipExisting) {
|
|
289
|
-
const folders = root.listFolderItems();
|
|
290
|
-
for (const item of folders) {
|
|
291
|
-
const existing = this.findFolder(item.key, { keyOnly: true });
|
|
292
|
-
if (existing && existing.info.name === definition.info.name) {
|
|
293
|
-
return existing;
|
|
294
|
-
}
|
|
295
|
-
}
|
|
296
|
-
}
|
|
297
|
-
this.definitions.folders.push(definition);
|
|
298
|
-
const item = ProjectItem.projectFolder(this, definition.key);
|
|
299
|
-
if (!Array.isArray(root.items)) {
|
|
300
|
-
root.items = [];
|
|
301
|
-
}
|
|
302
|
-
if (typeof opts.index === 'number') {
|
|
303
|
-
root.items.splice(opts.index, 0, item);
|
|
304
|
-
}
|
|
305
|
-
else {
|
|
306
|
-
root.items.push(item);
|
|
307
|
-
}
|
|
308
|
-
definition.attachedCallback();
|
|
309
|
-
return definition;
|
|
310
|
-
}
|
|
311
|
-
/**
|
|
312
|
-
* Searches for a folder in the structure.
|
|
313
|
-
*
|
|
314
|
-
* @param nameOrKey The name or the key of the folder.
|
|
315
|
-
* @param opts Optional search options.
|
|
316
|
-
* @returns Found project folder or undefined.
|
|
317
|
-
*/
|
|
318
|
-
findFolder(nameOrKey, opts = {}) {
|
|
319
|
-
const { definitions } = this;
|
|
320
|
-
const item = definitions.folders.find((i) => {
|
|
321
|
-
if (i.kind !== ProjectFolderKind) {
|
|
322
|
-
return false;
|
|
323
|
-
}
|
|
324
|
-
const folder = i;
|
|
325
|
-
if (folder.key === nameOrKey) {
|
|
326
|
-
return true;
|
|
327
|
-
}
|
|
328
|
-
if (opts.keyOnly) {
|
|
329
|
-
return false;
|
|
330
|
-
}
|
|
331
|
-
return !!folder.info && folder.info.name === nameOrKey;
|
|
332
|
-
});
|
|
333
|
-
if (item) {
|
|
334
|
-
return item;
|
|
335
|
-
}
|
|
336
|
-
}
|
|
337
|
-
/**
|
|
338
|
-
* Removes a folder from the project.
|
|
339
|
-
* @param key The folder key. It ignores the name when searching to the folder to avoid ambiguity.
|
|
340
|
-
* @param opts Folder remove options.
|
|
341
|
-
* @returns The removed folder definition or undefined when not removed.
|
|
342
|
-
*/
|
|
343
|
-
removeFolder(key, opts = {}) {
|
|
344
|
-
const { definitions } = this;
|
|
345
|
-
const folder = this.findFolder(key, { keyOnly: true });
|
|
346
|
-
if (!folder) {
|
|
347
|
-
if (opts.safe) {
|
|
348
|
-
return undefined;
|
|
349
|
-
}
|
|
350
|
-
throw new Error(`Unable to find the folder ${key}`);
|
|
351
|
-
}
|
|
352
|
-
const parent = this.findParent(key);
|
|
353
|
-
if (!parent) {
|
|
354
|
-
if (opts.safe) {
|
|
355
|
-
return undefined;
|
|
356
|
-
}
|
|
357
|
-
throw new Error(`Unable to find a parent of the folder ${key}`);
|
|
358
|
-
}
|
|
359
|
-
const requests = folder.listRequests();
|
|
360
|
-
requests.forEach((r) => r.remove());
|
|
361
|
-
const folders = folder.listFolders();
|
|
362
|
-
folders.forEach((f) => f.remove());
|
|
363
|
-
const itemIndex = parent.items.findIndex((i) => i.key === key);
|
|
364
|
-
const definitionIndex = definitions.folders.findIndex((i) => i.key === key);
|
|
365
|
-
definitions.folders.splice(definitionIndex, 1);
|
|
366
|
-
folder.detachedCallback();
|
|
367
|
-
if (itemIndex >= 0) {
|
|
368
|
-
parent.items.splice(itemIndex, 1);
|
|
369
|
-
}
|
|
370
|
-
return folder;
|
|
371
|
-
}
|
|
372
|
-
/**
|
|
373
|
-
* Moves a folder between folders and the project or between items inside a folder or a project
|
|
374
|
-
*
|
|
375
|
-
* Note, when the `parent` option is not specified it moved the folder to the project's root.
|
|
376
|
-
*
|
|
377
|
-
* @param key The key of the request to move.
|
|
378
|
-
* @param opts The moving options.
|
|
379
|
-
*/
|
|
380
|
-
moveFolder(key, opts = {}) {
|
|
381
|
-
const { index, parent } = opts;
|
|
382
|
-
const movedFolder = this.findFolder(key);
|
|
383
|
-
if (!movedFolder) {
|
|
384
|
-
throw new Error(`Unable to locate the folder ${key}`);
|
|
385
|
-
}
|
|
386
|
-
const parentFolder = this.findParent(key);
|
|
387
|
-
if (!parentFolder) {
|
|
388
|
-
throw new Error(`Unable to locate a parent of the folder ${key}`);
|
|
389
|
-
}
|
|
390
|
-
if (parent) {
|
|
391
|
-
// check if moving a folder into another folder that is a child of the moved folder.
|
|
392
|
-
if (this.hasChild(parent, key)) {
|
|
393
|
-
throw new RangeError(`Unable to move a folder to its child.`);
|
|
394
|
-
}
|
|
395
|
-
}
|
|
396
|
-
const target = parent ? this.findFolder(parent) : this;
|
|
397
|
-
if (!target) {
|
|
398
|
-
throw new Error(`Unable to locate the new parent folder ${parent}`);
|
|
399
|
-
}
|
|
400
|
-
const hasIndex = typeof index === 'number';
|
|
401
|
-
if (hasIndex) {
|
|
402
|
-
// comparing to the `.length` and not `.length - 1` in case we are adding at the end.
|
|
403
|
-
const maxIndex = Math.max(target.items.length, 0);
|
|
404
|
-
if (index > maxIndex) {
|
|
405
|
-
throw new RangeError(`Index out of bounds. Maximum index is ${maxIndex}.`);
|
|
406
|
-
}
|
|
407
|
-
}
|
|
408
|
-
const itemIndex = parentFolder.items.findIndex((i) => i.key === key);
|
|
409
|
-
const item = parentFolder.items.splice(itemIndex, 1)[0];
|
|
410
|
-
movedFolder.detachedCallback();
|
|
411
|
-
if (hasIndex && target.items.length > index) {
|
|
412
|
-
target.items.splice(index, 0, item);
|
|
413
|
-
}
|
|
414
|
-
else {
|
|
415
|
-
target.items.push(item);
|
|
416
|
-
}
|
|
417
|
-
movedFolder.attachedCallback();
|
|
418
|
-
}
|
|
419
|
-
/**
|
|
420
|
-
* Checks whether a folder has a child (anywhere down the structure).
|
|
421
|
-
*
|
|
422
|
-
* @param child The **key** of the child.
|
|
423
|
-
* @param folder The **key** of the folder. When not set it searches from the project root.
|
|
424
|
-
* @returns True when the child is located somewhere down the structure.
|
|
425
|
-
*/
|
|
426
|
-
hasChild(child, folder) {
|
|
427
|
-
const target = folder ? this.findFolder(folder) : this;
|
|
428
|
-
if (!target) {
|
|
429
|
-
throw new Error(`Unable to locate the folder ${folder}`);
|
|
430
|
-
}
|
|
431
|
-
const { items = [] } = target;
|
|
432
|
-
for (const item of items) {
|
|
433
|
-
if (item.key === child) {
|
|
434
|
-
return true;
|
|
435
|
-
}
|
|
436
|
-
if (item.kind === ProjectFolderKind) {
|
|
437
|
-
const hasChild = this.hasChild(child, item.key);
|
|
438
|
-
if (hasChild) {
|
|
439
|
-
return true;
|
|
440
|
-
}
|
|
441
|
-
}
|
|
442
|
-
}
|
|
443
|
-
return false;
|
|
444
|
-
}
|
|
445
|
-
/**
|
|
446
|
-
* Adds a request to the project or a sub-folder.
|
|
447
|
-
* @param request The request to add.
|
|
448
|
-
* @param opts Thew request add options.
|
|
449
|
-
* @returns The inserted into the definitions request.
|
|
450
|
-
*/
|
|
451
|
-
addRequest(request, opts = {}) {
|
|
452
|
-
if (!Array.isArray(this.definitions.requests)) {
|
|
453
|
-
this.definitions.requests = [];
|
|
454
|
-
}
|
|
455
|
-
// the request can be already added to the project as the same method is used to refresh a request after
|
|
456
|
-
// a store update. From the system perspective it is the same event.
|
|
457
|
-
if (typeof request === 'object' && request.key) {
|
|
458
|
-
const existing = this.definitions.requests.find((i) => i.key === request.key);
|
|
459
|
-
if (existing) {
|
|
460
|
-
existing.new(request);
|
|
461
|
-
return existing;
|
|
462
|
-
}
|
|
463
|
-
}
|
|
464
|
-
// if we got here, it means that we are adding a new request object to the project.
|
|
465
|
-
let finalRequest;
|
|
466
|
-
if (typeof request === 'string') {
|
|
467
|
-
finalRequest = ProjectRequest.fromUrl(request, this);
|
|
468
|
-
}
|
|
469
|
-
else if (request instanceof ProjectRequest) {
|
|
470
|
-
finalRequest = request;
|
|
471
|
-
if (finalRequest.project && finalRequest.project !== this) {
|
|
472
|
-
finalRequest.detachedCallback();
|
|
473
|
-
}
|
|
474
|
-
finalRequest.project = this;
|
|
475
|
-
}
|
|
476
|
-
else {
|
|
477
|
-
finalRequest = new ProjectRequest(this, request);
|
|
478
|
-
}
|
|
479
|
-
if (!finalRequest.key) {
|
|
480
|
-
finalRequest.key = nanoid();
|
|
481
|
-
}
|
|
482
|
-
let root;
|
|
483
|
-
if (opts.parent) {
|
|
484
|
-
const rootCandidate = this.findFolder(opts.parent);
|
|
485
|
-
if (!rootCandidate) {
|
|
486
|
-
throw new Error(`Unable to find the parent folder ${opts.parent}.`);
|
|
487
|
-
}
|
|
488
|
-
root = rootCandidate;
|
|
489
|
-
}
|
|
490
|
-
else {
|
|
491
|
-
root = this;
|
|
492
|
-
}
|
|
493
|
-
if (!Array.isArray(root.items)) {
|
|
494
|
-
root.items = [];
|
|
495
|
-
}
|
|
496
|
-
if (typeof opts.index === 'number') {
|
|
497
|
-
const maxIndex = Math.max(root.items.length - 1, 0);
|
|
498
|
-
if (opts.index > maxIndex) {
|
|
499
|
-
throw new RangeError(`Index out of bounds. Maximum index is ${maxIndex}.`);
|
|
500
|
-
}
|
|
501
|
-
}
|
|
502
|
-
this.definitions.requests.push(finalRequest);
|
|
503
|
-
const item = ProjectItem.projectRequest(this, finalRequest.key);
|
|
504
|
-
if (typeof opts.index === 'number') {
|
|
505
|
-
root.items.splice(opts.index, 0, item);
|
|
506
|
-
}
|
|
507
|
-
else {
|
|
508
|
-
root.items.push(item);
|
|
509
|
-
}
|
|
510
|
-
finalRequest.attachedCallback();
|
|
511
|
-
return finalRequest;
|
|
512
|
-
}
|
|
513
|
-
/**
|
|
514
|
-
* Adds a request to the project that has been created for a previous version of ARC.
|
|
515
|
-
*
|
|
516
|
-
* @param legacy The legacy request definition.
|
|
517
|
-
* @returns The created project request.
|
|
518
|
-
*/
|
|
519
|
-
async addLegacyRequest(legacy) {
|
|
520
|
-
const request = await Request.fromLegacy(legacy);
|
|
521
|
-
const projectRequest = ProjectRequest.fromRequest(request.toJSON(), this);
|
|
522
|
-
return this.addRequest(projectRequest);
|
|
523
|
-
}
|
|
524
|
-
/**
|
|
525
|
-
* Searches for a request in the project.
|
|
526
|
-
*
|
|
527
|
-
* @param nameOrKey The name or the key of the request.
|
|
528
|
-
* @param opts Optional search options.
|
|
529
|
-
* @returns Found project request or undefined.
|
|
530
|
-
*/
|
|
531
|
-
findRequest(nameOrKey, opts = {}) {
|
|
532
|
-
const { definitions } = this;
|
|
533
|
-
const item = definitions.requests.find((request) => {
|
|
534
|
-
if (request.key === nameOrKey) {
|
|
535
|
-
return true;
|
|
536
|
-
}
|
|
537
|
-
if (opts.keyOnly) {
|
|
538
|
-
return false;
|
|
539
|
-
}
|
|
540
|
-
return !!request.info && request.info.name === nameOrKey;
|
|
541
|
-
});
|
|
542
|
-
if (item) {
|
|
543
|
-
return item;
|
|
544
|
-
}
|
|
545
|
-
return undefined;
|
|
546
|
-
}
|
|
547
|
-
/**
|
|
548
|
-
* Removes a request from the project.
|
|
549
|
-
*
|
|
550
|
-
* @param key The request key. It ignores the name when searching to the request to avoid ambiguity.
|
|
551
|
-
* @param opts Request remove options.
|
|
552
|
-
* @returns The removed request definition or undefined when not removed.
|
|
553
|
-
*/
|
|
554
|
-
removeRequest(key, opts = {}) {
|
|
555
|
-
const { definitions } = this;
|
|
556
|
-
const request = this.findRequest(key, { keyOnly: true });
|
|
557
|
-
if (!request) {
|
|
558
|
-
if (opts.safe) {
|
|
559
|
-
return undefined;
|
|
560
|
-
}
|
|
561
|
-
throw new Error(`Unable to find the request ${key}`);
|
|
562
|
-
}
|
|
563
|
-
const parent = this.findParent(key);
|
|
564
|
-
if (!parent) {
|
|
565
|
-
if (opts.safe) {
|
|
566
|
-
return undefined;
|
|
567
|
-
}
|
|
568
|
-
throw new Error(`Unable to find a parent of the request ${key}`);
|
|
569
|
-
}
|
|
570
|
-
const itemIndex = parent.items.findIndex((i) => i.key === key);
|
|
571
|
-
const definitionIndex = definitions.requests.findIndex((i) => i.key === key);
|
|
572
|
-
definitions.requests.splice(definitionIndex, 1);
|
|
573
|
-
request.detachedCallback();
|
|
574
|
-
if (itemIndex >= 0) {
|
|
575
|
-
parent.items.splice(itemIndex, 1);
|
|
576
|
-
}
|
|
577
|
-
return request;
|
|
578
|
-
}
|
|
579
|
-
/**
|
|
580
|
-
* Moves a request between folders and the project or between items inside a folder or a project.
|
|
581
|
-
*
|
|
582
|
-
* Note, when the `parent` option is not specified it moved the request to the project's root.
|
|
583
|
-
*
|
|
584
|
-
* @param key The key of the request to move.
|
|
585
|
-
* @param opts The moving options.
|
|
586
|
-
*/
|
|
587
|
-
moveRequest(key, opts = {}) {
|
|
588
|
-
const { index, parent } = opts;
|
|
589
|
-
const request = this.findRequest(key);
|
|
590
|
-
if (!request) {
|
|
591
|
-
throw new Error(`Unable to locate the request ${key}`);
|
|
592
|
-
}
|
|
593
|
-
const parentFolder = this.findParent(key);
|
|
594
|
-
if (!parentFolder) {
|
|
595
|
-
throw new Error(`Unable to locate a parent of the request ${key}`);
|
|
596
|
-
}
|
|
597
|
-
const target = parent ? this.findFolder(parent) : this;
|
|
598
|
-
if (!target) {
|
|
599
|
-
throw new Error(`Unable to locate the new parent folder ${parent}`);
|
|
600
|
-
}
|
|
601
|
-
const hasIndex = typeof index === 'number';
|
|
602
|
-
if (hasIndex) {
|
|
603
|
-
// comparing to the `.length` and not `.length - 1` in case we are adding at the end.
|
|
604
|
-
const maxIndex = Math.max(target.items.length, 0);
|
|
605
|
-
if (index > maxIndex) {
|
|
606
|
-
throw new RangeError(`Index out of bounds. Maximum index is ${maxIndex}.`);
|
|
607
|
-
}
|
|
608
|
-
}
|
|
609
|
-
const itemIndex = parentFolder.items.findIndex((i) => i.key === key);
|
|
610
|
-
const item = parentFolder.items.splice(itemIndex, 1)[0];
|
|
611
|
-
request.detachedCallback();
|
|
612
|
-
if (hasIndex && target.items.length > index) {
|
|
613
|
-
target.items.splice(index, 0, item);
|
|
614
|
-
}
|
|
615
|
-
else {
|
|
616
|
-
target.items.push(item);
|
|
617
|
-
}
|
|
618
|
-
request.attachedCallback();
|
|
619
|
-
}
|
|
620
|
-
/**
|
|
621
|
-
* Lists items (not the actual definitions!) that are folders.
|
|
622
|
-
*/
|
|
623
|
-
listFolderItems() {
|
|
624
|
-
const { items = [] } = this;
|
|
625
|
-
return items.filter((i) => i.kind === ProjectFolderKind);
|
|
626
|
-
}
|
|
627
|
-
/**
|
|
628
|
-
* Lists items (not the actual definitions!) that are requests.
|
|
629
|
-
*/
|
|
630
|
-
listRequestItems() {
|
|
631
|
-
const { items = [] } = this;
|
|
632
|
-
return items.filter((i) => i.kind === ProjectRequestKind);
|
|
633
|
-
}
|
|
634
|
-
/**
|
|
635
|
-
* Lists folders from the project or a sub-folder.
|
|
636
|
-
* @param opts Folder listing options.
|
|
637
|
-
*/
|
|
638
|
-
listFolders(opts = {}) {
|
|
639
|
-
let root;
|
|
640
|
-
if (opts.folder) {
|
|
641
|
-
const parent = this.findFolder(opts.folder);
|
|
642
|
-
if (!parent) {
|
|
643
|
-
throw new Error(`Unable to find the folder ${opts.folder}.`);
|
|
644
|
-
}
|
|
645
|
-
root = parent;
|
|
646
|
-
}
|
|
647
|
-
else {
|
|
648
|
-
root = this;
|
|
649
|
-
}
|
|
650
|
-
const items = root.listFolderItems();
|
|
651
|
-
const result = [];
|
|
652
|
-
const { definitions } = this;
|
|
653
|
-
items.forEach((i) => {
|
|
654
|
-
const definition = definitions.folders.find((d) => i.key === d.key);
|
|
655
|
-
if (definition) {
|
|
656
|
-
result.push(definition);
|
|
657
|
-
}
|
|
658
|
-
});
|
|
659
|
-
return result;
|
|
660
|
-
}
|
|
661
|
-
/**
|
|
662
|
-
* Lists requests in this project or a sub-folder.
|
|
663
|
-
* @param folder The optional folder name or the key to list requests for.
|
|
664
|
-
*/
|
|
665
|
-
listRequests(folder) {
|
|
666
|
-
let root;
|
|
667
|
-
if (folder) {
|
|
668
|
-
const parent = this.findFolder(folder);
|
|
669
|
-
if (!parent) {
|
|
670
|
-
throw new Error(`Unable to find the folder ${folder}.`);
|
|
671
|
-
}
|
|
672
|
-
root = parent;
|
|
673
|
-
}
|
|
674
|
-
else {
|
|
675
|
-
root = this;
|
|
676
|
-
}
|
|
677
|
-
const items = root.listRequestItems();
|
|
678
|
-
const result = [];
|
|
679
|
-
const { definitions } = this;
|
|
680
|
-
items.forEach((i) => {
|
|
681
|
-
const definition = definitions.requests.find((d) => i.key === d.key);
|
|
682
|
-
if (definition) {
|
|
683
|
-
result.push(definition);
|
|
684
|
-
}
|
|
685
|
-
});
|
|
686
|
-
return result;
|
|
687
|
-
}
|
|
688
|
-
/**
|
|
689
|
-
* Lists definitions for the `items` of the project or a folder.
|
|
690
|
-
* @param folder Optionally the folder name to list the definitions for.
|
|
691
|
-
*/
|
|
692
|
-
listDefinitions(folder) {
|
|
693
|
-
let root;
|
|
694
|
-
if (folder) {
|
|
695
|
-
const parent = this.findFolder(folder);
|
|
696
|
-
if (!parent) {
|
|
697
|
-
throw new Error(`Unable to find the folder ${folder}`);
|
|
698
|
-
}
|
|
699
|
-
root = parent;
|
|
700
|
-
}
|
|
701
|
-
else {
|
|
702
|
-
root = this;
|
|
703
|
-
}
|
|
704
|
-
const result = [];
|
|
705
|
-
const { items = [] } = root;
|
|
706
|
-
const { definitions } = this;
|
|
707
|
-
items.forEach((item) => {
|
|
708
|
-
let definition;
|
|
709
|
-
if (item.kind === ProjectFolderKind) {
|
|
710
|
-
definition = definitions.folders.find((d) => item.key === d.key);
|
|
711
|
-
}
|
|
712
|
-
else if (item.kind === ProjectRequestKind) {
|
|
713
|
-
definition = definitions.requests.find((d) => item.key === d.key);
|
|
714
|
-
}
|
|
715
|
-
else if (item.kind === EnvironmentKind) {
|
|
716
|
-
definition = definitions.environments.find((d) => item.key === d.key);
|
|
717
|
-
}
|
|
718
|
-
if (definition) {
|
|
719
|
-
result.push(definition);
|
|
720
|
-
}
|
|
721
|
-
});
|
|
722
|
-
return result;
|
|
723
|
-
}
|
|
724
|
-
/**
|
|
725
|
-
* Makes sure the license information exists.
|
|
726
|
-
* @returns The set license.
|
|
727
|
-
*/
|
|
728
|
-
ensureLicense() {
|
|
729
|
-
if (!this.license) {
|
|
730
|
-
this.license = new License();
|
|
731
|
-
}
|
|
732
|
-
return this.license;
|
|
733
|
-
}
|
|
734
|
-
/**
|
|
735
|
-
* Makes sure the Provider information exists.
|
|
736
|
-
* @returns The set provider.
|
|
737
|
-
*/
|
|
738
|
-
ensureProvider() {
|
|
739
|
-
if (!this.provider) {
|
|
740
|
-
this.provider = new Provider();
|
|
741
|
-
}
|
|
742
|
-
return this.provider;
|
|
743
|
-
}
|
|
744
|
-
/**
|
|
745
|
-
* @returns On the project level this always returns undefined.
|
|
746
|
-
*/
|
|
747
|
-
getParent() {
|
|
748
|
-
return undefined;
|
|
749
|
-
}
|
|
750
|
-
attachedCallback() {
|
|
751
|
-
// ...
|
|
752
|
-
}
|
|
753
|
-
detachedCallback() {
|
|
754
|
-
// ...
|
|
755
|
-
}
|
|
756
|
-
getProject() {
|
|
757
|
-
return this;
|
|
758
|
-
}
|
|
759
|
-
/**
|
|
760
|
-
* Makes a copy of this project.
|
|
761
|
-
*/
|
|
762
|
-
clone(opts = {}) {
|
|
763
|
-
const copy = new HttpProject(this.toJSON());
|
|
764
|
-
if (!opts.withoutRevalidate) {
|
|
765
|
-
copy.key = nanoid();
|
|
766
|
-
HttpProject.regenerateKeys(copy);
|
|
767
|
-
}
|
|
768
|
-
return copy;
|
|
769
|
-
}
|
|
770
|
-
static clone(project, opts = {}) {
|
|
771
|
-
const obj = new HttpProject(project);
|
|
772
|
-
return obj.clone(opts);
|
|
773
|
-
}
|
|
774
|
-
/**
|
|
775
|
-
* Re-generates keys in the project, taking care of the references.
|
|
776
|
-
*
|
|
777
|
-
* Note, this changes the project properties. Make a copy of the project before calling this.
|
|
778
|
-
*
|
|
779
|
-
* @param src The project instance to re-generate keys for.
|
|
780
|
-
*/
|
|
781
|
-
static regenerateKeys(src) {
|
|
782
|
-
const { items = [], definitions } = src;
|
|
783
|
-
// create a flat list of all "items" in the project and all folders.
|
|
784
|
-
let flatItems = [...items];
|
|
785
|
-
(definitions.folders || []).forEach((folder) => {
|
|
786
|
-
if (Array.isArray(folder.items) && folder.items.length) {
|
|
787
|
-
flatItems = flatItems.concat(folder.items);
|
|
788
|
-
}
|
|
789
|
-
});
|
|
790
|
-
(definitions.folders || []).forEach((folder) => {
|
|
791
|
-
const oldKey = folder.key;
|
|
792
|
-
const indexObject = flatItems.find((i) => i.key === oldKey);
|
|
793
|
-
if (!indexObject) {
|
|
794
|
-
return;
|
|
795
|
-
}
|
|
796
|
-
const newKey = nanoid();
|
|
797
|
-
indexObject.key = newKey;
|
|
798
|
-
folder.key = newKey;
|
|
799
|
-
});
|
|
800
|
-
(definitions.requests || []).forEach((request) => {
|
|
801
|
-
const oldKey = request.key;
|
|
802
|
-
const indexObject = flatItems.find((i) => i.key === oldKey);
|
|
803
|
-
if (!indexObject) {
|
|
804
|
-
return;
|
|
805
|
-
}
|
|
806
|
-
const newKey = nanoid();
|
|
807
|
-
indexObject.key = newKey;
|
|
808
|
-
request.key = newKey;
|
|
809
|
-
});
|
|
810
|
-
(definitions.schemas || []).forEach((schema) => {
|
|
811
|
-
schema.key = nanoid();
|
|
812
|
-
});
|
|
813
|
-
(definitions.certificates || []).forEach((cert) => {
|
|
814
|
-
cert.key = nanoid();
|
|
815
|
-
});
|
|
816
|
-
(definitions.environments || []).forEach((environment) => {
|
|
817
|
-
const oldKey = environment.key;
|
|
818
|
-
const indexObject = flatItems.find((i) => i.key === oldKey);
|
|
819
|
-
if (!indexObject) {
|
|
820
|
-
return;
|
|
821
|
-
}
|
|
822
|
-
const newKey = nanoid();
|
|
823
|
-
indexObject.key = newKey;
|
|
824
|
-
environment.key = newKey;
|
|
825
|
-
});
|
|
826
|
-
}
|
|
827
|
-
/**
|
|
828
|
-
* Adds a request to the project or a sub-folder.
|
|
829
|
-
* @param schema The schema to add or a name of the schema.
|
|
830
|
-
* @param opts Thew schema add options.
|
|
831
|
-
* @returns The inserted into the schemas schema.
|
|
832
|
-
*/
|
|
833
|
-
addSchema(schema, opts = {}) {
|
|
834
|
-
if (!Array.isArray(this.definitions.schemas)) {
|
|
835
|
-
this.definitions.schemas = [];
|
|
836
|
-
}
|
|
837
|
-
// this renews existing schema
|
|
838
|
-
if (typeof schema === 'object' && schema.key) {
|
|
839
|
-
const existing = this.definitions.schemas.find((i) => i.key === schema.key);
|
|
840
|
-
if (existing) {
|
|
841
|
-
existing.new(schema);
|
|
842
|
-
return existing;
|
|
843
|
-
}
|
|
844
|
-
}
|
|
845
|
-
let finalSchema;
|
|
846
|
-
if (typeof schema === 'string') {
|
|
847
|
-
finalSchema = ProjectSchema.fromName(schema);
|
|
848
|
-
}
|
|
849
|
-
else if (schema instanceof ProjectSchema) {
|
|
850
|
-
finalSchema = schema;
|
|
851
|
-
}
|
|
852
|
-
else {
|
|
853
|
-
finalSchema = new ProjectSchema(schema);
|
|
854
|
-
}
|
|
855
|
-
if (!finalSchema.key) {
|
|
856
|
-
finalSchema.key = nanoid();
|
|
857
|
-
}
|
|
858
|
-
const { index } = opts;
|
|
859
|
-
const hasIndex = typeof index === 'number';
|
|
860
|
-
if (hasIndex && this.definitions.schemas.length > index) {
|
|
861
|
-
// comparing to the `.length` and not `.length - 1` in case we are adding at the end.
|
|
862
|
-
const maxIndex = Math.max(this.definitions.schemas.length, 0);
|
|
863
|
-
if (index > maxIndex) {
|
|
864
|
-
throw new RangeError(`Index out of bounds. Maximum index is ${maxIndex}.`);
|
|
865
|
-
}
|
|
866
|
-
this.definitions.schemas.splice(index, 0, finalSchema);
|
|
867
|
-
}
|
|
868
|
-
else {
|
|
869
|
-
this.definitions.schemas.push(finalSchema);
|
|
870
|
-
}
|
|
871
|
-
return finalSchema;
|
|
872
|
-
}
|
|
873
|
-
/**
|
|
874
|
-
* @returns The current list of schemas in the project.
|
|
875
|
-
*/
|
|
876
|
-
listSchemas() {
|
|
877
|
-
if (!Array.isArray(this.definitions.schemas)) {
|
|
878
|
-
return [];
|
|
879
|
-
}
|
|
880
|
-
return this.definitions.schemas;
|
|
881
|
-
}
|
|
882
|
-
/**
|
|
883
|
-
* Iterates over requests in the project.
|
|
884
|
-
*/
|
|
885
|
-
*requestIterator(opts = {}) {
|
|
886
|
-
const { definitions } = this;
|
|
887
|
-
const { ignore = [], parent, recursive, requests = [] } = opts;
|
|
888
|
-
const root = parent ? this.findFolder(parent) : this;
|
|
889
|
-
if (!root) {
|
|
890
|
-
throw new Error(`The parent folder not found: ${parent}.`);
|
|
891
|
-
}
|
|
892
|
-
const items = root.items;
|
|
893
|
-
if (!items || !items.length) {
|
|
894
|
-
return;
|
|
895
|
-
}
|
|
896
|
-
for (const item of items) {
|
|
897
|
-
if (ignore.includes(item.key)) {
|
|
898
|
-
continue;
|
|
899
|
-
}
|
|
900
|
-
if (item.kind === ProjectRequestKind) {
|
|
901
|
-
const request = definitions.requests.find((i) => i.key === item.key);
|
|
902
|
-
if (!request) {
|
|
903
|
-
continue;
|
|
904
|
-
}
|
|
905
|
-
const name = request.info.name || '';
|
|
906
|
-
if (ignore.includes(name)) {
|
|
907
|
-
continue;
|
|
908
|
-
}
|
|
909
|
-
if (requests.length && !requests.includes(item.key) && !requests.includes(name)) {
|
|
910
|
-
continue;
|
|
911
|
-
}
|
|
912
|
-
yield request;
|
|
913
|
-
}
|
|
914
|
-
else if (recursive && item.kind === ProjectFolderKind) {
|
|
915
|
-
const folder = definitions.folders.find((i) => i.key === item.key);
|
|
916
|
-
if (!folder) {
|
|
917
|
-
continue;
|
|
918
|
-
}
|
|
919
|
-
const name = folder.info.name || '';
|
|
920
|
-
if (ignore.includes(name)) {
|
|
921
|
-
continue;
|
|
922
|
-
}
|
|
923
|
-
const it = this.requestIterator({
|
|
924
|
-
parent: item.key,
|
|
925
|
-
recursive,
|
|
926
|
-
ignore,
|
|
927
|
-
requests,
|
|
928
|
-
});
|
|
929
|
-
for (const request of it) {
|
|
930
|
-
yield request;
|
|
931
|
-
}
|
|
932
|
-
}
|
|
933
|
-
}
|
|
934
|
-
}
|
|
935
|
-
/**
|
|
936
|
-
* Iterates over folders in the project.
|
|
937
|
-
*
|
|
938
|
-
* @param opts Iterator configuration options
|
|
939
|
-
* @param indent Used internally to add `indent` to the result
|
|
940
|
-
* @returns Iterator that yields when a folder is found, including all sub-folders (if configured).
|
|
941
|
-
*/
|
|
942
|
-
*folderIterator(opts = {}, indent = 0) {
|
|
943
|
-
const { definitions } = this;
|
|
944
|
-
const { ignore = [], parent, recursive } = opts;
|
|
945
|
-
const root = parent ? this.findFolder(parent) : this;
|
|
946
|
-
if (!root) {
|
|
947
|
-
throw new Error(`The parent folder not found: ${parent}.`);
|
|
948
|
-
}
|
|
949
|
-
const items = root.items;
|
|
950
|
-
if (!items || !items.length) {
|
|
951
|
-
return;
|
|
952
|
-
}
|
|
953
|
-
for (const item of items) {
|
|
954
|
-
if (item.kind !== ProjectFolderKind) {
|
|
955
|
-
continue;
|
|
956
|
-
}
|
|
957
|
-
const folder = definitions.folders.find((i) => i.key === item.key);
|
|
958
|
-
if (!folder) {
|
|
959
|
-
// missing definition.
|
|
960
|
-
continue;
|
|
961
|
-
}
|
|
962
|
-
if (ignore.includes(folder.key) || (folder.info.name && ignore.includes(folder.info.name))) {
|
|
963
|
-
continue;
|
|
964
|
-
}
|
|
965
|
-
const result = {
|
|
966
|
-
folder,
|
|
967
|
-
indent,
|
|
968
|
-
};
|
|
969
|
-
if (parent) {
|
|
970
|
-
result.parent = parent;
|
|
971
|
-
}
|
|
972
|
-
yield result;
|
|
973
|
-
if (recursive) {
|
|
974
|
-
const it = this.folderIterator({
|
|
975
|
-
parent: folder.key,
|
|
976
|
-
recursive,
|
|
977
|
-
ignore,
|
|
978
|
-
}, indent + 1);
|
|
979
|
-
for (const f of it) {
|
|
980
|
-
yield f;
|
|
981
|
-
}
|
|
982
|
-
}
|
|
983
|
-
}
|
|
984
|
-
}
|
|
985
|
-
[Symbol.iterator]() {
|
|
986
|
-
return this.requestIterator({
|
|
987
|
-
recursive: true,
|
|
988
|
-
});
|
|
989
|
-
}
|
|
990
|
-
/**
|
|
991
|
-
* Depending on the options returns a project or a folder.
|
|
992
|
-
* It throws when parent folder cannot ber found.
|
|
993
|
-
*/
|
|
994
|
-
_getRoot(opts) {
|
|
995
|
-
const project = this.getProject();
|
|
996
|
-
if (opts.parent) {
|
|
997
|
-
const parent = project.findFolder(opts.parent);
|
|
998
|
-
if (!parent) {
|
|
999
|
-
throw new Error(`Unable to find the parent folder ${opts.parent}.`);
|
|
1000
|
-
}
|
|
1001
|
-
return parent;
|
|
1002
|
-
}
|
|
1003
|
-
return project;
|
|
1004
|
-
}
|
|
1005
|
-
_insertItem(item, root, opts) {
|
|
1006
|
-
if (!Array.isArray(root.items)) {
|
|
1007
|
-
root.items = [];
|
|
1008
|
-
}
|
|
1009
|
-
if (typeof opts.index === 'number') {
|
|
1010
|
-
root.items.splice(opts.index, 0, item);
|
|
1011
|
-
}
|
|
1012
|
-
else {
|
|
1013
|
-
root.items.push(item);
|
|
1014
|
-
}
|
|
1015
|
-
}
|
|
1016
|
-
/**
|
|
1017
|
-
* Adds an environment to the project.
|
|
1018
|
-
* @param env The name of the environment to create or its schema
|
|
1019
|
-
* @returns The same or created environment.
|
|
1020
|
-
*/
|
|
1021
|
-
addEnvironment(env, opts = {}) {
|
|
1022
|
-
const environment = this._createEnv(env);
|
|
1023
|
-
const root = this._getRoot(opts);
|
|
1024
|
-
const project = this.getProject();
|
|
1025
|
-
if (!project.definitions.environments) {
|
|
1026
|
-
project.definitions.environments = [];
|
|
1027
|
-
}
|
|
1028
|
-
project.definitions.environments.push(environment);
|
|
1029
|
-
const item = ProjectItem.projectEnvironment(project, environment.key);
|
|
1030
|
-
this._insertItem(item, root, opts);
|
|
1031
|
-
return environment;
|
|
1032
|
-
}
|
|
1033
|
-
_createEnv(env) {
|
|
1034
|
-
let finalEnv;
|
|
1035
|
-
if (env instanceof Environment) {
|
|
1036
|
-
finalEnv = env;
|
|
1037
|
-
}
|
|
1038
|
-
else if (typeof env === 'string') {
|
|
1039
|
-
finalEnv = Environment.fromName(env);
|
|
1040
|
-
}
|
|
1041
|
-
else {
|
|
1042
|
-
finalEnv = new Environment(env);
|
|
1043
|
-
}
|
|
1044
|
-
if (!finalEnv.key) {
|
|
1045
|
-
finalEnv.key = nanoid();
|
|
1046
|
-
}
|
|
1047
|
-
return finalEnv;
|
|
1048
|
-
}
|
|
1049
|
-
/**
|
|
1050
|
-
* This is different to `readEnvironments()`. While the `readEnvironments()`
|
|
1051
|
-
* function generate a list of all environments that apply to a folder, this method
|
|
1052
|
-
* just lists this folder's environments.
|
|
1053
|
-
*
|
|
1054
|
-
* @returns The list of environments defined in this folder
|
|
1055
|
-
*/
|
|
1056
|
-
getEnvironments(opts = {}) {
|
|
1057
|
-
if (Array.isArray(this.initEnvironments)) {
|
|
1058
|
-
return this.initEnvironments;
|
|
1059
|
-
}
|
|
1060
|
-
return this.listEnvironments(opts);
|
|
1061
|
-
}
|
|
1062
|
-
/**
|
|
1063
|
-
* @param key The environment key to read.
|
|
1064
|
-
*/
|
|
1065
|
-
getEnvironment(key, opts = {}) {
|
|
1066
|
-
const root = this._getRoot(opts);
|
|
1067
|
-
const item = root.items.find((i) => i.key === key);
|
|
1068
|
-
if (!item) {
|
|
1069
|
-
return undefined;
|
|
1070
|
-
}
|
|
1071
|
-
const project = this.getProject();
|
|
1072
|
-
if (!Array.isArray(project.definitions.environments)) {
|
|
1073
|
-
project.definitions.environments = [];
|
|
1074
|
-
}
|
|
1075
|
-
return project.definitions.environments.find((e) => e.key === key);
|
|
1076
|
-
}
|
|
1077
|
-
/**
|
|
1078
|
-
* Removes an environment from the folder or a sub-folder.
|
|
1079
|
-
*
|
|
1080
|
-
* @param key the key of the environment to remove
|
|
1081
|
-
* @returns The removed environment, if any.
|
|
1082
|
-
*/
|
|
1083
|
-
removeEnvironment(key, opts = {}) {
|
|
1084
|
-
const root = this._getRoot(opts);
|
|
1085
|
-
const itemIndex = root.items.findIndex((i) => i.key === key);
|
|
1086
|
-
if (itemIndex < 0) {
|
|
1087
|
-
return undefined;
|
|
1088
|
-
}
|
|
1089
|
-
root.items.splice(itemIndex, 1);
|
|
1090
|
-
const project = this.getProject();
|
|
1091
|
-
if (!Array.isArray(project.definitions.environments)) {
|
|
1092
|
-
project.definitions.environments = [];
|
|
1093
|
-
}
|
|
1094
|
-
const defIndex = project.definitions.environments.findIndex((i) => i.key === key);
|
|
1095
|
-
if (defIndex < 0) {
|
|
1096
|
-
return undefined;
|
|
1097
|
-
}
|
|
1098
|
-
const env = project.definitions.environments[defIndex];
|
|
1099
|
-
project.definitions.environments.splice(defIndex, 1);
|
|
1100
|
-
return env;
|
|
1101
|
-
}
|
|
1102
|
-
/**
|
|
1103
|
-
* This is a link to the `getEnvironments()`. The difference is that on the
|
|
1104
|
-
* project level it won't return environments defined with the class initialization.
|
|
1105
|
-
*/
|
|
1106
|
-
listEnvironments(opts = {}) {
|
|
1107
|
-
const root = this._getRoot(opts);
|
|
1108
|
-
const items = root.items.filter((i) => i.kind === EnvironmentKind).map((i) => i.key);
|
|
1109
|
-
const project = this.getProject();
|
|
1110
|
-
if (!Array.isArray(project.definitions.environments)) {
|
|
1111
|
-
project.definitions.environments = [];
|
|
1112
|
-
}
|
|
1113
|
-
return project.definitions.environments.filter((e) => items.includes(e.key));
|
|
1114
|
-
}
|
|
1115
|
-
/**
|
|
1116
|
-
* Reads the list of environments from then selected folder up to the project root.
|
|
1117
|
-
* It stops going up in the project structure when selected environment has the `encapsulated`
|
|
1118
|
-
* property set to true.
|
|
1119
|
-
* The environments are ordered from the top-most level to the selected folder.
|
|
1120
|
-
*
|
|
1121
|
-
* @param opts The environment read options
|
|
1122
|
-
*/
|
|
1123
|
-
readEnvironments(opts = {}) {
|
|
1124
|
-
const result = [];
|
|
1125
|
-
const { parent, nameOrKey } = opts;
|
|
1126
|
-
const root = parent ? this.findFolder(parent, { keyOnly: true }) : this;
|
|
1127
|
-
if (!root) {
|
|
1128
|
-
return result;
|
|
1129
|
-
}
|
|
1130
|
-
let current = root;
|
|
1131
|
-
while (current) {
|
|
1132
|
-
const environments = current.getEnvironments();
|
|
1133
|
-
if (environments.length) {
|
|
1134
|
-
if (nameOrKey) {
|
|
1135
|
-
const selected = environments.find((i) => i.key === nameOrKey || i.info.name === nameOrKey);
|
|
1136
|
-
if (selected) {
|
|
1137
|
-
result.push(selected);
|
|
1138
|
-
if (selected.encapsulated) {
|
|
1139
|
-
break;
|
|
1140
|
-
}
|
|
1141
|
-
}
|
|
1142
|
-
}
|
|
1143
|
-
else {
|
|
1144
|
-
let finished = false;
|
|
1145
|
-
for (const item of environments) {
|
|
1146
|
-
result.push(item);
|
|
1147
|
-
if (item.encapsulated) {
|
|
1148
|
-
finished = true;
|
|
1149
|
-
break;
|
|
1150
|
-
}
|
|
1151
|
-
}
|
|
1152
|
-
if (finished) {
|
|
1153
|
-
break;
|
|
1154
|
-
}
|
|
1155
|
-
}
|
|
1156
|
-
}
|
|
1157
|
-
current = current.getParent();
|
|
1158
|
-
}
|
|
1159
|
-
return result.reverse();
|
|
1160
|
-
}
|
|
1161
|
-
/**
|
|
1162
|
-
* Finds a definition for an environment regardless of its parent.
|
|
1163
|
-
*
|
|
1164
|
-
* @param key The Key of the environment to find.
|
|
1165
|
-
* @returns The environment definition or undefined if not found.
|
|
1166
|
-
*/
|
|
1167
|
-
findEnvironment(key) {
|
|
1168
|
-
return this.definitions.environments.find((i) => i.key === key);
|
|
1169
|
-
}
|
|
1170
|
-
/**
|
|
1171
|
-
* Finds a definition for a certificate.
|
|
1172
|
-
*
|
|
1173
|
-
* @param key The key of the certificate to find.
|
|
1174
|
-
* @returns The certificate definition or undefined if not found.
|
|
1175
|
-
*/
|
|
1176
|
-
findCertificate(key) {
|
|
1177
|
-
return this.definitions.certificates.find((i) => i.key === key);
|
|
1178
|
-
}
|
|
1179
|
-
/**
|
|
1180
|
-
* Adds a certificate to the project.
|
|
1181
|
-
*
|
|
1182
|
-
* @param init Either an instance of a certificate or its definition.
|
|
1183
|
-
* @returns The inserted certificate.
|
|
1184
|
-
*/
|
|
1185
|
-
addCertificate(init) {
|
|
1186
|
-
let finalCert;
|
|
1187
|
-
if (init instanceof Certificate) {
|
|
1188
|
-
finalCert = init;
|
|
1189
|
-
}
|
|
1190
|
-
else {
|
|
1191
|
-
finalCert = new Certificate(init);
|
|
1192
|
-
}
|
|
1193
|
-
if (!this.definitions.certificates) {
|
|
1194
|
-
this.definitions.certificates = [];
|
|
1195
|
-
}
|
|
1196
|
-
this.definitions.certificates.push(finalCert);
|
|
1197
|
-
return finalCert;
|
|
1198
|
-
}
|
|
1199
|
-
/**
|
|
1200
|
-
* Removes a certificate from the project.
|
|
1201
|
-
*
|
|
1202
|
-
* @param key the key of the certificate to remove
|
|
1203
|
-
* @returns The removed certificate, if any.
|
|
1204
|
-
*/
|
|
1205
|
-
removeCertificate(key) {
|
|
1206
|
-
if (!Array.isArray(this.definitions.certificates)) {
|
|
1207
|
-
return undefined;
|
|
1208
|
-
}
|
|
1209
|
-
const defIndex = this.definitions.certificates.findIndex((i) => i.key === key);
|
|
1210
|
-
if (defIndex < 0) {
|
|
1211
|
-
return undefined;
|
|
1212
|
-
}
|
|
1213
|
-
const cert = this.definitions.certificates[defIndex];
|
|
1214
|
-
this.definitions.certificates.splice(defIndex, 1);
|
|
1215
|
-
return cert;
|
|
1216
|
-
}
|
|
1217
|
-
/**
|
|
1218
|
-
* Finds the requests that are using the certificate identified by the key.
|
|
1219
|
-
*
|
|
1220
|
-
* @param key The key of the certificate to find the usage for.
|
|
1221
|
-
* @returns The list of requests that use this certificate.
|
|
1222
|
-
*/
|
|
1223
|
-
findCertificateRequests(key) {
|
|
1224
|
-
return this.definitions.requests.filter((request) => {
|
|
1225
|
-
if (!Array.isArray(request.authorization)) {
|
|
1226
|
-
return false;
|
|
1227
|
-
}
|
|
1228
|
-
const ccAuth = request.authorization.find((auth) => auth.type === 'client certificate');
|
|
1229
|
-
if (!ccAuth) {
|
|
1230
|
-
return false;
|
|
1231
|
-
}
|
|
1232
|
-
const cnf = ccAuth.config;
|
|
1233
|
-
return !!cnf && !!cnf.certificate && cnf.certificate.key === key;
|
|
1234
|
-
});
|
|
1235
|
-
}
|
|
1236
|
-
}
|
|
1237
|
-
//# sourceMappingURL=HttpProject.js.map
|