@aws-sdk/client-mturk 3.53.0 → 3.55.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/CHANGELOG.md +24 -0
- package/dist-cjs/MTurkClient.js +13 -13
- package/dist-cjs/commands/AcceptQualificationRequestCommand.js +3 -3
- package/dist-cjs/commands/ApproveAssignmentCommand.js +3 -3
- package/dist-cjs/commands/AssociateQualificationWithWorkerCommand.js +3 -3
- package/dist-cjs/commands/CreateAdditionalAssignmentsForHITCommand.js +3 -3
- package/dist-cjs/commands/CreateHITCommand.js +3 -3
- package/dist-cjs/commands/CreateHITTypeCommand.js +3 -3
- package/dist-cjs/commands/CreateHITWithHITTypeCommand.js +3 -3
- package/dist-cjs/commands/CreateQualificationTypeCommand.js +3 -3
- package/dist-cjs/commands/CreateWorkerBlockCommand.js +3 -3
- package/dist-cjs/commands/DeleteHITCommand.js +3 -3
- package/dist-cjs/commands/DeleteQualificationTypeCommand.js +3 -3
- package/dist-cjs/commands/DeleteWorkerBlockCommand.js +3 -3
- package/dist-cjs/commands/DisassociateQualificationFromWorkerCommand.js +3 -3
- package/dist-cjs/commands/GetAccountBalanceCommand.js +3 -3
- package/dist-cjs/commands/GetAssignmentCommand.js +3 -3
- package/dist-cjs/commands/GetFileUploadURLCommand.js +3 -3
- package/dist-cjs/commands/GetHITCommand.js +3 -3
- package/dist-cjs/commands/GetQualificationScoreCommand.js +3 -3
- package/dist-cjs/commands/GetQualificationTypeCommand.js +3 -3
- package/dist-cjs/commands/ListAssignmentsForHITCommand.js +3 -3
- package/dist-cjs/commands/ListBonusPaymentsCommand.js +3 -3
- package/dist-cjs/commands/ListHITsCommand.js +3 -3
- package/dist-cjs/commands/ListHITsForQualificationTypeCommand.js +3 -3
- package/dist-cjs/commands/ListQualificationRequestsCommand.js +3 -3
- package/dist-cjs/commands/ListQualificationTypesCommand.js +3 -3
- package/dist-cjs/commands/ListReviewPolicyResultsForHITCommand.js +3 -3
- package/dist-cjs/commands/ListReviewableHITsCommand.js +3 -3
- package/dist-cjs/commands/ListWorkerBlocksCommand.js +3 -3
- package/dist-cjs/commands/ListWorkersWithQualificationTypeCommand.js +3 -3
- package/dist-cjs/commands/NotifyWorkersCommand.js +3 -3
- package/dist-cjs/commands/RejectAssignmentCommand.js +3 -3
- package/dist-cjs/commands/RejectQualificationRequestCommand.js +3 -3
- package/dist-cjs/commands/SendBonusCommand.js +3 -3
- package/dist-cjs/commands/SendTestEventNotificationCommand.js +3 -3
- package/dist-cjs/commands/UpdateExpirationForHITCommand.js +3 -3
- package/dist-cjs/commands/UpdateHITReviewStatusCommand.js +3 -3
- package/dist-cjs/commands/UpdateHITTypeOfHITCommand.js +3 -3
- package/dist-cjs/commands/UpdateNotificationSettingsCommand.js +3 -3
- package/dist-cjs/commands/UpdateQualificationTypeCommand.js +3 -3
- package/dist-cjs/endpoints.js +1 -1
- package/dist-cjs/protocols/Aws_json1_1.js +160 -160
- package/dist-cjs/runtimeConfig.browser.js +4 -4
- package/dist-cjs/runtimeConfig.js +9 -9
- package/dist-cjs/runtimeConfig.native.js +1 -1
- package/dist-es/MTurk.js +39 -39
- package/dist-es/pagination/ListAssignmentsForHITPaginator.js +4 -4
- package/dist-es/pagination/ListBonusPaymentsPaginator.js +4 -4
- package/dist-es/pagination/ListHITsForQualificationTypePaginator.js +4 -4
- package/dist-es/pagination/ListHITsPaginator.js +4 -4
- package/dist-es/pagination/ListQualificationRequestsPaginator.js +4 -4
- package/dist-es/pagination/ListQualificationTypesPaginator.js +4 -4
- package/dist-es/pagination/ListReviewPolicyResultsForHITPaginator.js +4 -4
- package/dist-es/pagination/ListReviewableHITsPaginator.js +4 -4
- package/dist-es/pagination/ListWorkerBlocksPaginator.js +4 -4
- package/dist-es/pagination/ListWorkersWithQualificationTypePaginator.js +4 -4
- package/dist-types/MTurkClient.d.ts +2 -2
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +3 -3
- package/dist-types/ts3.4/MTurkClient.d.ts +2 -2
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +3 -3
- package/package.json +34 -34
|
@@ -17,9 +17,9 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
17
17
|
const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
|
|
18
18
|
const getRuntimeConfig = (config) => {
|
|
19
19
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
20
|
-
const defaultsMode = util_defaults_mode_browser_1.resolveDefaultsModeConfig(config);
|
|
20
|
+
const defaultsMode = (0, util_defaults_mode_browser_1.resolveDefaultsModeConfig)(config);
|
|
21
21
|
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
22
|
-
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
22
|
+
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
23
23
|
return {
|
|
24
24
|
...clientSharedValues,
|
|
25
25
|
...config,
|
|
@@ -29,9 +29,9 @@ const getRuntimeConfig = (config) => {
|
|
|
29
29
|
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
|
|
30
30
|
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength,
|
|
31
31
|
credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
32
|
-
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_browser_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
32
|
+
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_browser_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
33
33
|
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
|
|
34
|
-
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalid_dependency_1.invalidProvider("Region is missing"),
|
|
34
|
+
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : (0, invalid_dependency_1.invalidProvider)("Region is missing"),
|
|
35
35
|
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
|
|
36
36
|
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
|
|
37
37
|
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
|
|
@@ -19,9 +19,9 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
19
19
|
const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
|
|
20
20
|
const getRuntimeConfig = (config) => {
|
|
21
21
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
22
|
-
const defaultsMode = util_defaults_mode_node_1.resolveDefaultsModeConfig(config);
|
|
22
|
+
const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
|
|
23
23
|
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
24
|
-
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
24
|
+
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
25
25
|
return {
|
|
26
26
|
...clientSharedValues,
|
|
27
27
|
...config,
|
|
@@ -30,19 +30,19 @@ const getRuntimeConfig = (config) => {
|
|
|
30
30
|
base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
|
|
31
31
|
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
|
|
32
32
|
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
|
|
33
|
-
credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : client_sts_1.decorateDefaultCredentialProvider(credential_provider_node_1.defaultProvider),
|
|
34
|
-
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_node_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
35
|
-
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : node_config_provider_1.loadConfig(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
36
|
-
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : node_config_provider_1.loadConfig(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
33
|
+
credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (0, client_sts_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider),
|
|
34
|
+
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
35
|
+
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
36
|
+
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
37
37
|
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
|
|
38
|
-
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig({
|
|
38
|
+
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (0, node_config_provider_1.loadConfig)({
|
|
39
39
|
...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
40
40
|
default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
|
|
41
41
|
}),
|
|
42
42
|
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
|
|
43
43
|
streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
|
|
44
|
-
useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
|
45
|
-
useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
|
|
44
|
+
useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
|
45
|
+
useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
|
|
46
46
|
utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_node_1.fromUtf8,
|
|
47
47
|
utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_node_1.toUtf8,
|
|
48
48
|
};
|
|
@@ -5,7 +5,7 @@ const sha256_js_1 = require("@aws-crypto/sha256-js");
|
|
|
5
5
|
const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
|
|
6
6
|
const getRuntimeConfig = (config) => {
|
|
7
7
|
var _a;
|
|
8
|
-
const browserDefaults = runtimeConfig_browser_1.getRuntimeConfig(config);
|
|
8
|
+
const browserDefaults = (0, runtimeConfig_browser_1.getRuntimeConfig)(config);
|
|
9
9
|
return {
|
|
10
10
|
...browserDefaults,
|
|
11
11
|
...config,
|
package/dist-es/MTurk.js
CHANGED
|
@@ -51,7 +51,7 @@ var MTurk = (function (_super) {
|
|
|
51
51
|
}
|
|
52
52
|
else if (typeof cb === "function") {
|
|
53
53
|
if (typeof optionsOrCb !== "object")
|
|
54
|
-
throw new Error("Expect http options but get "
|
|
54
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
55
55
|
this.send(command, optionsOrCb || {}, cb);
|
|
56
56
|
}
|
|
57
57
|
else {
|
|
@@ -65,7 +65,7 @@ var MTurk = (function (_super) {
|
|
|
65
65
|
}
|
|
66
66
|
else if (typeof cb === "function") {
|
|
67
67
|
if (typeof optionsOrCb !== "object")
|
|
68
|
-
throw new Error("Expect http options but get "
|
|
68
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
69
69
|
this.send(command, optionsOrCb || {}, cb);
|
|
70
70
|
}
|
|
71
71
|
else {
|
|
@@ -79,7 +79,7 @@ var MTurk = (function (_super) {
|
|
|
79
79
|
}
|
|
80
80
|
else if (typeof cb === "function") {
|
|
81
81
|
if (typeof optionsOrCb !== "object")
|
|
82
|
-
throw new Error("Expect http options but get "
|
|
82
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
83
83
|
this.send(command, optionsOrCb || {}, cb);
|
|
84
84
|
}
|
|
85
85
|
else {
|
|
@@ -93,7 +93,7 @@ var MTurk = (function (_super) {
|
|
|
93
93
|
}
|
|
94
94
|
else if (typeof cb === "function") {
|
|
95
95
|
if (typeof optionsOrCb !== "object")
|
|
96
|
-
throw new Error("Expect http options but get "
|
|
96
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
97
97
|
this.send(command, optionsOrCb || {}, cb);
|
|
98
98
|
}
|
|
99
99
|
else {
|
|
@@ -107,7 +107,7 @@ var MTurk = (function (_super) {
|
|
|
107
107
|
}
|
|
108
108
|
else if (typeof cb === "function") {
|
|
109
109
|
if (typeof optionsOrCb !== "object")
|
|
110
|
-
throw new Error("Expect http options but get "
|
|
110
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
111
111
|
this.send(command, optionsOrCb || {}, cb);
|
|
112
112
|
}
|
|
113
113
|
else {
|
|
@@ -121,7 +121,7 @@ var MTurk = (function (_super) {
|
|
|
121
121
|
}
|
|
122
122
|
else if (typeof cb === "function") {
|
|
123
123
|
if (typeof optionsOrCb !== "object")
|
|
124
|
-
throw new Error("Expect http options but get "
|
|
124
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
125
125
|
this.send(command, optionsOrCb || {}, cb);
|
|
126
126
|
}
|
|
127
127
|
else {
|
|
@@ -135,7 +135,7 @@ var MTurk = (function (_super) {
|
|
|
135
135
|
}
|
|
136
136
|
else if (typeof cb === "function") {
|
|
137
137
|
if (typeof optionsOrCb !== "object")
|
|
138
|
-
throw new Error("Expect http options but get "
|
|
138
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
139
139
|
this.send(command, optionsOrCb || {}, cb);
|
|
140
140
|
}
|
|
141
141
|
else {
|
|
@@ -149,7 +149,7 @@ var MTurk = (function (_super) {
|
|
|
149
149
|
}
|
|
150
150
|
else if (typeof cb === "function") {
|
|
151
151
|
if (typeof optionsOrCb !== "object")
|
|
152
|
-
throw new Error("Expect http options but get "
|
|
152
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
153
153
|
this.send(command, optionsOrCb || {}, cb);
|
|
154
154
|
}
|
|
155
155
|
else {
|
|
@@ -163,7 +163,7 @@ var MTurk = (function (_super) {
|
|
|
163
163
|
}
|
|
164
164
|
else if (typeof cb === "function") {
|
|
165
165
|
if (typeof optionsOrCb !== "object")
|
|
166
|
-
throw new Error("Expect http options but get "
|
|
166
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
167
167
|
this.send(command, optionsOrCb || {}, cb);
|
|
168
168
|
}
|
|
169
169
|
else {
|
|
@@ -177,7 +177,7 @@ var MTurk = (function (_super) {
|
|
|
177
177
|
}
|
|
178
178
|
else if (typeof cb === "function") {
|
|
179
179
|
if (typeof optionsOrCb !== "object")
|
|
180
|
-
throw new Error("Expect http options but get "
|
|
180
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
181
181
|
this.send(command, optionsOrCb || {}, cb);
|
|
182
182
|
}
|
|
183
183
|
else {
|
|
@@ -191,7 +191,7 @@ var MTurk = (function (_super) {
|
|
|
191
191
|
}
|
|
192
192
|
else if (typeof cb === "function") {
|
|
193
193
|
if (typeof optionsOrCb !== "object")
|
|
194
|
-
throw new Error("Expect http options but get "
|
|
194
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
195
195
|
this.send(command, optionsOrCb || {}, cb);
|
|
196
196
|
}
|
|
197
197
|
else {
|
|
@@ -205,7 +205,7 @@ var MTurk = (function (_super) {
|
|
|
205
205
|
}
|
|
206
206
|
else if (typeof cb === "function") {
|
|
207
207
|
if (typeof optionsOrCb !== "object")
|
|
208
|
-
throw new Error("Expect http options but get "
|
|
208
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
209
209
|
this.send(command, optionsOrCb || {}, cb);
|
|
210
210
|
}
|
|
211
211
|
else {
|
|
@@ -219,7 +219,7 @@ var MTurk = (function (_super) {
|
|
|
219
219
|
}
|
|
220
220
|
else if (typeof cb === "function") {
|
|
221
221
|
if (typeof optionsOrCb !== "object")
|
|
222
|
-
throw new Error("Expect http options but get "
|
|
222
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
223
223
|
this.send(command, optionsOrCb || {}, cb);
|
|
224
224
|
}
|
|
225
225
|
else {
|
|
@@ -233,7 +233,7 @@ var MTurk = (function (_super) {
|
|
|
233
233
|
}
|
|
234
234
|
else if (typeof cb === "function") {
|
|
235
235
|
if (typeof optionsOrCb !== "object")
|
|
236
|
-
throw new Error("Expect http options but get "
|
|
236
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
237
237
|
this.send(command, optionsOrCb || {}, cb);
|
|
238
238
|
}
|
|
239
239
|
else {
|
|
@@ -247,7 +247,7 @@ var MTurk = (function (_super) {
|
|
|
247
247
|
}
|
|
248
248
|
else if (typeof cb === "function") {
|
|
249
249
|
if (typeof optionsOrCb !== "object")
|
|
250
|
-
throw new Error("Expect http options but get "
|
|
250
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
251
251
|
this.send(command, optionsOrCb || {}, cb);
|
|
252
252
|
}
|
|
253
253
|
else {
|
|
@@ -261,7 +261,7 @@ var MTurk = (function (_super) {
|
|
|
261
261
|
}
|
|
262
262
|
else if (typeof cb === "function") {
|
|
263
263
|
if (typeof optionsOrCb !== "object")
|
|
264
|
-
throw new Error("Expect http options but get "
|
|
264
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
265
265
|
this.send(command, optionsOrCb || {}, cb);
|
|
266
266
|
}
|
|
267
267
|
else {
|
|
@@ -275,7 +275,7 @@ var MTurk = (function (_super) {
|
|
|
275
275
|
}
|
|
276
276
|
else if (typeof cb === "function") {
|
|
277
277
|
if (typeof optionsOrCb !== "object")
|
|
278
|
-
throw new Error("Expect http options but get "
|
|
278
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
279
279
|
this.send(command, optionsOrCb || {}, cb);
|
|
280
280
|
}
|
|
281
281
|
else {
|
|
@@ -289,7 +289,7 @@ var MTurk = (function (_super) {
|
|
|
289
289
|
}
|
|
290
290
|
else if (typeof cb === "function") {
|
|
291
291
|
if (typeof optionsOrCb !== "object")
|
|
292
|
-
throw new Error("Expect http options but get "
|
|
292
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
293
293
|
this.send(command, optionsOrCb || {}, cb);
|
|
294
294
|
}
|
|
295
295
|
else {
|
|
@@ -303,7 +303,7 @@ var MTurk = (function (_super) {
|
|
|
303
303
|
}
|
|
304
304
|
else if (typeof cb === "function") {
|
|
305
305
|
if (typeof optionsOrCb !== "object")
|
|
306
|
-
throw new Error("Expect http options but get "
|
|
306
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
307
307
|
this.send(command, optionsOrCb || {}, cb);
|
|
308
308
|
}
|
|
309
309
|
else {
|
|
@@ -317,7 +317,7 @@ var MTurk = (function (_super) {
|
|
|
317
317
|
}
|
|
318
318
|
else if (typeof cb === "function") {
|
|
319
319
|
if (typeof optionsOrCb !== "object")
|
|
320
|
-
throw new Error("Expect http options but get "
|
|
320
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
321
321
|
this.send(command, optionsOrCb || {}, cb);
|
|
322
322
|
}
|
|
323
323
|
else {
|
|
@@ -331,7 +331,7 @@ var MTurk = (function (_super) {
|
|
|
331
331
|
}
|
|
332
332
|
else if (typeof cb === "function") {
|
|
333
333
|
if (typeof optionsOrCb !== "object")
|
|
334
|
-
throw new Error("Expect http options but get "
|
|
334
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
335
335
|
this.send(command, optionsOrCb || {}, cb);
|
|
336
336
|
}
|
|
337
337
|
else {
|
|
@@ -345,7 +345,7 @@ var MTurk = (function (_super) {
|
|
|
345
345
|
}
|
|
346
346
|
else if (typeof cb === "function") {
|
|
347
347
|
if (typeof optionsOrCb !== "object")
|
|
348
|
-
throw new Error("Expect http options but get "
|
|
348
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
349
349
|
this.send(command, optionsOrCb || {}, cb);
|
|
350
350
|
}
|
|
351
351
|
else {
|
|
@@ -359,7 +359,7 @@ var MTurk = (function (_super) {
|
|
|
359
359
|
}
|
|
360
360
|
else if (typeof cb === "function") {
|
|
361
361
|
if (typeof optionsOrCb !== "object")
|
|
362
|
-
throw new Error("Expect http options but get "
|
|
362
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
363
363
|
this.send(command, optionsOrCb || {}, cb);
|
|
364
364
|
}
|
|
365
365
|
else {
|
|
@@ -373,7 +373,7 @@ var MTurk = (function (_super) {
|
|
|
373
373
|
}
|
|
374
374
|
else if (typeof cb === "function") {
|
|
375
375
|
if (typeof optionsOrCb !== "object")
|
|
376
|
-
throw new Error("Expect http options but get "
|
|
376
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
377
377
|
this.send(command, optionsOrCb || {}, cb);
|
|
378
378
|
}
|
|
379
379
|
else {
|
|
@@ -387,7 +387,7 @@ var MTurk = (function (_super) {
|
|
|
387
387
|
}
|
|
388
388
|
else if (typeof cb === "function") {
|
|
389
389
|
if (typeof optionsOrCb !== "object")
|
|
390
|
-
throw new Error("Expect http options but get "
|
|
390
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
391
391
|
this.send(command, optionsOrCb || {}, cb);
|
|
392
392
|
}
|
|
393
393
|
else {
|
|
@@ -401,7 +401,7 @@ var MTurk = (function (_super) {
|
|
|
401
401
|
}
|
|
402
402
|
else if (typeof cb === "function") {
|
|
403
403
|
if (typeof optionsOrCb !== "object")
|
|
404
|
-
throw new Error("Expect http options but get "
|
|
404
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
405
405
|
this.send(command, optionsOrCb || {}, cb);
|
|
406
406
|
}
|
|
407
407
|
else {
|
|
@@ -415,7 +415,7 @@ var MTurk = (function (_super) {
|
|
|
415
415
|
}
|
|
416
416
|
else if (typeof cb === "function") {
|
|
417
417
|
if (typeof optionsOrCb !== "object")
|
|
418
|
-
throw new Error("Expect http options but get "
|
|
418
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
419
419
|
this.send(command, optionsOrCb || {}, cb);
|
|
420
420
|
}
|
|
421
421
|
else {
|
|
@@ -429,7 +429,7 @@ var MTurk = (function (_super) {
|
|
|
429
429
|
}
|
|
430
430
|
else if (typeof cb === "function") {
|
|
431
431
|
if (typeof optionsOrCb !== "object")
|
|
432
|
-
throw new Error("Expect http options but get "
|
|
432
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
433
433
|
this.send(command, optionsOrCb || {}, cb);
|
|
434
434
|
}
|
|
435
435
|
else {
|
|
@@ -443,7 +443,7 @@ var MTurk = (function (_super) {
|
|
|
443
443
|
}
|
|
444
444
|
else if (typeof cb === "function") {
|
|
445
445
|
if (typeof optionsOrCb !== "object")
|
|
446
|
-
throw new Error("Expect http options but get "
|
|
446
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
447
447
|
this.send(command, optionsOrCb || {}, cb);
|
|
448
448
|
}
|
|
449
449
|
else {
|
|
@@ -457,7 +457,7 @@ var MTurk = (function (_super) {
|
|
|
457
457
|
}
|
|
458
458
|
else if (typeof cb === "function") {
|
|
459
459
|
if (typeof optionsOrCb !== "object")
|
|
460
|
-
throw new Error("Expect http options but get "
|
|
460
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
461
461
|
this.send(command, optionsOrCb || {}, cb);
|
|
462
462
|
}
|
|
463
463
|
else {
|
|
@@ -471,7 +471,7 @@ var MTurk = (function (_super) {
|
|
|
471
471
|
}
|
|
472
472
|
else if (typeof cb === "function") {
|
|
473
473
|
if (typeof optionsOrCb !== "object")
|
|
474
|
-
throw new Error("Expect http options but get "
|
|
474
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
475
475
|
this.send(command, optionsOrCb || {}, cb);
|
|
476
476
|
}
|
|
477
477
|
else {
|
|
@@ -485,7 +485,7 @@ var MTurk = (function (_super) {
|
|
|
485
485
|
}
|
|
486
486
|
else if (typeof cb === "function") {
|
|
487
487
|
if (typeof optionsOrCb !== "object")
|
|
488
|
-
throw new Error("Expect http options but get "
|
|
488
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
489
489
|
this.send(command, optionsOrCb || {}, cb);
|
|
490
490
|
}
|
|
491
491
|
else {
|
|
@@ -499,7 +499,7 @@ var MTurk = (function (_super) {
|
|
|
499
499
|
}
|
|
500
500
|
else if (typeof cb === "function") {
|
|
501
501
|
if (typeof optionsOrCb !== "object")
|
|
502
|
-
throw new Error("Expect http options but get "
|
|
502
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
503
503
|
this.send(command, optionsOrCb || {}, cb);
|
|
504
504
|
}
|
|
505
505
|
else {
|
|
@@ -513,7 +513,7 @@ var MTurk = (function (_super) {
|
|
|
513
513
|
}
|
|
514
514
|
else if (typeof cb === "function") {
|
|
515
515
|
if (typeof optionsOrCb !== "object")
|
|
516
|
-
throw new Error("Expect http options but get "
|
|
516
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
517
517
|
this.send(command, optionsOrCb || {}, cb);
|
|
518
518
|
}
|
|
519
519
|
else {
|
|
@@ -527,7 +527,7 @@ var MTurk = (function (_super) {
|
|
|
527
527
|
}
|
|
528
528
|
else if (typeof cb === "function") {
|
|
529
529
|
if (typeof optionsOrCb !== "object")
|
|
530
|
-
throw new Error("Expect http options but get "
|
|
530
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
531
531
|
this.send(command, optionsOrCb || {}, cb);
|
|
532
532
|
}
|
|
533
533
|
else {
|
|
@@ -541,7 +541,7 @@ var MTurk = (function (_super) {
|
|
|
541
541
|
}
|
|
542
542
|
else if (typeof cb === "function") {
|
|
543
543
|
if (typeof optionsOrCb !== "object")
|
|
544
|
-
throw new Error("Expect http options but get "
|
|
544
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
545
545
|
this.send(command, optionsOrCb || {}, cb);
|
|
546
546
|
}
|
|
547
547
|
else {
|
|
@@ -555,7 +555,7 @@ var MTurk = (function (_super) {
|
|
|
555
555
|
}
|
|
556
556
|
else if (typeof cb === "function") {
|
|
557
557
|
if (typeof optionsOrCb !== "object")
|
|
558
|
-
throw new Error("Expect http options but get "
|
|
558
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
559
559
|
this.send(command, optionsOrCb || {}, cb);
|
|
560
560
|
}
|
|
561
561
|
else {
|
|
@@ -569,7 +569,7 @@ var MTurk = (function (_super) {
|
|
|
569
569
|
}
|
|
570
570
|
else if (typeof cb === "function") {
|
|
571
571
|
if (typeof optionsOrCb !== "object")
|
|
572
|
-
throw new Error("Expect http options but get "
|
|
572
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
573
573
|
this.send(command, optionsOrCb || {}, cb);
|
|
574
574
|
}
|
|
575
575
|
else {
|
|
@@ -583,7 +583,7 @@ var MTurk = (function (_super) {
|
|
|
583
583
|
}
|
|
584
584
|
else if (typeof cb === "function") {
|
|
585
585
|
if (typeof optionsOrCb !== "object")
|
|
586
|
-
throw new Error("Expect http options but get "
|
|
586
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
587
587
|
this.send(command, optionsOrCb || {}, cb);
|
|
588
588
|
}
|
|
589
589
|
else {
|
|
@@ -10,7 +10,7 @@ var makePagedClientRequest = function (client, input) {
|
|
|
10
10
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
11
|
return __generator(this, function (_a) {
|
|
12
12
|
switch (_a.label) {
|
|
13
|
-
case 0: return [4, client.send.apply(client, __spreadArray([new ListAssignmentsForHITCommand(input)], __read(args)))];
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListAssignmentsForHITCommand(input)], __read(args), false))];
|
|
14
14
|
case 1: return [2, _a.sent()];
|
|
15
15
|
}
|
|
16
16
|
});
|
|
@@ -24,7 +24,7 @@ var makePagedRequest = function (client, input) {
|
|
|
24
24
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
25
|
return __generator(this, function (_a) {
|
|
26
26
|
switch (_a.label) {
|
|
27
|
-
case 0: return [4, client.listAssignmentsForHIT.apply(client, __spreadArray([input], __read(args)))];
|
|
27
|
+
case 0: return [4, client.listAssignmentsForHIT.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
28
|
case 1: return [2, _a.sent()];
|
|
29
29
|
}
|
|
30
30
|
});
|
|
@@ -48,13 +48,13 @@ export function paginateListAssignmentsForHIT(config, input) {
|
|
|
48
48
|
input.NextToken = token;
|
|
49
49
|
input["MaxResults"] = config.pageSize;
|
|
50
50
|
if (!(config.client instanceof MTurk)) return [3, 3];
|
|
51
|
-
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
52
|
case 2:
|
|
53
53
|
page = _a.sent();
|
|
54
54
|
return [3, 6];
|
|
55
55
|
case 3:
|
|
56
56
|
if (!(config.client instanceof MTurkClient)) return [3, 5];
|
|
57
|
-
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
58
|
case 4:
|
|
59
59
|
page = _a.sent();
|
|
60
60
|
return [3, 6];
|
|
@@ -10,7 +10,7 @@ var makePagedClientRequest = function (client, input) {
|
|
|
10
10
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
11
|
return __generator(this, function (_a) {
|
|
12
12
|
switch (_a.label) {
|
|
13
|
-
case 0: return [4, client.send.apply(client, __spreadArray([new ListBonusPaymentsCommand(input)], __read(args)))];
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListBonusPaymentsCommand(input)], __read(args), false))];
|
|
14
14
|
case 1: return [2, _a.sent()];
|
|
15
15
|
}
|
|
16
16
|
});
|
|
@@ -24,7 +24,7 @@ var makePagedRequest = function (client, input) {
|
|
|
24
24
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
25
|
return __generator(this, function (_a) {
|
|
26
26
|
switch (_a.label) {
|
|
27
|
-
case 0: return [4, client.listBonusPayments.apply(client, __spreadArray([input], __read(args)))];
|
|
27
|
+
case 0: return [4, client.listBonusPayments.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
28
|
case 1: return [2, _a.sent()];
|
|
29
29
|
}
|
|
30
30
|
});
|
|
@@ -48,13 +48,13 @@ export function paginateListBonusPayments(config, input) {
|
|
|
48
48
|
input.NextToken = token;
|
|
49
49
|
input["MaxResults"] = config.pageSize;
|
|
50
50
|
if (!(config.client instanceof MTurk)) return [3, 3];
|
|
51
|
-
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
52
|
case 2:
|
|
53
53
|
page = _a.sent();
|
|
54
54
|
return [3, 6];
|
|
55
55
|
case 3:
|
|
56
56
|
if (!(config.client instanceof MTurkClient)) return [3, 5];
|
|
57
|
-
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
58
|
case 4:
|
|
59
59
|
page = _a.sent();
|
|
60
60
|
return [3, 6];
|
|
@@ -10,7 +10,7 @@ var makePagedClientRequest = function (client, input) {
|
|
|
10
10
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
11
|
return __generator(this, function (_a) {
|
|
12
12
|
switch (_a.label) {
|
|
13
|
-
case 0: return [4, client.send.apply(client, __spreadArray([new ListHITsForQualificationTypeCommand(input)], __read(args)))];
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListHITsForQualificationTypeCommand(input)], __read(args), false))];
|
|
14
14
|
case 1: return [2, _a.sent()];
|
|
15
15
|
}
|
|
16
16
|
});
|
|
@@ -24,7 +24,7 @@ var makePagedRequest = function (client, input) {
|
|
|
24
24
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
25
|
return __generator(this, function (_a) {
|
|
26
26
|
switch (_a.label) {
|
|
27
|
-
case 0: return [4, client.listHITsForQualificationType.apply(client, __spreadArray([input], __read(args)))];
|
|
27
|
+
case 0: return [4, client.listHITsForQualificationType.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
28
|
case 1: return [2, _a.sent()];
|
|
29
29
|
}
|
|
30
30
|
});
|
|
@@ -48,13 +48,13 @@ export function paginateListHITsForQualificationType(config, input) {
|
|
|
48
48
|
input.NextToken = token;
|
|
49
49
|
input["MaxResults"] = config.pageSize;
|
|
50
50
|
if (!(config.client instanceof MTurk)) return [3, 3];
|
|
51
|
-
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
52
|
case 2:
|
|
53
53
|
page = _a.sent();
|
|
54
54
|
return [3, 6];
|
|
55
55
|
case 3:
|
|
56
56
|
if (!(config.client instanceof MTurkClient)) return [3, 5];
|
|
57
|
-
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
58
|
case 4:
|
|
59
59
|
page = _a.sent();
|
|
60
60
|
return [3, 6];
|
|
@@ -10,7 +10,7 @@ var makePagedClientRequest = function (client, input) {
|
|
|
10
10
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
11
|
return __generator(this, function (_a) {
|
|
12
12
|
switch (_a.label) {
|
|
13
|
-
case 0: return [4, client.send.apply(client, __spreadArray([new ListHITsCommand(input)], __read(args)))];
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListHITsCommand(input)], __read(args), false))];
|
|
14
14
|
case 1: return [2, _a.sent()];
|
|
15
15
|
}
|
|
16
16
|
});
|
|
@@ -24,7 +24,7 @@ var makePagedRequest = function (client, input) {
|
|
|
24
24
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
25
|
return __generator(this, function (_a) {
|
|
26
26
|
switch (_a.label) {
|
|
27
|
-
case 0: return [4, client.listHITs.apply(client, __spreadArray([input], __read(args)))];
|
|
27
|
+
case 0: return [4, client.listHITs.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
28
|
case 1: return [2, _a.sent()];
|
|
29
29
|
}
|
|
30
30
|
});
|
|
@@ -48,13 +48,13 @@ export function paginateListHITs(config, input) {
|
|
|
48
48
|
input.NextToken = token;
|
|
49
49
|
input["MaxResults"] = config.pageSize;
|
|
50
50
|
if (!(config.client instanceof MTurk)) return [3, 3];
|
|
51
|
-
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
52
|
case 2:
|
|
53
53
|
page = _a.sent();
|
|
54
54
|
return [3, 6];
|
|
55
55
|
case 3:
|
|
56
56
|
if (!(config.client instanceof MTurkClient)) return [3, 5];
|
|
57
|
-
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
58
|
case 4:
|
|
59
59
|
page = _a.sent();
|
|
60
60
|
return [3, 6];
|
|
@@ -10,7 +10,7 @@ var makePagedClientRequest = function (client, input) {
|
|
|
10
10
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
11
|
return __generator(this, function (_a) {
|
|
12
12
|
switch (_a.label) {
|
|
13
|
-
case 0: return [4, client.send.apply(client, __spreadArray([new ListQualificationRequestsCommand(input)], __read(args)))];
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListQualificationRequestsCommand(input)], __read(args), false))];
|
|
14
14
|
case 1: return [2, _a.sent()];
|
|
15
15
|
}
|
|
16
16
|
});
|
|
@@ -24,7 +24,7 @@ var makePagedRequest = function (client, input) {
|
|
|
24
24
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
25
|
return __generator(this, function (_a) {
|
|
26
26
|
switch (_a.label) {
|
|
27
|
-
case 0: return [4, client.listQualificationRequests.apply(client, __spreadArray([input], __read(args)))];
|
|
27
|
+
case 0: return [4, client.listQualificationRequests.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
28
|
case 1: return [2, _a.sent()];
|
|
29
29
|
}
|
|
30
30
|
});
|
|
@@ -48,13 +48,13 @@ export function paginateListQualificationRequests(config, input) {
|
|
|
48
48
|
input.NextToken = token;
|
|
49
49
|
input["MaxResults"] = config.pageSize;
|
|
50
50
|
if (!(config.client instanceof MTurk)) return [3, 3];
|
|
51
|
-
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
52
|
case 2:
|
|
53
53
|
page = _a.sent();
|
|
54
54
|
return [3, 6];
|
|
55
55
|
case 3:
|
|
56
56
|
if (!(config.client instanceof MTurkClient)) return [3, 5];
|
|
57
|
-
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
58
|
case 4:
|
|
59
59
|
page = _a.sent();
|
|
60
60
|
return [3, 6];
|
|
@@ -10,7 +10,7 @@ var makePagedClientRequest = function (client, input) {
|
|
|
10
10
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
11
|
return __generator(this, function (_a) {
|
|
12
12
|
switch (_a.label) {
|
|
13
|
-
case 0: return [4, client.send.apply(client, __spreadArray([new ListQualificationTypesCommand(input)], __read(args)))];
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListQualificationTypesCommand(input)], __read(args), false))];
|
|
14
14
|
case 1: return [2, _a.sent()];
|
|
15
15
|
}
|
|
16
16
|
});
|
|
@@ -24,7 +24,7 @@ var makePagedRequest = function (client, input) {
|
|
|
24
24
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
25
|
return __generator(this, function (_a) {
|
|
26
26
|
switch (_a.label) {
|
|
27
|
-
case 0: return [4, client.listQualificationTypes.apply(client, __spreadArray([input], __read(args)))];
|
|
27
|
+
case 0: return [4, client.listQualificationTypes.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
28
|
case 1: return [2, _a.sent()];
|
|
29
29
|
}
|
|
30
30
|
});
|
|
@@ -48,13 +48,13 @@ export function paginateListQualificationTypes(config, input) {
|
|
|
48
48
|
input.NextToken = token;
|
|
49
49
|
input["MaxResults"] = config.pageSize;
|
|
50
50
|
if (!(config.client instanceof MTurk)) return [3, 3];
|
|
51
|
-
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
52
|
case 2:
|
|
53
53
|
page = _a.sent();
|
|
54
54
|
return [3, 6];
|
|
55
55
|
case 3:
|
|
56
56
|
if (!(config.client instanceof MTurkClient)) return [3, 5];
|
|
57
|
-
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
58
|
case 4:
|
|
59
59
|
page = _a.sent();
|
|
60
60
|
return [3, 6];
|