@aws-sdk/client-socialmessaging 3.1060.0 → 3.1062.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 +2 -2
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { DeprecateWhatsAppFlow$ } from "../schemas/schemas_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class DeprecateWhatsAppFlowCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
+
})
|
|
12
|
+
.s("SocialMessaging", "DeprecateWhatsAppFlow", {})
|
|
13
|
+
.n("SocialMessagingClient", "DeprecateWhatsAppFlowCommand")
|
|
14
|
+
.sc(DeprecateWhatsAppFlow$)
|
|
15
|
+
.build() {
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { GetWhatsAppFlow$ } from "../schemas/schemas_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class GetWhatsAppFlowCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
+
})
|
|
12
|
+
.s("SocialMessaging", "GetWhatsAppFlow", {})
|
|
13
|
+
.n("SocialMessagingClient", "GetWhatsAppFlowCommand")
|
|
14
|
+
.sc(GetWhatsAppFlow$)
|
|
15
|
+
.build() {
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { GetWhatsAppFlowPreview$ } from "../schemas/schemas_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class GetWhatsAppFlowPreviewCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
+
})
|
|
12
|
+
.s("SocialMessaging", "GetWhatsAppFlowPreview", {})
|
|
13
|
+
.n("SocialMessagingClient", "GetWhatsAppFlowPreviewCommand")
|
|
14
|
+
.sc(GetWhatsAppFlowPreview$)
|
|
15
|
+
.build() {
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { ListWhatsAppFlowAssets$ } from "../schemas/schemas_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class ListWhatsAppFlowAssetsCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
+
})
|
|
12
|
+
.s("SocialMessaging", "ListWhatsAppFlowAssets", {})
|
|
13
|
+
.n("SocialMessagingClient", "ListWhatsAppFlowAssetsCommand")
|
|
14
|
+
.sc(ListWhatsAppFlowAssets$)
|
|
15
|
+
.build() {
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { ListWhatsAppFlows$ } from "../schemas/schemas_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class ListWhatsAppFlowsCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
+
})
|
|
12
|
+
.s("SocialMessaging", "ListWhatsAppFlows", {})
|
|
13
|
+
.n("SocialMessagingClient", "ListWhatsAppFlowsCommand")
|
|
14
|
+
.sc(ListWhatsAppFlows$)
|
|
15
|
+
.build() {
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { PublishWhatsAppFlow$ } from "../schemas/schemas_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class PublishWhatsAppFlowCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
+
})
|
|
12
|
+
.s("SocialMessaging", "PublishWhatsAppFlow", {})
|
|
13
|
+
.n("SocialMessagingClient", "PublishWhatsAppFlowCommand")
|
|
14
|
+
.sc(PublishWhatsAppFlow$)
|
|
15
|
+
.build() {
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { UpdateWhatsAppFlowAssets$ } from "../schemas/schemas_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class UpdateWhatsAppFlowAssetsCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
+
})
|
|
12
|
+
.s("SocialMessaging", "UpdateWhatsAppFlowAssets", {})
|
|
13
|
+
.n("SocialMessagingClient", "UpdateWhatsAppFlowAssetsCommand")
|
|
14
|
+
.sc(UpdateWhatsAppFlowAssets$)
|
|
15
|
+
.build() {
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { UpdateWhatsAppFlow$ } from "../schemas/schemas_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class UpdateWhatsAppFlowCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
+
})
|
|
12
|
+
.s("SocialMessaging", "UpdateWhatsAppFlow", {})
|
|
13
|
+
.n("SocialMessagingClient", "UpdateWhatsAppFlowCommand")
|
|
14
|
+
.sc(UpdateWhatsAppFlow$)
|
|
15
|
+
.build() {
|
|
16
|
+
}
|
|
@@ -1,21 +1,31 @@
|
|
|
1
1
|
export * from "./AssociateWhatsAppBusinessAccountCommand";
|
|
2
|
+
export * from "./CreateWhatsAppFlowCommand";
|
|
2
3
|
export * from "./CreateWhatsAppMessageTemplateCommand";
|
|
3
4
|
export * from "./CreateWhatsAppMessageTemplateFromLibraryCommand";
|
|
4
5
|
export * from "./CreateWhatsAppMessageTemplateMediaCommand";
|
|
6
|
+
export * from "./DeleteWhatsAppFlowCommand";
|
|
5
7
|
export * from "./DeleteWhatsAppMessageMediaCommand";
|
|
6
8
|
export * from "./DeleteWhatsAppMessageTemplateCommand";
|
|
9
|
+
export * from "./DeprecateWhatsAppFlowCommand";
|
|
7
10
|
export * from "./DisassociateWhatsAppBusinessAccountCommand";
|
|
8
11
|
export * from "./GetLinkedWhatsAppBusinessAccountCommand";
|
|
9
12
|
export * from "./GetLinkedWhatsAppBusinessAccountPhoneNumberCommand";
|
|
13
|
+
export * from "./GetWhatsAppFlowCommand";
|
|
14
|
+
export * from "./GetWhatsAppFlowPreviewCommand";
|
|
10
15
|
export * from "./GetWhatsAppMessageMediaCommand";
|
|
11
16
|
export * from "./GetWhatsAppMessageTemplateCommand";
|
|
12
17
|
export * from "./ListLinkedWhatsAppBusinessAccountsCommand";
|
|
13
18
|
export * from "./ListTagsForResourceCommand";
|
|
19
|
+
export * from "./ListWhatsAppFlowAssetsCommand";
|
|
20
|
+
export * from "./ListWhatsAppFlowsCommand";
|
|
14
21
|
export * from "./ListWhatsAppMessageTemplatesCommand";
|
|
15
22
|
export * from "./ListWhatsAppTemplateLibraryCommand";
|
|
16
23
|
export * from "./PostWhatsAppMessageMediaCommand";
|
|
24
|
+
export * from "./PublishWhatsAppFlowCommand";
|
|
17
25
|
export * from "./PutWhatsAppBusinessAccountEventDestinationsCommand";
|
|
18
26
|
export * from "./SendWhatsAppMessageCommand";
|
|
19
27
|
export * from "./TagResourceCommand";
|
|
20
28
|
export * from "./UntagResourceCommand";
|
|
29
|
+
export * from "./UpdateWhatsAppFlowAssetsCommand";
|
|
30
|
+
export * from "./UpdateWhatsAppFlowCommand";
|
|
21
31
|
export * from "./UpdateWhatsAppMessageTemplateCommand";
|
package/dist-es/models/enums.js
CHANGED
|
@@ -2,3 +2,14 @@ export const RegistrationStatus = {
|
|
|
2
2
|
COMPLETE: "COMPLETE",
|
|
3
3
|
INCOMPLETE: "INCOMPLETE",
|
|
4
4
|
};
|
|
5
|
+
export const MetaFlowCategory = {
|
|
6
|
+
APPOINTMENT_BOOKING: "APPOINTMENT_BOOKING",
|
|
7
|
+
CONTACT_US: "CONTACT_US",
|
|
8
|
+
CUSTOMER_SUPPORT: "CUSTOMER_SUPPORT",
|
|
9
|
+
LEAD_GENERATION: "LEAD_GENERATION",
|
|
10
|
+
OTHER: "OTHER",
|
|
11
|
+
SHOPPING: "SHOPPING",
|
|
12
|
+
SIGN_IN: "SIGN_IN",
|
|
13
|
+
SIGN_UP: "SIGN_UP",
|
|
14
|
+
SURVEY: "SURVEY",
|
|
15
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { ListWhatsAppFlowAssetsCommand, } from "../commands/ListWhatsAppFlowAssetsCommand";
|
|
3
|
+
import { SocialMessagingClient } from "../SocialMessagingClient";
|
|
4
|
+
export const paginateListWhatsAppFlowAssets = createPaginator(SocialMessagingClient, ListWhatsAppFlowAssetsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { ListWhatsAppFlowsCommand, } from "../commands/ListWhatsAppFlowsCommand";
|
|
3
|
+
import { SocialMessagingClient } from "../SocialMessagingClient";
|
|
4
|
+
export const paginateListWhatsAppFlows = createPaginator(SocialMessagingClient, ListWhatsAppFlowsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export * from "./Interfaces";
|
|
2
2
|
export * from "./ListLinkedWhatsAppBusinessAccountsPaginator";
|
|
3
|
+
export * from "./ListWhatsAppFlowAssetsPaginator";
|
|
4
|
+
export * from "./ListWhatsAppFlowsPaginator";
|
|
3
5
|
export * from "./ListWhatsAppMessageTemplatesPaginator";
|
|
4
6
|
export * from "./ListWhatsAppTemplateLibraryPaginator";
|