@vendasta/conversation 0.40.0 → 0.42.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.
@@ -4,28 +4,6 @@ import * as i1 from '@angular/common/http';
4
4
  import { HttpHeaders } from '@angular/common/http';
5
5
  import { map } from 'rxjs/operators';
6
6
 
7
- // *********************************
8
- // Code generated by sdkgen
9
- // DO NOT EDIT!.
10
- //
11
- // Enums.
12
- // *********************************
13
- var MessageStatus;
14
- (function (MessageStatus) {
15
- MessageStatus[MessageStatus["MESSAGE_STATUS_NOT_READ"] = 0] = "MESSAGE_STATUS_NOT_READ";
16
- MessageStatus[MessageStatus["MESSAGE_STATUS_READ"] = 1] = "MESSAGE_STATUS_READ";
17
- MessageStatus[MessageStatus["MESSAGE_STATUS_SENT"] = 2] = "MESSAGE_STATUS_SENT";
18
- MessageStatus[MessageStatus["MESSAGE_STATUS_DELIVERED"] = 3] = "MESSAGE_STATUS_DELIVERED";
19
- MessageStatus[MessageStatus["MESSAGE_STATUS_FAILED"] = 4] = "MESSAGE_STATUS_FAILED";
20
- MessageStatus[MessageStatus["MESSAGE_STATUS_UNDELIVERED"] = 5] = "MESSAGE_STATUS_UNDELIVERED";
21
- })(MessageStatus || (MessageStatus = {}));
22
- var MessageType;
23
- (function (MessageType) {
24
- MessageType[MessageType["MESSAGE_TYPE_MESSAGE"] = 0] = "MESSAGE_TYPE_MESSAGE";
25
- MessageType[MessageType["MESSAGE_TYPE_MEDIA"] = 1] = "MESSAGE_TYPE_MEDIA";
26
- MessageType[MessageType["MESSAGE_TYPE_SYSTEM"] = 2] = "MESSAGE_TYPE_SYSTEM";
27
- })(MessageType || (MessageType = {}));
28
-
29
7
  // *********************************
30
8
  // Code generated by sdkgen
31
9
  // DO NOT EDIT!.
@@ -80,6 +58,28 @@ var PlatformLocation;
80
58
  PlatformLocation[PlatformLocation["PLATFORM_LOCATION_SALES_CENTER"] = 6] = "PLATFORM_LOCATION_SALES_CENTER";
81
59
  })(PlatformLocation || (PlatformLocation = {}));
82
60
 
61
+ // *********************************
62
+ // Code generated by sdkgen
63
+ // DO NOT EDIT!.
64
+ //
65
+ // Enums.
66
+ // *********************************
67
+ var MessageStatus;
68
+ (function (MessageStatus) {
69
+ MessageStatus[MessageStatus["MESSAGE_STATUS_NOT_READ"] = 0] = "MESSAGE_STATUS_NOT_READ";
70
+ MessageStatus[MessageStatus["MESSAGE_STATUS_READ"] = 1] = "MESSAGE_STATUS_READ";
71
+ MessageStatus[MessageStatus["MESSAGE_STATUS_SENT"] = 2] = "MESSAGE_STATUS_SENT";
72
+ MessageStatus[MessageStatus["MESSAGE_STATUS_DELIVERED"] = 3] = "MESSAGE_STATUS_DELIVERED";
73
+ MessageStatus[MessageStatus["MESSAGE_STATUS_FAILED"] = 4] = "MESSAGE_STATUS_FAILED";
74
+ MessageStatus[MessageStatus["MESSAGE_STATUS_UNDELIVERED"] = 5] = "MESSAGE_STATUS_UNDELIVERED";
75
+ })(MessageStatus || (MessageStatus = {}));
76
+ var MessageType;
77
+ (function (MessageType) {
78
+ MessageType[MessageType["MESSAGE_TYPE_MESSAGE"] = 0] = "MESSAGE_TYPE_MESSAGE";
79
+ MessageType[MessageType["MESSAGE_TYPE_MEDIA"] = 1] = "MESSAGE_TYPE_MEDIA";
80
+ MessageType[MessageType["MESSAGE_TYPE_SYSTEM"] = 2] = "MESSAGE_TYPE_SYSTEM";
81
+ })(MessageType || (MessageType = {}));
82
+
83
83
  // *********************************
84
84
  // Code generated by sdkgen
85
85
  // DO NOT EDIT!.
@@ -157,12 +157,45 @@ function enumStringToValue$9(enumRef, value) {
157
157
  }
158
158
  return enumRef[value];
159
159
  }
160
- class Message {
160
+ class SubjectParticipant {
161
161
  static fromProto(proto) {
162
- let m = new Message();
162
+ let m = new SubjectParticipant();
163
163
  m = Object.assign(m, proto);
164
- if (proto.type) {
165
- m.type = enumStringToValue$9(MessageType, proto.type);
164
+ if (proto.participantType) {
165
+ m.participantType = enumStringToValue$9(GlobalParticipantType, proto.participantType);
166
+ }
167
+ return m;
168
+ }
169
+ constructor(kwargs) {
170
+ if (!kwargs) {
171
+ return;
172
+ }
173
+ Object.assign(this, kwargs);
174
+ }
175
+ toApiJson() {
176
+ const toReturn = {};
177
+ if (typeof this.participantType !== 'undefined') {
178
+ toReturn['participantType'] = this.participantType;
179
+ }
180
+ if (typeof this.internalParticipantId !== 'undefined') {
181
+ toReturn['internalParticipantId'] = this.internalParticipantId;
182
+ }
183
+ return toReturn;
184
+ }
185
+ }
186
+
187
+ function enumStringToValue$8(enumRef, value) {
188
+ if (typeof value === 'number') {
189
+ return value;
190
+ }
191
+ return enumRef[value];
192
+ }
193
+ class Conversation {
194
+ static fromProto(proto) {
195
+ let m = new Conversation();
196
+ m = Object.assign(m, proto);
197
+ if (proto.channel) {
198
+ m.channel = enumStringToValue$8(ConversationChannel, proto.channel);
166
199
  }
167
200
  if (proto.created) {
168
201
  m.created = new Date(proto.created);
@@ -173,8 +206,14 @@ class Message {
173
206
  if (proto.deleted) {
174
207
  m.deleted = new Date(proto.deleted);
175
208
  }
176
- if (proto.sendStatus) {
177
- m.sendStatus = SendStatus.fromProto(proto.sendStatus);
209
+ if (proto.latestMsgSentTime) {
210
+ m.latestMsgSentTime = new Date(proto.latestMsgSentTime);
211
+ }
212
+ if (proto.originLocation) {
213
+ m.originLocation = enumStringToValue$8(PlatformLocation, proto.originLocation);
214
+ }
215
+ if (proto.lastSeenByParticipant) {
216
+ m.lastSeenByParticipant = proto.lastSeenByParticipant.map(LastSeenByParticipant.fromProto);
178
217
  }
179
218
  return m;
180
219
  }
@@ -186,26 +225,14 @@ class Message {
186
225
  }
187
226
  toApiJson() {
188
227
  const toReturn = {};
189
- if (typeof this.messageId !== 'undefined') {
190
- toReturn['messageId'] = this.messageId;
191
- }
192
- if (typeof this.externalMessageId !== 'undefined') {
193
- toReturn['externalMessageId'] = this.externalMessageId;
194
- }
195
228
  if (typeof this.conversationId !== 'undefined') {
196
229
  toReturn['conversationId'] = this.conversationId;
197
230
  }
198
- if (typeof this.participantId !== 'undefined') {
199
- toReturn['participantId'] = this.participantId;
200
- }
201
- if (typeof this.type !== 'undefined') {
202
- toReturn['type'] = this.type;
203
- }
204
- if (typeof this.body !== 'undefined') {
205
- toReturn['body'] = this.body;
231
+ if (typeof this.channel !== 'undefined') {
232
+ toReturn['channel'] = this.channel;
206
233
  }
207
- if (typeof this.error !== 'undefined') {
208
- toReturn['error'] = this.error;
234
+ if (typeof this.externalConversationId !== 'undefined') {
235
+ toReturn['externalConversationId'] = this.externalConversationId;
209
236
  }
210
237
  if (typeof this.created !== 'undefined' && this.created !== null) {
211
238
  toReturn['created'] = 'toApiJson' in this.created ? this.created.toApiJson() : this.created;
@@ -216,59 +243,36 @@ class Message {
216
243
  if (typeof this.deleted !== 'undefined' && this.deleted !== null) {
217
244
  toReturn['deleted'] = 'toApiJson' in this.deleted ? this.deleted.toApiJson() : this.deleted;
218
245
  }
219
- if (typeof this.media !== 'undefined') {
220
- toReturn['media'] = this.media;
221
- }
222
- if (typeof this.sendStatus !== 'undefined' && this.sendStatus !== null) {
223
- toReturn['sendStatus'] = 'toApiJson' in this.sendStatus ? this.sendStatus.toApiJson() : this.sendStatus;
224
- }
225
- return toReturn;
226
- }
227
- }
228
- class ParticipantMessageStatus {
229
- static fromProto(proto) {
230
- let m = new ParticipantMessageStatus();
231
- m = Object.assign(m, proto);
232
- if (proto.status) {
233
- m.status = enumStringToValue$9(MessageStatus, proto.status);
234
- }
235
- if (proto.updated) {
236
- m.updated = new Date(proto.updated);
246
+ if (typeof this.participantIds !== 'undefined') {
247
+ toReturn['participantIds'] = this.participantIds;
237
248
  }
238
- return m;
239
- }
240
- constructor(kwargs) {
241
- if (!kwargs) {
242
- return;
249
+ if (typeof this.latestMsgSentTime !== 'undefined' && this.latestMsgSentTime !== null) {
250
+ toReturn['latestMsgSentTime'] = 'toApiJson' in this.latestMsgSentTime ? this.latestMsgSentTime.toApiJson() : this.latestMsgSentTime;
243
251
  }
244
- Object.assign(this, kwargs);
245
- }
246
- toApiJson() {
247
- const toReturn = {};
248
- if (typeof this.participantId !== 'undefined') {
249
- toReturn['participantId'] = this.participantId;
252
+ if (typeof this.originLocation !== 'undefined') {
253
+ toReturn['originLocation'] = this.originLocation;
250
254
  }
251
- if (typeof this.messageId !== 'undefined') {
252
- toReturn['messageId'] = this.messageId;
255
+ if (typeof this.originLocationExternalId !== 'undefined') {
256
+ toReturn['originLocationExternalId'] = this.originLocationExternalId;
253
257
  }
254
- if (typeof this.status !== 'undefined') {
255
- toReturn['status'] = this.status;
258
+ if (typeof this.lastSeenByParticipant !== 'undefined' && this.lastSeenByParticipant !== null) {
259
+ toReturn['lastSeenByParticipant'] = 'toApiJson' in this.lastSeenByParticipant ? this.lastSeenByParticipant.toApiJson() : this.lastSeenByParticipant;
256
260
  }
257
- if (typeof this.updated !== 'undefined' && this.updated !== null) {
258
- toReturn['updated'] = 'toApiJson' in this.updated ? this.updated.toApiJson() : this.updated;
261
+ if (typeof this.conversationViewIds !== 'undefined') {
262
+ toReturn['conversationViewIds'] = this.conversationViewIds;
259
263
  }
260
264
  return toReturn;
261
265
  }
262
266
  }
263
- class SendStatus {
267
+ class ConversationKey {
264
268
  static fromProto(proto) {
265
- let m = new SendStatus();
269
+ let m = new ConversationKey();
266
270
  m = Object.assign(m, proto);
267
- if (proto.status) {
268
- m.status = enumStringToValue$9(MessageStatus, proto.status);
271
+ if (proto.subjectParticipants) {
272
+ m.subjectParticipants = proto.subjectParticipants.map(SubjectParticipant.fromProto);
269
273
  }
270
- if (proto.created) {
271
- m.created = new Date(proto.created);
274
+ if (proto.channel) {
275
+ m.channel = enumStringToValue$8(ConversationChannel, proto.channel);
272
276
  }
273
277
  return m;
274
278
  }
@@ -280,31 +284,24 @@ class SendStatus {
280
284
  }
281
285
  toApiJson() {
282
286
  const toReturn = {};
283
- if (typeof this.status !== 'undefined') {
284
- toReturn['status'] = this.status;
287
+ if (typeof this.subjectParticipants !== 'undefined' && this.subjectParticipants !== null) {
288
+ toReturn['subjectParticipants'] = 'toApiJson' in this.subjectParticipants ? this.subjectParticipants.toApiJson() : this.subjectParticipants;
285
289
  }
286
- if (typeof this.reason !== 'undefined') {
287
- toReturn['reason'] = this.reason;
290
+ if (typeof this.channel !== 'undefined') {
291
+ toReturn['channel'] = this.channel;
288
292
  }
289
- if (typeof this.created !== 'undefined' && this.created !== null) {
290
- toReturn['created'] = 'toApiJson' in this.created ? this.created.toApiJson() : this.created;
293
+ if (typeof this.originLocationExternalId !== 'undefined') {
294
+ toReturn['originLocationExternalId'] = this.originLocationExternalId;
291
295
  }
292
296
  return toReturn;
293
297
  }
294
298
  }
295
-
296
- function enumStringToValue$8(enumRef, value) {
297
- if (typeof value === 'number') {
298
- return value;
299
- }
300
- return enumRef[value];
301
- }
302
- class SubjectParticipant {
299
+ class LastSeenByParticipant {
303
300
  static fromProto(proto) {
304
- let m = new SubjectParticipant();
301
+ let m = new LastSeenByParticipant();
305
302
  m = Object.assign(m, proto);
306
- if (proto.participantType) {
307
- m.participantType = enumStringToValue$8(GlobalParticipantType, proto.participantType);
303
+ if (proto.lastSeenTime) {
304
+ m.lastSeenTime = new Date(proto.lastSeenTime);
308
305
  }
309
306
  return m;
310
307
  }
@@ -316,11 +313,11 @@ class SubjectParticipant {
316
313
  }
317
314
  toApiJson() {
318
315
  const toReturn = {};
319
- if (typeof this.participantType !== 'undefined') {
320
- toReturn['participantType'] = this.participantType;
316
+ if (typeof this.participantId !== 'undefined') {
317
+ toReturn['participantId'] = this.participantId;
321
318
  }
322
- if (typeof this.internalParticipantId !== 'undefined') {
323
- toReturn['internalParticipantId'] = this.internalParticipantId;
319
+ if (typeof this.lastSeenTime !== 'undefined' && this.lastSeenTime !== null) {
320
+ toReturn['lastSeenTime'] = 'toApiJson' in this.lastSeenTime ? this.lastSeenTime.toApiJson() : this.lastSeenTime;
324
321
  }
325
322
  return toReturn;
326
323
  }
@@ -332,12 +329,12 @@ function enumStringToValue$7(enumRef, value) {
332
329
  }
333
330
  return enumRef[value];
334
331
  }
335
- class Conversation {
332
+ class Message {
336
333
  static fromProto(proto) {
337
- let m = new Conversation();
334
+ let m = new Message();
338
335
  m = Object.assign(m, proto);
339
- if (proto.channel) {
340
- m.channel = enumStringToValue$7(ConversationChannel, proto.channel);
336
+ if (proto.type) {
337
+ m.type = enumStringToValue$7(MessageType, proto.type);
341
338
  }
342
339
  if (proto.created) {
343
340
  m.created = new Date(proto.created);
@@ -348,14 +345,11 @@ class Conversation {
348
345
  if (proto.deleted) {
349
346
  m.deleted = new Date(proto.deleted);
350
347
  }
351
- if (proto.latestMsgSentTime) {
352
- m.latestMsgSentTime = new Date(proto.latestMsgSentTime);
353
- }
354
- if (proto.originLocation) {
355
- m.originLocation = enumStringToValue$7(PlatformLocation, proto.originLocation);
348
+ if (proto.sendStatus) {
349
+ m.sendStatus = SendStatus.fromProto(proto.sendStatus);
356
350
  }
357
- if (proto.lastSeenByParticipant) {
358
- m.lastSeenByParticipant = proto.lastSeenByParticipant.map(LastSeenByParticipant.fromProto);
351
+ if (proto.channel) {
352
+ m.channel = enumStringToValue$7(ConversationChannel, proto.channel);
359
353
  }
360
354
  return m;
361
355
  }
@@ -367,14 +361,26 @@ class Conversation {
367
361
  }
368
362
  toApiJson() {
369
363
  const toReturn = {};
364
+ if (typeof this.messageId !== 'undefined') {
365
+ toReturn['messageId'] = this.messageId;
366
+ }
367
+ if (typeof this.externalMessageId !== 'undefined') {
368
+ toReturn['externalMessageId'] = this.externalMessageId;
369
+ }
370
370
  if (typeof this.conversationId !== 'undefined') {
371
371
  toReturn['conversationId'] = this.conversationId;
372
372
  }
373
- if (typeof this.channel !== 'undefined') {
374
- toReturn['channel'] = this.channel;
373
+ if (typeof this.participantId !== 'undefined') {
374
+ toReturn['participantId'] = this.participantId;
375
375
  }
376
- if (typeof this.externalConversationId !== 'undefined') {
377
- toReturn['externalConversationId'] = this.externalConversationId;
376
+ if (typeof this.type !== 'undefined') {
377
+ toReturn['type'] = this.type;
378
+ }
379
+ if (typeof this.body !== 'undefined') {
380
+ toReturn['body'] = this.body;
381
+ }
382
+ if (typeof this.error !== 'undefined') {
383
+ toReturn['error'] = this.error;
378
384
  }
379
385
  if (typeof this.created !== 'undefined' && this.created !== null) {
380
386
  toReturn['created'] = 'toApiJson' in this.created ? this.created.toApiJson() : this.created;
@@ -385,36 +391,27 @@ class Conversation {
385
391
  if (typeof this.deleted !== 'undefined' && this.deleted !== null) {
386
392
  toReturn['deleted'] = 'toApiJson' in this.deleted ? this.deleted.toApiJson() : this.deleted;
387
393
  }
388
- if (typeof this.participantIds !== 'undefined') {
389
- toReturn['participantIds'] = this.participantIds;
390
- }
391
- if (typeof this.latestMsgSentTime !== 'undefined' && this.latestMsgSentTime !== null) {
392
- toReturn['latestMsgSentTime'] = 'toApiJson' in this.latestMsgSentTime ? this.latestMsgSentTime.toApiJson() : this.latestMsgSentTime;
393
- }
394
- if (typeof this.originLocation !== 'undefined') {
395
- toReturn['originLocation'] = this.originLocation;
396
- }
397
- if (typeof this.originLocationExternalId !== 'undefined') {
398
- toReturn['originLocationExternalId'] = this.originLocationExternalId;
394
+ if (typeof this.media !== 'undefined') {
395
+ toReturn['media'] = this.media;
399
396
  }
400
- if (typeof this.lastSeenByParticipant !== 'undefined' && this.lastSeenByParticipant !== null) {
401
- toReturn['lastSeenByParticipant'] = 'toApiJson' in this.lastSeenByParticipant ? this.lastSeenByParticipant.toApiJson() : this.lastSeenByParticipant;
397
+ if (typeof this.sendStatus !== 'undefined' && this.sendStatus !== null) {
398
+ toReturn['sendStatus'] = 'toApiJson' in this.sendStatus ? this.sendStatus.toApiJson() : this.sendStatus;
402
399
  }
403
- if (typeof this.conversationViewIds !== 'undefined') {
404
- toReturn['conversationViewIds'] = this.conversationViewIds;
400
+ if (typeof this.channel !== 'undefined') {
401
+ toReturn['channel'] = this.channel;
405
402
  }
406
403
  return toReturn;
407
404
  }
408
405
  }
409
- class ConversationKey {
406
+ class ParticipantMessageStatus {
410
407
  static fromProto(proto) {
411
- let m = new ConversationKey();
408
+ let m = new ParticipantMessageStatus();
412
409
  m = Object.assign(m, proto);
413
- if (proto.subjectParticipants) {
414
- m.subjectParticipants = proto.subjectParticipants.map(SubjectParticipant.fromProto);
410
+ if (proto.status) {
411
+ m.status = enumStringToValue$7(MessageStatus, proto.status);
415
412
  }
416
- if (proto.channel) {
417
- m.channel = enumStringToValue$7(ConversationChannel, proto.channel);
413
+ if (proto.updated) {
414
+ m.updated = new Date(proto.updated);
418
415
  }
419
416
  return m;
420
417
  }
@@ -426,24 +423,30 @@ class ConversationKey {
426
423
  }
427
424
  toApiJson() {
428
425
  const toReturn = {};
429
- if (typeof this.subjectParticipants !== 'undefined' && this.subjectParticipants !== null) {
430
- toReturn['subjectParticipants'] = 'toApiJson' in this.subjectParticipants ? this.subjectParticipants.toApiJson() : this.subjectParticipants;
426
+ if (typeof this.participantId !== 'undefined') {
427
+ toReturn['participantId'] = this.participantId;
431
428
  }
432
- if (typeof this.channel !== 'undefined') {
433
- toReturn['channel'] = this.channel;
429
+ if (typeof this.messageId !== 'undefined') {
430
+ toReturn['messageId'] = this.messageId;
434
431
  }
435
- if (typeof this.originLocationExternalId !== 'undefined') {
436
- toReturn['originLocationExternalId'] = this.originLocationExternalId;
432
+ if (typeof this.status !== 'undefined') {
433
+ toReturn['status'] = this.status;
434
+ }
435
+ if (typeof this.updated !== 'undefined' && this.updated !== null) {
436
+ toReturn['updated'] = 'toApiJson' in this.updated ? this.updated.toApiJson() : this.updated;
437
437
  }
438
438
  return toReturn;
439
439
  }
440
440
  }
441
- class LastSeenByParticipant {
441
+ class SendStatus {
442
442
  static fromProto(proto) {
443
- let m = new LastSeenByParticipant();
443
+ let m = new SendStatus();
444
444
  m = Object.assign(m, proto);
445
- if (proto.lastSeenTime) {
446
- m.lastSeenTime = new Date(proto.lastSeenTime);
445
+ if (proto.status) {
446
+ m.status = enumStringToValue$7(MessageStatus, proto.status);
447
+ }
448
+ if (proto.created) {
449
+ m.created = new Date(proto.created);
447
450
  }
448
451
  return m;
449
452
  }
@@ -455,11 +458,14 @@ class LastSeenByParticipant {
455
458
  }
456
459
  toApiJson() {
457
460
  const toReturn = {};
458
- if (typeof this.participantId !== 'undefined') {
459
- toReturn['participantId'] = this.participantId;
461
+ if (typeof this.status !== 'undefined') {
462
+ toReturn['status'] = this.status;
460
463
  }
461
- if (typeof this.lastSeenTime !== 'undefined' && this.lastSeenTime !== null) {
462
- toReturn['lastSeenTime'] = 'toApiJson' in this.lastSeenTime ? this.lastSeenTime.toApiJson() : this.lastSeenTime;
464
+ if (typeof this.reason !== 'undefined') {
465
+ toReturn['reason'] = this.reason;
466
+ }
467
+ if (typeof this.created !== 'undefined' && this.created !== null) {
468
+ toReturn['created'] = 'toApiJson' in this.created ? this.created.toApiJson() : this.created;
463
469
  }
464
470
  return toReturn;
465
471
  }
@@ -1687,6 +1693,9 @@ class GetMultiMessagesRequest {
1687
1693
  if (typeof this.conversationId !== 'undefined') {
1688
1694
  toReturn['conversationId'] = this.conversationId;
1689
1695
  }
1696
+ if (typeof this.languageCode !== 'undefined') {
1697
+ toReturn['languageCode'] = this.languageCode;
1698
+ }
1690
1699
  return toReturn;
1691
1700
  }
1692
1701
  }
@@ -2523,6 +2532,9 @@ class SendMessageRequest {
2523
2532
  if (proto.media) {
2524
2533
  m.media = proto.media.map(Media.fromProto);
2525
2534
  }
2535
+ if (proto.channel) {
2536
+ m.channel = enumStringToValue(ConversationChannel, proto.channel);
2537
+ }
2526
2538
  return m;
2527
2539
  }
2528
2540
  constructor(kwargs) {
@@ -2557,6 +2569,9 @@ class SendMessageRequest {
2557
2569
  if (typeof this.media !== 'undefined' && this.media !== null) {
2558
2570
  toReturn['media'] = 'toApiJson' in this.media ? this.media.toApiJson() : this.media;
2559
2571
  }
2572
+ if (typeof this.channel !== 'undefined') {
2573
+ toReturn['channel'] = this.channel;
2574
+ }
2560
2575
  return toReturn;
2561
2576
  }
2562
2577
  }
@@ -2577,6 +2592,9 @@ class SendMessageResponse {
2577
2592
  if (typeof this.workflowId !== 'undefined') {
2578
2593
  toReturn['workflowId'] = this.workflowId;
2579
2594
  }
2595
+ if (typeof this.messageId !== 'undefined') {
2596
+ toReturn['messageId'] = this.messageId;
2597
+ }
2580
2598
  return toReturn;
2581
2599
  }
2582
2600
  }