@wildix/xbees-conversations-client 1.2.13 → 1.2.14
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 +5 -1
- package/dist-cjs/protocols/Aws_restJson1.js +1 -0
- package/dist-es/models/models_0.js +4 -0
- package/dist-es/protocols/Aws_restJson1.js +1 -0
- package/dist-types/commands/CreateGroupChannelCommand.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +17 -0
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MessageActionNotFoundException = exports.TaggedChannelsLimitReachedException = exports.SystemMessage = exports.ConversationsServiceException = exports.PinnedChannelsLimitReachedException = exports.MessageUnsetFields = exports.GroupChannelUnsetOptions = exports.MarkUnreadChannelsLimitReachedException = exports.TagNotFoundException = exports.TriggerNotFoundException = exports.WebhookEventType = exports.ReactionType = exports.MessageNotFoundException = exports.MemberNotFoundException = exports.TargetNotFoundException = exports.TargetNotEligibleException = exports.TargetNotEligibleReason = exports.TagsLimitReachedException = exports.ChannelAlreadyExistException = exports.AssignChannelVariant = exports.AssignChannelServiceRequest = exports.AssignChannelAssigneeRequest = exports.MemberAlreadyExistException = exports.ChannelNotFoundException = exports.ChannelMemberRole = exports.ActionTriggerStatus = exports.FileNotFoundException = exports.ConversationFileCategory = exports.MessageWhatsAppStatus = exports.MessageType = exports.MessageSmsStatus = exports.Element = exports.ActionElement = exports.ButtonVariant = exports.ButtonHandler = exports.ChannelWhatsAppStatus = exports.ChannelContextSource = exports.ChannelContextEventAttendeeStatus = exports.ChannelType = exports.ChannelAccess = exports.ValidationException = exports.RateLimitExceededException = exports.ForbiddenException = void 0;
|
|
3
|
+
exports.MessageActionNotFoundException = exports.TaggedChannelsLimitReachedException = exports.SystemMessage = exports.ConversationsServiceException = exports.PinnedChannelsLimitReachedException = exports.MessageUnsetFields = exports.GroupChannelUnsetOptions = exports.MarkUnreadChannelsLimitReachedException = exports.TagNotFoundException = exports.TriggerNotFoundException = exports.WebhookEventType = exports.ReactionType = exports.MessageNotFoundException = exports.MemberNotFoundException = exports.TargetNotFoundException = exports.TargetNotEligibleException = exports.TargetNotEligibleReason = exports.TagsLimitReachedException = exports.GroupChannelCreationEventType = exports.ChannelAlreadyExistException = exports.AssignChannelVariant = exports.AssignChannelServiceRequest = exports.AssignChannelAssigneeRequest = exports.MemberAlreadyExistException = exports.ChannelNotFoundException = exports.ChannelMemberRole = exports.ActionTriggerStatus = exports.FileNotFoundException = exports.ConversationFileCategory = exports.MessageWhatsAppStatus = exports.MessageType = exports.MessageSmsStatus = exports.Element = exports.ActionElement = exports.ButtonVariant = exports.ButtonHandler = exports.ChannelWhatsAppStatus = exports.ChannelContextSource = exports.ChannelContextEventAttendeeStatus = exports.ChannelType = exports.ChannelAccess = exports.ValidationException = exports.RateLimitExceededException = exports.ForbiddenException = void 0;
|
|
4
4
|
const ConversationsServiceException_1 = require("./ConversationsServiceException");
|
|
5
5
|
class ForbiddenException extends ConversationsServiceException_1.ConversationsServiceException {
|
|
6
6
|
name = "ForbiddenException";
|
|
@@ -209,6 +209,10 @@ class ChannelAlreadyExistException extends ConversationsServiceException_1.Conve
|
|
|
209
209
|
}
|
|
210
210
|
}
|
|
211
211
|
exports.ChannelAlreadyExistException = ChannelAlreadyExistException;
|
|
212
|
+
exports.GroupChannelCreationEventType = {
|
|
213
|
+
CONVERSATION_CREATED: "conversation_created",
|
|
214
|
+
CONVERSATION_CREATED_WITH_NAME: "conversation_created_with_name",
|
|
215
|
+
};
|
|
212
216
|
class TagsLimitReachedException extends ConversationsServiceException_1.ConversationsServiceException {
|
|
213
217
|
name = "TagsLimitReachedException";
|
|
214
218
|
$fault = "client";
|
|
@@ -98,6 +98,7 @@ const se_CreateGroupChannelCommand = async (input, context) => {
|
|
|
98
98
|
'broadcast': [],
|
|
99
99
|
'channelId': [],
|
|
100
100
|
'context': _ => (0, smithy_client_1._json)(_),
|
|
101
|
+
'creationEventType': [],
|
|
101
102
|
'description': [],
|
|
102
103
|
'kiteAssign': [],
|
|
103
104
|
'members': _ => (0, smithy_client_1._json)(_),
|
|
@@ -199,6 +199,10 @@ export class ChannelAlreadyExistException extends __BaseException {
|
|
|
199
199
|
Object.setPrototypeOf(this, ChannelAlreadyExistException.prototype);
|
|
200
200
|
}
|
|
201
201
|
}
|
|
202
|
+
export const GroupChannelCreationEventType = {
|
|
203
|
+
CONVERSATION_CREATED: "conversation_created",
|
|
204
|
+
CONVERSATION_CREATED_WITH_NAME: "conversation_created_with_name",
|
|
205
|
+
};
|
|
202
206
|
export class TagsLimitReachedException extends __BaseException {
|
|
203
207
|
name = "TagsLimitReachedException";
|
|
204
208
|
$fault = "client";
|
|
@@ -105,6 +105,7 @@ declare const CreateGroupChannelCommand_base: {
|
|
|
105
105
|
* colleague: true || false,
|
|
106
106
|
* },
|
|
107
107
|
* ],
|
|
108
|
+
* creationEventType: "conversation_created" || "conversation_created_with_name",
|
|
108
109
|
* };
|
|
109
110
|
* const command = new CreateGroupChannelCommand(input);
|
|
110
111
|
* const response = await client.send(command);
|
|
@@ -923,6 +923,18 @@ export interface ChannelMemberReadStatus {
|
|
|
923
923
|
export interface ChannelsQuery {
|
|
924
924
|
ids?: (string)[] | undefined;
|
|
925
925
|
}
|
|
926
|
+
/**
|
|
927
|
+
* @public
|
|
928
|
+
* @enum
|
|
929
|
+
*/
|
|
930
|
+
export declare const GroupChannelCreationEventType: {
|
|
931
|
+
readonly CONVERSATION_CREATED: "conversation_created";
|
|
932
|
+
readonly CONVERSATION_CREATED_WITH_NAME: "conversation_created_with_name";
|
|
933
|
+
};
|
|
934
|
+
/**
|
|
935
|
+
* @public
|
|
936
|
+
*/
|
|
937
|
+
export type GroupChannelCreationEventType = typeof GroupChannelCreationEventType[keyof typeof GroupChannelCreationEventType];
|
|
926
938
|
/**
|
|
927
939
|
* @public
|
|
928
940
|
*/
|
|
@@ -1016,6 +1028,11 @@ export interface CreateGroupChannelInput {
|
|
|
1016
1028
|
* @public
|
|
1017
1029
|
*/
|
|
1018
1030
|
membersToInvite?: (UserToInvite)[] | undefined;
|
|
1031
|
+
/**
|
|
1032
|
+
* The type of system event to emit after the group channel is created. If omitted, the default group channel creation event is used.
|
|
1033
|
+
* @public
|
|
1034
|
+
*/
|
|
1035
|
+
creationEventType?: GroupChannelCreationEventType | undefined;
|
|
1019
1036
|
}
|
|
1020
1037
|
/**
|
|
1021
1038
|
* @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.2.
|
|
4
|
+
"version": "1.2.14",
|
|
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",
|