@aws-sdk/client-pinpoint 3.358.0 → 3.360.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.
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TemplateType = exports.DeliveryStatus = exports.SegmentType = exports.Include = exports.Type = exports.SourceType = exports.State = exports.DayOfWeek = exports.Format = exports.JobStatus = exports.TooManyRequestsException = exports.PayloadTooLargeException = exports.NotFoundException = exports.MethodNotAllowedException = exports.InternalServerErrorException = exports.ForbiddenException = exports.ConflictException = exports.CampaignStatus = exports.Frequency = exports.Layout = exports.FilterType = exports.ButtonAction = exports.BadRequestException = exports.Mode = exports.Alignment = exports.ChannelType = exports.MessageType = exports.Operator = exports.RecencyType = exports.Duration = exports.DimensionType = exports.AttributeType = exports.Action = exports.__EndpointTypesElement = void 0;
3
+ exports.TemplateType = exports.DeliveryStatus = exports.SegmentType = exports.Include = exports.Type = exports.SourceType = exports.State = exports.DayOfWeek = exports.Format = exports.JobStatus = exports.TooManyRequestsException = exports.PayloadTooLargeException = exports.NotFoundException = exports.MethodNotAllowedException = exports.InternalServerErrorException = exports.ForbiddenException = exports.ConflictException = exports.CampaignStatus = exports.Frequency = exports.Layout = exports.FilterType = exports.ButtonAction = exports.BadRequestException = exports.Mode = exports.Alignment = exports.ChannelType = exports.MessageType = exports.Operator = exports.RecencyType = exports.Duration = exports.DimensionType = exports.AttributeType = exports.Action = exports.__TimezoneEstimationMethodsElement = exports.__EndpointTypesElement = void 0;
4
4
  const PinpointServiceException_1 = require("./PinpointServiceException");
5
5
  exports.__EndpointTypesElement = {
6
6
  ADM: "ADM",
@@ -17,6 +17,10 @@ exports.__EndpointTypesElement = {
17
17
  SMS: "SMS",
18
18
  VOICE: "VOICE",
19
19
  };
20
+ exports.__TimezoneEstimationMethodsElement = {
21
+ PHONE_NUMBER: "PHONE_NUMBER",
22
+ POSTAL_CODE: "POSTAL_CODE",
23
+ };
20
24
  exports.Action = {
21
25
  DEEP_LINK: "DEEP_LINK",
22
26
  OPEN_APP: "OPEN_APP",
@@ -9229,6 +9229,7 @@ const se_WriteJourneyRequest = (input, context) => {
9229
9229
  StartActivity: [],
9230
9230
  StartCondition: (_) => se_StartCondition(_, context),
9231
9231
  State: [],
9232
+ TimezoneEstimationMethods: smithy_client_1._json,
9232
9233
  WaitForQuietTime: [],
9233
9234
  });
9234
9235
  };
@@ -9516,6 +9517,7 @@ const de_JourneyResponse = (output, context) => {
9516
9517
  StartActivity: smithy_client_1.expectString,
9517
9518
  StartCondition: (_) => de_StartCondition(_, context),
9518
9519
  State: smithy_client_1.expectString,
9520
+ TimezoneEstimationMethods: smithy_client_1._json,
9519
9521
  WaitForQuietTime: smithy_client_1.expectBoolean,
9520
9522
  tags: [, smithy_client_1._json, `tags`],
9521
9523
  });
@@ -14,6 +14,10 @@ export const __EndpointTypesElement = {
14
14
  SMS: "SMS",
15
15
  VOICE: "VOICE",
16
16
  };
17
+ export const __TimezoneEstimationMethodsElement = {
18
+ PHONE_NUMBER: "PHONE_NUMBER",
19
+ POSTAL_CODE: "POSTAL_CODE",
20
+ };
17
21
  export const Action = {
18
22
  DEEP_LINK: "DEEP_LINK",
19
23
  OPEN_APP: "OPEN_APP",
@@ -8978,6 +8978,7 @@ const se_WriteJourneyRequest = (input, context) => {
8978
8978
  StartActivity: [],
8979
8979
  StartCondition: (_) => se_StartCondition(_, context),
8980
8980
  State: [],
8981
+ TimezoneEstimationMethods: _json,
8981
8982
  WaitForQuietTime: [],
8982
8983
  });
8983
8984
  };
@@ -9265,6 +9266,7 @@ const de_JourneyResponse = (output, context) => {
9265
9266
  StartActivity: __expectString,
9266
9267
  StartCondition: (_) => de_StartCondition(_, context),
9267
9268
  State: __expectString,
9269
+ TimezoneEstimationMethods: _json,
9268
9270
  WaitForQuietTime: __expectBoolean,
9269
9271
  tags: [, _json, `tags`],
9270
9272
  });
@@ -404,6 +404,9 @@ export interface CreateJourneyCommandOutput extends CreateJourneyResponse, __Met
404
404
  * },
405
405
  * ],
406
406
  * },
407
+ * TimezoneEstimationMethods: [ // ListOf__TimezoneEstimationMethodsElement
408
+ * "PHONE_NUMBER" || "POSTAL_CODE",
409
+ * ],
407
410
  * },
408
411
  * };
409
412
  * const command = new CreateJourneyCommand(input);
@@ -786,6 +789,9 @@ export interface CreateJourneyCommandOutput extends CreateJourneyResponse, __Met
786
789
  * // },
787
790
  * // ],
788
791
  * // },
792
+ * // TimezoneEstimationMethods: [ // ListOf__TimezoneEstimationMethodsElement
793
+ * // "PHONE_NUMBER" || "POSTAL_CODE",
794
+ * // ],
789
795
  * // },
790
796
  * // };
791
797
  *
@@ -414,6 +414,9 @@ export interface DeleteJourneyCommandOutput extends DeleteJourneyResponse, __Met
414
414
  * // },
415
415
  * // ],
416
416
  * // },
417
+ * // TimezoneEstimationMethods: [ // ListOf__TimezoneEstimationMethodsElement
418
+ * // "PHONE_NUMBER" || "POSTAL_CODE",
419
+ * // ],
417
420
  * // },
418
421
  * // };
419
422
  *
@@ -1,7 +1,8 @@
1
1
  import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
3
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
- import { GetCampaignVersionsRequest, GetCampaignVersionsResponse } from "../models/models_0";
4
+ import { GetCampaignVersionsRequest } from "../models/models_0";
5
+ import { GetCampaignVersionsResponse } from "../models/models_1";
5
6
  import { PinpointClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../PinpointClient";
6
7
  /**
7
8
  * @public
@@ -414,6 +414,9 @@ export interface GetJourneyCommandOutput extends GetJourneyResponse, __MetadataB
414
414
  * // },
415
415
  * // ],
416
416
  * // },
417
+ * // TimezoneEstimationMethods: [ // ListOf__TimezoneEstimationMethodsElement
418
+ * // "PHONE_NUMBER" || "POSTAL_CODE",
419
+ * // ],
417
420
  * // },
418
421
  * // };
419
422
  *
@@ -417,6 +417,9 @@ export interface ListJourneysCommandOutput extends ListJourneysResponse, __Metad
417
417
  * // },
418
418
  * // ],
419
419
  * // },
420
+ * // TimezoneEstimationMethods: [ // ListOf__TimezoneEstimationMethodsElement
421
+ * // "PHONE_NUMBER" || "POSTAL_CODE",
422
+ * // ],
420
423
  * // },
421
424
  * // ],
422
425
  * // NextToken: "STRING_VALUE",
@@ -405,6 +405,9 @@ export interface UpdateJourneyCommandOutput extends UpdateJourneyResponse, __Met
405
405
  * },
406
406
  * ],
407
407
  * },
408
+ * TimezoneEstimationMethods: [ // ListOf__TimezoneEstimationMethodsElement
409
+ * "PHONE_NUMBER" || "POSTAL_CODE",
410
+ * ],
408
411
  * },
409
412
  * };
410
413
  * const command = new UpdateJourneyCommand(input);
@@ -787,6 +790,9 @@ export interface UpdateJourneyCommandOutput extends UpdateJourneyResponse, __Met
787
790
  * // },
788
791
  * // ],
789
792
  * // },
793
+ * // TimezoneEstimationMethods: [ // ListOf__TimezoneEstimationMethodsElement
794
+ * // "PHONE_NUMBER" || "POSTAL_CODE",
795
+ * // ],
790
796
  * // },
791
797
  * // };
792
798
  *
@@ -417,6 +417,9 @@ export interface UpdateJourneyStateCommandOutput extends UpdateJourneyStateRespo
417
417
  * // },
418
418
  * // ],
419
419
  * // },
420
+ * // TimezoneEstimationMethods: [ // ListOf__TimezoneEstimationMethodsElement
421
+ * // "PHONE_NUMBER" || "POSTAL_CODE",
422
+ * // ],
420
423
  * // },
421
424
  * // };
422
425
  *
@@ -23,6 +23,18 @@ export declare const __EndpointTypesElement: {
23
23
  * @public
24
24
  */
25
25
  export type __EndpointTypesElement = (typeof __EndpointTypesElement)[keyof typeof __EndpointTypesElement];
26
+ /**
27
+ * @public
28
+ * @enum
29
+ */
30
+ export declare const __TimezoneEstimationMethodsElement: {
31
+ readonly PHONE_NUMBER: "PHONE_NUMBER";
32
+ readonly POSTAL_CODE: "POSTAL_CODE";
33
+ };
34
+ /**
35
+ * @public
36
+ */
37
+ export type __TimezoneEstimationMethodsElement = (typeof __TimezoneEstimationMethodsElement)[keyof typeof __TimezoneEstimationMethodsElement];
26
38
  /**
27
39
  * @public
28
40
  * @enum
@@ -3657,6 +3669,10 @@ export interface WriteJourneyRequest {
3657
3669
  * <p>The time when journey will stop sending messages. QuietTime should be configured first and SendingSchedule should be set to true.</p>
3658
3670
  */
3659
3671
  ClosedDays?: ClosedDays;
3672
+ /**
3673
+ * <p>An array of time zone estimation methods, if any, to use for determining an <a href="https://docs.aws.amazon.com/pinpoint/latest/apireference/apps-application-id-endpoints-endpoint-id.html">Endpoints</a> time zone if the Endpoint does not have a value for the Demographic.Timezone attribute.</p> <ul> <li><p>PHONE_NUMBER - A time zone is determined based on the Endpoint.Address and Endpoint.Location.Country.</p></li> <li><p>POSTAL_CODE - A time zone is determined based on the Endpoint.Location.PostalCode and Endpoint.Location.Country.</p> <note><p>POSTAL_CODE detection is only supported in the United States, United Kingdom, Australia, New Zealand, Canada, France, Italy, Spain, Germany and in regions where Amazon Pinpoint is available.</p></note></li> </ul>
3674
+ */
3675
+ TimezoneEstimationMethods?: (__TimezoneEstimationMethodsElement | string)[];
3660
3676
  }
3661
3677
  /**
3662
3678
  * @public
@@ -3760,6 +3776,10 @@ export interface JourneyResponse {
3760
3776
  * <p>The time when a journey will not send messages. QuietTime should be configured first and SendingSchedule should be set to true.</p>
3761
3777
  */
3762
3778
  ClosedDays?: ClosedDays;
3779
+ /**
3780
+ * <p>An array of time zone estimation methods, if any, to use for determining an <a href="https://docs.aws.amazon.com/pinpoint/latest/apireference/apps-application-id-endpoints-endpoint-id.html">Endpoints</a> time zone if the Endpoint does not have a value for the Demographic.Timezone attribute.</p> <ul> <li><p>PHONE_NUMBER - A time zone is determined based on the Endpoint.Address and Endpoint.Location.Country.</p></li> <li><p>POSTAL_CODE - A time zone is determined based on the Endpoint.Location.PostalCode and Endpoint.Location.Country.</p> <note><p>POSTAL_CODE detection is only supported in the United States, United Kingdom, Australia, New Zealand, Canada, France, Italy, Spain, Germany and in regions where Amazon Pinpoint is available.</p></note></li> </ul>
3781
+ */
3782
+ TimezoneEstimationMethods?: (__TimezoneEstimationMethodsElement | string)[];
3763
3783
  }
3764
3784
  /**
3765
3785
  * @public
@@ -6372,12 +6392,3 @@ export interface GetCampaignVersionsRequest {
6372
6392
  */
6373
6393
  Token?: string;
6374
6394
  }
6375
- /**
6376
- * @public
6377
- */
6378
- export interface GetCampaignVersionsResponse {
6379
- /**
6380
- * <p>Provides information about the configuration and other settings for all the campaigns that are associated with an application.</p>
6381
- */
6382
- CampaignsResponse: CampaignsResponse | undefined;
6383
- }
@@ -1,4 +1,13 @@
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";
1
+ import { AddressConfiguration, ADMChannelRequest, ADMChannelResponse, AndroidPushNotificationTemplate, APNSChannelRequest, APNSChannelResponse, APNSPushNotificationTemplate, APNSSandboxChannelRequest, APNSSandboxChannelResponse, APNSVoipChannelRequest, APNSVoipChannelResponse, APNSVoipSandboxChannelRequest, APNSVoipSandboxChannelResponse, ApplicationSettingsResource, AttributesResource, BaiduChannelRequest, BaiduChannelResponse, BaseKpiResult, CampaignEventFilter, CampaignHook, CampaignLimits, CampaignResponse, CampaignsResponse, 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
+ /**
3
+ * @public
4
+ */
5
+ export interface GetCampaignVersionsResponse {
6
+ /**
7
+ * <p>Provides information about the configuration and other settings for all the campaigns that are associated with an application.</p>
8
+ */
9
+ CampaignsResponse: CampaignsResponse | undefined;
10
+ }
2
11
  /**
3
12
  * @public
4
13
  */
@@ -6,10 +6,8 @@ import {
6
6
  MetadataBearer as __MetadataBearer,
7
7
  MiddlewareStack,
8
8
  } from "@aws-sdk/types";
9
- import {
10
- GetCampaignVersionsRequest,
11
- GetCampaignVersionsResponse,
12
- } from "../models/models_0";
9
+ import { GetCampaignVersionsRequest } from "../models/models_0";
10
+ import { GetCampaignVersionsResponse } from "../models/models_1";
13
11
  import {
14
12
  PinpointClientResolvedConfig,
15
13
  ServiceInputTypes,
@@ -17,6 +17,12 @@ export declare const __EndpointTypesElement: {
17
17
  };
18
18
  export type __EndpointTypesElement =
19
19
  (typeof __EndpointTypesElement)[keyof typeof __EndpointTypesElement];
20
+ export declare const __TimezoneEstimationMethodsElement: {
21
+ readonly PHONE_NUMBER: "PHONE_NUMBER";
22
+ readonly POSTAL_CODE: "POSTAL_CODE";
23
+ };
24
+ export type __TimezoneEstimationMethodsElement =
25
+ (typeof __TimezoneEstimationMethodsElement)[keyof typeof __TimezoneEstimationMethodsElement];
20
26
  export declare const Action: {
21
27
  readonly DEEP_LINK: "DEEP_LINK";
22
28
  readonly OPEN_APP: "OPEN_APP";
@@ -1092,6 +1098,7 @@ export interface WriteJourneyRequest {
1092
1098
  SendingSchedule?: boolean;
1093
1099
  OpenHours?: OpenHours;
1094
1100
  ClosedDays?: ClosedDays;
1101
+ TimezoneEstimationMethods?: (__TimezoneEstimationMethodsElement | string)[];
1095
1102
  }
1096
1103
  export interface CreateJourneyRequest {
1097
1104
  ApplicationId: string | undefined;
@@ -1119,6 +1126,7 @@ export interface JourneyResponse {
1119
1126
  SendingSchedule?: boolean;
1120
1127
  OpenHours?: OpenHours;
1121
1128
  ClosedDays?: ClosedDays;
1129
+ TimezoneEstimationMethods?: (__TimezoneEstimationMethodsElement | string)[];
1122
1130
  }
1123
1131
  export interface CreateJourneyResponse {
1124
1132
  JourneyResponse: JourneyResponse | undefined;
@@ -1891,6 +1899,3 @@ export interface GetCampaignVersionsRequest {
1891
1899
  PageSize?: string;
1892
1900
  Token?: string;
1893
1901
  }
1894
- export interface GetCampaignVersionsResponse {
1895
- CampaignsResponse: CampaignsResponse | undefined;
1896
- }
@@ -21,6 +21,7 @@ import {
21
21
  CampaignHook,
22
22
  CampaignLimits,
23
23
  CampaignResponse,
24
+ CampaignsResponse,
24
25
  ChannelsResponse,
25
26
  DefaultPushNotificationTemplate,
26
27
  DeliveryStatus,
@@ -63,6 +64,9 @@ import {
63
64
  WriteJourneyRequest,
64
65
  WriteSegmentRequest,
65
66
  } from "./models_0";
67
+ export interface GetCampaignVersionsResponse {
68
+ CampaignsResponse: CampaignsResponse | undefined;
69
+ }
66
70
  export interface GetChannelsRequest {
67
71
  ApplicationId: string | undefined;
68
72
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-pinpoint",
3
3
  "description": "AWS SDK for JavaScript Pinpoint Client for Node.js, Browser and React Native",
4
- "version": "3.358.0",
4
+ "version": "3.360.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,9 +21,9 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.358.0",
24
+ "@aws-sdk/client-sts": "3.360.0",
25
25
  "@aws-sdk/config-resolver": "3.357.0",
26
- "@aws-sdk/credential-provider-node": "3.358.0",
26
+ "@aws-sdk/credential-provider-node": "3.360.0",
27
27
  "@aws-sdk/fetch-http-handler": "3.357.0",
28
28
  "@aws-sdk/hash-node": "3.357.0",
29
29
  "@aws-sdk/invalid-dependency": "3.357.0",
@@ -38,15 +38,15 @@
38
38
  "@aws-sdk/middleware-stack": "3.357.0",
39
39
  "@aws-sdk/middleware-user-agent": "3.357.0",
40
40
  "@aws-sdk/node-config-provider": "3.357.0",
41
- "@aws-sdk/node-http-handler": "3.357.0",
42
- "@aws-sdk/smithy-client": "3.358.0",
41
+ "@aws-sdk/node-http-handler": "3.360.0",
42
+ "@aws-sdk/smithy-client": "3.360.0",
43
43
  "@aws-sdk/types": "3.357.0",
44
44
  "@aws-sdk/url-parser": "3.357.0",
45
45
  "@aws-sdk/util-base64": "3.310.0",
46
46
  "@aws-sdk/util-body-length-browser": "3.310.0",
47
47
  "@aws-sdk/util-body-length-node": "3.310.0",
48
- "@aws-sdk/util-defaults-mode-browser": "3.358.0",
49
- "@aws-sdk/util-defaults-mode-node": "3.358.0",
48
+ "@aws-sdk/util-defaults-mode-browser": "3.360.0",
49
+ "@aws-sdk/util-defaults-mode-node": "3.360.0",
50
50
  "@aws-sdk/util-endpoints": "3.357.0",
51
51
  "@aws-sdk/util-retry": "3.357.0",
52
52
  "@aws-sdk/util-user-agent-browser": "3.357.0",