@aws-sdk/client-connectcases 3.184.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 +11 -0
- package/LICENSE +201 -0
- package/README.md +210 -0
- package/dist-cjs/ConnectCases.js +442 -0
- package/dist-cjs/ConnectCasesClient.js +37 -0
- package/dist-cjs/commands/BatchGetFieldCommand.js +36 -0
- package/dist-cjs/commands/BatchPutFieldOptionsCommand.js +36 -0
- package/dist-cjs/commands/CreateCaseCommand.js +36 -0
- package/dist-cjs/commands/CreateDomainCommand.js +36 -0
- package/dist-cjs/commands/CreateFieldCommand.js +36 -0
- package/dist-cjs/commands/CreateLayoutCommand.js +36 -0
- package/dist-cjs/commands/CreateRelatedItemCommand.js +36 -0
- package/dist-cjs/commands/CreateTemplateCommand.js +36 -0
- package/dist-cjs/commands/GetCaseCommand.js +36 -0
- package/dist-cjs/commands/GetCaseEventConfigurationCommand.js +36 -0
- package/dist-cjs/commands/GetDomainCommand.js +36 -0
- package/dist-cjs/commands/GetLayoutCommand.js +36 -0
- package/dist-cjs/commands/GetTemplateCommand.js +36 -0
- package/dist-cjs/commands/ListCasesForContactCommand.js +36 -0
- package/dist-cjs/commands/ListDomainsCommand.js +36 -0
- package/dist-cjs/commands/ListFieldOptionsCommand.js +36 -0
- package/dist-cjs/commands/ListFieldsCommand.js +36 -0
- package/dist-cjs/commands/ListLayoutsCommand.js +36 -0
- package/dist-cjs/commands/ListTagsForResourceCommand.js +36 -0
- package/dist-cjs/commands/ListTemplatesCommand.js +36 -0
- package/dist-cjs/commands/PutCaseEventConfigurationCommand.js +36 -0
- package/dist-cjs/commands/SearchCasesCommand.js +36 -0
- package/dist-cjs/commands/SearchRelatedItemsCommand.js +36 -0
- package/dist-cjs/commands/TagResourceCommand.js +36 -0
- package/dist-cjs/commands/UntagResourceCommand.js +36 -0
- package/dist-cjs/commands/UpdateCaseCommand.js +36 -0
- package/dist-cjs/commands/UpdateFieldCommand.js +36 -0
- package/dist-cjs/commands/UpdateLayoutCommand.js +36 -0
- package/dist-cjs/commands/UpdateTemplateCommand.js +36 -0
- package/dist-cjs/commands/index.js +32 -0
- package/dist-cjs/endpoints.js +132 -0
- package/dist-cjs/index.js +11 -0
- package/dist-cjs/models/ConnectCasesServiceException.js +11 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +661 -0
- package/dist-cjs/pagination/GetCasePaginator.js +35 -0
- package/dist-cjs/pagination/Interfaces.js +2 -0
- package/dist-cjs/pagination/ListCasesForContactPaginator.js +36 -0
- package/dist-cjs/pagination/ListDomainsPaginator.js +36 -0
- package/dist-cjs/pagination/ListFieldOptionsPaginator.js +36 -0
- package/dist-cjs/pagination/ListFieldsPaginator.js +36 -0
- package/dist-cjs/pagination/ListLayoutsPaginator.js +36 -0
- package/dist-cjs/pagination/ListTemplatesPaginator.js +36 -0
- package/dist-cjs/pagination/SearchCasesPaginator.js +36 -0
- package/dist-cjs/pagination/SearchRelatedItemsPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +13 -0
- package/dist-cjs/protocols/Aws_restJson1.js +2920 -0
- package/dist-cjs/runtimeConfig.browser.js +45 -0
- package/dist-cjs/runtimeConfig.js +52 -0
- package/dist-cjs/runtimeConfig.native.js +16 -0
- package/dist-cjs/runtimeConfig.shared.js +17 -0
- package/dist-es/ConnectCases.js +438 -0
- package/dist-es/ConnectCasesClient.js +33 -0
- package/dist-es/commands/BatchGetFieldCommand.js +32 -0
- package/dist-es/commands/BatchPutFieldOptionsCommand.js +32 -0
- package/dist-es/commands/CreateCaseCommand.js +32 -0
- package/dist-es/commands/CreateDomainCommand.js +32 -0
- package/dist-es/commands/CreateFieldCommand.js +32 -0
- package/dist-es/commands/CreateLayoutCommand.js +32 -0
- package/dist-es/commands/CreateRelatedItemCommand.js +32 -0
- package/dist-es/commands/CreateTemplateCommand.js +32 -0
- package/dist-es/commands/GetCaseCommand.js +32 -0
- package/dist-es/commands/GetCaseEventConfigurationCommand.js +32 -0
- package/dist-es/commands/GetDomainCommand.js +32 -0
- package/dist-es/commands/GetLayoutCommand.js +32 -0
- package/dist-es/commands/GetTemplateCommand.js +32 -0
- package/dist-es/commands/ListCasesForContactCommand.js +32 -0
- package/dist-es/commands/ListDomainsCommand.js +32 -0
- package/dist-es/commands/ListFieldOptionsCommand.js +32 -0
- package/dist-es/commands/ListFieldsCommand.js +32 -0
- package/dist-es/commands/ListLayoutsCommand.js +32 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +32 -0
- package/dist-es/commands/ListTemplatesCommand.js +32 -0
- package/dist-es/commands/PutCaseEventConfigurationCommand.js +32 -0
- package/dist-es/commands/SearchCasesCommand.js +32 -0
- package/dist-es/commands/SearchRelatedItemsCommand.js +32 -0
- package/dist-es/commands/TagResourceCommand.js +32 -0
- package/dist-es/commands/UntagResourceCommand.js +32 -0
- package/dist-es/commands/UpdateCaseCommand.js +32 -0
- package/dist-es/commands/UpdateFieldCommand.js +32 -0
- package/dist-es/commands/UpdateLayoutCommand.js +32 -0
- package/dist-es/commands/UpdateTemplateCommand.js +32 -0
- package/dist-es/commands/index.js +29 -0
- package/dist-es/endpoints.js +128 -0
- package/dist-es/index.js +6 -0
- package/dist-es/models/ConnectCasesServiceException.js +7 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +556 -0
- package/dist-es/pagination/GetCasePaginator.js +31 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListCasesForContactPaginator.js +32 -0
- package/dist-es/pagination/ListDomainsPaginator.js +32 -0
- package/dist-es/pagination/ListFieldOptionsPaginator.js +32 -0
- package/dist-es/pagination/ListFieldsPaginator.js +32 -0
- package/dist-es/pagination/ListLayoutsPaginator.js +32 -0
- package/dist-es/pagination/ListTemplatesPaginator.js +32 -0
- package/dist-es/pagination/SearchCasesPaginator.js +32 -0
- package/dist-es/pagination/SearchRelatedItemsPaginator.js +32 -0
- package/dist-es/pagination/index.js +10 -0
- package/dist-es/protocols/Aws_restJson1.js +2853 -0
- package/dist-es/runtimeConfig.browser.js +40 -0
- package/dist-es/runtimeConfig.js +48 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +10 -0
- package/dist-types/ConnectCases.d.ts +276 -0
- package/dist-types/ConnectCasesClient.d.ts +178 -0
- package/dist-types/commands/BatchGetFieldCommand.d.ts +35 -0
- package/dist-types/commands/BatchPutFieldOptionsCommand.d.ts +36 -0
- package/dist-types/commands/CreateCaseCommand.d.ts +40 -0
- package/dist-types/commands/CreateDomainCommand.d.ts +42 -0
- package/dist-types/commands/CreateFieldCommand.d.ts +36 -0
- package/dist-types/commands/CreateLayoutCommand.d.ts +48 -0
- package/dist-types/commands/CreateRelatedItemCommand.d.ts +43 -0
- package/dist-types/commands/CreateTemplateCommand.d.ts +38 -0
- package/dist-types/commands/GetCaseCommand.d.ts +35 -0
- package/dist-types/commands/GetCaseEventConfigurationCommand.d.ts +35 -0
- package/dist-types/commands/GetDomainCommand.d.ts +35 -0
- package/dist-types/commands/GetLayoutCommand.d.ts +35 -0
- package/dist-types/commands/GetTemplateCommand.d.ts +35 -0
- package/dist-types/commands/ListCasesForContactCommand.d.ts +35 -0
- package/dist-types/commands/ListDomainsCommand.d.ts +36 -0
- package/dist-types/commands/ListFieldOptionsCommand.d.ts +35 -0
- package/dist-types/commands/ListFieldsCommand.d.ts +35 -0
- package/dist-types/commands/ListLayoutsCommand.d.ts +36 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +35 -0
- package/dist-types/commands/ListTemplatesCommand.d.ts +36 -0
- package/dist-types/commands/PutCaseEventConfigurationCommand.d.ts +35 -0
- package/dist-types/commands/SearchCasesCommand.d.ts +36 -0
- package/dist-types/commands/SearchRelatedItemsCommand.d.ts +39 -0
- package/dist-types/commands/TagResourceCommand.d.ts +35 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +35 -0
- package/dist-types/commands/UpdateCaseCommand.d.ts +38 -0
- package/dist-types/commands/UpdateFieldCommand.d.ts +35 -0
- package/dist-types/commands/UpdateLayoutCommand.d.ts +43 -0
- package/dist-types/commands/UpdateTemplateCommand.d.ts +39 -0
- package/dist-types/commands/index.d.ts +29 -0
- package/dist-types/endpoints.d.ts +2 -0
- package/dist-types/index.d.ts +6 -0
- package/dist-types/models/ConnectCasesServiceException.d.ts +10 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +1985 -0
- package/dist-types/pagination/GetCasePaginator.d.ts +4 -0
- package/dist-types/pagination/Interfaces.d.ts +6 -0
- package/dist-types/pagination/ListCasesForContactPaginator.d.ts +4 -0
- package/dist-types/pagination/ListDomainsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListFieldOptionsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListFieldsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListLayoutsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListTemplatesPaginator.d.ts +4 -0
- package/dist-types/pagination/SearchCasesPaginator.d.ts +4 -0
- package/dist-types/pagination/SearchRelatedItemsPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +10 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +89 -0
- package/dist-types/runtimeConfig.browser.d.ts +40 -0
- package/dist-types/runtimeConfig.d.ts +40 -0
- package/dist-types/runtimeConfig.native.d.ts +39 -0
- package/dist-types/runtimeConfig.shared.d.ts +13 -0
- package/dist-types/ts3.4/ConnectCases.d.ts +497 -0
- package/dist-types/ts3.4/ConnectCasesClient.d.ts +279 -0
- package/dist-types/ts3.4/commands/BatchGetFieldCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/BatchPutFieldOptionsCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/CreateCaseCommand.d.ts +32 -0
- package/dist-types/ts3.4/commands/CreateDomainCommand.d.ts +32 -0
- package/dist-types/ts3.4/commands/CreateFieldCommand.d.ts +32 -0
- package/dist-types/ts3.4/commands/CreateLayoutCommand.d.ts +32 -0
- package/dist-types/ts3.4/commands/CreateRelatedItemCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/CreateTemplateCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/GetCaseCommand.d.ts +32 -0
- package/dist-types/ts3.4/commands/GetCaseEventConfigurationCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/GetDomainCommand.d.ts +32 -0
- package/dist-types/ts3.4/commands/GetLayoutCommand.d.ts +32 -0
- package/dist-types/ts3.4/commands/GetTemplateCommand.d.ts +32 -0
- package/dist-types/ts3.4/commands/ListCasesForContactCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/ListDomainsCommand.d.ts +32 -0
- package/dist-types/ts3.4/commands/ListFieldOptionsCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/ListFieldsCommand.d.ts +32 -0
- package/dist-types/ts3.4/commands/ListLayoutsCommand.d.ts +32 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/ListTemplatesCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/PutCaseEventConfigurationCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/SearchCasesCommand.d.ts +32 -0
- package/dist-types/ts3.4/commands/SearchRelatedItemsCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +30 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +30 -0
- package/dist-types/ts3.4/commands/UpdateCaseCommand.d.ts +32 -0
- package/dist-types/ts3.4/commands/UpdateFieldCommand.d.ts +32 -0
- package/dist-types/ts3.4/commands/UpdateLayoutCommand.d.ts +32 -0
- package/dist-types/ts3.4/commands/UpdateTemplateCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/index.d.ts +29 -0
- package/dist-types/ts3.4/endpoints.d.ts +2 -0
- package/dist-types/ts3.4/index.d.ts +6 -0
- package/dist-types/ts3.4/models/ConnectCasesServiceException.d.ts +7 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +988 -0
- package/dist-types/ts3.4/pagination/GetCasePaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +7 -0
- package/dist-types/ts3.4/pagination/ListCasesForContactPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListDomainsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListFieldOptionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListFieldsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListLayoutsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListTemplatesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/SearchCasesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/SearchRelatedItemsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +10 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +353 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +67 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +67 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +68 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +10 -0
- package/package.json +102 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import packageInfo from "../package.json";
|
|
2
|
+
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
3
|
+
import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver";
|
|
4
|
+
import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
|
|
5
|
+
import { invalidProvider } from "@aws-sdk/invalid-dependency";
|
|
6
|
+
import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry";
|
|
7
|
+
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser";
|
|
8
|
+
import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
|
|
9
|
+
import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
|
|
10
|
+
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
|
|
11
|
+
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
12
|
+
import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
|
|
13
|
+
import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-browser";
|
|
14
|
+
export const getRuntimeConfig = (config) => {
|
|
15
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
16
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
17
|
+
const clientSharedValues = getSharedRuntimeConfig(config);
|
|
18
|
+
return {
|
|
19
|
+
...clientSharedValues,
|
|
20
|
+
...config,
|
|
21
|
+
runtime: "browser",
|
|
22
|
+
defaultsMode,
|
|
23
|
+
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
24
|
+
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
25
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
26
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
27
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
28
|
+
defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
29
|
+
maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
|
|
30
|
+
region: config?.region ?? invalidProvider("Region is missing"),
|
|
31
|
+
requestHandler: config?.requestHandler ?? new RequestHandler(defaultConfigProvider),
|
|
32
|
+
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
|
|
33
|
+
sha256: config?.sha256 ?? Sha256,
|
|
34
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
|
35
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
36
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
|
|
37
|
+
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
38
|
+
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
39
|
+
};
|
|
40
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import packageInfo from "../package.json";
|
|
2
|
+
import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
|
|
3
|
+
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@aws-sdk/config-resolver";
|
|
4
|
+
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
|
|
5
|
+
import { Hash } from "@aws-sdk/hash-node";
|
|
6
|
+
import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@aws-sdk/middleware-retry";
|
|
7
|
+
import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
|
|
8
|
+
import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler";
|
|
9
|
+
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node";
|
|
10
|
+
import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
|
|
11
|
+
import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
|
|
12
|
+
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
|
|
13
|
+
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
14
|
+
import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
|
|
15
|
+
import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-node";
|
|
16
|
+
import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
|
|
17
|
+
export const getRuntimeConfig = (config) => {
|
|
18
|
+
emitWarningIfUnsupportedVersion(process.version);
|
|
19
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
20
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
21
|
+
const clientSharedValues = getSharedRuntimeConfig(config);
|
|
22
|
+
return {
|
|
23
|
+
...clientSharedValues,
|
|
24
|
+
...config,
|
|
25
|
+
runtime: "node",
|
|
26
|
+
defaultsMode,
|
|
27
|
+
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
28
|
+
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
29
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
30
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider),
|
|
31
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
32
|
+
defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
33
|
+
maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
34
|
+
region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
35
|
+
requestHandler: config?.requestHandler ?? new RequestHandler(defaultConfigProvider),
|
|
36
|
+
retryMode: config?.retryMode ??
|
|
37
|
+
loadNodeConfig({
|
|
38
|
+
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
39
|
+
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
40
|
+
}),
|
|
41
|
+
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
42
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
|
43
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
|
44
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
|
|
45
|
+
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
46
|
+
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
47
|
+
};
|
|
48
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Sha256 } from "@aws-crypto/sha256-js";
|
|
2
|
+
import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
|
|
3
|
+
export const getRuntimeConfig = (config) => {
|
|
4
|
+
const browserDefaults = getBrowserRuntimeConfig(config);
|
|
5
|
+
return {
|
|
6
|
+
...browserDefaults,
|
|
7
|
+
...config,
|
|
8
|
+
runtime: "react-native",
|
|
9
|
+
sha256: config?.sha256 ?? Sha256,
|
|
10
|
+
};
|
|
11
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { parseUrl } from "@aws-sdk/url-parser";
|
|
2
|
+
import { defaultRegionInfoProvider } from "./endpoints";
|
|
3
|
+
export const getRuntimeConfig = (config) => ({
|
|
4
|
+
apiVersion: "2022-10-03",
|
|
5
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
6
|
+
logger: config?.logger ?? {},
|
|
7
|
+
regionInfoProvider: config?.regionInfoProvider ?? defaultRegionInfoProvider,
|
|
8
|
+
serviceId: config?.serviceId ?? "ConnectCases",
|
|
9
|
+
urlParser: config?.urlParser ?? parseUrl,
|
|
10
|
+
});
|
|
@@ -0,0 +1,276 @@
|
|
|
1
|
+
import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
|
|
2
|
+
import { BatchGetFieldCommandInput, BatchGetFieldCommandOutput } from "./commands/BatchGetFieldCommand";
|
|
3
|
+
import { BatchPutFieldOptionsCommandInput, BatchPutFieldOptionsCommandOutput } from "./commands/BatchPutFieldOptionsCommand";
|
|
4
|
+
import { CreateCaseCommandInput, CreateCaseCommandOutput } from "./commands/CreateCaseCommand";
|
|
5
|
+
import { CreateDomainCommandInput, CreateDomainCommandOutput } from "./commands/CreateDomainCommand";
|
|
6
|
+
import { CreateFieldCommandInput, CreateFieldCommandOutput } from "./commands/CreateFieldCommand";
|
|
7
|
+
import { CreateLayoutCommandInput, CreateLayoutCommandOutput } from "./commands/CreateLayoutCommand";
|
|
8
|
+
import { CreateRelatedItemCommandInput, CreateRelatedItemCommandOutput } from "./commands/CreateRelatedItemCommand";
|
|
9
|
+
import { CreateTemplateCommandInput, CreateTemplateCommandOutput } from "./commands/CreateTemplateCommand";
|
|
10
|
+
import { GetCaseCommandInput, GetCaseCommandOutput } from "./commands/GetCaseCommand";
|
|
11
|
+
import { GetCaseEventConfigurationCommandInput, GetCaseEventConfigurationCommandOutput } from "./commands/GetCaseEventConfigurationCommand";
|
|
12
|
+
import { GetDomainCommandInput, GetDomainCommandOutput } from "./commands/GetDomainCommand";
|
|
13
|
+
import { GetLayoutCommandInput, GetLayoutCommandOutput } from "./commands/GetLayoutCommand";
|
|
14
|
+
import { GetTemplateCommandInput, GetTemplateCommandOutput } from "./commands/GetTemplateCommand";
|
|
15
|
+
import { ListCasesForContactCommandInput, ListCasesForContactCommandOutput } from "./commands/ListCasesForContactCommand";
|
|
16
|
+
import { ListDomainsCommandInput, ListDomainsCommandOutput } from "./commands/ListDomainsCommand";
|
|
17
|
+
import { ListFieldOptionsCommandInput, ListFieldOptionsCommandOutput } from "./commands/ListFieldOptionsCommand";
|
|
18
|
+
import { ListFieldsCommandInput, ListFieldsCommandOutput } from "./commands/ListFieldsCommand";
|
|
19
|
+
import { ListLayoutsCommandInput, ListLayoutsCommandOutput } from "./commands/ListLayoutsCommand";
|
|
20
|
+
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
21
|
+
import { ListTemplatesCommandInput, ListTemplatesCommandOutput } from "./commands/ListTemplatesCommand";
|
|
22
|
+
import { PutCaseEventConfigurationCommandInput, PutCaseEventConfigurationCommandOutput } from "./commands/PutCaseEventConfigurationCommand";
|
|
23
|
+
import { SearchCasesCommandInput, SearchCasesCommandOutput } from "./commands/SearchCasesCommand";
|
|
24
|
+
import { SearchRelatedItemsCommandInput, SearchRelatedItemsCommandOutput } from "./commands/SearchRelatedItemsCommand";
|
|
25
|
+
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
26
|
+
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
27
|
+
import { UpdateCaseCommandInput, UpdateCaseCommandOutput } from "./commands/UpdateCaseCommand";
|
|
28
|
+
import { UpdateFieldCommandInput, UpdateFieldCommandOutput } from "./commands/UpdateFieldCommand";
|
|
29
|
+
import { UpdateLayoutCommandInput, UpdateLayoutCommandOutput } from "./commands/UpdateLayoutCommand";
|
|
30
|
+
import { UpdateTemplateCommandInput, UpdateTemplateCommandOutput } from "./commands/UpdateTemplateCommand";
|
|
31
|
+
import { ConnectCasesClient } from "./ConnectCasesClient";
|
|
32
|
+
/**
|
|
33
|
+
* <p>Welcome to the Amazon Connect Cases API Reference. This guide provides information about the
|
|
34
|
+
* Amazon Connect Cases API, which you can use to create, update, get, and list Cases domains,
|
|
35
|
+
* fields, field options, layouts, templates, cases, related items, and tags.</p>
|
|
36
|
+
*
|
|
37
|
+
* <p>For more information about Amazon Connect Cases, see <a href="https://docs.aws.amazon.com/connect/latest/adminguide/cases.html">Amazon Connect Cases</a> in the
|
|
38
|
+
* <i>Amazon Connect Administrator Guide</i>. </p>
|
|
39
|
+
*/
|
|
40
|
+
export declare class ConnectCases extends ConnectCasesClient {
|
|
41
|
+
/**
|
|
42
|
+
* <p>Returns the description for the list of fields in the request parameters. </p>
|
|
43
|
+
*/
|
|
44
|
+
batchGetField(args: BatchGetFieldCommandInput, options?: __HttpHandlerOptions): Promise<BatchGetFieldCommandOutput>;
|
|
45
|
+
batchGetField(args: BatchGetFieldCommandInput, cb: (err: any, data?: BatchGetFieldCommandOutput) => void): void;
|
|
46
|
+
batchGetField(args: BatchGetFieldCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchGetFieldCommandOutput) => void): void;
|
|
47
|
+
/**
|
|
48
|
+
* <p>Creates and updates a set of field options for a single select field in a Cases
|
|
49
|
+
* domain.</p>
|
|
50
|
+
*/
|
|
51
|
+
batchPutFieldOptions(args: BatchPutFieldOptionsCommandInput, options?: __HttpHandlerOptions): Promise<BatchPutFieldOptionsCommandOutput>;
|
|
52
|
+
batchPutFieldOptions(args: BatchPutFieldOptionsCommandInput, cb: (err: any, data?: BatchPutFieldOptionsCommandOutput) => void): void;
|
|
53
|
+
batchPutFieldOptions(args: BatchPutFieldOptionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchPutFieldOptionsCommandOutput) => void): void;
|
|
54
|
+
/**
|
|
55
|
+
* <p>Creates a case in the specified Cases domain. Case system and custom fields are taken
|
|
56
|
+
* as an array id/value pairs with a declared data types.</p>
|
|
57
|
+
* <note>
|
|
58
|
+
* <p>
|
|
59
|
+
* <code>customer_id</code> is a required field when creating a case.</p>
|
|
60
|
+
* </note>
|
|
61
|
+
*/
|
|
62
|
+
createCase(args: CreateCaseCommandInput, options?: __HttpHandlerOptions): Promise<CreateCaseCommandOutput>;
|
|
63
|
+
createCase(args: CreateCaseCommandInput, cb: (err: any, data?: CreateCaseCommandOutput) => void): void;
|
|
64
|
+
createCase(args: CreateCaseCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateCaseCommandOutput) => void): void;
|
|
65
|
+
/**
|
|
66
|
+
* <p>Creates a domain, which is a container for all case data, such as cases, fields, templates
|
|
67
|
+
* and layouts. Each Amazon Connect instance can be associated with only one Cases
|
|
68
|
+
* domain.</p>
|
|
69
|
+
* <important>
|
|
70
|
+
* <p>This will not associate your connect instance to Cases domain. Instead, use the
|
|
71
|
+
* Amazon Connect
|
|
72
|
+
* <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_CreateIntegrationAssociation.html">CreateIntegrationAssociation</a> API.</p>
|
|
73
|
+
* </important>
|
|
74
|
+
*/
|
|
75
|
+
createDomain(args: CreateDomainCommandInput, options?: __HttpHandlerOptions): Promise<CreateDomainCommandOutput>;
|
|
76
|
+
createDomain(args: CreateDomainCommandInput, cb: (err: any, data?: CreateDomainCommandOutput) => void): void;
|
|
77
|
+
createDomain(args: CreateDomainCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateDomainCommandOutput) => void): void;
|
|
78
|
+
/**
|
|
79
|
+
* <p>Creates a field in the Cases domain. This field is used to define the case object
|
|
80
|
+
* model (that is, defines what data can be captured on cases) in a Cases domain. </p>
|
|
81
|
+
*/
|
|
82
|
+
createField(args: CreateFieldCommandInput, options?: __HttpHandlerOptions): Promise<CreateFieldCommandOutput>;
|
|
83
|
+
createField(args: CreateFieldCommandInput, cb: (err: any, data?: CreateFieldCommandOutput) => void): void;
|
|
84
|
+
createField(args: CreateFieldCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateFieldCommandOutput) => void): void;
|
|
85
|
+
/**
|
|
86
|
+
* <p>Creates a layout in the Cases domain. Layouts define the following configuration in
|
|
87
|
+
* the top section and More Info tab of the Cases user interface:</p>
|
|
88
|
+
* <ul>
|
|
89
|
+
* <li>
|
|
90
|
+
* <p>Fields to display to the users</p>
|
|
91
|
+
* </li>
|
|
92
|
+
* <li>
|
|
93
|
+
* <p>Field ordering</p>
|
|
94
|
+
* </li>
|
|
95
|
+
* </ul>
|
|
96
|
+
* <note>
|
|
97
|
+
* <p>Title and Status fields cannot be part of layouts since they are not
|
|
98
|
+
* configurable.</p>
|
|
99
|
+
* </note>
|
|
100
|
+
*/
|
|
101
|
+
createLayout(args: CreateLayoutCommandInput, options?: __HttpHandlerOptions): Promise<CreateLayoutCommandOutput>;
|
|
102
|
+
createLayout(args: CreateLayoutCommandInput, cb: (err: any, data?: CreateLayoutCommandOutput) => void): void;
|
|
103
|
+
createLayout(args: CreateLayoutCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateLayoutCommandOutput) => void): void;
|
|
104
|
+
/**
|
|
105
|
+
* <p>Creates a related item (comments, tasks, and contacts) and associates it with a
|
|
106
|
+
* case.</p>
|
|
107
|
+
* <note>
|
|
108
|
+
* <p>A Related Item is a resource that is associated with a case. It may or may not have an
|
|
109
|
+
* external identifier linking it to an external resource (for example, a
|
|
110
|
+
* <code>contactArn</code>). All Related Items have their own internal identifier, the
|
|
111
|
+
* <code>relatedItemArn</code>. Examples of related items include <code>comments</code> and
|
|
112
|
+
* <code>contacts</code>.</p>
|
|
113
|
+
* </note>
|
|
114
|
+
*/
|
|
115
|
+
createRelatedItem(args: CreateRelatedItemCommandInput, options?: __HttpHandlerOptions): Promise<CreateRelatedItemCommandOutput>;
|
|
116
|
+
createRelatedItem(args: CreateRelatedItemCommandInput, cb: (err: any, data?: CreateRelatedItemCommandOutput) => void): void;
|
|
117
|
+
createRelatedItem(args: CreateRelatedItemCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateRelatedItemCommandOutput) => void): void;
|
|
118
|
+
/**
|
|
119
|
+
* <p>Creates a template in the Cases domain. This template is used to define the case
|
|
120
|
+
* object model (that is, define what data can be captured on cases) in a Cases domain. A
|
|
121
|
+
* template must have a unique name within a domain, and it must reference existing field IDs and layout
|
|
122
|
+
* IDs. Additionally, multiple fields with same IDs are not allowed within the same Template.</p>
|
|
123
|
+
*/
|
|
124
|
+
createTemplate(args: CreateTemplateCommandInput, options?: __HttpHandlerOptions): Promise<CreateTemplateCommandOutput>;
|
|
125
|
+
createTemplate(args: CreateTemplateCommandInput, cb: (err: any, data?: CreateTemplateCommandOutput) => void): void;
|
|
126
|
+
createTemplate(args: CreateTemplateCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateTemplateCommandOutput) => void): void;
|
|
127
|
+
/**
|
|
128
|
+
* <p>Returns information about a specific case if it exists. </p>
|
|
129
|
+
*/
|
|
130
|
+
getCase(args: GetCaseCommandInput, options?: __HttpHandlerOptions): Promise<GetCaseCommandOutput>;
|
|
131
|
+
getCase(args: GetCaseCommandInput, cb: (err: any, data?: GetCaseCommandOutput) => void): void;
|
|
132
|
+
getCase(args: GetCaseCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetCaseCommandOutput) => void): void;
|
|
133
|
+
/**
|
|
134
|
+
* <p>Returns the case event publishing configuration.</p>
|
|
135
|
+
*/
|
|
136
|
+
getCaseEventConfiguration(args: GetCaseEventConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<GetCaseEventConfigurationCommandOutput>;
|
|
137
|
+
getCaseEventConfiguration(args: GetCaseEventConfigurationCommandInput, cb: (err: any, data?: GetCaseEventConfigurationCommandOutput) => void): void;
|
|
138
|
+
getCaseEventConfiguration(args: GetCaseEventConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetCaseEventConfigurationCommandOutput) => void): void;
|
|
139
|
+
/**
|
|
140
|
+
* <p>Returns information about a specific domain if it exists. </p>
|
|
141
|
+
*/
|
|
142
|
+
getDomain(args: GetDomainCommandInput, options?: __HttpHandlerOptions): Promise<GetDomainCommandOutput>;
|
|
143
|
+
getDomain(args: GetDomainCommandInput, cb: (err: any, data?: GetDomainCommandOutput) => void): void;
|
|
144
|
+
getDomain(args: GetDomainCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetDomainCommandOutput) => void): void;
|
|
145
|
+
/**
|
|
146
|
+
* <p>Returns the details for the requested layout.</p>
|
|
147
|
+
*/
|
|
148
|
+
getLayout(args: GetLayoutCommandInput, options?: __HttpHandlerOptions): Promise<GetLayoutCommandOutput>;
|
|
149
|
+
getLayout(args: GetLayoutCommandInput, cb: (err: any, data?: GetLayoutCommandOutput) => void): void;
|
|
150
|
+
getLayout(args: GetLayoutCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetLayoutCommandOutput) => void): void;
|
|
151
|
+
/**
|
|
152
|
+
* <p>Returns the details for the requested template. </p>
|
|
153
|
+
*/
|
|
154
|
+
getTemplate(args: GetTemplateCommandInput, options?: __HttpHandlerOptions): Promise<GetTemplateCommandOutput>;
|
|
155
|
+
getTemplate(args: GetTemplateCommandInput, cb: (err: any, data?: GetTemplateCommandOutput) => void): void;
|
|
156
|
+
getTemplate(args: GetTemplateCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetTemplateCommandOutput) => void): void;
|
|
157
|
+
/**
|
|
158
|
+
* <p>Lists cases for a given contact.</p>
|
|
159
|
+
*/
|
|
160
|
+
listCasesForContact(args: ListCasesForContactCommandInput, options?: __HttpHandlerOptions): Promise<ListCasesForContactCommandOutput>;
|
|
161
|
+
listCasesForContact(args: ListCasesForContactCommandInput, cb: (err: any, data?: ListCasesForContactCommandOutput) => void): void;
|
|
162
|
+
listCasesForContact(args: ListCasesForContactCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListCasesForContactCommandOutput) => void): void;
|
|
163
|
+
/**
|
|
164
|
+
* <p>Lists all cases domains in the Amazon Web Services account. Each list item is a condensed
|
|
165
|
+
* summary object of the domain.</p>
|
|
166
|
+
*/
|
|
167
|
+
listDomains(args: ListDomainsCommandInput, options?: __HttpHandlerOptions): Promise<ListDomainsCommandOutput>;
|
|
168
|
+
listDomains(args: ListDomainsCommandInput, cb: (err: any, data?: ListDomainsCommandOutput) => void): void;
|
|
169
|
+
listDomains(args: ListDomainsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListDomainsCommandOutput) => void): void;
|
|
170
|
+
/**
|
|
171
|
+
* <p>Lists all of the field options for a field identifier in the domain. </p>
|
|
172
|
+
*/
|
|
173
|
+
listFieldOptions(args: ListFieldOptionsCommandInput, options?: __HttpHandlerOptions): Promise<ListFieldOptionsCommandOutput>;
|
|
174
|
+
listFieldOptions(args: ListFieldOptionsCommandInput, cb: (err: any, data?: ListFieldOptionsCommandOutput) => void): void;
|
|
175
|
+
listFieldOptions(args: ListFieldOptionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListFieldOptionsCommandOutput) => void): void;
|
|
176
|
+
/**
|
|
177
|
+
* <p>Lists all fields in a Cases domain.</p>
|
|
178
|
+
*/
|
|
179
|
+
listFields(args: ListFieldsCommandInput, options?: __HttpHandlerOptions): Promise<ListFieldsCommandOutput>;
|
|
180
|
+
listFields(args: ListFieldsCommandInput, cb: (err: any, data?: ListFieldsCommandOutput) => void): void;
|
|
181
|
+
listFields(args: ListFieldsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListFieldsCommandOutput) => void): void;
|
|
182
|
+
/**
|
|
183
|
+
* <p>Lists all layouts in the given cases domain. Each list item is a condensed summary object
|
|
184
|
+
* of the layout.</p>
|
|
185
|
+
*/
|
|
186
|
+
listLayouts(args: ListLayoutsCommandInput, options?: __HttpHandlerOptions): Promise<ListLayoutsCommandOutput>;
|
|
187
|
+
listLayouts(args: ListLayoutsCommandInput, cb: (err: any, data?: ListLayoutsCommandOutput) => void): void;
|
|
188
|
+
listLayouts(args: ListLayoutsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListLayoutsCommandOutput) => void): void;
|
|
189
|
+
/**
|
|
190
|
+
* <p>Lists tags for a resource.</p>
|
|
191
|
+
*/
|
|
192
|
+
listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
|
|
193
|
+
listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
194
|
+
listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
195
|
+
/**
|
|
196
|
+
* <p>Lists all of the templates in a Cases domain. Each list item is a condensed summary
|
|
197
|
+
* object of the template. </p>
|
|
198
|
+
*/
|
|
199
|
+
listTemplates(args: ListTemplatesCommandInput, options?: __HttpHandlerOptions): Promise<ListTemplatesCommandOutput>;
|
|
200
|
+
listTemplates(args: ListTemplatesCommandInput, cb: (err: any, data?: ListTemplatesCommandOutput) => void): void;
|
|
201
|
+
listTemplates(args: ListTemplatesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTemplatesCommandOutput) => void): void;
|
|
202
|
+
/**
|
|
203
|
+
* <p>API for adding case event publishing configuration</p>
|
|
204
|
+
*/
|
|
205
|
+
putCaseEventConfiguration(args: PutCaseEventConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<PutCaseEventConfigurationCommandOutput>;
|
|
206
|
+
putCaseEventConfiguration(args: PutCaseEventConfigurationCommandInput, cb: (err: any, data?: PutCaseEventConfigurationCommandOutput) => void): void;
|
|
207
|
+
putCaseEventConfiguration(args: PutCaseEventConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutCaseEventConfigurationCommandOutput) => void): void;
|
|
208
|
+
/**
|
|
209
|
+
* <p>Searches for cases within their associated Cases domain. Search results are returned
|
|
210
|
+
* as a paginated list of abridged case documents.</p>
|
|
211
|
+
*/
|
|
212
|
+
searchCases(args: SearchCasesCommandInput, options?: __HttpHandlerOptions): Promise<SearchCasesCommandOutput>;
|
|
213
|
+
searchCases(args: SearchCasesCommandInput, cb: (err: any, data?: SearchCasesCommandOutput) => void): void;
|
|
214
|
+
searchCases(args: SearchCasesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SearchCasesCommandOutput) => void): void;
|
|
215
|
+
/**
|
|
216
|
+
* <p>Searches for related items that are associated with a case.</p>
|
|
217
|
+
* <note>
|
|
218
|
+
* <p>If no filters are provided, this returns all related items associated with a
|
|
219
|
+
* case.</p>
|
|
220
|
+
* </note>
|
|
221
|
+
*/
|
|
222
|
+
searchRelatedItems(args: SearchRelatedItemsCommandInput, options?: __HttpHandlerOptions): Promise<SearchRelatedItemsCommandOutput>;
|
|
223
|
+
searchRelatedItems(args: SearchRelatedItemsCommandInput, cb: (err: any, data?: SearchRelatedItemsCommandOutput) => void): void;
|
|
224
|
+
searchRelatedItems(args: SearchRelatedItemsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SearchRelatedItemsCommandOutput) => void): void;
|
|
225
|
+
/**
|
|
226
|
+
* <p>Adds tags to a resource.</p>
|
|
227
|
+
*/
|
|
228
|
+
tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
|
|
229
|
+
tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
|
|
230
|
+
tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
|
|
231
|
+
/**
|
|
232
|
+
* <p>Untags a resource.</p>
|
|
233
|
+
*/
|
|
234
|
+
untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
|
|
235
|
+
untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
236
|
+
untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
237
|
+
/**
|
|
238
|
+
* <p>Updates the values of fields on a case. Fields to be updated are
|
|
239
|
+
* received as an array of id/value pairs identical to the <code>CreateCase</code> input .</p>
|
|
240
|
+
* <p>If the action is successful, the service sends back an HTTP 200 response with an empty
|
|
241
|
+
* HTTP body.</p>
|
|
242
|
+
*/
|
|
243
|
+
updateCase(args: UpdateCaseCommandInput, options?: __HttpHandlerOptions): Promise<UpdateCaseCommandOutput>;
|
|
244
|
+
updateCase(args: UpdateCaseCommandInput, cb: (err: any, data?: UpdateCaseCommandOutput) => void): void;
|
|
245
|
+
updateCase(args: UpdateCaseCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateCaseCommandOutput) => void): void;
|
|
246
|
+
/**
|
|
247
|
+
* <p>Updates the properties of an existing field. </p>
|
|
248
|
+
*/
|
|
249
|
+
updateField(args: UpdateFieldCommandInput, options?: __HttpHandlerOptions): Promise<UpdateFieldCommandOutput>;
|
|
250
|
+
updateField(args: UpdateFieldCommandInput, cb: (err: any, data?: UpdateFieldCommandOutput) => void): void;
|
|
251
|
+
updateField(args: UpdateFieldCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateFieldCommandOutput) => void): void;
|
|
252
|
+
/**
|
|
253
|
+
* <p>Updates the attributes of an existing layout.</p>
|
|
254
|
+
* <p>If the action is successful, the service sends back an HTTP 200 response with an empty
|
|
255
|
+
* HTTP body.</p>
|
|
256
|
+
* <p>A <code>ValidationException</code> is returned when you add non-existent
|
|
257
|
+
* <code>fieldIds</code> to a layout.</p>
|
|
258
|
+
* <note>
|
|
259
|
+
* <p>Title and Status fields cannot be part of layouts because they are not
|
|
260
|
+
* configurable.</p>
|
|
261
|
+
* </note>
|
|
262
|
+
*/
|
|
263
|
+
updateLayout(args: UpdateLayoutCommandInput, options?: __HttpHandlerOptions): Promise<UpdateLayoutCommandOutput>;
|
|
264
|
+
updateLayout(args: UpdateLayoutCommandInput, cb: (err: any, data?: UpdateLayoutCommandOutput) => void): void;
|
|
265
|
+
updateLayout(args: UpdateLayoutCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateLayoutCommandOutput) => void): void;
|
|
266
|
+
/**
|
|
267
|
+
* <p>Updates the attributes of an existing template. The template attributes that can be
|
|
268
|
+
* modified include <code>name</code>, <code>description</code>, <code>layouts</code>,
|
|
269
|
+
* and <code>requiredFields</code>. At least one of these
|
|
270
|
+
* attributes must not be null. If a null value is provided for a given attribute, that attribute
|
|
271
|
+
* is ignored and its current value is preserved.</p>
|
|
272
|
+
*/
|
|
273
|
+
updateTemplate(args: UpdateTemplateCommandInput, options?: __HttpHandlerOptions): Promise<UpdateTemplateCommandOutput>;
|
|
274
|
+
updateTemplate(args: UpdateTemplateCommandInput, cb: (err: any, data?: UpdateTemplateCommandOutput) => void): void;
|
|
275
|
+
updateTemplate(args: UpdateTemplateCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateTemplateCommandOutput) => void): void;
|
|
276
|
+
}
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
import { EndpointsInputConfig, EndpointsResolvedConfig, RegionInputConfig, RegionResolvedConfig } from "@aws-sdk/config-resolver";
|
|
2
|
+
import { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
|
|
3
|
+
import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry";
|
|
4
|
+
import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
|
|
5
|
+
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
6
|
+
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
7
|
+
import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
8
|
+
import { BodyLengthCalculator as __BodyLengthCalculator, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
9
|
+
import { BatchGetFieldCommandInput, BatchGetFieldCommandOutput } from "./commands/BatchGetFieldCommand";
|
|
10
|
+
import { BatchPutFieldOptionsCommandInput, BatchPutFieldOptionsCommandOutput } from "./commands/BatchPutFieldOptionsCommand";
|
|
11
|
+
import { CreateCaseCommandInput, CreateCaseCommandOutput } from "./commands/CreateCaseCommand";
|
|
12
|
+
import { CreateDomainCommandInput, CreateDomainCommandOutput } from "./commands/CreateDomainCommand";
|
|
13
|
+
import { CreateFieldCommandInput, CreateFieldCommandOutput } from "./commands/CreateFieldCommand";
|
|
14
|
+
import { CreateLayoutCommandInput, CreateLayoutCommandOutput } from "./commands/CreateLayoutCommand";
|
|
15
|
+
import { CreateRelatedItemCommandInput, CreateRelatedItemCommandOutput } from "./commands/CreateRelatedItemCommand";
|
|
16
|
+
import { CreateTemplateCommandInput, CreateTemplateCommandOutput } from "./commands/CreateTemplateCommand";
|
|
17
|
+
import { GetCaseCommandInput, GetCaseCommandOutput } from "./commands/GetCaseCommand";
|
|
18
|
+
import { GetCaseEventConfigurationCommandInput, GetCaseEventConfigurationCommandOutput } from "./commands/GetCaseEventConfigurationCommand";
|
|
19
|
+
import { GetDomainCommandInput, GetDomainCommandOutput } from "./commands/GetDomainCommand";
|
|
20
|
+
import { GetLayoutCommandInput, GetLayoutCommandOutput } from "./commands/GetLayoutCommand";
|
|
21
|
+
import { GetTemplateCommandInput, GetTemplateCommandOutput } from "./commands/GetTemplateCommand";
|
|
22
|
+
import { ListCasesForContactCommandInput, ListCasesForContactCommandOutput } from "./commands/ListCasesForContactCommand";
|
|
23
|
+
import { ListDomainsCommandInput, ListDomainsCommandOutput } from "./commands/ListDomainsCommand";
|
|
24
|
+
import { ListFieldOptionsCommandInput, ListFieldOptionsCommandOutput } from "./commands/ListFieldOptionsCommand";
|
|
25
|
+
import { ListFieldsCommandInput, ListFieldsCommandOutput } from "./commands/ListFieldsCommand";
|
|
26
|
+
import { ListLayoutsCommandInput, ListLayoutsCommandOutput } from "./commands/ListLayoutsCommand";
|
|
27
|
+
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
28
|
+
import { ListTemplatesCommandInput, ListTemplatesCommandOutput } from "./commands/ListTemplatesCommand";
|
|
29
|
+
import { PutCaseEventConfigurationCommandInput, PutCaseEventConfigurationCommandOutput } from "./commands/PutCaseEventConfigurationCommand";
|
|
30
|
+
import { SearchCasesCommandInput, SearchCasesCommandOutput } from "./commands/SearchCasesCommand";
|
|
31
|
+
import { SearchRelatedItemsCommandInput, SearchRelatedItemsCommandOutput } from "./commands/SearchRelatedItemsCommand";
|
|
32
|
+
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
33
|
+
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
34
|
+
import { UpdateCaseCommandInput, UpdateCaseCommandOutput } from "./commands/UpdateCaseCommand";
|
|
35
|
+
import { UpdateFieldCommandInput, UpdateFieldCommandOutput } from "./commands/UpdateFieldCommand";
|
|
36
|
+
import { UpdateLayoutCommandInput, UpdateLayoutCommandOutput } from "./commands/UpdateLayoutCommand";
|
|
37
|
+
import { UpdateTemplateCommandInput, UpdateTemplateCommandOutput } from "./commands/UpdateTemplateCommand";
|
|
38
|
+
export declare type ServiceInputTypes = BatchGetFieldCommandInput | BatchPutFieldOptionsCommandInput | CreateCaseCommandInput | CreateDomainCommandInput | CreateFieldCommandInput | CreateLayoutCommandInput | CreateRelatedItemCommandInput | CreateTemplateCommandInput | GetCaseCommandInput | GetCaseEventConfigurationCommandInput | GetDomainCommandInput | GetLayoutCommandInput | GetTemplateCommandInput | ListCasesForContactCommandInput | ListDomainsCommandInput | ListFieldOptionsCommandInput | ListFieldsCommandInput | ListLayoutsCommandInput | ListTagsForResourceCommandInput | ListTemplatesCommandInput | PutCaseEventConfigurationCommandInput | SearchCasesCommandInput | SearchRelatedItemsCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateCaseCommandInput | UpdateFieldCommandInput | UpdateLayoutCommandInput | UpdateTemplateCommandInput;
|
|
39
|
+
export declare type ServiceOutputTypes = BatchGetFieldCommandOutput | BatchPutFieldOptionsCommandOutput | CreateCaseCommandOutput | CreateDomainCommandOutput | CreateFieldCommandOutput | CreateLayoutCommandOutput | CreateRelatedItemCommandOutput | CreateTemplateCommandOutput | GetCaseCommandOutput | GetCaseEventConfigurationCommandOutput | GetDomainCommandOutput | GetLayoutCommandOutput | GetTemplateCommandOutput | ListCasesForContactCommandOutput | ListDomainsCommandOutput | ListFieldOptionsCommandOutput | ListFieldsCommandOutput | ListLayoutsCommandOutput | ListTagsForResourceCommandOutput | ListTemplatesCommandOutput | PutCaseEventConfigurationCommandOutput | SearchCasesCommandOutput | SearchRelatedItemsCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateCaseCommandOutput | UpdateFieldCommandOutput | UpdateLayoutCommandOutput | UpdateTemplateCommandOutput;
|
|
40
|
+
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
41
|
+
/**
|
|
42
|
+
* The HTTP handler to use. Fetch in browser and Https in Nodejs.
|
|
43
|
+
*/
|
|
44
|
+
requestHandler?: __HttpHandler;
|
|
45
|
+
/**
|
|
46
|
+
* A constructor for a class implementing the {@link __Hash} interface
|
|
47
|
+
* that computes the SHA-256 HMAC or checksum of a string or binary buffer.
|
|
48
|
+
* @internal
|
|
49
|
+
*/
|
|
50
|
+
sha256?: __HashConstructor;
|
|
51
|
+
/**
|
|
52
|
+
* The function that will be used to convert strings into HTTP endpoints.
|
|
53
|
+
* @internal
|
|
54
|
+
*/
|
|
55
|
+
urlParser?: __UrlParser;
|
|
56
|
+
/**
|
|
57
|
+
* A function that can calculate the length of a request body.
|
|
58
|
+
* @internal
|
|
59
|
+
*/
|
|
60
|
+
bodyLengthChecker?: __BodyLengthCalculator;
|
|
61
|
+
/**
|
|
62
|
+
* A function that converts a stream into an array of bytes.
|
|
63
|
+
* @internal
|
|
64
|
+
*/
|
|
65
|
+
streamCollector?: __StreamCollector;
|
|
66
|
+
/**
|
|
67
|
+
* The function that will be used to convert a base64-encoded string to a byte array.
|
|
68
|
+
* @internal
|
|
69
|
+
*/
|
|
70
|
+
base64Decoder?: __Decoder;
|
|
71
|
+
/**
|
|
72
|
+
* The function that will be used to convert binary data to a base64-encoded string.
|
|
73
|
+
* @internal
|
|
74
|
+
*/
|
|
75
|
+
base64Encoder?: __Encoder;
|
|
76
|
+
/**
|
|
77
|
+
* The function that will be used to convert a UTF8-encoded string to a byte array.
|
|
78
|
+
* @internal
|
|
79
|
+
*/
|
|
80
|
+
utf8Decoder?: __Decoder;
|
|
81
|
+
/**
|
|
82
|
+
* The function that will be used to convert binary data to a UTF-8 encoded string.
|
|
83
|
+
* @internal
|
|
84
|
+
*/
|
|
85
|
+
utf8Encoder?: __Encoder;
|
|
86
|
+
/**
|
|
87
|
+
* The runtime environment.
|
|
88
|
+
* @internal
|
|
89
|
+
*/
|
|
90
|
+
runtime?: string;
|
|
91
|
+
/**
|
|
92
|
+
* Disable dyanamically changing the endpoint of the client based on the hostPrefix
|
|
93
|
+
* trait of an operation.
|
|
94
|
+
*/
|
|
95
|
+
disableHostPrefix?: boolean;
|
|
96
|
+
/**
|
|
97
|
+
* Value for how many times a request will be made at most in case of retry.
|
|
98
|
+
*/
|
|
99
|
+
maxAttempts?: number | __Provider<number>;
|
|
100
|
+
/**
|
|
101
|
+
* Specifies which retry algorithm to use.
|
|
102
|
+
*/
|
|
103
|
+
retryMode?: string | __Provider<string>;
|
|
104
|
+
/**
|
|
105
|
+
* Optional logger for logging debug/info/warn/error.
|
|
106
|
+
*/
|
|
107
|
+
logger?: __Logger;
|
|
108
|
+
/**
|
|
109
|
+
* Enables IPv6/IPv4 dualstack endpoint.
|
|
110
|
+
*/
|
|
111
|
+
useDualstackEndpoint?: boolean | __Provider<boolean>;
|
|
112
|
+
/**
|
|
113
|
+
* Enables FIPS compatible endpoints.
|
|
114
|
+
*/
|
|
115
|
+
useFipsEndpoint?: boolean | __Provider<boolean>;
|
|
116
|
+
/**
|
|
117
|
+
* Unique service identifier.
|
|
118
|
+
* @internal
|
|
119
|
+
*/
|
|
120
|
+
serviceId?: string;
|
|
121
|
+
/**
|
|
122
|
+
* The AWS region to which this client will send requests
|
|
123
|
+
*/
|
|
124
|
+
region?: string | __Provider<string>;
|
|
125
|
+
/**
|
|
126
|
+
* Default credentials provider; Not available in browser runtime.
|
|
127
|
+
* @internal
|
|
128
|
+
*/
|
|
129
|
+
credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
|
|
130
|
+
/**
|
|
131
|
+
* Fetch related hostname, signing name or signing region with given region.
|
|
132
|
+
* @internal
|
|
133
|
+
*/
|
|
134
|
+
regionInfoProvider?: RegionInfoProvider;
|
|
135
|
+
/**
|
|
136
|
+
* The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
|
|
137
|
+
* @internal
|
|
138
|
+
*/
|
|
139
|
+
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
140
|
+
/**
|
|
141
|
+
* The {@link DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
|
|
142
|
+
*/
|
|
143
|
+
defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
|
|
144
|
+
}
|
|
145
|
+
declare type ConnectCasesClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
|
|
146
|
+
/**
|
|
147
|
+
* The configuration interface of ConnectCasesClient class constructor that set the region, credentials and other options.
|
|
148
|
+
*/
|
|
149
|
+
export interface ConnectCasesClientConfig extends ConnectCasesClientConfigType {
|
|
150
|
+
}
|
|
151
|
+
declare type ConnectCasesClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RegionResolvedConfig & EndpointsResolvedConfig & RetryResolvedConfig & HostHeaderResolvedConfig & AwsAuthResolvedConfig & UserAgentResolvedConfig;
|
|
152
|
+
/**
|
|
153
|
+
* The resolved configuration interface of ConnectCasesClient class. This is resolved and normalized from the {@link ConnectCasesClientConfig | constructor configuration interface}.
|
|
154
|
+
*/
|
|
155
|
+
export interface ConnectCasesClientResolvedConfig extends ConnectCasesClientResolvedConfigType {
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* <p>Welcome to the Amazon Connect Cases API Reference. This guide provides information about the
|
|
159
|
+
* Amazon Connect Cases API, which you can use to create, update, get, and list Cases domains,
|
|
160
|
+
* fields, field options, layouts, templates, cases, related items, and tags.</p>
|
|
161
|
+
*
|
|
162
|
+
* <p>For more information about Amazon Connect Cases, see <a href="https://docs.aws.amazon.com/connect/latest/adminguide/cases.html">Amazon Connect Cases</a> in the
|
|
163
|
+
* <i>Amazon Connect Administrator Guide</i>. </p>
|
|
164
|
+
*/
|
|
165
|
+
export declare class ConnectCasesClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, ConnectCasesClientResolvedConfig> {
|
|
166
|
+
/**
|
|
167
|
+
* The resolved configuration of ConnectCasesClient class. This is resolved and normalized from the {@link ConnectCasesClientConfig | constructor configuration interface}.
|
|
168
|
+
*/
|
|
169
|
+
readonly config: ConnectCasesClientResolvedConfig;
|
|
170
|
+
constructor(configuration: ConnectCasesClientConfig);
|
|
171
|
+
/**
|
|
172
|
+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
173
|
+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
174
|
+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
175
|
+
*/
|
|
176
|
+
destroy(): void;
|
|
177
|
+
}
|
|
178
|
+
export {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
3
|
+
import { ConnectCasesClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConnectCasesClient";
|
|
4
|
+
import { BatchGetFieldRequest, BatchGetFieldResponse } from "../models/models_0";
|
|
5
|
+
export interface BatchGetFieldCommandInput extends BatchGetFieldRequest {
|
|
6
|
+
}
|
|
7
|
+
export interface BatchGetFieldCommandOutput extends BatchGetFieldResponse, __MetadataBearer {
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* <p>Returns the description for the list of fields in the request parameters. </p>
|
|
11
|
+
* @example
|
|
12
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
13
|
+
* ```javascript
|
|
14
|
+
* import { ConnectCasesClient, BatchGetFieldCommand } from "@aws-sdk/client-connectcases"; // ES Modules import
|
|
15
|
+
* // const { ConnectCasesClient, BatchGetFieldCommand } = require("@aws-sdk/client-connectcases"); // CommonJS import
|
|
16
|
+
* const client = new ConnectCasesClient(config);
|
|
17
|
+
* const command = new BatchGetFieldCommand(input);
|
|
18
|
+
* const response = await client.send(command);
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
* @see {@link BatchGetFieldCommandInput} for command's `input` shape.
|
|
22
|
+
* @see {@link BatchGetFieldCommandOutput} for command's `response` shape.
|
|
23
|
+
* @see {@link ConnectCasesClientResolvedConfig | config} for ConnectCasesClient's `config` shape.
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
26
|
+
export declare class BatchGetFieldCommand extends $Command<BatchGetFieldCommandInput, BatchGetFieldCommandOutput, ConnectCasesClientResolvedConfig> {
|
|
27
|
+
readonly input: BatchGetFieldCommandInput;
|
|
28
|
+
constructor(input: BatchGetFieldCommandInput);
|
|
29
|
+
/**
|
|
30
|
+
* @internal
|
|
31
|
+
*/
|
|
32
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ConnectCasesClientResolvedConfig, options?: __HttpHandlerOptions): Handler<BatchGetFieldCommandInput, BatchGetFieldCommandOutput>;
|
|
33
|
+
private serialize;
|
|
34
|
+
private deserialize;
|
|
35
|
+
}
|