@aws-sdk/client-swf 3.28.0 → 3.32.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.
@@ -1,6 +1,6 @@
1
1
  import { __assign, __awaiter, __generator } from "tslib";
2
2
  import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
3
- import { expectBoolean as __expectBoolean, expectInt as __expectInt, expectString as __expectString, } from "@aws-sdk/smithy-client";
3
+ import { expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, } from "@aws-sdk/smithy-client";
4
4
  export var serializeAws_json1_0CountClosedWorkflowExecutionsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
5
5
  var headers, body;
6
6
  return __generator(this, function (_a) {
@@ -3434,7 +3434,7 @@ var deserializeAws_json1_0ActivityTask = function (output, context) {
3434
3434
  ? deserializeAws_json1_0ActivityType(output.activityType, context)
3435
3435
  : undefined,
3436
3436
  input: __expectString(output.input),
3437
- startedEventId: __expectInt(output.startedEventId),
3437
+ startedEventId: __expectLong(output.startedEventId),
3438
3438
  taskToken: __expectString(output.taskToken),
3439
3439
  workflowExecution: output.workflowExecution !== undefined && output.workflowExecution !== null
3440
3440
  ? deserializeAws_json1_0WorkflowExecution(output.workflowExecution, context)
@@ -3444,30 +3444,30 @@ var deserializeAws_json1_0ActivityTask = function (output, context) {
3444
3444
  var deserializeAws_json1_0ActivityTaskCanceledEventAttributes = function (output, context) {
3445
3445
  return {
3446
3446
  details: __expectString(output.details),
3447
- latestCancelRequestedEventId: __expectInt(output.latestCancelRequestedEventId),
3448
- scheduledEventId: __expectInt(output.scheduledEventId),
3449
- startedEventId: __expectInt(output.startedEventId),
3447
+ latestCancelRequestedEventId: __expectLong(output.latestCancelRequestedEventId),
3448
+ scheduledEventId: __expectLong(output.scheduledEventId),
3449
+ startedEventId: __expectLong(output.startedEventId),
3450
3450
  };
3451
3451
  };
3452
3452
  var deserializeAws_json1_0ActivityTaskCancelRequestedEventAttributes = function (output, context) {
3453
3453
  return {
3454
3454
  activityId: __expectString(output.activityId),
3455
- decisionTaskCompletedEventId: __expectInt(output.decisionTaskCompletedEventId),
3455
+ decisionTaskCompletedEventId: __expectLong(output.decisionTaskCompletedEventId),
3456
3456
  };
3457
3457
  };
3458
3458
  var deserializeAws_json1_0ActivityTaskCompletedEventAttributes = function (output, context) {
3459
3459
  return {
3460
3460
  result: __expectString(output.result),
3461
- scheduledEventId: __expectInt(output.scheduledEventId),
3462
- startedEventId: __expectInt(output.startedEventId),
3461
+ scheduledEventId: __expectLong(output.scheduledEventId),
3462
+ startedEventId: __expectLong(output.startedEventId),
3463
3463
  };
3464
3464
  };
3465
3465
  var deserializeAws_json1_0ActivityTaskFailedEventAttributes = function (output, context) {
3466
3466
  return {
3467
3467
  details: __expectString(output.details),
3468
3468
  reason: __expectString(output.reason),
3469
- scheduledEventId: __expectInt(output.scheduledEventId),
3470
- startedEventId: __expectInt(output.startedEventId),
3469
+ scheduledEventId: __expectLong(output.scheduledEventId),
3470
+ startedEventId: __expectLong(output.startedEventId),
3471
3471
  };
3472
3472
  };
3473
3473
  var deserializeAws_json1_0ActivityTaskScheduledEventAttributes = function (output, context) {
@@ -3477,7 +3477,7 @@ var deserializeAws_json1_0ActivityTaskScheduledEventAttributes = function (outpu
3477
3477
  ? deserializeAws_json1_0ActivityType(output.activityType, context)
3478
3478
  : undefined,
3479
3479
  control: __expectString(output.control),
3480
- decisionTaskCompletedEventId: __expectInt(output.decisionTaskCompletedEventId),
3480
+ decisionTaskCompletedEventId: __expectLong(output.decisionTaskCompletedEventId),
3481
3481
  heartbeatTimeout: __expectString(output.heartbeatTimeout),
3482
3482
  input: __expectString(output.input),
3483
3483
  scheduleToCloseTimeout: __expectString(output.scheduleToCloseTimeout),
@@ -3492,7 +3492,7 @@ var deserializeAws_json1_0ActivityTaskScheduledEventAttributes = function (outpu
3492
3492
  var deserializeAws_json1_0ActivityTaskStartedEventAttributes = function (output, context) {
3493
3493
  return {
3494
3494
  identity: __expectString(output.identity),
3495
- scheduledEventId: __expectInt(output.scheduledEventId),
3495
+ scheduledEventId: __expectLong(output.scheduledEventId),
3496
3496
  };
3497
3497
  };
3498
3498
  var deserializeAws_json1_0ActivityTaskStatus = function (output, context) {
@@ -3503,8 +3503,8 @@ var deserializeAws_json1_0ActivityTaskStatus = function (output, context) {
3503
3503
  var deserializeAws_json1_0ActivityTaskTimedOutEventAttributes = function (output, context) {
3504
3504
  return {
3505
3505
  details: __expectString(output.details),
3506
- scheduledEventId: __expectInt(output.scheduledEventId),
3507
- startedEventId: __expectInt(output.startedEventId),
3506
+ scheduledEventId: __expectLong(output.scheduledEventId),
3507
+ startedEventId: __expectLong(output.startedEventId),
3508
3508
  timeoutType: __expectString(output.timeoutType),
3509
3509
  };
3510
3510
  };
@@ -3542,10 +3542,10 @@ var deserializeAws_json1_0ActivityTypeInfo = function (output, context) {
3542
3542
  ? deserializeAws_json1_0ActivityType(output.activityType, context)
3543
3543
  : undefined,
3544
3544
  creationDate: output.creationDate !== undefined && output.creationDate !== null
3545
- ? new Date(Math.round(output.creationDate * 1000))
3545
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDate)))
3546
3546
  : undefined,
3547
3547
  deprecationDate: output.deprecationDate !== undefined && output.deprecationDate !== null
3548
- ? new Date(Math.round(output.deprecationDate * 1000))
3548
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.deprecationDate)))
3549
3549
  : undefined,
3550
3550
  description: __expectString(output.description),
3551
3551
  status: __expectString(output.status),
@@ -3572,21 +3572,21 @@ var deserializeAws_json1_0ActivityTypeInfos = function (output, context) {
3572
3572
  var deserializeAws_json1_0CancelTimerFailedEventAttributes = function (output, context) {
3573
3573
  return {
3574
3574
  cause: __expectString(output.cause),
3575
- decisionTaskCompletedEventId: __expectInt(output.decisionTaskCompletedEventId),
3575
+ decisionTaskCompletedEventId: __expectLong(output.decisionTaskCompletedEventId),
3576
3576
  timerId: __expectString(output.timerId),
3577
3577
  };
3578
3578
  };
3579
3579
  var deserializeAws_json1_0CancelWorkflowExecutionFailedEventAttributes = function (output, context) {
3580
3580
  return {
3581
3581
  cause: __expectString(output.cause),
3582
- decisionTaskCompletedEventId: __expectInt(output.decisionTaskCompletedEventId),
3582
+ decisionTaskCompletedEventId: __expectLong(output.decisionTaskCompletedEventId),
3583
3583
  };
3584
3584
  };
3585
3585
  var deserializeAws_json1_0ChildWorkflowExecutionCanceledEventAttributes = function (output, context) {
3586
3586
  return {
3587
3587
  details: __expectString(output.details),
3588
- initiatedEventId: __expectInt(output.initiatedEventId),
3589
- startedEventId: __expectInt(output.startedEventId),
3588
+ initiatedEventId: __expectLong(output.initiatedEventId),
3589
+ startedEventId: __expectLong(output.startedEventId),
3590
3590
  workflowExecution: output.workflowExecution !== undefined && output.workflowExecution !== null
3591
3591
  ? deserializeAws_json1_0WorkflowExecution(output.workflowExecution, context)
3592
3592
  : undefined,
@@ -3597,9 +3597,9 @@ var deserializeAws_json1_0ChildWorkflowExecutionCanceledEventAttributes = functi
3597
3597
  };
3598
3598
  var deserializeAws_json1_0ChildWorkflowExecutionCompletedEventAttributes = function (output, context) {
3599
3599
  return {
3600
- initiatedEventId: __expectInt(output.initiatedEventId),
3600
+ initiatedEventId: __expectLong(output.initiatedEventId),
3601
3601
  result: __expectString(output.result),
3602
- startedEventId: __expectInt(output.startedEventId),
3602
+ startedEventId: __expectLong(output.startedEventId),
3603
3603
  workflowExecution: output.workflowExecution !== undefined && output.workflowExecution !== null
3604
3604
  ? deserializeAws_json1_0WorkflowExecution(output.workflowExecution, context)
3605
3605
  : undefined,
@@ -3611,9 +3611,9 @@ var deserializeAws_json1_0ChildWorkflowExecutionCompletedEventAttributes = funct
3611
3611
  var deserializeAws_json1_0ChildWorkflowExecutionFailedEventAttributes = function (output, context) {
3612
3612
  return {
3613
3613
  details: __expectString(output.details),
3614
- initiatedEventId: __expectInt(output.initiatedEventId),
3614
+ initiatedEventId: __expectLong(output.initiatedEventId),
3615
3615
  reason: __expectString(output.reason),
3616
- startedEventId: __expectInt(output.startedEventId),
3616
+ startedEventId: __expectLong(output.startedEventId),
3617
3617
  workflowExecution: output.workflowExecution !== undefined && output.workflowExecution !== null
3618
3618
  ? deserializeAws_json1_0WorkflowExecution(output.workflowExecution, context)
3619
3619
  : undefined,
@@ -3624,7 +3624,7 @@ var deserializeAws_json1_0ChildWorkflowExecutionFailedEventAttributes = function
3624
3624
  };
3625
3625
  var deserializeAws_json1_0ChildWorkflowExecutionStartedEventAttributes = function (output, context) {
3626
3626
  return {
3627
- initiatedEventId: __expectInt(output.initiatedEventId),
3627
+ initiatedEventId: __expectLong(output.initiatedEventId),
3628
3628
  workflowExecution: output.workflowExecution !== undefined && output.workflowExecution !== null
3629
3629
  ? deserializeAws_json1_0WorkflowExecution(output.workflowExecution, context)
3630
3630
  : undefined,
@@ -3635,8 +3635,8 @@ var deserializeAws_json1_0ChildWorkflowExecutionStartedEventAttributes = functio
3635
3635
  };
3636
3636
  var deserializeAws_json1_0ChildWorkflowExecutionTerminatedEventAttributes = function (output, context) {
3637
3637
  return {
3638
- initiatedEventId: __expectInt(output.initiatedEventId),
3639
- startedEventId: __expectInt(output.startedEventId),
3638
+ initiatedEventId: __expectLong(output.initiatedEventId),
3639
+ startedEventId: __expectLong(output.startedEventId),
3640
3640
  workflowExecution: output.workflowExecution !== undefined && output.workflowExecution !== null
3641
3641
  ? deserializeAws_json1_0WorkflowExecution(output.workflowExecution, context)
3642
3642
  : undefined,
@@ -3647,8 +3647,8 @@ var deserializeAws_json1_0ChildWorkflowExecutionTerminatedEventAttributes = func
3647
3647
  };
3648
3648
  var deserializeAws_json1_0ChildWorkflowExecutionTimedOutEventAttributes = function (output, context) {
3649
3649
  return {
3650
- initiatedEventId: __expectInt(output.initiatedEventId),
3651
- startedEventId: __expectInt(output.startedEventId),
3650
+ initiatedEventId: __expectLong(output.initiatedEventId),
3651
+ startedEventId: __expectLong(output.startedEventId),
3652
3652
  timeoutType: __expectString(output.timeoutType),
3653
3653
  workflowExecution: output.workflowExecution !== undefined && output.workflowExecution !== null
3654
3654
  ? deserializeAws_json1_0WorkflowExecution(output.workflowExecution, context)
@@ -3661,13 +3661,13 @@ var deserializeAws_json1_0ChildWorkflowExecutionTimedOutEventAttributes = functi
3661
3661
  var deserializeAws_json1_0CompleteWorkflowExecutionFailedEventAttributes = function (output, context) {
3662
3662
  return {
3663
3663
  cause: __expectString(output.cause),
3664
- decisionTaskCompletedEventId: __expectInt(output.decisionTaskCompletedEventId),
3664
+ decisionTaskCompletedEventId: __expectLong(output.decisionTaskCompletedEventId),
3665
3665
  };
3666
3666
  };
3667
3667
  var deserializeAws_json1_0ContinueAsNewWorkflowExecutionFailedEventAttributes = function (output, context) {
3668
3668
  return {
3669
3669
  cause: __expectString(output.cause),
3670
- decisionTaskCompletedEventId: __expectInt(output.decisionTaskCompletedEventId),
3670
+ decisionTaskCompletedEventId: __expectLong(output.decisionTaskCompletedEventId),
3671
3671
  };
3672
3672
  };
3673
3673
  var deserializeAws_json1_0DecisionTask = function (output, context) {
@@ -3676,8 +3676,8 @@ var deserializeAws_json1_0DecisionTask = function (output, context) {
3676
3676
  ? deserializeAws_json1_0HistoryEventList(output.events, context)
3677
3677
  : undefined,
3678
3678
  nextPageToken: __expectString(output.nextPageToken),
3679
- previousStartedEventId: __expectInt(output.previousStartedEventId),
3680
- startedEventId: __expectInt(output.startedEventId),
3679
+ previousStartedEventId: __expectLong(output.previousStartedEventId),
3680
+ startedEventId: __expectLong(output.startedEventId),
3681
3681
  taskToken: __expectString(output.taskToken),
3682
3682
  workflowExecution: output.workflowExecution !== undefined && output.workflowExecution !== null
3683
3683
  ? deserializeAws_json1_0WorkflowExecution(output.workflowExecution, context)
@@ -3690,8 +3690,8 @@ var deserializeAws_json1_0DecisionTask = function (output, context) {
3690
3690
  var deserializeAws_json1_0DecisionTaskCompletedEventAttributes = function (output, context) {
3691
3691
  return {
3692
3692
  executionContext: __expectString(output.executionContext),
3693
- scheduledEventId: __expectInt(output.scheduledEventId),
3694
- startedEventId: __expectInt(output.startedEventId),
3693
+ scheduledEventId: __expectLong(output.scheduledEventId),
3694
+ startedEventId: __expectLong(output.startedEventId),
3695
3695
  };
3696
3696
  };
3697
3697
  var deserializeAws_json1_0DecisionTaskScheduledEventAttributes = function (output, context) {
@@ -3706,13 +3706,13 @@ var deserializeAws_json1_0DecisionTaskScheduledEventAttributes = function (outpu
3706
3706
  var deserializeAws_json1_0DecisionTaskStartedEventAttributes = function (output, context) {
3707
3707
  return {
3708
3708
  identity: __expectString(output.identity),
3709
- scheduledEventId: __expectInt(output.scheduledEventId),
3709
+ scheduledEventId: __expectLong(output.scheduledEventId),
3710
3710
  };
3711
3711
  };
3712
3712
  var deserializeAws_json1_0DecisionTaskTimedOutEventAttributes = function (output, context) {
3713
3713
  return {
3714
- scheduledEventId: __expectInt(output.scheduledEventId),
3715
- startedEventId: __expectInt(output.startedEventId),
3714
+ scheduledEventId: __expectLong(output.scheduledEventId),
3715
+ startedEventId: __expectLong(output.startedEventId),
3716
3716
  timeoutType: __expectString(output.timeoutType),
3717
3717
  };
3718
3718
  };
@@ -3774,7 +3774,7 @@ var deserializeAws_json1_0DomainInfos = function (output, context) {
3774
3774
  };
3775
3775
  var deserializeAws_json1_0ExternalWorkflowExecutionCancelRequestedEventAttributes = function (output, context) {
3776
3776
  return {
3777
- initiatedEventId: __expectInt(output.initiatedEventId),
3777
+ initiatedEventId: __expectLong(output.initiatedEventId),
3778
3778
  workflowExecution: output.workflowExecution !== undefined && output.workflowExecution !== null
3779
3779
  ? deserializeAws_json1_0WorkflowExecution(output.workflowExecution, context)
3780
3780
  : undefined,
@@ -3782,7 +3782,7 @@ var deserializeAws_json1_0ExternalWorkflowExecutionCancelRequestedEventAttribute
3782
3782
  };
3783
3783
  var deserializeAws_json1_0ExternalWorkflowExecutionSignaledEventAttributes = function (output, context) {
3784
3784
  return {
3785
- initiatedEventId: __expectInt(output.initiatedEventId),
3785
+ initiatedEventId: __expectLong(output.initiatedEventId),
3786
3786
  workflowExecution: output.workflowExecution !== undefined && output.workflowExecution !== null
3787
3787
  ? deserializeAws_json1_0WorkflowExecution(output.workflowExecution, context)
3788
3788
  : undefined,
@@ -3791,7 +3791,7 @@ var deserializeAws_json1_0ExternalWorkflowExecutionSignaledEventAttributes = fun
3791
3791
  var deserializeAws_json1_0FailWorkflowExecutionFailedEventAttributes = function (output, context) {
3792
3792
  return {
3793
3793
  cause: __expectString(output.cause),
3794
- decisionTaskCompletedEventId: __expectInt(output.decisionTaskCompletedEventId),
3794
+ decisionTaskCompletedEventId: __expectLong(output.decisionTaskCompletedEventId),
3795
3795
  };
3796
3796
  };
3797
3797
  var deserializeAws_json1_0History = function (output, context) {
@@ -3877,9 +3877,9 @@ var deserializeAws_json1_0HistoryEvent = function (output, context) {
3877
3877
  decisionTaskTimedOutEventAttributes: output.decisionTaskTimedOutEventAttributes !== undefined && output.decisionTaskTimedOutEventAttributes !== null
3878
3878
  ? deserializeAws_json1_0DecisionTaskTimedOutEventAttributes(output.decisionTaskTimedOutEventAttributes, context)
3879
3879
  : undefined,
3880
- eventId: __expectInt(output.eventId),
3880
+ eventId: __expectLong(output.eventId),
3881
3881
  eventTimestamp: output.eventTimestamp !== undefined && output.eventTimestamp !== null
3882
- ? new Date(Math.round(output.eventTimestamp * 1000))
3882
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.eventTimestamp)))
3883
3883
  : undefined,
3884
3884
  eventType: __expectString(output.eventType),
3885
3885
  externalWorkflowExecutionCancelRequestedEventAttributes: output.externalWorkflowExecutionCancelRequestedEventAttributes !== undefined &&
@@ -4021,22 +4021,22 @@ var deserializeAws_json1_0HistoryEventList = function (output, context) {
4021
4021
  var deserializeAws_json1_0LambdaFunctionCompletedEventAttributes = function (output, context) {
4022
4022
  return {
4023
4023
  result: __expectString(output.result),
4024
- scheduledEventId: __expectInt(output.scheduledEventId),
4025
- startedEventId: __expectInt(output.startedEventId),
4024
+ scheduledEventId: __expectLong(output.scheduledEventId),
4025
+ startedEventId: __expectLong(output.startedEventId),
4026
4026
  };
4027
4027
  };
4028
4028
  var deserializeAws_json1_0LambdaFunctionFailedEventAttributes = function (output, context) {
4029
4029
  return {
4030
4030
  details: __expectString(output.details),
4031
4031
  reason: __expectString(output.reason),
4032
- scheduledEventId: __expectInt(output.scheduledEventId),
4033
- startedEventId: __expectInt(output.startedEventId),
4032
+ scheduledEventId: __expectLong(output.scheduledEventId),
4033
+ startedEventId: __expectLong(output.startedEventId),
4034
4034
  };
4035
4035
  };
4036
4036
  var deserializeAws_json1_0LambdaFunctionScheduledEventAttributes = function (output, context) {
4037
4037
  return {
4038
4038
  control: __expectString(output.control),
4039
- decisionTaskCompletedEventId: __expectInt(output.decisionTaskCompletedEventId),
4039
+ decisionTaskCompletedEventId: __expectLong(output.decisionTaskCompletedEventId),
4040
4040
  id: __expectString(output.id),
4041
4041
  input: __expectString(output.input),
4042
4042
  name: __expectString(output.name),
@@ -4045,13 +4045,13 @@ var deserializeAws_json1_0LambdaFunctionScheduledEventAttributes = function (out
4045
4045
  };
4046
4046
  var deserializeAws_json1_0LambdaFunctionStartedEventAttributes = function (output, context) {
4047
4047
  return {
4048
- scheduledEventId: __expectInt(output.scheduledEventId),
4048
+ scheduledEventId: __expectLong(output.scheduledEventId),
4049
4049
  };
4050
4050
  };
4051
4051
  var deserializeAws_json1_0LambdaFunctionTimedOutEventAttributes = function (output, context) {
4052
4052
  return {
4053
- scheduledEventId: __expectInt(output.scheduledEventId),
4054
- startedEventId: __expectInt(output.startedEventId),
4053
+ scheduledEventId: __expectLong(output.scheduledEventId),
4054
+ startedEventId: __expectLong(output.startedEventId),
4055
4055
  timeoutType: __expectString(output.timeoutType),
4056
4056
  };
4057
4057
  };
@@ -4069,7 +4069,7 @@ var deserializeAws_json1_0ListTagsForResourceOutput = function (output, context)
4069
4069
  };
4070
4070
  var deserializeAws_json1_0MarkerRecordedEventAttributes = function (output, context) {
4071
4071
  return {
4072
- decisionTaskCompletedEventId: __expectInt(output.decisionTaskCompletedEventId),
4072
+ decisionTaskCompletedEventId: __expectLong(output.decisionTaskCompletedEventId),
4073
4073
  details: __expectString(output.details),
4074
4074
  markerName: __expectString(output.markerName),
4075
4075
  };
@@ -4081,14 +4081,14 @@ var deserializeAws_json1_0OperationNotPermittedFault = function (output, context
4081
4081
  };
4082
4082
  var deserializeAws_json1_0PendingTaskCount = function (output, context) {
4083
4083
  return {
4084
- count: __expectInt(output.count),
4084
+ count: __expectInt32(output.count),
4085
4085
  truncated: __expectBoolean(output.truncated),
4086
4086
  };
4087
4087
  };
4088
4088
  var deserializeAws_json1_0RecordMarkerFailedEventAttributes = function (output, context) {
4089
4089
  return {
4090
4090
  cause: __expectString(output.cause),
4091
- decisionTaskCompletedEventId: __expectInt(output.decisionTaskCompletedEventId),
4091
+ decisionTaskCompletedEventId: __expectLong(output.decisionTaskCompletedEventId),
4092
4092
  markerName: __expectString(output.markerName),
4093
4093
  };
4094
4094
  };
@@ -4096,15 +4096,15 @@ var deserializeAws_json1_0RequestCancelActivityTaskFailedEventAttributes = funct
4096
4096
  return {
4097
4097
  activityId: __expectString(output.activityId),
4098
4098
  cause: __expectString(output.cause),
4099
- decisionTaskCompletedEventId: __expectInt(output.decisionTaskCompletedEventId),
4099
+ decisionTaskCompletedEventId: __expectLong(output.decisionTaskCompletedEventId),
4100
4100
  };
4101
4101
  };
4102
4102
  var deserializeAws_json1_0RequestCancelExternalWorkflowExecutionFailedEventAttributes = function (output, context) {
4103
4103
  return {
4104
4104
  cause: __expectString(output.cause),
4105
4105
  control: __expectString(output.control),
4106
- decisionTaskCompletedEventId: __expectInt(output.decisionTaskCompletedEventId),
4107
- initiatedEventId: __expectInt(output.initiatedEventId),
4106
+ decisionTaskCompletedEventId: __expectLong(output.decisionTaskCompletedEventId),
4107
+ initiatedEventId: __expectLong(output.initiatedEventId),
4108
4108
  runId: __expectString(output.runId),
4109
4109
  workflowId: __expectString(output.workflowId),
4110
4110
  };
@@ -4112,7 +4112,7 @@ var deserializeAws_json1_0RequestCancelExternalWorkflowExecutionFailedEventAttri
4112
4112
  var deserializeAws_json1_0RequestCancelExternalWorkflowExecutionInitiatedEventAttributes = function (output, context) {
4113
4113
  return {
4114
4114
  control: __expectString(output.control),
4115
- decisionTaskCompletedEventId: __expectInt(output.decisionTaskCompletedEventId),
4115
+ decisionTaskCompletedEventId: __expectLong(output.decisionTaskCompletedEventId),
4116
4116
  runId: __expectString(output.runId),
4117
4117
  workflowId: __expectString(output.workflowId),
4118
4118
  };
@@ -4145,13 +4145,13 @@ var deserializeAws_json1_0ScheduleActivityTaskFailedEventAttributes = function (
4145
4145
  ? deserializeAws_json1_0ActivityType(output.activityType, context)
4146
4146
  : undefined,
4147
4147
  cause: __expectString(output.cause),
4148
- decisionTaskCompletedEventId: __expectInt(output.decisionTaskCompletedEventId),
4148
+ decisionTaskCompletedEventId: __expectLong(output.decisionTaskCompletedEventId),
4149
4149
  };
4150
4150
  };
4151
4151
  var deserializeAws_json1_0ScheduleLambdaFunctionFailedEventAttributes = function (output, context) {
4152
4152
  return {
4153
4153
  cause: __expectString(output.cause),
4154
- decisionTaskCompletedEventId: __expectInt(output.decisionTaskCompletedEventId),
4154
+ decisionTaskCompletedEventId: __expectLong(output.decisionTaskCompletedEventId),
4155
4155
  id: __expectString(output.id),
4156
4156
  name: __expectString(output.name),
4157
4157
  };
@@ -4160,8 +4160,8 @@ var deserializeAws_json1_0SignalExternalWorkflowExecutionFailedEventAttributes =
4160
4160
  return {
4161
4161
  cause: __expectString(output.cause),
4162
4162
  control: __expectString(output.control),
4163
- decisionTaskCompletedEventId: __expectInt(output.decisionTaskCompletedEventId),
4164
- initiatedEventId: __expectInt(output.initiatedEventId),
4163
+ decisionTaskCompletedEventId: __expectLong(output.decisionTaskCompletedEventId),
4164
+ initiatedEventId: __expectLong(output.initiatedEventId),
4165
4165
  runId: __expectString(output.runId),
4166
4166
  workflowId: __expectString(output.workflowId),
4167
4167
  };
@@ -4169,7 +4169,7 @@ var deserializeAws_json1_0SignalExternalWorkflowExecutionFailedEventAttributes =
4169
4169
  var deserializeAws_json1_0SignalExternalWorkflowExecutionInitiatedEventAttributes = function (output, context) {
4170
4170
  return {
4171
4171
  control: __expectString(output.control),
4172
- decisionTaskCompletedEventId: __expectInt(output.decisionTaskCompletedEventId),
4172
+ decisionTaskCompletedEventId: __expectLong(output.decisionTaskCompletedEventId),
4173
4173
  input: __expectString(output.input),
4174
4174
  runId: __expectString(output.runId),
4175
4175
  signalName: __expectString(output.signalName),
@@ -4180,8 +4180,8 @@ var deserializeAws_json1_0StartChildWorkflowExecutionFailedEventAttributes = fun
4180
4180
  return {
4181
4181
  cause: __expectString(output.cause),
4182
4182
  control: __expectString(output.control),
4183
- decisionTaskCompletedEventId: __expectInt(output.decisionTaskCompletedEventId),
4184
- initiatedEventId: __expectInt(output.initiatedEventId),
4183
+ decisionTaskCompletedEventId: __expectLong(output.decisionTaskCompletedEventId),
4184
+ initiatedEventId: __expectLong(output.initiatedEventId),
4185
4185
  workflowId: __expectString(output.workflowId),
4186
4186
  workflowType: output.workflowType !== undefined && output.workflowType !== null
4187
4187
  ? deserializeAws_json1_0WorkflowType(output.workflowType, context)
@@ -4192,7 +4192,7 @@ var deserializeAws_json1_0StartChildWorkflowExecutionInitiatedEventAttributes =
4192
4192
  return {
4193
4193
  childPolicy: __expectString(output.childPolicy),
4194
4194
  control: __expectString(output.control),
4195
- decisionTaskCompletedEventId: __expectInt(output.decisionTaskCompletedEventId),
4195
+ decisionTaskCompletedEventId: __expectLong(output.decisionTaskCompletedEventId),
4196
4196
  executionStartToCloseTimeout: __expectString(output.executionStartToCloseTimeout),
4197
4197
  input: __expectString(output.input),
4198
4198
  lambdaRole: __expectString(output.lambdaRole),
@@ -4214,13 +4214,13 @@ var deserializeAws_json1_0StartLambdaFunctionFailedEventAttributes = function (o
4214
4214
  return {
4215
4215
  cause: __expectString(output.cause),
4216
4216
  message: __expectString(output.message),
4217
- scheduledEventId: __expectInt(output.scheduledEventId),
4217
+ scheduledEventId: __expectLong(output.scheduledEventId),
4218
4218
  };
4219
4219
  };
4220
4220
  var deserializeAws_json1_0StartTimerFailedEventAttributes = function (output, context) {
4221
4221
  return {
4222
4222
  cause: __expectString(output.cause),
4223
- decisionTaskCompletedEventId: __expectInt(output.decisionTaskCompletedEventId),
4223
+ decisionTaskCompletedEventId: __expectLong(output.decisionTaskCompletedEventId),
4224
4224
  timerId: __expectString(output.timerId),
4225
4225
  };
4226
4226
  };
@@ -4241,21 +4241,21 @@ var deserializeAws_json1_0TaskList = function (output, context) {
4241
4241
  };
4242
4242
  var deserializeAws_json1_0TimerCanceledEventAttributes = function (output, context) {
4243
4243
  return {
4244
- decisionTaskCompletedEventId: __expectInt(output.decisionTaskCompletedEventId),
4245
- startedEventId: __expectInt(output.startedEventId),
4244
+ decisionTaskCompletedEventId: __expectLong(output.decisionTaskCompletedEventId),
4245
+ startedEventId: __expectLong(output.startedEventId),
4246
4246
  timerId: __expectString(output.timerId),
4247
4247
  };
4248
4248
  };
4249
4249
  var deserializeAws_json1_0TimerFiredEventAttributes = function (output, context) {
4250
4250
  return {
4251
- startedEventId: __expectInt(output.startedEventId),
4251
+ startedEventId: __expectLong(output.startedEventId),
4252
4252
  timerId: __expectString(output.timerId),
4253
4253
  };
4254
4254
  };
4255
4255
  var deserializeAws_json1_0TimerStartedEventAttributes = function (output, context) {
4256
4256
  return {
4257
4257
  control: __expectString(output.control),
4258
- decisionTaskCompletedEventId: __expectInt(output.decisionTaskCompletedEventId),
4258
+ decisionTaskCompletedEventId: __expectLong(output.decisionTaskCompletedEventId),
4259
4259
  startToFireTimeout: __expectString(output.startToFireTimeout),
4260
4260
  timerId: __expectString(output.timerId),
4261
4261
  };
@@ -4293,14 +4293,14 @@ var deserializeAws_json1_0WorkflowExecutionAlreadyStartedFault = function (outpu
4293
4293
  };
4294
4294
  var deserializeAws_json1_0WorkflowExecutionCanceledEventAttributes = function (output, context) {
4295
4295
  return {
4296
- decisionTaskCompletedEventId: __expectInt(output.decisionTaskCompletedEventId),
4296
+ decisionTaskCompletedEventId: __expectLong(output.decisionTaskCompletedEventId),
4297
4297
  details: __expectString(output.details),
4298
4298
  };
4299
4299
  };
4300
4300
  var deserializeAws_json1_0WorkflowExecutionCancelRequestedEventAttributes = function (output, context) {
4301
4301
  return {
4302
4302
  cause: __expectString(output.cause),
4303
- externalInitiatedEventId: __expectInt(output.externalInitiatedEventId),
4303
+ externalInitiatedEventId: __expectLong(output.externalInitiatedEventId),
4304
4304
  externalWorkflowExecution: output.externalWorkflowExecution !== undefined && output.externalWorkflowExecution !== null
4305
4305
  ? deserializeAws_json1_0WorkflowExecution(output.externalWorkflowExecution, context)
4306
4306
  : undefined,
@@ -4308,7 +4308,7 @@ var deserializeAws_json1_0WorkflowExecutionCancelRequestedEventAttributes = func
4308
4308
  };
4309
4309
  var deserializeAws_json1_0WorkflowExecutionCompletedEventAttributes = function (output, context) {
4310
4310
  return {
4311
- decisionTaskCompletedEventId: __expectInt(output.decisionTaskCompletedEventId),
4311
+ decisionTaskCompletedEventId: __expectLong(output.decisionTaskCompletedEventId),
4312
4312
  result: __expectString(output.result),
4313
4313
  };
4314
4314
  };
@@ -4327,7 +4327,7 @@ var deserializeAws_json1_0WorkflowExecutionConfiguration = function (output, con
4327
4327
  var deserializeAws_json1_0WorkflowExecutionContinuedAsNewEventAttributes = function (output, context) {
4328
4328
  return {
4329
4329
  childPolicy: __expectString(output.childPolicy),
4330
- decisionTaskCompletedEventId: __expectInt(output.decisionTaskCompletedEventId),
4330
+ decisionTaskCompletedEventId: __expectLong(output.decisionTaskCompletedEventId),
4331
4331
  executionStartToCloseTimeout: __expectString(output.executionStartToCloseTimeout),
4332
4332
  input: __expectString(output.input),
4333
4333
  lambdaRole: __expectString(output.lambdaRole),
@@ -4347,7 +4347,7 @@ var deserializeAws_json1_0WorkflowExecutionContinuedAsNewEventAttributes = funct
4347
4347
  };
4348
4348
  var deserializeAws_json1_0WorkflowExecutionCount = function (output, context) {
4349
4349
  return {
4350
- count: __expectInt(output.count),
4350
+ count: __expectInt32(output.count),
4351
4351
  truncated: __expectBoolean(output.truncated),
4352
4352
  };
4353
4353
  };
@@ -4360,7 +4360,7 @@ var deserializeAws_json1_0WorkflowExecutionDetail = function (output, context) {
4360
4360
  ? deserializeAws_json1_0WorkflowExecutionInfo(output.executionInfo, context)
4361
4361
  : undefined,
4362
4362
  latestActivityTaskTimestamp: output.latestActivityTaskTimestamp !== undefined && output.latestActivityTaskTimestamp !== null
4363
- ? new Date(Math.round(output.latestActivityTaskTimestamp * 1000))
4363
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.latestActivityTaskTimestamp)))
4364
4364
  : undefined,
4365
4365
  latestExecutionContext: __expectString(output.latestExecutionContext),
4366
4366
  openCounts: output.openCounts !== undefined && output.openCounts !== null
@@ -4370,7 +4370,7 @@ var deserializeAws_json1_0WorkflowExecutionDetail = function (output, context) {
4370
4370
  };
4371
4371
  var deserializeAws_json1_0WorkflowExecutionFailedEventAttributes = function (output, context) {
4372
4372
  return {
4373
- decisionTaskCompletedEventId: __expectInt(output.decisionTaskCompletedEventId),
4373
+ decisionTaskCompletedEventId: __expectLong(output.decisionTaskCompletedEventId),
4374
4374
  details: __expectString(output.details),
4375
4375
  reason: __expectString(output.reason),
4376
4376
  };
@@ -4380,7 +4380,7 @@ var deserializeAws_json1_0WorkflowExecutionInfo = function (output, context) {
4380
4380
  cancelRequested: __expectBoolean(output.cancelRequested),
4381
4381
  closeStatus: __expectString(output.closeStatus),
4382
4382
  closeTimestamp: output.closeTimestamp !== undefined && output.closeTimestamp !== null
4383
- ? new Date(Math.round(output.closeTimestamp * 1000))
4383
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.closeTimestamp)))
4384
4384
  : undefined,
4385
4385
  execution: output.execution !== undefined && output.execution !== null
4386
4386
  ? deserializeAws_json1_0WorkflowExecution(output.execution, context)
@@ -4390,7 +4390,7 @@ var deserializeAws_json1_0WorkflowExecutionInfo = function (output, context) {
4390
4390
  ? deserializeAws_json1_0WorkflowExecution(output.parent, context)
4391
4391
  : undefined,
4392
4392
  startTimestamp: output.startTimestamp !== undefined && output.startTimestamp !== null
4393
- ? new Date(Math.round(output.startTimestamp * 1000))
4393
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startTimestamp)))
4394
4394
  : undefined,
4395
4395
  tagList: output.tagList !== undefined && output.tagList !== null
4396
4396
  ? deserializeAws_json1_0TagList(output.tagList, context)
@@ -4420,16 +4420,16 @@ var deserializeAws_json1_0WorkflowExecutionInfos = function (output, context) {
4420
4420
  };
4421
4421
  var deserializeAws_json1_0WorkflowExecutionOpenCounts = function (output, context) {
4422
4422
  return {
4423
- openActivityTasks: __expectInt(output.openActivityTasks),
4424
- openChildWorkflowExecutions: __expectInt(output.openChildWorkflowExecutions),
4425
- openDecisionTasks: __expectInt(output.openDecisionTasks),
4426
- openLambdaFunctions: __expectInt(output.openLambdaFunctions),
4427
- openTimers: __expectInt(output.openTimers),
4423
+ openActivityTasks: __expectInt32(output.openActivityTasks),
4424
+ openChildWorkflowExecutions: __expectInt32(output.openChildWorkflowExecutions),
4425
+ openDecisionTasks: __expectInt32(output.openDecisionTasks),
4426
+ openLambdaFunctions: __expectInt32(output.openLambdaFunctions),
4427
+ openTimers: __expectInt32(output.openTimers),
4428
4428
  };
4429
4429
  };
4430
4430
  var deserializeAws_json1_0WorkflowExecutionSignaledEventAttributes = function (output, context) {
4431
4431
  return {
4432
- externalInitiatedEventId: __expectInt(output.externalInitiatedEventId),
4432
+ externalInitiatedEventId: __expectLong(output.externalInitiatedEventId),
4433
4433
  externalWorkflowExecution: output.externalWorkflowExecution !== undefined && output.externalWorkflowExecution !== null
4434
4434
  ? deserializeAws_json1_0WorkflowExecution(output.externalWorkflowExecution, context)
4435
4435
  : undefined,
@@ -4444,7 +4444,7 @@ var deserializeAws_json1_0WorkflowExecutionStartedEventAttributes = function (ou
4444
4444
  executionStartToCloseTimeout: __expectString(output.executionStartToCloseTimeout),
4445
4445
  input: __expectString(output.input),
4446
4446
  lambdaRole: __expectString(output.lambdaRole),
4447
- parentInitiatedEventId: __expectInt(output.parentInitiatedEventId),
4447
+ parentInitiatedEventId: __expectLong(output.parentInitiatedEventId),
4448
4448
  parentWorkflowExecution: output.parentWorkflowExecution !== undefined && output.parentWorkflowExecution !== null
4449
4449
  ? deserializeAws_json1_0WorkflowExecution(output.parentWorkflowExecution, context)
4450
4450
  : undefined,
@@ -4506,10 +4506,10 @@ var deserializeAws_json1_0WorkflowTypeDetail = function (output, context) {
4506
4506
  var deserializeAws_json1_0WorkflowTypeInfo = function (output, context) {
4507
4507
  return {
4508
4508
  creationDate: output.creationDate !== undefined && output.creationDate !== null
4509
- ? new Date(Math.round(output.creationDate * 1000))
4509
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDate)))
4510
4510
  : undefined,
4511
4511
  deprecationDate: output.deprecationDate !== undefined && output.deprecationDate !== null
4512
- ? new Date(Math.round(output.deprecationDate * 1000))
4512
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.deprecationDate)))
4513
4513
  : undefined,
4514
4514
  description: __expectString(output.description),
4515
4515
  status: __expectString(output.status),