@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,192 +0,0 @@
|
|
|
1
|
-
import { HttpProject } from '../../models/HttpProject.js';
|
|
2
|
-
import { ProjectFolder } from '../../models/ProjectFolder.js';
|
|
3
|
-
import { Environment } from '../../models/Environment.js';
|
|
4
|
-
import { IRequestLog } from '../../models/RequestLog.js';
|
|
5
|
-
import { IHttpRequest } from '../../models/HttpRequest.js';
|
|
6
|
-
import { ProjectRequestRunner } from './ProjectRequestRunner.js';
|
|
7
|
-
import { IProjectExecutionIteration, IProjectExecutionLog } from '../../models/ProjectExecution.js';
|
|
8
|
-
import { BaseRunner } from './BaseRunner.js';
|
|
9
|
-
import { IProjectRunnerOptions, IRequestRunnerOptions } from './InteropInterfaces.js';
|
|
10
|
-
import { State } from './enums.js';
|
|
11
|
-
type ProjectParent = HttpProject | ProjectFolder;
|
|
12
|
-
export interface ProjectRunner {
|
|
13
|
-
/**
|
|
14
|
-
* Event dispatched when an iteration is about to start.
|
|
15
|
-
*/
|
|
16
|
-
on(event: 'before-iteration', listener: (index: number, iterated: boolean) => void): this;
|
|
17
|
-
/**
|
|
18
|
-
* Event dispatched when an iteration finished.
|
|
19
|
-
*/
|
|
20
|
-
on(event: 'after-iteration', listener: (index: number, iterated: boolean) => void): this;
|
|
21
|
-
/**
|
|
22
|
-
* Event dispatched before the iteration is going to sleep for the set period of time.
|
|
23
|
-
*/
|
|
24
|
-
on(event: 'before-sleep', listener: () => void): this;
|
|
25
|
-
/**
|
|
26
|
-
* Event dispatched after the iteration is woke up.
|
|
27
|
-
*/
|
|
28
|
-
on(event: 'after-sleep', listener: () => void): this;
|
|
29
|
-
/**
|
|
30
|
-
* The request object is prepared and about to be sent to the HTTP engine
|
|
31
|
-
*/
|
|
32
|
-
on(event: 'request', listener: (key: string, request: IHttpRequest) => void): this;
|
|
33
|
-
/**
|
|
34
|
-
* The response is ready.
|
|
35
|
-
*/
|
|
36
|
-
on(event: 'response', listener: (key: string, log: IRequestLog) => void): this;
|
|
37
|
-
/**
|
|
38
|
-
* There was a general error during the request
|
|
39
|
-
*/
|
|
40
|
-
on(event: 'error', listener: (key: string, log: IRequestLog, message: string) => void): this;
|
|
41
|
-
/**
|
|
42
|
-
* Event dispatched when an iteration is about to start.
|
|
43
|
-
*/
|
|
44
|
-
once(event: 'before-iteration', listener: (index: number, iterated: boolean) => void): this;
|
|
45
|
-
/**
|
|
46
|
-
* Event dispatched when an iteration finished.
|
|
47
|
-
*/
|
|
48
|
-
once(event: 'after-iteration', listener: (index: number, iterated: boolean) => void): this;
|
|
49
|
-
/**
|
|
50
|
-
* Event dispatched before the iteration is going to sleep for the set period of time.
|
|
51
|
-
*/
|
|
52
|
-
once(event: 'before-sleep', listener: () => void): this;
|
|
53
|
-
/**
|
|
54
|
-
* Event dispatched after the iteration is woke up.
|
|
55
|
-
*/
|
|
56
|
-
once(event: 'after-sleep', listener: () => void): this;
|
|
57
|
-
/**
|
|
58
|
-
* The request object is prepared and about to be sent to the HTTP engine
|
|
59
|
-
*/
|
|
60
|
-
once(event: 'request', listener: (key: string, request: IHttpRequest) => void): this;
|
|
61
|
-
/**
|
|
62
|
-
* The response is ready.
|
|
63
|
-
*/
|
|
64
|
-
once(event: 'response', listener: (key: string, log: IRequestLog) => void): this;
|
|
65
|
-
/**
|
|
66
|
-
* There was a general error during the request
|
|
67
|
-
*/
|
|
68
|
-
once(event: 'error', listener: (key: string, log: IRequestLog, message: string) => void): this;
|
|
69
|
-
}
|
|
70
|
-
/**
|
|
71
|
-
* A class to be extended to run an entire API Project for the given configuration options.
|
|
72
|
-
*
|
|
73
|
-
* The main purpose of this class (and its children) is to iterate over requests
|
|
74
|
-
* in the project and execute them one-by-one.
|
|
75
|
-
*
|
|
76
|
-
* Implementations allow to execute the requests in a serial model or in parallel mode, where
|
|
77
|
-
* a separate workers are created to run the same HTTP requests in each worker.
|
|
78
|
-
*
|
|
79
|
-
* This class generates a run report which other programs can use to build all kinds of UIs
|
|
80
|
-
* around the data collected during the run.
|
|
81
|
-
*/
|
|
82
|
-
export declare abstract class ProjectRunner extends BaseRunner {
|
|
83
|
-
/**
|
|
84
|
-
* The HTTP project to run requests from.
|
|
85
|
-
*/
|
|
86
|
-
project?: HttpProject;
|
|
87
|
-
/**
|
|
88
|
-
* The execution options for the project.
|
|
89
|
-
*/
|
|
90
|
-
options?: IProjectRunnerOptions;
|
|
91
|
-
/**
|
|
92
|
-
* The root object (project or a folder) where the program starts iterating over the requests.
|
|
93
|
-
*/
|
|
94
|
-
root?: ProjectParent;
|
|
95
|
-
/**
|
|
96
|
-
* The selected environment to apply to the requests.
|
|
97
|
-
*/
|
|
98
|
-
environment?: Environment;
|
|
99
|
-
/**
|
|
100
|
-
* This is used with `--iterations`. The index of the current iteration.
|
|
101
|
-
*/
|
|
102
|
-
protected index: number;
|
|
103
|
-
/**
|
|
104
|
-
* The currently executed iteration loop.
|
|
105
|
-
*/
|
|
106
|
-
protected currentIteration?: IProjectExecutionIteration;
|
|
107
|
-
/**
|
|
108
|
-
* The number of remaining iterations to run.
|
|
109
|
-
*/
|
|
110
|
-
protected remaining: number;
|
|
111
|
-
/**
|
|
112
|
-
* Whether the configuration allows iterations (the parallel mode).
|
|
113
|
-
*/
|
|
114
|
-
protected hasIterations: boolean;
|
|
115
|
-
/**
|
|
116
|
-
* When set it won't amit any event.
|
|
117
|
-
* This can be used in a background worker when events are never handled.
|
|
118
|
-
*/
|
|
119
|
-
noEmit: boolean;
|
|
120
|
-
/**
|
|
121
|
-
* When executing, this is the last user request runner.
|
|
122
|
-
*/
|
|
123
|
-
protected _runner?: ProjectRequestRunner;
|
|
124
|
-
protected _state: State;
|
|
125
|
-
get state(): State;
|
|
126
|
-
protected _signal?: AbortSignal;
|
|
127
|
-
/**
|
|
128
|
-
* The abort signal to set on this request.
|
|
129
|
-
* Aborts the request when the signal fires.
|
|
130
|
-
* @type {(AbortSignal | undefined)}
|
|
131
|
-
*/
|
|
132
|
-
get signal(): AbortSignal | undefined;
|
|
133
|
-
set signal(value: AbortSignal | undefined);
|
|
134
|
-
constructor();
|
|
135
|
-
/**
|
|
136
|
-
* A required step before running the project.
|
|
137
|
-
* It configures the execution context. It may throw an error when configuration is not valid.
|
|
138
|
-
*/
|
|
139
|
-
configure(project: HttpProject, opts?: IProjectRunnerOptions): Promise<void>;
|
|
140
|
-
/**
|
|
141
|
-
* Executes the requests in the project.
|
|
142
|
-
* @returns The execution log created by calling the `createReport()` function.
|
|
143
|
-
*/
|
|
144
|
-
abstract execute(): Promise<IProjectExecutionLog>;
|
|
145
|
-
/**
|
|
146
|
-
* Aborts the current run.
|
|
147
|
-
* The promise returned by the `execute()` method will reject if not yet resolved.
|
|
148
|
-
*/
|
|
149
|
-
abort(): void;
|
|
150
|
-
/**
|
|
151
|
-
* Handler for the `abort` event on the `AbortSignal`.
|
|
152
|
-
*/
|
|
153
|
-
protected _abortHandler(): void;
|
|
154
|
-
/**
|
|
155
|
-
* Creates the report of the execution.
|
|
156
|
-
*/
|
|
157
|
-
protected createReport(): Promise<IProjectExecutionLog>;
|
|
158
|
-
/**
|
|
159
|
-
* Reads the environment data to use with the execution.
|
|
160
|
-
* If the configured environment is a location of a file
|
|
161
|
-
* it is read as API Client's environment and used in the execution.
|
|
162
|
-
* Otherwise it searches for the environment in the list of the defined
|
|
163
|
-
* environments by the name of the key.
|
|
164
|
-
*
|
|
165
|
-
* It throws when the environment cannot be found or when the file contents is invalid.
|
|
166
|
-
*/
|
|
167
|
-
protected getEnvironment(): Promise<Environment | undefined>;
|
|
168
|
-
protected getProjectRunnerOptions(): Promise<IRequestRunnerOptions>;
|
|
169
|
-
/**
|
|
170
|
-
* Runs the requests from the project as configured.
|
|
171
|
-
*/
|
|
172
|
-
protected executeIteration(): Promise<void>;
|
|
173
|
-
/**
|
|
174
|
-
* Retargets the "request" event from the factory.
|
|
175
|
-
*/
|
|
176
|
-
protected _requestHandler(key: string, request: IHttpRequest): void;
|
|
177
|
-
/**
|
|
178
|
-
* Retargets the "response" event from the factory.
|
|
179
|
-
*/
|
|
180
|
-
protected _responseHandler(key: string, log: IRequestLog): void;
|
|
181
|
-
/**
|
|
182
|
-
* Retargets the "error" event from the factory.
|
|
183
|
-
*/
|
|
184
|
-
protected _errorHandler(key: string, log: IRequestLog, message: string): void;
|
|
185
|
-
/**
|
|
186
|
-
* @returns Reads the system variables based on the library configuration.
|
|
187
|
-
*/
|
|
188
|
-
protected prepareVariables(): Record<string, string>;
|
|
189
|
-
private _readSystemVariables;
|
|
190
|
-
}
|
|
191
|
-
export {};
|
|
192
|
-
//# sourceMappingURL=ProjectRunner.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ProjectRunner.d.ts","sourceRoot":"","sources":["../../../../src/runtime/node/ProjectRunner.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAA;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAA;AAC7D,OAAO,EAAE,WAAW,EAAgB,MAAM,6BAA6B,CAAA;AACvE,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAA;AAC1D,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAA;AAChE,OAAO,EAAE,0BAA0B,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAA;AAEnG,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,OAAO,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAA;AACrF,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAA;AAGlC,KAAK,aAAa,GAAG,WAAW,GAAG,aAAa,CAAA;AAEhD,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,EAAE,CAAC,KAAK,EAAE,kBAAkB,EAAE,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,KAAK,IAAI,GAAG,IAAI,CAAA;IACzF;;OAEG;IACH,EAAE,CAAC,KAAK,E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C;IAED,IAAI,MAAM,CAAC,KAAK,EAAE,WAAW,GAAG,SAAS,EAYxC;;IAUD;;;OAGG;IACG,SAAS,CAAC,OAAO,EAAE,WAAW,EAAE,IAAI,GAAE,qBAA0B,GAAG,OAAO,CAAC,IAAI,CAAC;IAmBtF;;;OAGG;IACH,QAAQ,CAAC,OAAO,IAAI,OAAO,CAAC,oBAAoB,CAAC;IAEjD;;;OAGG;IACH,KAAK,IAAI,IAAI;IAOb;;OAEG;IACH,SAAS,CAAC,aAAa,IAAI,IAAI;IAI/B;;OAEG;cACsB,YAAY,IAAI,OAAO,CAAC,oBAAoB,CAAC;IAStE;;;;;;;;OAQG;cACa,cAAc,IAAI,OAAO,CAAC,WAAW,GAAG,SAAS,CAAC;cAsBlD,uBAAuB,IAAI,OAAO,CAAC,qBAAqB,CAAC;IAsBzE;;OAEG;cACa,gBAAgB,IAAI,OAAO,CAAC,IAAI,CAAC;IA0CjD;;OAEG;IACH,SAAS,CAAC,eAAe,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY,GAAG,IAAI;IAMnE;;OAEG;IACH,SAAS,CAAC,gBAAgB,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,WAAW,GAAG,IAAI;IAO/D;;OAEG;IACH,SAAS,CAAC,aAAa,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI;IAO7E;;OAEG;IACH,SAAS,CAAC,gBAAgB,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;IAmBpD,OAAO,CAAC,oBAAoB;CAa7B"}
|
|
@@ -1,304 +0,0 @@
|
|
|
1
|
-
/* eslint-disable no-redeclare */
|
|
2
|
-
/* eslint-disable @typescript-eslint/unified-signatures */
|
|
3
|
-
/* eslint-disable @typescript-eslint/no-unsafe-declaration-merging */
|
|
4
|
-
import { SerializableError } from '../../models/SerializableError.js';
|
|
5
|
-
import { Environment } from '../../models/Environment.js';
|
|
6
|
-
import { ProjectRequestRunner } from './ProjectRequestRunner.js';
|
|
7
|
-
import { pathExists, readJson } from '../../lib/fs/Fs.js';
|
|
8
|
-
import { BaseRunner } from './BaseRunner.js';
|
|
9
|
-
import { State } from './enums.js';
|
|
10
|
-
import { createLogger } from '../../lib/logging/index.js';
|
|
11
|
-
/**
|
|
12
|
-
* A class to be extended to run an entire API Project for the given configuration options.
|
|
13
|
-
*
|
|
14
|
-
* The main purpose of this class (and its children) is to iterate over requests
|
|
15
|
-
* in the project and execute them one-by-one.
|
|
16
|
-
*
|
|
17
|
-
* Implementations allow to execute the requests in a serial model or in parallel mode, where
|
|
18
|
-
* a separate workers are created to run the same HTTP requests in each worker.
|
|
19
|
-
*
|
|
20
|
-
* This class generates a run report which other programs can use to build all kinds of UIs
|
|
21
|
-
* around the data collected during the run.
|
|
22
|
-
*/
|
|
23
|
-
export class ProjectRunner extends BaseRunner {
|
|
24
|
-
/**
|
|
25
|
-
* The HTTP project to run requests from.
|
|
26
|
-
*/
|
|
27
|
-
project;
|
|
28
|
-
/**
|
|
29
|
-
* The execution options for the project.
|
|
30
|
-
*/
|
|
31
|
-
options;
|
|
32
|
-
/**
|
|
33
|
-
* The root object (project or a folder) where the program starts iterating over the requests.
|
|
34
|
-
*/
|
|
35
|
-
root;
|
|
36
|
-
/**
|
|
37
|
-
* The selected environment to apply to the requests.
|
|
38
|
-
*/
|
|
39
|
-
environment;
|
|
40
|
-
/**
|
|
41
|
-
* This is used with `--iterations`. The index of the current iteration.
|
|
42
|
-
*/
|
|
43
|
-
index = 0;
|
|
44
|
-
/**
|
|
45
|
-
* The currently executed iteration loop.
|
|
46
|
-
*/
|
|
47
|
-
currentIteration;
|
|
48
|
-
/**
|
|
49
|
-
* The number of remaining iterations to run.
|
|
50
|
-
*/
|
|
51
|
-
remaining = 1;
|
|
52
|
-
/**
|
|
53
|
-
* Whether the configuration allows iterations (the parallel mode).
|
|
54
|
-
*/
|
|
55
|
-
hasIterations = false;
|
|
56
|
-
/**
|
|
57
|
-
* When set it won't amit any event.
|
|
58
|
-
* This can be used in a background worker when events are never handled.
|
|
59
|
-
*/
|
|
60
|
-
noEmit = false;
|
|
61
|
-
/**
|
|
62
|
-
* When executing, this is the last user request runner.
|
|
63
|
-
*/
|
|
64
|
-
_runner;
|
|
65
|
-
_state = State.Idle;
|
|
66
|
-
get state() {
|
|
67
|
-
return this._state;
|
|
68
|
-
}
|
|
69
|
-
_signal;
|
|
70
|
-
/**
|
|
71
|
-
* The abort signal to set on this request.
|
|
72
|
-
* Aborts the request when the signal fires.
|
|
73
|
-
* @type {(AbortSignal | undefined)}
|
|
74
|
-
*/
|
|
75
|
-
get signal() {
|
|
76
|
-
return this._signal;
|
|
77
|
-
}
|
|
78
|
-
set signal(value) {
|
|
79
|
-
const old = this._signal;
|
|
80
|
-
if (old === value) {
|
|
81
|
-
return;
|
|
82
|
-
}
|
|
83
|
-
this._signal = value;
|
|
84
|
-
if (old) {
|
|
85
|
-
old.removeEventListener('abort', this._abortHandler);
|
|
86
|
-
}
|
|
87
|
-
if (value) {
|
|
88
|
-
value.addEventListener('abort', this._abortHandler);
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
constructor() {
|
|
92
|
-
super();
|
|
93
|
-
this._requestHandler = this._requestHandler.bind(this);
|
|
94
|
-
this._responseHandler = this._responseHandler.bind(this);
|
|
95
|
-
this._errorHandler = this._errorHandler.bind(this);
|
|
96
|
-
this._abortHandler = this._abortHandler.bind(this);
|
|
97
|
-
}
|
|
98
|
-
/**
|
|
99
|
-
* A required step before running the project.
|
|
100
|
-
* It configures the execution context. It may throw an error when configuration is not valid.
|
|
101
|
-
*/
|
|
102
|
-
async configure(project, opts = {}) {
|
|
103
|
-
this.project = project;
|
|
104
|
-
this.options = opts || {};
|
|
105
|
-
if (typeof this.options.iterations === 'number' && this.options.iterations >= 0) {
|
|
106
|
-
this.remaining = this.options.iterations;
|
|
107
|
-
}
|
|
108
|
-
this.hasIterations = this.remaining > 1;
|
|
109
|
-
const root = opts.parent ? project.findFolder(opts.parent) : project;
|
|
110
|
-
if (!root) {
|
|
111
|
-
throw new Error(`Unable to locate the folder: ${opts.parent}`);
|
|
112
|
-
}
|
|
113
|
-
this.root = root;
|
|
114
|
-
this.environment = await this.getEnvironment();
|
|
115
|
-
if (opts.signal) {
|
|
116
|
-
this.signal = opts.signal;
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
/**
|
|
120
|
-
* Aborts the current run.
|
|
121
|
-
* The promise returned by the `execute()` method will reject if not yet resolved.
|
|
122
|
-
*/
|
|
123
|
-
abort() {
|
|
124
|
-
this._state = State.Aborted;
|
|
125
|
-
if (this._runner) {
|
|
126
|
-
this._runner.abort();
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
/**
|
|
130
|
-
* Handler for the `abort` event on the `AbortSignal`.
|
|
131
|
-
*/
|
|
132
|
-
_abortHandler() {
|
|
133
|
-
this.abort();
|
|
134
|
-
}
|
|
135
|
-
/**
|
|
136
|
-
* Creates the report of the execution.
|
|
137
|
-
*/
|
|
138
|
-
async createReport() {
|
|
139
|
-
const log = {
|
|
140
|
-
started: this.startTime,
|
|
141
|
-
ended: this.endTime,
|
|
142
|
-
iterations: this.executed,
|
|
143
|
-
};
|
|
144
|
-
return log;
|
|
145
|
-
}
|
|
146
|
-
/**
|
|
147
|
-
* Reads the environment data to use with the execution.
|
|
148
|
-
* If the configured environment is a location of a file
|
|
149
|
-
* it is read as API Client's environment and used in the execution.
|
|
150
|
-
* Otherwise it searches for the environment in the list of the defined
|
|
151
|
-
* environments by the name of the key.
|
|
152
|
-
*
|
|
153
|
-
* It throws when the environment cannot be found or when the file contents is invalid.
|
|
154
|
-
*/
|
|
155
|
-
async getEnvironment() {
|
|
156
|
-
const { options } = this;
|
|
157
|
-
if (!options) {
|
|
158
|
-
throw new Error(`Run configure() first.`);
|
|
159
|
-
}
|
|
160
|
-
if (!options.environment) {
|
|
161
|
-
return;
|
|
162
|
-
}
|
|
163
|
-
const fileExists = await pathExists(options.environment);
|
|
164
|
-
if (fileExists) {
|
|
165
|
-
const contents = await readJson(options.environment);
|
|
166
|
-
return new Environment(contents);
|
|
167
|
-
}
|
|
168
|
-
const root = this.root;
|
|
169
|
-
const envs = root.getEnvironments();
|
|
170
|
-
const env = envs.find((i) => i.key === options.environment || i.info.name === options.environment);
|
|
171
|
-
if (!env) {
|
|
172
|
-
throw new SerializableError(`The environment cannot be found: ${options.environment}.`, 'EENVNOTFOUND');
|
|
173
|
-
}
|
|
174
|
-
return env;
|
|
175
|
-
}
|
|
176
|
-
async getProjectRunnerOptions() {
|
|
177
|
-
const { environment, options } = this;
|
|
178
|
-
if (!options) {
|
|
179
|
-
throw new Error(`Run configure() first.`);
|
|
180
|
-
}
|
|
181
|
-
const result = {
|
|
182
|
-
variables: this.prepareVariables(),
|
|
183
|
-
};
|
|
184
|
-
if (environment) {
|
|
185
|
-
result.environment = environment;
|
|
186
|
-
}
|
|
187
|
-
if (options.logger) {
|
|
188
|
-
result.logger = options.logger;
|
|
189
|
-
}
|
|
190
|
-
else {
|
|
191
|
-
result.logger = createLogger();
|
|
192
|
-
}
|
|
193
|
-
if (options.cookies) {
|
|
194
|
-
result.cookies = options.cookies;
|
|
195
|
-
}
|
|
196
|
-
return result;
|
|
197
|
-
}
|
|
198
|
-
/**
|
|
199
|
-
* Runs the requests from the project as configured.
|
|
200
|
-
*/
|
|
201
|
-
async executeIteration() {
|
|
202
|
-
if (this._state === State.Aborted) {
|
|
203
|
-
throw new Error(`The execution has been aborted.`);
|
|
204
|
-
}
|
|
205
|
-
const { project, options, hasIterations, index, noEmit } = this;
|
|
206
|
-
if (!options || !project) {
|
|
207
|
-
throw new Error(`Run configure() first.`);
|
|
208
|
-
}
|
|
209
|
-
if (!noEmit) {
|
|
210
|
-
this.emit('before-iteration', index, hasIterations);
|
|
211
|
-
}
|
|
212
|
-
const runnerOptions = await this.getProjectRunnerOptions();
|
|
213
|
-
const runner = new ProjectRequestRunner(project, runnerOptions);
|
|
214
|
-
this._runner = runner;
|
|
215
|
-
runner.on('request', this._requestHandler);
|
|
216
|
-
runner.on('response', this._responseHandler);
|
|
217
|
-
runner.on('error', this._errorHandler);
|
|
218
|
-
this.currentIteration = {
|
|
219
|
-
index: this.index,
|
|
220
|
-
executed: [],
|
|
221
|
-
variables: {},
|
|
222
|
-
};
|
|
223
|
-
try {
|
|
224
|
-
const info = await runner.run({
|
|
225
|
-
parent: options.parent,
|
|
226
|
-
requests: options.request,
|
|
227
|
-
ignore: options.ignore,
|
|
228
|
-
recursive: options.recursive,
|
|
229
|
-
});
|
|
230
|
-
this.currentIteration.variables = info.variables;
|
|
231
|
-
}
|
|
232
|
-
catch (e) {
|
|
233
|
-
const cause = e;
|
|
234
|
-
this.options?.logger?.error(e);
|
|
235
|
-
this.currentIteration.error = cause.message || 'Unknown error ocurred';
|
|
236
|
-
// ...
|
|
237
|
-
}
|
|
238
|
-
this.executed.push(this.currentIteration);
|
|
239
|
-
if (!noEmit) {
|
|
240
|
-
this.emit('after-iteration', index, hasIterations);
|
|
241
|
-
}
|
|
242
|
-
}
|
|
243
|
-
/**
|
|
244
|
-
* Retargets the "request" event from the factory.
|
|
245
|
-
*/
|
|
246
|
-
_requestHandler(key, request) {
|
|
247
|
-
if (!this.noEmit) {
|
|
248
|
-
this.emit('request', key, request);
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
/**
|
|
252
|
-
* Retargets the "response" event from the factory.
|
|
253
|
-
*/
|
|
254
|
-
_responseHandler(key, log) {
|
|
255
|
-
this.currentIteration?.executed.push(log);
|
|
256
|
-
if (!this.noEmit) {
|
|
257
|
-
this.emit('response', key, log);
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
/**
|
|
261
|
-
* Retargets the "error" event from the factory.
|
|
262
|
-
*/
|
|
263
|
-
_errorHandler(key, log, message) {
|
|
264
|
-
this.currentIteration?.executed.push(log);
|
|
265
|
-
if (!this.noEmit) {
|
|
266
|
-
this.emit('error', key, log, message);
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
/**
|
|
270
|
-
* @returns Reads the system variables based on the library configuration.
|
|
271
|
-
*/
|
|
272
|
-
prepareVariables() {
|
|
273
|
-
const result = {};
|
|
274
|
-
const { options } = this;
|
|
275
|
-
if (!options) {
|
|
276
|
-
return result;
|
|
277
|
-
}
|
|
278
|
-
const { variables } = options;
|
|
279
|
-
if (typeof variables === 'undefined') {
|
|
280
|
-
return result;
|
|
281
|
-
}
|
|
282
|
-
if (typeof variables === 'boolean') {
|
|
283
|
-
return variables ? this._readSystemVariables() : result;
|
|
284
|
-
}
|
|
285
|
-
if (Array.isArray(variables)) {
|
|
286
|
-
return this._readSystemVariables(variables);
|
|
287
|
-
}
|
|
288
|
-
return variables;
|
|
289
|
-
}
|
|
290
|
-
_readSystemVariables(names) {
|
|
291
|
-
const result = {};
|
|
292
|
-
Object.keys(process.env).forEach((key) => {
|
|
293
|
-
if (names && !names.includes(key)) {
|
|
294
|
-
return;
|
|
295
|
-
}
|
|
296
|
-
const value = process.env[key];
|
|
297
|
-
if (value) {
|
|
298
|
-
result[key] = value;
|
|
299
|
-
}
|
|
300
|
-
});
|
|
301
|
-
return result;
|
|
302
|
-
}
|
|
303
|
-
}
|
|
304
|
-
//# sourceMappingURL=ProjectRunner.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ProjectRunner.js","sourceRoot":"","sources":["../../../../src/runtime/node/ProjectRunner.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,0DAA0D;AAC1D,qEAAqE;AACrE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAA;AAGrE,OAAO,EAAE,WAAW,EAAgB,MAAM,6BAA6B,CAAA;AAGvE,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAA;AAEhE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAA;AACzD,OAAO,EAAE,UAA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AAI,OAAO,SAAS,KAAK,WAAW,EAAE,CAAC;YACrC,OAAO,MAAM,CAAA;QACf,CAAC;QACD,IAAI,OAAO,SAAS,KAAK,SAAS,EAAE,CAAC;YACnC,OAAO,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,oBAAoB,EAAE,CAAC,CAAC,CAAC,MAAM,CAAA;QACzD,CAAC;QACD,IAAI,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,CAAC;YAC7B,OAAO,IAAI,CAAC,oBAAoB,CAAC,SAAS,CAAC,CAAA;QAC7C,CAAC;QACD,OAAO,SAAS,CAAA;IAClB,CAAC;IAEO,oBAAoB,CAAC,KAAgB;QAC3C,MAAM,MAAM,GAA2B,EAAE,CAAA;QACzC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;YACvC,IAAI,KAAK,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;gBAClC,OAAM;YACR,CAAC;YACD,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;YAC9B,IAAI,KAAK,EAAE,CAAC;gBACV,MAAM,CAAC,GAAG,CAAC,GAAG,KAAK,CAAA;YACrB,CAAC;QACH,CAAC,CAAC,CAAA;QACF,OAAO,MAAM,CAAA;IACf,CAAC;CACF","sourcesContent":["/* eslint-disable no-redeclare */\n/* eslint-disable @typescript-eslint/unified-signatures */\n/* eslint-disable @typescript-eslint/no-unsafe-declaration-merging */\nimport { SerializableError } from '../../models/SerializableError.js'\nimport { HttpProject } from '../../models/HttpProject.js'\nimport { ProjectFolder } from '../../models/ProjectFolder.js'\nimport { Environment, IEnvironment } from '../../models/Environment.js'\nimport { IRequestLog } from '../../models/RequestLog.js'\nimport { IHttpRequest } from '../../models/HttpRequest.js'\nimport { ProjectRequestRunner } from './ProjectRequestRunner.js'\nimport { IProjectExecutionIteration, IProjectExecutionLog } from '../../models/ProjectExecution.js'\nimport { pathExists, readJson } from '../../lib/fs/Fs.js'\nimport { BaseRunner } from './BaseRunner.js'\nimport { IProjectRunnerOptions, IRequestRunnerOptions } from './InteropInterfaces.js'\nimport { State } from './enums.js'\nimport { createLogger } from '../../lib/logging/index.js'\n\ntype ProjectParent = HttpProject | ProjectFolder\n\nexport interface ProjectRunner {\n /**\n * Event dispatched when an iteration is about to start.\n */\n on(event: 'before-iteration', listener: (index: number, iterated: boolean) => void): this\n /**\n * Event dispatched when an iteration finished.\n */\n on(event: 'after-iteration', listener: (index: number, iterated: boolean) => void): this\n /**\n * Event dispatched before the iteration is going to sleep for the set period of time.\n */\n on(event: 'before-sleep', listener: () => void): this\n /**\n * Event dispatched after the iteration is woke up.\n */\n on(event: 'after-sleep', listener: () => void): this\n /**\n * The request object is prepared and about to be sent to the HTTP engine\n */\n on(event: 'request', listener: (key: string, request: IHttpRequest) => void): this\n /**\n * The response is ready.\n */\n on(event: 'response', listener: (key: string, log: IRequestLog) => void): this\n /**\n * There was a general error during the request\n */\n on(event: 'error', listener: (key: string, log: IRequestLog, message: string) => void): this\n /**\n * Event dispatched when an iteration is about to start.\n */\n once(event: 'before-iteration', listener: (index: number, iterated: boolean) => void): this\n /**\n * Event dispatched when an iteration finished.\n */\n once(event: 'after-iteration', listener: (index: number, iterated: boolean) => void): this\n /**\n * Event dispatched before the iteration is going to sleep for the set period of time.\n */\n once(event: 'before-sleep', listener: () => void): this\n /**\n * Event dispatched after the iteration is woke up.\n */\n once(event: 'after-sleep', listener: () => void): this\n /**\n * The request object is prepared and about to be sent to the HTTP engine\n */\n once(event: 'request', listener: (key: string, request: IHttpRequest) => void): this\n /**\n * The response is ready.\n */\n once(event: 'response', listener: (key: string, log: IRequestLog) => void): this\n /**\n * There was a general error during the request\n */\n once(event: 'error', listener: (key: string, log: IRequestLog, message: string) => void): this\n}\n\n/**\n * A class to be extended to run an entire API Project for the given configuration options.\n *\n * The main purpose of this class (and its children) is to iterate over requests\n * in the project and execute them one-by-one.\n *\n * Implementations allow to execute the requests in a serial model or in parallel mode, where\n * a separate workers are created to run the same HTTP requests in each worker.\n *\n * This class generates a run report which other programs can use to build all kinds of UIs\n * around the data collected during the run.\n */\nexport abstract class ProjectRunner extends BaseRunner {\n /**\n * The HTTP project to run requests from.\n */\n project?: HttpProject\n /**\n * The execution options for the project.\n */\n options?: IProjectRunnerOptions\n /**\n * The root object (project or a folder) where the program starts iterating over the requests.\n */\n root?: ProjectParent\n /**\n * The selected environment to apply to the requests.\n */\n environment?: Environment\n /**\n * This is used with `--iterations`. The index of the current iteration.\n */\n protected index = 0\n /**\n * The currently executed iteration loop.\n */\n protected currentIteration?: IProjectExecutionIteration\n /**\n * The number of remaining iterations to run.\n */\n protected remaining = 1\n /**\n * Whether the configuration allows iterations (the parallel mode).\n */\n protected hasIterations = false\n /**\n * When set it won't amit any event.\n * This can be used in a background worker when events are never handled.\n */\n noEmit = false\n\n /**\n * When executing, this is the last user request runner.\n */\n protected _runner?: ProjectRequestRunner\n\n protected _state: State = State.Idle\n\n get state(): State {\n return this._state\n }\n\n protected _signal?: AbortSignal\n\n /**\n * The abort signal to set on this request.\n * Aborts the request when the signal fires.\n * @type {(AbortSignal | undefined)}\n */\n get signal(): AbortSignal | undefined {\n return this._signal\n }\n\n set signal(value: AbortSignal | undefined) {\n const old = this._signal\n if (old === value) {\n return\n }\n this._signal = value\n if (old) {\n old.removeEventListener('abort', this._abortHandler)\n }\n if (value) {\n value.addEventListener('abort', this._abortHandler)\n }\n }\n\n constructor() {\n super()\n this._requestHandler = this._requestHandler.bind(this)\n this._responseHandler = this._responseHandler.bind(this)\n this._errorHandler = this._errorHandler.bind(this)\n this._abortHandler = this._abortHandler.bind(this)\n }\n\n /**\n * A required step before running the project.\n * It configures the execution context. It may throw an error when configuration is not valid.\n */\n async configure(project: HttpProject, opts: IProjectRunnerOptions = {}): Promise<void> {\n this.project = project\n this.options = opts || {}\n if (typeof this.options.iterations === 'number' && this.options.iterations >= 0) {\n this.remaining = this.options.iterations\n }\n this.hasIterations = this.remaining > 1\n\n const root = opts.parent ? project.findFolder(opts.parent) : project\n if (!root) {\n throw new Error(`Unable to locate the folder: ${opts.parent}`)\n }\n this.root = root\n this.environment = await this.getEnvironment()\n if (opts.signal) {\n this.signal = opts.signal\n }\n }\n\n /**\n * Executes the requests in the project.\n * @returns The execution log created by calling the `createReport()` function.\n */\n abstract execute(): Promise<IProjectExecutionLog>\n\n /**\n * Aborts the current run.\n * The promise returned by the `execute()` method will reject if not yet resolved.\n */\n abort(): void {\n this._state = State.Aborted\n if (this._runner) {\n this._runner.abort()\n }\n }\n\n /**\n * Handler for the `abort` event on the `AbortSignal`.\n */\n protected _abortHandler(): void {\n this.abort()\n }\n\n /**\n * Creates the report of the execution.\n */\n protected override async createReport(): Promise<IProjectExecutionLog> {\n const log: IProjectExecutionLog = {\n started: this.startTime as number,\n ended: this.endTime as number,\n iterations: this.executed,\n }\n return log\n }\n\n /**\n * Reads the environment data to use with the execution.\n * If the configured environment is a location of a file\n * it is read as API Client's environment and used in the execution.\n * Otherwise it searches for the environment in the list of the defined\n * environments by the name of the key.\n *\n * It throws when the environment cannot be found or when the file contents is invalid.\n */\n protected async getEnvironment(): Promise<Environment | undefined> {\n const { options } = this\n if (!options) {\n throw new Error(`Run configure() first.`)\n }\n if (!options.environment) {\n return\n }\n const fileExists = await pathExists(options.environment)\n if (fileExists) {\n const contents = await readJson(options.environment)\n return new Environment(contents as IEnvironment)\n }\n const root = this.root as ProjectParent\n const envs = root.getEnvironments()\n const env = envs.find((i) => i.key === options.environment || i.info.name === options.environment)\n if (!env) {\n throw new SerializableError(`The environment cannot be found: ${options.environment}.`, 'EENVNOTFOUND')\n }\n return env\n }\n\n protected async getProjectRunnerOptions(): Promise<IRequestRunnerOptions> {\n const { environment, options } = this\n if (!options) {\n throw new Error(`Run configure() first.`)\n }\n const result: IRequestRunnerOptions = {\n variables: this.prepareVariables(),\n }\n if (environment) {\n result.environment = environment\n }\n if (options.logger) {\n result.logger = options.logger\n } else {\n result.logger = createLogger()\n }\n if (options.cookies) {\n result.cookies = options.cookies\n }\n return result\n }\n\n /**\n * Runs the requests from the project as configured.\n */\n protected async executeIteration(): Promise<void> {\n if (this._state === State.Aborted) {\n throw new Error(`The execution has been aborted.`)\n }\n const { project, options, hasIterations, index, noEmit } = this\n if (!options || !project) {\n throw new Error(`Run configure() first.`)\n }\n if (!noEmit) {\n this.emit('before-iteration', index, hasIterations)\n }\n const runnerOptions = await this.getProjectRunnerOptions()\n const runner = new ProjectRequestRunner(project, runnerOptions)\n this._runner = runner\n runner.on('request', this._requestHandler)\n runner.on('response', this._responseHandler)\n runner.on('error', this._errorHandler)\n this.currentIteration = {\n index: this.index,\n executed: [],\n variables: {},\n }\n try {\n const info = await runner.run({\n parent: options.parent,\n requests: options.request,\n ignore: options.ignore,\n recursive: options.recursive,\n })\n this.currentIteration.variables = info.variables\n } catch (e) {\n const cause = e as Error\n this.options?.logger?.error(e)\n this.currentIteration.error = cause.message || 'Unknown error ocurred'\n // ...\n }\n this.executed.push(this.currentIteration)\n if (!noEmit) {\n this.emit('after-iteration', index, hasIterations)\n }\n }\n\n /**\n * Retargets the \"request\" event from the factory.\n */\n protected _requestHandler(key: string, request: IHttpRequest): void {\n if (!this.noEmit) {\n this.emit('request', key, request)\n }\n }\n\n /**\n * Retargets the \"response\" event from the factory.\n */\n protected _responseHandler(key: string, log: IRequestLog): void {\n this.currentIteration?.executed.push(log)\n if (!this.noEmit) {\n this.emit('response', key, log)\n }\n }\n\n /**\n * Retargets the \"error\" event from the factory.\n */\n protected _errorHandler(key: string, log: IRequestLog, message: string): void {\n this.currentIteration?.executed.push(log)\n if (!this.noEmit) {\n this.emit('error', key, log, message)\n }\n }\n\n /**\n * @returns Reads the system variables based on the library configuration.\n */\n protected prepareVariables(): Record<string, string> {\n const result: Record<string, string> = {}\n const { options } = this\n if (!options) {\n return result\n }\n const { variables } = options\n if (typeof variables === 'undefined') {\n return result\n }\n if (typeof variables === 'boolean') {\n return variables ? this._readSystemVariables() : result\n }\n if (Array.isArray(variables)) {\n return this._readSystemVariables(variables)\n }\n return variables\n }\n\n private _readSystemVariables(names?: string[]): Record<string, string> {\n const result: Record<string, string> = {}\n Object.keys(process.env).forEach((key) => {\n if (names && !names.includes(key)) {\n return\n }\n const value = process.env[key]\n if (value) {\n result[key] = value\n }\n })\n return result\n }\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ProjectRunnerWorker.d.ts","sourceRoot":"","sources":["../../../../src/runtime/node/ProjectRunnerWorker.ts"],"names":[],"mappings":""}
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
/* eslint-disable @typescript-eslint/no-empty-function */
|
|
2
|
-
import process from 'process';
|
|
3
|
-
import cluster from 'cluster';
|
|
4
|
-
import { HttpProject, Kind as HttpProjectKind } from '../../models/HttpProject.js';
|
|
5
|
-
import { sleep } from '../../lib/timers/Timers.js';
|
|
6
|
-
import { ProjectRunner } from './ProjectRunner.js';
|
|
7
|
-
import { State } from './enums.js';
|
|
8
|
-
import { InMemoryCookieJar } from '../../cookies/InMemoryCookieJar.js';
|
|
9
|
-
class ProjectExeWorker extends ProjectRunner {
|
|
10
|
-
initialize() {
|
|
11
|
-
if (cluster.isPrimary) {
|
|
12
|
-
throw new Error(`This file should not be called directly.`);
|
|
13
|
-
}
|
|
14
|
-
if (process.send) {
|
|
15
|
-
process.send({ cmd: 'online' });
|
|
16
|
-
}
|
|
17
|
-
process.on('message', this.messageHandler.bind(this));
|
|
18
|
-
}
|
|
19
|
-
messageHandler(message) {
|
|
20
|
-
switch (message.cmd) {
|
|
21
|
-
case 'run':
|
|
22
|
-
this.run(message.data);
|
|
23
|
-
break;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
async run(options) {
|
|
27
|
-
options.cookies = new InMemoryCookieJar();
|
|
28
|
-
try {
|
|
29
|
-
const schema = options.project;
|
|
30
|
-
let project;
|
|
31
|
-
if (schema.kind === HttpProjectKind) {
|
|
32
|
-
project = new HttpProject(schema);
|
|
33
|
-
}
|
|
34
|
-
else {
|
|
35
|
-
throw new Error(`Unknown project kind: ${schema.kind}`);
|
|
36
|
-
}
|
|
37
|
-
await this.configure(project, options);
|
|
38
|
-
await this.execute();
|
|
39
|
-
}
|
|
40
|
-
catch (e) {
|
|
41
|
-
const cause = e;
|
|
42
|
-
if (process.send) {
|
|
43
|
-
process.send({ cmd: 'error', data: cause.message });
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
async execute() {
|
|
48
|
-
const { root } = this;
|
|
49
|
-
if (!root) {
|
|
50
|
-
throw new Error(`The project runner is not configured.`);
|
|
51
|
-
}
|
|
52
|
-
function unhandledRejection() { }
|
|
53
|
-
process.on('unhandledRejection', unhandledRejection);
|
|
54
|
-
this._state = State.Running;
|
|
55
|
-
this.startTime = Date.now();
|
|
56
|
-
while (this.remaining > 0) {
|
|
57
|
-
this.remaining--;
|
|
58
|
-
await this.executeIteration();
|
|
59
|
-
this.index++;
|
|
60
|
-
if (this.remaining && this.options?.iterationDelay) {
|
|
61
|
-
await sleep(this.options.iterationDelay);
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
process.off('unhandledRejection', unhandledRejection);
|
|
65
|
-
this.endTime = Date.now();
|
|
66
|
-
const log = await this.createReport();
|
|
67
|
-
if (process.send) {
|
|
68
|
-
process.send({ cmd: 'result', data: log.iterations });
|
|
69
|
-
}
|
|
70
|
-
this._state = State.Idle;
|
|
71
|
-
return log;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
const instance = new ProjectExeWorker();
|
|
75
|
-
instance.noEmit = true;
|
|
76
|
-
instance.initialize();
|
|
77
|
-
//# sourceMappingURL=ProjectRunnerWorker.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ProjectRunnerWorker.js","sourceRoot":"","sources":["../../../../src/runtime/node/ProjectRunnerWorker.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AAO,CAAC,GAAG,CAAC,oBAAoB,EAAE,kBAAkB,CAAC,CAAA;QACrD,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,GAAG,EAAE,CAAA;QAEzB,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,YAAY,EAAE,CAAA;QACrC,IAAI,OAAO,CAAC,IAAI,EAAE,CAAC;YACjB,OAAO,CAAC,IAAI,CAAC,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,CAAC,UAAU,EAAE,CAAC,CAAA;QACvD,CAAC;QACD,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC,IAAa,CAAA;QACjC,OAAO,GAAG,CAAA;IACZ,CAAC;CACF;AAED,MAAM,QAAQ,GAAG,IAAI,gBAAgB,EAAE,CAAA;AACvC,QAAQ,CAAC,MAAM,GAAG,IAAI,CAAA;AACtB,QAAQ,CAAC,UAAU,EAAE,CAAA","sourcesContent":["/* eslint-disable @typescript-eslint/no-empty-function */\nimport process from 'process'\nimport cluster from 'cluster'\nimport { HttpProject, Kind as HttpProjectKind } from '../../models/HttpProject.js'\nimport { IProjectExecutionLog } from '../../models/ProjectExecution.js'\nimport { IWorkerMessage } from './ProjectParallelRunner.js'\nimport { IProjectParallelWorkerOptions } from './InteropInterfaces.js'\nimport { sleep } from '../../lib/timers/Timers.js'\nimport { ProjectRunner } from './ProjectRunner.js'\nimport { State } from './enums.js'\nimport { InMemoryCookieJar } from '../../cookies/InMemoryCookieJar.js'\n\nclass ProjectExeWorker extends ProjectRunner {\n initialize(): void {\n if (cluster.isPrimary) {\n throw new Error(`This file should not be called directly.`)\n }\n if (process.send) {\n process.send({ cmd: 'online' })\n }\n process.on('message', this.messageHandler.bind(this))\n }\n\n messageHandler(message: IWorkerMessage): void {\n switch (message.cmd) {\n case 'run':\n this.run(message.data as IProjectParallelWorkerOptions)\n break\n }\n }\n\n async run(options: IProjectParallelWorkerOptions): Promise<void> {\n options.cookies = new InMemoryCookieJar()\n try {\n const schema = options.project\n let project: HttpProject\n if (schema.kind === HttpProjectKind) {\n project = new HttpProject(schema)\n } else {\n throw new Error(`Unknown project kind: ${schema.kind}`)\n }\n await this.configure(project, options)\n await this.execute()\n } catch (e) {\n const cause = e as Error\n if (process.send) {\n process.send({ cmd: 'error', data: cause.message })\n }\n }\n }\n\n async execute(): Promise<IProjectExecutionLog> {\n const { root } = this\n if (!root) {\n throw new Error(`The project runner is not configured.`)\n }\n function unhandledRejection(): void {}\n process.on('unhandledRejection', unhandledRejection)\n this._state = State.Running as State\n this.startTime = Date.now()\n while (this.remaining > 0) {\n this.remaining--\n await this.executeIteration()\n this.index++\n if (this.remaining && this.options?.iterationDelay) {\n await sleep(this.options.iterationDelay)\n }\n }\n process.off('unhandledRejection', unhandledRejection)\n this.endTime = Date.now()\n\n const log = await this.createReport()\n if (process.send) {\n process.send({ cmd: 'result', data: log.iterations })\n }\n this._state = State.Idle as State\n return log\n }\n}\n\nconst instance = new ProjectExeWorker()\ninstance.noEmit = true\ninstance.initialize()\n"]}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ProjectRunner } from './ProjectRunner.js';
|
|
2
|
-
import { IProjectExecutionLog } from '../../models/ProjectExecution.js';
|
|
3
|
-
/**
|
|
4
|
-
* Project runner that runs the requests in the project one-by-one.
|
|
5
|
-
*/
|
|
6
|
-
export declare class ProjectSerialRunner extends ProjectRunner {
|
|
7
|
-
/**
|
|
8
|
-
* Executes the requests in the project.
|
|
9
|
-
*/
|
|
10
|
-
execute(): Promise<IProjectExecutionLog>;
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=ProjectSerialRunner.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ProjectSerialRunner.d.ts","sourceRoot":"","sources":["../../../../src/runtime/node/ProjectSerialRunner.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAClD,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAA;AAGvE;;GAEG;AACH,qBAAa,mBAAoB,SAAQ,aAAa;IACpD;;OAEG;IACG,OAAO,IAAI,OAAO,CAAC,oBAAoB,CAAC;CAuB/C"}
|