@wildix/xbees-kite-client 1.0.23 → 1.1.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.
@@ -156,6 +156,8 @@ exports.ChannelWhatsAppStatus = {
156
156
  var Element;
157
157
  (function (Element) {
158
158
  Element.visit = (value, visitor) => {
159
+ if (value.template !== undefined)
160
+ return visitor.template(value.template);
159
161
  if (value.actions !== undefined)
160
162
  return visitor.actions(value.actions);
161
163
  return visitor._(value.$unknown[0], value.$unknown[1]);
@@ -148,6 +148,8 @@ export const ChannelWhatsAppStatus = {
148
148
  export var Element;
149
149
  (function (Element) {
150
150
  Element.visit = (value, visitor) => {
151
+ if (value.template !== undefined)
152
+ return visitor.template(value.template);
151
153
  if (value.actions !== undefined)
152
154
  return visitor.actions(value.actions);
153
155
  return visitor._(value.$unknown[0], value.$unknown[1]);
@@ -108,6 +108,8 @@ declare const CancelCalendarEventCommand_base: {
108
108
  * // whatsappStatus: "24h_channel_closed",
109
109
  * // broadcast: true || false,
110
110
  * // external: true || false,
111
+ * // autoRecord: true || false,
112
+ * // transcriptionLanguage: "STRING_VALUE",
111
113
  * // channelId: "STRING_VALUE", // required
112
114
  * // channelType: "direct" || "group", // required
113
115
  * // memberCount: Number("int"), // required
@@ -65,6 +65,17 @@ declare const CreateOrUpdateWidgetPreviewCommand_base: {
65
65
  * text: "STRING_VALUE",
66
66
  * elements: [ // ElementsList
67
67
  * { // Element Union: only one key present
68
+ * template: { // MessageTemplateConfig
69
+ * whatsapp: { // TemplateWithParameters
70
+ * name: "STRING_VALUE", // required
71
+ * parameters: [ // ListTemplateParameter // required
72
+ * { // TemplateParameter
73
+ * name: "STRING_VALUE", // required
74
+ * value: "STRING_VALUE", // required
75
+ * },
76
+ * ],
77
+ * },
78
+ * },
68
79
  * actions: [ // ActionsElementsList
69
80
  * { // ActionElement Union: only one key present
70
81
  * button: { // ButtonElement
@@ -167,6 +178,17 @@ declare const CreateOrUpdateWidgetPreviewCommand_base: {
167
178
  * text: "STRING_VALUE",
168
179
  * elements: [
169
180
  * {// Union: only one key present
181
+ * template: {
182
+ * whatsapp: {
183
+ * name: "STRING_VALUE", // required
184
+ * parameters: [ // required
185
+ * {
186
+ * name: "STRING_VALUE", // required
187
+ * value: "STRING_VALUE", // required
188
+ * },
189
+ * ],
190
+ * },
191
+ * },
170
192
  * actions: [
171
193
  * {// Union: only one key present
172
194
  * button: {
@@ -300,6 +322,17 @@ declare const CreateOrUpdateWidgetPreviewCommand_base: {
300
322
  * // text: "STRING_VALUE",
301
323
  * // elements: [ // ElementsList
302
324
  * // { // Element Union: only one key present
325
+ * // template: { // MessageTemplateConfig
326
+ * // whatsapp: { // TemplateWithParameters
327
+ * // name: "STRING_VALUE", // required
328
+ * // parameters: [ // ListTemplateParameter // required
329
+ * // { // TemplateParameter
330
+ * // name: "STRING_VALUE", // required
331
+ * // value: "STRING_VALUE", // required
332
+ * // },
333
+ * // ],
334
+ * // },
335
+ * // },
303
336
  * // actions: [ // ActionsElementsList
304
337
  * // { // ActionElement Union: only one key present
305
338
  * // button: { // ButtonElement
@@ -402,6 +435,17 @@ declare const CreateOrUpdateWidgetPreviewCommand_base: {
402
435
  * // text: "STRING_VALUE",
403
436
  * // elements: [
404
437
  * // {// Union: only one key present
438
+ * // template: {
439
+ * // whatsapp: {
440
+ * // name: "STRING_VALUE", // required
441
+ * // parameters: [ // required
442
+ * // {
443
+ * // name: "STRING_VALUE", // required
444
+ * // value: "STRING_VALUE", // required
445
+ * // },
446
+ * // ],
447
+ * // },
448
+ * // },
405
449
  * // actions: [
406
450
  * // {// Union: only one key present
407
451
  * // button: {
@@ -65,6 +65,17 @@ declare const CreateWidgetCommand_base: {
65
65
  * text: "STRING_VALUE",
66
66
  * elements: [ // ElementsList
67
67
  * { // Element Union: only one key present
68
+ * template: { // MessageTemplateConfig
69
+ * whatsapp: { // TemplateWithParameters
70
+ * name: "STRING_VALUE", // required
71
+ * parameters: [ // ListTemplateParameter // required
72
+ * { // TemplateParameter
73
+ * name: "STRING_VALUE", // required
74
+ * value: "STRING_VALUE", // required
75
+ * },
76
+ * ],
77
+ * },
78
+ * },
68
79
  * actions: [ // ActionsElementsList
69
80
  * { // ActionElement Union: only one key present
70
81
  * button: { // ButtonElement
@@ -167,6 +178,17 @@ declare const CreateWidgetCommand_base: {
167
178
  * text: "STRING_VALUE",
168
179
  * elements: [
169
180
  * {// Union: only one key present
181
+ * template: {
182
+ * whatsapp: {
183
+ * name: "STRING_VALUE", // required
184
+ * parameters: [ // required
185
+ * {
186
+ * name: "STRING_VALUE", // required
187
+ * value: "STRING_VALUE", // required
188
+ * },
189
+ * ],
190
+ * },
191
+ * },
170
192
  * actions: [
171
193
  * {// Union: only one key present
172
194
  * button: {
@@ -299,6 +321,17 @@ declare const CreateWidgetCommand_base: {
299
321
  * // text: "STRING_VALUE",
300
322
  * // elements: [ // ElementsList
301
323
  * // { // Element Union: only one key present
324
+ * // template: { // MessageTemplateConfig
325
+ * // whatsapp: { // TemplateWithParameters
326
+ * // name: "STRING_VALUE", // required
327
+ * // parameters: [ // ListTemplateParameter // required
328
+ * // { // TemplateParameter
329
+ * // name: "STRING_VALUE", // required
330
+ * // value: "STRING_VALUE", // required
331
+ * // },
332
+ * // ],
333
+ * // },
334
+ * // },
302
335
  * // actions: [ // ActionsElementsList
303
336
  * // { // ActionElement Union: only one key present
304
337
  * // button: { // ButtonElement
@@ -401,6 +434,17 @@ declare const CreateWidgetCommand_base: {
401
434
  * // text: "STRING_VALUE",
402
435
  * // elements: [
403
436
  * // {// Union: only one key present
437
+ * // template: {
438
+ * // whatsapp: {
439
+ * // name: "STRING_VALUE", // required
440
+ * // parameters: [ // required
441
+ * // {
442
+ * // name: "STRING_VALUE", // required
443
+ * // value: "STRING_VALUE", // required
444
+ * // },
445
+ * // ],
446
+ * // },
447
+ * // },
404
448
  * // actions: [
405
449
  * // {// Union: only one key present
406
450
  * // button: {
@@ -44,6 +44,7 @@ declare const GetConfigCommand_base: {
44
44
  * // { // GetConfigOutput
45
45
  * // config: { // KiteConfig
46
46
  * // targetId: "STRING_VALUE", // required
47
+ * // company: "STRING_VALUE", // required
47
48
  * // targetRouteId: "STRING_VALUE",
48
49
  * // targetVariant: "group" || "direct", // required
49
50
  * // targetService: { // KiteTargetService
@@ -87,6 +88,17 @@ declare const GetConfigCommand_base: {
87
88
  * // text: "STRING_VALUE",
88
89
  * // elements: [ // ElementsList
89
90
  * // { // Element Union: only one key present
91
+ * // template: { // MessageTemplateConfig
92
+ * // whatsapp: { // TemplateWithParameters
93
+ * // name: "STRING_VALUE", // required
94
+ * // parameters: [ // ListTemplateParameter // required
95
+ * // { // TemplateParameter
96
+ * // name: "STRING_VALUE", // required
97
+ * // value: "STRING_VALUE", // required
98
+ * // },
99
+ * // ],
100
+ * // },
101
+ * // },
90
102
  * // actions: [ // ActionsElementsList
91
103
  * // { // ActionElement Union: only one key present
92
104
  * // button: { // ButtonElement
@@ -71,6 +71,17 @@ declare const GetWidgetCommand_base: {
71
71
  * // text: "STRING_VALUE",
72
72
  * // elements: [ // ElementsList
73
73
  * // { // Element Union: only one key present
74
+ * // template: { // MessageTemplateConfig
75
+ * // whatsapp: { // TemplateWithParameters
76
+ * // name: "STRING_VALUE", // required
77
+ * // parameters: [ // ListTemplateParameter // required
78
+ * // { // TemplateParameter
79
+ * // name: "STRING_VALUE", // required
80
+ * // value: "STRING_VALUE", // required
81
+ * // },
82
+ * // ],
83
+ * // },
84
+ * // },
74
85
  * // actions: [ // ActionsElementsList
75
86
  * // { // ActionElement Union: only one key present
76
87
  * // button: { // ButtonElement
@@ -173,6 +184,17 @@ declare const GetWidgetCommand_base: {
173
184
  * // text: "STRING_VALUE",
174
185
  * // elements: [
175
186
  * // {// Union: only one key present
187
+ * // template: {
188
+ * // whatsapp: {
189
+ * // name: "STRING_VALUE", // required
190
+ * // parameters: [ // required
191
+ * // {
192
+ * // name: "STRING_VALUE", // required
193
+ * // value: "STRING_VALUE", // required
194
+ * // },
195
+ * // ],
196
+ * // },
197
+ * // },
176
198
  * // actions: [
177
199
  * // {// Union: only one key present
178
200
  * // button: {
@@ -73,6 +73,17 @@ declare const ListWidgetsCommand_base: {
73
73
  * // text: "STRING_VALUE",
74
74
  * // elements: [ // ElementsList
75
75
  * // { // Element Union: only one key present
76
+ * // template: { // MessageTemplateConfig
77
+ * // whatsapp: { // TemplateWithParameters
78
+ * // name: "STRING_VALUE", // required
79
+ * // parameters: [ // ListTemplateParameter // required
80
+ * // { // TemplateParameter
81
+ * // name: "STRING_VALUE", // required
82
+ * // value: "STRING_VALUE", // required
83
+ * // },
84
+ * // ],
85
+ * // },
86
+ * // },
76
87
  * // actions: [ // ActionsElementsList
77
88
  * // { // ActionElement Union: only one key present
78
89
  * // button: { // ButtonElement
@@ -175,6 +186,17 @@ declare const ListWidgetsCommand_base: {
175
186
  * // text: "STRING_VALUE",
176
187
  * // elements: [
177
188
  * // {// Union: only one key present
189
+ * // template: {
190
+ * // whatsapp: {
191
+ * // name: "STRING_VALUE", // required
192
+ * // parameters: [ // required
193
+ * // {
194
+ * // name: "STRING_VALUE", // required
195
+ * // value: "STRING_VALUE", // required
196
+ * // },
197
+ * // ],
198
+ * // },
199
+ * // },
178
200
  * // actions: [
179
201
  * // {// Union: only one key present
180
202
  * // button: {
@@ -117,6 +117,8 @@ declare const RescheduleCalendarEventCommand_base: {
117
117
  * // whatsappStatus: "24h_channel_closed",
118
118
  * // broadcast: true || false,
119
119
  * // external: true || false,
120
+ * // autoRecord: true || false,
121
+ * // transcriptionLanguage: "STRING_VALUE",
120
122
  * // channelId: "STRING_VALUE", // required
121
123
  * // channelType: "direct" || "group", // required
122
124
  * // memberCount: Number("int"), // required
@@ -114,6 +114,8 @@ declare const ScheduleCalendarEventCommand_base: {
114
114
  * // whatsappStatus: "24h_channel_closed",
115
115
  * // broadcast: true || false,
116
116
  * // external: true || false,
117
+ * // autoRecord: true || false,
118
+ * // transcriptionLanguage: "STRING_VALUE",
117
119
  * // channelId: "STRING_VALUE", // required
118
120
  * // channelType: "direct" || "group", // required
119
121
  * // memberCount: Number("int"), // required
@@ -65,6 +65,17 @@ declare const UpdateWidgetCommand_base: {
65
65
  * text: "STRING_VALUE",
66
66
  * elements: [ // ElementsList
67
67
  * { // Element Union: only one key present
68
+ * template: { // MessageTemplateConfig
69
+ * whatsapp: { // TemplateWithParameters
70
+ * name: "STRING_VALUE", // required
71
+ * parameters: [ // ListTemplateParameter // required
72
+ * { // TemplateParameter
73
+ * name: "STRING_VALUE", // required
74
+ * value: "STRING_VALUE", // required
75
+ * },
76
+ * ],
77
+ * },
78
+ * },
68
79
  * actions: [ // ActionsElementsList
69
80
  * { // ActionElement Union: only one key present
70
81
  * button: { // ButtonElement
@@ -167,6 +178,17 @@ declare const UpdateWidgetCommand_base: {
167
178
  * text: "STRING_VALUE",
168
179
  * elements: [
169
180
  * {// Union: only one key present
181
+ * template: {
182
+ * whatsapp: {
183
+ * name: "STRING_VALUE", // required
184
+ * parameters: [ // required
185
+ * {
186
+ * name: "STRING_VALUE", // required
187
+ * value: "STRING_VALUE", // required
188
+ * },
189
+ * ],
190
+ * },
191
+ * },
170
192
  * actions: [
171
193
  * {// Union: only one key present
172
194
  * button: {
@@ -300,6 +322,17 @@ declare const UpdateWidgetCommand_base: {
300
322
  * // text: "STRING_VALUE",
301
323
  * // elements: [ // ElementsList
302
324
  * // { // Element Union: only one key present
325
+ * // template: { // MessageTemplateConfig
326
+ * // whatsapp: { // TemplateWithParameters
327
+ * // name: "STRING_VALUE", // required
328
+ * // parameters: [ // ListTemplateParameter // required
329
+ * // { // TemplateParameter
330
+ * // name: "STRING_VALUE", // required
331
+ * // value: "STRING_VALUE", // required
332
+ * // },
333
+ * // ],
334
+ * // },
335
+ * // },
303
336
  * // actions: [ // ActionsElementsList
304
337
  * // { // ActionElement Union: only one key present
305
338
  * // button: { // ButtonElement
@@ -402,6 +435,17 @@ declare const UpdateWidgetCommand_base: {
402
435
  * // text: "STRING_VALUE",
403
436
  * // elements: [
404
437
  * // {// Union: only one key present
438
+ * // template: {
439
+ * // whatsapp: {
440
+ * // name: "STRING_VALUE", // required
441
+ * // parameters: [ // required
442
+ * // {
443
+ * // name: "STRING_VALUE", // required
444
+ * // value: "STRING_VALUE", // required
445
+ * // },
446
+ * // ],
447
+ * // },
448
+ * // },
405
449
  * // actions: [
406
450
  * // {// Union: only one key present
407
451
  * // button: {
@@ -193,6 +193,20 @@ export interface Template {
193
193
  subCategory?: string | undefined;
194
194
  id: string;
195
195
  }
196
+ /**
197
+ * @public
198
+ */
199
+ export interface TemplateParameter {
200
+ name: string;
201
+ value: string;
202
+ }
203
+ /**
204
+ * @public
205
+ */
206
+ export interface TemplateWithParameters {
207
+ name: string;
208
+ parameters: (TemplateParameter)[];
209
+ }
196
210
  /**
197
211
  * @public
198
212
  */
@@ -523,6 +537,8 @@ export interface Channel {
523
537
  whatsappStatus?: ChannelWhatsAppStatus | undefined;
524
538
  broadcast?: boolean | undefined;
525
539
  external?: boolean | undefined;
540
+ autoRecord?: boolean | undefined;
541
+ transcriptionLanguage?: string | undefined;
526
542
  channelId: string;
527
543
  channelType: ChannelType;
528
544
  memberCount: number;
@@ -533,12 +549,24 @@ export interface Channel {
533
549
  /**
534
550
  * @public
535
551
  */
536
- export type Element = Element.ActionsMember | Element.$UnknownMember;
552
+ export interface MessageTemplateConfig {
553
+ whatsapp?: TemplateWithParameters | undefined;
554
+ }
555
+ /**
556
+ * @public
557
+ */
558
+ export type Element = Element.ActionsMember | Element.TemplateMember | Element.$UnknownMember;
537
559
  /**
538
560
  * @public
539
561
  */
540
562
  export declare namespace Element {
563
+ interface TemplateMember {
564
+ template: MessageTemplateConfig;
565
+ actions?: never;
566
+ $unknown?: never;
567
+ }
541
568
  interface ActionsMember {
569
+ template?: never;
542
570
  actions: (ActionElement)[];
543
571
  $unknown?: never;
544
572
  }
@@ -546,10 +574,12 @@ export declare namespace Element {
546
574
  * @public
547
575
  */
548
576
  interface $UnknownMember {
577
+ template?: never;
549
578
  actions?: never;
550
579
  $unknown: [string, any];
551
580
  }
552
581
  interface Visitor<T> {
582
+ template: (value: MessageTemplateConfig) => T;
553
583
  actions: (value: (ActionElement)[]) => T;
554
584
  _: (name: string, value: any) => T;
555
585
  }
@@ -1336,6 +1366,11 @@ export interface KiteConfig {
1336
1366
  * @public
1337
1367
  */
1338
1368
  targetId: string;
1369
+ /**
1370
+ * The unique identifier of the organization widget belongs to (example: it_w119845).
1371
+ * @public
1372
+ */
1373
+ company: string;
1339
1374
  /**
1340
1375
  * The unique identifier of the route for time-based configuration.
1341
1376
  * @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.23",
4
+ "version": "1.1.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",