@aws-sdk/client-pinpoint 3.476.0 → 3.477.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.
- package/dist-cjs/protocols/Aws_restJson1.js +743 -1667
- package/dist-es/protocols/Aws_restJson1.js +744 -1668
- package/package.json +5 -4
|
@@ -5,16 +5,16 @@ exports.se_UpdateApnsSandboxChannelCommand = exports.se_UpdateApnsChannelCommand
|
|
|
5
5
|
exports.de_DeletePushTemplateCommand = exports.de_DeleteJourneyCommand = exports.de_DeleteInAppTemplateCommand = exports.de_DeleteGcmChannelCommand = exports.de_DeleteEventStreamCommand = exports.de_DeleteEndpointCommand = exports.de_DeleteEmailTemplateCommand = exports.de_DeleteEmailChannelCommand = exports.de_DeleteCampaignCommand = exports.de_DeleteBaiduChannelCommand = exports.de_DeleteAppCommand = exports.de_DeleteApnsVoipSandboxChannelCommand = exports.de_DeleteApnsVoipChannelCommand = exports.de_DeleteApnsSandboxChannelCommand = exports.de_DeleteApnsChannelCommand = exports.de_DeleteAdmChannelCommand = exports.de_CreateVoiceTemplateCommand = exports.de_CreateSmsTemplateCommand = exports.de_CreateSegmentCommand = exports.de_CreateRecommenderConfigurationCommand = exports.de_CreatePushTemplateCommand = exports.de_CreateJourneyCommand = exports.de_CreateInAppTemplateCommand = exports.de_CreateImportJobCommand = exports.de_CreateExportJobCommand = exports.de_CreateEmailTemplateCommand = exports.de_CreateCampaignCommand = exports.de_CreateAppCommand = exports.se_VerifyOTPMessageCommand = exports.se_UpdateVoiceTemplateCommand = exports.se_UpdateVoiceChannelCommand = exports.se_UpdateTemplateActiveVersionCommand = exports.se_UpdateSmsTemplateCommand = exports.se_UpdateSmsChannelCommand = exports.se_UpdateSegmentCommand = exports.se_UpdateRecommenderConfigurationCommand = exports.se_UpdatePushTemplateCommand = exports.se_UpdateJourneyStateCommand = exports.se_UpdateJourneyCommand = exports.se_UpdateInAppTemplateCommand = exports.se_UpdateGcmChannelCommand = exports.se_UpdateEndpointsBatchCommand = exports.se_UpdateEndpointCommand = exports.se_UpdateEmailTemplateCommand = exports.se_UpdateEmailChannelCommand = exports.se_UpdateCampaignCommand = exports.se_UpdateBaiduChannelCommand = exports.se_UpdateApplicationSettingsCommand = exports.se_UpdateApnsVoipSandboxChannelCommand = exports.se_UpdateApnsVoipChannelCommand = void 0;
|
|
6
6
|
exports.de_GetSegmentVersionCommand = exports.de_GetSegmentsCommand = exports.de_GetSegmentImportJobsCommand = exports.de_GetSegmentExportJobsCommand = exports.de_GetSegmentCommand = exports.de_GetRecommenderConfigurationsCommand = exports.de_GetRecommenderConfigurationCommand = exports.de_GetPushTemplateCommand = exports.de_GetJourneyRunsCommand = exports.de_GetJourneyRunExecutionMetricsCommand = exports.de_GetJourneyRunExecutionActivityMetricsCommand = exports.de_GetJourneyExecutionMetricsCommand = exports.de_GetJourneyExecutionActivityMetricsCommand = exports.de_GetJourneyDateRangeKpiCommand = exports.de_GetJourneyCommand = exports.de_GetInAppTemplateCommand = exports.de_GetInAppMessagesCommand = exports.de_GetImportJobsCommand = exports.de_GetImportJobCommand = exports.de_GetGcmChannelCommand = exports.de_GetExportJobsCommand = exports.de_GetExportJobCommand = exports.de_GetEventStreamCommand = exports.de_GetEndpointCommand = exports.de_GetEmailTemplateCommand = exports.de_GetEmailChannelCommand = exports.de_GetChannelsCommand = exports.de_GetCampaignVersionsCommand = exports.de_GetCampaignVersionCommand = exports.de_GetCampaignsCommand = exports.de_GetCampaignDateRangeKpiCommand = exports.de_GetCampaignActivitiesCommand = exports.de_GetCampaignCommand = exports.de_GetBaiduChannelCommand = exports.de_GetAppsCommand = exports.de_GetApplicationSettingsCommand = exports.de_GetApplicationDateRangeKpiCommand = exports.de_GetAppCommand = exports.de_GetApnsVoipSandboxChannelCommand = exports.de_GetApnsVoipChannelCommand = exports.de_GetApnsSandboxChannelCommand = exports.de_GetApnsChannelCommand = exports.de_GetAdmChannelCommand = exports.de_DeleteVoiceTemplateCommand = exports.de_DeleteVoiceChannelCommand = exports.de_DeleteUserEndpointsCommand = exports.de_DeleteSmsTemplateCommand = exports.de_DeleteSmsChannelCommand = exports.de_DeleteSegmentCommand = exports.de_DeleteRecommenderConfigurationCommand = void 0;
|
|
7
7
|
exports.de_VerifyOTPMessageCommand = exports.de_UpdateVoiceTemplateCommand = exports.de_UpdateVoiceChannelCommand = exports.de_UpdateTemplateActiveVersionCommand = exports.de_UpdateSmsTemplateCommand = exports.de_UpdateSmsChannelCommand = exports.de_UpdateSegmentCommand = exports.de_UpdateRecommenderConfigurationCommand = exports.de_UpdatePushTemplateCommand = exports.de_UpdateJourneyStateCommand = exports.de_UpdateJourneyCommand = exports.de_UpdateInAppTemplateCommand = exports.de_UpdateGcmChannelCommand = exports.de_UpdateEndpointsBatchCommand = exports.de_UpdateEndpointCommand = exports.de_UpdateEmailTemplateCommand = exports.de_UpdateEmailChannelCommand = exports.de_UpdateCampaignCommand = exports.de_UpdateBaiduChannelCommand = exports.de_UpdateApplicationSettingsCommand = exports.de_UpdateApnsVoipSandboxChannelCommand = exports.de_UpdateApnsVoipChannelCommand = exports.de_UpdateApnsSandboxChannelCommand = exports.de_UpdateApnsChannelCommand = exports.de_UpdateAdmChannelCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_SendUsersMessagesCommand = exports.de_SendOTPMessageCommand = exports.de_SendMessagesCommand = exports.de_RemoveAttributesCommand = exports.de_PutEventStreamCommand = exports.de_PutEventsCommand = exports.de_PhoneNumberValidateCommand = exports.de_ListTemplateVersionsCommand = exports.de_ListTemplatesCommand = exports.de_ListTagsForResourceCommand = exports.de_ListJourneysCommand = exports.de_GetVoiceTemplateCommand = exports.de_GetVoiceChannelCommand = exports.de_GetUserEndpointsCommand = exports.de_GetSmsTemplateCommand = exports.de_GetSmsChannelCommand = exports.de_GetSegmentVersionsCommand = void 0;
|
|
8
|
-
const
|
|
8
|
+
const core_1 = require("@smithy/core");
|
|
9
9
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
10
10
|
const models_0_1 = require("../models/models_0");
|
|
11
11
|
const PinpointServiceException_1 = require("../models/PinpointServiceException");
|
|
12
12
|
const se_CreateAppCommand = async (input, context) => {
|
|
13
|
-
const
|
|
13
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
14
14
|
const headers = {
|
|
15
15
|
"content-type": "application/json",
|
|
16
16
|
};
|
|
17
|
-
|
|
17
|
+
b.bp("/v1/apps");
|
|
18
18
|
let body;
|
|
19
19
|
if (input.CreateApplicationRequest !== undefined) {
|
|
20
20
|
body = se_CreateApplicationRequest(input.CreateApplicationRequest, context);
|
|
@@ -23,24 +23,17 @@ const se_CreateAppCommand = async (input, context) => {
|
|
|
23
23
|
body = {};
|
|
24
24
|
}
|
|
25
25
|
body = JSON.stringify(body);
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
hostname,
|
|
29
|
-
port,
|
|
30
|
-
method: "POST",
|
|
31
|
-
headers,
|
|
32
|
-
path: resolvedPath,
|
|
33
|
-
body,
|
|
34
|
-
});
|
|
26
|
+
b.m("POST").h(headers).b(body);
|
|
27
|
+
return b.build();
|
|
35
28
|
};
|
|
36
29
|
exports.se_CreateAppCommand = se_CreateAppCommand;
|
|
37
30
|
const se_CreateCampaignCommand = async (input, context) => {
|
|
38
|
-
const
|
|
31
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
39
32
|
const headers = {
|
|
40
33
|
"content-type": "application/json",
|
|
41
34
|
};
|
|
42
|
-
|
|
43
|
-
|
|
35
|
+
b.bp("/v1/apps/{ApplicationId}/campaigns");
|
|
36
|
+
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
44
37
|
let body;
|
|
45
38
|
if (input.WriteCampaignRequest !== undefined) {
|
|
46
39
|
body = se_WriteCampaignRequest(input.WriteCampaignRequest, context);
|
|
@@ -49,24 +42,17 @@ const se_CreateCampaignCommand = async (input, context) => {
|
|
|
49
42
|
body = {};
|
|
50
43
|
}
|
|
51
44
|
body = JSON.stringify(body);
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
hostname,
|
|
55
|
-
port,
|
|
56
|
-
method: "POST",
|
|
57
|
-
headers,
|
|
58
|
-
path: resolvedPath,
|
|
59
|
-
body,
|
|
60
|
-
});
|
|
45
|
+
b.m("POST").h(headers).b(body);
|
|
46
|
+
return b.build();
|
|
61
47
|
};
|
|
62
48
|
exports.se_CreateCampaignCommand = se_CreateCampaignCommand;
|
|
63
49
|
const se_CreateEmailTemplateCommand = async (input, context) => {
|
|
64
|
-
const
|
|
50
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
65
51
|
const headers = {
|
|
66
52
|
"content-type": "application/json",
|
|
67
53
|
};
|
|
68
|
-
|
|
69
|
-
|
|
54
|
+
b.bp("/v1/templates/{TemplateName}/email");
|
|
55
|
+
b.p("TemplateName", () => input.TemplateName, "{TemplateName}", false);
|
|
70
56
|
let body;
|
|
71
57
|
if (input.EmailTemplateRequest !== undefined) {
|
|
72
58
|
body = se_EmailTemplateRequest(input.EmailTemplateRequest, context);
|
|
@@ -75,24 +61,17 @@ const se_CreateEmailTemplateCommand = async (input, context) => {
|
|
|
75
61
|
body = {};
|
|
76
62
|
}
|
|
77
63
|
body = JSON.stringify(body);
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
hostname,
|
|
81
|
-
port,
|
|
82
|
-
method: "POST",
|
|
83
|
-
headers,
|
|
84
|
-
path: resolvedPath,
|
|
85
|
-
body,
|
|
86
|
-
});
|
|
64
|
+
b.m("POST").h(headers).b(body);
|
|
65
|
+
return b.build();
|
|
87
66
|
};
|
|
88
67
|
exports.se_CreateEmailTemplateCommand = se_CreateEmailTemplateCommand;
|
|
89
68
|
const se_CreateExportJobCommand = async (input, context) => {
|
|
90
|
-
const
|
|
69
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
91
70
|
const headers = {
|
|
92
71
|
"content-type": "application/json",
|
|
93
72
|
};
|
|
94
|
-
|
|
95
|
-
|
|
73
|
+
b.bp("/v1/apps/{ApplicationId}/jobs/export");
|
|
74
|
+
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
96
75
|
let body;
|
|
97
76
|
if (input.ExportJobRequest !== undefined) {
|
|
98
77
|
body = (0, smithy_client_1._json)(input.ExportJobRequest);
|
|
@@ -101,24 +80,17 @@ const se_CreateExportJobCommand = async (input, context) => {
|
|
|
101
80
|
body = {};
|
|
102
81
|
}
|
|
103
82
|
body = JSON.stringify(body);
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
hostname,
|
|
107
|
-
port,
|
|
108
|
-
method: "POST",
|
|
109
|
-
headers,
|
|
110
|
-
path: resolvedPath,
|
|
111
|
-
body,
|
|
112
|
-
});
|
|
83
|
+
b.m("POST").h(headers).b(body);
|
|
84
|
+
return b.build();
|
|
113
85
|
};
|
|
114
86
|
exports.se_CreateExportJobCommand = se_CreateExportJobCommand;
|
|
115
87
|
const se_CreateImportJobCommand = async (input, context) => {
|
|
116
|
-
const
|
|
88
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
117
89
|
const headers = {
|
|
118
90
|
"content-type": "application/json",
|
|
119
91
|
};
|
|
120
|
-
|
|
121
|
-
|
|
92
|
+
b.bp("/v1/apps/{ApplicationId}/jobs/import");
|
|
93
|
+
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
122
94
|
let body;
|
|
123
95
|
if (input.ImportJobRequest !== undefined) {
|
|
124
96
|
body = (0, smithy_client_1._json)(input.ImportJobRequest);
|
|
@@ -127,24 +99,17 @@ const se_CreateImportJobCommand = async (input, context) => {
|
|
|
127
99
|
body = {};
|
|
128
100
|
}
|
|
129
101
|
body = JSON.stringify(body);
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
hostname,
|
|
133
|
-
port,
|
|
134
|
-
method: "POST",
|
|
135
|
-
headers,
|
|
136
|
-
path: resolvedPath,
|
|
137
|
-
body,
|
|
138
|
-
});
|
|
102
|
+
b.m("POST").h(headers).b(body);
|
|
103
|
+
return b.build();
|
|
139
104
|
};
|
|
140
105
|
exports.se_CreateImportJobCommand = se_CreateImportJobCommand;
|
|
141
106
|
const se_CreateInAppTemplateCommand = async (input, context) => {
|
|
142
|
-
const
|
|
107
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
143
108
|
const headers = {
|
|
144
109
|
"content-type": "application/json",
|
|
145
110
|
};
|
|
146
|
-
|
|
147
|
-
|
|
111
|
+
b.bp("/v1/templates/{TemplateName}/inapp");
|
|
112
|
+
b.p("TemplateName", () => input.TemplateName, "{TemplateName}", false);
|
|
148
113
|
let body;
|
|
149
114
|
if (input.InAppTemplateRequest !== undefined) {
|
|
150
115
|
body = se_InAppTemplateRequest(input.InAppTemplateRequest, context);
|
|
@@ -153,24 +118,17 @@ const se_CreateInAppTemplateCommand = async (input, context) => {
|
|
|
153
118
|
body = {};
|
|
154
119
|
}
|
|
155
120
|
body = JSON.stringify(body);
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
hostname,
|
|
159
|
-
port,
|
|
160
|
-
method: "POST",
|
|
161
|
-
headers,
|
|
162
|
-
path: resolvedPath,
|
|
163
|
-
body,
|
|
164
|
-
});
|
|
121
|
+
b.m("POST").h(headers).b(body);
|
|
122
|
+
return b.build();
|
|
165
123
|
};
|
|
166
124
|
exports.se_CreateInAppTemplateCommand = se_CreateInAppTemplateCommand;
|
|
167
125
|
const se_CreateJourneyCommand = async (input, context) => {
|
|
168
|
-
const
|
|
126
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
169
127
|
const headers = {
|
|
170
128
|
"content-type": "application/json",
|
|
171
129
|
};
|
|
172
|
-
|
|
173
|
-
|
|
130
|
+
b.bp("/v1/apps/{ApplicationId}/journeys");
|
|
131
|
+
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
174
132
|
let body;
|
|
175
133
|
if (input.WriteJourneyRequest !== undefined) {
|
|
176
134
|
body = se_WriteJourneyRequest(input.WriteJourneyRequest, context);
|
|
@@ -179,24 +137,17 @@ const se_CreateJourneyCommand = async (input, context) => {
|
|
|
179
137
|
body = {};
|
|
180
138
|
}
|
|
181
139
|
body = JSON.stringify(body);
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
hostname,
|
|
185
|
-
port,
|
|
186
|
-
method: "POST",
|
|
187
|
-
headers,
|
|
188
|
-
path: resolvedPath,
|
|
189
|
-
body,
|
|
190
|
-
});
|
|
140
|
+
b.m("POST").h(headers).b(body);
|
|
141
|
+
return b.build();
|
|
191
142
|
};
|
|
192
143
|
exports.se_CreateJourneyCommand = se_CreateJourneyCommand;
|
|
193
144
|
const se_CreatePushTemplateCommand = async (input, context) => {
|
|
194
|
-
const
|
|
145
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
195
146
|
const headers = {
|
|
196
147
|
"content-type": "application/json",
|
|
197
148
|
};
|
|
198
|
-
|
|
199
|
-
|
|
149
|
+
b.bp("/v1/templates/{TemplateName}/push");
|
|
150
|
+
b.p("TemplateName", () => input.TemplateName, "{TemplateName}", false);
|
|
200
151
|
let body;
|
|
201
152
|
if (input.PushNotificationTemplateRequest !== undefined) {
|
|
202
153
|
body = se_PushNotificationTemplateRequest(input.PushNotificationTemplateRequest, context);
|
|
@@ -205,23 +156,16 @@ const se_CreatePushTemplateCommand = async (input, context) => {
|
|
|
205
156
|
body = {};
|
|
206
157
|
}
|
|
207
158
|
body = JSON.stringify(body);
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
hostname,
|
|
211
|
-
port,
|
|
212
|
-
method: "POST",
|
|
213
|
-
headers,
|
|
214
|
-
path: resolvedPath,
|
|
215
|
-
body,
|
|
216
|
-
});
|
|
159
|
+
b.m("POST").h(headers).b(body);
|
|
160
|
+
return b.build();
|
|
217
161
|
};
|
|
218
162
|
exports.se_CreatePushTemplateCommand = se_CreatePushTemplateCommand;
|
|
219
163
|
const se_CreateRecommenderConfigurationCommand = async (input, context) => {
|
|
220
|
-
const
|
|
164
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
221
165
|
const headers = {
|
|
222
166
|
"content-type": "application/json",
|
|
223
167
|
};
|
|
224
|
-
|
|
168
|
+
b.bp("/v1/recommenders");
|
|
225
169
|
let body;
|
|
226
170
|
if (input.CreateRecommenderConfiguration !== undefined) {
|
|
227
171
|
body = (0, smithy_client_1._json)(input.CreateRecommenderConfiguration);
|
|
@@ -230,24 +174,17 @@ const se_CreateRecommenderConfigurationCommand = async (input, context) => {
|
|
|
230
174
|
body = {};
|
|
231
175
|
}
|
|
232
176
|
body = JSON.stringify(body);
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
hostname,
|
|
236
|
-
port,
|
|
237
|
-
method: "POST",
|
|
238
|
-
headers,
|
|
239
|
-
path: resolvedPath,
|
|
240
|
-
body,
|
|
241
|
-
});
|
|
177
|
+
b.m("POST").h(headers).b(body);
|
|
178
|
+
return b.build();
|
|
242
179
|
};
|
|
243
180
|
exports.se_CreateRecommenderConfigurationCommand = se_CreateRecommenderConfigurationCommand;
|
|
244
181
|
const se_CreateSegmentCommand = async (input, context) => {
|
|
245
|
-
const
|
|
182
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
246
183
|
const headers = {
|
|
247
184
|
"content-type": "application/json",
|
|
248
185
|
};
|
|
249
|
-
|
|
250
|
-
|
|
186
|
+
b.bp("/v1/apps/{ApplicationId}/segments");
|
|
187
|
+
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
251
188
|
let body;
|
|
252
189
|
if (input.WriteSegmentRequest !== undefined) {
|
|
253
190
|
body = se_WriteSegmentRequest(input.WriteSegmentRequest, context);
|
|
@@ -256,24 +193,17 @@ const se_CreateSegmentCommand = async (input, context) => {
|
|
|
256
193
|
body = {};
|
|
257
194
|
}
|
|
258
195
|
body = JSON.stringify(body);
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
hostname,
|
|
262
|
-
port,
|
|
263
|
-
method: "POST",
|
|
264
|
-
headers,
|
|
265
|
-
path: resolvedPath,
|
|
266
|
-
body,
|
|
267
|
-
});
|
|
196
|
+
b.m("POST").h(headers).b(body);
|
|
197
|
+
return b.build();
|
|
268
198
|
};
|
|
269
199
|
exports.se_CreateSegmentCommand = se_CreateSegmentCommand;
|
|
270
200
|
const se_CreateSmsTemplateCommand = async (input, context) => {
|
|
271
|
-
const
|
|
201
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
272
202
|
const headers = {
|
|
273
203
|
"content-type": "application/json",
|
|
274
204
|
};
|
|
275
|
-
|
|
276
|
-
|
|
205
|
+
b.bp("/v1/templates/{TemplateName}/sms");
|
|
206
|
+
b.p("TemplateName", () => input.TemplateName, "{TemplateName}", false);
|
|
277
207
|
let body;
|
|
278
208
|
if (input.SMSTemplateRequest !== undefined) {
|
|
279
209
|
body = se_SMSTemplateRequest(input.SMSTemplateRequest, context);
|
|
@@ -282,24 +212,17 @@ const se_CreateSmsTemplateCommand = async (input, context) => {
|
|
|
282
212
|
body = {};
|
|
283
213
|
}
|
|
284
214
|
body = JSON.stringify(body);
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
hostname,
|
|
288
|
-
port,
|
|
289
|
-
method: "POST",
|
|
290
|
-
headers,
|
|
291
|
-
path: resolvedPath,
|
|
292
|
-
body,
|
|
293
|
-
});
|
|
215
|
+
b.m("POST").h(headers).b(body);
|
|
216
|
+
return b.build();
|
|
294
217
|
};
|
|
295
218
|
exports.se_CreateSmsTemplateCommand = se_CreateSmsTemplateCommand;
|
|
296
219
|
const se_CreateVoiceTemplateCommand = async (input, context) => {
|
|
297
|
-
const
|
|
220
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
298
221
|
const headers = {
|
|
299
222
|
"content-type": "application/json",
|
|
300
223
|
};
|
|
301
|
-
|
|
302
|
-
|
|
224
|
+
b.bp("/v1/templates/{TemplateName}/voice");
|
|
225
|
+
b.p("TemplateName", () => input.TemplateName, "{TemplateName}", false);
|
|
303
226
|
let body;
|
|
304
227
|
if (input.VoiceTemplateRequest !== undefined) {
|
|
305
228
|
body = se_VoiceTemplateRequest(input.VoiceTemplateRequest, context);
|
|
@@ -308,1549 +231,936 @@ const se_CreateVoiceTemplateCommand = async (input, context) => {
|
|
|
308
231
|
body = {};
|
|
309
232
|
}
|
|
310
233
|
body = JSON.stringify(body);
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
hostname,
|
|
314
|
-
port,
|
|
315
|
-
method: "POST",
|
|
316
|
-
headers,
|
|
317
|
-
path: resolvedPath,
|
|
318
|
-
body,
|
|
319
|
-
});
|
|
234
|
+
b.m("POST").h(headers).b(body);
|
|
235
|
+
return b.build();
|
|
320
236
|
};
|
|
321
237
|
exports.se_CreateVoiceTemplateCommand = se_CreateVoiceTemplateCommand;
|
|
322
238
|
const se_DeleteAdmChannelCommand = async (input, context) => {
|
|
323
|
-
const
|
|
239
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
324
240
|
const headers = {};
|
|
325
|
-
|
|
326
|
-
|
|
241
|
+
b.bp("/v1/apps/{ApplicationId}/channels/adm");
|
|
242
|
+
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
327
243
|
let body;
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
hostname,
|
|
331
|
-
port,
|
|
332
|
-
method: "DELETE",
|
|
333
|
-
headers,
|
|
334
|
-
path: resolvedPath,
|
|
335
|
-
body,
|
|
336
|
-
});
|
|
244
|
+
b.m("DELETE").h(headers).b(body);
|
|
245
|
+
return b.build();
|
|
337
246
|
};
|
|
338
247
|
exports.se_DeleteAdmChannelCommand = se_DeleteAdmChannelCommand;
|
|
339
248
|
const se_DeleteApnsChannelCommand = async (input, context) => {
|
|
340
|
-
const
|
|
249
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
341
250
|
const headers = {};
|
|
342
|
-
|
|
343
|
-
|
|
251
|
+
b.bp("/v1/apps/{ApplicationId}/channels/apns");
|
|
252
|
+
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
344
253
|
let body;
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
hostname,
|
|
348
|
-
port,
|
|
349
|
-
method: "DELETE",
|
|
350
|
-
headers,
|
|
351
|
-
path: resolvedPath,
|
|
352
|
-
body,
|
|
353
|
-
});
|
|
254
|
+
b.m("DELETE").h(headers).b(body);
|
|
255
|
+
return b.build();
|
|
354
256
|
};
|
|
355
257
|
exports.se_DeleteApnsChannelCommand = se_DeleteApnsChannelCommand;
|
|
356
258
|
const se_DeleteApnsSandboxChannelCommand = async (input, context) => {
|
|
357
|
-
const
|
|
259
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
358
260
|
const headers = {};
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
261
|
+
b.bp("/v1/apps/{ApplicationId}/channels/apns_sandbox");
|
|
262
|
+
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
362
263
|
let body;
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
hostname,
|
|
366
|
-
port,
|
|
367
|
-
method: "DELETE",
|
|
368
|
-
headers,
|
|
369
|
-
path: resolvedPath,
|
|
370
|
-
body,
|
|
371
|
-
});
|
|
264
|
+
b.m("DELETE").h(headers).b(body);
|
|
265
|
+
return b.build();
|
|
372
266
|
};
|
|
373
267
|
exports.se_DeleteApnsSandboxChannelCommand = se_DeleteApnsSandboxChannelCommand;
|
|
374
268
|
const se_DeleteApnsVoipChannelCommand = async (input, context) => {
|
|
375
|
-
const
|
|
269
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
376
270
|
const headers = {};
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
271
|
+
b.bp("/v1/apps/{ApplicationId}/channels/apns_voip");
|
|
272
|
+
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
380
273
|
let body;
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
hostname,
|
|
384
|
-
port,
|
|
385
|
-
method: "DELETE",
|
|
386
|
-
headers,
|
|
387
|
-
path: resolvedPath,
|
|
388
|
-
body,
|
|
389
|
-
});
|
|
274
|
+
b.m("DELETE").h(headers).b(body);
|
|
275
|
+
return b.build();
|
|
390
276
|
};
|
|
391
277
|
exports.se_DeleteApnsVoipChannelCommand = se_DeleteApnsVoipChannelCommand;
|
|
392
278
|
const se_DeleteApnsVoipSandboxChannelCommand = async (input, context) => {
|
|
393
|
-
const
|
|
279
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
394
280
|
const headers = {};
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
281
|
+
b.bp("/v1/apps/{ApplicationId}/channels/apns_voip_sandbox");
|
|
282
|
+
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
398
283
|
let body;
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
hostname,
|
|
402
|
-
port,
|
|
403
|
-
method: "DELETE",
|
|
404
|
-
headers,
|
|
405
|
-
path: resolvedPath,
|
|
406
|
-
body,
|
|
407
|
-
});
|
|
284
|
+
b.m("DELETE").h(headers).b(body);
|
|
285
|
+
return b.build();
|
|
408
286
|
};
|
|
409
287
|
exports.se_DeleteApnsVoipSandboxChannelCommand = se_DeleteApnsVoipSandboxChannelCommand;
|
|
410
288
|
const se_DeleteAppCommand = async (input, context) => {
|
|
411
|
-
const
|
|
289
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
412
290
|
const headers = {};
|
|
413
|
-
|
|
414
|
-
|
|
291
|
+
b.bp("/v1/apps/{ApplicationId}");
|
|
292
|
+
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
415
293
|
let body;
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
hostname,
|
|
419
|
-
port,
|
|
420
|
-
method: "DELETE",
|
|
421
|
-
headers,
|
|
422
|
-
path: resolvedPath,
|
|
423
|
-
body,
|
|
424
|
-
});
|
|
294
|
+
b.m("DELETE").h(headers).b(body);
|
|
295
|
+
return b.build();
|
|
425
296
|
};
|
|
426
297
|
exports.se_DeleteAppCommand = se_DeleteAppCommand;
|
|
427
298
|
const se_DeleteBaiduChannelCommand = async (input, context) => {
|
|
428
|
-
const
|
|
299
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
429
300
|
const headers = {};
|
|
430
|
-
|
|
431
|
-
|
|
301
|
+
b.bp("/v1/apps/{ApplicationId}/channels/baidu");
|
|
302
|
+
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
432
303
|
let body;
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
hostname,
|
|
436
|
-
port,
|
|
437
|
-
method: "DELETE",
|
|
438
|
-
headers,
|
|
439
|
-
path: resolvedPath,
|
|
440
|
-
body,
|
|
441
|
-
});
|
|
304
|
+
b.m("DELETE").h(headers).b(body);
|
|
305
|
+
return b.build();
|
|
442
306
|
};
|
|
443
307
|
exports.se_DeleteBaiduChannelCommand = se_DeleteBaiduChannelCommand;
|
|
444
308
|
const se_DeleteCampaignCommand = async (input, context) => {
|
|
445
|
-
const
|
|
309
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
446
310
|
const headers = {};
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CampaignId", () => input.CampaignId, "{CampaignId}", false);
|
|
311
|
+
b.bp("/v1/apps/{ApplicationId}/campaigns/{CampaignId}");
|
|
312
|
+
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
313
|
+
b.p("CampaignId", () => input.CampaignId, "{CampaignId}", false);
|
|
451
314
|
let body;
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
hostname,
|
|
455
|
-
port,
|
|
456
|
-
method: "DELETE",
|
|
457
|
-
headers,
|
|
458
|
-
path: resolvedPath,
|
|
459
|
-
body,
|
|
460
|
-
});
|
|
315
|
+
b.m("DELETE").h(headers).b(body);
|
|
316
|
+
return b.build();
|
|
461
317
|
};
|
|
462
318
|
exports.se_DeleteCampaignCommand = se_DeleteCampaignCommand;
|
|
463
319
|
const se_DeleteEmailChannelCommand = async (input, context) => {
|
|
464
|
-
const
|
|
320
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
465
321
|
const headers = {};
|
|
466
|
-
|
|
467
|
-
|
|
322
|
+
b.bp("/v1/apps/{ApplicationId}/channels/email");
|
|
323
|
+
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
468
324
|
let body;
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
hostname,
|
|
472
|
-
port,
|
|
473
|
-
method: "DELETE",
|
|
474
|
-
headers,
|
|
475
|
-
path: resolvedPath,
|
|
476
|
-
body,
|
|
477
|
-
});
|
|
325
|
+
b.m("DELETE").h(headers).b(body);
|
|
326
|
+
return b.build();
|
|
478
327
|
};
|
|
479
328
|
exports.se_DeleteEmailChannelCommand = se_DeleteEmailChannelCommand;
|
|
480
329
|
const se_DeleteEmailTemplateCommand = async (input, context) => {
|
|
481
|
-
const
|
|
330
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
482
331
|
const headers = {};
|
|
483
|
-
|
|
484
|
-
|
|
332
|
+
b.bp("/v1/templates/{TemplateName}/email");
|
|
333
|
+
b.p("TemplateName", () => input.TemplateName, "{TemplateName}", false);
|
|
485
334
|
const query = (0, smithy_client_1.map)({
|
|
486
|
-
|
|
335
|
+
[_v]: [, input[_V]],
|
|
487
336
|
});
|
|
488
337
|
let body;
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
hostname,
|
|
492
|
-
port,
|
|
493
|
-
method: "DELETE",
|
|
494
|
-
headers,
|
|
495
|
-
path: resolvedPath,
|
|
496
|
-
query,
|
|
497
|
-
body,
|
|
498
|
-
});
|
|
338
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
339
|
+
return b.build();
|
|
499
340
|
};
|
|
500
341
|
exports.se_DeleteEmailTemplateCommand = se_DeleteEmailTemplateCommand;
|
|
501
342
|
const se_DeleteEndpointCommand = async (input, context) => {
|
|
502
|
-
const
|
|
343
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
503
344
|
const headers = {};
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EndpointId", () => input.EndpointId, "{EndpointId}", false);
|
|
345
|
+
b.bp("/v1/apps/{ApplicationId}/endpoints/{EndpointId}");
|
|
346
|
+
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
347
|
+
b.p("EndpointId", () => input.EndpointId, "{EndpointId}", false);
|
|
508
348
|
let body;
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
hostname,
|
|
512
|
-
port,
|
|
513
|
-
method: "DELETE",
|
|
514
|
-
headers,
|
|
515
|
-
path: resolvedPath,
|
|
516
|
-
body,
|
|
517
|
-
});
|
|
349
|
+
b.m("DELETE").h(headers).b(body);
|
|
350
|
+
return b.build();
|
|
518
351
|
};
|
|
519
352
|
exports.se_DeleteEndpointCommand = se_DeleteEndpointCommand;
|
|
520
353
|
const se_DeleteEventStreamCommand = async (input, context) => {
|
|
521
|
-
const
|
|
354
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
522
355
|
const headers = {};
|
|
523
|
-
|
|
524
|
-
|
|
356
|
+
b.bp("/v1/apps/{ApplicationId}/eventstream");
|
|
357
|
+
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
525
358
|
let body;
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
hostname,
|
|
529
|
-
port,
|
|
530
|
-
method: "DELETE",
|
|
531
|
-
headers,
|
|
532
|
-
path: resolvedPath,
|
|
533
|
-
body,
|
|
534
|
-
});
|
|
359
|
+
b.m("DELETE").h(headers).b(body);
|
|
360
|
+
return b.build();
|
|
535
361
|
};
|
|
536
362
|
exports.se_DeleteEventStreamCommand = se_DeleteEventStreamCommand;
|
|
537
363
|
const se_DeleteGcmChannelCommand = async (input, context) => {
|
|
538
|
-
const
|
|
364
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
539
365
|
const headers = {};
|
|
540
|
-
|
|
541
|
-
|
|
366
|
+
b.bp("/v1/apps/{ApplicationId}/channels/gcm");
|
|
367
|
+
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
542
368
|
let body;
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
hostname,
|
|
546
|
-
port,
|
|
547
|
-
method: "DELETE",
|
|
548
|
-
headers,
|
|
549
|
-
path: resolvedPath,
|
|
550
|
-
body,
|
|
551
|
-
});
|
|
369
|
+
b.m("DELETE").h(headers).b(body);
|
|
370
|
+
return b.build();
|
|
552
371
|
};
|
|
553
372
|
exports.se_DeleteGcmChannelCommand = se_DeleteGcmChannelCommand;
|
|
554
373
|
const se_DeleteInAppTemplateCommand = async (input, context) => {
|
|
555
|
-
const
|
|
374
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
556
375
|
const headers = {};
|
|
557
|
-
|
|
558
|
-
|
|
376
|
+
b.bp("/v1/templates/{TemplateName}/inapp");
|
|
377
|
+
b.p("TemplateName", () => input.TemplateName, "{TemplateName}", false);
|
|
559
378
|
const query = (0, smithy_client_1.map)({
|
|
560
|
-
|
|
379
|
+
[_v]: [, input[_V]],
|
|
561
380
|
});
|
|
562
381
|
let body;
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
hostname,
|
|
566
|
-
port,
|
|
567
|
-
method: "DELETE",
|
|
568
|
-
headers,
|
|
569
|
-
path: resolvedPath,
|
|
570
|
-
query,
|
|
571
|
-
body,
|
|
572
|
-
});
|
|
382
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
383
|
+
return b.build();
|
|
573
384
|
};
|
|
574
385
|
exports.se_DeleteInAppTemplateCommand = se_DeleteInAppTemplateCommand;
|
|
575
386
|
const se_DeleteJourneyCommand = async (input, context) => {
|
|
576
|
-
const
|
|
387
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
577
388
|
const headers = {};
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "JourneyId", () => input.JourneyId, "{JourneyId}", false);
|
|
389
|
+
b.bp("/v1/apps/{ApplicationId}/journeys/{JourneyId}");
|
|
390
|
+
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
391
|
+
b.p("JourneyId", () => input.JourneyId, "{JourneyId}", false);
|
|
582
392
|
let body;
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
hostname,
|
|
586
|
-
port,
|
|
587
|
-
method: "DELETE",
|
|
588
|
-
headers,
|
|
589
|
-
path: resolvedPath,
|
|
590
|
-
body,
|
|
591
|
-
});
|
|
393
|
+
b.m("DELETE").h(headers).b(body);
|
|
394
|
+
return b.build();
|
|
592
395
|
};
|
|
593
396
|
exports.se_DeleteJourneyCommand = se_DeleteJourneyCommand;
|
|
594
397
|
const se_DeletePushTemplateCommand = async (input, context) => {
|
|
595
|
-
const
|
|
398
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
596
399
|
const headers = {};
|
|
597
|
-
|
|
598
|
-
|
|
400
|
+
b.bp("/v1/templates/{TemplateName}/push");
|
|
401
|
+
b.p("TemplateName", () => input.TemplateName, "{TemplateName}", false);
|
|
599
402
|
const query = (0, smithy_client_1.map)({
|
|
600
|
-
|
|
403
|
+
[_v]: [, input[_V]],
|
|
601
404
|
});
|
|
602
405
|
let body;
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
hostname,
|
|
606
|
-
port,
|
|
607
|
-
method: "DELETE",
|
|
608
|
-
headers,
|
|
609
|
-
path: resolvedPath,
|
|
610
|
-
query,
|
|
611
|
-
body,
|
|
612
|
-
});
|
|
406
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
407
|
+
return b.build();
|
|
613
408
|
};
|
|
614
409
|
exports.se_DeletePushTemplateCommand = se_DeletePushTemplateCommand;
|
|
615
410
|
const se_DeleteRecommenderConfigurationCommand = async (input, context) => {
|
|
616
|
-
const
|
|
411
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
617
412
|
const headers = {};
|
|
618
|
-
|
|
619
|
-
|
|
413
|
+
b.bp("/v1/recommenders/{RecommenderId}");
|
|
414
|
+
b.p("RecommenderId", () => input.RecommenderId, "{RecommenderId}", false);
|
|
620
415
|
let body;
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
hostname,
|
|
624
|
-
port,
|
|
625
|
-
method: "DELETE",
|
|
626
|
-
headers,
|
|
627
|
-
path: resolvedPath,
|
|
628
|
-
body,
|
|
629
|
-
});
|
|
416
|
+
b.m("DELETE").h(headers).b(body);
|
|
417
|
+
return b.build();
|
|
630
418
|
};
|
|
631
419
|
exports.se_DeleteRecommenderConfigurationCommand = se_DeleteRecommenderConfigurationCommand;
|
|
632
420
|
const se_DeleteSegmentCommand = async (input, context) => {
|
|
633
|
-
const
|
|
421
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
634
422
|
const headers = {};
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SegmentId", () => input.SegmentId, "{SegmentId}", false);
|
|
423
|
+
b.bp("/v1/apps/{ApplicationId}/segments/{SegmentId}");
|
|
424
|
+
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
425
|
+
b.p("SegmentId", () => input.SegmentId, "{SegmentId}", false);
|
|
639
426
|
let body;
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
hostname,
|
|
643
|
-
port,
|
|
644
|
-
method: "DELETE",
|
|
645
|
-
headers,
|
|
646
|
-
path: resolvedPath,
|
|
647
|
-
body,
|
|
648
|
-
});
|
|
427
|
+
b.m("DELETE").h(headers).b(body);
|
|
428
|
+
return b.build();
|
|
649
429
|
};
|
|
650
430
|
exports.se_DeleteSegmentCommand = se_DeleteSegmentCommand;
|
|
651
431
|
const se_DeleteSmsChannelCommand = async (input, context) => {
|
|
652
|
-
const
|
|
432
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
653
433
|
const headers = {};
|
|
654
|
-
|
|
655
|
-
|
|
434
|
+
b.bp("/v1/apps/{ApplicationId}/channels/sms");
|
|
435
|
+
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
656
436
|
let body;
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
hostname,
|
|
660
|
-
port,
|
|
661
|
-
method: "DELETE",
|
|
662
|
-
headers,
|
|
663
|
-
path: resolvedPath,
|
|
664
|
-
body,
|
|
665
|
-
});
|
|
437
|
+
b.m("DELETE").h(headers).b(body);
|
|
438
|
+
return b.build();
|
|
666
439
|
};
|
|
667
440
|
exports.se_DeleteSmsChannelCommand = se_DeleteSmsChannelCommand;
|
|
668
441
|
const se_DeleteSmsTemplateCommand = async (input, context) => {
|
|
669
|
-
const
|
|
442
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
670
443
|
const headers = {};
|
|
671
|
-
|
|
672
|
-
|
|
444
|
+
b.bp("/v1/templates/{TemplateName}/sms");
|
|
445
|
+
b.p("TemplateName", () => input.TemplateName, "{TemplateName}", false);
|
|
673
446
|
const query = (0, smithy_client_1.map)({
|
|
674
|
-
|
|
447
|
+
[_v]: [, input[_V]],
|
|
675
448
|
});
|
|
676
449
|
let body;
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
hostname,
|
|
680
|
-
port,
|
|
681
|
-
method: "DELETE",
|
|
682
|
-
headers,
|
|
683
|
-
path: resolvedPath,
|
|
684
|
-
query,
|
|
685
|
-
body,
|
|
686
|
-
});
|
|
450
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
451
|
+
return b.build();
|
|
687
452
|
};
|
|
688
453
|
exports.se_DeleteSmsTemplateCommand = se_DeleteSmsTemplateCommand;
|
|
689
454
|
const se_DeleteUserEndpointsCommand = async (input, context) => {
|
|
690
|
-
const
|
|
455
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
691
456
|
const headers = {};
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
457
|
+
b.bp("/v1/apps/{ApplicationId}/users/{UserId}");
|
|
458
|
+
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
459
|
+
b.p("UserId", () => input.UserId, "{UserId}", false);
|
|
695
460
|
let body;
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
hostname,
|
|
699
|
-
port,
|
|
700
|
-
method: "DELETE",
|
|
701
|
-
headers,
|
|
702
|
-
path: resolvedPath,
|
|
703
|
-
body,
|
|
704
|
-
});
|
|
461
|
+
b.m("DELETE").h(headers).b(body);
|
|
462
|
+
return b.build();
|
|
705
463
|
};
|
|
706
464
|
exports.se_DeleteUserEndpointsCommand = se_DeleteUserEndpointsCommand;
|
|
707
465
|
const se_DeleteVoiceChannelCommand = async (input, context) => {
|
|
708
|
-
const
|
|
466
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
709
467
|
const headers = {};
|
|
710
|
-
|
|
711
|
-
|
|
468
|
+
b.bp("/v1/apps/{ApplicationId}/channels/voice");
|
|
469
|
+
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
712
470
|
let body;
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
hostname,
|
|
716
|
-
port,
|
|
717
|
-
method: "DELETE",
|
|
718
|
-
headers,
|
|
719
|
-
path: resolvedPath,
|
|
720
|
-
body,
|
|
721
|
-
});
|
|
471
|
+
b.m("DELETE").h(headers).b(body);
|
|
472
|
+
return b.build();
|
|
722
473
|
};
|
|
723
474
|
exports.se_DeleteVoiceChannelCommand = se_DeleteVoiceChannelCommand;
|
|
724
475
|
const se_DeleteVoiceTemplateCommand = async (input, context) => {
|
|
725
|
-
const
|
|
476
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
726
477
|
const headers = {};
|
|
727
|
-
|
|
728
|
-
|
|
478
|
+
b.bp("/v1/templates/{TemplateName}/voice");
|
|
479
|
+
b.p("TemplateName", () => input.TemplateName, "{TemplateName}", false);
|
|
729
480
|
const query = (0, smithy_client_1.map)({
|
|
730
|
-
|
|
481
|
+
[_v]: [, input[_V]],
|
|
731
482
|
});
|
|
732
483
|
let body;
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
hostname,
|
|
736
|
-
port,
|
|
737
|
-
method: "DELETE",
|
|
738
|
-
headers,
|
|
739
|
-
path: resolvedPath,
|
|
740
|
-
query,
|
|
741
|
-
body,
|
|
742
|
-
});
|
|
484
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
485
|
+
return b.build();
|
|
743
486
|
};
|
|
744
487
|
exports.se_DeleteVoiceTemplateCommand = se_DeleteVoiceTemplateCommand;
|
|
745
488
|
const se_GetAdmChannelCommand = async (input, context) => {
|
|
746
|
-
const
|
|
489
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
747
490
|
const headers = {};
|
|
748
|
-
|
|
749
|
-
|
|
491
|
+
b.bp("/v1/apps/{ApplicationId}/channels/adm");
|
|
492
|
+
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
750
493
|
let body;
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
hostname,
|
|
754
|
-
port,
|
|
755
|
-
method: "GET",
|
|
756
|
-
headers,
|
|
757
|
-
path: resolvedPath,
|
|
758
|
-
body,
|
|
759
|
-
});
|
|
494
|
+
b.m("GET").h(headers).b(body);
|
|
495
|
+
return b.build();
|
|
760
496
|
};
|
|
761
497
|
exports.se_GetAdmChannelCommand = se_GetAdmChannelCommand;
|
|
762
498
|
const se_GetApnsChannelCommand = async (input, context) => {
|
|
763
|
-
const
|
|
499
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
764
500
|
const headers = {};
|
|
765
|
-
|
|
766
|
-
|
|
501
|
+
b.bp("/v1/apps/{ApplicationId}/channels/apns");
|
|
502
|
+
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
767
503
|
let body;
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
hostname,
|
|
771
|
-
port,
|
|
772
|
-
method: "GET",
|
|
773
|
-
headers,
|
|
774
|
-
path: resolvedPath,
|
|
775
|
-
body,
|
|
776
|
-
});
|
|
504
|
+
b.m("GET").h(headers).b(body);
|
|
505
|
+
return b.build();
|
|
777
506
|
};
|
|
778
507
|
exports.se_GetApnsChannelCommand = se_GetApnsChannelCommand;
|
|
779
508
|
const se_GetApnsSandboxChannelCommand = async (input, context) => {
|
|
780
|
-
const
|
|
509
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
781
510
|
const headers = {};
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
511
|
+
b.bp("/v1/apps/{ApplicationId}/channels/apns_sandbox");
|
|
512
|
+
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
785
513
|
let body;
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
hostname,
|
|
789
|
-
port,
|
|
790
|
-
method: "GET",
|
|
791
|
-
headers,
|
|
792
|
-
path: resolvedPath,
|
|
793
|
-
body,
|
|
794
|
-
});
|
|
514
|
+
b.m("GET").h(headers).b(body);
|
|
515
|
+
return b.build();
|
|
795
516
|
};
|
|
796
517
|
exports.se_GetApnsSandboxChannelCommand = se_GetApnsSandboxChannelCommand;
|
|
797
518
|
const se_GetApnsVoipChannelCommand = async (input, context) => {
|
|
798
|
-
const
|
|
519
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
799
520
|
const headers = {};
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
521
|
+
b.bp("/v1/apps/{ApplicationId}/channels/apns_voip");
|
|
522
|
+
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
803
523
|
let body;
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
hostname,
|
|
807
|
-
port,
|
|
808
|
-
method: "GET",
|
|
809
|
-
headers,
|
|
810
|
-
path: resolvedPath,
|
|
811
|
-
body,
|
|
812
|
-
});
|
|
524
|
+
b.m("GET").h(headers).b(body);
|
|
525
|
+
return b.build();
|
|
813
526
|
};
|
|
814
527
|
exports.se_GetApnsVoipChannelCommand = se_GetApnsVoipChannelCommand;
|
|
815
528
|
const se_GetApnsVoipSandboxChannelCommand = async (input, context) => {
|
|
816
|
-
const
|
|
529
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
817
530
|
const headers = {};
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
531
|
+
b.bp("/v1/apps/{ApplicationId}/channels/apns_voip_sandbox");
|
|
532
|
+
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
821
533
|
let body;
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
hostname,
|
|
825
|
-
port,
|
|
826
|
-
method: "GET",
|
|
827
|
-
headers,
|
|
828
|
-
path: resolvedPath,
|
|
829
|
-
body,
|
|
830
|
-
});
|
|
534
|
+
b.m("GET").h(headers).b(body);
|
|
535
|
+
return b.build();
|
|
831
536
|
};
|
|
832
537
|
exports.se_GetApnsVoipSandboxChannelCommand = se_GetApnsVoipSandboxChannelCommand;
|
|
833
538
|
const se_GetAppCommand = async (input, context) => {
|
|
834
|
-
const
|
|
539
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
835
540
|
const headers = {};
|
|
836
|
-
|
|
837
|
-
|
|
541
|
+
b.bp("/v1/apps/{ApplicationId}");
|
|
542
|
+
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
838
543
|
let body;
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
hostname,
|
|
842
|
-
port,
|
|
843
|
-
method: "GET",
|
|
844
|
-
headers,
|
|
845
|
-
path: resolvedPath,
|
|
846
|
-
body,
|
|
847
|
-
});
|
|
544
|
+
b.m("GET").h(headers).b(body);
|
|
545
|
+
return b.build();
|
|
848
546
|
};
|
|
849
547
|
exports.se_GetAppCommand = se_GetAppCommand;
|
|
850
548
|
const se_GetApplicationDateRangeKpiCommand = async (input, context) => {
|
|
851
|
-
const
|
|
549
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
852
550
|
const headers = {};
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "KpiName", () => input.KpiName, "{KpiName}", false);
|
|
551
|
+
b.bp("/v1/apps/{ApplicationId}/kpis/daterange/{KpiName}");
|
|
552
|
+
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
553
|
+
b.p("KpiName", () => input.KpiName, "{KpiName}", false);
|
|
857
554
|
const query = (0, smithy_client_1.map)({
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
"
|
|
862
|
-
() => input.StartTime !== void 0,
|
|
863
|
-
() => (input.StartTime.toISOString().split(".")[0] + "Z").toString(),
|
|
864
|
-
],
|
|
555
|
+
[_et]: [() => input.EndTime !== void 0, () => (input[_ET].toISOString().split(".")[0] + "Z").toString()],
|
|
556
|
+
[_nt]: [, input[_NT]],
|
|
557
|
+
[_ps]: [, input[_PS]],
|
|
558
|
+
[_st]: [() => input.StartTime !== void 0, () => (input[_ST].toISOString().split(".")[0] + "Z").toString()],
|
|
865
559
|
});
|
|
866
560
|
let body;
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
hostname,
|
|
870
|
-
port,
|
|
871
|
-
method: "GET",
|
|
872
|
-
headers,
|
|
873
|
-
path: resolvedPath,
|
|
874
|
-
query,
|
|
875
|
-
body,
|
|
876
|
-
});
|
|
561
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
562
|
+
return b.build();
|
|
877
563
|
};
|
|
878
564
|
exports.se_GetApplicationDateRangeKpiCommand = se_GetApplicationDateRangeKpiCommand;
|
|
879
565
|
const se_GetApplicationSettingsCommand = async (input, context) => {
|
|
880
|
-
const
|
|
566
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
881
567
|
const headers = {};
|
|
882
|
-
|
|
883
|
-
|
|
568
|
+
b.bp("/v1/apps/{ApplicationId}/settings");
|
|
569
|
+
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
884
570
|
let body;
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
hostname,
|
|
888
|
-
port,
|
|
889
|
-
method: "GET",
|
|
890
|
-
headers,
|
|
891
|
-
path: resolvedPath,
|
|
892
|
-
body,
|
|
893
|
-
});
|
|
571
|
+
b.m("GET").h(headers).b(body);
|
|
572
|
+
return b.build();
|
|
894
573
|
};
|
|
895
574
|
exports.se_GetApplicationSettingsCommand = se_GetApplicationSettingsCommand;
|
|
896
575
|
const se_GetAppsCommand = async (input, context) => {
|
|
897
|
-
const
|
|
576
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
898
577
|
const headers = {};
|
|
899
|
-
|
|
578
|
+
b.bp("/v1/apps");
|
|
900
579
|
const query = (0, smithy_client_1.map)({
|
|
901
|
-
|
|
902
|
-
|
|
580
|
+
[_ps]: [, input[_PS]],
|
|
581
|
+
[_t]: [, input[_T]],
|
|
903
582
|
});
|
|
904
583
|
let body;
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
hostname,
|
|
908
|
-
port,
|
|
909
|
-
method: "GET",
|
|
910
|
-
headers,
|
|
911
|
-
path: resolvedPath,
|
|
912
|
-
query,
|
|
913
|
-
body,
|
|
914
|
-
});
|
|
584
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
585
|
+
return b.build();
|
|
915
586
|
};
|
|
916
587
|
exports.se_GetAppsCommand = se_GetAppsCommand;
|
|
917
588
|
const se_GetBaiduChannelCommand = async (input, context) => {
|
|
918
|
-
const
|
|
589
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
919
590
|
const headers = {};
|
|
920
|
-
|
|
921
|
-
|
|
591
|
+
b.bp("/v1/apps/{ApplicationId}/channels/baidu");
|
|
592
|
+
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
922
593
|
let body;
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
hostname,
|
|
926
|
-
port,
|
|
927
|
-
method: "GET",
|
|
928
|
-
headers,
|
|
929
|
-
path: resolvedPath,
|
|
930
|
-
body,
|
|
931
|
-
});
|
|
594
|
+
b.m("GET").h(headers).b(body);
|
|
595
|
+
return b.build();
|
|
932
596
|
};
|
|
933
597
|
exports.se_GetBaiduChannelCommand = se_GetBaiduChannelCommand;
|
|
934
598
|
const se_GetCampaignCommand = async (input, context) => {
|
|
935
|
-
const
|
|
599
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
936
600
|
const headers = {};
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CampaignId", () => input.CampaignId, "{CampaignId}", false);
|
|
601
|
+
b.bp("/v1/apps/{ApplicationId}/campaigns/{CampaignId}");
|
|
602
|
+
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
603
|
+
b.p("CampaignId", () => input.CampaignId, "{CampaignId}", false);
|
|
941
604
|
let body;
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
hostname,
|
|
945
|
-
port,
|
|
946
|
-
method: "GET",
|
|
947
|
-
headers,
|
|
948
|
-
path: resolvedPath,
|
|
949
|
-
body,
|
|
950
|
-
});
|
|
605
|
+
b.m("GET").h(headers).b(body);
|
|
606
|
+
return b.build();
|
|
951
607
|
};
|
|
952
608
|
exports.se_GetCampaignCommand = se_GetCampaignCommand;
|
|
953
609
|
const se_GetCampaignActivitiesCommand = async (input, context) => {
|
|
954
|
-
const
|
|
610
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
955
611
|
const headers = {};
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CampaignId", () => input.CampaignId, "{CampaignId}", false);
|
|
612
|
+
b.bp("/v1/apps/{ApplicationId}/campaigns/{CampaignId}/activities");
|
|
613
|
+
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
614
|
+
b.p("CampaignId", () => input.CampaignId, "{CampaignId}", false);
|
|
960
615
|
const query = (0, smithy_client_1.map)({
|
|
961
|
-
|
|
962
|
-
|
|
616
|
+
[_ps]: [, input[_PS]],
|
|
617
|
+
[_t]: [, input[_T]],
|
|
963
618
|
});
|
|
964
619
|
let body;
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
hostname,
|
|
968
|
-
port,
|
|
969
|
-
method: "GET",
|
|
970
|
-
headers,
|
|
971
|
-
path: resolvedPath,
|
|
972
|
-
query,
|
|
973
|
-
body,
|
|
974
|
-
});
|
|
620
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
621
|
+
return b.build();
|
|
975
622
|
};
|
|
976
623
|
exports.se_GetCampaignActivitiesCommand = se_GetCampaignActivitiesCommand;
|
|
977
624
|
const se_GetCampaignDateRangeKpiCommand = async (input, context) => {
|
|
978
|
-
const
|
|
625
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
979
626
|
const headers = {};
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "KpiName", () => input.KpiName, "{KpiName}", false);
|
|
627
|
+
b.bp("/v1/apps/{ApplicationId}/campaigns/{CampaignId}/kpis/daterange/{KpiName}");
|
|
628
|
+
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
629
|
+
b.p("CampaignId", () => input.CampaignId, "{CampaignId}", false);
|
|
630
|
+
b.p("KpiName", () => input.KpiName, "{KpiName}", false);
|
|
985
631
|
const query = (0, smithy_client_1.map)({
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
"
|
|
990
|
-
() => input.StartTime !== void 0,
|
|
991
|
-
() => (input.StartTime.toISOString().split(".")[0] + "Z").toString(),
|
|
992
|
-
],
|
|
632
|
+
[_et]: [() => input.EndTime !== void 0, () => (input[_ET].toISOString().split(".")[0] + "Z").toString()],
|
|
633
|
+
[_nt]: [, input[_NT]],
|
|
634
|
+
[_ps]: [, input[_PS]],
|
|
635
|
+
[_st]: [() => input.StartTime !== void 0, () => (input[_ST].toISOString().split(".")[0] + "Z").toString()],
|
|
993
636
|
});
|
|
994
637
|
let body;
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
hostname,
|
|
998
|
-
port,
|
|
999
|
-
method: "GET",
|
|
1000
|
-
headers,
|
|
1001
|
-
path: resolvedPath,
|
|
1002
|
-
query,
|
|
1003
|
-
body,
|
|
1004
|
-
});
|
|
638
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
639
|
+
return b.build();
|
|
1005
640
|
};
|
|
1006
641
|
exports.se_GetCampaignDateRangeKpiCommand = se_GetCampaignDateRangeKpiCommand;
|
|
1007
642
|
const se_GetCampaignsCommand = async (input, context) => {
|
|
1008
|
-
const
|
|
643
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1009
644
|
const headers = {};
|
|
1010
|
-
|
|
1011
|
-
|
|
645
|
+
b.bp("/v1/apps/{ApplicationId}/campaigns");
|
|
646
|
+
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
1012
647
|
const query = (0, smithy_client_1.map)({
|
|
1013
|
-
|
|
1014
|
-
|
|
648
|
+
[_ps]: [, input[_PS]],
|
|
649
|
+
[_t]: [, input[_T]],
|
|
1015
650
|
});
|
|
1016
651
|
let body;
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
hostname,
|
|
1020
|
-
port,
|
|
1021
|
-
method: "GET",
|
|
1022
|
-
headers,
|
|
1023
|
-
path: resolvedPath,
|
|
1024
|
-
query,
|
|
1025
|
-
body,
|
|
1026
|
-
});
|
|
652
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
653
|
+
return b.build();
|
|
1027
654
|
};
|
|
1028
655
|
exports.se_GetCampaignsCommand = se_GetCampaignsCommand;
|
|
1029
656
|
const se_GetCampaignVersionCommand = async (input, context) => {
|
|
1030
|
-
const
|
|
657
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1031
658
|
const headers = {};
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Version", () => input.Version, "{Version}", false);
|
|
659
|
+
b.bp("/v1/apps/{ApplicationId}/campaigns/{CampaignId}/versions/{Version}");
|
|
660
|
+
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
661
|
+
b.p("CampaignId", () => input.CampaignId, "{CampaignId}", false);
|
|
662
|
+
b.p("Version", () => input.Version, "{Version}", false);
|
|
1037
663
|
let body;
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
hostname,
|
|
1041
|
-
port,
|
|
1042
|
-
method: "GET",
|
|
1043
|
-
headers,
|
|
1044
|
-
path: resolvedPath,
|
|
1045
|
-
body,
|
|
1046
|
-
});
|
|
664
|
+
b.m("GET").h(headers).b(body);
|
|
665
|
+
return b.build();
|
|
1047
666
|
};
|
|
1048
667
|
exports.se_GetCampaignVersionCommand = se_GetCampaignVersionCommand;
|
|
1049
668
|
const se_GetCampaignVersionsCommand = async (input, context) => {
|
|
1050
|
-
const
|
|
669
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1051
670
|
const headers = {};
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CampaignId", () => input.CampaignId, "{CampaignId}", false);
|
|
671
|
+
b.bp("/v1/apps/{ApplicationId}/campaigns/{CampaignId}/versions");
|
|
672
|
+
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
673
|
+
b.p("CampaignId", () => input.CampaignId, "{CampaignId}", false);
|
|
1056
674
|
const query = (0, smithy_client_1.map)({
|
|
1057
|
-
|
|
1058
|
-
|
|
675
|
+
[_ps]: [, input[_PS]],
|
|
676
|
+
[_t]: [, input[_T]],
|
|
1059
677
|
});
|
|
1060
678
|
let body;
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
hostname,
|
|
1064
|
-
port,
|
|
1065
|
-
method: "GET",
|
|
1066
|
-
headers,
|
|
1067
|
-
path: resolvedPath,
|
|
1068
|
-
query,
|
|
1069
|
-
body,
|
|
1070
|
-
});
|
|
679
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
680
|
+
return b.build();
|
|
1071
681
|
};
|
|
1072
682
|
exports.se_GetCampaignVersionsCommand = se_GetCampaignVersionsCommand;
|
|
1073
683
|
const se_GetChannelsCommand = async (input, context) => {
|
|
1074
|
-
const
|
|
684
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1075
685
|
const headers = {};
|
|
1076
|
-
|
|
1077
|
-
|
|
686
|
+
b.bp("/v1/apps/{ApplicationId}/channels");
|
|
687
|
+
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
1078
688
|
let body;
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
hostname,
|
|
1082
|
-
port,
|
|
1083
|
-
method: "GET",
|
|
1084
|
-
headers,
|
|
1085
|
-
path: resolvedPath,
|
|
1086
|
-
body,
|
|
1087
|
-
});
|
|
689
|
+
b.m("GET").h(headers).b(body);
|
|
690
|
+
return b.build();
|
|
1088
691
|
};
|
|
1089
692
|
exports.se_GetChannelsCommand = se_GetChannelsCommand;
|
|
1090
693
|
const se_GetEmailChannelCommand = async (input, context) => {
|
|
1091
|
-
const
|
|
694
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1092
695
|
const headers = {};
|
|
1093
|
-
|
|
1094
|
-
|
|
696
|
+
b.bp("/v1/apps/{ApplicationId}/channels/email");
|
|
697
|
+
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
1095
698
|
let body;
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
hostname,
|
|
1099
|
-
port,
|
|
1100
|
-
method: "GET",
|
|
1101
|
-
headers,
|
|
1102
|
-
path: resolvedPath,
|
|
1103
|
-
body,
|
|
1104
|
-
});
|
|
699
|
+
b.m("GET").h(headers).b(body);
|
|
700
|
+
return b.build();
|
|
1105
701
|
};
|
|
1106
702
|
exports.se_GetEmailChannelCommand = se_GetEmailChannelCommand;
|
|
1107
703
|
const se_GetEmailTemplateCommand = async (input, context) => {
|
|
1108
|
-
const
|
|
704
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1109
705
|
const headers = {};
|
|
1110
|
-
|
|
1111
|
-
|
|
706
|
+
b.bp("/v1/templates/{TemplateName}/email");
|
|
707
|
+
b.p("TemplateName", () => input.TemplateName, "{TemplateName}", false);
|
|
1112
708
|
const query = (0, smithy_client_1.map)({
|
|
1113
|
-
|
|
709
|
+
[_v]: [, input[_V]],
|
|
1114
710
|
});
|
|
1115
711
|
let body;
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
hostname,
|
|
1119
|
-
port,
|
|
1120
|
-
method: "GET",
|
|
1121
|
-
headers,
|
|
1122
|
-
path: resolvedPath,
|
|
1123
|
-
query,
|
|
1124
|
-
body,
|
|
1125
|
-
});
|
|
712
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
713
|
+
return b.build();
|
|
1126
714
|
};
|
|
1127
715
|
exports.se_GetEmailTemplateCommand = se_GetEmailTemplateCommand;
|
|
1128
716
|
const se_GetEndpointCommand = async (input, context) => {
|
|
1129
|
-
const
|
|
717
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1130
718
|
const headers = {};
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EndpointId", () => input.EndpointId, "{EndpointId}", false);
|
|
719
|
+
b.bp("/v1/apps/{ApplicationId}/endpoints/{EndpointId}");
|
|
720
|
+
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
721
|
+
b.p("EndpointId", () => input.EndpointId, "{EndpointId}", false);
|
|
1135
722
|
let body;
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
hostname,
|
|
1139
|
-
port,
|
|
1140
|
-
method: "GET",
|
|
1141
|
-
headers,
|
|
1142
|
-
path: resolvedPath,
|
|
1143
|
-
body,
|
|
1144
|
-
});
|
|
723
|
+
b.m("GET").h(headers).b(body);
|
|
724
|
+
return b.build();
|
|
1145
725
|
};
|
|
1146
726
|
exports.se_GetEndpointCommand = se_GetEndpointCommand;
|
|
1147
727
|
const se_GetEventStreamCommand = async (input, context) => {
|
|
1148
|
-
const
|
|
728
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1149
729
|
const headers = {};
|
|
1150
|
-
|
|
1151
|
-
|
|
730
|
+
b.bp("/v1/apps/{ApplicationId}/eventstream");
|
|
731
|
+
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
1152
732
|
let body;
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
hostname,
|
|
1156
|
-
port,
|
|
1157
|
-
method: "GET",
|
|
1158
|
-
headers,
|
|
1159
|
-
path: resolvedPath,
|
|
1160
|
-
body,
|
|
1161
|
-
});
|
|
733
|
+
b.m("GET").h(headers).b(body);
|
|
734
|
+
return b.build();
|
|
1162
735
|
};
|
|
1163
736
|
exports.se_GetEventStreamCommand = se_GetEventStreamCommand;
|
|
1164
737
|
const se_GetExportJobCommand = async (input, context) => {
|
|
1165
|
-
const
|
|
738
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1166
739
|
const headers = {};
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "JobId", () => input.JobId, "{JobId}", false);
|
|
740
|
+
b.bp("/v1/apps/{ApplicationId}/jobs/export/{JobId}");
|
|
741
|
+
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
742
|
+
b.p("JobId", () => input.JobId, "{JobId}", false);
|
|
1171
743
|
let body;
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
hostname,
|
|
1175
|
-
port,
|
|
1176
|
-
method: "GET",
|
|
1177
|
-
headers,
|
|
1178
|
-
path: resolvedPath,
|
|
1179
|
-
body,
|
|
1180
|
-
});
|
|
744
|
+
b.m("GET").h(headers).b(body);
|
|
745
|
+
return b.build();
|
|
1181
746
|
};
|
|
1182
747
|
exports.se_GetExportJobCommand = se_GetExportJobCommand;
|
|
1183
748
|
const se_GetExportJobsCommand = async (input, context) => {
|
|
1184
|
-
const
|
|
749
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1185
750
|
const headers = {};
|
|
1186
|
-
|
|
1187
|
-
|
|
751
|
+
b.bp("/v1/apps/{ApplicationId}/jobs/export");
|
|
752
|
+
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
1188
753
|
const query = (0, smithy_client_1.map)({
|
|
1189
|
-
|
|
1190
|
-
|
|
754
|
+
[_ps]: [, input[_PS]],
|
|
755
|
+
[_t]: [, input[_T]],
|
|
1191
756
|
});
|
|
1192
757
|
let body;
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
hostname,
|
|
1196
|
-
port,
|
|
1197
|
-
method: "GET",
|
|
1198
|
-
headers,
|
|
1199
|
-
path: resolvedPath,
|
|
1200
|
-
query,
|
|
1201
|
-
body,
|
|
1202
|
-
});
|
|
758
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
759
|
+
return b.build();
|
|
1203
760
|
};
|
|
1204
761
|
exports.se_GetExportJobsCommand = se_GetExportJobsCommand;
|
|
1205
762
|
const se_GetGcmChannelCommand = async (input, context) => {
|
|
1206
|
-
const
|
|
763
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1207
764
|
const headers = {};
|
|
1208
|
-
|
|
1209
|
-
|
|
765
|
+
b.bp("/v1/apps/{ApplicationId}/channels/gcm");
|
|
766
|
+
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
1210
767
|
let body;
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
hostname,
|
|
1214
|
-
port,
|
|
1215
|
-
method: "GET",
|
|
1216
|
-
headers,
|
|
1217
|
-
path: resolvedPath,
|
|
1218
|
-
body,
|
|
1219
|
-
});
|
|
768
|
+
b.m("GET").h(headers).b(body);
|
|
769
|
+
return b.build();
|
|
1220
770
|
};
|
|
1221
771
|
exports.se_GetGcmChannelCommand = se_GetGcmChannelCommand;
|
|
1222
772
|
const se_GetImportJobCommand = async (input, context) => {
|
|
1223
|
-
const
|
|
773
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1224
774
|
const headers = {};
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "JobId", () => input.JobId, "{JobId}", false);
|
|
775
|
+
b.bp("/v1/apps/{ApplicationId}/jobs/import/{JobId}");
|
|
776
|
+
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
777
|
+
b.p("JobId", () => input.JobId, "{JobId}", false);
|
|
1229
778
|
let body;
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
hostname,
|
|
1233
|
-
port,
|
|
1234
|
-
method: "GET",
|
|
1235
|
-
headers,
|
|
1236
|
-
path: resolvedPath,
|
|
1237
|
-
body,
|
|
1238
|
-
});
|
|
779
|
+
b.m("GET").h(headers).b(body);
|
|
780
|
+
return b.build();
|
|
1239
781
|
};
|
|
1240
782
|
exports.se_GetImportJobCommand = se_GetImportJobCommand;
|
|
1241
783
|
const se_GetImportJobsCommand = async (input, context) => {
|
|
1242
|
-
const
|
|
784
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1243
785
|
const headers = {};
|
|
1244
|
-
|
|
1245
|
-
|
|
786
|
+
b.bp("/v1/apps/{ApplicationId}/jobs/import");
|
|
787
|
+
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
1246
788
|
const query = (0, smithy_client_1.map)({
|
|
1247
|
-
|
|
1248
|
-
|
|
789
|
+
[_ps]: [, input[_PS]],
|
|
790
|
+
[_t]: [, input[_T]],
|
|
1249
791
|
});
|
|
1250
792
|
let body;
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
hostname,
|
|
1254
|
-
port,
|
|
1255
|
-
method: "GET",
|
|
1256
|
-
headers,
|
|
1257
|
-
path: resolvedPath,
|
|
1258
|
-
query,
|
|
1259
|
-
body,
|
|
1260
|
-
});
|
|
793
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
794
|
+
return b.build();
|
|
1261
795
|
};
|
|
1262
796
|
exports.se_GetImportJobsCommand = se_GetImportJobsCommand;
|
|
1263
797
|
const se_GetInAppMessagesCommand = async (input, context) => {
|
|
1264
|
-
const
|
|
798
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1265
799
|
const headers = {};
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EndpointId", () => input.EndpointId, "{EndpointId}", false);
|
|
800
|
+
b.bp("/v1/apps/{ApplicationId}/endpoints/{EndpointId}/inappmessages");
|
|
801
|
+
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
802
|
+
b.p("EndpointId", () => input.EndpointId, "{EndpointId}", false);
|
|
1270
803
|
let body;
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
hostname,
|
|
1274
|
-
port,
|
|
1275
|
-
method: "GET",
|
|
1276
|
-
headers,
|
|
1277
|
-
path: resolvedPath,
|
|
1278
|
-
body,
|
|
1279
|
-
});
|
|
804
|
+
b.m("GET").h(headers).b(body);
|
|
805
|
+
return b.build();
|
|
1280
806
|
};
|
|
1281
807
|
exports.se_GetInAppMessagesCommand = se_GetInAppMessagesCommand;
|
|
1282
808
|
const se_GetInAppTemplateCommand = async (input, context) => {
|
|
1283
|
-
const
|
|
809
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1284
810
|
const headers = {};
|
|
1285
|
-
|
|
1286
|
-
|
|
811
|
+
b.bp("/v1/templates/{TemplateName}/inapp");
|
|
812
|
+
b.p("TemplateName", () => input.TemplateName, "{TemplateName}", false);
|
|
1287
813
|
const query = (0, smithy_client_1.map)({
|
|
1288
|
-
|
|
814
|
+
[_v]: [, input[_V]],
|
|
1289
815
|
});
|
|
1290
816
|
let body;
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
hostname,
|
|
1294
|
-
port,
|
|
1295
|
-
method: "GET",
|
|
1296
|
-
headers,
|
|
1297
|
-
path: resolvedPath,
|
|
1298
|
-
query,
|
|
1299
|
-
body,
|
|
1300
|
-
});
|
|
817
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
818
|
+
return b.build();
|
|
1301
819
|
};
|
|
1302
820
|
exports.se_GetInAppTemplateCommand = se_GetInAppTemplateCommand;
|
|
1303
821
|
const se_GetJourneyCommand = async (input, context) => {
|
|
1304
|
-
const
|
|
822
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1305
823
|
const headers = {};
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "JourneyId", () => input.JourneyId, "{JourneyId}", false);
|
|
824
|
+
b.bp("/v1/apps/{ApplicationId}/journeys/{JourneyId}");
|
|
825
|
+
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
826
|
+
b.p("JourneyId", () => input.JourneyId, "{JourneyId}", false);
|
|
1310
827
|
let body;
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
hostname,
|
|
1314
|
-
port,
|
|
1315
|
-
method: "GET",
|
|
1316
|
-
headers,
|
|
1317
|
-
path: resolvedPath,
|
|
1318
|
-
body,
|
|
1319
|
-
});
|
|
828
|
+
b.m("GET").h(headers).b(body);
|
|
829
|
+
return b.build();
|
|
1320
830
|
};
|
|
1321
831
|
exports.se_GetJourneyCommand = se_GetJourneyCommand;
|
|
1322
832
|
const se_GetJourneyDateRangeKpiCommand = async (input, context) => {
|
|
1323
|
-
const
|
|
833
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1324
834
|
const headers = {};
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "KpiName", () => input.KpiName, "{KpiName}", false);
|
|
835
|
+
b.bp("/v1/apps/{ApplicationId}/journeys/{JourneyId}/kpis/daterange/{KpiName}");
|
|
836
|
+
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
837
|
+
b.p("JourneyId", () => input.JourneyId, "{JourneyId}", false);
|
|
838
|
+
b.p("KpiName", () => input.KpiName, "{KpiName}", false);
|
|
1330
839
|
const query = (0, smithy_client_1.map)({
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
"
|
|
1335
|
-
() => input.StartTime !== void 0,
|
|
1336
|
-
() => (input.StartTime.toISOString().split(".")[0] + "Z").toString(),
|
|
1337
|
-
],
|
|
840
|
+
[_et]: [() => input.EndTime !== void 0, () => (input[_ET].toISOString().split(".")[0] + "Z").toString()],
|
|
841
|
+
[_nt]: [, input[_NT]],
|
|
842
|
+
[_ps]: [, input[_PS]],
|
|
843
|
+
[_st]: [() => input.StartTime !== void 0, () => (input[_ST].toISOString().split(".")[0] + "Z").toString()],
|
|
1338
844
|
});
|
|
1339
845
|
let body;
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
hostname,
|
|
1343
|
-
port,
|
|
1344
|
-
method: "GET",
|
|
1345
|
-
headers,
|
|
1346
|
-
path: resolvedPath,
|
|
1347
|
-
query,
|
|
1348
|
-
body,
|
|
1349
|
-
});
|
|
846
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
847
|
+
return b.build();
|
|
1350
848
|
};
|
|
1351
849
|
exports.se_GetJourneyDateRangeKpiCommand = se_GetJourneyDateRangeKpiCommand;
|
|
1352
850
|
const se_GetJourneyExecutionActivityMetricsCommand = async (input, context) => {
|
|
1353
|
-
const
|
|
851
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1354
852
|
const headers = {};
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "JourneyId", () => input.JourneyId, "{JourneyId}", false);
|
|
853
|
+
b.bp("/v1/apps/{ApplicationId}/journeys/{JourneyId}/activities/{JourneyActivityId}/execution-metrics");
|
|
854
|
+
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
855
|
+
b.p("JourneyActivityId", () => input.JourneyActivityId, "{JourneyActivityId}", false);
|
|
856
|
+
b.p("JourneyId", () => input.JourneyId, "{JourneyId}", false);
|
|
1360
857
|
const query = (0, smithy_client_1.map)({
|
|
1361
|
-
|
|
1362
|
-
|
|
858
|
+
[_nt]: [, input[_NT]],
|
|
859
|
+
[_ps]: [, input[_PS]],
|
|
1363
860
|
});
|
|
1364
861
|
let body;
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
hostname,
|
|
1368
|
-
port,
|
|
1369
|
-
method: "GET",
|
|
1370
|
-
headers,
|
|
1371
|
-
path: resolvedPath,
|
|
1372
|
-
query,
|
|
1373
|
-
body,
|
|
1374
|
-
});
|
|
862
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
863
|
+
return b.build();
|
|
1375
864
|
};
|
|
1376
865
|
exports.se_GetJourneyExecutionActivityMetricsCommand = se_GetJourneyExecutionActivityMetricsCommand;
|
|
1377
866
|
const se_GetJourneyExecutionMetricsCommand = async (input, context) => {
|
|
1378
|
-
const
|
|
867
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1379
868
|
const headers = {};
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "JourneyId", () => input.JourneyId, "{JourneyId}", false);
|
|
869
|
+
b.bp("/v1/apps/{ApplicationId}/journeys/{JourneyId}/execution-metrics");
|
|
870
|
+
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
871
|
+
b.p("JourneyId", () => input.JourneyId, "{JourneyId}", false);
|
|
1384
872
|
const query = (0, smithy_client_1.map)({
|
|
1385
|
-
|
|
1386
|
-
|
|
873
|
+
[_nt]: [, input[_NT]],
|
|
874
|
+
[_ps]: [, input[_PS]],
|
|
1387
875
|
});
|
|
1388
876
|
let body;
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
hostname,
|
|
1392
|
-
port,
|
|
1393
|
-
method: "GET",
|
|
1394
|
-
headers,
|
|
1395
|
-
path: resolvedPath,
|
|
1396
|
-
query,
|
|
1397
|
-
body,
|
|
1398
|
-
});
|
|
877
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
878
|
+
return b.build();
|
|
1399
879
|
};
|
|
1400
880
|
exports.se_GetJourneyExecutionMetricsCommand = se_GetJourneyExecutionMetricsCommand;
|
|
1401
881
|
const se_GetJourneyRunExecutionActivityMetricsCommand = async (input, context) => {
|
|
1402
|
-
const
|
|
882
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1403
883
|
const headers = {};
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "RunId", () => input.RunId, "{RunId}", false);
|
|
884
|
+
b.bp("/v1/apps/{ApplicationId}/journeys/{JourneyId}/runs/{RunId}/activities/{JourneyActivityId}/execution-metrics");
|
|
885
|
+
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
886
|
+
b.p("JourneyActivityId", () => input.JourneyActivityId, "{JourneyActivityId}", false);
|
|
887
|
+
b.p("JourneyId", () => input.JourneyId, "{JourneyId}", false);
|
|
888
|
+
b.p("RunId", () => input.RunId, "{RunId}", false);
|
|
1410
889
|
const query = (0, smithy_client_1.map)({
|
|
1411
|
-
|
|
1412
|
-
|
|
890
|
+
[_nt]: [, input[_NT]],
|
|
891
|
+
[_ps]: [, input[_PS]],
|
|
1413
892
|
});
|
|
1414
893
|
let body;
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
hostname,
|
|
1418
|
-
port,
|
|
1419
|
-
method: "GET",
|
|
1420
|
-
headers,
|
|
1421
|
-
path: resolvedPath,
|
|
1422
|
-
query,
|
|
1423
|
-
body,
|
|
1424
|
-
});
|
|
894
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
895
|
+
return b.build();
|
|
1425
896
|
};
|
|
1426
897
|
exports.se_GetJourneyRunExecutionActivityMetricsCommand = se_GetJourneyRunExecutionActivityMetricsCommand;
|
|
1427
898
|
const se_GetJourneyRunExecutionMetricsCommand = async (input, context) => {
|
|
1428
|
-
const
|
|
899
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1429
900
|
const headers = {};
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "RunId", () => input.RunId, "{RunId}", false);
|
|
901
|
+
b.bp("/v1/apps/{ApplicationId}/journeys/{JourneyId}/runs/{RunId}/execution-metrics");
|
|
902
|
+
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
903
|
+
b.p("JourneyId", () => input.JourneyId, "{JourneyId}", false);
|
|
904
|
+
b.p("RunId", () => input.RunId, "{RunId}", false);
|
|
1435
905
|
const query = (0, smithy_client_1.map)({
|
|
1436
|
-
|
|
1437
|
-
|
|
906
|
+
[_nt]: [, input[_NT]],
|
|
907
|
+
[_ps]: [, input[_PS]],
|
|
1438
908
|
});
|
|
1439
909
|
let body;
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
hostname,
|
|
1443
|
-
port,
|
|
1444
|
-
method: "GET",
|
|
1445
|
-
headers,
|
|
1446
|
-
path: resolvedPath,
|
|
1447
|
-
query,
|
|
1448
|
-
body,
|
|
1449
|
-
});
|
|
910
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
911
|
+
return b.build();
|
|
1450
912
|
};
|
|
1451
913
|
exports.se_GetJourneyRunExecutionMetricsCommand = se_GetJourneyRunExecutionMetricsCommand;
|
|
1452
914
|
const se_GetJourneyRunsCommand = async (input, context) => {
|
|
1453
|
-
const
|
|
915
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1454
916
|
const headers = {};
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "JourneyId", () => input.JourneyId, "{JourneyId}", false);
|
|
917
|
+
b.bp("/v1/apps/{ApplicationId}/journeys/{JourneyId}/runs");
|
|
918
|
+
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
919
|
+
b.p("JourneyId", () => input.JourneyId, "{JourneyId}", false);
|
|
1459
920
|
const query = (0, smithy_client_1.map)({
|
|
1460
|
-
|
|
1461
|
-
|
|
921
|
+
[_ps]: [, input[_PS]],
|
|
922
|
+
[_t]: [, input[_T]],
|
|
1462
923
|
});
|
|
1463
924
|
let body;
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
hostname,
|
|
1467
|
-
port,
|
|
1468
|
-
method: "GET",
|
|
1469
|
-
headers,
|
|
1470
|
-
path: resolvedPath,
|
|
1471
|
-
query,
|
|
1472
|
-
body,
|
|
1473
|
-
});
|
|
925
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
926
|
+
return b.build();
|
|
1474
927
|
};
|
|
1475
928
|
exports.se_GetJourneyRunsCommand = se_GetJourneyRunsCommand;
|
|
1476
929
|
const se_GetPushTemplateCommand = async (input, context) => {
|
|
1477
|
-
const
|
|
930
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1478
931
|
const headers = {};
|
|
1479
|
-
|
|
1480
|
-
|
|
932
|
+
b.bp("/v1/templates/{TemplateName}/push");
|
|
933
|
+
b.p("TemplateName", () => input.TemplateName, "{TemplateName}", false);
|
|
1481
934
|
const query = (0, smithy_client_1.map)({
|
|
1482
|
-
|
|
935
|
+
[_v]: [, input[_V]],
|
|
1483
936
|
});
|
|
1484
937
|
let body;
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
hostname,
|
|
1488
|
-
port,
|
|
1489
|
-
method: "GET",
|
|
1490
|
-
headers,
|
|
1491
|
-
path: resolvedPath,
|
|
1492
|
-
query,
|
|
1493
|
-
body,
|
|
1494
|
-
});
|
|
938
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
939
|
+
return b.build();
|
|
1495
940
|
};
|
|
1496
941
|
exports.se_GetPushTemplateCommand = se_GetPushTemplateCommand;
|
|
1497
942
|
const se_GetRecommenderConfigurationCommand = async (input, context) => {
|
|
1498
|
-
const
|
|
943
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1499
944
|
const headers = {};
|
|
1500
|
-
|
|
1501
|
-
|
|
945
|
+
b.bp("/v1/recommenders/{RecommenderId}");
|
|
946
|
+
b.p("RecommenderId", () => input.RecommenderId, "{RecommenderId}", false);
|
|
1502
947
|
let body;
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
hostname,
|
|
1506
|
-
port,
|
|
1507
|
-
method: "GET",
|
|
1508
|
-
headers,
|
|
1509
|
-
path: resolvedPath,
|
|
1510
|
-
body,
|
|
1511
|
-
});
|
|
948
|
+
b.m("GET").h(headers).b(body);
|
|
949
|
+
return b.build();
|
|
1512
950
|
};
|
|
1513
951
|
exports.se_GetRecommenderConfigurationCommand = se_GetRecommenderConfigurationCommand;
|
|
1514
952
|
const se_GetRecommenderConfigurationsCommand = async (input, context) => {
|
|
1515
|
-
const
|
|
953
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1516
954
|
const headers = {};
|
|
1517
|
-
|
|
955
|
+
b.bp("/v1/recommenders");
|
|
1518
956
|
const query = (0, smithy_client_1.map)({
|
|
1519
|
-
|
|
1520
|
-
|
|
957
|
+
[_ps]: [, input[_PS]],
|
|
958
|
+
[_t]: [, input[_T]],
|
|
1521
959
|
});
|
|
1522
960
|
let body;
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
hostname,
|
|
1526
|
-
port,
|
|
1527
|
-
method: "GET",
|
|
1528
|
-
headers,
|
|
1529
|
-
path: resolvedPath,
|
|
1530
|
-
query,
|
|
1531
|
-
body,
|
|
1532
|
-
});
|
|
961
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
962
|
+
return b.build();
|
|
1533
963
|
};
|
|
1534
964
|
exports.se_GetRecommenderConfigurationsCommand = se_GetRecommenderConfigurationsCommand;
|
|
1535
965
|
const se_GetSegmentCommand = async (input, context) => {
|
|
1536
|
-
const
|
|
966
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1537
967
|
const headers = {};
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SegmentId", () => input.SegmentId, "{SegmentId}", false);
|
|
968
|
+
b.bp("/v1/apps/{ApplicationId}/segments/{SegmentId}");
|
|
969
|
+
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
970
|
+
b.p("SegmentId", () => input.SegmentId, "{SegmentId}", false);
|
|
1542
971
|
let body;
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
hostname,
|
|
1546
|
-
port,
|
|
1547
|
-
method: "GET",
|
|
1548
|
-
headers,
|
|
1549
|
-
path: resolvedPath,
|
|
1550
|
-
body,
|
|
1551
|
-
});
|
|
972
|
+
b.m("GET").h(headers).b(body);
|
|
973
|
+
return b.build();
|
|
1552
974
|
};
|
|
1553
975
|
exports.se_GetSegmentCommand = se_GetSegmentCommand;
|
|
1554
976
|
const se_GetSegmentExportJobsCommand = async (input, context) => {
|
|
1555
|
-
const
|
|
977
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1556
978
|
const headers = {};
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SegmentId", () => input.SegmentId, "{SegmentId}", false);
|
|
979
|
+
b.bp("/v1/apps/{ApplicationId}/segments/{SegmentId}/jobs/export");
|
|
980
|
+
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
981
|
+
b.p("SegmentId", () => input.SegmentId, "{SegmentId}", false);
|
|
1561
982
|
const query = (0, smithy_client_1.map)({
|
|
1562
|
-
|
|
1563
|
-
|
|
983
|
+
[_ps]: [, input[_PS]],
|
|
984
|
+
[_t]: [, input[_T]],
|
|
1564
985
|
});
|
|
1565
986
|
let body;
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
hostname,
|
|
1569
|
-
port,
|
|
1570
|
-
method: "GET",
|
|
1571
|
-
headers,
|
|
1572
|
-
path: resolvedPath,
|
|
1573
|
-
query,
|
|
1574
|
-
body,
|
|
1575
|
-
});
|
|
987
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
988
|
+
return b.build();
|
|
1576
989
|
};
|
|
1577
990
|
exports.se_GetSegmentExportJobsCommand = se_GetSegmentExportJobsCommand;
|
|
1578
991
|
const se_GetSegmentImportJobsCommand = async (input, context) => {
|
|
1579
|
-
const
|
|
992
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1580
993
|
const headers = {};
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SegmentId", () => input.SegmentId, "{SegmentId}", false);
|
|
994
|
+
b.bp("/v1/apps/{ApplicationId}/segments/{SegmentId}/jobs/import");
|
|
995
|
+
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
996
|
+
b.p("SegmentId", () => input.SegmentId, "{SegmentId}", false);
|
|
1585
997
|
const query = (0, smithy_client_1.map)({
|
|
1586
|
-
|
|
1587
|
-
|
|
998
|
+
[_ps]: [, input[_PS]],
|
|
999
|
+
[_t]: [, input[_T]],
|
|
1588
1000
|
});
|
|
1589
1001
|
let body;
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
hostname,
|
|
1593
|
-
port,
|
|
1594
|
-
method: "GET",
|
|
1595
|
-
headers,
|
|
1596
|
-
path: resolvedPath,
|
|
1597
|
-
query,
|
|
1598
|
-
body,
|
|
1599
|
-
});
|
|
1002
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
1003
|
+
return b.build();
|
|
1600
1004
|
};
|
|
1601
1005
|
exports.se_GetSegmentImportJobsCommand = se_GetSegmentImportJobsCommand;
|
|
1602
1006
|
const se_GetSegmentsCommand = async (input, context) => {
|
|
1603
|
-
const
|
|
1007
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1604
1008
|
const headers = {};
|
|
1605
|
-
|
|
1606
|
-
|
|
1009
|
+
b.bp("/v1/apps/{ApplicationId}/segments");
|
|
1010
|
+
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
1607
1011
|
const query = (0, smithy_client_1.map)({
|
|
1608
|
-
|
|
1609
|
-
|
|
1012
|
+
[_ps]: [, input[_PS]],
|
|
1013
|
+
[_t]: [, input[_T]],
|
|
1610
1014
|
});
|
|
1611
1015
|
let body;
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
hostname,
|
|
1615
|
-
port,
|
|
1616
|
-
method: "GET",
|
|
1617
|
-
headers,
|
|
1618
|
-
path: resolvedPath,
|
|
1619
|
-
query,
|
|
1620
|
-
body,
|
|
1621
|
-
});
|
|
1016
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
1017
|
+
return b.build();
|
|
1622
1018
|
};
|
|
1623
1019
|
exports.se_GetSegmentsCommand = se_GetSegmentsCommand;
|
|
1624
1020
|
const se_GetSegmentVersionCommand = async (input, context) => {
|
|
1625
|
-
const
|
|
1021
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1626
1022
|
const headers = {};
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Version", () => input.Version, "{Version}", false);
|
|
1023
|
+
b.bp("/v1/apps/{ApplicationId}/segments/{SegmentId}/versions/{Version}");
|
|
1024
|
+
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
1025
|
+
b.p("SegmentId", () => input.SegmentId, "{SegmentId}", false);
|
|
1026
|
+
b.p("Version", () => input.Version, "{Version}", false);
|
|
1632
1027
|
let body;
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
hostname,
|
|
1636
|
-
port,
|
|
1637
|
-
method: "GET",
|
|
1638
|
-
headers,
|
|
1639
|
-
path: resolvedPath,
|
|
1640
|
-
body,
|
|
1641
|
-
});
|
|
1028
|
+
b.m("GET").h(headers).b(body);
|
|
1029
|
+
return b.build();
|
|
1642
1030
|
};
|
|
1643
1031
|
exports.se_GetSegmentVersionCommand = se_GetSegmentVersionCommand;
|
|
1644
1032
|
const se_GetSegmentVersionsCommand = async (input, context) => {
|
|
1645
|
-
const
|
|
1033
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1646
1034
|
const headers = {};
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SegmentId", () => input.SegmentId, "{SegmentId}", false);
|
|
1035
|
+
b.bp("/v1/apps/{ApplicationId}/segments/{SegmentId}/versions");
|
|
1036
|
+
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
1037
|
+
b.p("SegmentId", () => input.SegmentId, "{SegmentId}", false);
|
|
1651
1038
|
const query = (0, smithy_client_1.map)({
|
|
1652
|
-
|
|
1653
|
-
|
|
1039
|
+
[_ps]: [, input[_PS]],
|
|
1040
|
+
[_t]: [, input[_T]],
|
|
1654
1041
|
});
|
|
1655
1042
|
let body;
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
hostname,
|
|
1659
|
-
port,
|
|
1660
|
-
method: "GET",
|
|
1661
|
-
headers,
|
|
1662
|
-
path: resolvedPath,
|
|
1663
|
-
query,
|
|
1664
|
-
body,
|
|
1665
|
-
});
|
|
1043
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
1044
|
+
return b.build();
|
|
1666
1045
|
};
|
|
1667
1046
|
exports.se_GetSegmentVersionsCommand = se_GetSegmentVersionsCommand;
|
|
1668
1047
|
const se_GetSmsChannelCommand = async (input, context) => {
|
|
1669
|
-
const
|
|
1048
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1670
1049
|
const headers = {};
|
|
1671
|
-
|
|
1672
|
-
|
|
1050
|
+
b.bp("/v1/apps/{ApplicationId}/channels/sms");
|
|
1051
|
+
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
1673
1052
|
let body;
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
hostname,
|
|
1677
|
-
port,
|
|
1678
|
-
method: "GET",
|
|
1679
|
-
headers,
|
|
1680
|
-
path: resolvedPath,
|
|
1681
|
-
body,
|
|
1682
|
-
});
|
|
1053
|
+
b.m("GET").h(headers).b(body);
|
|
1054
|
+
return b.build();
|
|
1683
1055
|
};
|
|
1684
1056
|
exports.se_GetSmsChannelCommand = se_GetSmsChannelCommand;
|
|
1685
1057
|
const se_GetSmsTemplateCommand = async (input, context) => {
|
|
1686
|
-
const
|
|
1058
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1687
1059
|
const headers = {};
|
|
1688
|
-
|
|
1689
|
-
|
|
1060
|
+
b.bp("/v1/templates/{TemplateName}/sms");
|
|
1061
|
+
b.p("TemplateName", () => input.TemplateName, "{TemplateName}", false);
|
|
1690
1062
|
const query = (0, smithy_client_1.map)({
|
|
1691
|
-
|
|
1063
|
+
[_v]: [, input[_V]],
|
|
1692
1064
|
});
|
|
1693
1065
|
let body;
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
hostname,
|
|
1697
|
-
port,
|
|
1698
|
-
method: "GET",
|
|
1699
|
-
headers,
|
|
1700
|
-
path: resolvedPath,
|
|
1701
|
-
query,
|
|
1702
|
-
body,
|
|
1703
|
-
});
|
|
1066
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
1067
|
+
return b.build();
|
|
1704
1068
|
};
|
|
1705
1069
|
exports.se_GetSmsTemplateCommand = se_GetSmsTemplateCommand;
|
|
1706
1070
|
const se_GetUserEndpointsCommand = async (input, context) => {
|
|
1707
|
-
const
|
|
1071
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1708
1072
|
const headers = {};
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1073
|
+
b.bp("/v1/apps/{ApplicationId}/users/{UserId}");
|
|
1074
|
+
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
1075
|
+
b.p("UserId", () => input.UserId, "{UserId}", false);
|
|
1712
1076
|
let body;
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
hostname,
|
|
1716
|
-
port,
|
|
1717
|
-
method: "GET",
|
|
1718
|
-
headers,
|
|
1719
|
-
path: resolvedPath,
|
|
1720
|
-
body,
|
|
1721
|
-
});
|
|
1077
|
+
b.m("GET").h(headers).b(body);
|
|
1078
|
+
return b.build();
|
|
1722
1079
|
};
|
|
1723
1080
|
exports.se_GetUserEndpointsCommand = se_GetUserEndpointsCommand;
|
|
1724
1081
|
const se_GetVoiceChannelCommand = async (input, context) => {
|
|
1725
|
-
const
|
|
1082
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1726
1083
|
const headers = {};
|
|
1727
|
-
|
|
1728
|
-
|
|
1084
|
+
b.bp("/v1/apps/{ApplicationId}/channels/voice");
|
|
1085
|
+
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
1729
1086
|
let body;
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
hostname,
|
|
1733
|
-
port,
|
|
1734
|
-
method: "GET",
|
|
1735
|
-
headers,
|
|
1736
|
-
path: resolvedPath,
|
|
1737
|
-
body,
|
|
1738
|
-
});
|
|
1087
|
+
b.m("GET").h(headers).b(body);
|
|
1088
|
+
return b.build();
|
|
1739
1089
|
};
|
|
1740
1090
|
exports.se_GetVoiceChannelCommand = se_GetVoiceChannelCommand;
|
|
1741
1091
|
const se_GetVoiceTemplateCommand = async (input, context) => {
|
|
1742
|
-
const
|
|
1092
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1743
1093
|
const headers = {};
|
|
1744
|
-
|
|
1745
|
-
|
|
1094
|
+
b.bp("/v1/templates/{TemplateName}/voice");
|
|
1095
|
+
b.p("TemplateName", () => input.TemplateName, "{TemplateName}", false);
|
|
1746
1096
|
const query = (0, smithy_client_1.map)({
|
|
1747
|
-
|
|
1097
|
+
[_v]: [, input[_V]],
|
|
1748
1098
|
});
|
|
1749
1099
|
let body;
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
hostname,
|
|
1753
|
-
port,
|
|
1754
|
-
method: "GET",
|
|
1755
|
-
headers,
|
|
1756
|
-
path: resolvedPath,
|
|
1757
|
-
query,
|
|
1758
|
-
body,
|
|
1759
|
-
});
|
|
1100
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
1101
|
+
return b.build();
|
|
1760
1102
|
};
|
|
1761
1103
|
exports.se_GetVoiceTemplateCommand = se_GetVoiceTemplateCommand;
|
|
1762
1104
|
const se_ListJourneysCommand = async (input, context) => {
|
|
1763
|
-
const
|
|
1105
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1764
1106
|
const headers = {};
|
|
1765
|
-
|
|
1766
|
-
|
|
1107
|
+
b.bp("/v1/apps/{ApplicationId}/journeys");
|
|
1108
|
+
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
1767
1109
|
const query = (0, smithy_client_1.map)({
|
|
1768
|
-
|
|
1769
|
-
|
|
1110
|
+
[_ps]: [, input[_PS]],
|
|
1111
|
+
[_t]: [, input[_T]],
|
|
1770
1112
|
});
|
|
1771
1113
|
let body;
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
hostname,
|
|
1775
|
-
port,
|
|
1776
|
-
method: "GET",
|
|
1777
|
-
headers,
|
|
1778
|
-
path: resolvedPath,
|
|
1779
|
-
query,
|
|
1780
|
-
body,
|
|
1781
|
-
});
|
|
1114
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
1115
|
+
return b.build();
|
|
1782
1116
|
};
|
|
1783
1117
|
exports.se_ListJourneysCommand = se_ListJourneysCommand;
|
|
1784
1118
|
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
1785
|
-
const
|
|
1119
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1786
1120
|
const headers = {};
|
|
1787
|
-
|
|
1788
|
-
|
|
1121
|
+
b.bp("/v1/tags/{ResourceArn}");
|
|
1122
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
1789
1123
|
let body;
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
hostname,
|
|
1793
|
-
port,
|
|
1794
|
-
method: "GET",
|
|
1795
|
-
headers,
|
|
1796
|
-
path: resolvedPath,
|
|
1797
|
-
body,
|
|
1798
|
-
});
|
|
1124
|
+
b.m("GET").h(headers).b(body);
|
|
1125
|
+
return b.build();
|
|
1799
1126
|
};
|
|
1800
1127
|
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
1801
1128
|
const se_ListTemplatesCommand = async (input, context) => {
|
|
1802
|
-
const
|
|
1129
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1803
1130
|
const headers = {};
|
|
1804
|
-
|
|
1131
|
+
b.bp("/v1/templates");
|
|
1805
1132
|
const query = (0, smithy_client_1.map)({
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1133
|
+
[_nt]: [, input[_NT]],
|
|
1134
|
+
[_ps]: [, input[_PS]],
|
|
1135
|
+
[_p]: [, input[_P]],
|
|
1136
|
+
[_tt]: [, input[_TT]],
|
|
1810
1137
|
});
|
|
1811
1138
|
let body;
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
hostname,
|
|
1815
|
-
port,
|
|
1816
|
-
method: "GET",
|
|
1817
|
-
headers,
|
|
1818
|
-
path: resolvedPath,
|
|
1819
|
-
query,
|
|
1820
|
-
body,
|
|
1821
|
-
});
|
|
1139
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
1140
|
+
return b.build();
|
|
1822
1141
|
};
|
|
1823
1142
|
exports.se_ListTemplatesCommand = se_ListTemplatesCommand;
|
|
1824
1143
|
const se_ListTemplateVersionsCommand = async (input, context) => {
|
|
1825
|
-
const
|
|
1144
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1826
1145
|
const headers = {};
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "TemplateType", () => input.TemplateType, "{TemplateType}", false);
|
|
1146
|
+
b.bp("/v1/templates/{TemplateName}/{TemplateType}/versions");
|
|
1147
|
+
b.p("TemplateName", () => input.TemplateName, "{TemplateName}", false);
|
|
1148
|
+
b.p("TemplateType", () => input.TemplateType, "{TemplateType}", false);
|
|
1831
1149
|
const query = (0, smithy_client_1.map)({
|
|
1832
|
-
|
|
1833
|
-
|
|
1150
|
+
[_nt]: [, input[_NT]],
|
|
1151
|
+
[_ps]: [, input[_PS]],
|
|
1834
1152
|
});
|
|
1835
1153
|
let body;
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
hostname,
|
|
1839
|
-
port,
|
|
1840
|
-
method: "GET",
|
|
1841
|
-
headers,
|
|
1842
|
-
path: resolvedPath,
|
|
1843
|
-
query,
|
|
1844
|
-
body,
|
|
1845
|
-
});
|
|
1154
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
1155
|
+
return b.build();
|
|
1846
1156
|
};
|
|
1847
1157
|
exports.se_ListTemplateVersionsCommand = se_ListTemplateVersionsCommand;
|
|
1848
1158
|
const se_PhoneNumberValidateCommand = async (input, context) => {
|
|
1849
|
-
const
|
|
1159
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1850
1160
|
const headers = {
|
|
1851
1161
|
"content-type": "application/json",
|
|
1852
1162
|
};
|
|
1853
|
-
|
|
1163
|
+
b.bp("/v1/phone/number/validate");
|
|
1854
1164
|
let body;
|
|
1855
1165
|
if (input.NumberValidateRequest !== undefined) {
|
|
1856
1166
|
body = (0, smithy_client_1._json)(input.NumberValidateRequest);
|
|
@@ -1859,24 +1169,17 @@ const se_PhoneNumberValidateCommand = async (input, context) => {
|
|
|
1859
1169
|
body = {};
|
|
1860
1170
|
}
|
|
1861
1171
|
body = JSON.stringify(body);
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
hostname,
|
|
1865
|
-
port,
|
|
1866
|
-
method: "POST",
|
|
1867
|
-
headers,
|
|
1868
|
-
path: resolvedPath,
|
|
1869
|
-
body,
|
|
1870
|
-
});
|
|
1172
|
+
b.m("POST").h(headers).b(body);
|
|
1173
|
+
return b.build();
|
|
1871
1174
|
};
|
|
1872
1175
|
exports.se_PhoneNumberValidateCommand = se_PhoneNumberValidateCommand;
|
|
1873
1176
|
const se_PutEventsCommand = async (input, context) => {
|
|
1874
|
-
const
|
|
1177
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1875
1178
|
const headers = {
|
|
1876
1179
|
"content-type": "application/json",
|
|
1877
1180
|
};
|
|
1878
|
-
|
|
1879
|
-
|
|
1181
|
+
b.bp("/v1/apps/{ApplicationId}/events");
|
|
1182
|
+
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
1880
1183
|
let body;
|
|
1881
1184
|
if (input.EventsRequest !== undefined) {
|
|
1882
1185
|
body = se_EventsRequest(input.EventsRequest, context);
|
|
@@ -1885,24 +1188,17 @@ const se_PutEventsCommand = async (input, context) => {
|
|
|
1885
1188
|
body = {};
|
|
1886
1189
|
}
|
|
1887
1190
|
body = JSON.stringify(body);
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
hostname,
|
|
1891
|
-
port,
|
|
1892
|
-
method: "POST",
|
|
1893
|
-
headers,
|
|
1894
|
-
path: resolvedPath,
|
|
1895
|
-
body,
|
|
1896
|
-
});
|
|
1191
|
+
b.m("POST").h(headers).b(body);
|
|
1192
|
+
return b.build();
|
|
1897
1193
|
};
|
|
1898
1194
|
exports.se_PutEventsCommand = se_PutEventsCommand;
|
|
1899
1195
|
const se_PutEventStreamCommand = async (input, context) => {
|
|
1900
|
-
const
|
|
1196
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1901
1197
|
const headers = {
|
|
1902
1198
|
"content-type": "application/json",
|
|
1903
1199
|
};
|
|
1904
|
-
|
|
1905
|
-
|
|
1200
|
+
b.bp("/v1/apps/{ApplicationId}/eventstream");
|
|
1201
|
+
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
1906
1202
|
let body;
|
|
1907
1203
|
if (input.WriteEventStream !== undefined) {
|
|
1908
1204
|
body = (0, smithy_client_1._json)(input.WriteEventStream);
|
|
@@ -1911,26 +1207,18 @@ const se_PutEventStreamCommand = async (input, context) => {
|
|
|
1911
1207
|
body = {};
|
|
1912
1208
|
}
|
|
1913
1209
|
body = JSON.stringify(body);
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
hostname,
|
|
1917
|
-
port,
|
|
1918
|
-
method: "POST",
|
|
1919
|
-
headers,
|
|
1920
|
-
path: resolvedPath,
|
|
1921
|
-
body,
|
|
1922
|
-
});
|
|
1210
|
+
b.m("POST").h(headers).b(body);
|
|
1211
|
+
return b.build();
|
|
1923
1212
|
};
|
|
1924
1213
|
exports.se_PutEventStreamCommand = se_PutEventStreamCommand;
|
|
1925
1214
|
const se_RemoveAttributesCommand = async (input, context) => {
|
|
1926
|
-
const
|
|
1215
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1927
1216
|
const headers = {
|
|
1928
1217
|
"content-type": "application/json",
|
|
1929
1218
|
};
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "AttributeType", () => input.AttributeType, "{AttributeType}", false);
|
|
1219
|
+
b.bp("/v1/apps/{ApplicationId}/attributes/{AttributeType}");
|
|
1220
|
+
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
1221
|
+
b.p("AttributeType", () => input.AttributeType, "{AttributeType}", false);
|
|
1934
1222
|
let body;
|
|
1935
1223
|
if (input.UpdateAttributesRequest !== undefined) {
|
|
1936
1224
|
body = (0, smithy_client_1._json)(input.UpdateAttributesRequest);
|
|
@@ -1939,24 +1227,17 @@ const se_RemoveAttributesCommand = async (input, context) => {
|
|
|
1939
1227
|
body = {};
|
|
1940
1228
|
}
|
|
1941
1229
|
body = JSON.stringify(body);
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
hostname,
|
|
1945
|
-
port,
|
|
1946
|
-
method: "PUT",
|
|
1947
|
-
headers,
|
|
1948
|
-
path: resolvedPath,
|
|
1949
|
-
body,
|
|
1950
|
-
});
|
|
1230
|
+
b.m("PUT").h(headers).b(body);
|
|
1231
|
+
return b.build();
|
|
1951
1232
|
};
|
|
1952
1233
|
exports.se_RemoveAttributesCommand = se_RemoveAttributesCommand;
|
|
1953
1234
|
const se_SendMessagesCommand = async (input, context) => {
|
|
1954
|
-
const
|
|
1235
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1955
1236
|
const headers = {
|
|
1956
1237
|
"content-type": "application/json",
|
|
1957
1238
|
};
|
|
1958
|
-
|
|
1959
|
-
|
|
1239
|
+
b.bp("/v1/apps/{ApplicationId}/messages");
|
|
1240
|
+
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
1960
1241
|
let body;
|
|
1961
1242
|
if (input.MessageRequest !== undefined) {
|
|
1962
1243
|
body = se_MessageRequest(input.MessageRequest, context);
|
|
@@ -1965,24 +1246,17 @@ const se_SendMessagesCommand = async (input, context) => {
|
|
|
1965
1246
|
body = {};
|
|
1966
1247
|
}
|
|
1967
1248
|
body = JSON.stringify(body);
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
hostname,
|
|
1971
|
-
port,
|
|
1972
|
-
method: "POST",
|
|
1973
|
-
headers,
|
|
1974
|
-
path: resolvedPath,
|
|
1975
|
-
body,
|
|
1976
|
-
});
|
|
1249
|
+
b.m("POST").h(headers).b(body);
|
|
1250
|
+
return b.build();
|
|
1977
1251
|
};
|
|
1978
1252
|
exports.se_SendMessagesCommand = se_SendMessagesCommand;
|
|
1979
1253
|
const se_SendOTPMessageCommand = async (input, context) => {
|
|
1980
|
-
const
|
|
1254
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1981
1255
|
const headers = {
|
|
1982
1256
|
"content-type": "application/json",
|
|
1983
1257
|
};
|
|
1984
|
-
|
|
1985
|
-
|
|
1258
|
+
b.bp("/v1/apps/{ApplicationId}/otp");
|
|
1259
|
+
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
1986
1260
|
let body;
|
|
1987
1261
|
if (input.SendOTPMessageRequestParameters !== undefined) {
|
|
1988
1262
|
body = (0, smithy_client_1._json)(input.SendOTPMessageRequestParameters);
|
|
@@ -1991,24 +1265,17 @@ const se_SendOTPMessageCommand = async (input, context) => {
|
|
|
1991
1265
|
body = {};
|
|
1992
1266
|
}
|
|
1993
1267
|
body = JSON.stringify(body);
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
hostname,
|
|
1997
|
-
port,
|
|
1998
|
-
method: "POST",
|
|
1999
|
-
headers,
|
|
2000
|
-
path: resolvedPath,
|
|
2001
|
-
body,
|
|
2002
|
-
});
|
|
1268
|
+
b.m("POST").h(headers).b(body);
|
|
1269
|
+
return b.build();
|
|
2003
1270
|
};
|
|
2004
1271
|
exports.se_SendOTPMessageCommand = se_SendOTPMessageCommand;
|
|
2005
1272
|
const se_SendUsersMessagesCommand = async (input, context) => {
|
|
2006
|
-
const
|
|
1273
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
2007
1274
|
const headers = {
|
|
2008
1275
|
"content-type": "application/json",
|
|
2009
1276
|
};
|
|
2010
|
-
|
|
2011
|
-
|
|
1277
|
+
b.bp("/v1/apps/{ApplicationId}/users-messages");
|
|
1278
|
+
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
2012
1279
|
let body;
|
|
2013
1280
|
if (input.SendUsersMessageRequest !== undefined) {
|
|
2014
1281
|
body = se_SendUsersMessageRequest(input.SendUsersMessageRequest, context);
|
|
@@ -2017,24 +1284,17 @@ const se_SendUsersMessagesCommand = async (input, context) => {
|
|
|
2017
1284
|
body = {};
|
|
2018
1285
|
}
|
|
2019
1286
|
body = JSON.stringify(body);
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
hostname,
|
|
2023
|
-
port,
|
|
2024
|
-
method: "POST",
|
|
2025
|
-
headers,
|
|
2026
|
-
path: resolvedPath,
|
|
2027
|
-
body,
|
|
2028
|
-
});
|
|
1287
|
+
b.m("POST").h(headers).b(body);
|
|
1288
|
+
return b.build();
|
|
2029
1289
|
};
|
|
2030
1290
|
exports.se_SendUsersMessagesCommand = se_SendUsersMessagesCommand;
|
|
2031
1291
|
const se_TagResourceCommand = async (input, context) => {
|
|
2032
|
-
const
|
|
1292
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
2033
1293
|
const headers = {
|
|
2034
1294
|
"content-type": "application/json",
|
|
2035
1295
|
};
|
|
2036
|
-
|
|
2037
|
-
|
|
1296
|
+
b.bp("/v1/tags/{ResourceArn}");
|
|
1297
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
2038
1298
|
let body;
|
|
2039
1299
|
if (input.TagsModel !== undefined) {
|
|
2040
1300
|
body = se_TagsModel(input.TagsModel, context);
|
|
@@ -2043,48 +1303,33 @@ const se_TagResourceCommand = async (input, context) => {
|
|
|
2043
1303
|
body = {};
|
|
2044
1304
|
}
|
|
2045
1305
|
body = JSON.stringify(body);
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
hostname,
|
|
2049
|
-
port,
|
|
2050
|
-
method: "POST",
|
|
2051
|
-
headers,
|
|
2052
|
-
path: resolvedPath,
|
|
2053
|
-
body,
|
|
2054
|
-
});
|
|
1306
|
+
b.m("POST").h(headers).b(body);
|
|
1307
|
+
return b.build();
|
|
2055
1308
|
};
|
|
2056
1309
|
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
2057
1310
|
const se_UntagResourceCommand = async (input, context) => {
|
|
2058
|
-
const
|
|
1311
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
2059
1312
|
const headers = {};
|
|
2060
|
-
|
|
2061
|
-
|
|
1313
|
+
b.bp("/v1/tags/{ResourceArn}");
|
|
1314
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
2062
1315
|
const query = (0, smithy_client_1.map)({
|
|
2063
|
-
|
|
1316
|
+
[_tK]: [
|
|
2064
1317
|
(0, smithy_client_1.expectNonNull)(input.TagKeys, `TagKeys`) != null,
|
|
2065
|
-
() => (input
|
|
1318
|
+
() => (input[_TK] || []).map((_entry) => _entry),
|
|
2066
1319
|
],
|
|
2067
1320
|
});
|
|
2068
1321
|
let body;
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
hostname,
|
|
2072
|
-
port,
|
|
2073
|
-
method: "DELETE",
|
|
2074
|
-
headers,
|
|
2075
|
-
path: resolvedPath,
|
|
2076
|
-
query,
|
|
2077
|
-
body,
|
|
2078
|
-
});
|
|
1322
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
1323
|
+
return b.build();
|
|
2079
1324
|
};
|
|
2080
1325
|
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
2081
1326
|
const se_UpdateAdmChannelCommand = async (input, context) => {
|
|
2082
|
-
const
|
|
1327
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
2083
1328
|
const headers = {
|
|
2084
1329
|
"content-type": "application/json",
|
|
2085
1330
|
};
|
|
2086
|
-
|
|
2087
|
-
|
|
1331
|
+
b.bp("/v1/apps/{ApplicationId}/channels/adm");
|
|
1332
|
+
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
2088
1333
|
let body;
|
|
2089
1334
|
if (input.ADMChannelRequest !== undefined) {
|
|
2090
1335
|
body = (0, smithy_client_1._json)(input.ADMChannelRequest);
|
|
@@ -2093,24 +1338,17 @@ const se_UpdateAdmChannelCommand = async (input, context) => {
|
|
|
2093
1338
|
body = {};
|
|
2094
1339
|
}
|
|
2095
1340
|
body = JSON.stringify(body);
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
hostname,
|
|
2099
|
-
port,
|
|
2100
|
-
method: "PUT",
|
|
2101
|
-
headers,
|
|
2102
|
-
path: resolvedPath,
|
|
2103
|
-
body,
|
|
2104
|
-
});
|
|
1341
|
+
b.m("PUT").h(headers).b(body);
|
|
1342
|
+
return b.build();
|
|
2105
1343
|
};
|
|
2106
1344
|
exports.se_UpdateAdmChannelCommand = se_UpdateAdmChannelCommand;
|
|
2107
1345
|
const se_UpdateApnsChannelCommand = async (input, context) => {
|
|
2108
|
-
const
|
|
1346
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
2109
1347
|
const headers = {
|
|
2110
1348
|
"content-type": "application/json",
|
|
2111
1349
|
};
|
|
2112
|
-
|
|
2113
|
-
|
|
1350
|
+
b.bp("/v1/apps/{ApplicationId}/channels/apns");
|
|
1351
|
+
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
2114
1352
|
let body;
|
|
2115
1353
|
if (input.APNSChannelRequest !== undefined) {
|
|
2116
1354
|
body = (0, smithy_client_1._json)(input.APNSChannelRequest);
|
|
@@ -2119,25 +1357,17 @@ const se_UpdateApnsChannelCommand = async (input, context) => {
|
|
|
2119
1357
|
body = {};
|
|
2120
1358
|
}
|
|
2121
1359
|
body = JSON.stringify(body);
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
hostname,
|
|
2125
|
-
port,
|
|
2126
|
-
method: "PUT",
|
|
2127
|
-
headers,
|
|
2128
|
-
path: resolvedPath,
|
|
2129
|
-
body,
|
|
2130
|
-
});
|
|
1360
|
+
b.m("PUT").h(headers).b(body);
|
|
1361
|
+
return b.build();
|
|
2131
1362
|
};
|
|
2132
1363
|
exports.se_UpdateApnsChannelCommand = se_UpdateApnsChannelCommand;
|
|
2133
1364
|
const se_UpdateApnsSandboxChannelCommand = async (input, context) => {
|
|
2134
|
-
const
|
|
1365
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
2135
1366
|
const headers = {
|
|
2136
1367
|
"content-type": "application/json",
|
|
2137
1368
|
};
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
1369
|
+
b.bp("/v1/apps/{ApplicationId}/channels/apns_sandbox");
|
|
1370
|
+
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
2141
1371
|
let body;
|
|
2142
1372
|
if (input.APNSSandboxChannelRequest !== undefined) {
|
|
2143
1373
|
body = (0, smithy_client_1._json)(input.APNSSandboxChannelRequest);
|
|
@@ -2146,25 +1376,17 @@ const se_UpdateApnsSandboxChannelCommand = async (input, context) => {
|
|
|
2146
1376
|
body = {};
|
|
2147
1377
|
}
|
|
2148
1378
|
body = JSON.stringify(body);
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
hostname,
|
|
2152
|
-
port,
|
|
2153
|
-
method: "PUT",
|
|
2154
|
-
headers,
|
|
2155
|
-
path: resolvedPath,
|
|
2156
|
-
body,
|
|
2157
|
-
});
|
|
1379
|
+
b.m("PUT").h(headers).b(body);
|
|
1380
|
+
return b.build();
|
|
2158
1381
|
};
|
|
2159
1382
|
exports.se_UpdateApnsSandboxChannelCommand = se_UpdateApnsSandboxChannelCommand;
|
|
2160
1383
|
const se_UpdateApnsVoipChannelCommand = async (input, context) => {
|
|
2161
|
-
const
|
|
1384
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
2162
1385
|
const headers = {
|
|
2163
1386
|
"content-type": "application/json",
|
|
2164
1387
|
};
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
1388
|
+
b.bp("/v1/apps/{ApplicationId}/channels/apns_voip");
|
|
1389
|
+
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
2168
1390
|
let body;
|
|
2169
1391
|
if (input.APNSVoipChannelRequest !== undefined) {
|
|
2170
1392
|
body = (0, smithy_client_1._json)(input.APNSVoipChannelRequest);
|
|
@@ -2173,25 +1395,17 @@ const se_UpdateApnsVoipChannelCommand = async (input, context) => {
|
|
|
2173
1395
|
body = {};
|
|
2174
1396
|
}
|
|
2175
1397
|
body = JSON.stringify(body);
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
hostname,
|
|
2179
|
-
port,
|
|
2180
|
-
method: "PUT",
|
|
2181
|
-
headers,
|
|
2182
|
-
path: resolvedPath,
|
|
2183
|
-
body,
|
|
2184
|
-
});
|
|
1398
|
+
b.m("PUT").h(headers).b(body);
|
|
1399
|
+
return b.build();
|
|
2185
1400
|
};
|
|
2186
1401
|
exports.se_UpdateApnsVoipChannelCommand = se_UpdateApnsVoipChannelCommand;
|
|
2187
1402
|
const se_UpdateApnsVoipSandboxChannelCommand = async (input, context) => {
|
|
2188
|
-
const
|
|
1403
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
2189
1404
|
const headers = {
|
|
2190
1405
|
"content-type": "application/json",
|
|
2191
1406
|
};
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
1407
|
+
b.bp("/v1/apps/{ApplicationId}/channels/apns_voip_sandbox");
|
|
1408
|
+
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
2195
1409
|
let body;
|
|
2196
1410
|
if (input.APNSVoipSandboxChannelRequest !== undefined) {
|
|
2197
1411
|
body = (0, smithy_client_1._json)(input.APNSVoipSandboxChannelRequest);
|
|
@@ -2200,24 +1414,17 @@ const se_UpdateApnsVoipSandboxChannelCommand = async (input, context) => {
|
|
|
2200
1414
|
body = {};
|
|
2201
1415
|
}
|
|
2202
1416
|
body = JSON.stringify(body);
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
hostname,
|
|
2206
|
-
port,
|
|
2207
|
-
method: "PUT",
|
|
2208
|
-
headers,
|
|
2209
|
-
path: resolvedPath,
|
|
2210
|
-
body,
|
|
2211
|
-
});
|
|
1417
|
+
b.m("PUT").h(headers).b(body);
|
|
1418
|
+
return b.build();
|
|
2212
1419
|
};
|
|
2213
1420
|
exports.se_UpdateApnsVoipSandboxChannelCommand = se_UpdateApnsVoipSandboxChannelCommand;
|
|
2214
1421
|
const se_UpdateApplicationSettingsCommand = async (input, context) => {
|
|
2215
|
-
const
|
|
1422
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
2216
1423
|
const headers = {
|
|
2217
1424
|
"content-type": "application/json",
|
|
2218
1425
|
};
|
|
2219
|
-
|
|
2220
|
-
|
|
1426
|
+
b.bp("/v1/apps/{ApplicationId}/settings");
|
|
1427
|
+
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
2221
1428
|
let body;
|
|
2222
1429
|
if (input.WriteApplicationSettingsRequest !== undefined) {
|
|
2223
1430
|
body = (0, smithy_client_1._json)(input.WriteApplicationSettingsRequest);
|
|
@@ -2226,24 +1433,17 @@ const se_UpdateApplicationSettingsCommand = async (input, context) => {
|
|
|
2226
1433
|
body = {};
|
|
2227
1434
|
}
|
|
2228
1435
|
body = JSON.stringify(body);
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
hostname,
|
|
2232
|
-
port,
|
|
2233
|
-
method: "PUT",
|
|
2234
|
-
headers,
|
|
2235
|
-
path: resolvedPath,
|
|
2236
|
-
body,
|
|
2237
|
-
});
|
|
1436
|
+
b.m("PUT").h(headers).b(body);
|
|
1437
|
+
return b.build();
|
|
2238
1438
|
};
|
|
2239
1439
|
exports.se_UpdateApplicationSettingsCommand = se_UpdateApplicationSettingsCommand;
|
|
2240
1440
|
const se_UpdateBaiduChannelCommand = async (input, context) => {
|
|
2241
|
-
const
|
|
1441
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
2242
1442
|
const headers = {
|
|
2243
1443
|
"content-type": "application/json",
|
|
2244
1444
|
};
|
|
2245
|
-
|
|
2246
|
-
|
|
1445
|
+
b.bp("/v1/apps/{ApplicationId}/channels/baidu");
|
|
1446
|
+
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
2247
1447
|
let body;
|
|
2248
1448
|
if (input.BaiduChannelRequest !== undefined) {
|
|
2249
1449
|
body = (0, smithy_client_1._json)(input.BaiduChannelRequest);
|
|
@@ -2252,26 +1452,18 @@ const se_UpdateBaiduChannelCommand = async (input, context) => {
|
|
|
2252
1452
|
body = {};
|
|
2253
1453
|
}
|
|
2254
1454
|
body = JSON.stringify(body);
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
hostname,
|
|
2258
|
-
port,
|
|
2259
|
-
method: "PUT",
|
|
2260
|
-
headers,
|
|
2261
|
-
path: resolvedPath,
|
|
2262
|
-
body,
|
|
2263
|
-
});
|
|
1455
|
+
b.m("PUT").h(headers).b(body);
|
|
1456
|
+
return b.build();
|
|
2264
1457
|
};
|
|
2265
1458
|
exports.se_UpdateBaiduChannelCommand = se_UpdateBaiduChannelCommand;
|
|
2266
1459
|
const se_UpdateCampaignCommand = async (input, context) => {
|
|
2267
|
-
const
|
|
1460
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
2268
1461
|
const headers = {
|
|
2269
1462
|
"content-type": "application/json",
|
|
2270
1463
|
};
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CampaignId", () => input.CampaignId, "{CampaignId}", false);
|
|
1464
|
+
b.bp("/v1/apps/{ApplicationId}/campaigns/{CampaignId}");
|
|
1465
|
+
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
1466
|
+
b.p("CampaignId", () => input.CampaignId, "{CampaignId}", false);
|
|
2275
1467
|
let body;
|
|
2276
1468
|
if (input.WriteCampaignRequest !== undefined) {
|
|
2277
1469
|
body = se_WriteCampaignRequest(input.WriteCampaignRequest, context);
|
|
@@ -2280,24 +1472,17 @@ const se_UpdateCampaignCommand = async (input, context) => {
|
|
|
2280
1472
|
body = {};
|
|
2281
1473
|
}
|
|
2282
1474
|
body = JSON.stringify(body);
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
hostname,
|
|
2286
|
-
port,
|
|
2287
|
-
method: "PUT",
|
|
2288
|
-
headers,
|
|
2289
|
-
path: resolvedPath,
|
|
2290
|
-
body,
|
|
2291
|
-
});
|
|
1475
|
+
b.m("PUT").h(headers).b(body);
|
|
1476
|
+
return b.build();
|
|
2292
1477
|
};
|
|
2293
1478
|
exports.se_UpdateCampaignCommand = se_UpdateCampaignCommand;
|
|
2294
1479
|
const se_UpdateEmailChannelCommand = async (input, context) => {
|
|
2295
|
-
const
|
|
1480
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
2296
1481
|
const headers = {
|
|
2297
1482
|
"content-type": "application/json",
|
|
2298
1483
|
};
|
|
2299
|
-
|
|
2300
|
-
|
|
1484
|
+
b.bp("/v1/apps/{ApplicationId}/channels/email");
|
|
1485
|
+
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
2301
1486
|
let body;
|
|
2302
1487
|
if (input.EmailChannelRequest !== undefined) {
|
|
2303
1488
|
body = (0, smithy_client_1._json)(input.EmailChannelRequest);
|
|
@@ -2306,27 +1491,20 @@ const se_UpdateEmailChannelCommand = async (input, context) => {
|
|
|
2306
1491
|
body = {};
|
|
2307
1492
|
}
|
|
2308
1493
|
body = JSON.stringify(body);
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
hostname,
|
|
2312
|
-
port,
|
|
2313
|
-
method: "PUT",
|
|
2314
|
-
headers,
|
|
2315
|
-
path: resolvedPath,
|
|
2316
|
-
body,
|
|
2317
|
-
});
|
|
1494
|
+
b.m("PUT").h(headers).b(body);
|
|
1495
|
+
return b.build();
|
|
2318
1496
|
};
|
|
2319
1497
|
exports.se_UpdateEmailChannelCommand = se_UpdateEmailChannelCommand;
|
|
2320
1498
|
const se_UpdateEmailTemplateCommand = async (input, context) => {
|
|
2321
|
-
const
|
|
1499
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
2322
1500
|
const headers = {
|
|
2323
1501
|
"content-type": "application/json",
|
|
2324
1502
|
};
|
|
2325
|
-
|
|
2326
|
-
|
|
1503
|
+
b.bp("/v1/templates/{TemplateName}/email");
|
|
1504
|
+
b.p("TemplateName", () => input.TemplateName, "{TemplateName}", false);
|
|
2327
1505
|
const query = (0, smithy_client_1.map)({
|
|
2328
|
-
|
|
2329
|
-
|
|
1506
|
+
[_cnv]: [() => input.CreateNewVersion !== void 0, () => input[_CNV].toString()],
|
|
1507
|
+
[_v]: [, input[_V]],
|
|
2330
1508
|
});
|
|
2331
1509
|
let body;
|
|
2332
1510
|
if (input.EmailTemplateRequest !== undefined) {
|
|
@@ -2336,27 +1514,18 @@ const se_UpdateEmailTemplateCommand = async (input, context) => {
|
|
|
2336
1514
|
body = {};
|
|
2337
1515
|
}
|
|
2338
1516
|
body = JSON.stringify(body);
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
hostname,
|
|
2342
|
-
port,
|
|
2343
|
-
method: "PUT",
|
|
2344
|
-
headers,
|
|
2345
|
-
path: resolvedPath,
|
|
2346
|
-
query,
|
|
2347
|
-
body,
|
|
2348
|
-
});
|
|
1517
|
+
b.m("PUT").h(headers).q(query).b(body);
|
|
1518
|
+
return b.build();
|
|
2349
1519
|
};
|
|
2350
1520
|
exports.se_UpdateEmailTemplateCommand = se_UpdateEmailTemplateCommand;
|
|
2351
1521
|
const se_UpdateEndpointCommand = async (input, context) => {
|
|
2352
|
-
const
|
|
1522
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
2353
1523
|
const headers = {
|
|
2354
1524
|
"content-type": "application/json",
|
|
2355
1525
|
};
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EndpointId", () => input.EndpointId, "{EndpointId}", false);
|
|
1526
|
+
b.bp("/v1/apps/{ApplicationId}/endpoints/{EndpointId}");
|
|
1527
|
+
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
1528
|
+
b.p("EndpointId", () => input.EndpointId, "{EndpointId}", false);
|
|
2360
1529
|
let body;
|
|
2361
1530
|
if (input.EndpointRequest !== undefined) {
|
|
2362
1531
|
body = se_EndpointRequest(input.EndpointRequest, context);
|
|
@@ -2365,24 +1534,17 @@ const se_UpdateEndpointCommand = async (input, context) => {
|
|
|
2365
1534
|
body = {};
|
|
2366
1535
|
}
|
|
2367
1536
|
body = JSON.stringify(body);
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
hostname,
|
|
2371
|
-
port,
|
|
2372
|
-
method: "PUT",
|
|
2373
|
-
headers,
|
|
2374
|
-
path: resolvedPath,
|
|
2375
|
-
body,
|
|
2376
|
-
});
|
|
1537
|
+
b.m("PUT").h(headers).b(body);
|
|
1538
|
+
return b.build();
|
|
2377
1539
|
};
|
|
2378
1540
|
exports.se_UpdateEndpointCommand = se_UpdateEndpointCommand;
|
|
2379
1541
|
const se_UpdateEndpointsBatchCommand = async (input, context) => {
|
|
2380
|
-
const
|
|
1542
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
2381
1543
|
const headers = {
|
|
2382
1544
|
"content-type": "application/json",
|
|
2383
1545
|
};
|
|
2384
|
-
|
|
2385
|
-
|
|
1546
|
+
b.bp("/v1/apps/{ApplicationId}/endpoints");
|
|
1547
|
+
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
2386
1548
|
let body;
|
|
2387
1549
|
if (input.EndpointBatchRequest !== undefined) {
|
|
2388
1550
|
body = se_EndpointBatchRequest(input.EndpointBatchRequest, context);
|
|
@@ -2391,24 +1553,17 @@ const se_UpdateEndpointsBatchCommand = async (input, context) => {
|
|
|
2391
1553
|
body = {};
|
|
2392
1554
|
}
|
|
2393
1555
|
body = JSON.stringify(body);
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
hostname,
|
|
2397
|
-
port,
|
|
2398
|
-
method: "PUT",
|
|
2399
|
-
headers,
|
|
2400
|
-
path: resolvedPath,
|
|
2401
|
-
body,
|
|
2402
|
-
});
|
|
1556
|
+
b.m("PUT").h(headers).b(body);
|
|
1557
|
+
return b.build();
|
|
2403
1558
|
};
|
|
2404
1559
|
exports.se_UpdateEndpointsBatchCommand = se_UpdateEndpointsBatchCommand;
|
|
2405
1560
|
const se_UpdateGcmChannelCommand = async (input, context) => {
|
|
2406
|
-
const
|
|
1561
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
2407
1562
|
const headers = {
|
|
2408
1563
|
"content-type": "application/json",
|
|
2409
1564
|
};
|
|
2410
|
-
|
|
2411
|
-
|
|
1565
|
+
b.bp("/v1/apps/{ApplicationId}/channels/gcm");
|
|
1566
|
+
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
2412
1567
|
let body;
|
|
2413
1568
|
if (input.GCMChannelRequest !== undefined) {
|
|
2414
1569
|
body = (0, smithy_client_1._json)(input.GCMChannelRequest);
|
|
@@ -2417,27 +1572,20 @@ const se_UpdateGcmChannelCommand = async (input, context) => {
|
|
|
2417
1572
|
body = {};
|
|
2418
1573
|
}
|
|
2419
1574
|
body = JSON.stringify(body);
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
hostname,
|
|
2423
|
-
port,
|
|
2424
|
-
method: "PUT",
|
|
2425
|
-
headers,
|
|
2426
|
-
path: resolvedPath,
|
|
2427
|
-
body,
|
|
2428
|
-
});
|
|
1575
|
+
b.m("PUT").h(headers).b(body);
|
|
1576
|
+
return b.build();
|
|
2429
1577
|
};
|
|
2430
1578
|
exports.se_UpdateGcmChannelCommand = se_UpdateGcmChannelCommand;
|
|
2431
1579
|
const se_UpdateInAppTemplateCommand = async (input, context) => {
|
|
2432
|
-
const
|
|
1580
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
2433
1581
|
const headers = {
|
|
2434
1582
|
"content-type": "application/json",
|
|
2435
1583
|
};
|
|
2436
|
-
|
|
2437
|
-
|
|
1584
|
+
b.bp("/v1/templates/{TemplateName}/inapp");
|
|
1585
|
+
b.p("TemplateName", () => input.TemplateName, "{TemplateName}", false);
|
|
2438
1586
|
const query = (0, smithy_client_1.map)({
|
|
2439
|
-
|
|
2440
|
-
|
|
1587
|
+
[_cnv]: [() => input.CreateNewVersion !== void 0, () => input[_CNV].toString()],
|
|
1588
|
+
[_v]: [, input[_V]],
|
|
2441
1589
|
});
|
|
2442
1590
|
let body;
|
|
2443
1591
|
if (input.InAppTemplateRequest !== undefined) {
|
|
@@ -2447,27 +1595,18 @@ const se_UpdateInAppTemplateCommand = async (input, context) => {
|
|
|
2447
1595
|
body = {};
|
|
2448
1596
|
}
|
|
2449
1597
|
body = JSON.stringify(body);
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
hostname,
|
|
2453
|
-
port,
|
|
2454
|
-
method: "PUT",
|
|
2455
|
-
headers,
|
|
2456
|
-
path: resolvedPath,
|
|
2457
|
-
query,
|
|
2458
|
-
body,
|
|
2459
|
-
});
|
|
1598
|
+
b.m("PUT").h(headers).q(query).b(body);
|
|
1599
|
+
return b.build();
|
|
2460
1600
|
};
|
|
2461
1601
|
exports.se_UpdateInAppTemplateCommand = se_UpdateInAppTemplateCommand;
|
|
2462
1602
|
const se_UpdateJourneyCommand = async (input, context) => {
|
|
2463
|
-
const
|
|
1603
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
2464
1604
|
const headers = {
|
|
2465
1605
|
"content-type": "application/json",
|
|
2466
1606
|
};
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "JourneyId", () => input.JourneyId, "{JourneyId}", false);
|
|
1607
|
+
b.bp("/v1/apps/{ApplicationId}/journeys/{JourneyId}");
|
|
1608
|
+
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
1609
|
+
b.p("JourneyId", () => input.JourneyId, "{JourneyId}", false);
|
|
2471
1610
|
let body;
|
|
2472
1611
|
if (input.WriteJourneyRequest !== undefined) {
|
|
2473
1612
|
body = se_WriteJourneyRequest(input.WriteJourneyRequest, context);
|
|
@@ -2476,26 +1615,18 @@ const se_UpdateJourneyCommand = async (input, context) => {
|
|
|
2476
1615
|
body = {};
|
|
2477
1616
|
}
|
|
2478
1617
|
body = JSON.stringify(body);
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
hostname,
|
|
2482
|
-
port,
|
|
2483
|
-
method: "PUT",
|
|
2484
|
-
headers,
|
|
2485
|
-
path: resolvedPath,
|
|
2486
|
-
body,
|
|
2487
|
-
});
|
|
1618
|
+
b.m("PUT").h(headers).b(body);
|
|
1619
|
+
return b.build();
|
|
2488
1620
|
};
|
|
2489
1621
|
exports.se_UpdateJourneyCommand = se_UpdateJourneyCommand;
|
|
2490
1622
|
const se_UpdateJourneyStateCommand = async (input, context) => {
|
|
2491
|
-
const
|
|
1623
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
2492
1624
|
const headers = {
|
|
2493
1625
|
"content-type": "application/json",
|
|
2494
1626
|
};
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "JourneyId", () => input.JourneyId, "{JourneyId}", false);
|
|
1627
|
+
b.bp("/v1/apps/{ApplicationId}/journeys/{JourneyId}/state");
|
|
1628
|
+
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
1629
|
+
b.p("JourneyId", () => input.JourneyId, "{JourneyId}", false);
|
|
2499
1630
|
let body;
|
|
2500
1631
|
if (input.JourneyStateRequest !== undefined) {
|
|
2501
1632
|
body = (0, smithy_client_1._json)(input.JourneyStateRequest);
|
|
@@ -2504,27 +1635,20 @@ const se_UpdateJourneyStateCommand = async (input, context) => {
|
|
|
2504
1635
|
body = {};
|
|
2505
1636
|
}
|
|
2506
1637
|
body = JSON.stringify(body);
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
hostname,
|
|
2510
|
-
port,
|
|
2511
|
-
method: "PUT",
|
|
2512
|
-
headers,
|
|
2513
|
-
path: resolvedPath,
|
|
2514
|
-
body,
|
|
2515
|
-
});
|
|
1638
|
+
b.m("PUT").h(headers).b(body);
|
|
1639
|
+
return b.build();
|
|
2516
1640
|
};
|
|
2517
1641
|
exports.se_UpdateJourneyStateCommand = se_UpdateJourneyStateCommand;
|
|
2518
1642
|
const se_UpdatePushTemplateCommand = async (input, context) => {
|
|
2519
|
-
const
|
|
1643
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
2520
1644
|
const headers = {
|
|
2521
1645
|
"content-type": "application/json",
|
|
2522
1646
|
};
|
|
2523
|
-
|
|
2524
|
-
|
|
1647
|
+
b.bp("/v1/templates/{TemplateName}/push");
|
|
1648
|
+
b.p("TemplateName", () => input.TemplateName, "{TemplateName}", false);
|
|
2525
1649
|
const query = (0, smithy_client_1.map)({
|
|
2526
|
-
|
|
2527
|
-
|
|
1650
|
+
[_cnv]: [() => input.CreateNewVersion !== void 0, () => input[_CNV].toString()],
|
|
1651
|
+
[_v]: [, input[_V]],
|
|
2528
1652
|
});
|
|
2529
1653
|
let body;
|
|
2530
1654
|
if (input.PushNotificationTemplateRequest !== undefined) {
|
|
@@ -2534,25 +1658,17 @@ const se_UpdatePushTemplateCommand = async (input, context) => {
|
|
|
2534
1658
|
body = {};
|
|
2535
1659
|
}
|
|
2536
1660
|
body = JSON.stringify(body);
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
hostname,
|
|
2540
|
-
port,
|
|
2541
|
-
method: "PUT",
|
|
2542
|
-
headers,
|
|
2543
|
-
path: resolvedPath,
|
|
2544
|
-
query,
|
|
2545
|
-
body,
|
|
2546
|
-
});
|
|
1661
|
+
b.m("PUT").h(headers).q(query).b(body);
|
|
1662
|
+
return b.build();
|
|
2547
1663
|
};
|
|
2548
1664
|
exports.se_UpdatePushTemplateCommand = se_UpdatePushTemplateCommand;
|
|
2549
1665
|
const se_UpdateRecommenderConfigurationCommand = async (input, context) => {
|
|
2550
|
-
const
|
|
1666
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
2551
1667
|
const headers = {
|
|
2552
1668
|
"content-type": "application/json",
|
|
2553
1669
|
};
|
|
2554
|
-
|
|
2555
|
-
|
|
1670
|
+
b.bp("/v1/recommenders/{RecommenderId}");
|
|
1671
|
+
b.p("RecommenderId", () => input.RecommenderId, "{RecommenderId}", false);
|
|
2556
1672
|
let body;
|
|
2557
1673
|
if (input.UpdateRecommenderConfiguration !== undefined) {
|
|
2558
1674
|
body = (0, smithy_client_1._json)(input.UpdateRecommenderConfiguration);
|
|
@@ -2561,26 +1677,18 @@ const se_UpdateRecommenderConfigurationCommand = async (input, context) => {
|
|
|
2561
1677
|
body = {};
|
|
2562
1678
|
}
|
|
2563
1679
|
body = JSON.stringify(body);
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
hostname,
|
|
2567
|
-
port,
|
|
2568
|
-
method: "PUT",
|
|
2569
|
-
headers,
|
|
2570
|
-
path: resolvedPath,
|
|
2571
|
-
body,
|
|
2572
|
-
});
|
|
1680
|
+
b.m("PUT").h(headers).b(body);
|
|
1681
|
+
return b.build();
|
|
2573
1682
|
};
|
|
2574
1683
|
exports.se_UpdateRecommenderConfigurationCommand = se_UpdateRecommenderConfigurationCommand;
|
|
2575
1684
|
const se_UpdateSegmentCommand = async (input, context) => {
|
|
2576
|
-
const
|
|
1685
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
2577
1686
|
const headers = {
|
|
2578
1687
|
"content-type": "application/json",
|
|
2579
1688
|
};
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SegmentId", () => input.SegmentId, "{SegmentId}", false);
|
|
1689
|
+
b.bp("/v1/apps/{ApplicationId}/segments/{SegmentId}");
|
|
1690
|
+
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
1691
|
+
b.p("SegmentId", () => input.SegmentId, "{SegmentId}", false);
|
|
2584
1692
|
let body;
|
|
2585
1693
|
if (input.WriteSegmentRequest !== undefined) {
|
|
2586
1694
|
body = se_WriteSegmentRequest(input.WriteSegmentRequest, context);
|
|
@@ -2589,24 +1697,17 @@ const se_UpdateSegmentCommand = async (input, context) => {
|
|
|
2589
1697
|
body = {};
|
|
2590
1698
|
}
|
|
2591
1699
|
body = JSON.stringify(body);
|
|
2592
|
-
|
|
2593
|
-
|
|
2594
|
-
hostname,
|
|
2595
|
-
port,
|
|
2596
|
-
method: "PUT",
|
|
2597
|
-
headers,
|
|
2598
|
-
path: resolvedPath,
|
|
2599
|
-
body,
|
|
2600
|
-
});
|
|
1700
|
+
b.m("PUT").h(headers).b(body);
|
|
1701
|
+
return b.build();
|
|
2601
1702
|
};
|
|
2602
1703
|
exports.se_UpdateSegmentCommand = se_UpdateSegmentCommand;
|
|
2603
1704
|
const se_UpdateSmsChannelCommand = async (input, context) => {
|
|
2604
|
-
const
|
|
1705
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
2605
1706
|
const headers = {
|
|
2606
1707
|
"content-type": "application/json",
|
|
2607
1708
|
};
|
|
2608
|
-
|
|
2609
|
-
|
|
1709
|
+
b.bp("/v1/apps/{ApplicationId}/channels/sms");
|
|
1710
|
+
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
2610
1711
|
let body;
|
|
2611
1712
|
if (input.SMSChannelRequest !== undefined) {
|
|
2612
1713
|
body = (0, smithy_client_1._json)(input.SMSChannelRequest);
|
|
@@ -2615,27 +1716,20 @@ const se_UpdateSmsChannelCommand = async (input, context) => {
|
|
|
2615
1716
|
body = {};
|
|
2616
1717
|
}
|
|
2617
1718
|
body = JSON.stringify(body);
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
hostname,
|
|
2621
|
-
port,
|
|
2622
|
-
method: "PUT",
|
|
2623
|
-
headers,
|
|
2624
|
-
path: resolvedPath,
|
|
2625
|
-
body,
|
|
2626
|
-
});
|
|
1719
|
+
b.m("PUT").h(headers).b(body);
|
|
1720
|
+
return b.build();
|
|
2627
1721
|
};
|
|
2628
1722
|
exports.se_UpdateSmsChannelCommand = se_UpdateSmsChannelCommand;
|
|
2629
1723
|
const se_UpdateSmsTemplateCommand = async (input, context) => {
|
|
2630
|
-
const
|
|
1724
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
2631
1725
|
const headers = {
|
|
2632
1726
|
"content-type": "application/json",
|
|
2633
1727
|
};
|
|
2634
|
-
|
|
2635
|
-
|
|
1728
|
+
b.bp("/v1/templates/{TemplateName}/sms");
|
|
1729
|
+
b.p("TemplateName", () => input.TemplateName, "{TemplateName}", false);
|
|
2636
1730
|
const query = (0, smithy_client_1.map)({
|
|
2637
|
-
|
|
2638
|
-
|
|
1731
|
+
[_cnv]: [() => input.CreateNewVersion !== void 0, () => input[_CNV].toString()],
|
|
1732
|
+
[_v]: [, input[_V]],
|
|
2639
1733
|
});
|
|
2640
1734
|
let body;
|
|
2641
1735
|
if (input.SMSTemplateRequest !== undefined) {
|
|
@@ -2645,27 +1739,18 @@ const se_UpdateSmsTemplateCommand = async (input, context) => {
|
|
|
2645
1739
|
body = {};
|
|
2646
1740
|
}
|
|
2647
1741
|
body = JSON.stringify(body);
|
|
2648
|
-
|
|
2649
|
-
|
|
2650
|
-
hostname,
|
|
2651
|
-
port,
|
|
2652
|
-
method: "PUT",
|
|
2653
|
-
headers,
|
|
2654
|
-
path: resolvedPath,
|
|
2655
|
-
query,
|
|
2656
|
-
body,
|
|
2657
|
-
});
|
|
1742
|
+
b.m("PUT").h(headers).q(query).b(body);
|
|
1743
|
+
return b.build();
|
|
2658
1744
|
};
|
|
2659
1745
|
exports.se_UpdateSmsTemplateCommand = se_UpdateSmsTemplateCommand;
|
|
2660
1746
|
const se_UpdateTemplateActiveVersionCommand = async (input, context) => {
|
|
2661
|
-
const
|
|
1747
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
2662
1748
|
const headers = {
|
|
2663
1749
|
"content-type": "application/json",
|
|
2664
1750
|
};
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "TemplateType", () => input.TemplateType, "{TemplateType}", false);
|
|
1751
|
+
b.bp("/v1/templates/{TemplateName}/{TemplateType}/active-version");
|
|
1752
|
+
b.p("TemplateName", () => input.TemplateName, "{TemplateName}", false);
|
|
1753
|
+
b.p("TemplateType", () => input.TemplateType, "{TemplateType}", false);
|
|
2669
1754
|
let body;
|
|
2670
1755
|
if (input.TemplateActiveVersionRequest !== undefined) {
|
|
2671
1756
|
body = (0, smithy_client_1._json)(input.TemplateActiveVersionRequest);
|
|
@@ -2674,24 +1759,17 @@ const se_UpdateTemplateActiveVersionCommand = async (input, context) => {
|
|
|
2674
1759
|
body = {};
|
|
2675
1760
|
}
|
|
2676
1761
|
body = JSON.stringify(body);
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
hostname,
|
|
2680
|
-
port,
|
|
2681
|
-
method: "PUT",
|
|
2682
|
-
headers,
|
|
2683
|
-
path: resolvedPath,
|
|
2684
|
-
body,
|
|
2685
|
-
});
|
|
1762
|
+
b.m("PUT").h(headers).b(body);
|
|
1763
|
+
return b.build();
|
|
2686
1764
|
};
|
|
2687
1765
|
exports.se_UpdateTemplateActiveVersionCommand = se_UpdateTemplateActiveVersionCommand;
|
|
2688
1766
|
const se_UpdateVoiceChannelCommand = async (input, context) => {
|
|
2689
|
-
const
|
|
1767
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
2690
1768
|
const headers = {
|
|
2691
1769
|
"content-type": "application/json",
|
|
2692
1770
|
};
|
|
2693
|
-
|
|
2694
|
-
|
|
1771
|
+
b.bp("/v1/apps/{ApplicationId}/channels/voice");
|
|
1772
|
+
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
2695
1773
|
let body;
|
|
2696
1774
|
if (input.VoiceChannelRequest !== undefined) {
|
|
2697
1775
|
body = (0, smithy_client_1._json)(input.VoiceChannelRequest);
|
|
@@ -2700,27 +1778,20 @@ const se_UpdateVoiceChannelCommand = async (input, context) => {
|
|
|
2700
1778
|
body = {};
|
|
2701
1779
|
}
|
|
2702
1780
|
body = JSON.stringify(body);
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
hostname,
|
|
2706
|
-
port,
|
|
2707
|
-
method: "PUT",
|
|
2708
|
-
headers,
|
|
2709
|
-
path: resolvedPath,
|
|
2710
|
-
body,
|
|
2711
|
-
});
|
|
1781
|
+
b.m("PUT").h(headers).b(body);
|
|
1782
|
+
return b.build();
|
|
2712
1783
|
};
|
|
2713
1784
|
exports.se_UpdateVoiceChannelCommand = se_UpdateVoiceChannelCommand;
|
|
2714
1785
|
const se_UpdateVoiceTemplateCommand = async (input, context) => {
|
|
2715
|
-
const
|
|
1786
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
2716
1787
|
const headers = {
|
|
2717
1788
|
"content-type": "application/json",
|
|
2718
1789
|
};
|
|
2719
|
-
|
|
2720
|
-
|
|
1790
|
+
b.bp("/v1/templates/{TemplateName}/voice");
|
|
1791
|
+
b.p("TemplateName", () => input.TemplateName, "{TemplateName}", false);
|
|
2721
1792
|
const query = (0, smithy_client_1.map)({
|
|
2722
|
-
|
|
2723
|
-
|
|
1793
|
+
[_cnv]: [() => input.CreateNewVersion !== void 0, () => input[_CNV].toString()],
|
|
1794
|
+
[_v]: [, input[_V]],
|
|
2724
1795
|
});
|
|
2725
1796
|
let body;
|
|
2726
1797
|
if (input.VoiceTemplateRequest !== undefined) {
|
|
@@ -2730,25 +1801,17 @@ const se_UpdateVoiceTemplateCommand = async (input, context) => {
|
|
|
2730
1801
|
body = {};
|
|
2731
1802
|
}
|
|
2732
1803
|
body = JSON.stringify(body);
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
hostname,
|
|
2736
|
-
port,
|
|
2737
|
-
method: "PUT",
|
|
2738
|
-
headers,
|
|
2739
|
-
path: resolvedPath,
|
|
2740
|
-
query,
|
|
2741
|
-
body,
|
|
2742
|
-
});
|
|
1804
|
+
b.m("PUT").h(headers).q(query).b(body);
|
|
1805
|
+
return b.build();
|
|
2743
1806
|
};
|
|
2744
1807
|
exports.se_UpdateVoiceTemplateCommand = se_UpdateVoiceTemplateCommand;
|
|
2745
1808
|
const se_VerifyOTPMessageCommand = async (input, context) => {
|
|
2746
|
-
const
|
|
1809
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
2747
1810
|
const headers = {
|
|
2748
1811
|
"content-type": "application/json",
|
|
2749
1812
|
};
|
|
2750
|
-
|
|
2751
|
-
|
|
1813
|
+
b.bp("/v1/apps/{ApplicationId}/verify-otp");
|
|
1814
|
+
b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
|
|
2752
1815
|
let body;
|
|
2753
1816
|
if (input.VerifyOTPMessageRequestParameters !== undefined) {
|
|
2754
1817
|
body = (0, smithy_client_1._json)(input.VerifyOTPMessageRequestParameters);
|
|
@@ -2757,15 +1820,8 @@ const se_VerifyOTPMessageCommand = async (input, context) => {
|
|
|
2757
1820
|
body = {};
|
|
2758
1821
|
}
|
|
2759
1822
|
body = JSON.stringify(body);
|
|
2760
|
-
|
|
2761
|
-
|
|
2762
|
-
hostname,
|
|
2763
|
-
port,
|
|
2764
|
-
method: "POST",
|
|
2765
|
-
headers,
|
|
2766
|
-
path: resolvedPath,
|
|
2767
|
-
body,
|
|
2768
|
-
});
|
|
1823
|
+
b.m("POST").h(headers).b(body);
|
|
1824
|
+
return b.build();
|
|
2769
1825
|
};
|
|
2770
1826
|
exports.se_VerifyOTPMessageCommand = se_VerifyOTPMessageCommand;
|
|
2771
1827
|
const de_CreateAppCommand = async (output, context) => {
|
|
@@ -9853,6 +8909,26 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
9853
8909
|
value !== "" &&
|
|
9854
8910
|
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
9855
8911
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
8912
|
+
const _CNV = "CreateNewVersion";
|
|
8913
|
+
const _ET = "EndTime";
|
|
8914
|
+
const _NT = "NextToken";
|
|
8915
|
+
const _P = "Prefix";
|
|
8916
|
+
const _PS = "PageSize";
|
|
8917
|
+
const _ST = "StartTime";
|
|
8918
|
+
const _T = "Token";
|
|
8919
|
+
const _TK = "TagKeys";
|
|
8920
|
+
const _TT = "TemplateType";
|
|
8921
|
+
const _V = "Version";
|
|
8922
|
+
const _cnv = "create-new-version";
|
|
8923
|
+
const _et = "end-time";
|
|
8924
|
+
const _nt = "next-token";
|
|
8925
|
+
const _p = "prefix";
|
|
8926
|
+
const _ps = "page-size";
|
|
8927
|
+
const _st = "start-time";
|
|
8928
|
+
const _t = "token";
|
|
8929
|
+
const _tK = "tagKeys";
|
|
8930
|
+
const _tt = "template-type";
|
|
8931
|
+
const _v = "version";
|
|
9856
8932
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
9857
8933
|
if (encoded.length) {
|
|
9858
8934
|
return JSON.parse(encoded);
|