Skip to content

Commit ded8662

Browse files
author
awstools
committed
feat(client-pinpoint): Adds support for Advance Quiet Time in Journeys. Adds RefreshOnSegmentUpdate and WaitForQuietTime to JourneyResponse.
1 parent 9f4d730 commit ded8662

File tree

7 files changed

+634
-79
lines changed

7 files changed

+634
-79
lines changed

clients/client-pinpoint/src/commands/GetChannelsCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import {
1717
GetChannelsRequestFilterSensitiveLog,
1818
GetChannelsResponse,
1919
GetChannelsResponseFilterSensitiveLog,
20-
} from "../models/models_0";
20+
} from "../models/models_1";
2121
import { PinpointClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../PinpointClient";
2222
import {
2323
deserializeAws_restJson1GetChannelsCommand,

clients/client-pinpoint/src/commands/GetEmailChannelCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import {
1717
GetEmailChannelRequestFilterSensitiveLog,
1818
GetEmailChannelResponse,
1919
GetEmailChannelResponseFilterSensitiveLog,
20-
} from "../models/models_0";
20+
} from "../models/models_1";
2121
import { PinpointClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../PinpointClient";
2222
import {
2323
deserializeAws_restJson1GetEmailChannelCommand,

clients/client-pinpoint/src/commands/GetEmailTemplateCommand.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,12 @@ import {
1212
SerdeContext as __SerdeContext,
1313
} from "@aws-sdk/types";
1414

15-
import { GetEmailTemplateRequest, GetEmailTemplateRequestFilterSensitiveLog } from "../models/models_0";
16-
import { GetEmailTemplateResponse, GetEmailTemplateResponseFilterSensitiveLog } from "../models/models_1";
15+
import {
16+
GetEmailTemplateRequest,
17+
GetEmailTemplateRequestFilterSensitiveLog,
18+
GetEmailTemplateResponse,
19+
GetEmailTemplateResponseFilterSensitiveLog,
20+
} from "../models/models_1";
1721
import { PinpointClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../PinpointClient";
1822
import {
1923
deserializeAws_restJson1GetEmailTemplateCommand,

clients/client-pinpoint/src/models/models_0.ts

Lines changed: 163 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -2869,6 +2869,56 @@ export interface ChannelsResponse {
28692869
Channels: Record<string, ChannelResponse> | undefined;
28702870
}
28712871

2872+
/**
2873+
* <p>Closed Days Rule. Part of Journey sending schedule.</p>
2874+
*/
2875+
export interface ClosedDaysRule {
2876+
/**
2877+
* <p>Name of the rule.</p>
2878+
*/
2879+
Name?: string;
2880+
2881+
/**
2882+
* <p>Start Datetime in ISO 8601 format.</p>
2883+
*/
2884+
StartDateTime?: string;
2885+
2886+
/**
2887+
* <p>End Datetime in ISO 8601 format.</p>
2888+
*/
2889+
EndDateTime?: string;
2890+
}
2891+
2892+
/**
2893+
* <p>The time when journey will stop sending messages.</p>
2894+
*/
2895+
export interface ClosedDays {
2896+
/**
2897+
* <p>Rules for Email Channel.</p>
2898+
*/
2899+
EMAIL?: ClosedDaysRule[];
2900+
2901+
/**
2902+
* <p>Rules for SMS Channel.</p>
2903+
*/
2904+
SMS?: ClosedDaysRule[];
2905+
2906+
/**
2907+
* <p>Rules for Push Channel.</p>
2908+
*/
2909+
PUSH?: ClosedDaysRule[];
2910+
2911+
/**
2912+
* <p>Rules for Voice Channel.</p>
2913+
*/
2914+
VOICE?: ClosedDaysRule[];
2915+
2916+
/**
2917+
* <p>Rules for Custom Channel.</p>
2918+
*/
2919+
CUSTOM?: ClosedDaysRule[];
2920+
}
2921+
28722922
/**
28732923
* <p>Provides information about an API request or response.</p>
28742924
*/
@@ -3780,6 +3830,61 @@ export interface JourneyLimits {
37803830
EndpointReentryInterval?: string;
37813831
}
37823832

3833+
export enum DayOfWeek {
3834+
FRIDAY = "FRIDAY",
3835+
MONDAY = "MONDAY",
3836+
SATURDAY = "SATURDAY",
3837+
SUNDAY = "SUNDAY",
3838+
THURSDAY = "THURSDAY",
3839+
TUESDAY = "TUESDAY",
3840+
WEDNESDAY = "WEDNESDAY",
3841+
}
3842+
3843+
/**
3844+
* <p>List of OpenHours Rules.</p>
3845+
*/
3846+
export interface OpenHoursRule {
3847+
/**
3848+
* <p>Local start time in ISO 8601 format.</p>
3849+
*/
3850+
StartTime?: string;
3851+
3852+
/**
3853+
* <p>Local start time in ISO 8601 format.</p>
3854+
*/
3855+
EndTime?: string;
3856+
}
3857+
3858+
/**
3859+
* <p>The time when journey allow to send messages. QuietTime should be configured first and SendingSchedule should be set to true.</p>
3860+
*/
3861+
export interface OpenHours {
3862+
/**
3863+
* <p>Rules for Email Channel.</p>
3864+
*/
3865+
EMAIL?: Record<string, OpenHoursRule[]>;
3866+
3867+
/**
3868+
* <p>Rules for SMS Channel.</p>
3869+
*/
3870+
SMS?: Record<string, OpenHoursRule[]>;
3871+
3872+
/**
3873+
* <p>Rules for Push Channel.</p>
3874+
*/
3875+
PUSH?: Record<string, OpenHoursRule[]>;
3876+
3877+
/**
3878+
* <p>Rules for Voice Channel.</p>
3879+
*/
3880+
VOICE?: Record<string, OpenHoursRule[]>;
3881+
3882+
/**
3883+
* <p>Rules for Custom Channel.</p>
3884+
*/
3885+
CUSTOM?: Record<string, OpenHoursRule[]>;
3886+
}
3887+
37833888
/**
37843889
* <p>Specifies the schedule settings for a journey.</p>
37853890
*/
@@ -3939,6 +4044,21 @@ export interface WriteJourneyRequest {
39394044
* <p>The channel-specific configurations for the journey.</p>
39404045
*/
39414046
JourneyChannelSettings?: JourneyChannelSettings;
4047+
4048+
/**
4049+
* <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>
4050+
*/
4051+
SendingSchedule?: boolean;
4052+
4053+
/**
4054+
* <p>The time when journey allow to send messages. QuietTime should be configured first and SendingSchedule should be set to true.</p>
4055+
*/
4056+
OpenHours?: OpenHours;
4057+
4058+
/**
4059+
* <p>The time when journey will stop sending messages. QuietTime should be configured first and SendingSchedule should be set to true.</p>
4060+
*/
4061+
ClosedDays?: ClosedDays;
39424062
}
39434063

39444064
export interface CreateJourneyRequest {
@@ -4046,6 +4166,21 @@ export interface JourneyResponse {
40464166
* <p>The channel-specific configurations for the journey.</p>
40474167
*/
40484168
JourneyChannelSettings?: JourneyChannelSettings;
4169+
4170+
/**
4171+
* <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>
4172+
*/
4173+
SendingSchedule?: boolean;
4174+
4175+
/**
4176+
* <p>The time when journey allow to send messages. QuietTime should be configured first and SendingSchedule should be set to true.</p>
4177+
*/
4178+
OpenHours?: OpenHours;
4179+
4180+
/**
4181+
* <p>The time when journey will stop sending messages. QuietTime should be configured first and SendingSchedule should be set to true.</p>
4182+
*/
4183+
ClosedDays?: ClosedDays;
40494184
}
40504185

40514186
export interface CreateJourneyResponse {
@@ -6754,46 +6889,6 @@ export interface GetCampaignVersionsResponse {
67546889
CampaignsResponse: CampaignsResponse | undefined;
67556890
}
67566891

6757-
export interface GetChannelsRequest {
6758-
/**
6759-
* <p>The unique identifier for the application. This identifier is displayed as the <b>Project ID</b> on the Amazon Pinpoint console.</p>
6760-
*/
6761-
ApplicationId: string | undefined;
6762-
}
6763-
6764-
export interface GetChannelsResponse {
6765-
/**
6766-
* <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>
6767-
*/
6768-
ChannelsResponse: ChannelsResponse | undefined;
6769-
}
6770-
6771-
export interface GetEmailChannelRequest {
6772-
/**
6773-
* <p>The unique identifier for the application. This identifier is displayed as the <b>Project ID</b> on the Amazon Pinpoint console.</p>
6774-
*/
6775-
ApplicationId: string | undefined;
6776-
}
6777-
6778-
export interface GetEmailChannelResponse {
6779-
/**
6780-
* <p>Provides information about the status and settings of the email channel for an application.</p>
6781-
*/
6782-
EmailChannelResponse: EmailChannelResponse | undefined;
6783-
}
6784-
6785-
export interface GetEmailTemplateRequest {
6786-
/**
6787-
* <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>
6788-
*/
6789-
TemplateName: string | undefined;
6790-
6791-
/**
6792-
* <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>
6793-
*/
6794-
Version?: string;
6795-
}
6796-
67976892
/**
67986893
* @internal
67996894
*/
@@ -7410,6 +7505,20 @@ export const ChannelsResponseFilterSensitiveLog = (obj: ChannelsResponse): any =
74107505
...obj,
74117506
});
74127507

7508+
/**
7509+
* @internal
7510+
*/
7511+
export const ClosedDaysRuleFilterSensitiveLog = (obj: ClosedDaysRule): any => ({
7512+
...obj,
7513+
});
7514+
7515+
/**
7516+
* @internal
7517+
*/
7518+
export const ClosedDaysFilterSensitiveLog = (obj: ClosedDays): any => ({
7519+
...obj,
7520+
});
7521+
74137522
/**
74147523
* @internal
74157524
*/
@@ -7599,6 +7708,20 @@ export const JourneyLimitsFilterSensitiveLog = (obj: JourneyLimits): any => ({
75997708
...obj,
76007709
});
76017710

7711+
/**
7712+
* @internal
7713+
*/
7714+
export const OpenHoursRuleFilterSensitiveLog = (obj: OpenHoursRule): any => ({
7715+
...obj,
7716+
});
7717+
7718+
/**
7719+
* @internal
7720+
*/
7721+
export const OpenHoursFilterSensitiveLog = (obj: OpenHours): any => ({
7722+
...obj,
7723+
});
7724+
76027725
/**
76037726
* @internal
76047727
*/
@@ -8641,38 +8764,3 @@ export const GetCampaignVersionsRequestFilterSensitiveLog = (obj: GetCampaignVer
86418764
export const GetCampaignVersionsResponseFilterSensitiveLog = (obj: GetCampaignVersionsResponse): any => ({
86428765
...obj,
86438766
});
8644-
8645-
/**
8646-
* @internal
8647-
*/
8648-
export const GetChannelsRequestFilterSensitiveLog = (obj: GetChannelsRequest): any => ({
8649-
...obj,
8650-
});
8651-
8652-
/**
8653-
* @internal
8654-
*/
8655-
export const GetChannelsResponseFilterSensitiveLog = (obj: GetChannelsResponse): any => ({
8656-
...obj,
8657-
});
8658-
8659-
/**
8660-
* @internal
8661-
*/
8662-
export const GetEmailChannelRequestFilterSensitiveLog = (obj: GetEmailChannelRequest): any => ({
8663-
...obj,
8664-
});
8665-
8666-
/**
8667-
* @internal
8668-
*/
8669-
export const GetEmailChannelResponseFilterSensitiveLog = (obj: GetEmailChannelResponse): any => ({
8670-
...obj,
8671-
});
8672-
8673-
/**
8674-
* @internal
8675-
*/
8676-
export const GetEmailTemplateRequestFilterSensitiveLog = (obj: GetEmailTemplateRequest): any => ({
8677-
...obj,
8678-
});

0 commit comments

Comments
 (0)