@api-client/core 0.9.22 → 0.9.23

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.
Files changed (225) hide show
  1. package/build/browser.d.ts +11 -11
  2. package/build/browser.js +13 -16
  3. package/build/browser.js.map +1 -1
  4. package/build/index.d.ts +11 -11
  5. package/build/index.js +13 -16
  6. package/build/index.js.map +1 -1
  7. package/build/src/data/DataExtractor.d.ts +66 -0
  8. package/build/src/data/DataExtractor.js +177 -0
  9. package/build/src/data/DataExtractor.js.map +1 -0
  10. package/build/src/data/RequestDataExtractor.d.ts +4 -1
  11. package/build/src/data/RequestDataExtractor.js +13 -26
  12. package/build/src/data/RequestDataExtractor.js.map +1 -1
  13. package/build/src/models/Request.d.ts +2 -2
  14. package/build/src/models/Request.js +1 -1
  15. package/build/src/models/Request.js.map +1 -1
  16. package/build/src/models/RequestLog.d.ts +1 -1
  17. package/build/src/models/{http-actions → http-flows}/AssertionError.d.ts +0 -0
  18. package/build/src/models/{http-actions → http-flows}/AssertionError.js +0 -0
  19. package/build/src/models/http-flows/AssertionError.js.map +1 -0
  20. package/build/src/models/{http-actions → http-flows}/HttpAssertion.d.ts +0 -0
  21. package/build/src/models/{http-actions → http-flows}/HttpAssertion.js +0 -0
  22. package/build/src/models/http-flows/HttpAssertion.js.map +1 -0
  23. package/build/src/models/{http-actions → http-flows}/HttpFlows.d.ts +5 -38
  24. package/build/src/models/{http-actions → http-flows}/HttpFlows.js +4 -0
  25. package/build/src/models/http-flows/HttpFlows.js.map +1 -0
  26. package/build/src/models/{http-actions → http-flows}/HttpStep.d.ts +0 -0
  27. package/build/src/models/{http-actions → http-flows}/HttpStep.js +0 -0
  28. package/build/src/models/http-flows/HttpStep.js.map +1 -0
  29. package/build/src/models/{http-actions → http-flows}/LegacyTranslator.d.ts +2 -2
  30. package/build/src/models/{http-actions → http-flows}/LegacyTranslator.js +92 -46
  31. package/build/src/models/http-flows/LegacyTranslator.js.map +1 -0
  32. package/build/src/models/{http-actions → http-flows}/steps/assertion/EqualAssertion.d.ts +0 -0
  33. package/build/src/models/{http-actions → http-flows}/steps/assertion/EqualAssertion.js +0 -0
  34. package/build/src/models/http-flows/steps/assertion/EqualAssertion.js.map +1 -0
  35. package/build/src/models/{http-actions → http-flows}/steps/assertion/GreaterThanAssertion.d.ts +0 -0
  36. package/build/src/models/{http-actions → http-flows}/steps/assertion/GreaterThanAssertion.js +0 -0
  37. package/build/src/models/http-flows/steps/assertion/GreaterThanAssertion.js.map +1 -0
  38. package/build/src/models/{http-actions → http-flows}/steps/assertion/IncludesAssertion.d.ts +0 -0
  39. package/build/src/models/{http-actions → http-flows}/steps/assertion/IncludesAssertion.js +0 -0
  40. package/build/src/models/http-flows/steps/assertion/IncludesAssertion.js.map +1 -0
  41. package/build/src/models/{http-actions → http-flows}/steps/assertion/IsEmptyAssertion.d.ts +0 -0
  42. package/build/src/models/{http-actions → http-flows}/steps/assertion/IsEmptyAssertion.js +0 -0
  43. package/build/src/models/http-flows/steps/assertion/IsEmptyAssertion.js.map +1 -0
  44. package/build/src/models/{http-actions → http-flows}/steps/assertion/IsNotEmptyAssertion.d.ts +0 -0
  45. package/build/src/models/{http-actions → http-flows}/steps/assertion/IsNotEmptyAssertion.js +0 -0
  46. package/build/src/models/http-flows/steps/assertion/IsNotEmptyAssertion.js.map +1 -0
  47. package/build/src/models/{http-actions → http-flows}/steps/assertion/LengthOfAssertion.d.ts +0 -0
  48. package/build/src/models/{http-actions → http-flows}/steps/assertion/LengthOfAssertion.js +0 -0
  49. package/build/src/models/http-flows/steps/assertion/LengthOfAssertion.js.map +1 -0
  50. package/build/src/models/{http-actions → http-flows}/steps/assertion/LessThanAssertion.d.ts +0 -0
  51. package/build/src/models/{http-actions → http-flows}/steps/assertion/LessThanAssertion.js +0 -0
  52. package/build/src/models/http-flows/steps/assertion/LessThanAssertion.js.map +1 -0
  53. package/build/src/models/{http-actions → http-flows}/steps/assertion/MatchesAssertion.d.ts +0 -0
  54. package/build/src/models/{http-actions → http-flows}/steps/assertion/MatchesAssertion.js +0 -0
  55. package/build/src/models/http-flows/steps/assertion/MatchesAssertion.js.map +1 -0
  56. package/build/src/models/{http-actions → http-flows}/steps/assertion/MatchesSchemaAssertion.d.ts +0 -0
  57. package/build/src/models/{http-actions → http-flows}/steps/assertion/MatchesSchemaAssertion.js +0 -0
  58. package/build/src/models/http-flows/steps/assertion/MatchesSchemaAssertion.js.map +1 -0
  59. package/build/src/models/{http-actions → http-flows}/steps/assertion/NotEqualAssertion.d.ts +0 -0
  60. package/build/src/models/{http-actions → http-flows}/steps/assertion/NotEqualAssertion.js +0 -0
  61. package/build/src/models/http-flows/steps/assertion/NotEqualAssertion.js.map +1 -0
  62. package/build/src/models/{http-actions → http-flows}/steps/assertion/NotIncludesAssertion.d.ts +0 -0
  63. package/build/src/models/{http-actions → http-flows}/steps/assertion/NotIncludesAssertion.js +0 -0
  64. package/build/src/models/http-flows/steps/assertion/NotIncludesAssertion.js.map +1 -0
  65. package/build/src/models/{http-actions → http-flows}/steps/assertion/NotOkAssertion.d.ts +0 -0
  66. package/build/src/models/{http-actions → http-flows}/steps/assertion/NotOkAssertion.js +0 -0
  67. package/build/src/models/http-flows/steps/assertion/NotOkAssertion.js.map +1 -0
  68. package/build/src/models/{http-actions → http-flows}/steps/assertion/NotToBeAssertion.d.ts +0 -0
  69. package/build/src/models/{http-actions → http-flows}/steps/assertion/NotToBeAssertion.js +0 -0
  70. package/build/src/models/http-flows/steps/assertion/NotToBeAssertion.js.map +1 -0
  71. package/build/src/models/{http-actions → http-flows}/steps/assertion/OkAssertion.d.ts +0 -0
  72. package/build/src/models/{http-actions → http-flows}/steps/assertion/OkAssertion.js +0 -0
  73. package/build/src/models/http-flows/steps/assertion/OkAssertion.js.map +1 -0
  74. package/build/src/models/{http-actions → http-flows}/steps/assertion/ToBeAssertion.d.ts +0 -0
  75. package/build/src/models/{http-actions → http-flows}/steps/assertion/ToBeAssertion.js +0 -0
  76. package/build/src/models/http-flows/steps/assertion/ToBeAssertion.js.map +1 -0
  77. package/build/src/models/{http-actions → http-flows}/steps/assertion/index.d.ts +0 -0
  78. package/build/src/models/{http-actions → http-flows}/steps/assertion/index.js +0 -0
  79. package/build/src/models/http-flows/steps/assertion/index.js.map +1 -0
  80. package/build/src/models/{http-actions → http-flows}/steps/data/DeleteCookieStep.d.ts +5 -1
  81. package/build/src/models/{http-actions → http-flows}/steps/data/DeleteCookieStep.js +6 -1
  82. package/build/src/models/http-flows/steps/data/DeleteCookieStep.js.map +1 -0
  83. package/build/src/models/http-flows/steps/data/DeleteVariableStep.d.ts +36 -0
  84. package/build/src/models/http-flows/steps/data/DeleteVariableStep.js +44 -0
  85. package/build/src/models/http-flows/steps/data/DeleteVariableStep.js.map +1 -0
  86. package/build/src/models/{http-actions → http-flows}/steps/data/ReadDataSourceStep.d.ts +0 -0
  87. package/build/src/models/{http-actions → http-flows}/steps/data/ReadDataSourceStep.js +0 -0
  88. package/build/src/models/http-flows/steps/data/ReadDataSourceStep.js.map +1 -0
  89. package/build/src/models/{http-actions → http-flows}/steps/data/ReadDataStep.d.ts +0 -0
  90. package/build/src/models/{http-actions → http-flows}/steps/data/ReadDataStep.js +0 -0
  91. package/build/src/models/http-flows/steps/data/ReadDataStep.js.map +1 -0
  92. package/build/src/models/{http-actions → http-flows}/steps/data/ReadValueStep.d.ts +0 -0
  93. package/build/src/models/{http-actions → http-flows}/steps/data/ReadValueStep.js +0 -0
  94. package/build/src/models/http-flows/steps/data/ReadValueStep.js.map +1 -0
  95. package/build/src/models/{http-actions → http-flows}/steps/data/SetCookieStep.d.ts +2 -1
  96. package/build/src/models/{http-actions → http-flows}/steps/data/SetCookieStep.js +2 -1
  97. package/build/src/models/http-flows/steps/data/SetCookieStep.js.map +1 -0
  98. package/build/src/models/{http-actions → http-flows}/steps/data/SetDataStep.d.ts +0 -0
  99. package/build/src/models/{http-actions → http-flows}/steps/data/SetDataStep.js +0 -0
  100. package/build/src/models/http-flows/steps/data/SetDataStep.js.map +1 -0
  101. package/build/src/models/{http-actions → http-flows}/steps/data/SetVariableStep.d.ts +0 -0
  102. package/build/src/models/{http-actions → http-flows}/steps/data/SetVariableStep.js +0 -0
  103. package/build/src/models/http-flows/steps/data/SetVariableStep.js.map +1 -0
  104. package/build/src/models/{http-actions → http-flows}/steps/data/index.d.ts +1 -0
  105. package/build/src/models/{http-actions → http-flows}/steps/data/index.js +1 -0
  106. package/build/src/models/http-flows/steps/data/index.js.map +1 -0
  107. package/build/src/models/{http-actions → http-flows}/steps/transformation/AsLowerCaseStep.d.ts +0 -0
  108. package/build/src/models/{http-actions → http-flows}/steps/transformation/AsLowerCaseStep.js +0 -0
  109. package/build/src/models/http-flows/steps/transformation/AsLowerCaseStep.js.map +1 -0
  110. package/build/src/models/{http-actions → http-flows}/steps/transformation/AsNumberStep.d.ts +0 -0
  111. package/build/src/models/{http-actions → http-flows}/steps/transformation/AsNumberStep.js +0 -0
  112. package/build/src/models/http-flows/steps/transformation/AsNumberStep.js.map +1 -0
  113. package/build/src/models/{http-actions → http-flows}/steps/transformation/AsUpperCaseStep.d.ts +0 -0
  114. package/build/src/models/{http-actions → http-flows}/steps/transformation/AsUpperCaseStep.js +0 -0
  115. package/build/src/models/http-flows/steps/transformation/AsUpperCaseStep.js.map +1 -0
  116. package/build/src/models/{http-actions → http-flows}/steps/transformation/RoundStep.d.ts +0 -0
  117. package/build/src/models/{http-actions → http-flows}/steps/transformation/RoundStep.js +0 -0
  118. package/build/src/models/http-flows/steps/transformation/RoundStep.js.map +1 -0
  119. package/build/src/models/{http-actions → http-flows}/steps/transformation/SubstringStep.d.ts +0 -0
  120. package/build/src/models/{http-actions → http-flows}/steps/transformation/SubstringStep.js +0 -0
  121. package/build/src/models/http-flows/steps/transformation/SubstringStep.js.map +1 -0
  122. package/build/src/models/{http-actions → http-flows}/steps/transformation/TrimStep.d.ts +0 -0
  123. package/build/src/models/{http-actions → http-flows}/steps/transformation/TrimStep.js +0 -0
  124. package/build/src/models/http-flows/steps/transformation/TrimStep.js.map +1 -0
  125. package/build/src/models/{http-actions → http-flows}/steps/transformation/index.d.ts +0 -0
  126. package/build/src/models/{http-actions → http-flows}/steps/transformation/index.js +0 -0
  127. package/build/src/models/http-flows/steps/transformation/index.js.map +1 -0
  128. package/build/src/proxy/RequestProxy.d.ts +2 -2
  129. package/build/src/proxy/RequestProxy.js.map +1 -1
  130. package/build/src/runtime/http-runner/ConditionCheck.d.ts +1 -1
  131. package/build/src/runtime/http-runner/HttpAssertionRunner.d.ts +7 -57
  132. package/build/src/runtime/http-runner/HttpAssertionRunner.js +24 -382
  133. package/build/src/runtime/http-runner/HttpAssertionRunner.js.map +1 -1
  134. package/build/src/runtime/http-runner/HttpFlowRunner.d.ts +10 -57
  135. package/build/src/runtime/http-runner/HttpFlowRunner.js +45 -203
  136. package/build/src/runtime/http-runner/HttpFlowRunner.js.map +1 -1
  137. package/build/src/runtime/http-runner/HttpFlows.d.ts +119 -0
  138. package/build/src/runtime/http-runner/HttpFlows.js +541 -0
  139. package/build/src/runtime/http-runner/HttpFlows.js.map +1 -0
  140. package/build/src/runtime/http-runner/HttpRequestRunner.d.ts +2 -2
  141. package/package.json +1 -1
  142. package/src/data/DataExtractor.ts +188 -0
  143. package/src/data/RequestDataExtractor.ts +14 -26
  144. package/src/models/Request.ts +3 -3
  145. package/src/models/RequestLog.ts +1 -1
  146. package/src/models/{http-actions → http-flows}/AssertionError.ts +0 -0
  147. package/src/models/{http-actions → http-flows}/HttpAssertion.ts +0 -0
  148. package/src/models/{http-actions → http-flows}/HttpFlows.ts +5 -39
  149. package/src/models/{http-actions → http-flows}/HttpStep.ts +0 -0
  150. package/src/models/{http-actions → http-flows}/LegacyTranslator.ts +89 -31
  151. package/src/models/{http-actions → http-flows}/steps/assertion/EqualAssertion.ts +0 -0
  152. package/src/models/{http-actions → http-flows}/steps/assertion/GreaterThanAssertion.ts +0 -0
  153. package/src/models/{http-actions → http-flows}/steps/assertion/IncludesAssertion.ts +0 -0
  154. package/src/models/{http-actions → http-flows}/steps/assertion/IsEmptyAssertion.ts +0 -0
  155. package/src/models/{http-actions → http-flows}/steps/assertion/IsNotEmptyAssertion.ts +0 -0
  156. package/src/models/{http-actions → http-flows}/steps/assertion/LengthOfAssertion.ts +0 -0
  157. package/src/models/{http-actions → http-flows}/steps/assertion/LessThanAssertion.ts +0 -0
  158. package/src/models/{http-actions → http-flows}/steps/assertion/MatchesAssertion.ts +0 -0
  159. package/src/models/{http-actions → http-flows}/steps/assertion/MatchesSchemaAssertion.ts +0 -0
  160. package/src/models/{http-actions → http-flows}/steps/assertion/NotEqualAssertion.ts +0 -0
  161. package/src/models/{http-actions → http-flows}/steps/assertion/NotIncludesAssertion.ts +0 -0
  162. package/src/models/{http-actions → http-flows}/steps/assertion/NotOkAssertion.ts +0 -0
  163. package/src/models/{http-actions → http-flows}/steps/assertion/NotToBeAssertion.ts +0 -0
  164. package/src/models/{http-actions → http-flows}/steps/assertion/OkAssertion.ts +0 -0
  165. package/src/models/{http-actions → http-flows}/steps/assertion/ToBeAssertion.ts +0 -0
  166. package/src/models/{http-actions → http-flows}/steps/data/DeleteCookieStep.ts +6 -1
  167. package/src/models/http-flows/steps/data/DeleteVariableStep.ts +78 -0
  168. package/src/models/{http-actions → http-flows}/steps/data/ReadDataSourceStep.ts +0 -0
  169. package/src/models/{http-actions → http-flows}/steps/data/ReadDataStep.ts +0 -0
  170. package/src/models/{http-actions → http-flows}/steps/data/ReadValueStep.ts +0 -0
  171. package/src/models/{http-actions → http-flows}/steps/data/SetCookieStep.ts +4 -2
  172. package/src/models/{http-actions → http-flows}/steps/data/SetDataStep.ts +0 -0
  173. package/src/models/{http-actions → http-flows}/steps/data/SetVariableStep.ts +0 -0
  174. package/src/models/{http-actions → http-flows}/steps/transformation/AsLowerCaseStep.ts +0 -0
  175. package/src/models/{http-actions → http-flows}/steps/transformation/AsNumberStep.ts +0 -0
  176. package/src/models/{http-actions → http-flows}/steps/transformation/AsUpperCaseStep.ts +0 -0
  177. package/src/models/{http-actions → http-flows}/steps/transformation/RoundStep.ts +0 -0
  178. package/src/models/{http-actions → http-flows}/steps/transformation/SubstringStep.ts +0 -0
  179. package/src/models/{http-actions → http-flows}/steps/transformation/TrimStep.ts +0 -0
  180. package/src/proxy/RequestProxy.ts +2 -2
  181. package/src/runtime/http-runner/ConditionCheck.ts +1 -1
  182. package/src/runtime/http-runner/HttpAssertionRunner.ts +28 -410
  183. package/src/runtime/http-runner/HttpFlowRunner.ts +47 -212
  184. package/src/runtime/http-runner/HttpFlows.ts +576 -0
  185. package/src/runtime/http-runner/HttpRequestRunner.ts +2 -2
  186. package/build/src/data/DataUtils.d.ts +0 -40
  187. package/build/src/data/DataUtils.js +0 -106
  188. package/build/src/data/DataUtils.js.map +0 -1
  189. package/build/src/models/http-actions/AssertionError.js.map +0 -1
  190. package/build/src/models/http-actions/HttpAssertion.js.map +0 -1
  191. package/build/src/models/http-actions/HttpFlows.js.map +0 -1
  192. package/build/src/models/http-actions/HttpStep.js.map +0 -1
  193. package/build/src/models/http-actions/LegacyTranslator.js.map +0 -1
  194. package/build/src/models/http-actions/steps/assertion/EqualAssertion.js.map +0 -1
  195. package/build/src/models/http-actions/steps/assertion/GreaterThanAssertion.js.map +0 -1
  196. package/build/src/models/http-actions/steps/assertion/IncludesAssertion.js.map +0 -1
  197. package/build/src/models/http-actions/steps/assertion/IsEmptyAssertion.js.map +0 -1
  198. package/build/src/models/http-actions/steps/assertion/IsNotEmptyAssertion.js.map +0 -1
  199. package/build/src/models/http-actions/steps/assertion/LengthOfAssertion.js.map +0 -1
  200. package/build/src/models/http-actions/steps/assertion/LessThanAssertion.js.map +0 -1
  201. package/build/src/models/http-actions/steps/assertion/MatchesAssertion.js.map +0 -1
  202. package/build/src/models/http-actions/steps/assertion/MatchesSchemaAssertion.js.map +0 -1
  203. package/build/src/models/http-actions/steps/assertion/NotEqualAssertion.js.map +0 -1
  204. package/build/src/models/http-actions/steps/assertion/NotIncludesAssertion.js.map +0 -1
  205. package/build/src/models/http-actions/steps/assertion/NotOkAssertion.js.map +0 -1
  206. package/build/src/models/http-actions/steps/assertion/NotToBeAssertion.js.map +0 -1
  207. package/build/src/models/http-actions/steps/assertion/OkAssertion.js.map +0 -1
  208. package/build/src/models/http-actions/steps/assertion/ToBeAssertion.js.map +0 -1
  209. package/build/src/models/http-actions/steps/assertion/index.js.map +0 -1
  210. package/build/src/models/http-actions/steps/data/DeleteCookieStep.js.map +0 -1
  211. package/build/src/models/http-actions/steps/data/ReadDataSourceStep.js.map +0 -1
  212. package/build/src/models/http-actions/steps/data/ReadDataStep.js.map +0 -1
  213. package/build/src/models/http-actions/steps/data/ReadValueStep.js.map +0 -1
  214. package/build/src/models/http-actions/steps/data/SetCookieStep.js.map +0 -1
  215. package/build/src/models/http-actions/steps/data/SetDataStep.js.map +0 -1
  216. package/build/src/models/http-actions/steps/data/SetVariableStep.js.map +0 -1
  217. package/build/src/models/http-actions/steps/data/index.js.map +0 -1
  218. package/build/src/models/http-actions/steps/transformation/AsLowerCaseStep.js.map +0 -1
  219. package/build/src/models/http-actions/steps/transformation/AsNumberStep.js.map +0 -1
  220. package/build/src/models/http-actions/steps/transformation/AsUpperCaseStep.js.map +0 -1
  221. package/build/src/models/http-actions/steps/transformation/RoundStep.js.map +0 -1
  222. package/build/src/models/http-actions/steps/transformation/SubstringStep.js.map +0 -1
  223. package/build/src/models/http-actions/steps/transformation/TrimStep.js.map +0 -1
  224. package/build/src/models/http-actions/steps/transformation/index.js.map +0 -1
  225. package/src/data/DataUtils.ts +0 -108
@@ -0,0 +1,541 @@
1
+ import { assert } from '@esm-bundle/chai';
2
+ import { HttpRequest } from "../../models/HttpRequest.js";
3
+ import { ErrorResponse } from "../../models/ErrorResponse.js";
4
+ import { FlowRequestDataEnum, FlowResponseDataEnum, FlowSourceEnum } from "../../models/http-flows/HttpFlows.js";
5
+ import { ReadDataSourceStep, ReadDataSourceStepKind } from "../../models/http-flows/steps/data/ReadDataSourceStep.js";
6
+ import { ReadValueStep, ReadValueStepKind } from "../../models/http-flows/steps/data/ReadValueStep.js";
7
+ import { HttpCookie } from "../../models/HttpCookie.js";
8
+ import { HttpResponse } from "../../models/HttpResponse.js";
9
+ import { Headers } from '../../lib/headers/Headers.js';
10
+ import { DataExtractor } from '../../data/DataExtractor.js';
11
+ import { RequestDataExtractor } from "../../data/RequestDataExtractor.js";
12
+ import { AsLowerCaseStepKind } from "../../models/http-flows/steps/transformation/AsLowerCaseStep.js";
13
+ import { AsUpperCaseStepKind } from "../../models/http-flows/steps/transformation/AsUpperCaseStep.js";
14
+ import { AsNumberStepKind } from "../../models/http-flows/steps/transformation/AsNumberStep.js";
15
+ import { RoundStepKind } from "../../models/http-flows/steps/transformation/RoundStep.js";
16
+ import { SubstringStepKind } from "../../models/http-flows/steps/transformation/SubstringStep.js";
17
+ import { TrimStepKind } from "../../models/http-flows/steps/transformation/TrimStep.js";
18
+ import { EqualAssertionKind } from "../../models/http-flows/steps/assertion/EqualAssertion.js";
19
+ import { NotEqualAssertionKind } from "../../models/http-flows/steps/assertion/NotEqualAssertion.js";
20
+ import { ApiSchemaValues } from "../../amf/ApiSchemaValues.js";
21
+ import { GreaterThanAssertionKind } from "../../models/http-flows/steps/assertion/GreaterThanAssertion.js";
22
+ import { LessThanAssertionKind } from "../../models/http-flows/steps/assertion/LessThanAssertion.js";
23
+ import { IncludesAssertionKind } from "../../models/http-flows/steps/assertion/IncludesAssertion.js";
24
+ import { NotIncludesAssertionKind } from "../../models/http-flows/steps/assertion/NotIncludesAssertion.js";
25
+ import { OkAssertionKind } from "../../models/http-flows/steps/assertion/OkAssertion.js";
26
+ import { NotOkAssertionKind } from "../../models/http-flows/steps/assertion/NotOkAssertion.js";
27
+ import { ToBeAssertionKind, ToBeTypes } from '../../models/http-flows/steps/assertion/ToBeAssertion.js';
28
+ import { NotToBeAssertionKind } from '../../models/http-flows/steps/assertion/NotToBeAssertion.js';
29
+ import { IsEmptyAssertionKind } from '../../models/http-flows/steps/assertion/IsEmptyAssertion.js';
30
+ import { IsNotEmptyAssertionKind } from '../../models/http-flows/steps/assertion/IsNotEmptyAssertion.js';
31
+ import { LengthOfAssertionKind } from '../../models/http-flows/steps/assertion/LengthOfAssertion.js';
32
+ import { ReadDataStep, ReadDataStepKind } from "../../models/http-flows/steps/data/ReadDataStep.js";
33
+ import { SetDataStep, SetDataStepKind } from "../../models/http-flows/steps/data/SetDataStep.js";
34
+ import { SetVariableStep, SetVariableStepKind } from "../../models/http-flows/steps/data/SetVariableStep.js";
35
+ import { SetCookieStep, SetCookieStepKind } from "../../models/http-flows/steps/data/SetCookieStep.js";
36
+ import { DeleteCookieStep, DeleteCookieStepKind } from "../../models/http-flows/steps/data/DeleteCookieStep.js";
37
+ /**
38
+ * A class that supports both assertions and flows.
39
+ * The derived classes specializes in a specific user flow (either performing flow actions or running assertions).
40
+ */
41
+ export class HttpFlows {
42
+ /**
43
+ * The cumulative list of all variables to be applied to the request and other properties.
44
+ * The variables must be already processed for variables in values (evaluated).
45
+ *
46
+ * These variables are passed by reference. Changes made anywhere to the variables will result
47
+ * with updating this list.
48
+ */
49
+ variables;
50
+ /**
51
+ * An instance of a cookie jar (store) to put/read cookies.
52
+ */
53
+ cookies;
54
+ async runStep(request, step, input, response) {
55
+ switch (step.kind) {
56
+ // data reading
57
+ case ReadDataSourceStepKind: return this.readDataSource(request, step, response);
58
+ case ReadValueStepKind: return this.readValue(input, step);
59
+ case ReadDataStepKind: return this.runReadDataStep(input, step, request, response);
60
+ case SetDataStepKind: return this.runSetDataStep(input, step);
61
+ case SetVariableStepKind: return this.runSetVariableStep(input, step);
62
+ case SetCookieStepKind: return this.runSetCookieStep(input, step, request);
63
+ case DeleteCookieStepKind: return this.runDeleteCookieStep(input, step, request);
64
+ // transformations
65
+ case AsLowerCaseStepKind: return this.toLowerCase(input);
66
+ case AsUpperCaseStepKind: return this.toUpperCase(input);
67
+ case AsNumberStepKind: return this.asNumber(input);
68
+ case RoundStepKind: return this.round(input, step);
69
+ case TrimStepKind: return this.trim(input);
70
+ case SubstringStepKind: return this.substring(input, step);
71
+ // assertions
72
+ case EqualAssertionKind: return this.assertEqual(input, step);
73
+ case NotEqualAssertionKind: return this.assertNotEqual(input, step);
74
+ case GreaterThanAssertionKind: return this.assertGreaterThan(input, step);
75
+ case LessThanAssertionKind: return this.assertLessThan(input, step);
76
+ case IncludesAssertionKind: return this.assertIncludes(input, step);
77
+ case NotIncludesAssertionKind: return this.assertNotIncludes(input, step);
78
+ case OkAssertionKind: return this.assertOk(input);
79
+ case NotOkAssertionKind: return this.assertNotOk(input);
80
+ case ToBeAssertionKind: return this.toBe(input, step);
81
+ case NotToBeAssertionKind: return this.notToBe(input, step);
82
+ case IsEmptyAssertionKind: return this.isEmpty(input);
83
+ case IsNotEmptyAssertionKind: return this.isNotEmpty(input);
84
+ case LengthOfAssertionKind: return this.lengthOf(input, step);
85
+ default: return { value: undefined };
86
+ }
87
+ }
88
+ /**
89
+ * Produces the data source.
90
+ */
91
+ async readDataSource(request, step, response) {
92
+ const instance = new ReadDataSourceStep(step);
93
+ if (instance.enabled === false || !instance.checkValidity()) {
94
+ return { value: undefined };
95
+ }
96
+ const { source, data } = step;
97
+ if (data && [FlowRequestDataEnum.headers, FlowResponseDataEnum.headers].includes(data)) {
98
+ return {
99
+ value: DataExtractor.readHeaders(source === FlowSourceEnum.request ? request : response),
100
+ type: data,
101
+ };
102
+ }
103
+ if (data && [FlowRequestDataEnum.url, FlowResponseDataEnum.url].includes(data)) {
104
+ return {
105
+ value: request.method,
106
+ type: data,
107
+ };
108
+ }
109
+ if (source === FlowSourceEnum.request) {
110
+ if (data === FlowRequestDataEnum.method) {
111
+ return {
112
+ value: request.method,
113
+ type: data,
114
+ };
115
+ }
116
+ if (data === FlowRequestDataEnum.body) {
117
+ const instance = new HttpRequest(request);
118
+ const value = await this.processBody(instance);
119
+ return {
120
+ ...value,
121
+ type: data,
122
+ };
123
+ }
124
+ }
125
+ if (source === FlowSourceEnum.response) {
126
+ if (!response) {
127
+ return {
128
+ type: data,
129
+ value: undefined,
130
+ };
131
+ }
132
+ if (data === FlowResponseDataEnum.status) {
133
+ return {
134
+ value: response.status,
135
+ type: data,
136
+ };
137
+ }
138
+ if (data === FlowResponseDataEnum.statusText) {
139
+ return {
140
+ value: response.statusText,
141
+ type: data,
142
+ };
143
+ }
144
+ if (data === FlowResponseDataEnum.body) {
145
+ let instance;
146
+ if (ErrorResponse.isErrorResponse(response)) {
147
+ instance = new ErrorResponse(response);
148
+ }
149
+ else {
150
+ instance = new HttpResponse(response);
151
+ }
152
+ const value = await this.processBody(instance);
153
+ return {
154
+ ...value,
155
+ type: data,
156
+ };
157
+ }
158
+ }
159
+ return { value: undefined };
160
+ }
161
+ async processBody(input) {
162
+ const { headers } = input;
163
+ if (!headers) {
164
+ return { value: undefined };
165
+ }
166
+ const body = await input.readPayloadAsString();
167
+ if (!body) {
168
+ return { value: undefined };
169
+ }
170
+ const parser = new Headers(headers);
171
+ const mime = parser.get('content-type');
172
+ if (!mime) {
173
+ return { value: undefined };
174
+ }
175
+ return {
176
+ value: body,
177
+ bodyMime: mime,
178
+ };
179
+ }
180
+ /**
181
+ * Produces the value from the current input.
182
+ */
183
+ async readValue(input, step) {
184
+ const instance = new ReadValueStep(step);
185
+ if (instance.enabled === false || !instance.checkValidity() || input.value === undefined || input.value === null) {
186
+ return { value: undefined };
187
+ }
188
+ const { path } = step;
189
+ const { type, value } = input;
190
+ const args = path ? path.split('.') : [];
191
+ if (type === FlowRequestDataEnum.url || type === FlowResponseDataEnum.url) {
192
+ if (!value) {
193
+ return { value: undefined };
194
+ }
195
+ const v = String(input.value);
196
+ return {
197
+ value: DataExtractor.getDataUrl(v, args),
198
+ };
199
+ }
200
+ if (type === FlowRequestDataEnum.headers || type === FlowResponseDataEnum.headers) {
201
+ if (!value) {
202
+ return { value: undefined };
203
+ }
204
+ const v = String(input.value);
205
+ return {
206
+ value: DataExtractor.getDataHeaders(v, args),
207
+ };
208
+ }
209
+ if (type === FlowRequestDataEnum.body || type === FlowResponseDataEnum.body) {
210
+ if (!input.bodyMime || !path) {
211
+ return { value: undefined };
212
+ }
213
+ const readValue = await DataExtractor.extractBody(String(value), input.bodyMime, path);
214
+ return {
215
+ value: readValue,
216
+ };
217
+ }
218
+ if (type === FlowResponseDataEnum.status) {
219
+ const v = Number(input.value);
220
+ if (Number.isNaN(v)) {
221
+ return { value: undefined };
222
+ }
223
+ return {
224
+ value: v,
225
+ };
226
+ }
227
+ if (type === FlowResponseDataEnum.statusText) {
228
+ if (!value) {
229
+ return { value: undefined };
230
+ }
231
+ return {
232
+ value,
233
+ };
234
+ }
235
+ return { value: undefined };
236
+ }
237
+ async toLowerCase(input) {
238
+ if (input.value === null || input.value === undefined) {
239
+ return { value: undefined };
240
+ }
241
+ const value = String(input.value);
242
+ return { value: value.toLowerCase() };
243
+ }
244
+ async toUpperCase(input) {
245
+ if (input.value === null || input.value === undefined) {
246
+ return { value: undefined };
247
+ }
248
+ const value = String(input.value);
249
+ return { value: value.toUpperCase() };
250
+ }
251
+ async asNumber(input) {
252
+ if (input.value === null || input.value === undefined) {
253
+ return { value: undefined };
254
+ }
255
+ const value = String(input.value);
256
+ const parsed = Number(value);
257
+ if (Number.isNaN(parsed)) {
258
+ return { value: undefined };
259
+ }
260
+ return { value: parsed };
261
+ }
262
+ async round(input, step) {
263
+ if (input.value === null || input.value === undefined) {
264
+ return { value: undefined };
265
+ }
266
+ const value = String(input.value);
267
+ const parsed = typeof input.value === 'number' ? input.value : Number(value);
268
+ if (Number.isNaN(parsed)) {
269
+ return { value: undefined };
270
+ }
271
+ return { value: parsed.toFixed(step.precision) };
272
+ }
273
+ async trim(input) {
274
+ if (input.value === null || input.value === undefined) {
275
+ return { value: undefined };
276
+ }
277
+ const value = String(input.value);
278
+ return { ...input, value: value.trim() };
279
+ }
280
+ async substring(input, step) {
281
+ if (input.value === null || input.value === undefined) {
282
+ return { value: undefined };
283
+ }
284
+ if (typeof step.start !== 'number') {
285
+ return input;
286
+ }
287
+ const value = String(input.value);
288
+ return { ...input, value: value.substring(step.start, step.end) };
289
+ }
290
+ async assertEqual(input, step) {
291
+ const { value } = input;
292
+ if (step.strict) {
293
+ const comparator = ApiSchemaValues.readTypedValue(step.value, step.dataType);
294
+ assert.strictEqual(value, comparator);
295
+ }
296
+ else {
297
+ assert.equal(String(value), step.value);
298
+ }
299
+ return input;
300
+ }
301
+ async assertNotEqual(input, step) {
302
+ const { value } = input;
303
+ if (step.strict) {
304
+ const comparator = ApiSchemaValues.readTypedValue(step.value, step.dataType);
305
+ assert.notStrictEqual(value, comparator);
306
+ }
307
+ else {
308
+ assert.notEqual(value, step.value);
309
+ }
310
+ return input;
311
+ }
312
+ async assertGreaterThan(input, step) {
313
+ assert.typeOf(input.value, 'number');
314
+ const value = input.value;
315
+ if (step.equal) {
316
+ assert.isAtLeast(value, step.value);
317
+ }
318
+ else {
319
+ assert.isAbove(value, step.value);
320
+ }
321
+ return input;
322
+ }
323
+ async assertLessThan(input, step) {
324
+ assert.typeOf(input.value, 'number');
325
+ const value = input.value;
326
+ if (step.equal) {
327
+ assert.isAtMost(value, step.value);
328
+ }
329
+ else {
330
+ assert.isBelow(value, step.value);
331
+ }
332
+ return input;
333
+ }
334
+ async assertIncludes(input, step) {
335
+ if (this.isPrimitive(input.value)) {
336
+ assert.include(String(input.value), String(step.value));
337
+ }
338
+ else {
339
+ assert.include(JSON.stringify(input.value), String(step.value));
340
+ }
341
+ return input;
342
+ }
343
+ async assertNotIncludes(input, step) {
344
+ if (this.isPrimitive(input.value)) {
345
+ assert.notInclude(String(input.value), String(step.value));
346
+ }
347
+ else {
348
+ assert.notInclude(JSON.stringify(input.value), String(step.value));
349
+ }
350
+ return input;
351
+ }
352
+ async assertOk(input) {
353
+ assert.ok(input.value);
354
+ return input;
355
+ }
356
+ async assertNotOk(input) {
357
+ assert.notOk(input.value);
358
+ return input;
359
+ }
360
+ async toBe(input, step) {
361
+ assert.typeOf(input.value, step.value);
362
+ return input;
363
+ }
364
+ async notToBe(input, step) {
365
+ if (Array.isArray(input.value) && step.value === ToBeTypes.object) {
366
+ assert(false, 'expected [Array] to be an object');
367
+ }
368
+ assert.notTypeOf(input.value, step.value);
369
+ return input;
370
+ }
371
+ async isEmpty(input) {
372
+ assert.isEmpty(input.value);
373
+ return input;
374
+ }
375
+ async isNotEmpty(input) {
376
+ assert.isNotEmpty(input.value);
377
+ return input;
378
+ }
379
+ async lengthOf(input, step) {
380
+ assert.lengthOf(input.value, step.value);
381
+ return input;
382
+ }
383
+ isPrimitive(value) {
384
+ return (typeof value !== 'object' && typeof value !== 'function') || value === null;
385
+ }
386
+ /**
387
+ * A step that reads data from the request, response, or variables.
388
+ *
389
+ * @param step The step configuration.
390
+ * @param request The HttpRequest or the SentRequest (for responses)
391
+ * @param response When available, the response data
392
+ * @returns The read value or undefined.
393
+ */
394
+ async runReadDataStep(input, step, request, response) {
395
+ const instance = new ReadDataStep(step);
396
+ if (instance.enabled === false || !instance.checkValidity()) {
397
+ return input;
398
+ }
399
+ const { source, data, path } = step;
400
+ if (source === FlowSourceEnum.request) {
401
+ const extractor = new RequestDataExtractor(request);
402
+ const value = await extractor.extract(source, data, path);
403
+ return { ...input, value };
404
+ }
405
+ if (source === FlowSourceEnum.response) {
406
+ const extractor = new RequestDataExtractor(request, response);
407
+ const value = await extractor.extract(source, data, path);
408
+ return { ...input, value };
409
+ }
410
+ if (source === FlowSourceEnum.variable && path && this.variables) {
411
+ const value = this.variables[path];
412
+ return { ...input, value };
413
+ }
414
+ return { ...input, value: undefined };
415
+ }
416
+ /**
417
+ * A step that returns a pre-configured value.
418
+ *
419
+ * @param step The step configuration.
420
+ * @returns The read value with applied data type.
421
+ */
422
+ runSetDataStep(input, step) {
423
+ const instance = new SetDataStep(step);
424
+ if (instance.enabled === false || !instance.checkValidity()) {
425
+ return input;
426
+ }
427
+ const { value, dataType } = step;
428
+ if (value === null || value === undefined) {
429
+ return { ...input, value: undefined };
430
+ }
431
+ const result = ApiSchemaValues.parseScalar(value, dataType);
432
+ return {
433
+ ...input,
434
+ value: result,
435
+ };
436
+ }
437
+ /**
438
+ * A step that sets a variable in the current environment.
439
+ * Note, this passes the step value through.
440
+ *
441
+ * @param step The step configuration.
442
+ * @param value The value to set. A value that is `null` or `undefined` deletes the variable.
443
+ */
444
+ runSetVariableStep(input, step) {
445
+ const instance = new SetVariableStep(step);
446
+ if (instance.enabled === false || !instance.checkValidity() || !this.variables) {
447
+ return input;
448
+ }
449
+ if (input.value === null || input.value === undefined) {
450
+ return input;
451
+ }
452
+ const { name } = step;
453
+ this.variables[name] = String(input.value);
454
+ return input;
455
+ }
456
+ /**
457
+ * A step that sets a cookie.
458
+ * Note, this passes the step value through.
459
+ *
460
+ * @param step The step configuration.
461
+ * @param value The value to sent on the cookie.
462
+ * @param request The request object.
463
+ */
464
+ async runSetCookieStep(input, step, request) {
465
+ const instance = new SetCookieStep(step);
466
+ const { cookies } = this;
467
+ if (instance.enabled === false || !instance.checkValidity() || !cookies) {
468
+ return input;
469
+ }
470
+ if (input.value === null || input.value === undefined) {
471
+ return input;
472
+ }
473
+ const { name, expires, hostOnly, httpOnly, sameSite, secure, session } = step;
474
+ const typedValue = String(input.value);
475
+ let url;
476
+ if (step.url) {
477
+ url = step.url;
478
+ }
479
+ else {
480
+ url = request.url;
481
+ }
482
+ const cookie = new HttpCookie({
483
+ name: name,
484
+ value: typedValue,
485
+ sameSite: 'unspecified',
486
+ });
487
+ if (sameSite) {
488
+ const typed = sameSite;
489
+ switch (typed.toLowerCase()) {
490
+ case 'lax':
491
+ cookie.sameSite = 'lax';
492
+ break;
493
+ case 'strict':
494
+ cookie.sameSite = 'strict';
495
+ break;
496
+ case 'none':
497
+ cookie.sameSite = 'no_restriction';
498
+ break;
499
+ }
500
+ }
501
+ if (expires) {
502
+ cookie.expirationDate = expires;
503
+ }
504
+ if (typeof hostOnly === 'boolean') {
505
+ cookie.hostOnly = hostOnly;
506
+ }
507
+ if (typeof httpOnly === 'boolean') {
508
+ cookie.httpOnly = httpOnly;
509
+ }
510
+ if (typeof secure === 'boolean') {
511
+ cookie.secure = secure;
512
+ }
513
+ if (typeof session === 'boolean') {
514
+ cookie.session = session;
515
+ }
516
+ await cookies.setCookies(url, [cookie]);
517
+ return input;
518
+ }
519
+ /**
520
+ * A step to delete cookies from the cookie jar.
521
+ *
522
+ * Note, this passes the step value through.
523
+ */
524
+ async runDeleteCookieStep(input, step, request) {
525
+ const instance = new DeleteCookieStep(step);
526
+ const { cookies } = this;
527
+ if (instance.enabled === false || !instance.checkValidity() || !cookies) {
528
+ return input;
529
+ }
530
+ let url;
531
+ if (step.url) {
532
+ url = step.url;
533
+ }
534
+ else {
535
+ url = request.url;
536
+ }
537
+ await cookies.deleteCookies(url, step.name);
538
+ return input;
539
+ }
540
+ }
541
+ //# sourceMappingURL=HttpFlows.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HttpFlows.js","sourceRoot":"","sources":["../../../../src/runtime/http-runner/HttpFlows.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAgB,MAAM,6BAA6B,CAAC;AAIxE,OAAO,EAAE,aAAa,EAAkB,MAAM,+BAA+B,CAAC;AAG9E,OAAO,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AACjH,OAAO,EAAuB,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,0DAA0D,CAAC;AAC3I,OAAO,EAAkB,aAAa,EAAE,iBAAiB,EAAE,MAAM,qDAAqD,CAAC;AACvH,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,oBAAoB,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;;;;OAIG;IACH,KAAK,CAAC,mBAAmB,CAAC,KAAiB,EAAE,IAAuB,EAAE,OAAoC;QACxG,MAAM,QAAQ,GAAG,IAAI,gBAAgB,CAAC,IAAI,CAAC,CAAC;QAC5C,MAAM,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC;QACzB,IAAI,QAAQ,CAAC,OAAO,KAAK,KAAK,IAAI,CAAC,QAAQ,CAAC,aAAa,EAAE,IAAI,CAAC,OAAO,EAAE;YACvE,OAAO,KAAK,CAAC;SACd;QACD,IAAI,GAAW,CAAC;QAChB,IAAI,IAAI,CAAC,GAAG,EAAE;YACZ,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC;SAChB;aAAM;YACL,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC;SACnB;QACD,MAAM,OAAO,CAAC,aAAa,CAAC,GAAG,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;QAC5C,OAAO,KAAK,CAAC;IACf,CAAC;CACF"}
@@ -4,8 +4,8 @@ import { IRequestConfig } from '../../models/RequestConfig.js';
4
4
  import { IRequestAuthorization } from '../../models/RequestAuthorization.js';
5
5
  import { IRequestLog } from '../../models/RequestLog.js';
6
6
  import { VariablesProcessor } from '../variables/VariablesProcessor.js';
7
- import { IHttpFlow } from '../../models/http-actions/HttpFlows.js';
8
- import { AssertionResult, IHttpAssertion } from '../../models/http-actions/HttpAssertion.js';
7
+ import { IHttpFlow } from '../../models/http-flows/HttpFlows.js';
8
+ import { AssertionResult, IHttpAssertion } from '../../models/http-flows/HttpAssertion.js';
9
9
  import { HttpEngineOptions } from '../http-engine/HttpEngine.js';
10
10
  import { Logger } from '../../lib/logging/Logger.js';
11
11
  import { CookieJar } from '../../cookies/CookieJar.js';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@api-client/core",
3
3
  "description": "The API Client's core client library. Works in NodeJS and in a ES enabled browser.",
4
- "version": "0.9.22",
4
+ "version": "0.9.23",
5
5
  "license": "Apache-2.0",
6
6
  "main": "build/index.js",
7
7
  "module": "build/index.js",