@aws-sdk/client-mturk 3.52.0 → 3.53.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.
@@ -3,3 +3,4 @@ export * from "./MTurkClient";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
5
  export * from "./pagination";
6
+ export { MTurkServiceException } from "./models/MTurkServiceException";
@@ -0,0 +1,10 @@
1
+ import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
2
+ /**
3
+ * Base exception class for all service exceptions from MTurk service.
4
+ */
5
+ export declare class MTurkServiceException extends __ServiceException {
6
+ /**
7
+ * @internal
8
+ */
9
+ constructor(options: __ServiceExceptionOptions);
10
+ }
@@ -1,4 +1,5 @@
1
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
+ import { MTurkServiceException as __BaseException } from "./MTurkServiceException";
2
3
  export interface AcceptQualificationRequestRequest {
3
4
  /**
4
5
  * <p>The ID of the Qualification request, as returned by the <code>GetQualificationRequests</code> operation.</p>
@@ -29,20 +30,28 @@ export declare namespace AcceptQualificationRequestResponse {
29
30
  /**
30
31
  * <p>Your request is invalid.</p>
31
32
  */
32
- export interface RequestError extends __SmithyException, $MetadataBearer {
33
- name: "RequestError";
34
- $fault: "client";
33
+ export declare class RequestError extends __BaseException {
34
+ readonly name: "RequestError";
35
+ readonly $fault: "client";
35
36
  Message?: string;
36
37
  TurkErrorCode?: string;
38
+ /**
39
+ * @internal
40
+ */
41
+ constructor(opts: __ExceptionOptionType<RequestError, __BaseException>);
37
42
  }
38
43
  /**
39
44
  * <p>Amazon Mechanical Turk is temporarily unable to process your request. Try your call again.</p>
40
45
  */
41
- export interface ServiceFault extends __SmithyException, $MetadataBearer {
42
- name: "ServiceFault";
43
- $fault: "server";
46
+ export declare class ServiceFault extends __BaseException {
47
+ readonly name: "ServiceFault";
48
+ readonly $fault: "server";
44
49
  Message?: string;
45
50
  TurkErrorCode?: string;
51
+ /**
52
+ * @internal
53
+ */
54
+ constructor(opts: __ExceptionOptionType<ServiceFault, __BaseException>);
46
55
  }
47
56
  export interface ApproveAssignmentRequest {
48
57
  /**
@@ -3,3 +3,4 @@ export * from "./MTurkClient";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
5
  export * from "./pagination";
6
+ export { MTurkServiceException } from "./models/MTurkServiceException";
@@ -0,0 +1,6 @@
1
+ import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
2
+
3
+ export declare class MTurkServiceException extends __ServiceException {
4
+
5
+ constructor(options: __ServiceExceptionOptions);
6
+ }
@@ -1,4 +1,5 @@
1
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
+ import { MTurkServiceException as __BaseException } from "./MTurkServiceException";
2
3
  export interface AcceptQualificationRequestRequest {
3
4
 
4
5
  QualificationRequestId: string | undefined;
@@ -16,18 +17,22 @@ export declare namespace AcceptQualificationRequestResponse {
16
17
  const filterSensitiveLog: (obj: AcceptQualificationRequestResponse) => any;
17
18
  }
18
19
 
19
- export interface RequestError extends __SmithyException, $MetadataBearer {
20
- name: "RequestError";
21
- $fault: "client";
20
+ export declare class RequestError extends __BaseException {
21
+ readonly name: "RequestError";
22
+ readonly $fault: "client";
22
23
  Message?: string;
23
24
  TurkErrorCode?: string;
25
+
26
+ constructor(opts: __ExceptionOptionType<RequestError, __BaseException>);
24
27
  }
25
28
 
26
- export interface ServiceFault extends __SmithyException, $MetadataBearer {
27
- name: "ServiceFault";
28
- $fault: "server";
29
+ export declare class ServiceFault extends __BaseException {
30
+ readonly name: "ServiceFault";
31
+ readonly $fault: "server";
29
32
  Message?: string;
30
33
  TurkErrorCode?: string;
34
+
35
+ constructor(opts: __ExceptionOptionType<ServiceFault, __BaseException>);
31
36
  }
32
37
  export interface ApproveAssignmentRequest {
33
38
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-mturk",
3
3
  "description": "AWS SDK for JavaScript Mturk Client for Node.js, Browser and React Native",
4
- "version": "3.52.0",
4
+ "version": "3.53.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -18,34 +18,34 @@
18
18
  "dependencies": {
19
19
  "@aws-crypto/sha256-browser": "2.0.0",
20
20
  "@aws-crypto/sha256-js": "2.0.0",
21
- "@aws-sdk/client-sts": "3.52.0",
22
- "@aws-sdk/config-resolver": "3.52.0",
23
- "@aws-sdk/credential-provider-node": "3.52.0",
24
- "@aws-sdk/fetch-http-handler": "3.52.0",
25
- "@aws-sdk/hash-node": "3.52.0",
26
- "@aws-sdk/invalid-dependency": "3.52.0",
27
- "@aws-sdk/middleware-content-length": "3.52.0",
28
- "@aws-sdk/middleware-host-header": "3.52.0",
29
- "@aws-sdk/middleware-logger": "3.52.0",
30
- "@aws-sdk/middleware-retry": "3.52.0",
31
- "@aws-sdk/middleware-serde": "3.52.0",
32
- "@aws-sdk/middleware-signing": "3.52.0",
33
- "@aws-sdk/middleware-stack": "3.52.0",
34
- "@aws-sdk/middleware-user-agent": "3.52.0",
35
- "@aws-sdk/node-config-provider": "3.52.0",
36
- "@aws-sdk/node-http-handler": "3.52.0",
37
- "@aws-sdk/protocol-http": "3.52.0",
38
- "@aws-sdk/smithy-client": "3.52.0",
39
- "@aws-sdk/types": "3.52.0",
40
- "@aws-sdk/url-parser": "3.52.0",
21
+ "@aws-sdk/client-sts": "3.53.0",
22
+ "@aws-sdk/config-resolver": "3.53.0",
23
+ "@aws-sdk/credential-provider-node": "3.53.0",
24
+ "@aws-sdk/fetch-http-handler": "3.53.0",
25
+ "@aws-sdk/hash-node": "3.53.0",
26
+ "@aws-sdk/invalid-dependency": "3.53.0",
27
+ "@aws-sdk/middleware-content-length": "3.53.0",
28
+ "@aws-sdk/middleware-host-header": "3.53.0",
29
+ "@aws-sdk/middleware-logger": "3.53.0",
30
+ "@aws-sdk/middleware-retry": "3.53.0",
31
+ "@aws-sdk/middleware-serde": "3.53.0",
32
+ "@aws-sdk/middleware-signing": "3.53.0",
33
+ "@aws-sdk/middleware-stack": "3.53.0",
34
+ "@aws-sdk/middleware-user-agent": "3.53.0",
35
+ "@aws-sdk/node-config-provider": "3.53.0",
36
+ "@aws-sdk/node-http-handler": "3.53.0",
37
+ "@aws-sdk/protocol-http": "3.53.0",
38
+ "@aws-sdk/smithy-client": "3.53.0",
39
+ "@aws-sdk/types": "3.53.0",
40
+ "@aws-sdk/url-parser": "3.53.0",
41
41
  "@aws-sdk/util-base64-browser": "3.52.0",
42
42
  "@aws-sdk/util-base64-node": "3.52.0",
43
43
  "@aws-sdk/util-body-length-browser": "3.52.0",
44
44
  "@aws-sdk/util-body-length-node": "3.52.0",
45
- "@aws-sdk/util-defaults-mode-browser": "3.52.0",
46
- "@aws-sdk/util-defaults-mode-node": "3.52.0",
47
- "@aws-sdk/util-user-agent-browser": "3.52.0",
48
- "@aws-sdk/util-user-agent-node": "3.52.0",
45
+ "@aws-sdk/util-defaults-mode-browser": "3.53.0",
46
+ "@aws-sdk/util-defaults-mode-node": "3.53.0",
47
+ "@aws-sdk/util-user-agent-browser": "3.53.0",
48
+ "@aws-sdk/util-user-agent-node": "3.53.0",
49
49
  "@aws-sdk/util-utf8-browser": "3.52.0",
50
50
  "@aws-sdk/util-utf8-node": "3.52.0",
51
51
  "tslib": "^2.3.0"