@wildix/xbees-kite-client 1.0.13 → 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.
@@ -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.TargetNotFoundException = exports.EventNotFoundException = exports.WidgetTarget = exports.WidgetRouteRule = exports.WidgetRouteTimeFrameDay = 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;
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
  * // ],
@@ -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,6 +102,8 @@ 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
  * // ],
@@ -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
@@ -379,6 +379,17 @@ export declare namespace Element {
379
379
  }
380
380
  const visit: <T>(value: Element, visitor: Visitor<T>) => T;
381
381
  }
382
+ /**
383
+ * @public
384
+ */
385
+ export declare class TargetNotFoundException extends __BaseException {
386
+ readonly name: "TargetNotFoundException";
387
+ readonly $fault: "client";
388
+ /**
389
+ * @internal
390
+ */
391
+ constructor(opts: __ExceptionOptionType<TargetNotFoundException, __BaseException>);
392
+ }
382
393
  /**
383
394
  * @public
384
395
  */
@@ -756,17 +767,6 @@ export interface GetCalendarSlotsInput {
756
767
  export interface GetCalendarSlotsOutput {
757
768
  calendar: CalendarAvailability;
758
769
  }
759
- /**
760
- * @public
761
- */
762
- export declare class TargetNotFoundException extends __BaseException {
763
- readonly name: "TargetNotFoundException";
764
- readonly $fault: "client";
765
- /**
766
- * @internal
767
- */
768
- constructor(opts: __ExceptionOptionType<TargetNotFoundException, __BaseException>);
769
- }
770
770
  /**
771
771
  * @public
772
772
  */
@@ -1047,10 +1047,6 @@ export interface ScheduleCalendarEventInput {
1047
1047
  * @public
1048
1048
  */
1049
1049
  targetId: string;
1050
- /**
1051
- * The unique identifier of the Kite widget or email of the agent (example: 36cv69ao or john.doe@example.com).
1052
- * @public
1053
- */
1054
1050
  channelId?: string;
1055
1051
  start: string;
1056
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.13",
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",