@wildix/xbees-kite-client 1.3.0 → 1.3.2
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/protocols/Aws_restJson1.js +8 -0
- package/dist-es/protocols/Aws_restJson1.js +9 -1
- package/dist-types/commands/CreateOrUpdateWidgetPreviewCommand.d.ts +4 -0
- package/dist-types/commands/CreateWidgetCommand.d.ts +4 -0
- package/dist-types/commands/GetConfigCommand.d.ts +2 -0
- package/dist-types/commands/GetWidgetCommand.d.ts +2 -0
- package/dist-types/commands/ListWidgetsCommand.d.ts +2 -0
- package/dist-types/commands/UpdateWidgetCommand.d.ts +4 -0
- package/dist-types/models/models_0.d.ts +50 -0
- package/package.json +1 -1
|
@@ -37,7 +37,9 @@ const se_CreateOrUpdateWidgetPreviewCommand = async (input, context) => {
|
|
|
37
37
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
38
38
|
'actions': _ => (0, smithy_client_1._json)(_),
|
|
39
39
|
'anonymousSessionsEnabled': [],
|
|
40
|
+
'anonymousSessionsOnly': [],
|
|
40
41
|
'appearance': _ => (0, smithy_client_1._json)(_),
|
|
42
|
+
'minimumBookingGapMinutes': [],
|
|
41
43
|
'name': [],
|
|
42
44
|
'routes': _ => se_WidgetRoutesList(_, context),
|
|
43
45
|
'target': _ => (0, smithy_client_1._json)(_),
|
|
@@ -64,7 +66,9 @@ const se_CreateWidgetCommand = async (input, context) => {
|
|
|
64
66
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
65
67
|
'actions': _ => (0, smithy_client_1._json)(_),
|
|
66
68
|
'anonymousSessionsEnabled': [],
|
|
69
|
+
'anonymousSessionsOnly': [],
|
|
67
70
|
'appearance': _ => (0, smithy_client_1._json)(_),
|
|
71
|
+
'minimumBookingGapMinutes': [],
|
|
68
72
|
'name': [],
|
|
69
73
|
'routes': _ => se_WidgetRoutesList(_, context),
|
|
70
74
|
'target': _ => (0, smithy_client_1._json)(_),
|
|
@@ -404,7 +408,9 @@ const se_UpdateWidgetCommand = async (input, context) => {
|
|
|
404
408
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
405
409
|
'actions': _ => (0, smithy_client_1._json)(_),
|
|
406
410
|
'anonymousSessionsEnabled': [],
|
|
411
|
+
'anonymousSessionsOnly': [],
|
|
407
412
|
'appearance': _ => (0, smithy_client_1._json)(_),
|
|
413
|
+
'minimumBookingGapMinutes': [],
|
|
408
414
|
'name': [],
|
|
409
415
|
'routes': _ => se_WidgetRoutesList(_, context),
|
|
410
416
|
'target': _ => (0, smithy_client_1._json)(_),
|
|
@@ -905,10 +911,12 @@ const de_Widget = (output, context) => {
|
|
|
905
911
|
return (0, smithy_client_1.take)(output, {
|
|
906
912
|
'actions': smithy_client_1._json,
|
|
907
913
|
'anonymousSessionsEnabled': smithy_client_1.expectBoolean,
|
|
914
|
+
'anonymousSessionsOnly': smithy_client_1.expectBoolean,
|
|
908
915
|
'appearance': smithy_client_1._json,
|
|
909
916
|
'company': smithy_client_1.expectString,
|
|
910
917
|
'createdAt': smithy_client_1.expectString,
|
|
911
918
|
'id': smithy_client_1.expectString,
|
|
919
|
+
'minimumBookingGapMinutes': smithy_client_1.expectInt32,
|
|
912
920
|
'name': smithy_client_1.expectString,
|
|
913
921
|
'routes': (_) => de_WidgetRoutesList(_, context),
|
|
914
922
|
'target': (_) => (0, smithy_client_1._json)((0, core_1.awsExpectUnion)(_)),
|
|
@@ -2,7 +2,7 @@ import { KiteServiceException as __BaseException } from "../models/KiteServiceEx
|
|
|
2
2
|
import { ChannelNotFoundException, EventNotFoundException, ForbiddenException, NotFoundException, RateLimitExceededException, TargetNotFoundException, ValidationException, WidgetNotFoundException, } from "../models/models_0";
|
|
3
3
|
import { awsExpectUnion as __expectUnion, loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody, } from "@aws-sdk/core";
|
|
4
4
|
import { requestBuilder as rb } from "@smithy/core";
|
|
5
|
-
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, strictParseInt32 as __strictParseInt32, _json, collectBody, map, take, withBaseException, } from "@smithy/smithy-client";
|
|
5
|
+
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, strictParseInt32 as __strictParseInt32, _json, collectBody, map, take, withBaseException, } from "@smithy/smithy-client";
|
|
6
6
|
export const se_CancelCalendarEventCommand = async (input, context) => {
|
|
7
7
|
const b = rb(input, context);
|
|
8
8
|
const headers = {};
|
|
@@ -33,7 +33,9 @@ export const se_CreateOrUpdateWidgetPreviewCommand = async (input, context) => {
|
|
|
33
33
|
body = JSON.stringify(take(input, {
|
|
34
34
|
'actions': _ => _json(_),
|
|
35
35
|
'anonymousSessionsEnabled': [],
|
|
36
|
+
'anonymousSessionsOnly': [],
|
|
36
37
|
'appearance': _ => _json(_),
|
|
38
|
+
'minimumBookingGapMinutes': [],
|
|
37
39
|
'name': [],
|
|
38
40
|
'routes': _ => se_WidgetRoutesList(_, context),
|
|
39
41
|
'target': _ => _json(_),
|
|
@@ -59,7 +61,9 @@ export const se_CreateWidgetCommand = async (input, context) => {
|
|
|
59
61
|
body = JSON.stringify(take(input, {
|
|
60
62
|
'actions': _ => _json(_),
|
|
61
63
|
'anonymousSessionsEnabled': [],
|
|
64
|
+
'anonymousSessionsOnly': [],
|
|
62
65
|
'appearance': _ => _json(_),
|
|
66
|
+
'minimumBookingGapMinutes': [],
|
|
63
67
|
'name': [],
|
|
64
68
|
'routes': _ => se_WidgetRoutesList(_, context),
|
|
65
69
|
'target': _ => _json(_),
|
|
@@ -380,7 +384,9 @@ export const se_UpdateWidgetCommand = async (input, context) => {
|
|
|
380
384
|
body = JSON.stringify(take(input, {
|
|
381
385
|
'actions': _ => _json(_),
|
|
382
386
|
'anonymousSessionsEnabled': [],
|
|
387
|
+
'anonymousSessionsOnly': [],
|
|
383
388
|
'appearance': _ => _json(_),
|
|
389
|
+
'minimumBookingGapMinutes': [],
|
|
384
390
|
'name': [],
|
|
385
391
|
'routes': _ => se_WidgetRoutesList(_, context),
|
|
386
392
|
'target': _ => _json(_),
|
|
@@ -858,10 +864,12 @@ const de_Widget = (output, context) => {
|
|
|
858
864
|
return take(output, {
|
|
859
865
|
'actions': _json,
|
|
860
866
|
'anonymousSessionsEnabled': __expectBoolean,
|
|
867
|
+
'anonymousSessionsOnly': __expectBoolean,
|
|
861
868
|
'appearance': _json,
|
|
862
869
|
'company': __expectString,
|
|
863
870
|
'createdAt': __expectString,
|
|
864
871
|
'id': __expectString,
|
|
872
|
+
'minimumBookingGapMinutes': __expectInt32,
|
|
865
873
|
'name': __expectString,
|
|
866
874
|
'routes': (_) => de_WidgetRoutesList(_, context),
|
|
867
875
|
'target': (_) => _json(__expectUnion(_)),
|
|
@@ -214,6 +214,7 @@ declare const CreateOrUpdateWidgetPreviewCommand_base: {
|
|
|
214
214
|
* delay: Number("int"),
|
|
215
215
|
* },
|
|
216
216
|
* ],
|
|
217
|
+
* minimumBookingGapMinutes: Number("int"),
|
|
217
218
|
* name: "STRING_VALUE", // required
|
|
218
219
|
* target: {// Union: only one key present
|
|
219
220
|
* service: {
|
|
@@ -228,6 +229,7 @@ declare const CreateOrUpdateWidgetPreviewCommand_base: {
|
|
|
228
229
|
* },
|
|
229
230
|
* },
|
|
230
231
|
* anonymousSessionsEnabled: true || false,
|
|
232
|
+
* anonymousSessionsOnly: true || false,
|
|
231
233
|
* actions: [
|
|
232
234
|
* {
|
|
233
235
|
* id: "STRING_VALUE", // required
|
|
@@ -472,6 +474,7 @@ declare const CreateOrUpdateWidgetPreviewCommand_base: {
|
|
|
472
474
|
* // delay: Number("int"),
|
|
473
475
|
* // },
|
|
474
476
|
* // ],
|
|
477
|
+
* // minimumBookingGapMinutes: Number("int"),
|
|
475
478
|
* // name: "STRING_VALUE", // required
|
|
476
479
|
* // target: {// Union: only one key present
|
|
477
480
|
* // service: {
|
|
@@ -486,6 +489,7 @@ declare const CreateOrUpdateWidgetPreviewCommand_base: {
|
|
|
486
489
|
* // },
|
|
487
490
|
* // },
|
|
488
491
|
* // anonymousSessionsEnabled: true || false,
|
|
492
|
+
* // anonymousSessionsOnly: true || false,
|
|
489
493
|
* // actions: [
|
|
490
494
|
* // {
|
|
491
495
|
* // id: "STRING_VALUE", // required
|
|
@@ -214,6 +214,7 @@ declare const CreateWidgetCommand_base: {
|
|
|
214
214
|
* delay: Number("int"),
|
|
215
215
|
* },
|
|
216
216
|
* ],
|
|
217
|
+
* minimumBookingGapMinutes: Number("int"),
|
|
217
218
|
* name: "STRING_VALUE", // required
|
|
218
219
|
* target: {// Union: only one key present
|
|
219
220
|
* service: {
|
|
@@ -228,6 +229,7 @@ declare const CreateWidgetCommand_base: {
|
|
|
228
229
|
* },
|
|
229
230
|
* },
|
|
230
231
|
* anonymousSessionsEnabled: true || false,
|
|
232
|
+
* anonymousSessionsOnly: true || false,
|
|
231
233
|
* actions: [
|
|
232
234
|
* {
|
|
233
235
|
* id: "STRING_VALUE", // required
|
|
@@ -471,6 +473,7 @@ declare const CreateWidgetCommand_base: {
|
|
|
471
473
|
* // delay: Number("int"),
|
|
472
474
|
* // },
|
|
473
475
|
* // ],
|
|
476
|
+
* // minimumBookingGapMinutes: Number("int"),
|
|
474
477
|
* // name: "STRING_VALUE", // required
|
|
475
478
|
* // target: {// Union: only one key present
|
|
476
479
|
* // service: {
|
|
@@ -485,6 +488,7 @@ declare const CreateWidgetCommand_base: {
|
|
|
485
488
|
* // },
|
|
486
489
|
* // },
|
|
487
490
|
* // anonymousSessionsEnabled: true || false,
|
|
491
|
+
* // anonymousSessionsOnly: true || false,
|
|
488
492
|
* // actions: [
|
|
489
493
|
* // {
|
|
490
494
|
* // id: "STRING_VALUE", // required
|
|
@@ -125,6 +125,8 @@ declare const GetConfigCommand_base: {
|
|
|
125
125
|
* // },
|
|
126
126
|
* // ],
|
|
127
127
|
* // anonymousSessionsEnabled: true || false,
|
|
128
|
+
* // anonymousSessionsOnly: true || false,
|
|
129
|
+
* // minimumBookingGapMinutes: Number("int"),
|
|
128
130
|
* // features: [ // KiteFeaturesList
|
|
129
131
|
* // "scheduling",
|
|
130
132
|
* // ],
|
|
@@ -220,6 +220,7 @@ declare const GetWidgetCommand_base: {
|
|
|
220
220
|
* // delay: Number("int"),
|
|
221
221
|
* // },
|
|
222
222
|
* // ],
|
|
223
|
+
* // minimumBookingGapMinutes: Number("int"),
|
|
223
224
|
* // name: "STRING_VALUE", // required
|
|
224
225
|
* // target: {// Union: only one key present
|
|
225
226
|
* // service: {
|
|
@@ -234,6 +235,7 @@ declare const GetWidgetCommand_base: {
|
|
|
234
235
|
* // },
|
|
235
236
|
* // },
|
|
236
237
|
* // anonymousSessionsEnabled: true || false,
|
|
238
|
+
* // anonymousSessionsOnly: true || false,
|
|
237
239
|
* // actions: [
|
|
238
240
|
* // {
|
|
239
241
|
* // id: "STRING_VALUE", // required
|
|
@@ -221,6 +221,7 @@ declare const ListWidgetsCommand_base: {
|
|
|
221
221
|
* // delay: Number("int"),
|
|
222
222
|
* // },
|
|
223
223
|
* // ],
|
|
224
|
+
* // minimumBookingGapMinutes: Number("int"),
|
|
224
225
|
* // name: "STRING_VALUE", // required
|
|
225
226
|
* // target: {// Union: only one key present
|
|
226
227
|
* // service: {
|
|
@@ -235,6 +236,7 @@ declare const ListWidgetsCommand_base: {
|
|
|
235
236
|
* // },
|
|
236
237
|
* // },
|
|
237
238
|
* // anonymousSessionsEnabled: true || false,
|
|
239
|
+
* // anonymousSessionsOnly: true || false,
|
|
238
240
|
* // actions: [
|
|
239
241
|
* // {
|
|
240
242
|
* // id: "STRING_VALUE", // required
|
|
@@ -214,6 +214,7 @@ declare const UpdateWidgetCommand_base: {
|
|
|
214
214
|
* delay: Number("int"),
|
|
215
215
|
* },
|
|
216
216
|
* ],
|
|
217
|
+
* minimumBookingGapMinutes: Number("int"),
|
|
217
218
|
* name: "STRING_VALUE", // required
|
|
218
219
|
* target: {// Union: only one key present
|
|
219
220
|
* service: {
|
|
@@ -228,6 +229,7 @@ declare const UpdateWidgetCommand_base: {
|
|
|
228
229
|
* },
|
|
229
230
|
* },
|
|
230
231
|
* anonymousSessionsEnabled: true || false,
|
|
232
|
+
* anonymousSessionsOnly: true || false,
|
|
231
233
|
* actions: [
|
|
232
234
|
* {
|
|
233
235
|
* id: "STRING_VALUE", // required
|
|
@@ -472,6 +474,7 @@ declare const UpdateWidgetCommand_base: {
|
|
|
472
474
|
* // delay: Number("int"),
|
|
473
475
|
* // },
|
|
474
476
|
* // ],
|
|
477
|
+
* // minimumBookingGapMinutes: Number("int"),
|
|
475
478
|
* // name: "STRING_VALUE", // required
|
|
476
479
|
* // target: {// Union: only one key present
|
|
477
480
|
* // service: {
|
|
@@ -486,6 +489,7 @@ declare const UpdateWidgetCommand_base: {
|
|
|
486
489
|
* // },
|
|
487
490
|
* // },
|
|
488
491
|
* // anonymousSessionsEnabled: true || false,
|
|
492
|
+
* // anonymousSessionsOnly: true || false,
|
|
489
493
|
* // actions: [
|
|
490
494
|
* // {
|
|
491
495
|
* // id: "STRING_VALUE", // required
|
|
@@ -1166,6 +1166,11 @@ export interface CreateOrUpdateWidgetPreviewInput {
|
|
|
1166
1166
|
* @public
|
|
1167
1167
|
*/
|
|
1168
1168
|
welcomeMessages?: (WidgetWelcomeMessage)[] | undefined;
|
|
1169
|
+
/**
|
|
1170
|
+
* Minimum gap in minutes between the current time and the earliest calendar slot that can be booked. If omitted or set to 0, current behavior is preserved.
|
|
1171
|
+
* @public
|
|
1172
|
+
*/
|
|
1173
|
+
minimumBookingGapMinutes?: number | undefined;
|
|
1169
1174
|
name: string;
|
|
1170
1175
|
/**
|
|
1171
1176
|
* The primary target for the widget. This target is used if no route rules are matched. The target can be a service, an agent, or a bot, and it specifies where the widget directs its interactions.
|
|
@@ -1177,6 +1182,11 @@ export interface CreateOrUpdateWidgetPreviewInput {
|
|
|
1177
1182
|
* @public
|
|
1178
1183
|
*/
|
|
1179
1184
|
anonymousSessionsEnabled?: boolean | undefined;
|
|
1185
|
+
/**
|
|
1186
|
+
* Controls whether only unauthenticated users are allowed to start guest sessions through this widget. When enabled, anonymousSessionsEnabled is treated as enabled as well.
|
|
1187
|
+
* @public
|
|
1188
|
+
*/
|
|
1189
|
+
anonymousSessionsOnly?: boolean | undefined;
|
|
1180
1190
|
/**
|
|
1181
1191
|
* Actions that will be used if the specified route and the conditions within a specific action are met.
|
|
1182
1192
|
* @public
|
|
@@ -1208,6 +1218,11 @@ export interface Widget {
|
|
|
1208
1218
|
* @public
|
|
1209
1219
|
*/
|
|
1210
1220
|
welcomeMessages?: (WidgetWelcomeMessage)[] | undefined;
|
|
1221
|
+
/**
|
|
1222
|
+
* Minimum gap in minutes between the current time and the earliest calendar slot that can be booked. If omitted or set to 0, current behavior is preserved.
|
|
1223
|
+
* @public
|
|
1224
|
+
*/
|
|
1225
|
+
minimumBookingGapMinutes?: number | undefined;
|
|
1211
1226
|
name: string;
|
|
1212
1227
|
/**
|
|
1213
1228
|
* The primary target for the widget. This target is used if no route rules are matched. The target can be a service, an agent, or a bot, and it specifies where the widget directs its interactions.
|
|
@@ -1219,6 +1234,11 @@ export interface Widget {
|
|
|
1219
1234
|
* @public
|
|
1220
1235
|
*/
|
|
1221
1236
|
anonymousSessionsEnabled?: boolean | undefined;
|
|
1237
|
+
/**
|
|
1238
|
+
* Controls whether only unauthenticated users are allowed to start guest sessions through this widget. When enabled, anonymousSessionsEnabled is treated as enabled as well.
|
|
1239
|
+
* @public
|
|
1240
|
+
*/
|
|
1241
|
+
anonymousSessionsOnly?: boolean | undefined;
|
|
1222
1242
|
/**
|
|
1223
1243
|
* Actions that will be used if the specified route and the conditions within a specific action are met.
|
|
1224
1244
|
* @public
|
|
@@ -1254,6 +1274,11 @@ export interface CreateWidgetInput {
|
|
|
1254
1274
|
* @public
|
|
1255
1275
|
*/
|
|
1256
1276
|
welcomeMessages?: (WidgetWelcomeMessage)[] | undefined;
|
|
1277
|
+
/**
|
|
1278
|
+
* Minimum gap in minutes between the current time and the earliest calendar slot that can be booked. If omitted or set to 0, current behavior is preserved.
|
|
1279
|
+
* @public
|
|
1280
|
+
*/
|
|
1281
|
+
minimumBookingGapMinutes?: number | undefined;
|
|
1257
1282
|
name: string;
|
|
1258
1283
|
/**
|
|
1259
1284
|
* The primary target for the widget. This target is used if no route rules are matched. The target can be a service, an agent, or a bot, and it specifies where the widget directs its interactions.
|
|
@@ -1265,6 +1290,11 @@ export interface CreateWidgetInput {
|
|
|
1265
1290
|
* @public
|
|
1266
1291
|
*/
|
|
1267
1292
|
anonymousSessionsEnabled?: boolean | undefined;
|
|
1293
|
+
/**
|
|
1294
|
+
* Controls whether only unauthenticated users are allowed to start guest sessions through this widget. When enabled, anonymousSessionsEnabled is treated as enabled as well.
|
|
1295
|
+
* @public
|
|
1296
|
+
*/
|
|
1297
|
+
anonymousSessionsOnly?: boolean | undefined;
|
|
1268
1298
|
/**
|
|
1269
1299
|
* Actions that will be used if the specified route and the conditions within a specific action are met.
|
|
1270
1300
|
* @public
|
|
@@ -1411,6 +1441,16 @@ export interface KiteConfig {
|
|
|
1411
1441
|
* @public
|
|
1412
1442
|
*/
|
|
1413
1443
|
anonymousSessionsEnabled?: boolean | undefined;
|
|
1444
|
+
/**
|
|
1445
|
+
* Controls whether only unauthenticated users are allowed to start guest sessions through this widget.
|
|
1446
|
+
* @public
|
|
1447
|
+
*/
|
|
1448
|
+
anonymousSessionsOnly?: boolean | undefined;
|
|
1449
|
+
/**
|
|
1450
|
+
* Minimum gap in minutes between the current time and the earliest calendar slot that can be booked. If omitted or set to 0, current behavior is preserved.
|
|
1451
|
+
* @public
|
|
1452
|
+
*/
|
|
1453
|
+
minimumBookingGapMinutes?: number | undefined;
|
|
1414
1454
|
/**
|
|
1415
1455
|
* A list of features that are supported.
|
|
1416
1456
|
* @public
|
|
@@ -2073,6 +2113,11 @@ export interface UpdateWidgetInput {
|
|
|
2073
2113
|
* @public
|
|
2074
2114
|
*/
|
|
2075
2115
|
welcomeMessages?: (WidgetWelcomeMessage)[] | undefined;
|
|
2116
|
+
/**
|
|
2117
|
+
* Minimum gap in minutes between the current time and the earliest calendar slot that can be booked. If omitted or set to 0, current behavior is preserved.
|
|
2118
|
+
* @public
|
|
2119
|
+
*/
|
|
2120
|
+
minimumBookingGapMinutes?: number | undefined;
|
|
2076
2121
|
name: string;
|
|
2077
2122
|
/**
|
|
2078
2123
|
* The primary target for the widget. This target is used if no route rules are matched. The target can be a service, an agent, or a bot, and it specifies where the widget directs its interactions.
|
|
@@ -2084,6 +2129,11 @@ export interface UpdateWidgetInput {
|
|
|
2084
2129
|
* @public
|
|
2085
2130
|
*/
|
|
2086
2131
|
anonymousSessionsEnabled?: boolean | undefined;
|
|
2132
|
+
/**
|
|
2133
|
+
* Controls whether only unauthenticated users are allowed to start guest sessions through this widget. When enabled, anonymousSessionsEnabled is treated as enabled as well.
|
|
2134
|
+
* @public
|
|
2135
|
+
*/
|
|
2136
|
+
anonymousSessionsOnly?: boolean | undefined;
|
|
2087
2137
|
/**
|
|
2088
2138
|
* Actions that will be used if the specified route and the conditions within a specific action are met.
|
|
2089
2139
|
* @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.3.
|
|
4
|
+
"version": "1.3.2",
|
|
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",
|