@aws-sdk/client-mturk 3.927.0 → 3.928.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +1084 -1367
- package/dist-cjs/runtimeConfig.shared.js +7 -0
- package/dist-es/MTurkClient.js +2 -0
- package/dist-es/commands/AcceptQualificationRequestCommand.js +3 -9
- package/dist-es/commands/ApproveAssignmentCommand.js +3 -9
- package/dist-es/commands/AssociateQualificationWithWorkerCommand.js +3 -9
- package/dist-es/commands/CreateAdditionalAssignmentsForHITCommand.js +3 -9
- package/dist-es/commands/CreateHITCommand.js +3 -9
- package/dist-es/commands/CreateHITTypeCommand.js +3 -9
- package/dist-es/commands/CreateHITWithHITTypeCommand.js +3 -9
- package/dist-es/commands/CreateQualificationTypeCommand.js +3 -9
- package/dist-es/commands/CreateWorkerBlockCommand.js +3 -9
- package/dist-es/commands/DeleteHITCommand.js +3 -9
- package/dist-es/commands/DeleteQualificationTypeCommand.js +3 -9
- package/dist-es/commands/DeleteWorkerBlockCommand.js +3 -9
- package/dist-es/commands/DisassociateQualificationFromWorkerCommand.js +3 -9
- package/dist-es/commands/GetAccountBalanceCommand.js +3 -9
- package/dist-es/commands/GetAssignmentCommand.js +3 -9
- package/dist-es/commands/GetFileUploadURLCommand.js +3 -9
- package/dist-es/commands/GetHITCommand.js +3 -9
- package/dist-es/commands/GetQualificationScoreCommand.js +3 -9
- package/dist-es/commands/GetQualificationTypeCommand.js +3 -9
- package/dist-es/commands/ListAssignmentsForHITCommand.js +3 -9
- package/dist-es/commands/ListBonusPaymentsCommand.js +3 -9
- package/dist-es/commands/ListHITsCommand.js +3 -9
- package/dist-es/commands/ListHITsForQualificationTypeCommand.js +3 -9
- package/dist-es/commands/ListQualificationRequestsCommand.js +3 -9
- package/dist-es/commands/ListQualificationTypesCommand.js +3 -9
- package/dist-es/commands/ListReviewPolicyResultsForHITCommand.js +3 -9
- package/dist-es/commands/ListReviewableHITsCommand.js +3 -9
- package/dist-es/commands/ListWorkerBlocksCommand.js +3 -9
- package/dist-es/commands/ListWorkersWithQualificationTypeCommand.js +3 -9
- package/dist-es/commands/NotifyWorkersCommand.js +3 -9
- package/dist-es/commands/RejectAssignmentCommand.js +3 -9
- package/dist-es/commands/RejectQualificationRequestCommand.js +3 -9
- package/dist-es/commands/SendBonusCommand.js +3 -9
- package/dist-es/commands/SendTestEventNotificationCommand.js +3 -9
- package/dist-es/commands/UpdateExpirationForHITCommand.js +3 -9
- package/dist-es/commands/UpdateHITReviewStatusCommand.js +3 -9
- package/dist-es/commands/UpdateHITTypeOfHITCommand.js +3 -9
- package/dist-es/commands/UpdateNotificationSettingsCommand.js +3 -9
- package/dist-es/commands/UpdateQualificationTypeCommand.js +3 -9
- package/dist-es/runtimeConfig.shared.js +7 -0
- package/dist-es/schemas/schemas_0.js +1005 -0
- package/dist-types/MTurkClient.d.ts +10 -1
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +161 -0
- package/dist-types/ts3.4/MTurkClient.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +166 -0
- package/package.json +5 -5
- package/dist-es/protocols/Aws_json1_1.js +0 -1092
- package/dist-types/protocols/Aws_json1_1.d.ts +0 -353
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +0 -473
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { ListHITsForQualificationType } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class ListHITsForQualificationTypeCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("MTurkRequesterServiceV20170117", "ListHITsForQualificationType", {})
|
|
17
13
|
.n("MTurkClient", "ListHITsForQualificationTypeCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_ListHITsForQualificationTypeCommand)
|
|
20
|
-
.de(de_ListHITsForQualificationTypeCommand)
|
|
14
|
+
.sc(ListHITsForQualificationType)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { ListQualificationRequests } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class ListQualificationRequestsCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("MTurkRequesterServiceV20170117", "ListQualificationRequests", {})
|
|
17
13
|
.n("MTurkClient", "ListQualificationRequestsCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_ListQualificationRequestsCommand)
|
|
20
|
-
.de(de_ListQualificationRequestsCommand)
|
|
14
|
+
.sc(ListQualificationRequests)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { ListQualificationTypes } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class ListQualificationTypesCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("MTurkRequesterServiceV20170117", "ListQualificationTypes", {})
|
|
17
13
|
.n("MTurkClient", "ListQualificationTypesCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_ListQualificationTypesCommand)
|
|
20
|
-
.de(de_ListQualificationTypesCommand)
|
|
14
|
+
.sc(ListQualificationTypes)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { ListReviewPolicyResultsForHIT } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class ListReviewPolicyResultsForHITCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("MTurkRequesterServiceV20170117", "ListReviewPolicyResultsForHIT", {})
|
|
17
13
|
.n("MTurkClient", "ListReviewPolicyResultsForHITCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_ListReviewPolicyResultsForHITCommand)
|
|
20
|
-
.de(de_ListReviewPolicyResultsForHITCommand)
|
|
14
|
+
.sc(ListReviewPolicyResultsForHIT)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { ListReviewableHITs } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class ListReviewableHITsCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("MTurkRequesterServiceV20170117", "ListReviewableHITs", {})
|
|
17
13
|
.n("MTurkClient", "ListReviewableHITsCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_ListReviewableHITsCommand)
|
|
20
|
-
.de(de_ListReviewableHITsCommand)
|
|
14
|
+
.sc(ListReviewableHITs)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { ListWorkerBlocks } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class ListWorkerBlocksCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("MTurkRequesterServiceV20170117", "ListWorkerBlocks", {})
|
|
17
13
|
.n("MTurkClient", "ListWorkerBlocksCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_ListWorkerBlocksCommand)
|
|
20
|
-
.de(de_ListWorkerBlocksCommand)
|
|
14
|
+
.sc(ListWorkerBlocks)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { ListWorkersWithQualificationType } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class ListWorkersWithQualificationTypeCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("MTurkRequesterServiceV20170117", "ListWorkersWithQualificationType", {})
|
|
17
13
|
.n("MTurkClient", "ListWorkersWithQualificationTypeCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_ListWorkersWithQualificationTypeCommand)
|
|
20
|
-
.de(de_ListWorkersWithQualificationTypeCommand)
|
|
14
|
+
.sc(ListWorkersWithQualificationType)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { NotifyWorkers } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class NotifyWorkersCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("MTurkRequesterServiceV20170117", "NotifyWorkers", {})
|
|
17
13
|
.n("MTurkClient", "NotifyWorkersCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_NotifyWorkersCommand)
|
|
20
|
-
.de(de_NotifyWorkersCommand)
|
|
14
|
+
.sc(NotifyWorkers)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { RejectAssignment } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class RejectAssignmentCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("MTurkRequesterServiceV20170117", "RejectAssignment", {})
|
|
17
13
|
.n("MTurkClient", "RejectAssignmentCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_RejectAssignmentCommand)
|
|
20
|
-
.de(de_RejectAssignmentCommand)
|
|
14
|
+
.sc(RejectAssignment)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { RejectQualificationRequest } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class RejectQualificationRequestCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("MTurkRequesterServiceV20170117", "RejectQualificationRequest", {})
|
|
17
13
|
.n("MTurkClient", "RejectQualificationRequestCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_RejectQualificationRequestCommand)
|
|
20
|
-
.de(de_RejectQualificationRequestCommand)
|
|
14
|
+
.sc(RejectQualificationRequest)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { SendBonus } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class SendBonusCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("MTurkRequesterServiceV20170117", "SendBonus", {})
|
|
17
13
|
.n("MTurkClient", "SendBonusCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_SendBonusCommand)
|
|
20
|
-
.de(de_SendBonusCommand)
|
|
14
|
+
.sc(SendBonus)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { SendTestEventNotification } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class SendTestEventNotificationCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("MTurkRequesterServiceV20170117", "SendTestEventNotification", {})
|
|
17
13
|
.n("MTurkClient", "SendTestEventNotificationCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_SendTestEventNotificationCommand)
|
|
20
|
-
.de(de_SendTestEventNotificationCommand)
|
|
14
|
+
.sc(SendTestEventNotification)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { UpdateExpirationForHIT } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class UpdateExpirationForHITCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("MTurkRequesterServiceV20170117", "UpdateExpirationForHIT", {})
|
|
17
13
|
.n("MTurkClient", "UpdateExpirationForHITCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_UpdateExpirationForHITCommand)
|
|
20
|
-
.de(de_UpdateExpirationForHITCommand)
|
|
14
|
+
.sc(UpdateExpirationForHIT)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { UpdateHITReviewStatus } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class UpdateHITReviewStatusCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("MTurkRequesterServiceV20170117", "UpdateHITReviewStatus", {})
|
|
17
13
|
.n("MTurkClient", "UpdateHITReviewStatusCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_UpdateHITReviewStatusCommand)
|
|
20
|
-
.de(de_UpdateHITReviewStatusCommand)
|
|
14
|
+
.sc(UpdateHITReviewStatus)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { UpdateHITTypeOfHIT } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class UpdateHITTypeOfHITCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("MTurkRequesterServiceV20170117", "UpdateHITTypeOfHIT", {})
|
|
17
13
|
.n("MTurkClient", "UpdateHITTypeOfHITCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_UpdateHITTypeOfHITCommand)
|
|
20
|
-
.de(de_UpdateHITTypeOfHITCommand)
|
|
14
|
+
.sc(UpdateHITTypeOfHIT)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { UpdateNotificationSettings } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class UpdateNotificationSettingsCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("MTurkRequesterServiceV20170117", "UpdateNotificationSettings", {})
|
|
17
13
|
.n("MTurkClient", "UpdateNotificationSettingsCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_UpdateNotificationSettingsCommand)
|
|
20
|
-
.de(de_UpdateNotificationSettingsCommand)
|
|
14
|
+
.sc(UpdateNotificationSettings)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { UpdateQualificationType } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class UpdateQualificationTypeCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("MTurkRequesterServiceV20170117", "UpdateQualificationType", {})
|
|
17
13
|
.n("MTurkClient", "UpdateQualificationTypeCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_UpdateQualificationTypeCommand)
|
|
20
|
-
.de(de_UpdateQualificationTypeCommand)
|
|
14
|
+
.sc(UpdateQualificationType)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AwsSdkSigV4Signer } from "@aws-sdk/core";
|
|
2
|
+
import { AwsJson1_1Protocol } from "@aws-sdk/core/protocols";
|
|
2
3
|
import { NoOpLogger } from "@smithy/smithy-client";
|
|
3
4
|
import { parseUrl } from "@smithy/url-parser";
|
|
4
5
|
import { fromBase64, toBase64 } from "@smithy/util-base64";
|
|
@@ -22,6 +23,12 @@ export const getRuntimeConfig = (config) => {
|
|
|
22
23
|
},
|
|
23
24
|
],
|
|
24
25
|
logger: config?.logger ?? new NoOpLogger(),
|
|
26
|
+
protocol: config?.protocol ??
|
|
27
|
+
new AwsJson1_1Protocol({
|
|
28
|
+
defaultNamespace: "com.amazonaws.mturk",
|
|
29
|
+
serviceTarget: "MTurkRequesterServiceV20170117",
|
|
30
|
+
awsQueryCompatible: false,
|
|
31
|
+
}),
|
|
25
32
|
serviceId: config?.serviceId ?? "MTurk",
|
|
26
33
|
urlParser: config?.urlParser ?? parseUrl,
|
|
27
34
|
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|