@aws-sdk/client-connectcases 3.987.0 → 3.989.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.
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ConnectCasesServiceException = exports.__ServiceException = void 0;
4
+ const smithy_client_1 = require("@smithy/smithy-client");
5
+ Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
6
+ class ConnectCasesServiceException extends smithy_client_1.ServiceException {
7
+ constructor(options) {
8
+ super(options);
9
+ Object.setPrototypeOf(this, ConnectCasesServiceException.prototype);
10
+ }
11
+ }
12
+ exports.ConnectCasesServiceException = ConnectCasesServiceException;
@@ -0,0 +1,103 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ServiceQuotaExceededException = exports.ValidationException = exports.ThrottlingException = exports.ResourceNotFoundException = exports.InternalServerException = exports.ConflictException = exports.AccessDeniedException = void 0;
4
+ const ConnectCasesServiceException_1 = require("./ConnectCasesServiceException");
5
+ class AccessDeniedException extends ConnectCasesServiceException_1.ConnectCasesServiceException {
6
+ name = "AccessDeniedException";
7
+ $fault = "client";
8
+ constructor(opts) {
9
+ super({
10
+ name: "AccessDeniedException",
11
+ $fault: "client",
12
+ ...opts,
13
+ });
14
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
15
+ }
16
+ }
17
+ exports.AccessDeniedException = AccessDeniedException;
18
+ class ConflictException extends ConnectCasesServiceException_1.ConnectCasesServiceException {
19
+ name = "ConflictException";
20
+ $fault = "client";
21
+ constructor(opts) {
22
+ super({
23
+ name: "ConflictException",
24
+ $fault: "client",
25
+ ...opts,
26
+ });
27
+ Object.setPrototypeOf(this, ConflictException.prototype);
28
+ }
29
+ }
30
+ exports.ConflictException = ConflictException;
31
+ class InternalServerException extends ConnectCasesServiceException_1.ConnectCasesServiceException {
32
+ name = "InternalServerException";
33
+ $fault = "server";
34
+ $retryable = {};
35
+ retryAfterSeconds;
36
+ constructor(opts) {
37
+ super({
38
+ name: "InternalServerException",
39
+ $fault: "server",
40
+ ...opts,
41
+ });
42
+ Object.setPrototypeOf(this, InternalServerException.prototype);
43
+ this.retryAfterSeconds = opts.retryAfterSeconds;
44
+ }
45
+ }
46
+ exports.InternalServerException = InternalServerException;
47
+ class ResourceNotFoundException extends ConnectCasesServiceException_1.ConnectCasesServiceException {
48
+ name = "ResourceNotFoundException";
49
+ $fault = "client";
50
+ resourceId;
51
+ resourceType;
52
+ constructor(opts) {
53
+ super({
54
+ name: "ResourceNotFoundException",
55
+ $fault: "client",
56
+ ...opts,
57
+ });
58
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
59
+ this.resourceId = opts.resourceId;
60
+ this.resourceType = opts.resourceType;
61
+ }
62
+ }
63
+ exports.ResourceNotFoundException = ResourceNotFoundException;
64
+ class ThrottlingException extends ConnectCasesServiceException_1.ConnectCasesServiceException {
65
+ name = "ThrottlingException";
66
+ $fault = "client";
67
+ $retryable = {};
68
+ constructor(opts) {
69
+ super({
70
+ name: "ThrottlingException",
71
+ $fault: "client",
72
+ ...opts,
73
+ });
74
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
75
+ }
76
+ }
77
+ exports.ThrottlingException = ThrottlingException;
78
+ class ValidationException extends ConnectCasesServiceException_1.ConnectCasesServiceException {
79
+ name = "ValidationException";
80
+ $fault = "client";
81
+ constructor(opts) {
82
+ super({
83
+ name: "ValidationException",
84
+ $fault: "client",
85
+ ...opts,
86
+ });
87
+ Object.setPrototypeOf(this, ValidationException.prototype);
88
+ }
89
+ }
90
+ exports.ValidationException = ValidationException;
91
+ class ServiceQuotaExceededException extends ConnectCasesServiceException_1.ConnectCasesServiceException {
92
+ name = "ServiceQuotaExceededException";
93
+ $fault = "client";
94
+ constructor(opts) {
95
+ super({
96
+ name: "ServiceQuotaExceededException",
97
+ $fault: "client",
98
+ ...opts,
99
+ });
100
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
101
+ }
102
+ }
103
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
@@ -9,6 +9,7 @@ const util_base64_1 = require("@smithy/util-base64");
9
9
  const util_utf8_1 = require("@smithy/util-utf8");
10
10
  const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
11
11
  const endpointResolver_1 = require("./endpoint/endpointResolver");
12
+ const schemas_0_1 = require("./schemas/schemas_0");
12
13
  const getRuntimeConfig = (config) => {
13
14
  return {
14
15
  apiVersion: "2022-10-03",
@@ -29,6 +30,7 @@ const getRuntimeConfig = (config) => {
29
30
  protocol: config?.protocol ?? protocols_1.AwsRestJsonProtocol,
30
31
  protocolSettings: config?.protocolSettings ?? {
31
32
  defaultNamespace: "com.amazonaws.connectcases",
33
+ errorTypeRegistries: schemas_0_1.errorTypeRegistries,
32
34
  version: "2022-10-03",
33
35
  serviceTarget: "AmazonConnectCases",
34
36
  },