@wildix/xbees-conversations-client 1.0.31 → 1.0.32
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.
|
@@ -130,6 +130,9 @@ const se_DeleteMessageCommand = async (input, context) => {
|
|
|
130
130
|
let resolvedPath = `${basePath?.endsWith('/') ? basePath.slice(0, -1) : (basePath || '')}` + "/v2/conversations/channels/{channelId}/messages/{messageId}";
|
|
131
131
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, 'channelId', () => input.channelId, '{channelId}', false);
|
|
132
132
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, 'messageId', () => input.messageId, '{messageId}', false);
|
|
133
|
+
const query = (0, smithy_client_1.map)({
|
|
134
|
+
"user": [, input.userId],
|
|
135
|
+
});
|
|
133
136
|
let body;
|
|
134
137
|
return new protocol_http_1.HttpRequest({
|
|
135
138
|
protocol,
|
|
@@ -138,6 +141,7 @@ const se_DeleteMessageCommand = async (input, context) => {
|
|
|
138
141
|
method: "DELETE",
|
|
139
142
|
headers,
|
|
140
143
|
path: resolvedPath,
|
|
144
|
+
query,
|
|
141
145
|
body,
|
|
142
146
|
});
|
|
143
147
|
};
|
|
@@ -121,6 +121,9 @@ export const se_DeleteMessageCommand = async (input, context) => {
|
|
|
121
121
|
let resolvedPath = `${basePath?.endsWith('/') ? basePath.slice(0, -1) : (basePath || '')}` + "/v2/conversations/channels/{channelId}/messages/{messageId}";
|
|
122
122
|
resolvedPath = __resolvedPath(resolvedPath, input, 'channelId', () => input.channelId, '{channelId}', false);
|
|
123
123
|
resolvedPath = __resolvedPath(resolvedPath, input, 'messageId', () => input.messageId, '{messageId}', false);
|
|
124
|
+
const query = map({
|
|
125
|
+
"user": [, input.userId],
|
|
126
|
+
});
|
|
124
127
|
let body;
|
|
125
128
|
return new __HttpRequest({
|
|
126
129
|
protocol,
|
|
@@ -129,6 +132,7 @@ export const se_DeleteMessageCommand = async (input, context) => {
|
|
|
129
132
|
method: "DELETE",
|
|
130
133
|
headers,
|
|
131
134
|
path: resolvedPath,
|
|
135
|
+
query,
|
|
132
136
|
body,
|
|
133
137
|
});
|
|
134
138
|
};
|
|
@@ -32,6 +32,7 @@ export interface DeleteMessageCommandOutput extends DeleteMessageOutput, __Metad
|
|
|
32
32
|
* const input = { // DeleteMessageInput
|
|
33
33
|
* channelId: "STRING_VALUE", // required
|
|
34
34
|
* messageId: "STRING_VALUE", // required
|
|
35
|
+
* userId: "STRING_VALUE",
|
|
35
36
|
* };
|
|
36
37
|
* const command = new DeleteMessageCommand(input);
|
|
37
38
|
* const response = await client.send(command);
|
|
@@ -339,6 +339,11 @@ export declare class MemberNotFoundException extends __BaseException {
|
|
|
339
339
|
export interface DeleteMessageInput {
|
|
340
340
|
channelId: string;
|
|
341
341
|
messageId: string;
|
|
342
|
+
/**
|
|
343
|
+
* @public
|
|
344
|
+
* User ID for server side calls
|
|
345
|
+
*/
|
|
346
|
+
userId?: string;
|
|
342
347
|
}
|
|
343
348
|
/**
|
|
344
349
|
* @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.32",
|
|
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",
|