@wildix/xbees-conversations-client 1.0.18 → 1.0.21
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 -5
- package/dist-cjs/protocols/Aws_restJson1.js +3 -0
- package/dist-es/models/models_0.js +4 -4
- package/dist-es/protocols/Aws_restJson1.js +3 -0
- package/dist-types/commands/DeleteChannelCommand.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +8 -8
- package/package.json +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MemberNotFoundException = exports.MessageType = exports.MessageSmsStatus = exports.ChannelUnsetFields = exports.ChannelNotFoundException = exports.ChannelMemberRole = exports.ChannelContextSource = exports.ChannelContextEventAttendeeStatus = exports.
|
|
3
|
+
exports.MemberNotFoundException = exports.MessageType = exports.MessageSmsStatus = exports.ChannelUnsetFields = exports.ChannelNotFoundException = exports.ChannelMemberRole = exports.ChannelContextSource = exports.ChannelContextEventAttendeeStatus = exports.ChannelAccess = exports.ChannelType = exports.ValidationException = void 0;
|
|
4
4
|
const ConversationsServiceException_1 = require("./ConversationsServiceException");
|
|
5
5
|
class ValidationException extends ConversationsServiceException_1.ConversationsServiceException {
|
|
6
6
|
constructor(opts) {
|
|
@@ -15,14 +15,14 @@ class ValidationException extends ConversationsServiceException_1.ConversationsS
|
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
exports.ValidationException = ValidationException;
|
|
18
|
-
exports.ChannelAccess = {
|
|
19
|
-
PRIVATE: "private",
|
|
20
|
-
PUBLIC: "public",
|
|
21
|
-
};
|
|
22
18
|
exports.ChannelType = {
|
|
23
19
|
DIRECT: "direct",
|
|
24
20
|
GROUP: "group",
|
|
25
21
|
};
|
|
22
|
+
exports.ChannelAccess = {
|
|
23
|
+
PRIVATE: "private",
|
|
24
|
+
PUBLIC: "public",
|
|
25
|
+
};
|
|
26
26
|
exports.ChannelContextEventAttendeeStatus = {
|
|
27
27
|
ACCEPTED: "accepted",
|
|
28
28
|
DECLINED: "declined",
|
|
@@ -255,6 +255,9 @@ const de_DeleteChannelCommandError = async (output, context) => {
|
|
|
255
255
|
};
|
|
256
256
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
257
257
|
switch (errorCode) {
|
|
258
|
+
case "ChannelNotFoundException":
|
|
259
|
+
case "wildix.xbees.conversations#ChannelNotFoundException":
|
|
260
|
+
throw await de_ChannelNotFoundExceptionRes(parsedOutput, context);
|
|
258
261
|
case "ValidationException":
|
|
259
262
|
case "smithy.framework#ValidationException":
|
|
260
263
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
@@ -11,14 +11,14 @@ export class ValidationException extends __BaseException {
|
|
|
11
11
|
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
|
-
export const ChannelAccess = {
|
|
15
|
-
PRIVATE: "private",
|
|
16
|
-
PUBLIC: "public",
|
|
17
|
-
};
|
|
18
14
|
export const ChannelType = {
|
|
19
15
|
DIRECT: "direct",
|
|
20
16
|
GROUP: "group",
|
|
21
17
|
};
|
|
18
|
+
export const ChannelAccess = {
|
|
19
|
+
PRIVATE: "private",
|
|
20
|
+
PUBLIC: "public",
|
|
21
|
+
};
|
|
22
22
|
export const ChannelContextEventAttendeeStatus = {
|
|
23
23
|
ACCEPTED: "accepted",
|
|
24
24
|
DECLINED: "declined",
|
|
@@ -241,6 +241,9 @@ const de_DeleteChannelCommandError = async (output, context) => {
|
|
|
241
241
|
};
|
|
242
242
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
243
243
|
switch (errorCode) {
|
|
244
|
+
case "ChannelNotFoundException":
|
|
245
|
+
case "wildix.xbees.conversations#ChannelNotFoundException":
|
|
246
|
+
throw await de_ChannelNotFoundExceptionRes(parsedOutput, context);
|
|
244
247
|
case "ValidationException":
|
|
245
248
|
case "smithy.framework#ValidationException":
|
|
246
249
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
@@ -44,6 +44,8 @@ export interface DeleteChannelCommandOutput extends DeleteChannelOutput, __Metad
|
|
|
44
44
|
* @see {@link DeleteChannelCommandOutput} for command's `response` shape.
|
|
45
45
|
* @see {@link ConversationsClientResolvedConfig | config} for ConversationsClient's `config` shape.
|
|
46
46
|
*
|
|
47
|
+
* @throws {@link ChannelNotFoundException} (client fault)
|
|
48
|
+
*
|
|
47
49
|
* @throws {@link ValidationException} (client fault)
|
|
48
50
|
*
|
|
49
51
|
* @throws {@link ConversationsServiceException}
|
|
@@ -15,14 +15,14 @@ export declare class ValidationException extends __BaseException {
|
|
|
15
15
|
* @public
|
|
16
16
|
* @enum
|
|
17
17
|
*/
|
|
18
|
-
export declare const
|
|
19
|
-
readonly
|
|
20
|
-
readonly
|
|
18
|
+
export declare const ChannelType: {
|
|
19
|
+
readonly DIRECT: "direct";
|
|
20
|
+
readonly GROUP: "group";
|
|
21
21
|
};
|
|
22
22
|
/**
|
|
23
23
|
* @public
|
|
24
24
|
*/
|
|
25
|
-
export type
|
|
25
|
+
export type ChannelType = typeof ChannelType[keyof typeof ChannelType];
|
|
26
26
|
/**
|
|
27
27
|
* @public
|
|
28
28
|
*/
|
|
@@ -45,14 +45,14 @@ export interface User {
|
|
|
45
45
|
* @public
|
|
46
46
|
* @enum
|
|
47
47
|
*/
|
|
48
|
-
export declare const
|
|
49
|
-
readonly
|
|
50
|
-
readonly
|
|
48
|
+
export declare const ChannelAccess: {
|
|
49
|
+
readonly PRIVATE: "private";
|
|
50
|
+
readonly PUBLIC: "public";
|
|
51
51
|
};
|
|
52
52
|
/**
|
|
53
53
|
* @public
|
|
54
54
|
*/
|
|
55
|
-
export type
|
|
55
|
+
export type ChannelAccess = typeof ChannelAccess[keyof typeof ChannelAccess];
|
|
56
56
|
/**
|
|
57
57
|
* @public
|
|
58
58
|
* @enum
|
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.21",
|
|
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",
|
|
@@ -74,4 +74,4 @@
|
|
|
74
74
|
"react-native": {
|
|
75
75
|
"./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native"
|
|
76
76
|
}
|
|
77
|
-
}
|
|
77
|
+
}
|