@wildix/xbees-kite-client 1.0.21 → 1.0.23

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.
@@ -38,7 +38,6 @@ const se_CreateOrUpdateWidgetPreviewCommand = async (input, context) => {
38
38
  'actions': _ => (0, smithy_client_1._json)(_),
39
39
  'appearance': _ => (0, smithy_client_1._json)(_),
40
40
  'name': [],
41
- 'reassign': [],
42
41
  'routes': _ => se_WidgetRoutesList(_, context),
43
42
  'target': _ => (0, smithy_client_1._json)(_),
44
43
  'temporaryWidgetId': [],
@@ -65,7 +64,6 @@ const se_CreateWidgetCommand = async (input, context) => {
65
64
  'actions': _ => (0, smithy_client_1._json)(_),
66
65
  'appearance': _ => (0, smithy_client_1._json)(_),
67
66
  'name': [],
68
- 'reassign': [],
69
67
  'routes': _ => se_WidgetRoutesList(_, context),
70
68
  'target': _ => (0, smithy_client_1._json)(_),
71
69
  'welcomeMessages': _ => (0, smithy_client_1._json)(_),
@@ -308,7 +306,6 @@ const se_PutSmsNumberConfigurationCommand = async (input, context) => {
308
306
  let body;
309
307
  body = JSON.stringify((0, smithy_client_1.take)(input, {
310
308
  'actions': _ => (0, smithy_client_1._json)(_),
311
- 'reassign': [],
312
309
  'routes': _ => (0, smithy_client_1._json)(_),
313
310
  'serviceUri': [],
314
311
  'target': _ => (0, smithy_client_1._json)(_),
@@ -333,7 +330,6 @@ const se_PutWhatsAppNumberConfigurationCommand = async (input, context) => {
333
330
  let body;
334
331
  body = JSON.stringify((0, smithy_client_1.take)(input, {
335
332
  'actions': _ => (0, smithy_client_1._json)(_),
336
- 'reassign': [],
337
333
  'routes': _ => (0, smithy_client_1._json)(_),
338
334
  'serviceUri': [],
339
335
  'target': _ => (0, smithy_client_1._json)(_),
@@ -407,7 +403,6 @@ const se_UpdateWidgetCommand = async (input, context) => {
407
403
  'actions': _ => (0, smithy_client_1._json)(_),
408
404
  'appearance': _ => (0, smithy_client_1._json)(_),
409
405
  'name': [],
410
- 'reassign': [],
411
406
  'routes': _ => se_WidgetRoutesList(_, context),
412
407
  'target': _ => (0, smithy_client_1._json)(_),
413
408
  'welcomeMessages': _ => (0, smithy_client_1._json)(_),
@@ -911,7 +906,6 @@ const de_Widget = (output, context) => {
911
906
  'createdAt': smithy_client_1.expectString,
912
907
  'id': smithy_client_1.expectString,
913
908
  'name': smithy_client_1.expectString,
914
- 'reassign': smithy_client_1.expectBoolean,
915
909
  'routes': (_) => de_WidgetRoutesList(_, context),
916
910
  'target': (_) => (0, smithy_client_1._json)((0, core_1.awsExpectUnion)(_)),
917
911
  'updatedAt': smithy_client_1.expectString,
@@ -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, 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 = {};
@@ -34,7 +34,6 @@ export const se_CreateOrUpdateWidgetPreviewCommand = async (input, context) => {
34
34
  'actions': _ => _json(_),
35
35
  'appearance': _ => _json(_),
36
36
  'name': [],
37
- 'reassign': [],
38
37
  'routes': _ => se_WidgetRoutesList(_, context),
39
38
  'target': _ => _json(_),
40
39
  'temporaryWidgetId': [],
@@ -60,7 +59,6 @@ export const se_CreateWidgetCommand = async (input, context) => {
60
59
  'actions': _ => _json(_),
61
60
  'appearance': _ => _json(_),
62
61
  'name': [],
63
- 'reassign': [],
64
62
  'routes': _ => se_WidgetRoutesList(_, context),
65
63
  'target': _ => _json(_),
66
64
  'welcomeMessages': _ => _json(_),
@@ -288,7 +286,6 @@ export const se_PutSmsNumberConfigurationCommand = async (input, context) => {
288
286
  let body;
289
287
  body = JSON.stringify(take(input, {
290
288
  'actions': _ => _json(_),
291
- 'reassign': [],
292
289
  'routes': _ => _json(_),
293
290
  'serviceUri': [],
294
291
  'target': _ => _json(_),
@@ -312,7 +309,6 @@ export const se_PutWhatsAppNumberConfigurationCommand = async (input, context) =
312
309
  let body;
313
310
  body = JSON.stringify(take(input, {
314
311
  'actions': _ => _json(_),
315
- 'reassign': [],
316
312
  'routes': _ => _json(_),
317
313
  'serviceUri': [],
318
314
  'target': _ => _json(_),
@@ -383,7 +379,6 @@ export const se_UpdateWidgetCommand = async (input, context) => {
383
379
  'actions': _ => _json(_),
384
380
  'appearance': _ => _json(_),
385
381
  'name': [],
386
- 'reassign': [],
387
382
  'routes': _ => se_WidgetRoutesList(_, context),
388
383
  'target': _ => _json(_),
389
384
  'welcomeMessages': _ => _json(_),
@@ -864,7 +859,6 @@ const de_Widget = (output, context) => {
864
859
  'createdAt': __expectString,
865
860
  'id': __expectString,
866
861
  'name': __expectString,
867
- 'reassign': __expectBoolean,
868
862
  'routes': (_) => de_WidgetRoutesList(_, context),
869
863
  'target': (_) => _json(__expectUnion(_)),
870
864
  'updatedAt': __expectString,
@@ -205,7 +205,6 @@ declare const CreateOrUpdateWidgetPreviewCommand_base: {
205
205
  * id: "STRING_VALUE", // required
206
206
  * },
207
207
  * },
208
- * reassign: true || false,
209
208
  * actions: [
210
209
  * {
211
210
  * id: "STRING_VALUE", // required
@@ -441,7 +440,6 @@ declare const CreateOrUpdateWidgetPreviewCommand_base: {
441
440
  * // id: "STRING_VALUE", // required
442
441
  * // },
443
442
  * // },
444
- * // reassign: true || false,
445
443
  * // actions: [
446
444
  * // {
447
445
  * // id: "STRING_VALUE", // required
@@ -205,7 +205,6 @@ declare const CreateWidgetCommand_base: {
205
205
  * id: "STRING_VALUE", // required
206
206
  * },
207
207
  * },
208
- * reassign: true || false,
209
208
  * actions: [
210
209
  * {
211
210
  * id: "STRING_VALUE", // required
@@ -440,7 +439,6 @@ declare const CreateWidgetCommand_base: {
440
439
  * // id: "STRING_VALUE", // required
441
440
  * // },
442
441
  * // },
443
- * // reassign: true || false,
444
442
  * // actions: [
445
443
  * // {
446
444
  * // id: "STRING_VALUE", // required
@@ -141,7 +141,6 @@ declare const GetSmsNumberConfigurationCommand_base: {
141
141
  * // id: "STRING_VALUE", // required
142
142
  * // },
143
143
  * // },
144
- * // reassign: true || false,
145
144
  * // actions: [
146
145
  * // {
147
146
  * // id: "STRING_VALUE", // required
@@ -141,7 +141,6 @@ declare const GetWhatsAppNumberConfigurationCommand_base: {
141
141
  * // id: "STRING_VALUE", // required
142
142
  * // },
143
143
  * // },
144
- * // reassign: true || false,
145
144
  * // actions: [
146
145
  * // {
147
146
  * // id: "STRING_VALUE", // required
@@ -211,7 +211,6 @@ declare const GetWidgetCommand_base: {
211
211
  * // id: "STRING_VALUE", // required
212
212
  * // },
213
213
  * // },
214
- * // reassign: true || false,
215
214
  * // actions: [
216
215
  * // {
217
216
  * // id: "STRING_VALUE", // required
@@ -141,7 +141,6 @@ declare const ListSmsConfigurationsCommand_base: {
141
141
  * // id: "STRING_VALUE", // required
142
142
  * // },
143
143
  * // },
144
- * // reassign: true || false,
145
144
  * // actions: [
146
145
  * // {
147
146
  * // id: "STRING_VALUE", // required
@@ -42,7 +42,25 @@ declare const ListSmsNumbersCommand_base: {
42
42
  * const response = await client.send(command);
43
43
  * // { // ListSmsNumbersOutput
44
44
  * // numbers: [ // SmsServiceNumbersList // required
45
- * // "STRING_VALUE",
45
+ * // { // SmsServiceNumber
46
+ * // number: "STRING_VALUE", // required
47
+ * // service: { // Service
48
+ * // id: Number("int"), // required
49
+ * // uri: "STRING_VALUE", // required
50
+ * // title: "STRING_VALUE", // required
51
+ * // settings: { // ServiceSettings
52
+ * // phoneNumber: "STRING_VALUE",
53
+ * // messagingNumber: "STRING_VALUE",
54
+ * // },
55
+ * // extensions: [ // ExtensionsList // required
56
+ * // "STRING_VALUE",
57
+ * // ],
58
+ * // pbx: { // ServicePbx
59
+ * // domain: "STRING_VALUE", // required
60
+ * // port: Number("int"), // required
61
+ * // },
62
+ * // },
63
+ * // },
46
64
  * // ],
47
65
  * // };
48
66
  *
@@ -141,7 +141,6 @@ declare const ListWhatsAppConfigurationsCommand_base: {
141
141
  * // id: "STRING_VALUE", // required
142
142
  * // },
143
143
  * // },
144
- * // reassign: true || false,
145
144
  * // actions: [
146
145
  * // {
147
146
  * // id: "STRING_VALUE", // required
@@ -42,7 +42,25 @@ declare const ListWhatsAppNumbersCommand_base: {
42
42
  * const response = await client.send(command);
43
43
  * // { // ListWhatsAppNumbersOutput
44
44
  * // numbers: [ // WhatsAppServiceNumbersList // required
45
- * // "STRING_VALUE",
45
+ * // { // WhatsAppServiceNumber
46
+ * // number: "STRING_VALUE", // required
47
+ * // service: { // Service
48
+ * // id: Number("int"), // required
49
+ * // uri: "STRING_VALUE", // required
50
+ * // title: "STRING_VALUE", // required
51
+ * // settings: { // ServiceSettings
52
+ * // phoneNumber: "STRING_VALUE",
53
+ * // messagingNumber: "STRING_VALUE",
54
+ * // },
55
+ * // extensions: [ // ExtensionsList // required
56
+ * // "STRING_VALUE",
57
+ * // ],
58
+ * // pbx: { // ServicePbx
59
+ * // domain: "STRING_VALUE", // required
60
+ * // port: Number("int"), // required
61
+ * // },
62
+ * // },
63
+ * // },
46
64
  * // ],
47
65
  * // };
48
66
  *
@@ -213,7 +213,6 @@ declare const ListWidgetsCommand_base: {
213
213
  * // id: "STRING_VALUE", // required
214
214
  * // },
215
215
  * // },
216
- * // reassign: true || false,
217
216
  * // actions: [
218
217
  * // {
219
218
  * // id: "STRING_VALUE", // required
@@ -134,7 +134,6 @@ declare const PutSmsNumberConfigurationCommand_base: {
134
134
  * id: "STRING_VALUE", // required
135
135
  * },
136
136
  * },
137
- * reassign: true || false,
138
137
  * actions: [
139
138
  * {
140
139
  * id: "STRING_VALUE", // required
@@ -298,7 +297,6 @@ declare const PutSmsNumberConfigurationCommand_base: {
298
297
  * // id: "STRING_VALUE", // required
299
298
  * // },
300
299
  * // },
301
- * // reassign: true || false,
302
300
  * // actions: [
303
301
  * // {
304
302
  * // id: "STRING_VALUE", // required
@@ -134,7 +134,6 @@ declare const PutWhatsAppNumberConfigurationCommand_base: {
134
134
  * id: "STRING_VALUE", // required
135
135
  * },
136
136
  * },
137
- * reassign: true || false,
138
137
  * actions: [
139
138
  * {
140
139
  * id: "STRING_VALUE", // required
@@ -298,7 +297,6 @@ declare const PutWhatsAppNumberConfigurationCommand_base: {
298
297
  * // id: "STRING_VALUE", // required
299
298
  * // },
300
299
  * // },
301
- * // reassign: true || false,
302
300
  * // actions: [
303
301
  * // {
304
302
  * // id: "STRING_VALUE", // required
@@ -205,7 +205,6 @@ declare const UpdateWidgetCommand_base: {
205
205
  * id: "STRING_VALUE", // required
206
206
  * },
207
207
  * },
208
- * reassign: true || false,
209
208
  * actions: [
210
209
  * {
211
210
  * id: "STRING_VALUE", // required
@@ -441,7 +440,6 @@ declare const UpdateWidgetCommand_base: {
441
440
  * // id: "STRING_VALUE", // required
442
441
  * // },
443
442
  * // },
444
- * // reassign: true || false,
445
443
  * // actions: [
446
444
  * // {
447
445
  * // id: "STRING_VALUE", // required
@@ -1140,11 +1140,6 @@ export interface CreateOrUpdateWidgetPreviewInput {
1140
1140
  * @public
1141
1141
  */
1142
1142
  target: WidgetTarget;
1143
- /**
1144
- * Determines whether the conversation should be assigned to the specified target and rules even if initially conversation have different target. If set to true, assignment will occur regardless of previously defined target. Defaults to false.
1145
- * @public
1146
- */
1147
- reassign?: boolean | undefined;
1148
1143
  /**
1149
1144
  * Actions that will be used if the specified route and the conditions within a specific action are met.
1150
1145
  * @public
@@ -1182,11 +1177,6 @@ export interface Widget {
1182
1177
  * @public
1183
1178
  */
1184
1179
  target: WidgetTarget;
1185
- /**
1186
- * Determines whether the conversation should be assigned to the specified target and rules even if initially conversation have different target. If set to true, assignment will occur regardless of previously defined target. Defaults to false.
1187
- * @public
1188
- */
1189
- reassign?: boolean | undefined;
1190
1180
  /**
1191
1181
  * Actions that will be used if the specified route and the conditions within a specific action are met.
1192
1182
  * @public
@@ -1228,11 +1218,6 @@ export interface CreateWidgetInput {
1228
1218
  * @public
1229
1219
  */
1230
1220
  target: WidgetTarget;
1231
- /**
1232
- * Determines whether the conversation should be assigned to the specified target and rules even if initially conversation have different target. If set to true, assignment will occur regardless of previously defined target. Defaults to false.
1233
- * @public
1234
- */
1235
- reassign?: boolean | undefined;
1236
1221
  /**
1237
1222
  * Actions that will be used if the specified route and the conditions within a specific action are met.
1238
1223
  * @public
@@ -1556,11 +1541,6 @@ export interface SmsConfig {
1556
1541
  * @public
1557
1542
  */
1558
1543
  target: RouteTarget;
1559
- /**
1560
- * Determines whether the conversation should be assigned to the specified target and rules even if initially conversation have different target. If set to true, assignment will occur regardless of previously defined target. Defaults to false.
1561
- * @public
1562
- */
1563
- reassign?: boolean | undefined;
1564
1544
  /**
1565
1545
  * Actions that will be used if the specified route and the conditions within a specific action are met.
1566
1546
  * @public
@@ -1624,11 +1604,6 @@ export interface WhatsAppConfig {
1624
1604
  * @public
1625
1605
  */
1626
1606
  target: RouteTarget;
1627
- /**
1628
- * Determines whether the conversation should be assigned to the specified target and rules even if initially conversation have different target. If set to true, assignment will occur regardless of previously defined target. Defaults to false.
1629
- * @public
1630
- */
1631
- reassign?: boolean | undefined;
1632
1607
  /**
1633
1608
  * Actions that will be used if the specified route and the conditions within a specific action are met.
1634
1609
  * @public
@@ -1790,11 +1765,26 @@ export interface ListSmsNumbersInput {
1790
1765
  */
1791
1766
  companyId?: string | undefined;
1792
1767
  }
1768
+ /**
1769
+ * @public
1770
+ */
1771
+ export interface SmsServiceNumber {
1772
+ /**
1773
+ * A phone number registered though Classound.
1774
+ * @public
1775
+ */
1776
+ number: string;
1777
+ /**
1778
+ * A service that is linked to specified SMS number. If empty it means that this phone number is not properly configured.
1779
+ * @public
1780
+ */
1781
+ service?: Service | undefined;
1782
+ }
1793
1783
  /**
1794
1784
  * @public
1795
1785
  */
1796
1786
  export interface ListSmsNumbersOutput {
1797
- numbers: (string)[];
1787
+ numbers: (SmsServiceNumber)[];
1798
1788
  }
1799
1789
  /**
1800
1790
  * @public
@@ -1822,11 +1812,26 @@ export interface ListWhatsAppNumbersInput {
1822
1812
  */
1823
1813
  companyId?: string | undefined;
1824
1814
  }
1815
+ /**
1816
+ * @public
1817
+ */
1818
+ export interface WhatsAppServiceNumber {
1819
+ /**
1820
+ * A WhatsApp phone number registered though Classound.
1821
+ * @public
1822
+ */
1823
+ number: string;
1824
+ /**
1825
+ * A service that is linked to specified WhatsApp number. If empty it means that this phone number is not properly configured.
1826
+ * @public
1827
+ */
1828
+ service?: Service | undefined;
1829
+ }
1825
1830
  /**
1826
1831
  * @public
1827
1832
  */
1828
1833
  export interface ListWhatsAppNumbersOutput {
1829
- numbers: (string)[];
1834
+ numbers: (WhatsAppServiceNumber)[];
1830
1835
  }
1831
1836
  /**
1832
1837
  * @public
@@ -1880,11 +1885,6 @@ export interface PutSmsNumberConfigurationInput {
1880
1885
  * @public
1881
1886
  */
1882
1887
  target: RouteTarget;
1883
- /**
1884
- * Determines whether the conversation should be assigned to the specified target and rules even if initially conversation have different target. If set to true, assignment will occur regardless of previously defined target. Defaults to false.
1885
- * @public
1886
- */
1887
- reassign?: boolean | undefined;
1888
1888
  /**
1889
1889
  * Actions that will be used if the specified route and the conditions within a specific action are met.
1890
1890
  * @public
@@ -1922,11 +1922,6 @@ export interface PutWhatsAppNumberConfigurationInput {
1922
1922
  * @public
1923
1923
  */
1924
1924
  target: RouteTarget;
1925
- /**
1926
- * Determines whether the conversation should be assigned to the specified target and rules even if initially conversation have different target. If set to true, assignment will occur regardless of previously defined target. Defaults to false.
1927
- * @public
1928
- */
1929
- reassign?: boolean | undefined;
1930
1925
  /**
1931
1926
  * Actions that will be used if the specified route and the conditions within a specific action are met.
1932
1927
  * @public
@@ -2027,11 +2022,6 @@ export interface UpdateWidgetInput {
2027
2022
  * @public
2028
2023
  */
2029
2024
  target: WidgetTarget;
2030
- /**
2031
- * Determines whether the conversation should be assigned to the specified target and rules even if initially conversation have different target. If set to true, assignment will occur regardless of previously defined target. Defaults to false.
2032
- * @public
2033
- */
2034
- reassign?: boolean | undefined;
2035
2025
  /**
2036
2026
  * Actions that will be used if the specified route and the conditions within a specific action are met.
2037
2027
  * @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.0.21",
4
+ "version": "1.0.23",
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",