@wildix/xbees-conversations-client 1.1.21 → 1.1.23
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/models/models_0.js +4 -0
- package/dist-cjs/protocols/Aws_restJson1.js +12 -0
- package/dist-es/models/models_0.js +4 -0
- package/dist-es/protocols/Aws_restJson1.js +12 -0
- package/dist-types/commands/CreateGroupChannelCommand.d.ts +23 -0
- package/dist-types/commands/PartialUpdateChannelCommand.d.ts +24 -1
- package/dist-types/commands/UpdateChannelCommand.d.ts +23 -0
- package/dist-types/models/models_0.d.ts +82 -0
- package/package.json +1 -1
|
@@ -342,13 +342,17 @@ class MarkUnreadChannelsLimitReachedException extends ConversationsServiceExcept
|
|
|
342
342
|
exports.MarkUnreadChannelsLimitReachedException = MarkUnreadChannelsLimitReachedException;
|
|
343
343
|
exports.GroupChannelUnsetOptions = {
|
|
344
344
|
ACCESS: "access",
|
|
345
|
+
ASSIGNEE: "assignee",
|
|
345
346
|
BROADCAST: "broadcast",
|
|
346
347
|
CONTEXT: "context",
|
|
347
348
|
CONTEXT_EVENTS: "contextEvents",
|
|
348
349
|
CONTEXT_PTT: "contextPtt",
|
|
349
350
|
DESCRIPTION: "description",
|
|
351
|
+
KITE_ASSIGN: "kiteAssign",
|
|
350
352
|
PICTURE: "picture",
|
|
351
353
|
PICTURE_COLOR: "pictureColor",
|
|
354
|
+
SERVICE: "service",
|
|
355
|
+
SERVICE_TITLE: "serviceTitle",
|
|
352
356
|
SUBJECT: "subject",
|
|
353
357
|
WHATSAPP_STATUS: "whatsappStatus",
|
|
354
358
|
};
|
|
@@ -92,15 +92,21 @@ const se_CreateGroupChannelCommand = async (input, context) => {
|
|
|
92
92
|
let body;
|
|
93
93
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
94
94
|
'access': [],
|
|
95
|
+
'assignee': _ => (0, smithy_client_1._json)(_),
|
|
95
96
|
'broadcast': [],
|
|
96
97
|
'channelId': [],
|
|
97
98
|
'context': _ => (0, smithy_client_1._json)(_),
|
|
98
99
|
'description': [],
|
|
100
|
+
'kiteAssign': [],
|
|
99
101
|
'members': _ => (0, smithy_client_1._json)(_),
|
|
100
102
|
'membersToInvite': _ => (0, smithy_client_1._json)(_),
|
|
103
|
+
'mms': [],
|
|
101
104
|
'picture': [],
|
|
102
105
|
'pictureColor': [],
|
|
106
|
+
'serviceTitle': [],
|
|
107
|
+
'sms': [],
|
|
103
108
|
'subject': [],
|
|
109
|
+
'whatsapp': [],
|
|
104
110
|
'whatsappStatus': [],
|
|
105
111
|
}));
|
|
106
112
|
b.m("POST")
|
|
@@ -1169,13 +1175,19 @@ const se_UpdateChannelCommand = async (input, context) => {
|
|
|
1169
1175
|
let body;
|
|
1170
1176
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1171
1177
|
'access': [],
|
|
1178
|
+
'assignee': _ => (0, smithy_client_1._json)(_),
|
|
1172
1179
|
'broadcast': [],
|
|
1173
1180
|
'context': _ => (0, smithy_client_1._json)(_),
|
|
1174
1181
|
'description': [],
|
|
1182
|
+
'kiteAssign': [],
|
|
1183
|
+
'mms': [],
|
|
1175
1184
|
'picture': [],
|
|
1176
1185
|
'pictureColor': [],
|
|
1186
|
+
'serviceTitle': [],
|
|
1177
1187
|
'silent': [],
|
|
1188
|
+
'sms': [],
|
|
1178
1189
|
'subject': [],
|
|
1190
|
+
'whatsapp': [],
|
|
1179
1191
|
'whatsappStatus': [],
|
|
1180
1192
|
}));
|
|
1181
1193
|
b.m("PUT")
|
|
@@ -324,13 +324,17 @@ export class MarkUnreadChannelsLimitReachedException extends __BaseException {
|
|
|
324
324
|
}
|
|
325
325
|
export const GroupChannelUnsetOptions = {
|
|
326
326
|
ACCESS: "access",
|
|
327
|
+
ASSIGNEE: "assignee",
|
|
327
328
|
BROADCAST: "broadcast",
|
|
328
329
|
CONTEXT: "context",
|
|
329
330
|
CONTEXT_EVENTS: "contextEvents",
|
|
330
331
|
CONTEXT_PTT: "contextPtt",
|
|
331
332
|
DESCRIPTION: "description",
|
|
333
|
+
KITE_ASSIGN: "kiteAssign",
|
|
332
334
|
PICTURE: "picture",
|
|
333
335
|
PICTURE_COLOR: "pictureColor",
|
|
336
|
+
SERVICE: "service",
|
|
337
|
+
SERVICE_TITLE: "serviceTitle",
|
|
334
338
|
SUBJECT: "subject",
|
|
335
339
|
WHATSAPP_STATUS: "whatsappStatus",
|
|
336
340
|
};
|
|
@@ -84,15 +84,21 @@ export const se_CreateGroupChannelCommand = async (input, context) => {
|
|
|
84
84
|
let body;
|
|
85
85
|
body = JSON.stringify(take(input, {
|
|
86
86
|
'access': [],
|
|
87
|
+
'assignee': _ => _json(_),
|
|
87
88
|
'broadcast': [],
|
|
88
89
|
'channelId': [],
|
|
89
90
|
'context': _ => _json(_),
|
|
90
91
|
'description': [],
|
|
92
|
+
'kiteAssign': [],
|
|
91
93
|
'members': _ => _json(_),
|
|
92
94
|
'membersToInvite': _ => _json(_),
|
|
95
|
+
'mms': [],
|
|
93
96
|
'picture': [],
|
|
94
97
|
'pictureColor': [],
|
|
98
|
+
'serviceTitle': [],
|
|
99
|
+
'sms': [],
|
|
95
100
|
'subject': [],
|
|
101
|
+
'whatsapp': [],
|
|
96
102
|
'whatsappStatus': [],
|
|
97
103
|
}));
|
|
98
104
|
b.m("POST")
|
|
@@ -1103,13 +1109,19 @@ export const se_UpdateChannelCommand = async (input, context) => {
|
|
|
1103
1109
|
let body;
|
|
1104
1110
|
body = JSON.stringify(take(input, {
|
|
1105
1111
|
'access': [],
|
|
1112
|
+
'assignee': _ => _json(_),
|
|
1106
1113
|
'broadcast': [],
|
|
1107
1114
|
'context': _ => _json(_),
|
|
1108
1115
|
'description': [],
|
|
1116
|
+
'kiteAssign': [],
|
|
1117
|
+
'mms': [],
|
|
1109
1118
|
'picture': [],
|
|
1110
1119
|
'pictureColor': [],
|
|
1120
|
+
'serviceTitle': [],
|
|
1111
1121
|
'silent': [],
|
|
1122
|
+
'sms': [],
|
|
1112
1123
|
'subject': [],
|
|
1124
|
+
'whatsapp': [],
|
|
1113
1125
|
'whatsappStatus': [],
|
|
1114
1126
|
}));
|
|
1115
1127
|
b.m("PUT")
|
|
@@ -65,6 +65,29 @@ declare const CreateGroupChannelCommand_base: {
|
|
|
65
65
|
* },
|
|
66
66
|
* },
|
|
67
67
|
* whatsappStatus: "24h_channel_closed",
|
|
68
|
+
* sms: true || false,
|
|
69
|
+
* mms: true || false,
|
|
70
|
+
* whatsapp: true || false,
|
|
71
|
+
* kiteAssign: "STRING_VALUE",
|
|
72
|
+
* serviceTitle: "STRING_VALUE",
|
|
73
|
+
* assignee: { // User
|
|
74
|
+
* id: "STRING_VALUE", // required
|
|
75
|
+
* name: "STRING_VALUE",
|
|
76
|
+
* email: "STRING_VALUE",
|
|
77
|
+
* phone: "STRING_VALUE",
|
|
78
|
+
* picture: "STRING_VALUE",
|
|
79
|
+
* locale: "STRING_VALUE",
|
|
80
|
+
* timeZone: "STRING_VALUE",
|
|
81
|
+
* company: "STRING_VALUE",
|
|
82
|
+
* bot: true || false,
|
|
83
|
+
* pbxDomain: "STRING_VALUE",
|
|
84
|
+
* pbxPort: "STRING_VALUE",
|
|
85
|
+
* pbxExtension: "STRING_VALUE",
|
|
86
|
+
* pbxSerial: "STRING_VALUE",
|
|
87
|
+
* pbxUserId: "STRING_VALUE",
|
|
88
|
+
* createdAt: "STRING_VALUE",
|
|
89
|
+
* updatedAt: "STRING_VALUE",
|
|
90
|
+
* },
|
|
68
91
|
* userId: "STRING_VALUE",
|
|
69
92
|
* channelId: "STRING_VALUE",
|
|
70
93
|
* members: [ // UsersIdList
|
|
@@ -69,9 +69,32 @@ declare const PartialUpdateChannelCommand_base: {
|
|
|
69
69
|
* },
|
|
70
70
|
* },
|
|
71
71
|
* whatsappStatus: "24h_channel_closed",
|
|
72
|
+
* sms: true || false,
|
|
73
|
+
* mms: true || false,
|
|
74
|
+
* whatsapp: true || false,
|
|
75
|
+
* kiteAssign: "STRING_VALUE",
|
|
76
|
+
* serviceTitle: "STRING_VALUE",
|
|
77
|
+
* assignee: { // User
|
|
78
|
+
* id: "STRING_VALUE", // required
|
|
79
|
+
* name: "STRING_VALUE",
|
|
80
|
+
* email: "STRING_VALUE",
|
|
81
|
+
* phone: "STRING_VALUE",
|
|
82
|
+
* picture: "STRING_VALUE",
|
|
83
|
+
* locale: "STRING_VALUE",
|
|
84
|
+
* timeZone: "STRING_VALUE",
|
|
85
|
+
* company: "STRING_VALUE",
|
|
86
|
+
* bot: true || false,
|
|
87
|
+
* pbxDomain: "STRING_VALUE",
|
|
88
|
+
* pbxPort: "STRING_VALUE",
|
|
89
|
+
* pbxExtension: "STRING_VALUE",
|
|
90
|
+
* pbxSerial: "STRING_VALUE",
|
|
91
|
+
* pbxUserId: "STRING_VALUE",
|
|
92
|
+
* createdAt: "STRING_VALUE",
|
|
93
|
+
* updatedAt: "STRING_VALUE",
|
|
94
|
+
* },
|
|
72
95
|
* },
|
|
73
96
|
* unset: [ // PartialUpdateChannelUnsetOptions
|
|
74
|
-
* "subject" || "description" || "picture" || "pictureColor" || "access" || "broadcast" || "context" || "contextPtt" || "contextEvents" || "whatsappStatus",
|
|
97
|
+
* "subject" || "description" || "picture" || "pictureColor" || "access" || "broadcast" || "context" || "contextPtt" || "contextEvents" || "whatsappStatus" || "kiteAssign" || "service" || "serviceTitle" || "assignee",
|
|
75
98
|
* ],
|
|
76
99
|
* };
|
|
77
100
|
* const command = new PartialUpdateChannelCommand(input);
|
|
@@ -65,6 +65,29 @@ declare const UpdateChannelCommand_base: {
|
|
|
65
65
|
* },
|
|
66
66
|
* },
|
|
67
67
|
* whatsappStatus: "24h_channel_closed",
|
|
68
|
+
* sms: true || false,
|
|
69
|
+
* mms: true || false,
|
|
70
|
+
* whatsapp: true || false,
|
|
71
|
+
* kiteAssign: "STRING_VALUE",
|
|
72
|
+
* serviceTitle: "STRING_VALUE",
|
|
73
|
+
* assignee: { // User
|
|
74
|
+
* id: "STRING_VALUE", // required
|
|
75
|
+
* name: "STRING_VALUE",
|
|
76
|
+
* email: "STRING_VALUE",
|
|
77
|
+
* phone: "STRING_VALUE",
|
|
78
|
+
* picture: "STRING_VALUE",
|
|
79
|
+
* locale: "STRING_VALUE",
|
|
80
|
+
* timeZone: "STRING_VALUE",
|
|
81
|
+
* company: "STRING_VALUE",
|
|
82
|
+
* bot: true || false,
|
|
83
|
+
* pbxDomain: "STRING_VALUE",
|
|
84
|
+
* pbxPort: "STRING_VALUE",
|
|
85
|
+
* pbxExtension: "STRING_VALUE",
|
|
86
|
+
* pbxSerial: "STRING_VALUE",
|
|
87
|
+
* pbxUserId: "STRING_VALUE",
|
|
88
|
+
* createdAt: "STRING_VALUE",
|
|
89
|
+
* updatedAt: "STRING_VALUE",
|
|
90
|
+
* },
|
|
68
91
|
* channelId: "STRING_VALUE", // required
|
|
69
92
|
* userId: "STRING_VALUE",
|
|
70
93
|
* silent: true || false,
|
|
@@ -765,6 +765,32 @@ export interface CreateGroupChannelInput {
|
|
|
765
765
|
*/
|
|
766
766
|
context?: ChannelContext | undefined;
|
|
767
767
|
whatsappStatus?: ChannelWhatsAppStatus | undefined;
|
|
768
|
+
/**
|
|
769
|
+
* Indicates if the channel supports SMS. Default is false.
|
|
770
|
+
* @public
|
|
771
|
+
*/
|
|
772
|
+
sms?: boolean | undefined;
|
|
773
|
+
/**
|
|
774
|
+
* Indicates if the channel supports MMS. Default is false.
|
|
775
|
+
* @public
|
|
776
|
+
*/
|
|
777
|
+
mms?: boolean | undefined;
|
|
778
|
+
/**
|
|
779
|
+
* Indicates if the channel supports WhatsApp. Default is false.
|
|
780
|
+
* @public
|
|
781
|
+
*/
|
|
782
|
+
whatsapp?: boolean | undefined;
|
|
783
|
+
/**
|
|
784
|
+
* The unique identifier of the assignee.
|
|
785
|
+
* @public
|
|
786
|
+
*/
|
|
787
|
+
kiteAssign?: string | undefined;
|
|
788
|
+
serviceTitle?: string | undefined;
|
|
789
|
+
/**
|
|
790
|
+
* A user that assigned to the channel if specified in the request, otherwise previously assigned user or undefined.
|
|
791
|
+
* @public
|
|
792
|
+
*/
|
|
793
|
+
assignee?: User | undefined;
|
|
768
794
|
/**
|
|
769
795
|
* The unique identifier of the user when a service token is used.
|
|
770
796
|
* @public
|
|
@@ -2399,6 +2425,32 @@ export interface PartialUpdateChannelSetOptions {
|
|
|
2399
2425
|
*/
|
|
2400
2426
|
context?: ChannelContext | undefined;
|
|
2401
2427
|
whatsappStatus?: ChannelWhatsAppStatus | undefined;
|
|
2428
|
+
/**
|
|
2429
|
+
* Indicates if the channel supports SMS. Default is false.
|
|
2430
|
+
* @public
|
|
2431
|
+
*/
|
|
2432
|
+
sms?: boolean | undefined;
|
|
2433
|
+
/**
|
|
2434
|
+
* Indicates if the channel supports MMS. Default is false.
|
|
2435
|
+
* @public
|
|
2436
|
+
*/
|
|
2437
|
+
mms?: boolean | undefined;
|
|
2438
|
+
/**
|
|
2439
|
+
* Indicates if the channel supports WhatsApp. Default is false.
|
|
2440
|
+
* @public
|
|
2441
|
+
*/
|
|
2442
|
+
whatsapp?: boolean | undefined;
|
|
2443
|
+
/**
|
|
2444
|
+
* The unique identifier of the assignee.
|
|
2445
|
+
* @public
|
|
2446
|
+
*/
|
|
2447
|
+
kiteAssign?: string | undefined;
|
|
2448
|
+
serviceTitle?: string | undefined;
|
|
2449
|
+
/**
|
|
2450
|
+
* A user that assigned to the channel if specified in the request, otherwise previously assigned user or undefined.
|
|
2451
|
+
* @public
|
|
2452
|
+
*/
|
|
2453
|
+
assignee?: User | undefined;
|
|
2402
2454
|
}
|
|
2403
2455
|
/**
|
|
2404
2456
|
* @public
|
|
@@ -2406,13 +2458,17 @@ export interface PartialUpdateChannelSetOptions {
|
|
|
2406
2458
|
*/
|
|
2407
2459
|
export declare const GroupChannelUnsetOptions: {
|
|
2408
2460
|
readonly ACCESS: "access";
|
|
2461
|
+
readonly ASSIGNEE: "assignee";
|
|
2409
2462
|
readonly BROADCAST: "broadcast";
|
|
2410
2463
|
readonly CONTEXT: "context";
|
|
2411
2464
|
readonly CONTEXT_EVENTS: "contextEvents";
|
|
2412
2465
|
readonly CONTEXT_PTT: "contextPtt";
|
|
2413
2466
|
readonly DESCRIPTION: "description";
|
|
2467
|
+
readonly KITE_ASSIGN: "kiteAssign";
|
|
2414
2468
|
readonly PICTURE: "picture";
|
|
2415
2469
|
readonly PICTURE_COLOR: "pictureColor";
|
|
2470
|
+
readonly SERVICE: "service";
|
|
2471
|
+
readonly SERVICE_TITLE: "serviceTitle";
|
|
2416
2472
|
readonly SUBJECT: "subject";
|
|
2417
2473
|
readonly WHATSAPP_STATUS: "whatsappStatus";
|
|
2418
2474
|
};
|
|
@@ -3098,6 +3154,32 @@ export interface UpdateChannelInput {
|
|
|
3098
3154
|
*/
|
|
3099
3155
|
context?: ChannelContext | undefined;
|
|
3100
3156
|
whatsappStatus?: ChannelWhatsAppStatus | undefined;
|
|
3157
|
+
/**
|
|
3158
|
+
* Indicates if the channel supports SMS. Default is false.
|
|
3159
|
+
* @public
|
|
3160
|
+
*/
|
|
3161
|
+
sms?: boolean | undefined;
|
|
3162
|
+
/**
|
|
3163
|
+
* Indicates if the channel supports MMS. Default is false.
|
|
3164
|
+
* @public
|
|
3165
|
+
*/
|
|
3166
|
+
mms?: boolean | undefined;
|
|
3167
|
+
/**
|
|
3168
|
+
* Indicates if the channel supports WhatsApp. Default is false.
|
|
3169
|
+
* @public
|
|
3170
|
+
*/
|
|
3171
|
+
whatsapp?: boolean | undefined;
|
|
3172
|
+
/**
|
|
3173
|
+
* The unique identifier of the assignee.
|
|
3174
|
+
* @public
|
|
3175
|
+
*/
|
|
3176
|
+
kiteAssign?: string | undefined;
|
|
3177
|
+
serviceTitle?: string | undefined;
|
|
3178
|
+
/**
|
|
3179
|
+
* A user that assigned to the channel if specified in the request, otherwise previously assigned user or undefined.
|
|
3180
|
+
* @public
|
|
3181
|
+
*/
|
|
3182
|
+
assignee?: User | undefined;
|
|
3101
3183
|
/**
|
|
3102
3184
|
* The unique identifier of the channel to be updated.
|
|
3103
3185
|
* @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.1.
|
|
4
|
+
"version": "1.1.23",
|
|
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",
|