@aws-sdk/client-pinpoint 3.934.0 → 3.935.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 (51) hide show
  1. package/dist-cjs/index.js +188 -188
  2. package/dist-es/index.js +2 -1
  3. package/dist-es/models/enums.js +187 -0
  4. package/dist-es/models/errors.js +129 -0
  5. package/dist-es/models/models_0.js +1 -310
  6. package/dist-es/models/models_1.js +1 -6
  7. package/dist-es/schemas/schemas_0.js +1 -1
  8. package/dist-types/commands/GetCampaignVersionCommand.d.ts +1 -1
  9. package/dist-types/commands/GetCampaignVersionsCommand.d.ts +1 -1
  10. package/dist-types/commands/GetChannelsCommand.d.ts +1 -1
  11. package/dist-types/commands/GetEmailChannelCommand.d.ts +1 -1
  12. package/dist-types/commands/GetEmailTemplateCommand.d.ts +1 -1
  13. package/dist-types/commands/GetEndpointCommand.d.ts +1 -1
  14. package/dist-types/commands/GetEventStreamCommand.d.ts +1 -1
  15. package/dist-types/commands/GetExportJobCommand.d.ts +1 -1
  16. package/dist-types/commands/GetExportJobsCommand.d.ts +1 -1
  17. package/dist-types/commands/GetGcmChannelCommand.d.ts +1 -1
  18. package/dist-types/commands/GetImportJobCommand.d.ts +1 -1
  19. package/dist-types/commands/GetImportJobsCommand.d.ts +1 -1
  20. package/dist-types/commands/GetInAppMessagesCommand.d.ts +1 -1
  21. package/dist-types/commands/GetInAppTemplateCommand.d.ts +1 -1
  22. package/dist-types/commands/GetJourneyCommand.d.ts +2 -1
  23. package/dist-types/index.d.ts +4 -1
  24. package/dist-types/models/enums.d.ts +411 -0
  25. package/dist-types/models/errors.d.ts +178 -0
  26. package/dist-types/models/models_0.d.ts +547 -575
  27. package/dist-types/models/models_1.d.ts +2 -561
  28. package/dist-types/ts3.4/commands/GetCampaignVersionCommand.d.ts +1 -1
  29. package/dist-types/ts3.4/commands/GetCampaignVersionsCommand.d.ts +1 -1
  30. package/dist-types/ts3.4/commands/GetChannelsCommand.d.ts +1 -1
  31. package/dist-types/ts3.4/commands/GetEmailChannelCommand.d.ts +1 -1
  32. package/dist-types/ts3.4/commands/GetEmailTemplateCommand.d.ts +1 -1
  33. package/dist-types/ts3.4/commands/GetEndpointCommand.d.ts +1 -1
  34. package/dist-types/ts3.4/commands/GetEventStreamCommand.d.ts +1 -1
  35. package/dist-types/ts3.4/commands/GetExportJobCommand.d.ts +1 -1
  36. package/dist-types/ts3.4/commands/GetExportJobsCommand.d.ts +1 -1
  37. package/dist-types/ts3.4/commands/GetGcmChannelCommand.d.ts +1 -1
  38. package/dist-types/ts3.4/commands/GetImportJobCommand.d.ts +1 -1
  39. package/dist-types/ts3.4/commands/GetImportJobsCommand.d.ts +1 -1
  40. package/dist-types/ts3.4/commands/GetInAppMessagesCommand.d.ts +1 -1
  41. package/dist-types/ts3.4/commands/GetInAppTemplateCommand.d.ts +1 -1
  42. package/dist-types/ts3.4/commands/GetJourneyCommand.d.ts +2 -1
  43. package/dist-types/ts3.4/index.d.ts +4 -1
  44. package/dist-types/ts3.4/models/enums.d.ts +220 -0
  45. package/dist-types/ts3.4/models/errors.d.ts +68 -0
  46. package/dist-types/ts3.4/models/models_0.d.ts +172 -280
  47. package/dist-types/ts3.4/models/models_1.d.ts +2 -163
  48. package/package.json +12 -12
  49. package/dist-es/models/index.js +0 -2
  50. package/dist-types/models/index.d.ts +0 -2
  51. package/dist-types/ts3.4/models/index.d.ts +0 -2
@@ -3,7 +3,7 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import {
4
4
  GetImportJobsRequest,
5
5
  GetImportJobsResponse,
6
- } from "../models/models_1";
6
+ } from "../models/models_0";
7
7
  import {
8
8
  PinpointClientResolvedConfig,
9
9
  ServiceInputTypes,
@@ -3,7 +3,7 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import {
4
4
  GetInAppMessagesRequest,
5
5
  GetInAppMessagesResponse,
6
- } from "../models/models_1";
6
+ } from "../models/models_0";
7
7
  import {
8
8
  PinpointClientResolvedConfig,
9
9
  ServiceInputTypes,
@@ -3,7 +3,7 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import {
4
4
  GetInAppTemplateRequest,
5
5
  GetInAppTemplateResponse,
6
- } from "../models/models_1";
6
+ } from "../models/models_0";
7
7
  import {
8
8
  PinpointClientResolvedConfig,
9
9
  ServiceInputTypes,
@@ -1,6 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import { GetJourneyRequest, GetJourneyResponse } from "../models/models_1";
3
+ import { GetJourneyRequest } from "../models/models_0";
4
+ import { GetJourneyResponse } from "../models/models_1";
4
5
  import {
5
6
  PinpointClientResolvedConfig,
6
7
  ServiceInputTypes,
@@ -4,5 +4,8 @@ export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
4
4
  export { RuntimeExtension } from "./runtimeExtensions";
5
5
  export { PinpointExtensionConfiguration } from "./extensionConfiguration";
6
6
  export * from "./commands";
7
- export * from "./models";
7
+ export * from "./models/enums";
8
+ export * from "./models/errors";
9
+ export * from "./models/models_0";
10
+ export * from "./models/models_1";
8
11
  export { PinpointServiceException } from "./models/PinpointServiceException";
@@ -0,0 +1,220 @@
1
+ export declare const __EndpointTypesElement: {
2
+ readonly ADM: "ADM";
3
+ readonly APNS: "APNS";
4
+ readonly APNS_SANDBOX: "APNS_SANDBOX";
5
+ readonly APNS_VOIP: "APNS_VOIP";
6
+ readonly APNS_VOIP_SANDBOX: "APNS_VOIP_SANDBOX";
7
+ readonly BAIDU: "BAIDU";
8
+ readonly CUSTOM: "CUSTOM";
9
+ readonly EMAIL: "EMAIL";
10
+ readonly GCM: "GCM";
11
+ readonly IN_APP: "IN_APP";
12
+ readonly PUSH: "PUSH";
13
+ readonly SMS: "SMS";
14
+ readonly VOICE: "VOICE";
15
+ };
16
+ export type __EndpointTypesElement =
17
+ (typeof __EndpointTypesElement)[keyof typeof __EndpointTypesElement];
18
+ export declare const __TimezoneEstimationMethodsElement: {
19
+ readonly PHONE_NUMBER: "PHONE_NUMBER";
20
+ readonly POSTAL_CODE: "POSTAL_CODE";
21
+ };
22
+ export type __TimezoneEstimationMethodsElement =
23
+ (typeof __TimezoneEstimationMethodsElement)[keyof typeof __TimezoneEstimationMethodsElement];
24
+ export declare const Action: {
25
+ readonly DEEP_LINK: "DEEP_LINK";
26
+ readonly OPEN_APP: "OPEN_APP";
27
+ readonly URL: "URL";
28
+ };
29
+ export type Action = (typeof Action)[keyof typeof Action];
30
+ export declare const AttributeType: {
31
+ readonly AFTER: "AFTER";
32
+ readonly BEFORE: "BEFORE";
33
+ readonly BETWEEN: "BETWEEN";
34
+ readonly CONTAINS: "CONTAINS";
35
+ readonly EXCLUSIVE: "EXCLUSIVE";
36
+ readonly INCLUSIVE: "INCLUSIVE";
37
+ readonly ON: "ON";
38
+ };
39
+ export type AttributeType = (typeof AttributeType)[keyof typeof AttributeType];
40
+ export declare const DimensionType: {
41
+ readonly EXCLUSIVE: "EXCLUSIVE";
42
+ readonly INCLUSIVE: "INCLUSIVE";
43
+ };
44
+ export type DimensionType = (typeof DimensionType)[keyof typeof DimensionType];
45
+ export declare const Duration: {
46
+ readonly DAY_14: "DAY_14";
47
+ readonly DAY_30: "DAY_30";
48
+ readonly DAY_7: "DAY_7";
49
+ readonly HR_24: "HR_24";
50
+ };
51
+ export type Duration = (typeof Duration)[keyof typeof Duration];
52
+ export declare const RecencyType: {
53
+ readonly ACTIVE: "ACTIVE";
54
+ readonly INACTIVE: "INACTIVE";
55
+ };
56
+ export type RecencyType = (typeof RecencyType)[keyof typeof RecencyType];
57
+ export declare const Operator: {
58
+ readonly ALL: "ALL";
59
+ readonly ANY: "ANY";
60
+ };
61
+ export type Operator = (typeof Operator)[keyof typeof Operator];
62
+ export declare const MessageType: {
63
+ readonly PROMOTIONAL: "PROMOTIONAL";
64
+ readonly TRANSACTIONAL: "TRANSACTIONAL";
65
+ };
66
+ export type MessageType = (typeof MessageType)[keyof typeof MessageType];
67
+ export declare const ChannelType: {
68
+ readonly ADM: "ADM";
69
+ readonly APNS: "APNS";
70
+ readonly APNS_SANDBOX: "APNS_SANDBOX";
71
+ readonly APNS_VOIP: "APNS_VOIP";
72
+ readonly APNS_VOIP_SANDBOX: "APNS_VOIP_SANDBOX";
73
+ readonly BAIDU: "BAIDU";
74
+ readonly CUSTOM: "CUSTOM";
75
+ readonly EMAIL: "EMAIL";
76
+ readonly GCM: "GCM";
77
+ readonly IN_APP: "IN_APP";
78
+ readonly PUSH: "PUSH";
79
+ readonly SMS: "SMS";
80
+ readonly VOICE: "VOICE";
81
+ };
82
+ export type ChannelType = (typeof ChannelType)[keyof typeof ChannelType];
83
+ export declare const Alignment: {
84
+ readonly CENTER: "CENTER";
85
+ readonly LEFT: "LEFT";
86
+ readonly RIGHT: "RIGHT";
87
+ };
88
+ export type Alignment = (typeof Alignment)[keyof typeof Alignment];
89
+ export declare const Mode: {
90
+ readonly DELIVERY: "DELIVERY";
91
+ readonly FILTER: "FILTER";
92
+ };
93
+ export type Mode = (typeof Mode)[keyof typeof Mode];
94
+ export declare const ButtonAction: {
95
+ readonly CLOSE: "CLOSE";
96
+ readonly DEEP_LINK: "DEEP_LINK";
97
+ readonly LINK: "LINK";
98
+ };
99
+ export type ButtonAction = (typeof ButtonAction)[keyof typeof ButtonAction];
100
+ export declare const FilterType: {
101
+ readonly ENDPOINT: "ENDPOINT";
102
+ readonly SYSTEM: "SYSTEM";
103
+ };
104
+ export type FilterType = (typeof FilterType)[keyof typeof FilterType];
105
+ export declare const Layout: {
106
+ readonly BOTTOM_BANNER: "BOTTOM_BANNER";
107
+ readonly CAROUSEL: "CAROUSEL";
108
+ readonly MIDDLE_BANNER: "MIDDLE_BANNER";
109
+ readonly MOBILE_FEED: "MOBILE_FEED";
110
+ readonly OVERLAYS: "OVERLAYS";
111
+ readonly TOP_BANNER: "TOP_BANNER";
112
+ };
113
+ export type Layout = (typeof Layout)[keyof typeof Layout];
114
+ export declare const Frequency: {
115
+ readonly DAILY: "DAILY";
116
+ readonly EVENT: "EVENT";
117
+ readonly HOURLY: "HOURLY";
118
+ readonly IN_APP_EVENT: "IN_APP_EVENT";
119
+ readonly MONTHLY: "MONTHLY";
120
+ readonly ONCE: "ONCE";
121
+ readonly WEEKLY: "WEEKLY";
122
+ };
123
+ export type Frequency = (typeof Frequency)[keyof typeof Frequency];
124
+ export declare const CampaignStatus: {
125
+ readonly COMPLETED: "COMPLETED";
126
+ readonly DELETED: "DELETED";
127
+ readonly EXECUTING: "EXECUTING";
128
+ readonly INVALID: "INVALID";
129
+ readonly PAUSED: "PAUSED";
130
+ readonly PENDING_NEXT_RUN: "PENDING_NEXT_RUN";
131
+ readonly SCHEDULED: "SCHEDULED";
132
+ };
133
+ export type CampaignStatus =
134
+ (typeof CampaignStatus)[keyof typeof CampaignStatus];
135
+ export declare const JobStatus: {
136
+ readonly COMPLETED: "COMPLETED";
137
+ readonly COMPLETING: "COMPLETING";
138
+ readonly CREATED: "CREATED";
139
+ readonly FAILED: "FAILED";
140
+ readonly FAILING: "FAILING";
141
+ readonly INITIALIZING: "INITIALIZING";
142
+ readonly PENDING_JOB: "PENDING_JOB";
143
+ readonly PREPARING_FOR_INITIALIZATION: "PREPARING_FOR_INITIALIZATION";
144
+ readonly PROCESSING: "PROCESSING";
145
+ };
146
+ export type JobStatus = (typeof JobStatus)[keyof typeof JobStatus];
147
+ export declare const Format: {
148
+ readonly CSV: "CSV";
149
+ readonly JSON: "JSON";
150
+ };
151
+ export type Format = (typeof Format)[keyof typeof Format];
152
+ export declare const DayOfWeek: {
153
+ readonly FRIDAY: "FRIDAY";
154
+ readonly MONDAY: "MONDAY";
155
+ readonly SATURDAY: "SATURDAY";
156
+ readonly SUNDAY: "SUNDAY";
157
+ readonly THURSDAY: "THURSDAY";
158
+ readonly TUESDAY: "TUESDAY";
159
+ readonly WEDNESDAY: "WEDNESDAY";
160
+ };
161
+ export type DayOfWeek = (typeof DayOfWeek)[keyof typeof DayOfWeek];
162
+ export declare const State: {
163
+ readonly ACTIVE: "ACTIVE";
164
+ readonly CANCELLED: "CANCELLED";
165
+ readonly CLOSED: "CLOSED";
166
+ readonly COMPLETED: "COMPLETED";
167
+ readonly DRAFT: "DRAFT";
168
+ readonly PAUSED: "PAUSED";
169
+ };
170
+ export type State = (typeof State)[keyof typeof State];
171
+ export declare const SourceType: {
172
+ readonly ALL: "ALL";
173
+ readonly ANY: "ANY";
174
+ readonly NONE: "NONE";
175
+ };
176
+ export type SourceType = (typeof SourceType)[keyof typeof SourceType];
177
+ export declare const Type: {
178
+ readonly ALL: "ALL";
179
+ readonly ANY: "ANY";
180
+ readonly NONE: "NONE";
181
+ };
182
+ export type Type = (typeof Type)[keyof typeof Type];
183
+ export declare const Include: {
184
+ readonly ALL: "ALL";
185
+ readonly ANY: "ANY";
186
+ readonly NONE: "NONE";
187
+ };
188
+ export type Include = (typeof Include)[keyof typeof Include];
189
+ export declare const SegmentType: {
190
+ readonly DIMENSIONAL: "DIMENSIONAL";
191
+ readonly IMPORT: "IMPORT";
192
+ };
193
+ export type SegmentType = (typeof SegmentType)[keyof typeof SegmentType];
194
+ export declare const DeliveryStatus: {
195
+ readonly DUPLICATE: "DUPLICATE";
196
+ readonly OPT_OUT: "OPT_OUT";
197
+ readonly PERMANENT_FAILURE: "PERMANENT_FAILURE";
198
+ readonly SUCCESSFUL: "SUCCESSFUL";
199
+ readonly TEMPORARY_FAILURE: "TEMPORARY_FAILURE";
200
+ readonly THROTTLED: "THROTTLED";
201
+ readonly UNKNOWN_FAILURE: "UNKNOWN_FAILURE";
202
+ };
203
+ export type DeliveryStatus =
204
+ (typeof DeliveryStatus)[keyof typeof DeliveryStatus];
205
+ export declare const TemplateType: {
206
+ readonly EMAIL: "EMAIL";
207
+ readonly INAPP: "INAPP";
208
+ readonly PUSH: "PUSH";
209
+ readonly SMS: "SMS";
210
+ readonly VOICE: "VOICE";
211
+ };
212
+ export type TemplateType = (typeof TemplateType)[keyof typeof TemplateType];
213
+ export declare const JourneyRunStatus: {
214
+ readonly CANCELLED: "CANCELLED";
215
+ readonly COMPLETED: "COMPLETED";
216
+ readonly RUNNING: "RUNNING";
217
+ readonly SCHEDULED: "SCHEDULED";
218
+ };
219
+ export type JourneyRunStatus =
220
+ (typeof JourneyRunStatus)[keyof typeof JourneyRunStatus];
@@ -0,0 +1,68 @@
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
+ import { PinpointServiceException as __BaseException } from "./PinpointServiceException";
3
+ export declare class BadRequestException extends __BaseException {
4
+ readonly name: "BadRequestException";
5
+ readonly $fault: "client";
6
+ Message?: string | undefined;
7
+ RequestID?: string | undefined;
8
+ constructor(
9
+ opts: __ExceptionOptionType<BadRequestException, __BaseException>
10
+ );
11
+ }
12
+ export declare class ConflictException extends __BaseException {
13
+ readonly name: "ConflictException";
14
+ readonly $fault: "client";
15
+ Message?: string | undefined;
16
+ RequestID?: string | undefined;
17
+ constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
18
+ }
19
+ export declare class ForbiddenException extends __BaseException {
20
+ readonly name: "ForbiddenException";
21
+ readonly $fault: "client";
22
+ Message?: string | undefined;
23
+ RequestID?: string | undefined;
24
+ constructor(opts: __ExceptionOptionType<ForbiddenException, __BaseException>);
25
+ }
26
+ export declare class InternalServerErrorException extends __BaseException {
27
+ readonly name: "InternalServerErrorException";
28
+ readonly $fault: "server";
29
+ Message?: string | undefined;
30
+ RequestID?: string | undefined;
31
+ constructor(
32
+ opts: __ExceptionOptionType<InternalServerErrorException, __BaseException>
33
+ );
34
+ }
35
+ export declare class MethodNotAllowedException extends __BaseException {
36
+ readonly name: "MethodNotAllowedException";
37
+ readonly $fault: "client";
38
+ Message?: string | undefined;
39
+ RequestID?: string | undefined;
40
+ constructor(
41
+ opts: __ExceptionOptionType<MethodNotAllowedException, __BaseException>
42
+ );
43
+ }
44
+ export declare class NotFoundException extends __BaseException {
45
+ readonly name: "NotFoundException";
46
+ readonly $fault: "client";
47
+ Message?: string | undefined;
48
+ RequestID?: string | undefined;
49
+ constructor(opts: __ExceptionOptionType<NotFoundException, __BaseException>);
50
+ }
51
+ export declare class PayloadTooLargeException extends __BaseException {
52
+ readonly name: "PayloadTooLargeException";
53
+ readonly $fault: "client";
54
+ Message?: string | undefined;
55
+ RequestID?: string | undefined;
56
+ constructor(
57
+ opts: __ExceptionOptionType<PayloadTooLargeException, __BaseException>
58
+ );
59
+ }
60
+ export declare class TooManyRequestsException extends __BaseException {
61
+ readonly name: "TooManyRequestsException";
62
+ readonly $fault: "client";
63
+ Message?: string | undefined;
64
+ RequestID?: string | undefined;
65
+ constructor(
66
+ opts: __ExceptionOptionType<TooManyRequestsException, __BaseException>
67
+ );
68
+ }