@aws-sdk/client-mturk 3.1077.0 → 3.1079.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 (125) hide show
  1. package/dist-cjs/index.js +47 -393
  2. package/dist-es/commandBuilder.js +6 -0
  3. package/dist-es/commands/AcceptQualificationRequestCommand.js +2 -14
  4. package/dist-es/commands/ApproveAssignmentCommand.js +2 -14
  5. package/dist-es/commands/AssociateQualificationWithWorkerCommand.js +2 -14
  6. package/dist-es/commands/CreateAdditionalAssignmentsForHITCommand.js +2 -14
  7. package/dist-es/commands/CreateHITCommand.js +2 -14
  8. package/dist-es/commands/CreateHITTypeCommand.js +2 -14
  9. package/dist-es/commands/CreateHITWithHITTypeCommand.js +2 -14
  10. package/dist-es/commands/CreateQualificationTypeCommand.js +2 -14
  11. package/dist-es/commands/CreateWorkerBlockCommand.js +2 -14
  12. package/dist-es/commands/DeleteHITCommand.js +2 -14
  13. package/dist-es/commands/DeleteQualificationTypeCommand.js +2 -14
  14. package/dist-es/commands/DeleteWorkerBlockCommand.js +2 -14
  15. package/dist-es/commands/DisassociateQualificationFromWorkerCommand.js +2 -14
  16. package/dist-es/commands/GetAccountBalanceCommand.js +2 -14
  17. package/dist-es/commands/GetAssignmentCommand.js +2 -14
  18. package/dist-es/commands/GetFileUploadURLCommand.js +2 -14
  19. package/dist-es/commands/GetHITCommand.js +2 -14
  20. package/dist-es/commands/GetQualificationScoreCommand.js +2 -14
  21. package/dist-es/commands/GetQualificationTypeCommand.js +2 -14
  22. package/dist-es/commands/ListAssignmentsForHITCommand.js +2 -14
  23. package/dist-es/commands/ListBonusPaymentsCommand.js +2 -14
  24. package/dist-es/commands/ListHITsCommand.js +2 -14
  25. package/dist-es/commands/ListHITsForQualificationTypeCommand.js +2 -14
  26. package/dist-es/commands/ListQualificationRequestsCommand.js +2 -14
  27. package/dist-es/commands/ListQualificationTypesCommand.js +2 -14
  28. package/dist-es/commands/ListReviewPolicyResultsForHITCommand.js +2 -14
  29. package/dist-es/commands/ListReviewableHITsCommand.js +2 -14
  30. package/dist-es/commands/ListWorkerBlocksCommand.js +2 -14
  31. package/dist-es/commands/ListWorkersWithQualificationTypeCommand.js +2 -14
  32. package/dist-es/commands/NotifyWorkersCommand.js +2 -14
  33. package/dist-es/commands/RejectAssignmentCommand.js +2 -14
  34. package/dist-es/commands/RejectQualificationRequestCommand.js +2 -14
  35. package/dist-es/commands/SendBonusCommand.js +2 -14
  36. package/dist-es/commands/SendTestEventNotificationCommand.js +2 -14
  37. package/dist-es/commands/UpdateExpirationForHITCommand.js +2 -14
  38. package/dist-es/commands/UpdateHITReviewStatusCommand.js +2 -14
  39. package/dist-es/commands/UpdateHITTypeOfHITCommand.js +2 -14
  40. package/dist-es/commands/UpdateNotificationSettingsCommand.js +2 -14
  41. package/dist-es/commands/UpdateQualificationTypeCommand.js +2 -14
  42. package/dist-es/index.js +1 -0
  43. package/dist-types/commandBuilder.d.ts +18 -0
  44. package/dist-types/commands/AcceptQualificationRequestCommand.d.ts +3 -8
  45. package/dist-types/commands/ApproveAssignmentCommand.d.ts +3 -8
  46. package/dist-types/commands/AssociateQualificationWithWorkerCommand.d.ts +3 -8
  47. package/dist-types/commands/CreateAdditionalAssignmentsForHITCommand.d.ts +3 -8
  48. package/dist-types/commands/CreateHITCommand.d.ts +3 -8
  49. package/dist-types/commands/CreateHITTypeCommand.d.ts +3 -8
  50. package/dist-types/commands/CreateHITWithHITTypeCommand.d.ts +3 -8
  51. package/dist-types/commands/CreateQualificationTypeCommand.d.ts +3 -8
  52. package/dist-types/commands/CreateWorkerBlockCommand.d.ts +3 -8
  53. package/dist-types/commands/DeleteHITCommand.d.ts +3 -8
  54. package/dist-types/commands/DeleteQualificationTypeCommand.d.ts +3 -8
  55. package/dist-types/commands/DeleteWorkerBlockCommand.d.ts +3 -8
  56. package/dist-types/commands/DisassociateQualificationFromWorkerCommand.d.ts +3 -8
  57. package/dist-types/commands/GetAccountBalanceCommand.d.ts +3 -8
  58. package/dist-types/commands/GetAssignmentCommand.d.ts +3 -8
  59. package/dist-types/commands/GetFileUploadURLCommand.d.ts +3 -8
  60. package/dist-types/commands/GetHITCommand.d.ts +3 -8
  61. package/dist-types/commands/GetQualificationScoreCommand.d.ts +3 -8
  62. package/dist-types/commands/GetQualificationTypeCommand.d.ts +3 -8
  63. package/dist-types/commands/ListAssignmentsForHITCommand.d.ts +3 -8
  64. package/dist-types/commands/ListBonusPaymentsCommand.d.ts +3 -8
  65. package/dist-types/commands/ListHITsCommand.d.ts +3 -8
  66. package/dist-types/commands/ListHITsForQualificationTypeCommand.d.ts +3 -8
  67. package/dist-types/commands/ListQualificationRequestsCommand.d.ts +3 -8
  68. package/dist-types/commands/ListQualificationTypesCommand.d.ts +3 -8
  69. package/dist-types/commands/ListReviewPolicyResultsForHITCommand.d.ts +3 -8
  70. package/dist-types/commands/ListReviewableHITsCommand.d.ts +3 -8
  71. package/dist-types/commands/ListWorkerBlocksCommand.d.ts +3 -8
  72. package/dist-types/commands/ListWorkersWithQualificationTypeCommand.d.ts +3 -8
  73. package/dist-types/commands/NotifyWorkersCommand.d.ts +3 -8
  74. package/dist-types/commands/RejectAssignmentCommand.d.ts +3 -8
  75. package/dist-types/commands/RejectQualificationRequestCommand.d.ts +3 -8
  76. package/dist-types/commands/SendBonusCommand.d.ts +3 -8
  77. package/dist-types/commands/SendTestEventNotificationCommand.d.ts +3 -8
  78. package/dist-types/commands/UpdateExpirationForHITCommand.d.ts +3 -8
  79. package/dist-types/commands/UpdateHITReviewStatusCommand.d.ts +3 -8
  80. package/dist-types/commands/UpdateHITTypeOfHITCommand.d.ts +3 -8
  81. package/dist-types/commands/UpdateNotificationSettingsCommand.d.ts +3 -8
  82. package/dist-types/commands/UpdateQualificationTypeCommand.d.ts +3 -8
  83. package/dist-types/index.d.ts +1 -0
  84. package/dist-types/ts3.4/commandBuilder.d.ts +46 -0
  85. package/dist-types/ts3.4/commands/AcceptQualificationRequestCommand.d.ts +7 -16
  86. package/dist-types/ts3.4/commands/ApproveAssignmentCommand.d.ts +7 -16
  87. package/dist-types/ts3.4/commands/AssociateQualificationWithWorkerCommand.d.ts +7 -16
  88. package/dist-types/ts3.4/commands/CreateAdditionalAssignmentsForHITCommand.d.ts +7 -16
  89. package/dist-types/ts3.4/commands/CreateHITCommand.d.ts +7 -16
  90. package/dist-types/ts3.4/commands/CreateHITTypeCommand.d.ts +7 -16
  91. package/dist-types/ts3.4/commands/CreateHITWithHITTypeCommand.d.ts +7 -16
  92. package/dist-types/ts3.4/commands/CreateQualificationTypeCommand.d.ts +7 -16
  93. package/dist-types/ts3.4/commands/CreateWorkerBlockCommand.d.ts +7 -16
  94. package/dist-types/ts3.4/commands/DeleteHITCommand.d.ts +7 -16
  95. package/dist-types/ts3.4/commands/DeleteQualificationTypeCommand.d.ts +7 -16
  96. package/dist-types/ts3.4/commands/DeleteWorkerBlockCommand.d.ts +7 -16
  97. package/dist-types/ts3.4/commands/DisassociateQualificationFromWorkerCommand.d.ts +7 -16
  98. package/dist-types/ts3.4/commands/GetAccountBalanceCommand.d.ts +7 -16
  99. package/dist-types/ts3.4/commands/GetAssignmentCommand.d.ts +7 -16
  100. package/dist-types/ts3.4/commands/GetFileUploadURLCommand.d.ts +7 -16
  101. package/dist-types/ts3.4/commands/GetHITCommand.d.ts +7 -16
  102. package/dist-types/ts3.4/commands/GetQualificationScoreCommand.d.ts +7 -16
  103. package/dist-types/ts3.4/commands/GetQualificationTypeCommand.d.ts +7 -16
  104. package/dist-types/ts3.4/commands/ListAssignmentsForHITCommand.d.ts +7 -16
  105. package/dist-types/ts3.4/commands/ListBonusPaymentsCommand.d.ts +7 -16
  106. package/dist-types/ts3.4/commands/ListHITsCommand.d.ts +7 -16
  107. package/dist-types/ts3.4/commands/ListHITsForQualificationTypeCommand.d.ts +7 -16
  108. package/dist-types/ts3.4/commands/ListQualificationRequestsCommand.d.ts +7 -16
  109. package/dist-types/ts3.4/commands/ListQualificationTypesCommand.d.ts +7 -16
  110. package/dist-types/ts3.4/commands/ListReviewPolicyResultsForHITCommand.d.ts +7 -16
  111. package/dist-types/ts3.4/commands/ListReviewableHITsCommand.d.ts +7 -16
  112. package/dist-types/ts3.4/commands/ListWorkerBlocksCommand.d.ts +7 -16
  113. package/dist-types/ts3.4/commands/ListWorkersWithQualificationTypeCommand.d.ts +7 -16
  114. package/dist-types/ts3.4/commands/NotifyWorkersCommand.d.ts +7 -16
  115. package/dist-types/ts3.4/commands/RejectAssignmentCommand.d.ts +7 -16
  116. package/dist-types/ts3.4/commands/RejectQualificationRequestCommand.d.ts +7 -16
  117. package/dist-types/ts3.4/commands/SendBonusCommand.d.ts +7 -16
  118. package/dist-types/ts3.4/commands/SendTestEventNotificationCommand.d.ts +7 -16
  119. package/dist-types/ts3.4/commands/UpdateExpirationForHITCommand.d.ts +7 -16
  120. package/dist-types/ts3.4/commands/UpdateHITReviewStatusCommand.d.ts +7 -16
  121. package/dist-types/ts3.4/commands/UpdateHITTypeOfHITCommand.d.ts +7 -16
  122. package/dist-types/ts3.4/commands/UpdateNotificationSettingsCommand.d.ts +7 -16
  123. package/dist-types/ts3.4/commands/UpdateQualificationTypeCommand.d.ts +7 -16
  124. package/dist-types/ts3.4/index.d.ts +1 -0
  125. package/package.json +8 -8
package/dist-cjs/index.js CHANGED
@@ -1,7 +1,8 @@
1
1
  const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
2
2
  const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
3
- const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
4
- exports.$Command = Command;
3
+ const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, makeBuilder, createAggregatedClient } = require("@smithy/core/client");
4
+ const { Command: $Command } = require("@smithy/core/client");
5
+ exports.$Command = $Command;
5
6
  exports.__Client = Client;
6
7
  const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
7
8
  const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
@@ -68,7 +69,7 @@ const commonParams = {
68
69
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
69
70
  };
70
71
 
71
- var version = "3.1076.0";
72
+ var version = "3.1078.0";
72
73
  var packageInfo = {
73
74
  version: version};
74
75
 
@@ -1264,472 +1265,125 @@ class MTurkClient extends Client {
1264
1265
  }
1265
1266
  }
1266
1267
 
1267
- class AcceptQualificationRequestCommand extends Command
1268
- .classBuilder()
1269
- .ep(commonParams)
1270
- .m(function (Command, cs, config, o) {
1271
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1272
- })
1273
- .s("MTurkRequesterServiceV20170117", "AcceptQualificationRequest", {})
1274
- .n("MTurkClient", "AcceptQualificationRequestCommand")
1275
- .sc(AcceptQualificationRequest$)
1276
- .build() {
1268
+ const command = makeBuilder(commonParams, "MTurkRequesterServiceV20170117", "MTurkClient", getEndpointPlugin);
1269
+ const _ep0 = {};
1270
+ const _mw0 = (Command, cs, config, o) => [];
1271
+
1272
+ class AcceptQualificationRequestCommand extends command(_ep0, _mw0, "AcceptQualificationRequest", AcceptQualificationRequest$) {
1277
1273
  }
1278
1274
 
1279
- class ApproveAssignmentCommand extends Command
1280
- .classBuilder()
1281
- .ep(commonParams)
1282
- .m(function (Command, cs, config, o) {
1283
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1284
- })
1285
- .s("MTurkRequesterServiceV20170117", "ApproveAssignment", {})
1286
- .n("MTurkClient", "ApproveAssignmentCommand")
1287
- .sc(ApproveAssignment$)
1288
- .build() {
1275
+ class ApproveAssignmentCommand extends command(_ep0, _mw0, "ApproveAssignment", ApproveAssignment$) {
1289
1276
  }
1290
1277
 
1291
- class AssociateQualificationWithWorkerCommand extends Command
1292
- .classBuilder()
1293
- .ep(commonParams)
1294
- .m(function (Command, cs, config, o) {
1295
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1296
- })
1297
- .s("MTurkRequesterServiceV20170117", "AssociateQualificationWithWorker", {})
1298
- .n("MTurkClient", "AssociateQualificationWithWorkerCommand")
1299
- .sc(AssociateQualificationWithWorker$)
1300
- .build() {
1278
+ class AssociateQualificationWithWorkerCommand extends command(_ep0, _mw0, "AssociateQualificationWithWorker", AssociateQualificationWithWorker$) {
1301
1279
  }
1302
1280
 
1303
- class CreateAdditionalAssignmentsForHITCommand extends Command
1304
- .classBuilder()
1305
- .ep(commonParams)
1306
- .m(function (Command, cs, config, o) {
1307
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1308
- })
1309
- .s("MTurkRequesterServiceV20170117", "CreateAdditionalAssignmentsForHIT", {})
1310
- .n("MTurkClient", "CreateAdditionalAssignmentsForHITCommand")
1311
- .sc(CreateAdditionalAssignmentsForHIT$)
1312
- .build() {
1281
+ class CreateAdditionalAssignmentsForHITCommand extends command(_ep0, _mw0, "CreateAdditionalAssignmentsForHIT", CreateAdditionalAssignmentsForHIT$) {
1313
1282
  }
1314
1283
 
1315
- class CreateHITCommand extends Command
1316
- .classBuilder()
1317
- .ep(commonParams)
1318
- .m(function (Command, cs, config, o) {
1319
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1320
- })
1321
- .s("MTurkRequesterServiceV20170117", "CreateHIT", {})
1322
- .n("MTurkClient", "CreateHITCommand")
1323
- .sc(CreateHIT$)
1324
- .build() {
1284
+ class CreateHITCommand extends command(_ep0, _mw0, "CreateHIT", CreateHIT$) {
1325
1285
  }
1326
1286
 
1327
- class CreateHITTypeCommand extends Command
1328
- .classBuilder()
1329
- .ep(commonParams)
1330
- .m(function (Command, cs, config, o) {
1331
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1332
- })
1333
- .s("MTurkRequesterServiceV20170117", "CreateHITType", {})
1334
- .n("MTurkClient", "CreateHITTypeCommand")
1335
- .sc(CreateHITType$)
1336
- .build() {
1287
+ class CreateHITTypeCommand extends command(_ep0, _mw0, "CreateHITType", CreateHITType$) {
1337
1288
  }
1338
1289
 
1339
- class CreateHITWithHITTypeCommand extends Command
1340
- .classBuilder()
1341
- .ep(commonParams)
1342
- .m(function (Command, cs, config, o) {
1343
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1344
- })
1345
- .s("MTurkRequesterServiceV20170117", "CreateHITWithHITType", {})
1346
- .n("MTurkClient", "CreateHITWithHITTypeCommand")
1347
- .sc(CreateHITWithHITType$)
1348
- .build() {
1290
+ class CreateHITWithHITTypeCommand extends command(_ep0, _mw0, "CreateHITWithHITType", CreateHITWithHITType$) {
1349
1291
  }
1350
1292
 
1351
- class CreateQualificationTypeCommand extends Command
1352
- .classBuilder()
1353
- .ep(commonParams)
1354
- .m(function (Command, cs, config, o) {
1355
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1356
- })
1357
- .s("MTurkRequesterServiceV20170117", "CreateQualificationType", {})
1358
- .n("MTurkClient", "CreateQualificationTypeCommand")
1359
- .sc(CreateQualificationType$)
1360
- .build() {
1293
+ class CreateQualificationTypeCommand extends command(_ep0, _mw0, "CreateQualificationType", CreateQualificationType$) {
1361
1294
  }
1362
1295
 
1363
- class CreateWorkerBlockCommand extends Command
1364
- .classBuilder()
1365
- .ep(commonParams)
1366
- .m(function (Command, cs, config, o) {
1367
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1368
- })
1369
- .s("MTurkRequesterServiceV20170117", "CreateWorkerBlock", {})
1370
- .n("MTurkClient", "CreateWorkerBlockCommand")
1371
- .sc(CreateWorkerBlock$)
1372
- .build() {
1296
+ class CreateWorkerBlockCommand extends command(_ep0, _mw0, "CreateWorkerBlock", CreateWorkerBlock$) {
1373
1297
  }
1374
1298
 
1375
- class DeleteHITCommand extends Command
1376
- .classBuilder()
1377
- .ep(commonParams)
1378
- .m(function (Command, cs, config, o) {
1379
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1380
- })
1381
- .s("MTurkRequesterServiceV20170117", "DeleteHIT", {})
1382
- .n("MTurkClient", "DeleteHITCommand")
1383
- .sc(DeleteHIT$)
1384
- .build() {
1299
+ class DeleteHITCommand extends command(_ep0, _mw0, "DeleteHIT", DeleteHIT$) {
1385
1300
  }
1386
1301
 
1387
- class DeleteQualificationTypeCommand extends Command
1388
- .classBuilder()
1389
- .ep(commonParams)
1390
- .m(function (Command, cs, config, o) {
1391
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1392
- })
1393
- .s("MTurkRequesterServiceV20170117", "DeleteQualificationType", {})
1394
- .n("MTurkClient", "DeleteQualificationTypeCommand")
1395
- .sc(DeleteQualificationType$)
1396
- .build() {
1302
+ class DeleteQualificationTypeCommand extends command(_ep0, _mw0, "DeleteQualificationType", DeleteQualificationType$) {
1397
1303
  }
1398
1304
 
1399
- class DeleteWorkerBlockCommand extends Command
1400
- .classBuilder()
1401
- .ep(commonParams)
1402
- .m(function (Command, cs, config, o) {
1403
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1404
- })
1405
- .s("MTurkRequesterServiceV20170117", "DeleteWorkerBlock", {})
1406
- .n("MTurkClient", "DeleteWorkerBlockCommand")
1407
- .sc(DeleteWorkerBlock$)
1408
- .build() {
1305
+ class DeleteWorkerBlockCommand extends command(_ep0, _mw0, "DeleteWorkerBlock", DeleteWorkerBlock$) {
1409
1306
  }
1410
1307
 
1411
- class DisassociateQualificationFromWorkerCommand extends Command
1412
- .classBuilder()
1413
- .ep(commonParams)
1414
- .m(function (Command, cs, config, o) {
1415
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1416
- })
1417
- .s("MTurkRequesterServiceV20170117", "DisassociateQualificationFromWorker", {})
1418
- .n("MTurkClient", "DisassociateQualificationFromWorkerCommand")
1419
- .sc(DisassociateQualificationFromWorker$)
1420
- .build() {
1308
+ class DisassociateQualificationFromWorkerCommand extends command(_ep0, _mw0, "DisassociateQualificationFromWorker", DisassociateQualificationFromWorker$) {
1421
1309
  }
1422
1310
 
1423
- class GetAccountBalanceCommand extends Command
1424
- .classBuilder()
1425
- .ep(commonParams)
1426
- .m(function (Command, cs, config, o) {
1427
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1428
- })
1429
- .s("MTurkRequesterServiceV20170117", "GetAccountBalance", {})
1430
- .n("MTurkClient", "GetAccountBalanceCommand")
1431
- .sc(GetAccountBalance$)
1432
- .build() {
1311
+ class GetAccountBalanceCommand extends command(_ep0, _mw0, "GetAccountBalance", GetAccountBalance$) {
1433
1312
  }
1434
1313
 
1435
- class GetAssignmentCommand extends Command
1436
- .classBuilder()
1437
- .ep(commonParams)
1438
- .m(function (Command, cs, config, o) {
1439
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1440
- })
1441
- .s("MTurkRequesterServiceV20170117", "GetAssignment", {})
1442
- .n("MTurkClient", "GetAssignmentCommand")
1443
- .sc(GetAssignment$)
1444
- .build() {
1314
+ class GetAssignmentCommand extends command(_ep0, _mw0, "GetAssignment", GetAssignment$) {
1445
1315
  }
1446
1316
 
1447
- class GetFileUploadURLCommand extends Command
1448
- .classBuilder()
1449
- .ep(commonParams)
1450
- .m(function (Command, cs, config, o) {
1451
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1452
- })
1453
- .s("MTurkRequesterServiceV20170117", "GetFileUploadURL", {})
1454
- .n("MTurkClient", "GetFileUploadURLCommand")
1455
- .sc(GetFileUploadURL$)
1456
- .build() {
1317
+ class GetFileUploadURLCommand extends command(_ep0, _mw0, "GetFileUploadURL", GetFileUploadURL$) {
1457
1318
  }
1458
1319
 
1459
- class GetHITCommand extends Command
1460
- .classBuilder()
1461
- .ep(commonParams)
1462
- .m(function (Command, cs, config, o) {
1463
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1464
- })
1465
- .s("MTurkRequesterServiceV20170117", "GetHIT", {})
1466
- .n("MTurkClient", "GetHITCommand")
1467
- .sc(GetHIT$)
1468
- .build() {
1320
+ class GetHITCommand extends command(_ep0, _mw0, "GetHIT", GetHIT$) {
1469
1321
  }
1470
1322
 
1471
- class GetQualificationScoreCommand extends Command
1472
- .classBuilder()
1473
- .ep(commonParams)
1474
- .m(function (Command, cs, config, o) {
1475
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1476
- })
1477
- .s("MTurkRequesterServiceV20170117", "GetQualificationScore", {})
1478
- .n("MTurkClient", "GetQualificationScoreCommand")
1479
- .sc(GetQualificationScore$)
1480
- .build() {
1323
+ class GetQualificationScoreCommand extends command(_ep0, _mw0, "GetQualificationScore", GetQualificationScore$) {
1481
1324
  }
1482
1325
 
1483
- class GetQualificationTypeCommand extends Command
1484
- .classBuilder()
1485
- .ep(commonParams)
1486
- .m(function (Command, cs, config, o) {
1487
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1488
- })
1489
- .s("MTurkRequesterServiceV20170117", "GetQualificationType", {})
1490
- .n("MTurkClient", "GetQualificationTypeCommand")
1491
- .sc(GetQualificationType$)
1492
- .build() {
1326
+ class GetQualificationTypeCommand extends command(_ep0, _mw0, "GetQualificationType", GetQualificationType$) {
1493
1327
  }
1494
1328
 
1495
- class ListAssignmentsForHITCommand extends Command
1496
- .classBuilder()
1497
- .ep(commonParams)
1498
- .m(function (Command, cs, config, o) {
1499
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1500
- })
1501
- .s("MTurkRequesterServiceV20170117", "ListAssignmentsForHIT", {})
1502
- .n("MTurkClient", "ListAssignmentsForHITCommand")
1503
- .sc(ListAssignmentsForHIT$)
1504
- .build() {
1329
+ class ListAssignmentsForHITCommand extends command(_ep0, _mw0, "ListAssignmentsForHIT", ListAssignmentsForHIT$) {
1505
1330
  }
1506
1331
 
1507
- class ListBonusPaymentsCommand extends Command
1508
- .classBuilder()
1509
- .ep(commonParams)
1510
- .m(function (Command, cs, config, o) {
1511
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1512
- })
1513
- .s("MTurkRequesterServiceV20170117", "ListBonusPayments", {})
1514
- .n("MTurkClient", "ListBonusPaymentsCommand")
1515
- .sc(ListBonusPayments$)
1516
- .build() {
1332
+ class ListBonusPaymentsCommand extends command(_ep0, _mw0, "ListBonusPayments", ListBonusPayments$) {
1517
1333
  }
1518
1334
 
1519
- class ListHITsCommand extends Command
1520
- .classBuilder()
1521
- .ep(commonParams)
1522
- .m(function (Command, cs, config, o) {
1523
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1524
- })
1525
- .s("MTurkRequesterServiceV20170117", "ListHITs", {})
1526
- .n("MTurkClient", "ListHITsCommand")
1527
- .sc(ListHITs$)
1528
- .build() {
1335
+ class ListHITsCommand extends command(_ep0, _mw0, "ListHITs", ListHITs$) {
1529
1336
  }
1530
1337
 
1531
- class ListHITsForQualificationTypeCommand extends Command
1532
- .classBuilder()
1533
- .ep(commonParams)
1534
- .m(function (Command, cs, config, o) {
1535
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1536
- })
1537
- .s("MTurkRequesterServiceV20170117", "ListHITsForQualificationType", {})
1538
- .n("MTurkClient", "ListHITsForQualificationTypeCommand")
1539
- .sc(ListHITsForQualificationType$)
1540
- .build() {
1338
+ class ListHITsForQualificationTypeCommand extends command(_ep0, _mw0, "ListHITsForQualificationType", ListHITsForQualificationType$) {
1541
1339
  }
1542
1340
 
1543
- class ListQualificationRequestsCommand extends Command
1544
- .classBuilder()
1545
- .ep(commonParams)
1546
- .m(function (Command, cs, config, o) {
1547
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1548
- })
1549
- .s("MTurkRequesterServiceV20170117", "ListQualificationRequests", {})
1550
- .n("MTurkClient", "ListQualificationRequestsCommand")
1551
- .sc(ListQualificationRequests$)
1552
- .build() {
1341
+ class ListQualificationRequestsCommand extends command(_ep0, _mw0, "ListQualificationRequests", ListQualificationRequests$) {
1553
1342
  }
1554
1343
 
1555
- class ListQualificationTypesCommand extends Command
1556
- .classBuilder()
1557
- .ep(commonParams)
1558
- .m(function (Command, cs, config, o) {
1559
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1560
- })
1561
- .s("MTurkRequesterServiceV20170117", "ListQualificationTypes", {})
1562
- .n("MTurkClient", "ListQualificationTypesCommand")
1563
- .sc(ListQualificationTypes$)
1564
- .build() {
1344
+ class ListQualificationTypesCommand extends command(_ep0, _mw0, "ListQualificationTypes", ListQualificationTypes$) {
1565
1345
  }
1566
1346
 
1567
- class ListReviewableHITsCommand extends Command
1568
- .classBuilder()
1569
- .ep(commonParams)
1570
- .m(function (Command, cs, config, o) {
1571
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1572
- })
1573
- .s("MTurkRequesterServiceV20170117", "ListReviewableHITs", {})
1574
- .n("MTurkClient", "ListReviewableHITsCommand")
1575
- .sc(ListReviewableHITs$)
1576
- .build() {
1347
+ class ListReviewableHITsCommand extends command(_ep0, _mw0, "ListReviewableHITs", ListReviewableHITs$) {
1577
1348
  }
1578
1349
 
1579
- class ListReviewPolicyResultsForHITCommand extends Command
1580
- .classBuilder()
1581
- .ep(commonParams)
1582
- .m(function (Command, cs, config, o) {
1583
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1584
- })
1585
- .s("MTurkRequesterServiceV20170117", "ListReviewPolicyResultsForHIT", {})
1586
- .n("MTurkClient", "ListReviewPolicyResultsForHITCommand")
1587
- .sc(ListReviewPolicyResultsForHIT$)
1588
- .build() {
1350
+ class ListReviewPolicyResultsForHITCommand extends command(_ep0, _mw0, "ListReviewPolicyResultsForHIT", ListReviewPolicyResultsForHIT$) {
1589
1351
  }
1590
1352
 
1591
- class ListWorkerBlocksCommand extends Command
1592
- .classBuilder()
1593
- .ep(commonParams)
1594
- .m(function (Command, cs, config, o) {
1595
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1596
- })
1597
- .s("MTurkRequesterServiceV20170117", "ListWorkerBlocks", {})
1598
- .n("MTurkClient", "ListWorkerBlocksCommand")
1599
- .sc(ListWorkerBlocks$)
1600
- .build() {
1353
+ class ListWorkerBlocksCommand extends command(_ep0, _mw0, "ListWorkerBlocks", ListWorkerBlocks$) {
1601
1354
  }
1602
1355
 
1603
- class ListWorkersWithQualificationTypeCommand extends Command
1604
- .classBuilder()
1605
- .ep(commonParams)
1606
- .m(function (Command, cs, config, o) {
1607
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1608
- })
1609
- .s("MTurkRequesterServiceV20170117", "ListWorkersWithQualificationType", {})
1610
- .n("MTurkClient", "ListWorkersWithQualificationTypeCommand")
1611
- .sc(ListWorkersWithQualificationType$)
1612
- .build() {
1356
+ class ListWorkersWithQualificationTypeCommand extends command(_ep0, _mw0, "ListWorkersWithQualificationType", ListWorkersWithQualificationType$) {
1613
1357
  }
1614
1358
 
1615
- class NotifyWorkersCommand extends Command
1616
- .classBuilder()
1617
- .ep(commonParams)
1618
- .m(function (Command, cs, config, o) {
1619
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1620
- })
1621
- .s("MTurkRequesterServiceV20170117", "NotifyWorkers", {})
1622
- .n("MTurkClient", "NotifyWorkersCommand")
1623
- .sc(NotifyWorkers$)
1624
- .build() {
1359
+ class NotifyWorkersCommand extends command(_ep0, _mw0, "NotifyWorkers", NotifyWorkers$) {
1625
1360
  }
1626
1361
 
1627
- class RejectAssignmentCommand extends Command
1628
- .classBuilder()
1629
- .ep(commonParams)
1630
- .m(function (Command, cs, config, o) {
1631
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1632
- })
1633
- .s("MTurkRequesterServiceV20170117", "RejectAssignment", {})
1634
- .n("MTurkClient", "RejectAssignmentCommand")
1635
- .sc(RejectAssignment$)
1636
- .build() {
1362
+ class RejectAssignmentCommand extends command(_ep0, _mw0, "RejectAssignment", RejectAssignment$) {
1637
1363
  }
1638
1364
 
1639
- class RejectQualificationRequestCommand extends Command
1640
- .classBuilder()
1641
- .ep(commonParams)
1642
- .m(function (Command, cs, config, o) {
1643
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1644
- })
1645
- .s("MTurkRequesterServiceV20170117", "RejectQualificationRequest", {})
1646
- .n("MTurkClient", "RejectQualificationRequestCommand")
1647
- .sc(RejectQualificationRequest$)
1648
- .build() {
1365
+ class RejectQualificationRequestCommand extends command(_ep0, _mw0, "RejectQualificationRequest", RejectQualificationRequest$) {
1649
1366
  }
1650
1367
 
1651
- class SendBonusCommand extends Command
1652
- .classBuilder()
1653
- .ep(commonParams)
1654
- .m(function (Command, cs, config, o) {
1655
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1656
- })
1657
- .s("MTurkRequesterServiceV20170117", "SendBonus", {})
1658
- .n("MTurkClient", "SendBonusCommand")
1659
- .sc(SendBonus$)
1660
- .build() {
1368
+ class SendBonusCommand extends command(_ep0, _mw0, "SendBonus", SendBonus$) {
1661
1369
  }
1662
1370
 
1663
- class SendTestEventNotificationCommand extends Command
1664
- .classBuilder()
1665
- .ep(commonParams)
1666
- .m(function (Command, cs, config, o) {
1667
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1668
- })
1669
- .s("MTurkRequesterServiceV20170117", "SendTestEventNotification", {})
1670
- .n("MTurkClient", "SendTestEventNotificationCommand")
1671
- .sc(SendTestEventNotification$)
1672
- .build() {
1371
+ class SendTestEventNotificationCommand extends command(_ep0, _mw0, "SendTestEventNotification", SendTestEventNotification$) {
1673
1372
  }
1674
1373
 
1675
- class UpdateExpirationForHITCommand extends Command
1676
- .classBuilder()
1677
- .ep(commonParams)
1678
- .m(function (Command, cs, config, o) {
1679
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1680
- })
1681
- .s("MTurkRequesterServiceV20170117", "UpdateExpirationForHIT", {})
1682
- .n("MTurkClient", "UpdateExpirationForHITCommand")
1683
- .sc(UpdateExpirationForHIT$)
1684
- .build() {
1374
+ class UpdateExpirationForHITCommand extends command(_ep0, _mw0, "UpdateExpirationForHIT", UpdateExpirationForHIT$) {
1685
1375
  }
1686
1376
 
1687
- class UpdateHITReviewStatusCommand extends Command
1688
- .classBuilder()
1689
- .ep(commonParams)
1690
- .m(function (Command, cs, config, o) {
1691
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1692
- })
1693
- .s("MTurkRequesterServiceV20170117", "UpdateHITReviewStatus", {})
1694
- .n("MTurkClient", "UpdateHITReviewStatusCommand")
1695
- .sc(UpdateHITReviewStatus$)
1696
- .build() {
1377
+ class UpdateHITReviewStatusCommand extends command(_ep0, _mw0, "UpdateHITReviewStatus", UpdateHITReviewStatus$) {
1697
1378
  }
1698
1379
 
1699
- class UpdateHITTypeOfHITCommand extends Command
1700
- .classBuilder()
1701
- .ep(commonParams)
1702
- .m(function (Command, cs, config, o) {
1703
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1704
- })
1705
- .s("MTurkRequesterServiceV20170117", "UpdateHITTypeOfHIT", {})
1706
- .n("MTurkClient", "UpdateHITTypeOfHITCommand")
1707
- .sc(UpdateHITTypeOfHIT$)
1708
- .build() {
1380
+ class UpdateHITTypeOfHITCommand extends command(_ep0, _mw0, "UpdateHITTypeOfHIT", UpdateHITTypeOfHIT$) {
1709
1381
  }
1710
1382
 
1711
- class UpdateNotificationSettingsCommand extends Command
1712
- .classBuilder()
1713
- .ep(commonParams)
1714
- .m(function (Command, cs, config, o) {
1715
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1716
- })
1717
- .s("MTurkRequesterServiceV20170117", "UpdateNotificationSettings", {})
1718
- .n("MTurkClient", "UpdateNotificationSettingsCommand")
1719
- .sc(UpdateNotificationSettings$)
1720
- .build() {
1383
+ class UpdateNotificationSettingsCommand extends command(_ep0, _mw0, "UpdateNotificationSettings", UpdateNotificationSettings$) {
1721
1384
  }
1722
1385
 
1723
- class UpdateQualificationTypeCommand extends Command
1724
- .classBuilder()
1725
- .ep(commonParams)
1726
- .m(function (Command, cs, config, o) {
1727
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1728
- })
1729
- .s("MTurkRequesterServiceV20170117", "UpdateQualificationType", {})
1730
- .n("MTurkClient", "UpdateQualificationTypeCommand")
1731
- .sc(UpdateQualificationType$)
1732
- .build() {
1386
+ class UpdateQualificationTypeCommand extends command(_ep0, _mw0, "UpdateQualificationType", UpdateQualificationType$) {
1733
1387
  }
1734
1388
 
1735
1389
  const paginateListAssignmentsForHIT = createPaginator(MTurkClient, ListAssignmentsForHITCommand, "NextToken", "NextToken", "MaxResults");
@@ -0,0 +1,6 @@
1
+ import { makeBuilder } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "./endpoint/EndpointParameters";
4
+ export const command = makeBuilder(commonParams, "MTurkRequesterServiceV20170117", "MTurkClient", getEndpointPlugin);
5
+ export const _ep0 = {};
6
+ export const _mw0 = (Command, cs, config, o) => [];
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { AcceptQualificationRequest$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class AcceptQualificationRequestCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("MTurkRequesterServiceV20170117", "AcceptQualificationRequest", {})
13
- .n("MTurkClient", "AcceptQualificationRequestCommand")
14
- .sc(AcceptQualificationRequest$)
15
- .build() {
3
+ export class AcceptQualificationRequestCommand extends command(_ep0, _mw0, "AcceptQualificationRequest", AcceptQualificationRequest$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ApproveAssignment$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ApproveAssignmentCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("MTurkRequesterServiceV20170117", "ApproveAssignment", {})
13
- .n("MTurkClient", "ApproveAssignmentCommand")
14
- .sc(ApproveAssignment$)
15
- .build() {
3
+ export class ApproveAssignmentCommand extends command(_ep0, _mw0, "ApproveAssignment", ApproveAssignment$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { AssociateQualificationWithWorker$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class AssociateQualificationWithWorkerCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("MTurkRequesterServiceV20170117", "AssociateQualificationWithWorker", {})
13
- .n("MTurkClient", "AssociateQualificationWithWorkerCommand")
14
- .sc(AssociateQualificationWithWorker$)
15
- .build() {
3
+ export class AssociateQualificationWithWorkerCommand extends command(_ep0, _mw0, "AssociateQualificationWithWorker", AssociateQualificationWithWorker$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { CreateAdditionalAssignmentsForHIT$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class CreateAdditionalAssignmentsForHITCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("MTurkRequesterServiceV20170117", "CreateAdditionalAssignmentsForHIT", {})
13
- .n("MTurkClient", "CreateAdditionalAssignmentsForHITCommand")
14
- .sc(CreateAdditionalAssignmentsForHIT$)
15
- .build() {
3
+ export class CreateAdditionalAssignmentsForHITCommand extends command(_ep0, _mw0, "CreateAdditionalAssignmentsForHIT", CreateAdditionalAssignmentsForHIT$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { CreateHIT$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class CreateHITCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("MTurkRequesterServiceV20170117", "CreateHIT", {})
13
- .n("MTurkClient", "CreateHITCommand")
14
- .sc(CreateHIT$)
15
- .build() {
3
+ export class CreateHITCommand extends command(_ep0, _mw0, "CreateHIT", CreateHIT$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { CreateHITType$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class CreateHITTypeCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("MTurkRequesterServiceV20170117", "CreateHITType", {})
13
- .n("MTurkClient", "CreateHITTypeCommand")
14
- .sc(CreateHITType$)
15
- .build() {
3
+ export class CreateHITTypeCommand extends command(_ep0, _mw0, "CreateHITType", CreateHITType$) {
16
4
  }