@wildix/xbees-kite-client 1.4.0 → 1.5.0
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ListAgentsFilter = exports.WidgetNotFoundException = exports.RouteTarget = exports.RouteRule = exports.KiteVariant = exports.KiteFeatures = exports.EventNotFoundException = exports.WidgetTarget = exports.WidgetRouteRule = exports.RouteTimeFrameDay = exports.RouteActionTask = exports.RouteActionCondition = exports.
|
|
3
|
+
exports.ListAgentsFilter = exports.WidgetNotFoundException = exports.RouteTarget = exports.RouteRule = exports.KiteVariant = exports.KiteFeatures = exports.EventNotFoundException = exports.WidgetTarget = exports.WidgetRouteRule = exports.RouteTimeFrameDay = exports.RouteActionTask = exports.RouteActionCondition = exports.ChannelNotFoundException = exports.Element = exports.ActionElement = exports.ButtonVariant = exports.ButtonHandler = exports.ChannelWhatsAppStatus = exports.ChannelContextSource = exports.ChannelContextEventAttendeeStatus = exports.ChannelType = exports.ChannelAccess = exports.TargetNotFoundException = exports.TemplateStatus = exports.ParameterFormat = exports.ComponentType = exports.ComponentFormat = exports.TemplateCategory = exports.ButtonType = exports.ValidationException = exports.RateLimitExceededException = exports.NotFoundException = exports.ForbiddenException = void 0;
|
|
4
4
|
const KiteServiceException_1 = require("./KiteServiceException");
|
|
5
5
|
class ForbiddenException extends KiteServiceException_1.KiteServiceException {
|
|
6
6
|
name = "ForbiddenException";
|
|
@@ -96,6 +96,19 @@ exports.TemplateStatus = {
|
|
|
96
96
|
PAUSED: "PAUSED",
|
|
97
97
|
REJECTED: "REJECTED",
|
|
98
98
|
};
|
|
99
|
+
class TargetNotFoundException extends KiteServiceException_1.KiteServiceException {
|
|
100
|
+
name = "TargetNotFoundException";
|
|
101
|
+
$fault = "client";
|
|
102
|
+
constructor(opts) {
|
|
103
|
+
super({
|
|
104
|
+
name: "TargetNotFoundException",
|
|
105
|
+
$fault: "client",
|
|
106
|
+
...opts
|
|
107
|
+
});
|
|
108
|
+
Object.setPrototypeOf(this, TargetNotFoundException.prototype);
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
exports.TargetNotFoundException = TargetNotFoundException;
|
|
99
112
|
exports.ChannelAccess = {
|
|
100
113
|
PRIVATE: "private",
|
|
101
114
|
PUBLIC: "public",
|
|
@@ -163,19 +176,6 @@ class ChannelNotFoundException extends KiteServiceException_1.KiteServiceExcepti
|
|
|
163
176
|
}
|
|
164
177
|
}
|
|
165
178
|
exports.ChannelNotFoundException = ChannelNotFoundException;
|
|
166
|
-
class TargetNotFoundException extends KiteServiceException_1.KiteServiceException {
|
|
167
|
-
name = "TargetNotFoundException";
|
|
168
|
-
$fault = "client";
|
|
169
|
-
constructor(opts) {
|
|
170
|
-
super({
|
|
171
|
-
name: "TargetNotFoundException",
|
|
172
|
-
$fault: "client",
|
|
173
|
-
...opts
|
|
174
|
-
});
|
|
175
|
-
Object.setPrototypeOf(this, TargetNotFoundException.prototype);
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
exports.TargetNotFoundException = TargetNotFoundException;
|
|
179
179
|
var RouteActionCondition;
|
|
180
180
|
(function (RouteActionCondition) {
|
|
181
181
|
RouteActionCondition.visit = (value, visitor) => {
|
|
@@ -89,6 +89,18 @@ export const TemplateStatus = {
|
|
|
89
89
|
PAUSED: "PAUSED",
|
|
90
90
|
REJECTED: "REJECTED",
|
|
91
91
|
};
|
|
92
|
+
export class TargetNotFoundException extends __BaseException {
|
|
93
|
+
name = "TargetNotFoundException";
|
|
94
|
+
$fault = "client";
|
|
95
|
+
constructor(opts) {
|
|
96
|
+
super({
|
|
97
|
+
name: "TargetNotFoundException",
|
|
98
|
+
$fault: "client",
|
|
99
|
+
...opts
|
|
100
|
+
});
|
|
101
|
+
Object.setPrototypeOf(this, TargetNotFoundException.prototype);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
92
104
|
export const ChannelAccess = {
|
|
93
105
|
PRIVATE: "private",
|
|
94
106
|
PUBLIC: "public",
|
|
@@ -155,18 +167,6 @@ export class ChannelNotFoundException extends __BaseException {
|
|
|
155
167
|
Object.setPrototypeOf(this, ChannelNotFoundException.prototype);
|
|
156
168
|
}
|
|
157
169
|
}
|
|
158
|
-
export class TargetNotFoundException extends __BaseException {
|
|
159
|
-
name = "TargetNotFoundException";
|
|
160
|
-
$fault = "client";
|
|
161
|
-
constructor(opts) {
|
|
162
|
-
super({
|
|
163
|
-
name: "TargetNotFoundException",
|
|
164
|
-
$fault: "client",
|
|
165
|
-
...opts
|
|
166
|
-
});
|
|
167
|
-
Object.setPrototypeOf(this, TargetNotFoundException.prototype);
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
170
|
export var RouteActionCondition;
|
|
171
171
|
(function (RouteActionCondition) {
|
|
172
172
|
RouteActionCondition.visit = (value, visitor) => {
|
|
@@ -50,8 +50,8 @@ declare const GetConfigCommand_base: {
|
|
|
50
50
|
* // uri: "STRING_VALUE", // required
|
|
51
51
|
* // title: "STRING_VALUE", // required
|
|
52
52
|
* // },
|
|
53
|
-
* // agents: [ //
|
|
54
|
-
* // { //
|
|
53
|
+
* // agents: [ // KiteConfigAgentsList // required
|
|
54
|
+
* // { // KiteConfigAgent
|
|
55
55
|
* // id: "STRING_VALUE", // required
|
|
56
56
|
* // name: "STRING_VALUE",
|
|
57
57
|
* // email: "STRING_VALUE",
|
|
@@ -61,10 +61,7 @@ declare const GetConfigCommand_base: {
|
|
|
61
61
|
* // timeZone: "STRING_VALUE",
|
|
62
62
|
* // company: "STRING_VALUE",
|
|
63
63
|
* // bot: true || false,
|
|
64
|
-
* // pbxDomain: "STRING_VALUE",
|
|
65
|
-
* // pbxPort: "STRING_VALUE",
|
|
66
64
|
* // pbxExtension: "STRING_VALUE",
|
|
67
|
-
* // pbxSerial: "STRING_VALUE",
|
|
68
65
|
* // pbxUserId: "STRING_VALUE",
|
|
69
66
|
* // pbxGroupId: "STRING_VALUE",
|
|
70
67
|
* // createdAt: "STRING_VALUE",
|
|
@@ -207,6 +207,17 @@ export interface TemplateWithParameters {
|
|
|
207
207
|
name: string;
|
|
208
208
|
parameters?: (TemplateParameter)[] | undefined;
|
|
209
209
|
}
|
|
210
|
+
/**
|
|
211
|
+
* @public
|
|
212
|
+
*/
|
|
213
|
+
export declare class TargetNotFoundException extends __BaseException {
|
|
214
|
+
readonly name: "TargetNotFoundException";
|
|
215
|
+
readonly $fault: "client";
|
|
216
|
+
/**
|
|
217
|
+
* @internal
|
|
218
|
+
*/
|
|
219
|
+
constructor(opts: __ExceptionOptionType<TargetNotFoundException, __BaseException>);
|
|
220
|
+
}
|
|
210
221
|
/**
|
|
211
222
|
* @public
|
|
212
223
|
* @enum
|
|
@@ -587,17 +598,6 @@ export interface Service {
|
|
|
587
598
|
extensions: (string)[];
|
|
588
599
|
pbx: ServicePbx;
|
|
589
600
|
}
|
|
590
|
-
/**
|
|
591
|
-
* @public
|
|
592
|
-
*/
|
|
593
|
-
export declare class TargetNotFoundException extends __BaseException {
|
|
594
|
-
readonly name: "TargetNotFoundException";
|
|
595
|
-
readonly $fault: "client";
|
|
596
|
-
/**
|
|
597
|
-
* @internal
|
|
598
|
-
*/
|
|
599
|
-
constructor(opts: __ExceptionOptionType<TargetNotFoundException, __BaseException>);
|
|
600
|
-
}
|
|
601
601
|
/**
|
|
602
602
|
* @public
|
|
603
603
|
*/
|
|
@@ -1374,6 +1374,25 @@ export interface GetConfigInput {
|
|
|
1374
1374
|
*/
|
|
1375
1375
|
targetRouteId?: string | undefined;
|
|
1376
1376
|
}
|
|
1377
|
+
/**
|
|
1378
|
+
* @public
|
|
1379
|
+
*/
|
|
1380
|
+
export interface KiteConfigAgent {
|
|
1381
|
+
id: string;
|
|
1382
|
+
name?: string | undefined;
|
|
1383
|
+
email?: string | undefined;
|
|
1384
|
+
phone?: string | undefined;
|
|
1385
|
+
picture?: string | undefined;
|
|
1386
|
+
locale?: string | undefined;
|
|
1387
|
+
timeZone?: string | undefined;
|
|
1388
|
+
company?: string | undefined;
|
|
1389
|
+
bot?: boolean | undefined;
|
|
1390
|
+
pbxExtension?: string | undefined;
|
|
1391
|
+
pbxUserId?: string | undefined;
|
|
1392
|
+
pbxGroupId?: string | undefined;
|
|
1393
|
+
createdAt?: string | undefined;
|
|
1394
|
+
updatedAt?: string | undefined;
|
|
1395
|
+
}
|
|
1377
1396
|
/**
|
|
1378
1397
|
* @public
|
|
1379
1398
|
* @enum
|
|
@@ -1425,7 +1444,7 @@ export interface KiteConfig {
|
|
|
1425
1444
|
targetRouteId?: string | undefined;
|
|
1426
1445
|
targetVariant: KiteVariant;
|
|
1427
1446
|
targetService?: KiteTargetService | undefined;
|
|
1428
|
-
agents: (
|
|
1447
|
+
agents: (KiteConfigAgent)[];
|
|
1429
1448
|
/**
|
|
1430
1449
|
* The appearance settings like color scheme or custom texts.
|
|
1431
1450
|
* @public
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wildix/xbees-kite-client",
|
|
3
3
|
"description": "@wildix/xbees-kite-client client",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.5.0",
|
|
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",
|