@wildix/xbees-conversations-client 1.0.60 → 1.0.61
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.
|
@@ -790,9 +790,7 @@ const se_TagChannelCommand = async (input, context) => {
|
|
|
790
790
|
exports.se_TagChannelCommand = se_TagChannelCommand;
|
|
791
791
|
const se_TriggerMessageActionCommand = async (input, context) => {
|
|
792
792
|
const b = (0, core_1.requestBuilder)(input, context);
|
|
793
|
-
const headers = {
|
|
794
|
-
'content-type': 'application/json',
|
|
795
|
-
};
|
|
793
|
+
const headers = {};
|
|
796
794
|
b.bp("/v2/conversations/channels/{channelId}/messages/{messageId}/actions/{actionId}/trigger");
|
|
797
795
|
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
798
796
|
b.p('messageId', () => input.messageId, '{messageId}', false);
|
|
@@ -801,13 +799,6 @@ const se_TriggerMessageActionCommand = async (input, context) => {
|
|
|
801
799
|
[_u]: [, input[_uI]],
|
|
802
800
|
});
|
|
803
801
|
let body;
|
|
804
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
805
|
-
'attachments': _ => (0, smithy_client_1._json)(_),
|
|
806
|
-
'elements': _ => (0, smithy_client_1._json)(_),
|
|
807
|
-
'forward': _ => (0, smithy_client_1._json)(_),
|
|
808
|
-
'quote': _ => (0, smithy_client_1._json)(_),
|
|
809
|
-
'text': [],
|
|
810
|
-
}));
|
|
811
802
|
b.m("POST")
|
|
812
803
|
.h(headers)
|
|
813
804
|
.q(query)
|
|
@@ -743,9 +743,7 @@ export const se_TagChannelCommand = async (input, context) => {
|
|
|
743
743
|
};
|
|
744
744
|
export const se_TriggerMessageActionCommand = async (input, context) => {
|
|
745
745
|
const b = rb(input, context);
|
|
746
|
-
const headers = {
|
|
747
|
-
'content-type': 'application/json',
|
|
748
|
-
};
|
|
746
|
+
const headers = {};
|
|
749
747
|
b.bp("/v2/conversations/channels/{channelId}/messages/{messageId}/actions/{actionId}/trigger");
|
|
750
748
|
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
751
749
|
b.p('messageId', () => input.messageId, '{messageId}', false);
|
|
@@ -754,13 +752,6 @@ export const se_TriggerMessageActionCommand = async (input, context) => {
|
|
|
754
752
|
[_u]: [, input[_uI]],
|
|
755
753
|
});
|
|
756
754
|
let body;
|
|
757
|
-
body = JSON.stringify(take(input, {
|
|
758
|
-
'attachments': _ => _json(_),
|
|
759
|
-
'elements': _ => _json(_),
|
|
760
|
-
'forward': _ => _json(_),
|
|
761
|
-
'quote': _ => _json(_),
|
|
762
|
-
'text': [],
|
|
763
|
-
}));
|
|
764
755
|
b.m("POST")
|
|
765
756
|
.h(headers)
|
|
766
757
|
.q(query)
|
|
@@ -35,160 +35,6 @@ declare const TriggerMessageActionCommand_base: {
|
|
|
35
35
|
* // const { ConversationsClient, TriggerMessageActionCommand } = require("@wildix/xbees-conversations-client"); // CommonJS import
|
|
36
36
|
* const client = new ConversationsClient(config);
|
|
37
37
|
* const input = { // TriggerMessageActionInput
|
|
38
|
-
* text: "STRING_VALUE",
|
|
39
|
-
* elements: [ // ElementsList
|
|
40
|
-
* { // Element Union: only one key present
|
|
41
|
-
* text: { // TextElement
|
|
42
|
-
* value: "STRING_VALUE", // required
|
|
43
|
-
* style: { // TextStyle
|
|
44
|
-
* italic: true || false,
|
|
45
|
-
* bold: true || false,
|
|
46
|
-
* strike: true || false,
|
|
47
|
-
* code: true || false,
|
|
48
|
-
* },
|
|
49
|
-
* },
|
|
50
|
-
* link: { // LinkElement
|
|
51
|
-
* url: "STRING_VALUE", // required
|
|
52
|
-
* text: "STRING_VALUE",
|
|
53
|
-
* style: {
|
|
54
|
-
* italic: true || false,
|
|
55
|
-
* bold: true || false,
|
|
56
|
-
* strike: true || false,
|
|
57
|
-
* code: true || false,
|
|
58
|
-
* },
|
|
59
|
-
* },
|
|
60
|
-
* email: { // EmailElement
|
|
61
|
-
* value: "STRING_VALUE", // required
|
|
62
|
-
* style: {
|
|
63
|
-
* italic: true || false,
|
|
64
|
-
* bold: true || false,
|
|
65
|
-
* strike: true || false,
|
|
66
|
-
* code: true || false,
|
|
67
|
-
* },
|
|
68
|
-
* },
|
|
69
|
-
* phone: { // PhoneElement
|
|
70
|
-
* value: "STRING_VALUE", // required
|
|
71
|
-
* style: {
|
|
72
|
-
* italic: true || false,
|
|
73
|
-
* bold: true || false,
|
|
74
|
-
* strike: true || false,
|
|
75
|
-
* code: true || false,
|
|
76
|
-
* },
|
|
77
|
-
* },
|
|
78
|
-
* mention: { // MentionElement
|
|
79
|
-
* text: "STRING_VALUE", // required
|
|
80
|
-
* user: { // User
|
|
81
|
-
* id: "STRING_VALUE", // required
|
|
82
|
-
* name: "STRING_VALUE",
|
|
83
|
-
* email: "STRING_VALUE",
|
|
84
|
-
* phone: "STRING_VALUE",
|
|
85
|
-
* picture: "STRING_VALUE",
|
|
86
|
-
* locale: "STRING_VALUE",
|
|
87
|
-
* timeZone: "STRING_VALUE",
|
|
88
|
-
* company: "STRING_VALUE",
|
|
89
|
-
* bot: true || false,
|
|
90
|
-
* pbxDomain: "STRING_VALUE",
|
|
91
|
-
* pbxPort: "STRING_VALUE",
|
|
92
|
-
* pbxExtension: "STRING_VALUE",
|
|
93
|
-
* pbxSerial: "STRING_VALUE",
|
|
94
|
-
* pbxUserId: "STRING_VALUE",
|
|
95
|
-
* createdAt: "STRING_VALUE",
|
|
96
|
-
* updatedAt: "STRING_VALUE",
|
|
97
|
-
* },
|
|
98
|
-
* },
|
|
99
|
-
* actions: [ // ActionsElementsList
|
|
100
|
-
* { // ActionElement Union: only one key present
|
|
101
|
-
* button: { // ButtonElement
|
|
102
|
-
* text: "STRING_VALUE", // required
|
|
103
|
-
* variant: "contained" || "outlined",
|
|
104
|
-
* disabled: true || false,
|
|
105
|
-
* handler: { // ButtonHandler Union: only one key present
|
|
106
|
-
* link: { // ButtonLinkHandler
|
|
107
|
-
* url: "STRING_VALUE", // required
|
|
108
|
-
* },
|
|
109
|
-
* reply: { // ButtonReplyHandler
|
|
110
|
-
* text: "STRING_VALUE",
|
|
111
|
-
* },
|
|
112
|
-
* action: { // ButtonActionHandler
|
|
113
|
-
* id: "STRING_VALUE", // required
|
|
114
|
-
* },
|
|
115
|
-
* },
|
|
116
|
-
* },
|
|
117
|
-
* },
|
|
118
|
-
* ],
|
|
119
|
-
* },
|
|
120
|
-
* ],
|
|
121
|
-
* attachments: [ // MessageAttachmentList
|
|
122
|
-
* { // MessageAttachment
|
|
123
|
-
* id: "STRING_VALUE", // required
|
|
124
|
-
* fsId: "STRING_VALUE", // required
|
|
125
|
-
* mime: "STRING_VALUE",
|
|
126
|
-
* name: "STRING_VALUE", // required
|
|
127
|
-
* size: Number("int"), // required
|
|
128
|
-
* width: Number("int"),
|
|
129
|
-
* height: Number("int"),
|
|
130
|
-
* thumbnail: "STRING_VALUE",
|
|
131
|
-
* },
|
|
132
|
-
* ],
|
|
133
|
-
* quote: { // MessageQuote
|
|
134
|
-
* messageId: "STRING_VALUE", // required
|
|
135
|
-
* channelId: "STRING_VALUE", // required
|
|
136
|
-
* user: {
|
|
137
|
-
* id: "STRING_VALUE", // required
|
|
138
|
-
* name: "STRING_VALUE",
|
|
139
|
-
* email: "STRING_VALUE",
|
|
140
|
-
* phone: "STRING_VALUE",
|
|
141
|
-
* picture: "STRING_VALUE",
|
|
142
|
-
* locale: "STRING_VALUE",
|
|
143
|
-
* timeZone: "STRING_VALUE",
|
|
144
|
-
* company: "STRING_VALUE",
|
|
145
|
-
* bot: true || false,
|
|
146
|
-
* pbxDomain: "STRING_VALUE",
|
|
147
|
-
* pbxPort: "STRING_VALUE",
|
|
148
|
-
* pbxExtension: "STRING_VALUE",
|
|
149
|
-
* pbxSerial: "STRING_VALUE",
|
|
150
|
-
* pbxUserId: "STRING_VALUE",
|
|
151
|
-
* createdAt: "STRING_VALUE",
|
|
152
|
-
* updatedAt: "STRING_VALUE",
|
|
153
|
-
* },
|
|
154
|
-
* text: "STRING_VALUE",
|
|
155
|
-
* attachments: [
|
|
156
|
-
* {
|
|
157
|
-
* id: "STRING_VALUE", // required
|
|
158
|
-
* fsId: "STRING_VALUE", // required
|
|
159
|
-
* mime: "STRING_VALUE",
|
|
160
|
-
* name: "STRING_VALUE", // required
|
|
161
|
-
* size: Number("int"), // required
|
|
162
|
-
* width: Number("int"),
|
|
163
|
-
* height: Number("int"),
|
|
164
|
-
* thumbnail: "STRING_VALUE",
|
|
165
|
-
* },
|
|
166
|
-
* ],
|
|
167
|
-
* forward: { // MessageForward
|
|
168
|
-
* forwardCompany: "STRING_VALUE",
|
|
169
|
-
* forwardDate: "STRING_VALUE", // required
|
|
170
|
-
* forwardEmail: "STRING_VALUE",
|
|
171
|
-
* forwardName: "STRING_VALUE",
|
|
172
|
-
* },
|
|
173
|
-
* mentions: [ // UsersList
|
|
174
|
-
* "<User>",
|
|
175
|
-
* ],
|
|
176
|
-
* giphy: { // MessageGiphy
|
|
177
|
-
* id: "STRING_VALUE", // required
|
|
178
|
-
* size: "STRING_VALUE", // required
|
|
179
|
-
* url: "STRING_VALUE", // required
|
|
180
|
-
* height: "STRING_VALUE", // required
|
|
181
|
-
* width: "STRING_VALUE", // required
|
|
182
|
-
* },
|
|
183
|
-
* createdAt: "STRING_VALUE", // required
|
|
184
|
-
* updatedAt: "STRING_VALUE",
|
|
185
|
-
* },
|
|
186
|
-
* forward: {
|
|
187
|
-
* forwardCompany: "STRING_VALUE",
|
|
188
|
-
* forwardDate: "STRING_VALUE", // required
|
|
189
|
-
* forwardEmail: "STRING_VALUE",
|
|
190
|
-
* forwardName: "STRING_VALUE",
|
|
191
|
-
* },
|
|
192
38
|
* channelId: "STRING_VALUE", // required
|
|
193
39
|
* messageId: "STRING_VALUE", // required
|
|
194
40
|
* actionId: "STRING_VALUE", // required
|
|
@@ -2278,11 +2278,6 @@ export declare class MessageActionNotFoundException extends __BaseException {
|
|
|
2278
2278
|
* @public
|
|
2279
2279
|
*/
|
|
2280
2280
|
export interface TriggerMessageActionInput {
|
|
2281
|
-
text?: string;
|
|
2282
|
-
elements?: (Element)[];
|
|
2283
|
-
attachments?: (MessageAttachment)[];
|
|
2284
|
-
quote?: MessageQuote;
|
|
2285
|
-
forward?: MessageForward;
|
|
2286
2281
|
/**
|
|
2287
2282
|
* The unique identifier of the channel to which the message is sent.
|
|
2288
2283
|
* @public
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wildix/xbees-conversations-client",
|
|
3
3
|
"description": "@wildix/xbees-conversations-client client",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.61",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|