@kensio/yulin 1.20.2 → 1.20.3
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.
- package/dist/sdk/router/resolve-sim-sdk-command-router.d.ts +8 -0
- package/dist/sdk/router/resolve-sim-sdk-command-router.d.ts.map +1 -1
- package/dist/sdk/router/resolve-sim-sdk-command-router.js +10 -0
- package/dist/sdk/router/resolve-sim-sdk-command-router.js.map +1 -1
- package/dist/service/aws/factory/sim-aws-account-region-service-builder.d.ts +4 -0
- package/dist/service/aws/factory/sim-aws-account-region-service-builder.d.ts.map +1 -1
- package/dist/service/aws/factory/sim-aws-account-region-service-builder.js +6 -0
- package/dist/service/aws/factory/sim-aws-account-region-service-builder.js.map +1 -1
- package/dist/service/cloudformation/cdk/ssm/cross-region-parameter/sim-cdk-cross-region-parameter-error.d.ts +15 -0
- package/dist/service/cloudformation/cdk/ssm/cross-region-parameter/sim-cdk-cross-region-parameter-error.d.ts.map +1 -0
- package/dist/service/cloudformation/cdk/ssm/cross-region-parameter/sim-cdk-cross-region-parameter-error.js +18 -0
- package/dist/service/cloudformation/cdk/ssm/cross-region-parameter/sim-cdk-cross-region-parameter-error.js.map +1 -0
- package/dist/service/cloudformation/cdk/ssm/cross-region-parameter/sim-cdk-cross-region-parameter-properties.d.ts +30 -0
- package/dist/service/cloudformation/cdk/ssm/cross-region-parameter/sim-cdk-cross-region-parameter-properties.d.ts.map +1 -0
- package/dist/service/cloudformation/cdk/ssm/cross-region-parameter/sim-cdk-cross-region-parameter-properties.js +74 -0
- package/dist/service/cloudformation/cdk/ssm/cross-region-parameter/sim-cdk-cross-region-parameter-properties.js.map +1 -0
- package/dist/service/cloudformation/cdk/ssm/cross-region-parameter/sim-cdk-cross-region-parameter-reader.d.ts +45 -0
- package/dist/service/cloudformation/cdk/ssm/cross-region-parameter/sim-cdk-cross-region-parameter-reader.d.ts.map +1 -0
- package/dist/service/cloudformation/cdk/ssm/cross-region-parameter/sim-cdk-cross-region-parameter-reader.js +82 -0
- package/dist/service/cloudformation/cdk/ssm/cross-region-parameter/sim-cdk-cross-region-parameter-reader.js.map +1 -0
- package/dist/service/cloudformation/cdk/ssm/cross-region-parameter/sim-cdk-cross-region-parameter-reading.d.ts +27 -0
- package/dist/service/cloudformation/cdk/ssm/cross-region-parameter/sim-cdk-cross-region-parameter-reading.d.ts.map +1 -0
- package/dist/service/cloudformation/cdk/ssm/cross-region-parameter/sim-cdk-cross-region-parameter-reading.js +24 -0
- package/dist/service/cloudformation/cdk/ssm/cross-region-parameter/sim-cdk-cross-region-parameter-reading.js.map +1 -0
- package/dist/service/cloudformation/cdk/ssm/cross-region-parameter/sim-cdk-cross-region-parameter-template.factory.d.ts +39 -0
- package/dist/service/cloudformation/cdk/ssm/cross-region-parameter/sim-cdk-cross-region-parameter-template.factory.d.ts.map +1 -0
- package/dist/service/cloudformation/cdk/ssm/cross-region-parameter/sim-cdk-cross-region-parameter-template.factory.js +42 -0
- package/dist/service/cloudformation/cdk/ssm/cross-region-parameter/sim-cdk-cross-region-parameter-template.factory.js.map +1 -0
- package/dist/service/cloudformation/resource/cfn/cdk/sim-cdk-cross-region-parameter-cfn.d.ts +32 -0
- package/dist/service/cloudformation/resource/cfn/cdk/sim-cdk-cross-region-parameter-cfn.d.ts.map +1 -0
- package/dist/service/cloudformation/resource/cfn/cdk/sim-cdk-cross-region-parameter-cfn.js +36 -0
- package/dist/service/cloudformation/resource/cfn/cdk/sim-cdk-cross-region-parameter-cfn.js.map +1 -0
- package/dist/service/cloudformation/resource/cfn/cdk/sim-cdk-custom-resource-value-adapter.d.ts +14 -0
- package/dist/service/cloudformation/resource/cfn/cdk/sim-cdk-custom-resource-value-adapter.d.ts.map +1 -0
- package/dist/service/cloudformation/resource/cfn/cdk/sim-cdk-custom-resource-value-adapter.js +23 -0
- package/dist/service/cloudformation/resource/cfn/cdk/sim-cdk-custom-resource-value-adapter.js.map +1 -0
- package/dist/service/cloudformation/resource/cfn/sim-cfn-default-resource-value-adapter.d.ts.map +1 -1
- package/dist/service/cloudformation/resource/cfn/sim-cfn-default-resource-value-adapter.js +2 -1
- package/dist/service/cloudformation/resource/cfn/sim-cfn-default-resource-value-adapter.js.map +1 -1
- package/dist/service/cloudformation/resource/cfn/sim-cfn-service-value-adapters.d.ts +2 -1
- package/dist/service/cloudformation/resource/cfn/sim-cfn-service-value-adapters.d.ts.map +1 -1
- package/dist/service/cloudformation/resource/cfn/sim-cfn-service-value-adapters.js +4 -1
- package/dist/service/cloudformation/resource/cfn/sim-cfn-service-value-adapters.js.map +1 -1
- package/dist/service/cloudformation/resource/cfn/sim-cfn-unanswered-attribute.d.ts +23 -0
- package/dist/service/cloudformation/resource/cfn/sim-cfn-unanswered-attribute.d.ts.map +1 -0
- package/dist/service/cloudformation/resource/cfn/sim-cfn-unanswered-attribute.js +46 -0
- package/dist/service/cloudformation/resource/cfn/sim-cfn-unanswered-attribute.js.map +1 -0
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-step-functions-cfn-value-adapter.js +1 -1
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-step-functions-cfn-value-adapter.js.map +1 -1
- package/dist/service/cloudformation/resource/resolve/service/sim-cfn-custom-resource-factories.d.ts.map +1 -1
- package/dist/service/cloudformation/resource/resolve/service/sim-cfn-custom-resource-factories.js +5 -0
- package/dist/service/cloudformation/resource/resolve/service/sim-cfn-custom-resource-factories.js.map +1 -1
- package/dist/service/cloudformation/resource/resolve/service/sim-cfn-service-factories.d.ts.map +1 -1
- package/dist/service/cloudformation/resource/resolve/service/sim-cfn-service-factories.js +1 -4
- package/dist/service/cloudformation/resource/resolve/service/sim-cfn-service-factories.js.map +1 -1
- package/dist/service/cloudformation/resource/sim-cfn-resource-record.d.ts +7 -0
- package/dist/service/cloudformation/resource/sim-cfn-resource-record.d.ts.map +1 -1
- package/dist/service/cloudformation/resource/sim-cfn-resource-record.js +9 -0
- package/dist/service/cloudformation/resource/sim-cfn-resource-record.js.map +1 -1
- package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-distro-creator.d.ts +5 -4
- package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-distro-creator.d.ts.map +1 -1
- package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-distro-creator.js +14 -5
- package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-distro-creator.js.map +1 -1
- package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-distro-edge-associations.d.ts +19 -0
- package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-distro-edge-associations.d.ts.map +1 -0
- package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-distro-edge-associations.js +78 -0
- package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-distro-edge-associations.js.map +1 -0
- package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-edge-association-skips.d.ts +34 -0
- package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-edge-association-skips.d.ts.map +1 -0
- package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-edge-association-skips.js +58 -0
- package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-edge-association-skips.js.map +1 -0
- package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-edge-skip-reason.d.ts +26 -0
- package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-edge-skip-reason.d.ts.map +1 -0
- package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-edge-skip-reason.js +60 -0
- package/dist/service/cloudfront/cfn/distro/sim-cfn-cf-edge-skip-reason.js.map +1 -0
- package/dist/service/cloudfront/controller/dependency/sim-cf-controller-dependency.d.ts +4 -1
- package/dist/service/cloudfront/controller/dependency/sim-cf-controller-dependency.d.ts.map +1 -1
- package/dist/service/cloudfront/controller/dependency/sim-cf-controller-dependency.js +6 -4
- package/dist/service/cloudfront/controller/dependency/sim-cf-controller-dependency.js.map +1 -1
- package/dist/service/cloudfront/controller/edge/sim-lambda-edge-applicator.d.ts +3 -11
- package/dist/service/cloudfront/controller/edge/sim-lambda-edge-applicator.d.ts.map +1 -1
- package/dist/service/cloudfront/controller/edge/sim-lambda-edge-applicator.js +6 -20
- package/dist/service/cloudfront/controller/edge/sim-lambda-edge-applicator.js.map +1 -1
- package/dist/service/cloudfront/controller/edge/sim-lambda-edge-distribution.d.ts +1 -1
- package/dist/service/cloudfront/controller/edge/sim-lambda-edge-distribution.d.ts.map +1 -1
- package/dist/service/cloudfront/controller/edge/sim-lambda-edge-origin-applicator.d.ts +43 -0
- package/dist/service/cloudfront/controller/edge/sim-lambda-edge-origin-applicator.d.ts.map +1 -0
- package/dist/service/cloudfront/controller/edge/sim-lambda-edge-origin-applicator.js +63 -0
- package/dist/service/cloudfront/controller/edge/sim-lambda-edge-origin-applicator.js.map +1 -0
- package/dist/service/cloudfront/controller/edge/sim-lambda-edge-run.d.ts +16 -0
- package/dist/service/cloudfront/controller/edge/sim-lambda-edge-run.d.ts.map +1 -0
- package/dist/service/cloudfront/controller/edge/sim-lambda-edge-run.js +33 -0
- package/dist/service/cloudfront/controller/edge/sim-lambda-edge-run.js.map +1 -0
- package/dist/service/cloudfront/controller/origin/sim-cf-origin-bound-request.d.ts +14 -0
- package/dist/service/cloudfront/controller/origin/sim-cf-origin-bound-request.d.ts.map +1 -0
- package/dist/service/cloudfront/controller/origin/sim-cf-origin-bound-request.js +2 -0
- package/dist/service/cloudfront/controller/origin/sim-cf-origin-bound-request.js.map +1 -0
- package/dist/service/cloudfront/controller/origin/sim-cf-origin-stage.d.ts +45 -0
- package/dist/service/cloudfront/controller/origin/sim-cf-origin-stage.d.ts.map +1 -0
- package/dist/service/cloudfront/controller/origin/sim-cf-origin-stage.js +47 -0
- package/dist/service/cloudfront/controller/origin/sim-cf-origin-stage.js.map +1 -0
- package/dist/service/cloudfront/controller/origin/sim-cloudfront-origin-fetcher.d.ts +6 -1
- package/dist/service/cloudfront/controller/origin/sim-cloudfront-origin-fetcher.d.ts.map +1 -1
- package/dist/service/cloudfront/controller/origin/sim-cloudfront-origin-fetcher.js +6 -2
- package/dist/service/cloudfront/controller/origin/sim-cloudfront-origin-fetcher.js.map +1 -1
- package/dist/service/cloudfront/controller/sim-cloudfront-request-pipeline.d.ts +4 -3
- package/dist/service/cloudfront/controller/sim-cloudfront-request-pipeline.d.ts.map +1 -1
- package/dist/service/cloudfront/controller/sim-cloudfront-request-pipeline.js +20 -8
- package/dist/service/cloudfront/controller/sim-cloudfront-request-pipeline.js.map +1 -1
- package/dist/service/cloudfront/distribution/configurator/sim-cloud-front-origin-configurator.d.ts.map +1 -1
- package/dist/service/cloudfront/distribution/configurator/sim-cloud-front-origin-configurator.js +1 -0
- package/dist/service/cloudfront/distribution/configurator/sim-cloud-front-origin-configurator.js.map +1 -1
- package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-event-adapter.d.ts +2 -9
- package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-event-adapter.d.ts.map +1 -1
- package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-event-adapter.js +5 -13
- package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-event-adapter.js.map +1 -1
- package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-event-config.d.ts +16 -0
- package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-event-config.d.ts.map +1 -0
- package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-event-config.js +14 -0
- package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-event-config.js.map +1 -0
- package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-origin-event-adapter.d.ts +51 -0
- package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-origin-event-adapter.d.ts.map +1 -0
- package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-origin-event-adapter.js +83 -0
- package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-origin-event-adapter.js.map +1 -0
- package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-origin.d.ts +23 -0
- package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-origin.d.ts.map +1 -0
- package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-origin.js +30 -0
- package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-origin.js.map +1 -0
- package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-request-adapter.d.ts +9 -0
- package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-request-adapter.d.ts.map +1 -1
- package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-request-adapter.js +20 -0
- package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-request-adapter.js.map +1 -1
- package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-response-adapter.d.ts +4 -4
- package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-response-adapter.d.ts.map +1 -1
- package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-response-adapter.js +4 -4
- package/dist/service/cloudfront/edge/adapter/sim-lambda-edge-response-adapter.js.map +1 -1
- package/dist/service/cloudfront/edge/sim-aws-cf-edge-functions.d.ts.map +1 -1
- package/dist/service/cloudfront/edge/sim-aws-cf-edge-functions.js +2 -4
- package/dist/service/cloudfront/edge/sim-aws-cf-edge-functions.js.map +1 -1
- package/dist/service/cloudfront/edge/sim-cf-edge-association-checks.d.ts +20 -6
- package/dist/service/cloudfront/edge/sim-cf-edge-association-checks.d.ts.map +1 -1
- package/dist/service/cloudfront/edge/sim-cf-edge-association-checks.js +43 -8
- package/dist/service/cloudfront/edge/sim-cf-edge-association-checks.js.map +1 -1
- package/dist/service/cloudfront/edge/sim-cf-edge-association-validator.d.ts.map +1 -1
- package/dist/service/cloudfront/edge/sim-cf-edge-association-validator.js +3 -2
- package/dist/service/cloudfront/edge/sim-cf-edge-association-validator.js.map +1 -1
- package/dist/service/cloudfront/edge/sim-cf-edge-association.d.ts +5 -2
- package/dist/service/cloudfront/edge/sim-cf-edge-association.d.ts.map +1 -1
- package/dist/service/cloudfront/edge/sim-cf-edge-associations-configure.d.ts +3 -3
- package/dist/service/cloudfront/edge/sim-cf-edge-associations-configure.d.ts.map +1 -1
- package/dist/service/cloudfront/edge/sim-cf-edge-associations-configure.js +26 -10
- package/dist/service/cloudfront/edge/sim-cf-edge-associations-configure.js.map +1 -1
- package/dist/service/cloudfront/edge/sim-cf-edge-function-arn.d.ts +10 -0
- package/dist/service/cloudfront/edge/sim-cf-edge-function-arn.d.ts.map +1 -1
- package/dist/service/cloudfront/edge/sim-cf-edge-function-arn.js +29 -5
- package/dist/service/cloudfront/edge/sim-cf-edge-function-arn.js.map +1 -1
- package/dist/service/cloudfront/edge/sim-cf-edge-function-version.d.ts +14 -0
- package/dist/service/cloudfront/edge/sim-cf-edge-function-version.d.ts.map +1 -0
- package/dist/service/cloudfront/edge/sim-cf-edge-function-version.js +16 -0
- package/dist/service/cloudfront/edge/sim-cf-edge-function-version.js.map +1 -0
- package/dist/service/cloudfront/origin/custom/sim-cf-custom-origin-edge.d.ts +27 -0
- package/dist/service/cloudfront/origin/custom/sim-cf-custom-origin-edge.d.ts.map +1 -0
- package/dist/service/cloudfront/origin/custom/sim-cf-custom-origin-edge.js +44 -0
- package/dist/service/cloudfront/origin/custom/sim-cf-custom-origin-edge.js.map +1 -0
- package/dist/service/cloudfront/origin/custom/sim-cloudfront-custom-origin.d.ts +23 -3
- package/dist/service/cloudfront/origin/custom/sim-cloudfront-custom-origin.d.ts.map +1 -1
- package/dist/service/cloudfront/origin/custom/sim-cloudfront-custom-origin.js +30 -2
- package/dist/service/cloudfront/origin/custom/sim-cloudfront-custom-origin.js.map +1 -1
- package/dist/service/cloudfront/origin/s3/sim-cf-s3-origin-edge.d.ts +26 -0
- package/dist/service/cloudfront/origin/s3/sim-cf-s3-origin-edge.d.ts.map +1 -0
- package/dist/service/cloudfront/origin/s3/sim-cf-s3-origin-edge.js +63 -0
- package/dist/service/cloudfront/origin/s3/sim-cf-s3-origin-edge.js.map +1 -0
- package/dist/service/cloudfront/origin/s3/sim-cloudfront-s3-origin.d.ts +17 -2
- package/dist/service/cloudfront/origin/s3/sim-cloudfront-s3-origin.d.ts.map +1 -1
- package/dist/service/cloudfront/origin/s3/sim-cloudfront-s3-origin.js +20 -0
- package/dist/service/cloudfront/origin/s3/sim-cloudfront-s3-origin.js.map +1 -1
- package/dist/service/cloudfront/origin/sim-cf-edge-origin-not-simulated.error.d.ts +15 -0
- package/dist/service/cloudfront/origin/sim-cf-edge-origin-not-simulated.error.d.ts.map +1 -0
- package/dist/service/cloudfront/origin/sim-cf-edge-origin-not-simulated.error.js +15 -0
- package/dist/service/cloudfront/origin/sim-cf-edge-origin-not-simulated.error.js.map +1 -0
- package/dist/service/cloudfront/origin/sim-cloudfront-origin.d.ts +13 -0
- package/dist/service/cloudfront/origin/sim-cloudfront-origin.d.ts.map +1 -1
- package/dist/service/cloudfront/typings/lambda-at-edge.namespace.d.ts +71 -3
- package/dist/service/cloudfront/typings/lambda-at-edge.namespace.d.ts.map +1 -1
- package/dist/service/{cloudformation/resource/cfn/stepfunctions → stepfunctions/cfn}/sim-cfn-step-functions-resource-deleter.d.ts +2 -2
- package/dist/service/stepfunctions/cfn/sim-cfn-step-functions-resource-deleter.d.ts.map +1 -0
- package/dist/service/{cloudformation/resource/cfn/stepfunctions → stepfunctions/cfn}/sim-cfn-step-functions-resource-deleter.js +1 -1
- package/dist/service/stepfunctions/cfn/sim-cfn-step-functions-resource-deleter.js.map +1 -0
- package/dist/service/stepfunctions/cfn/sim-cfn-step-functions-resource-error.d.ts.map +1 -0
- package/dist/service/{cloudformation/resource/cfn/stepfunctions → stepfunctions/cfn}/sim-cfn-step-functions-resource-error.js +1 -1
- package/dist/service/stepfunctions/cfn/sim-cfn-step-functions-resource-error.js.map +1 -0
- package/dist/service/stepfunctions/cfn/sim-cfn-step-functions-resource-types.d.ts.map +1 -0
- package/dist/service/stepfunctions/cfn/sim-cfn-step-functions-resource-types.js.map +1 -0
- package/dist/service/{cloudformation/resource/cfn/stepfunctions → stepfunctions/cfn}/sim-step-functions-cfn-resource-factory.d.ts +6 -3
- package/dist/service/stepfunctions/cfn/sim-step-functions-cfn-resource-factory.d.ts.map +1 -0
- package/dist/service/{cloudformation/resource/cfn/stepfunctions → stepfunctions/cfn}/sim-step-functions-cfn-resource-factory.js +2 -1
- package/dist/service/stepfunctions/cfn/sim-step-functions-cfn-resource-factory.js.map +1 -0
- package/dist/service/{cloudformation/resource/cfn/stepfunctions → stepfunctions/cfn/state-machine}/sim-cfn-state-machine-creator.d.ts +7 -4
- package/dist/service/stepfunctions/cfn/state-machine/sim-cfn-state-machine-creator.d.ts.map +1 -0
- package/dist/service/{cloudformation/resource/cfn/stepfunctions → stepfunctions/cfn/state-machine}/sim-cfn-state-machine-creator.js +9 -4
- package/dist/service/stepfunctions/cfn/state-machine/sim-cfn-state-machine-creator.js.map +1 -0
- package/dist/service/{cloudformation/resource/cfn/stepfunctions → stepfunctions/cfn/state-machine}/sim-cfn-state-machine-definition.d.ts +12 -13
- package/dist/service/stepfunctions/cfn/state-machine/sim-cfn-state-machine-definition.d.ts.map +1 -0
- package/dist/service/{cloudformation/resource/cfn/stepfunctions → stepfunctions/cfn/state-machine}/sim-cfn-state-machine-definition.js +30 -28
- package/dist/service/stepfunctions/cfn/state-machine/sim-cfn-state-machine-definition.js.map +1 -0
- package/dist/service/stepfunctions/cfn/state-machine/sim-cfn-state-machine-name.d.ts.map +1 -0
- package/dist/service/{cloudformation/resource/cfn/stepfunctions → stepfunctions/cfn/state-machine}/sim-cfn-state-machine-name.js +1 -1
- package/dist/service/stepfunctions/cfn/state-machine/sim-cfn-state-machine-name.js.map +1 -0
- package/dist/service/{cloudformation/resource/cfn/stepfunctions → stepfunctions/cfn/state-machine}/sim-cfn-state-machine-properties.d.ts +11 -3
- package/dist/service/stepfunctions/cfn/state-machine/sim-cfn-state-machine-properties.d.ts.map +1 -0
- package/dist/service/{cloudformation/resource/cfn/stepfunctions → stepfunctions/cfn/state-machine}/sim-cfn-state-machine-properties.js +18 -5
- package/dist/service/stepfunctions/cfn/state-machine/sim-cfn-state-machine-properties.js.map +1 -0
- package/dist/service/stepfunctions/cfn/state-machine/sim-cfn-state-machine-property-names.d.ts.map +1 -0
- package/dist/service/{cloudformation/resource/cfn/stepfunctions → stepfunctions/cfn/state-machine}/sim-cfn-state-machine-property-names.js +0 -5
- package/dist/service/stepfunctions/cfn/state-machine/sim-cfn-state-machine-property-names.js.map +1 -0
- package/dist/service/stepfunctions/cfn/state-machine/sim-cfn-state-machine-s3-definition.d.ts +37 -0
- package/dist/service/stepfunctions/cfn/state-machine/sim-cfn-state-machine-s3-definition.d.ts.map +1 -0
- package/dist/service/stepfunctions/cfn/state-machine/sim-cfn-state-machine-s3-definition.js +63 -0
- package/dist/service/stepfunctions/cfn/state-machine/sim-cfn-state-machine-s3-definition.js.map +1 -0
- package/dist/service/{cloudformation/resource/cfn/stepfunctions → stepfunctions/cfn/state-machine}/sim-cfn-state-machine-substitutions.d.ts +1 -1
- package/dist/service/stepfunctions/cfn/state-machine/sim-cfn-state-machine-substitutions.d.ts.map +1 -0
- package/dist/service/{cloudformation/resource/cfn/stepfunctions → stepfunctions/cfn/state-machine}/sim-cfn-state-machine-substitutions.js +3 -3
- package/dist/service/stepfunctions/cfn/state-machine/sim-cfn-state-machine-substitutions.js.map +1 -0
- package/dist/service/stepfunctions/cfn/state-machine/sim-cfn-state-machine-tags.d.ts +33 -0
- package/dist/service/stepfunctions/cfn/state-machine/sim-cfn-state-machine-tags.d.ts.map +1 -0
- package/dist/service/stepfunctions/cfn/state-machine/sim-cfn-state-machine-tags.js +58 -0
- package/dist/service/stepfunctions/cfn/state-machine/sim-cfn-state-machine-tags.js.map +1 -0
- package/dist/service/stepfunctions/command/execution/sim-states-execution-start.d.ts.map +1 -1
- package/dist/service/stepfunctions/command/execution/sim-states-execution-start.js +15 -4
- package/dist/service/stepfunctions/command/execution/sim-states-execution-start.js.map +1 -1
- package/dist/service/stepfunctions/command/machine/machine.command.d.ts +2 -0
- package/dist/service/stepfunctions/command/machine/machine.command.d.ts.map +1 -1
- package/dist/service/stepfunctions/command/machine/sim-state-machine-input.d.ts +2 -0
- package/dist/service/stepfunctions/command/machine/sim-state-machine-input.d.ts.map +1 -1
- package/dist/service/stepfunctions/command/machine/sim-state-machine-input.js +3 -1
- package/dist/service/stepfunctions/command/machine/sim-state-machine-input.js.map +1 -1
- package/dist/service/stepfunctions/command/sim-step-functions-command.types.d.ts +1 -0
- package/dist/service/stepfunctions/command/sim-step-functions-command.types.d.ts.map +1 -1
- package/dist/service/stepfunctions/command/tag/sim-state-machine-tag-commands.d.ts +36 -0
- package/dist/service/stepfunctions/command/tag/sim-state-machine-tag-commands.d.ts.map +1 -0
- package/dist/service/stepfunctions/command/tag/sim-state-machine-tag-commands.js +76 -0
- package/dist/service/stepfunctions/command/tag/sim-state-machine-tag-commands.js.map +1 -0
- package/dist/service/stepfunctions/command/tag/tag.command.d.ts +46 -0
- package/dist/service/stepfunctions/command/tag/tag.command.d.ts.map +1 -0
- package/dist/service/stepfunctions/command/tag/tag.command.js +2 -0
- package/dist/service/stepfunctions/command/tag/tag.command.js.map +1 -0
- package/dist/service/stepfunctions/data/sim-states-context-object.d.ts +45 -0
- package/dist/service/stepfunctions/data/sim-states-context-object.d.ts.map +1 -0
- package/dist/service/stepfunctions/data/sim-states-context-object.js +48 -0
- package/dist/service/stepfunctions/data/sim-states-context-object.js.map +1 -0
- package/dist/service/stepfunctions/data/sim-states-context-path.d.ts +22 -0
- package/dist/service/stepfunctions/data/sim-states-context-path.d.ts.map +1 -0
- package/dist/service/stepfunctions/data/sim-states-context-path.js +30 -0
- package/dist/service/stepfunctions/data/sim-states-context-path.js.map +1 -0
- package/dist/service/stepfunctions/data/sim-states-data-flow.d.ts +3 -2
- package/dist/service/stepfunctions/data/sim-states-data-flow.d.ts.map +1 -1
- package/dist/service/stepfunctions/data/sim-states-data-flow.js +10 -9
- package/dist/service/stepfunctions/data/sim-states-data-flow.js.map +1 -1
- package/dist/service/stepfunctions/data/sim-states-intrinsic.d.ts +1 -1
- package/dist/service/stepfunctions/data/sim-states-intrinsic.d.ts.map +1 -1
- package/dist/service/stepfunctions/data/sim-states-intrinsic.js +6 -7
- package/dist/service/stepfunctions/data/sim-states-intrinsic.js.map +1 -1
- package/dist/service/stepfunctions/data/sim-states-payload-template.d.ts +9 -6
- package/dist/service/stepfunctions/data/sim-states-payload-template.d.ts.map +1 -1
- package/dist/service/stepfunctions/data/sim-states-payload-template.js +16 -14
- package/dist/service/stepfunctions/data/sim-states-payload-template.js.map +1 -1
- package/dist/service/stepfunctions/data/sim-states-reference-path.d.ts.map +1 -1
- package/dist/service/stepfunctions/data/sim-states-reference-path.js +4 -2
- package/dist/service/stepfunctions/data/sim-states-reference-path.js.map +1 -1
- package/dist/service/stepfunctions/definition/sim-states-definition-parse.d.ts +8 -0
- package/dist/service/stepfunctions/definition/sim-states-definition-parse.d.ts.map +1 -1
- package/dist/service/stepfunctions/definition/sim-states-definition-parse.js +9 -1
- package/dist/service/stepfunctions/definition/sim-states-definition-parse.js.map +1 -1
- package/dist/service/stepfunctions/definition/sim-states-map-fields.d.ts +23 -0
- package/dist/service/stepfunctions/definition/sim-states-map-fields.d.ts.map +1 -0
- package/dist/service/stepfunctions/definition/sim-states-map-fields.js +60 -0
- package/dist/service/stepfunctions/definition/sim-states-map-fields.js.map +1 -0
- package/dist/service/stepfunctions/definition/sim-states-map-parse.d.ts +12 -0
- package/dist/service/stepfunctions/definition/sim-states-map-parse.d.ts.map +1 -0
- package/dist/service/stepfunctions/definition/sim-states-map-parse.js +56 -0
- package/dist/service/stepfunctions/definition/sim-states-map-parse.js.map +1 -0
- package/dist/service/stepfunctions/definition/sim-states-map-processor.d.ts +11 -0
- package/dist/service/stepfunctions/definition/sim-states-map-processor.d.ts.map +1 -0
- package/dist/service/stepfunctions/definition/sim-states-map-processor.js +62 -0
- package/dist/service/stepfunctions/definition/sim-states-map-processor.js.map +1 -0
- package/dist/service/stepfunctions/definition/sim-states-nested-refusal.d.ts +14 -0
- package/dist/service/stepfunctions/definition/sim-states-nested-refusal.d.ts.map +1 -0
- package/dist/service/stepfunctions/definition/sim-states-nested-refusal.js +23 -0
- package/dist/service/stepfunctions/definition/sim-states-nested-refusal.js.map +1 -0
- package/dist/service/stepfunctions/definition/sim-states-parallel-parse.d.ts +10 -0
- package/dist/service/stepfunctions/definition/sim-states-parallel-parse.d.ts.map +1 -0
- package/dist/service/stepfunctions/definition/sim-states-parallel-parse.js +50 -0
- package/dist/service/stepfunctions/definition/sim-states-parallel-parse.js.map +1 -0
- package/dist/service/stepfunctions/definition/sim-states-state-fields.d.ts.map +1 -1
- package/dist/service/stepfunctions/definition/sim-states-state-fields.js +5 -0
- package/dist/service/stepfunctions/definition/sim-states-state-fields.js.map +1 -1
- package/dist/service/stepfunctions/definition/sim-states-state-parse.d.ts.map +1 -1
- package/dist/service/stepfunctions/definition/sim-states-state-parse.js +15 -7
- package/dist/service/stepfunctions/definition/sim-states-state-parse.js.map +1 -1
- package/dist/service/stepfunctions/definition/sim-states-state.d.ts +35 -11
- package/dist/service/stepfunctions/definition/sim-states-state.d.ts.map +1 -1
- package/dist/service/stepfunctions/definition/sim-states-state.js +1 -15
- package/dist/service/stepfunctions/definition/sim-states-state.js.map +1 -1
- package/dist/service/stepfunctions/definition/sim-states-transitions.d.ts.map +1 -1
- package/dist/service/stepfunctions/definition/sim-states-transitions.js +14 -0
- package/dist/service/stepfunctions/definition/sim-states-transitions.js.map +1 -1
- package/dist/service/stepfunctions/definition/store/sim-s3-states-definition-store.d.ts +45 -0
- package/dist/service/stepfunctions/definition/store/sim-s3-states-definition-store.d.ts.map +1 -0
- package/dist/service/stepfunctions/definition/store/sim-s3-states-definition-store.js +58 -0
- package/dist/service/stepfunctions/definition/store/sim-s3-states-definition-store.js.map +1 -0
- package/dist/service/stepfunctions/definition/store/sim-states-definition-store.d.ts +34 -0
- package/dist/service/stepfunctions/definition/store/sim-states-definition-store.d.ts.map +1 -0
- package/dist/service/stepfunctions/definition/store/sim-states-definition-store.js +14 -0
- package/dist/service/stepfunctions/definition/store/sim-states-definition-store.js.map +1 -0
- package/dist/service/stepfunctions/error/sim-step-functions.error.d.ts +36 -0
- package/dist/service/stepfunctions/error/sim-step-functions.error.d.ts.map +1 -1
- package/dist/service/stepfunctions/error/sim-step-functions.error.js +42 -0
- package/dist/service/stepfunctions/error/sim-step-functions.error.js.map +1 -1
- package/dist/service/stepfunctions/execution/sim-states-attempt.d.ts +16 -0
- package/dist/service/stepfunctions/execution/sim-states-attempt.d.ts.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-attempt.js +2 -0
- package/dist/service/stepfunctions/execution/sim-states-attempt.js.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-child-failure.d.ts +11 -0
- package/dist/service/stepfunctions/execution/sim-states-child-failure.d.ts.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-child-failure.js +20 -0
- package/dist/service/stepfunctions/execution/sim-states-child-failure.js.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-child-run.d.ts +55 -0
- package/dist/service/stepfunctions/execution/sim-states-child-run.d.ts.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-child-run.js +86 -0
- package/dist/service/stepfunctions/execution/sim-states-child-run.js.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-child-runs.d.ts +69 -0
- package/dist/service/stepfunctions/execution/sim-states-child-runs.d.ts.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-child-runs.js +114 -0
- package/dist/service/stepfunctions/execution/sim-states-child-runs.js.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-child-walk.d.ts +43 -0
- package/dist/service/stepfunctions/execution/sim-states-child-walk.d.ts.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-child-walk.js +2 -0
- package/dist/service/stepfunctions/execution/sim-states-child-walk.js.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-child.d.ts +41 -0
- package/dist/service/stepfunctions/execution/sim-states-child.d.ts.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-child.js +2 -0
- package/dist/service/stepfunctions/execution/sim-states-child.js.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-execution.d.ts +32 -3
- package/dist/service/stepfunctions/execution/sim-states-execution.d.ts.map +1 -1
- package/dist/service/stepfunctions/execution/sim-states-execution.js +42 -2
- package/dist/service/stepfunctions/execution/sim-states-execution.js.map +1 -1
- package/dist/service/stepfunctions/execution/sim-states-fan-out-outcome.d.ts +19 -0
- package/dist/service/stepfunctions/execution/sim-states-fan-out-outcome.d.ts.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-fan-out-outcome.js +15 -0
- package/dist/service/stepfunctions/execution/sim-states-fan-out-outcome.js.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-fan-out.d.ts +46 -0
- package/dist/service/stepfunctions/execution/sim-states-fan-out.d.ts.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-fan-out.js +106 -0
- package/dist/service/stepfunctions/execution/sim-states-fan-out.js.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-interpreter.d.ts +18 -11
- package/dist/service/stepfunctions/execution/sim-states-interpreter.d.ts.map +1 -1
- package/dist/service/stepfunctions/execution/sim-states-interpreter.js +55 -65
- package/dist/service/stepfunctions/execution/sim-states-interpreter.js.map +1 -1
- package/dist/service/stepfunctions/execution/sim-states-map-items.d.ts +13 -0
- package/dist/service/stepfunctions/execution/sim-states-map-items.d.ts.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-map-items.js +38 -0
- package/dist/service/stepfunctions/execution/sim-states-map-items.js.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-map-iteration.d.ts +32 -0
- package/dist/service/stepfunctions/execution/sim-states-map-iteration.d.ts.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-map-iteration.js +37 -0
- package/dist/service/stepfunctions/execution/sim-states-map-iteration.js.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-run-choice.d.ts.map +1 -1
- package/dist/service/stepfunctions/execution/sim-states-run-choice.js +2 -2
- package/dist/service/stepfunctions/execution/sim-states-run-choice.js.map +1 -1
- package/dist/service/stepfunctions/execution/sim-states-run-map.d.ts +12 -0
- package/dist/service/stepfunctions/execution/sim-states-run-map.d.ts.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-run-map.js +25 -0
- package/dist/service/stepfunctions/execution/sim-states-run-map.js.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-run-parallel.d.ts +16 -0
- package/dist/service/stepfunctions/execution/sim-states-run-parallel.d.ts.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-run-parallel.js +31 -0
- package/dist/service/stepfunctions/execution/sim-states-run-parallel.js.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-run-record.d.ts +47 -0
- package/dist/service/stepfunctions/execution/sim-states-run-record.d.ts.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-run-record.js +2 -0
- package/dist/service/stepfunctions/execution/sim-states-run-record.js.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-run-state.d.ts +4 -3
- package/dist/service/stepfunctions/execution/sim-states-run-state.d.ts.map +1 -1
- package/dist/service/stepfunctions/execution/sim-states-run-state.js +20 -11
- package/dist/service/stepfunctions/execution/sim-states-run-state.js.map +1 -1
- package/dist/service/stepfunctions/execution/sim-states-run-task.d.ts.map +1 -1
- package/dist/service/stepfunctions/execution/sim-states-run-task.js +2 -2
- package/dist/service/stepfunctions/execution/sim-states-run-task.js.map +1 -1
- package/dist/service/stepfunctions/execution/sim-states-run-wait.d.ts.map +1 -1
- package/dist/service/stepfunctions/execution/sim-states-run-wait.js +2 -2
- package/dist/service/stepfunctions/execution/sim-states-run-wait.js.map +1 -1
- package/dist/service/stepfunctions/execution/sim-states-settlement.d.ts +7 -3
- package/dist/service/stepfunctions/execution/sim-states-settlement.d.ts.map +1 -1
- package/dist/service/stepfunctions/execution/sim-states-settlement.js +11 -5
- package/dist/service/stepfunctions/execution/sim-states-settlement.js.map +1 -1
- package/dist/service/stepfunctions/execution/sim-states-state-attempts.d.ts +37 -0
- package/dist/service/stepfunctions/execution/sim-states-state-attempts.d.ts.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-state-attempts.js +112 -0
- package/dist/service/stepfunctions/execution/sim-states-state-attempts.js.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-state-outcome.d.ts +69 -15
- package/dist/service/stepfunctions/execution/sim-states-state-outcome.d.ts.map +1 -1
- package/dist/service/stepfunctions/execution/sim-states-state-runner.d.ts +26 -12
- package/dist/service/stepfunctions/execution/sim-states-state-runner.d.ts.map +1 -1
- package/dist/service/stepfunctions/execution/sim-states-state-runner.js +55 -15
- package/dist/service/stepfunctions/execution/sim-states-state-runner.js.map +1 -1
- package/dist/service/stepfunctions/execution/sim-states-walk-steps.d.ts +19 -0
- package/dist/service/stepfunctions/execution/sim-states-walk-steps.d.ts.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-walk-steps.js +35 -0
- package/dist/service/stepfunctions/execution/sim-states-walk-steps.js.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-walk.d.ts +19 -0
- package/dist/service/stepfunctions/execution/sim-states-walk.d.ts.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-walk.js +2 -0
- package/dist/service/stepfunctions/execution/sim-states-walk.js.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-walks.d.ts +25 -0
- package/dist/service/stepfunctions/execution/sim-states-walks.d.ts.map +1 -0
- package/dist/service/stepfunctions/execution/sim-states-walks.js +25 -0
- package/dist/service/stepfunctions/execution/sim-states-walks.js.map +1 -0
- package/dist/service/stepfunctions/index.d.ts +10 -3
- package/dist/service/stepfunctions/index.d.ts.map +1 -1
- package/dist/service/stepfunctions/index.js +4 -2
- package/dist/service/stepfunctions/index.js.map +1 -1
- package/dist/service/stepfunctions/machine/sim-state-machine-tag.d.ts +43 -0
- package/dist/service/stepfunctions/machine/sim-state-machine-tag.d.ts.map +1 -0
- package/dist/service/stepfunctions/machine/sim-state-machine-tag.js +111 -0
- package/dist/service/stepfunctions/machine/sim-state-machine-tag.js.map +1 -0
- package/dist/service/stepfunctions/machine/sim-state-machine-tags.d.ts +39 -0
- package/dist/service/stepfunctions/machine/sim-state-machine-tags.d.ts.map +1 -0
- package/dist/service/stepfunctions/machine/sim-state-machine-tags.js +80 -0
- package/dist/service/stepfunctions/machine/sim-state-machine-tags.js.map +1 -0
- package/dist/service/stepfunctions/machine/sim-state-machine.d.ts +6 -0
- package/dist/service/stepfunctions/machine/sim-state-machine.d.ts.map +1 -1
- package/dist/service/stepfunctions/machine/sim-state-machine.js +5 -0
- package/dist/service/stepfunctions/machine/sim-state-machine.js.map +1 -1
- package/dist/service/stepfunctions/retry/sim-states-attempt-state.d.ts +37 -0
- package/dist/service/stepfunctions/retry/sim-states-attempt-state.d.ts.map +1 -0
- package/dist/service/stepfunctions/retry/sim-states-attempt-state.js +38 -0
- package/dist/service/stepfunctions/retry/sim-states-attempt-state.js.map +1 -0
- package/dist/service/stepfunctions/retry/sim-states-catch-outcome.d.ts +11 -0
- package/dist/service/stepfunctions/retry/sim-states-catch-outcome.d.ts.map +1 -0
- package/dist/service/stepfunctions/retry/sim-states-catch-outcome.js +20 -0
- package/dist/service/stepfunctions/retry/sim-states-catch-outcome.js.map +1 -0
- package/dist/service/stepfunctions/retry/sim-states-catch-parse.d.ts +11 -0
- package/dist/service/stepfunctions/retry/sim-states-catch-parse.d.ts.map +1 -0
- package/dist/service/stepfunctions/retry/sim-states-catch-parse.js +49 -0
- package/dist/service/stepfunctions/retry/sim-states-catch-parse.js.map +1 -0
- package/dist/service/stepfunctions/retry/sim-states-catcher.d.ts +29 -0
- package/dist/service/stepfunctions/retry/sim-states-catcher.d.ts.map +1 -0
- package/dist/service/stepfunctions/retry/sim-states-catcher.js +31 -0
- package/dist/service/stepfunctions/retry/sim-states-catcher.js.map +1 -0
- package/dist/service/stepfunctions/retry/sim-states-error-equals.d.ts +19 -0
- package/dist/service/stepfunctions/retry/sim-states-error-equals.d.ts.map +1 -0
- package/dist/service/stepfunctions/retry/sim-states-error-equals.js +69 -0
- package/dist/service/stepfunctions/retry/sim-states-error-equals.js.map +1 -0
- package/dist/service/stepfunctions/retry/sim-states-error-handling.d.ts +31 -0
- package/dist/service/stepfunctions/retry/sim-states-error-handling.d.ts.map +1 -0
- package/dist/service/stepfunctions/retry/sim-states-error-handling.js +40 -0
- package/dist/service/stepfunctions/retry/sim-states-error-handling.js.map +1 -0
- package/dist/service/stepfunctions/retry/sim-states-error-name.d.ts +29 -0
- package/dist/service/stepfunctions/retry/sim-states-error-name.d.ts.map +1 -0
- package/dist/service/stepfunctions/retry/sim-states-error-name.js +34 -0
- package/dist/service/stepfunctions/retry/sim-states-error-name.js.map +1 -0
- package/dist/service/stepfunctions/retry/sim-states-recover.d.ts +31 -0
- package/dist/service/stepfunctions/retry/sim-states-recover.d.ts.map +1 -0
- package/dist/service/stepfunctions/retry/sim-states-recover.js +23 -0
- package/dist/service/stepfunctions/retry/sim-states-recover.js.map +1 -0
- package/dist/service/stepfunctions/retry/sim-states-recovered.d.ts +22 -0
- package/dist/service/stepfunctions/retry/sim-states-recovered.d.ts.map +1 -0
- package/dist/service/stepfunctions/retry/sim-states-recovered.js +33 -0
- package/dist/service/stepfunctions/retry/sim-states-recovered.js.map +1 -0
- package/dist/service/stepfunctions/retry/sim-states-retrier.d.ts +35 -0
- package/dist/service/stepfunctions/retry/sim-states-retrier.d.ts.map +1 -0
- package/dist/service/stepfunctions/retry/sim-states-retrier.js +31 -0
- package/dist/service/stepfunctions/retry/sim-states-retrier.js.map +1 -0
- package/dist/service/stepfunctions/retry/sim-states-retry-outcome.d.ts +12 -0
- package/dist/service/stepfunctions/retry/sim-states-retry-outcome.d.ts.map +1 -0
- package/dist/service/stepfunctions/retry/sim-states-retry-outcome.js +44 -0
- package/dist/service/stepfunctions/retry/sim-states-retry-outcome.js.map +1 -0
- package/dist/service/stepfunctions/retry/sim-states-retry-parse.d.ts +11 -0
- package/dist/service/stepfunctions/retry/sim-states-retry-parse.d.ts.map +1 -0
- package/dist/service/stepfunctions/retry/sim-states-retry-parse.js +76 -0
- package/dist/service/stepfunctions/retry/sim-states-retry-parse.js.map +1 -0
- package/dist/service/stepfunctions/retry/sim-states-task-deadline.d.ts +43 -0
- package/dist/service/stepfunctions/retry/sim-states-task-deadline.d.ts.map +1 -0
- package/dist/service/stepfunctions/retry/sim-states-task-deadline.js +76 -0
- package/dist/service/stepfunctions/retry/sim-states-task-deadline.js.map +1 -0
- package/dist/service/stepfunctions/retry/sim-states-task-handling.d.ts +11 -0
- package/dist/service/stepfunctions/retry/sim-states-task-handling.d.ts.map +1 -0
- package/dist/service/stepfunctions/retry/sim-states-task-handling.js +2 -0
- package/dist/service/stepfunctions/retry/sim-states-task-handling.js.map +1 -0
- package/dist/service/stepfunctions/sdk/sim-step-functions-sdk-command-router.d.ts.map +1 -1
- package/dist/service/stepfunctions/sdk/sim-step-functions-sdk-command-router.js +12 -0
- package/dist/service/stepfunctions/sdk/sim-step-functions-sdk-command-router.js.map +1 -1
- package/dist/service/stepfunctions/sim-step-functions-inspection.d.ts +28 -0
- package/dist/service/stepfunctions/sim-step-functions-inspection.d.ts.map +1 -1
- package/dist/service/stepfunctions/sim-step-functions-inspection.js +38 -0
- package/dist/service/stepfunctions/sim-step-functions-inspection.js.map +1 -1
- package/dist/service/stepfunctions/sim-step-functions.d.ts +17 -0
- package/dist/service/stepfunctions/sim-step-functions.d.ts.map +1 -1
- package/dist/service/stepfunctions/sim-step-functions.js +31 -1
- package/dist/service/stepfunctions/sim-step-functions.js.map +1 -1
- package/dist/service/stepfunctions/task/service/sim-states-optimized-integrations.d.ts +36 -0
- package/dist/service/stepfunctions/task/service/sim-states-optimized-integrations.d.ts.map +1 -0
- package/dist/service/stepfunctions/task/service/sim-states-optimized-integrations.js +115 -0
- package/dist/service/stepfunctions/task/service/sim-states-optimized-integrations.js.map +1 -0
- package/dist/service/stepfunctions/task/service/sim-states-service-call.d.ts +25 -0
- package/dist/service/stepfunctions/task/service/sim-states-service-call.d.ts.map +1 -0
- package/dist/service/stepfunctions/task/service/sim-states-service-call.js +51 -0
- package/dist/service/stepfunctions/task/service/sim-states-service-call.js.map +1 -0
- package/dist/service/stepfunctions/task/service/sim-states-service-failure.d.ts +17 -0
- package/dist/service/stepfunctions/task/service/sim-states-service-failure.d.ts.map +1 -0
- package/dist/service/stepfunctions/task/service/sim-states-service-failure.js +43 -0
- package/dist/service/stepfunctions/task/service/sim-states-service-failure.js.map +1 -0
- package/dist/service/stepfunctions/task/service/sim-states-service-name.d.ts +42 -0
- package/dist/service/stepfunctions/task/service/sim-states-service-name.d.ts.map +1 -0
- package/dist/service/stepfunctions/task/service/sim-states-service-name.js +74 -0
- package/dist/service/stepfunctions/task/service/sim-states-service-name.js.map +1 -0
- package/dist/service/stepfunctions/task/service/sim-states-service-resource.d.ts +10 -0
- package/dist/service/stepfunctions/task/service/sim-states-service-resource.d.ts.map +1 -0
- package/dist/service/stepfunctions/task/service/sim-states-service-resource.js +79 -0
- package/dist/service/stepfunctions/task/service/sim-states-service-resource.js.map +1 -0
- package/dist/service/stepfunctions/task/service/sim-states-service-shape.d.ts +27 -0
- package/dist/service/stepfunctions/task/service/sim-states-service-shape.d.ts.map +1 -0
- package/dist/service/stepfunctions/task/service/sim-states-service-shape.js +2 -0
- package/dist/service/stepfunctions/task/service/sim-states-service-shape.js.map +1 -0
- package/dist/service/stepfunctions/task/service/sim-states-service-target.d.ts +33 -0
- package/dist/service/stepfunctions/task/service/sim-states-service-target.d.ts.map +1 -0
- package/dist/service/stepfunctions/task/service/sim-states-service-target.js +60 -0
- package/dist/service/stepfunctions/task/service/sim-states-service-target.js.map +1 -0
- package/dist/service/stepfunctions/task/sim-aws-states-task-targets.d.ts +11 -9
- package/dist/service/stepfunctions/task/sim-aws-states-task-targets.d.ts.map +1 -1
- package/dist/service/stepfunctions/task/sim-aws-states-task-targets.js +16 -20
- package/dist/service/stepfunctions/task/sim-aws-states-task-targets.js.map +1 -1
- package/dist/service/stepfunctions/task/sim-states-function-arn-target.d.ts +2 -2
- package/dist/service/stepfunctions/task/sim-states-function-arn-target.d.ts.map +1 -1
- package/dist/service/stepfunctions/task/sim-states-function-arn-target.js +2 -2
- package/dist/service/stepfunctions/task/sim-states-function-arn-target.js.map +1 -1
- package/dist/service/stepfunctions/task/sim-states-lambda-invoke-parameters.d.ts +9 -0
- package/dist/service/stepfunctions/task/sim-states-lambda-invoke-parameters.d.ts.map +1 -0
- package/dist/service/stepfunctions/task/sim-states-lambda-invoke-parameters.js +37 -0
- package/dist/service/stepfunctions/task/sim-states-lambda-invoke-parameters.js.map +1 -0
- package/dist/service/stepfunctions/task/sim-states-lambda-invoke-target.d.ts +2 -2
- package/dist/service/stepfunctions/task/sim-states-lambda-invoke-target.d.ts.map +1 -1
- package/dist/service/stepfunctions/task/sim-states-lambda-invoke-target.js +2 -2
- package/dist/service/stepfunctions/task/sim-states-lambda-invoke-target.js.map +1 -1
- package/dist/service/stepfunctions/task/sim-states-lambda-target.d.ts +38 -0
- package/dist/service/stepfunctions/task/sim-states-lambda-target.d.ts.map +1 -0
- package/dist/service/stepfunctions/task/sim-states-lambda-target.js +37 -0
- package/dist/service/stepfunctions/task/sim-states-lambda-target.js.map +1 -0
- package/dist/service/stepfunctions/task/sim-states-task-fields.d.ts +6 -5
- package/dist/service/stepfunctions/task/sim-states-task-fields.d.ts.map +1 -1
- package/dist/service/stepfunctions/task/sim-states-task-fields.js +9 -10
- package/dist/service/stepfunctions/task/sim-states-task-fields.js.map +1 -1
- package/dist/service/stepfunctions/task/sim-states-task-function.d.ts +2 -2
- package/dist/service/stepfunctions/task/sim-states-task-function.d.ts.map +1 -1
- package/dist/service/stepfunctions/task/sim-states-task-resource.d.ts +2 -2
- package/dist/service/stepfunctions/task/sim-states-task-resource.d.ts.map +1 -1
- package/dist/service/stepfunctions/task/sim-states-task-resource.js +16 -40
- package/dist/service/stepfunctions/task/sim-states-task-resource.js.map +1 -1
- package/dist/service/stepfunctions/task/sim-states-task-target.d.ts +33 -17
- package/dist/service/stepfunctions/task/sim-states-task-target.d.ts.map +1 -1
- package/dist/service/stepfunctions/task/sim-states-task-target.js +4 -5
- package/dist/service/stepfunctions/task/sim-states-task-target.js.map +1 -1
- package/package.json +3 -2
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-creator.d.ts.map +0 -1
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-creator.js.map +0 -1
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-definition.d.ts.map +0 -1
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-definition.js.map +0 -1
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-name.d.ts.map +0 -1
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-name.js.map +0 -1
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-properties.d.ts.map +0 -1
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-properties.js.map +0 -1
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-property-names.d.ts.map +0 -1
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-property-names.js.map +0 -1
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-substitutions.d.ts.map +0 -1
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-state-machine-substitutions.js.map +0 -1
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-step-functions-resource-deleter.d.ts.map +0 -1
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-step-functions-resource-deleter.js.map +0 -1
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-step-functions-resource-error.d.ts.map +0 -1
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-step-functions-resource-error.js.map +0 -1
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-step-functions-resource-types.d.ts.map +0 -1
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-cfn-step-functions-resource-types.js.map +0 -1
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-step-functions-cfn-resource-factory.d.ts.map +0 -1
- package/dist/service/cloudformation/resource/cfn/stepfunctions/sim-step-functions-cfn-resource-factory.js.map +0 -1
- /package/dist/service/{cloudformation/resource/cfn/stepfunctions → stepfunctions/cfn}/sim-cfn-step-functions-resource-error.d.ts +0 -0
- /package/dist/service/{cloudformation/resource/cfn/stepfunctions → stepfunctions/cfn}/sim-cfn-step-functions-resource-types.d.ts +0 -0
- /package/dist/service/{cloudformation/resource/cfn/stepfunctions → stepfunctions/cfn}/sim-cfn-step-functions-resource-types.js +0 -0
- /package/dist/service/{cloudformation/resource/cfn/stepfunctions → stepfunctions/cfn/state-machine}/sim-cfn-state-machine-name.d.ts +0 -0
- /package/dist/service/{cloudformation/resource/cfn/stepfunctions → stepfunctions/cfn/state-machine}/sim-cfn-state-machine-property-names.d.ts +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-states-context-object.d.ts","sourceRoot":"","sources":["../../../../src/service/stepfunctions/data/sim-states-context-object.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAE9E;;;;;;GAMG;AACH,MAAM,WAAW,yBAAyB;IACxC,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,KAAK,EAAE,SAAS,CAAC;IAC1B,QAAQ,CAAC,SAAS,EAAE,IAAI,CAAC;IACzB,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,gBAAgB,EAAE,MAAM,CAAC;IAClC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC1B;AAED;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACzC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,WAAW,EAAE,IAAI,CAAC;IAC3B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;CAC7B;AAED;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CACpC,SAAS,EAAE,yBAAyB,GACnC,UAAU,CAcZ;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CACnC,aAAa,EAAE,UAAU,EACzB,KAAK,EAAE,0BAA0B,GAChC,UAAU,CASZ;AAED;;;;;GAKG;AACH,wBAAgB,uBAAuB,CACrC,aAAa,EAAE,UAAU,EACzB,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,SAAS,GACf,UAAU,CAKZ"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The context object an execution's states read through `$$`.
|
|
3
|
+
*
|
|
4
|
+
* Real Step Functions also carries `$$.Task.Token`, which belongs with the
|
|
5
|
+
* task tokens this simulator has no implementation for. A path reading one
|
|
6
|
+
* selects nothing and fails the state that read it.
|
|
7
|
+
*/
|
|
8
|
+
export function simStatesContextObject(execution) {
|
|
9
|
+
return {
|
|
10
|
+
Execution: {
|
|
11
|
+
Id: execution.executionArn,
|
|
12
|
+
Input: execution.input,
|
|
13
|
+
Name: execution.executionName,
|
|
14
|
+
RoleArn: execution.roleArn,
|
|
15
|
+
StartTime: execution.startDate.toISOString(),
|
|
16
|
+
},
|
|
17
|
+
StateMachine: {
|
|
18
|
+
Id: execution.stateMachineArn,
|
|
19
|
+
Name: execution.stateMachineName,
|
|
20
|
+
},
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* The same context object with what the state now running adds to it.
|
|
25
|
+
*/
|
|
26
|
+
export function simStatesStateContext(contextObject, state) {
|
|
27
|
+
return {
|
|
28
|
+
...contextObject,
|
|
29
|
+
State: {
|
|
30
|
+
EnteredTime: state.enteredTime.toISOString(),
|
|
31
|
+
Name: state.name,
|
|
32
|
+
RetryCount: state.retryCount,
|
|
33
|
+
},
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* The same context object with the item one `Map` iteration is running for.
|
|
38
|
+
*
|
|
39
|
+
* `ItemSelector` reads this while the `Map` state builds the iteration's
|
|
40
|
+
* input, and so do the states inside the iteration once it starts.
|
|
41
|
+
*/
|
|
42
|
+
export function simStatesMapItemContext(contextObject, index, value) {
|
|
43
|
+
return {
|
|
44
|
+
...contextObject,
|
|
45
|
+
Map: { Item: { Index: index, Value: value } },
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=sim-states-context-object.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-states-context-object.js","sourceRoot":"","sources":["../../../../src/service/stepfunctions/data/sim-states-context-object.ts"],"names":[],"mappings":"AA4BA;;;;;;GAMG;AACH,MAAM,UAAU,sBAAsB,CACpC,SAAoC;IAEpC,OAAO;QACL,SAAS,EAAE;YACT,EAAE,EAAE,SAAS,CAAC,YAAY;YAC1B,KAAK,EAAE,SAAS,CAAC,KAAK;YACtB,IAAI,EAAE,SAAS,CAAC,aAAa;YAC7B,OAAO,EAAE,SAAS,CAAC,OAAO;YAC1B,SAAS,EAAE,SAAS,CAAC,SAAS,CAAC,WAAW,EAAE;SAC7C;QACD,YAAY,EAAE;YACZ,EAAE,EAAE,SAAS,CAAC,eAAe;YAC7B,IAAI,EAAE,SAAS,CAAC,gBAAgB;SACjC;KACF,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,qBAAqB,CACnC,aAAyB,EACzB,KAAiC;IAEjC,OAAO;QACL,GAAG,aAAa;QAChB,KAAK,EAAE;YACL,WAAW,EAAE,KAAK,CAAC,WAAW,CAAC,WAAW,EAAE;YAC5C,IAAI,EAAE,KAAK,CAAC,IAAI;YAChB,UAAU,EAAE,KAAK,CAAC,UAAU;SAC7B;KACF,CAAC;AACJ,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,uBAAuB,CACrC,aAAyB,EACzB,KAAa,EACb,KAAgB;IAEhB,OAAO;QACL,GAAG,aAAa;QAChB,GAAG,EAAE,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE;KAC9C,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { JSONValue } from "../../../util/type-guard/json.js";
|
|
2
|
+
import { type SimStatesPathSegment } from "./sim-states-path-segment.js";
|
|
3
|
+
/**
|
|
4
|
+
* A path as it was written, and which document it reads.
|
|
5
|
+
*/
|
|
6
|
+
export interface SimStatesReadPath {
|
|
7
|
+
readonly segments: readonly SimStatesPathSegment[];
|
|
8
|
+
readonly fromContext: boolean;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Read a path that is allowed to read the context object.
|
|
12
|
+
*
|
|
13
|
+
* Amazon States Language roots a path at `$` for the value the state is
|
|
14
|
+
* working on and at `$$` for the context object. Both are read the same way
|
|
15
|
+
* once the root has said which of the two to read.
|
|
16
|
+
*/
|
|
17
|
+
export declare function parseSimStatesReadPath(path: string): SimStatesReadPath;
|
|
18
|
+
/**
|
|
19
|
+
* The value a path selects, from the state's data or from the context object.
|
|
20
|
+
*/
|
|
21
|
+
export declare function selectSimStatesReadPath(path: string, document: JSONValue, context: JSONValue): JSONValue | undefined;
|
|
22
|
+
//# sourceMappingURL=sim-states-context-path.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-states-context-path.d.ts","sourceRoot":"","sources":["../../../../src/service/stepfunctions/data/sim-states-context-path.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,EACL,KAAK,oBAAoB,EAE1B,MAAM,8BAA8B,CAAC;AAGtC;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,QAAQ,EAAE,SAAS,oBAAoB,EAAE,CAAC;IACnD,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC;CAC/B;AAOD;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,MAAM,GAAG,iBAAiB,CAWtE;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CACrC,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,SAAS,EACnB,OAAO,EAAE,SAAS,GACjB,SAAS,GAAG,SAAS,CAOvB"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { selectSimStatesPath, } from "./sim-states-path-segment.js";
|
|
2
|
+
import { parseSimStatesReferencePath } from "./sim-states-reference-path.js";
|
|
3
|
+
/**
|
|
4
|
+
* What a path rooted at the context object starts with.
|
|
5
|
+
*/
|
|
6
|
+
const contextRoot = "$$";
|
|
7
|
+
/**
|
|
8
|
+
* Read a path that is allowed to read the context object.
|
|
9
|
+
*
|
|
10
|
+
* Amazon States Language roots a path at `$` for the value the state is
|
|
11
|
+
* working on and at `$$` for the context object. Both are read the same way
|
|
12
|
+
* once the root has said which of the two to read.
|
|
13
|
+
*/
|
|
14
|
+
export function parseSimStatesReadPath(path) {
|
|
15
|
+
if (path.startsWith(contextRoot)) {
|
|
16
|
+
return {
|
|
17
|
+
fromContext: true,
|
|
18
|
+
segments: parseSimStatesReferencePath(`$${path.slice(contextRoot.length)}`),
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
return { fromContext: false, segments: parseSimStatesReferencePath(path) };
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* The value a path selects, from the state's data or from the context object.
|
|
25
|
+
*/
|
|
26
|
+
export function selectSimStatesReadPath(path, document, context) {
|
|
27
|
+
const read = parseSimStatesReadPath(path);
|
|
28
|
+
return selectSimStatesPath(read.fromContext ? context : document, read.segments);
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=sim-states-context-path.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-states-context-path.js","sourceRoot":"","sources":["../../../../src/service/stepfunctions/data/sim-states-context-path.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,mBAAmB,GACpB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,2BAA2B,EAAE,MAAM,gCAAgC,CAAC;AAU7E;;GAEG;AACH,MAAM,WAAW,GAAG,IAAI,CAAC;AAEzB;;;;;;GAMG;AACH,MAAM,UAAU,sBAAsB,CAAC,IAAY;IACjD,IAAI,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,EAAE,CAAC;QACjC,OAAO;YACL,WAAW,EAAE,IAAI;YACjB,QAAQ,EAAE,2BAA2B,CACnC,IAAI,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,MAAM,CAAC,EAAE,CACrC;SACF,CAAC;IACJ,CAAC;IAED,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,QAAQ,EAAE,2BAA2B,CAAC,IAAI,CAAC,EAAE,CAAC;AAC7E,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,uBAAuB,CACrC,IAAY,EACZ,QAAmB,EACnB,OAAkB;IAElB,MAAM,IAAI,GAAG,sBAAsB,CAAC,IAAI,CAAC,CAAC;IAE1C,OAAO,mBAAmB,CACxB,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,QAAQ,EACrC,IAAI,CAAC,QAAQ,CACd,CAAC;AACJ,CAAC"}
|
|
@@ -18,8 +18,9 @@ export interface SimStatesDataFlowFields {
|
|
|
18
18
|
*
|
|
19
19
|
* `InputPath` narrows the raw input and `Parameters` then builds a value from
|
|
20
20
|
* what is left, which is the order Amazon States Language applies them in.
|
|
21
|
+
* Both read the context object where the caller has one.
|
|
21
22
|
*/
|
|
22
|
-
export declare function simStatesEffectiveInput(rawInput: JSONValue, fields: SimStatesDataFlowFields): JSONValue;
|
|
23
|
+
export declare function simStatesEffectiveInput(rawInput: JSONValue, fields: SimStatesDataFlowFields, context?: JSONValue): JSONValue;
|
|
23
24
|
/**
|
|
24
25
|
* The output a state passes to the next one.
|
|
25
26
|
*
|
|
@@ -28,5 +29,5 @@ export declare function simStatesEffectiveInput(rawInput: JSONValue, fields: Sim
|
|
|
28
29
|
* input rather than the effective one, so a state can keep fields `InputPath`
|
|
29
30
|
* had already taken away.
|
|
30
31
|
*/
|
|
31
|
-
export declare function simStatesEffectiveOutput(rawInput: JSONValue, result: JSONValue, fields: SimStatesDataFlowFields): JSONValue;
|
|
32
|
+
export declare function simStatesEffectiveOutput(rawInput: JSONValue, result: JSONValue, fields: SimStatesDataFlowFields, context?: JSONValue): JSONValue;
|
|
32
33
|
//# sourceMappingURL=sim-states-data-flow.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-states-data-flow.d.ts","sourceRoot":"","sources":["../../../../src/service/stepfunctions/data/sim-states-data-flow.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAOlE;;;;;;GAMG;AACH,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,QAAQ,CAAC,UAAU,CAAC,EAAE,SAAS,CAAC;IAChC,QAAQ,CAAC,cAAc,CAAC,EAAE,SAAS,CAAC;IACpC,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACrC;AAED
|
|
1
|
+
{"version":3,"file":"sim-states-data-flow.d.ts","sourceRoot":"","sources":["../../../../src/service/stepfunctions/data/sim-states-data-flow.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAOlE;;;;;;GAMG;AACH,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,QAAQ,CAAC,UAAU,CAAC,EAAE,SAAS,CAAC;IAChC,QAAQ,CAAC,cAAc,CAAC,EAAE,SAAS,CAAC;IACpC,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACrC;AAED;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CACrC,QAAQ,EAAE,SAAS,EACnB,MAAM,EAAE,uBAAuB,EAC/B,OAAO,GAAE,SAAgB,GACxB,SAAS,CAMX;AAED;;;;;;;GAOG;AACH,wBAAgB,wBAAwB,CACtC,QAAQ,EAAE,SAAS,EACnB,MAAM,EAAE,SAAS,EACjB,MAAM,EAAE,uBAAuB,EAC/B,OAAO,GAAE,SAAgB,GACxB,SAAS,CAgBX"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SimStatesPathMatchFailure } from "../error/sim-step-functions.error.js";
|
|
2
|
+
import { selectSimStatesReadPath } from "./sim-states-context-path.js";
|
|
2
3
|
import { evaluateSimStatesPayloadTemplate } from "./sim-states-payload-template.js";
|
|
3
|
-
import { selectSimStatesPath } from "./sim-states-path-segment.js";
|
|
4
4
|
import { parseSimStatesReferencePath } from "./sim-states-reference-path.js";
|
|
5
5
|
import { insertAtSimStatesPath } from "./sim-states-result-path.js";
|
|
6
6
|
/**
|
|
@@ -8,12 +8,13 @@ import { insertAtSimStatesPath } from "./sim-states-result-path.js";
|
|
|
8
8
|
*
|
|
9
9
|
* `InputPath` narrows the raw input and `Parameters` then builds a value from
|
|
10
10
|
* what is left, which is the order Amazon States Language applies them in.
|
|
11
|
+
* Both read the context object where the caller has one.
|
|
11
12
|
*/
|
|
12
|
-
export function simStatesEffectiveInput(rawInput, fields) {
|
|
13
|
-
const narrowed = applyPath(rawInput, fields.InputPath, "InputPath");
|
|
13
|
+
export function simStatesEffectiveInput(rawInput, fields, context = null) {
|
|
14
|
+
const narrowed = applyPath(rawInput, fields.InputPath, "InputPath", context);
|
|
14
15
|
return fields.Parameters === undefined
|
|
15
16
|
? narrowed
|
|
16
|
-
: evaluateSimStatesPayloadTemplate(fields.Parameters, narrowed);
|
|
17
|
+
: evaluateSimStatesPayloadTemplate(fields.Parameters, narrowed, context);
|
|
17
18
|
}
|
|
18
19
|
/**
|
|
19
20
|
* The output a state passes to the next one.
|
|
@@ -23,11 +24,11 @@ export function simStatesEffectiveInput(rawInput, fields) {
|
|
|
23
24
|
* input rather than the effective one, so a state can keep fields `InputPath`
|
|
24
25
|
* had already taken away.
|
|
25
26
|
*/
|
|
26
|
-
export function simStatesEffectiveOutput(rawInput, result, fields) {
|
|
27
|
+
export function simStatesEffectiveOutput(rawInput, result, fields, context = null) {
|
|
27
28
|
const selected = fields.ResultSelector === undefined
|
|
28
29
|
? result
|
|
29
|
-
: evaluateSimStatesPayloadTemplate(fields.ResultSelector, result);
|
|
30
|
-
return applyPath(applyResultPath(rawInput, selected, fields.ResultPath), fields.OutputPath, "OutputPath");
|
|
30
|
+
: evaluateSimStatesPayloadTemplate(fields.ResultSelector, result, context);
|
|
31
|
+
return applyPath(applyResultPath(rawInput, selected, fields.ResultPath), fields.OutputPath, "OutputPath", context);
|
|
31
32
|
}
|
|
32
33
|
/**
|
|
33
34
|
* Combine a result with the raw input, as `ResultPath` asks.
|
|
@@ -48,14 +49,14 @@ function applyResultPath(rawInput, result, resultPath) {
|
|
|
48
49
|
* object, an absent one passes the value through, and a path selecting nothing
|
|
49
50
|
* fails the state.
|
|
50
51
|
*/
|
|
51
|
-
function applyPath(value, path, field) {
|
|
52
|
+
function applyPath(value, path, field, context) {
|
|
52
53
|
if (path === null) {
|
|
53
54
|
return {};
|
|
54
55
|
}
|
|
55
56
|
if (path === undefined) {
|
|
56
57
|
return value;
|
|
57
58
|
}
|
|
58
|
-
const selected =
|
|
59
|
+
const selected = selectSimStatesReadPath(path, value, context);
|
|
59
60
|
if (selected === undefined) {
|
|
60
61
|
throw new SimStatesPathMatchFailure(`${field} reads ${path}, which selects nothing in the value the state ` +
|
|
61
62
|
"was given.");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-states-data-flow.js","sourceRoot":"","sources":["../../../../src/service/stepfunctions/data/sim-states-data-flow.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,yBAAyB,EAAE,MAAM,sCAAsC,CAAC;AACjF,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"sim-states-data-flow.js","sourceRoot":"","sources":["../../../../src/service/stepfunctions/data/sim-states-data-flow.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,yBAAyB,EAAE,MAAM,sCAAsC,CAAC;AACjF,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,gCAAgC,EAAE,MAAM,kCAAkC,CAAC;AACpF,OAAO,EAAE,2BAA2B,EAAE,MAAM,gCAAgC,CAAC;AAC7E,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAiBpE;;;;;;GAMG;AACH,MAAM,UAAU,uBAAuB,CACrC,QAAmB,EACnB,MAA+B,EAC/B,OAAO,GAAc,IAAI;IAEzB,MAAM,QAAQ,GAAG,SAAS,CAAC,QAAQ,EAAE,MAAM,CAAC,SAAS,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;IAE7E,OAAO,MAAM,CAAC,UAAU,KAAK,SAAS;QACpC,CAAC,CAAC,QAAQ;QACV,CAAC,CAAC,gCAAgC,CAAC,MAAM,CAAC,UAAU,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;AAC7E,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,wBAAwB,CACtC,QAAmB,EACnB,MAAiB,EACjB,MAA+B,EAC/B,OAAO,GAAc,IAAI;IAEzB,MAAM,QAAQ,GACZ,MAAM,CAAC,cAAc,KAAK,SAAS;QACjC,CAAC,CAAC,MAAM;QACR,CAAC,CAAC,gCAAgC,CAC9B,MAAM,CAAC,cAAc,EACrB,MAAM,EACN,OAAO,CACR,CAAC;IAER,OAAO,SAAS,CACd,eAAe,CAAC,QAAQ,EAAE,QAAQ,EAAE,MAAM,CAAC,UAAU,CAAC,EACtD,MAAM,CAAC,UAAU,EACjB,YAAY,EACZ,OAAO,CACR,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,SAAS,eAAe,CACtB,QAAmB,EACnB,MAAiB,EACjB,UAAqC;IAErC,IAAI,UAAU,KAAK,IAAI,EAAE,CAAC;QACxB,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,IAAI,UAAU,KAAK,SAAS,EAAE,CAAC;QAC7B,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,OAAO,qBAAqB,CAC1B,QAAQ,EACR,2BAA2B,CAAC,UAAU,CAAC,EACvC,MAAM,EACN,UAAU,CACX,CAAC;AACJ,CAAC;AAED;;;;;;GAMG;AACH,SAAS,SAAS,CAChB,KAAgB,EAChB,IAA+B,EAC/B,KAAa,EACb,OAAkB;IAElB,IAAI,IAAI,KAAK,IAAI,EAAE,CAAC;QAClB,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,IAAI,IAAI,KAAK,SAAS,EAAE,CAAC;QACvB,OAAO,KAAK,CAAC;IACf,CAAC;IAED,MAAM,QAAQ,GAAG,uBAAuB,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;IAE/D,IAAI,QAAQ,KAAK,SAAS,EAAE,CAAC;QAC3B,MAAM,IAAI,yBAAyB,CACjC,GAAG,KAAK,UAAU,IAAI,iDAAiD;YACrE,YAAY,CACf,CAAC;IACJ,CAAC;IAED,OAAO,QAAQ,CAAC;AAClB,CAAC"}
|
|
@@ -6,5 +6,5 @@ export declare const simStatesIntrinsicNames: readonly string[];
|
|
|
6
6
|
/**
|
|
7
7
|
* Run an intrinsic function against the document its paths read from.
|
|
8
8
|
*/
|
|
9
|
-
export declare function evaluateSimStatesIntrinsic(expression: string, document: JSONValue): JSONValue;
|
|
9
|
+
export declare function evaluateSimStatesIntrinsic(expression: string, document: JSONValue, context?: JSONValue): JSONValue;
|
|
10
10
|
//# sourceMappingURL=sim-states-intrinsic.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-states-intrinsic.d.ts","sourceRoot":"","sources":["../../../../src/service/stepfunctions/data/sim-states-intrinsic.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"sim-states-intrinsic.d.ts","sourceRoot":"","sources":["../../../../src/service/stepfunctions/data/sim-states-intrinsic.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAOlE;;GAEG;AACH,eAAO,MAAM,uBAAuB,EAAE,SAAS,MAAM,EAEzC,CAAC;AAEb;;GAEG;AACH,wBAAgB,0BAA0B,CACxC,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,SAAS,EACnB,OAAO,GAAE,SAAgB,GACxB,SAAS,CAiBX"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { SimStatesIntrinsicFailure } from "../error/sim-step-functions.error.js";
|
|
2
|
+
import { selectSimStatesReadPath } from "./sim-states-context-path.js";
|
|
2
3
|
import { simStatesIntrinsics } from "./sim-states-intrinsic-functions.js";
|
|
3
4
|
import { parseSimStatesIntrinsic } from "./sim-states-intrinsic-parse.js";
|
|
4
|
-
import { selectSimStatesPath } from "./sim-states-path-segment.js";
|
|
5
|
-
import { parseSimStatesReferencePath } from "./sim-states-reference-path.js";
|
|
6
5
|
/**
|
|
7
6
|
* The names this simulator answers, for a message listing them.
|
|
8
7
|
*/
|
|
@@ -12,26 +11,26 @@ export const simStatesIntrinsicNames = simStatesIntrinsics
|
|
|
12
11
|
/**
|
|
13
12
|
* Run an intrinsic function against the document its paths read from.
|
|
14
13
|
*/
|
|
15
|
-
export function evaluateSimStatesIntrinsic(expression, document) {
|
|
14
|
+
export function evaluateSimStatesIntrinsic(expression, document, context = null) {
|
|
16
15
|
const call = parseSimStatesIntrinsic(expression);
|
|
17
16
|
const intrinsic = simStatesIntrinsics.get(call.name);
|
|
18
17
|
if (intrinsic === undefined) {
|
|
19
18
|
throw new SimStatesIntrinsicFailure(`${call.name} is not an intrinsic function this simulator answers. It ` +
|
|
20
19
|
`answers ${simStatesIntrinsicNames.join(", ")}.`);
|
|
21
20
|
}
|
|
22
|
-
return intrinsic(call.arguments.map((argument) => resolveArgument(argument, document, expression)), expression);
|
|
21
|
+
return intrinsic(call.arguments.map((argument) => resolveArgument(argument, document, expression, context)), expression);
|
|
23
22
|
}
|
|
24
23
|
/**
|
|
25
24
|
* Reduce one argument to the value the intrinsic receives.
|
|
26
25
|
*/
|
|
27
|
-
function resolveArgument(argument, document, expression) {
|
|
26
|
+
function resolveArgument(argument, document, expression, context) {
|
|
28
27
|
if (argument.kind === "literal") {
|
|
29
28
|
return argument.value;
|
|
30
29
|
}
|
|
31
30
|
if (argument.kind === "call") {
|
|
32
|
-
return evaluateSimStatesIntrinsic(argument.expression, document);
|
|
31
|
+
return evaluateSimStatesIntrinsic(argument.expression, document, context);
|
|
33
32
|
}
|
|
34
|
-
const selected =
|
|
33
|
+
const selected = selectSimStatesReadPath(argument.path, document, context);
|
|
35
34
|
if (selected === undefined) {
|
|
36
35
|
throw new SimStatesIntrinsicFailure(`${expression} reads ${argument.path}, which selects nothing in the ` +
|
|
37
36
|
"value it was given.");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-states-intrinsic.js","sourceRoot":"","sources":["../../../../src/service/stepfunctions/data/sim-states-intrinsic.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,yBAAyB,EAAE,MAAM,sCAAsC,CAAC;AAEjF,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"sim-states-intrinsic.js","sourceRoot":"","sources":["../../../../src/service/stepfunctions/data/sim-states-intrinsic.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,yBAAyB,EAAE,MAAM,sCAAsC,CAAC;AAEjF,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAC1E,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAE1E;;GAEG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAsB,mBAAmB;KAC1E,IAAI,EAAE;KACN,OAAO,EAAE,CAAC;AAEb;;GAEG;AACH,MAAM,UAAU,0BAA0B,CACxC,UAAkB,EAClB,QAAmB,EACnB,OAAO,GAAc,IAAI;IAEzB,MAAM,IAAI,GAAG,uBAAuB,CAAC,UAAU,CAAC,CAAC;IACjD,MAAM,SAAS,GAAG,mBAAmB,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAErD,IAAI,SAAS,KAAK,SAAS,EAAE,CAAC;QAC5B,MAAM,IAAI,yBAAyB,CACjC,GAAG,IAAI,CAAC,IAAI,2DAA2D;YACrE,WAAW,uBAAuB,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CACnD,CAAC;IACJ,CAAC;IAED,OAAO,SAAS,CACd,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAC9B,eAAe,CAAC,QAAQ,EAAE,QAAQ,EAAE,UAAU,EAAE,OAAO,CAAC,CACzD,EACD,UAAU,CACX,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,SAAS,eAAe,CACtB,QAAoC,EACpC,QAAmB,EACnB,UAAkB,EAClB,OAAkB;IAElB,IAAI,QAAQ,CAAC,IAAI,KAAK,SAAS,EAAE,CAAC;QAChC,OAAO,QAAQ,CAAC,KAAK,CAAC;IACxB,CAAC;IAED,IAAI,QAAQ,CAAC,IAAI,KAAK,MAAM,EAAE,CAAC;QAC7B,OAAO,0BAA0B,CAAC,QAAQ,CAAC,UAAU,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;IAC5E,CAAC;IAED,MAAM,QAAQ,GAAG,uBAAuB,CAAC,QAAQ,CAAC,IAAI,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;IAE3E,IAAI,QAAQ,KAAK,SAAS,EAAE,CAAC;QAC3B,MAAM,IAAI,yBAAyB,CACjC,GAAG,UAAU,UAAU,QAAQ,CAAC,IAAI,iCAAiC;YACnE,qBAAqB,CACxB,CAAC;IACJ,CAAC;IAED,OAAO,QAAQ,CAAC;AAClB,CAAC"}
|
|
@@ -2,11 +2,14 @@ import type { JSONValue } from "../../../util/type-guard/json.js";
|
|
|
2
2
|
/**
|
|
3
3
|
* Build a value from a Payload Template.
|
|
4
4
|
*
|
|
5
|
-
* `Parameters` and `
|
|
6
|
-
* name ends in `.$` takes its value from a Reference Path or an
|
|
7
|
-
* function, and the `.$` comes off the name. Every other field is
|
|
8
|
-
* stands, with objects and arrays walked so a `.$` field nested
|
|
9
|
-
* still resolved.
|
|
5
|
+
* `Parameters`, `ResultSelector` and `ItemSelector` are all Payload Templates.
|
|
6
|
+
* A field whose name ends in `.$` takes its value from a Reference Path or an
|
|
7
|
+
* intrinsic function, and the `.$` comes off the name. Every other field is
|
|
8
|
+
* copied as it stands, with objects and arrays walked so a `.$` field nested
|
|
9
|
+
* inside one is still resolved.
|
|
10
|
+
*
|
|
11
|
+
* A path rooted at `$$` reads the context object the caller was given. One
|
|
12
|
+
* given none reads nothing there, and the field fails the state.
|
|
10
13
|
*/
|
|
11
|
-
export declare function evaluateSimStatesPayloadTemplate(template: JSONValue, document: JSONValue): JSONValue;
|
|
14
|
+
export declare function evaluateSimStatesPayloadTemplate(template: JSONValue, document: JSONValue, context?: JSONValue): JSONValue;
|
|
12
15
|
//# sourceMappingURL=sim-states-payload-template.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-states-payload-template.d.ts","sourceRoot":"","sources":["../../../../src/service/stepfunctions/data/sim-states-payload-template.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAc,SAAS,EAAE,MAAM,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"sim-states-payload-template.d.ts","sourceRoot":"","sources":["../../../../src/service/stepfunctions/data/sim-states-payload-template.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAc,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAY9E;;;;;;;;;;;GAWG;AACH,wBAAgB,gCAAgC,CAC9C,QAAQ,EAAE,SAAS,EACnB,QAAQ,EAAE,SAAS,EACnB,OAAO,GAAE,SAAgB,GACxB,SAAS,CA8BX"}
|
|
@@ -1,22 +1,24 @@
|
|
|
1
1
|
import { isRecord } from "../../../util/type-guard/record.js";
|
|
2
2
|
import { SimStatesPathMatchFailure, SimStatesUnsimulatedInput, } from "../error/sim-step-functions.error.js";
|
|
3
|
+
import { selectSimStatesReadPath } from "./sim-states-context-path.js";
|
|
3
4
|
import { isSimStatesIntrinsic } from "./sim-states-intrinsic-argument.js";
|
|
4
5
|
import { evaluateSimStatesIntrinsic } from "./sim-states-intrinsic.js";
|
|
5
|
-
import { selectSimStatesPath } from "./sim-states-path-segment.js";
|
|
6
|
-
import { parseSimStatesReferencePath } from "./sim-states-reference-path.js";
|
|
7
6
|
const resolvedKeySuffix = ".$";
|
|
8
7
|
/**
|
|
9
8
|
* Build a value from a Payload Template.
|
|
10
9
|
*
|
|
11
|
-
* `Parameters` and `
|
|
12
|
-
* name ends in `.$` takes its value from a Reference Path or an
|
|
13
|
-
* function, and the `.$` comes off the name. Every other field is
|
|
14
|
-
* stands, with objects and arrays walked so a `.$` field nested
|
|
15
|
-
* still resolved.
|
|
10
|
+
* `Parameters`, `ResultSelector` and `ItemSelector` are all Payload Templates.
|
|
11
|
+
* A field whose name ends in `.$` takes its value from a Reference Path or an
|
|
12
|
+
* intrinsic function, and the `.$` comes off the name. Every other field is
|
|
13
|
+
* copied as it stands, with objects and arrays walked so a `.$` field nested
|
|
14
|
+
* inside one is still resolved.
|
|
15
|
+
*
|
|
16
|
+
* A path rooted at `$$` reads the context object the caller was given. One
|
|
17
|
+
* given none reads nothing there, and the field fails the state.
|
|
16
18
|
*/
|
|
17
|
-
export function evaluateSimStatesPayloadTemplate(template, document) {
|
|
19
|
+
export function evaluateSimStatesPayloadTemplate(template, document, context = null) {
|
|
18
20
|
if (Array.isArray(template)) {
|
|
19
|
-
return template.map((element) => evaluateSimStatesPayloadTemplate(element, document));
|
|
21
|
+
return template.map((element) => evaluateSimStatesPayloadTemplate(element, document, context));
|
|
20
22
|
}
|
|
21
23
|
if (!isRecord(template)) {
|
|
22
24
|
return template;
|
|
@@ -30,23 +32,23 @@ export function evaluateSimStatesPayloadTemplate(template, document) {
|
|
|
30
32
|
`${field}, so one of them would be lost.`);
|
|
31
33
|
}
|
|
32
34
|
built[field] = resolved
|
|
33
|
-
? resolveField(key, value, document)
|
|
34
|
-
: evaluateSimStatesPayloadTemplate(value, document);
|
|
35
|
+
? resolveField(key, value, document, context)
|
|
36
|
+
: evaluateSimStatesPayloadTemplate(value, document, context);
|
|
35
37
|
}
|
|
36
38
|
return built;
|
|
37
39
|
}
|
|
38
40
|
/**
|
|
39
41
|
* Resolve one `.$` field to the value it names.
|
|
40
42
|
*/
|
|
41
|
-
function resolveField(key, value, document) {
|
|
43
|
+
function resolveField(key, value, document, context) {
|
|
42
44
|
if (typeof value !== "string") {
|
|
43
45
|
throw new SimStatesUnsimulatedInput(`${key} ends in .$, so its value has to be a Reference Path or an ` +
|
|
44
46
|
"intrinsic function written as a string.");
|
|
45
47
|
}
|
|
46
48
|
if (isSimStatesIntrinsic(value)) {
|
|
47
|
-
return evaluateSimStatesIntrinsic(value, document);
|
|
49
|
+
return evaluateSimStatesIntrinsic(value, document, context);
|
|
48
50
|
}
|
|
49
|
-
const selected =
|
|
51
|
+
const selected = selectSimStatesReadPath(value, document, context);
|
|
50
52
|
if (selected === undefined) {
|
|
51
53
|
throw new SimStatesPathMatchFailure(`${key} reads ${value}, which selects nothing in the value the state ` +
|
|
52
54
|
"was given.");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-states-payload-template.js","sourceRoot":"","sources":["../../../../src/service/stepfunctions/data/sim-states-payload-template.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAE,MAAM,oCAAoC,CAAC;AAC9D,OAAO,EACL,yBAAyB,EACzB,yBAAyB,GAC1B,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"sim-states-payload-template.js","sourceRoot":"","sources":["../../../../src/service/stepfunctions/data/sim-states-payload-template.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAE,MAAM,oCAAoC,CAAC;AAC9D,OAAO,EACL,yBAAyB,EACzB,yBAAyB,GAC1B,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAC1E,OAAO,EAAE,0BAA0B,EAAE,MAAM,2BAA2B,CAAC;AAEvE,MAAM,iBAAiB,GAAG,IAAI,CAAC;AAE/B;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,gCAAgC,CAC9C,QAAmB,EACnB,QAAmB,EACnB,OAAO,GAAc,IAAI;IAEzB,IAAI,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAC;QAC5B,OAAO,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAC9B,gCAAgC,CAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAC,CAC7D,CAAC;IACJ,CAAC;IAED,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC;QACxB,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,MAAM,KAAK,GAAe,EAAE,CAAC;IAE7B,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAC;QACpD,MAAM,QAAQ,GAAG,GAAG,CAAC,QAAQ,CAAC,iBAAiB,CAAC,CAAC;QACjD,MAAM,KAAK,GAAG,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC;QAEvE,IAAI,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC;YAChC,MAAM,IAAI,yBAAyB,CACjC,GAAG,GAAG,yDAAyD;gBAC7D,GAAG,KAAK,iCAAiC,CAC5C,CAAC;QACJ,CAAC;QAED,KAAK,CAAC,KAAK,CAAC,GAAG,QAAQ;YACrB,CAAC,CAAC,YAAY,CAAC,GAAG,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,CAAC;YAC7C,CAAC,CAAC,gCAAgC,CAAC,KAAK,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;IACjE,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC;AAED;;GAEG;AACH,SAAS,YAAY,CACnB,GAAW,EACX,KAAgB,EAChB,QAAmB,EACnB,OAAkB;IAElB,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QAC9B,MAAM,IAAI,yBAAyB,CACjC,GAAG,GAAG,6DAA6D;YACjE,yCAAyC,CAC5C,CAAC;IACJ,CAAC;IAED,IAAI,oBAAoB,CAAC,KAAK,CAAC,EAAE,CAAC;QAChC,OAAO,0BAA0B,CAAC,KAAK,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;IAC9D,CAAC;IAED,MAAM,QAAQ,GAAG,uBAAuB,CAAC,KAAK,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;IAEnE,IAAI,QAAQ,KAAK,SAAS,EAAE,CAAC;QAC3B,MAAM,IAAI,yBAAyB,CACjC,GAAG,GAAG,UAAU,KAAK,iDAAiD;YACpE,YAAY,CACf,CAAC;IACJ,CAAC;IAED,OAAO,QAAQ,CAAC;AAClB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-states-reference-path.d.ts","sourceRoot":"","sources":["../../../../src/service/stepfunctions/data/sim-states-reference-path.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAazE;;;;;;;;GAQG;AACH,wBAAgB,2BAA2B,CACzC,IAAI,EAAE,MAAM,GACX,SAAS,oBAAoB,EAAE,
|
|
1
|
+
{"version":3,"file":"sim-states-reference-path.d.ts","sourceRoot":"","sources":["../../../../src/service/stepfunctions/data/sim-states-reference-path.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAazE;;;;;;;;GAQG;AACH,wBAAgB,2BAA2B,CACzC,IAAI,EAAE,MAAM,GACX,SAAS,oBAAoB,EAAE,CA+BjC"}
|
|
@@ -18,8 +18,10 @@ export function parseSimStatesReferencePath(path) {
|
|
|
18
18
|
return [];
|
|
19
19
|
}
|
|
20
20
|
if (path.startsWith("$$")) {
|
|
21
|
-
throw new SimStatesPathError(`${path} reads the context object, which is
|
|
22
|
-
"
|
|
21
|
+
throw new SimStatesPathError(`${path} reads the context object, which is read in InputPath, ` +
|
|
22
|
+
"OutputPath, ItemsPath, Parameters, ResultSelector, ItemSelector and " +
|
|
23
|
+
"an intrinsic function's arguments. A path in any other field is " +
|
|
24
|
+
"rooted at $.");
|
|
23
25
|
}
|
|
24
26
|
if (!path.startsWith("$")) {
|
|
25
27
|
throw new SimStatesPathError(`${path} is not a Reference Path. One has to start with $.`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-states-reference-path.js","sourceRoot":"","sources":["../../../../src/service/stepfunctions/data/sim-states-reference-path.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAG1E,MAAM,cAAc,GAAG,mCAAmC,CAAC;AAC3D,4EAA4E;AAC5E,wDAAwD;AACxD,iFAAiF;AACjF,MAAM,YAAY,GAAG,gDAAgD,CAAC;AAOtE;;;;;;;;GAQG;AACH,MAAM,UAAU,2BAA2B,CACzC,IAAY;IAEZ,IAAI,IAAI,KAAK,GAAG,EAAE,CAAC;QACjB,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,IAAI,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC;QAC1B,MAAM,IAAI,kBAAkB,CAC1B,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"sim-states-reference-path.js","sourceRoot":"","sources":["../../../../src/service/stepfunctions/data/sim-states-reference-path.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAG1E,MAAM,cAAc,GAAG,mCAAmC,CAAC;AAC3D,4EAA4E;AAC5E,wDAAwD;AACxD,iFAAiF;AACjF,MAAM,YAAY,GAAG,gDAAgD,CAAC;AAOtE;;;;;;;;GAQG;AACH,MAAM,UAAU,2BAA2B,CACzC,IAAY;IAEZ,IAAI,IAAI,KAAK,GAAG,EAAE,CAAC;QACjB,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,IAAI,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC;QAC1B,MAAM,IAAI,kBAAkB,CAC1B,GAAG,IAAI,yDAAyD;YAC9D,sEAAsE;YACtE,kEAAkE;YAClE,cAAc,CACjB,CAAC;IACJ,CAAC;IAED,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC;QAC1B,MAAM,IAAI,kBAAkB,CAC1B,GAAG,IAAI,oDAAoD,CAC5D,CAAC;IACJ,CAAC;IAED,MAAM,QAAQ,GAA2B,EAAE,CAAC;IAC5C,IAAI,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IAEzB,OAAO,IAAI,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACvB,MAAM,IAAI,GAAG,WAAW,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QAErC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC5B,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;IACnB,CAAC;IAED,OAAO,QAAQ,CAAC;AAClB,CAAC;AAED;;GAEG;AACH,SAAS,WAAW,CAAC,IAAY,EAAE,IAAY;IAC7C,IAAI,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC;QACzB,OAAO,kBAAkB,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IACxC,CAAC;IAED,IAAI,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC;QACzB,MAAM,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QAE/B,2EAA2E;QAC3E,iEAAiE;QACjE,OAAO,QAAQ,CAAC,UAAU,CAAC,GAAG,CAAC;YAC7B,CAAC,CAAC,kBAAkB,CAAC,IAAI,EAAE,QAAQ,CAAC;YACpC,CAAC,CAAC,gBAAgB,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;IACvC,CAAC;IAED,MAAM,IAAI,kBAAkB,CAC1B,GAAG,IAAI,iEAAiE;QACtE,gBAAgB,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,oCAAoC;QACpE,+DAA+D,CAClE,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,SAAS,kBAAkB,CAAC,IAAY,EAAE,IAAY;IACpD,MAAM,OAAO,GAAG,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAE1C,IAAI,OAAO,KAAK,IAAI,EAAE,CAAC;QACrB,MAAM,IAAI,kBAAkB,CAC1B,GAAG,IAAI,8DAA8D;YACnE,iEAAiE,CACpE,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK,EAAE,UAAU,EAAE,KAAK,CAAC,GAAG,OAAO,CAAC;IAC3C,MAAM,OAAO,GACX,UAAU,KAAK,SAAS;QACtB,CAAC,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,EAAE;QACzC,CAAC,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,UAAU,CAAC,UAAU,CAAC,MAAM,CAAC,GAAG,CAAA,IAAI,EAAE,GAAG,CAAC,EAAE,CAAC;IAE1E,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC;AACrD,CAAC;AAED;;GAEG;AACH,SAAS,gBAAgB,CAAC,IAAY,EAAE,IAAY;IAClD,MAAM,OAAO,GAAG,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAExC,IAAI,OAAO,KAAK,IAAI,EAAE,CAAC;QACrB,MAAM,IAAI,kBAAkB,CAC1B,GAAG,IAAI,gDAAgD;YACrD,uEAAuE;YACvE,kEAAkE,CACrE,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC;IAEvB,OAAO,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC;AAC7E,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { JSONValue } from "../../../util/type-guard/json.js";
|
|
1
2
|
import type { SimStatesDefinition } from "./sim-states-definition.js";
|
|
2
3
|
/**
|
|
3
4
|
* Read a state machine definition from the JSON string it was written as.
|
|
@@ -7,4 +8,11 @@ import type { SimStatesDefinition } from "./sim-states-definition.js";
|
|
|
7
8
|
* wrong, and running wrong gives a passing test that lies.
|
|
8
9
|
*/
|
|
9
10
|
export declare function parseSimStatesDefinition(definition: string): SimStatesDefinition;
|
|
11
|
+
/**
|
|
12
|
+
* Read a definition from the JSON object it was written as.
|
|
13
|
+
*
|
|
14
|
+
* A `Parallel` state's branch is a definition of its own, written inside the
|
|
15
|
+
* one holding it, so a branch is read through here as well.
|
|
16
|
+
*/
|
|
17
|
+
export declare function parseSimStatesDefinitionDocument(document: Record<string, JSONValue>): SimStatesDefinition;
|
|
10
18
|
//# sourceMappingURL=sim-states-definition-parse.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-states-definition-parse.d.ts","sourceRoot":"","sources":["../../../../src/service/stepfunctions/definition/sim-states-definition-parse.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sim-states-definition-parse.d.ts","sourceRoot":"","sources":["../../../../src/service/stepfunctions/definition/sim-states-definition-parse.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAGlE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAKtE;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CACtC,UAAU,EAAE,MAAM,GACjB,mBAAmB,CAErB;AAED;;;;;GAKG;AACH,wBAAgB,gCAAgC,CAC9C,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAClC,mBAAmB,CAyBrB"}
|
|
@@ -10,7 +10,15 @@ import { checkSimStatesTransitions } from "./sim-states-transitions.js";
|
|
|
10
10
|
* wrong, and running wrong gives a passing test that lies.
|
|
11
11
|
*/
|
|
12
12
|
export function parseSimStatesDefinition(definition) {
|
|
13
|
-
|
|
13
|
+
return parseSimStatesDefinitionDocument(readDocument(definition));
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Read a definition from the JSON object it was written as.
|
|
17
|
+
*
|
|
18
|
+
* A `Parallel` state's branch is a definition of its own, written inside the
|
|
19
|
+
* one holding it, so a branch is read through here as well.
|
|
20
|
+
*/
|
|
21
|
+
export function parseSimStatesDefinitionDocument(document) {
|
|
14
22
|
const states = readStates(document);
|
|
15
23
|
const startAt = document["StartAt"];
|
|
16
24
|
if (typeof startAt !== "string") {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-states-definition-parse.js","sourceRoot":"","sources":["../../../../src/service/stepfunctions/definition/sim-states-definition-parse.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,oCAAoC,CAAC;AAC9D,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAGlF,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AAExE;;;;;;GAMG;AACH,MAAM,UAAU,wBAAwB,CACtC,UAAkB;IAElB,
|
|
1
|
+
{"version":3,"file":"sim-states-definition-parse.js","sourceRoot":"","sources":["../../../../src/service/stepfunctions/definition/sim-states-definition-parse.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,oCAAoC,CAAC;AAC9D,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAGlF,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AAExE;;;;;;GAMG;AACH,MAAM,UAAU,wBAAwB,CACtC,UAAkB;IAElB,OAAO,gCAAgC,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC,CAAC;AACpE,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,gCAAgC,CAC9C,QAAmC;IAEnC,MAAM,MAAM,GAAG,UAAU,CAAC,QAAQ,CAAC,CAAC;IACpC,MAAM,OAAO,GAAG,QAAQ,CAAC,SAAS,CAAC,CAAC;IAEpC,IAAI,OAAO,OAAO,KAAK,QAAQ,EAAE,CAAC;QAChC,MAAM,IAAI,0BAA0B,CAClC,2EAA2E,CAC5E,CAAC;IACJ,CAAC;IAED,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC;QACzB,MAAM,IAAI,0BAA0B,CAClC,iBAAiB,OAAO,oDAAoD,CAC7E,CAAC;IACJ,CAAC;IAED,yBAAyB,CAAC,MAAM,CAAC,CAAC;IAElC,MAAM,OAAO,GAAG,QAAQ,CAAC,SAAS,CAAC,CAAC;IAEpC,OAAO;QACL,GAAG,CAAC,OAAO,OAAO,KAAK,QAAQ,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC;QACxD,OAAO,EAAE,OAAO;QAChB,MAAM,EAAE,MAAM;KACf,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,SAAS,YAAY,CAAC,UAAkB;IACtC,IAAI,QAAmB,CAAC;IAExB,IAAI,CAAC;QACH,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,UAAU,CAAc,CAAC;IACjD,CAAC;IAAC,MAAM,CAAC;QACP,MAAM,IAAI,0BAA0B,CAClC,2CAA2C,CAC5C,CAAC;IACJ,CAAC;IAED,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC;QACxB,MAAM,IAAI,0BAA0B,CAClC,8CAA8C,CAC/C,CAAC;IACJ,CAAC;IAED,OAAO,QAAQ,CAAC;AAClB,CAAC;AAED;;;GAGG;AACH,SAAS,UAAU,CACjB,QAAmC;IAEnC,MAAM,QAAQ,GAAG,QAAQ,CAAC,QAAQ,CAAC,CAAC;IAEpC,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAC9D,MAAM,IAAI,0BAA0B,CAClC,8EAA8E,CAC/E,CAAC;IACJ,CAAC;IAED,MAAM,MAAM,GAAG,IAAI,GAAG,EAA0B,CAAC;IAEjD,KAAK,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAC;QACrD,MAAM,CAAC,GAAG,CAAC,IAAI,EAAE,mBAAmB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC;IACrD,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { JSONValue } from "../../../util/type-guard/json.js";
|
|
2
|
+
/**
|
|
3
|
+
* Read what builds each iteration's input.
|
|
4
|
+
*
|
|
5
|
+
* `Parameters` is what `ItemSelector` used to be called, and a `Map` state
|
|
6
|
+
* carrying both says the same thing twice.
|
|
7
|
+
*/
|
|
8
|
+
export declare function readSimStatesItemSelector(named: string, state: Record<string, JSONValue>, parameters: JSONValue | undefined): {
|
|
9
|
+
ItemSelector?: JSONValue;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Read where the items come from, which is the whole input by default.
|
|
13
|
+
*/
|
|
14
|
+
export declare function readSimStatesItemsPath(named: string, state: Record<string, JSONValue>): {
|
|
15
|
+
ItemsPath?: string;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Read how many iterations may run at once.
|
|
19
|
+
*/
|
|
20
|
+
export declare function readSimStatesMaxConcurrency(named: string, state: Record<string, JSONValue>): {
|
|
21
|
+
MaxConcurrency?: number;
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=sim-states-map-fields.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-states-map-fields.d.ts","sourceRoot":"","sources":["../../../../src/service/stepfunctions/definition/sim-states-map-fields.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAKlE;;;;;GAKG;AACH,wBAAgB,yBAAyB,CACvC,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,EAChC,UAAU,EAAE,SAAS,GAAG,SAAS,GAChC;IAAE,YAAY,CAAC,EAAE,SAAS,CAAA;CAAE,CA4B9B;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CACpC,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAC/B;IAAE,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,CAgBxB;AAED;;GAEG;AACH,wBAAgB,2BAA2B,CACzC,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAC/B;IAAE,cAAc,CAAC,EAAE,MAAM,CAAA;CAAE,CAmB7B"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { isRecord } from "../../../util/type-guard/record.js";
|
|
2
|
+
import { parseSimStatesReadPath } from "../data/sim-states-context-path.js";
|
|
3
|
+
import { SimStatesInvalidDefinition } from "../error/sim-step-functions.error.js";
|
|
4
|
+
/**
|
|
5
|
+
* Read what builds each iteration's input.
|
|
6
|
+
*
|
|
7
|
+
* `Parameters` is what `ItemSelector` used to be called, and a `Map` state
|
|
8
|
+
* carrying both says the same thing twice.
|
|
9
|
+
*/
|
|
10
|
+
export function readSimStatesItemSelector(named, state, parameters) {
|
|
11
|
+
const selector = state["ItemSelector"];
|
|
12
|
+
if (selector !== undefined && parameters !== undefined) {
|
|
13
|
+
throw new SimStatesInvalidDefinition(`The ${named} carries both ItemSelector and Parameters. Parameters is ` +
|
|
14
|
+
"the older spelling of ItemSelector, and a Map state carries one of " +
|
|
15
|
+
"them.");
|
|
16
|
+
}
|
|
17
|
+
// A field written as null is a Payload Template that is not an object, and
|
|
18
|
+
// is refused below. Falling back to the other spelling would take it for a
|
|
19
|
+
// Map state that carries neither.
|
|
20
|
+
const written = selector === undefined ? parameters : selector;
|
|
21
|
+
if (written === undefined) {
|
|
22
|
+
return {};
|
|
23
|
+
}
|
|
24
|
+
if (!isRecord(written)) {
|
|
25
|
+
throw new SimStatesInvalidDefinition(`The ${named} has an ItemSelector that is not an object. It is a ` +
|
|
26
|
+
"Payload Template, which builds what each iteration is given.");
|
|
27
|
+
}
|
|
28
|
+
return { ItemSelector: written };
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Read where the items come from, which is the whole input by default.
|
|
32
|
+
*/
|
|
33
|
+
export function readSimStatesItemsPath(named, state) {
|
|
34
|
+
const written = state["ItemsPath"];
|
|
35
|
+
if (written === undefined) {
|
|
36
|
+
return {};
|
|
37
|
+
}
|
|
38
|
+
if (typeof written !== "string") {
|
|
39
|
+
throw new SimStatesInvalidDefinition(`The ${named} has an ItemsPath that is not a Reference Path.`);
|
|
40
|
+
}
|
|
41
|
+
parseSimStatesReadPath(written);
|
|
42
|
+
return { ItemsPath: written };
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Read how many iterations may run at once.
|
|
46
|
+
*/
|
|
47
|
+
export function readSimStatesMaxConcurrency(named, state) {
|
|
48
|
+
const written = state["MaxConcurrency"];
|
|
49
|
+
if (written === undefined) {
|
|
50
|
+
return {};
|
|
51
|
+
}
|
|
52
|
+
if (typeof written !== "number" ||
|
|
53
|
+
!Number.isSafeInteger(written) ||
|
|
54
|
+
written < 0) {
|
|
55
|
+
throw new SimStatesInvalidDefinition(`The ${named} has a MaxConcurrency of ${JSON.stringify(written)}. It ` +
|
|
56
|
+
"is a whole number from 0, where 0 runs every iteration at once.");
|
|
57
|
+
}
|
|
58
|
+
return { MaxConcurrency: written };
|
|
59
|
+
}
|
|
60
|
+
//# sourceMappingURL=sim-states-map-fields.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-states-map-fields.js","sourceRoot":"","sources":["../../../../src/service/stepfunctions/definition/sim-states-map-fields.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,oCAAoC,CAAC;AAC9D,OAAO,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAC;AAC5E,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAElF;;;;;GAKG;AACH,MAAM,UAAU,yBAAyB,CACvC,KAAa,EACb,KAAgC,EAChC,UAAiC;IAEjC,MAAM,QAAQ,GAAG,KAAK,CAAC,cAAc,CAAC,CAAC;IAEvC,IAAI,QAAQ,KAAK,SAAS,IAAI,UAAU,KAAK,SAAS,EAAE,CAAC;QACvD,MAAM,IAAI,0BAA0B,CAClC,OAAO,KAAK,2DAA2D;YACrE,qEAAqE;YACrE,OAAO,CACV,CAAC;IACJ,CAAC;IAED,2EAA2E;IAC3E,2EAA2E;IAC3E,kCAAkC;IAClC,MAAM,OAAO,GAAG,QAAQ,KAAK,SAAS,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,QAAQ,CAAC;IAE/D,IAAI,OAAO,KAAK,SAAS,EAAE,CAAC;QAC1B,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC;QACvB,MAAM,IAAI,0BAA0B,CAClC,OAAO,KAAK,sDAAsD;YAChE,8DAA8D,CACjE,CAAC;IACJ,CAAC;IAED,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,CAAC;AACnC,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,sBAAsB,CACpC,KAAa,EACb,KAAgC;IAEhC,MAAM,OAAO,GAAG,KAAK,CAAC,WAAW,CAAC,CAAC;IAEnC,IAAI,OAAO,KAAK,SAAS,EAAE,CAAC;QAC1B,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,IAAI,OAAO,OAAO,KAAK,QAAQ,EAAE,CAAC;QAChC,MAAM,IAAI,0BAA0B,CAClC,OAAO,KAAK,iDAAiD,CAC9D,CAAC;IACJ,CAAC;IAED,sBAAsB,CAAC,OAAO,CAAC,CAAC;IAEhC,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC;AAChC,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,2BAA2B,CACzC,KAAa,EACb,KAAgC;IAEhC,MAAM,OAAO,GAAG,KAAK,CAAC,gBAAgB,CAAC,CAAC;IAExC,IAAI,OAAO,KAAK,SAAS,EAAE,CAAC;QAC1B,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,IACE,OAAO,OAAO,KAAK,QAAQ;QAC3B,CAAC,MAAM,CAAC,aAAa,CAAC,OAAO,CAAC;QAC9B,OAAO,GAAG,CAAC,EACX,CAAC;QACD,MAAM,IAAI,0BAA0B,CAClC,OAAO,KAAK,4BAA4B,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,OAAO;YACpE,iEAAiE,CACpE,CAAC;IACJ,CAAC;IAED,OAAO,EAAE,cAAc,EAAE,OAAO,EAAE,CAAC;AACrC,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { JSONValue } from "../../../util/type-guard/json.js";
|
|
2
|
+
import type { SimStatesMapState } from "./sim-states-state.js";
|
|
3
|
+
/**
|
|
4
|
+
* Read a `Map` state, whose item processor is read as the state is.
|
|
5
|
+
*
|
|
6
|
+
* The processor is a state machine of its own, so the states inside it are
|
|
7
|
+
* read the same way the states around them are. `Parameters` is the older
|
|
8
|
+
* spelling of `ItemSelector` and arrives as one, which leaves a `Map` state
|
|
9
|
+
* with no data-flow `Parameters` of its own.
|
|
10
|
+
*/
|
|
11
|
+
export declare function readSimStatesMapState(name: string, state: Record<string, JSONValue>): SimStatesMapState;
|
|
12
|
+
//# sourceMappingURL=sim-states-map-parse.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sim-states-map-parse.d.ts","sourceRoot":"","sources":["../../../../src/service/stepfunctions/definition/sim-states-map-parse.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AASlE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAsB/D;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAC/B,iBAAiB,CAenB"}
|