@fatehan/tsrp 1.0.24 → 1.0.25

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.
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.7.5
4
+ // protoc-gen-ts_proto v2.7.0
5
5
  // protoc v6.31.1
6
6
  // source: models/models.proto
7
7
  var __importDefault = (this && this.__importDefault) || function (mod) {
@@ -69,7 +69,7 @@ exports.Gallery = {
69
69
  },
70
70
  decode(input, length) {
71
71
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
72
- const end = length === undefined ? reader.len : reader.pos + length;
72
+ let end = length === undefined ? reader.len : reader.pos + length;
73
73
  const message = createBaseGallery();
74
74
  while (reader.pos < end) {
75
75
  const tag = reader.uint32();
@@ -247,7 +247,7 @@ exports.IoList = {
247
247
  },
248
248
  decode(input, length) {
249
249
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
250
- const end = length === undefined ? reader.len : reader.pos + length;
250
+ let end = length === undefined ? reader.len : reader.pos + length;
251
251
  const message = createBaseIoList();
252
252
  while (reader.pos < end) {
253
253
  const tag = reader.uint32();
@@ -323,7 +323,7 @@ exports.IoList_ItemsEntry = {
323
323
  },
324
324
  decode(input, length) {
325
325
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
326
- const end = length === undefined ? reader.len : reader.pos + length;
326
+ let end = length === undefined ? reader.len : reader.pos + length;
327
327
  const message = createBaseIoList_ItemsEntry();
328
328
  while (reader.pos < end) {
329
329
  const tag = reader.uint32();
@@ -427,7 +427,7 @@ exports.HeartbeatCache = {
427
427
  },
428
428
  decode(input, length) {
429
429
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
430
- const end = length === undefined ? reader.len : reader.pos + length;
430
+ let end = length === undefined ? reader.len : reader.pos + length;
431
431
  const message = createBaseHeartbeatCache();
432
432
  while (reader.pos < end) {
433
433
  const tag = reader.uint32();
@@ -596,7 +596,7 @@ exports.HeartbeatSR03Cache = {
596
596
  },
597
597
  decode(input, length) {
598
598
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
599
- const end = length === undefined ? reader.len : reader.pos + length;
599
+ let end = length === undefined ? reader.len : reader.pos + length;
600
600
  const message = createBaseHeartbeatSR03Cache();
601
601
  while (reader.pos < end) {
602
602
  const tag = reader.uint32();
@@ -675,7 +675,7 @@ exports.SinotrackCache = {
675
675
  },
676
676
  decode(input, length) {
677
677
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
678
- const end = length === undefined ? reader.len : reader.pos + length;
678
+ let end = length === undefined ? reader.len : reader.pos + length;
679
679
  const message = createBaseSinotrackCache();
680
680
  while (reader.pos < end) {
681
681
  const tag = reader.uint32();
@@ -863,7 +863,7 @@ exports.Person = {
863
863
  },
864
864
  decode(input, length) {
865
865
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
866
- const end = length === undefined ? reader.len : reader.pos + length;
866
+ let end = length === undefined ? reader.len : reader.pos + length;
867
867
  const message = createBasePerson();
868
868
  while (reader.pos < end) {
869
869
  const tag = reader.uint32();
@@ -1233,7 +1233,7 @@ exports.PersonalAccessToken = {
1233
1233
  },
1234
1234
  decode(input, length) {
1235
1235
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
1236
- const end = length === undefined ? reader.len : reader.pos + length;
1236
+ let end = length === undefined ? reader.len : reader.pos + length;
1237
1237
  const message = createBasePersonalAccessToken();
1238
1238
  while (reader.pos < end) {
1239
1239
  const tag = reader.uint32();
@@ -1477,7 +1477,7 @@ exports.DeviceStatusList = {
1477
1477
  },
1478
1478
  decode(input, length) {
1479
1479
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
1480
- const end = length === undefined ? reader.len : reader.pos + length;
1480
+ let end = length === undefined ? reader.len : reader.pos + length;
1481
1481
  const message = createBaseDeviceStatusList();
1482
1482
  while (reader.pos < end) {
1483
1483
  const tag = reader.uint32();
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.7.5
4
+ // protoc-gen-ts_proto v2.7.0
5
5
  // protoc v6.31.1
6
6
  // source: models/operation.proto
7
7
  var __importDefault = (this && this.__importDefault) || function (mod) {
@@ -204,7 +204,7 @@ exports.Operation = {
204
204
  },
205
205
  decode(input, length) {
206
206
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
207
- const end = length === undefined ? reader.len : reader.pos + length;
207
+ let end = length === undefined ? reader.len : reader.pos + length;
208
208
  const message = createBaseOperation();
209
209
  while (reader.pos < end) {
210
210
  const tag = reader.uint32();
@@ -648,7 +648,7 @@ exports.DestinationList = {
648
648
  },
649
649
  decode(input, length) {
650
650
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
651
- const end = length === undefined ? reader.len : reader.pos + length;
651
+ let end = length === undefined ? reader.len : reader.pos + length;
652
652
  const message = createBaseDestinationList();
653
653
  while (reader.pos < end) {
654
654
  const tag = reader.uint32();
@@ -717,7 +717,7 @@ exports.Destination = {
717
717
  },
718
718
  decode(input, length) {
719
719
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
720
- const end = length === undefined ? reader.len : reader.pos + length;
720
+ let end = length === undefined ? reader.len : reader.pos + length;
721
721
  const message = createBaseDestination();
722
722
  while (reader.pos < end) {
723
723
  const tag = reader.uint32();
@@ -834,7 +834,7 @@ exports.Destination_Event = {
834
834
  },
835
835
  decode(input, length) {
836
836
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
837
- const end = length === undefined ? reader.len : reader.pos + length;
837
+ let end = length === undefined ? reader.len : reader.pos + length;
838
838
  const message = createBaseDestination_Event();
839
839
  while (reader.pos < end) {
840
840
  const tag = reader.uint32();
@@ -932,7 +932,7 @@ exports.OperationMileageMemory = {
932
932
  },
933
933
  decode(input, length) {
934
934
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
935
- const end = length === undefined ? reader.len : reader.pos + length;
935
+ let end = length === undefined ? reader.len : reader.pos + length;
936
936
  const message = createBaseOperationMileageMemory();
937
937
  while (reader.pos < end) {
938
938
  const tag = reader.uint32();
@@ -26,7 +26,7 @@ export interface NotifyJob {
26
26
  id: Long;
27
27
  userId: Long;
28
28
  alertId: Long;
29
- alertType: Alert;
29
+ alert: Alert;
30
30
  retries: number;
31
31
  priority: NotifyJob_Priority;
32
32
  notify?: Notify | undefined;
@@ -98,17 +98,16 @@ export interface Notification {
98
98
  uuid: string;
99
99
  userId: Long;
100
100
  objectId?: Long | undefined;
101
- objectType: ObjectType;
101
+ objectType?: ObjectType | undefined;
102
102
  title: string;
103
103
  body?: string | undefined;
104
104
  alertId: Long;
105
- alertType: number;
105
+ alert: Alert;
106
106
  via: Via[];
107
107
  data: {
108
108
  [key: string]: string;
109
109
  };
110
110
  image?: string | undefined;
111
- icon?: string | undefined;
112
111
  sound?: Long | undefined;
113
112
  createdAt?: Date | undefined;
114
113
  readAt?: Date | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"notify.d.ts","sourceRoot":"","sources":["../../../src/fatehan/notifies/notify.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,KAAK,EAA8B,MAAM,sBAAsB,CAAC;AAEzE,eAAO,MAAM,eAAe,yBAAyB,CAAC;AAEtD,oBAAY,GAAG;IACb,IAAI,IAAI;IACR,GAAG,IAAI;IACP,GAAG,IAAI;IACP,KAAK,IAAI;IACT,QAAQ,IAAI;IACZ,IAAI,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AC,CAAC,CAAC;CAAE,GAAG;KAAG,CAAC,IAAI,OAAO,CAAC,MAAM,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,GAAG,KAAK;CAAE,CAAC;AAoCnG,MAAM,WAAW,UAAU,CAAC,CAAC;IAC3B,MAAM,CAAC,OAAO,EAAE,CAAC,EAAE,MAAM,CAAC,EAAE,YAAY,GAAG,YAAY,CAAC;IACxD,MAAM,CAAC,KAAK,EAAE,YAAY,GAAG,UAAU,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC;IAC7D,QAAQ,CAAC,MAAM,EAAE,GAAG,GAAG,CAAC,CAAC;IACzB,MAAM,CAAC,OAAO,EAAE,CAAC,GAAG,OAAO,CAAC;IAC5B,MAAM,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;IACxD,WAAW,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC;CAC/D"}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.7.5
4
+ // protoc-gen-ts_proto v2.7.0
5
5
  // protoc v6.31.1
6
6
  // source: notifies/notify.proto
7
7
  var __importDefault = (this && this.__importDefault) || function (mod) {
@@ -161,7 +161,7 @@ function createBaseNotifyJob() {
161
161
  id: long_1.default.UZERO,
162
162
  userId: long_1.default.UZERO,
163
163
  alertId: long_1.default.UZERO,
164
- alertType: 0,
164
+ alert: 0,
165
165
  retries: 0,
166
166
  priority: 0,
167
167
  notify: undefined,
@@ -179,8 +179,8 @@ exports.NotifyJob = {
179
179
  if (!message.alertId.equals(long_1.default.UZERO)) {
180
180
  writer.uint32(24).uint64(message.alertId.toString());
181
181
  }
182
- if (message.alertType !== 0) {
183
- writer.uint32(32).int32(message.alertType);
182
+ if (message.alert !== 0) {
183
+ writer.uint32(32).int32(message.alert);
184
184
  }
185
185
  if (message.retries !== 0) {
186
186
  writer.uint32(40).uint32(message.retries);
@@ -200,7 +200,7 @@ exports.NotifyJob = {
200
200
  },
201
201
  decode(input, length) {
202
202
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
203
- const end = length === undefined ? reader.len : reader.pos + length;
203
+ let end = length === undefined ? reader.len : reader.pos + length;
204
204
  const message = createBaseNotifyJob();
205
205
  while (reader.pos < end) {
206
206
  const tag = reader.uint32();
@@ -230,7 +230,7 @@ exports.NotifyJob = {
230
230
  if (tag !== 32) {
231
231
  break;
232
232
  }
233
- message.alertType = reader.int32();
233
+ message.alert = reader.int32();
234
234
  continue;
235
235
  }
236
236
  case 5: {
@@ -281,7 +281,7 @@ exports.NotifyJob = {
281
281
  id: isSet(object.id) ? long_1.default.fromValue(object.id) : long_1.default.UZERO,
282
282
  userId: isSet(object.user_id) ? long_1.default.fromValue(object.user_id) : long_1.default.UZERO,
283
283
  alertId: isSet(object.alert_id) ? long_1.default.fromValue(object.alert_id) : long_1.default.UZERO,
284
- alertType: isSet(object.alert_type) ? (0, dataModel_1.alertFromJSON)(object.alert_type) : 0,
284
+ alert: isSet(object.alert) ? (0, dataModel_1.alertFromJSON)(object.alert) : 0,
285
285
  retries: isSet(object.retries) ? globalThis.Number(object.retries) : 0,
286
286
  priority: isSet(object.priority) ? notifyJob_PriorityFromJSON(object.priority) : 0,
287
287
  notify: isSet(object.notify) ? exports.Notify.fromJSON(object.notify) : undefined,
@@ -300,8 +300,8 @@ exports.NotifyJob = {
300
300
  if (!message.alertId.equals(long_1.default.UZERO)) {
301
301
  obj.alert_id = (message.alertId || long_1.default.UZERO).toString();
302
302
  }
303
- if (message.alertType !== 0) {
304
- obj.alert_type = (0, dataModel_1.alertToJSON)(message.alertType);
303
+ if (message.alert !== 0) {
304
+ obj.alert = (0, dataModel_1.alertToJSON)(message.alert);
305
305
  }
306
306
  if (message.retries !== 0) {
307
307
  obj.retries = Math.round(message.retries);
@@ -330,7 +330,7 @@ exports.NotifyJob = {
330
330
  message.alertId = (object.alertId !== undefined && object.alertId !== null)
331
331
  ? long_1.default.fromValue(object.alertId)
332
332
  : long_1.default.UZERO;
333
- message.alertType = (_a = object.alertType) !== null && _a !== void 0 ? _a : 0;
333
+ message.alert = (_a = object.alert) !== null && _a !== void 0 ? _a : 0;
334
334
  message.retries = (_b = object.retries) !== null && _b !== void 0 ? _b : 0;
335
335
  message.priority = (_c = object.priority) !== null && _c !== void 0 ? _c : 0;
336
336
  message.notify = (object.notify !== undefined && object.notify !== null)
@@ -386,7 +386,7 @@ exports.UserDeviceAlert = {
386
386
  },
387
387
  decode(input, length) {
388
388
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
389
- const end = length === undefined ? reader.len : reader.pos + length;
389
+ let end = length === undefined ? reader.len : reader.pos + length;
390
390
  const message = createBaseUserDeviceAlert();
391
391
  while (reader.pos < end) {
392
392
  const tag = reader.uint32();
@@ -578,7 +578,7 @@ exports.UserDeviceAlert_Condition = {
578
578
  },
579
579
  decode(input, length) {
580
580
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
581
- const end = length === undefined ? reader.len : reader.pos + length;
581
+ let end = length === undefined ? reader.len : reader.pos + length;
582
582
  const message = createBaseUserDeviceAlert_Condition();
583
583
  while (reader.pos < end) {
584
584
  const tag = reader.uint32();
@@ -702,7 +702,7 @@ exports.UserDeviceAlert_ConditionList = {
702
702
  },
703
703
  decode(input, length) {
704
704
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
705
- const end = length === undefined ? reader.len : reader.pos + length;
705
+ let end = length === undefined ? reader.len : reader.pos + length;
706
706
  const message = createBaseUserDeviceAlert_ConditionList();
707
707
  while (reader.pos < end) {
708
708
  const tag = reader.uint32();
@@ -762,7 +762,7 @@ exports.UserDeviceAlert_ConditionEntry = {
762
762
  },
763
763
  decode(input, length) {
764
764
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
765
- const end = length === undefined ? reader.len : reader.pos + length;
765
+ let end = length === undefined ? reader.len : reader.pos + length;
766
766
  const message = createBaseUserDeviceAlert_ConditionEntry();
767
767
  while (reader.pos < end) {
768
768
  const tag = reader.uint32();
@@ -830,7 +830,7 @@ exports.UserDeviceAlertList = {
830
830
  },
831
831
  decode(input, length) {
832
832
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
833
- const end = length === undefined ? reader.len : reader.pos + length;
833
+ let end = length === undefined ? reader.len : reader.pos + length;
834
834
  const message = createBaseUserDeviceAlertList();
835
835
  while (reader.pos < end) {
836
836
  const tag = reader.uint32();
@@ -891,7 +891,7 @@ exports.Receiver = {
891
891
  },
892
892
  decode(input, length) {
893
893
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
894
- const end = length === undefined ? reader.len : reader.pos + length;
894
+ let end = length === undefined ? reader.len : reader.pos + length;
895
895
  const message = createBaseReceiver();
896
896
  while (reader.pos < end) {
897
897
  const tag = reader.uint32();
@@ -1008,7 +1008,7 @@ exports.Notify = {
1008
1008
  },
1009
1009
  decode(input, length) {
1010
1010
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
1011
- const end = length === undefined ? reader.len : reader.pos + length;
1011
+ let end = length === undefined ? reader.len : reader.pos + length;
1012
1012
  const message = createBaseNotify();
1013
1013
  while (reader.pos < end) {
1014
1014
  const tag = reader.uint32();
@@ -1196,7 +1196,7 @@ exports.Notify_DataEntry = {
1196
1196
  },
1197
1197
  decode(input, length) {
1198
1198
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
1199
- const end = length === undefined ? reader.len : reader.pos + length;
1199
+ let end = length === undefined ? reader.len : reader.pos + length;
1200
1200
  const message = createBaseNotify_DataEntry();
1201
1201
  while (reader.pos < end) {
1202
1202
  const tag = reader.uint32();
@@ -1255,15 +1255,14 @@ function createBaseNotification() {
1255
1255
  uuid: "",
1256
1256
  userId: long_1.default.UZERO,
1257
1257
  objectId: undefined,
1258
- objectType: 0,
1258
+ objectType: undefined,
1259
1259
  title: "",
1260
1260
  body: undefined,
1261
1261
  alertId: long_1.default.UZERO,
1262
- alertType: 0,
1262
+ alert: 0,
1263
1263
  via: [],
1264
1264
  data: {},
1265
1265
  image: undefined,
1266
- icon: undefined,
1267
1266
  sound: undefined,
1268
1267
  createdAt: undefined,
1269
1268
  readAt: undefined,
@@ -1280,7 +1279,7 @@ exports.Notification = {
1280
1279
  if (message.objectId !== undefined) {
1281
1280
  writer.uint32(24).uint64(message.objectId.toString());
1282
1281
  }
1283
- if (message.objectType !== 0) {
1282
+ if (message.objectType !== undefined) {
1284
1283
  writer.uint32(32).int32(message.objectType);
1285
1284
  }
1286
1285
  if (message.title !== "") {
@@ -1292,8 +1291,8 @@ exports.Notification = {
1292
1291
  if (!message.alertId.equals(long_1.default.UZERO)) {
1293
1292
  writer.uint32(56).uint64(message.alertId.toString());
1294
1293
  }
1295
- if (message.alertType !== 0) {
1296
- writer.uint32(64).int32(message.alertType);
1294
+ if (message.alert !== 0) {
1295
+ writer.uint32(64).int32(message.alert);
1297
1296
  }
1298
1297
  writer.uint32(74).fork();
1299
1298
  for (const v of message.via) {
@@ -1306,23 +1305,20 @@ exports.Notification = {
1306
1305
  if (message.image !== undefined) {
1307
1306
  writer.uint32(90).string(message.image);
1308
1307
  }
1309
- if (message.icon !== undefined) {
1310
- writer.uint32(98).string(message.icon);
1311
- }
1312
1308
  if (message.sound !== undefined) {
1313
- writer.uint32(104).uint64(message.sound.toString());
1309
+ writer.uint32(96).uint64(message.sound.toString());
1314
1310
  }
1315
1311
  if (message.createdAt !== undefined) {
1316
- timestamp_1.Timestamp.encode(toTimestamp(message.createdAt), writer.uint32(114).fork()).join();
1312
+ timestamp_1.Timestamp.encode(toTimestamp(message.createdAt), writer.uint32(106).fork()).join();
1317
1313
  }
1318
1314
  if (message.readAt !== undefined) {
1319
- timestamp_1.Timestamp.encode(toTimestamp(message.readAt), writer.uint32(122).fork()).join();
1315
+ timestamp_1.Timestamp.encode(toTimestamp(message.readAt), writer.uint32(114).fork()).join();
1320
1316
  }
1321
1317
  return writer;
1322
1318
  },
1323
1319
  decode(input, length) {
1324
1320
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
1325
- const end = length === undefined ? reader.len : reader.pos + length;
1321
+ let end = length === undefined ? reader.len : reader.pos + length;
1326
1322
  const message = createBaseNotification();
1327
1323
  while (reader.pos < end) {
1328
1324
  const tag = reader.uint32();
@@ -1380,7 +1376,7 @@ exports.Notification = {
1380
1376
  if (tag !== 64) {
1381
1377
  break;
1382
1378
  }
1383
- message.alertType = reader.int32();
1379
+ message.alert = reader.int32();
1384
1380
  continue;
1385
1381
  }
1386
1382
  case 9: {
@@ -1415,30 +1411,23 @@ exports.Notification = {
1415
1411
  continue;
1416
1412
  }
1417
1413
  case 12: {
1418
- if (tag !== 98) {
1414
+ if (tag !== 96) {
1419
1415
  break;
1420
1416
  }
1421
- message.icon = reader.string();
1417
+ message.sound = long_1.default.fromString(reader.uint64().toString(), true);
1422
1418
  continue;
1423
1419
  }
1424
1420
  case 13: {
1425
- if (tag !== 104) {
1421
+ if (tag !== 106) {
1426
1422
  break;
1427
1423
  }
1428
- message.sound = long_1.default.fromString(reader.uint64().toString(), true);
1424
+ message.createdAt = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
1429
1425
  continue;
1430
1426
  }
1431
1427
  case 14: {
1432
1428
  if (tag !== 114) {
1433
1429
  break;
1434
1430
  }
1435
- message.createdAt = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
1436
- continue;
1437
- }
1438
- case 15: {
1439
- if (tag !== 122) {
1440
- break;
1441
- }
1442
1431
  message.readAt = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
1443
1432
  continue;
1444
1433
  }
@@ -1455,11 +1444,11 @@ exports.Notification = {
1455
1444
  uuid: isSet(object.uuid) ? globalThis.String(object.uuid) : "",
1456
1445
  userId: isSet(object.user_id) ? long_1.default.fromValue(object.user_id) : long_1.default.UZERO,
1457
1446
  objectId: isSet(object.object_id) ? long_1.default.fromValue(object.object_id) : undefined,
1458
- objectType: isSet(object.object_type) ? objectTypeFromJSON(object.object_type) : 0,
1447
+ objectType: isSet(object.object_type) ? objectTypeFromJSON(object.object_type) : undefined,
1459
1448
  title: isSet(object.title) ? globalThis.String(object.title) : "",
1460
1449
  body: isSet(object.body) ? globalThis.String(object.body) : undefined,
1461
1450
  alertId: isSet(object.alert_id) ? long_1.default.fromValue(object.alert_id) : long_1.default.UZERO,
1462
- alertType: isSet(object.alert_type) ? globalThis.Number(object.alert_type) : 0,
1451
+ alert: isSet(object.alert) ? (0, dataModel_1.alertFromJSON)(object.alert) : 0,
1463
1452
  via: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.via) ? object.via.map((e) => viaFromJSON(e)) : [],
1464
1453
  data: isObject(object.data)
1465
1454
  ? Object.entries(object.data).reduce((acc, [key, value]) => {
@@ -1468,7 +1457,6 @@ exports.Notification = {
1468
1457
  }, {})
1469
1458
  : {},
1470
1459
  image: isSet(object.image) ? globalThis.String(object.image) : undefined,
1471
- icon: isSet(object.icon) ? globalThis.String(object.icon) : undefined,
1472
1460
  sound: isSet(object.sound) ? long_1.default.fromValue(object.sound) : undefined,
1473
1461
  createdAt: isSet(object.created_at) ? fromJsonTimestamp(object.created_at) : undefined,
1474
1462
  readAt: isSet(object.read_at) ? fromJsonTimestamp(object.read_at) : undefined,
@@ -1486,7 +1474,7 @@ exports.Notification = {
1486
1474
  if (message.objectId !== undefined) {
1487
1475
  obj.object_id = (message.objectId || long_1.default.UZERO).toString();
1488
1476
  }
1489
- if (message.objectType !== 0) {
1477
+ if (message.objectType !== undefined) {
1490
1478
  obj.object_type = objectTypeToJSON(message.objectType);
1491
1479
  }
1492
1480
  if (message.title !== "") {
@@ -1498,8 +1486,8 @@ exports.Notification = {
1498
1486
  if (!message.alertId.equals(long_1.default.UZERO)) {
1499
1487
  obj.alert_id = (message.alertId || long_1.default.UZERO).toString();
1500
1488
  }
1501
- if (message.alertType !== 0) {
1502
- obj.alert_type = Math.round(message.alertType);
1489
+ if (message.alert !== 0) {
1490
+ obj.alert = (0, dataModel_1.alertToJSON)(message.alert);
1503
1491
  }
1504
1492
  if ((_a = message.via) === null || _a === void 0 ? void 0 : _a.length) {
1505
1493
  obj.via = message.via.map((e) => viaToJSON(e));
@@ -1516,9 +1504,6 @@ exports.Notification = {
1516
1504
  if (message.image !== undefined) {
1517
1505
  obj.image = message.image;
1518
1506
  }
1519
- if (message.icon !== undefined) {
1520
- obj.icon = message.icon;
1521
- }
1522
1507
  if (message.sound !== undefined) {
1523
1508
  obj.sound = (message.sound || long_1.default.UZERO).toString();
1524
1509
  }
@@ -1534,7 +1519,7 @@ exports.Notification = {
1534
1519
  return exports.Notification.fromPartial(base !== null && base !== void 0 ? base : {});
1535
1520
  },
1536
1521
  fromPartial(object) {
1537
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
1522
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
1538
1523
  const message = createBaseNotification();
1539
1524
  message.uuid = (_a = object.uuid) !== null && _a !== void 0 ? _a : "";
1540
1525
  message.userId = (object.userId !== undefined && object.userId !== null)
@@ -1543,13 +1528,13 @@ exports.Notification = {
1543
1528
  message.objectId = (object.objectId !== undefined && object.objectId !== null)
1544
1529
  ? long_1.default.fromValue(object.objectId)
1545
1530
  : undefined;
1546
- message.objectType = (_b = object.objectType) !== null && _b !== void 0 ? _b : 0;
1531
+ message.objectType = (_b = object.objectType) !== null && _b !== void 0 ? _b : undefined;
1547
1532
  message.title = (_c = object.title) !== null && _c !== void 0 ? _c : "";
1548
1533
  message.body = (_d = object.body) !== null && _d !== void 0 ? _d : undefined;
1549
1534
  message.alertId = (object.alertId !== undefined && object.alertId !== null)
1550
1535
  ? long_1.default.fromValue(object.alertId)
1551
1536
  : long_1.default.UZERO;
1552
- message.alertType = (_e = object.alertType) !== null && _e !== void 0 ? _e : 0;
1537
+ message.alert = (_e = object.alert) !== null && _e !== void 0 ? _e : 0;
1553
1538
  message.via = ((_f = object.via) === null || _f === void 0 ? void 0 : _f.map((e) => e)) || [];
1554
1539
  message.data = Object.entries((_g = object.data) !== null && _g !== void 0 ? _g : {}).reduce((acc, [key, value]) => {
1555
1540
  if (value !== undefined) {
@@ -1558,10 +1543,9 @@ exports.Notification = {
1558
1543
  return acc;
1559
1544
  }, {});
1560
1545
  message.image = (_h = object.image) !== null && _h !== void 0 ? _h : undefined;
1561
- message.icon = (_j = object.icon) !== null && _j !== void 0 ? _j : undefined;
1562
1546
  message.sound = (object.sound !== undefined && object.sound !== null) ? long_1.default.fromValue(object.sound) : undefined;
1563
- message.createdAt = (_k = object.createdAt) !== null && _k !== void 0 ? _k : undefined;
1564
- message.readAt = (_l = object.readAt) !== null && _l !== void 0 ? _l : undefined;
1547
+ message.createdAt = (_j = object.createdAt) !== null && _j !== void 0 ? _j : undefined;
1548
+ message.readAt = (_k = object.readAt) !== null && _k !== void 0 ? _k : undefined;
1565
1549
  return message;
1566
1550
  },
1567
1551
  };
@@ -1580,7 +1564,7 @@ exports.Notification_DataEntry = {
1580
1564
  },
1581
1565
  decode(input, length) {
1582
1566
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
1583
- const end = length === undefined ? reader.len : reader.pos + length;
1567
+ let end = length === undefined ? reader.len : reader.pos + length;
1584
1568
  const message = createBaseNotification_DataEntry();
1585
1569
  while (reader.pos < end) {
1586
1570
  const tag = reader.uint32();