@contract-case/case-connector 0.7.3 → 0.7.5

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 (245) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/dist/bin/case-connector.d.ts +5 -0
  3. package/dist/bin/case-connector.d.ts.map +1 -1
  4. package/dist/bin/case-connector.js +7 -2
  5. package/dist/bin/case-connector.js.map +1 -1
  6. package/dist/package.json +99 -0
  7. package/dist/src/connectors/case-boundary/definer.d.ts +1 -1
  8. package/dist/src/connectors/case-boundary/definer.d.ts.map +1 -1
  9. package/dist/src/connectors/case-boundary/definer.js +2 -2
  10. package/dist/src/connectors/case-boundary/definer.js.map +1 -1
  11. package/dist/src/connectors/case-boundary/internals/BoundaryContractDefiner.d.ts +32 -0
  12. package/dist/src/connectors/case-boundary/internals/BoundaryContractDefiner.d.ts.map +1 -0
  13. package/dist/src/connectors/case-boundary/internals/BoundaryContractDefiner.js +128 -0
  14. package/dist/src/connectors/case-boundary/internals/BoundaryContractDefiner.js.map +1 -0
  15. package/dist/src/connectors/case-boundary/internals/BoundaryContractVerifier.d.ts +50 -0
  16. package/dist/src/connectors/case-boundary/internals/BoundaryContractVerifier.d.ts.map +1 -0
  17. package/dist/src/connectors/case-boundary/internals/BoundaryContractVerifier.js +136 -0
  18. package/dist/src/connectors/case-boundary/internals/BoundaryContractVerifier.js.map +1 -0
  19. package/dist/src/connectors/case-boundary/internals/boundary/BoundaryCrashMessage.d.ts +10 -0
  20. package/dist/src/connectors/case-boundary/internals/boundary/BoundaryCrashMessage.d.ts.map +1 -0
  21. package/dist/src/connectors/case-boundary/internals/boundary/BoundaryCrashMessage.js +41 -0
  22. package/dist/src/connectors/case-boundary/internals/boundary/BoundaryCrashMessage.js.map +1 -0
  23. package/dist/src/connectors/case-boundary/internals/boundary/ConfigLogLevelConstants.d.ts +32 -0
  24. package/dist/src/connectors/case-boundary/internals/boundary/ConfigLogLevelConstants.d.ts.map +1 -0
  25. package/dist/src/connectors/case-boundary/internals/boundary/ConfigLogLevelConstants.js +36 -0
  26. package/dist/src/connectors/case-boundary/internals/boundary/ConfigLogLevelConstants.js.map +1 -0
  27. package/dist/src/connectors/case-boundary/internals/boundary/ConfigPublishConstants.d.ts +20 -0
  28. package/dist/src/connectors/case-boundary/internals/boundary/ConfigPublishConstants.d.ts.map +1 -0
  29. package/dist/src/connectors/case-boundary/internals/boundary/ConfigPublishConstants.js +24 -0
  30. package/dist/src/connectors/case-boundary/internals/boundary/ConfigPublishConstants.js.map +1 -0
  31. package/dist/src/connectors/case-boundary/internals/boundary/ILogPrinter.d.ts +145 -0
  32. package/dist/src/connectors/case-boundary/internals/boundary/ILogPrinter.d.ts.map +1 -0
  33. package/dist/src/connectors/case-boundary/internals/boundary/ILogPrinter.js +3 -0
  34. package/dist/src/connectors/case-boundary/internals/boundary/ILogPrinter.js.map +1 -0
  35. package/dist/src/connectors/case-boundary/internals/boundary/IRunTestCallback.d.ts +41 -0
  36. package/dist/src/connectors/case-boundary/internals/boundary/IRunTestCallback.d.ts.map +1 -0
  37. package/dist/src/connectors/case-boundary/internals/boundary/IRunTestCallback.js +3 -0
  38. package/dist/src/connectors/case-boundary/internals/boundary/IRunTestCallback.js.map +1 -0
  39. package/dist/src/connectors/case-boundary/internals/boundary/ITriggerFunction.d.ts +19 -0
  40. package/dist/src/connectors/case-boundary/internals/boundary/ITriggerFunction.d.ts.map +1 -0
  41. package/dist/src/connectors/case-boundary/internals/boundary/ITriggerFunction.js +3 -0
  42. package/dist/src/connectors/case-boundary/internals/boundary/ITriggerFunction.js.map +1 -0
  43. package/dist/src/connectors/case-boundary/internals/boundary/Result/BoundaryFailure.d.ts +15 -0
  44. package/dist/src/connectors/case-boundary/internals/boundary/Result/BoundaryFailure.d.ts.map +1 -0
  45. package/dist/src/connectors/case-boundary/internals/boundary/Result/BoundaryFailure.js +25 -0
  46. package/dist/src/connectors/case-boundary/internals/boundary/Result/BoundaryFailure.js.map +1 -0
  47. package/dist/src/connectors/case-boundary/internals/boundary/Result/BoundaryFailureKindConstants.d.ts +32 -0
  48. package/dist/src/connectors/case-boundary/internals/boundary/Result/BoundaryFailureKindConstants.d.ts.map +1 -0
  49. package/dist/src/connectors/case-boundary/internals/boundary/Result/BoundaryFailureKindConstants.js +37 -0
  50. package/dist/src/connectors/case-boundary/internals/boundary/Result/BoundaryFailureKindConstants.js.map +1 -0
  51. package/dist/src/connectors/case-boundary/internals/boundary/Result/BoundaryResult.d.ts +15 -0
  52. package/dist/src/connectors/case-boundary/internals/boundary/Result/BoundaryResult.d.ts.map +1 -0
  53. package/dist/src/connectors/case-boundary/internals/boundary/Result/BoundaryResult.js +20 -0
  54. package/dist/src/connectors/case-boundary/internals/boundary/Result/BoundaryResult.js.map +1 -0
  55. package/dist/src/connectors/case-boundary/internals/boundary/Result/BoundaryResultTypeConstants.d.ts +35 -0
  56. package/dist/src/connectors/case-boundary/internals/boundary/Result/BoundaryResultTypeConstants.d.ts.map +1 -0
  57. package/dist/src/connectors/case-boundary/internals/boundary/Result/BoundaryResultTypeConstants.js +39 -0
  58. package/dist/src/connectors/case-boundary/internals/boundary/Result/BoundaryResultTypeConstants.js.map +1 -0
  59. package/dist/src/connectors/case-boundary/internals/boundary/Result/BoundarySuccess.d.ts +12 -0
  60. package/dist/src/connectors/case-boundary/internals/boundary/Result/BoundarySuccess.d.ts.map +1 -0
  61. package/dist/src/connectors/case-boundary/internals/boundary/Result/BoundarySuccess.js +19 -0
  62. package/dist/src/connectors/case-boundary/internals/boundary/Result/BoundarySuccess.js.map +1 -0
  63. package/dist/src/connectors/case-boundary/internals/boundary/Result/BoundarySuccessWithAny.d.ts +15 -0
  64. package/dist/src/connectors/case-boundary/internals/boundary/Result/BoundarySuccessWithAny.d.ts.map +1 -0
  65. package/dist/src/connectors/case-boundary/internals/boundary/Result/BoundarySuccessWithAny.js +23 -0
  66. package/dist/src/connectors/case-boundary/internals/boundary/Result/BoundarySuccessWithAny.js.map +1 -0
  67. package/dist/src/connectors/case-boundary/internals/boundary/Result/BoundarySuccessWithMap.d.ts +13 -0
  68. package/dist/src/connectors/case-boundary/internals/boundary/Result/BoundarySuccessWithMap.d.ts.map +1 -0
  69. package/dist/src/connectors/case-boundary/internals/boundary/Result/BoundarySuccessWithMap.js +21 -0
  70. package/dist/src/connectors/case-boundary/internals/boundary/Result/BoundarySuccessWithMap.js.map +1 -0
  71. package/dist/src/connectors/case-boundary/internals/boundary/Result/index.d.ts +8 -0
  72. package/dist/src/connectors/case-boundary/internals/boundary/Result/index.d.ts.map +1 -0
  73. package/dist/src/connectors/case-boundary/internals/boundary/Result/index.js +24 -0
  74. package/dist/src/connectors/case-boundary/internals/boundary/Result/index.js.map +1 -0
  75. package/dist/src/connectors/case-boundary/internals/boundary/StateHandler.d.ts +28 -0
  76. package/dist/src/connectors/case-boundary/internals/boundary/StateHandler.d.ts.map +1 -0
  77. package/dist/src/connectors/case-boundary/internals/boundary/StateHandler.js +36 -0
  78. package/dist/src/connectors/case-boundary/internals/boundary/StateHandler.js.map +1 -0
  79. package/dist/src/connectors/case-boundary/internals/boundary/config.types.d.ts +143 -0
  80. package/dist/src/connectors/case-boundary/internals/boundary/config.types.d.ts.map +1 -0
  81. package/dist/src/connectors/case-boundary/internals/boundary/config.types.js +3 -0
  82. package/dist/src/connectors/case-boundary/internals/boundary/config.types.js.map +1 -0
  83. package/dist/src/connectors/case-boundary/internals/boundary/index.d.ts +10 -0
  84. package/dist/src/connectors/case-boundary/internals/boundary/index.d.ts.map +1 -0
  85. package/dist/src/connectors/case-boundary/internals/boundary/index.js +26 -0
  86. package/dist/src/connectors/case-boundary/internals/boundary/index.js.map +1 -0
  87. package/dist/src/connectors/case-boundary/internals/index.d.ts +12 -0
  88. package/dist/src/connectors/case-boundary/internals/index.d.ts.map +1 -0
  89. package/dist/src/connectors/case-boundary/internals/index.js +28 -0
  90. package/dist/src/connectors/case-boundary/internals/index.js.map +1 -0
  91. package/dist/src/connectors/case-boundary/internals/mappers/LogPrinter.d.ts +4 -0
  92. package/dist/src/connectors/case-boundary/internals/mappers/LogPrinter.d.ts.map +1 -0
  93. package/dist/src/connectors/case-boundary/internals/mappers/LogPrinter.js +23 -0
  94. package/dist/src/connectors/case-boundary/internals/mappers/LogPrinter.js.map +1 -0
  95. package/dist/src/connectors/case-boundary/internals/mappers/Result/failureToJsError.d.ts +4 -0
  96. package/dist/src/connectors/case-boundary/internals/mappers/Result/failureToJsError.d.ts.map +1 -0
  97. package/dist/src/connectors/case-boundary/internals/mappers/Result/failureToJsError.js +42 -0
  98. package/dist/src/connectors/case-boundary/internals/mappers/Result/failureToJsError.js.map +1 -0
  99. package/dist/src/connectors/case-boundary/internals/mappers/Result/handleResult.d.ts +4 -0
  100. package/dist/src/connectors/case-boundary/internals/mappers/Result/handleResult.d.ts.map +1 -0
  101. package/dist/src/connectors/case-boundary/internals/mappers/Result/handleResult.js +17 -0
  102. package/dist/src/connectors/case-boundary/internals/mappers/Result/handleResult.js.map +1 -0
  103. package/dist/src/connectors/case-boundary/internals/mappers/Result/index.d.ts +4 -0
  104. package/dist/src/connectors/case-boundary/internals/mappers/Result/index.d.ts.map +1 -0
  105. package/dist/src/connectors/case-boundary/internals/mappers/Result/index.js +20 -0
  106. package/dist/src/connectors/case-boundary/internals/mappers/Result/index.js.map +1 -0
  107. package/dist/src/connectors/case-boundary/internals/mappers/Result/jsErrorToFailure.d.ts +3 -0
  108. package/dist/src/connectors/case-boundary/internals/mappers/Result/jsErrorToFailure.d.ts.map +1 -0
  109. package/dist/src/connectors/case-boundary/internals/mappers/Result/jsErrorToFailure.js +14 -0
  110. package/dist/src/connectors/case-boundary/internals/mappers/Result/jsErrorToFailure.js.map +1 -0
  111. package/dist/src/connectors/case-boundary/internals/mappers/Result/types.d.ts +2 -0
  112. package/dist/src/connectors/case-boundary/internals/mappers/Result/types.d.ts.map +1 -0
  113. package/dist/src/connectors/case-boundary/internals/mappers/Result/types.js +3 -0
  114. package/dist/src/connectors/case-boundary/internals/mappers/Result/types.js.map +1 -0
  115. package/dist/src/connectors/case-boundary/internals/mappers/config.d.ts +10 -0
  116. package/dist/src/connectors/case-boundary/internals/mappers/config.d.ts.map +1 -0
  117. package/dist/src/connectors/case-boundary/internals/mappers/config.js +59 -0
  118. package/dist/src/connectors/case-boundary/internals/mappers/config.js.map +1 -0
  119. package/dist/src/connectors/case-boundary/internals/mappers/index.d.ts +5 -0
  120. package/dist/src/connectors/case-boundary/internals/mappers/index.d.ts.map +1 -0
  121. package/dist/src/connectors/case-boundary/internals/mappers/index.js +21 -0
  122. package/dist/src/connectors/case-boundary/internals/mappers/index.js.map +1 -0
  123. package/dist/src/connectors/case-boundary/internals/mappers/stateHandlers.d.ts +9 -0
  124. package/dist/src/connectors/case-boundary/internals/mappers/stateHandlers.d.ts.map +1 -0
  125. package/dist/src/connectors/case-boundary/internals/mappers/stateHandlers.js +46 -0
  126. package/dist/src/connectors/case-boundary/internals/mappers/stateHandlers.js.map +1 -0
  127. package/dist/src/connectors/case-boundary/internals/mappers/triggers.d.ts +4 -0
  128. package/dist/src/connectors/case-boundary/internals/mappers/triggers.d.ts.map +1 -0
  129. package/dist/src/connectors/case-boundary/internals/mappers/triggers.js +25 -0
  130. package/dist/src/connectors/case-boundary/internals/mappers/triggers.js.map +1 -0
  131. package/dist/src/connectors/case-boundary/internals/types.d.ts +2 -0
  132. package/dist/src/connectors/case-boundary/internals/types.d.ts.map +1 -0
  133. package/dist/src/connectors/case-boundary/internals/types.js +19 -0
  134. package/dist/src/connectors/case-boundary/internals/types.js.map +1 -0
  135. package/dist/src/connectors/case-boundary/internals/types.jsii-boundary.d.ts +24 -0
  136. package/dist/src/connectors/case-boundary/internals/types.jsii-boundary.d.ts.map +1 -0
  137. package/dist/src/connectors/case-boundary/internals/types.jsii-boundary.js +4 -0
  138. package/dist/src/connectors/case-boundary/internals/types.jsii-boundary.js.map +1 -0
  139. package/dist/src/connectors/case-boundary/internals/types.ts-boundary.d.ts +26 -0
  140. package/dist/src/connectors/case-boundary/internals/types.ts-boundary.d.ts.map +1 -0
  141. package/dist/src/connectors/case-boundary/internals/types.ts-boundary.js +3 -0
  142. package/dist/src/connectors/case-boundary/internals/types.ts-boundary.js.map +1 -0
  143. package/dist/src/connectors/case-boundary/verifier.d.ts +1 -1
  144. package/dist/src/connectors/case-boundary/verifier.d.ts.map +1 -1
  145. package/dist/src/connectors/case-boundary/verifier.js +2 -2
  146. package/dist/src/connectors/case-boundary/verifier.js.map +1 -1
  147. package/dist/src/connectors/grpc/contract-case-stream.d.ts +5 -0
  148. package/dist/src/connectors/grpc/contract-case-stream.d.ts.map +1 -0
  149. package/dist/src/connectors/grpc/contract-case-stream.js +39 -0
  150. package/dist/src/connectors/grpc/contract-case-stream.js.map +1 -0
  151. package/dist/src/connectors/grpc/contractDefinition.d.ts +4 -0
  152. package/dist/src/connectors/grpc/contractDefinition.d.ts.map +1 -0
  153. package/dist/src/connectors/grpc/contractDefinition.js +111 -0
  154. package/dist/src/connectors/grpc/contractDefinition.js.map +1 -0
  155. package/dist/src/connectors/grpc/contractVerification.d.ts +4 -0
  156. package/dist/src/connectors/grpc/contractVerification.d.ts.map +1 -0
  157. package/dist/src/connectors/grpc/contractVerification.js +121 -0
  158. package/dist/src/connectors/grpc/contractVerification.js.map +1 -0
  159. package/dist/src/connectors/grpc/printers.d.ts +5 -0
  160. package/dist/src/connectors/grpc/printers.d.ts.map +1 -0
  161. package/dist/src/connectors/grpc/printers.js +24 -0
  162. package/dist/src/connectors/grpc/printers.js.map +1 -0
  163. package/dist/src/connectors/grpc/promiseHandler/promiseHandler.d.ts +2 -2
  164. package/dist/src/connectors/grpc/promiseHandler/promiseHandler.d.ts.map +1 -1
  165. package/dist/src/connectors/grpc/promiseHandler/promiseHandler.js +12 -3
  166. package/dist/src/connectors/grpc/promiseHandler/promiseHandler.js.map +1 -1
  167. package/dist/src/connectors/grpc/proto/contract_case_stream_grpc_pb.d.ts +23 -5
  168. package/dist/src/connectors/grpc/proto/contract_case_stream_grpc_pb.d.ts.map +1 -1
  169. package/dist/src/connectors/grpc/proto/contract_case_stream_grpc_pb.js +28 -8
  170. package/dist/src/connectors/grpc/proto/contract_case_stream_grpc_pb.js.map +1 -1
  171. package/dist/src/connectors/grpc/proto/contract_case_stream_pb.js +1365 -201
  172. package/dist/src/connectors/grpc/proto/contract_case_stream_pb.js.map +1 -1
  173. package/dist/src/connectors/grpc/requestMappers/config/config.d.ts +2 -2
  174. package/dist/src/connectors/grpc/requestMappers/config/config.d.ts.map +1 -1
  175. package/dist/src/connectors/grpc/requestMappers/config/config.js +12 -3
  176. package/dist/src/connectors/grpc/requestMappers/config/config.js.map +1 -1
  177. package/dist/src/connectors/grpc/requestMappers/config/stateHandlers.d.ts +2 -2
  178. package/dist/src/connectors/grpc/requestMappers/config/stateHandlers.d.ts.map +1 -1
  179. package/dist/src/connectors/grpc/requestMappers/config/stateHandlers.js +1 -1
  180. package/dist/src/connectors/grpc/requestMappers/config/stateHandlers.js.map +1 -1
  181. package/dist/src/connectors/grpc/requestMappers/result.d.ts +1 -1
  182. package/dist/src/connectors/grpc/requestMappers/result.d.ts.map +1 -1
  183. package/dist/src/connectors/grpc/requestMappers/result.js +5 -5
  184. package/dist/src/connectors/grpc/requestMappers/result.js.map +1 -1
  185. package/dist/src/connectors/grpc/responseMappers/logMessages.d.ts +6 -6
  186. package/dist/src/connectors/grpc/responseMappers/logMessages.d.ts.map +1 -1
  187. package/dist/src/connectors/grpc/responseMappers/logMessages.js +4 -4
  188. package/dist/src/connectors/grpc/responseMappers/logMessages.js.map +1 -1
  189. package/dist/src/connectors/grpc/responseMappers/result.d.ts +3 -3
  190. package/dist/src/connectors/grpc/responseMappers/result.d.ts.map +1 -1
  191. package/dist/src/connectors/grpc/responseMappers/result.js +3 -2
  192. package/dist/src/connectors/grpc/responseMappers/result.js.map +1 -1
  193. package/dist/src/connectors/grpc/sendContractResponse.d.ts +5 -0
  194. package/dist/src/connectors/grpc/sendContractResponse.d.ts.map +1 -0
  195. package/dist/src/connectors/grpc/sendContractResponse.js +16 -0
  196. package/dist/src/connectors/grpc/sendContractResponse.js.map +1 -0
  197. package/dist/src/domain/config.d.ts +1 -1
  198. package/dist/src/domain/config.d.ts.map +1 -1
  199. package/dist/src/domain/config.js +6 -0
  200. package/dist/src/domain/config.js.map +1 -1
  201. package/dist/src/domain/define.d.ts +1 -1
  202. package/dist/src/domain/define.d.ts.map +1 -1
  203. package/dist/src/domain/define.js.map +1 -1
  204. package/dist/src/domain/errors/errors.d.ts +1 -1
  205. package/dist/src/domain/errors/errors.d.ts.map +1 -1
  206. package/dist/src/domain/errors/errors.js +3 -3
  207. package/dist/src/domain/errors/errors.js.map +1 -1
  208. package/dist/src/domain/maintainerLog.d.ts.map +1 -1
  209. package/dist/src/domain/maintainerLog.js +7 -2
  210. package/dist/src/domain/maintainerLog.js.map +1 -1
  211. package/dist/src/domain/types.d.ts +1 -1
  212. package/dist/src/domain/types.d.ts.map +1 -1
  213. package/dist/src/domain/verify.d.ts +1 -1
  214. package/dist/src/domain/verify.d.ts.map +1 -1
  215. package/dist/src/entities/types.d.ts +2 -0
  216. package/dist/src/entities/types.d.ts.map +1 -0
  217. package/dist/src/entities/types.js +15 -0
  218. package/dist/src/entities/types.js.map +1 -0
  219. package/dist/src/index.d.ts +1 -0
  220. package/dist/src/index.d.ts.map +1 -1
  221. package/dist/src/index.js +16 -0
  222. package/dist/src/index.js.map +1 -1
  223. package/dist/src/versionString.d.ts.map +1 -1
  224. package/dist/src/versionString.js +6 -30
  225. package/dist/src/versionString.js.map +1 -1
  226. package/dist/tsconfig.build.tsbuildinfo +1 -1
  227. package/package/case-connector.js +3 -0
  228. package/package/case-connector.js.LICENSE.txt +313 -0
  229. package/package/case-connector.js.map +1 -0
  230. package/package.json +16 -10
  231. package/proto/contract_case_stream.proto +59 -4
  232. package/src/connectors/grpc/proto/contract_case_stream_grpc_pb.d.ts +57 -9
  233. package/src/connectors/grpc/proto/contract_case_stream_grpc_pb.js +30 -8
  234. package/src/connectors/grpc/proto/contract_case_stream_pb.d.ts +275 -18
  235. package/src/connectors/grpc/proto/contract_case_stream_pb.js +1645 -209
  236. package/tsconfig.build.json +1 -1
  237. package/webpack.config.js +46 -0
  238. package/dist/src/connectors/grpc/contract-case-stream-temp.d.ts +0 -6
  239. package/dist/src/connectors/grpc/contract-case-stream-temp.d.ts.map +0 -1
  240. package/dist/src/connectors/grpc/contract-case-stream-temp.js +0 -152
  241. package/dist/src/connectors/grpc/contract-case-stream-temp.js.map +0 -1
  242. package/dist/src/connectors/grpc/executeCall.d.ts +0 -5
  243. package/dist/src/connectors/grpc/executeCall.d.ts.map +0 -1
  244. package/dist/src/connectors/grpc/executeCall.js +0 -14
  245. package/dist/src/connectors/grpc/executeCall.js.map +0 -1
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BoundaryCrashMessage = void 0;
4
+ /**
5
+ * Contains constants for the crash messages
6
+ *
7
+ * @public
8
+ */
9
+ class BoundaryCrashMessage {
10
+ static CRASH_MESSAGE_START = `
11
+ ---------------------------------------------------
12
+ !!!!🚨🚨🚨🚨🚨 ContractCase Crashed 🚨🚨🚨🚨🚨!!!!
13
+ ---------------------------------------------------
14
+
15
+ The ContractCase core has failed in an unexpected
16
+ way. This is almost certainly a bug in ContractCase.
17
+
18
+ The details are:
19
+ `;
20
+ static CRASH_MESSAGE_END = `
21
+
22
+ Please open a bug report here:
23
+ https://github.com/case-contract-testing/case/issues/new
24
+
25
+ It would be great if you could include:
26
+
27
+ * What you were doing when it failed
28
+ * The results of re-running with logLevel: "maintainerDebug"
29
+
30
+ For bonus points and internet karma, a reproducible
31
+ code sample would be very helpful.
32
+
33
+ Sorry about this.
34
+
35
+ ---------------------------------------------------
36
+ !!!!🚨🚨🚨🚨🚨 ContractCase Crashed 🚨🚨🚨🚨🚨!!!!
37
+ ---------------------------------------------------
38
+ `;
39
+ }
40
+ exports.BoundaryCrashMessage = BoundaryCrashMessage;
41
+ //# sourceMappingURL=BoundaryCrashMessage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BoundaryCrashMessage.js","sourceRoot":"","sources":["../../../../../../src/connectors/case-boundary/internals/boundary/BoundaryCrashMessage.ts"],"names":[],"mappings":";;;AAAA;;;;GAIG;AACH,MAAa,oBAAoB;IAC/B,MAAM,CAAU,mBAAmB,GAAG;;;;;;;;;CASvC,CAAC;IAEA,MAAM,CAAU,iBAAiB,GAAG;;;;;;;;;;;;;;;;;;CAkBrC,CAAC;;AA9BF,oDA+BC"}
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Convenience class to hold the values for LogLevel so that DSL layers don't need to know the actual value
3
+ *
4
+ * @public
5
+ */
6
+ export declare class ConfigLogLevelConstants {
7
+ /**
8
+ * Print no logs (note, results may still be printed - see `printResults`)
9
+ */
10
+ static readonly NONE = "none";
11
+ /**
12
+ * Log when something has gone wrong during the execution of the test framework
13
+ */
14
+ static readonly ERROR = "error";
15
+ /**
16
+ * Log when it seems likely that there is a misconfiguration, or an error
17
+ */
18
+ static readonly WARN = "warn";
19
+ /**
20
+ * Log information to help users find out what is happening during their tests (and warnings, and errors)
21
+ */
22
+ static readonly DEBUG = "debug";
23
+ /**
24
+ * Log debugging information for ContractCase maintainers (and debug, warn and errors)
25
+ */
26
+ static readonly MAINTAINER_DEBUG = "maintainerDebug";
27
+ /**
28
+ * Log detailed debugging information for ContractCase maintainers (and debug, warn and errors)
29
+ */
30
+ static readonly DEEP_MAINTAINER_DEBUG = "deepMaintainerDebug";
31
+ }
32
+ //# sourceMappingURL=ConfigLogLevelConstants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConfigLogLevelConstants.d.ts","sourceRoot":"","sources":["../../../../../../src/connectors/case-boundary/internals/boundary/ConfigLogLevelConstants.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,qBAAa,uBAAuB;IAClC;;OAEG;IACH,MAAM,CAAC,QAAQ,CAAC,IAAI,UAAU;IAE9B;;OAEG;IACH,MAAM,CAAC,QAAQ,CAAC,KAAK,WAAW;IAEhC;;OAEG;IACH,MAAM,CAAC,QAAQ,CAAC,IAAI,UAAU;IAE9B;;OAEG;IACH,MAAM,CAAC,QAAQ,CAAC,KAAK,WAAW;IAEhC;;OAEG;IACH,MAAM,CAAC,QAAQ,CAAC,gBAAgB,qBAAqB;IAErD;;OAEG;IACH,MAAM,CAAC,QAAQ,CAAC,qBAAqB,yBAAyB;CAC/D"}
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ConfigLogLevelConstants = void 0;
4
+ /**
5
+ * Convenience class to hold the values for LogLevel so that DSL layers don't need to know the actual value
6
+ *
7
+ * @public
8
+ */
9
+ class ConfigLogLevelConstants {
10
+ /**
11
+ * Print no logs (note, results may still be printed - see `printResults`)
12
+ */
13
+ static NONE = 'none';
14
+ /**
15
+ * Log when something has gone wrong during the execution of the test framework
16
+ */
17
+ static ERROR = 'error';
18
+ /**
19
+ * Log when it seems likely that there is a misconfiguration, or an error
20
+ */
21
+ static WARN = 'warn';
22
+ /**
23
+ * Log information to help users find out what is happening during their tests (and warnings, and errors)
24
+ */
25
+ static DEBUG = 'debug';
26
+ /**
27
+ * Log debugging information for ContractCase maintainers (and debug, warn and errors)
28
+ */
29
+ static MAINTAINER_DEBUG = 'maintainerDebug';
30
+ /**
31
+ * Log detailed debugging information for ContractCase maintainers (and debug, warn and errors)
32
+ */
33
+ static DEEP_MAINTAINER_DEBUG = 'deepMaintainerDebug';
34
+ }
35
+ exports.ConfigLogLevelConstants = ConfigLogLevelConstants;
36
+ //# sourceMappingURL=ConfigLogLevelConstants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConfigLogLevelConstants.js","sourceRoot":"","sources":["../../../../../../src/connectors/case-boundary/internals/boundary/ConfigLogLevelConstants.ts"],"names":[],"mappings":";;;AAAA;;;;GAIG;AACH,MAAa,uBAAuB;IAClC;;OAEG;IACH,MAAM,CAAU,IAAI,GAAG,MAAM,CAAC;IAE9B;;OAEG;IACH,MAAM,CAAU,KAAK,GAAG,OAAO,CAAC;IAEhC;;OAEG;IACH,MAAM,CAAU,IAAI,GAAG,MAAM,CAAC;IAE9B;;OAEG;IACH,MAAM,CAAU,KAAK,GAAG,OAAO,CAAC;IAEhC;;OAEG;IACH,MAAM,CAAU,gBAAgB,GAAG,iBAAiB,CAAC;IAErD;;OAEG;IACH,MAAM,CAAU,qBAAqB,GAAG,qBAAqB,CAAC;;AA7BhE,0DA8BC"}
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Convenience class to hold the values for the publish setting so that clients don't need to know the strings
3
+ *
4
+ * @public
5
+ */
6
+ export declare class ConfigPublishConstants {
7
+ /**
8
+ * Only publish contracts and verification results when in in CI according to https://github.com/watson/ci-info#supported-ci-tools
9
+ */
10
+ static readonly ONLY_IN_CI = "ONLY_IN_CI";
11
+ /**
12
+ * Never publish contracts or verification results
13
+ */
14
+ static readonly NEVER = "NEVER";
15
+ /**
16
+ * Always publish contracts and verification results
17
+ */
18
+ static readonly ALWAYS = "ALWAYS";
19
+ }
20
+ //# sourceMappingURL=ConfigPublishConstants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConfigPublishConstants.d.ts","sourceRoot":"","sources":["../../../../../../src/connectors/case-boundary/internals/boundary/ConfigPublishConstants.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,qBAAa,sBAAsB;IACjC;;OAEG;IACH,MAAM,CAAC,QAAQ,CAAC,UAAU,gBAAgB;IAE1C;;OAEG;IACH,MAAM,CAAC,QAAQ,CAAC,KAAK,WAAW;IAEhC;;OAEG;IACH,MAAM,CAAC,QAAQ,CAAC,MAAM,YAAY;CACnC"}
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ConfigPublishConstants = void 0;
4
+ /**
5
+ * Convenience class to hold the values for the publish setting so that clients don't need to know the strings
6
+ *
7
+ * @public
8
+ */
9
+ class ConfigPublishConstants {
10
+ /**
11
+ * Only publish contracts and verification results when in in CI according to https://github.com/watson/ci-info#supported-ci-tools
12
+ */
13
+ static ONLY_IN_CI = 'ONLY_IN_CI';
14
+ /**
15
+ * Never publish contracts or verification results
16
+ */
17
+ static NEVER = 'NEVER';
18
+ /**
19
+ * Always publish contracts and verification results
20
+ */
21
+ static ALWAYS = 'ALWAYS';
22
+ }
23
+ exports.ConfigPublishConstants = ConfigPublishConstants;
24
+ //# sourceMappingURL=ConfigPublishConstants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConfigPublishConstants.js","sourceRoot":"","sources":["../../../../../../src/connectors/case-boundary/internals/boundary/ConfigPublishConstants.ts"],"names":[],"mappings":";;;AAAA;;;;GAIG;AACH,MAAa,sBAAsB;IACjC;;OAEG;IACH,MAAM,CAAU,UAAU,GAAG,YAAY,CAAC;IAE1C;;OAEG;IACH,MAAM,CAAU,KAAK,GAAG,OAAO,CAAC;IAEhC;;OAEG;IACH,MAAM,CAAU,MAAM,GAAG,QAAQ,CAAC;;AAdpC,wDAeC"}
@@ -0,0 +1,145 @@
1
+ import { BoundaryResult } from './Result';
2
+ /**
3
+ * Data class to hold data to print a message error during matching
4
+ *
5
+ * @public
6
+ */
7
+ export interface PrintableMatchError {
8
+ /**
9
+ * The red highlighted blob, eg "MATCHING ERROR" or "TRIGGER FUNCTION ERROR". Could be any string.
10
+ */
11
+ readonly kind: string;
12
+ /**
13
+ * A summary of the error. Could be any string.
14
+ */
15
+ readonly message: string;
16
+ /**
17
+ * The location the error happened, for printing at the top of the error message
18
+ */
19
+ readonly location: string;
20
+ /**
21
+ * The tag line for the location the error happened, for printing after the error message. This might have more information than the `location` above.
22
+ */
23
+ readonly locationTag: string;
24
+ /**
25
+ * The machine-readable type for the cause of this error, for printing after the error message to make it easy to search for.
26
+ */
27
+ readonly errorTypeTag: string;
28
+ /**
29
+ * A string representation of the expected data (may contain newlines)
30
+ */
31
+ readonly expected: string;
32
+ /**
33
+ * A string representation of the actual data received (may contain newlines)
34
+ */
35
+ readonly actual: string;
36
+ }
37
+ /**
38
+ * Data class to hold data to print a message error
39
+ *
40
+ * @public
41
+ */
42
+ export interface PrintableMessageError {
43
+ /**
44
+ * The red highlighted blob, eg "MATCHING ERROR" or "TRIGGER FUNCTION ERROR". Could be any string.
45
+ */
46
+ readonly kind: string;
47
+ /**
48
+ * A summary of the error. Could be any string.
49
+ */
50
+ readonly message: string;
51
+ /**
52
+ * The location the error happened, for printing at the top of the error message
53
+ */
54
+ readonly location: string;
55
+ /**
56
+ * The tag line for the location the error happened, for printing after the error message. This might have more information than the `location` above.
57
+ */
58
+ readonly locationTag: string;
59
+ /**
60
+ * The machine-readable type for the cause of this error, for printing after the error message to make it easy to search for.
61
+ */
62
+ readonly errorTypeTag: string;
63
+ }
64
+ /**
65
+ * Data class to hold data for a test title print line
66
+ *
67
+ * @public
68
+ */
69
+ export interface PrintableTestTitle {
70
+ /**
71
+ * Either 'success' to indicate success, or 'failure' to indicate failure
72
+ */
73
+ readonly kind: string;
74
+ /**
75
+ * An icon for the start of the line (usually a single character emoji, but could be any string)
76
+ */
77
+ readonly icon: string;
78
+ /**
79
+ * The title to print (will not include newlines)
80
+ */
81
+ readonly title: string;
82
+ /**
83
+ * Any additional text to print after the title (may include newlines)
84
+ */
85
+ readonly additionalText: string;
86
+ }
87
+ /**
88
+ * Interface for printing results
89
+ *
90
+ * @public
91
+ */
92
+ export interface IResultPrinter {
93
+ /**
94
+ * Called by ContractCase to ask the DSL to print an individual match error line.
95
+ */
96
+ printMatchError(MatchErrorDescription: PrintableMatchError): Promise<BoundaryResult>;
97
+ /**
98
+ * Called by ContractCase to ask the DSL to print an error during testing that doesn't have an expected / actual value
99
+ */
100
+ printMessageError(messageErrorDetails: PrintableMessageError): Promise<BoundaryResult>;
101
+ /**
102
+ * Called by ContractCase to ask the DSL to print a test title or main execution details (eg for contract downloading).
103
+ */
104
+ printTestTitle(titleDetails: PrintableTestTitle): Promise<BoundaryResult>;
105
+ }
106
+ /**
107
+ * Implement this interface to give ContractCase a way to print logs in your
108
+ * target language. Most platforms will want to print to standard out, but some
109
+ * might need to log to a file or otherwise collate the logs.
110
+ *
111
+ * @public
112
+ */
113
+ export interface ILogPrinter {
114
+ /**
115
+ * Called by ContractCase to ask the DSL to print a log line. You do not need
116
+ * to filter calls to this interface, it will only be called when it is
117
+ * appropriate to print.
118
+ *
119
+ * @param level - A `LogLevel` string, either `error`, `warn`, `debug`,
120
+ * `maintainerDebug` or `deepMaintainerDebug` Use this to programmatically
121
+ * decide any colour formatting.. (although `none` is a possible log level,
122
+ * this function will never be called with `none`).
123
+ * @param timestamp - The timestamp generated by ContractCase, ready for printing. No extra
124
+ * formatting is necessary
125
+ * @param version - The version string for the current ContractCase stack (at low log levels,
126
+ * this is just the core version)
127
+ * @param typeString - A rendered version of the LogLevel. Do not rely on this value programmatically, use the `level` parameter instead.
128
+ * @param location - A string that represents the location that this log came from
129
+ * @param message - The main message of this log line
130
+ * @param additional - Any additional output to print on extra lines (you may want to indent this when printing)
131
+ *
132
+ * @returns A `BoundaryResult` type indicating whether there were errors
133
+ * during printing. Either a BoundarySuccess for no errors, or BoundaryFailure
134
+ * (with error details) in the event of a failure.
135
+ */
136
+ log(level: string, timestamp: string, version: string, typeString: string, location: string, message: string, additional: string): Promise<BoundaryResult>;
137
+ }
138
+ /**
139
+ * A convenience interface that combines result printing and log printing
140
+ *
141
+ * @public
142
+ */
143
+ export interface ICombinedPrinter extends IResultPrinter, ILogPrinter {
144
+ }
145
+ //# sourceMappingURL=ILogPrinter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ILogPrinter.d.ts","sourceRoot":"","sources":["../../../../../../src/connectors/case-boundary/internals/boundary/ILogPrinter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE1C;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B;;OAEG;IACH,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B;;OAEG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB;AAED;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B;;OAEG;IACH,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;CAC/B;AAED;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;CACjC;AAED;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,eAAe,CACb,qBAAqB,EAAE,mBAAmB,GACzC,OAAO,CAAC,cAAc,CAAC,CAAC;IAE3B;;OAEG;IACH,iBAAiB,CACf,mBAAmB,EAAE,qBAAqB,GACzC,OAAO,CAAC,cAAc,CAAC,CAAC;IAE3B;;OAEG;IACH,cAAc,CAAC,YAAY,EAAE,kBAAkB,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;CAC3E;AAED;;;;;;GAMG;AACH,MAAM,WAAW,WAAW;IAC1B;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,GAAG,CACD,KAAK,EAAE,MAAM,EACb,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC,cAAc,CAAC,CAAC;CAC5B;AACD;;;;GAIG;AACH,MAAM,WAAW,gBAAiB,SAAQ,cAAc,EAAE,WAAW;CAAG"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=ILogPrinter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ILogPrinter.js","sourceRoot":"","sources":["../../../../../../src/connectors/case-boundary/internals/boundary/ILogPrinter.ts"],"names":[],"mappings":""}
@@ -0,0 +1,41 @@
1
+ import { BoundaryResult } from './Result';
2
+ /**
3
+ * Interface to tell ContractCase to run the test indicated in a call to an
4
+ * IRunTestCallback
5
+ *
6
+ * @public
7
+ */
8
+ export interface IInvokeCoreTest {
9
+ /**
10
+ * Call this to tell the ContractCase core to actually invoke the test.
11
+ *
12
+ * Note that during verification, a failed verification doesn't return an error
13
+ * Result, but failed configuration or core bugs will. This is the intended default
14
+ * behaviour - as a failed verification doesn't necessarily indicate a problem
15
+ * in the code that is being verified.
16
+ *
17
+ * @returns a promise that indicates the result of verifying this test (BoundaryResult)
18
+ */
19
+ verify(): Promise<BoundaryResult>;
20
+ }
21
+ /**
22
+ * This interface allows the DSL layer to invoke the test. If your test runner
23
+ * supports programmatically running different tests, then use this interface to
24
+ * tell a BoundaryContractVerifier how to call back to your DSL with a test name
25
+ *
26
+ * @public
27
+ */
28
+ export interface IRunTestCallback {
29
+ /**
30
+ * Called once for each test in a Verification run. In an implementation, you
31
+ * should tell your test runner that it is running a test, and what the name
32
+ * of the test is.
33
+ *
34
+ * @param testName - The name of this test
35
+ * @param invoker - an IInvokeCoreTest to tell the ContractCase core that
36
+ * you'd like it to run the test.
37
+ * @returns a promise that indicates the result of calling the invoker (BoundaryResult)
38
+ */
39
+ runTest(testName: string, invoker: IInvokeCoreTest): Promise<BoundaryResult>;
40
+ }
41
+ //# sourceMappingURL=IRunTestCallback.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IRunTestCallback.d.ts","sourceRoot":"","sources":["../../../../../../src/connectors/case-boundary/internals/boundary/IRunTestCallback.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE1C;;;;;GAKG;AACH,MAAM,WAAW,eAAe;IAC9B;;;;;;;;;OASG;IACH,MAAM,IAAI,OAAO,CAAC,cAAc,CAAC,CAAC;CACnC;AAED;;;;;;GAMG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;;;;;;;;OASG;IACH,OAAO,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;CAC9E"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=IRunTestCallback.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IRunTestCallback.js","sourceRoot":"","sources":["../../../../../../src/connectors/case-boundary/internals/boundary/IRunTestCallback.ts"],"names":[],"mappings":""}
@@ -0,0 +1,19 @@
1
+ import { BoundaryResult } from './Result';
2
+ /**
3
+ * Interface called by ContractCase to invoke user's test code.
4
+ *
5
+ * @public
6
+ */
7
+ export interface ITriggerFunction {
8
+ /**
9
+ * Trigger the user's test code and test the response from it.
10
+ *
11
+ * @returns BoundarySuccess when successful; BoundaryFailure with
12
+ * kind=BoundaryFailureKindConstants.CASE_TRIGGER_ERROR if the trigger fails;
13
+ * BoundaryFailure with
14
+ * kind=BoundaryFailureKindConstants.CASE_VERIFY_RETURN_ERROR if the
15
+ * verification function fails.
16
+ */
17
+ trigger(config: Record<string, unknown>): Promise<BoundaryResult>;
18
+ }
19
+ //# sourceMappingURL=ITriggerFunction.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ITriggerFunction.d.ts","sourceRoot":"","sources":["../../../../../../src/connectors/case-boundary/internals/boundary/ITriggerFunction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE1C;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;;;;;;;OAQG;IACH,OAAO,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;CACnE"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=ITriggerFunction.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ITriggerFunction.js","sourceRoot":"","sources":["../../../../../../src/connectors/case-boundary/internals/boundary/ITriggerFunction.ts"],"names":[],"mappings":""}
@@ -0,0 +1,15 @@
1
+ import { BoundaryResult } from './BoundaryResult';
2
+ import { RESULT_FAILURE } from './BoundaryResultTypeConstants';
3
+ /**
4
+ * This indicates a failure. Use `BoundaryFailureKindConstants` to determine what type of failure it is.
5
+ *
6
+ * @public
7
+ */
8
+ export declare class BoundaryFailure extends BoundaryResult {
9
+ readonly resultType: typeof RESULT_FAILURE;
10
+ readonly kind: string;
11
+ readonly message: string;
12
+ readonly location: string;
13
+ constructor(kind: string, message: string, location: string);
14
+ }
15
+ //# sourceMappingURL=BoundaryFailure.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BoundaryFailure.d.ts","sourceRoot":"","sources":["../../../../../../../src/connectors/case-boundary/internals/boundary/Result/BoundaryFailure.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAE/D;;;;GAIG;AACH,qBAAa,eAAgB,SAAQ,cAAc;IACjD,SAAkB,UAAU,EAAE,OAAO,cAAc,CAAC;IAEpD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAEtB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IAEzB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;gBAEd,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;CAO5D"}
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BoundaryFailure = void 0;
4
+ const BoundaryResult_1 = require("./BoundaryResult");
5
+ const BoundaryResultTypeConstants_1 = require("./BoundaryResultTypeConstants");
6
+ /**
7
+ * This indicates a failure. Use `BoundaryFailureKindConstants` to determine what type of failure it is.
8
+ *
9
+ * @public
10
+ */
11
+ class BoundaryFailure extends BoundaryResult_1.BoundaryResult {
12
+ resultType;
13
+ kind;
14
+ message;
15
+ location;
16
+ constructor(kind, message, location) {
17
+ super(BoundaryResultTypeConstants_1.RESULT_FAILURE);
18
+ this.resultType = BoundaryResultTypeConstants_1.RESULT_FAILURE;
19
+ this.kind = kind;
20
+ this.message = message;
21
+ this.location = location;
22
+ }
23
+ }
24
+ exports.BoundaryFailure = BoundaryFailure;
25
+ //# sourceMappingURL=BoundaryFailure.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BoundaryFailure.js","sourceRoot":"","sources":["../../../../../../../src/connectors/case-boundary/internals/boundary/Result/BoundaryFailure.ts"],"names":[],"mappings":";;;AAAA,qDAAkD;AAClD,+EAA+D;AAE/D;;;;GAIG;AACH,MAAa,eAAgB,SAAQ,+BAAc;IAC/B,UAAU,CAAwB;IAE3C,IAAI,CAAS;IAEb,OAAO,CAAS;IAEhB,QAAQ,CAAS;IAE1B,YAAY,IAAY,EAAE,OAAe,EAAE,QAAgB;QACzD,KAAK,CAAC,4CAAc,CAAC,CAAC;QACtB,IAAI,CAAC,UAAU,GAAG,4CAAc,CAAC;QACjC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC3B,CAAC;CACF;AAhBD,0CAgBC"}
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Constants to use for determining what kind of failure you have
3
+ *
4
+ * @public
5
+ */
6
+ export declare class BoundaryFailureKindConstants {
7
+ /**
8
+ * Something went wrong in ContractCase internals. Almost certainly a bug.
9
+ */
10
+ static readonly CASE_CORE_ERROR: string;
11
+ /**
12
+ * The user has configured ContractCase incorrectly
13
+ */
14
+ static readonly CASE_CONFIGURATION_ERROR: string;
15
+ /**
16
+ * The test's expectations were not met
17
+ */
18
+ static readonly CASE_FAILED_ASSERTION_ERROR: string;
19
+ /**
20
+ * The user-provided trigger failed when it was not expected to do so
21
+ */
22
+ static readonly CASE_TRIGGER_ERROR: string;
23
+ /**
24
+ * The user-provided verification function (testResponse or testErrorResponse) failed
25
+ */
26
+ static readonly CASE_VERIFY_RETURN_ERROR: string;
27
+ /**
28
+ * An error while contacting a contract broker
29
+ */
30
+ static readonly CASE_BROKER_ERROR: string;
31
+ }
32
+ //# sourceMappingURL=BoundaryFailureKindConstants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BoundaryFailureKindConstants.d.ts","sourceRoot":"","sources":["../../../../../../../src/connectors/case-boundary/internals/boundary/Result/BoundaryFailureKindConstants.ts"],"names":[],"mappings":"AASA;;;;GAIG;AACH,qBAAa,4BAA4B;IACvC;;OAEG;IACH,MAAM,CAAC,QAAQ,CAAC,eAAe,SAAsB;IAErD;;OAEG;IACH,MAAM,CAAC,QAAQ,CAAC,wBAAwB,SAA+B;IAEvE;;OAEG;IACH,MAAM,CAAC,QAAQ,CAAC,2BAA2B,SAAiC;IAE5E;;OAEG;IACH,MAAM,CAAC,QAAQ,CAAC,kBAAkB,SAAyB;IAE3D;;OAEG;IACH,MAAM,CAAC,QAAQ,CAAC,wBAAwB,SACF;IAEtC;;OAEG;IACH,MAAM,CAAC,QAAQ,CAAC,iBAAiB,SAAoB;CACtD"}
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BoundaryFailureKindConstants = void 0;
4
+ const case_core_1 = require("@contract-case/case-core");
5
+ /**
6
+ * Constants to use for determining what kind of failure you have
7
+ *
8
+ * @public
9
+ */
10
+ class BoundaryFailureKindConstants {
11
+ /**
12
+ * Something went wrong in ContractCase internals. Almost certainly a bug.
13
+ */
14
+ static CASE_CORE_ERROR = case_core_1.CaseCoreError.name;
15
+ /**
16
+ * The user has configured ContractCase incorrectly
17
+ */
18
+ static CASE_CONFIGURATION_ERROR = case_core_1.CaseConfigurationError.name;
19
+ /**
20
+ * The test's expectations were not met
21
+ */
22
+ static CASE_FAILED_ASSERTION_ERROR = case_core_1.CaseFailedAssertionError.name;
23
+ /**
24
+ * The user-provided trigger failed when it was not expected to do so
25
+ */
26
+ static CASE_TRIGGER_ERROR = case_core_1.CaseTriggerError.name;
27
+ /**
28
+ * The user-provided verification function (testResponse or testErrorResponse) failed
29
+ */
30
+ static CASE_VERIFY_RETURN_ERROR = case_core_1.VerifyTriggerReturnObjectError.name;
31
+ /**
32
+ * An error while contacting a contract broker
33
+ */
34
+ static CASE_BROKER_ERROR = case_core_1.BrokerError.name;
35
+ }
36
+ exports.BoundaryFailureKindConstants = BoundaryFailureKindConstants;
37
+ //# sourceMappingURL=BoundaryFailureKindConstants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BoundaryFailureKindConstants.js","sourceRoot":"","sources":["../../../../../../../src/connectors/case-boundary/internals/boundary/Result/BoundaryFailureKindConstants.ts"],"names":[],"mappings":";;;AAAA,wDAOkC;AAElC;;;;GAIG;AACH,MAAa,4BAA4B;IACvC;;OAEG;IACH,MAAM,CAAU,eAAe,GAAG,yBAAa,CAAC,IAAI,CAAC;IAErD;;OAEG;IACH,MAAM,CAAU,wBAAwB,GAAG,kCAAsB,CAAC,IAAI,CAAC;IAEvE;;OAEG;IACH,MAAM,CAAU,2BAA2B,GAAG,oCAAwB,CAAC,IAAI,CAAC;IAE5E;;OAEG;IACH,MAAM,CAAU,kBAAkB,GAAG,4BAAgB,CAAC,IAAI,CAAC;IAE3D;;OAEG;IACH,MAAM,CAAU,wBAAwB,GACtC,0CAA8B,CAAC,IAAI,CAAC;IAEtC;;OAEG;IACH,MAAM,CAAU,iBAAiB,GAAG,uBAAW,CAAC,IAAI,CAAC;;AA9BvD,oEA+BC"}
@@ -0,0 +1,15 @@
1
+ import { RESULT_SUCCESS, RESULT_SUCCESS_HAS_MAP_PAYLOAD, RESULT_SUCCESS_HAS_ANY_PAYLOAD, RESULT_FAILURE } from './BoundaryResultTypeConstants';
2
+ type BoundaryResultType = typeof RESULT_SUCCESS | typeof RESULT_SUCCESS_HAS_MAP_PAYLOAD | typeof RESULT_SUCCESS_HAS_ANY_PAYLOAD | typeof RESULT_FAILURE;
3
+ /**
4
+ * Supertype for all methods that return results. Use one of `BoundarySuccess`,
5
+ * `BoundaryFailure`, or one of the specialised `BoundarySuccessWith*` return
6
+ * types as appropriate. See the documentation for the method you're implementing for more information.
7
+ *
8
+ * @public
9
+ */
10
+ export declare abstract class BoundaryResult {
11
+ readonly resultType: BoundaryResultType;
12
+ constructor(result: BoundaryResultType);
13
+ }
14
+ export {};
15
+ //# sourceMappingURL=BoundaryResult.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BoundaryResult.d.ts","sourceRoot":"","sources":["../../../../../../../src/connectors/case-boundary/internals/boundary/Result/BoundaryResult.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,8BAA8B,EAC9B,8BAA8B,EAC9B,cAAc,EACf,MAAM,+BAA+B,CAAC;AAEvC,KAAK,kBAAkB,GACnB,OAAO,cAAc,GACrB,OAAO,8BAA8B,GACrC,OAAO,8BAA8B,GACrC,OAAO,cAAc,CAAC;AAE1B;;;;;;GAMG;AACH,8BAAsB,cAAc;IAGlC,QAAQ,CAAC,UAAU,EAAE,kBAAkB,CAAC;gBAE5B,MAAM,EAAE,kBAAkB;CAGvC"}
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BoundaryResult = void 0;
4
+ /**
5
+ * Supertype for all methods that return results. Use one of `BoundarySuccess`,
6
+ * `BoundaryFailure`, or one of the specialised `BoundarySuccessWith*` return
7
+ * types as appropriate. See the documentation for the method you're implementing for more information.
8
+ *
9
+ * @public
10
+ */
11
+ class BoundaryResult {
12
+ /* One of the constants from ResultTypeConstants indicating what the type of
13
+ * this result is */
14
+ resultType;
15
+ constructor(result) {
16
+ this.resultType = result;
17
+ }
18
+ }
19
+ exports.BoundaryResult = BoundaryResult;
20
+ //# sourceMappingURL=BoundaryResult.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BoundaryResult.js","sourceRoot":"","sources":["../../../../../../../src/connectors/case-boundary/internals/boundary/Result/BoundaryResult.ts"],"names":[],"mappings":";;;AAaA;;;;;;GAMG;AACH,MAAsB,cAAc;IAClC;wBACoB;IACX,UAAU,CAAqB;IAExC,YAAY,MAA0B;QACpC,IAAI,CAAC,UAAU,GAAG,MAAM,CAAC;IAC3B,CAAC;CACF;AARD,wCAQC"}
@@ -0,0 +1,35 @@
1
+ /**
2
+ * This is a success type with no payload
3
+ * @internal
4
+ */
5
+ export declare const RESULT_SUCCESS = "Success";
6
+ /**
7
+ * This is a success type with a map payload
8
+ * @internal
9
+ */
10
+ export declare const RESULT_SUCCESS_HAS_MAP_PAYLOAD = "SuccessMap";
11
+ /**
12
+ * This is a success type with an arbitrary object payload
13
+ * @internal
14
+ */
15
+ export declare const RESULT_SUCCESS_HAS_ANY_PAYLOAD = "SuccessAny";
16
+ /**
17
+ * This is a failure
18
+ * @internal
19
+ */
20
+ export declare const RESULT_FAILURE = "Failure";
21
+ /**
22
+ * Use these constants to determine what type of result a BoundaryResult is.
23
+ * @public
24
+ */
25
+ export declare class BoundaryResultTypeConstants {
26
+ /** This is a success type with no payload */
27
+ static readonly RESULT_SUCCESS = "Success";
28
+ /** This is a success type with a map payload */
29
+ static readonly RESULT_SUCCESS_HAS_MAP_PAYLOAD = "SuccessMap";
30
+ /** This is a success type with an arbitrary object payload */
31
+ static readonly RESULT_SUCCESS_HAS_ANY_PAYLOAD = "SuccessAny";
32
+ /** This is a failure */
33
+ static readonly RESULT_FAILURE = "Failure";
34
+ }
35
+ //# sourceMappingURL=BoundaryResultTypeConstants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BoundaryResultTypeConstants.d.ts","sourceRoot":"","sources":["../../../../../../../src/connectors/case-boundary/internals/boundary/Result/BoundaryResultTypeConstants.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,cAAc,YAAY,CAAC;AACxC;;;GAGG;AACH,eAAO,MAAM,8BAA8B,eAAe,CAAC;AAC3D;;;GAGG;AACH,eAAO,MAAM,8BAA8B,eAAe,CAAC;AAC3D;;;GAGG;AACH,eAAO,MAAM,cAAc,YAAY,CAAC;AAExC;;;GAGG;AACH,qBAAa,2BAA2B;IACtC,6CAA6C;IAC7C,MAAM,CAAC,QAAQ,CAAC,cAAc,aAAkB;IAEhD,gDAAgD;IAChD,MAAM,CAAC,QAAQ,CAAC,8BAA8B,gBACb;IAEjC,8DAA8D;IAC9D,MAAM,CAAC,QAAQ,CAAC,8BAA8B,gBACb;IAEjC,wBAAwB;IACxB,MAAM,CAAC,QAAQ,CAAC,cAAc,aAAkB;CACjD"}