@wildix/xbees-conversations-client 1.0.36 → 1.0.37
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 +9 -0
- package/dist-es/protocols/Aws_restJson1.js +9 -0
- package/dist-types/commands/AddChannelMemberCommand.d.ts +1 -0
- package/dist-types/commands/AddChannelMembersCommand.d.ts +1 -0
- package/dist-types/commands/DeleteChannelMemberCommand.d.ts +1 -0
- package/dist-types/commands/ListMessagesCommand.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +16 -1
- package/package.json +1 -1
|
@@ -13,6 +13,9 @@ const se_AddChannelMemberCommand = async (input, context) => {
|
|
|
13
13
|
};
|
|
14
14
|
b.bp("/v2/conversations/channels/{channelId}/members");
|
|
15
15
|
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
16
|
+
const query = (0, smithy_client_1.map)({
|
|
17
|
+
[_u]: [, input[_uI]],
|
|
18
|
+
});
|
|
16
19
|
let body;
|
|
17
20
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
18
21
|
'memberId': [],
|
|
@@ -21,6 +24,7 @@ const se_AddChannelMemberCommand = async (input, context) => {
|
|
|
21
24
|
}));
|
|
22
25
|
b.m("POST")
|
|
23
26
|
.h(headers)
|
|
27
|
+
.q(query)
|
|
24
28
|
.b(body);
|
|
25
29
|
return b.build();
|
|
26
30
|
};
|
|
@@ -32,6 +36,9 @@ const se_AddChannelMembersCommand = async (input, context) => {
|
|
|
32
36
|
};
|
|
33
37
|
b.bp("/v2/conversations/channels/{channelId}/members");
|
|
34
38
|
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
39
|
+
const query = (0, smithy_client_1.map)({
|
|
40
|
+
[_u]: [, input[_uI]],
|
|
41
|
+
});
|
|
35
42
|
let body;
|
|
36
43
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
37
44
|
'members': _ => (0, smithy_client_1._json)(_),
|
|
@@ -40,6 +47,7 @@ const se_AddChannelMembersCommand = async (input, context) => {
|
|
|
40
47
|
}));
|
|
41
48
|
b.m("PUT")
|
|
42
49
|
.h(headers)
|
|
50
|
+
.q(query)
|
|
43
51
|
.b(body);
|
|
44
52
|
return b.build();
|
|
45
53
|
};
|
|
@@ -91,6 +99,7 @@ const se_DeleteChannelMemberCommand = async (input, context) => {
|
|
|
91
99
|
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
92
100
|
b.p('memberId', () => input.memberId, '{memberId}', false);
|
|
93
101
|
const query = (0, smithy_client_1.map)({
|
|
102
|
+
[_u]: [, input[_uI]],
|
|
94
103
|
[_s]: [() => input.silent !== void 0, () => (input[_s].toString())],
|
|
95
104
|
});
|
|
96
105
|
let body;
|
|
@@ -9,6 +9,9 @@ export const se_AddChannelMemberCommand = async (input, context) => {
|
|
|
9
9
|
};
|
|
10
10
|
b.bp("/v2/conversations/channels/{channelId}/members");
|
|
11
11
|
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
12
|
+
const query = map({
|
|
13
|
+
[_u]: [, input[_uI]],
|
|
14
|
+
});
|
|
12
15
|
let body;
|
|
13
16
|
body = JSON.stringify(take(input, {
|
|
14
17
|
'memberId': [],
|
|
@@ -17,6 +20,7 @@ export const se_AddChannelMemberCommand = async (input, context) => {
|
|
|
17
20
|
}));
|
|
18
21
|
b.m("POST")
|
|
19
22
|
.h(headers)
|
|
23
|
+
.q(query)
|
|
20
24
|
.b(body);
|
|
21
25
|
return b.build();
|
|
22
26
|
};
|
|
@@ -27,6 +31,9 @@ export const se_AddChannelMembersCommand = async (input, context) => {
|
|
|
27
31
|
};
|
|
28
32
|
b.bp("/v2/conversations/channels/{channelId}/members");
|
|
29
33
|
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
34
|
+
const query = map({
|
|
35
|
+
[_u]: [, input[_uI]],
|
|
36
|
+
});
|
|
30
37
|
let body;
|
|
31
38
|
body = JSON.stringify(take(input, {
|
|
32
39
|
'members': _ => _json(_),
|
|
@@ -35,6 +42,7 @@ export const se_AddChannelMembersCommand = async (input, context) => {
|
|
|
35
42
|
}));
|
|
36
43
|
b.m("PUT")
|
|
37
44
|
.h(headers)
|
|
45
|
+
.q(query)
|
|
38
46
|
.b(body);
|
|
39
47
|
return b.build();
|
|
40
48
|
};
|
|
@@ -83,6 +91,7 @@ export const se_DeleteChannelMemberCommand = async (input, context) => {
|
|
|
83
91
|
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
84
92
|
b.p('memberId', () => input.memberId, '{memberId}', false);
|
|
85
93
|
const query = map({
|
|
94
|
+
[_u]: [, input[_uI]],
|
|
86
95
|
[_s]: [() => input.silent !== void 0, () => (input[_s].toString())],
|
|
87
96
|
});
|
|
88
97
|
let body;
|
|
@@ -36,6 +36,7 @@ declare const AddChannelMemberCommand_base: {
|
|
|
36
36
|
* const client = new ConversationsClient(config);
|
|
37
37
|
* const input = { // AddChannelMemberInput
|
|
38
38
|
* channelId: "STRING_VALUE", // required
|
|
39
|
+
* userId: "STRING_VALUE",
|
|
39
40
|
* silent: true || false,
|
|
40
41
|
* memberId: "STRING_VALUE",
|
|
41
42
|
* memberToInvite: { // UserToInvite
|
|
@@ -36,6 +36,7 @@ declare const AddChannelMembersCommand_base: {
|
|
|
36
36
|
* const client = new ConversationsClient(config);
|
|
37
37
|
* const input = { // AddChannelMembersInput
|
|
38
38
|
* channelId: "STRING_VALUE", // required
|
|
39
|
+
* userId: "STRING_VALUE",
|
|
39
40
|
* silent: true || false,
|
|
40
41
|
* members: [ // UsersIdList
|
|
41
42
|
* "STRING_VALUE",
|
|
@@ -36,6 +36,7 @@ declare const DeleteChannelMemberCommand_base: {
|
|
|
36
36
|
* const client = new ConversationsClient(config);
|
|
37
37
|
* const input = { // DeleteChannelMemberInput
|
|
38
38
|
* channelId: "STRING_VALUE", // required
|
|
39
|
+
* userId: "STRING_VALUE",
|
|
39
40
|
* memberId: "STRING_VALUE", // required
|
|
40
41
|
* silent: true || false,
|
|
41
42
|
* };
|
|
@@ -42,7 +42,7 @@ declare const ListMessagesCommand_base: {
|
|
|
42
42
|
* const command = new ListMessagesCommand(input);
|
|
43
43
|
* const response = await client.send(command);
|
|
44
44
|
* // { // ListMessagesOutput
|
|
45
|
-
* // messages: [ // MessagesList
|
|
45
|
+
* // messages: [ // MessagesList // required
|
|
46
46
|
* // { // Message
|
|
47
47
|
* // text: "STRING_VALUE",
|
|
48
48
|
* // attachments: [ // MessageAttachmentList
|
|
@@ -66,6 +66,11 @@ export interface UserToInvite {
|
|
|
66
66
|
*/
|
|
67
67
|
export interface AddChannelMemberInput {
|
|
68
68
|
channelId: string;
|
|
69
|
+
/**
|
|
70
|
+
* User ID for server side calls
|
|
71
|
+
* @public
|
|
72
|
+
*/
|
|
73
|
+
userId?: string;
|
|
69
74
|
/**
|
|
70
75
|
* True to not send a system message that members added from the conversartion. Default - false.
|
|
71
76
|
* @public
|
|
@@ -136,6 +141,11 @@ export declare class MemberAlreadyExistException extends __BaseException {
|
|
|
136
141
|
*/
|
|
137
142
|
export interface AddChannelMembersInput {
|
|
138
143
|
channelId: string;
|
|
144
|
+
/**
|
|
145
|
+
* User ID for server side calls
|
|
146
|
+
* @public
|
|
147
|
+
*/
|
|
148
|
+
userId?: string;
|
|
139
149
|
/**
|
|
140
150
|
* True to not send a system message that members added from the conversartion. Default - false.
|
|
141
151
|
* @public
|
|
@@ -320,6 +330,11 @@ export interface DeleteChannelOutput {
|
|
|
320
330
|
*/
|
|
321
331
|
export interface DeleteChannelMemberInput {
|
|
322
332
|
channelId: string;
|
|
333
|
+
/**
|
|
334
|
+
* User ID for server side calls
|
|
335
|
+
* @public
|
|
336
|
+
*/
|
|
337
|
+
userId?: string;
|
|
323
338
|
memberId: string;
|
|
324
339
|
/**
|
|
325
340
|
* True to not send a system message that member was removed from the conversartion. Default - false.
|
|
@@ -707,7 +722,7 @@ export interface ListMessagesInput {
|
|
|
707
722
|
* @public
|
|
708
723
|
*/
|
|
709
724
|
export interface ListMessagesOutput {
|
|
710
|
-
messages
|
|
725
|
+
messages: (Message)[];
|
|
711
726
|
}
|
|
712
727
|
/**
|
|
713
728
|
* @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.37",
|
|
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",
|