@fatehan/tsrp 1.5.7 → 1.5.9
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/fatehan/apis/client.d.ts +0 -47
- package/dist/fatehan/apis/client.d.ts.map +1 -1
- package/dist/fatehan/apis/client.js +0 -567
- package/dist/fatehan/notifies/direct.d.ts +85 -0
- package/dist/fatehan/notifies/direct.d.ts.map +1 -0
- package/dist/fatehan/notifies/direct.js +669 -0
- package/dist/fatehan/notifies/notify.d.ts +5 -92
- package/dist/fatehan/notifies/notify.d.ts.map +1 -1
- package/dist/fatehan/notifies/notify.js +123 -1071
- package/dist/fatehan/packets/dataModel.d.ts +4 -0
- package/dist/fatehan/packets/dataModel.d.ts.map +1 -1
- package/dist/fatehan/packets/dataModel.js +44 -0
- package/dist/fatehan/services/api.d.ts +15 -1
- package/dist/fatehan/services/api.d.ts.map +1 -1
- package/dist/fatehan/services/api.js +160 -1
- package/dist/fatehan/trips/trip.d.ts +2 -71
- package/dist/fatehan/trips/trip.d.ts.map +1 -1
- package/dist/fatehan/trips/trip.js +25 -732
- package/package.json +2 -2
|
@@ -5,7 +5,6 @@ import { Maintenance, MaintenanceService } from "../devices/maintenance";
|
|
|
5
5
|
import { Currency } from "../financial/financial";
|
|
6
6
|
import { Organization, Permission, Person, User } from "../identities/identities";
|
|
7
7
|
import { LiveLocation } from "../models/models";
|
|
8
|
-
import { AlertModel, UserDeviceAlert } from "../notifies/notify";
|
|
9
8
|
import { CommandStruct } from "../packets/commands";
|
|
10
9
|
export declare const protobufPackage = "com.fatehan.apis";
|
|
11
10
|
export interface MessageOnly {
|
|
@@ -111,49 +110,6 @@ export interface TopRepeatedNotification {
|
|
|
111
110
|
title: string;
|
|
112
111
|
count: Long;
|
|
113
112
|
}
|
|
114
|
-
export interface NotificationFull {
|
|
115
|
-
uuid: string;
|
|
116
|
-
userId: Long;
|
|
117
|
-
objectId?: Long | undefined;
|
|
118
|
-
objectType?: string | undefined;
|
|
119
|
-
title: string;
|
|
120
|
-
body?: string | undefined;
|
|
121
|
-
alertId?: Long | undefined;
|
|
122
|
-
userAlertId?: Long | undefined;
|
|
123
|
-
alert: number;
|
|
124
|
-
via: number[];
|
|
125
|
-
image?: string | undefined;
|
|
126
|
-
sound?: Long | undefined;
|
|
127
|
-
readAt?: Date | undefined;
|
|
128
|
-
createdAt: Date | undefined;
|
|
129
|
-
updatedAt: Date | undefined;
|
|
130
|
-
alertModel?: AlertModel | undefined;
|
|
131
|
-
userAlert?: UserDeviceAlert | undefined;
|
|
132
|
-
data?: NotificationFull_RawData | undefined;
|
|
133
|
-
channels: Channel[];
|
|
134
|
-
}
|
|
135
|
-
export interface NotificationFull_RawData {
|
|
136
|
-
latitude?: number | undefined;
|
|
137
|
-
longitude?: number | undefined;
|
|
138
|
-
areaId?: Long | undefined;
|
|
139
|
-
areaName?: string | undefined;
|
|
140
|
-
deviceId?: Long | undefined;
|
|
141
|
-
alertValue?: Long | undefined;
|
|
142
|
-
gpsTime?: Date | undefined;
|
|
143
|
-
}
|
|
144
|
-
export interface NotificationPagination {
|
|
145
|
-
currentPage: number;
|
|
146
|
-
firstPageUrl: string;
|
|
147
|
-
lastPageUrl: string;
|
|
148
|
-
nextPageUrl: string;
|
|
149
|
-
prevPageUrl: string;
|
|
150
|
-
path: string;
|
|
151
|
-
from: number;
|
|
152
|
-
lastPage: number;
|
|
153
|
-
perPage: number;
|
|
154
|
-
to: number;
|
|
155
|
-
data: NotificationFull[];
|
|
156
|
-
}
|
|
157
113
|
export interface SessionPagination {
|
|
158
114
|
currentPage: number;
|
|
159
115
|
firstPageUrl: string;
|
|
@@ -263,9 +219,6 @@ export declare const Transaction: MessageFns<Transaction>;
|
|
|
263
219
|
export declare const Channel: MessageFns<Channel>;
|
|
264
220
|
export declare const Statistics: MessageFns<Statistics>;
|
|
265
221
|
export declare const TopRepeatedNotification: MessageFns<TopRepeatedNotification>;
|
|
266
|
-
export declare const NotificationFull: MessageFns<NotificationFull>;
|
|
267
|
-
export declare const NotificationFull_RawData: MessageFns<NotificationFull_RawData>;
|
|
268
|
-
export declare const NotificationPagination: MessageFns<NotificationPagination>;
|
|
269
222
|
export declare const SessionPagination: MessageFns<SessionPagination>;
|
|
270
223
|
export declare const TrackerPagination: MessageFns<TrackerPagination>;
|
|
271
224
|
export declare const Session: MessageFns<Session>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../src/fatehan/apis/client.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AACzE,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAElD,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAC;AAClF,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../src/fatehan/apis/client.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AACzE,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAElD,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAC;AAClF,OAAO,E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,CAAC,CAAC;IAC7D,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"}
|
|
@@ -12,7 +12,6 @@ import { Currency } from "../financial/financial";
|
|
|
12
12
|
import { Timestamp } from "../google/protobuf/timestamp";
|
|
13
13
|
import { Organization, Person, User } from "../identities/identities";
|
|
14
14
|
import { LiveLocation } from "../models/models";
|
|
15
|
-
import { AlertModel, UserDeviceAlert } from "../notifies/notify";
|
|
16
15
|
import { CommandStruct } from "../packets/commands";
|
|
17
16
|
export const protobufPackage = "com.fatehan.apis";
|
|
18
17
|
function createBaseMessageOnly() {
|
|
@@ -1341,572 +1340,6 @@ export const TopRepeatedNotification = {
|
|
|
1341
1340
|
return message;
|
|
1342
1341
|
},
|
|
1343
1342
|
};
|
|
1344
|
-
function createBaseNotificationFull() {
|
|
1345
|
-
return {
|
|
1346
|
-
uuid: "",
|
|
1347
|
-
userId: Long.UZERO,
|
|
1348
|
-
objectId: undefined,
|
|
1349
|
-
objectType: undefined,
|
|
1350
|
-
title: "",
|
|
1351
|
-
body: undefined,
|
|
1352
|
-
alertId: undefined,
|
|
1353
|
-
userAlertId: undefined,
|
|
1354
|
-
alert: 0,
|
|
1355
|
-
via: [],
|
|
1356
|
-
image: undefined,
|
|
1357
|
-
sound: undefined,
|
|
1358
|
-
readAt: undefined,
|
|
1359
|
-
createdAt: undefined,
|
|
1360
|
-
updatedAt: undefined,
|
|
1361
|
-
alertModel: undefined,
|
|
1362
|
-
userAlert: undefined,
|
|
1363
|
-
data: undefined,
|
|
1364
|
-
channels: [],
|
|
1365
|
-
};
|
|
1366
|
-
}
|
|
1367
|
-
export const NotificationFull = {
|
|
1368
|
-
encode(message, writer = new BinaryWriter()) {
|
|
1369
|
-
if (message.uuid !== "") {
|
|
1370
|
-
writer.uint32(90).string(message.uuid);
|
|
1371
|
-
}
|
|
1372
|
-
if (!message.userId.equals(Long.UZERO)) {
|
|
1373
|
-
writer.uint32(8).uint64(message.userId.toString());
|
|
1374
|
-
}
|
|
1375
|
-
if (message.objectId !== undefined) {
|
|
1376
|
-
writer.uint32(96).uint64(message.objectId.toString());
|
|
1377
|
-
}
|
|
1378
|
-
if (message.objectType !== undefined) {
|
|
1379
|
-
writer.uint32(106).string(message.objectType);
|
|
1380
|
-
}
|
|
1381
|
-
if (message.title !== "") {
|
|
1382
|
-
writer.uint32(18).string(message.title);
|
|
1383
|
-
}
|
|
1384
|
-
if (message.body !== undefined) {
|
|
1385
|
-
writer.uint32(26).string(message.body);
|
|
1386
|
-
}
|
|
1387
|
-
if (message.alertId !== undefined) {
|
|
1388
|
-
writer.uint32(48).uint64(message.alertId.toString());
|
|
1389
|
-
}
|
|
1390
|
-
if (message.userAlertId !== undefined) {
|
|
1391
|
-
writer.uint32(112).uint64(message.userAlertId.toString());
|
|
1392
|
-
}
|
|
1393
|
-
if (message.alert !== 0) {
|
|
1394
|
-
writer.uint32(120).sint32(message.alert);
|
|
1395
|
-
}
|
|
1396
|
-
writer.uint32(130).fork();
|
|
1397
|
-
for (const v of message.via) {
|
|
1398
|
-
writer.sint32(v);
|
|
1399
|
-
}
|
|
1400
|
-
writer.join();
|
|
1401
|
-
if (message.image !== undefined) {
|
|
1402
|
-
writer.uint32(138).string(message.image);
|
|
1403
|
-
}
|
|
1404
|
-
if (message.sound !== undefined) {
|
|
1405
|
-
writer.uint32(144).uint64(message.sound.toString());
|
|
1406
|
-
}
|
|
1407
|
-
if (message.readAt !== undefined) {
|
|
1408
|
-
Timestamp.encode(toTimestamp(message.readAt), writer.uint32(154).fork()).join();
|
|
1409
|
-
}
|
|
1410
|
-
if (message.createdAt !== undefined) {
|
|
1411
|
-
Timestamp.encode(toTimestamp(message.createdAt), writer.uint32(82).fork()).join();
|
|
1412
|
-
}
|
|
1413
|
-
if (message.updatedAt !== undefined) {
|
|
1414
|
-
Timestamp.encode(toTimestamp(message.updatedAt), writer.uint32(162).fork()).join();
|
|
1415
|
-
}
|
|
1416
|
-
if (message.alertModel !== undefined) {
|
|
1417
|
-
AlertModel.encode(message.alertModel, writer.uint32(34).fork()).join();
|
|
1418
|
-
}
|
|
1419
|
-
if (message.userAlert !== undefined) {
|
|
1420
|
-
UserDeviceAlert.encode(message.userAlert, writer.uint32(42).fork()).join();
|
|
1421
|
-
}
|
|
1422
|
-
if (message.data !== undefined) {
|
|
1423
|
-
NotificationFull_RawData.encode(message.data, writer.uint32(74).fork()).join();
|
|
1424
|
-
}
|
|
1425
|
-
for (const v of message.channels) {
|
|
1426
|
-
Channel.encode(v, writer.uint32(58).fork()).join();
|
|
1427
|
-
}
|
|
1428
|
-
return writer;
|
|
1429
|
-
},
|
|
1430
|
-
decode(input, length) {
|
|
1431
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1432
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1433
|
-
const message = createBaseNotificationFull();
|
|
1434
|
-
while (reader.pos < end) {
|
|
1435
|
-
const tag = reader.uint32();
|
|
1436
|
-
switch (tag >>> 3) {
|
|
1437
|
-
case 11: {
|
|
1438
|
-
if (tag !== 90) {
|
|
1439
|
-
break;
|
|
1440
|
-
}
|
|
1441
|
-
message.uuid = reader.string();
|
|
1442
|
-
continue;
|
|
1443
|
-
}
|
|
1444
|
-
case 1: {
|
|
1445
|
-
if (tag !== 8) {
|
|
1446
|
-
break;
|
|
1447
|
-
}
|
|
1448
|
-
message.userId = Long.fromString(reader.uint64().toString(), true);
|
|
1449
|
-
continue;
|
|
1450
|
-
}
|
|
1451
|
-
case 12: {
|
|
1452
|
-
if (tag !== 96) {
|
|
1453
|
-
break;
|
|
1454
|
-
}
|
|
1455
|
-
message.objectId = Long.fromString(reader.uint64().toString(), true);
|
|
1456
|
-
continue;
|
|
1457
|
-
}
|
|
1458
|
-
case 13: {
|
|
1459
|
-
if (tag !== 106) {
|
|
1460
|
-
break;
|
|
1461
|
-
}
|
|
1462
|
-
message.objectType = reader.string();
|
|
1463
|
-
continue;
|
|
1464
|
-
}
|
|
1465
|
-
case 2: {
|
|
1466
|
-
if (tag !== 18) {
|
|
1467
|
-
break;
|
|
1468
|
-
}
|
|
1469
|
-
message.title = reader.string();
|
|
1470
|
-
continue;
|
|
1471
|
-
}
|
|
1472
|
-
case 3: {
|
|
1473
|
-
if (tag !== 26) {
|
|
1474
|
-
break;
|
|
1475
|
-
}
|
|
1476
|
-
message.body = reader.string();
|
|
1477
|
-
continue;
|
|
1478
|
-
}
|
|
1479
|
-
case 6: {
|
|
1480
|
-
if (tag !== 48) {
|
|
1481
|
-
break;
|
|
1482
|
-
}
|
|
1483
|
-
message.alertId = Long.fromString(reader.uint64().toString(), true);
|
|
1484
|
-
continue;
|
|
1485
|
-
}
|
|
1486
|
-
case 14: {
|
|
1487
|
-
if (tag !== 112) {
|
|
1488
|
-
break;
|
|
1489
|
-
}
|
|
1490
|
-
message.userAlertId = Long.fromString(reader.uint64().toString(), true);
|
|
1491
|
-
continue;
|
|
1492
|
-
}
|
|
1493
|
-
case 15: {
|
|
1494
|
-
if (tag !== 120) {
|
|
1495
|
-
break;
|
|
1496
|
-
}
|
|
1497
|
-
message.alert = reader.sint32();
|
|
1498
|
-
continue;
|
|
1499
|
-
}
|
|
1500
|
-
case 16: {
|
|
1501
|
-
if (tag === 128) {
|
|
1502
|
-
message.via.push(reader.sint32());
|
|
1503
|
-
continue;
|
|
1504
|
-
}
|
|
1505
|
-
if (tag === 130) {
|
|
1506
|
-
const end2 = reader.uint32() + reader.pos;
|
|
1507
|
-
while (reader.pos < end2) {
|
|
1508
|
-
message.via.push(reader.sint32());
|
|
1509
|
-
}
|
|
1510
|
-
continue;
|
|
1511
|
-
}
|
|
1512
|
-
break;
|
|
1513
|
-
}
|
|
1514
|
-
case 17: {
|
|
1515
|
-
if (tag !== 138) {
|
|
1516
|
-
break;
|
|
1517
|
-
}
|
|
1518
|
-
message.image = reader.string();
|
|
1519
|
-
continue;
|
|
1520
|
-
}
|
|
1521
|
-
case 18: {
|
|
1522
|
-
if (tag !== 144) {
|
|
1523
|
-
break;
|
|
1524
|
-
}
|
|
1525
|
-
message.sound = Long.fromString(reader.uint64().toString(), true);
|
|
1526
|
-
continue;
|
|
1527
|
-
}
|
|
1528
|
-
case 19: {
|
|
1529
|
-
if (tag !== 154) {
|
|
1530
|
-
break;
|
|
1531
|
-
}
|
|
1532
|
-
message.readAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
1533
|
-
continue;
|
|
1534
|
-
}
|
|
1535
|
-
case 10: {
|
|
1536
|
-
if (tag !== 82) {
|
|
1537
|
-
break;
|
|
1538
|
-
}
|
|
1539
|
-
message.createdAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
1540
|
-
continue;
|
|
1541
|
-
}
|
|
1542
|
-
case 20: {
|
|
1543
|
-
if (tag !== 162) {
|
|
1544
|
-
break;
|
|
1545
|
-
}
|
|
1546
|
-
message.updatedAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
1547
|
-
continue;
|
|
1548
|
-
}
|
|
1549
|
-
case 4: {
|
|
1550
|
-
if (tag !== 34) {
|
|
1551
|
-
break;
|
|
1552
|
-
}
|
|
1553
|
-
message.alertModel = AlertModel.decode(reader, reader.uint32());
|
|
1554
|
-
continue;
|
|
1555
|
-
}
|
|
1556
|
-
case 5: {
|
|
1557
|
-
if (tag !== 42) {
|
|
1558
|
-
break;
|
|
1559
|
-
}
|
|
1560
|
-
message.userAlert = UserDeviceAlert.decode(reader, reader.uint32());
|
|
1561
|
-
continue;
|
|
1562
|
-
}
|
|
1563
|
-
case 9: {
|
|
1564
|
-
if (tag !== 74) {
|
|
1565
|
-
break;
|
|
1566
|
-
}
|
|
1567
|
-
message.data = NotificationFull_RawData.decode(reader, reader.uint32());
|
|
1568
|
-
continue;
|
|
1569
|
-
}
|
|
1570
|
-
case 7: {
|
|
1571
|
-
if (tag !== 58) {
|
|
1572
|
-
break;
|
|
1573
|
-
}
|
|
1574
|
-
message.channels.push(Channel.decode(reader, reader.uint32()));
|
|
1575
|
-
continue;
|
|
1576
|
-
}
|
|
1577
|
-
}
|
|
1578
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1579
|
-
break;
|
|
1580
|
-
}
|
|
1581
|
-
reader.skip(tag & 7);
|
|
1582
|
-
}
|
|
1583
|
-
return message;
|
|
1584
|
-
},
|
|
1585
|
-
create(base) {
|
|
1586
|
-
return NotificationFull.fromPartial(base ?? {});
|
|
1587
|
-
},
|
|
1588
|
-
fromPartial(object) {
|
|
1589
|
-
const message = createBaseNotificationFull();
|
|
1590
|
-
message.uuid = object.uuid ?? "";
|
|
1591
|
-
message.userId = (object.userId !== undefined && object.userId !== null)
|
|
1592
|
-
? Long.fromValue(object.userId)
|
|
1593
|
-
: Long.UZERO;
|
|
1594
|
-
message.objectId = (object.objectId !== undefined && object.objectId !== null)
|
|
1595
|
-
? Long.fromValue(object.objectId)
|
|
1596
|
-
: undefined;
|
|
1597
|
-
message.objectType = object.objectType ?? undefined;
|
|
1598
|
-
message.title = object.title ?? "";
|
|
1599
|
-
message.body = object.body ?? undefined;
|
|
1600
|
-
message.alertId = (object.alertId !== undefined && object.alertId !== null)
|
|
1601
|
-
? Long.fromValue(object.alertId)
|
|
1602
|
-
: undefined;
|
|
1603
|
-
message.userAlertId = (object.userAlertId !== undefined && object.userAlertId !== null)
|
|
1604
|
-
? Long.fromValue(object.userAlertId)
|
|
1605
|
-
: undefined;
|
|
1606
|
-
message.alert = object.alert ?? 0;
|
|
1607
|
-
message.via = object.via?.map((e) => e) || [];
|
|
1608
|
-
message.image = object.image ?? undefined;
|
|
1609
|
-
message.sound = (object.sound !== undefined && object.sound !== null) ? Long.fromValue(object.sound) : undefined;
|
|
1610
|
-
message.readAt = object.readAt ?? undefined;
|
|
1611
|
-
message.createdAt = object.createdAt ?? undefined;
|
|
1612
|
-
message.updatedAt = object.updatedAt ?? undefined;
|
|
1613
|
-
message.alertModel = (object.alertModel !== undefined && object.alertModel !== null)
|
|
1614
|
-
? AlertModel.fromPartial(object.alertModel)
|
|
1615
|
-
: undefined;
|
|
1616
|
-
message.userAlert = (object.userAlert !== undefined && object.userAlert !== null)
|
|
1617
|
-
? UserDeviceAlert.fromPartial(object.userAlert)
|
|
1618
|
-
: undefined;
|
|
1619
|
-
message.data = (object.data !== undefined && object.data !== null)
|
|
1620
|
-
? NotificationFull_RawData.fromPartial(object.data)
|
|
1621
|
-
: undefined;
|
|
1622
|
-
message.channels = object.channels?.map((e) => Channel.fromPartial(e)) || [];
|
|
1623
|
-
return message;
|
|
1624
|
-
},
|
|
1625
|
-
};
|
|
1626
|
-
function createBaseNotificationFull_RawData() {
|
|
1627
|
-
return {
|
|
1628
|
-
latitude: undefined,
|
|
1629
|
-
longitude: undefined,
|
|
1630
|
-
areaId: undefined,
|
|
1631
|
-
areaName: undefined,
|
|
1632
|
-
deviceId: undefined,
|
|
1633
|
-
alertValue: undefined,
|
|
1634
|
-
gpsTime: undefined,
|
|
1635
|
-
};
|
|
1636
|
-
}
|
|
1637
|
-
export const NotificationFull_RawData = {
|
|
1638
|
-
encode(message, writer = new BinaryWriter()) {
|
|
1639
|
-
if (message.latitude !== undefined) {
|
|
1640
|
-
writer.uint32(13).float(message.latitude);
|
|
1641
|
-
}
|
|
1642
|
-
if (message.longitude !== undefined) {
|
|
1643
|
-
writer.uint32(21).float(message.longitude);
|
|
1644
|
-
}
|
|
1645
|
-
if (message.areaId !== undefined) {
|
|
1646
|
-
writer.uint32(24).uint64(message.areaId.toString());
|
|
1647
|
-
}
|
|
1648
|
-
if (message.areaName !== undefined) {
|
|
1649
|
-
writer.uint32(42).string(message.areaName);
|
|
1650
|
-
}
|
|
1651
|
-
if (message.deviceId !== undefined) {
|
|
1652
|
-
writer.uint32(48).uint64(message.deviceId.toString());
|
|
1653
|
-
}
|
|
1654
|
-
if (message.alertValue !== undefined) {
|
|
1655
|
-
writer.uint32(56).sint64(message.alertValue.toString());
|
|
1656
|
-
}
|
|
1657
|
-
if (message.gpsTime !== undefined) {
|
|
1658
|
-
Timestamp.encode(toTimestamp(message.gpsTime), writer.uint32(34).fork()).join();
|
|
1659
|
-
}
|
|
1660
|
-
return writer;
|
|
1661
|
-
},
|
|
1662
|
-
decode(input, length) {
|
|
1663
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1664
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1665
|
-
const message = createBaseNotificationFull_RawData();
|
|
1666
|
-
while (reader.pos < end) {
|
|
1667
|
-
const tag = reader.uint32();
|
|
1668
|
-
switch (tag >>> 3) {
|
|
1669
|
-
case 1: {
|
|
1670
|
-
if (tag !== 13) {
|
|
1671
|
-
break;
|
|
1672
|
-
}
|
|
1673
|
-
message.latitude = reader.float();
|
|
1674
|
-
continue;
|
|
1675
|
-
}
|
|
1676
|
-
case 2: {
|
|
1677
|
-
if (tag !== 21) {
|
|
1678
|
-
break;
|
|
1679
|
-
}
|
|
1680
|
-
message.longitude = reader.float();
|
|
1681
|
-
continue;
|
|
1682
|
-
}
|
|
1683
|
-
case 3: {
|
|
1684
|
-
if (tag !== 24) {
|
|
1685
|
-
break;
|
|
1686
|
-
}
|
|
1687
|
-
message.areaId = Long.fromString(reader.uint64().toString(), true);
|
|
1688
|
-
continue;
|
|
1689
|
-
}
|
|
1690
|
-
case 5: {
|
|
1691
|
-
if (tag !== 42) {
|
|
1692
|
-
break;
|
|
1693
|
-
}
|
|
1694
|
-
message.areaName = reader.string();
|
|
1695
|
-
continue;
|
|
1696
|
-
}
|
|
1697
|
-
case 6: {
|
|
1698
|
-
if (tag !== 48) {
|
|
1699
|
-
break;
|
|
1700
|
-
}
|
|
1701
|
-
message.deviceId = Long.fromString(reader.uint64().toString(), true);
|
|
1702
|
-
continue;
|
|
1703
|
-
}
|
|
1704
|
-
case 7: {
|
|
1705
|
-
if (tag !== 56) {
|
|
1706
|
-
break;
|
|
1707
|
-
}
|
|
1708
|
-
message.alertValue = Long.fromString(reader.sint64().toString());
|
|
1709
|
-
continue;
|
|
1710
|
-
}
|
|
1711
|
-
case 4: {
|
|
1712
|
-
if (tag !== 34) {
|
|
1713
|
-
break;
|
|
1714
|
-
}
|
|
1715
|
-
message.gpsTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
1716
|
-
continue;
|
|
1717
|
-
}
|
|
1718
|
-
}
|
|
1719
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1720
|
-
break;
|
|
1721
|
-
}
|
|
1722
|
-
reader.skip(tag & 7);
|
|
1723
|
-
}
|
|
1724
|
-
return message;
|
|
1725
|
-
},
|
|
1726
|
-
create(base) {
|
|
1727
|
-
return NotificationFull_RawData.fromPartial(base ?? {});
|
|
1728
|
-
},
|
|
1729
|
-
fromPartial(object) {
|
|
1730
|
-
const message = createBaseNotificationFull_RawData();
|
|
1731
|
-
message.latitude = object.latitude ?? undefined;
|
|
1732
|
-
message.longitude = object.longitude ?? undefined;
|
|
1733
|
-
message.areaId = (object.areaId !== undefined && object.areaId !== null)
|
|
1734
|
-
? Long.fromValue(object.areaId)
|
|
1735
|
-
: undefined;
|
|
1736
|
-
message.areaName = object.areaName ?? undefined;
|
|
1737
|
-
message.deviceId = (object.deviceId !== undefined && object.deviceId !== null)
|
|
1738
|
-
? Long.fromValue(object.deviceId)
|
|
1739
|
-
: undefined;
|
|
1740
|
-
message.alertValue = (object.alertValue !== undefined && object.alertValue !== null)
|
|
1741
|
-
? Long.fromValue(object.alertValue)
|
|
1742
|
-
: undefined;
|
|
1743
|
-
message.gpsTime = object.gpsTime ?? undefined;
|
|
1744
|
-
return message;
|
|
1745
|
-
},
|
|
1746
|
-
};
|
|
1747
|
-
function createBaseNotificationPagination() {
|
|
1748
|
-
return {
|
|
1749
|
-
currentPage: 0,
|
|
1750
|
-
firstPageUrl: "",
|
|
1751
|
-
lastPageUrl: "",
|
|
1752
|
-
nextPageUrl: "",
|
|
1753
|
-
prevPageUrl: "",
|
|
1754
|
-
path: "",
|
|
1755
|
-
from: 0,
|
|
1756
|
-
lastPage: 0,
|
|
1757
|
-
perPage: 0,
|
|
1758
|
-
to: 0,
|
|
1759
|
-
data: [],
|
|
1760
|
-
};
|
|
1761
|
-
}
|
|
1762
|
-
export const NotificationPagination = {
|
|
1763
|
-
encode(message, writer = new BinaryWriter()) {
|
|
1764
|
-
if (message.currentPage !== 0) {
|
|
1765
|
-
writer.uint32(8).uint32(message.currentPage);
|
|
1766
|
-
}
|
|
1767
|
-
if (message.firstPageUrl !== "") {
|
|
1768
|
-
writer.uint32(18).string(message.firstPageUrl);
|
|
1769
|
-
}
|
|
1770
|
-
if (message.lastPageUrl !== "") {
|
|
1771
|
-
writer.uint32(26).string(message.lastPageUrl);
|
|
1772
|
-
}
|
|
1773
|
-
if (message.nextPageUrl !== "") {
|
|
1774
|
-
writer.uint32(34).string(message.nextPageUrl);
|
|
1775
|
-
}
|
|
1776
|
-
if (message.prevPageUrl !== "") {
|
|
1777
|
-
writer.uint32(42).string(message.prevPageUrl);
|
|
1778
|
-
}
|
|
1779
|
-
if (message.path !== "") {
|
|
1780
|
-
writer.uint32(50).string(message.path);
|
|
1781
|
-
}
|
|
1782
|
-
if (message.from !== 0) {
|
|
1783
|
-
writer.uint32(56).uint32(message.from);
|
|
1784
|
-
}
|
|
1785
|
-
if (message.lastPage !== 0) {
|
|
1786
|
-
writer.uint32(64).uint32(message.lastPage);
|
|
1787
|
-
}
|
|
1788
|
-
if (message.perPage !== 0) {
|
|
1789
|
-
writer.uint32(72).uint32(message.perPage);
|
|
1790
|
-
}
|
|
1791
|
-
if (message.to !== 0) {
|
|
1792
|
-
writer.uint32(80).uint32(message.to);
|
|
1793
|
-
}
|
|
1794
|
-
for (const v of message.data) {
|
|
1795
|
-
NotificationFull.encode(v, writer.uint32(90).fork()).join();
|
|
1796
|
-
}
|
|
1797
|
-
return writer;
|
|
1798
|
-
},
|
|
1799
|
-
decode(input, length) {
|
|
1800
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1801
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1802
|
-
const message = createBaseNotificationPagination();
|
|
1803
|
-
while (reader.pos < end) {
|
|
1804
|
-
const tag = reader.uint32();
|
|
1805
|
-
switch (tag >>> 3) {
|
|
1806
|
-
case 1: {
|
|
1807
|
-
if (tag !== 8) {
|
|
1808
|
-
break;
|
|
1809
|
-
}
|
|
1810
|
-
message.currentPage = reader.uint32();
|
|
1811
|
-
continue;
|
|
1812
|
-
}
|
|
1813
|
-
case 2: {
|
|
1814
|
-
if (tag !== 18) {
|
|
1815
|
-
break;
|
|
1816
|
-
}
|
|
1817
|
-
message.firstPageUrl = reader.string();
|
|
1818
|
-
continue;
|
|
1819
|
-
}
|
|
1820
|
-
case 3: {
|
|
1821
|
-
if (tag !== 26) {
|
|
1822
|
-
break;
|
|
1823
|
-
}
|
|
1824
|
-
message.lastPageUrl = reader.string();
|
|
1825
|
-
continue;
|
|
1826
|
-
}
|
|
1827
|
-
case 4: {
|
|
1828
|
-
if (tag !== 34) {
|
|
1829
|
-
break;
|
|
1830
|
-
}
|
|
1831
|
-
message.nextPageUrl = reader.string();
|
|
1832
|
-
continue;
|
|
1833
|
-
}
|
|
1834
|
-
case 5: {
|
|
1835
|
-
if (tag !== 42) {
|
|
1836
|
-
break;
|
|
1837
|
-
}
|
|
1838
|
-
message.prevPageUrl = reader.string();
|
|
1839
|
-
continue;
|
|
1840
|
-
}
|
|
1841
|
-
case 6: {
|
|
1842
|
-
if (tag !== 50) {
|
|
1843
|
-
break;
|
|
1844
|
-
}
|
|
1845
|
-
message.path = reader.string();
|
|
1846
|
-
continue;
|
|
1847
|
-
}
|
|
1848
|
-
case 7: {
|
|
1849
|
-
if (tag !== 56) {
|
|
1850
|
-
break;
|
|
1851
|
-
}
|
|
1852
|
-
message.from = reader.uint32();
|
|
1853
|
-
continue;
|
|
1854
|
-
}
|
|
1855
|
-
case 8: {
|
|
1856
|
-
if (tag !== 64) {
|
|
1857
|
-
break;
|
|
1858
|
-
}
|
|
1859
|
-
message.lastPage = reader.uint32();
|
|
1860
|
-
continue;
|
|
1861
|
-
}
|
|
1862
|
-
case 9: {
|
|
1863
|
-
if (tag !== 72) {
|
|
1864
|
-
break;
|
|
1865
|
-
}
|
|
1866
|
-
message.perPage = reader.uint32();
|
|
1867
|
-
continue;
|
|
1868
|
-
}
|
|
1869
|
-
case 10: {
|
|
1870
|
-
if (tag !== 80) {
|
|
1871
|
-
break;
|
|
1872
|
-
}
|
|
1873
|
-
message.to = reader.uint32();
|
|
1874
|
-
continue;
|
|
1875
|
-
}
|
|
1876
|
-
case 11: {
|
|
1877
|
-
if (tag !== 90) {
|
|
1878
|
-
break;
|
|
1879
|
-
}
|
|
1880
|
-
message.data.push(NotificationFull.decode(reader, reader.uint32()));
|
|
1881
|
-
continue;
|
|
1882
|
-
}
|
|
1883
|
-
}
|
|
1884
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1885
|
-
break;
|
|
1886
|
-
}
|
|
1887
|
-
reader.skip(tag & 7);
|
|
1888
|
-
}
|
|
1889
|
-
return message;
|
|
1890
|
-
},
|
|
1891
|
-
create(base) {
|
|
1892
|
-
return NotificationPagination.fromPartial(base ?? {});
|
|
1893
|
-
},
|
|
1894
|
-
fromPartial(object) {
|
|
1895
|
-
const message = createBaseNotificationPagination();
|
|
1896
|
-
message.currentPage = object.currentPage ?? 0;
|
|
1897
|
-
message.firstPageUrl = object.firstPageUrl ?? "";
|
|
1898
|
-
message.lastPageUrl = object.lastPageUrl ?? "";
|
|
1899
|
-
message.nextPageUrl = object.nextPageUrl ?? "";
|
|
1900
|
-
message.prevPageUrl = object.prevPageUrl ?? "";
|
|
1901
|
-
message.path = object.path ?? "";
|
|
1902
|
-
message.from = object.from ?? 0;
|
|
1903
|
-
message.lastPage = object.lastPage ?? 0;
|
|
1904
|
-
message.perPage = object.perPage ?? 0;
|
|
1905
|
-
message.to = object.to ?? 0;
|
|
1906
|
-
message.data = object.data?.map((e) => NotificationFull.fromPartial(e)) || [];
|
|
1907
|
-
return message;
|
|
1908
|
-
},
|
|
1909
|
-
};
|
|
1910
1343
|
function createBaseSessionPagination() {
|
|
1911
1344
|
return {
|
|
1912
1345
|
currentPage: 0,
|