@contract-case/case-connector 0.7.5 → 0.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (274) hide show
  1. package/CHANGELOG.md +58 -0
  2. package/dist/bin/case-connector.js +2 -4
  3. package/dist/bin/case-connector.js.map +1 -1
  4. package/dist/package.json +16 -14
  5. package/dist/src/connectors/case-boundary/definer.d.ts +3 -3
  6. package/dist/src/connectors/case-boundary/definer.d.ts.map +1 -1
  7. package/dist/src/connectors/case-boundary/definer.js +12 -18
  8. package/dist/src/connectors/case-boundary/definer.js.map +1 -1
  9. package/dist/src/connectors/case-boundary/internals/BoundaryContractDefiner.d.ts +4 -2
  10. package/dist/src/connectors/case-boundary/internals/BoundaryContractDefiner.d.ts.map +1 -1
  11. package/dist/src/connectors/case-boundary/internals/BoundaryContractDefiner.js +39 -30
  12. package/dist/src/connectors/case-boundary/internals/BoundaryContractDefiner.js.map +1 -1
  13. package/dist/src/connectors/case-boundary/internals/BoundaryContractVerifier.d.ts +4 -3
  14. package/dist/src/connectors/case-boundary/internals/BoundaryContractVerifier.d.ts.map +1 -1
  15. package/dist/src/connectors/case-boundary/internals/BoundaryContractVerifier.js +25 -29
  16. package/dist/src/connectors/case-boundary/internals/BoundaryContractVerifier.js.map +1 -1
  17. package/dist/src/connectors/case-boundary/internals/BoundaryPluginLoader.d.ts +28 -0
  18. package/dist/src/connectors/case-boundary/internals/BoundaryPluginLoader.d.ts.map +1 -0
  19. package/dist/src/connectors/case-boundary/internals/BoundaryPluginLoader.js +64 -0
  20. package/dist/src/connectors/case-boundary/internals/BoundaryPluginLoader.js.map +1 -0
  21. package/dist/src/connectors/case-boundary/internals/boundary/BoundaryCrashMessage.js +1 -5
  22. package/dist/src/connectors/case-boundary/internals/boundary/BoundaryCrashMessage.js.map +1 -1
  23. package/dist/src/connectors/case-boundary/internals/boundary/ConfigLogLevelConstants.js +1 -5
  24. package/dist/src/connectors/case-boundary/internals/boundary/ConfigLogLevelConstants.js.map +1 -1
  25. package/dist/src/connectors/case-boundary/internals/boundary/ConfigPublishConstants.js +1 -5
  26. package/dist/src/connectors/case-boundary/internals/boundary/ConfigPublishConstants.js.map +1 -1
  27. package/dist/src/connectors/case-boundary/internals/boundary/ILogPrinter.d.ts +1 -1
  28. package/dist/src/connectors/case-boundary/internals/boundary/ILogPrinter.d.ts.map +1 -1
  29. package/dist/src/connectors/case-boundary/internals/boundary/ILogPrinter.js +1 -2
  30. package/dist/src/connectors/case-boundary/internals/boundary/IRunTestCallback.d.ts +1 -1
  31. package/dist/src/connectors/case-boundary/internals/boundary/IRunTestCallback.d.ts.map +1 -1
  32. package/dist/src/connectors/case-boundary/internals/boundary/IRunTestCallback.js +1 -2
  33. package/dist/src/connectors/case-boundary/internals/boundary/ITriggerFunction.d.ts +1 -1
  34. package/dist/src/connectors/case-boundary/internals/boundary/ITriggerFunction.d.ts.map +1 -1
  35. package/dist/src/connectors/case-boundary/internals/boundary/ITriggerFunction.js +1 -2
  36. package/dist/src/connectors/case-boundary/internals/boundary/Result/BoundaryFailure.d.ts +2 -2
  37. package/dist/src/connectors/case-boundary/internals/boundary/Result/BoundaryFailure.d.ts.map +1 -1
  38. package/dist/src/connectors/case-boundary/internals/boundary/Result/BoundaryFailure.js +5 -9
  39. package/dist/src/connectors/case-boundary/internals/boundary/Result/BoundaryFailure.js.map +1 -1
  40. package/dist/src/connectors/case-boundary/internals/boundary/Result/BoundaryFailureKindConstants.d.ts +19 -6
  41. package/dist/src/connectors/case-boundary/internals/boundary/Result/BoundaryFailureKindConstants.d.ts.map +1 -1
  42. package/dist/src/connectors/case-boundary/internals/boundary/Result/BoundaryFailureKindConstants.js +28 -12
  43. package/dist/src/connectors/case-boundary/internals/boundary/Result/BoundaryFailureKindConstants.js.map +1 -1
  44. package/dist/src/connectors/case-boundary/internals/boundary/Result/BoundaryResult.d.ts +1 -1
  45. package/dist/src/connectors/case-boundary/internals/boundary/Result/BoundaryResult.d.ts.map +1 -1
  46. package/dist/src/connectors/case-boundary/internals/boundary/Result/BoundaryResult.js +1 -5
  47. package/dist/src/connectors/case-boundary/internals/boundary/Result/BoundaryResult.js.map +1 -1
  48. package/dist/src/connectors/case-boundary/internals/boundary/Result/BoundaryResultTypeConstants.js +9 -13
  49. package/dist/src/connectors/case-boundary/internals/boundary/Result/BoundaryResultTypeConstants.js.map +1 -1
  50. package/dist/src/connectors/case-boundary/internals/boundary/Result/BoundarySuccess.d.ts +2 -2
  51. package/dist/src/connectors/case-boundary/internals/boundary/Result/BoundarySuccess.d.ts.map +1 -1
  52. package/dist/src/connectors/case-boundary/internals/boundary/Result/BoundarySuccess.js +5 -9
  53. package/dist/src/connectors/case-boundary/internals/boundary/Result/BoundarySuccess.js.map +1 -1
  54. package/dist/src/connectors/case-boundary/internals/boundary/Result/BoundarySuccessWithAny.d.ts +5 -5
  55. package/dist/src/connectors/case-boundary/internals/boundary/Result/BoundarySuccessWithAny.d.ts.map +1 -1
  56. package/dist/src/connectors/case-boundary/internals/boundary/Result/BoundarySuccessWithAny.js +6 -10
  57. package/dist/src/connectors/case-boundary/internals/boundary/Result/BoundarySuccessWithAny.js.map +1 -1
  58. package/dist/src/connectors/case-boundary/internals/boundary/Result/BoundarySuccessWithMap.d.ts +2 -2
  59. package/dist/src/connectors/case-boundary/internals/boundary/Result/BoundarySuccessWithMap.d.ts.map +1 -1
  60. package/dist/src/connectors/case-boundary/internals/boundary/Result/BoundarySuccessWithMap.js +5 -9
  61. package/dist/src/connectors/case-boundary/internals/boundary/Result/BoundarySuccessWithMap.js.map +1 -1
  62. package/dist/src/connectors/case-boundary/internals/boundary/Result/index.d.ts +7 -7
  63. package/dist/src/connectors/case-boundary/internals/boundary/Result/index.d.ts.map +1 -1
  64. package/dist/src/connectors/case-boundary/internals/boundary/Result/index.js +7 -23
  65. package/dist/src/connectors/case-boundary/internals/boundary/Result/index.js.map +1 -1
  66. package/dist/src/connectors/case-boundary/internals/boundary/StateHandler.d.ts +1 -1
  67. package/dist/src/connectors/case-boundary/internals/boundary/StateHandler.d.ts.map +1 -1
  68. package/dist/src/connectors/case-boundary/internals/boundary/StateHandler.js +4 -8
  69. package/dist/src/connectors/case-boundary/internals/boundary/StateHandler.js.map +1 -1
  70. package/dist/src/connectors/case-boundary/internals/boundary/config.types.d.ts +10 -2
  71. package/dist/src/connectors/case-boundary/internals/boundary/config.types.d.ts.map +1 -1
  72. package/dist/src/connectors/case-boundary/internals/boundary/config.types.js +1 -2
  73. package/dist/src/connectors/case-boundary/internals/boundary/index.d.ts +9 -9
  74. package/dist/src/connectors/case-boundary/internals/boundary/index.d.ts.map +1 -1
  75. package/dist/src/connectors/case-boundary/internals/boundary/index.js +9 -25
  76. package/dist/src/connectors/case-boundary/internals/boundary/index.js.map +1 -1
  77. package/dist/src/connectors/case-boundary/internals/index.d.ts +4 -4
  78. package/dist/src/connectors/case-boundary/internals/index.d.ts.map +1 -1
  79. package/dist/src/connectors/case-boundary/internals/index.js +4 -20
  80. package/dist/src/connectors/case-boundary/internals/index.js.map +1 -1
  81. package/dist/src/connectors/case-boundary/internals/mappers/LogPrinter.d.ts +1 -1
  82. package/dist/src/connectors/case-boundary/internals/mappers/LogPrinter.d.ts.map +1 -1
  83. package/dist/src/connectors/case-boundary/internals/mappers/LogPrinter.js +11 -15
  84. package/dist/src/connectors/case-boundary/internals/mappers/LogPrinter.js.map +1 -1
  85. package/dist/src/connectors/case-boundary/internals/mappers/Result/failureToJsError.d.ts +2 -2
  86. package/dist/src/connectors/case-boundary/internals/mappers/Result/failureToJsError.d.ts.map +1 -1
  87. package/dist/src/connectors/case-boundary/internals/mappers/Result/failureToJsError.js +10 -14
  88. package/dist/src/connectors/case-boundary/internals/mappers/Result/failureToJsError.js.map +1 -1
  89. package/dist/src/connectors/case-boundary/internals/mappers/Result/handleResult.d.ts +3 -2
  90. package/dist/src/connectors/case-boundary/internals/mappers/Result/handleResult.d.ts.map +1 -1
  91. package/dist/src/connectors/case-boundary/internals/mappers/Result/handleResult.js +25 -12
  92. package/dist/src/connectors/case-boundary/internals/mappers/Result/handleResult.js.map +1 -1
  93. package/dist/src/connectors/case-boundary/internals/mappers/Result/index.d.ts +3 -3
  94. package/dist/src/connectors/case-boundary/internals/mappers/Result/index.d.ts.map +1 -1
  95. package/dist/src/connectors/case-boundary/internals/mappers/Result/index.js +3 -19
  96. package/dist/src/connectors/case-boundary/internals/mappers/Result/index.js.map +1 -1
  97. package/dist/src/connectors/case-boundary/internals/mappers/Result/jsErrorToFailure.d.ts +1 -1
  98. package/dist/src/connectors/case-boundary/internals/mappers/Result/jsErrorToFailure.d.ts.map +1 -1
  99. package/dist/src/connectors/case-boundary/internals/mappers/Result/jsErrorToFailure.js +7 -8
  100. package/dist/src/connectors/case-boundary/internals/mappers/Result/jsErrorToFailure.js.map +1 -1
  101. package/dist/src/connectors/case-boundary/internals/mappers/Result/types.js +1 -2
  102. package/dist/src/connectors/case-boundary/internals/mappers/config.d.ts +2 -2
  103. package/dist/src/connectors/case-boundary/internals/mappers/config.d.ts.map +1 -1
  104. package/dist/src/connectors/case-boundary/internals/mappers/config.js +9 -13
  105. package/dist/src/connectors/case-boundary/internals/mappers/config.js.map +1 -1
  106. package/dist/src/connectors/case-boundary/internals/mappers/index.d.ts +5 -4
  107. package/dist/src/connectors/case-boundary/internals/mappers/index.d.ts.map +1 -1
  108. package/dist/src/connectors/case-boundary/internals/mappers/index.js +5 -20
  109. package/dist/src/connectors/case-boundary/internals/mappers/index.js.map +1 -1
  110. package/dist/src/connectors/case-boundary/internals/mappers/invokeableFunction.d.ts +6 -0
  111. package/dist/src/connectors/case-boundary/internals/mappers/invokeableFunction.d.ts.map +1 -0
  112. package/dist/src/connectors/case-boundary/internals/mappers/invokeableFunction.js +9 -0
  113. package/dist/src/connectors/case-boundary/internals/mappers/invokeableFunction.js.map +1 -0
  114. package/dist/src/connectors/case-boundary/internals/mappers/stateHandlers.d.ts +2 -2
  115. package/dist/src/connectors/case-boundary/internals/mappers/stateHandlers.d.ts.map +1 -1
  116. package/dist/src/connectors/case-boundary/internals/mappers/stateHandlers.js +17 -21
  117. package/dist/src/connectors/case-boundary/internals/mappers/stateHandlers.js.map +1 -1
  118. package/dist/src/connectors/case-boundary/internals/mappers/triggers.d.ts +1 -1
  119. package/dist/src/connectors/case-boundary/internals/mappers/triggers.d.ts.map +1 -1
  120. package/dist/src/connectors/case-boundary/internals/mappers/triggers.js +11 -16
  121. package/dist/src/connectors/case-boundary/internals/mappers/triggers.js.map +1 -1
  122. package/dist/src/connectors/case-boundary/internals/types.d.ts +21 -1
  123. package/dist/src/connectors/case-boundary/internals/types.d.ts.map +1 -1
  124. package/dist/src/connectors/case-boundary/internals/types.js +1 -17
  125. package/dist/src/connectors/case-boundary/internals/types.js.map +1 -1
  126. package/dist/src/connectors/case-boundary/internals/types.jsii-boundary.js +1 -2
  127. package/dist/src/connectors/case-boundary/internals/types.jsii-boundary.js.map +1 -1
  128. package/dist/src/connectors/case-boundary/internals/types.ts-boundary.d.ts +1 -2
  129. package/dist/src/connectors/case-boundary/internals/types.ts-boundary.d.ts.map +1 -1
  130. package/dist/src/connectors/case-boundary/internals/types.ts-boundary.js +1 -2
  131. package/dist/src/connectors/case-boundary/plugins.d.ts +3 -0
  132. package/dist/src/connectors/case-boundary/plugins.d.ts.map +1 -0
  133. package/dist/src/connectors/case-boundary/plugins.js +3 -0
  134. package/dist/src/connectors/case-boundary/plugins.js.map +1 -0
  135. package/dist/src/connectors/case-boundary/verifier.d.ts +3 -2
  136. package/dist/src/connectors/case-boundary/verifier.d.ts.map +1 -1
  137. package/dist/src/connectors/case-boundary/verifier.js +11 -16
  138. package/dist/src/connectors/case-boundary/verifier.js.map +1 -1
  139. package/dist/src/connectors/grpc/UnreachableError.js +1 -5
  140. package/dist/src/connectors/grpc/UnreachableError.js.map +1 -1
  141. package/dist/src/connectors/grpc/contract-case-stream.d.ts.map +1 -1
  142. package/dist/src/connectors/grpc/contract-case-stream.js +14 -21
  143. package/dist/src/connectors/grpc/contract-case-stream.js.map +1 -1
  144. package/dist/src/connectors/grpc/contractDefinition.d.ts +1 -1
  145. package/dist/src/connectors/grpc/contractDefinition.d.ts.map +1 -1
  146. package/dist/src/connectors/grpc/contractDefinition.js +84 -46
  147. package/dist/src/connectors/grpc/contractDefinition.js.map +1 -1
  148. package/dist/src/connectors/grpc/contractVerification.d.ts +1 -1
  149. package/dist/src/connectors/grpc/contractVerification.d.ts.map +1 -1
  150. package/dist/src/connectors/grpc/contractVerification.js +103 -49
  151. package/dist/src/connectors/grpc/contractVerification.js.map +1 -1
  152. package/dist/src/connectors/grpc/printers.d.ts +2 -2
  153. package/dist/src/connectors/grpc/printers.d.ts.map +1 -1
  154. package/dist/src/connectors/grpc/printers.js +8 -13
  155. package/dist/src/connectors/grpc/printers.js.map +1 -1
  156. package/dist/src/connectors/grpc/promiseHandler/promiseHandler.d.ts +1 -1
  157. package/dist/src/connectors/grpc/promiseHandler/promiseHandler.d.ts.map +1 -1
  158. package/dist/src/connectors/grpc/promiseHandler/promiseHandler.js +10 -16
  159. package/dist/src/connectors/grpc/promiseHandler/promiseHandler.js.map +1 -1
  160. package/dist/src/connectors/grpc/requestMappers/config/config.d.ts +3 -3
  161. package/dist/src/connectors/grpc/requestMappers/config/config.d.ts.map +1 -1
  162. package/dist/src/connectors/grpc/requestMappers/config/config.js +34 -35
  163. package/dist/src/connectors/grpc/requestMappers/config/config.js.map +1 -1
  164. package/dist/src/connectors/grpc/requestMappers/config/index.d.ts +1 -1
  165. package/dist/src/connectors/grpc/requestMappers/config/index.d.ts.map +1 -1
  166. package/dist/src/connectors/grpc/requestMappers/config/index.js +1 -17
  167. package/dist/src/connectors/grpc/requestMappers/config/index.js.map +1 -1
  168. package/dist/src/connectors/grpc/requestMappers/config/stateHandlers.d.ts +3 -3
  169. package/dist/src/connectors/grpc/requestMappers/config/stateHandlers.d.ts.map +1 -1
  170. package/dist/src/connectors/grpc/requestMappers/config/stateHandlers.js +9 -13
  171. package/dist/src/connectors/grpc/requestMappers/config/stateHandlers.js.map +1 -1
  172. package/dist/src/connectors/grpc/requestMappers/index.d.ts +4 -3
  173. package/dist/src/connectors/grpc/requestMappers/index.d.ts.map +1 -1
  174. package/dist/src/connectors/grpc/requestMappers/index.js +4 -19
  175. package/dist/src/connectors/grpc/requestMappers/index.js.map +1 -1
  176. package/dist/src/connectors/grpc/requestMappers/invokeableFunctions.d.ts +4 -0
  177. package/dist/src/connectors/grpc/requestMappers/invokeableFunctions.d.ts.map +1 -0
  178. package/dist/src/connectors/grpc/requestMappers/invokeableFunctions.js +8 -0
  179. package/dist/src/connectors/grpc/requestMappers/invokeableFunctions.js.map +1 -0
  180. package/dist/src/connectors/grpc/requestMappers/json.d.ts +1 -1
  181. package/dist/src/connectors/grpc/requestMappers/json.d.ts.map +1 -1
  182. package/dist/src/connectors/grpc/requestMappers/json.js +5 -10
  183. package/dist/src/connectors/grpc/requestMappers/json.js.map +1 -1
  184. package/dist/src/connectors/grpc/requestMappers/result.d.ts +2 -2
  185. package/dist/src/connectors/grpc/requestMappers/result.d.ts.map +1 -1
  186. package/dist/src/connectors/grpc/requestMappers/result.js +22 -26
  187. package/dist/src/connectors/grpc/requestMappers/result.js.map +1 -1
  188. package/dist/src/connectors/grpc/requestMappers/values.d.ts +1 -1
  189. package/dist/src/connectors/grpc/requestMappers/values.d.ts.map +1 -1
  190. package/dist/src/connectors/grpc/requestMappers/values.js +5 -11
  191. package/dist/src/connectors/grpc/requestMappers/values.js.map +1 -1
  192. package/dist/src/connectors/grpc/responseMappers/index.d.ts +3 -3
  193. package/dist/src/connectors/grpc/responseMappers/index.d.ts.map +1 -1
  194. package/dist/src/connectors/grpc/responseMappers/index.js +3 -19
  195. package/dist/src/connectors/grpc/responseMappers/index.js.map +1 -1
  196. package/dist/src/connectors/grpc/responseMappers/json.d.ts +1 -1
  197. package/dist/src/connectors/grpc/responseMappers/json.d.ts.map +1 -1
  198. package/dist/src/connectors/grpc/responseMappers/json.js +5 -10
  199. package/dist/src/connectors/grpc/responseMappers/json.js.map +1 -1
  200. package/dist/src/connectors/grpc/responseMappers/logMessages.d.ts +2 -2
  201. package/dist/src/connectors/grpc/responseMappers/logMessages.d.ts.map +1 -1
  202. package/dist/src/connectors/grpc/responseMappers/logMessages.js +29 -36
  203. package/dist/src/connectors/grpc/responseMappers/logMessages.js.map +1 -1
  204. package/dist/src/connectors/grpc/responseMappers/result.d.ts +2 -2
  205. package/dist/src/connectors/grpc/responseMappers/result.d.ts.map +1 -1
  206. package/dist/src/connectors/grpc/responseMappers/result.js +13 -17
  207. package/dist/src/connectors/grpc/responseMappers/result.js.map +1 -1
  208. package/dist/src/connectors/grpc/sendContractResponse.d.ts +1 -1
  209. package/dist/src/connectors/grpc/sendContractResponse.d.ts.map +1 -1
  210. package/dist/src/connectors/grpc/sendContractResponse.js +6 -10
  211. package/dist/src/connectors/grpc/sendContractResponse.js.map +1 -1
  212. package/dist/src/domain/config.d.ts +3 -3
  213. package/dist/src/domain/config.d.ts.map +1 -1
  214. package/dist/src/domain/config.js +2 -7
  215. package/dist/src/domain/config.js.map +1 -1
  216. package/dist/src/domain/define.d.ts +12 -25
  217. package/dist/src/domain/define.d.ts.map +1 -1
  218. package/dist/src/domain/define.js +31 -46
  219. package/dist/src/domain/define.js.map +1 -1
  220. package/dist/src/domain/errors/ConnectorError.d.ts +5 -0
  221. package/dist/src/domain/errors/ConnectorError.d.ts.map +1 -1
  222. package/dist/src/domain/errors/ConnectorError.js +6 -5
  223. package/dist/src/domain/errors/ConnectorError.js.map +1 -1
  224. package/dist/src/domain/errors/errors.d.ts +1 -1
  225. package/dist/src/domain/errors/errors.d.ts.map +1 -1
  226. package/dist/src/domain/errors/errors.js +3 -8
  227. package/dist/src/domain/errors/errors.js.map +1 -1
  228. package/dist/src/domain/errors/index.d.ts +2 -2
  229. package/dist/src/domain/errors/index.d.ts.map +1 -1
  230. package/dist/src/domain/errors/index.js +2 -18
  231. package/dist/src/domain/errors/index.js.map +1 -1
  232. package/dist/src/domain/loadPlugin.d.ts +4 -0
  233. package/dist/src/domain/loadPlugin.d.ts.map +1 -0
  234. package/dist/src/domain/loadPlugin.js +4 -0
  235. package/dist/src/domain/loadPlugin.js.map +1 -0
  236. package/dist/src/domain/maintainerLog.js +3 -7
  237. package/dist/src/domain/maintainerLog.js.map +1 -1
  238. package/dist/src/domain/types.d.ts +4 -2
  239. package/dist/src/domain/types.d.ts.map +1 -1
  240. package/dist/src/domain/types.js +1 -2
  241. package/dist/src/domain/verify.d.ts +13 -19
  242. package/dist/src/domain/verify.d.ts.map +1 -1
  243. package/dist/src/domain/verify.js +30 -35
  244. package/dist/src/domain/verify.js.map +1 -1
  245. package/dist/src/entities/types.d.ts +1 -1
  246. package/dist/src/entities/types.d.ts.map +1 -1
  247. package/dist/src/entities/types.js +1 -11
  248. package/dist/src/entities/types.js.map +1 -1
  249. package/dist/src/index.d.ts +1 -1
  250. package/dist/src/index.d.ts.map +1 -1
  251. package/dist/src/index.js +1 -17
  252. package/dist/src/index.js.map +1 -1
  253. package/dist/src/versionString.js +3 -9
  254. package/dist/src/versionString.js.map +1 -1
  255. package/dist/tsconfig.build.tsbuildinfo +1 -1
  256. package/package/case-connector.js +2 -2
  257. package/package/case-connector.js.LICENSE.txt +30 -0
  258. package/package/case-connector.js.map +1 -1
  259. package/package.json +17 -15
  260. package/dist/src/connectors/grpc/proto/contract_case_stream_grpc_pb.d.ts +0 -40
  261. package/dist/src/connectors/grpc/proto/contract_case_stream_grpc_pb.d.ts.map +0 -1
  262. package/dist/src/connectors/grpc/proto/contract_case_stream_grpc_pb.js +0 -59
  263. package/dist/src/connectors/grpc/proto/contract_case_stream_grpc_pb.js.map +0 -1
  264. package/dist/src/connectors/grpc/proto/contract_case_stream_pb.d.ts +0 -2
  265. package/dist/src/connectors/grpc/proto/contract_case_stream_pb.d.ts.map +0 -1
  266. package/dist/src/connectors/grpc/proto/contract_case_stream_pb.js +0 -6680
  267. package/dist/src/connectors/grpc/proto/contract_case_stream_pb.js.map +0 -1
  268. package/proto/contract_case_pure_rpc.proto +0 -106
  269. package/proto/contract_case_stream.proto +0 -329
  270. package/src/connectors/grpc/proto/contract_case_stream_grpc_pb.d.ts +0 -130
  271. package/src/connectors/grpc/proto/contract_case_stream_grpc_pb.js +0 -68
  272. package/src/connectors/grpc/proto/contract_case_stream_pb.d.ts +0 -1469
  273. package/src/connectors/grpc/proto/contract_case_stream_pb.js +0 -8330
  274. /package/{webpack.config.js → webpack.config.cjs} +0 -0
@@ -0,0 +1,64 @@
1
+ import { CaseConfigurationError, CaseCoreError, PluginLoader, } from '@contract-case/case-core';
2
+ import { versionString } from '../../../versionString.js';
3
+ import { convertConfig, jsErrorToFailure, wrapLogPrinter, } from './mappers/index.js';
4
+ import { BoundarySuccess } from './index.js';
5
+ /**
6
+ * A BoundaryPluginLoader allows loading plugins into the core
7
+ *
8
+ * @public
9
+ */
10
+ export class BoundaryPluginLoader {
11
+ loader;
12
+ constructorConfig;
13
+ logPrinter;
14
+ resultPrinter;
15
+ parentVersions;
16
+ /**
17
+ * @public
18
+ * Construct a BoundaryContractDefiner to allow defining contracts.
19
+ *
20
+ * @param config - A ContractCaseBoundaryConfig object for the configuration
21
+ * @param logPrinter - An ILogPrinter to enable printing logs
22
+ * @param resultPrinter - An IResultPrinter to enable printing results
23
+ * @param parentVersions - The names version(s) of the package(s) calling
24
+ * this, where each entry in the array contains a name and version, with the
25
+ * first entry in the array being the furthest package up the call stack.
26
+ */
27
+ constructor(config, logPrinter, resultPrinter, parentVersions) {
28
+ this.constructorConfig = config;
29
+ this.loader = undefined;
30
+ this.logPrinter = logPrinter;
31
+ this.resultPrinter = resultPrinter;
32
+ // If invoked directly, we need to include our version
33
+ if (!parentVersions.includes(versionString)) {
34
+ this.parentVersions = [...parentVersions, versionString];
35
+ }
36
+ else {
37
+ this.parentVersions = parentVersions;
38
+ }
39
+ }
40
+ initialiseLoader() {
41
+ if (this.loader === undefined) {
42
+ const { config } = convertConfig(this.constructorConfig);
43
+ this.loader = new PluginLoader(config, wrapLogPrinter(this.logPrinter, this.resultPrinter), [...this.parentVersions]);
44
+ }
45
+ }
46
+ async loadPlugins(moduleNames) {
47
+ this.initialiseLoader();
48
+ return Promise.all(moduleNames.map(
49
+ // webpack ignore is needed here so that the final bundle for host
50
+ // languages is able to import arbitrary libs, without webpack failing
51
+ (moduleName) => import(/* webpackIgnore: true */ moduleName)))
52
+ .then((plugins) => {
53
+ if (this.loader == null) {
54
+ throw new CaseCoreError('this.loader was not initialised during loadPlugins. This should never happen, as initialiseLoader() is meant to be called first');
55
+ }
56
+ this.loader.loadPlugins(plugins);
57
+ }, (e) => {
58
+ throw new CaseConfigurationError(`Unable to load plugin: ${e.message}`);
59
+ })
60
+ .then(() => new BoundarySuccess())
61
+ .catch(jsErrorToFailure);
62
+ }
63
+ }
64
+ //# sourceMappingURL=BoundaryPluginLoader.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BoundaryPluginLoader.js","sourceRoot":"","sources":["../../../../../src/connectors/case-boundary/internals/BoundaryPluginLoader.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sBAAsB,EACtB,aAAa,EACb,YAAY,GACb,MAAM,0BAA0B,CAAC;AAQlC,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EACL,aAAa,EACb,gBAAgB,EAChB,cAAc,GACf,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAE7C;;;;GAIG;AACH,MAAM,OAAO,oBAAoB;IACvB,MAAM,CAA2B;IAExB,iBAAiB,CAA6B;IAE9C,UAAU,CAAc;IAExB,aAAa,CAAiB;IAE9B,cAAc,CAAW;IAE1C;;;;;;;;;;OAUG;IACH,YACE,MAAkC,EAClC,UAAuB,EACvB,aAA6B,EAC7B,cAAwB;QAExB,IAAI,CAAC,iBAAiB,GAAG,MAAM,CAAC;QAChC,IAAI,CAAC,MAAM,GAAG,SAAS,CAAC;QACxB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,sDAAsD;QACtD,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,aAAa,CAAC,EAAE,CAAC;YAC5C,IAAI,CAAC,cAAc,GAAG,CAAC,GAAG,cAAc,EAAE,aAAa,CAAC,CAAC;QAC3D,CAAC;aAAM,CAAC;YACN,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;QACvC,CAAC;IACH,CAAC;IAEO,gBAAgB;QACtB,IAAI,IAAI,CAAC,MAAM,KAAK,SAAS,EAAE,CAAC;YAC9B,MAAM,EAAE,MAAM,EAAE,GAAG,aAAa,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;YAEzD,IAAI,CAAC,MAAM,GAAG,IAAI,YAAY,CAC5B,MAAM,EACN,cAAc,CAAC,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,aAAa,CAAC,EACnD,CAAC,GAAG,IAAI,CAAC,cAAc,CAAC,CACzB,CAAC;QACJ,CAAC;IACH,CAAC;IAED,KAAK,CAAC,WAAW,CAAC,WAAqB;QACrC,IAAI,CAAC,gBAAgB,EAAE,CAAC;QACxB,OAAO,OAAO,CAAC,GAAG,CAChB,WAAW,CAAC,GAAG;QACb,kEAAkE;QAClE,sEAAsE;QACtE,CAAC,UAAU,EAAE,EAAE,CAAC,MAAM,CAAC,yBAAyB,CAAC,UAAU,CAAC,CAC7D,CACF;aACE,IAAI,CACH,CAAC,OAAO,EAAE,EAAE;YACV,IAAI,IAAI,CAAC,MAAM,IAAI,IAAI,EAAE,CAAC;gBACxB,MAAM,IAAI,aAAa,CACrB,iIAAiI,CAClI,CAAC;YACJ,CAAC;YACD,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;QACnC,CAAC,EACD,CAAC,CAAC,EAAE,EAAE;YACJ,MAAM,IAAI,sBAAsB,CAC9B,0BAA0B,CAAC,CAAC,OAAO,EAAE,CACtC,CAAC;QACJ,CAAC,CACF;aACA,IAAI,CAAC,GAAG,EAAE,CAAC,IAAI,eAAe,EAAE,CAAC;aACjC,KAAK,CAAC,gBAAgB,CAAC,CAAC;IAC7B,CAAC;CACF"}
@@ -1,12 +1,9 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BoundaryCrashMessage = void 0;
4
1
  /**
5
2
  * Contains constants for the crash messages
6
3
  *
7
4
  * @public
8
5
  */
9
- class BoundaryCrashMessage {
6
+ export class BoundaryCrashMessage {
10
7
  static CRASH_MESSAGE_START = `
11
8
  ---------------------------------------------------
12
9
  !!!!🚨🚨🚨🚨🚨 ContractCase Crashed 🚨🚨🚨🚨🚨!!!!
@@ -37,5 +34,4 @@ Sorry about this.
37
34
  ---------------------------------------------------
38
35
  `;
39
36
  }
40
- exports.BoundaryCrashMessage = BoundaryCrashMessage;
41
37
  //# sourceMappingURL=BoundaryCrashMessage.js.map
@@ -1 +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"}
1
+ {"version":3,"file":"BoundaryCrashMessage.js","sourceRoot":"","sources":["../../../../../../src/connectors/case-boundary/internals/boundary/BoundaryCrashMessage.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,OAAO,oBAAoB;IAC/B,MAAM,CAAU,mBAAmB,GAAG;;;;;;;;;CASvC,CAAC;IAEA,MAAM,CAAU,iBAAiB,GAAG;;;;;;;;;;;;;;;;;;CAkBrC,CAAC"}
@@ -1,12 +1,9 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ConfigLogLevelConstants = void 0;
4
1
  /**
5
2
  * Convenience class to hold the values for LogLevel so that DSL layers don't need to know the actual value
6
3
  *
7
4
  * @public
8
5
  */
9
- class ConfigLogLevelConstants {
6
+ export class ConfigLogLevelConstants {
10
7
  /**
11
8
  * Print no logs (note, results may still be printed - see `printResults`)
12
9
  */
@@ -32,5 +29,4 @@ class ConfigLogLevelConstants {
32
29
  */
33
30
  static DEEP_MAINTAINER_DEBUG = 'deepMaintainerDebug';
34
31
  }
35
- exports.ConfigLogLevelConstants = ConfigLogLevelConstants;
36
32
  //# sourceMappingURL=ConfigLogLevelConstants.js.map
@@ -1 +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"}
1
+ {"version":3,"file":"ConfigLogLevelConstants.js","sourceRoot":"","sources":["../../../../../../src/connectors/case-boundary/internals/boundary/ConfigLogLevelConstants.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,OAAO,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"}
@@ -1,12 +1,9 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ConfigPublishConstants = void 0;
4
1
  /**
5
2
  * Convenience class to hold the values for the publish setting so that clients don't need to know the strings
6
3
  *
7
4
  * @public
8
5
  */
9
- class ConfigPublishConstants {
6
+ export class ConfigPublishConstants {
10
7
  /**
11
8
  * Only publish contracts and verification results when in in CI according to https://github.com/watson/ci-info#supported-ci-tools
12
9
  */
@@ -20,5 +17,4 @@ class ConfigPublishConstants {
20
17
  */
21
18
  static ALWAYS = 'ALWAYS';
22
19
  }
23
- exports.ConfigPublishConstants = ConfigPublishConstants;
24
20
  //# sourceMappingURL=ConfigPublishConstants.js.map
@@ -1 +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"}
1
+ {"version":3,"file":"ConfigPublishConstants.js","sourceRoot":"","sources":["../../../../../../src/connectors/case-boundary/internals/boundary/ConfigPublishConstants.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,OAAO,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"}
@@ -1,4 +1,4 @@
1
- import { BoundaryResult } from './Result';
1
+ import { BoundaryResult } from './Result/index.js';
2
2
  /**
3
3
  * Data class to hold data to print a message error during matching
4
4
  *
@@ -1 +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"}
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,mBAAmB,CAAC;AAEnD;;;;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"}
@@ -1,3 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
3
2
  //# sourceMappingURL=ILogPrinter.js.map
@@ -1,4 +1,4 @@
1
- import { BoundaryResult } from './Result';
1
+ import { BoundaryResult } from './Result/index.js';
2
2
  /**
3
3
  * Interface to tell ContractCase to run the test indicated in a call to an
4
4
  * IRunTestCallback
@@ -1 +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"}
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,mBAAmB,CAAC;AAEnD;;;;;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"}
@@ -1,3 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
3
2
  //# sourceMappingURL=IRunTestCallback.js.map
@@ -1,4 +1,4 @@
1
- import { BoundaryResult } from './Result';
1
+ import { BoundaryResult } from './Result/index.js';
2
2
  /**
3
3
  * Interface called by ContractCase to invoke user's test code.
4
4
  *
@@ -1 +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"}
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,mBAAmB,CAAC;AAEnD;;;;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"}
@@ -1,3 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
3
2
  //# sourceMappingURL=ITriggerFunction.js.map
@@ -1,5 +1,5 @@
1
- import { BoundaryResult } from './BoundaryResult';
2
- import { RESULT_FAILURE } from './BoundaryResultTypeConstants';
1
+ import { BoundaryResult } from './BoundaryResult.js';
2
+ import { RESULT_FAILURE } from './BoundaryResultTypeConstants.js';
3
3
  /**
4
4
  * This indicates a failure. Use `BoundaryFailureKindConstants` to determine what type of failure it is.
5
5
  *
@@ -1 +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"}
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,qBAAqB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAElE;;;;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"}
@@ -1,25 +1,21 @@
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");
1
+ import { BoundaryResult } from './BoundaryResult.js';
2
+ import { RESULT_FAILURE } from './BoundaryResultTypeConstants.js';
6
3
  /**
7
4
  * This indicates a failure. Use `BoundaryFailureKindConstants` to determine what type of failure it is.
8
5
  *
9
6
  * @public
10
7
  */
11
- class BoundaryFailure extends BoundaryResult_1.BoundaryResult {
8
+ export class BoundaryFailure extends BoundaryResult {
12
9
  resultType;
13
10
  kind;
14
11
  message;
15
12
  location;
16
13
  constructor(kind, message, location) {
17
- super(BoundaryResultTypeConstants_1.RESULT_FAILURE);
18
- this.resultType = BoundaryResultTypeConstants_1.RESULT_FAILURE;
14
+ super(RESULT_FAILURE);
15
+ this.resultType = RESULT_FAILURE;
19
16
  this.kind = kind;
20
17
  this.message = message;
21
18
  this.location = location;
22
19
  }
23
20
  }
24
- exports.BoundaryFailure = BoundaryFailure;
25
21
  //# sourceMappingURL=BoundaryFailure.js.map
@@ -1 +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"}
1
+ {"version":3,"file":"BoundaryFailure.js","sourceRoot":"","sources":["../../../../../../../src/connectors/case-boundary/internals/boundary/Result/BoundaryFailure.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAElE;;;;GAIG;AACH,MAAM,OAAO,eAAgB,SAAQ,cAAc;IAC/B,UAAU,CAAwB;IAE3C,IAAI,CAAS;IAEb,OAAO,CAAS;IAEhB,QAAQ,CAAS;IAE1B,YAAY,IAAY,EAAE,OAAe,EAAE,QAAgB;QACzD,KAAK,CAAC,cAAc,CAAC,CAAC;QACtB,IAAI,CAAC,UAAU,GAAG,cAAc,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"}
@@ -7,26 +7,39 @@ export declare class BoundaryFailureKindConstants {
7
7
  /**
8
8
  * Something went wrong in ContractCase internals. Almost certainly a bug.
9
9
  */
10
- static readonly CASE_CORE_ERROR: string;
10
+ static readonly CASE_CORE_ERROR = "CaseCoreError";
11
11
  /**
12
12
  * The user has configured ContractCase incorrectly
13
13
  */
14
- static readonly CASE_CONFIGURATION_ERROR: string;
14
+ static readonly CASE_CONFIGURATION_ERROR = "CaseConfigurationError";
15
15
  /**
16
16
  * The test's expectations were not met
17
17
  */
18
- static readonly CASE_FAILED_ASSERTION_ERROR: string;
18
+ static readonly CASE_FAILED_ASSERTION_ERROR = "CaseFailedAssertionError";
19
19
  /**
20
20
  * The user-provided trigger failed when it was not expected to do so
21
21
  */
22
- static readonly CASE_TRIGGER_ERROR: string;
22
+ static readonly CASE_TRIGGER_ERROR = "CaseTriggerError";
23
23
  /**
24
24
  * The user-provided verification function (testResponse or testErrorResponse) failed
25
25
  */
26
- static readonly CASE_VERIFY_RETURN_ERROR: string;
26
+ static readonly CASE_VERIFY_RETURN_ERROR = "VerifyTriggerReturnObjectError";
27
27
  /**
28
28
  * An error while contacting a contract broker
29
29
  */
30
- static readonly CASE_BROKER_ERROR: string;
30
+ static readonly CASE_BROKER_ERROR = "BrokerError";
31
+ /**
32
+ * A mapping from error names to communication constants.
33
+ * This is maintained because when the JS is minified, the names aren't predictable.
34
+ */
35
+ static jsNameToConstant: {
36
+ [x: string]: string;
37
+ CaseCoreError: string;
38
+ CaseConfigurationError: string;
39
+ CaseFailedAssertionError: string;
40
+ CaseTriggerError: string;
41
+ VerifyTriggerReturnObjectError: string;
42
+ BrokerError: string;
43
+ };
31
44
  }
32
45
  //# sourceMappingURL=BoundaryFailureKindConstants.d.ts.map
@@ -1 +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"}
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,mBAAmB;IAElD;;OAEG;IACH,MAAM,CAAC,QAAQ,CAAC,wBAAwB,4BAA4B;IAEpE;;OAEG;IACH,MAAM,CAAC,QAAQ,CAAC,2BAA2B,8BAA8B;IAEzE;;OAEG;IACH,MAAM,CAAC,QAAQ,CAAC,kBAAkB,sBAAsB;IAExD;;OAEG;IACH,MAAM,CAAC,QAAQ,CAAC,wBAAwB,oCAAoC;IAE5E;;OAEG;IACH,MAAM,CAAC,QAAQ,CAAC,iBAAiB,iBAAiB;IAElD;;;OAGG;IACH,MAAM,CAAC,gBAAgB;;;;;;;;MAerB;CACH"}
@@ -1,37 +1,53 @@
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");
1
+ import { BrokerError, CaseConfigurationError, CaseCoreError, CaseFailedAssertionError, CaseTriggerError, VerifyTriggerReturnObjectError, } from '@contract-case/case-core';
5
2
  /**
6
3
  * Constants to use for determining what kind of failure you have
7
4
  *
8
5
  * @public
9
6
  */
10
- class BoundaryFailureKindConstants {
7
+ export class BoundaryFailureKindConstants {
11
8
  /**
12
9
  * Something went wrong in ContractCase internals. Almost certainly a bug.
13
10
  */
14
- static CASE_CORE_ERROR = case_core_1.CaseCoreError.name;
11
+ static CASE_CORE_ERROR = 'CaseCoreError';
15
12
  /**
16
13
  * The user has configured ContractCase incorrectly
17
14
  */
18
- static CASE_CONFIGURATION_ERROR = case_core_1.CaseConfigurationError.name;
15
+ static CASE_CONFIGURATION_ERROR = 'CaseConfigurationError';
19
16
  /**
20
17
  * The test's expectations were not met
21
18
  */
22
- static CASE_FAILED_ASSERTION_ERROR = case_core_1.CaseFailedAssertionError.name;
19
+ static CASE_FAILED_ASSERTION_ERROR = 'CaseFailedAssertionError';
23
20
  /**
24
21
  * The user-provided trigger failed when it was not expected to do so
25
22
  */
26
- static CASE_TRIGGER_ERROR = case_core_1.CaseTriggerError.name;
23
+ static CASE_TRIGGER_ERROR = 'CaseTriggerError';
27
24
  /**
28
25
  * The user-provided verification function (testResponse or testErrorResponse) failed
29
26
  */
30
- static CASE_VERIFY_RETURN_ERROR = case_core_1.VerifyTriggerReturnObjectError.name;
27
+ static CASE_VERIFY_RETURN_ERROR = 'VerifyTriggerReturnObjectError';
31
28
  /**
32
29
  * An error while contacting a contract broker
33
30
  */
34
- static CASE_BROKER_ERROR = case_core_1.BrokerError.name;
31
+ static CASE_BROKER_ERROR = 'BrokerError';
32
+ /**
33
+ * A mapping from error names to communication constants.
34
+ * This is maintained because when the JS is minified, the names aren't predictable.
35
+ */
36
+ static jsNameToConstant = {
37
+ [CaseCoreError.name]: this.CASE_CORE_ERROR,
38
+ [CaseConfigurationError.name]: this.CASE_CONFIGURATION_ERROR,
39
+ [CaseFailedAssertionError.name]: this.CASE_FAILED_ASSERTION_ERROR,
40
+ [CaseTriggerError.name]: this.CASE_TRIGGER_ERROR,
41
+ [VerifyTriggerReturnObjectError.name]: this.CASE_VERIFY_RETURN_ERROR,
42
+ [BrokerError.name]: this.CASE_BROKER_ERROR,
43
+ // The following mappings are maintained so that the non-minified names also work
44
+ // In case the names are set directly.
45
+ [this.CASE_CORE_ERROR]: this.CASE_CORE_ERROR,
46
+ [this.CASE_CONFIGURATION_ERROR]: this.CASE_CONFIGURATION_ERROR,
47
+ [this.CASE_FAILED_ASSERTION_ERROR]: this.CASE_FAILED_ASSERTION_ERROR,
48
+ [this.CASE_TRIGGER_ERROR]: this.CASE_TRIGGER_ERROR,
49
+ [this.CASE_VERIFY_RETURN_ERROR]: this.CASE_VERIFY_RETURN_ERROR,
50
+ [this.CASE_BROKER_ERROR]: this.CASE_BROKER_ERROR,
51
+ };
35
52
  }
36
- exports.BoundaryFailureKindConstants = BoundaryFailureKindConstants;
37
53
  //# sourceMappingURL=BoundaryFailureKindConstants.js.map
@@ -1 +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"}
1
+ {"version":3,"file":"BoundaryFailureKindConstants.js","sourceRoot":"","sources":["../../../../../../../src/connectors/case-boundary/internals/boundary/Result/BoundaryFailureKindConstants.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,sBAAsB,EACtB,aAAa,EACb,wBAAwB,EACxB,gBAAgB,EAChB,8BAA8B,GAC/B,MAAM,0BAA0B,CAAC;AAElC;;;;GAIG;AACH,MAAM,OAAO,4BAA4B;IACvC;;OAEG;IACH,MAAM,CAAU,eAAe,GAAG,eAAe,CAAC;IAElD;;OAEG;IACH,MAAM,CAAU,wBAAwB,GAAG,wBAAwB,CAAC;IAEpE;;OAEG;IACH,MAAM,CAAU,2BAA2B,GAAG,0BAA0B,CAAC;IAEzE;;OAEG;IACH,MAAM,CAAU,kBAAkB,GAAG,kBAAkB,CAAC;IAExD;;OAEG;IACH,MAAM,CAAU,wBAAwB,GAAG,gCAAgC,CAAC;IAE5E;;OAEG;IACH,MAAM,CAAU,iBAAiB,GAAG,aAAa,CAAC;IAElD;;;OAGG;IACH,MAAM,CAAC,gBAAgB,GAAG;QACxB,CAAC,aAAa,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,eAAe;QAC1C,CAAC,sBAAsB,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,wBAAwB;QAC5D,CAAC,wBAAwB,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,2BAA2B;QACjE,CAAC,gBAAgB,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,kBAAkB;QAChD,CAAC,8BAA8B,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,wBAAwB;QACpE,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,iBAAiB;QAC1C,iFAAiF;QACjF,sCAAsC;QACtC,CAAC,IAAI,CAAC,eAAe,CAAC,EAAE,IAAI,CAAC,eAAe;QAC5C,CAAC,IAAI,CAAC,wBAAwB,CAAC,EAAE,IAAI,CAAC,wBAAwB;QAC9D,CAAC,IAAI,CAAC,2BAA2B,CAAC,EAAE,IAAI,CAAC,2BAA2B;QACpE,CAAC,IAAI,CAAC,kBAAkB,CAAC,EAAE,IAAI,CAAC,kBAAkB;QAClD,CAAC,IAAI,CAAC,wBAAwB,CAAC,EAAE,IAAI,CAAC,wBAAwB;QAC9D,CAAC,IAAI,CAAC,iBAAiB,CAAC,EAAE,IAAI,CAAC,iBAAiB;KACjD,CAAC"}
@@ -1,4 +1,4 @@
1
- import { RESULT_SUCCESS, RESULT_SUCCESS_HAS_MAP_PAYLOAD, RESULT_SUCCESS_HAS_ANY_PAYLOAD, RESULT_FAILURE } from './BoundaryResultTypeConstants';
1
+ import { RESULT_SUCCESS, RESULT_SUCCESS_HAS_MAP_PAYLOAD, RESULT_SUCCESS_HAS_ANY_PAYLOAD, RESULT_FAILURE } from './BoundaryResultTypeConstants.js';
2
2
  type BoundaryResultType = typeof RESULT_SUCCESS | typeof RESULT_SUCCESS_HAS_MAP_PAYLOAD | typeof RESULT_SUCCESS_HAS_ANY_PAYLOAD | typeof RESULT_FAILURE;
3
3
  /**
4
4
  * Supertype for all methods that return results. Use one of `BoundarySuccess`,
@@ -1 +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"}
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,kCAAkC,CAAC;AAE1C,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"}
@@ -1,6 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BoundaryResult = void 0;
4
1
  /**
5
2
  * Supertype for all methods that return results. Use one of `BoundarySuccess`,
6
3
  * `BoundaryFailure`, or one of the specialised `BoundarySuccessWith*` return
@@ -8,7 +5,7 @@ exports.BoundaryResult = void 0;
8
5
  *
9
6
  * @public
10
7
  */
11
- class BoundaryResult {
8
+ export class BoundaryResult {
12
9
  /* One of the constants from ResultTypeConstants indicating what the type of
13
10
  * this result is */
14
11
  resultType;
@@ -16,5 +13,4 @@ class BoundaryResult {
16
13
  this.resultType = result;
17
14
  }
18
15
  }
19
- exports.BoundaryResult = BoundaryResult;
20
16
  //# sourceMappingURL=BoundaryResult.js.map
@@ -1 +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"}
1
+ {"version":3,"file":"BoundaryResult.js","sourceRoot":"","sources":["../../../../../../../src/connectors/case-boundary/internals/boundary/Result/BoundaryResult.ts"],"names":[],"mappings":"AAaA;;;;;;GAMG;AACH,MAAM,OAAgB,cAAc;IAClC;wBACoB;IACX,UAAU,CAAqB;IAExC,YAAY,MAA0B;QACpC,IAAI,CAAC,UAAU,GAAG,MAAM,CAAC;IAC3B,CAAC;CACF"}
@@ -1,39 +1,35 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BoundaryResultTypeConstants = exports.RESULT_FAILURE = exports.RESULT_SUCCESS_HAS_ANY_PAYLOAD = exports.RESULT_SUCCESS_HAS_MAP_PAYLOAD = exports.RESULT_SUCCESS = void 0;
4
1
  /**
5
2
  * This is a success type with no payload
6
3
  * @internal
7
4
  */
8
- exports.RESULT_SUCCESS = 'Success';
5
+ export const RESULT_SUCCESS = 'Success';
9
6
  /**
10
7
  * This is a success type with a map payload
11
8
  * @internal
12
9
  */
13
- exports.RESULT_SUCCESS_HAS_MAP_PAYLOAD = 'SuccessMap';
10
+ export const RESULT_SUCCESS_HAS_MAP_PAYLOAD = 'SuccessMap';
14
11
  /**
15
12
  * This is a success type with an arbitrary object payload
16
13
  * @internal
17
14
  */
18
- exports.RESULT_SUCCESS_HAS_ANY_PAYLOAD = 'SuccessAny';
15
+ export const RESULT_SUCCESS_HAS_ANY_PAYLOAD = 'SuccessAny';
19
16
  /**
20
17
  * This is a failure
21
18
  * @internal
22
19
  */
23
- exports.RESULT_FAILURE = 'Failure';
20
+ export const RESULT_FAILURE = 'Failure';
24
21
  /**
25
22
  * Use these constants to determine what type of result a BoundaryResult is.
26
23
  * @public
27
24
  */
28
- class BoundaryResultTypeConstants {
25
+ export class BoundaryResultTypeConstants {
29
26
  /** This is a success type with no payload */
30
- static RESULT_SUCCESS = exports.RESULT_SUCCESS;
27
+ static RESULT_SUCCESS = RESULT_SUCCESS;
31
28
  /** This is a success type with a map payload */
32
- static RESULT_SUCCESS_HAS_MAP_PAYLOAD = exports.RESULT_SUCCESS_HAS_MAP_PAYLOAD;
29
+ static RESULT_SUCCESS_HAS_MAP_PAYLOAD = RESULT_SUCCESS_HAS_MAP_PAYLOAD;
33
30
  /** This is a success type with an arbitrary object payload */
34
- static RESULT_SUCCESS_HAS_ANY_PAYLOAD = exports.RESULT_SUCCESS_HAS_ANY_PAYLOAD;
31
+ static RESULT_SUCCESS_HAS_ANY_PAYLOAD = RESULT_SUCCESS_HAS_ANY_PAYLOAD;
35
32
  /** This is a failure */
36
- static RESULT_FAILURE = exports.RESULT_FAILURE;
33
+ static RESULT_FAILURE = RESULT_FAILURE;
37
34
  }
38
- exports.BoundaryResultTypeConstants = BoundaryResultTypeConstants;
39
35
  //# sourceMappingURL=BoundaryResultTypeConstants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"BoundaryResultTypeConstants.js","sourceRoot":"","sources":["../../../../../../../src/connectors/case-boundary/internals/boundary/Result/BoundaryResultTypeConstants.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACU,QAAA,cAAc,GAAG,SAAS,CAAC;AACxC;;;GAGG;AACU,QAAA,8BAA8B,GAAG,YAAY,CAAC;AAC3D;;;GAGG;AACU,QAAA,8BAA8B,GAAG,YAAY,CAAC;AAC3D;;;GAGG;AACU,QAAA,cAAc,GAAG,SAAS,CAAC;AAExC;;;GAGG;AACH,MAAa,2BAA2B;IACtC,6CAA6C;IAC7C,MAAM,CAAU,cAAc,GAAG,sBAAc,CAAC;IAEhD,gDAAgD;IAChD,MAAM,CAAU,8BAA8B,GAC5C,sCAA8B,CAAC;IAEjC,8DAA8D;IAC9D,MAAM,CAAU,8BAA8B,GAC5C,sCAA8B,CAAC;IAEjC,wBAAwB;IACxB,MAAM,CAAU,cAAc,GAAG,sBAAc,CAAC;;AAblD,kEAcC"}
1
+ {"version":3,"file":"BoundaryResultTypeConstants.js","sourceRoot":"","sources":["../../../../../../../src/connectors/case-boundary/internals/boundary/Result/BoundaryResultTypeConstants.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,SAAS,CAAC;AACxC;;;GAGG;AACH,MAAM,CAAC,MAAM,8BAA8B,GAAG,YAAY,CAAC;AAC3D;;;GAGG;AACH,MAAM,CAAC,MAAM,8BAA8B,GAAG,YAAY,CAAC;AAC3D;;;GAGG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,SAAS,CAAC;AAExC;;;GAGG;AACH,MAAM,OAAO,2BAA2B;IACtC,6CAA6C;IAC7C,MAAM,CAAU,cAAc,GAAG,cAAc,CAAC;IAEhD,gDAAgD;IAChD,MAAM,CAAU,8BAA8B,GAC5C,8BAA8B,CAAC;IAEjC,8DAA8D;IAC9D,MAAM,CAAU,8BAA8B,GAC5C,8BAA8B,CAAC;IAEjC,wBAAwB;IACxB,MAAM,CAAU,cAAc,GAAG,cAAc,CAAC"}
@@ -1,5 +1,5 @@
1
- import { RESULT_SUCCESS } from './BoundaryResultTypeConstants';
2
- import { BoundaryResult } from './BoundaryResult';
1
+ import { RESULT_SUCCESS } from './BoundaryResultTypeConstants.js';
2
+ import { BoundaryResult } from './BoundaryResult.js';
3
3
  /**
4
4
  * This indicates that the result was successful
5
5
  *
@@ -1 +1 @@
1
- {"version":3,"file":"BoundarySuccess.d.ts","sourceRoot":"","sources":["../../../../../../../src/connectors/case-boundary/internals/boundary/Result/BoundarySuccess.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD;;;;GAIG;AACH,qBAAa,eAAgB,SAAQ,cAAc;IACjD,SAAkB,UAAU,EAAE,OAAO,cAAc,CAAC;;CAMrD"}
1
+ {"version":3,"file":"BoundarySuccess.d.ts","sourceRoot":"","sources":["../../../../../../../src/connectors/case-boundary/internals/boundary/Result/BoundarySuccess.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAErD;;;;GAIG;AACH,qBAAa,eAAgB,SAAQ,cAAc;IACjD,SAAkB,UAAU,EAAE,OAAO,cAAc,CAAC;;CAMrD"}
@@ -1,19 +1,15 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BoundarySuccess = void 0;
4
- const BoundaryResultTypeConstants_1 = require("./BoundaryResultTypeConstants");
5
- const BoundaryResult_1 = require("./BoundaryResult");
1
+ import { RESULT_SUCCESS } from './BoundaryResultTypeConstants.js';
2
+ import { BoundaryResult } from './BoundaryResult.js';
6
3
  /**
7
4
  * This indicates that the result was successful
8
5
  *
9
6
  * @public
10
7
  */
11
- class BoundarySuccess extends BoundaryResult_1.BoundaryResult {
8
+ export class BoundarySuccess extends BoundaryResult {
12
9
  resultType;
13
10
  constructor() {
14
- super(BoundaryResultTypeConstants_1.RESULT_SUCCESS);
15
- this.resultType = BoundaryResultTypeConstants_1.RESULT_SUCCESS;
11
+ super(RESULT_SUCCESS);
12
+ this.resultType = RESULT_SUCCESS;
16
13
  }
17
14
  }
18
- exports.BoundarySuccess = BoundarySuccess;
19
15
  //# sourceMappingURL=BoundarySuccess.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"BoundarySuccess.js","sourceRoot":"","sources":["../../../../../../../src/connectors/case-boundary/internals/boundary/Result/BoundarySuccess.ts"],"names":[],"mappings":";;;AAAA,+EAA+D;AAC/D,qDAAkD;AAElD;;;;GAIG;AACH,MAAa,eAAgB,SAAQ,+BAAc;IAC/B,UAAU,CAAwB;IAEpD;QACE,KAAK,CAAC,4CAAc,CAAC,CAAC;QACtB,IAAI,CAAC,UAAU,GAAG,4CAAc,CAAC;IACnC,CAAC;CACF;AAPD,0CAOC"}
1
+ {"version":3,"file":"BoundarySuccess.js","sourceRoot":"","sources":["../../../../../../../src/connectors/case-boundary/internals/boundary/Result/BoundarySuccess.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAErD;;;;GAIG;AACH,MAAM,OAAO,eAAgB,SAAQ,cAAc;IAC/B,UAAU,CAAwB;IAEpD;QACE,KAAK,CAAC,cAAc,CAAC,CAAC;QACtB,IAAI,CAAC,UAAU,GAAG,cAAc,CAAC;IACnC,CAAC;CACF"}
@@ -1,15 +1,15 @@
1
- import { BoundaryResult } from './BoundaryResult';
2
- import { RESULT_SUCCESS_HAS_ANY_PAYLOAD } from './BoundaryResultTypeConstants';
1
+ import { BoundaryResult } from './BoundaryResult.js';
2
+ import { RESULT_SUCCESS_HAS_ANY_PAYLOAD } from './BoundaryResultTypeConstants.js';
3
3
  /**
4
4
  * This indicates a success with any arbitrary payload
5
5
  *
6
- * The calling method usually expects only one type of payload
6
+ * The payload must be a JSON encoded string.
7
7
  *
8
8
  * @public
9
9
  */
10
10
  export declare class BoundarySuccessWithAny extends BoundaryResult {
11
11
  readonly resultType: typeof RESULT_SUCCESS_HAS_ANY_PAYLOAD;
12
- readonly payload: unknown;
13
- constructor(payload: unknown);
12
+ readonly payload: string;
13
+ constructor(payload: string);
14
14
  }
15
15
  //# sourceMappingURL=BoundarySuccessWithAny.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"BoundarySuccessWithAny.d.ts","sourceRoot":"","sources":["../../../../../../../src/connectors/case-boundary/internals/boundary/Result/BoundarySuccessWithAny.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,8BAA8B,EAAE,MAAM,+BAA+B,CAAC;AAE/E;;;;;;GAMG;AACH,qBAAa,sBAAuB,SAAQ,cAAc;IACxD,SAAkB,UAAU,EAAE,OAAO,8BAA8B,CAAC;IAEpE,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;gBAEd,OAAO,EAAE,OAAO;CAK7B"}
1
+ {"version":3,"file":"BoundarySuccessWithAny.d.ts","sourceRoot":"","sources":["../../../../../../../src/connectors/case-boundary/internals/boundary/Result/BoundarySuccessWithAny.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,8BAA8B,EAAE,MAAM,kCAAkC,CAAC;AAElF;;;;;;GAMG;AACH,qBAAa,sBAAuB,SAAQ,cAAc;IACxD,SAAkB,UAAU,EAAE,OAAO,8BAA8B,CAAC;IAEpE,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;gBAEb,OAAO,EAAE,MAAM;CAK5B"}
@@ -1,23 +1,19 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BoundarySuccessWithAny = void 0;
4
- const BoundaryResult_1 = require("./BoundaryResult");
5
- const BoundaryResultTypeConstants_1 = require("./BoundaryResultTypeConstants");
1
+ import { BoundaryResult } from './BoundaryResult.js';
2
+ import { RESULT_SUCCESS_HAS_ANY_PAYLOAD } from './BoundaryResultTypeConstants.js';
6
3
  /**
7
4
  * This indicates a success with any arbitrary payload
8
5
  *
9
- * The calling method usually expects only one type of payload
6
+ * The payload must be a JSON encoded string.
10
7
  *
11
8
  * @public
12
9
  */
13
- class BoundarySuccessWithAny extends BoundaryResult_1.BoundaryResult {
10
+ export class BoundarySuccessWithAny extends BoundaryResult {
14
11
  resultType;
15
12
  payload;
16
13
  constructor(payload) {
17
- super(BoundaryResultTypeConstants_1.RESULT_SUCCESS_HAS_ANY_PAYLOAD);
18
- this.resultType = BoundaryResultTypeConstants_1.RESULT_SUCCESS_HAS_ANY_PAYLOAD;
14
+ super(RESULT_SUCCESS_HAS_ANY_PAYLOAD);
15
+ this.resultType = RESULT_SUCCESS_HAS_ANY_PAYLOAD;
19
16
  this.payload = payload;
20
17
  }
21
18
  }
22
- exports.BoundarySuccessWithAny = BoundarySuccessWithAny;
23
19
  //# sourceMappingURL=BoundarySuccessWithAny.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"BoundarySuccessWithAny.js","sourceRoot":"","sources":["../../../../../../../src/connectors/case-boundary/internals/boundary/Result/BoundarySuccessWithAny.ts"],"names":[],"mappings":";;;AAAA,qDAAkD;AAClD,+EAA+E;AAE/E;;;;;;GAMG;AACH,MAAa,sBAAuB,SAAQ,+BAAc;IACtC,UAAU,CAAwC;IAE3D,OAAO,CAAU;IAE1B,YAAY,OAAgB;QAC1B,KAAK,CAAC,4DAA8B,CAAC,CAAC;QACtC,IAAI,CAAC,UAAU,GAAG,4DAA8B,CAAC;QACjD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;CACF;AAVD,wDAUC"}
1
+ {"version":3,"file":"BoundarySuccessWithAny.js","sourceRoot":"","sources":["../../../../../../../src/connectors/case-boundary/internals/boundary/Result/BoundarySuccessWithAny.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,8BAA8B,EAAE,MAAM,kCAAkC,CAAC;AAElF;;;;;;GAMG;AACH,MAAM,OAAO,sBAAuB,SAAQ,cAAc;IACtC,UAAU,CAAwC;IAE3D,OAAO,CAAS;IAEzB,YAAY,OAAe;QACzB,KAAK,CAAC,8BAA8B,CAAC,CAAC;QACtC,IAAI,CAAC,UAAU,GAAG,8BAA8B,CAAC;QACjD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;CACF"}