@api-client/core 0.9.22 → 0.9.24
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/build/browser.d.ts +11 -11
- package/build/browser.js +13 -16
- package/build/browser.js.map +1 -1
- package/build/index.d.ts +11 -11
- package/build/index.js +13 -16
- package/build/index.js.map +1 -1
- package/build/src/data/DataExtractor.d.ts +66 -0
- package/build/src/data/DataExtractor.js +177 -0
- package/build/src/data/DataExtractor.js.map +1 -0
- package/build/src/data/RequestDataExtractor.d.ts +4 -1
- package/build/src/data/RequestDataExtractor.js +13 -26
- package/build/src/data/RequestDataExtractor.js.map +1 -1
- package/build/src/lib/Buffer.d.ts +2 -2
- package/build/src/lib/Buffer.js +46 -18
- package/build/src/lib/Buffer.js.map +1 -1
- package/build/src/models/ClientCertificate.js.map +1 -1
- package/build/src/models/Request.d.ts +2 -2
- package/build/src/models/Request.js +1 -1
- package/build/src/models/Request.js.map +1 -1
- package/build/src/models/RequestLog.d.ts +1 -1
- package/build/src/models/http-flows/AssertionError.js.map +1 -0
- package/build/src/models/http-flows/HttpAssertion.js.map +1 -0
- package/build/src/models/{http-actions → http-flows}/HttpFlows.d.ts +5 -38
- package/build/src/models/{http-actions → http-flows}/HttpFlows.js +4 -0
- package/build/src/models/http-flows/HttpFlows.js.map +1 -0
- package/build/src/models/http-flows/HttpStep.js.map +1 -0
- package/build/src/models/{http-actions → http-flows}/LegacyTranslator.d.ts +2 -2
- package/build/src/models/{http-actions → http-flows}/LegacyTranslator.js +92 -46
- package/build/src/models/http-flows/LegacyTranslator.js.map +1 -0
- package/build/src/models/http-flows/steps/assertion/EqualAssertion.js.map +1 -0
- package/build/src/models/http-flows/steps/assertion/GreaterThanAssertion.js.map +1 -0
- package/build/src/models/http-flows/steps/assertion/IncludesAssertion.js.map +1 -0
- package/build/src/models/http-flows/steps/assertion/IsEmptyAssertion.js.map +1 -0
- package/build/src/models/http-flows/steps/assertion/IsNotEmptyAssertion.js.map +1 -0
- package/build/src/models/http-flows/steps/assertion/LengthOfAssertion.js.map +1 -0
- package/build/src/models/http-flows/steps/assertion/LessThanAssertion.js.map +1 -0
- package/build/src/models/http-flows/steps/assertion/MatchesAssertion.js.map +1 -0
- package/build/src/models/http-flows/steps/assertion/MatchesSchemaAssertion.js.map +1 -0
- package/build/src/models/http-flows/steps/assertion/NotEqualAssertion.js.map +1 -0
- package/build/src/models/http-flows/steps/assertion/NotIncludesAssertion.js.map +1 -0
- package/build/src/models/http-flows/steps/assertion/NotOkAssertion.js.map +1 -0
- package/build/src/models/http-flows/steps/assertion/NotToBeAssertion.js.map +1 -0
- package/build/src/models/http-flows/steps/assertion/OkAssertion.js.map +1 -0
- package/build/src/models/http-flows/steps/assertion/ToBeAssertion.js.map +1 -0
- package/build/src/models/http-flows/steps/assertion/index.js.map +1 -0
- package/build/src/models/{http-actions → http-flows}/steps/data/DeleteCookieStep.d.ts +5 -1
- package/build/src/models/{http-actions → http-flows}/steps/data/DeleteCookieStep.js +6 -1
- package/build/src/models/http-flows/steps/data/DeleteCookieStep.js.map +1 -0
- package/build/src/models/http-flows/steps/data/DeleteVariableStep.d.ts +36 -0
- package/build/src/models/http-flows/steps/data/DeleteVariableStep.js +44 -0
- package/build/src/models/http-flows/steps/data/DeleteVariableStep.js.map +1 -0
- package/build/src/models/http-flows/steps/data/ReadDataSourceStep.js.map +1 -0
- package/build/src/models/http-flows/steps/data/ReadDataStep.js.map +1 -0
- package/build/src/models/http-flows/steps/data/ReadValueStep.js.map +1 -0
- package/build/src/models/{http-actions → http-flows}/steps/data/SetCookieStep.d.ts +2 -1
- package/build/src/models/{http-actions → http-flows}/steps/data/SetCookieStep.js +2 -1
- package/build/src/models/http-flows/steps/data/SetCookieStep.js.map +1 -0
- package/build/src/models/http-flows/steps/data/SetDataStep.js.map +1 -0
- package/build/src/models/http-flows/steps/data/SetVariableStep.js.map +1 -0
- package/build/src/models/{http-actions → http-flows}/steps/data/index.d.ts +1 -0
- package/build/src/models/{http-actions → http-flows}/steps/data/index.js +1 -0
- package/build/src/models/http-flows/steps/data/index.js.map +1 -0
- package/build/src/models/http-flows/steps/transformation/AsLowerCaseStep.js.map +1 -0
- package/build/src/models/http-flows/steps/transformation/AsNumberStep.js.map +1 -0
- package/build/src/models/http-flows/steps/transformation/AsUpperCaseStep.js.map +1 -0
- package/build/src/models/http-flows/steps/transformation/RoundStep.js.map +1 -0
- package/build/src/models/http-flows/steps/transformation/SubstringStep.js.map +1 -0
- package/build/src/models/http-flows/steps/transformation/TrimStep.js.map +1 -0
- package/build/src/models/http-flows/steps/transformation/index.js.map +1 -0
- package/build/src/proxy/RequestProxy.d.ts +2 -2
- package/build/src/proxy/RequestProxy.js.map +1 -1
- package/build/src/runtime/http-engine/HttpEngine.js.map +1 -1
- package/build/src/runtime/http-runner/ConditionCheck.d.ts +1 -1
- package/build/src/runtime/http-runner/HttpAssertionRunner.d.ts +7 -57
- package/build/src/runtime/http-runner/HttpAssertionRunner.js +24 -382
- package/build/src/runtime/http-runner/HttpAssertionRunner.js.map +1 -1
- package/build/src/runtime/http-runner/HttpFlowRunner.d.ts +10 -57
- package/build/src/runtime/http-runner/HttpFlowRunner.js +45 -203
- package/build/src/runtime/http-runner/HttpFlowRunner.js.map +1 -1
- package/build/src/runtime/http-runner/HttpFlows.d.ts +119 -0
- package/build/src/runtime/http-runner/HttpFlows.js +541 -0
- package/build/src/runtime/http-runner/HttpFlows.js.map +1 -0
- package/build/src/runtime/http-runner/HttpRequestRunner.d.ts +2 -2
- package/package.json +1 -1
- package/src/data/DataExtractor.ts +188 -0
- package/src/data/RequestDataExtractor.ts +14 -26
- package/src/lib/Buffer.ts +51 -23
- package/src/models/ClientCertificate.ts +1 -1
- package/src/models/Request.ts +3 -3
- package/src/models/RequestLog.ts +1 -1
- package/src/models/{http-actions → http-flows}/HttpFlows.ts +5 -39
- package/src/models/{http-actions → http-flows}/LegacyTranslator.ts +89 -31
- package/src/models/{http-actions → http-flows}/steps/data/DeleteCookieStep.ts +6 -1
- package/src/models/http-flows/steps/data/DeleteVariableStep.ts +78 -0
- package/src/models/{http-actions → http-flows}/steps/data/SetCookieStep.ts +4 -2
- package/src/proxy/RequestProxy.ts +2 -2
- package/src/runtime/http-engine/HttpEngine.ts +3 -3
- package/src/runtime/http-runner/ConditionCheck.ts +1 -1
- package/src/runtime/http-runner/HttpAssertionRunner.ts +28 -410
- package/src/runtime/http-runner/HttpFlowRunner.ts +47 -212
- package/src/runtime/http-runner/HttpFlows.ts +576 -0
- package/src/runtime/http-runner/HttpRequestRunner.ts +2 -2
- package/build/src/data/DataUtils.d.ts +0 -40
- package/build/src/data/DataUtils.js +0 -106
- package/build/src/data/DataUtils.js.map +0 -1
- package/build/src/models/http-actions/AssertionError.js.map +0 -1
- package/build/src/models/http-actions/HttpAssertion.js.map +0 -1
- package/build/src/models/http-actions/HttpFlows.js.map +0 -1
- package/build/src/models/http-actions/HttpStep.js.map +0 -1
- package/build/src/models/http-actions/LegacyTranslator.js.map +0 -1
- package/build/src/models/http-actions/steps/assertion/EqualAssertion.js.map +0 -1
- package/build/src/models/http-actions/steps/assertion/GreaterThanAssertion.js.map +0 -1
- package/build/src/models/http-actions/steps/assertion/IncludesAssertion.js.map +0 -1
- package/build/src/models/http-actions/steps/assertion/IsEmptyAssertion.js.map +0 -1
- package/build/src/models/http-actions/steps/assertion/IsNotEmptyAssertion.js.map +0 -1
- package/build/src/models/http-actions/steps/assertion/LengthOfAssertion.js.map +0 -1
- package/build/src/models/http-actions/steps/assertion/LessThanAssertion.js.map +0 -1
- package/build/src/models/http-actions/steps/assertion/MatchesAssertion.js.map +0 -1
- package/build/src/models/http-actions/steps/assertion/MatchesSchemaAssertion.js.map +0 -1
- package/build/src/models/http-actions/steps/assertion/NotEqualAssertion.js.map +0 -1
- package/build/src/models/http-actions/steps/assertion/NotIncludesAssertion.js.map +0 -1
- package/build/src/models/http-actions/steps/assertion/NotOkAssertion.js.map +0 -1
- package/build/src/models/http-actions/steps/assertion/NotToBeAssertion.js.map +0 -1
- package/build/src/models/http-actions/steps/assertion/OkAssertion.js.map +0 -1
- package/build/src/models/http-actions/steps/assertion/ToBeAssertion.js.map +0 -1
- package/build/src/models/http-actions/steps/assertion/index.js.map +0 -1
- package/build/src/models/http-actions/steps/data/DeleteCookieStep.js.map +0 -1
- package/build/src/models/http-actions/steps/data/ReadDataSourceStep.js.map +0 -1
- package/build/src/models/http-actions/steps/data/ReadDataStep.js.map +0 -1
- package/build/src/models/http-actions/steps/data/ReadValueStep.js.map +0 -1
- package/build/src/models/http-actions/steps/data/SetCookieStep.js.map +0 -1
- package/build/src/models/http-actions/steps/data/SetDataStep.js.map +0 -1
- package/build/src/models/http-actions/steps/data/SetVariableStep.js.map +0 -1
- package/build/src/models/http-actions/steps/data/index.js.map +0 -1
- package/build/src/models/http-actions/steps/transformation/AsLowerCaseStep.js.map +0 -1
- package/build/src/models/http-actions/steps/transformation/AsNumberStep.js.map +0 -1
- package/build/src/models/http-actions/steps/transformation/AsUpperCaseStep.js.map +0 -1
- package/build/src/models/http-actions/steps/transformation/RoundStep.js.map +0 -1
- package/build/src/models/http-actions/steps/transformation/SubstringStep.js.map +0 -1
- package/build/src/models/http-actions/steps/transformation/TrimStep.js.map +0 -1
- package/build/src/models/http-actions/steps/transformation/index.js.map +0 -1
- package/src/data/DataUtils.ts +0 -108
- /package/build/src/models/{http-actions → http-flows}/AssertionError.d.ts +0 -0
- /package/build/src/models/{http-actions → http-flows}/AssertionError.js +0 -0
- /package/build/src/models/{http-actions → http-flows}/HttpAssertion.d.ts +0 -0
- /package/build/src/models/{http-actions → http-flows}/HttpAssertion.js +0 -0
- /package/build/src/models/{http-actions → http-flows}/HttpStep.d.ts +0 -0
- /package/build/src/models/{http-actions → http-flows}/HttpStep.js +0 -0
- /package/build/src/models/{http-actions → http-flows}/steps/assertion/EqualAssertion.d.ts +0 -0
- /package/build/src/models/{http-actions → http-flows}/steps/assertion/EqualAssertion.js +0 -0
- /package/build/src/models/{http-actions → http-flows}/steps/assertion/GreaterThanAssertion.d.ts +0 -0
- /package/build/src/models/{http-actions → http-flows}/steps/assertion/GreaterThanAssertion.js +0 -0
- /package/build/src/models/{http-actions → http-flows}/steps/assertion/IncludesAssertion.d.ts +0 -0
- /package/build/src/models/{http-actions → http-flows}/steps/assertion/IncludesAssertion.js +0 -0
- /package/build/src/models/{http-actions → http-flows}/steps/assertion/IsEmptyAssertion.d.ts +0 -0
- /package/build/src/models/{http-actions → http-flows}/steps/assertion/IsEmptyAssertion.js +0 -0
- /package/build/src/models/{http-actions → http-flows}/steps/assertion/IsNotEmptyAssertion.d.ts +0 -0
- /package/build/src/models/{http-actions → http-flows}/steps/assertion/IsNotEmptyAssertion.js +0 -0
- /package/build/src/models/{http-actions → http-flows}/steps/assertion/LengthOfAssertion.d.ts +0 -0
- /package/build/src/models/{http-actions → http-flows}/steps/assertion/LengthOfAssertion.js +0 -0
- /package/build/src/models/{http-actions → http-flows}/steps/assertion/LessThanAssertion.d.ts +0 -0
- /package/build/src/models/{http-actions → http-flows}/steps/assertion/LessThanAssertion.js +0 -0
- /package/build/src/models/{http-actions → http-flows}/steps/assertion/MatchesAssertion.d.ts +0 -0
- /package/build/src/models/{http-actions → http-flows}/steps/assertion/MatchesAssertion.js +0 -0
- /package/build/src/models/{http-actions → http-flows}/steps/assertion/MatchesSchemaAssertion.d.ts +0 -0
- /package/build/src/models/{http-actions → http-flows}/steps/assertion/MatchesSchemaAssertion.js +0 -0
- /package/build/src/models/{http-actions → http-flows}/steps/assertion/NotEqualAssertion.d.ts +0 -0
- /package/build/src/models/{http-actions → http-flows}/steps/assertion/NotEqualAssertion.js +0 -0
- /package/build/src/models/{http-actions → http-flows}/steps/assertion/NotIncludesAssertion.d.ts +0 -0
- /package/build/src/models/{http-actions → http-flows}/steps/assertion/NotIncludesAssertion.js +0 -0
- /package/build/src/models/{http-actions → http-flows}/steps/assertion/NotOkAssertion.d.ts +0 -0
- /package/build/src/models/{http-actions → http-flows}/steps/assertion/NotOkAssertion.js +0 -0
- /package/build/src/models/{http-actions → http-flows}/steps/assertion/NotToBeAssertion.d.ts +0 -0
- /package/build/src/models/{http-actions → http-flows}/steps/assertion/NotToBeAssertion.js +0 -0
- /package/build/src/models/{http-actions → http-flows}/steps/assertion/OkAssertion.d.ts +0 -0
- /package/build/src/models/{http-actions → http-flows}/steps/assertion/OkAssertion.js +0 -0
- /package/build/src/models/{http-actions → http-flows}/steps/assertion/ToBeAssertion.d.ts +0 -0
- /package/build/src/models/{http-actions → http-flows}/steps/assertion/ToBeAssertion.js +0 -0
- /package/build/src/models/{http-actions → http-flows}/steps/assertion/index.d.ts +0 -0
- /package/build/src/models/{http-actions → http-flows}/steps/assertion/index.js +0 -0
- /package/build/src/models/{http-actions → http-flows}/steps/data/ReadDataSourceStep.d.ts +0 -0
- /package/build/src/models/{http-actions → http-flows}/steps/data/ReadDataSourceStep.js +0 -0
- /package/build/src/models/{http-actions → http-flows}/steps/data/ReadDataStep.d.ts +0 -0
- /package/build/src/models/{http-actions → http-flows}/steps/data/ReadDataStep.js +0 -0
- /package/build/src/models/{http-actions → http-flows}/steps/data/ReadValueStep.d.ts +0 -0
- /package/build/src/models/{http-actions → http-flows}/steps/data/ReadValueStep.js +0 -0
- /package/build/src/models/{http-actions → http-flows}/steps/data/SetDataStep.d.ts +0 -0
- /package/build/src/models/{http-actions → http-flows}/steps/data/SetDataStep.js +0 -0
- /package/build/src/models/{http-actions → http-flows}/steps/data/SetVariableStep.d.ts +0 -0
- /package/build/src/models/{http-actions → http-flows}/steps/data/SetVariableStep.js +0 -0
- /package/build/src/models/{http-actions → http-flows}/steps/transformation/AsLowerCaseStep.d.ts +0 -0
- /package/build/src/models/{http-actions → http-flows}/steps/transformation/AsLowerCaseStep.js +0 -0
- /package/build/src/models/{http-actions → http-flows}/steps/transformation/AsNumberStep.d.ts +0 -0
- /package/build/src/models/{http-actions → http-flows}/steps/transformation/AsNumberStep.js +0 -0
- /package/build/src/models/{http-actions → http-flows}/steps/transformation/AsUpperCaseStep.d.ts +0 -0
- /package/build/src/models/{http-actions → http-flows}/steps/transformation/AsUpperCaseStep.js +0 -0
- /package/build/src/models/{http-actions → http-flows}/steps/transformation/RoundStep.d.ts +0 -0
- /package/build/src/models/{http-actions → http-flows}/steps/transformation/RoundStep.js +0 -0
- /package/build/src/models/{http-actions → http-flows}/steps/transformation/SubstringStep.d.ts +0 -0
- /package/build/src/models/{http-actions → http-flows}/steps/transformation/SubstringStep.js +0 -0
- /package/build/src/models/{http-actions → http-flows}/steps/transformation/TrimStep.d.ts +0 -0
- /package/build/src/models/{http-actions → http-flows}/steps/transformation/TrimStep.js +0 -0
- /package/build/src/models/{http-actions → http-flows}/steps/transformation/index.d.ts +0 -0
- /package/build/src/models/{http-actions → http-flows}/steps/transformation/index.js +0 -0
- /package/src/models/{http-actions → http-flows}/AssertionError.ts +0 -0
- /package/src/models/{http-actions → http-flows}/HttpAssertion.ts +0 -0
- /package/src/models/{http-actions → http-flows}/HttpStep.ts +0 -0
- /package/src/models/{http-actions → http-flows}/steps/assertion/EqualAssertion.ts +0 -0
- /package/src/models/{http-actions → http-flows}/steps/assertion/GreaterThanAssertion.ts +0 -0
- /package/src/models/{http-actions → http-flows}/steps/assertion/IncludesAssertion.ts +0 -0
- /package/src/models/{http-actions → http-flows}/steps/assertion/IsEmptyAssertion.ts +0 -0
- /package/src/models/{http-actions → http-flows}/steps/assertion/IsNotEmptyAssertion.ts +0 -0
- /package/src/models/{http-actions → http-flows}/steps/assertion/LengthOfAssertion.ts +0 -0
- /package/src/models/{http-actions → http-flows}/steps/assertion/LessThanAssertion.ts +0 -0
- /package/src/models/{http-actions → http-flows}/steps/assertion/MatchesAssertion.ts +0 -0
- /package/src/models/{http-actions → http-flows}/steps/assertion/MatchesSchemaAssertion.ts +0 -0
- /package/src/models/{http-actions → http-flows}/steps/assertion/NotEqualAssertion.ts +0 -0
- /package/src/models/{http-actions → http-flows}/steps/assertion/NotIncludesAssertion.ts +0 -0
- /package/src/models/{http-actions → http-flows}/steps/assertion/NotOkAssertion.ts +0 -0
- /package/src/models/{http-actions → http-flows}/steps/assertion/NotToBeAssertion.ts +0 -0
- /package/src/models/{http-actions → http-flows}/steps/assertion/OkAssertion.ts +0 -0
- /package/src/models/{http-actions → http-flows}/steps/assertion/ToBeAssertion.ts +0 -0
- /package/src/models/{http-actions → http-flows}/steps/data/ReadDataSourceStep.ts +0 -0
- /package/src/models/{http-actions → http-flows}/steps/data/ReadDataStep.ts +0 -0
- /package/src/models/{http-actions → http-flows}/steps/data/ReadValueStep.ts +0 -0
- /package/src/models/{http-actions → http-flows}/steps/data/SetDataStep.ts +0 -0
- /package/src/models/{http-actions → http-flows}/steps/data/SetVariableStep.ts +0 -0
- /package/src/models/{http-actions → http-flows}/steps/transformation/AsLowerCaseStep.ts +0 -0
- /package/src/models/{http-actions → http-flows}/steps/transformation/AsNumberStep.ts +0 -0
- /package/src/models/{http-actions → http-flows}/steps/transformation/AsUpperCaseStep.ts +0 -0
- /package/src/models/{http-actions → http-flows}/steps/transformation/RoundStep.ts +0 -0
- /package/src/models/{http-actions → http-flows}/steps/transformation/SubstringStep.ts +0 -0
- /package/src/models/{http-actions → http-flows}/steps/transformation/TrimStep.ts +0 -0
package/build/browser.d.ts
CHANGED
|
@@ -107,17 +107,17 @@ export { Tokens as OidcTokens } from './src/authorization/lib/Tokens.js';
|
|
|
107
107
|
export * as KnownGrants from './src/authorization/lib/KnownGrants.js';
|
|
108
108
|
export * as AuthorizationUtils from './src/authorization/lib/Utils.js';
|
|
109
109
|
export { SecurityProcessor, IAuthApplyOptions } from './src/authorization/lib/SecurityProcessor.js';
|
|
110
|
-
export * from './src/models/http-
|
|
111
|
-
export * from './src/models/http-
|
|
112
|
-
export * from './src/models/http-
|
|
113
|
-
export * from './src/models/http-
|
|
114
|
-
export * from './src/models/http-
|
|
115
|
-
export * from './src/models/http-
|
|
116
|
-
export * from './src/models/http-
|
|
117
|
-
export * as HttpAssertions from './src/models/http-
|
|
118
|
-
export * as TransformationSteps from './src/models/http-
|
|
119
|
-
export * as DataSteps from './src/models/http-
|
|
120
|
-
export * from './src/models/http-
|
|
110
|
+
export * from './src/models/http-flows/steps/assertion/index.js';
|
|
111
|
+
export * from './src/models/http-flows/steps/data/index.js';
|
|
112
|
+
export * from './src/models/http-flows/steps/transformation/index.js';
|
|
113
|
+
export * from './src/models/http-flows/HttpFlows.js';
|
|
114
|
+
export * from './src/models/http-flows/HttpStep.js';
|
|
115
|
+
export * from './src/models/http-flows/LegacyTranslator.js';
|
|
116
|
+
export * from './src/models/http-flows/HttpAssertion.js';
|
|
117
|
+
export * as HttpAssertions from './src/models/http-flows/steps/assertion/index.js';
|
|
118
|
+
export * as TransformationSteps from './src/models/http-flows/steps/transformation/index.js';
|
|
119
|
+
export * as DataSteps from './src/models/http-flows/steps/data/index.js';
|
|
120
|
+
export * from './src/models/http-flows/AssertionError.js';
|
|
121
121
|
export { VariablesProcessor } from './src/runtime/variables/VariablesProcessor.js';
|
|
122
122
|
export * from './src/runtime/node/InteropInterfaces.js';
|
|
123
123
|
export { PayloadPointer } from './src/data/PayloadPointer.js';
|
package/build/browser.js
CHANGED
|
@@ -105,22 +105,19 @@ export * as KnownGrants from './src/authorization/lib/KnownGrants.js';
|
|
|
105
105
|
export * as AuthorizationUtils from './src/authorization/lib/Utils.js';
|
|
106
106
|
export { SecurityProcessor } from './src/authorization/lib/SecurityProcessor.js';
|
|
107
107
|
//
|
|
108
|
-
// HTTP Flows
|
|
109
|
-
//
|
|
110
|
-
export * from './src/models/http-
|
|
111
|
-
export * from './src/models/http-
|
|
112
|
-
export * from './src/models/http-
|
|
113
|
-
export * from './src/models/http-
|
|
114
|
-
export * from './src/models/http-
|
|
115
|
-
export * from './src/models/http-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
export * from './src/models/http-
|
|
120
|
-
export *
|
|
121
|
-
export * as TransformationSteps from './src/models/http-actions/steps/transformation/index.js';
|
|
122
|
-
export * as DataSteps from './src/models/http-actions/steps/data/index.js';
|
|
123
|
-
export * from './src/models/http-actions/AssertionError.js';
|
|
108
|
+
// HTTP Flows & assertions
|
|
109
|
+
//
|
|
110
|
+
export * from './src/models/http-flows/steps/assertion/index.js';
|
|
111
|
+
export * from './src/models/http-flows/steps/data/index.js';
|
|
112
|
+
export * from './src/models/http-flows/steps/transformation/index.js';
|
|
113
|
+
export * from './src/models/http-flows/HttpFlows.js';
|
|
114
|
+
export * from './src/models/http-flows/HttpStep.js';
|
|
115
|
+
export * from './src/models/http-flows/LegacyTranslator.js';
|
|
116
|
+
export * from './src/models/http-flows/HttpAssertion.js';
|
|
117
|
+
export * as HttpAssertions from './src/models/http-flows/steps/assertion/index.js';
|
|
118
|
+
export * as TransformationSteps from './src/models/http-flows/steps/transformation/index.js';
|
|
119
|
+
export * as DataSteps from './src/models/http-flows/steps/data/index.js';
|
|
120
|
+
export * from './src/models/http-flows/AssertionError.js';
|
|
124
121
|
//
|
|
125
122
|
// Runtime
|
|
126
123
|
//
|
package/build/browser.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"browser.js","sourceRoot":"","sources":["../browser.ts"],"names":[],"mappings":"AAAA,wDAAwD;AAMxD,OAAO,EAAE,QAAQ,EAAa,IAAI,IAAI,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAErF,OAAO,EAAE,iBAAiB,EAAsB,MAAM,mCAAmC,CAAC;AAC1F,OAAO,EAAE,eAAe,EAAoB,IAAI,IAAI,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACjH,OAAO,EAAE,WAAW,EAA8L,IAAI,IAAI,eAAe,EAAE,MAAM,mCAAmC,CAAC;AACrR,OAAO,EAAE,WAAW,EAAgB,IAAI,IAAI,eAAe,EAAE,MAAM,6BAA6B,CAAC;AACjG,OAAO,EAAE,aAAa,EAAkB,MAAM,+BAA+B,CAAC;AAC9E,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAA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AAC;AACnD,OAAO,EAAE,QAAQ,EAAa,QAAQ,EAAa,MAAM,+BAA+B,CAAC;AACzF,OAAO,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AAEnE,GAAG;AACH,sBAAsB;AACtB,GAAG;AACH,OAAO,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AAE/D,GAAG;AACH,UAAU;AACV,GAAG;AACH,cAAc,8BAA8B,CAAC;AAE7C,EAAE;AACF,cAAc;AACd,EAAE;AACF,OAAO,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAC;AAEzE,GAAG;AACH,SAAS;AACT,GAAG;AACH,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACxD,cAAc,4BAA4B,CAAC;AA8B3C,GAAG;AACH,0BAA0B;AAC1B,GAAG;AACH,OAAO,EAAE,4BAA4B,EAAE,MAAM,2DAA2D,CAAC;AACzG,OAAO,EAAE,sBAAsB,EAAE,MAAM,qDAAqD,CAAC;AAC7F,OAAO,EAAE,mBAAmB,EAAE,MAAM,kDAAkD,CAAC"}
|
package/build/index.d.ts
CHANGED
|
@@ -106,17 +106,17 @@ export { Tokens as OidcTokens } from './src/authorization/lib/Tokens.js';
|
|
|
106
106
|
export * as KnownGrants from './src/authorization/lib/KnownGrants.js';
|
|
107
107
|
export * as AuthorizationUtils from './src/authorization/lib/Utils.js';
|
|
108
108
|
export { SecurityProcessor, IAuthApplyOptions } from './src/authorization/lib/SecurityProcessor.js';
|
|
109
|
-
export * from './src/models/http-
|
|
110
|
-
export * from './src/models/http-
|
|
111
|
-
export * from './src/models/http-
|
|
112
|
-
export * from './src/models/http-
|
|
113
|
-
export * from './src/models/http-
|
|
114
|
-
export * from './src/models/http-
|
|
115
|
-
export * from './src/models/http-
|
|
116
|
-
export * as HttpAssertions from './src/models/http-
|
|
117
|
-
export * as TransformationSteps from './src/models/http-
|
|
118
|
-
export * as DataSteps from './src/models/http-
|
|
119
|
-
export * from './src/models/http-
|
|
109
|
+
export * from './src/models/http-flows/steps/assertion/index.js';
|
|
110
|
+
export * from './src/models/http-flows/steps/data/index.js';
|
|
111
|
+
export * from './src/models/http-flows/steps/transformation/index.js';
|
|
112
|
+
export * from './src/models/http-flows/HttpFlows.js';
|
|
113
|
+
export * from './src/models/http-flows/HttpStep.js';
|
|
114
|
+
export * from './src/models/http-flows/LegacyTranslator.js';
|
|
115
|
+
export * from './src/models/http-flows/HttpAssertion.js';
|
|
116
|
+
export * as HttpAssertions from './src/models/http-flows/steps/assertion/index.js';
|
|
117
|
+
export * as TransformationSteps from './src/models/http-flows/steps/transformation/index.js';
|
|
118
|
+
export * as DataSteps from './src/models/http-flows/steps/data/index.js';
|
|
119
|
+
export * from './src/models/http-flows/AssertionError.js';
|
|
120
120
|
export { VariablesProcessor } from './src/runtime/variables/VariablesProcessor.js';
|
|
121
121
|
export { ProjectRequestRunner } from './src/runtime/node/ProjectRequestRunner.js';
|
|
122
122
|
export { HttpRequestRunner } from './src/runtime/http-runner/HttpRequestRunner.js';
|
package/build/index.js
CHANGED
|
@@ -104,22 +104,19 @@ export * as KnownGrants from './src/authorization/lib/KnownGrants.js';
|
|
|
104
104
|
export * as AuthorizationUtils from './src/authorization/lib/Utils.js';
|
|
105
105
|
export { SecurityProcessor } from './src/authorization/lib/SecurityProcessor.js';
|
|
106
106
|
//
|
|
107
|
-
// HTTP Flows
|
|
108
|
-
//
|
|
109
|
-
export * from './src/models/http-
|
|
110
|
-
export * from './src/models/http-
|
|
111
|
-
export * from './src/models/http-
|
|
112
|
-
export * from './src/models/http-
|
|
113
|
-
export * from './src/models/http-
|
|
114
|
-
export * from './src/models/http-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
export * from './src/models/http-
|
|
119
|
-
export *
|
|
120
|
-
export * as TransformationSteps from './src/models/http-actions/steps/transformation/index.js';
|
|
121
|
-
export * as DataSteps from './src/models/http-actions/steps/data/index.js';
|
|
122
|
-
export * from './src/models/http-actions/AssertionError.js';
|
|
107
|
+
// HTTP Flows & assertions
|
|
108
|
+
//
|
|
109
|
+
export * from './src/models/http-flows/steps/assertion/index.js';
|
|
110
|
+
export * from './src/models/http-flows/steps/data/index.js';
|
|
111
|
+
export * from './src/models/http-flows/steps/transformation/index.js';
|
|
112
|
+
export * from './src/models/http-flows/HttpFlows.js';
|
|
113
|
+
export * from './src/models/http-flows/HttpStep.js';
|
|
114
|
+
export * from './src/models/http-flows/LegacyTranslator.js';
|
|
115
|
+
export * from './src/models/http-flows/HttpAssertion.js';
|
|
116
|
+
export * as HttpAssertions from './src/models/http-flows/steps/assertion/index.js';
|
|
117
|
+
export * as TransformationSteps from './src/models/http-flows/steps/transformation/index.js';
|
|
118
|
+
export * as DataSteps from './src/models/http-flows/steps/data/index.js';
|
|
119
|
+
export * from './src/models/http-flows/AssertionError.js';
|
|
123
120
|
//
|
|
124
121
|
// Runtime
|
|
125
122
|
//
|
package/build/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,2DAA2D;AAM3D,OAAO,EAAE,QAAQ,EAAa,IAAI,IAAI,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAErF,OAAO,EAAE,iBAAiB,EAAsB,MAAM,mCAAmC,CAAC;AAC1F,OAAO,EAAE,eAAe,EAAoB,IAAI,IAAI,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACjH,OAAO,EAAE,WAAW,EAA8L,IAAI,IAAI,eAAe,EAAE,MAAM,mCAAmC,CAAC;AACrR,OAAO,EAAE,WAAW,EAAgB,IAAI,IAAI,eAAe,EAAE,MAAM,6BAA6B,CAAC;AACjG,OAAO,EAAE,aAAa,EAAkB,MAAM,+BAA+B,CAAC;AAC9E,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAa,QAAQ,EAAE,IA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O,EAAgB,OAAO,IAAI,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AACzE,OAAO,EAAqD,OAAO,IAAI,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACjI,OAAO,EAAqB,OAAO,IAAI,YAAY,EAAE,MAAM,6BAA6B,CAAC;AACzF,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,6BAA6B,CAAC"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { IHttpRequest, HttpRequest } from '../models/HttpRequest.js';
|
|
2
|
+
import { ISentRequest, SentRequest } from '../models/SentRequest.js';
|
|
3
|
+
import { IHttpResponse, HttpResponse } from '../models/HttpResponse.js';
|
|
4
|
+
import { IErrorResponse, ErrorResponse } from '../models/ErrorResponse.js';
|
|
5
|
+
type DataInput = HttpRequest | SentRequest | IHttpRequest | ISentRequest | IHttpResponse | HttpResponse | IErrorResponse | ErrorResponse | undefined;
|
|
6
|
+
/**
|
|
7
|
+
* This is a factory class for the `RequestDataExtractor`.
|
|
8
|
+
*/
|
|
9
|
+
export declare class DataExtractor {
|
|
10
|
+
/**
|
|
11
|
+
* Reads the value of a cookie.
|
|
12
|
+
* @param name The name of the cookie to read.
|
|
13
|
+
* @param input The response object.
|
|
14
|
+
*/
|
|
15
|
+
static readCookieValue(name: string, input: IHttpResponse | HttpResponse | IErrorResponse | ErrorResponse | undefined): string | undefined;
|
|
16
|
+
static readHeaders(obj: DataInput): string;
|
|
17
|
+
/**
|
|
18
|
+
* Reads value from the body.
|
|
19
|
+
* @param value The read body value as string
|
|
20
|
+
* @param mime The body mime
|
|
21
|
+
* @param path THe path to read.
|
|
22
|
+
* @returns The extracted value.
|
|
23
|
+
*/
|
|
24
|
+
static extractBody(value: string, mime: string, path: string): Promise<string | undefined>;
|
|
25
|
+
/**
|
|
26
|
+
* Returns the value for path for given source object
|
|
27
|
+
*
|
|
28
|
+
* @param url An url to parse.
|
|
29
|
+
* @param path Path to the data
|
|
30
|
+
* @return Value for the path.
|
|
31
|
+
*/
|
|
32
|
+
static getDataUrl(url: string, path: string[]): string | number | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* Reads value of the URL query parameters.
|
|
35
|
+
*
|
|
36
|
+
* The `?` at the beginning of the query string is removed.
|
|
37
|
+
*
|
|
38
|
+
* @param url The URL object instance
|
|
39
|
+
* @param param Param name to return. If not set then it returns whole query string value.
|
|
40
|
+
* @return Full query string value if `param` is not set or parameter
|
|
41
|
+
* value. This function does not returns `null` values.
|
|
42
|
+
*/
|
|
43
|
+
static readUrlQueryValue(url: URL, param?: string): string | null;
|
|
44
|
+
/**
|
|
45
|
+
* Reads value of the URL hash.
|
|
46
|
+
*
|
|
47
|
+
* The `#` at the beginning of the hash string is removed.
|
|
48
|
+
*
|
|
49
|
+
* If the `param` argument is set then it treats hahs value as a query
|
|
50
|
+
* parameters string and parses it to get the value.
|
|
51
|
+
*
|
|
52
|
+
* @param url The URL object instance
|
|
53
|
+
* @param param Param name to return. If not set then it returns whole hash string value.
|
|
54
|
+
* @return Hash parameter or whole hash value.
|
|
55
|
+
*/
|
|
56
|
+
static readUrlHashValue(url: URL, param?: string): string | undefined;
|
|
57
|
+
/**
|
|
58
|
+
* Returns a value for the headers.
|
|
59
|
+
*
|
|
60
|
+
* @param source HTTP headers string
|
|
61
|
+
* @param path The path to the object
|
|
62
|
+
* @returns The value for the path.
|
|
63
|
+
*/
|
|
64
|
+
static getDataHeaders(source: string, path: string[]): string | undefined;
|
|
65
|
+
}
|
|
66
|
+
export {};
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
import { Headers } from '../lib/headers/Headers.js';
|
|
2
|
+
import { JmespathReader } from './JmespathReader.js';
|
|
3
|
+
import { XmlReader } from './XmlReader.js';
|
|
4
|
+
import { UrlEncodedReader } from './UrlEncodedReader.js';
|
|
5
|
+
import { CookieParser } from '../cookies/CookieParser.js';
|
|
6
|
+
/**
|
|
7
|
+
* This is a factory class for the `RequestDataExtractor`.
|
|
8
|
+
*/
|
|
9
|
+
export class DataExtractor {
|
|
10
|
+
/**
|
|
11
|
+
* Reads the value of a cookie.
|
|
12
|
+
* @param name The name of the cookie to read.
|
|
13
|
+
* @param input The response object.
|
|
14
|
+
*/
|
|
15
|
+
static readCookieValue(name, input) {
|
|
16
|
+
const headers = this.readHeaders(input);
|
|
17
|
+
if (!headers) {
|
|
18
|
+
return undefined;
|
|
19
|
+
}
|
|
20
|
+
const parsed = new Headers(headers);
|
|
21
|
+
const header = parsed.get('set-cookie');
|
|
22
|
+
if (!header) {
|
|
23
|
+
return undefined;
|
|
24
|
+
}
|
|
25
|
+
const cookies = CookieParser.parseRelaxed(header);
|
|
26
|
+
const cookie = cookies.find(i => i.name === name);
|
|
27
|
+
if (cookie) {
|
|
28
|
+
return cookie.value;
|
|
29
|
+
}
|
|
30
|
+
return undefined;
|
|
31
|
+
}
|
|
32
|
+
static readHeaders(obj) {
|
|
33
|
+
if (!obj) {
|
|
34
|
+
return '';
|
|
35
|
+
}
|
|
36
|
+
const typedInstance = obj;
|
|
37
|
+
if (typedInstance.headersModel && typeof typedInstance.headersModel.toRawString === 'function') {
|
|
38
|
+
return typedInstance.headersModel.toString();
|
|
39
|
+
}
|
|
40
|
+
const typedSchema = obj;
|
|
41
|
+
if (Array.isArray(typedSchema.headersModel)) {
|
|
42
|
+
const headers = Headers.fromPropertyArray(typedSchema.headersModel);
|
|
43
|
+
return headers.toString();
|
|
44
|
+
}
|
|
45
|
+
return obj.headers || '';
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Reads value from the body.
|
|
49
|
+
* @param value The read body value as string
|
|
50
|
+
* @param mime The body mime
|
|
51
|
+
* @param path THe path to read.
|
|
52
|
+
* @returns The extracted value.
|
|
53
|
+
*/
|
|
54
|
+
static async extractBody(value, mime, path) {
|
|
55
|
+
let reader;
|
|
56
|
+
if (mime.includes('json')) {
|
|
57
|
+
// reader = new JsonReader();
|
|
58
|
+
reader = new JmespathReader();
|
|
59
|
+
}
|
|
60
|
+
else if (mime.includes('xml')) {
|
|
61
|
+
reader = new XmlReader();
|
|
62
|
+
}
|
|
63
|
+
else if (mime.includes('x-www-form-urlencoded')) {
|
|
64
|
+
reader = new UrlEncodedReader();
|
|
65
|
+
}
|
|
66
|
+
if (!reader) {
|
|
67
|
+
return undefined;
|
|
68
|
+
}
|
|
69
|
+
await reader.writePayload(value);
|
|
70
|
+
return reader.getValue(path);
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Returns the value for path for given source object
|
|
74
|
+
*
|
|
75
|
+
* @param url An url to parse.
|
|
76
|
+
* @param path Path to the data
|
|
77
|
+
* @return Value for the path.
|
|
78
|
+
*/
|
|
79
|
+
static getDataUrl(url, path) {
|
|
80
|
+
if (!path || path.length === 0 || !url) {
|
|
81
|
+
return url;
|
|
82
|
+
}
|
|
83
|
+
let value;
|
|
84
|
+
try {
|
|
85
|
+
value = new URL(url);
|
|
86
|
+
}
|
|
87
|
+
catch (e) {
|
|
88
|
+
//
|
|
89
|
+
}
|
|
90
|
+
if (!value) {
|
|
91
|
+
return undefined;
|
|
92
|
+
}
|
|
93
|
+
switch (path[0]) {
|
|
94
|
+
case 'host':
|
|
95
|
+
return value.host;
|
|
96
|
+
case 'protocol':
|
|
97
|
+
return value.protocol;
|
|
98
|
+
case 'path':
|
|
99
|
+
return value.pathname;
|
|
100
|
+
case 'query':
|
|
101
|
+
return DataExtractor.readUrlQueryValue(value, path[1]) || undefined;
|
|
102
|
+
case 'hash':
|
|
103
|
+
return DataExtractor.readUrlHashValue(value, path[1]) || undefined;
|
|
104
|
+
default:
|
|
105
|
+
throw new Error(`Unknown path in the URL: ${path}`);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Reads value of the URL query parameters.
|
|
110
|
+
*
|
|
111
|
+
* The `?` at the beginning of the query string is removed.
|
|
112
|
+
*
|
|
113
|
+
* @param url The URL object instance
|
|
114
|
+
* @param param Param name to return. If not set then it returns whole query string value.
|
|
115
|
+
* @return Full query string value if `param` is not set or parameter
|
|
116
|
+
* value. This function does not returns `null` values.
|
|
117
|
+
*/
|
|
118
|
+
static readUrlQueryValue(url, param) {
|
|
119
|
+
if (!param) {
|
|
120
|
+
let v = url.search || '';
|
|
121
|
+
if (v[0] === '?') {
|
|
122
|
+
v = v.substring(1);
|
|
123
|
+
}
|
|
124
|
+
return v;
|
|
125
|
+
}
|
|
126
|
+
let value = url.searchParams.get(param);
|
|
127
|
+
if (!value && value !== '') {
|
|
128
|
+
value = null;
|
|
129
|
+
}
|
|
130
|
+
return value;
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* Reads value of the URL hash.
|
|
134
|
+
*
|
|
135
|
+
* The `#` at the beginning of the hash string is removed.
|
|
136
|
+
*
|
|
137
|
+
* If the `param` argument is set then it treats hahs value as a query
|
|
138
|
+
* parameters string and parses it to get the value.
|
|
139
|
+
*
|
|
140
|
+
* @param url The URL object instance
|
|
141
|
+
* @param param Param name to return. If not set then it returns whole hash string value.
|
|
142
|
+
* @return Hash parameter or whole hash value.
|
|
143
|
+
*/
|
|
144
|
+
static readUrlHashValue(url, param) {
|
|
145
|
+
let value = (url.hash || '').substring(1);
|
|
146
|
+
if (!param) {
|
|
147
|
+
return value;
|
|
148
|
+
}
|
|
149
|
+
const obj = new URLSearchParams(value);
|
|
150
|
+
value = obj.get(param) || undefined;
|
|
151
|
+
if (!value && value !== '') {
|
|
152
|
+
value = undefined;
|
|
153
|
+
}
|
|
154
|
+
return value;
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* Returns a value for the headers.
|
|
158
|
+
*
|
|
159
|
+
* @param source HTTP headers string
|
|
160
|
+
* @param path The path to the object
|
|
161
|
+
* @returns The value for the path.
|
|
162
|
+
*/
|
|
163
|
+
static getDataHeaders(source, path) {
|
|
164
|
+
if (!path || !path.length || !path[0]) {
|
|
165
|
+
return source;
|
|
166
|
+
}
|
|
167
|
+
const headers = new Headers(source);
|
|
168
|
+
const lowerName = path[0].toLowerCase();
|
|
169
|
+
for (const [name, value] of headers) {
|
|
170
|
+
if (name.toLowerCase() === lowerName) {
|
|
171
|
+
return value;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
return undefined;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
//# sourceMappingURL=DataExtractor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataExtractor.js","sourceRoot":"","sources":["../../../src/data/DataExtractor.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AAEpD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAI1D;;GAEG;AACH,MAAM,OAAO,aAAa;IACxB;;;;OAIG;IACH,MAAM,CAAC,eAAe,CAAC,IAAY,EAAE,KAAgF;QACnH,MAAM,OAAO,GAAG,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;QACxC,IAAI,CAAC,OAAO,EAAE;YACZ,OAAO,SAAS,CAAC;SAClB;QACD,MAAM,MAAM,GAAG,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;QACpC,MAAM,MAAM,GAAG,MAAM,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;QACxC,IAAI,CAAC,MAAM,EAAE;YACX,OAAO,SAAS,CAAC;SAClB;QACD,MAAM,OAAO,GAAG,YAAY,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;QAClD,MAAM,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC;QAClD,IAAI,MAAM,EAAE;YACV,OAAO,MAAM,CAAC,KAAK,CAAC;SACrB;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, HttpRequest } from '../models/HttpRequest.js';
|
|
|
2
2
|
import { ISentRequest, SentRequest } from '../models/SentRequest.js';
|
|
3
3
|
import { IHttpResponse, HttpResponse } from '../models/HttpResponse.js';
|
|
4
4
|
import { IErrorResponse, ErrorResponse } from '../models/ErrorResponse.js';
|
|
5
|
-
import { FlowRequestDataEnum, FlowResponseDataEnum, FlowSourceEnum } from '../models/http-
|
|
5
|
+
import { FlowRequestDataEnum, FlowResponseDataEnum, FlowSourceEnum } from '../models/http-flows/HttpFlows.js';
|
|
6
6
|
/**
|
|
7
7
|
* A class to extract data from the request or the response.
|
|
8
8
|
*/
|
|
@@ -41,5 +41,8 @@ export declare class RequestDataExtractor {
|
|
|
41
41
|
* @returns The headers from the request / response
|
|
42
42
|
*/
|
|
43
43
|
getBody(source?: FlowSourceEnum): Promise<string | undefined>;
|
|
44
|
+
/**
|
|
45
|
+
* @deprecated Use `DataExtractor.extractBody()` instead.
|
|
46
|
+
*/
|
|
44
47
|
extractBody(value: string, mime: string, path: string): Promise<string | undefined>;
|
|
45
48
|
}
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
import * as DataUtils from './DataUtils.js';
|
|
2
1
|
import { HttpRequest } from '../models/HttpRequest.js';
|
|
3
2
|
import { HttpResponse } from '../models/HttpResponse.js';
|
|
4
3
|
import { ErrorResponse } from '../models/ErrorResponse.js';
|
|
5
4
|
import { Headers } from '../lib/headers/Headers.js';
|
|
6
|
-
import {
|
|
7
|
-
import { XmlReader } from './XmlReader.js';
|
|
8
|
-
import { UrlEncodedReader } from './UrlEncodedReader.js';
|
|
5
|
+
import { DataExtractor } from './DataExtractor.js';
|
|
9
6
|
/**
|
|
10
7
|
* A class to extract data from the request or the response.
|
|
11
8
|
*/
|
|
@@ -41,15 +38,19 @@ export class RequestDataExtractor {
|
|
|
41
38
|
const args = path ? path.split('.') : [];
|
|
42
39
|
switch (data) {
|
|
43
40
|
case 'url':
|
|
44
|
-
return
|
|
41
|
+
return DataExtractor.getDataUrl(this.getUrl(), args);
|
|
45
42
|
case 'headers':
|
|
46
|
-
return
|
|
43
|
+
return DataExtractor.getDataHeaders(this.getHeaders(source), args);
|
|
47
44
|
case 'status':
|
|
48
45
|
return this.response && this.response.status;
|
|
46
|
+
case 'statusText':
|
|
47
|
+
return this.response && this.response.statusText;
|
|
49
48
|
case 'method':
|
|
50
49
|
return this.request.method;
|
|
51
50
|
case 'body':
|
|
52
51
|
return this.processBody(path, source);
|
|
52
|
+
case 'cookie':
|
|
53
|
+
return DataExtractor.readCookieValue(args[0], this.response);
|
|
53
54
|
default:
|
|
54
55
|
throw new Error(`Unknown data ${data} for ${source} data`);
|
|
55
56
|
}
|
|
@@ -66,10 +67,7 @@ export class RequestDataExtractor {
|
|
|
66
67
|
* @returns The headers from the request / response
|
|
67
68
|
*/
|
|
68
69
|
getHeaders(source) {
|
|
69
|
-
|
|
70
|
-
return this.request.headers || '';
|
|
71
|
-
}
|
|
72
|
-
return this.response && this.response.headers || '';
|
|
70
|
+
return DataExtractor.readHeaders(source === 'request' ? this.request : this.response);
|
|
73
71
|
}
|
|
74
72
|
async processBody(path, source) {
|
|
75
73
|
const value = await this.getBody(source);
|
|
@@ -88,7 +86,7 @@ export class RequestDataExtractor {
|
|
|
88
86
|
if (!mime) {
|
|
89
87
|
return undefined;
|
|
90
88
|
}
|
|
91
|
-
return
|
|
89
|
+
return DataExtractor.extractBody(value, mime, path);
|
|
92
90
|
}
|
|
93
91
|
/**
|
|
94
92
|
* @param source The source name
|
|
@@ -103,22 +101,11 @@ export class RequestDataExtractor {
|
|
|
103
101
|
}
|
|
104
102
|
return undefined;
|
|
105
103
|
}
|
|
104
|
+
/**
|
|
105
|
+
* @deprecated Use `DataExtractor.extractBody()` instead.
|
|
106
|
+
*/
|
|
106
107
|
async extractBody(value, mime, path) {
|
|
107
|
-
|
|
108
|
-
if (mime.includes('json')) {
|
|
109
|
-
reader = new JsonReader();
|
|
110
|
-
}
|
|
111
|
-
else if (mime.includes('xml')) {
|
|
112
|
-
reader = new XmlReader();
|
|
113
|
-
}
|
|
114
|
-
else if (mime.includes('x-www-form-urlencoded')) {
|
|
115
|
-
reader = new UrlEncodedReader();
|
|
116
|
-
}
|
|
117
|
-
if (!reader) {
|
|
118
|
-
return undefined;
|
|
119
|
-
}
|
|
120
|
-
await reader.writePayload(value);
|
|
121
|
-
return reader.getValue(path);
|
|
108
|
+
return DataExtractor.extractBody(value, mime, path);
|
|
122
109
|
}
|
|
123
110
|
}
|
|
124
111
|
//# sourceMappingURL=RequestDataExtractor.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestDataExtractor.js","sourceRoot":"","sources":["../../../src/data/RequestDataExtractor.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"RequestDataExtractor.js","sourceRoot":"","sources":["../../../src/data/RequestDataExtractor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAErE,OAAO,EAAiB,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACxE,OAAO,EAAkB,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAE3E,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD;;GAEG;AACH,MAAM,OAAO,oBAAoB;IAC/B;;OAEG;IACH,OAAO,CAA4B;IAEnC;;OAEG;IACH,QAAQ,CAAgC;IAExC,YAAY,OAAoC,EAAE,QAAyC;QACzF,IAAI,CAAC,OAAO,GAAG,IAAI,WAAW,CAAC,OAAO,CAAC,CAAC;QACxC,IAAI,QAAQ,EAAE;YACZ,IAAI,aAAa,CAAC,eAAe,CAAC,QAAQ,CAAC,EAAE;gBAC3C,IAAI,CAAC,QAAQ,GAAG,IAAI,aAAa,CAAC,QAA0B,CAAC,CAAC;aAC/D;iBAAM;gBACL,IAAI,CAAC,QAAQ,GAAG,IAAI,YAAY,CAA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ored array view.
|
|
6
6
|
*/
|
|
7
|
-
export declare function base64ToBuffer(str: string): Uint8Array;
|
|
7
|
+
export declare function base64ToBuffer(str: string): Uint8Array | Buffer;
|
|
8
8
|
/**
|
|
9
9
|
* Converts incoming data to base64 string.
|
|
10
10
|
*
|
|
11
11
|
* @returns Safe to store string.
|
|
12
12
|
*/
|
|
13
|
-
export declare function bufferToBase64(view: Buffer | Uint8Array): string;
|
|
13
|
+
export declare function bufferToBase64(view: Buffer | ArrayBuffer | Uint8Array): string;
|
|
14
14
|
/**
|
|
15
15
|
* Reads file as ArrayBuffer
|
|
16
16
|
*/
|