@aws-sdk/client-connect 3.42.0 → 3.47.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.
Files changed (137) hide show
  1. package/CHANGELOG.md +50 -0
  2. package/README.md +2 -4
  3. package/dist-cjs/Connect.js +120 -0
  4. package/dist-cjs/commands/CreateContactFlowModuleCommand.js +36 -0
  5. package/dist-cjs/commands/DeleteContactFlowCommand.js +36 -0
  6. package/dist-cjs/commands/DeleteContactFlowModuleCommand.js +36 -0
  7. package/dist-cjs/commands/DescribeContactFlowModuleCommand.js +36 -0
  8. package/dist-cjs/commands/ListContactFlowModulesCommand.js +36 -0
  9. package/dist-cjs/commands/TagResourceCommand.js +2 -2
  10. package/dist-cjs/commands/UntagResourceCommand.js +2 -2
  11. package/dist-cjs/commands/UpdateAgentStatusCommand.js +2 -2
  12. package/dist-cjs/commands/UpdateContactAttributesCommand.js +3 -3
  13. package/dist-cjs/commands/UpdateContactCommand.js +3 -3
  14. package/dist-cjs/commands/UpdateContactFlowContentCommand.js +2 -2
  15. package/dist-cjs/commands/UpdateContactFlowMetadataCommand.js +36 -0
  16. package/dist-cjs/commands/UpdateContactFlowModuleContentCommand.js +36 -0
  17. package/dist-cjs/commands/UpdateContactFlowModuleMetadataCommand.js +36 -0
  18. package/dist-cjs/commands/UpdateContactFlowNameCommand.js +2 -2
  19. package/dist-cjs/commands/UpdateContactScheduleCommand.js +3 -3
  20. package/dist-cjs/commands/UpdateHoursOfOperationCommand.js +2 -2
  21. package/dist-cjs/commands/UpdateInstanceAttributeCommand.js +2 -2
  22. package/dist-cjs/commands/UpdateInstanceStorageConfigCommand.js +2 -2
  23. package/dist-cjs/commands/UpdateQueueHoursOfOperationCommand.js +2 -2
  24. package/dist-cjs/commands/UpdateQueueMaxContactsCommand.js +2 -2
  25. package/dist-cjs/commands/index.js +8 -0
  26. package/dist-cjs/endpoints.js +1 -0
  27. package/dist-cjs/models/models_0.js +84 -201
  28. package/dist-cjs/models/models_1.js +127 -1
  29. package/dist-cjs/pagination/ListContactFlowModulesPaginator.js +35 -0
  30. package/dist-cjs/pagination/index.js +1 -0
  31. package/dist-cjs/protocols/Aws_restJson1.js +1271 -167
  32. package/dist-cjs/runtimeConfig.browser.js +7 -2
  33. package/dist-cjs/runtimeConfig.js +9 -3
  34. package/dist-es/Connect.js +120 -0
  35. package/dist-es/commands/CreateContactFlowModuleCommand.js +39 -0
  36. package/dist-es/commands/DeleteContactFlowCommand.js +39 -0
  37. package/dist-es/commands/DeleteContactFlowModuleCommand.js +39 -0
  38. package/dist-es/commands/DescribeContactFlowModuleCommand.js +39 -0
  39. package/dist-es/commands/ListContactFlowModulesCommand.js +39 -0
  40. package/dist-es/commands/TagResourceCommand.js +1 -1
  41. package/dist-es/commands/UntagResourceCommand.js +1 -1
  42. package/dist-es/commands/UpdateAgentStatusCommand.js +1 -1
  43. package/dist-es/commands/UpdateContactAttributesCommand.js +1 -1
  44. package/dist-es/commands/UpdateContactCommand.js +1 -1
  45. package/dist-es/commands/UpdateContactFlowContentCommand.js +1 -1
  46. package/dist-es/commands/UpdateContactFlowMetadataCommand.js +39 -0
  47. package/dist-es/commands/UpdateContactFlowModuleContentCommand.js +39 -0
  48. package/dist-es/commands/UpdateContactFlowModuleMetadataCommand.js +39 -0
  49. package/dist-es/commands/UpdateContactFlowNameCommand.js +1 -1
  50. package/dist-es/commands/UpdateContactScheduleCommand.js +1 -1
  51. package/dist-es/commands/UpdateHoursOfOperationCommand.js +1 -1
  52. package/dist-es/commands/UpdateInstanceAttributeCommand.js +1 -1
  53. package/dist-es/commands/UpdateInstanceStorageConfigCommand.js +1 -1
  54. package/dist-es/commands/UpdateQueueHoursOfOperationCommand.js +1 -1
  55. package/dist-es/commands/UpdateQueueMaxContactsCommand.js +1 -1
  56. package/dist-es/commands/index.js +8 -0
  57. package/dist-es/endpoints.js +1 -0
  58. package/dist-es/models/models_0.js +59 -132
  59. package/dist-es/models/models_1.js +84 -0
  60. package/dist-es/pagination/ListContactFlowModulesPaginator.js +74 -0
  61. package/dist-es/pagination/index.js +1 -0
  62. package/dist-es/protocols/Aws_restJson1.js +1423 -192
  63. package/dist-es/runtimeConfig.browser.js +12 -3
  64. package/dist-es/runtimeConfig.js +13 -6
  65. package/dist-types/Connect.d.ts +78 -21
  66. package/dist-types/ConnectClient.d.ts +18 -8
  67. package/dist-types/commands/CreateContactFlowModuleCommand.d.ts +35 -0
  68. package/dist-types/commands/CreateHoursOfOperationCommand.d.ts +2 -1
  69. package/dist-types/commands/DeleteContactFlowCommand.d.ts +35 -0
  70. package/dist-types/commands/DeleteContactFlowModuleCommand.d.ts +35 -0
  71. package/dist-types/commands/DeleteHoursOfOperationCommand.d.ts +2 -1
  72. package/dist-types/commands/DescribeContactCommand.d.ts +2 -1
  73. package/dist-types/commands/DescribeContactFlowModuleCommand.d.ts +35 -0
  74. package/dist-types/commands/DescribeHoursOfOperationCommand.d.ts +2 -1
  75. package/dist-types/commands/ListBotsCommand.d.ts +2 -2
  76. package/dist-types/commands/ListContactFlowModulesCommand.d.ts +35 -0
  77. package/dist-types/commands/StartContactStreamingCommand.d.ts +1 -1
  78. package/dist-types/commands/StartOutboundVoiceContactCommand.d.ts +2 -3
  79. package/dist-types/commands/StartTaskContactCommand.d.ts +1 -2
  80. package/dist-types/commands/TagResourceCommand.d.ts +3 -3
  81. package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
  82. package/dist-types/commands/UpdateAgentStatusCommand.d.ts +1 -1
  83. package/dist-types/commands/UpdateContactAttributesCommand.d.ts +1 -1
  84. package/dist-types/commands/UpdateContactCommand.d.ts +2 -2
  85. package/dist-types/commands/UpdateContactFlowContentCommand.d.ts +1 -1
  86. package/dist-types/commands/UpdateContactFlowMetadataCommand.d.ts +35 -0
  87. package/dist-types/commands/UpdateContactFlowModuleContentCommand.d.ts +35 -0
  88. package/dist-types/commands/UpdateContactFlowModuleMetadataCommand.d.ts +35 -0
  89. package/dist-types/commands/UpdateContactFlowNameCommand.d.ts +1 -1
  90. package/dist-types/commands/UpdateContactScheduleCommand.d.ts +1 -1
  91. package/dist-types/commands/UpdateHoursOfOperationCommand.d.ts +3 -2
  92. package/dist-types/commands/UpdateInstanceAttributeCommand.d.ts +1 -1
  93. package/dist-types/commands/UpdateInstanceStorageConfigCommand.d.ts +1 -1
  94. package/dist-types/commands/UpdateQueueHoursOfOperationCommand.d.ts +1 -1
  95. package/dist-types/commands/UpdateQueueMaxContactsCommand.d.ts +1 -1
  96. package/dist-types/commands/index.d.ts +8 -0
  97. package/dist-types/models/models_0.d.ts +291 -461
  98. package/dist-types/models/models_1.d.ts +429 -1
  99. package/dist-types/pagination/ListContactFlowModulesPaginator.d.ts +4 -0
  100. package/dist-types/pagination/index.d.ts +1 -0
  101. package/dist-types/protocols/Aws_restJson1.d.ts +24 -0
  102. package/dist-types/runtimeConfig.browser.d.ts +3 -2
  103. package/dist-types/runtimeConfig.d.ts +4 -3
  104. package/dist-types/runtimeConfig.native.d.ts +1 -0
  105. package/dist-types/ts3.4/Connect.d.ts +40 -0
  106. package/dist-types/ts3.4/ConnectClient.d.ts +13 -3
  107. package/dist-types/ts3.4/commands/CreateContactFlowModuleCommand.d.ts +17 -0
  108. package/dist-types/ts3.4/commands/DeleteContactFlowCommand.d.ts +17 -0
  109. package/dist-types/ts3.4/commands/DeleteContactFlowModuleCommand.d.ts +17 -0
  110. package/dist-types/ts3.4/commands/DescribeContactFlowModuleCommand.d.ts +17 -0
  111. package/dist-types/ts3.4/commands/ListContactFlowModulesCommand.d.ts +17 -0
  112. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +1 -1
  113. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +1 -1
  114. package/dist-types/ts3.4/commands/UpdateAgentStatusCommand.d.ts +1 -1
  115. package/dist-types/ts3.4/commands/UpdateContactAttributesCommand.d.ts +1 -1
  116. package/dist-types/ts3.4/commands/UpdateContactCommand.d.ts +1 -1
  117. package/dist-types/ts3.4/commands/UpdateContactFlowContentCommand.d.ts +1 -1
  118. package/dist-types/ts3.4/commands/UpdateContactFlowMetadataCommand.d.ts +17 -0
  119. package/dist-types/ts3.4/commands/UpdateContactFlowModuleContentCommand.d.ts +17 -0
  120. package/dist-types/ts3.4/commands/UpdateContactFlowModuleMetadataCommand.d.ts +17 -0
  121. package/dist-types/ts3.4/commands/UpdateContactFlowNameCommand.d.ts +1 -1
  122. package/dist-types/ts3.4/commands/UpdateContactScheduleCommand.d.ts +1 -1
  123. package/dist-types/ts3.4/commands/UpdateHoursOfOperationCommand.d.ts +1 -1
  124. package/dist-types/ts3.4/commands/UpdateInstanceAttributeCommand.d.ts +1 -1
  125. package/dist-types/ts3.4/commands/UpdateInstanceStorageConfigCommand.d.ts +1 -1
  126. package/dist-types/ts3.4/commands/UpdateQueueHoursOfOperationCommand.d.ts +1 -1
  127. package/dist-types/ts3.4/commands/UpdateQueueMaxContactsCommand.d.ts +1 -1
  128. package/dist-types/ts3.4/commands/index.d.ts +8 -0
  129. package/dist-types/ts3.4/models/models_0.d.ts +164 -264
  130. package/dist-types/ts3.4/models/models_1.d.ts +255 -1
  131. package/dist-types/ts3.4/pagination/ListContactFlowModulesPaginator.d.ts +4 -0
  132. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  133. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +24 -0
  134. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +3 -2
  135. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -3
  136. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
  137. package/package.json +38 -45
@@ -13,13 +13,18 @@ const util_body_length_browser_1 = require("@aws-sdk/util-body-length-browser");
13
13
  const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
14
14
  const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
15
15
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
16
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
17
+ const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
16
18
  const getRuntimeConfig = (config) => {
17
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);
21
+ const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
18
22
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
19
23
  return {
20
24
  ...clientSharedValues,
21
25
  ...config,
22
26
  runtime: "browser",
27
+ defaultsMode,
23
28
  base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_browser_1.fromBase64,
24
29
  base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
25
30
  bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength,
@@ -27,8 +32,8 @@ const getRuntimeConfig = (config) => {
27
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 }),
28
33
  maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
29
34
  region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalid_dependency_1.invalidProvider("Region is missing"),
30
- requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(),
31
- retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (() => Promise.resolve(middleware_retry_1.DEFAULT_RETRY_MODE)),
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
+ 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),
32
37
  sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
33
38
  streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : fetch_http_handler_1.streamCollector,
34
39
  useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
@@ -16,14 +16,17 @@ const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
16
16
  const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
17
17
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
18
18
  const smithy_client_1 = require("@aws-sdk/smithy-client");
19
+ const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
19
20
  const getRuntimeConfig = (config) => {
20
21
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
21
- smithy_client_1.emitWarningIfUnsupportedVersion(process.version);
22
+ const defaultsMode = util_defaults_mode_node_1.resolveDefaultsModeConfig(config);
23
+ const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
22
24
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
23
25
  return {
24
26
  ...clientSharedValues,
25
27
  ...config,
26
28
  runtime: "node",
29
+ defaultsMode,
27
30
  base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
28
31
  base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
29
32
  bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
@@ -31,8 +34,11 @@ const getRuntimeConfig = (config) => {
31
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 }),
32
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),
33
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),
34
- requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(),
35
- retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig(middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS),
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({
39
+ ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
40
+ default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
41
+ }),
36
42
  sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
37
43
  streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
38
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),
@@ -9,6 +9,7 @@ import { AssociateRoutingProfileQueuesCommand, } from "./commands/AssociateRouti
9
9
  import { AssociateSecurityKeyCommand, } from "./commands/AssociateSecurityKeyCommand";
10
10
  import { CreateAgentStatusCommand, } from "./commands/CreateAgentStatusCommand";
11
11
  import { CreateContactFlowCommand, } from "./commands/CreateContactFlowCommand";
12
+ import { CreateContactFlowModuleCommand, } from "./commands/CreateContactFlowModuleCommand";
12
13
  import { CreateHoursOfOperationCommand, } from "./commands/CreateHoursOfOperationCommand";
13
14
  import { CreateInstanceCommand, } from "./commands/CreateInstanceCommand";
14
15
  import { CreateIntegrationAssociationCommand, } from "./commands/CreateIntegrationAssociationCommand";
@@ -19,6 +20,8 @@ import { CreateSecurityProfileCommand, } from "./commands/CreateSecurityProfileC
19
20
  import { CreateUseCaseCommand, } from "./commands/CreateUseCaseCommand";
20
21
  import { CreateUserCommand } from "./commands/CreateUserCommand";
21
22
  import { CreateUserHierarchyGroupCommand, } from "./commands/CreateUserHierarchyGroupCommand";
23
+ import { DeleteContactFlowCommand, } from "./commands/DeleteContactFlowCommand";
24
+ import { DeleteContactFlowModuleCommand, } from "./commands/DeleteContactFlowModuleCommand";
22
25
  import { DeleteHoursOfOperationCommand, } from "./commands/DeleteHoursOfOperationCommand";
23
26
  import { DeleteInstanceCommand, } from "./commands/DeleteInstanceCommand";
24
27
  import { DeleteIntegrationAssociationCommand, } from "./commands/DeleteIntegrationAssociationCommand";
@@ -30,6 +33,7 @@ import { DeleteUserHierarchyGroupCommand, } from "./commands/DeleteUserHierarchy
30
33
  import { DescribeAgentStatusCommand, } from "./commands/DescribeAgentStatusCommand";
31
34
  import { DescribeContactCommand, } from "./commands/DescribeContactCommand";
32
35
  import { DescribeContactFlowCommand, } from "./commands/DescribeContactFlowCommand";
36
+ import { DescribeContactFlowModuleCommand, } from "./commands/DescribeContactFlowModuleCommand";
33
37
  import { DescribeHoursOfOperationCommand, } from "./commands/DescribeHoursOfOperationCommand";
34
38
  import { DescribeInstanceAttributeCommand, } from "./commands/DescribeInstanceAttributeCommand";
35
39
  import { DescribeInstanceCommand, } from "./commands/DescribeInstanceCommand";
@@ -56,6 +60,7 @@ import { GetMetricDataCommand, } from "./commands/GetMetricDataCommand";
56
60
  import { ListAgentStatusesCommand, } from "./commands/ListAgentStatusesCommand";
57
61
  import { ListApprovedOriginsCommand, } from "./commands/ListApprovedOriginsCommand";
58
62
  import { ListBotsCommand } from "./commands/ListBotsCommand";
63
+ import { ListContactFlowModulesCommand, } from "./commands/ListContactFlowModulesCommand";
59
64
  import { ListContactFlowsCommand, } from "./commands/ListContactFlowsCommand";
60
65
  import { ListContactReferencesCommand, } from "./commands/ListContactReferencesCommand";
61
66
  import { ListHoursOfOperationsCommand, } from "./commands/ListHoursOfOperationsCommand";
@@ -95,6 +100,9 @@ import { UpdateAgentStatusCommand, } from "./commands/UpdateAgentStatusCommand";
95
100
  import { UpdateContactAttributesCommand, } from "./commands/UpdateContactAttributesCommand";
96
101
  import { UpdateContactCommand, } from "./commands/UpdateContactCommand";
97
102
  import { UpdateContactFlowContentCommand, } from "./commands/UpdateContactFlowContentCommand";
103
+ import { UpdateContactFlowMetadataCommand, } from "./commands/UpdateContactFlowMetadataCommand";
104
+ import { UpdateContactFlowModuleContentCommand, } from "./commands/UpdateContactFlowModuleContentCommand";
105
+ import { UpdateContactFlowModuleMetadataCommand, } from "./commands/UpdateContactFlowModuleMetadataCommand";
98
106
  import { UpdateContactFlowNameCommand, } from "./commands/UpdateContactFlowNameCommand";
99
107
  import { UpdateContactScheduleCommand, } from "./commands/UpdateContactScheduleCommand";
100
108
  import { UpdateHoursOfOperationCommand, } from "./commands/UpdateHoursOfOperationCommand";
@@ -265,6 +273,20 @@ var Connect = (function (_super) {
265
273
  return this.send(command, optionsOrCb);
266
274
  }
267
275
  };
276
+ Connect.prototype.createContactFlowModule = function (args, optionsOrCb, cb) {
277
+ var command = new CreateContactFlowModuleCommand(args);
278
+ if (typeof optionsOrCb === "function") {
279
+ this.send(command, optionsOrCb);
280
+ }
281
+ else if (typeof cb === "function") {
282
+ if (typeof optionsOrCb !== "object")
283
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
284
+ this.send(command, optionsOrCb || {}, cb);
285
+ }
286
+ else {
287
+ return this.send(command, optionsOrCb);
288
+ }
289
+ };
268
290
  Connect.prototype.createHoursOfOperation = function (args, optionsOrCb, cb) {
269
291
  var command = new CreateHoursOfOperationCommand(args);
270
292
  if (typeof optionsOrCb === "function") {
@@ -405,6 +427,34 @@ var Connect = (function (_super) {
405
427
  return this.send(command, optionsOrCb);
406
428
  }
407
429
  };
430
+ Connect.prototype.deleteContactFlow = function (args, optionsOrCb, cb) {
431
+ var command = new DeleteContactFlowCommand(args);
432
+ if (typeof optionsOrCb === "function") {
433
+ this.send(command, optionsOrCb);
434
+ }
435
+ else if (typeof cb === "function") {
436
+ if (typeof optionsOrCb !== "object")
437
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
438
+ this.send(command, optionsOrCb || {}, cb);
439
+ }
440
+ else {
441
+ return this.send(command, optionsOrCb);
442
+ }
443
+ };
444
+ Connect.prototype.deleteContactFlowModule = function (args, optionsOrCb, cb) {
445
+ var command = new DeleteContactFlowModuleCommand(args);
446
+ if (typeof optionsOrCb === "function") {
447
+ this.send(command, optionsOrCb);
448
+ }
449
+ else if (typeof cb === "function") {
450
+ if (typeof optionsOrCb !== "object")
451
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
452
+ this.send(command, optionsOrCb || {}, cb);
453
+ }
454
+ else {
455
+ return this.send(command, optionsOrCb);
456
+ }
457
+ };
408
458
  Connect.prototype.deleteHoursOfOperation = function (args, optionsOrCb, cb) {
409
459
  var command = new DeleteHoursOfOperationCommand(args);
410
460
  if (typeof optionsOrCb === "function") {
@@ -559,6 +609,20 @@ var Connect = (function (_super) {
559
609
  return this.send(command, optionsOrCb);
560
610
  }
561
611
  };
612
+ Connect.prototype.describeContactFlowModule = function (args, optionsOrCb, cb) {
613
+ var command = new DescribeContactFlowModuleCommand(args);
614
+ if (typeof optionsOrCb === "function") {
615
+ this.send(command, optionsOrCb);
616
+ }
617
+ else if (typeof cb === "function") {
618
+ if (typeof optionsOrCb !== "object")
619
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
620
+ this.send(command, optionsOrCb || {}, cb);
621
+ }
622
+ else {
623
+ return this.send(command, optionsOrCb);
624
+ }
625
+ };
562
626
  Connect.prototype.describeHoursOfOperation = function (args, optionsOrCb, cb) {
563
627
  var command = new DescribeHoursOfOperationCommand(args);
564
628
  if (typeof optionsOrCb === "function") {
@@ -923,6 +987,20 @@ var Connect = (function (_super) {
923
987
  return this.send(command, optionsOrCb);
924
988
  }
925
989
  };
990
+ Connect.prototype.listContactFlowModules = function (args, optionsOrCb, cb) {
991
+ var command = new ListContactFlowModulesCommand(args);
992
+ if (typeof optionsOrCb === "function") {
993
+ this.send(command, optionsOrCb);
994
+ }
995
+ else if (typeof cb === "function") {
996
+ if (typeof optionsOrCb !== "object")
997
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
998
+ this.send(command, optionsOrCb || {}, cb);
999
+ }
1000
+ else {
1001
+ return this.send(command, optionsOrCb);
1002
+ }
1003
+ };
926
1004
  Connect.prototype.listContactFlows = function (args, optionsOrCb, cb) {
927
1005
  var command = new ListContactFlowsCommand(args);
928
1006
  if (typeof optionsOrCb === "function") {
@@ -1469,6 +1547,48 @@ var Connect = (function (_super) {
1469
1547
  return this.send(command, optionsOrCb);
1470
1548
  }
1471
1549
  };
1550
+ Connect.prototype.updateContactFlowMetadata = function (args, optionsOrCb, cb) {
1551
+ var command = new UpdateContactFlowMetadataCommand(args);
1552
+ if (typeof optionsOrCb === "function") {
1553
+ this.send(command, optionsOrCb);
1554
+ }
1555
+ else if (typeof cb === "function") {
1556
+ if (typeof optionsOrCb !== "object")
1557
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
1558
+ this.send(command, optionsOrCb || {}, cb);
1559
+ }
1560
+ else {
1561
+ return this.send(command, optionsOrCb);
1562
+ }
1563
+ };
1564
+ Connect.prototype.updateContactFlowModuleContent = function (args, optionsOrCb, cb) {
1565
+ var command = new UpdateContactFlowModuleContentCommand(args);
1566
+ if (typeof optionsOrCb === "function") {
1567
+ this.send(command, optionsOrCb);
1568
+ }
1569
+ else if (typeof cb === "function") {
1570
+ if (typeof optionsOrCb !== "object")
1571
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
1572
+ this.send(command, optionsOrCb || {}, cb);
1573
+ }
1574
+ else {
1575
+ return this.send(command, optionsOrCb);
1576
+ }
1577
+ };
1578
+ Connect.prototype.updateContactFlowModuleMetadata = function (args, optionsOrCb, cb) {
1579
+ var command = new UpdateContactFlowModuleMetadataCommand(args);
1580
+ if (typeof optionsOrCb === "function") {
1581
+ this.send(command, optionsOrCb);
1582
+ }
1583
+ else if (typeof cb === "function") {
1584
+ if (typeof optionsOrCb !== "object")
1585
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
1586
+ this.send(command, optionsOrCb || {}, cb);
1587
+ }
1588
+ else {
1589
+ return this.send(command, optionsOrCb);
1590
+ }
1591
+ };
1472
1592
  Connect.prototype.updateContactFlowName = function (args, optionsOrCb, cb) {
1473
1593
  var command = new UpdateContactFlowNameCommand(args);
1474
1594
  if (typeof optionsOrCb === "function") {
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { CreateContactFlowModuleRequest, CreateContactFlowModuleResponse } from "../models/models_0";
5
+ import { deserializeAws_restJson1CreateContactFlowModuleCommand, serializeAws_restJson1CreateContactFlowModuleCommand, } from "../protocols/Aws_restJson1";
6
+ var CreateContactFlowModuleCommand = (function (_super) {
7
+ __extends(CreateContactFlowModuleCommand, _super);
8
+ function CreateContactFlowModuleCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ CreateContactFlowModuleCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "ConnectClient";
18
+ var commandName = "CreateContactFlowModuleCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: CreateContactFlowModuleRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: CreateContactFlowModuleResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ CreateContactFlowModuleCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restJson1CreateContactFlowModuleCommand(input, context);
33
+ };
34
+ CreateContactFlowModuleCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restJson1CreateContactFlowModuleCommand(output, context);
36
+ };
37
+ return CreateContactFlowModuleCommand;
38
+ }($Command));
39
+ export { CreateContactFlowModuleCommand };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { DeleteContactFlowRequest } from "../models/models_0";
5
+ import { deserializeAws_restJson1DeleteContactFlowCommand, serializeAws_restJson1DeleteContactFlowCommand, } from "../protocols/Aws_restJson1";
6
+ var DeleteContactFlowCommand = (function (_super) {
7
+ __extends(DeleteContactFlowCommand, _super);
8
+ function DeleteContactFlowCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ DeleteContactFlowCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "ConnectClient";
18
+ var commandName = "DeleteContactFlowCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: DeleteContactFlowRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: function (output) { return output; },
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ DeleteContactFlowCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restJson1DeleteContactFlowCommand(input, context);
33
+ };
34
+ DeleteContactFlowCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restJson1DeleteContactFlowCommand(output, context);
36
+ };
37
+ return DeleteContactFlowCommand;
38
+ }($Command));
39
+ export { DeleteContactFlowCommand };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { DeleteContactFlowModuleRequest, DeleteContactFlowModuleResponse } from "../models/models_0";
5
+ import { deserializeAws_restJson1DeleteContactFlowModuleCommand, serializeAws_restJson1DeleteContactFlowModuleCommand, } from "../protocols/Aws_restJson1";
6
+ var DeleteContactFlowModuleCommand = (function (_super) {
7
+ __extends(DeleteContactFlowModuleCommand, _super);
8
+ function DeleteContactFlowModuleCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ DeleteContactFlowModuleCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "ConnectClient";
18
+ var commandName = "DeleteContactFlowModuleCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: DeleteContactFlowModuleRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: DeleteContactFlowModuleResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ DeleteContactFlowModuleCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restJson1DeleteContactFlowModuleCommand(input, context);
33
+ };
34
+ DeleteContactFlowModuleCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restJson1DeleteContactFlowModuleCommand(output, context);
36
+ };
37
+ return DeleteContactFlowModuleCommand;
38
+ }($Command));
39
+ export { DeleteContactFlowModuleCommand };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { DescribeContactFlowModuleRequest, DescribeContactFlowModuleResponse } from "../models/models_0";
5
+ import { deserializeAws_restJson1DescribeContactFlowModuleCommand, serializeAws_restJson1DescribeContactFlowModuleCommand, } from "../protocols/Aws_restJson1";
6
+ var DescribeContactFlowModuleCommand = (function (_super) {
7
+ __extends(DescribeContactFlowModuleCommand, _super);
8
+ function DescribeContactFlowModuleCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ DescribeContactFlowModuleCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "ConnectClient";
18
+ var commandName = "DescribeContactFlowModuleCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: DescribeContactFlowModuleRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: DescribeContactFlowModuleResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ DescribeContactFlowModuleCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restJson1DescribeContactFlowModuleCommand(input, context);
33
+ };
34
+ DescribeContactFlowModuleCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restJson1DescribeContactFlowModuleCommand(output, context);
36
+ };
37
+ return DescribeContactFlowModuleCommand;
38
+ }($Command));
39
+ export { DescribeContactFlowModuleCommand };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { ListContactFlowModulesRequest, ListContactFlowModulesResponse } from "../models/models_0";
5
+ import { deserializeAws_restJson1ListContactFlowModulesCommand, serializeAws_restJson1ListContactFlowModulesCommand, } from "../protocols/Aws_restJson1";
6
+ var ListContactFlowModulesCommand = (function (_super) {
7
+ __extends(ListContactFlowModulesCommand, _super);
8
+ function ListContactFlowModulesCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ ListContactFlowModulesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "ConnectClient";
18
+ var commandName = "ListContactFlowModulesCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: ListContactFlowModulesRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: ListContactFlowModulesResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ ListContactFlowModulesCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restJson1ListContactFlowModulesCommand(input, context);
33
+ };
34
+ ListContactFlowModulesCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restJson1ListContactFlowModulesCommand(output, context);
36
+ };
37
+ return ListContactFlowModulesCommand;
38
+ }($Command));
39
+ export { ListContactFlowModulesCommand };
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { TagResourceRequest } from "../models/models_0";
4
+ import { TagResourceRequest } from "../models/models_1";
5
5
  import { deserializeAws_restJson1TagResourceCommand, serializeAws_restJson1TagResourceCommand, } from "../protocols/Aws_restJson1";
6
6
  var TagResourceCommand = (function (_super) {
7
7
  __extends(TagResourceCommand, _super);
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { UntagResourceRequest } from "../models/models_0";
4
+ import { UntagResourceRequest } from "../models/models_1";
5
5
  import { deserializeAws_restJson1UntagResourceCommand, serializeAws_restJson1UntagResourceCommand, } from "../protocols/Aws_restJson1";
6
6
  var UntagResourceCommand = (function (_super) {
7
7
  __extends(UntagResourceCommand, _super);
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { UpdateAgentStatusRequest } from "../models/models_0";
4
+ import { UpdateAgentStatusRequest } from "../models/models_1";
5
5
  import { deserializeAws_restJson1UpdateAgentStatusCommand, serializeAws_restJson1UpdateAgentStatusCommand, } from "../protocols/Aws_restJson1";
6
6
  var UpdateAgentStatusCommand = (function (_super) {
7
7
  __extends(UpdateAgentStatusCommand, _super);
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { UpdateContactAttributesRequest, UpdateContactAttributesResponse } from "../models/models_0";
4
+ import { UpdateContactAttributesRequest, UpdateContactAttributesResponse } from "../models/models_1";
5
5
  import { deserializeAws_restJson1UpdateContactAttributesCommand, serializeAws_restJson1UpdateContactAttributesCommand, } from "../protocols/Aws_restJson1";
6
6
  var UpdateContactAttributesCommand = (function (_super) {
7
7
  __extends(UpdateContactAttributesCommand, _super);
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { UpdateContactRequest, UpdateContactResponse } from "../models/models_0";
4
+ import { UpdateContactRequest, UpdateContactResponse } from "../models/models_1";
5
5
  import { deserializeAws_restJson1UpdateContactCommand, serializeAws_restJson1UpdateContactCommand, } from "../protocols/Aws_restJson1";
6
6
  var UpdateContactCommand = (function (_super) {
7
7
  __extends(UpdateContactCommand, _super);
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { UpdateContactFlowContentRequest } from "../models/models_0";
4
+ import { UpdateContactFlowContentRequest } from "../models/models_1";
5
5
  import { deserializeAws_restJson1UpdateContactFlowContentCommand, serializeAws_restJson1UpdateContactFlowContentCommand, } from "../protocols/Aws_restJson1";
6
6
  var UpdateContactFlowContentCommand = (function (_super) {
7
7
  __extends(UpdateContactFlowContentCommand, _super);
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { UpdateContactFlowMetadataRequest } from "../models/models_1";
5
+ import { deserializeAws_restJson1UpdateContactFlowMetadataCommand, serializeAws_restJson1UpdateContactFlowMetadataCommand, } from "../protocols/Aws_restJson1";
6
+ var UpdateContactFlowMetadataCommand = (function (_super) {
7
+ __extends(UpdateContactFlowMetadataCommand, _super);
8
+ function UpdateContactFlowMetadataCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ UpdateContactFlowMetadataCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "ConnectClient";
18
+ var commandName = "UpdateContactFlowMetadataCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: UpdateContactFlowMetadataRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: function (output) { return output; },
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ UpdateContactFlowMetadataCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restJson1UpdateContactFlowMetadataCommand(input, context);
33
+ };
34
+ UpdateContactFlowMetadataCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restJson1UpdateContactFlowMetadataCommand(output, context);
36
+ };
37
+ return UpdateContactFlowMetadataCommand;
38
+ }($Command));
39
+ export { UpdateContactFlowMetadataCommand };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { UpdateContactFlowModuleContentRequest, UpdateContactFlowModuleContentResponse } from "../models/models_1";
5
+ import { deserializeAws_restJson1UpdateContactFlowModuleContentCommand, serializeAws_restJson1UpdateContactFlowModuleContentCommand, } from "../protocols/Aws_restJson1";
6
+ var UpdateContactFlowModuleContentCommand = (function (_super) {
7
+ __extends(UpdateContactFlowModuleContentCommand, _super);
8
+ function UpdateContactFlowModuleContentCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ UpdateContactFlowModuleContentCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "ConnectClient";
18
+ var commandName = "UpdateContactFlowModuleContentCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: UpdateContactFlowModuleContentRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: UpdateContactFlowModuleContentResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ UpdateContactFlowModuleContentCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restJson1UpdateContactFlowModuleContentCommand(input, context);
33
+ };
34
+ UpdateContactFlowModuleContentCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restJson1UpdateContactFlowModuleContentCommand(output, context);
36
+ };
37
+ return UpdateContactFlowModuleContentCommand;
38
+ }($Command));
39
+ export { UpdateContactFlowModuleContentCommand };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { UpdateContactFlowModuleMetadataRequest, UpdateContactFlowModuleMetadataResponse } from "../models/models_1";
5
+ import { deserializeAws_restJson1UpdateContactFlowModuleMetadataCommand, serializeAws_restJson1UpdateContactFlowModuleMetadataCommand, } from "../protocols/Aws_restJson1";
6
+ var UpdateContactFlowModuleMetadataCommand = (function (_super) {
7
+ __extends(UpdateContactFlowModuleMetadataCommand, _super);
8
+ function UpdateContactFlowModuleMetadataCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ UpdateContactFlowModuleMetadataCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "ConnectClient";
18
+ var commandName = "UpdateContactFlowModuleMetadataCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: UpdateContactFlowModuleMetadataRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: UpdateContactFlowModuleMetadataResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ UpdateContactFlowModuleMetadataCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restJson1UpdateContactFlowModuleMetadataCommand(input, context);
33
+ };
34
+ UpdateContactFlowModuleMetadataCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restJson1UpdateContactFlowModuleMetadataCommand(output, context);
36
+ };
37
+ return UpdateContactFlowModuleMetadataCommand;
38
+ }($Command));
39
+ export { UpdateContactFlowModuleMetadataCommand };