@vendasta/conversation 0.27.0 → 0.29.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.
Files changed (37) hide show
  1. package/esm2020/lib/_generated/host.service.mjs +3 -3
  2. package/esm2020/lib/_internal/conversation.api.service.mjs +15 -6
  3. package/esm2020/lib/_internal/enums/common.enum.mjs +6 -1
  4. package/esm2020/lib/_internal/enums/conversation-view.enum.mjs +12 -0
  5. package/esm2020/lib/_internal/enums/conversation.enum.mjs +2 -1
  6. package/esm2020/lib/_internal/enums/index.mjs +3 -2
  7. package/esm2020/lib/_internal/inbox.api.service.mjs +3 -3
  8. package/esm2020/lib/_internal/interfaces/api.interface.mjs +1 -1
  9. package/esm2020/lib/_internal/interfaces/conversation-view.interface.mjs +8 -0
  10. package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
  11. package/esm2020/lib/_internal/objects/annotations.mjs +6 -6
  12. package/esm2020/lib/_internal/objects/api.mjs +353 -280
  13. package/esm2020/lib/_internal/objects/common.mjs +7 -7
  14. package/esm2020/lib/_internal/objects/configuration.mjs +7 -7
  15. package/esm2020/lib/_internal/objects/conversation-view.mjs +49 -0
  16. package/esm2020/lib/_internal/objects/conversation.mjs +19 -19
  17. package/esm2020/lib/_internal/objects/index.mjs +3 -2
  18. package/esm2020/lib/_internal/objects/message.mjs +13 -13
  19. package/esm2020/lib/_internal/objects/participant.mjs +18 -18
  20. package/fesm2015/vendasta-conversation.mjs +522 -375
  21. package/fesm2015/vendasta-conversation.mjs.map +1 -1
  22. package/fesm2020/vendasta-conversation.mjs +522 -375
  23. package/fesm2020/vendasta-conversation.mjs.map +1 -1
  24. package/lib/_internal/conversation.api.service.d.ts +4 -2
  25. package/lib/_internal/enums/common.enum.d.ts +4 -0
  26. package/lib/_internal/enums/conversation-view.enum.d.ts +4 -0
  27. package/lib/_internal/enums/conversation.enum.d.ts +2 -1
  28. package/lib/_internal/enums/index.d.ts +2 -1
  29. package/lib/_internal/interfaces/api.interface.d.ts +12 -0
  30. package/lib/_internal/interfaces/conversation-view.interface.d.ts +8 -0
  31. package/lib/_internal/interfaces/index.d.ts +2 -1
  32. package/lib/_internal/objects/api.d.ts +21 -0
  33. package/lib/_internal/objects/conversation-view.d.ts +13 -0
  34. package/lib/_internal/objects/index.d.ts +2 -1
  35. package/package.json +5 -5
  36. package/src/README.md +0 -1
  37. /package/{vendasta-conversation.d.ts → index.d.ts} +0 -0
@@ -44,6 +44,11 @@ var GlobalParticipantType;
44
44
  GlobalParticipantType[GlobalParticipantType["GLOBAL_PARTICIPANT_TYPE_VENDOR"] = 7] = "GLOBAL_PARTICIPANT_TYPE_VENDOR";
45
45
  GlobalParticipantType[GlobalParticipantType["GLOBAL_PARTICIPANT_TYPE_OPENAI_BOT"] = 8] = "GLOBAL_PARTICIPANT_TYPE_OPENAI_BOT";
46
46
  })(GlobalParticipantType || (GlobalParticipantType = {}));
47
+ var SortDirection;
48
+ (function (SortDirection) {
49
+ SortDirection[SortDirection["SORT_DIRECTION_DESCENDING"] = 0] = "SORT_DIRECTION_DESCENDING";
50
+ SortDirection[SortDirection["SORT_DIRECTION_ASCENDING"] = 1] = "SORT_DIRECTION_ASCENDING";
51
+ })(SortDirection || (SortDirection = {}));
47
52
 
48
53
  // *********************************
49
54
  // Code generated by sdkgen
@@ -59,6 +64,7 @@ var ConversationChannel;
59
64
  ConversationChannel[ConversationChannel["CONVERSATION_CHANNEL_FACEBOOK"] = 3] = "CONVERSATION_CHANNEL_FACEBOOK";
60
65
  ConversationChannel[ConversationChannel["CONVERSATION_CHANNEL_GOOGLE_MESSAGES"] = 4] = "CONVERSATION_CHANNEL_GOOGLE_MESSAGES";
61
66
  ConversationChannel[ConversationChannel["CONVERSATION_CHANNEL_OPENAI"] = 5] = "CONVERSATION_CHANNEL_OPENAI";
67
+ ConversationChannel[ConversationChannel["CONVERSATION_CHANNEL_EMAIL"] = 6] = "CONVERSATION_CHANNEL_EMAIL";
62
68
  })(ConversationChannel || (ConversationChannel = {}));
63
69
  var PlatformLocation;
64
70
  (function (PlatformLocation) {
@@ -90,6 +96,18 @@ var ParticipantType;
90
96
  ParticipantType[ParticipantType["PARTICIPANT_TYPE_OPENAI_BOT"] = 8] = "PARTICIPANT_TYPE_OPENAI_BOT";
91
97
  })(ParticipantType || (ParticipantType = {}));
92
98
 
99
+ // *********************************
100
+ // Code generated by sdkgen
101
+ // DO NOT EDIT!.
102
+ //
103
+ // Enums.
104
+ // *********************************
105
+ var ViewType;
106
+ (function (ViewType) {
107
+ ViewType[ViewType["VIEW_TYPE_UNDEFINED"] = 0] = "VIEW_TYPE_UNDEFINED";
108
+ ViewType[ViewType["VIEW_TYPE_FOLLOWING"] = 1] = "VIEW_TYPE_FOLLOWING";
109
+ })(ViewType || (ViewType = {}));
110
+
93
111
  // *********************************
94
112
  // Code generated by sdkgen
95
113
  // DO NOT EDIT!.
@@ -111,24 +129,18 @@ var SetLastSeenRequestStatus;
111
129
 
112
130
  // *********************************
113
131
 
114
- function enumStringToValue$6(enumRef, value) {
132
+ function enumStringToValue$7(enumRef, value) {
115
133
  if (typeof value === 'number') {
116
134
  return value;
117
135
  }
118
136
  return enumRef[value];
119
137
  }
120
138
  class Message {
121
- constructor(kwargs) {
122
- if (!kwargs) {
123
- return;
124
- }
125
- Object.assign(this, kwargs);
126
- }
127
139
  static fromProto(proto) {
128
140
  let m = new Message();
129
141
  m = Object.assign(m, proto);
130
142
  if (proto.type) {
131
- m.type = enumStringToValue$6(MessageType, proto.type);
143
+ m.type = enumStringToValue$7(MessageType, proto.type);
132
144
  }
133
145
  if (proto.created) {
134
146
  m.created = new Date(proto.created);
@@ -141,6 +153,12 @@ class Message {
141
153
  }
142
154
  return m;
143
155
  }
156
+ constructor(kwargs) {
157
+ if (!kwargs) {
158
+ return;
159
+ }
160
+ Object.assign(this, kwargs);
161
+ }
144
162
  toApiJson() {
145
163
  const toReturn = {};
146
164
  if (typeof this.messageId !== 'undefined') {
@@ -180,23 +198,23 @@ class Message {
180
198
  }
181
199
  }
182
200
  class ParticipantMessageStatus {
183
- constructor(kwargs) {
184
- if (!kwargs) {
185
- return;
186
- }
187
- Object.assign(this, kwargs);
188
- }
189
201
  static fromProto(proto) {
190
202
  let m = new ParticipantMessageStatus();
191
203
  m = Object.assign(m, proto);
192
204
  if (proto.status) {
193
- m.status = enumStringToValue$6(MessageStatus, proto.status);
205
+ m.status = enumStringToValue$7(MessageStatus, proto.status);
194
206
  }
195
207
  if (proto.updated) {
196
208
  m.updated = new Date(proto.updated);
197
209
  }
198
210
  return m;
199
211
  }
212
+ constructor(kwargs) {
213
+ if (!kwargs) {
214
+ return;
215
+ }
216
+ Object.assign(this, kwargs);
217
+ }
200
218
  toApiJson() {
201
219
  const toReturn = {};
202
220
  if (typeof this.participantId !== 'undefined') {
@@ -215,27 +233,27 @@ class ParticipantMessageStatus {
215
233
  }
216
234
  }
217
235
 
218
- function enumStringToValue$5(enumRef, value) {
236
+ function enumStringToValue$6(enumRef, value) {
219
237
  if (typeof value === 'number') {
220
238
  return value;
221
239
  }
222
240
  return enumRef[value];
223
241
  }
224
242
  class SubjectParticipant {
225
- constructor(kwargs) {
226
- if (!kwargs) {
227
- return;
228
- }
229
- Object.assign(this, kwargs);
230
- }
231
243
  static fromProto(proto) {
232
244
  let m = new SubjectParticipant();
233
245
  m = Object.assign(m, proto);
234
246
  if (proto.participantType) {
235
- m.participantType = enumStringToValue$5(GlobalParticipantType, proto.participantType);
247
+ m.participantType = enumStringToValue$6(GlobalParticipantType, proto.participantType);
236
248
  }
237
249
  return m;
238
250
  }
251
+ constructor(kwargs) {
252
+ if (!kwargs) {
253
+ return;
254
+ }
255
+ Object.assign(this, kwargs);
256
+ }
239
257
  toApiJson() {
240
258
  const toReturn = {};
241
259
  if (typeof this.participantType !== 'undefined') {
@@ -248,24 +266,18 @@ class SubjectParticipant {
248
266
  }
249
267
  }
250
268
 
251
- function enumStringToValue$4(enumRef, value) {
269
+ function enumStringToValue$5(enumRef, value) {
252
270
  if (typeof value === 'number') {
253
271
  return value;
254
272
  }
255
273
  return enumRef[value];
256
274
  }
257
275
  class Conversation {
258
- constructor(kwargs) {
259
- if (!kwargs) {
260
- return;
261
- }
262
- Object.assign(this, kwargs);
263
- }
264
276
  static fromProto(proto) {
265
277
  let m = new Conversation();
266
278
  m = Object.assign(m, proto);
267
279
  if (proto.channel) {
268
- m.channel = enumStringToValue$4(ConversationChannel, proto.channel);
280
+ m.channel = enumStringToValue$5(ConversationChannel, proto.channel);
269
281
  }
270
282
  if (proto.created) {
271
283
  m.created = new Date(proto.created);
@@ -280,13 +292,19 @@ class Conversation {
280
292
  m.latestMsgSentTime = new Date(proto.latestMsgSentTime);
281
293
  }
282
294
  if (proto.originLocation) {
283
- m.originLocation = enumStringToValue$4(PlatformLocation, proto.originLocation);
295
+ m.originLocation = enumStringToValue$5(PlatformLocation, proto.originLocation);
284
296
  }
285
297
  if (proto.lastSeenByParticipant) {
286
298
  m.lastSeenByParticipant = proto.lastSeenByParticipant.map(LastSeenByParticipant.fromProto);
287
299
  }
288
300
  return m;
289
301
  }
302
+ constructor(kwargs) {
303
+ if (!kwargs) {
304
+ return;
305
+ }
306
+ Object.assign(this, kwargs);
307
+ }
290
308
  toApiJson() {
291
309
  const toReturn = {};
292
310
  if (typeof this.conversationId !== 'undefined') {
@@ -326,12 +344,6 @@ class Conversation {
326
344
  }
327
345
  }
328
346
  class ConversationKey {
329
- constructor(kwargs) {
330
- if (!kwargs) {
331
- return;
332
- }
333
- Object.assign(this, kwargs);
334
- }
335
347
  static fromProto(proto) {
336
348
  let m = new ConversationKey();
337
349
  m = Object.assign(m, proto);
@@ -339,10 +351,16 @@ class ConversationKey {
339
351
  m.subjectParticipants = proto.subjectParticipants.map(SubjectParticipant.fromProto);
340
352
  }
341
353
  if (proto.channel) {
342
- m.channel = enumStringToValue$4(ConversationChannel, proto.channel);
354
+ m.channel = enumStringToValue$5(ConversationChannel, proto.channel);
343
355
  }
344
356
  return m;
345
357
  }
358
+ constructor(kwargs) {
359
+ if (!kwargs) {
360
+ return;
361
+ }
362
+ Object.assign(this, kwargs);
363
+ }
346
364
  toApiJson() {
347
365
  const toReturn = {};
348
366
  if (typeof this.subjectParticipants !== 'undefined' && this.subjectParticipants !== null) {
@@ -358,12 +376,6 @@ class ConversationKey {
358
376
  }
359
377
  }
360
378
  class LastSeenByParticipant {
361
- constructor(kwargs) {
362
- if (!kwargs) {
363
- return;
364
- }
365
- Object.assign(this, kwargs);
366
- }
367
379
  static fromProto(proto) {
368
380
  let m = new LastSeenByParticipant();
369
381
  m = Object.assign(m, proto);
@@ -372,6 +384,12 @@ class LastSeenByParticipant {
372
384
  }
373
385
  return m;
374
386
  }
387
+ constructor(kwargs) {
388
+ if (!kwargs) {
389
+ return;
390
+ }
391
+ Object.assign(this, kwargs);
392
+ }
375
393
  toApiJson() {
376
394
  const toReturn = {};
377
395
  if (typeof this.participantId !== 'undefined') {
@@ -384,24 +402,24 @@ class LastSeenByParticipant {
384
402
  }
385
403
  }
386
404
 
387
- function enumStringToValue$3(enumRef, value) {
405
+ function enumStringToValue$4(enumRef, value) {
388
406
  if (typeof value === 'number') {
389
407
  return value;
390
408
  }
391
409
  return enumRef[value];
392
410
  }
393
411
  class Address {
412
+ static fromProto(proto) {
413
+ let m = new Address();
414
+ m = Object.assign(m, proto);
415
+ return m;
416
+ }
394
417
  constructor(kwargs) {
395
418
  if (!kwargs) {
396
419
  return;
397
420
  }
398
421
  Object.assign(this, kwargs);
399
422
  }
400
- static fromProto(proto) {
401
- let m = new Address();
402
- m = Object.assign(m, proto);
403
- return m;
404
- }
405
423
  toApiJson() {
406
424
  const toReturn = {};
407
425
  if (typeof this.firstLineAddress !== 'undefined') {
@@ -426,20 +444,14 @@ class Address {
426
444
  }
427
445
  }
428
446
  class Participant {
429
- constructor(kwargs) {
430
- if (!kwargs) {
431
- return;
432
- }
433
- Object.assign(this, kwargs);
434
- }
435
447
  static fromProto(proto) {
436
448
  let m = new Participant();
437
449
  m = Object.assign(m, proto);
438
450
  if (proto.location) {
439
- m.location = enumStringToValue$3(PlatformLocation, proto.location);
451
+ m.location = enumStringToValue$4(PlatformLocation, proto.location);
440
452
  }
441
453
  if (proto.channel) {
442
- m.channel = enumStringToValue$3(ConversationChannel, proto.channel);
454
+ m.channel = enumStringToValue$4(ConversationChannel, proto.channel);
443
455
  }
444
456
  if (proto.created) {
445
457
  m.created = new Date(proto.created);
@@ -451,13 +463,19 @@ class Participant {
451
463
  m.deleted = new Date(proto.deleted);
452
464
  }
453
465
  if (proto.participantType) {
454
- m.participantType = enumStringToValue$3(ParticipantType, proto.participantType);
466
+ m.participantType = enumStringToValue$4(ParticipantType, proto.participantType);
455
467
  }
456
468
  if (proto.address) {
457
469
  m.address = Address.fromProto(proto.address);
458
470
  }
459
471
  return m;
460
472
  }
473
+ constructor(kwargs) {
474
+ if (!kwargs) {
475
+ return;
476
+ }
477
+ Object.assign(this, kwargs);
478
+ }
461
479
  toApiJson() {
462
480
  const toReturn = {};
463
481
  if (typeof this.participantId !== 'undefined') {
@@ -518,26 +536,26 @@ class Participant {
518
536
  }
519
537
  }
520
538
  class ParticipantKey {
521
- constructor(kwargs) {
522
- if (!kwargs) {
523
- return;
524
- }
525
- Object.assign(this, kwargs);
526
- }
527
539
  static fromProto(proto) {
528
540
  let m = new ParticipantKey();
529
541
  m = Object.assign(m, proto);
530
542
  if (proto.location) {
531
- m.location = enumStringToValue$3(PlatformLocation, proto.location);
543
+ m.location = enumStringToValue$4(PlatformLocation, proto.location);
532
544
  }
533
545
  if (proto.channels) {
534
- m.channels = proto.channels.map((v) => enumStringToValue$3(ConversationChannel, v));
546
+ m.channels = proto.channels.map((v) => enumStringToValue$4(ConversationChannel, v));
535
547
  }
536
548
  if (proto.participantType) {
537
- m.participantType = enumStringToValue$3(GlobalParticipantType, proto.participantType);
549
+ m.participantType = enumStringToValue$4(GlobalParticipantType, proto.participantType);
538
550
  }
539
551
  return m;
540
552
  }
553
+ constructor(kwargs) {
554
+ if (!kwargs) {
555
+ return;
556
+ }
557
+ Object.assign(this, kwargs);
558
+ }
541
559
  toApiJson() {
542
560
  const toReturn = {};
543
561
  if (typeof this.internalParticipantId !== 'undefined') {
@@ -562,24 +580,24 @@ class ParticipantKey {
562
580
  }
563
581
  }
564
582
 
565
- function enumStringToValue$2(enumRef, value) {
583
+ function enumStringToValue$3(enumRef, value) {
566
584
  if (typeof value === 'number') {
567
585
  return value;
568
586
  }
569
587
  return enumRef[value];
570
588
  }
571
589
  class Access {
590
+ static fromProto(proto) {
591
+ let m = new Access();
592
+ m = Object.assign(m, proto);
593
+ return m;
594
+ }
572
595
  constructor(kwargs) {
573
596
  if (!kwargs) {
574
597
  return;
575
598
  }
576
599
  Object.assign(this, kwargs);
577
600
  }
578
- static fromProto(proto) {
579
- let m = new Access();
580
- m = Object.assign(m, proto);
581
- return m;
582
- }
583
601
  toApiJson() {
584
602
  const toReturn = {};
585
603
  if (typeof this.scope !== 'undefined') {
@@ -592,19 +610,13 @@ class Access {
592
610
  }
593
611
  }
594
612
 
595
- function enumStringToValue$1(enumRef, value) {
613
+ function enumStringToValue$2(enumRef, value) {
596
614
  if (typeof value === 'number') {
597
615
  return value;
598
616
  }
599
617
  return enumRef[value];
600
618
  }
601
619
  class Configuration {
602
- constructor(kwargs) {
603
- if (!kwargs) {
604
- return;
605
- }
606
- Object.assign(this, kwargs);
607
- }
608
620
  static fromProto(proto) {
609
621
  let m = new Configuration();
610
622
  m = Object.assign(m, proto);
@@ -619,6 +631,12 @@ class Configuration {
619
631
  }
620
632
  return m;
621
633
  }
634
+ constructor(kwargs) {
635
+ if (!kwargs) {
636
+ return;
637
+ }
638
+ Object.assign(this, kwargs);
639
+ }
622
640
  toApiJson() {
623
641
  const toReturn = {};
624
642
  if (typeof this.subjectParticipant !== 'undefined' && this.subjectParticipant !== null) {
@@ -640,19 +658,84 @@ class Configuration {
640
658
  }
641
659
  }
642
660
 
661
+ function enumStringToValue$1(enumRef, value) {
662
+ if (typeof value === 'number') {
663
+ return value;
664
+ }
665
+ return enumRef[value];
666
+ }
667
+ class ConversationView {
668
+ static fromProto(proto) {
669
+ let m = new ConversationView();
670
+ m = Object.assign(m, proto);
671
+ if (proto.viewType) {
672
+ m.viewType = enumStringToValue$1(ViewType, proto.viewType);
673
+ }
674
+ if (proto.created) {
675
+ m.created = new Date(proto.created);
676
+ }
677
+ if (proto.updated) {
678
+ m.updated = new Date(proto.updated);
679
+ }
680
+ return m;
681
+ }
682
+ constructor(kwargs) {
683
+ if (!kwargs) {
684
+ return;
685
+ }
686
+ Object.assign(this, kwargs);
687
+ }
688
+ toApiJson() {
689
+ const toReturn = {};
690
+ if (typeof this.viewId !== 'undefined') {
691
+ toReturn['viewId'] = this.viewId;
692
+ }
693
+ if (typeof this.participantId !== 'undefined') {
694
+ toReturn['participantId'] = this.participantId;
695
+ }
696
+ if (typeof this.viewType !== 'undefined') {
697
+ toReturn['viewType'] = this.viewType;
698
+ }
699
+ if (typeof this.created !== 'undefined' && this.created !== null) {
700
+ toReturn['created'] = 'toApiJson' in this.created ? this.created.toApiJson() : this.created;
701
+ }
702
+ if (typeof this.updated !== 'undefined' && this.updated !== null) {
703
+ toReturn['updated'] = 'toApiJson' in this.updated ? this.updated.toApiJson() : this.updated;
704
+ }
705
+ return toReturn;
706
+ }
707
+ }
708
+
643
709
  function enumStringToValue(enumRef, value) {
644
710
  if (typeof value === 'number') {
645
711
  return value;
646
712
  }
647
713
  return enumRef[value];
648
714
  }
649
- class AddMultiParticipantsRequest {
715
+ class AddConversationToConversationViewRequest {
716
+ static fromProto(proto) {
717
+ let m = new AddConversationToConversationViewRequest();
718
+ m = Object.assign(m, proto);
719
+ return m;
720
+ }
650
721
  constructor(kwargs) {
651
722
  if (!kwargs) {
652
723
  return;
653
724
  }
654
725
  Object.assign(this, kwargs);
655
726
  }
727
+ toApiJson() {
728
+ const toReturn = {};
729
+ if (typeof this.viewId !== 'undefined') {
730
+ toReturn['viewId'] = this.viewId;
731
+ }
732
+ if (typeof this.conversationId !== 'undefined') {
733
+ toReturn['conversationId'] = this.conversationId;
734
+ }
735
+ return toReturn;
736
+ }
737
+ }
738
+ class AddMultiParticipantsRequest {
656
739
  static fromProto(proto) {
657
740
  let m = new AddMultiParticipantsRequest();
658
741
  m = Object.assign(m, proto);
@@ -661,6 +744,12 @@ class AddMultiParticipantsRequest {
661
744
  }
662
745
  return m;
663
746
  }
747
+ constructor(kwargs) {
748
+ if (!kwargs) {
749
+ return;
750
+ }
751
+ Object.assign(this, kwargs);
752
+ }
664
753
  toApiJson() {
665
754
  const toReturn = {};
666
755
  if (typeof this.conversationId !== 'undefined') {
@@ -673,12 +762,6 @@ class AddMultiParticipantsRequest {
673
762
  }
674
763
  }
675
764
  class AddMultiParticipantsResponse {
676
- constructor(kwargs) {
677
- if (!kwargs) {
678
- return;
679
- }
680
- Object.assign(this, kwargs);
681
- }
682
765
  static fromProto(proto) {
683
766
  let m = new AddMultiParticipantsResponse();
684
767
  m = Object.assign(m, proto);
@@ -687,6 +770,12 @@ class AddMultiParticipantsResponse {
687
770
  }
688
771
  return m;
689
772
  }
773
+ constructor(kwargs) {
774
+ if (!kwargs) {
775
+ return;
776
+ }
777
+ Object.assign(this, kwargs);
778
+ }
690
779
  toApiJson() {
691
780
  const toReturn = {};
692
781
  if (typeof this.participants !== 'undefined' && this.participants !== null) {
@@ -696,12 +785,6 @@ class AddMultiParticipantsResponse {
696
785
  }
697
786
  }
698
787
  class ConversationMessageCount {
699
- constructor(kwargs) {
700
- if (!kwargs) {
701
- return;
702
- }
703
- Object.assign(this, kwargs);
704
- }
705
788
  static fromProto(proto) {
706
789
  let m = new ConversationMessageCount();
707
790
  m = Object.assign(m, proto);
@@ -710,6 +793,12 @@ class ConversationMessageCount {
710
793
  }
711
794
  return m;
712
795
  }
796
+ constructor(kwargs) {
797
+ if (!kwargs) {
798
+ return;
799
+ }
800
+ Object.assign(this, kwargs);
801
+ }
713
802
  toApiJson() {
714
803
  const toReturn = {};
715
804
  if (typeof this.conversationId !== 'undefined') {
@@ -722,12 +811,6 @@ class ConversationMessageCount {
722
811
  }
723
812
  }
724
813
  class LookupConversationsResponseConversations {
725
- constructor(kwargs) {
726
- if (!kwargs) {
727
- return;
728
- }
729
- Object.assign(this, kwargs);
730
- }
731
814
  static fromProto(proto) {
732
815
  let m = new LookupConversationsResponseConversations();
733
816
  m = Object.assign(m, proto);
@@ -739,6 +822,12 @@ class LookupConversationsResponseConversations {
739
822
  }
740
823
  return m;
741
824
  }
825
+ constructor(kwargs) {
826
+ if (!kwargs) {
827
+ return;
828
+ }
829
+ Object.assign(this, kwargs);
830
+ }
742
831
  toApiJson() {
743
832
  const toReturn = {};
744
833
  if (typeof this.conversation !== 'undefined' && this.conversation !== null) {
@@ -751,12 +840,6 @@ class LookupConversationsResponseConversations {
751
840
  }
752
841
  }
753
842
  class GetMultiConversationMessageCountResponseCountsEntry {
754
- constructor(kwargs) {
755
- if (!kwargs) {
756
- return;
757
- }
758
- Object.assign(this, kwargs);
759
- }
760
843
  static fromProto(proto) {
761
844
  let m = new GetMultiConversationMessageCountResponseCountsEntry();
762
845
  m = Object.assign(m, proto);
@@ -765,10 +848,16 @@ class GetMultiConversationMessageCountResponseCountsEntry {
765
848
  }
766
849
  return m;
767
850
  }
768
- toApiJson() {
769
- const toReturn = {};
770
- if (typeof this.key !== 'undefined') {
771
- toReturn['key'] = this.key;
851
+ constructor(kwargs) {
852
+ if (!kwargs) {
853
+ return;
854
+ }
855
+ Object.assign(this, kwargs);
856
+ }
857
+ toApiJson() {
858
+ const toReturn = {};
859
+ if (typeof this.key !== 'undefined') {
860
+ toReturn['key'] = this.key;
772
861
  }
773
862
  if (typeof this.value !== 'undefined') {
774
863
  toReturn['value'] = this.value;
@@ -777,12 +866,6 @@ class GetMultiConversationMessageCountResponseCountsEntry {
777
866
  }
778
867
  }
779
868
  class CreateConversationRequest {
780
- constructor(kwargs) {
781
- if (!kwargs) {
782
- return;
783
- }
784
- Object.assign(this, kwargs);
785
- }
786
869
  static fromProto(proto) {
787
870
  let m = new CreateConversationRequest();
788
871
  m = Object.assign(m, proto);
@@ -803,6 +886,12 @@ class CreateConversationRequest {
803
886
  }
804
887
  return m;
805
888
  }
889
+ constructor(kwargs) {
890
+ if (!kwargs) {
891
+ return;
892
+ }
893
+ Object.assign(this, kwargs);
894
+ }
806
895
  toApiJson() {
807
896
  const toReturn = {};
808
897
  if (typeof this.participants !== 'undefined' && this.participants !== null) {
@@ -830,12 +919,6 @@ class CreateConversationRequest {
830
919
  }
831
920
  }
832
921
  class CreateConversationResponse {
833
- constructor(kwargs) {
834
- if (!kwargs) {
835
- return;
836
- }
837
- Object.assign(this, kwargs);
838
- }
839
922
  static fromProto(proto) {
840
923
  let m = new CreateConversationResponse();
841
924
  m = Object.assign(m, proto);
@@ -847,6 +930,12 @@ class CreateConversationResponse {
847
930
  }
848
931
  return m;
849
932
  }
933
+ constructor(kwargs) {
934
+ if (!kwargs) {
935
+ return;
936
+ }
937
+ Object.assign(this, kwargs);
938
+ }
850
939
  toApiJson() {
851
940
  const toReturn = {};
852
941
  if (typeof this.conversation !== 'undefined' && this.conversation !== null) {
@@ -859,12 +948,6 @@ class CreateConversationResponse {
859
948
  }
860
949
  }
861
950
  class CreateMultiMessagesRequest {
862
- constructor(kwargs) {
863
- if (!kwargs) {
864
- return;
865
- }
866
- Object.assign(this, kwargs);
867
- }
868
951
  static fromProto(proto) {
869
952
  let m = new CreateMultiMessagesRequest();
870
953
  m = Object.assign(m, proto);
@@ -876,6 +959,12 @@ class CreateMultiMessagesRequest {
876
959
  }
877
960
  return m;
878
961
  }
962
+ constructor(kwargs) {
963
+ if (!kwargs) {
964
+ return;
965
+ }
966
+ Object.assign(this, kwargs);
967
+ }
879
968
  toApiJson() {
880
969
  const toReturn = {};
881
970
  if (typeof this.messages !== 'undefined' && this.messages !== null) {
@@ -888,17 +977,17 @@ class CreateMultiMessagesRequest {
888
977
  }
889
978
  }
890
979
  class MetadataDataEntry {
980
+ static fromProto(proto) {
981
+ let m = new MetadataDataEntry();
982
+ m = Object.assign(m, proto);
983
+ return m;
984
+ }
891
985
  constructor(kwargs) {
892
986
  if (!kwargs) {
893
987
  return;
894
988
  }
895
989
  Object.assign(this, kwargs);
896
990
  }
897
- static fromProto(proto) {
898
- let m = new MetadataDataEntry();
899
- m = Object.assign(m, proto);
900
- return m;
901
- }
902
991
  toApiJson() {
903
992
  const toReturn = {};
904
993
  if (typeof this.key !== 'undefined') {
@@ -911,17 +1000,17 @@ class MetadataDataEntry {
911
1000
  }
912
1001
  }
913
1002
  class DeleteConversationRequest {
1003
+ static fromProto(proto) {
1004
+ let m = new DeleteConversationRequest();
1005
+ m = Object.assign(m, proto);
1006
+ return m;
1007
+ }
914
1008
  constructor(kwargs) {
915
1009
  if (!kwargs) {
916
1010
  return;
917
1011
  }
918
1012
  Object.assign(this, kwargs);
919
1013
  }
920
- static fromProto(proto) {
921
- let m = new DeleteConversationRequest();
922
- m = Object.assign(m, proto);
923
- return m;
924
- }
925
1014
  toApiJson() {
926
1015
  const toReturn = {};
927
1016
  if (typeof this.conversationId !== 'undefined') {
@@ -931,17 +1020,17 @@ class DeleteConversationRequest {
931
1020
  }
932
1021
  }
933
1022
  class DeleteMessageRequest {
1023
+ static fromProto(proto) {
1024
+ let m = new DeleteMessageRequest();
1025
+ m = Object.assign(m, proto);
1026
+ return m;
1027
+ }
934
1028
  constructor(kwargs) {
935
1029
  if (!kwargs) {
936
1030
  return;
937
1031
  }
938
1032
  Object.assign(this, kwargs);
939
1033
  }
940
- static fromProto(proto) {
941
- let m = new DeleteMessageRequest();
942
- m = Object.assign(m, proto);
943
- return m;
944
- }
945
1034
  toApiJson() {
946
1035
  const toReturn = {};
947
1036
  if (typeof this.messageId !== 'undefined') {
@@ -951,12 +1040,6 @@ class DeleteMessageRequest {
951
1040
  }
952
1041
  }
953
1042
  class GetMultiConversationDetailsResponseDetailedConversation {
954
- constructor(kwargs) {
955
- if (!kwargs) {
956
- return;
957
- }
958
- Object.assign(this, kwargs);
959
- }
960
1043
  static fromProto(proto) {
961
1044
  let m = new GetMultiConversationDetailsResponseDetailedConversation();
962
1045
  m = Object.assign(m, proto);
@@ -971,6 +1054,12 @@ class GetMultiConversationDetailsResponseDetailedConversation {
971
1054
  }
972
1055
  return m;
973
1056
  }
1057
+ constructor(kwargs) {
1058
+ if (!kwargs) {
1059
+ return;
1060
+ }
1061
+ Object.assign(this, kwargs);
1062
+ }
974
1063
  toApiJson() {
975
1064
  const toReturn = {};
976
1065
  if (typeof this.conversation !== 'undefined' && this.conversation !== null) {
@@ -986,12 +1075,6 @@ class GetMultiConversationDetailsResponseDetailedConversation {
986
1075
  }
987
1076
  }
988
1077
  class SearchConversationsResponseDetailedConversation {
989
- constructor(kwargs) {
990
- if (!kwargs) {
991
- return;
992
- }
993
- Object.assign(this, kwargs);
994
- }
995
1078
  static fromProto(proto) {
996
1079
  let m = new SearchConversationsResponseDetailedConversation();
997
1080
  m = Object.assign(m, proto);
@@ -1006,6 +1089,12 @@ class SearchConversationsResponseDetailedConversation {
1006
1089
  }
1007
1090
  return m;
1008
1091
  }
1092
+ constructor(kwargs) {
1093
+ if (!kwargs) {
1094
+ return;
1095
+ }
1096
+ Object.assign(this, kwargs);
1097
+ }
1009
1098
  toApiJson() {
1010
1099
  const toReturn = {};
1011
1100
  if (typeof this.conversation !== 'undefined' && this.conversation !== null) {
@@ -1021,12 +1110,6 @@ class SearchConversationsResponseDetailedConversation {
1021
1110
  }
1022
1111
  }
1023
1112
  class GetConfigurationRequest {
1024
- constructor(kwargs) {
1025
- if (!kwargs) {
1026
- return;
1027
- }
1028
- Object.assign(this, kwargs);
1029
- }
1030
1113
  static fromProto(proto) {
1031
1114
  let m = new GetConfigurationRequest();
1032
1115
  m = Object.assign(m, proto);
@@ -1035,6 +1118,12 @@ class GetConfigurationRequest {
1035
1118
  }
1036
1119
  return m;
1037
1120
  }
1121
+ constructor(kwargs) {
1122
+ if (!kwargs) {
1123
+ return;
1124
+ }
1125
+ Object.assign(this, kwargs);
1126
+ }
1038
1127
  toApiJson() {
1039
1128
  const toReturn = {};
1040
1129
  if (typeof this.subjectParticipant !== 'undefined' && this.subjectParticipant !== null) {
@@ -1044,12 +1133,6 @@ class GetConfigurationRequest {
1044
1133
  }
1045
1134
  }
1046
1135
  class GetConfigurationResponse {
1047
- constructor(kwargs) {
1048
- if (!kwargs) {
1049
- return;
1050
- }
1051
- Object.assign(this, kwargs);
1052
- }
1053
1136
  static fromProto(proto) {
1054
1137
  let m = new GetConfigurationResponse();
1055
1138
  m = Object.assign(m, proto);
@@ -1058,6 +1141,12 @@ class GetConfigurationResponse {
1058
1141
  }
1059
1142
  return m;
1060
1143
  }
1144
+ constructor(kwargs) {
1145
+ if (!kwargs) {
1146
+ return;
1147
+ }
1148
+ Object.assign(this, kwargs);
1149
+ }
1061
1150
  toApiJson() {
1062
1151
  const toReturn = {};
1063
1152
  if (typeof this.configuration !== 'undefined' && this.configuration !== null) {
@@ -1067,12 +1156,6 @@ class GetConfigurationResponse {
1067
1156
  }
1068
1157
  }
1069
1158
  class GetConversationByKeyRequest {
1070
- constructor(kwargs) {
1071
- if (!kwargs) {
1072
- return;
1073
- }
1074
- Object.assign(this, kwargs);
1075
- }
1076
1159
  static fromProto(proto) {
1077
1160
  let m = new GetConversationByKeyRequest();
1078
1161
  m = Object.assign(m, proto);
@@ -1081,6 +1164,12 @@ class GetConversationByKeyRequest {
1081
1164
  }
1082
1165
  return m;
1083
1166
  }
1167
+ constructor(kwargs) {
1168
+ if (!kwargs) {
1169
+ return;
1170
+ }
1171
+ Object.assign(this, kwargs);
1172
+ }
1084
1173
  toApiJson() {
1085
1174
  const toReturn = {};
1086
1175
  if (typeof this.conversationKey !== 'undefined' && this.conversationKey !== null) {
@@ -1090,12 +1179,6 @@ class GetConversationByKeyRequest {
1090
1179
  }
1091
1180
  }
1092
1181
  class GetConversationByKeyResponse {
1093
- constructor(kwargs) {
1094
- if (!kwargs) {
1095
- return;
1096
- }
1097
- Object.assign(this, kwargs);
1098
- }
1099
1182
  static fromProto(proto) {
1100
1183
  let m = new GetConversationByKeyResponse();
1101
1184
  m = Object.assign(m, proto);
@@ -1104,6 +1187,12 @@ class GetConversationByKeyResponse {
1104
1187
  }
1105
1188
  return m;
1106
1189
  }
1190
+ constructor(kwargs) {
1191
+ if (!kwargs) {
1192
+ return;
1193
+ }
1194
+ Object.assign(this, kwargs);
1195
+ }
1107
1196
  toApiJson() {
1108
1197
  const toReturn = {};
1109
1198
  if (typeof this.conversation !== 'undefined' && this.conversation !== null) {
@@ -1113,17 +1202,17 @@ class GetConversationByKeyResponse {
1113
1202
  }
1114
1203
  }
1115
1204
  class GetMessageRequest {
1205
+ static fromProto(proto) {
1206
+ let m = new GetMessageRequest();
1207
+ m = Object.assign(m, proto);
1208
+ return m;
1209
+ }
1116
1210
  constructor(kwargs) {
1117
1211
  if (!kwargs) {
1118
1212
  return;
1119
1213
  }
1120
1214
  Object.assign(this, kwargs);
1121
1215
  }
1122
- static fromProto(proto) {
1123
- let m = new GetMessageRequest();
1124
- m = Object.assign(m, proto);
1125
- return m;
1126
- }
1127
1216
  toApiJson() {
1128
1217
  const toReturn = {};
1129
1218
  if (typeof this.messageId !== 'undefined') {
@@ -1133,12 +1222,6 @@ class GetMessageRequest {
1133
1222
  }
1134
1223
  }
1135
1224
  class GetMultiConfigurationRequest {
1136
- constructor(kwargs) {
1137
- if (!kwargs) {
1138
- return;
1139
- }
1140
- Object.assign(this, kwargs);
1141
- }
1142
1225
  static fromProto(proto) {
1143
1226
  let m = new GetMultiConfigurationRequest();
1144
1227
  m = Object.assign(m, proto);
@@ -1147,6 +1230,12 @@ class GetMultiConfigurationRequest {
1147
1230
  }
1148
1231
  return m;
1149
1232
  }
1233
+ constructor(kwargs) {
1234
+ if (!kwargs) {
1235
+ return;
1236
+ }
1237
+ Object.assign(this, kwargs);
1238
+ }
1150
1239
  toApiJson() {
1151
1240
  const toReturn = {};
1152
1241
  if (typeof this.subjectParticipants !== 'undefined' && this.subjectParticipants !== null) {
@@ -1156,12 +1245,6 @@ class GetMultiConfigurationRequest {
1156
1245
  }
1157
1246
  }
1158
1247
  class GetMultiConfigurationResponse {
1159
- constructor(kwargs) {
1160
- if (!kwargs) {
1161
- return;
1162
- }
1163
- Object.assign(this, kwargs);
1164
- }
1165
1248
  static fromProto(proto) {
1166
1249
  let m = new GetMultiConfigurationResponse();
1167
1250
  m = Object.assign(m, proto);
@@ -1170,6 +1253,12 @@ class GetMultiConfigurationResponse {
1170
1253
  }
1171
1254
  return m;
1172
1255
  }
1256
+ constructor(kwargs) {
1257
+ if (!kwargs) {
1258
+ return;
1259
+ }
1260
+ Object.assign(this, kwargs);
1261
+ }
1173
1262
  toApiJson() {
1174
1263
  const toReturn = {};
1175
1264
  if (typeof this.configurations !== 'undefined' && this.configurations !== null) {
@@ -1179,17 +1268,17 @@ class GetMultiConfigurationResponse {
1179
1268
  }
1180
1269
  }
1181
1270
  class GetMultiConversationDetailsRequest {
1271
+ static fromProto(proto) {
1272
+ let m = new GetMultiConversationDetailsRequest();
1273
+ m = Object.assign(m, proto);
1274
+ return m;
1275
+ }
1182
1276
  constructor(kwargs) {
1183
1277
  if (!kwargs) {
1184
1278
  return;
1185
1279
  }
1186
1280
  Object.assign(this, kwargs);
1187
1281
  }
1188
- static fromProto(proto) {
1189
- let m = new GetMultiConversationDetailsRequest();
1190
- m = Object.assign(m, proto);
1191
- return m;
1192
- }
1193
1282
  toApiJson() {
1194
1283
  const toReturn = {};
1195
1284
  if (typeof this.conversationIds !== 'undefined') {
@@ -1199,12 +1288,6 @@ class GetMultiConversationDetailsRequest {
1199
1288
  }
1200
1289
  }
1201
1290
  class GetMultiConversationDetailsResponse {
1202
- constructor(kwargs) {
1203
- if (!kwargs) {
1204
- return;
1205
- }
1206
- Object.assign(this, kwargs);
1207
- }
1208
1291
  static fromProto(proto) {
1209
1292
  let m = new GetMultiConversationDetailsResponse();
1210
1293
  m = Object.assign(m, proto);
@@ -1213,6 +1296,12 @@ class GetMultiConversationDetailsResponse {
1213
1296
  }
1214
1297
  return m;
1215
1298
  }
1299
+ constructor(kwargs) {
1300
+ if (!kwargs) {
1301
+ return;
1302
+ }
1303
+ Object.assign(this, kwargs);
1304
+ }
1216
1305
  toApiJson() {
1217
1306
  const toReturn = {};
1218
1307
  if (typeof this.conversations !== 'undefined' && this.conversations !== null) {
@@ -1222,17 +1311,17 @@ class GetMultiConversationDetailsResponse {
1222
1311
  }
1223
1312
  }
1224
1313
  class GetMultiConversationMessageCountRequest {
1314
+ static fromProto(proto) {
1315
+ let m = new GetMultiConversationMessageCountRequest();
1316
+ m = Object.assign(m, proto);
1317
+ return m;
1318
+ }
1225
1319
  constructor(kwargs) {
1226
1320
  if (!kwargs) {
1227
1321
  return;
1228
1322
  }
1229
1323
  Object.assign(this, kwargs);
1230
1324
  }
1231
- static fromProto(proto) {
1232
- let m = new GetMultiConversationMessageCountRequest();
1233
- m = Object.assign(m, proto);
1234
- return m;
1235
- }
1236
1325
  toApiJson() {
1237
1326
  const toReturn = {};
1238
1327
  if (typeof this.conversationIds !== 'undefined') {
@@ -1242,12 +1331,6 @@ class GetMultiConversationMessageCountRequest {
1242
1331
  }
1243
1332
  }
1244
1333
  class GetMultiConversationMessageCountResponse {
1245
- constructor(kwargs) {
1246
- if (!kwargs) {
1247
- return;
1248
- }
1249
- Object.assign(this, kwargs);
1250
- }
1251
1334
  static fromProto(proto) {
1252
1335
  let m = new GetMultiConversationMessageCountResponse();
1253
1336
  m = Object.assign(m, proto);
@@ -1259,6 +1342,12 @@ class GetMultiConversationMessageCountResponse {
1259
1342
  }
1260
1343
  return m;
1261
1344
  }
1345
+ constructor(kwargs) {
1346
+ if (!kwargs) {
1347
+ return;
1348
+ }
1349
+ Object.assign(this, kwargs);
1350
+ }
1262
1351
  toApiJson() {
1263
1352
  const toReturn = {};
1264
1353
  if (typeof this.messageCounts !== 'undefined' && this.messageCounts !== null) {
@@ -1271,17 +1360,17 @@ class GetMultiConversationMessageCountResponse {
1271
1360
  }
1272
1361
  }
1273
1362
  class GetMultiMessagesRequest {
1363
+ static fromProto(proto) {
1364
+ let m = new GetMultiMessagesRequest();
1365
+ m = Object.assign(m, proto);
1366
+ return m;
1367
+ }
1274
1368
  constructor(kwargs) {
1275
1369
  if (!kwargs) {
1276
1370
  return;
1277
1371
  }
1278
1372
  Object.assign(this, kwargs);
1279
1373
  }
1280
- static fromProto(proto) {
1281
- let m = new GetMultiMessagesRequest();
1282
- m = Object.assign(m, proto);
1283
- return m;
1284
- }
1285
1374
  toApiJson() {
1286
1375
  const toReturn = {};
1287
1376
  if (typeof this.messageIds !== 'undefined') {
@@ -1294,12 +1383,6 @@ class GetMultiMessagesRequest {
1294
1383
  }
1295
1384
  }
1296
1385
  class GetMultiMessagesResponse {
1297
- constructor(kwargs) {
1298
- if (!kwargs) {
1299
- return;
1300
- }
1301
- Object.assign(this, kwargs);
1302
- }
1303
1386
  static fromProto(proto) {
1304
1387
  let m = new GetMultiMessagesResponse();
1305
1388
  m = Object.assign(m, proto);
@@ -1308,6 +1391,12 @@ class GetMultiMessagesResponse {
1308
1391
  }
1309
1392
  return m;
1310
1393
  }
1394
+ constructor(kwargs) {
1395
+ if (!kwargs) {
1396
+ return;
1397
+ }
1398
+ Object.assign(this, kwargs);
1399
+ }
1311
1400
  toApiJson() {
1312
1401
  const toReturn = {};
1313
1402
  if (typeof this.messages !== 'undefined' && this.messages !== null) {
@@ -1317,17 +1406,17 @@ class GetMultiMessagesResponse {
1317
1406
  }
1318
1407
  }
1319
1408
  class GetMultiParticipantsRequest {
1409
+ static fromProto(proto) {
1410
+ let m = new GetMultiParticipantsRequest();
1411
+ m = Object.assign(m, proto);
1412
+ return m;
1413
+ }
1320
1414
  constructor(kwargs) {
1321
1415
  if (!kwargs) {
1322
1416
  return;
1323
1417
  }
1324
1418
  Object.assign(this, kwargs);
1325
1419
  }
1326
- static fromProto(proto) {
1327
- let m = new GetMultiParticipantsRequest();
1328
- m = Object.assign(m, proto);
1329
- return m;
1330
- }
1331
1420
  toApiJson() {
1332
1421
  const toReturn = {};
1333
1422
  if (typeof this.participantIds !== 'undefined') {
@@ -1340,12 +1429,6 @@ class GetMultiParticipantsRequest {
1340
1429
  }
1341
1430
  }
1342
1431
  class GetMultiParticipantsResponse {
1343
- constructor(kwargs) {
1344
- if (!kwargs) {
1345
- return;
1346
- }
1347
- Object.assign(this, kwargs);
1348
- }
1349
1432
  static fromProto(proto) {
1350
1433
  let m = new GetMultiParticipantsResponse();
1351
1434
  m = Object.assign(m, proto);
@@ -1354,6 +1437,12 @@ class GetMultiParticipantsResponse {
1354
1437
  }
1355
1438
  return m;
1356
1439
  }
1440
+ constructor(kwargs) {
1441
+ if (!kwargs) {
1442
+ return;
1443
+ }
1444
+ Object.assign(this, kwargs);
1445
+ }
1357
1446
  toApiJson() {
1358
1447
  const toReturn = {};
1359
1448
  if (typeof this.participants !== 'undefined' && this.participants !== null) {
@@ -1363,12 +1452,6 @@ class GetMultiParticipantsResponse {
1363
1452
  }
1364
1453
  }
1365
1454
  class GetParticipantsByKeyRequest {
1366
- constructor(kwargs) {
1367
- if (!kwargs) {
1368
- return;
1369
- }
1370
- Object.assign(this, kwargs);
1371
- }
1372
1455
  static fromProto(proto) {
1373
1456
  let m = new GetParticipantsByKeyRequest();
1374
1457
  m = Object.assign(m, proto);
@@ -1377,6 +1460,12 @@ class GetParticipantsByKeyRequest {
1377
1460
  }
1378
1461
  return m;
1379
1462
  }
1463
+ constructor(kwargs) {
1464
+ if (!kwargs) {
1465
+ return;
1466
+ }
1467
+ Object.assign(this, kwargs);
1468
+ }
1380
1469
  toApiJson() {
1381
1470
  const toReturn = {};
1382
1471
  if (typeof this.participantKey !== 'undefined' && this.participantKey !== null) {
@@ -1386,12 +1475,6 @@ class GetParticipantsByKeyRequest {
1386
1475
  }
1387
1476
  }
1388
1477
  class GetParticipantsByKeyResponse {
1389
- constructor(kwargs) {
1390
- if (!kwargs) {
1391
- return;
1392
- }
1393
- Object.assign(this, kwargs);
1394
- }
1395
1478
  static fromProto(proto) {
1396
1479
  let m = new GetParticipantsByKeyResponse();
1397
1480
  m = Object.assign(m, proto);
@@ -1400,6 +1483,12 @@ class GetParticipantsByKeyResponse {
1400
1483
  }
1401
1484
  return m;
1402
1485
  }
1486
+ constructor(kwargs) {
1487
+ if (!kwargs) {
1488
+ return;
1489
+ }
1490
+ Object.assign(this, kwargs);
1491
+ }
1403
1492
  toApiJson() {
1404
1493
  const toReturn = {};
1405
1494
  if (typeof this.participants !== 'undefined' && this.participants !== null) {
@@ -1407,19 +1496,19 @@ class GetParticipantsByKeyResponse {
1407
1496
  }
1408
1497
  return toReturn;
1409
1498
  }
1410
- }
1411
- class ListMessagesRequestListMessagesFilters {
1499
+ }
1500
+ class ListMessagesRequestListMessagesFilters {
1501
+ static fromProto(proto) {
1502
+ let m = new ListMessagesRequestListMessagesFilters();
1503
+ m = Object.assign(m, proto);
1504
+ return m;
1505
+ }
1412
1506
  constructor(kwargs) {
1413
1507
  if (!kwargs) {
1414
1508
  return;
1415
1509
  }
1416
1510
  Object.assign(this, kwargs);
1417
1511
  }
1418
- static fromProto(proto) {
1419
- let m = new ListMessagesRequestListMessagesFilters();
1420
- m = Object.assign(m, proto);
1421
- return m;
1422
- }
1423
1512
  toApiJson() {
1424
1513
  const toReturn = {};
1425
1514
  if (typeof this.conversationId !== 'undefined') {
@@ -1429,12 +1518,6 @@ class ListMessagesRequestListMessagesFilters {
1429
1518
  }
1430
1519
  }
1431
1520
  class ListMessagesRequest {
1432
- constructor(kwargs) {
1433
- if (!kwargs) {
1434
- return;
1435
- }
1436
- Object.assign(this, kwargs);
1437
- }
1438
1521
  static fromProto(proto) {
1439
1522
  let m = new ListMessagesRequest();
1440
1523
  m = Object.assign(m, proto);
@@ -1446,6 +1529,12 @@ class ListMessagesRequest {
1446
1529
  }
1447
1530
  return m;
1448
1531
  }
1532
+ constructor(kwargs) {
1533
+ if (!kwargs) {
1534
+ return;
1535
+ }
1536
+ Object.assign(this, kwargs);
1537
+ }
1449
1538
  toApiJson() {
1450
1539
  const toReturn = {};
1451
1540
  if (typeof this.filters !== 'undefined' && this.filters !== null) {
@@ -1458,12 +1547,6 @@ class ListMessagesRequest {
1458
1547
  }
1459
1548
  }
1460
1549
  class ListMessagesResponse {
1461
- constructor(kwargs) {
1462
- if (!kwargs) {
1463
- return;
1464
- }
1465
- Object.assign(this, kwargs);
1466
- }
1467
1550
  static fromProto(proto) {
1468
1551
  let m = new ListMessagesResponse();
1469
1552
  m = Object.assign(m, proto);
@@ -1475,6 +1558,12 @@ class ListMessagesResponse {
1475
1558
  }
1476
1559
  return m;
1477
1560
  }
1561
+ constructor(kwargs) {
1562
+ if (!kwargs) {
1563
+ return;
1564
+ }
1565
+ Object.assign(this, kwargs);
1566
+ }
1478
1567
  toApiJson() {
1479
1568
  const toReturn = {};
1480
1569
  if (typeof this.messages !== 'undefined' && this.messages !== null) {
@@ -1486,13 +1575,50 @@ class ListMessagesResponse {
1486
1575
  return toReturn;
1487
1576
  }
1488
1577
  }
1489
- class LookupConversationsRequestLookupConversationsFilters {
1578
+ class ListParticipantConversationViewsRequest {
1579
+ static fromProto(proto) {
1580
+ let m = new ListParticipantConversationViewsRequest();
1581
+ m = Object.assign(m, proto);
1582
+ return m;
1583
+ }
1584
+ constructor(kwargs) {
1585
+ if (!kwargs) {
1586
+ return;
1587
+ }
1588
+ Object.assign(this, kwargs);
1589
+ }
1590
+ toApiJson() {
1591
+ const toReturn = {};
1592
+ if (typeof this.participantId !== 'undefined') {
1593
+ toReturn['participantId'] = this.participantId;
1594
+ }
1595
+ return toReturn;
1596
+ }
1597
+ }
1598
+ class ListParticipantConversationViewsResponse {
1599
+ static fromProto(proto) {
1600
+ let m = new ListParticipantConversationViewsResponse();
1601
+ m = Object.assign(m, proto);
1602
+ if (proto.conversationViews) {
1603
+ m.conversationViews = proto.conversationViews.map(ConversationView.fromProto);
1604
+ }
1605
+ return m;
1606
+ }
1490
1607
  constructor(kwargs) {
1491
1608
  if (!kwargs) {
1492
1609
  return;
1493
1610
  }
1494
1611
  Object.assign(this, kwargs);
1495
1612
  }
1613
+ toApiJson() {
1614
+ const toReturn = {};
1615
+ if (typeof this.conversationViews !== 'undefined' && this.conversationViews !== null) {
1616
+ toReturn['conversationViews'] = 'toApiJson' in this.conversationViews ? this.conversationViews.toApiJson() : this.conversationViews;
1617
+ }
1618
+ return toReturn;
1619
+ }
1620
+ }
1621
+ class LookupConversationsRequestLookupConversationsFilters {
1496
1622
  static fromProto(proto) {
1497
1623
  let m = new LookupConversationsRequestLookupConversationsFilters();
1498
1624
  m = Object.assign(m, proto);
@@ -1507,6 +1633,12 @@ class LookupConversationsRequestLookupConversationsFilters {
1507
1633
  }
1508
1634
  return m;
1509
1635
  }
1636
+ constructor(kwargs) {
1637
+ if (!kwargs) {
1638
+ return;
1639
+ }
1640
+ Object.assign(this, kwargs);
1641
+ }
1510
1642
  toApiJson() {
1511
1643
  const toReturn = {};
1512
1644
  if (typeof this.internalParticipantId !== 'undefined') {
@@ -1534,12 +1666,6 @@ class LookupConversationsRequestLookupConversationsFilters {
1534
1666
  }
1535
1667
  }
1536
1668
  class LookupConversationsRequest {
1537
- constructor(kwargs) {
1538
- if (!kwargs) {
1539
- return;
1540
- }
1541
- Object.assign(this, kwargs);
1542
- }
1543
1669
  static fromProto(proto) {
1544
1670
  let m = new LookupConversationsRequest();
1545
1671
  m = Object.assign(m, proto);
@@ -1551,6 +1677,12 @@ class LookupConversationsRequest {
1551
1677
  }
1552
1678
  return m;
1553
1679
  }
1680
+ constructor(kwargs) {
1681
+ if (!kwargs) {
1682
+ return;
1683
+ }
1684
+ Object.assign(this, kwargs);
1685
+ }
1554
1686
  toApiJson() {
1555
1687
  const toReturn = {};
1556
1688
  if (typeof this.filters !== 'undefined' && this.filters !== null) {
@@ -1563,12 +1695,6 @@ class LookupConversationsRequest {
1563
1695
  }
1564
1696
  }
1565
1697
  class LookupConversationsResponse {
1566
- constructor(kwargs) {
1567
- if (!kwargs) {
1568
- return;
1569
- }
1570
- Object.assign(this, kwargs);
1571
- }
1572
1698
  static fromProto(proto) {
1573
1699
  let m = new LookupConversationsResponse();
1574
1700
  m = Object.assign(m, proto);
@@ -1580,6 +1706,12 @@ class LookupConversationsResponse {
1580
1706
  }
1581
1707
  return m;
1582
1708
  }
1709
+ constructor(kwargs) {
1710
+ if (!kwargs) {
1711
+ return;
1712
+ }
1713
+ Object.assign(this, kwargs);
1714
+ }
1583
1715
  toApiJson() {
1584
1716
  const toReturn = {};
1585
1717
  if (typeof this.conversations !== 'undefined' && this.conversations !== null) {
@@ -1592,12 +1724,6 @@ class LookupConversationsResponse {
1592
1724
  }
1593
1725
  }
1594
1726
  class Metadata {
1595
- constructor(kwargs) {
1596
- if (!kwargs) {
1597
- return;
1598
- }
1599
- Object.assign(this, kwargs);
1600
- }
1601
1727
  static fromProto(proto) {
1602
1728
  let m = new Metadata();
1603
1729
  m = Object.assign(m, proto);
@@ -1609,6 +1735,12 @@ class Metadata {
1609
1735
  }
1610
1736
  return m;
1611
1737
  }
1738
+ constructor(kwargs) {
1739
+ if (!kwargs) {
1740
+ return;
1741
+ }
1742
+ Object.assign(this, kwargs);
1743
+ }
1612
1744
  toApiJson() {
1613
1745
  const toReturn = {};
1614
1746
  if (typeof this.identifier !== 'undefined') {
@@ -1621,17 +1753,17 @@ class Metadata {
1621
1753
  }
1622
1754
  }
1623
1755
  class ReceiveMessageRequestMetadataEntry {
1756
+ static fromProto(proto) {
1757
+ let m = new ReceiveMessageRequestMetadataEntry();
1758
+ m = Object.assign(m, proto);
1759
+ return m;
1760
+ }
1624
1761
  constructor(kwargs) {
1625
1762
  if (!kwargs) {
1626
1763
  return;
1627
1764
  }
1628
1765
  Object.assign(this, kwargs);
1629
1766
  }
1630
- static fromProto(proto) {
1631
- let m = new ReceiveMessageRequestMetadataEntry();
1632
- m = Object.assign(m, proto);
1633
- return m;
1634
- }
1635
1767
  toApiJson() {
1636
1768
  const toReturn = {};
1637
1769
  if (typeof this.key !== 'undefined') {
@@ -1644,17 +1776,17 @@ class ReceiveMessageRequestMetadataEntry {
1644
1776
  }
1645
1777
  }
1646
1778
  class PagedRequestOptions {
1779
+ static fromProto(proto) {
1780
+ let m = new PagedRequestOptions();
1781
+ m = Object.assign(m, proto);
1782
+ return m;
1783
+ }
1647
1784
  constructor(kwargs) {
1648
1785
  if (!kwargs) {
1649
1786
  return;
1650
1787
  }
1651
1788
  Object.assign(this, kwargs);
1652
1789
  }
1653
- static fromProto(proto) {
1654
- let m = new PagedRequestOptions();
1655
- m = Object.assign(m, proto);
1656
- return m;
1657
- }
1658
1790
  toApiJson() {
1659
1791
  const toReturn = {};
1660
1792
  if (typeof this.cursor !== 'undefined') {
@@ -1667,17 +1799,20 @@ class PagedRequestOptions {
1667
1799
  }
1668
1800
  }
1669
1801
  class PagedResponseMetadata {
1802
+ static fromProto(proto) {
1803
+ let m = new PagedResponseMetadata();
1804
+ m = Object.assign(m, proto);
1805
+ if (proto.totalResults) {
1806
+ m.totalResults = parseInt(proto.totalResults, 10);
1807
+ }
1808
+ return m;
1809
+ }
1670
1810
  constructor(kwargs) {
1671
1811
  if (!kwargs) {
1672
1812
  return;
1673
1813
  }
1674
1814
  Object.assign(this, kwargs);
1675
1815
  }
1676
- static fromProto(proto) {
1677
- let m = new PagedResponseMetadata();
1678
- m = Object.assign(m, proto);
1679
- return m;
1680
- }
1681
1816
  toApiJson() {
1682
1817
  const toReturn = {};
1683
1818
  if (typeof this.nextCursor !== 'undefined') {
@@ -1686,16 +1821,13 @@ class PagedResponseMetadata {
1686
1821
  if (typeof this.hasMore !== 'undefined') {
1687
1822
  toReturn['hasMore'] = this.hasMore;
1688
1823
  }
1824
+ if (typeof this.totalResults !== 'undefined') {
1825
+ toReturn['totalResults'] = this.totalResults;
1826
+ }
1689
1827
  return toReturn;
1690
1828
  }
1691
1829
  }
1692
1830
  class ReceiveMessageRequest {
1693
- constructor(kwargs) {
1694
- if (!kwargs) {
1695
- return;
1696
- }
1697
- Object.assign(this, kwargs);
1698
- }
1699
1831
  static fromProto(proto) {
1700
1832
  let m = new ReceiveMessageRequest();
1701
1833
  m = Object.assign(m, proto);
@@ -1713,6 +1845,12 @@ class ReceiveMessageRequest {
1713
1845
  }
1714
1846
  return m;
1715
1847
  }
1848
+ constructor(kwargs) {
1849
+ if (!kwargs) {
1850
+ return;
1851
+ }
1852
+ Object.assign(this, kwargs);
1853
+ }
1716
1854
  toApiJson() {
1717
1855
  const toReturn = {};
1718
1856
  if (typeof this.senderId !== 'undefined') {
@@ -1755,12 +1893,6 @@ class ReceiveMessageRequest {
1755
1893
  }
1756
1894
  }
1757
1895
  class SearchConversationsRequest {
1758
- constructor(kwargs) {
1759
- if (!kwargs) {
1760
- return;
1761
- }
1762
- Object.assign(this, kwargs);
1763
- }
1764
1896
  static fromProto(proto) {
1765
1897
  let m = new SearchConversationsRequest();
1766
1898
  m = Object.assign(m, proto);
@@ -1772,6 +1904,12 @@ class SearchConversationsRequest {
1772
1904
  }
1773
1905
  return m;
1774
1906
  }
1907
+ constructor(kwargs) {
1908
+ if (!kwargs) {
1909
+ return;
1910
+ }
1911
+ Object.assign(this, kwargs);
1912
+ }
1775
1913
  toApiJson() {
1776
1914
  const toReturn = {};
1777
1915
  if (typeof this.partnerId !== 'undefined') {
@@ -1793,12 +1931,6 @@ class SearchConversationsRequest {
1793
1931
  }
1794
1932
  }
1795
1933
  class SearchConversationsResponse {
1796
- constructor(kwargs) {
1797
- if (!kwargs) {
1798
- return;
1799
- }
1800
- Object.assign(this, kwargs);
1801
- }
1802
1934
  static fromProto(proto) {
1803
1935
  let m = new SearchConversationsResponse();
1804
1936
  m = Object.assign(m, proto);
@@ -1810,6 +1942,12 @@ class SearchConversationsResponse {
1810
1942
  }
1811
1943
  return m;
1812
1944
  }
1945
+ constructor(kwargs) {
1946
+ if (!kwargs) {
1947
+ return;
1948
+ }
1949
+ Object.assign(this, kwargs);
1950
+ }
1813
1951
  toApiJson() {
1814
1952
  const toReturn = {};
1815
1953
  if (typeof this.conversations !== 'undefined' && this.conversations !== null) {
@@ -1822,12 +1960,6 @@ class SearchConversationsResponse {
1822
1960
  }
1823
1961
  }
1824
1962
  class SendMessageRequest {
1825
- constructor(kwargs) {
1826
- if (!kwargs) {
1827
- return;
1828
- }
1829
- Object.assign(this, kwargs);
1830
- }
1831
1963
  static fromProto(proto) {
1832
1964
  let m = new SendMessageRequest();
1833
1965
  m = Object.assign(m, proto);
@@ -1848,6 +1980,12 @@ class SendMessageRequest {
1848
1980
  }
1849
1981
  return m;
1850
1982
  }
1983
+ constructor(kwargs) {
1984
+ if (!kwargs) {
1985
+ return;
1986
+ }
1987
+ Object.assign(this, kwargs);
1988
+ }
1851
1989
  toApiJson() {
1852
1990
  const toReturn = {};
1853
1991
  if (typeof this.sender !== 'undefined' && this.sender !== null) {
@@ -1875,17 +2013,17 @@ class SendMessageRequest {
1875
2013
  }
1876
2014
  }
1877
2015
  class SendMessageResponse {
2016
+ static fromProto(proto) {
2017
+ let m = new SendMessageResponse();
2018
+ m = Object.assign(m, proto);
2019
+ return m;
2020
+ }
1878
2021
  constructor(kwargs) {
1879
2022
  if (!kwargs) {
1880
2023
  return;
1881
2024
  }
1882
2025
  Object.assign(this, kwargs);
1883
2026
  }
1884
- static fromProto(proto) {
1885
- let m = new SendMessageResponse();
1886
- m = Object.assign(m, proto);
1887
- return m;
1888
- }
1889
2027
  toApiJson() {
1890
2028
  const toReturn = {};
1891
2029
  if (typeof this.workflowId !== 'undefined') {
@@ -1895,12 +2033,6 @@ class SendMessageResponse {
1895
2033
  }
1896
2034
  }
1897
2035
  class SetLastSeenRequest {
1898
- constructor(kwargs) {
1899
- if (!kwargs) {
1900
- return;
1901
- }
1902
- Object.assign(this, kwargs);
1903
- }
1904
2036
  static fromProto(proto) {
1905
2037
  let m = new SetLastSeenRequest();
1906
2038
  m = Object.assign(m, proto);
@@ -1912,6 +2044,12 @@ class SetLastSeenRequest {
1912
2044
  }
1913
2045
  return m;
1914
2046
  }
2047
+ constructor(kwargs) {
2048
+ if (!kwargs) {
2049
+ return;
2050
+ }
2051
+ Object.assign(this, kwargs);
2052
+ }
1915
2053
  toApiJson() {
1916
2054
  const toReturn = {};
1917
2055
  if (typeof this.conversationId !== 'undefined') {
@@ -1927,12 +2065,6 @@ class SetLastSeenRequest {
1927
2065
  }
1928
2066
  }
1929
2067
  class SetLastSeenResponse {
1930
- constructor(kwargs) {
1931
- if (!kwargs) {
1932
- return;
1933
- }
1934
- Object.assign(this, kwargs);
1935
- }
1936
2068
  static fromProto(proto) {
1937
2069
  let m = new SetLastSeenResponse();
1938
2070
  m = Object.assign(m, proto);
@@ -1941,6 +2073,12 @@ class SetLastSeenResponse {
1941
2073
  }
1942
2074
  return m;
1943
2075
  }
2076
+ constructor(kwargs) {
2077
+ if (!kwargs) {
2078
+ return;
2079
+ }
2080
+ Object.assign(this, kwargs);
2081
+ }
1944
2082
  toApiJson() {
1945
2083
  const toReturn = {};
1946
2084
  if (typeof this.participant !== 'undefined' && this.participant !== null) {
@@ -1950,12 +2088,6 @@ class SetLastSeenResponse {
1950
2088
  }
1951
2089
  }
1952
2090
  class UpdateMessageStatusRequest {
1953
- constructor(kwargs) {
1954
- if (!kwargs) {
1955
- return;
1956
- }
1957
- Object.assign(this, kwargs);
1958
- }
1959
2091
  static fromProto(proto) {
1960
2092
  let m = new UpdateMessageStatusRequest();
1961
2093
  m = Object.assign(m, proto);
@@ -1964,6 +2096,12 @@ class UpdateMessageStatusRequest {
1964
2096
  }
1965
2097
  return m;
1966
2098
  }
2099
+ constructor(kwargs) {
2100
+ if (!kwargs) {
2101
+ return;
2102
+ }
2103
+ Object.assign(this, kwargs);
2104
+ }
1967
2105
  toApiJson() {
1968
2106
  const toReturn = {};
1969
2107
  if (typeof this.messageId !== 'undefined') {
@@ -1979,12 +2117,6 @@ class UpdateMessageStatusRequest {
1979
2117
  }
1980
2118
  }
1981
2119
  class UpsertConfigurationRequest {
1982
- constructor(kwargs) {
1983
- if (!kwargs) {
1984
- return;
1985
- }
1986
- Object.assign(this, kwargs);
1987
- }
1988
2120
  static fromProto(proto) {
1989
2121
  let m = new UpsertConfigurationRequest();
1990
2122
  m = Object.assign(m, proto);
@@ -1993,6 +2125,12 @@ class UpsertConfigurationRequest {
1993
2125
  }
1994
2126
  return m;
1995
2127
  }
2128
+ constructor(kwargs) {
2129
+ if (!kwargs) {
2130
+ return;
2131
+ }
2132
+ Object.assign(this, kwargs);
2133
+ }
1996
2134
  toApiJson() {
1997
2135
  const toReturn = {};
1998
2136
  if (typeof this.configuration !== 'undefined' && this.configuration !== null) {
@@ -2002,12 +2140,6 @@ class UpsertConfigurationRequest {
2002
2140
  }
2003
2141
  }
2004
2142
  class UpsertConfigurationResponse {
2005
- constructor(kwargs) {
2006
- if (!kwargs) {
2007
- return;
2008
- }
2009
- Object.assign(this, kwargs);
2010
- }
2011
2143
  static fromProto(proto) {
2012
2144
  let m = new UpsertConfigurationResponse();
2013
2145
  m = Object.assign(m, proto);
@@ -2016,6 +2148,12 @@ class UpsertConfigurationResponse {
2016
2148
  }
2017
2149
  return m;
2018
2150
  }
2151
+ constructor(kwargs) {
2152
+ if (!kwargs) {
2153
+ return;
2154
+ }
2155
+ Object.assign(this, kwargs);
2156
+ }
2019
2157
  toApiJson() {
2020
2158
  const toReturn = {};
2021
2159
  if (typeof this.configuration !== 'undefined' && this.configuration !== null) {
@@ -2043,9 +2181,9 @@ class HostService {
2043
2181
  return 'https://' + this.host;
2044
2182
  }
2045
2183
  }
2046
- HostService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: HostService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
2047
- HostService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: HostService, providedIn: 'root' });
2048
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: HostService, decorators: [{
2184
+ HostService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: HostService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
2185
+ HostService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: HostService, providedIn: 'root' });
2186
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: HostService, decorators: [{
2049
2187
  type: Injectable,
2050
2188
  args: [{ providedIn: 'root' }]
2051
2189
  }] });
@@ -2155,10 +2293,19 @@ class ConversationApiService {
2155
2293
  return this.http.post(this._host + "/conversation.v1.ConversationService/GetParticipantsByKey", request.toApiJson(), this.apiOptions())
2156
2294
  .pipe(map(resp => GetParticipantsByKeyResponse.fromProto(resp)));
2157
2295
  }
2296
+ listParticipantConversationViews(r) {
2297
+ const request = (r.toApiJson) ? r : new ListParticipantConversationViewsRequest(r);
2298
+ return this.http.post(this._host + "/conversation.v1.ConversationService/ListParticipantConversationViews", request.toApiJson(), this.apiOptions())
2299
+ .pipe(map(resp => ListParticipantConversationViewsResponse.fromProto(resp)));
2300
+ }
2301
+ addConversationToConversationView(r) {
2302
+ const request = (r.toApiJson) ? r : new AddConversationToConversationViewRequest(r);
2303
+ return this.http.post(this._host + "/conversation.v1.ConversationService/AddConversationToConversationView", request.toApiJson(), { ...this.apiOptions(), observe: 'response' });
2304
+ }
2158
2305
  }
2159
- ConversationApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: ConversationApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
2160
- ConversationApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: ConversationApiService, providedIn: 'root' });
2161
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: ConversationApiService, decorators: [{
2306
+ ConversationApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: ConversationApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
2307
+ ConversationApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: ConversationApiService, providedIn: 'root' });
2308
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: ConversationApiService, decorators: [{
2162
2309
  type: Injectable,
2163
2310
  args: [{ providedIn: 'root' }]
2164
2311
  }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
@@ -2194,9 +2341,9 @@ class InboxApiService {
2194
2341
  .pipe(map(resp => UpsertConfigurationResponse.fromProto(resp)));
2195
2342
  }
2196
2343
  }
2197
- InboxApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: InboxApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
2198
- InboxApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: InboxApiService, providedIn: 'root' });
2199
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: InboxApiService, decorators: [{
2344
+ InboxApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: InboxApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
2345
+ InboxApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: InboxApiService, providedIn: 'root' });
2346
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.7", ngImport: i0, type: InboxApiService, decorators: [{
2200
2347
  type: Injectable,
2201
2348
  args: [{ providedIn: 'root' }]
2202
2349
  }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
@@ -2207,5 +2354,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.6", ngImpor
2207
2354
  * Generated bundle index. Do not edit.
2208
2355
  */
2209
2356
 
2210
- export { Access, AddMultiParticipantsRequest, AddMultiParticipantsResponse, Address, Configuration, Conversation, ConversationApiService, ConversationChannel, ConversationKey, ConversationMessageCount, CreateConversationRequest, CreateConversationResponse, CreateMultiMessagesRequest, DeleteConversationRequest, DeleteMessageRequest, GetConfigurationRequest, GetConfigurationResponse, GetConversationByKeyRequest, GetConversationByKeyResponse, GetMessageRequest, GetMultiConfigurationRequest, GetMultiConfigurationResponse, GetMultiConversationDetailsRequest, GetMultiConversationDetailsResponse, GetMultiConversationDetailsResponseDetailedConversation, GetMultiConversationMessageCountRequest, GetMultiConversationMessageCountResponse, GetMultiConversationMessageCountResponseCountsEntry, GetMultiMessagesRequest, GetMultiMessagesResponse, GetMultiParticipantsRequest, GetMultiParticipantsResponse, GetParticipantsByKeyRequest, GetParticipantsByKeyResponse, GlobalParticipantType, InboxApiService, LastSeenByParticipant, ListMessagesRequest, ListMessagesRequestListMessagesFilters, ListMessagesResponse, LookupConversationsRequest, LookupConversationsRequestLookupConversationsFilters, LookupConversationsResponse, LookupConversationsResponseConversations, Message, MessageStatus, MessageType, Metadata, MetadataDataEntry, MetadataIdentifier, PagedRequestOptions, PagedResponseMetadata, Participant, ParticipantKey, ParticipantMessageStatus, ParticipantType, PlatformLocation, ReceiveMessageRequest, ReceiveMessageRequestMetadataEntry, SearchConversationsRequest, SearchConversationsResponse, SearchConversationsResponseDetailedConversation, SendMessageRequest, SendMessageResponse, SetLastSeenRequest, SetLastSeenRequestStatus, SetLastSeenResponse, SubjectParticipant, UpdateMessageStatusRequest, UpsertConfigurationRequest, UpsertConfigurationResponse };
2357
+ export { Access, AddConversationToConversationViewRequest, AddMultiParticipantsRequest, AddMultiParticipantsResponse, Address, Configuration, Conversation, ConversationApiService, ConversationChannel, ConversationKey, ConversationMessageCount, ConversationView, CreateConversationRequest, CreateConversationResponse, CreateMultiMessagesRequest, DeleteConversationRequest, DeleteMessageRequest, GetConfigurationRequest, GetConfigurationResponse, GetConversationByKeyRequest, GetConversationByKeyResponse, GetMessageRequest, GetMultiConfigurationRequest, GetMultiConfigurationResponse, GetMultiConversationDetailsRequest, GetMultiConversationDetailsResponse, GetMultiConversationDetailsResponseDetailedConversation, GetMultiConversationMessageCountRequest, GetMultiConversationMessageCountResponse, GetMultiConversationMessageCountResponseCountsEntry, GetMultiMessagesRequest, GetMultiMessagesResponse, GetMultiParticipantsRequest, GetMultiParticipantsResponse, GetParticipantsByKeyRequest, GetParticipantsByKeyResponse, GlobalParticipantType, InboxApiService, LastSeenByParticipant, ListMessagesRequest, ListMessagesRequestListMessagesFilters, ListMessagesResponse, ListParticipantConversationViewsRequest, ListParticipantConversationViewsResponse, LookupConversationsRequest, LookupConversationsRequestLookupConversationsFilters, LookupConversationsResponse, LookupConversationsResponseConversations, Message, MessageStatus, MessageType, Metadata, MetadataDataEntry, MetadataIdentifier, PagedRequestOptions, PagedResponseMetadata, Participant, ParticipantKey, ParticipantMessageStatus, ParticipantType, PlatformLocation, ReceiveMessageRequest, ReceiveMessageRequestMetadataEntry, SearchConversationsRequest, SearchConversationsResponse, SearchConversationsResponseDetailedConversation, SendMessageRequest, SendMessageResponse, SetLastSeenRequest, SetLastSeenRequestStatus, SetLastSeenResponse, SortDirection, SubjectParticipant, UpdateMessageStatusRequest, UpsertConfigurationRequest, UpsertConfigurationResponse, ViewType };
2211
2358
  //# sourceMappingURL=vendasta-conversation.mjs.map