@aws-sdk/client-connectcampaignsv2 3.694.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 (223) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +461 -0
  3. package/dist-cjs/ConnectCampaignsV2.js +75 -0
  4. package/dist-cjs/ConnectCampaignsV2Client.js +50 -0
  5. package/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
  6. package/dist-cjs/auth/httpAuthSchemeProvider.js +47 -0
  7. package/dist-cjs/commands/CreateCampaignCommand.js +27 -0
  8. package/dist-cjs/commands/DeleteCampaignChannelSubtypeConfigCommand.js +26 -0
  9. package/dist-cjs/commands/DeleteCampaignCommand.js +26 -0
  10. package/dist-cjs/commands/DeleteCampaignCommunicationLimitsCommand.js +26 -0
  11. package/dist-cjs/commands/DeleteCampaignCommunicationTimeCommand.js +26 -0
  12. package/dist-cjs/commands/DeleteConnectInstanceConfigCommand.js +26 -0
  13. package/dist-cjs/commands/DeleteConnectInstanceIntegrationCommand.js +26 -0
  14. package/dist-cjs/commands/DeleteInstanceOnboardingJobCommand.js +26 -0
  15. package/dist-cjs/commands/DescribeCampaignCommand.js +27 -0
  16. package/dist-cjs/commands/GetCampaignStateBatchCommand.js +26 -0
  17. package/dist-cjs/commands/GetCampaignStateCommand.js +26 -0
  18. package/dist-cjs/commands/GetConnectInstanceConfigCommand.js +26 -0
  19. package/dist-cjs/commands/GetInstanceOnboardingJobStatusCommand.js +26 -0
  20. package/dist-cjs/commands/ListCampaignsCommand.js +26 -0
  21. package/dist-cjs/commands/ListConnectInstanceIntegrationsCommand.js +26 -0
  22. package/dist-cjs/commands/ListTagsForResourceCommand.js +26 -0
  23. package/dist-cjs/commands/PauseCampaignCommand.js +26 -0
  24. package/dist-cjs/commands/PutConnectInstanceIntegrationCommand.js +26 -0
  25. package/dist-cjs/commands/PutOutboundRequestBatchCommand.js +27 -0
  26. package/dist-cjs/commands/ResumeCampaignCommand.js +26 -0
  27. package/dist-cjs/commands/StartCampaignCommand.js +26 -0
  28. package/dist-cjs/commands/StartInstanceOnboardingJobCommand.js +26 -0
  29. package/dist-cjs/commands/StopCampaignCommand.js +26 -0
  30. package/dist-cjs/commands/TagResourceCommand.js +26 -0
  31. package/dist-cjs/commands/UntagResourceCommand.js +26 -0
  32. package/dist-cjs/commands/UpdateCampaignChannelSubtypeConfigCommand.js +27 -0
  33. package/dist-cjs/commands/UpdateCampaignCommunicationLimitsCommand.js +26 -0
  34. package/dist-cjs/commands/UpdateCampaignCommunicationTimeCommand.js +26 -0
  35. package/dist-cjs/commands/UpdateCampaignFlowAssociationCommand.js +26 -0
  36. package/dist-cjs/commands/UpdateCampaignNameCommand.js +26 -0
  37. package/dist-cjs/commands/UpdateCampaignScheduleCommand.js +26 -0
  38. package/dist-cjs/commands/UpdateCampaignSourceCommand.js +26 -0
  39. package/dist-cjs/commands/index.js +35 -0
  40. package/dist-cjs/endpoint/EndpointParameters.js +18 -0
  41. package/dist-cjs/endpoint/endpointResolver.js +18 -0
  42. package/dist-cjs/endpoint/ruleset.js +7 -0
  43. package/dist-cjs/extensionConfiguration.js +2 -0
  44. package/dist-cjs/index.js +11 -0
  45. package/dist-cjs/models/ConnectCampaignsV2ServiceException.js +12 -0
  46. package/dist-cjs/models/index.js +4 -0
  47. package/dist-cjs/models/models_0.js +409 -0
  48. package/dist-cjs/pagination/Interfaces.js +2 -0
  49. package/dist-cjs/pagination/ListCampaignsPaginator.js +7 -0
  50. package/dist-cjs/pagination/ListConnectInstanceIntegrationsPaginator.js +7 -0
  51. package/dist-cjs/pagination/index.js +6 -0
  52. package/dist-cjs/protocols/Aws_restJson1.js +1193 -0
  53. package/dist-cjs/runtimeConfig.browser.js +39 -0
  54. package/dist-cjs/runtimeConfig.js +50 -0
  55. package/dist-cjs/runtimeConfig.native.js +15 -0
  56. package/dist-cjs/runtimeConfig.shared.js +34 -0
  57. package/dist-cjs/runtimeExtensions.js +25 -0
  58. package/dist-es/ConnectCampaignsV2.js +71 -0
  59. package/dist-es/ConnectCampaignsV2Client.js +46 -0
  60. package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  61. package/dist-es/auth/httpAuthSchemeProvider.js +41 -0
  62. package/dist-es/commands/CreateCampaignCommand.js +23 -0
  63. package/dist-es/commands/DeleteCampaignChannelSubtypeConfigCommand.js +22 -0
  64. package/dist-es/commands/DeleteCampaignCommand.js +22 -0
  65. package/dist-es/commands/DeleteCampaignCommunicationLimitsCommand.js +22 -0
  66. package/dist-es/commands/DeleteCampaignCommunicationTimeCommand.js +22 -0
  67. package/dist-es/commands/DeleteConnectInstanceConfigCommand.js +22 -0
  68. package/dist-es/commands/DeleteConnectInstanceIntegrationCommand.js +22 -0
  69. package/dist-es/commands/DeleteInstanceOnboardingJobCommand.js +22 -0
  70. package/dist-es/commands/DescribeCampaignCommand.js +23 -0
  71. package/dist-es/commands/GetCampaignStateBatchCommand.js +22 -0
  72. package/dist-es/commands/GetCampaignStateCommand.js +22 -0
  73. package/dist-es/commands/GetConnectInstanceConfigCommand.js +22 -0
  74. package/dist-es/commands/GetInstanceOnboardingJobStatusCommand.js +22 -0
  75. package/dist-es/commands/ListCampaignsCommand.js +22 -0
  76. package/dist-es/commands/ListConnectInstanceIntegrationsCommand.js +22 -0
  77. package/dist-es/commands/ListTagsForResourceCommand.js +22 -0
  78. package/dist-es/commands/PauseCampaignCommand.js +22 -0
  79. package/dist-es/commands/PutConnectInstanceIntegrationCommand.js +22 -0
  80. package/dist-es/commands/PutOutboundRequestBatchCommand.js +23 -0
  81. package/dist-es/commands/ResumeCampaignCommand.js +22 -0
  82. package/dist-es/commands/StartCampaignCommand.js +22 -0
  83. package/dist-es/commands/StartInstanceOnboardingJobCommand.js +22 -0
  84. package/dist-es/commands/StopCampaignCommand.js +22 -0
  85. package/dist-es/commands/TagResourceCommand.js +22 -0
  86. package/dist-es/commands/UntagResourceCommand.js +22 -0
  87. package/dist-es/commands/UpdateCampaignChannelSubtypeConfigCommand.js +23 -0
  88. package/dist-es/commands/UpdateCampaignCommunicationLimitsCommand.js +22 -0
  89. package/dist-es/commands/UpdateCampaignCommunicationTimeCommand.js +22 -0
  90. package/dist-es/commands/UpdateCampaignFlowAssociationCommand.js +22 -0
  91. package/dist-es/commands/UpdateCampaignNameCommand.js +22 -0
  92. package/dist-es/commands/UpdateCampaignScheduleCommand.js +22 -0
  93. package/dist-es/commands/UpdateCampaignSourceCommand.js +22 -0
  94. package/dist-es/commands/index.js +32 -0
  95. package/dist-es/endpoint/EndpointParameters.js +14 -0
  96. package/dist-es/endpoint/endpointResolver.js +14 -0
  97. package/dist-es/endpoint/ruleset.js +4 -0
  98. package/dist-es/extensionConfiguration.js +1 -0
  99. package/dist-es/index.js +6 -0
  100. package/dist-es/models/ConnectCampaignsV2ServiceException.js +8 -0
  101. package/dist-es/models/index.js +1 -0
  102. package/dist-es/models/models_0.js +384 -0
  103. package/dist-es/pagination/Interfaces.js +1 -0
  104. package/dist-es/pagination/ListCampaignsPaginator.js +4 -0
  105. package/dist-es/pagination/ListConnectInstanceIntegrationsPaginator.js +4 -0
  106. package/dist-es/pagination/index.js +3 -0
  107. package/dist-es/protocols/Aws_restJson1.js +1125 -0
  108. package/dist-es/runtimeConfig.browser.js +34 -0
  109. package/dist-es/runtimeConfig.js +45 -0
  110. package/dist-es/runtimeConfig.native.js +11 -0
  111. package/dist-es/runtimeConfig.shared.js +30 -0
  112. package/dist-es/runtimeExtensions.js +21 -0
  113. package/dist-types/ConnectCampaignsV2.d.ts +235 -0
  114. package/dist-types/ConnectCampaignsV2Client.d.ts +201 -0
  115. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  116. package/dist-types/auth/httpAuthSchemeProvider.d.ts +61 -0
  117. package/dist-types/commands/CreateCampaignCommand.d.ts +235 -0
  118. package/dist-types/commands/DeleteCampaignChannelSubtypeConfigCommand.d.ts +85 -0
  119. package/dist-types/commands/DeleteCampaignCommand.d.ts +81 -0
  120. package/dist-types/commands/DeleteCampaignCommunicationLimitsCommand.d.ts +88 -0
  121. package/dist-types/commands/DeleteCampaignCommunicationTimeCommand.d.ts +88 -0
  122. package/dist-types/commands/DeleteConnectInstanceConfigCommand.d.ts +88 -0
  123. package/dist-types/commands/DeleteConnectInstanceIntegrationCommand.d.ts +92 -0
  124. package/dist-types/commands/DeleteInstanceOnboardingJobCommand.d.ts +84 -0
  125. package/dist-types/commands/DescribeCampaignCommand.d.ts +226 -0
  126. package/dist-types/commands/GetCampaignStateBatchCommand.d.ts +96 -0
  127. package/dist-types/commands/GetCampaignStateCommand.d.ts +86 -0
  128. package/dist-types/commands/GetConnectInstanceConfigCommand.d.ts +91 -0
  129. package/dist-types/commands/GetInstanceOnboardingJobStatusCommand.d.ts +87 -0
  130. package/dist-types/commands/ListCampaignsCommand.d.ts +104 -0
  131. package/dist-types/commands/ListConnectInstanceIntegrationsCommand.d.ts +101 -0
  132. package/dist-types/commands/ListTagsForResourceCommand.d.ts +88 -0
  133. package/dist-types/commands/PauseCampaignCommand.d.ts +90 -0
  134. package/dist-types/commands/PutConnectInstanceIntegrationCommand.d.ts +98 -0
  135. package/dist-types/commands/PutOutboundRequestBatchCommand.d.ts +139 -0
  136. package/dist-types/commands/ResumeCampaignCommand.d.ts +90 -0
  137. package/dist-types/commands/StartCampaignCommand.d.ts +90 -0
  138. package/dist-types/commands/StartInstanceOnboardingJobCommand.d.ts +98 -0
  139. package/dist-types/commands/StopCampaignCommand.d.ts +90 -0
  140. package/dist-types/commands/TagResourceCommand.d.ts +87 -0
  141. package/dist-types/commands/UntagResourceCommand.d.ts +87 -0
  142. package/dist-types/commands/UpdateCampaignChannelSubtypeConfigCommand.d.ts +128 -0
  143. package/dist-types/commands/UpdateCampaignCommunicationLimitsCommand.d.ts +98 -0
  144. package/dist-types/commands/UpdateCampaignCommunicationTimeCommand.d.ts +158 -0
  145. package/dist-types/commands/UpdateCampaignFlowAssociationCommand.d.ts +88 -0
  146. package/dist-types/commands/UpdateCampaignNameCommand.d.ts +85 -0
  147. package/dist-types/commands/UpdateCampaignScheduleCommand.d.ts +92 -0
  148. package/dist-types/commands/UpdateCampaignSourceCommand.d.ts +90 -0
  149. package/dist-types/commands/index.d.ts +32 -0
  150. package/dist-types/endpoint/EndpointParameters.d.ts +40 -0
  151. package/dist-types/endpoint/endpointResolver.d.ts +5 -0
  152. package/dist-types/endpoint/ruleset.d.ts +2 -0
  153. package/dist-types/extensionConfiguration.d.ts +9 -0
  154. package/dist-types/index.d.ts +14 -0
  155. package/dist-types/models/ConnectCampaignsV2ServiceException.d.ts +14 -0
  156. package/dist-types/models/index.d.ts +1 -0
  157. package/dist-types/models/models_0.d.ts +2299 -0
  158. package/dist-types/pagination/Interfaces.d.ts +8 -0
  159. package/dist-types/pagination/ListCampaignsPaginator.d.ts +7 -0
  160. package/dist-types/pagination/ListConnectInstanceIntegrationsPaginator.d.ts +7 -0
  161. package/dist-types/pagination/index.d.ts +3 -0
  162. package/dist-types/protocols/Aws_restJson1.d.ts +290 -0
  163. package/dist-types/runtimeConfig.browser.d.ts +48 -0
  164. package/dist-types/runtimeConfig.d.ts +48 -0
  165. package/dist-types/runtimeConfig.native.d.ts +47 -0
  166. package/dist-types/runtimeConfig.shared.d.ts +21 -0
  167. package/dist-types/runtimeExtensions.d.ts +17 -0
  168. package/dist-types/ts3.4/ConnectCampaignsV2.d.ts +576 -0
  169. package/dist-types/ts3.4/ConnectCampaignsV2Client.d.ts +313 -0
  170. package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
  171. package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +44 -0
  172. package/dist-types/ts3.4/commands/CreateCampaignCommand.d.ts +50 -0
  173. package/dist-types/ts3.4/commands/DeleteCampaignChannelSubtypeConfigCommand.d.ts +47 -0
  174. package/dist-types/ts3.4/commands/DeleteCampaignCommand.d.ts +45 -0
  175. package/dist-types/ts3.4/commands/DeleteCampaignCommunicationLimitsCommand.d.ts +47 -0
  176. package/dist-types/ts3.4/commands/DeleteCampaignCommunicationTimeCommand.d.ts +47 -0
  177. package/dist-types/ts3.4/commands/DeleteConnectInstanceConfigCommand.d.ts +47 -0
  178. package/dist-types/ts3.4/commands/DeleteConnectInstanceIntegrationCommand.d.ts +47 -0
  179. package/dist-types/ts3.4/commands/DeleteInstanceOnboardingJobCommand.d.ts +47 -0
  180. package/dist-types/ts3.4/commands/DescribeCampaignCommand.d.ts +50 -0
  181. package/dist-types/ts3.4/commands/GetCampaignStateBatchCommand.d.ts +51 -0
  182. package/dist-types/ts3.4/commands/GetCampaignStateCommand.d.ts +50 -0
  183. package/dist-types/ts3.4/commands/GetConnectInstanceConfigCommand.d.ts +51 -0
  184. package/dist-types/ts3.4/commands/GetInstanceOnboardingJobStatusCommand.d.ts +51 -0
  185. package/dist-types/ts3.4/commands/ListCampaignsCommand.d.ts +50 -0
  186. package/dist-types/ts3.4/commands/ListConnectInstanceIntegrationsCommand.d.ts +51 -0
  187. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +51 -0
  188. package/dist-types/ts3.4/commands/PauseCampaignCommand.d.ts +45 -0
  189. package/dist-types/ts3.4/commands/PutConnectInstanceIntegrationCommand.d.ts +47 -0
  190. package/dist-types/ts3.4/commands/PutOutboundRequestBatchCommand.d.ts +51 -0
  191. package/dist-types/ts3.4/commands/ResumeCampaignCommand.d.ts +45 -0
  192. package/dist-types/ts3.4/commands/StartCampaignCommand.d.ts +45 -0
  193. package/dist-types/ts3.4/commands/StartInstanceOnboardingJobCommand.d.ts +51 -0
  194. package/dist-types/ts3.4/commands/StopCampaignCommand.d.ts +45 -0
  195. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +45 -0
  196. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +45 -0
  197. package/dist-types/ts3.4/commands/UpdateCampaignChannelSubtypeConfigCommand.d.ts +47 -0
  198. package/dist-types/ts3.4/commands/UpdateCampaignCommunicationLimitsCommand.d.ts +47 -0
  199. package/dist-types/ts3.4/commands/UpdateCampaignCommunicationTimeCommand.d.ts +47 -0
  200. package/dist-types/ts3.4/commands/UpdateCampaignFlowAssociationCommand.d.ts +47 -0
  201. package/dist-types/ts3.4/commands/UpdateCampaignNameCommand.d.ts +46 -0
  202. package/dist-types/ts3.4/commands/UpdateCampaignScheduleCommand.d.ts +46 -0
  203. package/dist-types/ts3.4/commands/UpdateCampaignSourceCommand.d.ts +46 -0
  204. package/dist-types/ts3.4/commands/index.d.ts +32 -0
  205. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +51 -0
  206. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  207. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  208. package/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
  209. package/dist-types/ts3.4/index.d.ts +9 -0
  210. package/dist-types/ts3.4/models/ConnectCampaignsV2ServiceException.d.ts +9 -0
  211. package/dist-types/ts3.4/models/index.d.ts +1 -0
  212. package/dist-types/ts3.4/models/models_0.d.ts +827 -0
  213. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  214. package/dist-types/ts3.4/pagination/ListCampaignsPaginator.d.ts +11 -0
  215. package/dist-types/ts3.4/pagination/ListConnectInstanceIntegrationsPaginator.d.ts +11 -0
  216. package/dist-types/ts3.4/pagination/index.d.ts +3 -0
  217. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +389 -0
  218. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +95 -0
  219. package/dist-types/ts3.4/runtimeConfig.d.ts +96 -0
  220. package/dist-types/ts3.4/runtimeConfig.native.d.ts +89 -0
  221. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +23 -0
  222. package/dist-types/ts3.4/runtimeExtensions.d.ts +13 -0
  223. package/package.json +101 -0
@@ -0,0 +1,384 @@
1
+ import { SENSITIVE_STRING } from "@smithy/smithy-client";
2
+ import { ConnectCampaignsV2ServiceException as __BaseException } from "./ConnectCampaignsV2ServiceException";
3
+ export class AccessDeniedException extends __BaseException {
4
+ constructor(opts) {
5
+ super({
6
+ name: "AccessDeniedException",
7
+ $fault: "client",
8
+ ...opts,
9
+ });
10
+ this.name = "AccessDeniedException";
11
+ this.$fault = "client";
12
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
13
+ this.xAmzErrorType = opts.xAmzErrorType;
14
+ }
15
+ }
16
+ export class ConflictException extends __BaseException {
17
+ constructor(opts) {
18
+ super({
19
+ name: "ConflictException",
20
+ $fault: "client",
21
+ ...opts,
22
+ });
23
+ this.name = "ConflictException";
24
+ this.$fault = "client";
25
+ Object.setPrototypeOf(this, ConflictException.prototype);
26
+ this.xAmzErrorType = opts.xAmzErrorType;
27
+ }
28
+ }
29
+ export var EmailOutboundMode;
30
+ (function (EmailOutboundMode) {
31
+ EmailOutboundMode.visit = (value, visitor) => {
32
+ if (value.agentless !== undefined)
33
+ return visitor.agentless(value.agentless);
34
+ return visitor._(value.$unknown[0], value.$unknown[1]);
35
+ };
36
+ })(EmailOutboundMode || (EmailOutboundMode = {}));
37
+ export var SmsOutboundMode;
38
+ (function (SmsOutboundMode) {
39
+ SmsOutboundMode.visit = (value, visitor) => {
40
+ if (value.agentless !== undefined)
41
+ return visitor.agentless(value.agentless);
42
+ return visitor._(value.$unknown[0], value.$unknown[1]);
43
+ };
44
+ })(SmsOutboundMode || (SmsOutboundMode = {}));
45
+ export var TelephonyOutboundMode;
46
+ (function (TelephonyOutboundMode) {
47
+ TelephonyOutboundMode.visit = (value, visitor) => {
48
+ if (value.progressive !== undefined)
49
+ return visitor.progressive(value.progressive);
50
+ if (value.predictive !== undefined)
51
+ return visitor.predictive(value.predictive);
52
+ if (value.agentless !== undefined)
53
+ return visitor.agentless(value.agentless);
54
+ return visitor._(value.$unknown[0], value.$unknown[1]);
55
+ };
56
+ })(TelephonyOutboundMode || (TelephonyOutboundMode = {}));
57
+ export const CommunicationLimitTimeUnit = {
58
+ DAY: "DAY",
59
+ };
60
+ export var CommunicationLimits;
61
+ (function (CommunicationLimits) {
62
+ CommunicationLimits.visit = (value, visitor) => {
63
+ if (value.communicationLimitsList !== undefined)
64
+ return visitor.communicationLimitsList(value.communicationLimitsList);
65
+ return visitor._(value.$unknown[0], value.$unknown[1]);
66
+ };
67
+ })(CommunicationLimits || (CommunicationLimits = {}));
68
+ export const DayOfWeek = {
69
+ FRIDAY: "FRIDAY",
70
+ MONDAY: "MONDAY",
71
+ SATURDAY: "SATURDAY",
72
+ SUNDAY: "SUNDAY",
73
+ THURSDAY: "THURSDAY",
74
+ TUESDAY: "TUESDAY",
75
+ WEDNESDAY: "WEDNESDAY",
76
+ };
77
+ export var OpenHours;
78
+ (function (OpenHours) {
79
+ OpenHours.visit = (value, visitor) => {
80
+ if (value.dailyHours !== undefined)
81
+ return visitor.dailyHours(value.dailyHours);
82
+ return visitor._(value.$unknown[0], value.$unknown[1]);
83
+ };
84
+ })(OpenHours || (OpenHours = {}));
85
+ export var RestrictedPeriods;
86
+ (function (RestrictedPeriods) {
87
+ RestrictedPeriods.visit = (value, visitor) => {
88
+ if (value.restrictedPeriodList !== undefined)
89
+ return visitor.restrictedPeriodList(value.restrictedPeriodList);
90
+ return visitor._(value.$unknown[0], value.$unknown[1]);
91
+ };
92
+ })(RestrictedPeriods || (RestrictedPeriods = {}));
93
+ export const LocalTimeZoneDetectionType = {
94
+ AREA_CODE: "AREA_CODE",
95
+ ZIP_CODE: "ZIP_CODE",
96
+ };
97
+ export var Source;
98
+ (function (Source) {
99
+ Source.visit = (value, visitor) => {
100
+ if (value.customerProfilesSegmentArn !== undefined)
101
+ return visitor.customerProfilesSegmentArn(value.customerProfilesSegmentArn);
102
+ return visitor._(value.$unknown[0], value.$unknown[1]);
103
+ };
104
+ })(Source || (Source = {}));
105
+ export class InternalServerException extends __BaseException {
106
+ constructor(opts) {
107
+ super({
108
+ name: "InternalServerException",
109
+ $fault: "server",
110
+ ...opts,
111
+ });
112
+ this.name = "InternalServerException";
113
+ this.$fault = "server";
114
+ this.$retryable = {};
115
+ Object.setPrototypeOf(this, InternalServerException.prototype);
116
+ this.xAmzErrorType = opts.xAmzErrorType;
117
+ }
118
+ }
119
+ export class ResourceNotFoundException extends __BaseException {
120
+ constructor(opts) {
121
+ super({
122
+ name: "ResourceNotFoundException",
123
+ $fault: "client",
124
+ ...opts,
125
+ });
126
+ this.name = "ResourceNotFoundException";
127
+ this.$fault = "client";
128
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
129
+ this.xAmzErrorType = opts.xAmzErrorType;
130
+ }
131
+ }
132
+ export class ServiceQuotaExceededException extends __BaseException {
133
+ constructor(opts) {
134
+ super({
135
+ name: "ServiceQuotaExceededException",
136
+ $fault: "client",
137
+ ...opts,
138
+ });
139
+ this.name = "ServiceQuotaExceededException";
140
+ this.$fault = "client";
141
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
142
+ this.xAmzErrorType = opts.xAmzErrorType;
143
+ }
144
+ }
145
+ export class ThrottlingException extends __BaseException {
146
+ constructor(opts) {
147
+ super({
148
+ name: "ThrottlingException",
149
+ $fault: "client",
150
+ ...opts,
151
+ });
152
+ this.name = "ThrottlingException";
153
+ this.$fault = "client";
154
+ this.$retryable = {};
155
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
156
+ this.xAmzErrorType = opts.xAmzErrorType;
157
+ }
158
+ }
159
+ export class ValidationException extends __BaseException {
160
+ constructor(opts) {
161
+ super({
162
+ name: "ValidationException",
163
+ $fault: "client",
164
+ ...opts,
165
+ });
166
+ this.name = "ValidationException";
167
+ this.$fault = "client";
168
+ Object.setPrototypeOf(this, ValidationException.prototype);
169
+ this.xAmzErrorType = opts.xAmzErrorType;
170
+ }
171
+ }
172
+ export const ChannelSubtype = {
173
+ EMAIL: "EMAIL",
174
+ SMS: "SMS",
175
+ TELEPHONY: "TELEPHONY",
176
+ };
177
+ export const CommunicationLimitsConfigType = {
178
+ ALL_CHANNEL_SUBTYPES: "ALL_CHANNEL_SUBTYPES",
179
+ };
180
+ export const CampaignState = {
181
+ COMPLETED: "Completed",
182
+ FAILED: "Failed",
183
+ INITIALIZED: "Initialized",
184
+ PAUSED: "Paused",
185
+ RUNNING: "Running",
186
+ STOPPED: "Stopped",
187
+ };
188
+ export class InvalidCampaignStateException extends __BaseException {
189
+ constructor(opts) {
190
+ super({
191
+ name: "InvalidCampaignStateException",
192
+ $fault: "client",
193
+ ...opts,
194
+ });
195
+ this.name = "InvalidCampaignStateException";
196
+ this.$fault = "client";
197
+ Object.setPrototypeOf(this, InvalidCampaignStateException.prototype);
198
+ this.state = opts.state;
199
+ this.xAmzErrorType = opts.xAmzErrorType;
200
+ }
201
+ }
202
+ export const CommunicationTimeConfigType = {
203
+ EMAIL: "EMAIL",
204
+ SMS: "SMS",
205
+ TELEPHONY: "TELEPHONY",
206
+ };
207
+ export const CampaignDeletionPolicy = {
208
+ DELETE_ALL: "DELETE_ALL",
209
+ RETAIN_ALL: "RETAIN_ALL",
210
+ };
211
+ export class InvalidStateException extends __BaseException {
212
+ constructor(opts) {
213
+ super({
214
+ name: "InvalidStateException",
215
+ $fault: "client",
216
+ ...opts,
217
+ });
218
+ this.name = "InvalidStateException";
219
+ this.$fault = "client";
220
+ Object.setPrototypeOf(this, InvalidStateException.prototype);
221
+ this.xAmzErrorType = opts.xAmzErrorType;
222
+ }
223
+ }
224
+ export var IntegrationIdentifier;
225
+ (function (IntegrationIdentifier) {
226
+ IntegrationIdentifier.visit = (value, visitor) => {
227
+ if (value.customerProfiles !== undefined)
228
+ return visitor.customerProfiles(value.customerProfiles);
229
+ if (value.qConnect !== undefined)
230
+ return visitor.qConnect(value.qConnect);
231
+ return visitor._(value.$unknown[0], value.$unknown[1]);
232
+ };
233
+ })(IntegrationIdentifier || (IntegrationIdentifier = {}));
234
+ export const GetCampaignStateBatchFailureCode = {
235
+ RESOURCE_NOT_FOUND: "ResourceNotFound",
236
+ UNKNOWN_ERROR: "UnknownError",
237
+ };
238
+ export const EncryptionType = {
239
+ KMS: "KMS",
240
+ };
241
+ export const InstanceOnboardingJobFailureCode = {
242
+ EVENT_BRIDGE_ACCESS_DENIED: "EVENT_BRIDGE_ACCESS_DENIED",
243
+ EVENT_BRIDGE_MANAGED_RULE_LIMIT_EXCEEDED: "EVENT_BRIDGE_MANAGED_RULE_LIMIT_EXCEEDED",
244
+ IAM_ACCESS_DENIED: "IAM_ACCESS_DENIED",
245
+ INTERNAL_FAILURE: "INTERNAL_FAILURE",
246
+ KMS_ACCESS_DENIED: "KMS_ACCESS_DENIED",
247
+ KMS_KEY_NOT_FOUND: "KMS_KEY_NOT_FOUND",
248
+ };
249
+ export const InstanceOnboardingJobStatusCode = {
250
+ FAILED: "FAILED",
251
+ IN_PROGRESS: "IN_PROGRESS",
252
+ SUCCEEDED: "SUCCEEDED",
253
+ };
254
+ export const InstanceIdFilterOperator = {
255
+ EQ: "Eq",
256
+ };
257
+ export const EventType = {
258
+ CAMPAIGN_EMAIL: "Campaign-Email",
259
+ CAMPAIGN_ORCHESTRATION: "Campaign-Orchestration",
260
+ CAMPAIGN_SMS: "Campaign-SMS",
261
+ CAMPAIGN_TELEPHONY: "Campaign-Telephony",
262
+ };
263
+ export var IntegrationSummary;
264
+ (function (IntegrationSummary) {
265
+ IntegrationSummary.visit = (value, visitor) => {
266
+ if (value.customerProfiles !== undefined)
267
+ return visitor.customerProfiles(value.customerProfiles);
268
+ if (value.qConnect !== undefined)
269
+ return visitor.qConnect(value.qConnect);
270
+ return visitor._(value.$unknown[0], value.$unknown[1]);
271
+ };
272
+ })(IntegrationSummary || (IntegrationSummary = {}));
273
+ export var IntegrationConfig;
274
+ (function (IntegrationConfig) {
275
+ IntegrationConfig.visit = (value, visitor) => {
276
+ if (value.customerProfiles !== undefined)
277
+ return visitor.customerProfiles(value.customerProfiles);
278
+ if (value.qConnect !== undefined)
279
+ return visitor.qConnect(value.qConnect);
280
+ return visitor._(value.$unknown[0], value.$unknown[1]);
281
+ };
282
+ })(IntegrationConfig || (IntegrationConfig = {}));
283
+ export var ChannelSubtypeParameters;
284
+ (function (ChannelSubtypeParameters) {
285
+ ChannelSubtypeParameters.visit = (value, visitor) => {
286
+ if (value.telephony !== undefined)
287
+ return visitor.telephony(value.telephony);
288
+ if (value.sms !== undefined)
289
+ return visitor.sms(value.sms);
290
+ if (value.email !== undefined)
291
+ return visitor.email(value.email);
292
+ return visitor._(value.$unknown[0], value.$unknown[1]);
293
+ };
294
+ })(ChannelSubtypeParameters || (ChannelSubtypeParameters = {}));
295
+ export const FailureCode = {
296
+ BUFFER_LIMIT_EXCEEDED: "BufferLimitExceeded",
297
+ INVALID_INPUT: "InvalidInput",
298
+ REQUEST_THROTTLED: "RequestThrottled",
299
+ UNKNOWN_ERROR: "UnknownError",
300
+ };
301
+ export const EmailOutboundConfigFilterSensitiveLog = (obj) => ({
302
+ ...obj,
303
+ ...(obj.connectSourceEmailAddress && { connectSourceEmailAddress: SENSITIVE_STRING }),
304
+ ...(obj.sourceEmailAddressDisplayName && { sourceEmailAddressDisplayName: SENSITIVE_STRING }),
305
+ });
306
+ export const EmailChannelSubtypeConfigFilterSensitiveLog = (obj) => ({
307
+ ...obj,
308
+ ...(obj.outboundMode && { outboundMode: obj.outboundMode }),
309
+ ...(obj.defaultOutboundConfig && {
310
+ defaultOutboundConfig: EmailOutboundConfigFilterSensitiveLog(obj.defaultOutboundConfig),
311
+ }),
312
+ });
313
+ export const ChannelSubtypeConfigFilterSensitiveLog = (obj) => ({
314
+ ...obj,
315
+ ...(obj.telephony && { telephony: obj.telephony }),
316
+ ...(obj.sms && { sms: obj.sms }),
317
+ ...(obj.email && { email: EmailChannelSubtypeConfigFilterSensitiveLog(obj.email) }),
318
+ });
319
+ export const CreateCampaignRequestFilterSensitiveLog = (obj) => ({
320
+ ...obj,
321
+ ...(obj.channelSubtypeConfig && {
322
+ channelSubtypeConfig: ChannelSubtypeConfigFilterSensitiveLog(obj.channelSubtypeConfig),
323
+ }),
324
+ ...(obj.source && { source: obj.source }),
325
+ ...(obj.communicationTimeConfig && { communicationTimeConfig: obj.communicationTimeConfig }),
326
+ ...(obj.communicationLimitsOverride && { communicationLimitsOverride: obj.communicationLimitsOverride }),
327
+ });
328
+ export const CampaignFilterSensitiveLog = (obj) => ({
329
+ ...obj,
330
+ ...(obj.channelSubtypeConfig && {
331
+ channelSubtypeConfig: ChannelSubtypeConfigFilterSensitiveLog(obj.channelSubtypeConfig),
332
+ }),
333
+ ...(obj.source && { source: obj.source }),
334
+ ...(obj.communicationTimeConfig && { communicationTimeConfig: obj.communicationTimeConfig }),
335
+ ...(obj.communicationLimitsOverride && { communicationLimitsOverride: obj.communicationLimitsOverride }),
336
+ });
337
+ export const DescribeCampaignResponseFilterSensitiveLog = (obj) => ({
338
+ ...obj,
339
+ ...(obj.campaign && { campaign: CampaignFilterSensitiveLog(obj.campaign) }),
340
+ });
341
+ export const EmailChannelSubtypeParametersFilterSensitiveLog = (obj) => ({
342
+ ...obj,
343
+ ...(obj.destinationEmailAddress && { destinationEmailAddress: SENSITIVE_STRING }),
344
+ ...(obj.connectSourceEmailAddress && { connectSourceEmailAddress: SENSITIVE_STRING }),
345
+ ...(obj.templateParameters && { templateParameters: SENSITIVE_STRING }),
346
+ });
347
+ export const SmsChannelSubtypeParametersFilterSensitiveLog = (obj) => ({
348
+ ...obj,
349
+ ...(obj.destinationPhoneNumber && { destinationPhoneNumber: SENSITIVE_STRING }),
350
+ ...(obj.templateParameters && { templateParameters: SENSITIVE_STRING }),
351
+ });
352
+ export const TelephonyChannelSubtypeParametersFilterSensitiveLog = (obj) => ({
353
+ ...obj,
354
+ ...(obj.destinationPhoneNumber && { destinationPhoneNumber: SENSITIVE_STRING }),
355
+ ...(obj.attributes && { attributes: SENSITIVE_STRING }),
356
+ });
357
+ export const ChannelSubtypeParametersFilterSensitiveLog = (obj) => {
358
+ if (obj.telephony !== undefined)
359
+ return { telephony: TelephonyChannelSubtypeParametersFilterSensitiveLog(obj.telephony) };
360
+ if (obj.sms !== undefined)
361
+ return { sms: SmsChannelSubtypeParametersFilterSensitiveLog(obj.sms) };
362
+ if (obj.email !== undefined)
363
+ return { email: EmailChannelSubtypeParametersFilterSensitiveLog(obj.email) };
364
+ if (obj.$unknown !== undefined)
365
+ return { [obj.$unknown[0]]: "UNKNOWN" };
366
+ };
367
+ export const OutboundRequestFilterSensitiveLog = (obj) => ({
368
+ ...obj,
369
+ ...(obj.channelSubtypeParameters && {
370
+ channelSubtypeParameters: ChannelSubtypeParametersFilterSensitiveLog(obj.channelSubtypeParameters),
371
+ }),
372
+ });
373
+ export const PutOutboundRequestBatchRequestFilterSensitiveLog = (obj) => ({
374
+ ...obj,
375
+ ...(obj.outboundRequests && {
376
+ outboundRequests: obj.outboundRequests.map((item) => OutboundRequestFilterSensitiveLog(item)),
377
+ }),
378
+ });
379
+ export const UpdateCampaignChannelSubtypeConfigRequestFilterSensitiveLog = (obj) => ({
380
+ ...obj,
381
+ ...(obj.channelSubtypeConfig && {
382
+ channelSubtypeConfig: ChannelSubtypeConfigFilterSensitiveLog(obj.channelSubtypeConfig),
383
+ }),
384
+ });
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { ListCampaignsCommand, } from "../commands/ListCampaignsCommand";
3
+ import { ConnectCampaignsV2Client } from "../ConnectCampaignsV2Client";
4
+ export const paginateListCampaigns = createPaginator(ConnectCampaignsV2Client, ListCampaignsCommand, "nextToken", "nextToken", "maxResults");
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { ListConnectInstanceIntegrationsCommand, } from "../commands/ListConnectInstanceIntegrationsCommand";
3
+ import { ConnectCampaignsV2Client } from "../ConnectCampaignsV2Client";
4
+ export const paginateListConnectInstanceIntegrations = createPaginator(ConnectCampaignsV2Client, ListConnectInstanceIntegrationsCommand, "nextToken", "nextToken", "maxResults");
@@ -0,0 +1,3 @@
1
+ export * from "./Interfaces";
2
+ export * from "./ListCampaignsPaginator";
3
+ export * from "./ListConnectInstanceIntegrationsPaginator";