@aws-sdk/client-swf 3.35.0 → 3.38.0
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/CHANGELOG.md +47 -0
- package/dist-cjs/SWF.js +0 -19
- package/dist-cjs/SWFClient.js +0 -24
- package/dist-cjs/commands/CountClosedWorkflowExecutionsCommand.js +0 -71
- package/dist-cjs/commands/CountOpenWorkflowExecutionsCommand.js +0 -71
- package/dist-cjs/commands/CountPendingActivityTasksCommand.js +0 -52
- package/dist-cjs/commands/CountPendingDecisionTasksCommand.js +0 -52
- package/dist-cjs/commands/DeprecateActivityTypeCommand.js +0 -67
- package/dist-cjs/commands/DeprecateDomainCommand.js +0 -56
- package/dist-cjs/commands/DeprecateWorkflowTypeCommand.js +0 -68
- package/dist-cjs/commands/DescribeActivityTypeCommand.js +0 -63
- package/dist-cjs/commands/DescribeDomainCommand.js +0 -49
- package/dist-cjs/commands/DescribeWorkflowExecutionCommand.js +0 -53
- package/dist-cjs/commands/DescribeWorkflowTypeCommand.js +0 -63
- package/dist-cjs/commands/GetWorkflowExecutionHistoryCommand.js +0 -54
- package/dist-cjs/commands/ListActivityTypesCommand.js +0 -52
- package/dist-cjs/commands/ListClosedWorkflowExecutionsCommand.js +0 -72
- package/dist-cjs/commands/ListDomainsCommand.js +0 -56
- package/dist-cjs/commands/ListOpenWorkflowExecutionsCommand.js +0 -72
- package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -25
- package/dist-cjs/commands/ListWorkflowTypesCommand.js +0 -49
- package/dist-cjs/commands/PollForActivityTaskCommand.js +0 -60
- package/dist-cjs/commands/PollForDecisionTaskCommand.js +0 -72
- package/dist-cjs/commands/RecordActivityTaskHeartbeatCommand.js +0 -72
- package/dist-cjs/commands/RegisterActivityTypeCommand.js +0 -71
- package/dist-cjs/commands/RegisterDomainCommand.js +0 -48
- package/dist-cjs/commands/RegisterWorkflowTypeCommand.js +0 -72
- package/dist-cjs/commands/RequestCancelWorkflowExecutionCommand.js +0 -63
- package/dist-cjs/commands/RespondActivityTaskCanceledCommand.js +0 -66
- package/dist-cjs/commands/RespondActivityTaskCompletedCommand.js +0 -64
- package/dist-cjs/commands/RespondActivityTaskFailedCommand.js +0 -57
- package/dist-cjs/commands/RespondDecisionTaskCompletedCommand.js +0 -44
- package/dist-cjs/commands/SignalWorkflowExecutionCommand.js +0 -63
- package/dist-cjs/commands/StartWorkflowExecutionCommand.js +0 -90
- package/dist-cjs/commands/TagResourceCommand.js +0 -28
- package/dist-cjs/commands/TerminateWorkflowExecutionCommand.js +0 -68
- package/dist-cjs/commands/UndeprecateActivityTypeCommand.js +0 -66
- package/dist-cjs/commands/UndeprecateDomainCommand.js +0 -53
- package/dist-cjs/commands/UndeprecateWorkflowTypeCommand.js +0 -66
- package/dist-cjs/commands/UntagResourceCommand.js +0 -25
- package/dist-cjs/commands/index.js +40 -0
- package/dist-cjs/endpoints.js +1 -2
- package/dist-cjs/index.js +4 -48
- package/dist-cjs/models/index.js +0 -1
- package/dist-cjs/models/models_0.js +0 -454
- package/dist-cjs/pagination/GetWorkflowExecutionHistoryPaginator.js +0 -11
- package/dist-cjs/pagination/Interfaces.js +0 -1
- package/dist-cjs/pagination/ListActivityTypesPaginator.js +0 -11
- package/dist-cjs/pagination/ListClosedWorkflowExecutionsPaginator.js +0 -11
- package/dist-cjs/pagination/ListDomainsPaginator.js +0 -11
- package/dist-cjs/pagination/ListOpenWorkflowExecutionsPaginator.js +0 -11
- package/dist-cjs/pagination/ListWorkflowTypesPaginator.js +0 -11
- package/dist-cjs/pagination/PollForDecisionTaskPaginator.js +0 -11
- package/dist-cjs/pagination/index.js +11 -0
- package/dist-cjs/protocols/Aws_json1_0.js +0 -6
- package/dist-cjs/runtimeConfig.browser.js +1 -6
- package/dist-cjs/runtimeConfig.js +2 -7
- package/dist-cjs/runtimeConfig.native.js +0 -4
- package/dist-cjs/runtimeConfig.shared.js +0 -4
- package/dist-es/SWF.js +0 -1
- package/dist-es/SWFClient.js +0 -1
- package/dist-es/commands/CountClosedWorkflowExecutionsCommand.js +0 -1
- package/dist-es/commands/CountOpenWorkflowExecutionsCommand.js +0 -1
- package/dist-es/commands/CountPendingActivityTasksCommand.js +0 -1
- package/dist-es/commands/CountPendingDecisionTasksCommand.js +0 -1
- package/dist-es/commands/DeprecateActivityTypeCommand.js +0 -1
- package/dist-es/commands/DeprecateDomainCommand.js +0 -1
- package/dist-es/commands/DeprecateWorkflowTypeCommand.js +0 -1
- package/dist-es/commands/DescribeActivityTypeCommand.js +0 -1
- package/dist-es/commands/DescribeDomainCommand.js +0 -1
- package/dist-es/commands/DescribeWorkflowExecutionCommand.js +0 -1
- package/dist-es/commands/DescribeWorkflowTypeCommand.js +0 -1
- package/dist-es/commands/GetWorkflowExecutionHistoryCommand.js +0 -1
- package/dist-es/commands/ListActivityTypesCommand.js +0 -1
- package/dist-es/commands/ListClosedWorkflowExecutionsCommand.js +0 -1
- package/dist-es/commands/ListDomainsCommand.js +0 -1
- package/dist-es/commands/ListOpenWorkflowExecutionsCommand.js +0 -1
- package/dist-es/commands/ListTagsForResourceCommand.js +0 -1
- package/dist-es/commands/ListWorkflowTypesCommand.js +0 -1
- package/dist-es/commands/PollForActivityTaskCommand.js +0 -1
- package/dist-es/commands/PollForDecisionTaskCommand.js +0 -1
- package/dist-es/commands/RecordActivityTaskHeartbeatCommand.js +0 -1
- package/dist-es/commands/RegisterActivityTypeCommand.js +0 -1
- package/dist-es/commands/RegisterDomainCommand.js +0 -1
- package/dist-es/commands/RegisterWorkflowTypeCommand.js +0 -1
- package/dist-es/commands/RequestCancelWorkflowExecutionCommand.js +0 -1
- package/dist-es/commands/RespondActivityTaskCanceledCommand.js +0 -1
- package/dist-es/commands/RespondActivityTaskCompletedCommand.js +0 -1
- package/dist-es/commands/RespondActivityTaskFailedCommand.js +0 -1
- package/dist-es/commands/RespondDecisionTaskCompletedCommand.js +0 -1
- package/dist-es/commands/SignalWorkflowExecutionCommand.js +0 -1
- package/dist-es/commands/StartWorkflowExecutionCommand.js +0 -1
- package/dist-es/commands/TagResourceCommand.js +0 -1
- package/dist-es/commands/TerminateWorkflowExecutionCommand.js +0 -1
- package/dist-es/commands/UndeprecateActivityTypeCommand.js +0 -1
- package/dist-es/commands/UndeprecateDomainCommand.js +0 -1
- package/dist-es/commands/UndeprecateWorkflowTypeCommand.js +0 -1
- package/dist-es/commands/UntagResourceCommand.js +0 -1
- package/dist-es/commands/index.js +37 -0
- package/dist-es/endpoints.js +1 -2
- package/dist-es/index.js +4 -48
- package/dist-es/models/index.js +0 -1
- package/dist-es/models/models_0.js +0 -1
- package/dist-es/pagination/GetWorkflowExecutionHistoryPaginator.js +0 -1
- package/dist-es/pagination/Interfaces.js +0 -1
- package/dist-es/pagination/ListActivityTypesPaginator.js +0 -1
- package/dist-es/pagination/ListClosedWorkflowExecutionsPaginator.js +0 -1
- package/dist-es/pagination/ListDomainsPaginator.js +0 -1
- package/dist-es/pagination/ListOpenWorkflowExecutionsPaginator.js +0 -1
- package/dist-es/pagination/ListWorkflowTypesPaginator.js +0 -1
- package/dist-es/pagination/PollForDecisionTaskPaginator.js +0 -1
- package/dist-es/pagination/index.js +8 -0
- package/dist-es/protocols/Aws_json1_0.js +0 -1
- package/dist-es/runtimeConfig.browser.js +1 -2
- package/dist-es/runtimeConfig.js +2 -3
- package/dist-es/runtimeConfig.native.js +0 -1
- package/dist-es/runtimeConfig.shared.js +0 -1
- package/dist-types/commands/index.d.ts +37 -0
- package/dist-types/index.d.ts +4 -47
- package/dist-types/pagination/index.d.ts +8 -0
- package/dist-types/ts3.4/SWF.d.ts +16 -1467
- package/dist-types/ts3.4/SWFClient.d.ts +24 -104
- package/dist-types/ts3.4/commands/CountClosedWorkflowExecutionsCommand.d.ts +2 -66
- package/dist-types/ts3.4/commands/CountOpenWorkflowExecutionsCommand.d.ts +2 -66
- package/dist-types/ts3.4/commands/CountPendingActivityTasksCommand.d.ts +2 -47
- package/dist-types/ts3.4/commands/CountPendingDecisionTasksCommand.d.ts +2 -47
- package/dist-types/ts3.4/commands/DeprecateActivityTypeCommand.d.ts +2 -62
- package/dist-types/ts3.4/commands/DeprecateDomainCommand.d.ts +2 -51
- package/dist-types/ts3.4/commands/DeprecateWorkflowTypeCommand.d.ts +2 -63
- package/dist-types/ts3.4/commands/DescribeActivityTypeCommand.d.ts +2 -58
- package/dist-types/ts3.4/commands/DescribeDomainCommand.d.ts +2 -44
- package/dist-types/ts3.4/commands/DescribeWorkflowExecutionCommand.d.ts +2 -48
- package/dist-types/ts3.4/commands/DescribeWorkflowTypeCommand.d.ts +2 -58
- package/dist-types/ts3.4/commands/GetWorkflowExecutionHistoryCommand.d.ts +2 -49
- package/dist-types/ts3.4/commands/ListActivityTypesCommand.d.ts +2 -47
- package/dist-types/ts3.4/commands/ListClosedWorkflowExecutionsCommand.d.ts +2 -67
- package/dist-types/ts3.4/commands/ListDomainsCommand.d.ts +0 -58
- package/dist-types/ts3.4/commands/ListOpenWorkflowExecutionsCommand.d.ts +2 -67
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListWorkflowTypesCommand.d.ts +2 -44
- package/dist-types/ts3.4/commands/PollForActivityTaskCommand.d.ts +2 -55
- package/dist-types/ts3.4/commands/PollForDecisionTaskCommand.d.ts +2 -67
- package/dist-types/ts3.4/commands/RecordActivityTaskHeartbeatCommand.d.ts +2 -67
- package/dist-types/ts3.4/commands/RegisterActivityTypeCommand.d.ts +2 -66
- package/dist-types/ts3.4/commands/RegisterDomainCommand.d.ts +2 -43
- package/dist-types/ts3.4/commands/RegisterWorkflowTypeCommand.d.ts +2 -67
- package/dist-types/ts3.4/commands/RequestCancelWorkflowExecutionCommand.d.ts +2 -58
- package/dist-types/ts3.4/commands/RespondActivityTaskCanceledCommand.d.ts +2 -61
- package/dist-types/ts3.4/commands/RespondActivityTaskCompletedCommand.d.ts +2 -59
- package/dist-types/ts3.4/commands/RespondActivityTaskFailedCommand.d.ts +2 -52
- package/dist-types/ts3.4/commands/RespondDecisionTaskCompletedCommand.d.ts +2 -39
- package/dist-types/ts3.4/commands/SignalWorkflowExecutionCommand.d.ts +2 -58
- package/dist-types/ts3.4/commands/StartWorkflowExecutionCommand.d.ts +2 -85
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/TerminateWorkflowExecutionCommand.d.ts +2 -63
- package/dist-types/ts3.4/commands/UndeprecateActivityTypeCommand.d.ts +2 -61
- package/dist-types/ts3.4/commands/UndeprecateDomainCommand.d.ts +2 -48
- package/dist-types/ts3.4/commands/UndeprecateWorkflowTypeCommand.d.ts +2 -61
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/index.d.ts +37 -0
- package/dist-types/ts3.4/index.d.ts +4 -47
- package/dist-types/ts3.4/models/models_0.d.ts +865 -4636
- package/dist-types/ts3.4/pagination/index.d.ts +8 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/package.json +33 -30
- package/dist-cjs/SWF.js.map +0 -1
- package/dist-cjs/SWFClient.js.map +0 -1
- package/dist-cjs/commands/CountClosedWorkflowExecutionsCommand.js.map +0 -1
- package/dist-cjs/commands/CountOpenWorkflowExecutionsCommand.js.map +0 -1
- package/dist-cjs/commands/CountPendingActivityTasksCommand.js.map +0 -1
- package/dist-cjs/commands/CountPendingDecisionTasksCommand.js.map +0 -1
- package/dist-cjs/commands/DeprecateActivityTypeCommand.js.map +0 -1
- package/dist-cjs/commands/DeprecateDomainCommand.js.map +0 -1
- package/dist-cjs/commands/DeprecateWorkflowTypeCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeActivityTypeCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeDomainCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeWorkflowExecutionCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeWorkflowTypeCommand.js.map +0 -1
- package/dist-cjs/commands/GetWorkflowExecutionHistoryCommand.js.map +0 -1
- package/dist-cjs/commands/ListActivityTypesCommand.js.map +0 -1
- package/dist-cjs/commands/ListClosedWorkflowExecutionsCommand.js.map +0 -1
- package/dist-cjs/commands/ListDomainsCommand.js.map +0 -1
- package/dist-cjs/commands/ListOpenWorkflowExecutionsCommand.js.map +0 -1
- package/dist-cjs/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist-cjs/commands/ListWorkflowTypesCommand.js.map +0 -1
- package/dist-cjs/commands/PollForActivityTaskCommand.js.map +0 -1
- package/dist-cjs/commands/PollForDecisionTaskCommand.js.map +0 -1
- package/dist-cjs/commands/RecordActivityTaskHeartbeatCommand.js.map +0 -1
- package/dist-cjs/commands/RegisterActivityTypeCommand.js.map +0 -1
- package/dist-cjs/commands/RegisterDomainCommand.js.map +0 -1
- package/dist-cjs/commands/RegisterWorkflowTypeCommand.js.map +0 -1
- package/dist-cjs/commands/RequestCancelWorkflowExecutionCommand.js.map +0 -1
- package/dist-cjs/commands/RespondActivityTaskCanceledCommand.js.map +0 -1
- package/dist-cjs/commands/RespondActivityTaskCompletedCommand.js.map +0 -1
- package/dist-cjs/commands/RespondActivityTaskFailedCommand.js.map +0 -1
- package/dist-cjs/commands/RespondDecisionTaskCompletedCommand.js.map +0 -1
- package/dist-cjs/commands/SignalWorkflowExecutionCommand.js.map +0 -1
- package/dist-cjs/commands/StartWorkflowExecutionCommand.js.map +0 -1
- package/dist-cjs/commands/TagResourceCommand.js.map +0 -1
- package/dist-cjs/commands/TerminateWorkflowExecutionCommand.js.map +0 -1
- package/dist-cjs/commands/UndeprecateActivityTypeCommand.js.map +0 -1
- package/dist-cjs/commands/UndeprecateDomainCommand.js.map +0 -1
- package/dist-cjs/commands/UndeprecateWorkflowTypeCommand.js.map +0 -1
- package/dist-cjs/commands/UntagResourceCommand.js.map +0 -1
- package/dist-cjs/endpoints.js.map +0 -1
- package/dist-cjs/index.js.map +0 -1
- package/dist-cjs/models/index.js.map +0 -1
- package/dist-cjs/models/models_0.js.map +0 -1
- package/dist-cjs/pagination/GetWorkflowExecutionHistoryPaginator.js.map +0 -1
- package/dist-cjs/pagination/Interfaces.js.map +0 -1
- package/dist-cjs/pagination/ListActivityTypesPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListClosedWorkflowExecutionsPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListDomainsPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListOpenWorkflowExecutionsPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListWorkflowTypesPaginator.js.map +0 -1
- package/dist-cjs/pagination/PollForDecisionTaskPaginator.js.map +0 -1
- package/dist-cjs/protocols/Aws_json1_0.js.map +0 -1
- package/dist-cjs/runtimeConfig.browser.js.map +0 -1
- package/dist-cjs/runtimeConfig.js.map +0 -1
- package/dist-cjs/runtimeConfig.native.js.map +0 -1
- package/dist-cjs/runtimeConfig.shared.js.map +0 -1
- package/dist-es/SWF.js.map +0 -1
- package/dist-es/SWFClient.js.map +0 -1
- package/dist-es/commands/CountClosedWorkflowExecutionsCommand.js.map +0 -1
- package/dist-es/commands/CountOpenWorkflowExecutionsCommand.js.map +0 -1
- package/dist-es/commands/CountPendingActivityTasksCommand.js.map +0 -1
- package/dist-es/commands/CountPendingDecisionTasksCommand.js.map +0 -1
- package/dist-es/commands/DeprecateActivityTypeCommand.js.map +0 -1
- package/dist-es/commands/DeprecateDomainCommand.js.map +0 -1
- package/dist-es/commands/DeprecateWorkflowTypeCommand.js.map +0 -1
- package/dist-es/commands/DescribeActivityTypeCommand.js.map +0 -1
- package/dist-es/commands/DescribeDomainCommand.js.map +0 -1
- package/dist-es/commands/DescribeWorkflowExecutionCommand.js.map +0 -1
- package/dist-es/commands/DescribeWorkflowTypeCommand.js.map +0 -1
- package/dist-es/commands/GetWorkflowExecutionHistoryCommand.js.map +0 -1
- package/dist-es/commands/ListActivityTypesCommand.js.map +0 -1
- package/dist-es/commands/ListClosedWorkflowExecutionsCommand.js.map +0 -1
- package/dist-es/commands/ListDomainsCommand.js.map +0 -1
- package/dist-es/commands/ListOpenWorkflowExecutionsCommand.js.map +0 -1
- package/dist-es/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist-es/commands/ListWorkflowTypesCommand.js.map +0 -1
- package/dist-es/commands/PollForActivityTaskCommand.js.map +0 -1
- package/dist-es/commands/PollForDecisionTaskCommand.js.map +0 -1
- package/dist-es/commands/RecordActivityTaskHeartbeatCommand.js.map +0 -1
- package/dist-es/commands/RegisterActivityTypeCommand.js.map +0 -1
- package/dist-es/commands/RegisterDomainCommand.js.map +0 -1
- package/dist-es/commands/RegisterWorkflowTypeCommand.js.map +0 -1
- package/dist-es/commands/RequestCancelWorkflowExecutionCommand.js.map +0 -1
- package/dist-es/commands/RespondActivityTaskCanceledCommand.js.map +0 -1
- package/dist-es/commands/RespondActivityTaskCompletedCommand.js.map +0 -1
- package/dist-es/commands/RespondActivityTaskFailedCommand.js.map +0 -1
- package/dist-es/commands/RespondDecisionTaskCompletedCommand.js.map +0 -1
- package/dist-es/commands/SignalWorkflowExecutionCommand.js.map +0 -1
- package/dist-es/commands/StartWorkflowExecutionCommand.js.map +0 -1
- package/dist-es/commands/TagResourceCommand.js.map +0 -1
- package/dist-es/commands/TerminateWorkflowExecutionCommand.js.map +0 -1
- package/dist-es/commands/UndeprecateActivityTypeCommand.js.map +0 -1
- package/dist-es/commands/UndeprecateDomainCommand.js.map +0 -1
- package/dist-es/commands/UndeprecateWorkflowTypeCommand.js.map +0 -1
- package/dist-es/commands/UntagResourceCommand.js.map +0 -1
- package/dist-es/endpoints.js.map +0 -1
- package/dist-es/index.js.map +0 -1
- package/dist-es/models/index.js.map +0 -1
- package/dist-es/models/models_0.js.map +0 -1
- package/dist-es/pagination/GetWorkflowExecutionHistoryPaginator.js.map +0 -1
- package/dist-es/pagination/Interfaces.js.map +0 -1
- package/dist-es/pagination/ListActivityTypesPaginator.js.map +0 -1
- package/dist-es/pagination/ListClosedWorkflowExecutionsPaginator.js.map +0 -1
- package/dist-es/pagination/ListDomainsPaginator.js.map +0 -1
- package/dist-es/pagination/ListOpenWorkflowExecutionsPaginator.js.map +0 -1
- package/dist-es/pagination/ListWorkflowTypesPaginator.js.map +0 -1
- package/dist-es/pagination/PollForDecisionTaskPaginator.js.map +0 -1
- package/dist-es/protocols/Aws_json1_0.js.map +0 -1
- package/dist-es/runtimeConfig.browser.js.map +0 -1
- package/dist-es/runtimeConfig.js.map +0 -1
- package/dist-es/runtimeConfig.native.js.map +0 -1
- package/dist-es/runtimeConfig.shared.js.map +0 -1
- package/jest.config.js +0 -4
- package/src/SWF.ts +0 -2640
- package/src/SWFClient.ts +0 -446
- package/src/commands/CountClosedWorkflowExecutionsCommand.ts +0 -144
- package/src/commands/CountOpenWorkflowExecutionsCommand.ts +0 -144
- package/src/commands/CountPendingActivityTasksCommand.ts +0 -125
- package/src/commands/CountPendingDecisionTasksCommand.ts +0 -125
- package/src/commands/DeprecateActivityTypeCommand.ts +0 -137
- package/src/commands/DeprecateDomainCommand.ts +0 -126
- package/src/commands/DeprecateWorkflowTypeCommand.ts +0 -138
- package/src/commands/DescribeActivityTypeCommand.ts +0 -133
- package/src/commands/DescribeDomainCommand.ts +0 -119
- package/src/commands/DescribeWorkflowExecutionCommand.ts +0 -126
- package/src/commands/DescribeWorkflowTypeCommand.ts +0 -133
- package/src/commands/GetWorkflowExecutionHistoryCommand.ts +0 -127
- package/src/commands/ListActivityTypesCommand.ts +0 -122
- package/src/commands/ListClosedWorkflowExecutionsCommand.ts +0 -145
- package/src/commands/ListDomainsCommand.ts +0 -126
- package/src/commands/ListOpenWorkflowExecutionsCommand.ts +0 -145
- package/src/commands/ListTagsForResourceCommand.ts +0 -95
- package/src/commands/ListWorkflowTypesCommand.ts +0 -119
- package/src/commands/PollForActivityTaskCommand.ts +0 -130
- package/src/commands/PollForDecisionTaskCommand.ts +0 -142
- package/src/commands/RecordActivityTaskHeartbeatCommand.ts +0 -145
- package/src/commands/RegisterActivityTypeCommand.ts +0 -141
- package/src/commands/RegisterDomainCommand.ts +0 -118
- package/src/commands/RegisterWorkflowTypeCommand.ts +0 -142
- package/src/commands/RequestCancelWorkflowExecutionCommand.ts +0 -139
- package/src/commands/RespondActivityTaskCanceledCommand.ts +0 -139
- package/src/commands/RespondActivityTaskCompletedCommand.ts +0 -137
- package/src/commands/RespondActivityTaskFailedCommand.ts +0 -130
- package/src/commands/RespondDecisionTaskCompletedCommand.ts +0 -117
- package/src/commands/SignalWorkflowExecutionCommand.ts +0 -133
- package/src/commands/StartWorkflowExecutionCommand.ts +0 -160
- package/src/commands/TagResourceCommand.ts +0 -98
- package/src/commands/TerminateWorkflowExecutionCommand.ts +0 -141
- package/src/commands/UndeprecateActivityTypeCommand.ts +0 -136
- package/src/commands/UndeprecateDomainCommand.ts +0 -123
- package/src/commands/UndeprecateWorkflowTypeCommand.ts +0 -136
- package/src/commands/UntagResourceCommand.ts +0 -95
- package/src/endpoints.ts +0 -86
- package/src/index.ts +0 -48
- package/src/models/index.ts +0 -1
- package/src/models/models_0.ts +0 -7233
- package/src/pagination/GetWorkflowExecutionHistoryPaginator.ts +0 -59
- package/src/pagination/Interfaces.ts +0 -8
- package/src/pagination/ListActivityTypesPaginator.ts +0 -59
- package/src/pagination/ListClosedWorkflowExecutionsPaginator.ts +0 -59
- package/src/pagination/ListDomainsPaginator.ts +0 -55
- package/src/pagination/ListOpenWorkflowExecutionsPaginator.ts +0 -59
- package/src/pagination/ListWorkflowTypesPaginator.ts +0 -59
- package/src/pagination/PollForDecisionTaskPaginator.ts +0 -59
- package/src/protocols/Aws_json1_0.ts +0 -5978
- package/src/runtimeConfig.browser.ts +0 -41
- package/src/runtimeConfig.native.ts +0 -17
- package/src/runtimeConfig.shared.ts +0 -17
- package/src/runtimeConfig.ts +0 -46
- package/tsconfig.es.json +0 -10
- package/tsconfig.json +0 -33
- package/tsconfig.types.json +0 -9
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { Paginator } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
GetWorkflowExecutionHistoryCommand,
|
|
5
|
-
GetWorkflowExecutionHistoryCommandInput,
|
|
6
|
-
GetWorkflowExecutionHistoryCommandOutput,
|
|
7
|
-
} from "../commands/GetWorkflowExecutionHistoryCommand";
|
|
8
|
-
import { SWF } from "../SWF";
|
|
9
|
-
import { SWFClient } from "../SWFClient";
|
|
10
|
-
import { SWFPaginationConfiguration } from "./Interfaces";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @private
|
|
14
|
-
*/
|
|
15
|
-
const makePagedClientRequest = async (
|
|
16
|
-
client: SWFClient,
|
|
17
|
-
input: GetWorkflowExecutionHistoryCommandInput,
|
|
18
|
-
...args: any
|
|
19
|
-
): Promise<GetWorkflowExecutionHistoryCommandOutput> => {
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
return await client.send(new GetWorkflowExecutionHistoryCommand(input), ...args);
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @private
|
|
25
|
-
*/
|
|
26
|
-
const makePagedRequest = async (
|
|
27
|
-
client: SWF,
|
|
28
|
-
input: GetWorkflowExecutionHistoryCommandInput,
|
|
29
|
-
...args: any
|
|
30
|
-
): Promise<GetWorkflowExecutionHistoryCommandOutput> => {
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
return await client.getWorkflowExecutionHistory(input, ...args);
|
|
33
|
-
};
|
|
34
|
-
export async function* paginateGetWorkflowExecutionHistory(
|
|
35
|
-
config: SWFPaginationConfiguration,
|
|
36
|
-
input: GetWorkflowExecutionHistoryCommandInput,
|
|
37
|
-
...additionalArguments: any
|
|
38
|
-
): Paginator<GetWorkflowExecutionHistoryCommandOutput> {
|
|
39
|
-
// ToDo: replace with actual type instead of typeof input.nextPageToken
|
|
40
|
-
let token: typeof input.nextPageToken | undefined = config.startingToken || undefined;
|
|
41
|
-
let hasNext = true;
|
|
42
|
-
let page: GetWorkflowExecutionHistoryCommandOutput;
|
|
43
|
-
while (hasNext) {
|
|
44
|
-
input.nextPageToken = token;
|
|
45
|
-
input["maximumPageSize"] = config.pageSize;
|
|
46
|
-
if (config.client instanceof SWF) {
|
|
47
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
48
|
-
} else if (config.client instanceof SWFClient) {
|
|
49
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
50
|
-
} else {
|
|
51
|
-
throw new Error("Invalid client, expected SWF | SWFClient");
|
|
52
|
-
}
|
|
53
|
-
yield page;
|
|
54
|
-
token = page.nextPageToken;
|
|
55
|
-
hasNext = !!token;
|
|
56
|
-
}
|
|
57
|
-
// @ts-ignore
|
|
58
|
-
return undefined;
|
|
59
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { Paginator } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
ListActivityTypesCommand,
|
|
5
|
-
ListActivityTypesCommandInput,
|
|
6
|
-
ListActivityTypesCommandOutput,
|
|
7
|
-
} from "../commands/ListActivityTypesCommand";
|
|
8
|
-
import { SWF } from "../SWF";
|
|
9
|
-
import { SWFClient } from "../SWFClient";
|
|
10
|
-
import { SWFPaginationConfiguration } from "./Interfaces";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @private
|
|
14
|
-
*/
|
|
15
|
-
const makePagedClientRequest = async (
|
|
16
|
-
client: SWFClient,
|
|
17
|
-
input: ListActivityTypesCommandInput,
|
|
18
|
-
...args: any
|
|
19
|
-
): Promise<ListActivityTypesCommandOutput> => {
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
return await client.send(new ListActivityTypesCommand(input), ...args);
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @private
|
|
25
|
-
*/
|
|
26
|
-
const makePagedRequest = async (
|
|
27
|
-
client: SWF,
|
|
28
|
-
input: ListActivityTypesCommandInput,
|
|
29
|
-
...args: any
|
|
30
|
-
): Promise<ListActivityTypesCommandOutput> => {
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
return await client.listActivityTypes(input, ...args);
|
|
33
|
-
};
|
|
34
|
-
export async function* paginateListActivityTypes(
|
|
35
|
-
config: SWFPaginationConfiguration,
|
|
36
|
-
input: ListActivityTypesCommandInput,
|
|
37
|
-
...additionalArguments: any
|
|
38
|
-
): Paginator<ListActivityTypesCommandOutput> {
|
|
39
|
-
// ToDo: replace with actual type instead of typeof input.nextPageToken
|
|
40
|
-
let token: typeof input.nextPageToken | undefined = config.startingToken || undefined;
|
|
41
|
-
let hasNext = true;
|
|
42
|
-
let page: ListActivityTypesCommandOutput;
|
|
43
|
-
while (hasNext) {
|
|
44
|
-
input.nextPageToken = token;
|
|
45
|
-
input["maximumPageSize"] = config.pageSize;
|
|
46
|
-
if (config.client instanceof SWF) {
|
|
47
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
48
|
-
} else if (config.client instanceof SWFClient) {
|
|
49
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
50
|
-
} else {
|
|
51
|
-
throw new Error("Invalid client, expected SWF | SWFClient");
|
|
52
|
-
}
|
|
53
|
-
yield page;
|
|
54
|
-
token = page.nextPageToken;
|
|
55
|
-
hasNext = !!token;
|
|
56
|
-
}
|
|
57
|
-
// @ts-ignore
|
|
58
|
-
return undefined;
|
|
59
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { Paginator } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
ListClosedWorkflowExecutionsCommand,
|
|
5
|
-
ListClosedWorkflowExecutionsCommandInput,
|
|
6
|
-
ListClosedWorkflowExecutionsCommandOutput,
|
|
7
|
-
} from "../commands/ListClosedWorkflowExecutionsCommand";
|
|
8
|
-
import { SWF } from "../SWF";
|
|
9
|
-
import { SWFClient } from "../SWFClient";
|
|
10
|
-
import { SWFPaginationConfiguration } from "./Interfaces";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @private
|
|
14
|
-
*/
|
|
15
|
-
const makePagedClientRequest = async (
|
|
16
|
-
client: SWFClient,
|
|
17
|
-
input: ListClosedWorkflowExecutionsCommandInput,
|
|
18
|
-
...args: any
|
|
19
|
-
): Promise<ListClosedWorkflowExecutionsCommandOutput> => {
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
return await client.send(new ListClosedWorkflowExecutionsCommand(input), ...args);
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @private
|
|
25
|
-
*/
|
|
26
|
-
const makePagedRequest = async (
|
|
27
|
-
client: SWF,
|
|
28
|
-
input: ListClosedWorkflowExecutionsCommandInput,
|
|
29
|
-
...args: any
|
|
30
|
-
): Promise<ListClosedWorkflowExecutionsCommandOutput> => {
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
return await client.listClosedWorkflowExecutions(input, ...args);
|
|
33
|
-
};
|
|
34
|
-
export async function* paginateListClosedWorkflowExecutions(
|
|
35
|
-
config: SWFPaginationConfiguration,
|
|
36
|
-
input: ListClosedWorkflowExecutionsCommandInput,
|
|
37
|
-
...additionalArguments: any
|
|
38
|
-
): Paginator<ListClosedWorkflowExecutionsCommandOutput> {
|
|
39
|
-
// ToDo: replace with actual type instead of typeof input.nextPageToken
|
|
40
|
-
let token: typeof input.nextPageToken | undefined = config.startingToken || undefined;
|
|
41
|
-
let hasNext = true;
|
|
42
|
-
let page: ListClosedWorkflowExecutionsCommandOutput;
|
|
43
|
-
while (hasNext) {
|
|
44
|
-
input.nextPageToken = token;
|
|
45
|
-
input["maximumPageSize"] = config.pageSize;
|
|
46
|
-
if (config.client instanceof SWF) {
|
|
47
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
48
|
-
} else if (config.client instanceof SWFClient) {
|
|
49
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
50
|
-
} else {
|
|
51
|
-
throw new Error("Invalid client, expected SWF | SWFClient");
|
|
52
|
-
}
|
|
53
|
-
yield page;
|
|
54
|
-
token = page.nextPageToken;
|
|
55
|
-
hasNext = !!token;
|
|
56
|
-
}
|
|
57
|
-
// @ts-ignore
|
|
58
|
-
return undefined;
|
|
59
|
-
}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { Paginator } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import { ListDomainsCommand, ListDomainsCommandInput, ListDomainsCommandOutput } from "../commands/ListDomainsCommand";
|
|
4
|
-
import { SWF } from "../SWF";
|
|
5
|
-
import { SWFClient } from "../SWFClient";
|
|
6
|
-
import { SWFPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* @private
|
|
10
|
-
*/
|
|
11
|
-
const makePagedClientRequest = async (
|
|
12
|
-
client: SWFClient,
|
|
13
|
-
input: ListDomainsCommandInput,
|
|
14
|
-
...args: any
|
|
15
|
-
): Promise<ListDomainsCommandOutput> => {
|
|
16
|
-
// @ts-ignore
|
|
17
|
-
return await client.send(new ListDomainsCommand(input), ...args);
|
|
18
|
-
};
|
|
19
|
-
/**
|
|
20
|
-
* @private
|
|
21
|
-
*/
|
|
22
|
-
const makePagedRequest = async (
|
|
23
|
-
client: SWF,
|
|
24
|
-
input: ListDomainsCommandInput,
|
|
25
|
-
...args: any
|
|
26
|
-
): Promise<ListDomainsCommandOutput> => {
|
|
27
|
-
// @ts-ignore
|
|
28
|
-
return await client.listDomains(input, ...args);
|
|
29
|
-
};
|
|
30
|
-
export async function* paginateListDomains(
|
|
31
|
-
config: SWFPaginationConfiguration,
|
|
32
|
-
input: ListDomainsCommandInput,
|
|
33
|
-
...additionalArguments: any
|
|
34
|
-
): Paginator<ListDomainsCommandOutput> {
|
|
35
|
-
// ToDo: replace with actual type instead of typeof input.nextPageToken
|
|
36
|
-
let token: typeof input.nextPageToken | undefined = config.startingToken || undefined;
|
|
37
|
-
let hasNext = true;
|
|
38
|
-
let page: ListDomainsCommandOutput;
|
|
39
|
-
while (hasNext) {
|
|
40
|
-
input.nextPageToken = token;
|
|
41
|
-
input["maximumPageSize"] = config.pageSize;
|
|
42
|
-
if (config.client instanceof SWF) {
|
|
43
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
44
|
-
} else if (config.client instanceof SWFClient) {
|
|
45
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
46
|
-
} else {
|
|
47
|
-
throw new Error("Invalid client, expected SWF | SWFClient");
|
|
48
|
-
}
|
|
49
|
-
yield page;
|
|
50
|
-
token = page.nextPageToken;
|
|
51
|
-
hasNext = !!token;
|
|
52
|
-
}
|
|
53
|
-
// @ts-ignore
|
|
54
|
-
return undefined;
|
|
55
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { Paginator } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
ListOpenWorkflowExecutionsCommand,
|
|
5
|
-
ListOpenWorkflowExecutionsCommandInput,
|
|
6
|
-
ListOpenWorkflowExecutionsCommandOutput,
|
|
7
|
-
} from "../commands/ListOpenWorkflowExecutionsCommand";
|
|
8
|
-
import { SWF } from "../SWF";
|
|
9
|
-
import { SWFClient } from "../SWFClient";
|
|
10
|
-
import { SWFPaginationConfiguration } from "./Interfaces";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @private
|
|
14
|
-
*/
|
|
15
|
-
const makePagedClientRequest = async (
|
|
16
|
-
client: SWFClient,
|
|
17
|
-
input: ListOpenWorkflowExecutionsCommandInput,
|
|
18
|
-
...args: any
|
|
19
|
-
): Promise<ListOpenWorkflowExecutionsCommandOutput> => {
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
return await client.send(new ListOpenWorkflowExecutionsCommand(input), ...args);
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @private
|
|
25
|
-
*/
|
|
26
|
-
const makePagedRequest = async (
|
|
27
|
-
client: SWF,
|
|
28
|
-
input: ListOpenWorkflowExecutionsCommandInput,
|
|
29
|
-
...args: any
|
|
30
|
-
): Promise<ListOpenWorkflowExecutionsCommandOutput> => {
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
return await client.listOpenWorkflowExecutions(input, ...args);
|
|
33
|
-
};
|
|
34
|
-
export async function* paginateListOpenWorkflowExecutions(
|
|
35
|
-
config: SWFPaginationConfiguration,
|
|
36
|
-
input: ListOpenWorkflowExecutionsCommandInput,
|
|
37
|
-
...additionalArguments: any
|
|
38
|
-
): Paginator<ListOpenWorkflowExecutionsCommandOutput> {
|
|
39
|
-
// ToDo: replace with actual type instead of typeof input.nextPageToken
|
|
40
|
-
let token: typeof input.nextPageToken | undefined = config.startingToken || undefined;
|
|
41
|
-
let hasNext = true;
|
|
42
|
-
let page: ListOpenWorkflowExecutionsCommandOutput;
|
|
43
|
-
while (hasNext) {
|
|
44
|
-
input.nextPageToken = token;
|
|
45
|
-
input["maximumPageSize"] = config.pageSize;
|
|
46
|
-
if (config.client instanceof SWF) {
|
|
47
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
48
|
-
} else if (config.client instanceof SWFClient) {
|
|
49
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
50
|
-
} else {
|
|
51
|
-
throw new Error("Invalid client, expected SWF | SWFClient");
|
|
52
|
-
}
|
|
53
|
-
yield page;
|
|
54
|
-
token = page.nextPageToken;
|
|
55
|
-
hasNext = !!token;
|
|
56
|
-
}
|
|
57
|
-
// @ts-ignore
|
|
58
|
-
return undefined;
|
|
59
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { Paginator } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
ListWorkflowTypesCommand,
|
|
5
|
-
ListWorkflowTypesCommandInput,
|
|
6
|
-
ListWorkflowTypesCommandOutput,
|
|
7
|
-
} from "../commands/ListWorkflowTypesCommand";
|
|
8
|
-
import { SWF } from "../SWF";
|
|
9
|
-
import { SWFClient } from "../SWFClient";
|
|
10
|
-
import { SWFPaginationConfiguration } from "./Interfaces";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @private
|
|
14
|
-
*/
|
|
15
|
-
const makePagedClientRequest = async (
|
|
16
|
-
client: SWFClient,
|
|
17
|
-
input: ListWorkflowTypesCommandInput,
|
|
18
|
-
...args: any
|
|
19
|
-
): Promise<ListWorkflowTypesCommandOutput> => {
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
return await client.send(new ListWorkflowTypesCommand(input), ...args);
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @private
|
|
25
|
-
*/
|
|
26
|
-
const makePagedRequest = async (
|
|
27
|
-
client: SWF,
|
|
28
|
-
input: ListWorkflowTypesCommandInput,
|
|
29
|
-
...args: any
|
|
30
|
-
): Promise<ListWorkflowTypesCommandOutput> => {
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
return await client.listWorkflowTypes(input, ...args);
|
|
33
|
-
};
|
|
34
|
-
export async function* paginateListWorkflowTypes(
|
|
35
|
-
config: SWFPaginationConfiguration,
|
|
36
|
-
input: ListWorkflowTypesCommandInput,
|
|
37
|
-
...additionalArguments: any
|
|
38
|
-
): Paginator<ListWorkflowTypesCommandOutput> {
|
|
39
|
-
// ToDo: replace with actual type instead of typeof input.nextPageToken
|
|
40
|
-
let token: typeof input.nextPageToken | undefined = config.startingToken || undefined;
|
|
41
|
-
let hasNext = true;
|
|
42
|
-
let page: ListWorkflowTypesCommandOutput;
|
|
43
|
-
while (hasNext) {
|
|
44
|
-
input.nextPageToken = token;
|
|
45
|
-
input["maximumPageSize"] = config.pageSize;
|
|
46
|
-
if (config.client instanceof SWF) {
|
|
47
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
48
|
-
} else if (config.client instanceof SWFClient) {
|
|
49
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
50
|
-
} else {
|
|
51
|
-
throw new Error("Invalid client, expected SWF | SWFClient");
|
|
52
|
-
}
|
|
53
|
-
yield page;
|
|
54
|
-
token = page.nextPageToken;
|
|
55
|
-
hasNext = !!token;
|
|
56
|
-
}
|
|
57
|
-
// @ts-ignore
|
|
58
|
-
return undefined;
|
|
59
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { Paginator } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
PollForDecisionTaskCommand,
|
|
5
|
-
PollForDecisionTaskCommandInput,
|
|
6
|
-
PollForDecisionTaskCommandOutput,
|
|
7
|
-
} from "../commands/PollForDecisionTaskCommand";
|
|
8
|
-
import { SWF } from "../SWF";
|
|
9
|
-
import { SWFClient } from "../SWFClient";
|
|
10
|
-
import { SWFPaginationConfiguration } from "./Interfaces";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @private
|
|
14
|
-
*/
|
|
15
|
-
const makePagedClientRequest = async (
|
|
16
|
-
client: SWFClient,
|
|
17
|
-
input: PollForDecisionTaskCommandInput,
|
|
18
|
-
...args: any
|
|
19
|
-
): Promise<PollForDecisionTaskCommandOutput> => {
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
return await client.send(new PollForDecisionTaskCommand(input), ...args);
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @private
|
|
25
|
-
*/
|
|
26
|
-
const makePagedRequest = async (
|
|
27
|
-
client: SWF,
|
|
28
|
-
input: PollForDecisionTaskCommandInput,
|
|
29
|
-
...args: any
|
|
30
|
-
): Promise<PollForDecisionTaskCommandOutput> => {
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
return await client.pollForDecisionTask(input, ...args);
|
|
33
|
-
};
|
|
34
|
-
export async function* paginatePollForDecisionTask(
|
|
35
|
-
config: SWFPaginationConfiguration,
|
|
36
|
-
input: PollForDecisionTaskCommandInput,
|
|
37
|
-
...additionalArguments: any
|
|
38
|
-
): Paginator<PollForDecisionTaskCommandOutput> {
|
|
39
|
-
// ToDo: replace with actual type instead of typeof input.nextPageToken
|
|
40
|
-
let token: typeof input.nextPageToken | undefined = config.startingToken || undefined;
|
|
41
|
-
let hasNext = true;
|
|
42
|
-
let page: PollForDecisionTaskCommandOutput;
|
|
43
|
-
while (hasNext) {
|
|
44
|
-
input.nextPageToken = token;
|
|
45
|
-
input["maximumPageSize"] = config.pageSize;
|
|
46
|
-
if (config.client instanceof SWF) {
|
|
47
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
48
|
-
} else if (config.client instanceof SWFClient) {
|
|
49
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
50
|
-
} else {
|
|
51
|
-
throw new Error("Invalid client, expected SWF | SWFClient");
|
|
52
|
-
}
|
|
53
|
-
yield page;
|
|
54
|
-
token = page.nextPageToken;
|
|
55
|
-
hasNext = !!token;
|
|
56
|
-
}
|
|
57
|
-
// @ts-ignore
|
|
58
|
-
return undefined;
|
|
59
|
-
}
|