@aws-sdk/client-connectcases 3.433.0 → 3.436.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.
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ruleSet = void 0;
4
- const q = "required", r = "fn", s = "argv", t = "ref";
5
- const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
6
- const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://cases-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://cases-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://cases.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ endpoint: { url: "https://cases.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
4
+ const s = "required", t = "fn", u = "argv", v = "ref";
5
+ const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = { [s]: false, "type": "String" }, i = { [s]: true, "default": false, "type": "Boolean" }, j = { [v]: "Endpoint" }, k = { [t]: c, [u]: [{ [v]: "UseFIPS" }, true] }, l = { [t]: c, [u]: [{ [v]: "UseDualStack" }, true] }, m = {}, n = { [t]: "getAttr", [u]: [{ [v]: g }, "supportsFIPS"] }, o = { [t]: c, [u]: [true, { [t]: "getAttr", [u]: [{ [v]: g }, "supportsDualStack"] }] }, p = [k], q = [l], r = [{ [v]: "Region" }];
6
+ const _data = { version: "1.0", parameters: { Region: h, UseDualStack: i, UseFIPS: i, Endpoint: h }, rules: [{ conditions: [{ [t]: b, [u]: [j] }], rules: [{ conditions: p, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { rules: [{ conditions: q, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: j, properties: m, headers: m }, type: e }], type: f }], type: f }, { rules: [{ conditions: [{ [t]: b, [u]: r }], rules: [{ conditions: [{ [t]: "aws.partition", [u]: r, assign: g }], rules: [{ conditions: [k, l], rules: [{ conditions: [{ [t]: c, [u]: [a, n] }, o], rules: [{ rules: [{ endpoint: { url: "https://cases-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: e }], type: f }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: p, rules: [{ conditions: [{ [t]: c, [u]: [n, a] }], rules: [{ rules: [{ endpoint: { url: "https://cases-fips.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: e }], type: f }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: q, rules: [{ conditions: [o], rules: [{ rules: [{ endpoint: { url: "https://cases.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: e }], type: f }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { rules: [{ endpoint: { url: "https://cases.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: e }], type: f }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }], type: f }] };
7
7
  exports.ruleSet = _data;
@@ -4,6 +4,7 @@ exports.getRuntimeConfig = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const package_json_1 = tslib_1.__importDefault(require("../package.json"));
6
6
  const client_sts_1 = require("@aws-sdk/client-sts");
7
+ const core_1 = require("@aws-sdk/core");
7
8
  const credential_provider_node_1 = require("@aws-sdk/credential-provider-node");
8
9
  const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
9
10
  const config_resolver_1 = require("@smithy/config-resolver");
@@ -22,6 +23,7 @@ const getRuntimeConfig = (config) => {
22
23
  const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
23
24
  const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
24
25
  const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
26
+ (0, core_1.emitWarningIfUnsupportedVersion)(process.version);
25
27
  return {
26
28
  ...clientSharedValues,
27
29
  ...config,
@@ -6,17 +6,19 @@ const url_parser_1 = require("@smithy/url-parser");
6
6
  const util_base64_1 = require("@smithy/util-base64");
7
7
  const util_utf8_1 = require("@smithy/util-utf8");
8
8
  const endpointResolver_1 = require("./endpoint/endpointResolver");
9
- const getRuntimeConfig = (config) => ({
10
- apiVersion: "2022-10-03",
11
- base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64,
12
- base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,
13
- disableHostPrefix: config?.disableHostPrefix ?? false,
14
- endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
15
- extensions: config?.extensions ?? [],
16
- logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
17
- serviceId: config?.serviceId ?? "ConnectCases",
18
- urlParser: config?.urlParser ?? url_parser_1.parseUrl,
19
- utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
20
- utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8,
21
- });
9
+ const getRuntimeConfig = (config) => {
10
+ return {
11
+ apiVersion: "2022-10-03",
12
+ base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64,
13
+ base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,
14
+ disableHostPrefix: config?.disableHostPrefix ?? false,
15
+ endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
16
+ extensions: config?.extensions ?? [],
17
+ logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
18
+ serviceId: config?.serviceId ?? "ConnectCases",
19
+ urlParser: config?.urlParser ?? url_parser_1.parseUrl,
20
+ utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
21
+ utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8,
22
+ };
23
+ };
22
24
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -1,4 +1,4 @@
1
- const q = "required", r = "fn", s = "argv", t = "ref";
2
- const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
3
- const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://cases-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://cases-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://cases.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ endpoint: { url: "https://cases.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
1
+ const s = "required", t = "fn", u = "argv", v = "ref";
2
+ const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = { [s]: false, "type": "String" }, i = { [s]: true, "default": false, "type": "Boolean" }, j = { [v]: "Endpoint" }, k = { [t]: c, [u]: [{ [v]: "UseFIPS" }, true] }, l = { [t]: c, [u]: [{ [v]: "UseDualStack" }, true] }, m = {}, n = { [t]: "getAttr", [u]: [{ [v]: g }, "supportsFIPS"] }, o = { [t]: c, [u]: [true, { [t]: "getAttr", [u]: [{ [v]: g }, "supportsDualStack"] }] }, p = [k], q = [l], r = [{ [v]: "Region" }];
3
+ const _data = { version: "1.0", parameters: { Region: h, UseDualStack: i, UseFIPS: i, Endpoint: h }, rules: [{ conditions: [{ [t]: b, [u]: [j] }], rules: [{ conditions: p, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { rules: [{ conditions: q, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: j, properties: m, headers: m }, type: e }], type: f }], type: f }, { rules: [{ conditions: [{ [t]: b, [u]: r }], rules: [{ conditions: [{ [t]: "aws.partition", [u]: r, assign: g }], rules: [{ conditions: [k, l], rules: [{ conditions: [{ [t]: c, [u]: [a, n] }, o], rules: [{ rules: [{ endpoint: { url: "https://cases-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: e }], type: f }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: p, rules: [{ conditions: [{ [t]: c, [u]: [n, a] }], rules: [{ rules: [{ endpoint: { url: "https://cases-fips.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: e }], type: f }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: q, rules: [{ conditions: [o], rules: [{ rules: [{ endpoint: { url: "https://cases.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: e }], type: f }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { rules: [{ endpoint: { url: "https://cases.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: e }], type: f }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }], type: f }] };
4
4
  export const ruleSet = _data;
@@ -1,5 +1,6 @@
1
1
  import packageInfo from "../package.json";
2
2
  import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
3
+ import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core";
3
4
  import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
4
5
  import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
5
6
  import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@smithy/config-resolver";
@@ -18,6 +19,7 @@ export const getRuntimeConfig = (config) => {
18
19
  const defaultsMode = resolveDefaultsModeConfig(config);
19
20
  const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
20
21
  const clientSharedValues = getSharedRuntimeConfig(config);
22
+ awsCheckVersion(process.version);
21
23
  return {
22
24
  ...clientSharedValues,
23
25
  ...config,
@@ -3,16 +3,18 @@ import { parseUrl } from "@smithy/url-parser";
3
3
  import { fromBase64, toBase64 } from "@smithy/util-base64";
4
4
  import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
5
5
  import { defaultEndpointResolver } from "./endpoint/endpointResolver";
6
- export const getRuntimeConfig = (config) => ({
7
- apiVersion: "2022-10-03",
8
- base64Decoder: config?.base64Decoder ?? fromBase64,
9
- base64Encoder: config?.base64Encoder ?? toBase64,
10
- disableHostPrefix: config?.disableHostPrefix ?? false,
11
- endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
12
- extensions: config?.extensions ?? [],
13
- logger: config?.logger ?? new NoOpLogger(),
14
- serviceId: config?.serviceId ?? "ConnectCases",
15
- urlParser: config?.urlParser ?? parseUrl,
16
- utf8Decoder: config?.utf8Decoder ?? fromUtf8,
17
- utf8Encoder: config?.utf8Encoder ?? toUtf8,
18
- });
6
+ export const getRuntimeConfig = (config) => {
7
+ return {
8
+ apiVersion: "2022-10-03",
9
+ base64Decoder: config?.base64Decoder ?? fromBase64,
10
+ base64Encoder: config?.base64Encoder ?? toBase64,
11
+ disableHostPrefix: config?.disableHostPrefix ?? false,
12
+ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
13
+ extensions: config?.extensions ?? [],
14
+ logger: config?.logger ?? new NoOpLogger(),
15
+ serviceId: config?.serviceId ?? "ConnectCases",
16
+ urlParser: config?.urlParser ?? parseUrl,
17
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
18
+ utf8Encoder: config?.utf8Encoder ?? toUtf8,
19
+ };
20
+ };
@@ -25,25 +25,21 @@ export interface CreateCaseCommandOutput extends CreateCaseResponse, __MetadataB
25
25
  * @public
26
26
  * <p>Creates a case in the specified Cases domain. Case system and custom fields are taken
27
27
  * as an array id/value pairs with a declared data types.</p>
28
- * <note>
29
- * <p>The following fields are required when creating a case:</p>
28
+ * <p>The following fields are required when creating a case:</p>
30
29
  *
31
- * <ul>
32
- * <li>
33
- * <p>
34
- * <code>customer_id</code> - You must provide the full customer profile ARN in this
35
- * format: <code>arn:aws:profile:your AWS Region:your AWS account ID:domains/profiles
36
- * domain name/profiles/profile ID</code>
37
- * </p>
38
- * </li>
39
- * <li>
40
- * <p>
41
- * <code>title</code>
42
- * </p>
43
- * </li>
44
- * </ul>
45
- *
46
- * </note>
30
+ * <ul>
31
+ * <li>
32
+ * <p>
33
+ * <code>customer_id</code> - You must provide the full customer profile ARN in this
34
+ * format: <code>arn:aws:profile:your_AWS_Region:your_AWS_account ID:domains/your_profiles_domain_name/profiles/profile_ID</code>
35
+ * </p>
36
+ * </li>
37
+ * <li>
38
+ * <p>
39
+ * <code>title</code>
40
+ * </p>
41
+ * </li>
42
+ * </ul>
47
43
  * @example
48
44
  * Use a bare-bones client and the command you need to make an API call.
49
45
  * ```javascript
@@ -23,7 +23,10 @@ export interface PutCaseEventConfigurationCommandOutput extends PutCaseEventConf
23
23
  }
24
24
  /**
25
25
  * @public
26
- * <p>API for adding case event publishing configuration</p>
26
+ * <p>Adds case event publishing configuration. For a complete list of
27
+ * fields you can add to the event message, see <a href="https://docs.aws.amazon.com/connect/latest/adminguide/case-fields.html">Create case fields</a> in the
28
+ * <i>Amazon Connect Administrator Guide</i>
29
+ * </p>
27
30
  * @example
28
31
  * Use a bare-bones client and the command you need to make an API call.
29
32
  * ```javascript
@@ -28,8 +28,10 @@ export declare class ConflictException extends __BaseException {
28
28
  }
29
29
  /**
30
30
  * @public
31
- * <p>An empty value. You cannot set <code>EmptyFieldValue</code> on a field that is required on a case template.</p>
32
- * <p>This structure will never have any data members. It signifies an empty value on a case field.</p>
31
+ * <p>An empty value. You cannot set <code>EmptyFieldValue</code> on a field that is required on
32
+ * a case template.</p>
33
+ * <p>This structure will never have any data members. It signifies an empty value on a case
34
+ * field.</p>
33
35
  */
34
36
  export interface EmptyFieldValue {
35
37
  }
@@ -1819,8 +1821,7 @@ export interface UpdateLayoutRequest {
1819
1821
  name?: string;
1820
1822
  /**
1821
1823
  * @public
1822
- * <p>Information about which fields will be present in the layout, the order of the fields, and
1823
- * a read-only attribute of the field. </p>
1824
+ * <p>Information about which fields will be present in the layout, the order of the fields.</p>
1824
1825
  */
1825
1826
  content?: LayoutContent;
1826
1827
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-connectcases",
3
3
  "description": "AWS SDK for JavaScript Connectcases Client for Node.js, Browser and React Native",
4
- "version": "3.433.0",
4
+ "version": "3.436.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",
@@ -21,9 +21,9 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.433.0",
25
- "@aws-sdk/core": "3.433.0",
26
- "@aws-sdk/credential-provider-node": "3.433.0",
24
+ "@aws-sdk/client-sts": "3.436.0",
25
+ "@aws-sdk/core": "3.436.0",
26
+ "@aws-sdk/credential-provider-node": "3.436.0",
27
27
  "@aws-sdk/middleware-host-header": "3.433.0",
28
28
  "@aws-sdk/middleware-logger": "3.433.0",
29
29
  "@aws-sdk/middleware-recursion-detection": "3.433.0",