@api-client/core 0.20.10 → 0.21.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -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/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/HttpWeb.d.ts +1 -0
- package/build/src/sdk/HttpWeb.d.ts.map +1 -1
- package/build/src/sdk/HttpWeb.js +27 -2
- package/build/src/sdk/HttpWeb.js.map +1 -1
- package/build/src/sdk/RouteBuilder.d.ts +2 -2
- 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 +0 -20
- 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/SdkMock.js +1 -1
- 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/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/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/FilesSdk.ts +10 -10
- package/src/sdk/HttpWeb.ts +27 -2
- package/src/sdk/RouteBuilder.ts +2 -2
- package/src/sdk/Sdk.ts +0 -21
- package/src/sdk/SdkMock.ts +1 -1
- package/src/sdk/SdkNetworkMock.ts +1607 -0
- package/src/sdk/StoreSdkNode.ts +0 -3
- package/src/sdk/StoreSdkWeb.ts +0 -3
- 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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"VariablesProcessor.js","sourceRoot":"","sources":["../../../../src/runtime/variables/VariablesProcessor.ts"],"names":[],"mappings":"AAAA,uDAAuD;AACvD,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAA;AAErC,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAClD,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAA;AAclC,MAAM,UAAU,gBAAgB,CAAC,KAAa;IAC5C,IAAI,OAAO,GAAG,KAAK,CAAC,IAAI,EAAE,CAAA;IAC1B,IAAI,OAAO,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;QACrD,qDAAqD;QACrD,IAAI,CAAC;YACH,wDAAwD;YACxD,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,C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C;YACD,IAAI,CAAC,QAAQ,EAAE,CAAC;gBACd,mEAAmE;gBACnE,wFAAwF;gBACxF,OAAO,KAAK,CAAA;YACd,CAAC;YACD,IAAI,CAAC,YAAY,EAAE,CAAC;gBAClB,QAAQ,GAAG,QAAQ,CAAC,SAAS,CAAC,CAAC,CAAC,CAAA;YAClC,CAAC;YACD,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,EAAE,CAAC;gBAChC,SAAQ;YACV,CAAC;YACD,MAAM,WAAW,GAAG,MAAM,QAAQ,KAAK,CAAA;YACvC,IAAI,QAAQ,GAAG,EAAE,CAAA;YACjB,QAAQ,IAAI,IAAI,IAAI,GAAG,CAAA;YACvB,QAAQ,IAAI,WAAW,CAAA;YACvB,MAAM,IAAI,QAAQ,CAAA;QACpB,CAAC;QACD,OAAO,IAAI,CAAC,cAAc,CAAC,UAAU,EAAE,WAAW,CAAC,CAAA;IACrD,CAAC;IAED;;;;;OAKG;IACH,cAAc,CAAC,KAAa,EAAE,MAAe;QAC3C,OAAO,MAAM,CAAC,CAAC,CAAC,SAAS,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAA;IAChD,CAAC;IAED;;;;OAIG;IACH,WAAW,CAAC,IAAY;QACtB,OAAO,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;IAC9B,CAAC;CACF","sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { Jexl } from '@pawel-up/jexl'\nimport { Property } from '../../models/Property.js'\nimport { VariablesTokenizer } from './VariablesTokenizer.js'\nimport { EvalFunctions } from './EvalFunctions.js'\nimport { clear } from './Cache.js'\n\nexport interface EvaluateOptions {\n /**\n * The execution context to use instead of creating the context\n */\n context?: Record<string, string>\n /**\n * The list of properties to evaluate. If not set then it scans for all keys in the object.\n * This is used when evaluating objects.\n */\n names?: string[]\n}\n\nexport function valueHasVariable(value: string): boolean {\n let trimmed = value.trim()\n if (trimmed.startsWith('{') && trimmed.endsWith('}')) {\n // the input here can be a JSON string or a variable.\n try {\n // if we can parse the string then this is a JSON string\n JSON.parse(trimmed)\n // we trim the first `{` and the last `}` so the rest of this logic can check for existing variables.\n trimmed = trimmed.substring(1, trimmed.length - 1)\n } catch {\n // otherwise this must be a variable.\n return true\n }\n }\n const isJSLiteral = trimmed.includes('${')\n const isAPILiteral = !isJSLiteral && trimmed.includes('{')\n return isJSLiteral || isAPILiteral\n}\n\nexport const functionRegex = /(?:\\$?{)?([.a-zA-Z0-9_-]+)\\(([^)]*)?\\)(?:})?/gm\nexport const varValueRe = /^[a-zA-Z0-9_]+$/\nexport const varExprRe = /\\$?{[a-zA-Z0-9_]+}/\nexport const varStrictExprRe = /^\\$?{[a-zA-Z0-9_]+}$/\n\nexport class VariablesProcessor {\n jexl = new Jexl()\n\n /**\n * A helper function to map properties to the context object.\n *\n * The arguments are the lists of `Property`. It starts reading the variables from the right to left,\n * meaning, variables on the left override variables already defined on the left.\n *\n * ```javascript\n * const result = VariablesProcessor.createContextFromProperties(\n * [Property.String('test1', 'value1')],\n * [Property.String('test1', 'value2')]\n * );\n * ```\n * The result has only one variable `test1` with value `value1` because this value if left most in the arguments list.\n *\n * When a property with the same name is repeated in the same group then the last value wins.\n *\n * Note, variables without a name, not enabled, or which `value` is undefined are ignored.\n */\n static createContextFromProperties(...input: Property[][]): Record<string, string> {\n const result: Record<string, string> = {}\n input.reverse().forEach((group) => {\n group.forEach((item) => {\n const { enabled, name, value } = item\n if (!enabled || !name || value === undefined) {\n return\n }\n result[name] = value as string\n })\n })\n return result\n }\n\n /**\n * Processes the context itself. This way the context can also contain variables.\n *\n * @return Promise resolved to the context to be passed to Jexl.\n */\n async buildContext(unprocessedContext: Record<string, string>): Promise<Record<string, string>> {\n const result: Record<string, string> = {}\n return this._processContextVariables(result, unprocessedContext)\n }\n\n /**\n * Processes variables in the context recursively.\n *\n * @param result A result to where to put the values.\n * @param variables The map of current variables\n * @param runCount Current run count in the recursive function. It stops executing after second run.\n */\n async _processContextVariables(\n result: Record<string, string>,\n variables: Record<string, string>,\n runCount = 0\n ): Promise<Record<string, string>> {\n let needsRerun = false\n const keys = Object.keys(variables)\n const keysWithVariables: string[] = []\n\n // In the first run put all variables that does not require processing to the list of results\n for (const key of keys) {\n const value = variables[key]\n if (!valueHasVariable(String(value))) {\n result[key] = value\n } else {\n keysWithVariables.push(key)\n }\n }\n if (!keysWithVariables.length) {\n return result\n }\n\n for (const key of keysWithVariables) {\n const value = variables[key]\n const evaluated = await this.evaluateWithContext(result, value)\n result[key] = evaluated\n if (!needsRerun && valueHasVariable(evaluated)) {\n needsRerun = true\n }\n }\n if (!needsRerun || runCount >= 2) {\n return result\n }\n runCount += 1\n return this._processContextVariables(result, variables, runCount)\n }\n\n /**\n * Clears cached groups.\n */\n clearCache(): void {\n clear(this)\n }\n\n /**\n * Evaluates a value against the passed variables.\n *\n * Use this method when the context is not evaluated against itself. You can manually\n * build context with `buildContext()` and call `evaluateWithContext()` for additional\n * performance improvement.\n *\n * @param value A value to evaluate\n * @param unprocessedContext The context (or variables) to use when evaluating the value.\n * @return Promise that resolves to the evaluated value.\n */\n async evaluateVariable(value: string, unprocessedContext: Record<string, string>): Promise<string> {\n const typeOf = typeof value\n // Non primitives + null\n if (typeOf === 'object') {\n return value\n }\n if (typeOf !== 'string') {\n value = String(value)\n }\n const ctx = await this.buildContext(unprocessedContext)\n return this.evaluateWithContext(ctx, value)\n }\n\n /**\n * Evaluates the object against the passed variables.\n *\n * Note, it only performs a shallow evaluation. Deep objects are not evaluated.\n *\n * Use this method when the context is not evaluated against itself. You can manually\n * build context with `buildContext()` and call `evaluateVariablesWithContext()` for additional\n * performance improvement.\n *\n * @param obj The object to evaluate.\n * @param unprocessedContext The context (or variables) to use when evaluating the value.\n * @return Copy of the passed object with the evaluated values.\n */\n async evaluateVariables<T>(obj: T, unprocessedContext: Record<string, string>, names?: string[]): Promise<T> {\n const ctx = await this.buildContext(unprocessedContext)\n return this.evaluateVariablesWithContext(obj, ctx, names)\n }\n\n /**\n * Evaluates the object against the passed variables.\n *\n * Note, it only performs a shallow evaluation. Deep objects are not evaluated.\n *\n * This method is to be used when the passed context is already evaluated against itself.\n *\n * @param obj The object to evaluate.\n * @param context The evaluated context. use `buildContext()` to prepare the values.\n * @param names The list of names of variables to evaluate. Note, this function changes this array.\n * @returns Copy of the passed object with the evaluated values.\n */\n async evaluateVariablesWithContext<T>(obj: T, context: Record<string, string>, names?: string[]): Promise<T> {\n const result = { ...obj }\n names = names || Object.keys(result as Record<string, unknown>)\n const prop = names.shift()\n if (!prop) {\n return result\n }\n const typed = result as any\n if (!typed[prop]) {\n // just process next name.\n return this.evaluateVariablesWithContext(result, context, names)\n }\n if (typeof typed[prop] === 'string') {\n typed[prop] = await this.evaluateWithContext(context, typed[prop])\n }\n return this.evaluateVariablesWithContext(result, context, names)\n }\n\n /**\n * Evaluates a value with context passed to Jexl.\n *\n * @param context Jexl's context\n * @param value Value to evaluate\n */\n async evaluateWithContext(context: Record<string, string>, value: string): Promise<string> {\n value = this._upgradeLegacy(value)\n value = this._evalFunctions(value, context)\n if (!value) {\n return value\n }\n const typedValue = String(value)\n const hasVariable = varExprRe.test(typedValue)\n if (!hasVariable) {\n return value\n }\n const isVariable = varStrictExprRe.test(typedValue)\n if (isVariable) {\n return this._parse(this._prepareValue(typedValue), context)\n }\n\n const isJSLiteral = typedValue.includes('${')\n const isAPILiteral = !isJSLiteral && typedValue.includes('{')\n if (!isJSLiteral && !isAPILiteral) {\n return value\n }\n let result\n const parts = value.split('\\n')\n if (parts.length > 1) {\n result = this._prepareMultilineValue(parts)\n } else {\n result = this._prepareValue(typedValue)\n }\n const { jexl } = this\n if (Array.isArray(result)) {\n const items = []\n for (let i = 0, len = result.length; i < len; i++) {\n const item = result[i]\n if (['{', '}'].includes(item.trim())) {\n items[items.length] = item\n } else {\n try {\n items[items.length] = await jexl.eval(item, context)\n } catch {\n items[items.length] = item\n }\n }\n }\n return items.join('\\n')\n }\n // We can have a situation where the input is something like \"{\"test\":true}\".\n // In this case we need to make sure that this is plain JSON without variables.\n const isJsonObject = typedValue.startsWith('{') && typedValue.endsWith('}')\n const isJsonArray = typedValue.startsWith('[') && typedValue.endsWith(']')\n const isJson = isJsonObject || isJsonArray\n const innerString = isJson ? typedValue.substring(1, typedValue.length - 1) : ''\n // On the other hand we can have a string like \"{operation}\" which should also be\n // evaluated\n if (isJson && !varExprRe.test(innerString) && !varValueRe.test(innerString)) {\n return value\n }\n return this._parse(result, context)\n // let returnValue = result;\n // try {\n // returnValue = await jexl.eval(result, context);\n // } catch (e) {\n // // ...\n // }\n // return returnValue;\n }\n\n async _parse(value: string, context: Record<string, string>): Promise<string> {\n const { jexl } = this\n let returnValue = value\n try {\n returnValue = await jexl.eval(value, context)\n } catch {\n // ...\n }\n return returnValue\n }\n\n /**\n * Upgrades old syntax of magic variables to new one.\n * It replaces `${now}` and `${random}` to function calls: `now()` and\n * `random()`. It also keeps grouping.\n *\n * @param value Currently evaluated value\n * @return Parsed value without old syntax.\n */\n _upgradeLegacy(value: string): string {\n const reg = /\\$?{(random|now):?([0-9]+)?}/gm\n const test = reg.test(value)\n if (!test) {\n return value\n }\n reg.lastIndex = 0\n const loopTest = true\n while (loopTest) {\n const matches = reg.exec(value)\n if (!matches) {\n break\n }\n const variable = matches[0]\n const word = matches[1]\n const group = matches[2]\n let replacement = `\\${${word}(`\n if (group) {\n replacement += group\n }\n replacement += ')}'\n value = value.replace(variable, replacement)\n reg.lastIndex -= 2 // replacement word is shorter by 2 characters\n }\n return value\n }\n\n /**\n * Evaluates functions.\n *\n * @param value A value to evaluate\n * @returns Evaluated value with removed functions.\n * @throws Error if a function is not supported.\n */\n _evalFunctions(value: string, context: Record<string, string>): string {\n if (!value) {\n return ''\n }\n functionRegex.lastIndex = 0\n const cnd = true\n while (cnd) {\n const matches = functionRegex.exec(value)\n if (!matches) {\n break\n }\n const fnName = matches[1]\n const argsStr = matches[2]\n let args\n if (argsStr) {\n args = argsStr.split(',').map((item) => item.trim())\n }\n const _value = this._callFn(context, fnName, args)\n value = value.replace(matches[0], String(_value))\n functionRegex.lastIndex -= matches[0].length - String(_value).length\n }\n return value\n }\n\n /**\n * Calls one of the predefined functions and returns its value.\n *\n * @param fnName A function name to call.\n * @param args Arguments find in the expression.\n * @return Result of calling a function. Always a string.\n */\n _callFn(context: Record<string, string>, fnName: string, args?: string[]): string | number {\n const dotIndex = fnName.indexOf('.')\n if (dotIndex !== -1) {\n const namespace = fnName.substring(0, dotIndex)\n const name = fnName.substring(dotIndex + 1)\n if (['Math', 'String'].indexOf(namespace) !== -1) {\n try {\n return this._callNamespaceFunction(context, namespace, name, args)\n } catch {\n throw new Error(`Unsupported function ${fnName}`)\n }\n }\n } else {\n fnName = fnName[0].toUpperCase() + fnName.substring(1)\n if (fnName in EvalFunctions) {\n return EvalFunctions[fnName](this, args)\n }\n }\n throw new Error(`Unsupported function ${fnName}`)\n }\n\n /**\n * Calls JavaScript native function.\n * Currently only `Math`, 'JSON', and `String` namespaces are supported.\n *\n * @param namespace The namespace of the function to call\n * @param fn Name of the function to call\n * @param args A list of arguments to call\n * @returns Processed value.\n */\n _callNamespaceFunction(\n context: Record<string, string>,\n namespace: string,\n fn: string,\n args?: string[]\n ): string | number {\n if (context && args) {\n args = args.map((arg) => this._applyArgumentsContext(arg, context))\n }\n\n if (namespace === 'Math') {\n const ns = globalThis[namespace] as any\n return ns[fn].apply(globalThis, args?.map(Number))\n }\n if (namespace === 'JSON') {\n const ns = globalThis[namespace] as any\n return ns[fn].apply(globalThis, args)\n }\n if (namespace === 'String') {\n if (!args || !args.length) {\n throw new Error('String functions need an argument')\n }\n const str = args.shift()\n const ns = (String.prototype as any)[fn]\n return ns.apply(str, args)\n }\n return ''\n }\n\n /**\n * Prepares variables to be evaluated where a value is a multiline value.\n * @param lines Lines in the expression\n * @returns Processed lines\n */\n _prepareMultilineValue(lines: string[]): string[] {\n return lines.map((line) => {\n if (['{', '}'].includes(line.trim())) {\n return line\n }\n let _res = this._prepareValue(line)\n if (_res === line) {\n _res = _res.replace(/'/g, \"\\\\'\")\n _res = _res.replace(/\\\\\\\\/, '\\\\\\\\\\\\')\n _res = `'${_res}'`\n }\n return _res\n })\n }\n\n _applyArgumentsContext(arg: any, context: Record<string, string>): any {\n const typedValue = String(arg)\n const hasJsLiteral = typedValue.startsWith('${')\n const hasApiLiteral = typedValue.startsWith('{')\n if (hasJsLiteral || hasApiLiteral) {\n const index = hasJsLiteral ? 2 : 1\n const varName = arg.substring(index, arg.length - 1)\n if (this.isValidName(varName) && context[varName]) {\n return context[varName]\n }\n }\n return arg\n }\n\n /**\n * Replaces strings with quoted string and variables notation into\n * variables that Jexl understands.\n *\n * @param value Value to evaluate\n * @return Proper syntax for Jexl\n */\n _prepareValue(value: string): string {\n if (!value) {\n return value\n }\n let typedValue = String(value)\n let isJsonValue = typedValue[0] === '{' && typedValue[typedValue.length - 1] === '}'\n if (isJsonValue) {\n try {\n // to handle `{x} something {y}`\n JSON.parse(typedValue)\n typedValue = typedValue.substring(1, typedValue.length - 1)\n } catch {\n isJsonValue = false\n }\n }\n const isJSLiteral = typedValue.includes('${')\n let isAPILiteral = !isJSLiteral && typedValue.includes('{')\n if (!isJSLiteral && !isAPILiteral && isJsonValue) {\n // this handles the case when the value contains a single variable in\n // the URL variables syntax.\n isAPILiteral = true\n isJsonValue = false\n typedValue = `{${typedValue}}`\n }\n if (!isJSLiteral && !isAPILiteral) {\n return value\n }\n typedValue = typedValue.replace(/'/g, \"\\\\'\")\n const tokenizer = new VariablesTokenizer(typedValue)\n let parsed = ''\n const loopTest = true\n const prefix = isJSLiteral ? '$' : '{'\n while (loopTest) {\n const _startIndex = tokenizer.index\n const left = tokenizer.nextUntil(prefix)\n if (left === null) {\n // no more variables\n if (!parsed) {\n return this._wrapJsonValue(typedValue, isJsonValue)\n }\n tokenizer.index = _startIndex\n parsed += `'${tokenizer.eof()}'`\n return this._wrapJsonValue(parsed, isJsonValue)\n }\n let variable = tokenizer.nextUntil('}')\n if (variable === '') {\n // let this pass.\n continue\n }\n if (!variable) {\n // https://github.com/advanced-rest-client/arc-environment/issues/2\n // This may not be error, even if so, don't throw it in here, just ignore the expression\n return value\n }\n if (!isAPILiteral) {\n variable = variable.substring(1)\n }\n if (!this.isValidName(variable)) {\n continue\n }\n const replacement = ` + ${variable} + `\n let newValue = ''\n newValue += `'${left}'`\n newValue += replacement\n parsed += newValue\n }\n return this._wrapJsonValue(typedValue, isJsonValue)\n }\n\n /**\n * Wraps a passed value with `'{'` and `'}'` to be properly processed by Jexl.\n * @param value The value to wrap.\n * @param isJson Whether the passed string originally was a JSON string.\n * @return Valid for Jexl JSON string.\n */\n _wrapJsonValue(value: string, isJson: boolean): string {\n return isJson ? `'{' + ${value} + '}'` : value\n }\n\n /**\n * Checks whether passed value is a valid variable name.\n * @param name Variable name\n * @return true if the passed name can be used as variable value.\n */\n isValidName(name: string): boolean {\n return varValueRe.test(name)\n }\n}\n"]}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Processes string value tokens.
|
|
3
|
-
*/
|
|
4
|
-
export declare class VariablesTokenizer {
|
|
5
|
-
value: string;
|
|
6
|
-
index: number;
|
|
7
|
-
/**
|
|
8
|
-
* @param value The value to process
|
|
9
|
-
*/
|
|
10
|
-
constructor(value: string);
|
|
11
|
-
/**
|
|
12
|
-
* @returns The next character
|
|
13
|
-
*/
|
|
14
|
-
next(): string;
|
|
15
|
-
/**
|
|
16
|
-
* Consumes characters until specified character is encountered.
|
|
17
|
-
* @param char The search stop character
|
|
18
|
-
* @returns The remaining value from the string or null.
|
|
19
|
-
*/
|
|
20
|
-
nextUntil(char: string): string | null;
|
|
21
|
-
/**
|
|
22
|
-
* Reads the string from current position until the end and sets the index to the end.
|
|
23
|
-
* @returns The string from current position until end.
|
|
24
|
-
*/
|
|
25
|
-
eof(): string;
|
|
26
|
-
}
|
|
27
|
-
//# sourceMappingURL=VariablesTokenizer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"VariablesTokenizer.d.ts","sourceRoot":"","sources":["../../../../src/runtime/variables/VariablesTokenizer.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,qBAAa,kBAAkB;IAC7B,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,SAAI;IACT;;OAEG;gBACS,KAAK,EAAE,MAAM;IAIzB;;OAEG;IACH,IAAI,IAAI,MAAM;IAOd;;;;OAIG;IACH,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI;IAgBtC;;;OAGG;IACH,GAAG,IAAI,MAAM;CAMd"}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Processes string value tokens.
|
|
3
|
-
*/
|
|
4
|
-
export class VariablesTokenizer {
|
|
5
|
-
value;
|
|
6
|
-
index = 0;
|
|
7
|
-
/**
|
|
8
|
-
* @param value The value to process
|
|
9
|
-
*/
|
|
10
|
-
constructor(value) {
|
|
11
|
-
this.value = value;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* @returns The next character
|
|
15
|
-
*/
|
|
16
|
-
next() {
|
|
17
|
-
const { index } = this;
|
|
18
|
-
const char = this.value[index];
|
|
19
|
-
this.index = index + 1;
|
|
20
|
-
return char;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Consumes characters until specified character is encountered.
|
|
24
|
-
* @param char The search stop character
|
|
25
|
-
* @returns The remaining value from the string or null.
|
|
26
|
-
*/
|
|
27
|
-
nextUntil(char) {
|
|
28
|
-
let result = '';
|
|
29
|
-
const test = true;
|
|
30
|
-
while (test) {
|
|
31
|
-
const ch = this.next();
|
|
32
|
-
if (ch === undefined) {
|
|
33
|
-
return null;
|
|
34
|
-
}
|
|
35
|
-
if (ch === char) {
|
|
36
|
-
return result;
|
|
37
|
-
}
|
|
38
|
-
result += ch;
|
|
39
|
-
}
|
|
40
|
-
return null;
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* Reads the string from current position until the end and sets the index to the end.
|
|
44
|
-
* @returns The string from current position until end.
|
|
45
|
-
*/
|
|
46
|
-
eof() {
|
|
47
|
-
const { index, value } = this;
|
|
48
|
-
const result = value.substr(index);
|
|
49
|
-
this.index = value.length;
|
|
50
|
-
return result;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
//# sourceMappingURL=VariablesTokenizer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"VariablesTokenizer.js","sourceRoot":"","sources":["../../../../src/runtime/variables/VariablesTokenizer.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,OAAO,kBAAkB;IAC7B,KAAK,CAAQ;IACb,KAAK,GAAG,CAAC,CAAA;IACT;;OAEG;IACH,YAAY,KAAa;QACvB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAA;IACpB,CAAC;IAED;;OAEG;IACH,IAAI;QACF,MAAM,EAAE,KAAK,EAAE,GAAG,IAAI,CAAA;QACtB,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAA;QAC9B,IAAI,CAAC,KAAK,GAAG,KAAK,GAAG,CAAC,CAAA;QACtB,OAAO,IAAI,CAAA;IACb,CAAC;IAED;;;;OAIG;IACH,SAAS,CAAC,IAAY;QACpB,IAAI,MAAM,GAAG,EAAE,CAAA;QACf,MAAM,IAAI,GAAG,IAAI,CAAA;QACjB,OAAO,IAAI,EAAE,CAAC;YACZ,MAAM,EAAE,GAAG,IAAI,CAAC,IAAI,EAAE,CAAA;YACtB,IAAI,EAAE,KAAK,SAAS,EAAE,CAAC;gBACrB,OAAO,IAAI,CAAA;YACb,CAAC;YACD,IAAI,EAAE,KAAK,IAAI,EAAE,CAAC;gBAChB,OAAO,MAAM,CAAA;YACf,CAAC;YACD,MAAM,IAAI,EAAE,CAAA;QACd,CAAC;QACD,OAAO,IAAI,CAAA;IACb,CAAC;IAED;;;OAGG;IACH,GAAG;QACD,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,IAAI,CAAA;QAC7B,MAAM,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAA;QAClC,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,MAAM,CAAA;QACzB,OAAO,MAAM,CAAA;IACf,CAAC;CACF","sourcesContent":["/**\n * Processes string value tokens.\n */\nexport class VariablesTokenizer {\n value: string\n index = 0\n /**\n * @param value The value to process\n */\n constructor(value: string) {\n this.value = value\n }\n\n /**\n * @returns The next character\n */\n next(): string {\n const { index } = this\n const char = this.value[index]\n this.index = index + 1\n return char\n }\n\n /**\n * Consumes characters until specified character is encountered.\n * @param char The search stop character\n * @returns The remaining value from the string or null.\n */\n nextUntil(char: string): string | null {\n let result = ''\n const test = true\n while (test) {\n const ch = this.next()\n if (ch === undefined) {\n return null\n }\n if (ch === char) {\n return result\n }\n result += ch\n }\n return null\n }\n\n /**\n * Reads the string from current position until the end and sets the index to the end.\n * @returns The string from current position until end.\n */\n eof(): string {\n const { index, value } = this\n const result = value.substr(index)\n this.index = value.length\n return result\n }\n}\n"]}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { SdkBase, SdkOptions } from './SdkBase.js';
|
|
2
|
-
import { IHttpHistory, IHttpHistoryBulkAdd } from '../models/HttpHistory.js';
|
|
3
|
-
import { ContextChangeRecord, ContextDeleteRecord, ContextListResult, HistoryListOptions, IBulkOperationResult } from '../events/BaseEvents.js';
|
|
4
|
-
export declare class HistorySdk extends SdkBase {
|
|
5
|
-
/**
|
|
6
|
-
* Creates a history object.
|
|
7
|
-
* A history object can be created per app (type = app) or a store's organization/[project/[request]].
|
|
8
|
-
*
|
|
9
|
-
* The user can always read their own history. If the history is created for a organization/project then
|
|
10
|
-
* history records are shared as any other object in the organization.
|
|
11
|
-
*
|
|
12
|
-
* Note, history objects cannot be updated. They can only be created or deleted.
|
|
13
|
-
*
|
|
14
|
-
* @param history The history to create
|
|
15
|
-
* @param request Optional request options.
|
|
16
|
-
* @returns The key of the created history.
|
|
17
|
-
*/
|
|
18
|
-
add(history: IHttpHistory, request?: SdkOptions): Promise<ContextChangeRecord<IHttpHistory>>;
|
|
19
|
-
/**
|
|
20
|
-
* Creates a multiple history objects in a batch operation.
|
|
21
|
-
*
|
|
22
|
-
* @param info The bulk create info object.
|
|
23
|
-
* @param request Optional request options.
|
|
24
|
-
*/
|
|
25
|
-
createBulk(info: IHttpHistoryBulkAdd, request?: SdkOptions): Promise<IBulkOperationResult<ContextChangeRecord<IHttpHistory>>>;
|
|
26
|
-
/**
|
|
27
|
-
* Lists the history.
|
|
28
|
-
*
|
|
29
|
-
* @param options Optional query options.
|
|
30
|
-
* @param request Optional request options.
|
|
31
|
-
*/
|
|
32
|
-
list(options: HistoryListOptions, request?: SdkOptions): Promise<ContextListResult<IHttpHistory>>;
|
|
33
|
-
appendHistoryListParameters(url: URL, options: HistoryListOptions): void;
|
|
34
|
-
/**
|
|
35
|
-
* Deletes a history object form the store.
|
|
36
|
-
*
|
|
37
|
-
* @param key The key returned by the store when created the history. Also available via the
|
|
38
|
-
* `key` property on the history object.
|
|
39
|
-
* @param request Optional request options.
|
|
40
|
-
*/
|
|
41
|
-
delete(key: string, request?: SdkOptions): Promise<void>;
|
|
42
|
-
/**
|
|
43
|
-
* Deletes history in a bulk operation.
|
|
44
|
-
* @param keys The list of keys of history objects to delete.
|
|
45
|
-
* @param request Optional request options.
|
|
46
|
-
* @returns The list of delete records.
|
|
47
|
-
*/
|
|
48
|
-
deleteBulk(keys: string[], request?: SdkOptions): Promise<IBulkOperationResult<ContextDeleteRecord>>;
|
|
49
|
-
/**
|
|
50
|
-
* Reads a history definition from the store.
|
|
51
|
-
* @param key The history key
|
|
52
|
-
* @param request Optional request options.
|
|
53
|
-
* @returns The history object
|
|
54
|
-
*/
|
|
55
|
-
read(key: string, request?: SdkOptions): Promise<IHttpHistory>;
|
|
56
|
-
clearOrganization(organizationKey: string, request?: SdkOptions): Promise<void>;
|
|
57
|
-
clearProject(organizationKey: string, projectKey: string, request?: SdkOptions): Promise<void>;
|
|
58
|
-
clearRequest(organizationKey: string, projectKey: string, requestKey: string, request?: SdkOptions): Promise<void>;
|
|
59
|
-
}
|
|
60
|
-
//# sourceMappingURL=HistorySdk.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"HistorySdk.d.ts","sourceRoot":"","sources":["../../../src/sdk/HistorySdk.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,EAKP,UAAU,EACX,MAAM,cAAc,CAAA;AAErB,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAA2B,MAAM,0BAA0B,CAAA;AACrG,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,iBAAiB,EACjB,kBAAkB,EAClB,oBAAoB,EAErB,MAAM,yBAAyB,CAAA;AAGhC,qBAAa,UAAW,SAAQ,OAAO;IACrC;;;;;;;;;;;;OAYG;IACG,GAAG,CAAC,OAAO,EAAE,YAAY,EAAE,OAAO,GAAE,UAAe,GAAG,OAAO,CAAC,mBAAmB,CAAC,YAAY,CAAC,CAAC;IA0BtG;;;;;OAKG;IACG,UAAU,CACd,IAAI,EAAE,mBAAmB,EACzB,OAAO,GAAE,UAAe,GACvB,OAAO,CAAC,oBAAoB,CAAC,mBAAmB,CAAC,YAAY,CAAC,CAAC,CAAC;IA0BnE;;;;;OAKG;IACG,IAAI,CAAC,OAAO,EAAE,kBAAkB,EAAE,OAAO,GAAE,UAAe,GAAG,OAAO,CAAC,iBAAiB,CAAC,YAAY,CAAC,CAAC;IA0B3G,2BAA2B,CAAC,GAAG,EAAE,GAAG,EAAE,OAAO,EAAE,kBAAkB,GAAG,IAAI;IAmBxE;;;;;;OAMG;IACG,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,GAAE,UAAe,GAAG,OAAO,CAAC,IAAI,CAAC;IAclE;;;;;OAKG;IACG,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,OAAO,GAAE,UAAe,GAAG,OAAO,CAAC,oBAAoB,CAAC,mBAAmB,CAAC,CAAC;IA2B9G;;;;;OAKG;IACG,IAAI,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,GAAE,UAAe,GAAG,OAAO,CAAC,YAAY,CAAC;IAyBlE,iBAAiB,CAAC,eAAe,EAAE,MAAM,EAAE,OAAO,GAAE,UAAe,GAAG,OAAO,CAAC,IAAI,CAAC;IAYnF,YAAY,CAAC,eAAe,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,OAAO,GAAE,UAAe,GAAG,OAAO,CAAC,IAAI,CAAC;IAYlG,YAAY,CAChB,eAAe,EAAE,MAAM,EACvB,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,MAAM,EAClB,OAAO,GAAE,UAAe,GACvB,OAAO,CAAC,IAAI,CAAC;CAWjB"}
|
|
@@ -1,243 +0,0 @@
|
|
|
1
|
-
import { SdkBase, E_RESPONSE_STATUS, E_RESPONSE_NO_VALUE, E_INVALID_JSON, E_RESPONSE_UNKNOWN, } from './SdkBase.js';
|
|
2
|
-
import { RouteBuilder } from './RouteBuilder.js';
|
|
3
|
-
import { Kind as HttpHistoryKind } from '../models/HttpHistory.js';
|
|
4
|
-
import { Exception } from '../exceptions/exception.js';
|
|
5
|
-
export class HistorySdk extends SdkBase {
|
|
6
|
-
/**
|
|
7
|
-
* Creates a history object.
|
|
8
|
-
* A history object can be created per app (type = app) or a store's organization/[project/[request]].
|
|
9
|
-
*
|
|
10
|
-
* The user can always read their own history. If the history is created for a organization/project then
|
|
11
|
-
* history records are shared as any other object in the organization.
|
|
12
|
-
*
|
|
13
|
-
* Note, history objects cannot be updated. They can only be created or deleted.
|
|
14
|
-
*
|
|
15
|
-
* @param history The history to create
|
|
16
|
-
* @param request Optional request options.
|
|
17
|
-
* @returns The key of the created history.
|
|
18
|
-
*/
|
|
19
|
-
async add(history, request = {}) {
|
|
20
|
-
const { token } = request;
|
|
21
|
-
const url = this.sdk.getUrl(RouteBuilder.history());
|
|
22
|
-
const body = JSON.stringify(history);
|
|
23
|
-
const result = await this.sdk.http.post(url.toString(), { token, body });
|
|
24
|
-
this.inspectCommonStatusCodes(result);
|
|
25
|
-
const E_PREFIX = 'Unable to create a history. ';
|
|
26
|
-
if (result.status !== 200) {
|
|
27
|
-
this.logInvalidResponse(result);
|
|
28
|
-
throw this.createApiError(`${E_PREFIX}${E_RESPONSE_STATUS}${result.status}`, result.body);
|
|
29
|
-
}
|
|
30
|
-
if (!result.body) {
|
|
31
|
-
throw new Exception(`${E_PREFIX}${E_RESPONSE_NO_VALUE}`, { code: 'E_RESPONSE_NO_VALUE', status: result.status });
|
|
32
|
-
}
|
|
33
|
-
let data;
|
|
34
|
-
try {
|
|
35
|
-
data = JSON.parse(result.body).data;
|
|
36
|
-
}
|
|
37
|
-
catch {
|
|
38
|
-
throw new Exception(`${E_PREFIX}${E_INVALID_JSON}`, { code: 'E_INVALID_JSON', status: result.status });
|
|
39
|
-
}
|
|
40
|
-
if (!data.key) {
|
|
41
|
-
throw new Exception(`${E_PREFIX}${E_RESPONSE_UNKNOWN}`, { code: 'E_RESPONSE_UNKNOWN', status: result.status });
|
|
42
|
-
}
|
|
43
|
-
return data;
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* Creates a multiple history objects in a batch operation.
|
|
47
|
-
*
|
|
48
|
-
* @param info The bulk create info object.
|
|
49
|
-
* @param request Optional request options.
|
|
50
|
-
*/
|
|
51
|
-
async createBulk(info, request = {}) {
|
|
52
|
-
const { token } = request;
|
|
53
|
-
const url = this.sdk.getUrl(RouteBuilder.historyBatchCreate());
|
|
54
|
-
const body = JSON.stringify(info);
|
|
55
|
-
const result = await this.sdk.http.post(url.toString(), { token, body });
|
|
56
|
-
this.inspectCommonStatusCodes(result);
|
|
57
|
-
const E_PREFIX = 'Unable to create a bulk history. ';
|
|
58
|
-
if (result.status !== 200) {
|
|
59
|
-
this.logInvalidResponse(result);
|
|
60
|
-
throw this.createApiError(`${E_PREFIX}${E_RESPONSE_STATUS}${result.status}`, result.body);
|
|
61
|
-
}
|
|
62
|
-
if (!result.body) {
|
|
63
|
-
throw new Exception(`${E_PREFIX}${E_RESPONSE_NO_VALUE}`, { code: 'E_RESPONSE_NO_VALUE', status: result.status });
|
|
64
|
-
}
|
|
65
|
-
let data;
|
|
66
|
-
try {
|
|
67
|
-
data = JSON.parse(result.body);
|
|
68
|
-
}
|
|
69
|
-
catch {
|
|
70
|
-
throw new Exception(`${E_PREFIX}${E_INVALID_JSON}`, { code: 'E_INVALID_JSON', status: result.status });
|
|
71
|
-
}
|
|
72
|
-
if (!data.data) {
|
|
73
|
-
throw new Exception(`${E_PREFIX}${E_RESPONSE_UNKNOWN}`, { code: 'E_RESPONSE_UNKNOWN', status: result.status });
|
|
74
|
-
}
|
|
75
|
-
return data;
|
|
76
|
-
}
|
|
77
|
-
/**
|
|
78
|
-
* Lists the history.
|
|
79
|
-
*
|
|
80
|
-
* @param options Optional query options.
|
|
81
|
-
* @param request Optional request options.
|
|
82
|
-
*/
|
|
83
|
-
async list(options, request = {}) {
|
|
84
|
-
const { token } = request;
|
|
85
|
-
const url = this.sdk.getUrl(RouteBuilder.history());
|
|
86
|
-
this.appendHistoryListParameters(url, options);
|
|
87
|
-
const result = await this.sdk.http.get(url.toString(), { token });
|
|
88
|
-
this.inspectCommonStatusCodes(result);
|
|
89
|
-
const E_PREFIX = 'Unable to list history. ';
|
|
90
|
-
if (result.status !== 200) {
|
|
91
|
-
this.logInvalidResponse(result);
|
|
92
|
-
throw this.createApiError(`${E_PREFIX}${E_RESPONSE_STATUS}${result.status}`, result.body);
|
|
93
|
-
}
|
|
94
|
-
if (!result.body) {
|
|
95
|
-
throw new Exception(`${E_PREFIX}${E_RESPONSE_NO_VALUE}`, { code: 'E_RESPONSE_NO_VALUE', status: result.status });
|
|
96
|
-
}
|
|
97
|
-
let data;
|
|
98
|
-
try {
|
|
99
|
-
data = JSON.parse(result.body);
|
|
100
|
-
}
|
|
101
|
-
catch {
|
|
102
|
-
throw new Exception(`${E_PREFIX}${E_INVALID_JSON}`, { code: 'E_INVALID_JSON', status: result.status });
|
|
103
|
-
}
|
|
104
|
-
if (!Array.isArray(data.data)) {
|
|
105
|
-
throw new Exception(`${E_PREFIX}${E_RESPONSE_UNKNOWN}`, { code: 'E_RESPONSE_UNKNOWN', status: result.status });
|
|
106
|
-
}
|
|
107
|
-
return data;
|
|
108
|
-
}
|
|
109
|
-
appendHistoryListParameters(url, options) {
|
|
110
|
-
this.sdk.appendListOptions(url, options);
|
|
111
|
-
const { searchParams } = url;
|
|
112
|
-
searchParams.set('organization', options.organization);
|
|
113
|
-
if (options.type) {
|
|
114
|
-
searchParams.set('type', options.type);
|
|
115
|
-
}
|
|
116
|
-
const projectOptions = options;
|
|
117
|
-
if (projectOptions.id) {
|
|
118
|
-
searchParams.set('id', projectOptions.id);
|
|
119
|
-
}
|
|
120
|
-
if (projectOptions.user) {
|
|
121
|
-
searchParams.set('user', 'true');
|
|
122
|
-
}
|
|
123
|
-
if (projectOptions.project) {
|
|
124
|
-
searchParams.set('project', projectOptions.project);
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
/**
|
|
128
|
-
* Deletes a history object form the store.
|
|
129
|
-
*
|
|
130
|
-
* @param key The key returned by the store when created the history. Also available via the
|
|
131
|
-
* `key` property on the history object.
|
|
132
|
-
* @param request Optional request options.
|
|
133
|
-
*/
|
|
134
|
-
async delete(key, request = {}) {
|
|
135
|
-
const { token } = request;
|
|
136
|
-
const path = RouteBuilder.historyItem(key);
|
|
137
|
-
const url = this.sdk.getUrl(path);
|
|
138
|
-
const result = await this.sdk.http.delete(url.toString(), { token });
|
|
139
|
-
this.inspectCommonStatusCodes(result);
|
|
140
|
-
const E_PREFIX = 'Unable to delete history. ';
|
|
141
|
-
if (result.status !== 204) {
|
|
142
|
-
this.logInvalidResponse(result);
|
|
143
|
-
throw this.createApiError(`${E_PREFIX}${E_RESPONSE_STATUS}${result.status}`, result.body);
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
/**
|
|
147
|
-
* Deletes history in a bulk operation.
|
|
148
|
-
* @param keys The list of keys of history objects to delete.
|
|
149
|
-
* @param request Optional request options.
|
|
150
|
-
* @returns The list of delete records.
|
|
151
|
-
*/
|
|
152
|
-
async deleteBulk(keys, request = {}) {
|
|
153
|
-
const { token } = request;
|
|
154
|
-
const path = RouteBuilder.historyBatchDelete();
|
|
155
|
-
const url = this.sdk.getUrl(path);
|
|
156
|
-
const result = await this.sdk.http.post(url.toString(), { token, body: JSON.stringify(keys) });
|
|
157
|
-
this.inspectCommonStatusCodes(result);
|
|
158
|
-
const E_PREFIX = 'Unable to delete history. ';
|
|
159
|
-
if (result.status !== 200) {
|
|
160
|
-
this.logInvalidResponse(result);
|
|
161
|
-
throw this.createApiError(`${E_PREFIX}${E_RESPONSE_STATUS}${result.status}`, result.body);
|
|
162
|
-
}
|
|
163
|
-
if (!result.body) {
|
|
164
|
-
throw new Exception(`${E_PREFIX}${E_RESPONSE_NO_VALUE}`, { code: 'E_RESPONSE_NO_VALUE', status: result.status });
|
|
165
|
-
}
|
|
166
|
-
let data;
|
|
167
|
-
try {
|
|
168
|
-
data = JSON.parse(result.body);
|
|
169
|
-
}
|
|
170
|
-
catch {
|
|
171
|
-
throw new Exception(`${E_PREFIX}${E_INVALID_JSON}`, { code: 'E_INVALID_JSON', status: result.status });
|
|
172
|
-
}
|
|
173
|
-
if (!Array.isArray(data.data)) {
|
|
174
|
-
throw new Exception(`${E_PREFIX}${E_RESPONSE_UNKNOWN}`, { code: 'E_RESPONSE_UNKNOWN', status: result.status });
|
|
175
|
-
}
|
|
176
|
-
return data;
|
|
177
|
-
}
|
|
178
|
-
/**
|
|
179
|
-
* Reads a history definition from the store.
|
|
180
|
-
* @param key The history key
|
|
181
|
-
* @param request Optional request options.
|
|
182
|
-
* @returns The history object
|
|
183
|
-
*/
|
|
184
|
-
async read(key, request = {}) {
|
|
185
|
-
const { token } = request;
|
|
186
|
-
const url = this.sdk.getUrl(RouteBuilder.historyItem(key));
|
|
187
|
-
const result = await this.sdk.http.get(url.toString(), { token });
|
|
188
|
-
this.inspectCommonStatusCodes(result);
|
|
189
|
-
const E_PREFIX = 'Unable to read a history. ';
|
|
190
|
-
if (result.status !== 200) {
|
|
191
|
-
this.logInvalidResponse(result);
|
|
192
|
-
throw this.createApiError(`${E_PREFIX}${E_RESPONSE_STATUS}${result.status}`, result.body);
|
|
193
|
-
}
|
|
194
|
-
if (!result.body) {
|
|
195
|
-
throw new Exception(`${E_PREFIX}${E_RESPONSE_NO_VALUE}`, { code: 'E_RESPONSE_NO_VALUE', status: result.status });
|
|
196
|
-
}
|
|
197
|
-
let data;
|
|
198
|
-
try {
|
|
199
|
-
data = JSON.parse(result.body).data;
|
|
200
|
-
}
|
|
201
|
-
catch {
|
|
202
|
-
throw new Exception(`${E_PREFIX}${E_INVALID_JSON}`, { code: 'E_INVALID_JSON', status: result.status });
|
|
203
|
-
}
|
|
204
|
-
if (data.kind !== HttpHistoryKind) {
|
|
205
|
-
throw new Exception(`${E_PREFIX}${E_RESPONSE_UNKNOWN}`, { code: 'E_RESPONSE_UNKNOWN', status: result.status });
|
|
206
|
-
}
|
|
207
|
-
return data;
|
|
208
|
-
}
|
|
209
|
-
async clearOrganization(organizationKey, request = {}) {
|
|
210
|
-
const { token } = request;
|
|
211
|
-
const url = this.sdk.getUrl(RouteBuilder.historyClear('organization', organizationKey));
|
|
212
|
-
const result = await this.sdk.http.delete(url.toString(), { token });
|
|
213
|
-
this.inspectCommonStatusCodes(result);
|
|
214
|
-
const E_PREFIX = 'Unable to clear history for the organization. ';
|
|
215
|
-
if (result.status !== 204) {
|
|
216
|
-
this.logInvalidResponse(result);
|
|
217
|
-
throw this.createApiError(`${E_PREFIX}${E_RESPONSE_STATUS}${result.status}`, result.body);
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
async clearProject(organizationKey, projectKey, request = {}) {
|
|
221
|
-
const { token } = request;
|
|
222
|
-
const url = this.sdk.getUrl(RouteBuilder.historyClear('project', organizationKey, projectKey));
|
|
223
|
-
const result = await this.sdk.http.delete(url.toString(), { token });
|
|
224
|
-
this.inspectCommonStatusCodes(result);
|
|
225
|
-
const E_PREFIX = 'Unable to clear history for the project. ';
|
|
226
|
-
if (result.status !== 204) {
|
|
227
|
-
this.logInvalidResponse(result);
|
|
228
|
-
throw this.createApiError(`${E_PREFIX}${E_RESPONSE_STATUS}${result.status}`, result.body);
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
async clearRequest(organizationKey, projectKey, requestKey, request = {}) {
|
|
232
|
-
const { token } = request;
|
|
233
|
-
const url = this.sdk.getUrl(RouteBuilder.historyClear('request', organizationKey, projectKey, requestKey));
|
|
234
|
-
const result = await this.sdk.http.delete(url.toString(), { token });
|
|
235
|
-
this.inspectCommonStatusCodes(result);
|
|
236
|
-
const E_PREFIX = 'Unable to clear history for the request. ';
|
|
237
|
-
if (result.status !== 204) {
|
|
238
|
-
this.logInvalidResponse(result);
|
|
239
|
-
throw this.createApiError(`${E_PREFIX}${E_RESPONSE_STATUS}${result.status}`, result.body);
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
|
-
}
|
|
243
|
-
//# sourceMappingURL=HistorySdk.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"HistorySdk.js","sourceRoot":"","sources":["../../../src/sdk/HistorySdk.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,EACP,iBAAiB,EACjB,mBAAmB,EACnB,cAAc,EACd,kBAAkB,GAEnB,MAAM,cAAc,CAAA;AACrB,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAChD,OAAO,EAAqC,IAAI,IAAI,eAAe,EAAE,MAAM,0BAA0B,CAAA;AASrG,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAA;AAEtD,MAAM,OAAO,UAAW,SAAQ,OAAO;IACrC;;;;;;;;;;;;OA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AAC,wBAAwB,CAAC,MAAM,CAAC,CAAA;QACrC,MAAM,QAAQ,GAAG,2CAA2C,CAAA;QAC5D,IAAI,MAAM,CAAC,MAAM,KAAK,GAAG,EAAE,CAAC;YAC1B,IAAI,CAAC,kBAAkB,CAAC,MAAM,CAAC,CAAA;YAC/B,MAAM,IAAI,CAAC,cAAc,CAAC,GAAG,QAAQ,GAAG,iBAAiB,GAAG,MAAM,CAAC,MAAM,EAAE,EAAE,MAAM,CAAC,IAAI,CAAC,CAAA;QAC3F,CAAC;IACH,CAAC;CACF","sourcesContent":["import {\n SdkBase,\n E_RESPONSE_STATUS,\n E_RESPONSE_NO_VALUE,\n E_INVALID_JSON,\n E_RESPONSE_UNKNOWN,\n SdkOptions,\n} from './SdkBase.js'\nimport { RouteBuilder } from './RouteBuilder.js'\nimport { IHttpHistory, IHttpHistoryBulkAdd, Kind as HttpHistoryKind } from '../models/HttpHistory.js'\nimport {\n ContextChangeRecord,\n ContextDeleteRecord,\n ContextListResult,\n HistoryListOptions,\n IBulkOperationResult,\n IHistoryRequestListOptions,\n} from '../events/BaseEvents.js'\nimport { Exception } from '../exceptions/exception.js'\n\nexport class HistorySdk extends SdkBase {\n /**\n * Creates a history object.\n * A history object can be created per app (type = app) or a store's organization/[project/[request]].\n *\n * The user can always read their own history. If the history is created for a organization/project then\n * history records are shared as any other object in the organization.\n *\n * Note, history objects cannot be updated. They can only be created or deleted.\n *\n * @param history The history to create\n * @param request Optional request options.\n * @returns The key of the created history.\n */\n async add(history: IHttpHistory, request: SdkOptions = {}): Promise<ContextChangeRecord<IHttpHistory>> {\n const { token } = request\n const url = this.sdk.getUrl(RouteBuilder.history())\n const body = JSON.stringify(history)\n const result = await this.sdk.http.post(url.toString(), { token, body })\n this.inspectCommonStatusCodes(result)\n const E_PREFIX = 'Unable to create a history. '\n if (result.status !== 200) {\n this.logInvalidResponse(result)\n throw this.createApiError(`${E_PREFIX}${E_RESPONSE_STATUS}${result.status}`, result.body)\n }\n if (!result.body) {\n throw new Exception(`${E_PREFIX}${E_RESPONSE_NO_VALUE}`, { code: 'E_RESPONSE_NO_VALUE', status: result.status })\n }\n let data: ContextChangeRecord<IHttpHistory>\n try {\n data = JSON.parse(result.body).data\n } catch {\n throw new Exception(`${E_PREFIX}${E_INVALID_JSON}`, { code: 'E_INVALID_JSON', status: result.status })\n }\n if (!data.key) {\n throw new Exception(`${E_PREFIX}${E_RESPONSE_UNKNOWN}`, { code: 'E_RESPONSE_UNKNOWN', status: result.status })\n }\n return data\n }\n\n /**\n * Creates a multiple history objects in a batch operation.\n *\n * @param info The bulk create info object.\n * @param request Optional request options.\n */\n async createBulk(\n info: IHttpHistoryBulkAdd,\n request: SdkOptions = {}\n ): Promise<IBulkOperationResult<ContextChangeRecord<IHttpHistory>>> {\n const { token } = request\n const url = this.sdk.getUrl(RouteBuilder.historyBatchCreate())\n const body = JSON.stringify(info)\n const result = await this.sdk.http.post(url.toString(), { token, body })\n this.inspectCommonStatusCodes(result)\n const E_PREFIX = 'Unable to create a bulk history. '\n if (result.status !== 200) {\n this.logInvalidResponse(result)\n throw this.createApiError(`${E_PREFIX}${E_RESPONSE_STATUS}${result.status}`, result.body)\n }\n if (!result.body) {\n throw new Exception(`${E_PREFIX}${E_RESPONSE_NO_VALUE}`, { code: 'E_RESPONSE_NO_VALUE', status: result.status })\n }\n let data: IBulkOperationResult<ContextChangeRecord<IHttpHistory>>\n try {\n data = JSON.parse(result.body)\n } catch {\n throw new Exception(`${E_PREFIX}${E_INVALID_JSON}`, { code: 'E_INVALID_JSON', status: result.status })\n }\n if (!data.data) {\n throw new Exception(`${E_PREFIX}${E_RESPONSE_UNKNOWN}`, { code: 'E_RESPONSE_UNKNOWN', status: result.status })\n }\n return data\n }\n\n /**\n * Lists the history.\n *\n * @param options Optional query options.\n * @param request Optional request options.\n */\n async list(options: HistoryListOptions, request: SdkOptions = {}): Promise<ContextListResult<IHttpHistory>> {\n const { token } = request\n const url = this.sdk.getUrl(RouteBuilder.history())\n this.appendHistoryListParameters(url, options)\n const result = await this.sdk.http.get(url.toString(), { token })\n this.inspectCommonStatusCodes(result)\n const E_PREFIX = 'Unable to list history. '\n if (result.status !== 200) {\n this.logInvalidResponse(result)\n throw this.createApiError(`${E_PREFIX}${E_RESPONSE_STATUS}${result.status}`, result.body)\n }\n if (!result.body) {\n throw new Exception(`${E_PREFIX}${E_RESPONSE_NO_VALUE}`, { code: 'E_RESPONSE_NO_VALUE', status: result.status })\n }\n let data: ContextListResult<IHttpHistory>\n try {\n data = JSON.parse(result.body)\n } catch {\n throw new Exception(`${E_PREFIX}${E_INVALID_JSON}`, { code: 'E_INVALID_JSON', status: result.status })\n }\n if (!Array.isArray(data.data)) {\n throw new Exception(`${E_PREFIX}${E_RESPONSE_UNKNOWN}`, { code: 'E_RESPONSE_UNKNOWN', status: result.status })\n }\n return data\n }\n\n appendHistoryListParameters(url: URL, options: HistoryListOptions): void {\n this.sdk.appendListOptions(url, options)\n const { searchParams } = url\n searchParams.set('organization', options.organization)\n if (options.type) {\n searchParams.set('type', options.type)\n }\n const projectOptions = options as IHistoryRequestListOptions\n if (projectOptions.id) {\n searchParams.set('id', projectOptions.id)\n }\n if (projectOptions.user) {\n searchParams.set('user', 'true')\n }\n if (projectOptions.project) {\n searchParams.set('project', projectOptions.project)\n }\n }\n\n /**\n * Deletes a history object form the store.\n *\n * @param key The key returned by the store when created the history. Also available via the\n * `key` property on the history object.\n * @param request Optional request options.\n */\n async delete(key: string, request: SdkOptions = {}): Promise<void> {\n const { token } = request\n const path = RouteBuilder.historyItem(key)\n const url = this.sdk.getUrl(path)\n\n const result = await this.sdk.http.delete(url.toString(), { token })\n this.inspectCommonStatusCodes(result)\n const E_PREFIX = 'Unable to delete history. '\n if (result.status !== 204) {\n this.logInvalidResponse(result)\n throw this.createApiError(`${E_PREFIX}${E_RESPONSE_STATUS}${result.status}`, result.body)\n }\n }\n\n /**\n * Deletes history in a bulk operation.\n * @param keys The list of keys of history objects to delete.\n * @param request Optional request options.\n * @returns The list of delete records.\n */\n async deleteBulk(keys: string[], request: SdkOptions = {}): Promise<IBulkOperationResult<ContextDeleteRecord>> {\n const { token } = request\n const path = RouteBuilder.historyBatchDelete()\n const url = this.sdk.getUrl(path)\n const result = await this.sdk.http.post(url.toString(), { token, body: JSON.stringify(keys) })\n this.inspectCommonStatusCodes(result)\n const E_PREFIX = 'Unable to delete history. '\n if (result.status !== 200) {\n this.logInvalidResponse(result)\n throw this.createApiError(`${E_PREFIX}${E_RESPONSE_STATUS}${result.status}`, result.body)\n }\n if (!result.body) {\n throw new Exception(`${E_PREFIX}${E_RESPONSE_NO_VALUE}`, { code: 'E_RESPONSE_NO_VALUE', status: result.status })\n }\n\n let data: IBulkOperationResult<ContextDeleteRecord>\n try {\n data = JSON.parse(result.body)\n } catch {\n throw new Exception(`${E_PREFIX}${E_INVALID_JSON}`, { code: 'E_INVALID_JSON', status: result.status })\n }\n if (!Array.isArray(data.data)) {\n throw new Exception(`${E_PREFIX}${E_RESPONSE_UNKNOWN}`, { code: 'E_RESPONSE_UNKNOWN', status: result.status })\n }\n return data\n }\n\n /**\n * Reads a history definition from the store.\n * @param key The history key\n * @param request Optional request options.\n * @returns The history object\n */\n async read(key: string, request: SdkOptions = {}): Promise<IHttpHistory> {\n const { token } = request\n const url = this.sdk.getUrl(RouteBuilder.historyItem(key))\n const result = await this.sdk.http.get(url.toString(), { token })\n this.inspectCommonStatusCodes(result)\n const E_PREFIX = 'Unable to read a history. '\n if (result.status !== 200) {\n this.logInvalidResponse(result)\n throw this.createApiError(`${E_PREFIX}${E_RESPONSE_STATUS}${result.status}`, result.body)\n }\n if (!result.body) {\n throw new Exception(`${E_PREFIX}${E_RESPONSE_NO_VALUE}`, { code: 'E_RESPONSE_NO_VALUE', status: result.status })\n }\n let data: IHttpHistory\n try {\n data = JSON.parse(result.body).data\n } catch {\n throw new Exception(`${E_PREFIX}${E_INVALID_JSON}`, { code: 'E_INVALID_JSON', status: result.status })\n }\n if (data.kind !== HttpHistoryKind) {\n throw new Exception(`${E_PREFIX}${E_RESPONSE_UNKNOWN}`, { code: 'E_RESPONSE_UNKNOWN', status: result.status })\n }\n return data\n }\n\n async clearOrganization(organizationKey: string, request: SdkOptions = {}): Promise<void> {\n const { token } = request\n const url = this.sdk.getUrl(RouteBuilder.historyClear('organization', organizationKey))\n const result = await this.sdk.http.delete(url.toString(), { token })\n this.inspectCommonStatusCodes(result)\n const E_PREFIX = 'Unable to clear history for the organization. '\n if (result.status !== 204) {\n this.logInvalidResponse(result)\n throw this.createApiError(`${E_PREFIX}${E_RESPONSE_STATUS}${result.status}`, result.body)\n }\n }\n\n async clearProject(organizationKey: string, projectKey: string, request: SdkOptions = {}): Promise<void> {\n const { token } = request\n const url = this.sdk.getUrl(RouteBuilder.historyClear('project', organizationKey, projectKey))\n const result = await this.sdk.http.delete(url.toString(), { token })\n this.inspectCommonStatusCodes(result)\n const E_PREFIX = 'Unable to clear history for the project. '\n if (result.status !== 204) {\n this.logInvalidResponse(result)\n throw this.createApiError(`${E_PREFIX}${E_RESPONSE_STATUS}${result.status}`, result.body)\n }\n }\n\n async clearRequest(\n organizationKey: string,\n projectKey: string,\n requestKey: string,\n request: SdkOptions = {}\n ): Promise<void> {\n const { token } = request\n const url = this.sdk.getUrl(RouteBuilder.historyClear('request', organizationKey, projectKey, requestKey))\n const result = await this.sdk.http.delete(url.toString(), { token })\n this.inspectCommonStatusCodes(result)\n const E_PREFIX = 'Unable to clear history for the request. '\n if (result.status !== 204) {\n this.logInvalidResponse(result)\n throw this.createApiError(`${E_PREFIX}${E_RESPONSE_STATUS}${result.status}`, result.body)\n }\n }\n}\n"]}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { SdkBase, SdkOptions } from './SdkBase.js';
|
|
2
|
-
import { ContextChangeRecord, ContextDeleteRecord, ContextListResult, IBulkOperationResult, IProjectExecutionListOptions } from '../events/BaseEvents.js';
|
|
3
|
-
import { IProjectExecution } from '../models/ProjectExecution.js';
|
|
4
|
-
export declare class ProjectExecutionSdk extends SdkBase {
|
|
5
|
-
/**
|
|
6
|
-
* Adds an execution logs object to the store.
|
|
7
|
-
*
|
|
8
|
-
* @param history The history object
|
|
9
|
-
* @param organization The parent organization key
|
|
10
|
-
*/
|
|
11
|
-
add(organization: string, value: IProjectExecution, request?: SdkOptions): Promise<ContextChangeRecord<IProjectExecution>>;
|
|
12
|
-
/**
|
|
13
|
-
* Reads an execution logs item.
|
|
14
|
-
*
|
|
15
|
-
* @param key The key of the history object to read.
|
|
16
|
-
*/
|
|
17
|
-
read(key: string, request?: SdkOptions): Promise<IProjectExecution>;
|
|
18
|
-
/**
|
|
19
|
-
* Lists the execution logs data.
|
|
20
|
-
*
|
|
21
|
-
* @param key The id of the file to lists revisions for.
|
|
22
|
-
* @param options The list query options
|
|
23
|
-
*/
|
|
24
|
-
list(options: IProjectExecutionListOptions, request?: SdkOptions): Promise<ContextListResult<IProjectExecution>>;
|
|
25
|
-
/**
|
|
26
|
-
* Marks the data as deleted.
|
|
27
|
-
*
|
|
28
|
-
* @param key The key of the object to delete.
|
|
29
|
-
*/
|
|
30
|
-
delete(key: string, request?: SdkOptions): Promise<void>;
|
|
31
|
-
/**
|
|
32
|
-
* Deletes a history in a bulk operation.
|
|
33
|
-
*
|
|
34
|
-
* @param keys The list of history keys to delete.
|
|
35
|
-
*/
|
|
36
|
-
deleteBulk(keys: string[], request?: SdkOptions): Promise<IBulkOperationResult<ContextDeleteRecord>>;
|
|
37
|
-
/**
|
|
38
|
-
* Clears the datastore from history for a organization.
|
|
39
|
-
*
|
|
40
|
-
* @param organization The parent organization key
|
|
41
|
-
*/
|
|
42
|
-
clearOrganization(organization: string, request?: SdkOptions): Promise<void>;
|
|
43
|
-
/**
|
|
44
|
-
* Clears all history from a project
|
|
45
|
-
*
|
|
46
|
-
* @param project The parent project key
|
|
47
|
-
*/
|
|
48
|
-
clearProject(organization: string, project: string, request?: SdkOptions): Promise<void>;
|
|
49
|
-
/**
|
|
50
|
-
* Clears all history from a folder
|
|
51
|
-
*
|
|
52
|
-
* @param project The parent project key
|
|
53
|
-
*/
|
|
54
|
-
clearParent(organization: string, project: string, folder: string, request?: SdkOptions): Promise<void>;
|
|
55
|
-
}
|
|
56
|
-
//# sourceMappingURL=ProjectExecutionsSdk.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ProjectExecutionsSdk.d.ts","sourceRoot":"","sources":["../../../src/sdk/ProjectExecutionsSdk.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAsB,UAAU,EAAoB,MAAM,cAAc,CAAA;AAExF,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,iBAAiB,EACjB,oBAAoB,EACpB,4BAA4B,EAC7B,MAAM,yBAAyB,CAAA;AAChC,OAAO,EAAE,iBAAiB,EAAgC,MAAM,+BAA+B,CAAA;AAE/F,qBAAa,mBAAoB,SAAQ,OAAO;IAC9C;;;;;OAKG;IACG,GAAG,CACP,YAAY,EAAE,MAAM,EACpB,KAAK,EAAE,iBAAiB,EACxB,OAAO,GAAE,UAAe,GACvB,OAAO,CAAC,mBAAmB,CAAC,iBAAiB,CAAC,CAAC;IAclD;;;;OAIG;IACG,IAAI,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,GAAE,UAAe,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAa7E;;;;;OAKG;IACG,IAAI,CACR,OAAO,EAAE,4BAA4B,EACrC,OAAO,GAAE,UAAe,GACvB,OAAO,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;IAgBhD;;;;OAIG;IACG,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,GAAE,UAAe,GAAG,OAAO,CAAC,IAAI,CAAC;IAKlE;;;;OAIG;IACG,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,OAAO,GAAE,UAAe,GAAG,OAAO,CAAC,oBAAoB,CAAC,mBAAmB,CAAC,CAAC;IAK9G;;;;OAIG;IACG,iBA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