@conduitplatform/grpc-sdk 0.16.19 → 0.16.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -3395,7 +3395,7 @@ const CreateRoomRequest = {
3395
3395
  },
3396
3396
  };
3397
3397
  function createBaseSendMessageRequest() {
3398
- return { message: "", userId: "", roomId: "" };
3398
+ return { message: "", userId: "", roomId: "", messageType: undefined };
3399
3399
  }
3400
3400
  const SendMessageRequest = {
3401
3401
  encode(message, writer = _m0.Writer.create()) {
@@ -3408,6 +3408,9 @@ const SendMessageRequest = {
3408
3408
  if (message.roomId !== "") {
3409
3409
  writer.uint32(26).string(message.roomId);
3410
3410
  }
3411
+ if (message.messageType !== undefined) {
3412
+ writer.uint32(34).string(message.messageType);
3413
+ }
3411
3414
  return writer;
3412
3415
  },
3413
3416
  decode(input, length) {
@@ -3435,6 +3438,12 @@ const SendMessageRequest = {
3435
3438
  }
3436
3439
  message.roomId = reader.string();
3437
3440
  continue;
3441
+ case 4:
3442
+ if (tag !== 34) {
3443
+ break;
3444
+ }
3445
+ message.messageType = reader.string();
3446
+ continue;
3438
3447
  }
3439
3448
  if ((tag & 7) === 4 || tag === 0) {
3440
3449
  break;
@@ -3448,6 +3457,7 @@ const SendMessageRequest = {
3448
3457
  message: isSet$9(object.message) ? globalThis.String(object.message) : "",
3449
3458
  userId: isSet$9(object.userId) ? globalThis.String(object.userId) : "",
3450
3459
  roomId: isSet$9(object.roomId) ? globalThis.String(object.roomId) : "",
3460
+ messageType: isSet$9(object.messageType) ? globalThis.String(object.messageType) : undefined,
3451
3461
  };
3452
3462
  },
3453
3463
  toJSON(message) {
@@ -3461,6 +3471,9 @@ const SendMessageRequest = {
3461
3471
  if (message.roomId !== "") {
3462
3472
  obj.roomId = message.roomId;
3463
3473
  }
3474
+ if (message.messageType !== undefined) {
3475
+ obj.messageType = message.messageType;
3476
+ }
3464
3477
  return obj;
3465
3478
  },
3466
3479
  create(base) {
@@ -3471,6 +3484,7 @@ const SendMessageRequest = {
3471
3484
  message.message = object.message ?? "";
3472
3485
  message.userId = object.userId ?? "";
3473
3486
  message.roomId = object.roomId ?? "";
3487
+ message.messageType = object.messageType ?? undefined;
3474
3488
  return message;
3475
3489
  },
3476
3490
  };
@@ -8272,16 +8286,31 @@ const SendEmailRequest = {
8272
8286
  },
8273
8287
  };
8274
8288
  function createBaseSendEmailRequest_SendEmailParams() {
8275
- return { email: "", variables: "", sender: undefined, cc: [], replyTo: undefined, attachments: [] };
8289
+ return {
8290
+ email: "",
8291
+ subject: "",
8292
+ variables: "",
8293
+ body: "",
8294
+ sender: undefined,
8295
+ cc: [],
8296
+ replyTo: undefined,
8297
+ attachments: [],
8298
+ };
8276
8299
  }
8277
8300
  const SendEmailRequest_SendEmailParams = {
8278
8301
  encode(message, writer = _m0.Writer.create()) {
8279
8302
  if (message.email !== "") {
8280
8303
  writer.uint32(10).string(message.email);
8281
8304
  }
8305
+ if (message.subject !== "") {
8306
+ writer.uint32(66).string(message.subject);
8307
+ }
8282
8308
  if (message.variables !== "") {
8283
8309
  writer.uint32(18).string(message.variables);
8284
8310
  }
8311
+ if (message.body !== "") {
8312
+ writer.uint32(58).string(message.body);
8313
+ }
8285
8314
  if (message.sender !== undefined) {
8286
8315
  writer.uint32(26).string(message.sender);
8287
8316
  }
@@ -8309,12 +8338,24 @@ const SendEmailRequest_SendEmailParams = {
8309
8338
  }
8310
8339
  message.email = reader.string();
8311
8340
  continue;
8341
+ case 8:
8342
+ if (tag !== 66) {
8343
+ break;
8344
+ }
8345
+ message.subject = reader.string();
8346
+ continue;
8312
8347
  case 2:
8313
8348
  if (tag !== 18) {
8314
8349
  break;
8315
8350
  }
8316
8351
  message.variables = reader.string();
8317
8352
  continue;
8353
+ case 7:
8354
+ if (tag !== 58) {
8355
+ break;
8356
+ }
8357
+ message.body = reader.string();
8358
+ continue;
8318
8359
  case 3:
8319
8360
  if (tag !== 26) {
8320
8361
  break;
@@ -8350,7 +8391,9 @@ const SendEmailRequest_SendEmailParams = {
8350
8391
  fromJSON(object) {
8351
8392
  return {
8352
8393
  email: isSet$6(object.email) ? globalThis.String(object.email) : "",
8394
+ subject: isSet$6(object.subject) ? globalThis.String(object.subject) : "",
8353
8395
  variables: isSet$6(object.variables) ? globalThis.String(object.variables) : "",
8396
+ body: isSet$6(object.body) ? globalThis.String(object.body) : "",
8354
8397
  sender: isSet$6(object.sender) ? globalThis.String(object.sender) : undefined,
8355
8398
  cc: globalThis.Array.isArray(object?.cc) ? object.cc.map((e) => globalThis.String(e)) : [],
8356
8399
  replyTo: isSet$6(object.replyTo) ? globalThis.String(object.replyTo) : undefined,
@@ -8364,9 +8407,15 @@ const SendEmailRequest_SendEmailParams = {
8364
8407
  if (message.email !== "") {
8365
8408
  obj.email = message.email;
8366
8409
  }
8410
+ if (message.subject !== "") {
8411
+ obj.subject = message.subject;
8412
+ }
8367
8413
  if (message.variables !== "") {
8368
8414
  obj.variables = message.variables;
8369
8415
  }
8416
+ if (message.body !== "") {
8417
+ obj.body = message.body;
8418
+ }
8370
8419
  if (message.sender !== undefined) {
8371
8420
  obj.sender = message.sender;
8372
8421
  }
@@ -8387,7 +8436,9 @@ const SendEmailRequest_SendEmailParams = {
8387
8436
  fromPartial(object) {
8388
8437
  const message = createBaseSendEmailRequest_SendEmailParams();
8389
8438
  message.email = object.email ?? "";
8439
+ message.subject = object.subject ?? "";
8390
8440
  message.variables = object.variables ?? "";
8441
+ message.body = object.body ?? "";
8391
8442
  message.sender = object.sender ?? undefined;
8392
8443
  message.cc = object.cc?.map((e) => e) || [];
8393
8444
  message.replyTo = object.replyTo ?? undefined;
@@ -13985,10 +14036,10 @@ class PushNotifications extends ConduitModule {
13985
14036
  });
13986
14037
  });
13987
14038
  }
13988
- sendNotification(sendTo, title, bodyOrOptions, data, platform) {
14039
+ sendNotification(sendTo, title, bodyOrOptions, data, platform, doNotStore, isSilent) {
13989
14040
  let options;
13990
14041
  if (typeof bodyOrOptions === 'string' || isNil(bodyOrOptions)) {
13991
- options = { body: bodyOrOptions, data, platform };
14042
+ options = { body: bodyOrOptions, data, platform, doNotStore, isSilent };
13992
14043
  }
13993
14044
  else {
13994
14045
  options = bodyOrOptions;
@@ -14004,10 +14055,10 @@ class PushNotifications extends ConduitModule {
14004
14055
  notifications,
14005
14056
  });
14006
14057
  }
14007
- sendNotificationToManyDevices(sendTo, title, bodyOrOptions, data, platform) {
14058
+ sendNotificationToManyDevices(sendTo, title, bodyOrOptions, data, platform, doNotStore, isSilent) {
14008
14059
  let options;
14009
14060
  if (typeof bodyOrOptions === 'string' || isNil(bodyOrOptions)) {
14010
- options = { body: bodyOrOptions, data, platform };
14061
+ options = { body: bodyOrOptions, data, platform, doNotStore, isSilent };
14011
14062
  }
14012
14063
  else {
14013
14064
  options = bodyOrOptions;