@aws-sdk/client-pinpoint 3.142.0 → 3.145.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.
@@ -12504,6 +12504,12 @@ var serializeAws_restJson1CampaignLimits = function (input, context) {
12504
12504
  var serializeAws_restJson1CampaignSmsMessage = function (input, context) {
12505
12505
  return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.Body != null && { Body: input.Body })), (input.EntityId != null && { EntityId: input.EntityId })), (input.MessageType != null && { MessageType: input.MessageType })), (input.OriginationNumber != null && { OriginationNumber: input.OriginationNumber })), (input.SenderId != null && { SenderId: input.SenderId })), (input.TemplateId != null && { TemplateId: input.TemplateId }));
12506
12506
  };
12507
+ var serializeAws_restJson1ClosedDays = function (input, context) {
12508
+ return __assign(__assign(__assign(__assign(__assign({}, (input.CUSTOM != null && { CUSTOM: serializeAws_restJson1ListOfClosedDaysRules(input.CUSTOM, context) })), (input.EMAIL != null && { EMAIL: serializeAws_restJson1ListOfClosedDaysRules(input.EMAIL, context) })), (input.PUSH != null && { PUSH: serializeAws_restJson1ListOfClosedDaysRules(input.PUSH, context) })), (input.SMS != null && { SMS: serializeAws_restJson1ListOfClosedDaysRules(input.SMS, context) })), (input.VOICE != null && { VOICE: serializeAws_restJson1ListOfClosedDaysRules(input.VOICE, context) }));
12509
+ };
12510
+ var serializeAws_restJson1ClosedDaysRule = function (input, context) {
12511
+ return __assign(__assign(__assign({}, (input.EndDateTime != null && { EndDateTime: input.EndDateTime })), (input.Name != null && { Name: input.Name })), (input.StartDateTime != null && { StartDateTime: input.StartDateTime }));
12512
+ };
12507
12513
  var serializeAws_restJson1Condition = function (input, context) {
12508
12514
  return __assign(__assign({}, (input.Conditions != null && {
12509
12515
  Conditions: serializeAws_restJson1ListOfSimpleCondition(input.Conditions, context),
@@ -12736,6 +12742,13 @@ var serializeAws_restJson1ListOf__string = function (input, context) {
12736
12742
  return entry;
12737
12743
  });
12738
12744
  };
12745
+ var serializeAws_restJson1ListOfClosedDaysRules = function (input, context) {
12746
+ return input
12747
+ .filter(function (e) { return e != null; })
12748
+ .map(function (entry) {
12749
+ return serializeAws_restJson1ClosedDaysRule(entry, context);
12750
+ });
12751
+ };
12739
12752
  var serializeAws_restJson1ListOfEndpointBatchItem = function (input, context) {
12740
12753
  return input
12741
12754
  .filter(function (e) { return e != null; })
@@ -12757,6 +12770,13 @@ var serializeAws_restJson1ListOfMultiConditionalBranch = function (input, contex
12757
12770
  return serializeAws_restJson1MultiConditionalBranch(entry, context);
12758
12771
  });
12759
12772
  };
12773
+ var serializeAws_restJson1ListOfOpenHoursRules = function (input, context) {
12774
+ return input
12775
+ .filter(function (e) { return e != null; })
12776
+ .map(function (entry) {
12777
+ return serializeAws_restJson1OpenHoursRule(entry, context);
12778
+ });
12779
+ };
12760
12780
  var serializeAws_restJson1ListOfRandomSplitEntry = function (input, context) {
12761
12781
  return input
12762
12782
  .filter(function (e) { return e != null; })
@@ -12889,6 +12909,16 @@ var serializeAws_restJson1MapOfListOf__string = function (input, context) {
12889
12909
  return __assign(__assign({}, acc), (_b = {}, _b[key] = serializeAws_restJson1ListOf__string(value, context), _b));
12890
12910
  }, {});
12891
12911
  };
12912
+ var serializeAws_restJson1MapOfListOfOpenHoursRules = function (input, context) {
12913
+ return Object.entries(input).reduce(function (acc, _a) {
12914
+ var _b;
12915
+ var _c = __read(_a, 2), key = _c[0], value = _c[1];
12916
+ if (value === null) {
12917
+ return acc;
12918
+ }
12919
+ return __assign(__assign({}, acc), (_b = {}, _b[key] = serializeAws_restJson1ListOfOpenHoursRules(value, context), _b));
12920
+ }, {});
12921
+ };
12892
12922
  var serializeAws_restJson1MapOfMetricDimension = function (input, context) {
12893
12923
  return Object.entries(input).reduce(function (acc, _a) {
12894
12924
  var _b;
@@ -12942,6 +12972,12 @@ var serializeAws_restJson1MultiConditionalSplitActivity = function (input, conte
12942
12972
  var serializeAws_restJson1NumberValidateRequest = function (input, context) {
12943
12973
  return __assign(__assign({}, (input.IsoCountryCode != null && { IsoCountryCode: input.IsoCountryCode })), (input.PhoneNumber != null && { PhoneNumber: input.PhoneNumber }));
12944
12974
  };
12975
+ var serializeAws_restJson1OpenHours = function (input, context) {
12976
+ return __assign(__assign(__assign(__assign(__assign({}, (input.CUSTOM != null && { CUSTOM: serializeAws_restJson1MapOfListOfOpenHoursRules(input.CUSTOM, context) })), (input.EMAIL != null && { EMAIL: serializeAws_restJson1MapOfListOfOpenHoursRules(input.EMAIL, context) })), (input.PUSH != null && { PUSH: serializeAws_restJson1MapOfListOfOpenHoursRules(input.PUSH, context) })), (input.SMS != null && { SMS: serializeAws_restJson1MapOfListOfOpenHoursRules(input.SMS, context) })), (input.VOICE != null && { VOICE: serializeAws_restJson1MapOfListOfOpenHoursRules(input.VOICE, context) }));
12977
+ };
12978
+ var serializeAws_restJson1OpenHoursRule = function (input, context) {
12979
+ return __assign(__assign({}, (input.EndTime != null && { EndTime: input.EndTime })), (input.StartTime != null && { StartTime: input.StartTime }));
12980
+ };
12945
12981
  var serializeAws_restJson1OverrideButtonConfiguration = function (input, context) {
12946
12982
  return __assign(__assign({}, (input.ButtonAction != null && { ButtonAction: input.ButtonAction })), (input.Link != null && { Link: input.Link }));
12947
12983
  };
@@ -13134,9 +13170,9 @@ var serializeAws_restJson1WriteEventStream = function (input, context) {
13134
13170
  return __assign(__assign({}, (input.DestinationStreamArn != null && { DestinationStreamArn: input.DestinationStreamArn })), (input.RoleArn != null && { RoleArn: input.RoleArn }));
13135
13171
  };
13136
13172
  var serializeAws_restJson1WriteJourneyRequest = function (input, context) {
13137
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Activities != null && { Activities: serializeAws_restJson1MapOfActivity(input.Activities, context) })), (input.CreationDate != null && { CreationDate: input.CreationDate })), (input.JourneyChannelSettings != null && {
13173
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Activities != null && { Activities: serializeAws_restJson1MapOfActivity(input.Activities, context) })), (input.ClosedDays != null && { ClosedDays: serializeAws_restJson1ClosedDays(input.ClosedDays, context) })), (input.CreationDate != null && { CreationDate: input.CreationDate })), (input.JourneyChannelSettings != null && {
13138
13174
  JourneyChannelSettings: serializeAws_restJson1JourneyChannelSettings(input.JourneyChannelSettings, context),
13139
- })), (input.LastModifiedDate != null && { LastModifiedDate: input.LastModifiedDate })), (input.Limits != null && { Limits: serializeAws_restJson1JourneyLimits(input.Limits, context) })), (input.LocalTime != null && { LocalTime: input.LocalTime })), (input.Name != null && { Name: input.Name })), (input.QuietTime != null && { QuietTime: serializeAws_restJson1QuietTime(input.QuietTime, context) })), (input.RefreshFrequency != null && { RefreshFrequency: input.RefreshFrequency })), (input.RefreshOnSegmentUpdate != null && { RefreshOnSegmentUpdate: input.RefreshOnSegmentUpdate })), (input.Schedule != null && { Schedule: serializeAws_restJson1JourneySchedule(input.Schedule, context) })), (input.StartActivity != null && { StartActivity: input.StartActivity })), (input.StartCondition != null && {
13175
+ })), (input.LastModifiedDate != null && { LastModifiedDate: input.LastModifiedDate })), (input.Limits != null && { Limits: serializeAws_restJson1JourneyLimits(input.Limits, context) })), (input.LocalTime != null && { LocalTime: input.LocalTime })), (input.Name != null && { Name: input.Name })), (input.OpenHours != null && { OpenHours: serializeAws_restJson1OpenHours(input.OpenHours, context) })), (input.QuietTime != null && { QuietTime: serializeAws_restJson1QuietTime(input.QuietTime, context) })), (input.RefreshFrequency != null && { RefreshFrequency: input.RefreshFrequency })), (input.RefreshOnSegmentUpdate != null && { RefreshOnSegmentUpdate: input.RefreshOnSegmentUpdate })), (input.Schedule != null && { Schedule: serializeAws_restJson1JourneySchedule(input.Schedule, context) })), (input.SendingSchedule != null && { SendingSchedule: input.SendingSchedule })), (input.StartActivity != null && { StartActivity: input.StartActivity })), (input.StartCondition != null && {
13140
13176
  StartCondition: serializeAws_restJson1StartCondition(input.StartCondition, context),
13141
13177
  })), (input.State != null && { State: input.State })), (input.WaitForQuietTime != null && { WaitForQuietTime: input.WaitForQuietTime }));
13142
13178
  };
@@ -13497,6 +13533,22 @@ var deserializeAws_restJson1ChannelsResponse = function (output, context) {
13497
13533
  Channels: output.Channels != null ? deserializeAws_restJson1MapOfChannelResponse(output.Channels, context) : undefined,
13498
13534
  };
13499
13535
  };
13536
+ var deserializeAws_restJson1ClosedDays = function (output, context) {
13537
+ return {
13538
+ CUSTOM: output.CUSTOM != null ? deserializeAws_restJson1ListOfClosedDaysRules(output.CUSTOM, context) : undefined,
13539
+ EMAIL: output.EMAIL != null ? deserializeAws_restJson1ListOfClosedDaysRules(output.EMAIL, context) : undefined,
13540
+ PUSH: output.PUSH != null ? deserializeAws_restJson1ListOfClosedDaysRules(output.PUSH, context) : undefined,
13541
+ SMS: output.SMS != null ? deserializeAws_restJson1ListOfClosedDaysRules(output.SMS, context) : undefined,
13542
+ VOICE: output.VOICE != null ? deserializeAws_restJson1ListOfClosedDaysRules(output.VOICE, context) : undefined,
13543
+ };
13544
+ };
13545
+ var deserializeAws_restJson1ClosedDaysRule = function (output, context) {
13546
+ return {
13547
+ EndDateTime: __expectString(output.EndDateTime),
13548
+ Name: __expectString(output.Name),
13549
+ StartDateTime: __expectString(output.StartDateTime),
13550
+ };
13551
+ };
13500
13552
  var deserializeAws_restJson1Condition = function (output, context) {
13501
13553
  return {
13502
13554
  Conditions: output.Conditions != null ? deserializeAws_restJson1ListOfSimpleCondition(output.Conditions, context) : undefined,
@@ -13989,6 +14041,7 @@ var deserializeAws_restJson1JourneyResponse = function (output, context) {
13989
14041
  return {
13990
14042
  Activities: output.Activities != null ? deserializeAws_restJson1MapOfActivity(output.Activities, context) : undefined,
13991
14043
  ApplicationId: __expectString(output.ApplicationId),
14044
+ ClosedDays: output.ClosedDays != null ? deserializeAws_restJson1ClosedDays(output.ClosedDays, context) : undefined,
13992
14045
  CreationDate: __expectString(output.CreationDate),
13993
14046
  Id: __expectString(output.Id),
13994
14047
  JourneyChannelSettings: output.JourneyChannelSettings != null
@@ -13998,10 +14051,12 @@ var deserializeAws_restJson1JourneyResponse = function (output, context) {
13998
14051
  Limits: output.Limits != null ? deserializeAws_restJson1JourneyLimits(output.Limits, context) : undefined,
13999
14052
  LocalTime: __expectBoolean(output.LocalTime),
14000
14053
  Name: __expectString(output.Name),
14054
+ OpenHours: output.OpenHours != null ? deserializeAws_restJson1OpenHours(output.OpenHours, context) : undefined,
14001
14055
  QuietTime: output.QuietTime != null ? deserializeAws_restJson1QuietTime(output.QuietTime, context) : undefined,
14002
14056
  RefreshFrequency: __expectString(output.RefreshFrequency),
14003
14057
  RefreshOnSegmentUpdate: __expectBoolean(output.RefreshOnSegmentUpdate),
14004
14058
  Schedule: output.Schedule != null ? deserializeAws_restJson1JourneySchedule(output.Schedule, context) : undefined,
14059
+ SendingSchedule: __expectBoolean(output.SendingSchedule),
14005
14060
  StartActivity: __expectString(output.StartActivity),
14006
14061
  StartCondition: output.StartCondition != null
14007
14062
  ? deserializeAws_restJson1StartCondition(output.StartCondition, context)
@@ -14088,6 +14143,17 @@ var deserializeAws_restJson1ListOfCampaignResponse = function (output, context)
14088
14143
  });
14089
14144
  return retVal;
14090
14145
  };
14146
+ var deserializeAws_restJson1ListOfClosedDaysRules = function (output, context) {
14147
+ var retVal = (output || [])
14148
+ .filter(function (e) { return e != null; })
14149
+ .map(function (entry) {
14150
+ if (entry === null) {
14151
+ return null;
14152
+ }
14153
+ return deserializeAws_restJson1ClosedDaysRule(entry, context);
14154
+ });
14155
+ return retVal;
14156
+ };
14091
14157
  var deserializeAws_restJson1ListOfEndpointResponse = function (output, context) {
14092
14158
  var retVal = (output || [])
14093
14159
  .filter(function (e) { return e != null; })
@@ -14165,6 +14231,17 @@ var deserializeAws_restJson1ListOfMultiConditionalBranch = function (output, con
14165
14231
  });
14166
14232
  return retVal;
14167
14233
  };
14234
+ var deserializeAws_restJson1ListOfOpenHoursRules = function (output, context) {
14235
+ var retVal = (output || [])
14236
+ .filter(function (e) { return e != null; })
14237
+ .map(function (entry) {
14238
+ if (entry === null) {
14239
+ return null;
14240
+ }
14241
+ return deserializeAws_restJson1OpenHoursRule(entry, context);
14242
+ });
14243
+ return retVal;
14244
+ };
14168
14245
  var deserializeAws_restJson1ListOfRandomSplitEntry = function (output, context) {
14169
14246
  var retVal = (output || [])
14170
14247
  .filter(function (e) { return e != null; })
@@ -14405,6 +14482,16 @@ var deserializeAws_restJson1MapOfListOf__string = function (output, context) {
14405
14482
  return __assign(__assign({}, acc), (_b = {}, _b[key] = deserializeAws_restJson1ListOf__string(value, context), _b));
14406
14483
  }, {});
14407
14484
  };
14485
+ var deserializeAws_restJson1MapOfListOfOpenHoursRules = function (output, context) {
14486
+ return Object.entries(output).reduce(function (acc, _a) {
14487
+ var _b;
14488
+ var _c = __read(_a, 2), key = _c[0], value = _c[1];
14489
+ if (value === null) {
14490
+ return acc;
14491
+ }
14492
+ return __assign(__assign({}, acc), (_b = {}, _b[key] = deserializeAws_restJson1ListOfOpenHoursRules(value, context), _b));
14493
+ }, {});
14494
+ };
14408
14495
  var deserializeAws_restJson1MapOfMapOfEndpointMessageResult = function (output, context) {
14409
14496
  return Object.entries(output).reduce(function (acc, _a) {
14410
14497
  var _b;
@@ -14536,6 +14623,21 @@ var deserializeAws_restJson1NumberValidateResponse = function (output, context)
14536
14623
  ZipCode: __expectString(output.ZipCode),
14537
14624
  };
14538
14625
  };
14626
+ var deserializeAws_restJson1OpenHours = function (output, context) {
14627
+ return {
14628
+ CUSTOM: output.CUSTOM != null ? deserializeAws_restJson1MapOfListOfOpenHoursRules(output.CUSTOM, context) : undefined,
14629
+ EMAIL: output.EMAIL != null ? deserializeAws_restJson1MapOfListOfOpenHoursRules(output.EMAIL, context) : undefined,
14630
+ PUSH: output.PUSH != null ? deserializeAws_restJson1MapOfListOfOpenHoursRules(output.PUSH, context) : undefined,
14631
+ SMS: output.SMS != null ? deserializeAws_restJson1MapOfListOfOpenHoursRules(output.SMS, context) : undefined,
14632
+ VOICE: output.VOICE != null ? deserializeAws_restJson1MapOfListOfOpenHoursRules(output.VOICE, context) : undefined,
14633
+ };
14634
+ };
14635
+ var deserializeAws_restJson1OpenHoursRule = function (output, context) {
14636
+ return {
14637
+ EndTime: __expectString(output.EndTime),
14638
+ StartTime: __expectString(output.StartTime),
14639
+ };
14640
+ };
14539
14641
  var deserializeAws_restJson1OverrideButtonConfiguration = function (output, context) {
14540
14642
  return {
14541
14643
  ButtonAction: __expectString(output.ButtonAction),
@@ -1,6 +1,6 @@
1
1
  import { Command as $Command } from "@aws-sdk/smithy-client";
2
2
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
- import { GetChannelsRequest, GetChannelsResponse } from "../models/models_0";
3
+ import { GetChannelsRequest, GetChannelsResponse } from "../models/models_1";
4
4
  import { PinpointClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../PinpointClient";
5
5
  export interface GetChannelsCommandInput extends GetChannelsRequest {
6
6
  }
@@ -1,6 +1,6 @@
1
1
  import { Command as $Command } from "@aws-sdk/smithy-client";
2
2
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
- import { GetEmailChannelRequest, GetEmailChannelResponse } from "../models/models_0";
3
+ import { GetEmailChannelRequest, GetEmailChannelResponse } from "../models/models_1";
4
4
  import { PinpointClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../PinpointClient";
5
5
  export interface GetEmailChannelCommandInput extends GetEmailChannelRequest {
6
6
  }
@@ -1,7 +1,6 @@
1
1
  import { Command as $Command } from "@aws-sdk/smithy-client";
2
2
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
- import { GetEmailTemplateRequest } from "../models/models_0";
4
- import { GetEmailTemplateResponse } from "../models/models_1";
3
+ import { GetEmailTemplateRequest, GetEmailTemplateResponse } from "../models/models_1";
5
4
  import { PinpointClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../PinpointClient";
6
5
  export interface GetEmailTemplateCommandInput extends GetEmailTemplateRequest {
7
6
  }
@@ -2385,6 +2385,48 @@ export interface ChannelsResponse {
2385
2385
  */
2386
2386
  Channels: Record<string, ChannelResponse> | undefined;
2387
2387
  }
2388
+ /**
2389
+ * <p>Closed Days Rule. Part of Journey sending schedule.</p>
2390
+ */
2391
+ export interface ClosedDaysRule {
2392
+ /**
2393
+ * <p>Name of the rule.</p>
2394
+ */
2395
+ Name?: string;
2396
+ /**
2397
+ * <p>Start Datetime in ISO 8601 format.</p>
2398
+ */
2399
+ StartDateTime?: string;
2400
+ /**
2401
+ * <p>End Datetime in ISO 8601 format.</p>
2402
+ */
2403
+ EndDateTime?: string;
2404
+ }
2405
+ /**
2406
+ * <p>The time when journey will stop sending messages.</p>
2407
+ */
2408
+ export interface ClosedDays {
2409
+ /**
2410
+ * <p>Rules for Email Channel.</p>
2411
+ */
2412
+ EMAIL?: ClosedDaysRule[];
2413
+ /**
2414
+ * <p>Rules for SMS Channel.</p>
2415
+ */
2416
+ SMS?: ClosedDaysRule[];
2417
+ /**
2418
+ * <p>Rules for Push Channel.</p>
2419
+ */
2420
+ PUSH?: ClosedDaysRule[];
2421
+ /**
2422
+ * <p>Rules for Voice Channel.</p>
2423
+ */
2424
+ VOICE?: ClosedDaysRule[];
2425
+ /**
2426
+ * <p>Rules for Custom Channel.</p>
2427
+ */
2428
+ CUSTOM?: ClosedDaysRule[];
2429
+ }
2388
2430
  /**
2389
2431
  * <p>Provides information about an API request or response.</p>
2390
2432
  */
@@ -3100,6 +3142,53 @@ export interface JourneyLimits {
3100
3142
  */
3101
3143
  EndpointReentryInterval?: string;
3102
3144
  }
3145
+ export declare enum DayOfWeek {
3146
+ FRIDAY = "FRIDAY",
3147
+ MONDAY = "MONDAY",
3148
+ SATURDAY = "SATURDAY",
3149
+ SUNDAY = "SUNDAY",
3150
+ THURSDAY = "THURSDAY",
3151
+ TUESDAY = "TUESDAY",
3152
+ WEDNESDAY = "WEDNESDAY"
3153
+ }
3154
+ /**
3155
+ * <p>List of OpenHours Rules.</p>
3156
+ */
3157
+ export interface OpenHoursRule {
3158
+ /**
3159
+ * <p>Local start time in ISO 8601 format.</p>
3160
+ */
3161
+ StartTime?: string;
3162
+ /**
3163
+ * <p>Local start time in ISO 8601 format.</p>
3164
+ */
3165
+ EndTime?: string;
3166
+ }
3167
+ /**
3168
+ * <p>The time when journey allow to send messages. QuietTime should be configured first and SendingSchedule should be set to true.</p>
3169
+ */
3170
+ export interface OpenHours {
3171
+ /**
3172
+ * <p>Rules for Email Channel.</p>
3173
+ */
3174
+ EMAIL?: Record<string, OpenHoursRule[]>;
3175
+ /**
3176
+ * <p>Rules for SMS Channel.</p>
3177
+ */
3178
+ SMS?: Record<string, OpenHoursRule[]>;
3179
+ /**
3180
+ * <p>Rules for Push Channel.</p>
3181
+ */
3182
+ PUSH?: Record<string, OpenHoursRule[]>;
3183
+ /**
3184
+ * <p>Rules for Voice Channel.</p>
3185
+ */
3186
+ VOICE?: Record<string, OpenHoursRule[]>;
3187
+ /**
3188
+ * <p>Rules for Custom Channel.</p>
3189
+ */
3190
+ CUSTOM?: Record<string, OpenHoursRule[]>;
3191
+ }
3103
3192
  /**
3104
3193
  * <p>Specifies the schedule settings for a journey.</p>
3105
3194
  */
@@ -3234,6 +3323,18 @@ export interface WriteJourneyRequest {
3234
3323
  * <p>The channel-specific configurations for the journey.</p>
3235
3324
  */
3236
3325
  JourneyChannelSettings?: JourneyChannelSettings;
3326
+ /**
3327
+ * <p>Indicates if journey have Advance Quiet Time (OpenHours and ClosedDays). This flag should be set to true in order to allow (OpenHours and ClosedDays)</p>
3328
+ */
3329
+ SendingSchedule?: boolean;
3330
+ /**
3331
+ * <p>The time when journey allow to send messages. QuietTime should be configured first and SendingSchedule should be set to true.</p>
3332
+ */
3333
+ OpenHours?: OpenHours;
3334
+ /**
3335
+ * <p>The time when journey will stop sending messages. QuietTime should be configured first and SendingSchedule should be set to true.</p>
3336
+ */
3337
+ ClosedDays?: ClosedDays;
3237
3338
  }
3238
3339
  export interface CreateJourneyRequest {
3239
3340
  /**
@@ -3321,6 +3422,18 @@ export interface JourneyResponse {
3321
3422
  * <p>The channel-specific configurations for the journey.</p>
3322
3423
  */
3323
3424
  JourneyChannelSettings?: JourneyChannelSettings;
3425
+ /**
3426
+ * <p>Indicates if journey have Advance Quiet Time (OpenHours and ClosedDays). This flag should be set to true in order to allow (OpenHours and ClosedDays)</p>
3427
+ */
3428
+ SendingSchedule?: boolean;
3429
+ /**
3430
+ * <p>The time when journey allow to send messages. QuietTime should be configured first and SendingSchedule should be set to true.</p>
3431
+ */
3432
+ OpenHours?: OpenHours;
3433
+ /**
3434
+ * <p>The time when journey will stop sending messages. QuietTime should be configured first and SendingSchedule should be set to true.</p>
3435
+ */
3436
+ ClosedDays?: ClosedDays;
3324
3437
  }
3325
3438
  export interface CreateJourneyResponse {
3326
3439
  /**
@@ -5576,40 +5689,6 @@ export interface GetCampaignVersionsResponse {
5576
5689
  */
5577
5690
  CampaignsResponse: CampaignsResponse | undefined;
5578
5691
  }
5579
- export interface GetChannelsRequest {
5580
- /**
5581
- * <p>The unique identifier for the application. This identifier is displayed as the <b>Project ID</b> on the Amazon Pinpoint console.</p>
5582
- */
5583
- ApplicationId: string | undefined;
5584
- }
5585
- export interface GetChannelsResponse {
5586
- /**
5587
- * <p>Provides information about the general settings and status of all channels for an application, including channels that aren't enabled for the application.</p>
5588
- */
5589
- ChannelsResponse: ChannelsResponse | undefined;
5590
- }
5591
- export interface GetEmailChannelRequest {
5592
- /**
5593
- * <p>The unique identifier for the application. This identifier is displayed as the <b>Project ID</b> on the Amazon Pinpoint console.</p>
5594
- */
5595
- ApplicationId: string | undefined;
5596
- }
5597
- export interface GetEmailChannelResponse {
5598
- /**
5599
- * <p>Provides information about the status and settings of the email channel for an application.</p>
5600
- */
5601
- EmailChannelResponse: EmailChannelResponse | undefined;
5602
- }
5603
- export interface GetEmailTemplateRequest {
5604
- /**
5605
- * <p>The name of the message template. A template name must start with an alphanumeric character and can contain a maximum of 128 characters. The characters can be alphanumeric characters, underscores (_), or hyphens (-). Template names are case sensitive.</p>
5606
- */
5607
- TemplateName: string | undefined;
5608
- /**
5609
- * <p>The unique identifier for the version of the message template to update, retrieve information about, or delete. To retrieve identifiers and other information for all the versions of a template, use the <link linkend="templates-template-name-template-type-versions">Template Versions</link> resource.</p> <p>If specified, this value must match the identifier for an existing template version. If specified for an update operation, this value must match the identifier for the latest existing version of the template. This restriction helps ensure that race conditions don't occur.</p> <p>If you don't specify a value for this parameter, Amazon Pinpoint does the following:</p> <ul><li><p>For a get operation, retrieves information about the active version of the template.</p></li> <li><p>For an update operation, saves the updates to (overwrites) the latest existing version of the template, if the create-new-version parameter isn't used or is set to false.</p></li> <li><p>For a delete operation, deletes the template, including all versions of the template.</p></li></ul>
5610
- */
5611
- Version?: string;
5612
- }
5613
5692
  /**
5614
5693
  * @internal
5615
5694
  */
@@ -5962,6 +6041,14 @@ export declare const ChannelResponseFilterSensitiveLog: (obj: ChannelResponse) =
5962
6041
  * @internal
5963
6042
  */
5964
6043
  export declare const ChannelsResponseFilterSensitiveLog: (obj: ChannelsResponse) => any;
6044
+ /**
6045
+ * @internal
6046
+ */
6047
+ export declare const ClosedDaysRuleFilterSensitiveLog: (obj: ClosedDaysRule) => any;
6048
+ /**
6049
+ * @internal
6050
+ */
6051
+ export declare const ClosedDaysFilterSensitiveLog: (obj: ClosedDays) => any;
5965
6052
  /**
5966
6053
  * @internal
5967
6054
  */
@@ -6070,6 +6157,14 @@ export declare const JourneyChannelSettingsFilterSensitiveLog: (obj: JourneyChan
6070
6157
  * @internal
6071
6158
  */
6072
6159
  export declare const JourneyLimitsFilterSensitiveLog: (obj: JourneyLimits) => any;
6160
+ /**
6161
+ * @internal
6162
+ */
6163
+ export declare const OpenHoursRuleFilterSensitiveLog: (obj: OpenHoursRule) => any;
6164
+ /**
6165
+ * @internal
6166
+ */
6167
+ export declare const OpenHoursFilterSensitiveLog: (obj: OpenHours) => any;
6073
6168
  /**
6074
6169
  * @internal
6075
6170
  */
@@ -6658,23 +6753,3 @@ export declare const GetCampaignVersionsRequestFilterSensitiveLog: (obj: GetCamp
6658
6753
  * @internal
6659
6754
  */
6660
6755
  export declare const GetCampaignVersionsResponseFilterSensitiveLog: (obj: GetCampaignVersionsResponse) => any;
6661
- /**
6662
- * @internal
6663
- */
6664
- export declare const GetChannelsRequestFilterSensitiveLog: (obj: GetChannelsRequest) => any;
6665
- /**
6666
- * @internal
6667
- */
6668
- export declare const GetChannelsResponseFilterSensitiveLog: (obj: GetChannelsResponse) => any;
6669
- /**
6670
- * @internal
6671
- */
6672
- export declare const GetEmailChannelRequestFilterSensitiveLog: (obj: GetEmailChannelRequest) => any;
6673
- /**
6674
- * @internal
6675
- */
6676
- export declare const GetEmailChannelResponseFilterSensitiveLog: (obj: GetEmailChannelResponse) => any;
6677
- /**
6678
- * @internal
6679
- */
6680
- export declare const GetEmailTemplateRequestFilterSensitiveLog: (obj: GetEmailTemplateRequest) => any;
@@ -1,4 +1,38 @@
1
- import { AddressConfiguration, ADMChannelRequest, ADMChannelResponse, AndroidPushNotificationTemplate, APNSChannelRequest, APNSChannelResponse, APNSPushNotificationTemplate, APNSSandboxChannelRequest, APNSSandboxChannelResponse, APNSVoipChannelRequest, APNSVoipChannelResponse, APNSVoipSandboxChannelRequest, APNSVoipSandboxChannelResponse, ApplicationSettingsResource, AttributesResource, BaiduChannelRequest, BaiduChannelResponse, BaseKpiResult, CampaignEventFilter, CampaignHook, CampaignLimits, CampaignResponse, DefaultPushNotificationTemplate, DeliveryStatus, DirectMessageConfiguration, EmailChannelRequest, EmailChannelResponse, EmailTemplateRequest, EmailTemplateResponse, EndpointBatchRequest, EndpointMessageResult, EndpointRequest, EndpointResponse, EndpointSendConfiguration, EndpointsResponse, EventsRequest, EventsResponse, EventStream, ExportJobResponse, ExportJobsResponse, GCMChannelRequest, GCMChannelResponse, ImportJobResponse, InAppMessageContent, InAppTemplateRequest, JourneyResponse, Layout, MessageBody, PushNotificationTemplateRequest, QuietTime, RecommenderConfigurationResponse, SegmentResponse, SMSChannelResponse, SMSTemplateRequest, State, TemplateConfiguration, TemplateType, VoiceChannelResponse, VoiceTemplateRequest, WriteCampaignRequest, WriteJourneyRequest, WriteSegmentRequest } from "./models_0";
1
+ import { AddressConfiguration, ADMChannelRequest, ADMChannelResponse, AndroidPushNotificationTemplate, APNSChannelRequest, APNSChannelResponse, APNSPushNotificationTemplate, APNSSandboxChannelRequest, APNSSandboxChannelResponse, APNSVoipChannelRequest, APNSVoipChannelResponse, APNSVoipSandboxChannelRequest, APNSVoipSandboxChannelResponse, ApplicationSettingsResource, AttributesResource, BaiduChannelRequest, BaiduChannelResponse, BaseKpiResult, CampaignEventFilter, CampaignHook, CampaignLimits, CampaignResponse, ChannelsResponse, DefaultPushNotificationTemplate, DeliveryStatus, DirectMessageConfiguration, EmailChannelRequest, EmailChannelResponse, EmailTemplateRequest, EmailTemplateResponse, EndpointBatchRequest, EndpointMessageResult, EndpointRequest, EndpointResponse, EndpointSendConfiguration, EndpointsResponse, EventsRequest, EventsResponse, EventStream, ExportJobResponse, ExportJobsResponse, GCMChannelRequest, GCMChannelResponse, ImportJobResponse, InAppMessageContent, InAppTemplateRequest, JourneyResponse, Layout, MessageBody, PushNotificationTemplateRequest, QuietTime, RecommenderConfigurationResponse, SegmentResponse, SMSChannelResponse, SMSTemplateRequest, State, TemplateConfiguration, TemplateType, VoiceChannelResponse, VoiceTemplateRequest, WriteCampaignRequest, WriteJourneyRequest, WriteSegmentRequest } from "./models_0";
2
+ export interface GetChannelsRequest {
3
+ /**
4
+ * <p>The unique identifier for the application. This identifier is displayed as the <b>Project ID</b> on the Amazon Pinpoint console.</p>
5
+ */
6
+ ApplicationId: string | undefined;
7
+ }
8
+ export interface GetChannelsResponse {
9
+ /**
10
+ * <p>Provides information about the general settings and status of all channels for an application, including channels that aren't enabled for the application.</p>
11
+ */
12
+ ChannelsResponse: ChannelsResponse | undefined;
13
+ }
14
+ export interface GetEmailChannelRequest {
15
+ /**
16
+ * <p>The unique identifier for the application. This identifier is displayed as the <b>Project ID</b> on the Amazon Pinpoint console.</p>
17
+ */
18
+ ApplicationId: string | undefined;
19
+ }
20
+ export interface GetEmailChannelResponse {
21
+ /**
22
+ * <p>Provides information about the status and settings of the email channel for an application.</p>
23
+ */
24
+ EmailChannelResponse: EmailChannelResponse | undefined;
25
+ }
26
+ export interface GetEmailTemplateRequest {
27
+ /**
28
+ * <p>The name of the message template. A template name must start with an alphanumeric character and can contain a maximum of 128 characters. The characters can be alphanumeric characters, underscores (_), or hyphens (-). Template names are case sensitive.</p>
29
+ */
30
+ TemplateName: string | undefined;
31
+ /**
32
+ * <p>The unique identifier for the version of the message template to update, retrieve information about, or delete. To retrieve identifiers and other information for all the versions of a template, use the <link linkend="templates-template-name-template-type-versions">Template Versions</link> resource.</p> <p>If specified, this value must match the identifier for an existing template version. If specified for an update operation, this value must match the identifier for the latest existing version of the template. This restriction helps ensure that race conditions don't occur.</p> <p>If you don't specify a value for this parameter, Amazon Pinpoint does the following:</p> <ul><li><p>For a get operation, retrieves information about the active version of the template.</p></li> <li><p>For an update operation, saves the updates to (overwrites) the latest existing version of the template, if the create-new-version parameter isn't used or is set to false.</p></li> <li><p>For a delete operation, deletes the template, including all versions of the template.</p></li></ul>
33
+ */
34
+ Version?: string;
35
+ }
2
36
  export interface GetEmailTemplateResponse {
3
37
  /**
4
38
  * <p>Provides information about the content and settings for a message template that can be used in messages that are sent through the email channel.</p>
@@ -2119,6 +2153,26 @@ export interface VerifyOTPMessageResponse {
2119
2153
  */
2120
2154
  VerificationResponse: VerificationResponse | undefined;
2121
2155
  }
2156
+ /**
2157
+ * @internal
2158
+ */
2159
+ export declare const GetChannelsRequestFilterSensitiveLog: (obj: GetChannelsRequest) => any;
2160
+ /**
2161
+ * @internal
2162
+ */
2163
+ export declare const GetChannelsResponseFilterSensitiveLog: (obj: GetChannelsResponse) => any;
2164
+ /**
2165
+ * @internal
2166
+ */
2167
+ export declare const GetEmailChannelRequestFilterSensitiveLog: (obj: GetEmailChannelRequest) => any;
2168
+ /**
2169
+ * @internal
2170
+ */
2171
+ export declare const GetEmailChannelResponseFilterSensitiveLog: (obj: GetEmailChannelResponse) => any;
2172
+ /**
2173
+ * @internal
2174
+ */
2175
+ export declare const GetEmailTemplateRequestFilterSensitiveLog: (obj: GetEmailTemplateRequest) => any;
2122
2176
  /**
2123
2177
  * @internal
2124
2178
  */
@@ -1,6 +1,6 @@
1
1
  import { Command as $Command } from "@aws-sdk/smithy-client";
2
2
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
- import { GetChannelsRequest, GetChannelsResponse } from "../models/models_0";
3
+ import { GetChannelsRequest, GetChannelsResponse } from "../models/models_1";
4
4
  import { PinpointClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../PinpointClient";
5
5
  export interface GetChannelsCommandInput extends GetChannelsRequest {
6
6
  }
@@ -1,6 +1,6 @@
1
1
  import { Command as $Command } from "@aws-sdk/smithy-client";
2
2
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
- import { GetEmailChannelRequest, GetEmailChannelResponse } from "../models/models_0";
3
+ import { GetEmailChannelRequest, GetEmailChannelResponse } from "../models/models_1";
4
4
  import { PinpointClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../PinpointClient";
5
5
  export interface GetEmailChannelCommandInput extends GetEmailChannelRequest {
6
6
  }
@@ -1,7 +1,6 @@
1
1
  import { Command as $Command } from "@aws-sdk/smithy-client";
2
2
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
- import { GetEmailTemplateRequest } from "../models/models_0";
4
- import { GetEmailTemplateResponse } from "../models/models_1";
3
+ import { GetEmailTemplateRequest, GetEmailTemplateResponse } from "../models/models_1";
5
4
  import { PinpointClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../PinpointClient";
6
5
  export interface GetEmailTemplateCommandInput extends GetEmailTemplateRequest {
7
6
  }