@kensio/yulin 1.20.0 → 1.20.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 (626) hide show
  1. package/README.md +1 -0
  2. package/dist/sdk/router/resolve-sim-sdk-command-router.d.ts.map +1 -1
  3. package/dist/sdk/router/resolve-sim-sdk-command-router.js +8 -0
  4. package/dist/sdk/router/resolve-sim-sdk-command-router.js.map +1 -1
  5. package/dist/service/aws/factory/sim-aws-account-region-service-builder.d.ts +11 -0
  6. package/dist/service/aws/factory/sim-aws-account-region-service-builder.d.ts.map +1 -1
  7. package/dist/service/aws/factory/sim-aws-account-region-service-builder.js +17 -1
  8. package/dist/service/aws/factory/sim-aws-account-region-service-builder.js.map +1 -1
  9. package/dist/service/aws/factory/sim-aws-cross-account-collaborators.d.ts +10 -0
  10. package/dist/service/aws/factory/sim-aws-cross-account-collaborators.d.ts.map +1 -1
  11. package/dist/service/aws/factory/sim-aws-cross-account-collaborators.js +15 -0
  12. package/dist/service/aws/factory/sim-aws-cross-account-collaborators.js.map +1 -1
  13. package/dist/service/aws/factory/sim-aws-self-contained-service-builder.d.ts +9 -0
  14. package/dist/service/aws/factory/sim-aws-self-contained-service-builder.d.ts.map +1 -1
  15. package/dist/service/aws/factory/sim-aws-self-contained-service-builder.js +15 -0
  16. package/dist/service/aws/factory/sim-aws-self-contained-service-builder.js.map +1 -1
  17. package/dist/service/aws/factory/sim-aws-service-factory.d.ts +6 -0
  18. package/dist/service/aws/factory/sim-aws-service-factory.d.ts.map +1 -1
  19. package/dist/service/aws/factory/sim-aws-service-factory.js +8 -0
  20. package/dist/service/aws/factory/sim-aws-service-factory.js.map +1 -1
  21. package/dist/service/aws/sim-aws-account-region-scope.d.ts +6 -0
  22. package/dist/service/aws/sim-aws-account-region-scope.d.ts.map +1 -1
  23. package/dist/service/aws/sim-aws-account-region-scope.js +8 -0
  24. package/dist/service/aws/sim-aws-account-region-scope.js.map +1 -1
  25. package/dist/service/aws/sim-aws-account.d.ts +5 -0
  26. package/dist/service/aws/sim-aws-account.d.ts.map +1 -1
  27. package/dist/service/aws/sim-aws-account.js +6 -0
  28. package/dist/service/aws/sim-aws-account.js.map +1 -1
  29. package/dist/service/aws/sim-aws-region.d.ts +5 -0
  30. package/dist/service/aws/sim-aws-region.d.ts.map +1 -1
  31. package/dist/service/aws/sim-aws-region.js +6 -0
  32. package/dist/service/aws/sim-aws-region.js.map +1 -1
  33. package/dist/service/aws/sim-aws-service-accessors.d.ts +6 -0
  34. package/dist/service/aws/sim-aws-service-accessors.d.ts.map +1 -1
  35. package/dist/service/aws/sim-aws-service-accessors.js +8 -0
  36. package/dist/service/aws/sim-aws-service-accessors.js.map +1 -1
  37. package/dist/service/cloudformation/resource/cfn/firehose/sim-firehose-cfn-value-adapter.d.ts +6 -0
  38. package/dist/service/cloudformation/resource/cfn/firehose/sim-firehose-cfn-value-adapter.d.ts.map +1 -0
  39. package/dist/service/cloudformation/resource/cfn/firehose/sim-firehose-cfn-value-adapter.js +15 -0
  40. package/dist/service/cloudformation/resource/cfn/firehose/sim-firehose-cfn-value-adapter.js.map +1 -0
  41. package/dist/service/cloudformation/resource/cfn/firehose/sim-firehose-delivery-stream-cfn.d.ts +23 -0
  42. package/dist/service/cloudformation/resource/cfn/firehose/sim-firehose-delivery-stream-cfn.d.ts.map +1 -0
  43. package/dist/service/cloudformation/resource/cfn/firehose/sim-firehose-delivery-stream-cfn.js +29 -0
  44. package/dist/service/cloudformation/resource/cfn/firehose/sim-firehose-delivery-stream-cfn.js.map +1 -0
  45. package/dist/service/cloudformation/resource/cfn/sim-cfn-service-value-adapters.d.ts.map +1 -1
  46. package/dist/service/cloudformation/resource/cfn/sim-cfn-service-value-adapters.js +4 -0
  47. package/dist/service/cloudformation/resource/cfn/sim-cfn-service-value-adapters.js.map +1 -1
  48. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-creator.d.ts +27 -0
  49. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-creator.d.ts.map +1 -0
  50. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-creator.js +47 -0
  51. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-creator.js.map +1 -0
  52. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-definition.d.ts +49 -0
  53. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-definition.d.ts.map +1 -0
  54. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-definition.js +89 -0
  55. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-definition.js.map +1 -0
  56. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-name.d.ts +23 -0
  57. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-name.d.ts.map +1 -0
  58. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-name.js +28 -0
  59. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-name.js.map +1 -0
  60. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-properties.d.ts +57 -0
  61. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-properties.d.ts.map +1 -0
  62. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-properties.js +99 -0
  63. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-properties.js.map +1 -0
  64. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-property-names.d.ts +21 -0
  65. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-property-names.d.ts.map +1 -0
  66. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-property-names.js +37 -0
  67. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-property-names.js.map +1 -0
  68. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-substitutions.d.ts +32 -0
  69. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-substitutions.d.ts.map +1 -0
  70. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-substitutions.js +56 -0
  71. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-substitutions.js.map +1 -0
  72. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-step-functions-resource-deleter.d.ts +20 -0
  73. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-step-functions-resource-deleter.d.ts.map +1 -0
  74. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-step-functions-resource-deleter.js +28 -0
  75. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-step-functions-resource-deleter.js.map +1 -0
  76. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-step-functions-resource-error.d.ts +43 -0
  77. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-step-functions-resource-error.d.ts.map +1 -0
  78. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-step-functions-resource-error.js +64 -0
  79. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-step-functions-resource-error.js.map +1 -0
  80. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-step-functions-resource-types.d.ts +10 -0
  81. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-step-functions-resource-types.d.ts.map +1 -0
  82. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-step-functions-resource-types.js +10 -0
  83. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-step-functions-resource-types.js.map +1 -0
  84. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-state-machine-cfn.d.ts +27 -0
  85. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-state-machine-cfn.d.ts.map +1 -0
  86. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-state-machine-cfn.js +37 -0
  87. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-state-machine-cfn.js.map +1 -0
  88. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-step-functions-cfn-resource-factory.d.ts +31 -0
  89. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-step-functions-cfn-resource-factory.d.ts.map +1 -0
  90. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-step-functions-cfn-resource-factory.js +42 -0
  91. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-step-functions-cfn-resource-factory.js.map +1 -0
  92. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-step-functions-cfn-value-adapter.d.ts +7 -0
  93. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-step-functions-cfn-value-adapter.d.ts.map +1 -0
  94. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-step-functions-cfn-value-adapter.js +16 -0
  95. package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-step-functions-cfn-value-adapter.js.map +1 -0
  96. package/dist/service/cloudformation/resource/resolve/service/sim-cfn-service-factories.d.ts.map +1 -1
  97. package/dist/service/cloudformation/resource/resolve/service/sim-cfn-service-factories.js +11 -0
  98. package/dist/service/cloudformation/resource/resolve/service/sim-cfn-service-factories.js.map +1 -1
  99. package/dist/service/cloudfront/command/create-distribution/create-distribution.command.d.ts +25 -0
  100. package/dist/service/cloudfront/command/create-distribution/create-distribution.command.d.ts.map +1 -1
  101. package/dist/service/cloudfront/command/create-distribution/sim-cf-distro-config-normalizer.d.ts +0 -1
  102. package/dist/service/cloudfront/command/create-distribution/sim-cf-distro-config-normalizer.d.ts.map +1 -1
  103. package/dist/service/cloudfront/command/create-distribution/sim-cf-distro-config-normalizer.js +8 -36
  104. package/dist/service/cloudfront/command/create-distribution/sim-cf-distro-config-normalizer.js.map +1 -1
  105. package/dist/service/cloudfront/command/create-distribution/sim-cf-normalize-list.d.ts +19 -0
  106. package/dist/service/cloudfront/command/create-distribution/sim-cf-normalize-list.d.ts.map +1 -0
  107. package/dist/service/cloudfront/command/create-distribution/sim-cf-normalize-list.js +39 -0
  108. package/dist/service/cloudfront/command/create-distribution/sim-cf-normalize-list.js.map +1 -0
  109. package/dist/service/cloudfront/command/create-distribution/sim-cf-normalize-origin.d.ts +10 -0
  110. package/dist/service/cloudfront/command/create-distribution/sim-cf-normalize-origin.d.ts.map +1 -0
  111. package/dist/service/cloudfront/command/create-distribution/sim-cf-normalize-origin.js +17 -0
  112. package/dist/service/cloudfront/command/create-distribution/sim-cf-normalize-origin.js.map +1 -0
  113. package/dist/service/cloudfront/distribution/configurator/sim-cloud-front-origin-configurator.d.ts.map +1 -1
  114. package/dist/service/cloudfront/distribution/configurator/sim-cloud-front-origin-configurator.js +8 -0
  115. package/dist/service/cloudfront/distribution/configurator/sim-cloud-front-origin-configurator.js.map +1 -1
  116. package/dist/service/cloudfront/origin/custom/sim-cf-custom-origin-request.d.ts +4 -0
  117. package/dist/service/cloudfront/origin/custom/sim-cf-custom-origin-request.d.ts.map +1 -1
  118. package/dist/service/cloudfront/origin/custom/sim-cf-custom-origin-request.js +7 -0
  119. package/dist/service/cloudfront/origin/custom/sim-cf-custom-origin-request.js.map +1 -1
  120. package/dist/service/cloudfront/origin/custom/sim-cloudfront-custom-origin.d.ts +6 -0
  121. package/dist/service/cloudfront/origin/custom/sim-cloudfront-custom-origin.d.ts.map +1 -1
  122. package/dist/service/cloudfront/origin/custom/sim-cloudfront-custom-origin.js +3 -0
  123. package/dist/service/cloudfront/origin/custom/sim-cloudfront-custom-origin.js.map +1 -1
  124. package/dist/service/cloudfront/origin/sim-cf-origin-custom-headers.d.ts +15 -0
  125. package/dist/service/cloudfront/origin/sim-cf-origin-custom-headers.d.ts.map +1 -0
  126. package/dist/service/cloudfront/origin/sim-cf-origin-custom-headers.js +74 -0
  127. package/dist/service/cloudfront/origin/sim-cf-origin-custom-headers.js.map +1 -0
  128. package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-delivery-stream-creator.d.ts +33 -0
  129. package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-delivery-stream-creator.d.ts.map +1 -0
  130. package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-delivery-stream-creator.js +44 -0
  131. package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-delivery-stream-creator.js.map +1 -0
  132. package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-delivery-stream-name.d.ts +23 -0
  133. package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-delivery-stream-name.d.ts.map +1 -0
  134. package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-delivery-stream-name.js +28 -0
  135. package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-delivery-stream-name.js.map +1 -0
  136. package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-delivery-stream-properties.d.ts +48 -0
  137. package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-delivery-stream-properties.d.ts.map +1 -0
  138. package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-delivery-stream-properties.js +92 -0
  139. package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-delivery-stream-properties.js.map +1 -0
  140. package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-delivery-stream-property-names.d.ts +51 -0
  141. package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-delivery-stream-property-names.d.ts.map +1 -0
  142. package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-delivery-stream-property-names.js +114 -0
  143. package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-delivery-stream-property-names.js.map +1 -0
  144. package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-destination-choice.d.ts +19 -0
  145. package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-destination-choice.d.ts.map +1 -0
  146. package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-destination-choice.js +44 -0
  147. package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-destination-choice.js.map +1 -0
  148. package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-s3-destination.d.ts +47 -0
  149. package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-s3-destination.d.ts.map +1 -0
  150. package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-s3-destination.js +105 -0
  151. package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-s3-destination.js.map +1 -0
  152. package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-source-choice.d.ts +19 -0
  153. package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-source-choice.d.ts.map +1 -0
  154. package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-source-choice.js +58 -0
  155. package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-source-choice.js.map +1 -0
  156. package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-tags.d.ts +11 -0
  157. package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-tags.d.ts.map +1 -0
  158. package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-tags.js +33 -0
  159. package/dist/service/firehose/cfn/delivery-stream/sim-cfn-firehose-tags.js.map +1 -0
  160. package/dist/service/firehose/cfn/sim-cfn-firehose-archive.resources.d.ts +44 -0
  161. package/dist/service/firehose/cfn/sim-cfn-firehose-archive.resources.d.ts.map +1 -0
  162. package/dist/service/firehose/cfn/sim-cfn-firehose-archive.resources.js +144 -0
  163. package/dist/service/firehose/cfn/sim-cfn-firehose-archive.resources.js.map +1 -0
  164. package/dist/service/firehose/cfn/sim-cfn-firehose-delivery-stream-template.factory.d.ts +51 -0
  165. package/dist/service/firehose/cfn/sim-cfn-firehose-delivery-stream-template.factory.d.ts.map +1 -0
  166. package/dist/service/firehose/cfn/sim-cfn-firehose-delivery-stream-template.factory.js +65 -0
  167. package/dist/service/firehose/cfn/sim-cfn-firehose-delivery-stream-template.factory.js.map +1 -0
  168. package/dist/service/firehose/cfn/sim-cfn-firehose-resource-deleter.d.ts +19 -0
  169. package/dist/service/firehose/cfn/sim-cfn-firehose-resource-deleter.d.ts.map +1 -0
  170. package/dist/service/firehose/cfn/sim-cfn-firehose-resource-deleter.js +26 -0
  171. package/dist/service/firehose/cfn/sim-cfn-firehose-resource-deleter.js.map +1 -0
  172. package/dist/service/firehose/cfn/sim-cfn-firehose-resource-error.d.ts +44 -0
  173. package/dist/service/firehose/cfn/sim-cfn-firehose-resource-error.d.ts.map +1 -0
  174. package/dist/service/firehose/cfn/sim-cfn-firehose-resource-error.js +75 -0
  175. package/dist/service/firehose/cfn/sim-cfn-firehose-resource-error.js.map +1 -0
  176. package/dist/service/firehose/cfn/sim-cfn-firehose-resource-types.d.ts +14 -0
  177. package/dist/service/firehose/cfn/sim-cfn-firehose-resource-types.d.ts.map +1 -0
  178. package/dist/service/firehose/cfn/sim-cfn-firehose-resource-types.js +14 -0
  179. package/dist/service/firehose/cfn/sim-cfn-firehose-resource-types.js.map +1 -0
  180. package/dist/service/firehose/cfn/sim-firehose-cfn-resource-factory.d.ts +29 -0
  181. package/dist/service/firehose/cfn/sim-firehose-cfn-resource-factory.d.ts.map +1 -0
  182. package/dist/service/firehose/cfn/sim-firehose-cfn-resource-factory.js +38 -0
  183. package/dist/service/firehose/cfn/sim-firehose-cfn-resource-factory.js.map +1 -0
  184. package/dist/service/firehose/command/authorize/sim-firehose-authorizer.d.ts +39 -0
  185. package/dist/service/firehose/command/authorize/sim-firehose-authorizer.d.ts.map +1 -0
  186. package/dist/service/firehose/command/authorize/sim-firehose-authorizer.js +49 -0
  187. package/dist/service/firehose/command/authorize/sim-firehose-authorizer.js.map +1 -0
  188. package/dist/service/firehose/command/record/record.command.d.ts +55 -0
  189. package/dist/service/firehose/command/record/record.command.d.ts.map +1 -0
  190. package/dist/service/firehose/command/record/record.command.js +2 -0
  191. package/dist/service/firehose/command/record/record.command.js.map +1 -0
  192. package/dist/service/firehose/command/record/sim-firehose-put-commands.d.ts +43 -0
  193. package/dist/service/firehose/command/record/sim-firehose-put-commands.d.ts.map +1 -0
  194. package/dist/service/firehose/command/record/sim-firehose-put-commands.js +59 -0
  195. package/dist/service/firehose/command/record/sim-firehose-put-commands.js.map +1 -0
  196. package/dist/service/firehose/command/record/sim-firehose-record-data.d.ts +21 -0
  197. package/dist/service/firehose/command/record/sim-firehose-record-data.d.ts.map +1 -0
  198. package/dist/service/firehose/command/record/sim-firehose-record-data.js +54 -0
  199. package/dist/service/firehose/command/record/sim-firehose-record-data.js.map +1 -0
  200. package/dist/service/firehose/command/sim-firehose-command.types.d.ts +6 -0
  201. package/dist/service/firehose/command/sim-firehose-command.types.d.ts.map +1 -0
  202. package/dist/service/firehose/command/sim-firehose-command.types.js +2 -0
  203. package/dist/service/firehose/command/sim-firehose-command.types.js.map +1 -0
  204. package/dist/service/firehose/command/sim-firehose-commands.d.ts +37 -0
  205. package/dist/service/firehose/command/sim-firehose-commands.d.ts.map +1 -0
  206. package/dist/service/firehose/command/sim-firehose-commands.js +57 -0
  207. package/dist/service/firehose/command/sim-firehose-commands.js.map +1 -0
  208. package/dist/service/firehose/command/sim-firehose-delivery-stream-access.d.ts +47 -0
  209. package/dist/service/firehose/command/sim-firehose-delivery-stream-access.d.ts.map +1 -0
  210. package/dist/service/firehose/command/sim-firehose-delivery-stream-access.js +58 -0
  211. package/dist/service/firehose/command/sim-firehose-delivery-stream-access.js.map +1 -0
  212. package/dist/service/firehose/command/sim-firehose-request-options.d.ts +12 -0
  213. package/dist/service/firehose/command/sim-firehose-request-options.d.ts.map +1 -0
  214. package/dist/service/firehose/command/sim-firehose-request-options.js +2 -0
  215. package/dist/service/firehose/command/sim-firehose-request-options.js.map +1 -0
  216. package/dist/service/firehose/command/stream/sim-firehose-create-delivery-stream.d.ts +49 -0
  217. package/dist/service/firehose/command/stream/sim-firehose-create-delivery-stream.d.ts.map +1 -0
  218. package/dist/service/firehose/command/stream/sim-firehose-create-delivery-stream.js +69 -0
  219. package/dist/service/firehose/command/stream/sim-firehose-create-delivery-stream.js.map +1 -0
  220. package/dist/service/firehose/command/stream/sim-firehose-delivery-stream-page.d.ts +19 -0
  221. package/dist/service/firehose/command/stream/sim-firehose-delivery-stream-page.d.ts.map +1 -0
  222. package/dist/service/firehose/command/stream/sim-firehose-delivery-stream-page.js +24 -0
  223. package/dist/service/firehose/command/stream/sim-firehose-delivery-stream-page.js.map +1 -0
  224. package/dist/service/firehose/command/stream/sim-firehose-stream-commands.d.ts +50 -0
  225. package/dist/service/firehose/command/stream/sim-firehose-stream-commands.d.ts.map +1 -0
  226. package/dist/service/firehose/command/stream/sim-firehose-stream-commands.js +72 -0
  227. package/dist/service/firehose/command/stream/sim-firehose-stream-commands.js.map +1 -0
  228. package/dist/service/firehose/command/stream/sim-firehose-stream-descriptions.d.ts +7 -0
  229. package/dist/service/firehose/command/stream/sim-firehose-stream-descriptions.d.ts.map +1 -0
  230. package/dist/service/firehose/command/stream/sim-firehose-stream-descriptions.js +70 -0
  231. package/dist/service/firehose/command/stream/sim-firehose-stream-descriptions.js.map +1 -0
  232. package/dist/service/firehose/command/stream/stream.command.d.ts +137 -0
  233. package/dist/service/firehose/command/stream/stream.command.d.ts.map +1 -0
  234. package/dist/service/firehose/command/stream/stream.command.js +2 -0
  235. package/dist/service/firehose/command/stream/stream.command.js.map +1 -0
  236. package/dist/service/firehose/delivery/sim-firehose-buffer.d.ts +36 -0
  237. package/dist/service/firehose/delivery/sim-firehose-buffer.d.ts.map +1 -0
  238. package/dist/service/firehose/delivery/sim-firehose-buffer.js +55 -0
  239. package/dist/service/firehose/delivery/sim-firehose-buffer.js.map +1 -0
  240. package/dist/service/firehose/delivery/sim-firehose-delivery-failures.d.ts +34 -0
  241. package/dist/service/firehose/delivery/sim-firehose-delivery-failures.d.ts.map +1 -0
  242. package/dist/service/firehose/delivery/sim-firehose-delivery-failures.js +24 -0
  243. package/dist/service/firehose/delivery/sim-firehose-delivery-failures.js.map +1 -0
  244. package/dist/service/firehose/delivery/sim-firehose-delivery.d.ts +47 -0
  245. package/dist/service/firehose/delivery/sim-firehose-delivery.d.ts.map +1 -0
  246. package/dist/service/firehose/delivery/sim-firehose-delivery.js +76 -0
  247. package/dist/service/firehose/delivery/sim-firehose-delivery.js.map +1 -0
  248. package/dist/service/firehose/delivery/sim-firehose-object-key.d.ts +21 -0
  249. package/dist/service/firehose/delivery/sim-firehose-object-key.d.ts.map +1 -0
  250. package/dist/service/firehose/delivery/sim-firehose-object-key.js +27 -0
  251. package/dist/service/firehose/delivery/sim-firehose-object-key.js.map +1 -0
  252. package/dist/service/firehose/delivery/sim-firehose-object-writer.d.ts +50 -0
  253. package/dist/service/firehose/delivery/sim-firehose-object-writer.d.ts.map +1 -0
  254. package/dist/service/firehose/delivery/sim-firehose-object-writer.js +57 -0
  255. package/dist/service/firehose/delivery/sim-firehose-object-writer.js.map +1 -0
  256. package/dist/service/firehose/destination/sim-firehose-buffering-hints.d.ts +29 -0
  257. package/dist/service/firehose/destination/sim-firehose-buffering-hints.d.ts.map +1 -0
  258. package/dist/service/firehose/destination/sim-firehose-buffering-hints.js +45 -0
  259. package/dist/service/firehose/destination/sim-firehose-buffering-hints.js.map +1 -0
  260. package/dist/service/firehose/destination/sim-firehose-destination-choice.d.ts +35 -0
  261. package/dist/service/firehose/destination/sim-firehose-destination-choice.d.ts.map +1 -0
  262. package/dist/service/firehose/destination/sim-firehose-destination-choice.js +48 -0
  263. package/dist/service/firehose/destination/sim-firehose-destination-choice.js.map +1 -0
  264. package/dist/service/firehose/destination/sim-firehose-s3-destination.d.ts +32 -0
  265. package/dist/service/firehose/destination/sim-firehose-s3-destination.d.ts.map +1 -0
  266. package/dist/service/firehose/destination/sim-firehose-s3-destination.js +51 -0
  267. package/dist/service/firehose/destination/sim-firehose-s3-destination.js.map +1 -0
  268. package/dist/service/firehose/error/sim-firehose.error.d.ts +69 -0
  269. package/dist/service/firehose/error/sim-firehose.error.d.ts.map +1 -0
  270. package/dist/service/firehose/error/sim-firehose.error.js +79 -0
  271. package/dist/service/firehose/error/sim-firehose.error.js.map +1 -0
  272. package/dist/service/firehose/failure/sim-firehose-failure.d.ts +38 -0
  273. package/dist/service/firehose/failure/sim-firehose-failure.d.ts.map +1 -0
  274. package/dist/service/firehose/failure/sim-firehose-failure.js +40 -0
  275. package/dist/service/firehose/failure/sim-firehose-failure.js.map +1 -0
  276. package/dist/service/firehose/failure/sim-firehose-failures.d.ts +32 -0
  277. package/dist/service/firehose/failure/sim-firehose-failures.d.ts.map +1 -0
  278. package/dist/service/firehose/failure/sim-firehose-failures.js +47 -0
  279. package/dist/service/firehose/failure/sim-firehose-failures.js.map +1 -0
  280. package/dist/service/firehose/index.d.ts +17 -0
  281. package/dist/service/firehose/index.d.ts.map +1 -0
  282. package/dist/service/firehose/index.js +12 -0
  283. package/dist/service/firehose/index.js.map +1 -0
  284. package/dist/service/firehose/sdk/sim-firehose-sdk-command-router.d.ts +18 -0
  285. package/dist/service/firehose/sdk/sim-firehose-sdk-command-router.d.ts.map +1 -0
  286. package/dist/service/firehose/sdk/sim-firehose-sdk-command-router.js +48 -0
  287. package/dist/service/firehose/sdk/sim-firehose-sdk-command-router.js.map +1 -0
  288. package/dist/service/firehose/sim-firehose.d.ts +104 -0
  289. package/dist/service/firehose/sim-firehose.d.ts.map +1 -0
  290. package/dist/service/firehose/sim-firehose.js +130 -0
  291. package/dist/service/firehose/sim-firehose.js.map +1 -0
  292. package/dist/service/firehose/source/read/sim-firehose-source-poll.d.ts +39 -0
  293. package/dist/service/firehose/source/read/sim-firehose-source-poll.d.ts.map +1 -0
  294. package/dist/service/firehose/source/read/sim-firehose-source-poll.js +48 -0
  295. package/dist/service/firehose/source/read/sim-firehose-source-poll.js.map +1 -0
  296. package/dist/service/firehose/source/read/sim-firehose-source-reader.d.ts +62 -0
  297. package/dist/service/firehose/source/read/sim-firehose-source-reader.d.ts.map +1 -0
  298. package/dist/service/firehose/source/read/sim-firehose-source-reader.js +94 -0
  299. package/dist/service/firehose/source/read/sim-firehose-source-reader.js.map +1 -0
  300. package/dist/service/firehose/source/read/sim-firehose-source-reading.d.ts +39 -0
  301. package/dist/service/firehose/source/read/sim-firehose-source-reading.d.ts.map +1 -0
  302. package/dist/service/firehose/source/read/sim-firehose-source-reading.js +48 -0
  303. package/dist/service/firehose/source/read/sim-firehose-source-reading.js.map +1 -0
  304. package/dist/service/firehose/source/read/sim-firehose-source-shard-ids.d.ts +12 -0
  305. package/dist/service/firehose/source/read/sim-firehose-source-shard-ids.d.ts.map +1 -0
  306. package/dist/service/firehose/source/read/sim-firehose-source-shard-ids.js +56 -0
  307. package/dist/service/firehose/source/read/sim-firehose-source-shard-ids.js.map +1 -0
  308. package/dist/service/firehose/source/read/sim-firehose-source-shard.d.ts +36 -0
  309. package/dist/service/firehose/source/read/sim-firehose-source-shard.d.ts.map +1 -0
  310. package/dist/service/firehose/source/read/sim-firehose-source-shard.js +45 -0
  311. package/dist/service/firehose/source/read/sim-firehose-source-shard.js.map +1 -0
  312. package/dist/service/firehose/source/read/sim-firehose-source-shards.d.ts +42 -0
  313. package/dist/service/firehose/source/read/sim-firehose-source-shards.d.ts.map +1 -0
  314. package/dist/service/firehose/source/read/sim-firehose-source-shards.js +53 -0
  315. package/dist/service/firehose/source/read/sim-firehose-source-shards.js.map +1 -0
  316. package/dist/service/firehose/source/sim-firehose-kinesis-source-arn.d.ts +29 -0
  317. package/dist/service/firehose/source/sim-firehose-kinesis-source-arn.d.ts.map +1 -0
  318. package/dist/service/firehose/source/sim-firehose-kinesis-source-arn.js +57 -0
  319. package/dist/service/firehose/source/sim-firehose-kinesis-source-arn.js.map +1 -0
  320. package/dist/service/firehose/source/sim-firehose-record-source.d.ts +140 -0
  321. package/dist/service/firehose/source/sim-firehose-record-source.d.ts.map +1 -0
  322. package/dist/service/firehose/source/sim-firehose-record-source.js +53 -0
  323. package/dist/service/firehose/source/sim-firehose-record-source.js.map +1 -0
  324. package/dist/service/firehose/source/sim-firehose-source-choice.d.ts +26 -0
  325. package/dist/service/firehose/source/sim-firehose-source-choice.d.ts.map +1 -0
  326. package/dist/service/firehose/source/sim-firehose-source-choice.js +68 -0
  327. package/dist/service/firehose/source/sim-firehose-source-choice.js.map +1 -0
  328. package/dist/service/firehose/source/sim-firehose-source-failures.d.ts +38 -0
  329. package/dist/service/firehose/source/sim-firehose-source-failures.d.ts.map +1 -0
  330. package/dist/service/firehose/source/sim-firehose-source-failures.js +33 -0
  331. package/dist/service/firehose/source/sim-firehose-source-failures.js.map +1 -0
  332. package/dist/service/firehose/source/sim-firehose-source.d.ts +64 -0
  333. package/dist/service/firehose/source/sim-firehose-source.d.ts.map +1 -0
  334. package/dist/service/firehose/source/sim-firehose-source.js +58 -0
  335. package/dist/service/firehose/source/sim-firehose-source.js.map +1 -0
  336. package/dist/service/firehose/stream/sim-firehose-delivery-stream-arn.d.ts +10 -0
  337. package/dist/service/firehose/stream/sim-firehose-delivery-stream-arn.d.ts.map +1 -0
  338. package/dist/service/firehose/stream/sim-firehose-delivery-stream-arn.js +12 -0
  339. package/dist/service/firehose/stream/sim-firehose-delivery-stream-arn.js.map +1 -0
  340. package/dist/service/firehose/stream/sim-firehose-delivery-stream-name.d.ts +9 -0
  341. package/dist/service/firehose/stream/sim-firehose-delivery-stream-name.d.ts.map +1 -0
  342. package/dist/service/firehose/stream/sim-firehose-delivery-stream-name.js +25 -0
  343. package/dist/service/firehose/stream/sim-firehose-delivery-stream-name.js.map +1 -0
  344. package/dist/service/firehose/stream/sim-firehose-delivery-stream-store.d.ts +37 -0
  345. package/dist/service/firehose/stream/sim-firehose-delivery-stream-store.d.ts.map +1 -0
  346. package/dist/service/firehose/stream/sim-firehose-delivery-stream-store.js +55 -0
  347. package/dist/service/firehose/stream/sim-firehose-delivery-stream-store.js.map +1 -0
  348. package/dist/service/firehose/stream/sim-firehose-delivery-stream.d.ts +50 -0
  349. package/dist/service/firehose/stream/sim-firehose-delivery-stream.d.ts.map +1 -0
  350. package/dist/service/firehose/stream/sim-firehose-delivery-stream.factory.d.ts +57 -0
  351. package/dist/service/firehose/stream/sim-firehose-delivery-stream.factory.d.ts.map +1 -0
  352. package/dist/service/firehose/stream/sim-firehose-delivery-stream.factory.js +61 -0
  353. package/dist/service/firehose/stream/sim-firehose-delivery-stream.factory.js.map +1 -0
  354. package/dist/service/firehose/stream/sim-firehose-delivery-stream.js +42 -0
  355. package/dist/service/firehose/stream/sim-firehose-delivery-stream.js.map +1 -0
  356. package/dist/service/stepfunctions/choice/sim-states-choice-group-test.d.ts +32 -0
  357. package/dist/service/stepfunctions/choice/sim-states-choice-group-test.d.ts.map +1 -0
  358. package/dist/service/stepfunctions/choice/sim-states-choice-group-test.js +42 -0
  359. package/dist/service/stepfunctions/choice/sim-states-choice-group-test.js.map +1 -0
  360. package/dist/service/stepfunctions/choice/sim-states-choice-operand.d.ts +29 -0
  361. package/dist/service/stepfunctions/choice/sim-states-choice-operand.d.ts.map +1 -0
  362. package/dist/service/stepfunctions/choice/sim-states-choice-operand.js +38 -0
  363. package/dist/service/stepfunctions/choice/sim-states-choice-operand.js.map +1 -0
  364. package/dist/service/stepfunctions/choice/sim-states-choice-parse.d.ts +15 -0
  365. package/dist/service/stepfunctions/choice/sim-states-choice-parse.d.ts.map +1 -0
  366. package/dist/service/stepfunctions/choice/sim-states-choice-parse.js +44 -0
  367. package/dist/service/stepfunctions/choice/sim-states-choice-parse.js.map +1 -0
  368. package/dist/service/stepfunctions/choice/sim-states-choice-rule-record.d.ts +10 -0
  369. package/dist/service/stepfunctions/choice/sim-states-choice-rule-record.d.ts.map +1 -0
  370. package/dist/service/stepfunctions/choice/sim-states-choice-rule-record.js +31 -0
  371. package/dist/service/stepfunctions/choice/sim-states-choice-rule-record.js.map +1 -0
  372. package/dist/service/stepfunctions/choice/sim-states-choice-rule.d.ts +15 -0
  373. package/dist/service/stepfunctions/choice/sim-states-choice-rule.d.ts.map +1 -0
  374. package/dist/service/stepfunctions/choice/sim-states-choice-rule.js +18 -0
  375. package/dist/service/stepfunctions/choice/sim-states-choice-rule.js.map +1 -0
  376. package/dist/service/stepfunctions/choice/sim-states-choice-test-parse.d.ts +7 -0
  377. package/dist/service/stepfunctions/choice/sim-states-choice-test-parse.d.ts.map +1 -0
  378. package/dist/service/stepfunctions/choice/sim-states-choice-test-parse.js +72 -0
  379. package/dist/service/stepfunctions/choice/sim-states-choice-test-parse.js.map +1 -0
  380. package/dist/service/stepfunctions/choice/sim-states-choice-test.d.ts +33 -0
  381. package/dist/service/stepfunctions/choice/sim-states-choice-test.d.ts.map +1 -0
  382. package/dist/service/stepfunctions/choice/sim-states-choice-test.js +34 -0
  383. package/dist/service/stepfunctions/choice/sim-states-choice-test.js.map +1 -0
  384. package/dist/service/stepfunctions/choice/sim-states-comparison-families.d.ts +26 -0
  385. package/dist/service/stepfunctions/choice/sim-states-comparison-families.d.ts.map +1 -0
  386. package/dist/service/stepfunctions/choice/sim-states-comparison-families.js +65 -0
  387. package/dist/service/stepfunctions/choice/sim-states-comparison-families.js.map +1 -0
  388. package/dist/service/stepfunctions/choice/sim-states-comparison-parse.d.ts +15 -0
  389. package/dist/service/stepfunctions/choice/sim-states-comparison-parse.d.ts.map +1 -0
  390. package/dist/service/stepfunctions/choice/sim-states-comparison-parse.js +43 -0
  391. package/dist/service/stepfunctions/choice/sim-states-comparison-parse.js.map +1 -0
  392. package/dist/service/stepfunctions/choice/sim-states-comparison.d.ts +49 -0
  393. package/dist/service/stepfunctions/choice/sim-states-comparison.d.ts.map +1 -0
  394. package/dist/service/stepfunctions/choice/sim-states-comparison.js +51 -0
  395. package/dist/service/stepfunctions/choice/sim-states-comparison.js.map +1 -0
  396. package/dist/service/stepfunctions/choice/sim-states-comparisons.d.ts +6 -0
  397. package/dist/service/stepfunctions/choice/sim-states-comparisons.d.ts.map +1 -0
  398. package/dist/service/stepfunctions/choice/sim-states-comparisons.js +64 -0
  399. package/dist/service/stepfunctions/choice/sim-states-comparisons.js.map +1 -0
  400. package/dist/service/stepfunctions/choice/sim-states-glob.d.ts +14 -0
  401. package/dist/service/stepfunctions/choice/sim-states-glob.d.ts.map +1 -0
  402. package/dist/service/stepfunctions/choice/sim-states-glob.js +73 -0
  403. package/dist/service/stepfunctions/choice/sim-states-glob.js.map +1 -0
  404. package/dist/service/stepfunctions/command/execution/execution.command.d.ts +32 -0
  405. package/dist/service/stepfunctions/command/execution/execution.command.d.ts.map +1 -0
  406. package/dist/service/stepfunctions/command/execution/execution.command.js +2 -0
  407. package/dist/service/stepfunctions/command/execution/execution.command.js.map +1 -0
  408. package/dist/service/stepfunctions/command/execution/sim-states-execution-describe.d.ts +11 -0
  409. package/dist/service/stepfunctions/command/execution/sim-states-execution-describe.d.ts.map +1 -0
  410. package/dist/service/stepfunctions/command/execution/sim-states-execution-describe.js +23 -0
  411. package/dist/service/stepfunctions/command/execution/sim-states-execution-describe.js.map +1 -0
  412. package/dist/service/stepfunctions/command/execution/sim-states-execution-name.d.ts +12 -0
  413. package/dist/service/stepfunctions/command/execution/sim-states-execution-name.d.ts.map +1 -0
  414. package/dist/service/stepfunctions/command/execution/sim-states-execution-name.js +23 -0
  415. package/dist/service/stepfunctions/command/execution/sim-states-execution-name.js.map +1 -0
  416. package/dist/service/stepfunctions/command/execution/sim-states-execution-repeat.d.ts +12 -0
  417. package/dist/service/stepfunctions/command/execution/sim-states-execution-repeat.d.ts.map +1 -0
  418. package/dist/service/stepfunctions/command/execution/sim-states-execution-repeat.js +21 -0
  419. package/dist/service/stepfunctions/command/execution/sim-states-execution-repeat.js.map +1 -0
  420. package/dist/service/stepfunctions/command/execution/sim-states-execution-start.d.ts +36 -0
  421. package/dist/service/stepfunctions/command/execution/sim-states-execution-start.d.ts.map +1 -0
  422. package/dist/service/stepfunctions/command/execution/sim-states-execution-start.js +64 -0
  423. package/dist/service/stepfunctions/command/execution/sim-states-execution-start.js.map +1 -0
  424. package/dist/service/stepfunctions/command/execution/sim-states-execution-view.d.ts +18 -0
  425. package/dist/service/stepfunctions/command/execution/sim-states-execution-view.d.ts.map +1 -0
  426. package/dist/service/stepfunctions/command/execution/sim-states-execution-view.js +41 -0
  427. package/dist/service/stepfunctions/command/execution/sim-states-execution-view.js.map +1 -0
  428. package/dist/service/stepfunctions/command/machine/machine.command.d.ts +63 -0
  429. package/dist/service/stepfunctions/command/machine/machine.command.d.ts.map +1 -0
  430. package/dist/service/stepfunctions/command/machine/machine.command.js +2 -0
  431. package/dist/service/stepfunctions/command/machine/machine.command.js.map +1 -0
  432. package/dist/service/stepfunctions/command/machine/sim-state-machine-create.d.ts +30 -0
  433. package/dist/service/stepfunctions/command/machine/sim-state-machine-create.d.ts.map +1 -0
  434. package/dist/service/stepfunctions/command/machine/sim-state-machine-create.js +64 -0
  435. package/dist/service/stepfunctions/command/machine/sim-state-machine-create.js.map +1 -0
  436. package/dist/service/stepfunctions/command/machine/sim-state-machine-input.d.ts +22 -0
  437. package/dist/service/stepfunctions/command/machine/sim-state-machine-input.d.ts.map +1 -0
  438. package/dist/service/stepfunctions/command/machine/sim-state-machine-input.js +38 -0
  439. package/dist/service/stepfunctions/command/machine/sim-state-machine-input.js.map +1 -0
  440. package/dist/service/stepfunctions/command/machine/sim-state-machine-lookup.d.ts +7 -0
  441. package/dist/service/stepfunctions/command/machine/sim-state-machine-lookup.d.ts.map +1 -0
  442. package/dist/service/stepfunctions/command/machine/sim-state-machine-lookup.js +15 -0
  443. package/dist/service/stepfunctions/command/machine/sim-state-machine-lookup.js.map +1 -0
  444. package/dist/service/stepfunctions/command/machine/sim-state-machine-reads.d.ts +18 -0
  445. package/dist/service/stepfunctions/command/machine/sim-state-machine-reads.d.ts.map +1 -0
  446. package/dist/service/stepfunctions/command/machine/sim-state-machine-reads.js +49 -0
  447. package/dist/service/stepfunctions/command/machine/sim-state-machine-reads.js.map +1 -0
  448. package/dist/service/stepfunctions/command/machine/sim-state-machine-writes.d.ts +26 -0
  449. package/dist/service/stepfunctions/command/machine/sim-state-machine-writes.d.ts.map +1 -0
  450. package/dist/service/stepfunctions/command/machine/sim-state-machine-writes.js +44 -0
  451. package/dist/service/stepfunctions/command/machine/sim-state-machine-writes.js.map +1 -0
  452. package/dist/service/stepfunctions/command/sim-step-functions-command.types.d.ts +6 -0
  453. package/dist/service/stepfunctions/command/sim-step-functions-command.types.d.ts.map +1 -0
  454. package/dist/service/stepfunctions/command/sim-step-functions-command.types.js +2 -0
  455. package/dist/service/stepfunctions/command/sim-step-functions-command.types.js.map +1 -0
  456. package/dist/service/stepfunctions/command/sim-step-functions-request-options.d.ts +12 -0
  457. package/dist/service/stepfunctions/command/sim-step-functions-request-options.d.ts.map +1 -0
  458. package/dist/service/stepfunctions/command/sim-step-functions-request-options.js +2 -0
  459. package/dist/service/stepfunctions/command/sim-step-functions-request-options.js.map +1 -0
  460. package/dist/service/stepfunctions/data/sim-states-result-path.js +1 -1
  461. package/dist/service/stepfunctions/data/sim-states-result-path.js.map +1 -1
  462. package/dist/service/stepfunctions/data/sim-states-timestamp-fields.d.ts +10 -0
  463. package/dist/service/stepfunctions/data/sim-states-timestamp-fields.d.ts.map +1 -0
  464. package/dist/service/stepfunctions/data/sim-states-timestamp-fields.js +45 -0
  465. package/dist/service/stepfunctions/data/sim-states-timestamp-fields.js.map +1 -0
  466. package/dist/service/stepfunctions/data/sim-states-timestamp.d.ts +10 -0
  467. package/dist/service/stepfunctions/data/sim-states-timestamp.d.ts.map +1 -0
  468. package/dist/service/stepfunctions/data/sim-states-timestamp.js +26 -0
  469. package/dist/service/stepfunctions/data/sim-states-timestamp.js.map +1 -0
  470. package/dist/service/stepfunctions/definition/sim-states-definition-parse.d.ts +10 -0
  471. package/dist/service/stepfunctions/definition/sim-states-definition-parse.d.ts.map +1 -0
  472. package/dist/service/stepfunctions/definition/sim-states-definition-parse.js +61 -0
  473. package/dist/service/stepfunctions/definition/sim-states-definition-parse.js.map +1 -0
  474. package/dist/service/stepfunctions/definition/sim-states-definition.d.ts +15 -0
  475. package/dist/service/stepfunctions/definition/sim-states-definition.d.ts.map +1 -0
  476. package/dist/service/stepfunctions/definition/sim-states-definition.js +2 -0
  477. package/dist/service/stepfunctions/definition/sim-states-definition.js.map +1 -0
  478. package/dist/service/stepfunctions/definition/sim-states-state-fields.d.ts +17 -0
  479. package/dist/service/stepfunctions/definition/sim-states-state-fields.d.ts.map +1 -0
  480. package/dist/service/stepfunctions/definition/sim-states-state-fields.js +47 -0
  481. package/dist/service/stepfunctions/definition/sim-states-state-fields.js.map +1 -0
  482. package/dist/service/stepfunctions/definition/sim-states-state-parse.d.ts +7 -0
  483. package/dist/service/stepfunctions/definition/sim-states-state-parse.d.ts.map +1 -0
  484. package/dist/service/stepfunctions/definition/sim-states-state-parse.js +67 -0
  485. package/dist/service/stepfunctions/definition/sim-states-state-parse.js.map +1 -0
  486. package/dist/service/stepfunctions/definition/sim-states-state.d.ts +98 -0
  487. package/dist/service/stepfunctions/definition/sim-states-state.d.ts.map +1 -0
  488. package/dist/service/stepfunctions/definition/sim-states-state.js +34 -0
  489. package/dist/service/stepfunctions/definition/sim-states-state.js.map +1 -0
  490. package/dist/service/stepfunctions/definition/sim-states-transitions.d.ts +10 -0
  491. package/dist/service/stepfunctions/definition/sim-states-transitions.d.ts.map +1 -0
  492. package/dist/service/stepfunctions/definition/sim-states-transitions.js +79 -0
  493. package/dist/service/stepfunctions/definition/sim-states-transitions.js.map +1 -0
  494. package/dist/service/stepfunctions/error/sim-step-functions.error.d.ts +99 -0
  495. package/dist/service/stepfunctions/error/sim-step-functions.error.d.ts.map +1 -1
  496. package/dist/service/stepfunctions/error/sim-step-functions.error.js +119 -0
  497. package/dist/service/stepfunctions/error/sim-step-functions.error.js.map +1 -1
  498. package/dist/service/stepfunctions/execution/sim-states-execution-store.d.ts +33 -0
  499. package/dist/service/stepfunctions/execution/sim-states-execution-store.d.ts.map +1 -0
  500. package/dist/service/stepfunctions/execution/sim-states-execution-store.js +55 -0
  501. package/dist/service/stepfunctions/execution/sim-states-execution-store.js.map +1 -0
  502. package/dist/service/stepfunctions/execution/sim-states-execution.d.ts +53 -0
  503. package/dist/service/stepfunctions/execution/sim-states-execution.d.ts.map +1 -0
  504. package/dist/service/stepfunctions/execution/sim-states-execution.js +77 -0
  505. package/dist/service/stepfunctions/execution/sim-states-execution.js.map +1 -0
  506. package/dist/service/stepfunctions/execution/sim-states-failure.d.ts +24 -0
  507. package/dist/service/stepfunctions/execution/sim-states-failure.d.ts.map +1 -0
  508. package/dist/service/stepfunctions/execution/sim-states-failure.js +50 -0
  509. package/dist/service/stepfunctions/execution/sim-states-failure.js.map +1 -0
  510. package/dist/service/stepfunctions/execution/sim-states-interpreter.d.ts +42 -0
  511. package/dist/service/stepfunctions/execution/sim-states-interpreter.d.ts.map +1 -0
  512. package/dist/service/stepfunctions/execution/sim-states-interpreter.js +124 -0
  513. package/dist/service/stepfunctions/execution/sim-states-interpreter.js.map +1 -0
  514. package/dist/service/stepfunctions/execution/sim-states-run-choice.d.ts +12 -0
  515. package/dist/service/stepfunctions/execution/sim-states-run-choice.d.ts.map +1 -0
  516. package/dist/service/stepfunctions/execution/sim-states-run-choice.js +24 -0
  517. package/dist/service/stepfunctions/execution/sim-states-run-choice.js.map +1 -0
  518. package/dist/service/stepfunctions/execution/sim-states-run-state.d.ts +15 -0
  519. package/dist/service/stepfunctions/execution/sim-states-run-state.d.ts.map +1 -0
  520. package/dist/service/stepfunctions/execution/sim-states-run-state.js +68 -0
  521. package/dist/service/stepfunctions/execution/sim-states-run-state.js.map +1 -0
  522. package/dist/service/stepfunctions/execution/sim-states-run-task.d.ts +14 -0
  523. package/dist/service/stepfunctions/execution/sim-states-run-task.d.ts.map +1 -0
  524. package/dist/service/stepfunctions/execution/sim-states-run-task.js +23 -0
  525. package/dist/service/stepfunctions/execution/sim-states-run-task.js.map +1 -0
  526. package/dist/service/stepfunctions/execution/sim-states-run-wait.d.ts +11 -0
  527. package/dist/service/stepfunctions/execution/sim-states-run-wait.d.ts.map +1 -0
  528. package/dist/service/stepfunctions/execution/sim-states-run-wait.js +21 -0
  529. package/dist/service/stepfunctions/execution/sim-states-run-wait.js.map +1 -0
  530. package/dist/service/stepfunctions/execution/sim-states-settlement.d.ts +27 -0
  531. package/dist/service/stepfunctions/execution/sim-states-settlement.d.ts.map +1 -0
  532. package/dist/service/stepfunctions/execution/sim-states-settlement.js +33 -0
  533. package/dist/service/stepfunctions/execution/sim-states-settlement.js.map +1 -0
  534. package/dist/service/stepfunctions/execution/sim-states-state-outcome.d.ts +46 -0
  535. package/dist/service/stepfunctions/execution/sim-states-state-outcome.d.ts.map +1 -0
  536. package/dist/service/stepfunctions/execution/sim-states-state-outcome.js +2 -0
  537. package/dist/service/stepfunctions/execution/sim-states-state-outcome.js.map +1 -0
  538. package/dist/service/stepfunctions/execution/sim-states-state-runner.d.ts +27 -0
  539. package/dist/service/stepfunctions/execution/sim-states-state-runner.d.ts.map +1 -0
  540. package/dist/service/stepfunctions/execution/sim-states-state-runner.js +36 -0
  541. package/dist/service/stepfunctions/execution/sim-states-state-runner.js.map +1 -0
  542. package/dist/service/stepfunctions/index.d.ts +16 -0
  543. package/dist/service/stepfunctions/index.d.ts.map +1 -0
  544. package/dist/service/stepfunctions/index.js +9 -0
  545. package/dist/service/stepfunctions/index.js.map +1 -0
  546. package/dist/service/stepfunctions/machine/sim-state-machine-arn.d.ts +30 -0
  547. package/dist/service/stepfunctions/machine/sim-state-machine-arn.d.ts.map +1 -0
  548. package/dist/service/stepfunctions/machine/sim-state-machine-arn.js +48 -0
  549. package/dist/service/stepfunctions/machine/sim-state-machine-arn.js.map +1 -0
  550. package/dist/service/stepfunctions/machine/sim-state-machine-store.d.ts +20 -0
  551. package/dist/service/stepfunctions/machine/sim-state-machine-store.d.ts.map +1 -0
  552. package/dist/service/stepfunctions/machine/sim-state-machine-store.js +32 -0
  553. package/dist/service/stepfunctions/machine/sim-state-machine-store.js.map +1 -0
  554. package/dist/service/stepfunctions/machine/sim-state-machine.d.ts +54 -0
  555. package/dist/service/stepfunctions/machine/sim-state-machine.d.ts.map +1 -0
  556. package/dist/service/stepfunctions/machine/sim-state-machine.js +60 -0
  557. package/dist/service/stepfunctions/machine/sim-state-machine.js.map +1 -0
  558. package/dist/service/stepfunctions/machine/sim-states-name.d.ts +10 -0
  559. package/dist/service/stepfunctions/machine/sim-states-name.d.ts.map +1 -0
  560. package/dist/service/stepfunctions/machine/sim-states-name.js +42 -0
  561. package/dist/service/stepfunctions/machine/sim-states-name.js.map +1 -0
  562. package/dist/service/stepfunctions/sdk/sim-step-functions-sdk-command-router.d.ts +19 -0
  563. package/dist/service/stepfunctions/sdk/sim-step-functions-sdk-command-router.d.ts.map +1 -0
  564. package/dist/service/stepfunctions/sdk/sim-step-functions-sdk-command-router.js +53 -0
  565. package/dist/service/stepfunctions/sdk/sim-step-functions-sdk-command-router.js.map +1 -0
  566. package/dist/service/stepfunctions/sim-step-functions-inspection.d.ts +22 -0
  567. package/dist/service/stepfunctions/sim-step-functions-inspection.d.ts.map +1 -0
  568. package/dist/service/stepfunctions/sim-step-functions-inspection.js +29 -0
  569. package/dist/service/stepfunctions/sim-step-functions-inspection.js.map +1 -0
  570. package/dist/service/stepfunctions/sim-step-functions.d.ts +67 -0
  571. package/dist/service/stepfunctions/sim-step-functions.d.ts.map +1 -0
  572. package/dist/service/stepfunctions/sim-step-functions.js +124 -0
  573. package/dist/service/stepfunctions/sim-step-functions.js.map +1 -0
  574. package/dist/service/stepfunctions/task/sim-aws-states-task-targets.d.ts +33 -0
  575. package/dist/service/stepfunctions/task/sim-aws-states-task-targets.d.ts.map +1 -0
  576. package/dist/service/stepfunctions/task/sim-aws-states-task-targets.js +49 -0
  577. package/dist/service/stepfunctions/task/sim-aws-states-task-targets.js.map +1 -0
  578. package/dist/service/stepfunctions/task/sim-states-execution-role.d.ts +25 -0
  579. package/dist/service/stepfunctions/task/sim-states-execution-role.d.ts.map +1 -0
  580. package/dist/service/stepfunctions/task/sim-states-execution-role.js +57 -0
  581. package/dist/service/stepfunctions/task/sim-states-execution-role.js.map +1 -0
  582. package/dist/service/stepfunctions/task/sim-states-function-arn-target.d.ts +31 -0
  583. package/dist/service/stepfunctions/task/sim-states-function-arn-target.d.ts.map +1 -0
  584. package/dist/service/stepfunctions/task/sim-states-function-arn-target.js +39 -0
  585. package/dist/service/stepfunctions/task/sim-states-function-arn-target.js.map +1 -0
  586. package/dist/service/stepfunctions/task/sim-states-function-location.d.ts +20 -0
  587. package/dist/service/stepfunctions/task/sim-states-function-location.d.ts.map +1 -0
  588. package/dist/service/stepfunctions/task/sim-states-function-location.js +28 -0
  589. package/dist/service/stepfunctions/task/sim-states-function-location.js.map +1 -0
  590. package/dist/service/stepfunctions/task/sim-states-lambda-invoke-target.d.ts +34 -0
  591. package/dist/service/stepfunctions/task/sim-states-lambda-invoke-target.d.ts.map +1 -0
  592. package/dist/service/stepfunctions/task/sim-states-lambda-invoke-target.js +65 -0
  593. package/dist/service/stepfunctions/task/sim-states-lambda-invoke-target.js.map +1 -0
  594. package/dist/service/stepfunctions/task/sim-states-no-task-targets.d.ts +16 -0
  595. package/dist/service/stepfunctions/task/sim-states-no-task-targets.d.ts.map +1 -0
  596. package/dist/service/stepfunctions/task/sim-states-no-task-targets.js +19 -0
  597. package/dist/service/stepfunctions/task/sim-states-no-task-targets.js.map +1 -0
  598. package/dist/service/stepfunctions/task/sim-states-task-fields.d.ts +14 -0
  599. package/dist/service/stepfunctions/task/sim-states-task-fields.d.ts.map +1 -0
  600. package/dist/service/stepfunctions/task/sim-states-task-fields.js +29 -0
  601. package/dist/service/stepfunctions/task/sim-states-task-fields.js.map +1 -0
  602. package/dist/service/stepfunctions/task/sim-states-task-function.d.ts +57 -0
  603. package/dist/service/stepfunctions/task/sim-states-task-function.d.ts.map +1 -0
  604. package/dist/service/stepfunctions/task/sim-states-task-function.js +93 -0
  605. package/dist/service/stepfunctions/task/sim-states-task-function.js.map +1 -0
  606. package/dist/service/stepfunctions/task/sim-states-task-invocation.d.ts +29 -0
  607. package/dist/service/stepfunctions/task/sim-states-task-invocation.d.ts.map +1 -0
  608. package/dist/service/stepfunctions/task/sim-states-task-invocation.js +2 -0
  609. package/dist/service/stepfunctions/task/sim-states-task-invocation.js.map +1 -0
  610. package/dist/service/stepfunctions/task/sim-states-task-resource.d.ts +12 -0
  611. package/dist/service/stepfunctions/task/sim-states-task-resource.d.ts.map +1 -0
  612. package/dist/service/stepfunctions/task/sim-states-task-resource.js +64 -0
  613. package/dist/service/stepfunctions/task/sim-states-task-resource.js.map +1 -0
  614. package/dist/service/stepfunctions/task/sim-states-task-target.d.ts +37 -0
  615. package/dist/service/stepfunctions/task/sim-states-task-target.d.ts.map +1 -0
  616. package/dist/service/stepfunctions/task/sim-states-task-target.js +12 -0
  617. package/dist/service/stepfunctions/task/sim-states-task-target.js.map +1 -0
  618. package/dist/service/stepfunctions/wait/sim-states-wait-due.d.ts +11 -0
  619. package/dist/service/stepfunctions/wait/sim-states-wait-due.d.ts.map +1 -0
  620. package/dist/service/stepfunctions/wait/sim-states-wait-due.js +67 -0
  621. package/dist/service/stepfunctions/wait/sim-states-wait-due.js.map +1 -0
  622. package/dist/service/stepfunctions/wait/sim-states-wait-fields.d.ts +18 -0
  623. package/dist/service/stepfunctions/wait/sim-states-wait-fields.d.ts.map +1 -0
  624. package/dist/service/stepfunctions/wait/sim-states-wait-fields.js +85 -0
  625. package/dist/service/stepfunctions/wait/sim-states-wait-fields.js.map +1 -0
  626. package/package.json +11 -1
@@ -0,0 +1,72 @@
1
+ import { SimStatesInvalidDefinition } from "../error/sim-step-functions.error.js";
2
+ import { SimStatesAllTest, SimStatesAnyTest, SimStatesNotTest, } from "./sim-states-choice-group-test.js";
3
+ import { asSimStatesRuleRecord, readSimStatesRuleOperator, } from "./sim-states-choice-rule-record.js";
4
+ import { parseSimStatesComparisonTest } from "./sim-states-comparison-parse.js";
5
+ import { findSimStatesComparison } from "./sim-states-comparisons.js";
6
+ const booleanOperators = new Set(["And", "Or", "Not"]);
7
+ /**
8
+ * Read a rule nested inside an `And`, an `Or` or a `Not`.
9
+ *
10
+ * Only a top-level rule says where the execution goes, so a nested one
11
+ * carrying `Next` is refused rather than quietly ignored.
12
+ */
13
+ function parseNestedTest(stateName, operator, rule) {
14
+ const record = asSimStatesRuleRecord(stateName, rule);
15
+ if (Object.hasOwn(record, "Next")) {
16
+ throw new SimStatesInvalidDefinition(`A rule inside the ${operator} of the Choice state ${stateName} ` +
17
+ "carries Next. Only the rule at the top of a Choices entry says " +
18
+ "where the execution goes.");
19
+ }
20
+ return parseSimStatesChoiceTest(stateName, record);
21
+ }
22
+ /**
23
+ * Read the one test a rule makes.
24
+ */
25
+ export function parseSimStatesChoiceTest(stateName, record) {
26
+ const operator = readSimStatesRuleOperator(stateName, record);
27
+ // The operator was read off this record's own keys, so it holds a value.
28
+ // oxlint-disable-next-line security/detect-object-injection
29
+ const written = record[operator];
30
+ if (booleanOperators.has(operator)) {
31
+ checkNoVariable(stateName, operator, record);
32
+ return parseBooleanTest(stateName, operator, written);
33
+ }
34
+ const comparison = findSimStatesComparison(operator);
35
+ if (comparison === undefined) {
36
+ throw new SimStatesInvalidDefinition(`A rule in the Choice state ${stateName} tests with ${operator}, which ` +
37
+ "is not a comparator Amazon States Language defines.");
38
+ }
39
+ return parseSimStatesComparisonTest({
40
+ stateName,
41
+ record,
42
+ comparison,
43
+ written,
44
+ });
45
+ }
46
+ /**
47
+ * Read an `And`, an `Or` or a `Not` and the rules it holds.
48
+ */
49
+ function parseBooleanTest(stateName, operator, written) {
50
+ if (operator === "Not") {
51
+ return new SimStatesNotTest(parseNestedTest(stateName, operator, written));
52
+ }
53
+ if (!Array.isArray(written) || written.length === 0) {
54
+ throw new SimStatesInvalidDefinition(`The ${operator} in a rule of the Choice state ${stateName} is not a ` +
55
+ "non-empty array of rules.");
56
+ }
57
+ const tests = written.map((nested) => parseNestedTest(stateName, operator, nested));
58
+ if (operator === "And") {
59
+ return new SimStatesAllTest(tests);
60
+ }
61
+ return new SimStatesAnyTest(tests);
62
+ }
63
+ /**
64
+ * An `And`, an `Or` or a `Not` tests rules rather than a value of its own.
65
+ */
66
+ function checkNoVariable(stateName, operator, record) {
67
+ if (Object.hasOwn(record, "Variable")) {
68
+ throw new SimStatesInvalidDefinition(`The ${operator} in a rule of the Choice state ${stateName} carries a ` +
69
+ "Variable. The rules it holds carry their own.");
70
+ }
71
+ }
72
+ //# sourceMappingURL=sim-states-choice-test-parse.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-states-choice-test-parse.js","sourceRoot":"","sources":["../../../../src/service/stepfunctions/choice/sim-states-choice-test-parse.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAClF,OAAO,EACL,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,GACjB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EACL,qBAAqB,EACrB,yBAAyB,GAC1B,MAAM,oCAAoC,CAAC;AAE5C,OAAO,EAAE,4BAA4B,EAAE,MAAM,kCAAkC,CAAC;AAChF,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAEtE,MAAM,gBAAgB,GAAG,IAAI,GAAG,CAAC,CAAC,KAAK,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC;AAEvD;;;;;GAKG;AACH,SAAS,eAAe,CACtB,SAAiB,EACjB,QAAgB,EAChB,IAA2B;IAE3B,MAAM,MAAM,GAAG,qBAAqB,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;IAEtD,IAAI,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,CAAC;QAClC,MAAM,IAAI,0BAA0B,CAClC,qBAAqB,QAAQ,wBAAwB,SAAS,GAAG;YAC/D,iEAAiE;YACjE,2BAA2B,CAC9B,CAAC;IACJ,CAAC;IAED,OAAO,wBAAwB,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;AACrD,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,wBAAwB,CACtC,SAAiB,EACjB,MAAiC;IAEjC,MAAM,QAAQ,GAAG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KAAK,KAAK,EAAE,CAAC;QACvB,OAAO,IAAI,gBAAgB,CAAC,KAAK,CAAC,CAAC;IACrC,CAAC;IAED,OAAO,IAAI,gBAAgB,CAAC,KAAK,CAAC,CAAC;AACrC,CAAC;AAED;;GAEG;AACH,SAAS,eAAe,CACtB,SAAiB,EACjB,QAAgB,EAChB,MAAiC;IAEjC,IAAI,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,EAAE,CAAC;QACtC,MAAM,IAAI,0BAA0B,CAClC,OAAO,QAAQ,kCAAkC,SAAS,aAAa;YACrE,+CAA+C,CAClD,CAAC;IACJ,CAAC;AACH,CAAC"}
@@ -0,0 +1,33 @@
1
+ import type { JSONValue } from "../../../util/type-guard/json.js";
2
+ import type { SimStatesPathSegment } from "../data/sim-states-path-segment.js";
3
+ import type { SimStatesChoiceOperand } from "./sim-states-choice-operand.js";
4
+ import type { SimStatesComparison } from "./sim-states-comparison.js";
5
+ /**
6
+ * One test a `Choice` rule makes against the state's input.
7
+ */
8
+ export interface SimStatesChoiceTest {
9
+ holds(input: JSONValue): boolean;
10
+ }
11
+ interface SimStatesVariableTestProperties {
12
+ readonly path: string;
13
+ readonly segments: readonly SimStatesPathSegment[];
14
+ readonly comparison: SimStatesComparison;
15
+ readonly operand: SimStatesChoiceOperand;
16
+ }
17
+ /**
18
+ * A comparison of the value at a `Variable` path against an operand.
19
+ */
20
+ export declare class SimStatesVariableTest implements SimStatesChoiceTest {
21
+ #private;
22
+ constructor(properties: SimStatesVariableTestProperties);
23
+ /**
24
+ * Compare, failing the execution where the field being compared is absent.
25
+ *
26
+ * Real Step Functions fails a `Choice` state whose `Variable` selects
27
+ * nothing, which is why `IsPresent` exists. The data-test comparators answer
28
+ * for an absent field of their own accord.
29
+ */
30
+ holds(input: JSONValue): boolean;
31
+ }
32
+ export {};
33
+ //# sourceMappingURL=sim-states-choice-test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-states-choice-test.d.ts","sourceRoot":"","sources":["../../../../src/service/stepfunctions/choice/sim-states-choice-test.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAElE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAE/E,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAC7E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAEtE;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,KAAK,CAAC,KAAK,EAAE,SAAS,GAAG,OAAO,CAAC;CAClC;AAED,UAAU,+BAA+B;IACvC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,QAAQ,EAAE,SAAS,oBAAoB,EAAE,CAAC;IACnD,QAAQ,CAAC,UAAU,EAAE,mBAAmB,CAAC;IACzC,QAAQ,CAAC,OAAO,EAAE,sBAAsB,CAAC;CAC1C;AAED;;GAEG;AACH,qBAAa,qBAAsB,YAAW,mBAAmB;;IAM/D,YAAY,UAAU,EAAE,+BAA+B,EAKtD;IAED;;;;;;OAMG;IACH,KAAK,CAAC,KAAK,EAAE,SAAS,GAAG,OAAO,CAY/B;CACF"}
@@ -0,0 +1,34 @@
1
+ import { selectSimStatesPath } from "../data/sim-states-path-segment.js";
2
+ import { SimStatesRuntimeFailure } from "../error/sim-step-functions.error.js";
3
+ /**
4
+ * A comparison of the value at a `Variable` path against an operand.
5
+ */
6
+ export class SimStatesVariableTest {
7
+ #path;
8
+ #segments;
9
+ #comparison;
10
+ #operand;
11
+ constructor(properties) {
12
+ this.#path = properties.path;
13
+ this.#segments = properties.segments;
14
+ this.#comparison = properties.comparison;
15
+ this.#operand = properties.operand;
16
+ }
17
+ /**
18
+ * Compare, failing the execution where the field being compared is absent.
19
+ *
20
+ * Real Step Functions fails a `Choice` state whose `Variable` selects
21
+ * nothing, which is why `IsPresent` exists. The data-test comparators answer
22
+ * for an absent field of their own accord.
23
+ */
24
+ holds(input) {
25
+ const value = selectSimStatesPath(input, this.#segments);
26
+ if (value === undefined && this.#comparison.needsValue) {
27
+ throw new SimStatesRuntimeFailure(`A Choice rule compares ${this.#path} with ` +
28
+ `${this.#comparison.name}, and the state's input holds nothing ` +
29
+ "there. Test it with IsPresent first where it may be absent.");
30
+ }
31
+ return this.#comparison.holds(value, this.#operand.valueIn(input));
32
+ }
33
+ }
34
+ //# sourceMappingURL=sim-states-choice-test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-states-choice-test.js","sourceRoot":"","sources":["../../../../src/service/stepfunctions/choice/sim-states-choice-test.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AAEzE,OAAO,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AAkB/E;;GAEG;AACH,MAAM,OAAO,qBAAqB;IACvB,KAAK,CAAS;IACd,SAAS,CAAkC;IAC3C,WAAW,CAAsB;IACjC,QAAQ,CAAyB;IAE1C,YAAY,UAA2C;QACrD,IAAI,CAAC,KAAK,GAAG,UAAU,CAAC,IAAI,CAAC;QAC7B,IAAI,CAAC,SAAS,GAAG,UAAU,CAAC,QAAQ,CAAC;QACrC,IAAI,CAAC,WAAW,GAAG,UAAU,CAAC,UAAU,CAAC;QACzC,IAAI,CAAC,QAAQ,GAAG,UAAU,CAAC,OAAO,CAAC;IACrC,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CAAC,KAAgB;QACpB,MAAM,KAAK,GAAG,mBAAmB,CAAC,KAAK,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC;QAEzD,IAAI,KAAK,KAAK,SAAS,IAAI,IAAI,CAAC,WAAW,CAAC,UAAU,EAAE,CAAC;YACvD,MAAM,IAAI,uBAAuB,CAC/B,0BAA0B,IAAI,CAAC,KAAK,QAAQ;gBAC1C,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,wCAAwC;gBAChE,6DAA6D,CAChE,CAAC;QACJ,CAAC;QAED,OAAO,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC;IACrE,CAAC;CACF"}
@@ -0,0 +1,26 @@
1
+ import type { JSONValue } from "../../../util/type-guard/json.js";
2
+ import { SimStatesComparison, type SimStatesOperandType } from "./sim-states-comparison.js";
3
+ /**
4
+ * Read a JSON value as a string, or as nothing where it is not one.
5
+ */
6
+ export declare function readString(value: JSONValue | undefined): string | undefined;
7
+ /**
8
+ * Read a JSON value as a number, or as nothing where it is not one.
9
+ */
10
+ export declare function readNumber(value: JSONValue | undefined): number | undefined;
11
+ /**
12
+ * The five ordering comparators over one JSON type.
13
+ *
14
+ * A value of the wrong type on either side answers false rather than failing.
15
+ * `StringEquals` against a number is a comparison that does not hold, and a
16
+ * rule the input does not match is the ordinary case in a `Choice` state.
17
+ */
18
+ export declare function orderedComparisons<T>(prefix: string, operandType: SimStatesOperandType, read: (value: JSONValue | undefined) => T | undefined): SimStatesComparison[];
19
+ /**
20
+ * One data-test comparator, such as `IsString`.
21
+ *
22
+ * These are the comparators that answer for a `Variable` selecting nothing,
23
+ * which is what makes `IsPresent` usable as the first test in an `And`.
24
+ */
25
+ export declare function dataTest(name: string, describes: (variable: JSONValue | undefined) => boolean): SimStatesComparison;
26
+ //# sourceMappingURL=sim-states-comparison-families.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-states-comparison-families.d.ts","sourceRoot":"","sources":["../../../../src/service/stepfunctions/choice/sim-states-comparison-families.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,EACL,mBAAmB,EACnB,KAAK,oBAAoB,EAC1B,MAAM,4BAA4B,CAAC;AAEpC;;GAEG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,SAAS,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAM3E;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,SAAS,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAM3E;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,CAAC,EAClC,MAAM,EAAE,MAAM,EACd,WAAW,EAAE,oBAAoB,EACjC,IAAI,EAAE,CAAC,KAAK,EAAE,SAAS,GAAG,SAAS,KAAK,CAAC,GAAG,SAAS,GACpD,mBAAmB,EAAE,CA6BvB;AAED;;;;;GAKG;AACH,wBAAgB,QAAQ,CACtB,IAAI,EAAE,MAAM,EACZ,SAAS,EAAE,CAAC,QAAQ,EAAE,SAAS,GAAG,SAAS,KAAK,OAAO,GACtD,mBAAmB,CAQrB"}
@@ -0,0 +1,65 @@
1
+ import { SimStatesComparison, } from "./sim-states-comparison.js";
2
+ /**
3
+ * Read a JSON value as a string, or as nothing where it is not one.
4
+ */
5
+ export function readString(value) {
6
+ if (typeof value !== "string") {
7
+ return undefined;
8
+ }
9
+ return value;
10
+ }
11
+ /**
12
+ * Read a JSON value as a number, or as nothing where it is not one.
13
+ */
14
+ export function readNumber(value) {
15
+ if (typeof value !== "number") {
16
+ return undefined;
17
+ }
18
+ return value;
19
+ }
20
+ /**
21
+ * The five ordering comparators over one JSON type.
22
+ *
23
+ * A value of the wrong type on either side answers false rather than failing.
24
+ * `StringEquals` against a number is a comparison that does not hold, and a
25
+ * rule the input does not match is the ordinary case in a `Choice` state.
26
+ */
27
+ export function orderedComparisons(prefix, operandType, read) {
28
+ const comparison = (suffix, holds) => new SimStatesComparison({
29
+ name: `${prefix}${suffix}`,
30
+ operandType,
31
+ needsValue: true,
32
+ operandIsPath: false,
33
+ holds: (variable, operand) => {
34
+ const left = read(variable);
35
+ const right = read(operand);
36
+ if (left === undefined || right === undefined) {
37
+ return false;
38
+ }
39
+ return holds(left, right);
40
+ },
41
+ });
42
+ return [
43
+ comparison("Equals", (left, right) => left === right),
44
+ comparison("LessThan", (left, right) => left < right),
45
+ comparison("GreaterThan", (left, right) => left > right),
46
+ comparison("LessThanEquals", (left, right) => left <= right),
47
+ comparison("GreaterThanEquals", (left, right) => left >= right),
48
+ ];
49
+ }
50
+ /**
51
+ * One data-test comparator, such as `IsString`.
52
+ *
53
+ * These are the comparators that answer for a `Variable` selecting nothing,
54
+ * which is what makes `IsPresent` usable as the first test in an `And`.
55
+ */
56
+ export function dataTest(name, describes) {
57
+ return new SimStatesComparison({
58
+ name,
59
+ operandType: "boolean",
60
+ needsValue: false,
61
+ operandIsPath: false,
62
+ holds: (variable, operand) => describes(variable) === operand,
63
+ });
64
+ }
65
+ //# sourceMappingURL=sim-states-comparison-families.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-states-comparison-families.js","sourceRoot":"","sources":["../../../../src/service/stepfunctions/choice/sim-states-comparison-families.ts"],"names":[],"mappings":"AACA,OAAO,EACL,mBAAmB,GAEpB,MAAM,4BAA4B,CAAC;AAEpC;;GAEG;AACH,MAAM,UAAU,UAAU,CAAC,KAA4B;IACrD,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QAC9B,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,UAAU,CAAC,KAA4B;IACrD,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QAC9B,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,kBAAkB,CAChC,MAAc,EACd,WAAiC,EACjC,IAAqD;IAErD,MAAM,UAAU,GAAG,CACjB,MAAc,EACd,KAAqC,EAChB,EAAE,CACvB,IAAI,mBAAmB,CAAC;QACtB,IAAI,EAAE,GAAG,MAAM,GAAG,MAAM,EAAE;QAC1B,WAAW;QACX,UAAU,EAAE,IAAI;QAChB,aAAa,EAAE,KAAK;QACpB,KA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json.js";
2
+ import { type SimStatesChoiceTest } from "./sim-states-choice-test.js";
3
+ import type { SimStatesComparison } from "./sim-states-comparison.js";
4
+ interface SimStatesComparisonTestProperties {
5
+ readonly stateName: string;
6
+ readonly record: Record<string, JSONValue>;
7
+ readonly comparison: SimStatesComparison;
8
+ readonly written: JSONValue;
9
+ }
10
+ /**
11
+ * Read a comparison of the value at a `Variable` path against an operand.
12
+ */
13
+ export declare function parseSimStatesComparisonTest(properties: SimStatesComparisonTestProperties): SimStatesChoiceTest;
14
+ export {};
15
+ //# sourceMappingURL=sim-states-comparison-parse.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-states-comparison-parse.d.ts","sourceRoot":"","sources":["../../../../src/service/stepfunctions/choice/sim-states-comparison-parse.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAQlE,OAAO,EACL,KAAK,mBAAmB,EAEzB,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAEtE,UAAU,iCAAiC;IACzC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;IAC3C,QAAQ,CAAC,UAAU,EAAE,mBAAmB,CAAC;IACzC,QAAQ,CAAC,OAAO,EAAE,SAAS,CAAC;CAC7B;AAED;;GAEG;AACH,wBAAgB,4BAA4B,CAC1C,UAAU,EAAE,iCAAiC,GAC5C,mBAAmB,CAmBrB"}
@@ -0,0 +1,43 @@
1
+ import { parseSimStatesReferencePath } from "../data/sim-states-reference-path.js";
2
+ import { SimStatesInvalidDefinition } from "../error/sim-step-functions.error.js";
3
+ import { SimStatesLiteralOperand, SimStatesPathOperand, } from "./sim-states-choice-operand.js";
4
+ import { SimStatesVariableTest, } from "./sim-states-choice-test.js";
5
+ /**
6
+ * Read a comparison of the value at a `Variable` path against an operand.
7
+ */
8
+ export function parseSimStatesComparisonTest(properties) {
9
+ const { stateName, record, comparison, written } = properties;
10
+ const variable = record["Variable"];
11
+ if (typeof variable !== "string") {
12
+ throw new SimStatesInvalidDefinition(`A ${comparison.name} rule in the Choice state ${stateName} has no ` +
13
+ "Variable naming the value to compare.");
14
+ }
15
+ checkOperandType(stateName, comparison, written);
16
+ return new SimStatesVariableTest({
17
+ path: variable,
18
+ segments: parseSimStatesReferencePath(variable),
19
+ comparison,
20
+ operand: readOperand(comparison, written),
21
+ });
22
+ }
23
+ /**
24
+ * Read a comparator's operand, either as written or as a path to read it from.
25
+ */
26
+ function readOperand(comparison, written) {
27
+ if (typeof written === "string" && comparison.operandIsPath) {
28
+ return new SimStatesPathOperand(written, parseSimStatesReferencePath(written));
29
+ }
30
+ return new SimStatesLiteralOperand(written);
31
+ }
32
+ /**
33
+ * Check that a comparator's operand is the kind of value it compares.
34
+ */
35
+ function checkOperandType(stateName, comparison, written) {
36
+ if (typeof written === comparison.operandType) {
37
+ return;
38
+ }
39
+ throw new SimStatesInvalidDefinition(`A ${comparison.name} rule in the Choice state ${stateName} compares ` +
40
+ `against ${JSON.stringify(written)}, and ${comparison.name} takes a ` +
41
+ `${comparison.operandType}.`);
42
+ }
43
+ //# sourceMappingURL=sim-states-comparison-parse.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-states-comparison-parse.js","sourceRoot":"","sources":["../../../../src/service/stepfunctions/choice/sim-states-comparison-parse.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,2BAA2B,EAAE,MAAM,sCAAsC,CAAC;AACnF,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAClF,OAAO,EAEL,uBAAuB,EACvB,oBAAoB,GACrB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAEL,qBAAqB,GACtB,MAAM,6BAA6B,CAAC;AAUrC;;GAEG;AACH,MAAM,UAAU,4BAA4B,CAC1C,UAA6C;IAE7C,MAA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,0 +1,49 @@
1
+ import type { JSONValue } from "../../../util/type-guard/json.js";
2
+ /**
3
+ * What the definition writes as a comparator's operand.
4
+ */
5
+ export type SimStatesOperandType = "string" | "number" | "boolean";
6
+ interface SimStatesComparisonProperties {
7
+ readonly name: string;
8
+ readonly operandType: SimStatesOperandType;
9
+ readonly needsValue: boolean;
10
+ readonly operandIsPath: boolean;
11
+ readonly holds: SimStatesComparisonHolds;
12
+ }
13
+ export type SimStatesComparisonHolds = (variable: JSONValue | undefined, operand: JSONValue) => boolean;
14
+ /**
15
+ * One `Choice` comparator, such as `NumericGreaterThan`.
16
+ *
17
+ * A comparator knows what its operand has to be, so a definition writing the
18
+ * wrong kind is refused when the state machine is created rather than
19
+ * answering false at every rule it appears in.
20
+ */
21
+ export declare class SimStatesComparison {
22
+ #private;
23
+ readonly name: string;
24
+ readonly operandType: SimStatesOperandType;
25
+ /**
26
+ * Whether the rule's `Variable` has to select something.
27
+ *
28
+ * The data-test comparators, `IsPresent` and its siblings, are the ones that
29
+ * answer for a field that is not there. Every other comparator fails the
30
+ * execution instead, as real Step Functions does.
31
+ */
32
+ readonly needsValue: boolean;
33
+ /** Whether the operand is a Reference Path into the state's input. */
34
+ readonly operandIsPath: boolean;
35
+ constructor(properties: SimStatesComparisonProperties);
36
+ /**
37
+ * Whether the value at the rule's `Variable` compares as the rule asks.
38
+ */
39
+ holds(variable: JSONValue | undefined, operand: JSONValue): boolean;
40
+ /**
41
+ * The same comparator with its operand read from the state's input.
42
+ *
43
+ * Every comparator taking an operand has a `Path` twin, which compares two
44
+ * places in the same document instead of a place and a literal.
45
+ */
46
+ readingItsOperandFromAPath(): SimStatesComparison;
47
+ }
48
+ export {};
49
+ //# sourceMappingURL=sim-states-comparison.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-states-comparison.d.ts","sourceRoot":"","sources":["../../../../src/service/stepfunctions/choice/sim-states-comparison.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAElE;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,CAAC;AAEnE,UAAU,6BAA6B;IACrC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,WAAW,EAAE,oBAAoB,CAAC;IAC3C,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC;IAC7B,QAAQ,CAAC,aAAa,EAAE,OAAO,CAAC;IAChC,QAAQ,CAAC,KAAK,EAAE,wBAAwB,CAAC;CAC1C;AAED,MAAM,MAAM,wBAAwB,GAAG,CACrC,QAAQ,EAAE,SAAS,GAAG,SAAS,EAC/B,OAAO,EAAE,SAAS,KACf,OAAO,CAAC;AAEb;;;;;;GAMG;AACH,qBAAa,mBAAmB;;IAC9B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,WAAW,EAAE,oBAAoB,CAAC;IAC3C;;;;;;OAMG;IACH,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC;IAC7B,sEAAsE;IACtE,QAAQ,CAAC,aAAa,EAAE,OAAO,CAAC;IAIhC,YAAY,UAAU,EAAE,6BAA6B,EAMpD;IAED;;OAEG;IACH,KAAK,CAAC,QAAQ,EAAE,SAAS,GAAG,SAAS,EAAE,OAAO,EAAE,SAAS,GAAG,OAAO,CAElE;IAED;;;;;OAKG;IACH,0BAA0B,IAAI,mBAAmB,CAQhD;CACF"}
@@ -0,0 +1,51 @@
1
+ /**
2
+ * One `Choice` comparator, such as `NumericGreaterThan`.
3
+ *
4
+ * A comparator knows what its operand has to be, so a definition writing the
5
+ * wrong kind is refused when the state machine is created rather than
6
+ * answering false at every rule it appears in.
7
+ */
8
+ export class SimStatesComparison {
9
+ name;
10
+ operandType;
11
+ /**
12
+ * Whether the rule's `Variable` has to select something.
13
+ *
14
+ * The data-test comparators, `IsPresent` and its siblings, are the ones that
15
+ * answer for a field that is not there. Every other comparator fails the
16
+ * execution instead, as real Step Functions does.
17
+ */
18
+ needsValue;
19
+ /** Whether the operand is a Reference Path into the state's input. */
20
+ operandIsPath;
21
+ #holds;
22
+ constructor(properties) {
23
+ this.name = properties.name;
24
+ this.operandType = properties.operandType;
25
+ this.needsValue = properties.needsValue;
26
+ this.operandIsPath = properties.operandIsPath;
27
+ this.#holds = properties.holds;
28
+ }
29
+ /**
30
+ * Whether the value at the rule's `Variable` compares as the rule asks.
31
+ */
32
+ holds(variable, operand) {
33
+ return this.#holds(variable, operand);
34
+ }
35
+ /**
36
+ * The same comparator with its operand read from the state's input.
37
+ *
38
+ * Every comparator taking an operand has a `Path` twin, which compares two
39
+ * places in the same document instead of a place and a literal.
40
+ */
41
+ readingItsOperandFromAPath() {
42
+ return new SimStatesComparison({
43
+ name: `${this.name}Path`,
44
+ operandType: "string",
45
+ needsValue: this.needsValue,
46
+ operandIsPath: true,
47
+ holds: this.#holds,
48
+ });
49
+ }
50
+ }
51
+ //# sourceMappingURL=sim-states-comparison.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-states-comparison.js","sourceRoot":"","sources":["../../../../src/service/stepfunctions/choice/sim-states-comparison.ts"],"names":[],"mappings":"AAoBA;;;;;;GAMG;AACH,MAAM,OAAO,mBAAmB;IACrB,IAAI,CAAS;IACb,WAAW,CAAuB;IAC3C;;;;;;OAMG;IACM,UAAU,CAAU;IAC7B,sEAAsE;IAC7D,aAAa,CAAU;IAEvB,MAAM,CAA2B;IAE1C,YAAY,UAAyC;QACnD,IAAI,CAAC,IAAI,GAAG,UAAU,CAAC,IAAI,CAAC;QAC5B,IAAI,CAAC,WAAW,GAAG,UAAU,CAAC,WAAW,CAAC;QAC1C,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC,UAAU,CAAC;QACxC,IAAI,CAAC,aAAa,GAAG,UAAU,CAAC,aAAa,CAAC;QAC9C,IAAI,CAAC,MAAM,GAAG,UAAU,CAAC,KAAK,CAAC;IACjC,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,QAA+B,EAAE,OAAkB;QACvD,OAAO,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;IACxC,CAAC;IAED;;;;;OAKG;IACH,0BAA0B;QACxB,OAAO,IAAI,mBAAmB,CAAC;YAC7B,IAAI,EAAE,GAAG,IAAI,CAAC,IAAI,MAAM;YACxB,WAAW,EAAE,QAAQ;YACrB,UAAU,EAAE,IAAI,CAAC,UAAU;YAC3B,aAAa,EAAE,IAAI;YACnB,KAAK,EAAE,IAAI,CAAC,MAAM;SACnB,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -0,0 +1,6 @@
1
+ import { SimStatesComparison } from "./sim-states-comparison.js";
2
+ /**
3
+ * The comparator of a name, or nothing where no comparator has it.
4
+ */
5
+ export declare function findSimStatesComparison(name: string): SimStatesComparison | undefined;
6
+ //# sourceMappingURL=sim-states-comparisons.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-states-comparisons.d.ts","sourceRoot":"","sources":["../../../../src/service/stepfunctions/choice/sim-states-comparisons.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AA2EjE;;GAEG;AACH,wBAAgB,uBAAuB,CACrC,IAAI,EAAE,MAAM,GACX,mBAAmB,GAAG,SAAS,CAEjC"}
@@ -0,0 +1,64 @@
1
+ import { readSimStatesTimestamp } from "../data/sim-states-timestamp.js";
2
+ import { SimStatesComparison } from "./sim-states-comparison.js";
3
+ import { dataTest, orderedComparisons, readNumber, readString, } from "./sim-states-comparison-families.js";
4
+ import { simStatesGlobMatches } from "./sim-states-glob.js";
5
+ /**
6
+ * `StringMatches`, which is the one comparator taking a wildcard pattern.
7
+ *
8
+ * Amazon States Language gives it no `Path` twin, so neither does this.
9
+ */
10
+ const stringMatches = new SimStatesComparison({
11
+ name: "StringMatches",
12
+ operandType: "string",
13
+ needsValue: true,
14
+ operandIsPath: false,
15
+ holds: (variable, operand) => {
16
+ const value = readString(variable);
17
+ const pattern = readString(operand);
18
+ if (value === undefined || pattern === undefined) {
19
+ return false;
20
+ }
21
+ return simStatesGlobMatches(pattern, value);
22
+ },
23
+ });
24
+ const booleanEquals = new SimStatesComparison({
25
+ name: "BooleanEquals",
26
+ operandType: "boolean",
27
+ needsValue: true,
28
+ operandIsPath: false,
29
+ holds: (variable, operand) => typeof variable === "boolean" && variable === operand,
30
+ });
31
+ /**
32
+ * Every comparator a `Choice` rule can be written with.
33
+ *
34
+ * Each comparator taking an operand has a `Path` twin reading that operand
35
+ * from the state's input. The data tests take a boolean the definition writes
36
+ * out, and have none.
37
+ */
38
+ function allComparisons() {
39
+ const compared = [
40
+ ...orderedComparisons("String", "string", readString),
41
+ ...orderedComparisons("Numeric", "number", readNumber),
42
+ ...orderedComparisons("Timestamp", "string", readSimStatesTimestamp),
43
+ booleanEquals,
44
+ ];
45
+ return [
46
+ ...compared,
47
+ ...compared.map((comparison) => comparison.readingItsOperandFromAPath()),
48
+ stringMatches,
49
+ dataTest("IsPresent", (variable) => variable !== undefined),
50
+ dataTest("IsNull", (variable) => variable === null),
51
+ dataTest("IsBoolean", (variable) => typeof variable === "boolean"),
52
+ dataTest("IsNumeric", (variable) => typeof variable === "number"),
53
+ dataTest("IsString", (variable) => typeof variable === "string"),
54
+ dataTest("IsTimestamp", (variable) => readSimStatesTimestamp(variable) !== undefined),
55
+ ];
56
+ }
57
+ const comparisons = new Map(allComparisons().map((comparison) => [comparison.name, comparison]));
58
+ /**
59
+ * The comparator of a name, or nothing where no comparator has it.
60
+ */
61
+ export function findSimStatesComparison(name) {
62
+ return comparisons.get(name);
63
+ }
64
+ //# sourceMappingURL=sim-states-comparisons.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-states-comparisons.js","sourceRoot":"","sources":["../../../../src/service/stepfunctions/choice/sim-states-comparisons.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AACz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aAAa;KACd,CAAC;IAEF,OAAO;QACL,GAAG,QAAQ;QACX,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC,UAAU,EAAE,EAAE,CAAC,UAAU,CAAC,0BAA0B,EAAE,CAAC;QACxE,aAAa;QACb,QAAQ,CAAC,WAAW,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,KAAK,SAAS,CAAC;QAC3D,QAAQ,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,KAAK,IAAI,CAAC;QACnD,QAAQ,CAAC,WAAW,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,OAAO,QAAQ,KAAK,SAAS,CAAC;QAClE,QAAQ,CAAC,WAAW,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,OAAO,QAAQ,KAAK,QAAQ,CAAC;QACjE,QAAQ,CAAC,UAAU,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,OAAO,QAAQ,KAAK,QAAQ,CAAC;QAChE,QAAQ,CACN,aAAa,EACb,CAAC,QAAQ,EAAE,EAAE,CAAC,sBAAsB,CAAC,QAAQ,CAAC,KAAK,SAAS,CAC7D;KACF,CAAC;AACJ,CAAC;AAED,MAAM,WAAW,GAAG,IAAI,GAAG,CACzB,cAAc,EAAE,CAAC,GAAG,CAAC,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC,UAAU,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC,CACpE,CAAC;AAEF;;GAEG;AACH,MAAM,UAAU,uBAAuB,CACrC,IAAY;IAEZ,OAAO,WAAW,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;AAC/B,CAAC"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Whether a string matches a `StringMatches` pattern.
3
+ *
4
+ * The pattern language is the one Amazon States Language defines for
5
+ * `StringMatches`. `*` stands for any run of characters, and a backslash
6
+ * escapes the character after it, so `\*` is a literal asterisk and `\\` a
7
+ * literal backslash.
8
+ *
9
+ * The match is done by walking both strings. A pattern comes out of a state
10
+ * machine definition, and turning one into a regular expression would put the
11
+ * definition's author in charge of how long the match takes.
12
+ */
13
+ export declare function simStatesGlobMatches(pattern: string, value: string): boolean;
14
+ //# sourceMappingURL=sim-states-glob.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-states-glob.d.ts","sourceRoot":"","sources":["../../../../src/service/stepfunctions/choice/sim-states-glob.ts"],"names":[],"mappings":"AASA;;;;;;;;;;;GAWG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAE5E"}
@@ -0,0 +1,73 @@
1
+ const wildcard = { wildcard: true };
2
+ /**
3
+ * Whether a string matches a `StringMatches` pattern.
4
+ *
5
+ * The pattern language is the one Amazon States Language defines for
6
+ * `StringMatches`. `*` stands for any run of characters, and a backslash
7
+ * escapes the character after it, so `\*` is a literal asterisk and `\\` a
8
+ * literal backslash.
9
+ *
10
+ * The match is done by walking both strings. A pattern comes out of a state
11
+ * machine definition, and turning one into a regular expression would put the
12
+ * definition's author in charge of how long the match takes.
13
+ */
14
+ export function simStatesGlobMatches(pattern, value) {
15
+ return matchTokens(readGlobTokens(pattern), value);
16
+ }
17
+ /**
18
+ * Split a pattern into the steps it is made of, resolving its escapes.
19
+ */
20
+ function readGlobTokens(pattern) {
21
+ const tokens = [];
22
+ for (let index = 0; index < pattern.length; index++) {
23
+ const character = pattern.charAt(index);
24
+ if (character === "\\" && index + 1 < pattern.length) {
25
+ index += 1;
26
+ tokens.push({ char: pattern.charAt(index) });
27
+ continue;
28
+ }
29
+ if (character === "*") {
30
+ tokens.push(wildcard);
31
+ continue;
32
+ }
33
+ // A trailing backslash escapes nothing and stands for itself.
34
+ tokens.push({ char: character });
35
+ }
36
+ return tokens;
37
+ }
38
+ /**
39
+ * Match the tokens against a value, backtracking to the last wildcard.
40
+ *
41
+ * Each wildcard remembers where it started matching. Where the rest of the
42
+ * pattern then fails, that wildcard takes one more character and the match
43
+ * carries on from there, which is the whole of the backtracking this pattern
44
+ * language needs.
45
+ */
46
+ function matchTokens(tokens, value) {
47
+ let token = 0;
48
+ let character = 0;
49
+ let lastWildcard = -1;
50
+ let resumeAt = 0;
51
+ while (character < value.length) {
52
+ const current = tokens.at(token);
53
+ if (current !== undefined && "wildcard" in current) {
54
+ lastWildcard = token;
55
+ resumeAt = character;
56
+ token += 1;
57
+ continue;
58
+ }
59
+ if (current !== undefined && current.char === value.charAt(character)) {
60
+ token += 1;
61
+ character += 1;
62
+ continue;
63
+ }
64
+ if (lastWildcard === -1) {
65
+ return false;
66
+ }
67
+ token = lastWildcard + 1;
68
+ resumeAt += 1;
69
+ character = resumeAt;
70
+ }
71
+ return tokens.slice(token).every((rest) => "wildcard" in rest);
72
+ }
73
+ //# sourceMappingURL=sim-states-glob.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sim-states-glob.js","sourceRoot":"","sources":["../../../../src/service/stepfunctions/choice/sim-states-glob.ts"],"names":[],"mappings":"AAOA,MAAM,QAAQ,GAAuB,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;AAExD;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,oBAAoB,CAAC,OAAe,EAAE,KAAa;IACjE,OAAO,WAAW,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,KAAK,CAAC,CAAC;AACrD,CAAC;AAED;;GAEG;AACH,SAAS,cAAc,CAAC,OAAe;IACrC,MAAM,MAAM,GAAyB,EAAE,CAAC;IAExC,KAAK,IAAI,KAAK,GAAG,CAAC,EAAE,KAAK,GAAG,OAAO,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC;QACpD,MAAM,SAAS,GAAG,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QAExC,IAAI,SAAS,KAAK,IAAI,IAAI,KAAK,GAAG,CAAC,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;YACrD,KAAK,IAAI,CAAC,CAAC;YACX,MA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