@aws-sdk/client-mturk 3.29.0 → 3.33.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 (122) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/dist/cjs/MTurkClient.js +13 -13
  3. package/dist/cjs/MTurkClient.js.map +1 -1
  4. package/dist/cjs/commands/AcceptQualificationRequestCommand.js +3 -3
  5. package/dist/cjs/commands/AcceptQualificationRequestCommand.js.map +1 -1
  6. package/dist/cjs/commands/ApproveAssignmentCommand.js +3 -3
  7. package/dist/cjs/commands/ApproveAssignmentCommand.js.map +1 -1
  8. package/dist/cjs/commands/AssociateQualificationWithWorkerCommand.js +3 -3
  9. package/dist/cjs/commands/AssociateQualificationWithWorkerCommand.js.map +1 -1
  10. package/dist/cjs/commands/CreateAdditionalAssignmentsForHITCommand.js +3 -3
  11. package/dist/cjs/commands/CreateAdditionalAssignmentsForHITCommand.js.map +1 -1
  12. package/dist/cjs/commands/CreateHITCommand.js +3 -3
  13. package/dist/cjs/commands/CreateHITCommand.js.map +1 -1
  14. package/dist/cjs/commands/CreateHITTypeCommand.js +3 -3
  15. package/dist/cjs/commands/CreateHITTypeCommand.js.map +1 -1
  16. package/dist/cjs/commands/CreateHITWithHITTypeCommand.js +3 -3
  17. package/dist/cjs/commands/CreateHITWithHITTypeCommand.js.map +1 -1
  18. package/dist/cjs/commands/CreateQualificationTypeCommand.js +3 -3
  19. package/dist/cjs/commands/CreateQualificationTypeCommand.js.map +1 -1
  20. package/dist/cjs/commands/CreateWorkerBlockCommand.js +3 -3
  21. package/dist/cjs/commands/CreateWorkerBlockCommand.js.map +1 -1
  22. package/dist/cjs/commands/DeleteHITCommand.js +3 -3
  23. package/dist/cjs/commands/DeleteHITCommand.js.map +1 -1
  24. package/dist/cjs/commands/DeleteQualificationTypeCommand.js +3 -3
  25. package/dist/cjs/commands/DeleteQualificationTypeCommand.js.map +1 -1
  26. package/dist/cjs/commands/DeleteWorkerBlockCommand.js +3 -3
  27. package/dist/cjs/commands/DeleteWorkerBlockCommand.js.map +1 -1
  28. package/dist/cjs/commands/DisassociateQualificationFromWorkerCommand.js +3 -3
  29. package/dist/cjs/commands/DisassociateQualificationFromWorkerCommand.js.map +1 -1
  30. package/dist/cjs/commands/GetAccountBalanceCommand.js +3 -3
  31. package/dist/cjs/commands/GetAccountBalanceCommand.js.map +1 -1
  32. package/dist/cjs/commands/GetAssignmentCommand.js +3 -3
  33. package/dist/cjs/commands/GetAssignmentCommand.js.map +1 -1
  34. package/dist/cjs/commands/GetFileUploadURLCommand.js +3 -3
  35. package/dist/cjs/commands/GetFileUploadURLCommand.js.map +1 -1
  36. package/dist/cjs/commands/GetHITCommand.js +3 -3
  37. package/dist/cjs/commands/GetHITCommand.js.map +1 -1
  38. package/dist/cjs/commands/GetQualificationScoreCommand.js +3 -3
  39. package/dist/cjs/commands/GetQualificationScoreCommand.js.map +1 -1
  40. package/dist/cjs/commands/GetQualificationTypeCommand.js +3 -3
  41. package/dist/cjs/commands/GetQualificationTypeCommand.js.map +1 -1
  42. package/dist/cjs/commands/ListAssignmentsForHITCommand.js +3 -3
  43. package/dist/cjs/commands/ListAssignmentsForHITCommand.js.map +1 -1
  44. package/dist/cjs/commands/ListBonusPaymentsCommand.js +3 -3
  45. package/dist/cjs/commands/ListBonusPaymentsCommand.js.map +1 -1
  46. package/dist/cjs/commands/ListHITsCommand.js +3 -3
  47. package/dist/cjs/commands/ListHITsCommand.js.map +1 -1
  48. package/dist/cjs/commands/ListHITsForQualificationTypeCommand.js +3 -3
  49. package/dist/cjs/commands/ListHITsForQualificationTypeCommand.js.map +1 -1
  50. package/dist/cjs/commands/ListQualificationRequestsCommand.js +3 -3
  51. package/dist/cjs/commands/ListQualificationRequestsCommand.js.map +1 -1
  52. package/dist/cjs/commands/ListQualificationTypesCommand.js +3 -3
  53. package/dist/cjs/commands/ListQualificationTypesCommand.js.map +1 -1
  54. package/dist/cjs/commands/ListReviewPolicyResultsForHITCommand.js +3 -3
  55. package/dist/cjs/commands/ListReviewPolicyResultsForHITCommand.js.map +1 -1
  56. package/dist/cjs/commands/ListReviewableHITsCommand.js +3 -3
  57. package/dist/cjs/commands/ListReviewableHITsCommand.js.map +1 -1
  58. package/dist/cjs/commands/ListWorkerBlocksCommand.js +3 -3
  59. package/dist/cjs/commands/ListWorkerBlocksCommand.js.map +1 -1
  60. package/dist/cjs/commands/ListWorkersWithQualificationTypeCommand.js +3 -3
  61. package/dist/cjs/commands/ListWorkersWithQualificationTypeCommand.js.map +1 -1
  62. package/dist/cjs/commands/NotifyWorkersCommand.js +3 -3
  63. package/dist/cjs/commands/NotifyWorkersCommand.js.map +1 -1
  64. package/dist/cjs/commands/RejectAssignmentCommand.js +3 -3
  65. package/dist/cjs/commands/RejectAssignmentCommand.js.map +1 -1
  66. package/dist/cjs/commands/RejectQualificationRequestCommand.js +3 -3
  67. package/dist/cjs/commands/RejectQualificationRequestCommand.js.map +1 -1
  68. package/dist/cjs/commands/SendBonusCommand.js +3 -3
  69. package/dist/cjs/commands/SendBonusCommand.js.map +1 -1
  70. package/dist/cjs/commands/SendTestEventNotificationCommand.js +3 -3
  71. package/dist/cjs/commands/SendTestEventNotificationCommand.js.map +1 -1
  72. package/dist/cjs/commands/UpdateExpirationForHITCommand.js +3 -3
  73. package/dist/cjs/commands/UpdateExpirationForHITCommand.js.map +1 -1
  74. package/dist/cjs/commands/UpdateHITReviewStatusCommand.js +3 -3
  75. package/dist/cjs/commands/UpdateHITReviewStatusCommand.js.map +1 -1
  76. package/dist/cjs/commands/UpdateHITTypeOfHITCommand.js +3 -3
  77. package/dist/cjs/commands/UpdateHITTypeOfHITCommand.js.map +1 -1
  78. package/dist/cjs/commands/UpdateNotificationSettingsCommand.js +3 -3
  79. package/dist/cjs/commands/UpdateNotificationSettingsCommand.js.map +1 -1
  80. package/dist/cjs/commands/UpdateQualificationTypeCommand.js +3 -3
  81. package/dist/cjs/commands/UpdateQualificationTypeCommand.js.map +1 -1
  82. package/dist/cjs/endpoints.js +1 -1
  83. package/dist/cjs/endpoints.js.map +1 -1
  84. package/dist/cjs/index.js +53 -53
  85. package/dist/cjs/index.js.map +1 -1
  86. package/dist/cjs/models/index.js +1 -1
  87. package/dist/cjs/models/index.js.map +1 -1
  88. package/dist/cjs/package.json +31 -31
  89. package/dist/cjs/protocols/Aws_json1_1.js +119 -119
  90. package/dist/cjs/protocols/Aws_json1_1.js.map +1 -1
  91. package/dist/cjs/runtimeConfig.browser.js +4 -4
  92. package/dist/cjs/runtimeConfig.browser.js.map +1 -1
  93. package/dist/cjs/runtimeConfig.js +8 -8
  94. package/dist/cjs/runtimeConfig.js.map +1 -1
  95. package/dist/cjs/runtimeConfig.native.js +1 -1
  96. package/dist/cjs/runtimeConfig.native.js.map +1 -1
  97. package/dist/es/package.json +31 -31
  98. package/dist/es/pagination/ListAssignmentsForHITPaginator.js +4 -4
  99. package/dist/es/pagination/ListAssignmentsForHITPaginator.js.map +1 -1
  100. package/dist/es/pagination/ListBonusPaymentsPaginator.js +4 -4
  101. package/dist/es/pagination/ListBonusPaymentsPaginator.js.map +1 -1
  102. package/dist/es/pagination/ListHITsForQualificationTypePaginator.js +4 -4
  103. package/dist/es/pagination/ListHITsForQualificationTypePaginator.js.map +1 -1
  104. package/dist/es/pagination/ListHITsPaginator.js +4 -4
  105. package/dist/es/pagination/ListHITsPaginator.js.map +1 -1
  106. package/dist/es/pagination/ListQualificationRequestsPaginator.js +4 -4
  107. package/dist/es/pagination/ListQualificationRequestsPaginator.js.map +1 -1
  108. package/dist/es/pagination/ListQualificationTypesPaginator.js +4 -4
  109. package/dist/es/pagination/ListQualificationTypesPaginator.js.map +1 -1
  110. package/dist/es/pagination/ListReviewPolicyResultsForHITPaginator.js +4 -4
  111. package/dist/es/pagination/ListReviewPolicyResultsForHITPaginator.js.map +1 -1
  112. package/dist/es/pagination/ListReviewableHITsPaginator.js +4 -4
  113. package/dist/es/pagination/ListReviewableHITsPaginator.js.map +1 -1
  114. package/dist/es/pagination/ListWorkerBlocksPaginator.js +4 -4
  115. package/dist/es/pagination/ListWorkerBlocksPaginator.js.map +1 -1
  116. package/dist/es/pagination/ListWorkersWithQualificationTypePaginator.js +4 -4
  117. package/dist/es/pagination/ListWorkersWithQualificationTypePaginator.js.map +1 -1
  118. package/dist/es/protocols/Aws_json1_1.js +14 -14
  119. package/dist/es/protocols/Aws_json1_1.js.map +1 -1
  120. package/package.json +31 -31
  121. package/protocols/Aws_json1_1.ts +16 -13
  122. package/tsconfig.json +1 -2
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-mturk",
3
3
  "description": "AWS SDK for JavaScript Mturk Client for Node.js, Browser and React Native",
4
- "version": "3.29.0",
4
+ "version": "3.33.0",
5
5
  "scripts": {
6
6
  "clean": "yarn remove-definitions && yarn remove-dist && yarn remove-documentation",
7
7
  "build-documentation": "yarn remove-documentation && typedoc ./",
@@ -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.29.0",
31
- "@aws-sdk/config-resolver": "3.29.0",
32
- "@aws-sdk/credential-provider-node": "3.29.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.29.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.29.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.33.0",
31
+ "@aws-sdk/config-resolver": "3.33.0",
32
+ "@aws-sdk/credential-provider-node": "3.33.0",
33
+ "@aws-sdk/fetch-http-handler": "3.32.0",
34
+ "@aws-sdk/hash-node": "3.32.0",
35
+ "@aws-sdk/invalid-dependency": "3.32.0",
36
+ "@aws-sdk/middleware-content-length": "3.32.0",
37
+ "@aws-sdk/middleware-host-header": "3.32.0",
38
+ "@aws-sdk/middleware-logger": "3.32.0",
39
+ "@aws-sdk/middleware-retry": "3.32.0",
40
+ "@aws-sdk/middleware-serde": "3.32.0",
41
+ "@aws-sdk/middleware-signing": "3.33.0",
42
+ "@aws-sdk/middleware-stack": "3.32.0",
43
+ "@aws-sdk/middleware-user-agent": "3.32.0",
44
+ "@aws-sdk/node-config-provider": "3.32.0",
45
+ "@aws-sdk/node-http-handler": "3.32.0",
46
+ "@aws-sdk/protocol-http": "3.32.0",
47
+ "@aws-sdk/smithy-client": "3.32.0",
48
+ "@aws-sdk/types": "3.32.0",
49
+ "@aws-sdk/url-parser": "3.32.0",
50
+ "@aws-sdk/util-base64-browser": "3.32.0",
51
+ "@aws-sdk/util-base64-node": "3.32.0",
52
+ "@aws-sdk/util-body-length-browser": "3.32.0",
53
+ "@aws-sdk/util-body-length-node": "3.32.0",
54
+ "@aws-sdk/util-user-agent-browser": "3.32.0",
55
+ "@aws-sdk/util-user-agent-node": "3.33.0",
56
+ "@aws-sdk/util-utf8-browser": "3.32.0",
57
+ "@aws-sdk/util-utf8-node": "3.32.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.32.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"
@@ -208,7 +208,10 @@ import {
208
208
  expectBoolean as __expectBoolean,
209
209
  expectInt32 as __expectInt32,
210
210
  expectLong as __expectLong,
211
+ expectNonNull as __expectNonNull,
212
+ expectNumber as __expectNumber,
211
213
  expectString as __expectString,
214
+ parseEpochTimestamp as __parseEpochTimestamp,
212
215
  } from "@aws-sdk/smithy-client";
213
216
  import {
214
217
  Endpoint as __Endpoint,
@@ -3903,32 +3906,32 @@ const deserializeAws_json1_1Assignment = (output: any, context: __SerdeContext):
3903
3906
  return {
3904
3907
  AcceptTime:
3905
3908
  output.AcceptTime !== undefined && output.AcceptTime !== null
3906
- ? new Date(Math.round(output.AcceptTime * 1000))
3909
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.AcceptTime)))
3907
3910
  : undefined,
3908
3911
  Answer: __expectString(output.Answer),
3909
3912
  ApprovalTime:
3910
3913
  output.ApprovalTime !== undefined && output.ApprovalTime !== null
3911
- ? new Date(Math.round(output.ApprovalTime * 1000))
3914
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ApprovalTime)))
3912
3915
  : undefined,
3913
3916
  AssignmentId: __expectString(output.AssignmentId),
3914
3917
  AssignmentStatus: __expectString(output.AssignmentStatus),
3915
3918
  AutoApprovalTime:
3916
3919
  output.AutoApprovalTime !== undefined && output.AutoApprovalTime !== null
3917
- ? new Date(Math.round(output.AutoApprovalTime * 1000))
3920
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.AutoApprovalTime)))
3918
3921
  : undefined,
3919
3922
  Deadline:
3920
3923
  output.Deadline !== undefined && output.Deadline !== null
3921
- ? new Date(Math.round(output.Deadline * 1000))
3924
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.Deadline)))
3922
3925
  : undefined,
3923
3926
  HITId: __expectString(output.HITId),
3924
3927
  RejectionTime:
3925
3928
  output.RejectionTime !== undefined && output.RejectionTime !== null
3926
- ? new Date(Math.round(output.RejectionTime * 1000))
3929
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.RejectionTime)))
3927
3930
  : undefined,
3928
3931
  RequesterFeedback: __expectString(output.RequesterFeedback),
3929
3932
  SubmitTime:
3930
3933
  output.SubmitTime !== undefined && output.SubmitTime !== null
3931
- ? new Date(Math.round(output.SubmitTime * 1000))
3934
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.SubmitTime)))
3932
3935
  : undefined,
3933
3936
  WorkerId: __expectString(output.WorkerId),
3934
3937
  } as any;
@@ -3958,7 +3961,7 @@ const deserializeAws_json1_1BonusPayment = (output: any, context: __SerdeContext
3958
3961
  BonusAmount: __expectString(output.BonusAmount),
3959
3962
  GrantTime:
3960
3963
  output.GrantTime !== undefined && output.GrantTime !== null
3961
- ? new Date(Math.round(output.GrantTime * 1000))
3964
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.GrantTime)))
3962
3965
  : undefined,
3963
3966
  Reason: __expectString(output.Reason),
3964
3967
  WorkerId: __expectString(output.WorkerId),
@@ -4113,12 +4116,12 @@ const deserializeAws_json1_1HIT = (output: any, context: __SerdeContext): HIT =>
4113
4116
  AutoApprovalDelayInSeconds: __expectLong(output.AutoApprovalDelayInSeconds),
4114
4117
  CreationTime:
4115
4118
  output.CreationTime !== undefined && output.CreationTime !== null
4116
- ? new Date(Math.round(output.CreationTime * 1000))
4119
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
4117
4120
  : undefined,
4118
4121
  Description: __expectString(output.Description),
4119
4122
  Expiration:
4120
4123
  output.Expiration !== undefined && output.Expiration !== null
4121
- ? new Date(Math.round(output.Expiration * 1000))
4124
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.Expiration)))
4122
4125
  : undefined,
4123
4126
  HITGroupId: __expectString(output.HITGroupId),
4124
4127
  HITId: __expectString(output.HITId),
@@ -4415,7 +4418,7 @@ const deserializeAws_json1_1Qualification = (output: any, context: __SerdeContex
4415
4418
  return {
4416
4419
  GrantTime:
4417
4420
  output.GrantTime !== undefined && output.GrantTime !== null
4418
- ? new Date(Math.round(output.GrantTime * 1000))
4421
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.GrantTime)))
4419
4422
  : undefined,
4420
4423
  IntegerValue: __expectInt32(output.IntegerValue),
4421
4424
  LocaleValue:
@@ -4446,7 +4449,7 @@ const deserializeAws_json1_1QualificationRequest = (output: any, context: __Serd
4446
4449
  QualificationTypeId: __expectString(output.QualificationTypeId),
4447
4450
  SubmitTime:
4448
4451
  output.SubmitTime !== undefined && output.SubmitTime !== null
4449
- ? new Date(Math.round(output.SubmitTime * 1000))
4452
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.SubmitTime)))
4450
4453
  : undefined,
4451
4454
  Test: __expectString(output.Test),
4452
4455
  WorkerId: __expectString(output.WorkerId),
@@ -4508,7 +4511,7 @@ const deserializeAws_json1_1QualificationType = (output: any, context: __SerdeCo
4508
4511
  AutoGrantedValue: __expectInt32(output.AutoGrantedValue),
4509
4512
  CreationTime:
4510
4513
  output.CreationTime !== undefined && output.CreationTime !== null
4511
- ? new Date(Math.round(output.CreationTime * 1000))
4514
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
4512
4515
  : undefined,
4513
4516
  Description: __expectString(output.Description),
4514
4517
  IsRequestable: __expectBoolean(output.IsRequestable),
@@ -4560,7 +4563,7 @@ const deserializeAws_json1_1ReviewActionDetail = (output: any, context: __SerdeC
4560
4563
  ActionName: __expectString(output.ActionName),
4561
4564
  CompleteTime:
4562
4565
  output.CompleteTime !== undefined && output.CompleteTime !== null
4563
- ? new Date(Math.round(output.CompleteTime * 1000))
4566
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CompleteTime)))
4564
4567
  : undefined,
4565
4568
  ErrorCode: __expectString(output.ErrorCode),
4566
4569
  Result: __expectString(output.Result),
package/tsconfig.json CHANGED
@@ -13,8 +13,7 @@
13
13
  "resolveJsonModule": true,
14
14
  "esModuleInterop": true,
15
15
  "declarationDir": "./dist/types",
16
- "outDir": "dist/cjs",
17
- "useUnknownInCatchVariables": false
16
+ "outDir": "dist/cjs"
18
17
  },
19
18
  "typedocOptions": {
20
19
  "exclude": ["**/node_modules/**", "**/*.spec.ts", "**/protocols/*.ts", "**/e2e/*.ts", "**/endpoints.ts"],