@wildix/xbees-kite-client 1.0.12 → 1.0.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 +14 -14
- package/dist-es/models/models_0.js +12 -12
- package/dist-types/commands/CreateWidgetCommand.d.ts +8 -8
- package/dist-types/commands/GetConfigCommand.d.ts +5 -84
- package/dist-types/commands/GetWidgetCommand.d.ts +4 -4
- package/dist-types/commands/ListWidgetsCommand.d.ts +4 -4
- package/dist-types/commands/UpdateWidgetCommand.d.ts +8 -8
- package/dist-types/models/models_0.d.ts +7 -85
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ListAgentsFilter = exports.WidgetNotFoundException = exports.KiteVariant = exports.KiteFeatures = exports.
|
|
3
|
+
exports.ListAgentsFilter = exports.WidgetNotFoundException = exports.KiteVariant = exports.KiteFeatures = exports.EventNotFoundException = exports.WidgetTarget = exports.WidgetRouteRule = exports.WidgetRouteTimeFrameDay = exports.TargetNotFoundException = exports.Element = exports.ChannelWhatsAppStatus = exports.ChannelContextSource = exports.ChannelContextEventAttendeeStatus = exports.ChannelAccess = exports.ChannelNotFoundException = exports.ActionElement = exports.ButtonVariant = exports.ButtonHandler = exports.ChannelType = exports.RateLimitExceededException = exports.ForbiddenException = exports.ValidationException = void 0;
|
|
4
4
|
const KiteServiceException_1 = require("./KiteServiceException");
|
|
5
5
|
class ValidationException extends KiteServiceException_1.KiteServiceException {
|
|
6
6
|
constructor(opts) {
|
|
@@ -110,6 +110,19 @@ var Element;
|
|
|
110
110
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
111
111
|
};
|
|
112
112
|
})(Element = exports.Element || (exports.Element = {}));
|
|
113
|
+
class TargetNotFoundException extends KiteServiceException_1.KiteServiceException {
|
|
114
|
+
constructor(opts) {
|
|
115
|
+
super({
|
|
116
|
+
name: "TargetNotFoundException",
|
|
117
|
+
$fault: "client",
|
|
118
|
+
...opts
|
|
119
|
+
});
|
|
120
|
+
this.name = "TargetNotFoundException";
|
|
121
|
+
this.$fault = "client";
|
|
122
|
+
Object.setPrototypeOf(this, TargetNotFoundException.prototype);
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
exports.TargetNotFoundException = TargetNotFoundException;
|
|
113
126
|
exports.WidgetRouteTimeFrameDay = {
|
|
114
127
|
EVERY_DAY: "EVERY_DAY",
|
|
115
128
|
FRIDAY: "FRIDAY",
|
|
@@ -155,19 +168,6 @@ class EventNotFoundException extends KiteServiceException_1.KiteServiceException
|
|
|
155
168
|
}
|
|
156
169
|
}
|
|
157
170
|
exports.EventNotFoundException = EventNotFoundException;
|
|
158
|
-
class TargetNotFoundException extends KiteServiceException_1.KiteServiceException {
|
|
159
|
-
constructor(opts) {
|
|
160
|
-
super({
|
|
161
|
-
name: "TargetNotFoundException",
|
|
162
|
-
$fault: "client",
|
|
163
|
-
...opts
|
|
164
|
-
});
|
|
165
|
-
this.name = "TargetNotFoundException";
|
|
166
|
-
this.$fault = "client";
|
|
167
|
-
Object.setPrototypeOf(this, TargetNotFoundException.prototype);
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
exports.TargetNotFoundException = TargetNotFoundException;
|
|
171
171
|
exports.KiteFeatures = {
|
|
172
172
|
SCHEDULING: "scheduling",
|
|
173
173
|
};
|
|
@@ -103,6 +103,18 @@ export var Element;
|
|
|
103
103
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
104
104
|
};
|
|
105
105
|
})(Element || (Element = {}));
|
|
106
|
+
export class TargetNotFoundException extends __BaseException {
|
|
107
|
+
constructor(opts) {
|
|
108
|
+
super({
|
|
109
|
+
name: "TargetNotFoundException",
|
|
110
|
+
$fault: "client",
|
|
111
|
+
...opts
|
|
112
|
+
});
|
|
113
|
+
this.name = "TargetNotFoundException";
|
|
114
|
+
this.$fault = "client";
|
|
115
|
+
Object.setPrototypeOf(this, TargetNotFoundException.prototype);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
106
118
|
export const WidgetRouteTimeFrameDay = {
|
|
107
119
|
EVERY_DAY: "EVERY_DAY",
|
|
108
120
|
FRIDAY: "FRIDAY",
|
|
@@ -147,18 +159,6 @@ export class EventNotFoundException extends __BaseException {
|
|
|
147
159
|
Object.setPrototypeOf(this, EventNotFoundException.prototype);
|
|
148
160
|
}
|
|
149
161
|
}
|
|
150
|
-
export class TargetNotFoundException extends __BaseException {
|
|
151
|
-
constructor(opts) {
|
|
152
|
-
super({
|
|
153
|
-
name: "TargetNotFoundException",
|
|
154
|
-
$fault: "client",
|
|
155
|
-
...opts
|
|
156
|
-
});
|
|
157
|
-
this.name = "TargetNotFoundException";
|
|
158
|
-
this.$fault = "client";
|
|
159
|
-
Object.setPrototypeOf(this, TargetNotFoundException.prototype);
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
162
|
export const KiteFeatures = {
|
|
163
163
|
SCHEDULING: "scheduling",
|
|
164
164
|
};
|
|
@@ -69,8 +69,6 @@ declare const CreateWidgetCommand_base: {
|
|
|
69
69
|
* { // ActionElement Union: only one key present
|
|
70
70
|
* button: { // ButtonElement
|
|
71
71
|
* text: "STRING_VALUE", // required
|
|
72
|
-
* variant: "contained" || "outlined",
|
|
73
|
-
* disabled: true || false,
|
|
74
72
|
* handler: { // ButtonHandler Union: only one key present
|
|
75
73
|
* link: { // ButtonLinkHandler
|
|
76
74
|
* url: "STRING_VALUE", // required
|
|
@@ -82,6 +80,8 @@ declare const CreateWidgetCommand_base: {
|
|
|
82
80
|
* id: "STRING_VALUE", // required
|
|
83
81
|
* },
|
|
84
82
|
* },
|
|
83
|
+
* variant: "contained" || "outlined",
|
|
84
|
+
* disabled: true || false,
|
|
85
85
|
* },
|
|
86
86
|
* },
|
|
87
87
|
* ],
|
|
@@ -113,8 +113,6 @@ declare const CreateWidgetCommand_base: {
|
|
|
113
113
|
* {// Union: only one key present
|
|
114
114
|
* button: {
|
|
115
115
|
* text: "STRING_VALUE", // required
|
|
116
|
-
* variant: "contained" || "outlined",
|
|
117
|
-
* disabled: true || false,
|
|
118
116
|
* handler: {// Union: only one key present
|
|
119
117
|
* link: {
|
|
120
118
|
* url: "STRING_VALUE", // required
|
|
@@ -126,6 +124,8 @@ declare const CreateWidgetCommand_base: {
|
|
|
126
124
|
* id: "STRING_VALUE", // required
|
|
127
125
|
* },
|
|
128
126
|
* },
|
|
127
|
+
* variant: "contained" || "outlined",
|
|
128
|
+
* disabled: true || false,
|
|
129
129
|
* },
|
|
130
130
|
* },
|
|
131
131
|
* ],
|
|
@@ -187,8 +187,6 @@ declare const CreateWidgetCommand_base: {
|
|
|
187
187
|
* // { // ActionElement Union: only one key present
|
|
188
188
|
* // button: { // ButtonElement
|
|
189
189
|
* // text: "STRING_VALUE", // required
|
|
190
|
-
* // variant: "contained" || "outlined",
|
|
191
|
-
* // disabled: true || false,
|
|
192
190
|
* // handler: { // ButtonHandler Union: only one key present
|
|
193
191
|
* // link: { // ButtonLinkHandler
|
|
194
192
|
* // url: "STRING_VALUE", // required
|
|
@@ -200,6 +198,8 @@ declare const CreateWidgetCommand_base: {
|
|
|
200
198
|
* // id: "STRING_VALUE", // required
|
|
201
199
|
* // },
|
|
202
200
|
* // },
|
|
201
|
+
* // variant: "contained" || "outlined",
|
|
202
|
+
* // disabled: true || false,
|
|
203
203
|
* // },
|
|
204
204
|
* // },
|
|
205
205
|
* // ],
|
|
@@ -231,8 +231,6 @@ declare const CreateWidgetCommand_base: {
|
|
|
231
231
|
* // {// Union: only one key present
|
|
232
232
|
* // button: {
|
|
233
233
|
* // text: "STRING_VALUE", // required
|
|
234
|
-
* // variant: "contained" || "outlined",
|
|
235
|
-
* // disabled: true || false,
|
|
236
234
|
* // handler: {// Union: only one key present
|
|
237
235
|
* // link: {
|
|
238
236
|
* // url: "STRING_VALUE", // required
|
|
@@ -244,6 +242,8 @@ declare const CreateWidgetCommand_base: {
|
|
|
244
242
|
* // id: "STRING_VALUE", // required
|
|
245
243
|
* // },
|
|
246
244
|
* // },
|
|
245
|
+
* // variant: "contained" || "outlined",
|
|
246
|
+
* // disabled: true || false,
|
|
247
247
|
* // },
|
|
248
248
|
* // },
|
|
249
249
|
* // ],
|
|
@@ -82,8 +82,8 @@ declare const GetConfigCommand_base: {
|
|
|
82
82
|
* // topSubtitle: "STRING_VALUE",
|
|
83
83
|
* // },
|
|
84
84
|
* // },
|
|
85
|
-
* // welcomeMessages: [ //
|
|
86
|
-
* // { //
|
|
85
|
+
* // welcomeMessages: [ // WidgetWelcomeMessagesList
|
|
86
|
+
* // { // WidgetWelcomeMessage
|
|
87
87
|
* // text: "STRING_VALUE",
|
|
88
88
|
* // elements: [ // ElementsList
|
|
89
89
|
* // { // Element Union: only one key present
|
|
@@ -91,8 +91,6 @@ declare const GetConfigCommand_base: {
|
|
|
91
91
|
* // { // ActionElement Union: only one key present
|
|
92
92
|
* // button: { // ButtonElement
|
|
93
93
|
* // text: "STRING_VALUE", // required
|
|
94
|
-
* // variant: "contained" || "outlined",
|
|
95
|
-
* // disabled: true || false,
|
|
96
94
|
* // handler: { // ButtonHandler Union: only one key present
|
|
97
95
|
* // link: { // ButtonLinkHandler
|
|
98
96
|
* // url: "STRING_VALUE", // required
|
|
@@ -104,91 +102,14 @@ declare const GetConfigCommand_base: {
|
|
|
104
102
|
* // id: "STRING_VALUE", // required
|
|
105
103
|
* // },
|
|
106
104
|
* // },
|
|
105
|
+
* // variant: "contained" || "outlined",
|
|
106
|
+
* // disabled: true || false,
|
|
107
107
|
* // },
|
|
108
108
|
* // },
|
|
109
109
|
* // ],
|
|
110
110
|
* // },
|
|
111
111
|
* // ],
|
|
112
|
-
* //
|
|
113
|
-
* // { // MessageAttachment
|
|
114
|
-
* // id: "STRING_VALUE", // required
|
|
115
|
-
* // fsId: "STRING_VALUE", // required
|
|
116
|
-
* // mime: "STRING_VALUE",
|
|
117
|
-
* // name: "STRING_VALUE", // required
|
|
118
|
-
* // size: Number("int"), // required
|
|
119
|
-
* // width: Number("int"),
|
|
120
|
-
* // height: Number("int"),
|
|
121
|
-
* // thumbnail: "STRING_VALUE",
|
|
122
|
-
* // },
|
|
123
|
-
* // ],
|
|
124
|
-
* // quote: { // MessageQuote
|
|
125
|
-
* // messageId: "STRING_VALUE", // required
|
|
126
|
-
* // channelId: "STRING_VALUE", // required
|
|
127
|
-
* // user: {
|
|
128
|
-
* // id: "STRING_VALUE", // required
|
|
129
|
-
* // name: "STRING_VALUE",
|
|
130
|
-
* // email: "STRING_VALUE",
|
|
131
|
-
* // phone: "STRING_VALUE",
|
|
132
|
-
* // picture: "STRING_VALUE",
|
|
133
|
-
* // locale: "STRING_VALUE",
|
|
134
|
-
* // timeZone: "STRING_VALUE",
|
|
135
|
-
* // company: "STRING_VALUE",
|
|
136
|
-
* // bot: true || false,
|
|
137
|
-
* // pbxDomain: "STRING_VALUE",
|
|
138
|
-
* // pbxPort: "STRING_VALUE",
|
|
139
|
-
* // pbxExtension: "STRING_VALUE",
|
|
140
|
-
* // pbxSerial: "STRING_VALUE",
|
|
141
|
-
* // pbxUserId: "STRING_VALUE",
|
|
142
|
-
* // createdAt: "STRING_VALUE",
|
|
143
|
-
* // updatedAt: "STRING_VALUE",
|
|
144
|
-
* // },
|
|
145
|
-
* // text: "STRING_VALUE",
|
|
146
|
-
* // attachments: [
|
|
147
|
-
* // {
|
|
148
|
-
* // id: "STRING_VALUE", // required
|
|
149
|
-
* // fsId: "STRING_VALUE", // required
|
|
150
|
-
* // mime: "STRING_VALUE",
|
|
151
|
-
* // name: "STRING_VALUE", // required
|
|
152
|
-
* // size: Number("int"), // required
|
|
153
|
-
* // width: Number("int"),
|
|
154
|
-
* // height: Number("int"),
|
|
155
|
-
* // thumbnail: "STRING_VALUE",
|
|
156
|
-
* // },
|
|
157
|
-
* // ],
|
|
158
|
-
* // forward: { // MessageForward
|
|
159
|
-
* // forwardCompany: "STRING_VALUE",
|
|
160
|
-
* // forwardDate: "STRING_VALUE", // required
|
|
161
|
-
* // forwardEmail: "STRING_VALUE",
|
|
162
|
-
* // forwardName: "STRING_VALUE",
|
|
163
|
-
* // messageId: "STRING_VALUE", // required
|
|
164
|
-
* // channelId: "STRING_VALUE", // required
|
|
165
|
-
* // },
|
|
166
|
-
* // mentions: [
|
|
167
|
-
* // "<User>",
|
|
168
|
-
* // ],
|
|
169
|
-
* // giphy: { // MessageGiphy
|
|
170
|
-
* // id: "STRING_VALUE", // required
|
|
171
|
-
* // size: "STRING_VALUE", // required
|
|
172
|
-
* // url: "STRING_VALUE", // required
|
|
173
|
-
* // height: "STRING_VALUE", // required
|
|
174
|
-
* // width: "STRING_VALUE", // required
|
|
175
|
-
* // },
|
|
176
|
-
* // createdAt: "STRING_VALUE", // required
|
|
177
|
-
* // updatedAt: "STRING_VALUE",
|
|
178
|
-
* // },
|
|
179
|
-
* // forward: {
|
|
180
|
-
* // forwardCompany: "STRING_VALUE",
|
|
181
|
-
* // forwardDate: "STRING_VALUE", // required
|
|
182
|
-
* // forwardEmail: "STRING_VALUE",
|
|
183
|
-
* // forwardName: "STRING_VALUE",
|
|
184
|
-
* // messageId: "STRING_VALUE", // required
|
|
185
|
-
* // channelId: "STRING_VALUE", // required
|
|
186
|
-
* // },
|
|
187
|
-
* // messageId: "STRING_VALUE", // required
|
|
188
|
-
* // mentions: [ // UsersIdList
|
|
189
|
-
* // "STRING_VALUE",
|
|
190
|
-
* // ],
|
|
191
|
-
* // user: "<User>", // required
|
|
112
|
+
* // delay: Number("int"),
|
|
192
113
|
* // },
|
|
193
114
|
* // ],
|
|
194
115
|
* // features: [ // KiteFeaturesList
|
|
@@ -75,8 +75,6 @@ declare const GetWidgetCommand_base: {
|
|
|
75
75
|
* // { // ActionElement Union: only one key present
|
|
76
76
|
* // button: { // ButtonElement
|
|
77
77
|
* // text: "STRING_VALUE", // required
|
|
78
|
-
* // variant: "contained" || "outlined",
|
|
79
|
-
* // disabled: true || false,
|
|
80
78
|
* // handler: { // ButtonHandler Union: only one key present
|
|
81
79
|
* // link: { // ButtonLinkHandler
|
|
82
80
|
* // url: "STRING_VALUE", // required
|
|
@@ -88,6 +86,8 @@ declare const GetWidgetCommand_base: {
|
|
|
88
86
|
* // id: "STRING_VALUE", // required
|
|
89
87
|
* // },
|
|
90
88
|
* // },
|
|
89
|
+
* // variant: "contained" || "outlined",
|
|
90
|
+
* // disabled: true || false,
|
|
91
91
|
* // },
|
|
92
92
|
* // },
|
|
93
93
|
* // ],
|
|
@@ -119,8 +119,6 @@ declare const GetWidgetCommand_base: {
|
|
|
119
119
|
* // {// Union: only one key present
|
|
120
120
|
* // button: {
|
|
121
121
|
* // text: "STRING_VALUE", // required
|
|
122
|
-
* // variant: "contained" || "outlined",
|
|
123
|
-
* // disabled: true || false,
|
|
124
122
|
* // handler: {// Union: only one key present
|
|
125
123
|
* // link: {
|
|
126
124
|
* // url: "STRING_VALUE", // required
|
|
@@ -132,6 +130,8 @@ declare const GetWidgetCommand_base: {
|
|
|
132
130
|
* // id: "STRING_VALUE", // required
|
|
133
131
|
* // },
|
|
134
132
|
* // },
|
|
133
|
+
* // variant: "contained" || "outlined",
|
|
134
|
+
* // disabled: true || false,
|
|
135
135
|
* // },
|
|
136
136
|
* // },
|
|
137
137
|
* // ],
|
|
@@ -77,8 +77,6 @@ declare const ListWidgetsCommand_base: {
|
|
|
77
77
|
* // { // ActionElement Union: only one key present
|
|
78
78
|
* // button: { // ButtonElement
|
|
79
79
|
* // text: "STRING_VALUE", // required
|
|
80
|
-
* // variant: "contained" || "outlined",
|
|
81
|
-
* // disabled: true || false,
|
|
82
80
|
* // handler: { // ButtonHandler Union: only one key present
|
|
83
81
|
* // link: { // ButtonLinkHandler
|
|
84
82
|
* // url: "STRING_VALUE", // required
|
|
@@ -90,6 +88,8 @@ declare const ListWidgetsCommand_base: {
|
|
|
90
88
|
* // id: "STRING_VALUE", // required
|
|
91
89
|
* // },
|
|
92
90
|
* // },
|
|
91
|
+
* // variant: "contained" || "outlined",
|
|
92
|
+
* // disabled: true || false,
|
|
93
93
|
* // },
|
|
94
94
|
* // },
|
|
95
95
|
* // ],
|
|
@@ -121,8 +121,6 @@ declare const ListWidgetsCommand_base: {
|
|
|
121
121
|
* // {// Union: only one key present
|
|
122
122
|
* // button: {
|
|
123
123
|
* // text: "STRING_VALUE", // required
|
|
124
|
-
* // variant: "contained" || "outlined",
|
|
125
|
-
* // disabled: true || false,
|
|
126
124
|
* // handler: {// Union: only one key present
|
|
127
125
|
* // link: {
|
|
128
126
|
* // url: "STRING_VALUE", // required
|
|
@@ -134,6 +132,8 @@ declare const ListWidgetsCommand_base: {
|
|
|
134
132
|
* // id: "STRING_VALUE", // required
|
|
135
133
|
* // },
|
|
136
134
|
* // },
|
|
135
|
+
* // variant: "contained" || "outlined",
|
|
136
|
+
* // disabled: true || false,
|
|
137
137
|
* // },
|
|
138
138
|
* // },
|
|
139
139
|
* // ],
|
|
@@ -69,8 +69,6 @@ declare const UpdateWidgetCommand_base: {
|
|
|
69
69
|
* { // ActionElement Union: only one key present
|
|
70
70
|
* button: { // ButtonElement
|
|
71
71
|
* text: "STRING_VALUE", // required
|
|
72
|
-
* variant: "contained" || "outlined",
|
|
73
|
-
* disabled: true || false,
|
|
74
72
|
* handler: { // ButtonHandler Union: only one key present
|
|
75
73
|
* link: { // ButtonLinkHandler
|
|
76
74
|
* url: "STRING_VALUE", // required
|
|
@@ -82,6 +80,8 @@ declare const UpdateWidgetCommand_base: {
|
|
|
82
80
|
* id: "STRING_VALUE", // required
|
|
83
81
|
* },
|
|
84
82
|
* },
|
|
83
|
+
* variant: "contained" || "outlined",
|
|
84
|
+
* disabled: true || false,
|
|
85
85
|
* },
|
|
86
86
|
* },
|
|
87
87
|
* ],
|
|
@@ -113,8 +113,6 @@ declare const UpdateWidgetCommand_base: {
|
|
|
113
113
|
* {// Union: only one key present
|
|
114
114
|
* button: {
|
|
115
115
|
* text: "STRING_VALUE", // required
|
|
116
|
-
* variant: "contained" || "outlined",
|
|
117
|
-
* disabled: true || false,
|
|
118
116
|
* handler: {// Union: only one key present
|
|
119
117
|
* link: {
|
|
120
118
|
* url: "STRING_VALUE", // required
|
|
@@ -126,6 +124,8 @@ declare const UpdateWidgetCommand_base: {
|
|
|
126
124
|
* id: "STRING_VALUE", // required
|
|
127
125
|
* },
|
|
128
126
|
* },
|
|
127
|
+
* variant: "contained" || "outlined",
|
|
128
|
+
* disabled: true || false,
|
|
129
129
|
* },
|
|
130
130
|
* },
|
|
131
131
|
* ],
|
|
@@ -188,8 +188,6 @@ declare const UpdateWidgetCommand_base: {
|
|
|
188
188
|
* // { // ActionElement Union: only one key present
|
|
189
189
|
* // button: { // ButtonElement
|
|
190
190
|
* // text: "STRING_VALUE", // required
|
|
191
|
-
* // variant: "contained" || "outlined",
|
|
192
|
-
* // disabled: true || false,
|
|
193
191
|
* // handler: { // ButtonHandler Union: only one key present
|
|
194
192
|
* // link: { // ButtonLinkHandler
|
|
195
193
|
* // url: "STRING_VALUE", // required
|
|
@@ -201,6 +199,8 @@ declare const UpdateWidgetCommand_base: {
|
|
|
201
199
|
* // id: "STRING_VALUE", // required
|
|
202
200
|
* // },
|
|
203
201
|
* // },
|
|
202
|
+
* // variant: "contained" || "outlined",
|
|
203
|
+
* // disabled: true || false,
|
|
204
204
|
* // },
|
|
205
205
|
* // },
|
|
206
206
|
* // ],
|
|
@@ -232,8 +232,6 @@ declare const UpdateWidgetCommand_base: {
|
|
|
232
232
|
* // {// Union: only one key present
|
|
233
233
|
* // button: {
|
|
234
234
|
* // text: "STRING_VALUE", // required
|
|
235
|
-
* // variant: "contained" || "outlined",
|
|
236
|
-
* // disabled: true || false,
|
|
237
235
|
* // handler: {// Union: only one key present
|
|
238
236
|
* // link: {
|
|
239
237
|
* // url: "STRING_VALUE", // required
|
|
@@ -245,6 +243,8 @@ declare const UpdateWidgetCommand_base: {
|
|
|
245
243
|
* // id: "STRING_VALUE", // required
|
|
246
244
|
* // },
|
|
247
245
|
* // },
|
|
246
|
+
* // variant: "contained" || "outlined",
|
|
247
|
+
* // disabled: true || false,
|
|
248
248
|
* // },
|
|
249
249
|
* // },
|
|
250
250
|
* // ],
|
|
@@ -196,9 +196,9 @@ export type ButtonVariant = typeof ButtonVariant[keyof typeof ButtonVariant];
|
|
|
196
196
|
*/
|
|
197
197
|
export interface ButtonElement {
|
|
198
198
|
text: string;
|
|
199
|
+
handler: ButtonHandler;
|
|
199
200
|
variant?: ButtonVariant;
|
|
200
201
|
disabled?: boolean;
|
|
201
|
-
handler?: ButtonHandler;
|
|
202
202
|
}
|
|
203
203
|
/**
|
|
204
204
|
* @public
|
|
@@ -354,23 +354,6 @@ export interface Channel {
|
|
|
354
354
|
createdBy: string;
|
|
355
355
|
updatedAt?: string;
|
|
356
356
|
}
|
|
357
|
-
/**
|
|
358
|
-
* @public
|
|
359
|
-
*/
|
|
360
|
-
export interface MessageAttachment {
|
|
361
|
-
id: string;
|
|
362
|
-
/**
|
|
363
|
-
* This *is* documentation about the field. Describe here what fsId and how to get it.
|
|
364
|
-
* @public
|
|
365
|
-
*/
|
|
366
|
-
fsId: string;
|
|
367
|
-
mime?: string;
|
|
368
|
-
name: string;
|
|
369
|
-
size: number;
|
|
370
|
-
width?: number;
|
|
371
|
-
height?: number;
|
|
372
|
-
thumbnail?: string;
|
|
373
|
-
}
|
|
374
357
|
/**
|
|
375
358
|
* @public
|
|
376
359
|
*/
|
|
@@ -399,59 +382,13 @@ export declare namespace Element {
|
|
|
399
382
|
/**
|
|
400
383
|
* @public
|
|
401
384
|
*/
|
|
402
|
-
export
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
forwardEmail?: string;
|
|
406
|
-
forwardName?: string;
|
|
407
|
-
messageId: string;
|
|
408
|
-
channelId: string;
|
|
409
|
-
}
|
|
410
|
-
/**
|
|
411
|
-
* @public
|
|
412
|
-
*/
|
|
413
|
-
export interface MessageGiphy {
|
|
414
|
-
id: string;
|
|
415
|
-
size: string;
|
|
416
|
-
url: string;
|
|
417
|
-
height: string;
|
|
418
|
-
width: string;
|
|
419
|
-
}
|
|
420
|
-
/**
|
|
421
|
-
* @public
|
|
422
|
-
*/
|
|
423
|
-
export interface MessageQuote {
|
|
424
|
-
messageId: string;
|
|
425
|
-
channelId: string;
|
|
426
|
-
user: User;
|
|
427
|
-
text?: string;
|
|
428
|
-
attachments?: (MessageAttachment)[];
|
|
429
|
-
forward?: MessageForward;
|
|
430
|
-
mentions?: (User)[];
|
|
431
|
-
giphy?: MessageGiphy;
|
|
432
|
-
createdAt: string;
|
|
433
|
-
updatedAt?: string;
|
|
434
|
-
}
|
|
435
|
-
/**
|
|
436
|
-
* @public
|
|
437
|
-
*/
|
|
438
|
-
export interface WelcomeMessage {
|
|
439
|
-
text?: string;
|
|
440
|
-
elements?: (Element)[];
|
|
441
|
-
attachments?: (MessageAttachment)[];
|
|
442
|
-
quote?: MessageQuote;
|
|
443
|
-
forward?: MessageForward;
|
|
444
|
-
/**
|
|
445
|
-
* The unique identifier of the message. If not provided, an ID will be auto-generated.
|
|
446
|
-
* @public
|
|
447
|
-
*/
|
|
448
|
-
messageId: string;
|
|
385
|
+
export declare class TargetNotFoundException extends __BaseException {
|
|
386
|
+
readonly name: "TargetNotFoundException";
|
|
387
|
+
readonly $fault: "client";
|
|
449
388
|
/**
|
|
450
|
-
*
|
|
451
|
-
* @public
|
|
389
|
+
* @internal
|
|
452
390
|
*/
|
|
453
|
-
|
|
454
|
-
user: User;
|
|
391
|
+
constructor(opts: __ExceptionOptionType<TargetNotFoundException, __BaseException>);
|
|
455
392
|
}
|
|
456
393
|
/**
|
|
457
394
|
* @public
|
|
@@ -830,17 +767,6 @@ export interface GetCalendarSlotsInput {
|
|
|
830
767
|
export interface GetCalendarSlotsOutput {
|
|
831
768
|
calendar: CalendarAvailability;
|
|
832
769
|
}
|
|
833
|
-
/**
|
|
834
|
-
* @public
|
|
835
|
-
*/
|
|
836
|
-
export declare class TargetNotFoundException extends __BaseException {
|
|
837
|
-
readonly name: "TargetNotFoundException";
|
|
838
|
-
readonly $fault: "client";
|
|
839
|
-
/**
|
|
840
|
-
* @internal
|
|
841
|
-
*/
|
|
842
|
-
constructor(opts: __ExceptionOptionType<TargetNotFoundException, __BaseException>);
|
|
843
|
-
}
|
|
844
770
|
/**
|
|
845
771
|
* @public
|
|
846
772
|
*/
|
|
@@ -912,7 +838,7 @@ export interface KiteConfig {
|
|
|
912
838
|
* A list of welcome messages that should be visible to the user.
|
|
913
839
|
* @public
|
|
914
840
|
*/
|
|
915
|
-
welcomeMessages?: (
|
|
841
|
+
welcomeMessages?: (WidgetWelcomeMessage)[];
|
|
916
842
|
/**
|
|
917
843
|
* A list of features that are supported.
|
|
918
844
|
* @public
|
|
@@ -1121,10 +1047,6 @@ export interface ScheduleCalendarEventInput {
|
|
|
1121
1047
|
* @public
|
|
1122
1048
|
*/
|
|
1123
1049
|
targetId: string;
|
|
1124
|
-
/**
|
|
1125
|
-
* The unique identifier of the Kite widget or email of the agent (example: 36cv69ao or john.doe@example.com).
|
|
1126
|
-
* @public
|
|
1127
|
-
*/
|
|
1128
1050
|
channelId?: string;
|
|
1129
1051
|
start: string;
|
|
1130
1052
|
duration: string;
|
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.0.
|
|
4
|
+
"version": "1.0.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",
|