@aws-sdk/client-sfn 3.30.0 → 3.34.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.
Files changed (148) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/dist/cjs/SFNClient.js +13 -13
  3. package/dist/cjs/SFNClient.js.map +1 -1
  4. package/dist/cjs/commands/CreateActivityCommand.js +3 -3
  5. package/dist/cjs/commands/CreateActivityCommand.js.map +1 -1
  6. package/dist/cjs/commands/CreateStateMachineCommand.js +3 -3
  7. package/dist/cjs/commands/CreateStateMachineCommand.js.map +1 -1
  8. package/dist/cjs/commands/DeleteActivityCommand.js +3 -3
  9. package/dist/cjs/commands/DeleteActivityCommand.js.map +1 -1
  10. package/dist/cjs/commands/DeleteStateMachineCommand.js +3 -3
  11. package/dist/cjs/commands/DeleteStateMachineCommand.js.map +1 -1
  12. package/dist/cjs/commands/DescribeActivityCommand.js +3 -3
  13. package/dist/cjs/commands/DescribeActivityCommand.js.map +1 -1
  14. package/dist/cjs/commands/DescribeExecutionCommand.js +3 -3
  15. package/dist/cjs/commands/DescribeExecutionCommand.js.map +1 -1
  16. package/dist/cjs/commands/DescribeStateMachineCommand.js +3 -3
  17. package/dist/cjs/commands/DescribeStateMachineCommand.js.map +1 -1
  18. package/dist/cjs/commands/DescribeStateMachineForExecutionCommand.js +3 -3
  19. package/dist/cjs/commands/DescribeStateMachineForExecutionCommand.js.map +1 -1
  20. package/dist/cjs/commands/GetActivityTaskCommand.js +3 -3
  21. package/dist/cjs/commands/GetActivityTaskCommand.js.map +1 -1
  22. package/dist/cjs/commands/GetExecutionHistoryCommand.js +3 -3
  23. package/dist/cjs/commands/GetExecutionHistoryCommand.js.map +1 -1
  24. package/dist/cjs/commands/ListActivitiesCommand.js +3 -3
  25. package/dist/cjs/commands/ListActivitiesCommand.js.map +1 -1
  26. package/dist/cjs/commands/ListExecutionsCommand.js +3 -3
  27. package/dist/cjs/commands/ListExecutionsCommand.js.map +1 -1
  28. package/dist/cjs/commands/ListStateMachinesCommand.js +3 -3
  29. package/dist/cjs/commands/ListStateMachinesCommand.js.map +1 -1
  30. package/dist/cjs/commands/ListTagsForResourceCommand.js +3 -3
  31. package/dist/cjs/commands/ListTagsForResourceCommand.js.map +1 -1
  32. package/dist/cjs/commands/SendTaskFailureCommand.js +3 -3
  33. package/dist/cjs/commands/SendTaskFailureCommand.js.map +1 -1
  34. package/dist/cjs/commands/SendTaskHeartbeatCommand.js +3 -3
  35. package/dist/cjs/commands/SendTaskHeartbeatCommand.js.map +1 -1
  36. package/dist/cjs/commands/SendTaskSuccessCommand.js +3 -3
  37. package/dist/cjs/commands/SendTaskSuccessCommand.js.map +1 -1
  38. package/dist/cjs/commands/StartExecutionCommand.js +3 -3
  39. package/dist/cjs/commands/StartExecutionCommand.js.map +1 -1
  40. package/dist/cjs/commands/StartSyncExecutionCommand.js +3 -3
  41. package/dist/cjs/commands/StartSyncExecutionCommand.js.map +1 -1
  42. package/dist/cjs/commands/StopExecutionCommand.js +3 -3
  43. package/dist/cjs/commands/StopExecutionCommand.js.map +1 -1
  44. package/dist/cjs/commands/TagResourceCommand.js +3 -3
  45. package/dist/cjs/commands/TagResourceCommand.js.map +1 -1
  46. package/dist/cjs/commands/UntagResourceCommand.js +3 -3
  47. package/dist/cjs/commands/UntagResourceCommand.js.map +1 -1
  48. package/dist/cjs/commands/UpdateStateMachineCommand.js +3 -3
  49. package/dist/cjs/commands/UpdateStateMachineCommand.js.map +1 -1
  50. package/dist/cjs/endpoints.js +1 -1
  51. package/dist/cjs/endpoints.js.map +1 -1
  52. package/dist/cjs/index.js +31 -31
  53. package/dist/cjs/index.js.map +1 -1
  54. package/dist/cjs/models/index.js +1 -1
  55. package/dist/cjs/models/index.js.map +1 -1
  56. package/dist/cjs/package.json +39 -39
  57. package/dist/cjs/protocols/Aws_json1_0.js +173 -173
  58. package/dist/cjs/protocols/Aws_json1_0.js.map +1 -1
  59. package/dist/cjs/runtimeConfig.browser.js +4 -4
  60. package/dist/cjs/runtimeConfig.browser.js.map +1 -1
  61. package/dist/cjs/runtimeConfig.js +8 -8
  62. package/dist/cjs/runtimeConfig.js.map +1 -1
  63. package/dist/cjs/runtimeConfig.native.js +1 -1
  64. package/dist/cjs/runtimeConfig.native.js.map +1 -1
  65. package/dist/es/SFN.js +1 -19
  66. package/dist/es/SFN.js.map +1 -1
  67. package/dist/es/SFNClient.js +1 -24
  68. package/dist/es/SFNClient.js.map +1 -1
  69. package/dist/es/commands/CreateActivityCommand.js +2 -43
  70. package/dist/es/commands/CreateActivityCommand.js.map +1 -1
  71. package/dist/es/commands/CreateStateMachineCommand.js +2 -45
  72. package/dist/es/commands/CreateStateMachineCommand.js.map +1 -1
  73. package/dist/es/commands/DeleteActivityCommand.js +2 -27
  74. package/dist/es/commands/DeleteActivityCommand.js.map +1 -1
  75. package/dist/es/commands/DeleteStateMachineCommand.js +2 -33
  76. package/dist/es/commands/DeleteStateMachineCommand.js.map +1 -1
  77. package/dist/es/commands/DescribeActivityCommand.js +2 -30
  78. package/dist/es/commands/DescribeActivityCommand.js.map +1 -1
  79. package/dist/es/commands/DescribeExecutionCommand.js +2 -31
  80. package/dist/es/commands/DescribeExecutionCommand.js.map +1 -1
  81. package/dist/es/commands/DescribeStateMachineCommand.js +2 -30
  82. package/dist/es/commands/DescribeStateMachineCommand.js.map +1 -1
  83. package/dist/es/commands/DescribeStateMachineForExecutionCommand.js +2 -31
  84. package/dist/es/commands/DescribeStateMachineForExecutionCommand.js.map +1 -1
  85. package/dist/es/commands/GetActivityTaskCommand.js +2 -39
  86. package/dist/es/commands/GetActivityTaskCommand.js.map +1 -1
  87. package/dist/es/commands/GetExecutionHistoryCommand.js +2 -32
  88. package/dist/es/commands/GetExecutionHistoryCommand.js.map +1 -1
  89. package/dist/es/commands/ListActivitiesCommand.js +2 -32
  90. package/dist/es/commands/ListActivitiesCommand.js.map +1 -1
  91. package/dist/es/commands/ListExecutionsCommand.js +2 -34
  92. package/dist/es/commands/ListExecutionsCommand.js.map +1 -1
  93. package/dist/es/commands/ListStateMachinesCommand.js +2 -32
  94. package/dist/es/commands/ListStateMachinesCommand.js.map +1 -1
  95. package/dist/es/commands/ListTagsForResourceCommand.js +2 -28
  96. package/dist/es/commands/ListTagsForResourceCommand.js.map +1 -1
  97. package/dist/es/commands/SendTaskFailureCommand.js +2 -28
  98. package/dist/es/commands/SendTaskFailureCommand.js.map +1 -1
  99. package/dist/es/commands/SendTaskHeartbeatCommand.js +2 -41
  100. package/dist/es/commands/SendTaskHeartbeatCommand.js.map +1 -1
  101. package/dist/es/commands/SendTaskSuccessCommand.js +2 -29
  102. package/dist/es/commands/SendTaskSuccessCommand.js.map +1 -1
  103. package/dist/es/commands/StartExecutionCommand.js +2 -35
  104. package/dist/es/commands/StartExecutionCommand.js.map +1 -1
  105. package/dist/es/commands/StartSyncExecutionCommand.js +2 -27
  106. package/dist/es/commands/StartSyncExecutionCommand.js.map +1 -1
  107. package/dist/es/commands/StopExecutionCommand.js +2 -28
  108. package/dist/es/commands/StopExecutionCommand.js.map +1 -1
  109. package/dist/es/commands/TagResourceCommand.js +2 -32
  110. package/dist/es/commands/TagResourceCommand.js.map +1 -1
  111. package/dist/es/commands/UntagResourceCommand.js +2 -27
  112. package/dist/es/commands/UntagResourceCommand.js.map +1 -1
  113. package/dist/es/commands/UpdateStateMachineCommand.js +2 -37
  114. package/dist/es/commands/UpdateStateMachineCommand.js.map +1 -1
  115. package/dist/es/endpoints.js +1 -1
  116. package/dist/es/endpoints.js.map +1 -1
  117. package/dist/es/models/models_0.js +0 -333
  118. package/dist/es/models/models_0.js.map +1 -1
  119. package/dist/es/package.json +39 -39
  120. package/dist/es/pagination/GetExecutionHistoryPaginator.js +16 -28
  121. package/dist/es/pagination/GetExecutionHistoryPaginator.js.map +1 -1
  122. package/dist/es/pagination/ListActivitiesPaginator.js +16 -28
  123. package/dist/es/pagination/ListActivitiesPaginator.js.map +1 -1
  124. package/dist/es/pagination/ListExecutionsPaginator.js +16 -28
  125. package/dist/es/pagination/ListExecutionsPaginator.js.map +1 -1
  126. package/dist/es/pagination/ListStateMachinesPaginator.js +16 -28
  127. package/dist/es/pagination/ListStateMachinesPaginator.js.map +1 -1
  128. package/dist/es/protocols/Aws_json1_0.js +502 -507
  129. package/dist/es/protocols/Aws_json1_0.js.map +1 -1
  130. package/dist/es/runtimeConfig.browser.js +0 -3
  131. package/dist/es/runtimeConfig.browser.js.map +1 -1
  132. package/dist/es/runtimeConfig.js +0 -3
  133. package/dist/es/runtimeConfig.js.map +1 -1
  134. package/dist/es/runtimeConfig.native.js +0 -3
  135. package/dist/es/runtimeConfig.native.js.map +1 -1
  136. package/dist/es/runtimeConfig.shared.js +0 -3
  137. package/dist/es/runtimeConfig.shared.js.map +1 -1
  138. package/dist/types/runtimeConfig.browser.d.ts +1 -0
  139. package/dist/types/runtimeConfig.d.ts +1 -0
  140. package/dist/types/runtimeConfig.native.d.ts +1 -0
  141. package/dist/types/ts3.4/runtimeConfig.browser.d.ts +1 -0
  142. package/dist/types/ts3.4/runtimeConfig.d.ts +1 -0
  143. package/dist/types/ts3.4/runtimeConfig.native.d.ts +1 -0
  144. package/package.json +39 -39
  145. package/protocols/Aws_json1_0.ts +20 -17
  146. package/tsconfig.es.json +0 -2
  147. package/tsconfig.json +3 -5
  148. package/tsconfig.types.json +8 -0
@@ -31,5 +31,6 @@ export declare const getRuntimeConfig: (config: SFNClientConfig) => {
31
31
  signingEscapePath?: boolean | undefined;
32
32
  systemClockOffset?: number | undefined;
33
33
  signingRegion?: string | undefined;
34
+ signerConstructor?: (new (options: import("@aws-sdk/signature-v4").SignatureV4Init & import("@aws-sdk/signature-v4").SignatureV4CryptoInit) => import("@aws-sdk/types").RequestSigner) | undefined;
34
35
  customUserAgent?: string | import("@aws-sdk/types").UserAgent | undefined;
35
36
  };
package/package.json CHANGED
@@ -1,18 +1,18 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-sfn",
3
3
  "description": "AWS SDK for JavaScript Sfn Client for Node.js, Browser and React Native",
4
- "version": "3.30.0",
4
+ "version": "3.34.0",
5
5
  "scripts": {
6
- "clean": "yarn remove-definitions && yarn remove-dist && yarn remove-documentation",
7
- "build-documentation": "yarn remove-documentation && typedoc ./",
8
- "remove-definitions": "rimraf ./types",
9
- "remove-dist": "rimraf ./dist",
10
- "remove-documentation": "rimraf ./docs",
11
- "test": "exit 0",
6
+ "build": "yarn build:cjs && yarn build:es && yarn build:types",
12
7
  "build:cjs": "tsc -p tsconfig.json",
8
+ "build:docs": "yarn clean:docs && typedoc ./",
13
9
  "build:es": "tsc -p tsconfig.es.json",
14
- "build": "yarn build:cjs && yarn build:es",
15
- "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4"
10
+ "build:types": "tsc -p tsconfig.types.json",
11
+ "clean": "yarn clean:dist && yarn clean:docs",
12
+ "clean:dist": "rimraf ./dist",
13
+ "clean:docs": "rimraf ./docs",
14
+ "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4",
15
+ "test": "exit 0"
16
16
  },
17
17
  "main": "./dist/cjs/index.js",
18
18
  "types": "./dist/types/index.d.ts",
@@ -27,45 +27,45 @@
27
27
  "dependencies": {
28
28
  "@aws-crypto/sha256-browser": "^1.0.0",
29
29
  "@aws-crypto/sha256-js": "^1.0.0",
30
- "@aws-sdk/client-sts": "3.30.0",
31
- "@aws-sdk/config-resolver": "3.30.0",
32
- "@aws-sdk/credential-provider-node": "3.30.0",
33
- "@aws-sdk/fetch-http-handler": "3.29.0",
34
- "@aws-sdk/hash-node": "3.29.0",
35
- "@aws-sdk/invalid-dependency": "3.29.0",
36
- "@aws-sdk/middleware-content-length": "3.29.0",
37
- "@aws-sdk/middleware-host-header": "3.29.0",
38
- "@aws-sdk/middleware-logger": "3.29.0",
39
- "@aws-sdk/middleware-retry": "3.29.0",
40
- "@aws-sdk/middleware-serde": "3.29.0",
41
- "@aws-sdk/middleware-signing": "3.30.0",
42
- "@aws-sdk/middleware-stack": "3.29.0",
43
- "@aws-sdk/middleware-user-agent": "3.29.0",
44
- "@aws-sdk/node-config-provider": "3.29.0",
45
- "@aws-sdk/node-http-handler": "3.29.0",
46
- "@aws-sdk/protocol-http": "3.29.0",
47
- "@aws-sdk/smithy-client": "3.30.0",
48
- "@aws-sdk/types": "3.29.0",
49
- "@aws-sdk/url-parser": "3.29.0",
50
- "@aws-sdk/util-base64-browser": "3.29.0",
51
- "@aws-sdk/util-base64-node": "3.29.0",
52
- "@aws-sdk/util-body-length-browser": "3.29.0",
53
- "@aws-sdk/util-body-length-node": "3.29.0",
54
- "@aws-sdk/util-user-agent-browser": "3.29.0",
55
- "@aws-sdk/util-user-agent-node": "3.29.0",
56
- "@aws-sdk/util-utf8-browser": "3.29.0",
57
- "@aws-sdk/util-utf8-node": "3.29.0",
30
+ "@aws-sdk/client-sts": "3.34.0",
31
+ "@aws-sdk/config-resolver": "3.34.0",
32
+ "@aws-sdk/credential-provider-node": "3.34.0",
33
+ "@aws-sdk/fetch-http-handler": "3.34.0",
34
+ "@aws-sdk/hash-node": "3.34.0",
35
+ "@aws-sdk/invalid-dependency": "3.34.0",
36
+ "@aws-sdk/middleware-content-length": "3.34.0",
37
+ "@aws-sdk/middleware-host-header": "3.34.0",
38
+ "@aws-sdk/middleware-logger": "3.34.0",
39
+ "@aws-sdk/middleware-retry": "3.34.0",
40
+ "@aws-sdk/middleware-serde": "3.34.0",
41
+ "@aws-sdk/middleware-signing": "3.34.0",
42
+ "@aws-sdk/middleware-stack": "3.34.0",
43
+ "@aws-sdk/middleware-user-agent": "3.34.0",
44
+ "@aws-sdk/node-config-provider": "3.34.0",
45
+ "@aws-sdk/node-http-handler": "3.34.0",
46
+ "@aws-sdk/protocol-http": "3.34.0",
47
+ "@aws-sdk/smithy-client": "3.34.0",
48
+ "@aws-sdk/types": "3.34.0",
49
+ "@aws-sdk/url-parser": "3.34.0",
50
+ "@aws-sdk/util-base64-browser": "3.34.0",
51
+ "@aws-sdk/util-base64-node": "3.34.0",
52
+ "@aws-sdk/util-body-length-browser": "3.34.0",
53
+ "@aws-sdk/util-body-length-node": "3.34.0",
54
+ "@aws-sdk/util-user-agent-browser": "3.34.0",
55
+ "@aws-sdk/util-user-agent-node": "3.34.0",
56
+ "@aws-sdk/util-utf8-browser": "3.34.0",
57
+ "@aws-sdk/util-utf8-node": "3.34.0",
58
58
  "tslib": "^2.3.0"
59
59
  },
60
60
  "devDependencies": {
61
- "@aws-sdk/client-documentation-generator": "3.29.0",
61
+ "@aws-sdk/client-documentation-generator": "3.34.0",
62
62
  "@types/node": "^12.7.5",
63
63
  "downlevel-dts": "0.7.0",
64
64
  "jest": "^26.1.0",
65
65
  "rimraf": "^3.0.0",
66
66
  "ts-jest": "^26.4.1",
67
67
  "typedoc": "^0.19.2",
68
- "typescript": "~4.4.2"
68
+ "typescript": "~4.3.5"
69
69
  },
70
70
  "engines": {
71
71
  "node": ">=10.0.0"
@@ -155,7 +155,10 @@ import {
155
155
  expectBoolean as __expectBoolean,
156
156
  expectInt32 as __expectInt32,
157
157
  expectLong as __expectLong,
158
+ expectNonNull as __expectNonNull,
159
+ expectNumber as __expectNumber,
158
160
  expectString as __expectString,
161
+ parseEpochTimestamp as __parseEpochTimestamp,
159
162
  } from "@aws-sdk/smithy-client";
160
163
  import {
161
164
  Endpoint as __Endpoint,
@@ -2797,7 +2800,7 @@ const deserializeAws_json1_0ActivityListItem = (output: any, context: __SerdeCon
2797
2800
  activityArn: __expectString(output.activityArn),
2798
2801
  creationDate:
2799
2802
  output.creationDate !== undefined && output.creationDate !== null
2800
- ? new Date(Math.round(output.creationDate * 1000))
2803
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDate)))
2801
2804
  : undefined,
2802
2805
  name: __expectString(output.name),
2803
2806
  } as any;
@@ -2897,7 +2900,7 @@ const deserializeAws_json1_0CreateActivityOutput = (output: any, context: __Serd
2897
2900
  activityArn: __expectString(output.activityArn),
2898
2901
  creationDate:
2899
2902
  output.creationDate !== undefined && output.creationDate !== null
2900
- ? new Date(Math.round(output.creationDate * 1000))
2903
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDate)))
2901
2904
  : undefined,
2902
2905
  } as any;
2903
2906
  };
@@ -2909,7 +2912,7 @@ const deserializeAws_json1_0CreateStateMachineOutput = (
2909
2912
  return {
2910
2913
  creationDate:
2911
2914
  output.creationDate !== undefined && output.creationDate !== null
2912
- ? new Date(Math.round(output.creationDate * 1000))
2915
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDate)))
2913
2916
  : undefined,
2914
2917
  stateMachineArn: __expectString(output.stateMachineArn),
2915
2918
  } as any;
@@ -2931,7 +2934,7 @@ const deserializeAws_json1_0DescribeActivityOutput = (output: any, context: __Se
2931
2934
  activityArn: __expectString(output.activityArn),
2932
2935
  creationDate:
2933
2936
  output.creationDate !== undefined && output.creationDate !== null
2934
- ? new Date(Math.round(output.creationDate * 1000))
2937
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDate)))
2935
2938
  : undefined,
2936
2939
  name: __expectString(output.name),
2937
2940
  } as any;
@@ -2956,13 +2959,13 @@ const deserializeAws_json1_0DescribeExecutionOutput = (
2956
2959
  : undefined,
2957
2960
  startDate:
2958
2961
  output.startDate !== undefined && output.startDate !== null
2959
- ? new Date(Math.round(output.startDate * 1000))
2962
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startDate)))
2960
2963
  : undefined,
2961
2964
  stateMachineArn: __expectString(output.stateMachineArn),
2962
2965
  status: __expectString(output.status),
2963
2966
  stopDate:
2964
2967
  output.stopDate !== undefined && output.stopDate !== null
2965
- ? new Date(Math.round(output.stopDate * 1000))
2968
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.stopDate)))
2966
2969
  : undefined,
2967
2970
  traceHeader: __expectString(output.traceHeader),
2968
2971
  } as any;
@@ -2987,7 +2990,7 @@ const deserializeAws_json1_0DescribeStateMachineForExecutionOutput = (
2987
2990
  : undefined,
2988
2991
  updateDate:
2989
2992
  output.updateDate !== undefined && output.updateDate !== null
2990
- ? new Date(Math.round(output.updateDate * 1000))
2993
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updateDate)))
2991
2994
  : undefined,
2992
2995
  } as any;
2993
2996
  };
@@ -2999,7 +3002,7 @@ const deserializeAws_json1_0DescribeStateMachineOutput = (
2999
3002
  return {
3000
3003
  creationDate:
3001
3004
  output.creationDate !== undefined && output.creationDate !== null
3002
- ? new Date(Math.round(output.creationDate * 1000))
3005
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDate)))
3003
3006
  : undefined,
3004
3007
  definition: __expectString(output.definition),
3005
3008
  loggingConfiguration:
@@ -3073,13 +3076,13 @@ const deserializeAws_json1_0ExecutionListItem = (output: any, context: __SerdeCo
3073
3076
  name: __expectString(output.name),
3074
3077
  startDate:
3075
3078
  output.startDate !== undefined && output.startDate !== null
3076
- ? new Date(Math.round(output.startDate * 1000))
3079
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startDate)))
3077
3080
  : undefined,
3078
3081
  stateMachineArn: __expectString(output.stateMachineArn),
3079
3082
  status: __expectString(output.status),
3080
3083
  stopDate:
3081
3084
  output.stopDate !== undefined && output.stopDate !== null
3082
- ? new Date(Math.round(output.stopDate * 1000))
3085
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.stopDate)))
3083
3086
  : undefined,
3084
3087
  } as any;
3085
3088
  };
@@ -3283,7 +3286,7 @@ const deserializeAws_json1_0HistoryEvent = (output: any, context: __SerdeContext
3283
3286
  : undefined,
3284
3287
  timestamp:
3285
3288
  output.timestamp !== undefined && output.timestamp !== null
3286
- ? new Date(Math.round(output.timestamp * 1000))
3289
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.timestamp)))
3287
3290
  : undefined,
3288
3291
  type: __expectString(output.type),
3289
3292
  } as any;
@@ -3562,7 +3565,7 @@ const deserializeAws_json1_0StartExecutionOutput = (output: any, context: __Serd
3562
3565
  executionArn: __expectString(output.executionArn),
3563
3566
  startDate:
3564
3567
  output.startDate !== undefined && output.startDate !== null
3565
- ? new Date(Math.round(output.startDate * 1000))
3568
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startDate)))
3566
3569
  : undefined,
3567
3570
  } as any;
3568
3571
  };
@@ -3592,13 +3595,13 @@ const deserializeAws_json1_0StartSyncExecutionOutput = (
3592
3595
  : undefined,
3593
3596
  startDate:
3594
3597
  output.startDate !== undefined && output.startDate !== null
3595
- ? new Date(Math.round(output.startDate * 1000))
3598
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startDate)))
3596
3599
  : undefined,
3597
3600
  stateMachineArn: __expectString(output.stateMachineArn),
3598
3601
  status: __expectString(output.status),
3599
3602
  stopDate:
3600
3603
  output.stopDate !== undefined && output.stopDate !== null
3601
- ? new Date(Math.round(output.stopDate * 1000))
3604
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.stopDate)))
3602
3605
  : undefined,
3603
3606
  traceHeader: __expectString(output.traceHeader),
3604
3607
  } as any;
@@ -3680,7 +3683,7 @@ const deserializeAws_json1_0StateMachineListItem = (output: any, context: __Serd
3680
3683
  return {
3681
3684
  creationDate:
3682
3685
  output.creationDate !== undefined && output.creationDate !== null
3683
- ? new Date(Math.round(output.creationDate * 1000))
3686
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDate)))
3684
3687
  : undefined,
3685
3688
  name: __expectString(output.name),
3686
3689
  stateMachineArn: __expectString(output.stateMachineArn),
@@ -3701,7 +3704,7 @@ const deserializeAws_json1_0StopExecutionOutput = (output: any, context: __Serde
3701
3704
  return {
3702
3705
  stopDate:
3703
3706
  output.stopDate !== undefined && output.stopDate !== null
3704
- ? new Date(Math.round(output.stopDate * 1000))
3707
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.stopDate)))
3705
3708
  : undefined,
3706
3709
  } as any;
3707
3710
  };
@@ -3863,7 +3866,7 @@ const deserializeAws_json1_0UpdateStateMachineOutput = (
3863
3866
  return {
3864
3867
  updateDate:
3865
3868
  output.updateDate !== undefined && output.updateDate !== null
3866
- ? new Date(Math.round(output.updateDate * 1000))
3869
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updateDate)))
3867
3870
  : undefined,
3868
3871
  } as any;
3869
3872
  };
package/tsconfig.es.json CHANGED
@@ -4,8 +4,6 @@
4
4
  "target": "es5",
5
5
  "module": "esnext",
6
6
  "moduleResolution": "node",
7
- "declaration": false,
8
- "declarationDir": null,
9
7
  "lib": ["dom", "es5", "es2015.promise", "es2015.collection", "es2015.iterable", "es2015.symbol.wellknown"],
10
8
  "outDir": "dist/es"
11
9
  }
package/tsconfig.json CHANGED
@@ -3,7 +3,6 @@
3
3
  "alwaysStrict": true,
4
4
  "target": "ES2018",
5
5
  "module": "commonjs",
6
- "declaration": true,
7
6
  "strict": true,
8
7
  "sourceMap": true,
9
8
  "downlevelIteration": true,
@@ -12,9 +11,8 @@
12
11
  "incremental": true,
13
12
  "resolveJsonModule": true,
14
13
  "esModuleInterop": true,
15
- "declarationDir": "./dist/types",
16
14
  "outDir": "dist/cjs",
17
- "useUnknownInCatchVariables": false
15
+ "removeComments": true
18
16
  },
19
17
  "typedocOptions": {
20
18
  "exclude": ["**/node_modules/**", "**/*.spec.ts", "**/protocols/*.ts", "**/e2e/*.ts", "**/endpoints.ts"],
@@ -24,9 +22,9 @@
24
22
  "ignoreCompilerErrors": true,
25
23
  "includeDeclarations": true,
26
24
  "stripInternal": true,
27
- "readme": "./README.md",
25
+ "readme": "README.md",
28
26
  "mode": "file",
29
- "out": "./docs",
27
+ "out": "docs",
30
28
  "theme": "minimal",
31
29
  "plugin": ["@aws-sdk/client-documentation-generator"]
32
30
  }
@@ -0,0 +1,8 @@
1
+ {
2
+ "extends": "./tsconfig",
3
+ "compilerOptions": {
4
+ "removeComments": false,
5
+ "declaration": true,
6
+ "declarationDir": "dist/types"
7
+ }
8
+ }