@aws-sdk/client-socialmessaging 3.1059.0 → 3.1061.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/README.md +77 -7
- package/dist-cjs/index.js +160 -0
- package/dist-cjs/schemas/schemas_0.js +262 -14
- package/dist-es/SocialMessaging.js +24 -0
- package/dist-es/commands/CreateWhatsAppFlowCommand.js +16 -0
- package/dist-es/commands/DeleteWhatsAppFlowCommand.js +16 -0
- package/dist-es/commands/DeprecateWhatsAppFlowCommand.js +16 -0
- package/dist-es/commands/GetWhatsAppFlowCommand.js +16 -0
- package/dist-es/commands/GetWhatsAppFlowPreviewCommand.js +16 -0
- package/dist-es/commands/ListWhatsAppFlowAssetsCommand.js +16 -0
- package/dist-es/commands/ListWhatsAppFlowsCommand.js +16 -0
- package/dist-es/commands/PublishWhatsAppFlowCommand.js +16 -0
- package/dist-es/commands/UpdateWhatsAppFlowAssetsCommand.js +16 -0
- package/dist-es/commands/UpdateWhatsAppFlowCommand.js +16 -0
- package/dist-es/commands/index.js +10 -0
- package/dist-es/models/enums.js +11 -0
- package/dist-es/pagination/ListWhatsAppFlowAssetsPaginator.js +4 -0
- package/dist-es/pagination/ListWhatsAppFlowsPaginator.js +4 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/schemas/schemas_0.js +259 -12
- package/dist-types/SocialMessaging.d.ts +84 -0
- package/dist-types/SocialMessagingClient.d.ts +12 -2
- package/dist-types/commands/CreateWhatsAppFlowCommand.d.ts +113 -0
- package/dist-types/commands/CreateWhatsAppMessageTemplateCommand.d.ts +3 -0
- package/dist-types/commands/CreateWhatsAppMessageTemplateFromLibraryCommand.d.ts +3 -0
- package/dist-types/commands/CreateWhatsAppMessageTemplateMediaCommand.d.ts +3 -0
- package/dist-types/commands/DeleteWhatsAppFlowCommand.d.ts +100 -0
- package/dist-types/commands/DeleteWhatsAppMessageTemplateCommand.d.ts +3 -0
- package/dist-types/commands/DeprecateWhatsAppFlowCommand.d.ts +100 -0
- package/dist-types/commands/GetWhatsAppFlowCommand.d.ts +139 -0
- package/dist-types/commands/GetWhatsAppFlowPreviewCommand.d.ts +107 -0
- package/dist-types/commands/GetWhatsAppMessageTemplateCommand.d.ts +3 -0
- package/dist-types/commands/ListWhatsAppFlowAssetsCommand.d.ts +111 -0
- package/dist-types/commands/ListWhatsAppFlowsCommand.d.ts +116 -0
- package/dist-types/commands/ListWhatsAppMessageTemplatesCommand.d.ts +3 -0
- package/dist-types/commands/ListWhatsAppTemplateLibraryCommand.d.ts +3 -0
- package/dist-types/commands/PublishWhatsAppFlowCommand.d.ts +100 -0
- package/dist-types/commands/UpdateWhatsAppFlowAssetsCommand.d.ts +105 -0
- package/dist-types/commands/UpdateWhatsAppFlowCommand.d.ts +104 -0
- package/dist-types/commands/UpdateWhatsAppMessageTemplateCommand.d.ts +3 -0
- package/dist-types/commands/index.d.ts +10 -0
- package/dist-types/models/enums.d.ts +19 -0
- package/dist-types/models/models_0.d.ts +518 -1
- package/dist-types/pagination/ListWhatsAppFlowAssetsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListWhatsAppFlowsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/schemas/schemas_0.d.ts +37 -0
- package/dist-types/ts3.4/SocialMessaging.d.ts +184 -0
- package/dist-types/ts3.4/SocialMessagingClient.d.ts +60 -0
- package/dist-types/ts3.4/commands/CreateWhatsAppFlowCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/DeleteWhatsAppFlowCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/DeprecateWhatsAppFlowCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/GetWhatsAppFlowCommand.d.ts +52 -0
- package/dist-types/ts3.4/commands/GetWhatsAppFlowPreviewCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/ListWhatsAppFlowAssetsCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/ListWhatsAppFlowsCommand.d.ts +52 -0
- package/dist-types/ts3.4/commands/PublishWhatsAppFlowCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/UpdateWhatsAppFlowAssetsCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/UpdateWhatsAppFlowCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/index.d.ts +10 -0
- package/dist-types/ts3.4/models/enums.d.ts +13 -0
- package/dist-types/ts3.4/models/models_0.d.ts +126 -1
- package/dist-types/ts3.4/pagination/ListWhatsAppFlowAssetsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListWhatsAppFlowsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +37 -0
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -47,16 +47,16 @@ To install this package, use the CLI of your favorite package manager:
|
|
|
47
47
|
|
|
48
48
|
The AWS SDK is modulized by clients and commands.
|
|
49
49
|
To send a request, you only need to import the `SocialMessagingClient` and
|
|
50
|
-
the commands you need, for example `
|
|
50
|
+
the commands you need, for example `ListWhatsAppFlowsCommand`:
|
|
51
51
|
|
|
52
52
|
```js
|
|
53
53
|
// ES5 example
|
|
54
|
-
const { SocialMessagingClient,
|
|
54
|
+
const { SocialMessagingClient, ListWhatsAppFlowsCommand } = require("@aws-sdk/client-socialmessaging");
|
|
55
55
|
```
|
|
56
56
|
|
|
57
57
|
```ts
|
|
58
58
|
// ES6+ example
|
|
59
|
-
import { SocialMessagingClient,
|
|
59
|
+
import { SocialMessagingClient, ListWhatsAppFlowsCommand } from "@aws-sdk/client-socialmessaging";
|
|
60
60
|
```
|
|
61
61
|
|
|
62
62
|
### Usage
|
|
@@ -73,7 +73,7 @@ To send a request:
|
|
|
73
73
|
const client = new SocialMessagingClient({ region: "REGION" });
|
|
74
74
|
|
|
75
75
|
const params = { /** input parameters */ };
|
|
76
|
-
const command = new
|
|
76
|
+
const command = new ListWhatsAppFlowsCommand(params);
|
|
77
77
|
```
|
|
78
78
|
|
|
79
79
|
#### Async/await
|
|
@@ -129,7 +129,7 @@ const client = new SocialMessaging({ region: "REGION" });
|
|
|
129
129
|
|
|
130
130
|
// async/await.
|
|
131
131
|
try {
|
|
132
|
-
const data = await client.
|
|
132
|
+
const data = await client.listWhatsAppFlows(params);
|
|
133
133
|
// process data.
|
|
134
134
|
} catch (error) {
|
|
135
135
|
// error handling.
|
|
@@ -137,7 +137,7 @@ try {
|
|
|
137
137
|
|
|
138
138
|
// Promises.
|
|
139
139
|
client
|
|
140
|
-
.
|
|
140
|
+
.listWhatsAppFlows(params)
|
|
141
141
|
.then((data) => {
|
|
142
142
|
// process data.
|
|
143
143
|
})
|
|
@@ -146,7 +146,7 @@ client
|
|
|
146
146
|
});
|
|
147
147
|
|
|
148
148
|
// callbacks (not recommended).
|
|
149
|
-
client.
|
|
149
|
+
client.listWhatsAppFlows(params, (err, data) => {
|
|
150
150
|
// process err and data.
|
|
151
151
|
});
|
|
152
152
|
```
|
|
@@ -213,6 +213,13 @@ AssociateWhatsAppBusinessAccount
|
|
|
213
213
|
</details>
|
|
214
214
|
<details>
|
|
215
215
|
<summary>
|
|
216
|
+
CreateWhatsAppFlow
|
|
217
|
+
</summary>
|
|
218
|
+
|
|
219
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/socialmessaging/command/CreateWhatsAppFlowCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-socialmessaging/Interface/CreateWhatsAppFlowCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-socialmessaging/Interface/CreateWhatsAppFlowCommandOutput/)
|
|
220
|
+
</details>
|
|
221
|
+
<details>
|
|
222
|
+
<summary>
|
|
216
223
|
CreateWhatsAppMessageTemplate
|
|
217
224
|
</summary>
|
|
218
225
|
|
|
@@ -234,6 +241,13 @@ CreateWhatsAppMessageTemplateMedia
|
|
|
234
241
|
</details>
|
|
235
242
|
<details>
|
|
236
243
|
<summary>
|
|
244
|
+
DeleteWhatsAppFlow
|
|
245
|
+
</summary>
|
|
246
|
+
|
|
247
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/socialmessaging/command/DeleteWhatsAppFlowCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-socialmessaging/Interface/DeleteWhatsAppFlowCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-socialmessaging/Interface/DeleteWhatsAppFlowCommandOutput/)
|
|
248
|
+
</details>
|
|
249
|
+
<details>
|
|
250
|
+
<summary>
|
|
237
251
|
DeleteWhatsAppMessageMedia
|
|
238
252
|
</summary>
|
|
239
253
|
|
|
@@ -248,6 +262,13 @@ DeleteWhatsAppMessageTemplate
|
|
|
248
262
|
</details>
|
|
249
263
|
<details>
|
|
250
264
|
<summary>
|
|
265
|
+
DeprecateWhatsAppFlow
|
|
266
|
+
</summary>
|
|
267
|
+
|
|
268
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/socialmessaging/command/DeprecateWhatsAppFlowCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-socialmessaging/Interface/DeprecateWhatsAppFlowCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-socialmessaging/Interface/DeprecateWhatsAppFlowCommandOutput/)
|
|
269
|
+
</details>
|
|
270
|
+
<details>
|
|
271
|
+
<summary>
|
|
251
272
|
DisassociateWhatsAppBusinessAccount
|
|
252
273
|
</summary>
|
|
253
274
|
|
|
@@ -269,6 +290,20 @@ GetLinkedWhatsAppBusinessAccountPhoneNumber
|
|
|
269
290
|
</details>
|
|
270
291
|
<details>
|
|
271
292
|
<summary>
|
|
293
|
+
GetWhatsAppFlow
|
|
294
|
+
</summary>
|
|
295
|
+
|
|
296
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/socialmessaging/command/GetWhatsAppFlowCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-socialmessaging/Interface/GetWhatsAppFlowCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-socialmessaging/Interface/GetWhatsAppFlowCommandOutput/)
|
|
297
|
+
</details>
|
|
298
|
+
<details>
|
|
299
|
+
<summary>
|
|
300
|
+
GetWhatsAppFlowPreview
|
|
301
|
+
</summary>
|
|
302
|
+
|
|
303
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/socialmessaging/command/GetWhatsAppFlowPreviewCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-socialmessaging/Interface/GetWhatsAppFlowPreviewCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-socialmessaging/Interface/GetWhatsAppFlowPreviewCommandOutput/)
|
|
304
|
+
</details>
|
|
305
|
+
<details>
|
|
306
|
+
<summary>
|
|
272
307
|
GetWhatsAppMessageMedia
|
|
273
308
|
</summary>
|
|
274
309
|
|
|
@@ -297,6 +332,20 @@ ListTagsForResource
|
|
|
297
332
|
</details>
|
|
298
333
|
<details>
|
|
299
334
|
<summary>
|
|
335
|
+
ListWhatsAppFlowAssets
|
|
336
|
+
</summary>
|
|
337
|
+
|
|
338
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/socialmessaging/command/ListWhatsAppFlowAssetsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-socialmessaging/Interface/ListWhatsAppFlowAssetsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-socialmessaging/Interface/ListWhatsAppFlowAssetsCommandOutput/)
|
|
339
|
+
</details>
|
|
340
|
+
<details>
|
|
341
|
+
<summary>
|
|
342
|
+
ListWhatsAppFlows
|
|
343
|
+
</summary>
|
|
344
|
+
|
|
345
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/socialmessaging/command/ListWhatsAppFlowsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-socialmessaging/Interface/ListWhatsAppFlowsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-socialmessaging/Interface/ListWhatsAppFlowsCommandOutput/)
|
|
346
|
+
</details>
|
|
347
|
+
<details>
|
|
348
|
+
<summary>
|
|
300
349
|
ListWhatsAppMessageTemplates
|
|
301
350
|
</summary>
|
|
302
351
|
|
|
@@ -318,6 +367,13 @@ PostWhatsAppMessageMedia
|
|
|
318
367
|
</details>
|
|
319
368
|
<details>
|
|
320
369
|
<summary>
|
|
370
|
+
PublishWhatsAppFlow
|
|
371
|
+
</summary>
|
|
372
|
+
|
|
373
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/socialmessaging/command/PublishWhatsAppFlowCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-socialmessaging/Interface/PublishWhatsAppFlowCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-socialmessaging/Interface/PublishWhatsAppFlowCommandOutput/)
|
|
374
|
+
</details>
|
|
375
|
+
<details>
|
|
376
|
+
<summary>
|
|
321
377
|
PutWhatsAppBusinessAccountEventDestinations
|
|
322
378
|
</summary>
|
|
323
379
|
|
|
@@ -346,6 +402,20 @@ UntagResource
|
|
|
346
402
|
</details>
|
|
347
403
|
<details>
|
|
348
404
|
<summary>
|
|
405
|
+
UpdateWhatsAppFlow
|
|
406
|
+
</summary>
|
|
407
|
+
|
|
408
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/socialmessaging/command/UpdateWhatsAppFlowCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-socialmessaging/Interface/UpdateWhatsAppFlowCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-socialmessaging/Interface/UpdateWhatsAppFlowCommandOutput/)
|
|
409
|
+
</details>
|
|
410
|
+
<details>
|
|
411
|
+
<summary>
|
|
412
|
+
UpdateWhatsAppFlowAssets
|
|
413
|
+
</summary>
|
|
414
|
+
|
|
415
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/socialmessaging/command/UpdateWhatsAppFlowAssetsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-socialmessaging/Interface/UpdateWhatsAppFlowAssetsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-socialmessaging/Interface/UpdateWhatsAppFlowAssetsCommandOutput/)
|
|
416
|
+
</details>
|
|
417
|
+
<details>
|
|
418
|
+
<summary>
|
|
349
419
|
UpdateWhatsAppMessageTemplate
|
|
350
420
|
</summary>
|
|
351
421
|
|
package/dist-cjs/index.js
CHANGED
|
@@ -120,6 +120,18 @@ class AssociateWhatsAppBusinessAccountCommand extends client.Command
|
|
|
120
120
|
.build() {
|
|
121
121
|
}
|
|
122
122
|
|
|
123
|
+
class CreateWhatsAppFlowCommand extends client.Command
|
|
124
|
+
.classBuilder()
|
|
125
|
+
.ep(commonParams)
|
|
126
|
+
.m(function (Command, cs, config, o) {
|
|
127
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
128
|
+
})
|
|
129
|
+
.s("SocialMessaging", "CreateWhatsAppFlow", {})
|
|
130
|
+
.n("SocialMessagingClient", "CreateWhatsAppFlowCommand")
|
|
131
|
+
.sc(schemas_0.CreateWhatsAppFlow$)
|
|
132
|
+
.build() {
|
|
133
|
+
}
|
|
134
|
+
|
|
123
135
|
class CreateWhatsAppMessageTemplateCommand extends client.Command
|
|
124
136
|
.classBuilder()
|
|
125
137
|
.ep(commonParams)
|
|
@@ -156,6 +168,18 @@ class CreateWhatsAppMessageTemplateMediaCommand extends client.Command
|
|
|
156
168
|
.build() {
|
|
157
169
|
}
|
|
158
170
|
|
|
171
|
+
class DeleteWhatsAppFlowCommand extends client.Command
|
|
172
|
+
.classBuilder()
|
|
173
|
+
.ep(commonParams)
|
|
174
|
+
.m(function (Command, cs, config, o) {
|
|
175
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
176
|
+
})
|
|
177
|
+
.s("SocialMessaging", "DeleteWhatsAppFlow", {})
|
|
178
|
+
.n("SocialMessagingClient", "DeleteWhatsAppFlowCommand")
|
|
179
|
+
.sc(schemas_0.DeleteWhatsAppFlow$)
|
|
180
|
+
.build() {
|
|
181
|
+
}
|
|
182
|
+
|
|
159
183
|
class DeleteWhatsAppMessageMediaCommand extends client.Command
|
|
160
184
|
.classBuilder()
|
|
161
185
|
.ep(commonParams)
|
|
@@ -180,6 +204,18 @@ class DeleteWhatsAppMessageTemplateCommand extends client.Command
|
|
|
180
204
|
.build() {
|
|
181
205
|
}
|
|
182
206
|
|
|
207
|
+
class DeprecateWhatsAppFlowCommand extends client.Command
|
|
208
|
+
.classBuilder()
|
|
209
|
+
.ep(commonParams)
|
|
210
|
+
.m(function (Command, cs, config, o) {
|
|
211
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
212
|
+
})
|
|
213
|
+
.s("SocialMessaging", "DeprecateWhatsAppFlow", {})
|
|
214
|
+
.n("SocialMessagingClient", "DeprecateWhatsAppFlowCommand")
|
|
215
|
+
.sc(schemas_0.DeprecateWhatsAppFlow$)
|
|
216
|
+
.build() {
|
|
217
|
+
}
|
|
218
|
+
|
|
183
219
|
class DisassociateWhatsAppBusinessAccountCommand extends client.Command
|
|
184
220
|
.classBuilder()
|
|
185
221
|
.ep(commonParams)
|
|
@@ -216,6 +252,30 @@ class GetLinkedWhatsAppBusinessAccountPhoneNumberCommand extends client.Command
|
|
|
216
252
|
.build() {
|
|
217
253
|
}
|
|
218
254
|
|
|
255
|
+
class GetWhatsAppFlowCommand extends client.Command
|
|
256
|
+
.classBuilder()
|
|
257
|
+
.ep(commonParams)
|
|
258
|
+
.m(function (Command, cs, config, o) {
|
|
259
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
260
|
+
})
|
|
261
|
+
.s("SocialMessaging", "GetWhatsAppFlow", {})
|
|
262
|
+
.n("SocialMessagingClient", "GetWhatsAppFlowCommand")
|
|
263
|
+
.sc(schemas_0.GetWhatsAppFlow$)
|
|
264
|
+
.build() {
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
class GetWhatsAppFlowPreviewCommand extends client.Command
|
|
268
|
+
.classBuilder()
|
|
269
|
+
.ep(commonParams)
|
|
270
|
+
.m(function (Command, cs, config, o) {
|
|
271
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
272
|
+
})
|
|
273
|
+
.s("SocialMessaging", "GetWhatsAppFlowPreview", {})
|
|
274
|
+
.n("SocialMessagingClient", "GetWhatsAppFlowPreviewCommand")
|
|
275
|
+
.sc(schemas_0.GetWhatsAppFlowPreview$)
|
|
276
|
+
.build() {
|
|
277
|
+
}
|
|
278
|
+
|
|
219
279
|
class GetWhatsAppMessageMediaCommand extends client.Command
|
|
220
280
|
.classBuilder()
|
|
221
281
|
.ep(commonParams)
|
|
@@ -264,6 +324,30 @@ class ListTagsForResourceCommand extends client.Command
|
|
|
264
324
|
.build() {
|
|
265
325
|
}
|
|
266
326
|
|
|
327
|
+
class ListWhatsAppFlowAssetsCommand extends client.Command
|
|
328
|
+
.classBuilder()
|
|
329
|
+
.ep(commonParams)
|
|
330
|
+
.m(function (Command, cs, config, o) {
|
|
331
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
332
|
+
})
|
|
333
|
+
.s("SocialMessaging", "ListWhatsAppFlowAssets", {})
|
|
334
|
+
.n("SocialMessagingClient", "ListWhatsAppFlowAssetsCommand")
|
|
335
|
+
.sc(schemas_0.ListWhatsAppFlowAssets$)
|
|
336
|
+
.build() {
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
class ListWhatsAppFlowsCommand extends client.Command
|
|
340
|
+
.classBuilder()
|
|
341
|
+
.ep(commonParams)
|
|
342
|
+
.m(function (Command, cs, config, o) {
|
|
343
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
344
|
+
})
|
|
345
|
+
.s("SocialMessaging", "ListWhatsAppFlows", {})
|
|
346
|
+
.n("SocialMessagingClient", "ListWhatsAppFlowsCommand")
|
|
347
|
+
.sc(schemas_0.ListWhatsAppFlows$)
|
|
348
|
+
.build() {
|
|
349
|
+
}
|
|
350
|
+
|
|
267
351
|
class ListWhatsAppMessageTemplatesCommand extends client.Command
|
|
268
352
|
.classBuilder()
|
|
269
353
|
.ep(commonParams)
|
|
@@ -300,6 +384,18 @@ class PostWhatsAppMessageMediaCommand extends client.Command
|
|
|
300
384
|
.build() {
|
|
301
385
|
}
|
|
302
386
|
|
|
387
|
+
class PublishWhatsAppFlowCommand extends client.Command
|
|
388
|
+
.classBuilder()
|
|
389
|
+
.ep(commonParams)
|
|
390
|
+
.m(function (Command, cs, config, o) {
|
|
391
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
392
|
+
})
|
|
393
|
+
.s("SocialMessaging", "PublishWhatsAppFlow", {})
|
|
394
|
+
.n("SocialMessagingClient", "PublishWhatsAppFlowCommand")
|
|
395
|
+
.sc(schemas_0.PublishWhatsAppFlow$)
|
|
396
|
+
.build() {
|
|
397
|
+
}
|
|
398
|
+
|
|
303
399
|
class PutWhatsAppBusinessAccountEventDestinationsCommand extends client.Command
|
|
304
400
|
.classBuilder()
|
|
305
401
|
.ep(commonParams)
|
|
@@ -348,6 +444,30 @@ class UntagResourceCommand extends client.Command
|
|
|
348
444
|
.build() {
|
|
349
445
|
}
|
|
350
446
|
|
|
447
|
+
class UpdateWhatsAppFlowAssetsCommand extends client.Command
|
|
448
|
+
.classBuilder()
|
|
449
|
+
.ep(commonParams)
|
|
450
|
+
.m(function (Command, cs, config, o) {
|
|
451
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
452
|
+
})
|
|
453
|
+
.s("SocialMessaging", "UpdateWhatsAppFlowAssets", {})
|
|
454
|
+
.n("SocialMessagingClient", "UpdateWhatsAppFlowAssetsCommand")
|
|
455
|
+
.sc(schemas_0.UpdateWhatsAppFlowAssets$)
|
|
456
|
+
.build() {
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
class UpdateWhatsAppFlowCommand extends client.Command
|
|
460
|
+
.classBuilder()
|
|
461
|
+
.ep(commonParams)
|
|
462
|
+
.m(function (Command, cs, config, o) {
|
|
463
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
464
|
+
})
|
|
465
|
+
.s("SocialMessaging", "UpdateWhatsAppFlow", {})
|
|
466
|
+
.n("SocialMessagingClient", "UpdateWhatsAppFlowCommand")
|
|
467
|
+
.sc(schemas_0.UpdateWhatsAppFlow$)
|
|
468
|
+
.build() {
|
|
469
|
+
}
|
|
470
|
+
|
|
351
471
|
class UpdateWhatsAppMessageTemplateCommand extends client.Command
|
|
352
472
|
.classBuilder()
|
|
353
473
|
.ep(commonParams)
|
|
@@ -362,35 +482,51 @@ class UpdateWhatsAppMessageTemplateCommand extends client.Command
|
|
|
362
482
|
|
|
363
483
|
const paginateListLinkedWhatsAppBusinessAccounts = core.createPaginator(SocialMessagingClient, ListLinkedWhatsAppBusinessAccountsCommand, "nextToken", "nextToken", "maxResults");
|
|
364
484
|
|
|
485
|
+
const paginateListWhatsAppFlowAssets = core.createPaginator(SocialMessagingClient, ListWhatsAppFlowAssetsCommand, "nextToken", "nextToken", "maxResults");
|
|
486
|
+
|
|
487
|
+
const paginateListWhatsAppFlows = core.createPaginator(SocialMessagingClient, ListWhatsAppFlowsCommand, "nextToken", "nextToken", "maxResults");
|
|
488
|
+
|
|
365
489
|
const paginateListWhatsAppMessageTemplates = core.createPaginator(SocialMessagingClient, ListWhatsAppMessageTemplatesCommand, "nextToken", "nextToken", "maxResults");
|
|
366
490
|
|
|
367
491
|
const paginateListWhatsAppTemplateLibrary = core.createPaginator(SocialMessagingClient, ListWhatsAppTemplateLibraryCommand, "nextToken", "nextToken", "maxResults");
|
|
368
492
|
|
|
369
493
|
const commands = {
|
|
370
494
|
AssociateWhatsAppBusinessAccountCommand,
|
|
495
|
+
CreateWhatsAppFlowCommand,
|
|
371
496
|
CreateWhatsAppMessageTemplateCommand,
|
|
372
497
|
CreateWhatsAppMessageTemplateFromLibraryCommand,
|
|
373
498
|
CreateWhatsAppMessageTemplateMediaCommand,
|
|
499
|
+
DeleteWhatsAppFlowCommand,
|
|
374
500
|
DeleteWhatsAppMessageMediaCommand,
|
|
375
501
|
DeleteWhatsAppMessageTemplateCommand,
|
|
502
|
+
DeprecateWhatsAppFlowCommand,
|
|
376
503
|
DisassociateWhatsAppBusinessAccountCommand,
|
|
377
504
|
GetLinkedWhatsAppBusinessAccountCommand,
|
|
378
505
|
GetLinkedWhatsAppBusinessAccountPhoneNumberCommand,
|
|
506
|
+
GetWhatsAppFlowCommand,
|
|
507
|
+
GetWhatsAppFlowPreviewCommand,
|
|
379
508
|
GetWhatsAppMessageMediaCommand,
|
|
380
509
|
GetWhatsAppMessageTemplateCommand,
|
|
381
510
|
ListLinkedWhatsAppBusinessAccountsCommand,
|
|
382
511
|
ListTagsForResourceCommand,
|
|
512
|
+
ListWhatsAppFlowAssetsCommand,
|
|
513
|
+
ListWhatsAppFlowsCommand,
|
|
383
514
|
ListWhatsAppMessageTemplatesCommand,
|
|
384
515
|
ListWhatsAppTemplateLibraryCommand,
|
|
385
516
|
PostWhatsAppMessageMediaCommand,
|
|
517
|
+
PublishWhatsAppFlowCommand,
|
|
386
518
|
PutWhatsAppBusinessAccountEventDestinationsCommand,
|
|
387
519
|
SendWhatsAppMessageCommand,
|
|
388
520
|
TagResourceCommand,
|
|
389
521
|
UntagResourceCommand,
|
|
522
|
+
UpdateWhatsAppFlowCommand,
|
|
523
|
+
UpdateWhatsAppFlowAssetsCommand,
|
|
390
524
|
UpdateWhatsAppMessageTemplateCommand,
|
|
391
525
|
};
|
|
392
526
|
const paginators = {
|
|
393
527
|
paginateListLinkedWhatsAppBusinessAccounts,
|
|
528
|
+
paginateListWhatsAppFlowAssets,
|
|
529
|
+
paginateListWhatsAppFlows,
|
|
394
530
|
paginateListWhatsAppMessageTemplates,
|
|
395
531
|
paginateListWhatsAppTemplateLibrary,
|
|
396
532
|
};
|
|
@@ -402,26 +538,46 @@ const RegistrationStatus = {
|
|
|
402
538
|
COMPLETE: "COMPLETE",
|
|
403
539
|
INCOMPLETE: "INCOMPLETE",
|
|
404
540
|
};
|
|
541
|
+
const MetaFlowCategory = {
|
|
542
|
+
APPOINTMENT_BOOKING: "APPOINTMENT_BOOKING",
|
|
543
|
+
CONTACT_US: "CONTACT_US",
|
|
544
|
+
CUSTOMER_SUPPORT: "CUSTOMER_SUPPORT",
|
|
545
|
+
LEAD_GENERATION: "LEAD_GENERATION",
|
|
546
|
+
OTHER: "OTHER",
|
|
547
|
+
SHOPPING: "SHOPPING",
|
|
548
|
+
SIGN_IN: "SIGN_IN",
|
|
549
|
+
SIGN_UP: "SIGN_UP",
|
|
550
|
+
SURVEY: "SURVEY",
|
|
551
|
+
};
|
|
405
552
|
|
|
406
553
|
exports.$Command = client.Command;
|
|
407
554
|
exports.__Client = client.Client;
|
|
408
555
|
exports.SocialMessagingServiceException = SocialMessagingServiceException.SocialMessagingServiceException;
|
|
409
556
|
exports.AssociateWhatsAppBusinessAccountCommand = AssociateWhatsAppBusinessAccountCommand;
|
|
557
|
+
exports.CreateWhatsAppFlowCommand = CreateWhatsAppFlowCommand;
|
|
410
558
|
exports.CreateWhatsAppMessageTemplateCommand = CreateWhatsAppMessageTemplateCommand;
|
|
411
559
|
exports.CreateWhatsAppMessageTemplateFromLibraryCommand = CreateWhatsAppMessageTemplateFromLibraryCommand;
|
|
412
560
|
exports.CreateWhatsAppMessageTemplateMediaCommand = CreateWhatsAppMessageTemplateMediaCommand;
|
|
561
|
+
exports.DeleteWhatsAppFlowCommand = DeleteWhatsAppFlowCommand;
|
|
413
562
|
exports.DeleteWhatsAppMessageMediaCommand = DeleteWhatsAppMessageMediaCommand;
|
|
414
563
|
exports.DeleteWhatsAppMessageTemplateCommand = DeleteWhatsAppMessageTemplateCommand;
|
|
564
|
+
exports.DeprecateWhatsAppFlowCommand = DeprecateWhatsAppFlowCommand;
|
|
415
565
|
exports.DisassociateWhatsAppBusinessAccountCommand = DisassociateWhatsAppBusinessAccountCommand;
|
|
416
566
|
exports.GetLinkedWhatsAppBusinessAccountCommand = GetLinkedWhatsAppBusinessAccountCommand;
|
|
417
567
|
exports.GetLinkedWhatsAppBusinessAccountPhoneNumberCommand = GetLinkedWhatsAppBusinessAccountPhoneNumberCommand;
|
|
568
|
+
exports.GetWhatsAppFlowCommand = GetWhatsAppFlowCommand;
|
|
569
|
+
exports.GetWhatsAppFlowPreviewCommand = GetWhatsAppFlowPreviewCommand;
|
|
418
570
|
exports.GetWhatsAppMessageMediaCommand = GetWhatsAppMessageMediaCommand;
|
|
419
571
|
exports.GetWhatsAppMessageTemplateCommand = GetWhatsAppMessageTemplateCommand;
|
|
420
572
|
exports.ListLinkedWhatsAppBusinessAccountsCommand = ListLinkedWhatsAppBusinessAccountsCommand;
|
|
421
573
|
exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
|
|
574
|
+
exports.ListWhatsAppFlowAssetsCommand = ListWhatsAppFlowAssetsCommand;
|
|
575
|
+
exports.ListWhatsAppFlowsCommand = ListWhatsAppFlowsCommand;
|
|
422
576
|
exports.ListWhatsAppMessageTemplatesCommand = ListWhatsAppMessageTemplatesCommand;
|
|
423
577
|
exports.ListWhatsAppTemplateLibraryCommand = ListWhatsAppTemplateLibraryCommand;
|
|
578
|
+
exports.MetaFlowCategory = MetaFlowCategory;
|
|
424
579
|
exports.PostWhatsAppMessageMediaCommand = PostWhatsAppMessageMediaCommand;
|
|
580
|
+
exports.PublishWhatsAppFlowCommand = PublishWhatsAppFlowCommand;
|
|
425
581
|
exports.PutWhatsAppBusinessAccountEventDestinationsCommand = PutWhatsAppBusinessAccountEventDestinationsCommand;
|
|
426
582
|
exports.RegistrationStatus = RegistrationStatus;
|
|
427
583
|
exports.SendWhatsAppMessageCommand = SendWhatsAppMessageCommand;
|
|
@@ -429,8 +585,12 @@ exports.SocialMessaging = SocialMessaging;
|
|
|
429
585
|
exports.SocialMessagingClient = SocialMessagingClient;
|
|
430
586
|
exports.TagResourceCommand = TagResourceCommand;
|
|
431
587
|
exports.UntagResourceCommand = UntagResourceCommand;
|
|
588
|
+
exports.UpdateWhatsAppFlowAssetsCommand = UpdateWhatsAppFlowAssetsCommand;
|
|
589
|
+
exports.UpdateWhatsAppFlowCommand = UpdateWhatsAppFlowCommand;
|
|
432
590
|
exports.UpdateWhatsAppMessageTemplateCommand = UpdateWhatsAppMessageTemplateCommand;
|
|
433
591
|
exports.paginateListLinkedWhatsAppBusinessAccounts = paginateListLinkedWhatsAppBusinessAccounts;
|
|
592
|
+
exports.paginateListWhatsAppFlowAssets = paginateListWhatsAppFlowAssets;
|
|
593
|
+
exports.paginateListWhatsAppFlows = paginateListWhatsAppFlows;
|
|
434
594
|
exports.paginateListWhatsAppMessageTemplates = paginateListWhatsAppMessageTemplates;
|
|
435
595
|
exports.paginateListWhatsAppTemplateLibrary = paginateListWhatsAppTemplateLibrary;
|
|
436
596
|
Object.prototype.hasOwnProperty.call(schemas_0, '__proto__') &&
|