@api-client/core 0.9.4 → 0.9.6

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 (256) hide show
  1. package/build/browser.d.ts +14 -3
  2. package/build/browser.js +16 -2
  3. package/build/browser.js.map +1 -1
  4. package/build/index.d.ts +15 -4
  5. package/build/index.js +17 -3
  6. package/build/index.js.map +1 -1
  7. package/build/src/data/{JmesparthReader.d.ts → JmespathReader.d.ts} +1 -1
  8. package/build/src/data/{JmesparthReader.js → JmespathReader.js} +2 -2
  9. package/build/src/data/JmespathReader.js.map +1 -0
  10. package/build/src/data/RequestDataExtractor.d.ts +5 -5
  11. package/build/src/data/RequestDataExtractor.js.map +1 -1
  12. package/build/src/data/XmlReader.js +14 -1
  13. package/build/src/data/XmlReader.js.map +1 -1
  14. package/build/src/events/BaseEvents.d.ts +25 -0
  15. package/build/src/events/Events.d.ts +1 -1
  16. package/build/src/events/transport/TransportEvents.d.ts +1 -1
  17. package/build/src/events/transport/TransportEvents.js.map +1 -1
  18. package/build/src/models/ClientCertificate.d.ts +9 -0
  19. package/build/src/models/ClientCertificate.js.map +1 -1
  20. package/build/src/models/Environment.d.ts +3 -2
  21. package/build/src/models/Environment.js +11 -6
  22. package/build/src/models/Environment.js.map +1 -1
  23. package/build/src/models/ErrorResponse.js.map +1 -1
  24. package/build/src/models/HttpRequest.d.ts +2 -7
  25. package/build/src/models/HttpRequest.js +1 -6
  26. package/build/src/models/HttpRequest.js.map +1 -1
  27. package/build/src/models/HttpResponse.d.ts +2 -7
  28. package/build/src/models/HttpResponse.js +1 -3
  29. package/build/src/models/HttpResponse.js.map +1 -1
  30. package/build/src/models/ProjectExecution.d.ts +115 -0
  31. package/build/src/models/ProjectExecution.js +148 -0
  32. package/build/src/models/ProjectExecution.js.map +1 -0
  33. package/build/src/models/ProjectRequest.d.ts +19 -0
  34. package/build/src/models/ProjectRequest.js +50 -0
  35. package/build/src/models/ProjectRequest.js.map +1 -1
  36. package/build/src/models/Request.d.ts +12 -3
  37. package/build/src/models/Request.js +14 -1
  38. package/build/src/models/Request.js.map +1 -1
  39. package/build/src/models/RequestAuthorization.js.map +1 -1
  40. package/build/src/models/RequestLog.d.ts +11 -0
  41. package/build/src/models/RequestLog.js +15 -1
  42. package/build/src/models/RequestLog.js.map +1 -1
  43. package/build/src/models/SerializablePayload.d.ts +6 -1
  44. package/build/src/models/SerializablePayload.js +10 -6
  45. package/build/src/models/SerializablePayload.js.map +1 -1
  46. package/build/src/models/http-actions/AssertionError.d.ts +36 -0
  47. package/build/src/models/http-actions/AssertionError.js +35 -0
  48. package/build/src/models/http-actions/AssertionError.js.map +1 -0
  49. package/build/src/models/http-actions/HttpAssertion.d.ts +84 -0
  50. package/build/src/models/http-actions/HttpAssertion.js +52 -0
  51. package/build/src/models/http-actions/HttpAssertion.js.map +1 -0
  52. package/build/src/models/http-actions/HttpFlows.d.ts +109 -0
  53. package/build/src/models/http-actions/HttpFlows.js +31 -0
  54. package/build/src/models/http-actions/HttpFlows.js.map +1 -0
  55. package/build/src/models/http-actions/HttpStep.d.ts +29 -0
  56. package/build/src/models/http-actions/HttpStep.js +30 -0
  57. package/build/src/models/http-actions/HttpStep.js.map +1 -0
  58. package/build/src/models/http-actions/LegacyTranslator.d.ts +8 -7
  59. package/build/src/models/http-actions/LegacyTranslator.js +18 -13
  60. package/build/src/models/http-actions/LegacyTranslator.js.map +1 -1
  61. package/build/src/models/http-actions/steps/assertion/EqualAssertion.d.ts +76 -0
  62. package/build/src/models/http-actions/steps/assertion/EqualAssertion.js +79 -0
  63. package/build/src/models/http-actions/steps/assertion/EqualAssertion.js.map +1 -0
  64. package/build/src/models/http-actions/steps/assertion/GreaterThanAssertion.d.ts +36 -0
  65. package/build/src/models/http-actions/steps/assertion/GreaterThanAssertion.js +59 -0
  66. package/build/src/models/http-actions/steps/assertion/GreaterThanAssertion.js.map +1 -0
  67. package/build/src/models/http-actions/steps/assertion/IncludesAssertion.d.ts +28 -0
  68. package/build/src/models/http-actions/steps/assertion/IncludesAssertion.js +45 -0
  69. package/build/src/models/http-actions/steps/assertion/IncludesAssertion.js.map +1 -0
  70. package/build/src/models/http-actions/steps/assertion/IsEmptyAssertion.d.ts +18 -0
  71. package/build/src/models/http-actions/steps/assertion/IsEmptyAssertion.js +29 -0
  72. package/build/src/models/http-actions/steps/assertion/IsEmptyAssertion.js.map +1 -0
  73. package/build/src/models/http-actions/steps/assertion/IsNotEmptyAssertion.d.ts +18 -0
  74. package/build/src/models/http-actions/steps/assertion/IsNotEmptyAssertion.js +29 -0
  75. package/build/src/models/http-actions/steps/assertion/IsNotEmptyAssertion.js.map +1 -0
  76. package/build/src/models/http-actions/steps/assertion/LengthOfAssertion.d.ts +28 -0
  77. package/build/src/models/http-actions/steps/assertion/LengthOfAssertion.js +45 -0
  78. package/build/src/models/http-actions/steps/assertion/LengthOfAssertion.js.map +1 -0
  79. package/build/src/models/http-actions/steps/assertion/LessThanAssertion.d.ts +36 -0
  80. package/build/src/models/http-actions/steps/assertion/LessThanAssertion.js +59 -0
  81. package/build/src/models/http-actions/steps/assertion/LessThanAssertion.js.map +1 -0
  82. package/build/src/models/http-actions/steps/assertion/MatchesAssertion.d.ts +28 -0
  83. package/build/src/models/http-actions/steps/assertion/MatchesAssertion.js +45 -0
  84. package/build/src/models/http-actions/steps/assertion/MatchesAssertion.js.map +1 -0
  85. package/build/src/models/http-actions/steps/assertion/MatchesSchemaAssertion.d.ts +36 -0
  86. package/build/src/models/http-actions/steps/assertion/MatchesSchemaAssertion.js +59 -0
  87. package/build/src/models/http-actions/steps/assertion/MatchesSchemaAssertion.js.map +1 -0
  88. package/build/src/models/http-actions/steps/assertion/NotEqualAssertion.d.ts +76 -0
  89. package/build/src/models/http-actions/steps/assertion/NotEqualAssertion.js +79 -0
  90. package/build/src/models/http-actions/steps/assertion/NotEqualAssertion.js.map +1 -0
  91. package/build/src/models/http-actions/steps/assertion/NotIncludesAssertion.d.ts +28 -0
  92. package/build/src/models/http-actions/steps/assertion/NotIncludesAssertion.js +45 -0
  93. package/build/src/models/http-actions/steps/assertion/NotIncludesAssertion.js.map +1 -0
  94. package/build/src/models/http-actions/steps/assertion/NotOkAssertion.d.ts +18 -0
  95. package/build/src/models/http-actions/steps/assertion/NotOkAssertion.js +29 -0
  96. package/build/src/models/http-actions/steps/assertion/NotOkAssertion.js.map +1 -0
  97. package/build/src/models/http-actions/steps/assertion/NotToBeAssertion.d.ts +29 -0
  98. package/build/src/models/http-actions/steps/assertion/NotToBeAssertion.js +45 -0
  99. package/build/src/models/http-actions/steps/assertion/NotToBeAssertion.js.map +1 -0
  100. package/build/src/models/http-actions/steps/assertion/OkAssertion.d.ts +18 -0
  101. package/build/src/models/http-actions/steps/assertion/OkAssertion.js +29 -0
  102. package/build/src/models/http-actions/steps/assertion/OkAssertion.js.map +1 -0
  103. package/build/src/models/http-actions/steps/assertion/ToBeAssertion.d.ts +35 -0
  104. package/build/src/models/http-actions/steps/assertion/ToBeAssertion.js +53 -0
  105. package/build/src/models/http-actions/steps/assertion/ToBeAssertion.js.map +1 -0
  106. package/build/src/models/http-actions/steps/assertion/index.d.ts +15 -0
  107. package/build/src/models/http-actions/steps/assertion/index.js +16 -0
  108. package/build/src/models/http-actions/steps/assertion/index.js.map +1 -0
  109. package/build/src/models/http-actions/steps/data/DeleteCookieStep.d.ts +44 -0
  110. package/build/src/models/http-actions/steps/data/DeleteCookieStep.js +67 -0
  111. package/build/src/models/http-actions/steps/data/DeleteCookieStep.js.map +1 -0
  112. package/build/src/models/http-actions/steps/data/ReadDataSourceStep.d.ts +53 -0
  113. package/build/src/models/http-actions/steps/data/ReadDataSourceStep.js +60 -0
  114. package/build/src/models/http-actions/steps/data/ReadDataSourceStep.js.map +1 -0
  115. package/build/src/models/http-actions/steps/data/ReadDataStep.d.ts +67 -0
  116. package/build/src/models/http-actions/steps/data/ReadDataStep.js +77 -0
  117. package/build/src/models/http-actions/steps/data/ReadDataStep.js.map +1 -0
  118. package/build/src/models/http-actions/steps/data/ReadValueStep.d.ts +45 -0
  119. package/build/src/models/http-actions/steps/data/ReadValueStep.js +52 -0
  120. package/build/src/models/http-actions/steps/data/ReadValueStep.js.map +1 -0
  121. package/build/src/models/http-actions/steps/data/SetCookieStep.d.ts +100 -0
  122. package/build/src/models/http-actions/steps/data/SetCookieStep.js +138 -0
  123. package/build/src/models/http-actions/steps/data/SetCookieStep.js.map +1 -0
  124. package/build/src/models/http-actions/steps/data/SetDataStep.d.ts +77 -0
  125. package/build/src/models/http-actions/steps/data/SetDataStep.js +69 -0
  126. package/build/src/models/http-actions/steps/data/SetDataStep.js.map +1 -0
  127. package/build/src/models/http-actions/steps/data/SetVariableStep.d.ts +40 -0
  128. package/build/src/models/http-actions/steps/data/SetVariableStep.js +44 -0
  129. package/build/src/models/http-actions/steps/data/SetVariableStep.js.map +1 -0
  130. package/build/src/models/http-actions/steps/data/index.d.ts +7 -0
  131. package/build/src/models/http-actions/steps/data/index.js +8 -0
  132. package/build/src/models/http-actions/steps/data/index.js.map +1 -0
  133. package/build/src/models/http-actions/steps/transformation/AsLowerCaseStep.d.ts +18 -0
  134. package/build/src/models/http-actions/steps/transformation/AsLowerCaseStep.js +29 -0
  135. package/build/src/models/http-actions/steps/transformation/AsLowerCaseStep.js.map +1 -0
  136. package/build/src/models/http-actions/steps/transformation/AsNumberStep.d.ts +18 -0
  137. package/build/src/models/http-actions/steps/transformation/AsNumberStep.js +29 -0
  138. package/build/src/models/http-actions/steps/transformation/AsNumberStep.js.map +1 -0
  139. package/build/src/models/http-actions/steps/transformation/AsUpperCaseStep.d.ts +18 -0
  140. package/build/src/models/http-actions/steps/transformation/AsUpperCaseStep.js +29 -0
  141. package/build/src/models/http-actions/steps/transformation/AsUpperCaseStep.js.map +1 -0
  142. package/build/src/models/http-actions/steps/transformation/RoundStep.d.ts +43 -0
  143. package/build/src/models/http-actions/steps/transformation/RoundStep.js +52 -0
  144. package/build/src/models/http-actions/steps/transformation/RoundStep.js.map +1 -0
  145. package/build/src/models/http-actions/steps/transformation/SubstringStep.d.ts +38 -0
  146. package/build/src/models/http-actions/steps/transformation/SubstringStep.js +65 -0
  147. package/build/src/models/http-actions/steps/transformation/SubstringStep.js.map +1 -0
  148. package/build/src/models/http-actions/steps/transformation/TrimStep.d.ts +20 -0
  149. package/build/src/models/http-actions/steps/transformation/TrimStep.js +30 -0
  150. package/build/src/models/http-actions/steps/transformation/TrimStep.js.map +1 -0
  151. package/build/src/models/http-actions/steps/transformation/index.d.ts +6 -0
  152. package/build/src/models/http-actions/steps/transformation/index.js +7 -0
  153. package/build/src/models/http-actions/steps/transformation/index.js.map +1 -0
  154. package/build/src/proxy/HttpProjectProxy.d.ts +1 -1
  155. package/build/src/proxy/Proxy.d.ts +1 -1
  156. package/build/src/proxy/ProxyService.d.ts +1 -1
  157. package/build/src/proxy/RequestProxy.d.ts +7 -2
  158. package/build/src/proxy/RequestProxy.js +4 -1
  159. package/build/src/proxy/RequestProxy.js.map +1 -1
  160. package/build/src/runtime/http-runner/ConditionCheck.d.ts +10 -10
  161. package/build/src/runtime/http-runner/ConditionCheck.js.map +1 -1
  162. package/build/src/runtime/http-runner/HttpAssertionRunner.d.ts +75 -0
  163. package/build/src/runtime/http-runner/HttpAssertionRunner.js +538 -0
  164. package/build/src/runtime/http-runner/HttpAssertionRunner.js.map +1 -0
  165. package/build/src/runtime/http-runner/HttpFlowRunner.d.ts +11 -6
  166. package/build/src/runtime/http-runner/HttpFlowRunner.js +24 -15
  167. package/build/src/runtime/http-runner/HttpFlowRunner.js.map +1 -1
  168. package/build/src/runtime/http-runner/HttpRequestRunner.d.ts +14 -3
  169. package/build/src/runtime/http-runner/HttpRequestRunner.js +44 -0
  170. package/build/src/runtime/http-runner/HttpRequestRunner.js.map +1 -1
  171. package/build/src/runtime/node/BaseRunner.d.ts +1 -1
  172. package/build/src/runtime/node/ProjectParallelRunner.d.ts +2 -2
  173. package/build/src/runtime/node/ProjectParallelRunner.js +2 -2
  174. package/build/src/runtime/node/ProjectParallelRunner.js.map +1 -1
  175. package/build/src/runtime/node/ProjectRequestRunner.js +6 -2
  176. package/build/src/runtime/node/ProjectRequestRunner.js.map +1 -1
  177. package/build/src/runtime/node/ProjectRunner.d.ts +1 -1
  178. package/build/src/runtime/node/ProjectSerialRunner.d.ts +1 -1
  179. package/build/src/runtime/reporters/Reporter.d.ts +1 -33
  180. package/build/src/runtime/reporters/Reporter.js.map +1 -1
  181. package/build/src/runtime/store/interfaces/ApiClientStore.d.ts +2 -0
  182. package/build/src/runtime/store/interfaces/ProjectRuns.d.ts +56 -0
  183. package/build/src/runtime/store/interfaces/ProjectRuns.js +2 -0
  184. package/build/src/runtime/store/interfaces/ProjectRuns.js.map +1 -0
  185. package/package.json +3 -2
  186. package/src/data/{JmesparthReader.ts → JmespathReader.ts} +2 -2
  187. package/src/data/RequestDataExtractor.ts +5 -5
  188. package/src/data/XmlReader.ts +16 -2
  189. package/src/events/BaseEvents.ts +30 -0
  190. package/src/events/transport/TransportEvents.ts +1 -1
  191. package/src/models/ClientCertificate.ts +9 -0
  192. package/src/models/Environment.ts +11 -7
  193. package/src/models/ErrorResponse.ts +1 -1
  194. package/src/models/HttpRequest.ts +4 -14
  195. package/src/models/HttpResponse.ts +5 -11
  196. package/src/models/ProjectExecution.ts +227 -0
  197. package/src/models/ProjectRequest.ts +54 -0
  198. package/src/models/Request.ts +23 -4
  199. package/src/models/RequestAuthorization.ts +1 -1
  200. package/src/models/RequestLog.ts +21 -1
  201. package/src/models/SerializablePayload.ts +18 -1
  202. package/src/models/http-actions/AssertionError.ts +57 -0
  203. package/src/models/http-actions/HttpAssertion.ts +89 -0
  204. package/src/models/http-actions/HttpFlows.ts +115 -0
  205. package/src/models/http-actions/HttpStep.ts +50 -0
  206. package/src/models/http-actions/LegacyTranslator.ts +42 -30
  207. package/src/models/http-actions/steps/assertion/EqualAssertion.ts +130 -0
  208. package/src/models/http-actions/steps/assertion/GreaterThanAssertion.ts +87 -0
  209. package/src/models/http-actions/steps/assertion/IncludesAssertion.ts +68 -0
  210. package/src/models/http-actions/steps/assertion/IsEmptyAssertion.ts +41 -0
  211. package/src/models/http-actions/steps/assertion/IsNotEmptyAssertion.ts +41 -0
  212. package/src/models/http-actions/steps/assertion/LengthOfAssertion.ts +68 -0
  213. package/src/models/http-actions/steps/assertion/LessThanAssertion.ts +87 -0
  214. package/src/models/http-actions/steps/assertion/MatchesAssertion.ts +68 -0
  215. package/src/models/http-actions/steps/assertion/MatchesSchemaAssertion.ts +85 -0
  216. package/src/models/http-actions/steps/assertion/NotEqualAssertion.ts +130 -0
  217. package/src/models/http-actions/steps/assertion/NotIncludesAssertion.ts +68 -0
  218. package/src/models/http-actions/steps/assertion/NotOkAssertion.ts +41 -0
  219. package/src/models/http-actions/steps/assertion/NotToBeAssertion.ts +69 -0
  220. package/src/models/http-actions/steps/assertion/OkAssertion.ts +41 -0
  221. package/src/models/http-actions/steps/assertion/ToBeAssertion.ts +76 -0
  222. package/src/models/http-actions/steps/data/DeleteCookieStep.ts +102 -0
  223. package/src/models/http-actions/steps/data/ReadDataSourceStep.ts +103 -0
  224. package/src/models/http-actions/steps/data/ReadDataStep.ts +128 -0
  225. package/src/models/http-actions/steps/data/ReadValueStep.ts +88 -0
  226. package/src/models/http-actions/steps/data/SetCookieStep.ts +206 -0
  227. package/src/models/http-actions/steps/data/SetDataStep.ts +124 -0
  228. package/src/models/http-actions/steps/data/SetVariableStep.ts +82 -0
  229. package/src/models/http-actions/steps/transformation/AsLowerCaseStep.ts +41 -0
  230. package/src/models/http-actions/steps/transformation/AsNumberStep.ts +41 -0
  231. package/src/models/http-actions/steps/transformation/AsUpperCaseStep.ts +41 -0
  232. package/src/models/http-actions/steps/transformation/RoundStep.ts +86 -0
  233. package/src/models/http-actions/steps/transformation/SubstringStep.ts +93 -0
  234. package/src/models/http-actions/steps/transformation/TrimStep.ts +43 -0
  235. package/src/proxy/HttpProjectProxy.ts +1 -1
  236. package/src/proxy/Proxy.ts +1 -1
  237. package/src/proxy/ProxyService.ts +1 -1
  238. package/src/proxy/RequestProxy.ts +11 -3
  239. package/src/runtime/http-runner/ConditionCheck.ts +13 -14
  240. package/src/runtime/http-runner/HttpAssertionRunner.ts +540 -0
  241. package/src/runtime/http-runner/HttpFlowRunner.ts +33 -19
  242. package/src/runtime/http-runner/HttpRequestRunner.ts +53 -5
  243. package/src/runtime/node/BaseRunner.ts +1 -1
  244. package/src/runtime/node/ProjectParallelRunner.ts +5 -5
  245. package/src/runtime/node/ProjectRequestRunner.ts +6 -2
  246. package/src/runtime/node/ProjectRunner.ts +1 -1
  247. package/src/runtime/node/ProjectRunnerWorker.ts +1 -1
  248. package/src/runtime/node/ProjectSerialRunner.ts +1 -1
  249. package/src/runtime/reporters/Reporter.ts +1 -35
  250. package/src/runtime/store/interfaces/ApiClientStore.ts +3 -0
  251. package/src/runtime/store/interfaces/ProjectRuns.ts +64 -0
  252. package/build/src/data/JmesparthReader.js.map +0 -1
  253. package/build/src/models/http-actions/HttpActions.d.ts +0 -256
  254. package/build/src/models/http-actions/HttpActions.js +0 -46
  255. package/build/src/models/http-actions/HttpActions.js.map +0 -1
  256. package/src/models/http-actions/HttpActions.ts +0 -270
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AsUpperCaseStep.js","sourceRoot":"","sources":["../../../../../../src/models/http-actions/steps/transformation/AsUpperCaseStep.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAa,MAAM,mBAAmB,CAAC;AAExD,MAAM,CAAC,MAAM,mBAAmB,GAAG,wBAAwB,CAAC;AAS5D;;GAEG;AACH,MAAM,OAAO,eAAgB,SAAQ,QAAQ;IAClC,IAAI,GAAG,mBAAmB,CAAC;IAEpC,YAAY,IAAuB;QACjC,KAAK,EAAE,CAAC;QACR,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE;YAC5B,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;SAChB;IACH,CAAC;IAEQ,GAAG,CAAC,IAAsB;QACjC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QAChB,IAAI,CAAC,IAAI,GAAG,mBAAmB,CAAC;IAClC,CAAC;IAED,aAAa;QACX,OAAO,IAAI,CAAC;IACd,CAAC;IAEQ,MAAM;QACb,MAAM,MAAM,GAAqB;YAC/B,GAAG,KAAK,CAAC,MAAM,EAAE;YACjB,IAAI,EAAE,mBAAmB;SAC1B,CAAC;QACF,OAAO,MAAM,CAAC;IAChB,CAAC;CACF"}
@@ -0,0 +1,43 @@
1
+ import { HttpStep, IHttpStep } from "../../HttpStep.js";
2
+ export declare const RoundStepKind = "HttpAction#Round";
3
+ /**
4
+ * Formats the input as a number using fixed-point notation.
5
+ */
6
+ export interface IRoundStep extends IHttpStep {
7
+ kind: typeof RoundStepKind;
8
+ /**
9
+ * The number of digits to appear after the decimal point; should be a value between 0 and 100, inclusive.
10
+ * If this argument is omitted, it is treated as 0.
11
+ * See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/toFixed.
12
+ */
13
+ precision?: number;
14
+ }
15
+ /**
16
+ * Formats the input as a number using fixed-point notation.
17
+ */
18
+ export declare class RoundStep extends HttpStep {
19
+ kind: string;
20
+ /**
21
+ * The number of digits to appear after the decimal point; should be a value between 0 and 100, inclusive.
22
+ * If this argument is omitted, it is treated as 0.
23
+ * See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/toFixed.
24
+ */
25
+ precision?: number;
26
+ /**
27
+ * Creates the step from values.
28
+ * @param precision The name of the variable to set
29
+ */
30
+ constructor(precision: number);
31
+ /**
32
+ * Creates the step from serialized schema.
33
+ * @param init The serialized step values.
34
+ */
35
+ constructor(init: IRoundStep);
36
+ /**
37
+ * Creates an empty step.
38
+ */
39
+ constructor();
40
+ new(init: IRoundStep): void;
41
+ checkValidity(): boolean;
42
+ toJSON(): IRoundStep;
43
+ }
@@ -0,0 +1,52 @@
1
+ import { HttpStep } from "../../HttpStep.js";
2
+ export const RoundStepKind = 'HttpAction#Round';
3
+ /**
4
+ * Formats the input as a number using fixed-point notation.
5
+ */
6
+ export class RoundStep extends HttpStep {
7
+ kind = RoundStepKind;
8
+ /**
9
+ * The number of digits to appear after the decimal point; should be a value between 0 and 100, inclusive.
10
+ * If this argument is omitted, it is treated as 0.
11
+ * See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/toFixed.
12
+ */
13
+ precision;
14
+ constructor(precisionOrInit) {
15
+ super();
16
+ if (typeof precisionOrInit === 'object') {
17
+ const typed = precisionOrInit;
18
+ this.new(typed);
19
+ }
20
+ else if (typeof precisionOrInit === 'number') {
21
+ this.new({
22
+ kind: RoundStepKind,
23
+ precision: precisionOrInit,
24
+ enabled: true,
25
+ });
26
+ }
27
+ }
28
+ new(init) {
29
+ super.new(init);
30
+ this.kind = RoundStepKind;
31
+ if (typeof init.precision === 'number') {
32
+ this.precision = init.precision;
33
+ }
34
+ else {
35
+ this.precision = undefined;
36
+ }
37
+ }
38
+ checkValidity() {
39
+ return true;
40
+ }
41
+ toJSON() {
42
+ const result = {
43
+ ...super.toJSON(),
44
+ kind: RoundStepKind,
45
+ };
46
+ if (typeof this.precision === 'number') {
47
+ result.precision = this.precision;
48
+ }
49
+ return result;
50
+ }
51
+ }
52
+ //# sourceMappingURL=RoundStep.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RoundStep.js","sourceRoot":"","sources":["../../../../../../src/models/http-actions/steps/transformation/RoundStep.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAa,MAAM,mBAAmB,CAAC;AAExD,MAAM,CAAC,MAAM,aAAa,GAAG,kBAAkB,CAAC;AAehD;;GAEG;AACH,MAAM,OAAO,SAAU,SAAQ,QAAQ;IAC5B,IAAI,GAAG,aAAa,CAAC;IAE9B;;;;OAIG;IACH,SAAS,CAAU;IAmBnB,YAAY,eAAqC;QAC/C,KAAK,EAAE,CAAC;QACR,IAAI,OAAO,eAAe,KAAK,QAAQ,EAAE;YACvC,MAAM,KAAK,GAAG,eAA6B,CAAC;YAC5C,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;SACjB;aAAM,IAAI,OAAO,eAAe,KAAK,QAAQ,EAAE;YAC9C,IAAI,CAAC,GAAG,CAAC;gBACP,IAAI,EAAE,aAAa;gBACnB,SAAS,EAAE,eAAe;gBAC1B,OAAO,EAAE,IAAI;aACd,CAAC,CAAC;SACJ;IACH,CAAC;IAEQ,GAAG,CAAC,IAAgB;QAC3B,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QAChB,IAAI,CAAC,IAAI,GAAG,aAAa,CAAC;QAC1B,IAAI,OAAO,IAAI,CAAC,SAAS,KAAK,QAAQ,EAAE;YACtC,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC;SACjC;aAAM;YACL,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;SAC5B;IACH,CAAC;IAED,aAAa;QACX,OAAO,IAAI,CAAC;IACd,CAAC;IAEQ,MAAM;QACb,MAAM,MAAM,GAAe;YACzB,GAAG,KAAK,CAAC,MAAM,EAAE;YACjB,IAAI,EAAE,aAAa;SACpB,CAAC;QACF,IAAI,OAAO,IAAI,CAAC,SAAS,KAAK,QAAQ,EAAE;YACtC,MAAM,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC;SACnC;QACD,OAAO,MAAM,CAAC;IAChB,CAAC;CACF"}
@@ -0,0 +1,38 @@
1
+ import { HttpStep, IHttpStep } from "../../HttpStep.js";
2
+ export declare const SubstringStepKind = "HttpAction#Substring";
3
+ /**
4
+ * Returns the part of the string from the start index up to and excluding the end index, or to the end of the string if no end index is supplied.
5
+ * See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/substring
6
+ */
7
+ export interface ISubstringStep extends IHttpStep {
8
+ kind: typeof SubstringStepKind;
9
+ /**
10
+ * The index of the first character to include in the returned substring.
11
+ */
12
+ start?: number;
13
+ /**
14
+ * The index of the first character to exclude from the returned substring.
15
+ */
16
+ end?: number;
17
+ }
18
+ /**
19
+ * Returns the part of the string from the start index up to and excluding the end index, or to the end of the string if no end index is supplied.
20
+ * See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/substring
21
+ */
22
+ export declare class SubstringStep extends HttpStep {
23
+ kind: string;
24
+ /**
25
+ * The index of the first character to include in the returned substring.
26
+ */
27
+ start?: number;
28
+ /**
29
+ * The index of the first character to exclude from the returned substring.
30
+ */
31
+ end?: number;
32
+ constructor(start: number, end?: number);
33
+ constructor(init: ISubstringStep);
34
+ constructor();
35
+ new(init: ISubstringStep): void;
36
+ checkValidity(): boolean;
37
+ toJSON(): ISubstringStep;
38
+ }
@@ -0,0 +1,65 @@
1
+ import { HttpStep } from "../../HttpStep.js";
2
+ export const SubstringStepKind = 'HttpAction#Substring';
3
+ /**
4
+ * Returns the part of the string from the start index up to and excluding the end index, or to the end of the string if no end index is supplied.
5
+ * See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/substring
6
+ */
7
+ export class SubstringStep extends HttpStep {
8
+ kind = SubstringStepKind;
9
+ /**
10
+ * The index of the first character to include in the returned substring.
11
+ */
12
+ start;
13
+ /**
14
+ * The index of the first character to exclude from the returned substring.
15
+ */
16
+ end;
17
+ constructor(startOrInit, end) {
18
+ super();
19
+ if (typeof startOrInit === 'object') {
20
+ const typed = startOrInit;
21
+ this.new(typed);
22
+ }
23
+ else if (typeof startOrInit === 'number') {
24
+ this.new({
25
+ kind: SubstringStepKind,
26
+ start: startOrInit,
27
+ end,
28
+ enabled: true,
29
+ });
30
+ }
31
+ }
32
+ new(init) {
33
+ super.new(init);
34
+ this.kind = SubstringStepKind;
35
+ if (typeof init.start === 'number') {
36
+ this.start = init.start;
37
+ }
38
+ else {
39
+ this.start = undefined;
40
+ }
41
+ if (typeof init.end === 'number') {
42
+ this.end = init.end;
43
+ }
44
+ else {
45
+ this.end = undefined;
46
+ }
47
+ }
48
+ checkValidity() {
49
+ return typeof this.start === 'number';
50
+ }
51
+ toJSON() {
52
+ const result = {
53
+ ...super.toJSON(),
54
+ kind: SubstringStepKind,
55
+ };
56
+ if (typeof this.start === 'number') {
57
+ result.start = this.start;
58
+ }
59
+ if (typeof this.end === 'number') {
60
+ result.end = this.end;
61
+ }
62
+ return result;
63
+ }
64
+ }
65
+ //# sourceMappingURL=SubstringStep.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SubstringStep.js","sourceRoot":"","sources":["../../../../../../src/models/http-actions/steps/transformation/SubstringStep.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAa,MAAM,mBAAmB,CAAC;AAExD,MAAM,CAAC,MAAM,iBAAiB,GAAG,sBAAsB,CAAC;AAoBxD;;;GAGG;AACH,MAAM,OAAO,aAAc,SAAQ,QAAQ;IAChC,IAAI,GAAG,iBAAiB,CAAC;IAElC;;OAEG;IACH,KAAK,CAAU;IAEf;;OAEG;IACH,GAAG,CAAU;IAQb,YAAY,WAAqC,EAAE,GAAY;QAC7D,KAAK,EAAE,CAAC;QACR,IAAI,OAAO,WAAW,KAAK,QAAQ,EAAE;YACnC,MAAM,KAAK,GAAG,WAA6B,CAAC;YAC5C,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;SACjB;aAAM,IAAI,OAAO,WAAW,KAAK,QAAQ,EAAE;YAC1C,IAAI,CAAC,GAAG,CAAC;gBACP,IAAI,EAAE,iBAAiB;gBACvB,KAAK,EAAE,WAAW;gBAClB,GAAG;gBACH,OAAO,EAAE,IAAI;aACd,CAAC,CAAC;SACJ;IACH,CAAC;IAEQ,GAAG,CAAC,IAAoB;QAC/B,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QAChB,IAAI,CAAC,IAAI,GAAG,iBAAiB,CAAC;QAC9B,IAAI,OAAO,IAAI,CAAC,KAAK,KAAK,QAAQ,EAAE;YAClC,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;SACzB;aAAM;YACL,IAAI,CAAC,KAAK,GAAG,SAAS,CAAC;SACxB;QACD,IAAI,OAAO,IAAI,CAAC,GAAG,KAAK,QAAQ,EAAE;YAChC,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC;SACrB;aAAM;YACL,IAAI,CAAC,GAAG,GAAG,SAAS,CAAC;SACtB;IACH,CAAC;IAED,aAAa;QACX,OAAO,OAAO,IAAI,CAAC,KAAK,KAAK,QAAQ,CAAC;IACxC,CAAC;IAEQ,MAAM;QACb,MAAM,MAAM,GAAmB;YAC7B,GAAG,KAAK,CAAC,MAAM,EAAE;YACjB,IAAI,EAAE,iBAAiB;SACxB,CAAC;QACF,IAAI,OAAO,IAAI,CAAC,KAAK,KAAK,QAAQ,EAAE;YAClC,MAAM,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;SAC3B;QACD,IAAI,OAAO,IAAI,CAAC,GAAG,KAAK,QAAQ,EAAE;YAChC,MAAM,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC;SACvB;QACD,OAAO,MAAM,CAAC;IAChB,CAAC;CACF"}
@@ -0,0 +1,20 @@
1
+ import { HttpStep, IHttpStep } from "../../HttpStep.js";
2
+ export declare const TrimStepKind = "HttpAction#Trim";
3
+ /**
4
+ * Reads the input and trims it.
5
+ * See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/Trim.
6
+ */
7
+ export interface ITrimStep extends IHttpStep {
8
+ kind: typeof TrimStepKind;
9
+ }
10
+ /**
11
+ * Reads the input and trims it.
12
+ * See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/Trim.
13
+ */
14
+ export declare class TrimStep extends HttpStep {
15
+ kind: string;
16
+ constructor(init?: ITrimStep);
17
+ new(init: ITrimStep): void;
18
+ checkValidity(): boolean;
19
+ toJSON(): ITrimStep;
20
+ }
@@ -0,0 +1,30 @@
1
+ import { HttpStep } from "../../HttpStep.js";
2
+ export const TrimStepKind = 'HttpAction#Trim';
3
+ /**
4
+ * Reads the input and trims it.
5
+ * See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/Trim.
6
+ */
7
+ export class TrimStep extends HttpStep {
8
+ kind = TrimStepKind;
9
+ constructor(init) {
10
+ super();
11
+ if (typeof init === 'object') {
12
+ this.new(init);
13
+ }
14
+ }
15
+ new(init) {
16
+ super.new(init);
17
+ this.kind = TrimStepKind;
18
+ }
19
+ checkValidity() {
20
+ return true;
21
+ }
22
+ toJSON() {
23
+ const result = {
24
+ ...super.toJSON(),
25
+ kind: TrimStepKind,
26
+ };
27
+ return result;
28
+ }
29
+ }
30
+ //# sourceMappingURL=TrimStep.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TrimStep.js","sourceRoot":"","sources":["../../../../../../src/models/http-actions/steps/transformation/TrimStep.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAa,MAAM,mBAAmB,CAAC;AAExD,MAAM,CAAC,MAAM,YAAY,GAAG,iBAAiB,CAAC;AAU9C;;;GAGG;AACH,MAAM,OAAO,QAAS,SAAQ,QAAQ;IAC3B,IAAI,GAAG,YAAY,CAAC;IAE7B,YAAY,IAAgB;QAC1B,KAAK,EAAE,CAAC;QACR,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE;YAC5B,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;SAChB;IACH,CAAC;IAEQ,GAAG,CAAC,IAAe;QAC1B,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QAChB,IAAI,CAAC,IAAI,GAAG,YAAY,CAAC;IAC3B,CAAC;IAED,aAAa;QACX,OAAO,IAAI,CAAC;IACd,CAAC;IAEQ,MAAM;QACb,MAAM,MAAM,GAAc;YACxB,GAAG,KAAK,CAAC,MAAM,EAAE;YACjB,IAAI,EAAE,YAAY;SACnB,CAAC;QACF,OAAO,MAAM,CAAC;IAChB,CAAC;CACF"}
@@ -0,0 +1,6 @@
1
+ export * from './AsLowerCaseStep.js';
2
+ export * from './AsNumberStep.js';
3
+ export * from './AsUpperCaseStep.js';
4
+ export * from './RoundStep.js';
5
+ export * from './SubstringStep.js';
6
+ export * from './TrimStep.js';
@@ -0,0 +1,7 @@
1
+ export * from './AsLowerCaseStep.js';
2
+ export * from './AsNumberStep.js';
3
+ export * from './AsUpperCaseStep.js';
4
+ export * from './RoundStep.js';
5
+ export * from './SubstringStep.js';
6
+ export * from './TrimStep.js';
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/models/http-actions/steps/transformation/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import { IProjectRunnerOptions } from "../runtime/node/InteropInterfaces.js";
2
2
  import { Kind as HttpProjectKind, HttpProject, IHttpProject } from "../models/HttpProject.js";
3
3
  import Proxy, { IProxyResult } from "./Proxy.js";
4
- import { IProjectExecutionLog } from "../runtime/reporters/Reporter.js";
4
+ import { IProjectExecutionLog } from "../models/ProjectExecution.js";
5
5
  interface ProxyInit {
6
6
  kind: typeof HttpProjectKind;
7
7
  /**
@@ -1,6 +1,6 @@
1
1
  /// <reference types="node" />
2
2
  import { IRequestLog } from "../models/RequestLog.js";
3
- import { IProjectExecutionLog } from "../runtime/reporters/Reporter.js";
3
+ import { IProjectExecutionLog } from "../models/ProjectExecution.js";
4
4
  export interface IProxyResult<T = IProjectExecutionLog | IRequestLog> {
5
5
  /**
6
6
  * The result of the proxy execution. It can be project execution log or a request log.
@@ -1,4 +1,4 @@
1
- import { IProjectExecutionLog } from "../runtime/reporters/Reporter.js";
1
+ import { IProjectExecutionLog } from "../models/ProjectExecution.js";
2
2
  import { IRequestLog } from "../models/RequestLog.js";
3
3
  import { IHttpProjectProxyInit, IHttpProjectStoreProxyInit } from "./HttpProjectProxy.js";
4
4
  import { IProxyResult } from "./Proxy.js";
@@ -3,8 +3,9 @@ import { IRequestAuthorization } from '../models/RequestAuthorization.js';
3
3
  import { IRequestConfig } from '../models/RequestConfig.js';
4
4
  import Proxy, { IProxyResult } from "./Proxy.js";
5
5
  import { HttpCertificate } from '../models/ClientCertificate.js';
6
- import { IHttpActionFlow } from '../models/http-actions/HttpActions.js';
6
+ import { IHttpFlow } from '../models/http-actions/HttpFlows.js';
7
7
  import { IRequestLog } from "../models/RequestLog.js";
8
+ import { IHttpAssertion } from '../models/http-actions/HttpAssertion.js';
8
9
  export interface IRequestProxyInit {
9
10
  kind: typeof HttpRequestKind;
10
11
  /**
@@ -30,7 +31,11 @@ export interface IRequestProxyInit {
30
31
  /**
31
32
  * The request flows to execute with the request.
32
33
  */
33
- flows?: IHttpActionFlow[];
34
+ flows?: IHttpFlow[];
35
+ /**
36
+ * Assertions to execute with the request.
37
+ */
38
+ assertions?: IHttpAssertion[];
34
39
  }
35
40
  /**
36
41
  * Proxies a single HTTP request
@@ -29,7 +29,7 @@ export default class RequestProxy extends Proxy {
29
29
  }
30
30
  async execute() {
31
31
  const data = this.init;
32
- const { request, authorization, certificate, config = {}, variables = {}, flows } = data;
32
+ const { request, authorization, certificate, config = {}, variables = {}, flows, assertions } = data;
33
33
  const factory = new HttpRequestRunner();
34
34
  factory.variables = variables;
35
35
  factory.logger = new DummyLogger();
@@ -40,6 +40,9 @@ export default class RequestProxy extends Proxy {
40
40
  if (Array.isArray(flows) && flows.length) {
41
41
  factory.flows = flows;
42
42
  }
43
+ if (Array.isArray(assertions) && assertions.length) {
44
+ factory.assertions = assertions;
45
+ }
43
46
  if (certificate) {
44
47
  factory.certificates = [certificate];
45
48
  }
@@ -1 +1 @@
1
- {"version":3,"file":"RequestProxy.js","sourceRoot":"","sources":["../../../src/proxy/RequestProx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
@@ -1,11 +1,11 @@
1
- import { ActionOperatorEnum } from '../../models/http-actions/HttpActions.js';
1
+ import { AssertionEnum } from "../../models/http-actions/HttpAssertion";
2
2
  /**
3
3
  * Checks if values equal.
4
4
  * @param value Value to compare
5
5
  * @param condition Comparator value
6
6
  * @returns True if objects matches.
7
7
  */
8
- export declare function isEqual(value: any, condition: any): boolean;
8
+ export declare function isEqual(value: unknown, condition: unknown): boolean;
9
9
  /**
10
10
  * Opposite of `isEqual()`.
11
11
  *
@@ -13,7 +13,7 @@ export declare function isEqual(value: any, condition: any): boolean;
13
13
  * @param condition Comparator value
14
14
  * @return False if objects matches.
15
15
  */
16
- export declare function isNotEqual(value: any, condition: any): boolean;
16
+ export declare function isNotEqual(value: unknown, condition: unknown): boolean;
17
17
  /**
18
18
  * Checks if value is less than comparator.
19
19
  *
@@ -21,7 +21,7 @@ export declare function isNotEqual(value: any, condition: any): boolean;
21
21
  * @param condition Comparator value
22
22
  * @returns True if value is less than condition.
23
23
  */
24
- export declare function isLessThan(value: any, condition: any): boolean;
24
+ export declare function isLessThan(value: unknown, condition: unknown): boolean;
25
25
  /**
26
26
  * Checks if value is less than or equal to comparator.
27
27
  *
@@ -29,7 +29,7 @@ export declare function isLessThan(value: any, condition: any): boolean;
29
29
  * @param condition Comparator value
30
30
  * @returns True if value is less than or equal to `condition`.
31
31
  */
32
- export declare function isLessThanEqual(value: any, condition: any): boolean;
32
+ export declare function isLessThanEqual(value: unknown, condition: unknown): boolean;
33
33
  /**
34
34
  * Checks if value is greater than comparator.
35
35
  *
@@ -37,7 +37,7 @@ export declare function isLessThanEqual(value: any, condition: any): boolean;
37
37
  * @param condition Comparator value
38
38
  * @returns True if value is greater than `condition`.
39
39
  */
40
- export declare function isGreaterThan(value: any, condition: any): boolean;
40
+ export declare function isGreaterThan(value: unknown, condition: unknown): boolean;
41
41
  /**
42
42
  * Checks if value is greater than or equal to comparator.
43
43
  *
@@ -45,7 +45,7 @@ export declare function isGreaterThan(value: any, condition: any): boolean;
45
45
  * @param condition Comparator value
46
46
  * @returns True if value is greater than or equal to `condition`.
47
47
  */
48
- export declare function isGreaterThanEqual(value: any, condition: any): boolean;
48
+ export declare function isGreaterThanEqual(value: unknown, condition: unknown): boolean;
49
49
  /**
50
50
  * Checks if value contains the `condition`.
51
51
  * It works on strings, arrays and objects.
@@ -54,7 +54,7 @@ export declare function isGreaterThanEqual(value: any, condition: any): boolean;
54
54
  * @param condition Comparator value
55
55
  * @returns True if value contains the `condition`.
56
56
  */
57
- export declare function contains(value: any, condition: any): boolean;
57
+ export declare function contains(value: unknown, condition: unknown): boolean;
58
58
  /**
59
59
  * Checks if `value` can be tested against regular expression.
60
60
  *
@@ -62,7 +62,7 @@ export declare function contains(value: any, condition: any): boolean;
62
62
  * @param condition Comparator value - regex string.
63
63
  * @returns Value of calling `test()` function on string.
64
64
  */
65
- export declare function isRegex(value: any, condition: any): boolean;
65
+ export declare function isRegex(value: unknown, condition: unknown): boolean;
66
66
  /**
67
67
  * Checks if given condition is satisfied by both value and operator.
68
68
  *
@@ -71,4 +71,4 @@ export declare function isRegex(value: any, condition: any): boolean;
71
71
  * @param condition Value to compare.
72
72
  * @returns True if the condition is satisfied and false otherwise.
73
73
  */
74
- export declare function checkCondition(value: any, operator: ActionOperatorEnum, condition: string | undefined): boolean;
74
+ export declare function checkCondition(value: unknown, operator: AssertionEnum, condition: string | undefined): boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"ConditionCheck.js","sourceRoot":"","sources":["../../../../src/runtime/http-runner/ConditionCheck.ts"],"names":[],"mappings":"AAGA;;;;;GAKG;AACH,MAAM,UAAU,OAAO,CAAC,KAAU,EAAE,SAAc;IAChD,IAAI,KAAK,KAAK,SAAS,IAAI,MAAM,CAAC,KAAK,CAAC,KAAK,MAAM,CAAC,SAAS,CAAC,EAAE;QAC9D,OAAO,IAAI,CAAC;KACb;IACD,IAAI,UAAU,GAAG,KAAK,CAAC;IACvB,IAAI,cAAc,GAAG,SAAS,CAAC;IA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AK,iBAAiB;YACpB,OAAO,eAAe,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC;QAC3C,KAAK,UAAU;YACb,OAAO,QAAQ,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC;QACpC,KAAK,OAAO;YACV,OAAO,OAAO,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC;QACnC;YACE,OAAO,KAAK,CAAC;KAChB;AACH,CAAC"}
1
+ {"version":3,"file":"ConditionCheck.js","sourceRoot":"","sources":["../../../../src/runtime/http-runner/ConditionCheck.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,MAAM,UAAU,OAAO,CAAC,KAAc,EAAE,SAAkB;IACxD,IAAI,KAAK,KAAK,SAAS,IAAI,MAAM,CAAC,KAAK,CAAC,KAAK,MAAM,CAAC,SAAS,CAAC,EAAE;QAC9D,OAAO,IAAI,CAAC;KACb;IACD,IAAI,UAAU,GAAG,KAAK,CAAC;IACvB,IAAI,cAAc,GAAG,SAAS,CAAC;IAC/B,IAAI,OAAO,KAAK,KAAK,WAAW,EAAE;QAChC,UAAU,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;KAC5B;IACD,IAAI,OAAO,SAAS,KAAK,WAAW,EAAE;QACpC,cAAc,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC;KACpC;IACD,MAAM,oBAAoB,GAAG,MAAM,CAAC,cAAc,CAAC,CAAC;IACpD,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,oBAAoB,CAAC,EAAE;QACvC,cAAc,GAAG,oBAAoB,CAAC;QACtC,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC;KACjC;IACD,OAAO,cAAc,KAAK,UAAU,CAAC;AACvC,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,UAAU,CAAC,KAAc,EAAE,SAAkB;IAC3D,OAAO,CAAC,OAAO,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC;AACpC,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,UAA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AE;QACV,OAAO,KAAK,CAAC;KACd;IACD,MAAM,MAAM,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;IAC7B,OAAO,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;AACzB,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,cAAc,CAAC,KAAc,EAAE,QAAuB,EAAE,SAA6B;IACnG,QAAQ,QAAQ,EAAE;QAChB,KAAK,OAAO;YACV,OAAO,OAAO,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC;QACnC,KAAK,WAAW;YACd,OAAO,UAAU,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC;QACtC,KAAK,cAAc;YACjB,OAAO,aAAa,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC;QACzC,KAAK,oBAAoB;YACvB,OAAO,kBAAkB,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC;QAC9C,KAAK,WAAW;YACd,OAAO,UAAU,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC;QACtC,KAAK,iBAAiB;YACpB,OAAO,eAAe,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC;QAC3C,KAAK,UAAU;YACb,OAAO,QAAQ,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC;QACpC,KAAK,OAAO;YACV,OAAO,OAAO,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC;QACnC;YACE,OAAO,KAAK,CAAC;KAChB;AACH,CAAC"}
@@ -0,0 +1,75 @@
1
+ import { HttpRequest } from "../../models/HttpRequest.js";
2
+ import { ISentRequest } from "../../models/SentRequest.js";
3
+ import { IResponse } from "../../models/Response.js";
4
+ import { ErrorResponse, IErrorResponse } from "../../models/ErrorResponse.js";
5
+ import { AssertionResult, IHttpAssertion } from "../../models/http-actions/HttpAssertion.js";
6
+ import { IHttpStep } from "../../models/http-actions/HttpStep.js";
7
+ import { FlowValue } from "./HttpFlowRunner.js";
8
+ import { FlowRequestDataEnum, FlowResponseDataEnum } from "../../models/http-actions/HttpFlows.js";
9
+ import { IReadDataSourceStep } from "../../models/http-actions/steps/data/ReadDataSourceStep.js";
10
+ import { IReadValueStep } from "../../models/http-actions/steps/data/ReadValueStep.js";
11
+ import { HttpResponse } from "../../models/HttpResponse.js";
12
+ import { IRoundStep } from "../../models/http-actions/steps/transformation/RoundStep.js";
13
+ import { ISubstringStep } from "../../models/http-actions/steps/transformation/SubstringStep.js";
14
+ import { IEqualAssertion } from "../../models/http-actions/steps/assertion/EqualAssertion.js";
15
+ import { INotEqualAssertion } from "../../models/http-actions/steps/assertion/NotEqualAssertion.js";
16
+ import { IGreaterThanAssertion } from "../../models/http-actions/steps/assertion/GreaterThanAssertion.js";
17
+ import { ILessThanAssertion } from "../../models/http-actions/steps/assertion/LessThanAssertion.js";
18
+ import { IIncludesAssertion } from "../../models/http-actions/steps/assertion/IncludesAssertion.js";
19
+ import { INotIncludesAssertion } from "../../models/http-actions/steps/assertion/NotIncludesAssertion.js";
20
+ import { IToBeAssertion } from '../../models/http-actions/steps/assertion/ToBeAssertion.js';
21
+ import { INotToBeAssertion } from '../../models/http-actions/steps/assertion/NotToBeAssertion.js';
22
+ import { ILengthOfAssertion } from '../../models/http-actions/steps/assertion/LengthOfAssertion.js';
23
+ interface IStepValue {
24
+ value: FlowValue;
25
+ type?: FlowRequestDataEnum | FlowResponseDataEnum;
26
+ bodyMime?: string;
27
+ }
28
+ /**
29
+ * A class that perform assertions that have been defined on an HTTP request.
30
+ */
31
+ export declare class HttpAssertionRunner {
32
+ report: AssertionResult[];
33
+ /**
34
+ *
35
+ * @param request The request object sent to the server
36
+ * @param response The generated response
37
+ * @param assertions The list of assertions to perform.
38
+ */
39
+ run(request: ISentRequest, response: IResponse | IErrorResponse, assertions: IHttpAssertion[]): Promise<AssertionResult[]>;
40
+ protected runAssertion(request: ISentRequest, response: IResponse | IErrorResponse, assertion: IHttpAssertion): Promise<void>;
41
+ protected createDescription(steps: IHttpStep[]): string;
42
+ protected getDataSourceStepLabel(step: IReadDataSourceStep): string;
43
+ protected getValueStepLabel(step: IReadValueStep): string;
44
+ protected runStep(request: ISentRequest, response: IResponse | IErrorResponse, step: IHttpStep, input: IStepValue): Promise<IStepValue>;
45
+ /**
46
+ * Produces the data source.
47
+ */
48
+ protected readDataSource(request: ISentRequest, response: IResponse | IErrorResponse, step: IReadDataSourceStep): Promise<IStepValue>;
49
+ protected processBody(input: HttpRequest | HttpResponse | ErrorResponse): Promise<IStepValue>;
50
+ /**
51
+ * Produces the value from the current input.
52
+ */
53
+ protected readValue(input: IStepValue, step: IReadValueStep): Promise<IStepValue>;
54
+ protected toLowerCase(input: IStepValue): Promise<IStepValue>;
55
+ protected toUpperCase(input: IStepValue): Promise<IStepValue>;
56
+ protected asNumber(input: IStepValue): Promise<IStepValue>;
57
+ protected round(input: IStepValue, step: IRoundStep): Promise<IStepValue>;
58
+ protected trim(input: IStepValue): Promise<IStepValue>;
59
+ protected substring(input: IStepValue, step: ISubstringStep): Promise<IStepValue>;
60
+ protected assertEqual(input: IStepValue, step: IEqualAssertion): Promise<IStepValue>;
61
+ protected assertNotEqual(input: IStepValue, step: INotEqualAssertion): Promise<IStepValue>;
62
+ protected assertGreaterThan(input: IStepValue, step: IGreaterThanAssertion): Promise<IStepValue>;
63
+ protected assertLessThan(input: IStepValue, step: ILessThanAssertion): Promise<IStepValue>;
64
+ protected assertIncludes(input: IStepValue, step: IIncludesAssertion): Promise<IStepValue>;
65
+ protected assertNotIncludes(input: IStepValue, step: INotIncludesAssertion): Promise<IStepValue>;
66
+ protected assertOk(input: IStepValue): Promise<IStepValue>;
67
+ protected assertNotOk(input: IStepValue): Promise<IStepValue>;
68
+ protected toBe(input: IStepValue, step: IToBeAssertion): Promise<IStepValue>;
69
+ protected notToBe(input: IStepValue, step: INotToBeAssertion): Promise<IStepValue>;
70
+ protected isEmpty(input: IStepValue): Promise<IStepValue>;
71
+ protected isNotEmpty(input: IStepValue): Promise<IStepValue>;
72
+ protected lengthOf(input: IStepValue, step: ILengthOfAssertion): Promise<IStepValue>;
73
+ protected isPrimitive(value: unknown): boolean;
74
+ }
75
+ export {};