@fatehan/tsrp 1.6.75 → 1.6.78
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 +111 -0
- package/dist/fatehan/apis/client.d.ts.map +1 -1
- package/dist/fatehan/apis/client.js +1168 -0
- package/dist/fatehan/devices/fleet.d.ts +516 -0
- package/dist/fatehan/devices/fleet.d.ts.map +1 -0
- package/dist/fatehan/devices/fleet.js +4193 -0
- package/dist/fatehan/devices/maintenance.d.ts +63 -0
- package/dist/fatehan/devices/maintenance.d.ts.map +1 -1
- package/dist/fatehan/devices/maintenance.js +648 -0
- package/dist/fatehan/identities/identities.d.ts +79 -0
- package/dist/fatehan/identities/identities.d.ts.map +1 -1
- package/dist/fatehan/identities/identities.js +79 -0
- package/dist/fatehan/services/api.d.ts +156 -1
- package/dist/fatehan/services/api.d.ts.map +1 -1
- package/dist/fatehan/services/api.js +2214 -445
- package/dist/fatehan/services/repositories.d.ts +18 -0
- package/dist/fatehan/services/repositories.d.ts.map +1 -1
- package/dist/fatehan/services/repositories.js +211 -0
- package/dist/services.d.ts +6 -1
- package/dist/services.d.ts.map +1 -1
- package/dist/services.js +16 -1
- package/package.json +1 -1
|
@@ -10,6 +10,7 @@ import { WorkflowTask } from "../activities/workflow";
|
|
|
10
10
|
import { WorkShift, WorkShiftTemplate } from "../activities/workshift";
|
|
11
11
|
import { Area, Point, WorkCycle } from "../areas/area";
|
|
12
12
|
import { CommandAction, SystemIo } from "../devices/devices";
|
|
13
|
+
import { FleetInboxItem, OdometerOffset, OutOfService } from "../devices/fleet";
|
|
13
14
|
import { Maintenance } from "../devices/maintenance";
|
|
14
15
|
import { Currency, Order, Wallet } from "../financial/financial";
|
|
15
16
|
import { Timestamp } from "../google/protobuf/timestamp";
|
|
@@ -20,7 +21,7 @@ import { Event, EventTemplate, Notification } from "../notifies/notify";
|
|
|
20
21
|
import { Command, CommandFormat } from "../packets/commands";
|
|
21
22
|
import { Data, Log } from "../packets/dataModel";
|
|
22
23
|
import { FusionTrip, Trip, TripDurationStat, TripPoint } from "../trips/trip";
|
|
23
|
-
import { DeviceRepo, PersonRepo, UserRepo } from "./repositories";
|
|
24
|
+
import { DeviceRepo, PersonRepo, RahdariDeviceRepo, UserRepo } from "./repositories";
|
|
24
25
|
export const protobufPackage = "com.fatehan.services";
|
|
25
26
|
export var Source;
|
|
26
27
|
(function (Source) {
|
|
@@ -1302,28 +1303,28 @@ export const MaintenanceIndexResponse_Statistics = {
|
|
|
1302
1303
|
return message;
|
|
1303
1304
|
},
|
|
1304
1305
|
};
|
|
1305
|
-
function
|
|
1306
|
-
return {
|
|
1306
|
+
function createBaseFleetInboxRequest() {
|
|
1307
|
+
return { deviceId: undefined };
|
|
1307
1308
|
}
|
|
1308
|
-
export const
|
|
1309
|
+
export const FleetInboxRequest = {
|
|
1309
1310
|
encode(message, writer = new BinaryWriter()) {
|
|
1310
|
-
if (message.
|
|
1311
|
-
writer.uint32(
|
|
1311
|
+
if (message.deviceId !== undefined) {
|
|
1312
|
+
writer.uint32(8).uint64(message.deviceId.toString());
|
|
1312
1313
|
}
|
|
1313
1314
|
return writer;
|
|
1314
1315
|
},
|
|
1315
1316
|
decode(input, length) {
|
|
1316
1317
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1317
1318
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1318
|
-
const message =
|
|
1319
|
+
const message = createBaseFleetInboxRequest();
|
|
1319
1320
|
while (reader.pos < end) {
|
|
1320
1321
|
const tag = reader.uint32();
|
|
1321
1322
|
switch (tag >>> 3) {
|
|
1322
1323
|
case 1: {
|
|
1323
|
-
if (tag !==
|
|
1324
|
+
if (tag !== 8) {
|
|
1324
1325
|
break;
|
|
1325
1326
|
}
|
|
1326
|
-
message.
|
|
1327
|
+
message.deviceId = Long.fromString(reader.uint64().toString(), true);
|
|
1327
1328
|
continue;
|
|
1328
1329
|
}
|
|
1329
1330
|
}
|
|
@@ -1335,37 +1336,36 @@ export const AuthRequest = {
|
|
|
1335
1336
|
return message;
|
|
1336
1337
|
},
|
|
1337
1338
|
create(base) {
|
|
1338
|
-
return
|
|
1339
|
+
return FleetInboxRequest.fromPartial(base ?? {});
|
|
1339
1340
|
},
|
|
1340
1341
|
fromPartial(object) {
|
|
1341
|
-
const message =
|
|
1342
|
-
message.
|
|
1342
|
+
const message = createBaseFleetInboxRequest();
|
|
1343
|
+
message.deviceId = (object.deviceId !== undefined && object.deviceId !== null)
|
|
1344
|
+
? Long.fromValue(object.deviceId)
|
|
1345
|
+
: undefined;
|
|
1343
1346
|
return message;
|
|
1344
1347
|
},
|
|
1345
1348
|
};
|
|
1346
|
-
function
|
|
1347
|
-
return {
|
|
1349
|
+
function createBaseFleetInboxResponse() {
|
|
1350
|
+
return { items: [], total: 0, cost: 0 };
|
|
1348
1351
|
}
|
|
1349
|
-
export const
|
|
1352
|
+
export const FleetInboxResponse = {
|
|
1350
1353
|
encode(message, writer = new BinaryWriter()) {
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
}
|
|
1354
|
-
if (message.accessToken !== undefined) {
|
|
1355
|
-
AccessToken.encode(message.accessToken, writer.uint32(18).fork()).join();
|
|
1354
|
+
for (const v of message.items) {
|
|
1355
|
+
FleetInboxItem.encode(v, writer.uint32(10).fork()).join();
|
|
1356
1356
|
}
|
|
1357
|
-
if (message.
|
|
1358
|
-
|
|
1357
|
+
if (message.total !== 0) {
|
|
1358
|
+
writer.uint32(16).uint32(message.total);
|
|
1359
1359
|
}
|
|
1360
1360
|
if (message.cost !== 0) {
|
|
1361
|
-
writer.uint32(
|
|
1361
|
+
writer.uint32(24).uint32(message.cost);
|
|
1362
1362
|
}
|
|
1363
1363
|
return writer;
|
|
1364
1364
|
},
|
|
1365
1365
|
decode(input, length) {
|
|
1366
1366
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1367
1367
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1368
|
-
const message =
|
|
1368
|
+
const message = createBaseFleetInboxResponse();
|
|
1369
1369
|
while (reader.pos < end) {
|
|
1370
1370
|
const tag = reader.uint32();
|
|
1371
1371
|
switch (tag >>> 3) {
|
|
@@ -1373,25 +1373,18 @@ export const AuthResponse = {
|
|
|
1373
1373
|
if (tag !== 10) {
|
|
1374
1374
|
break;
|
|
1375
1375
|
}
|
|
1376
|
-
message.
|
|
1376
|
+
message.items.push(FleetInboxItem.decode(reader, reader.uint32()));
|
|
1377
1377
|
continue;
|
|
1378
1378
|
}
|
|
1379
1379
|
case 2: {
|
|
1380
|
-
if (tag !==
|
|
1380
|
+
if (tag !== 16) {
|
|
1381
1381
|
break;
|
|
1382
1382
|
}
|
|
1383
|
-
message.
|
|
1383
|
+
message.total = reader.uint32();
|
|
1384
1384
|
continue;
|
|
1385
1385
|
}
|
|
1386
1386
|
case 3: {
|
|
1387
|
-
if (tag !==
|
|
1388
|
-
break;
|
|
1389
|
-
}
|
|
1390
|
-
message.userRepo = UserRepo.decode(reader, reader.uint32());
|
|
1391
|
-
continue;
|
|
1392
|
-
}
|
|
1393
|
-
case 4: {
|
|
1394
|
-
if (tag !== 32) {
|
|
1387
|
+
if (tag !== 24) {
|
|
1395
1388
|
break;
|
|
1396
1389
|
}
|
|
1397
1390
|
message.cost = reader.uint32();
|
|
@@ -1406,45 +1399,58 @@ export const AuthResponse = {
|
|
|
1406
1399
|
return message;
|
|
1407
1400
|
},
|
|
1408
1401
|
create(base) {
|
|
1409
|
-
return
|
|
1402
|
+
return FleetInboxResponse.fromPartial(base ?? {});
|
|
1410
1403
|
},
|
|
1411
1404
|
fromPartial(object) {
|
|
1412
|
-
const message =
|
|
1413
|
-
message.
|
|
1414
|
-
|
|
1415
|
-
: undefined;
|
|
1416
|
-
message.accessToken = (object.accessToken !== undefined && object.accessToken !== null)
|
|
1417
|
-
? AccessToken.fromPartial(object.accessToken)
|
|
1418
|
-
: undefined;
|
|
1419
|
-
message.userRepo = (object.userRepo !== undefined && object.userRepo !== null)
|
|
1420
|
-
? UserRepo.fromPartial(object.userRepo)
|
|
1421
|
-
: undefined;
|
|
1405
|
+
const message = createBaseFleetInboxResponse();
|
|
1406
|
+
message.items = object.items?.map((e) => FleetInboxItem.fromPartial(e)) || [];
|
|
1407
|
+
message.total = object.total ?? 0;
|
|
1422
1408
|
message.cost = object.cost ?? 0;
|
|
1423
1409
|
return message;
|
|
1424
1410
|
},
|
|
1425
1411
|
};
|
|
1426
|
-
function
|
|
1427
|
-
return {
|
|
1412
|
+
function createBaseFleetDailyTotal() {
|
|
1413
|
+
return { day: undefined, approved: 0, pending: 0 };
|
|
1428
1414
|
}
|
|
1429
|
-
export const
|
|
1415
|
+
export const FleetDailyTotal = {
|
|
1430
1416
|
encode(message, writer = new BinaryWriter()) {
|
|
1431
|
-
if (message.
|
|
1432
|
-
writer.uint32(
|
|
1417
|
+
if (message.day !== undefined) {
|
|
1418
|
+
Timestamp.encode(toTimestamp(message.day), writer.uint32(10).fork()).join();
|
|
1419
|
+
}
|
|
1420
|
+
if (message.approved !== 0) {
|
|
1421
|
+
writer.uint32(17).double(message.approved);
|
|
1422
|
+
}
|
|
1423
|
+
if (message.pending !== 0) {
|
|
1424
|
+
writer.uint32(25).double(message.pending);
|
|
1433
1425
|
}
|
|
1434
1426
|
return writer;
|
|
1435
1427
|
},
|
|
1436
1428
|
decode(input, length) {
|
|
1437
1429
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1438
1430
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1439
|
-
const message =
|
|
1431
|
+
const message = createBaseFleetDailyTotal();
|
|
1440
1432
|
while (reader.pos < end) {
|
|
1441
1433
|
const tag = reader.uint32();
|
|
1442
1434
|
switch (tag >>> 3) {
|
|
1443
1435
|
case 1: {
|
|
1444
|
-
if (tag !==
|
|
1436
|
+
if (tag !== 10) {
|
|
1445
1437
|
break;
|
|
1446
1438
|
}
|
|
1447
|
-
message.
|
|
1439
|
+
message.day = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
1440
|
+
continue;
|
|
1441
|
+
}
|
|
1442
|
+
case 2: {
|
|
1443
|
+
if (tag !== 17) {
|
|
1444
|
+
break;
|
|
1445
|
+
}
|
|
1446
|
+
message.approved = reader.double();
|
|
1447
|
+
continue;
|
|
1448
|
+
}
|
|
1449
|
+
case 3: {
|
|
1450
|
+
if (tag !== 25) {
|
|
1451
|
+
break;
|
|
1452
|
+
}
|
|
1453
|
+
message.pending = reader.double();
|
|
1448
1454
|
continue;
|
|
1449
1455
|
}
|
|
1450
1456
|
}
|
|
@@ -1456,36 +1462,36 @@ export const IoRequest = {
|
|
|
1456
1462
|
return message;
|
|
1457
1463
|
},
|
|
1458
1464
|
create(base) {
|
|
1459
|
-
return
|
|
1465
|
+
return FleetDailyTotal.fromPartial(base ?? {});
|
|
1460
1466
|
},
|
|
1461
1467
|
fromPartial(object) {
|
|
1462
|
-
const message =
|
|
1463
|
-
message.
|
|
1464
|
-
|
|
1465
|
-
|
|
1468
|
+
const message = createBaseFleetDailyTotal();
|
|
1469
|
+
message.day = object.day ?? undefined;
|
|
1470
|
+
message.approved = object.approved ?? 0;
|
|
1471
|
+
message.pending = object.pending ?? 0;
|
|
1466
1472
|
return message;
|
|
1467
1473
|
},
|
|
1468
1474
|
};
|
|
1469
|
-
function
|
|
1470
|
-
return {
|
|
1475
|
+
function createBaseFleetTypeTotal() {
|
|
1476
|
+
return { type: 0, amount: 0, count: 0 };
|
|
1471
1477
|
}
|
|
1472
|
-
export const
|
|
1478
|
+
export const FleetTypeTotal = {
|
|
1473
1479
|
encode(message, writer = new BinaryWriter()) {
|
|
1474
|
-
if (message.
|
|
1475
|
-
writer.uint32(8).
|
|
1480
|
+
if (message.type !== 0) {
|
|
1481
|
+
writer.uint32(8).int32(message.type);
|
|
1476
1482
|
}
|
|
1477
|
-
if (message.
|
|
1478
|
-
writer.uint32(
|
|
1483
|
+
if (message.amount !== 0) {
|
|
1484
|
+
writer.uint32(17).double(message.amount);
|
|
1479
1485
|
}
|
|
1480
|
-
|
|
1481
|
-
|
|
1486
|
+
if (message.count !== 0) {
|
|
1487
|
+
writer.uint32(24).uint32(message.count);
|
|
1482
1488
|
}
|
|
1483
1489
|
return writer;
|
|
1484
1490
|
},
|
|
1485
1491
|
decode(input, length) {
|
|
1486
1492
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1487
1493
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1488
|
-
const message =
|
|
1494
|
+
const message = createBaseFleetTypeTotal();
|
|
1489
1495
|
while (reader.pos < end) {
|
|
1490
1496
|
const tag = reader.uint32();
|
|
1491
1497
|
switch (tag >>> 3) {
|
|
@@ -1493,21 +1499,21 @@ export const IoResponse = {
|
|
|
1493
1499
|
if (tag !== 8) {
|
|
1494
1500
|
break;
|
|
1495
1501
|
}
|
|
1496
|
-
message.
|
|
1502
|
+
message.type = reader.int32();
|
|
1497
1503
|
continue;
|
|
1498
1504
|
}
|
|
1499
1505
|
case 2: {
|
|
1500
|
-
if (tag !==
|
|
1506
|
+
if (tag !== 17) {
|
|
1501
1507
|
break;
|
|
1502
1508
|
}
|
|
1503
|
-
message.
|
|
1509
|
+
message.amount = reader.double();
|
|
1504
1510
|
continue;
|
|
1505
1511
|
}
|
|
1506
1512
|
case 3: {
|
|
1507
|
-
if (tag !==
|
|
1513
|
+
if (tag !== 24) {
|
|
1508
1514
|
break;
|
|
1509
1515
|
}
|
|
1510
|
-
message.
|
|
1516
|
+
message.count = reader.uint32();
|
|
1511
1517
|
continue;
|
|
1512
1518
|
}
|
|
1513
1519
|
}
|
|
@@ -1519,58 +1525,78 @@ export const IoResponse = {
|
|
|
1519
1525
|
return message;
|
|
1520
1526
|
},
|
|
1521
1527
|
create(base) {
|
|
1522
|
-
return
|
|
1528
|
+
return FleetTypeTotal.fromPartial(base ?? {});
|
|
1523
1529
|
},
|
|
1524
1530
|
fromPartial(object) {
|
|
1525
|
-
const message =
|
|
1526
|
-
message.
|
|
1527
|
-
message.
|
|
1528
|
-
message.
|
|
1531
|
+
const message = createBaseFleetTypeTotal();
|
|
1532
|
+
message.type = object.type ?? 0;
|
|
1533
|
+
message.amount = object.amount ?? 0;
|
|
1534
|
+
message.count = object.count ?? 0;
|
|
1529
1535
|
return message;
|
|
1530
1536
|
},
|
|
1531
1537
|
};
|
|
1532
|
-
function
|
|
1533
|
-
return {
|
|
1538
|
+
function createBaseFleetDeviceTotal() {
|
|
1539
|
+
return { deviceId: Long.UZERO, name: "", amount: 0, distanceKm: 0, costPerKm: 0 };
|
|
1534
1540
|
}
|
|
1535
|
-
export const
|
|
1541
|
+
export const FleetDeviceTotal = {
|
|
1536
1542
|
encode(message, writer = new BinaryWriter()) {
|
|
1537
|
-
if (message.
|
|
1538
|
-
writer.uint32(
|
|
1543
|
+
if (!message.deviceId.equals(Long.UZERO)) {
|
|
1544
|
+
writer.uint32(8).uint64(message.deviceId.toString());
|
|
1539
1545
|
}
|
|
1540
|
-
if (message.
|
|
1541
|
-
writer.uint32(
|
|
1546
|
+
if (message.name !== "") {
|
|
1547
|
+
writer.uint32(18).string(message.name);
|
|
1542
1548
|
}
|
|
1543
|
-
if (message.
|
|
1544
|
-
writer.uint32(
|
|
1549
|
+
if (message.amount !== 0) {
|
|
1550
|
+
writer.uint32(25).double(message.amount);
|
|
1551
|
+
}
|
|
1552
|
+
if (message.distanceKm !== 0) {
|
|
1553
|
+
writer.uint32(33).double(message.distanceKm);
|
|
1554
|
+
}
|
|
1555
|
+
if (message.costPerKm !== 0) {
|
|
1556
|
+
writer.uint32(41).double(message.costPerKm);
|
|
1545
1557
|
}
|
|
1546
1558
|
return writer;
|
|
1547
1559
|
},
|
|
1548
1560
|
decode(input, length) {
|
|
1549
1561
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1550
1562
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1551
|
-
const message =
|
|
1563
|
+
const message = createBaseFleetDeviceTotal();
|
|
1552
1564
|
while (reader.pos < end) {
|
|
1553
1565
|
const tag = reader.uint32();
|
|
1554
1566
|
switch (tag >>> 3) {
|
|
1555
1567
|
case 1: {
|
|
1556
|
-
if (tag !==
|
|
1568
|
+
if (tag !== 8) {
|
|
1557
1569
|
break;
|
|
1558
1570
|
}
|
|
1559
|
-
message.
|
|
1571
|
+
message.deviceId = Long.fromString(reader.uint64().toString(), true);
|
|
1560
1572
|
continue;
|
|
1561
1573
|
}
|
|
1562
1574
|
case 2: {
|
|
1563
|
-
if (tag !==
|
|
1575
|
+
if (tag !== 18) {
|
|
1564
1576
|
break;
|
|
1565
1577
|
}
|
|
1566
|
-
message.
|
|
1578
|
+
message.name = reader.string();
|
|
1567
1579
|
continue;
|
|
1568
1580
|
}
|
|
1569
1581
|
case 3: {
|
|
1570
|
-
if (tag !==
|
|
1582
|
+
if (tag !== 25) {
|
|
1571
1583
|
break;
|
|
1572
1584
|
}
|
|
1573
|
-
message.
|
|
1585
|
+
message.amount = reader.double();
|
|
1586
|
+
continue;
|
|
1587
|
+
}
|
|
1588
|
+
case 4: {
|
|
1589
|
+
if (tag !== 33) {
|
|
1590
|
+
break;
|
|
1591
|
+
}
|
|
1592
|
+
message.distanceKm = reader.double();
|
|
1593
|
+
continue;
|
|
1594
|
+
}
|
|
1595
|
+
case 5: {
|
|
1596
|
+
if (tag !== 41) {
|
|
1597
|
+
break;
|
|
1598
|
+
}
|
|
1599
|
+
message.costPerKm = reader.double();
|
|
1574
1600
|
continue;
|
|
1575
1601
|
}
|
|
1576
1602
|
}
|
|
@@ -1582,109 +1608,72 @@ export const ConfigRequest = {
|
|
|
1582
1608
|
return message;
|
|
1583
1609
|
},
|
|
1584
1610
|
create(base) {
|
|
1585
|
-
return
|
|
1611
|
+
return FleetDeviceTotal.fromPartial(base ?? {});
|
|
1586
1612
|
},
|
|
1587
1613
|
fromPartial(object) {
|
|
1588
|
-
const message =
|
|
1589
|
-
message.
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
message.
|
|
1614
|
+
const message = createBaseFleetDeviceTotal();
|
|
1615
|
+
message.deviceId = (object.deviceId !== undefined && object.deviceId !== null)
|
|
1616
|
+
? Long.fromValue(object.deviceId)
|
|
1617
|
+
: Long.UZERO;
|
|
1618
|
+
message.name = object.name ?? "";
|
|
1619
|
+
message.amount = object.amount ?? 0;
|
|
1620
|
+
message.distanceKm = object.distanceKm ?? 0;
|
|
1621
|
+
message.costPerKm = object.costPerKm ?? 0;
|
|
1594
1622
|
return message;
|
|
1595
1623
|
},
|
|
1596
1624
|
};
|
|
1597
|
-
function
|
|
1598
|
-
return {
|
|
1599
|
-
cost: 0,
|
|
1600
|
-
records: 0,
|
|
1601
|
-
list: [],
|
|
1602
|
-
appDesign: undefined,
|
|
1603
|
-
appSec: undefined,
|
|
1604
|
-
strategy: undefined,
|
|
1605
|
-
organizationId: Long.UZERO,
|
|
1606
|
-
};
|
|
1625
|
+
function createBaseFleetOverviewRequest() {
|
|
1626
|
+
return { from: undefined, to: undefined, deviceIds: [] };
|
|
1607
1627
|
}
|
|
1608
|
-
export const
|
|
1628
|
+
export const FleetOverviewRequest = {
|
|
1609
1629
|
encode(message, writer = new BinaryWriter()) {
|
|
1610
|
-
if (message.
|
|
1611
|
-
writer.uint32(
|
|
1612
|
-
}
|
|
1613
|
-
if (message.records !== 0) {
|
|
1614
|
-
writer.uint32(16).uint32(message.records);
|
|
1615
|
-
}
|
|
1616
|
-
for (const v of message.list) {
|
|
1617
|
-
Config.encode(v, writer.uint32(26).fork()).join();
|
|
1618
|
-
}
|
|
1619
|
-
if (message.appDesign !== undefined) {
|
|
1620
|
-
ConfigResponse_AppDesignConfig.encode(message.appDesign, writer.uint32(34).fork()).join();
|
|
1630
|
+
if (message.from !== undefined) {
|
|
1631
|
+
Timestamp.encode(toTimestamp(message.from), writer.uint32(10).fork()).join();
|
|
1621
1632
|
}
|
|
1622
|
-
if (message.
|
|
1623
|
-
|
|
1624
|
-
}
|
|
1625
|
-
if (message.strategy !== undefined) {
|
|
1626
|
-
AuthenticationStrategy.encode(message.strategy, writer.uint32(50).fork()).join();
|
|
1633
|
+
if (message.to !== undefined) {
|
|
1634
|
+
Timestamp.encode(toTimestamp(message.to), writer.uint32(18).fork()).join();
|
|
1627
1635
|
}
|
|
1628
|
-
|
|
1629
|
-
|
|
1636
|
+
writer.uint32(26).fork();
|
|
1637
|
+
for (const v of message.deviceIds) {
|
|
1638
|
+
writer.uint64(v.toString());
|
|
1630
1639
|
}
|
|
1640
|
+
writer.join();
|
|
1631
1641
|
return writer;
|
|
1632
1642
|
},
|
|
1633
1643
|
decode(input, length) {
|
|
1634
1644
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1635
1645
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1636
|
-
const message =
|
|
1646
|
+
const message = createBaseFleetOverviewRequest();
|
|
1637
1647
|
while (reader.pos < end) {
|
|
1638
1648
|
const tag = reader.uint32();
|
|
1639
1649
|
switch (tag >>> 3) {
|
|
1640
1650
|
case 1: {
|
|
1641
|
-
if (tag !==
|
|
1651
|
+
if (tag !== 10) {
|
|
1642
1652
|
break;
|
|
1643
1653
|
}
|
|
1644
|
-
message.
|
|
1654
|
+
message.from = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
1645
1655
|
continue;
|
|
1646
1656
|
}
|
|
1647
1657
|
case 2: {
|
|
1648
|
-
if (tag !==
|
|
1658
|
+
if (tag !== 18) {
|
|
1649
1659
|
break;
|
|
1650
1660
|
}
|
|
1651
|
-
message.
|
|
1661
|
+
message.to = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
1652
1662
|
continue;
|
|
1653
1663
|
}
|
|
1654
1664
|
case 3: {
|
|
1655
|
-
if (tag
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
message.list.push(Config.decode(reader, reader.uint32()));
|
|
1659
|
-
continue;
|
|
1660
|
-
}
|
|
1661
|
-
case 4: {
|
|
1662
|
-
if (tag !== 34) {
|
|
1663
|
-
break;
|
|
1664
|
-
}
|
|
1665
|
-
message.appDesign = ConfigResponse_AppDesignConfig.decode(reader, reader.uint32());
|
|
1666
|
-
continue;
|
|
1667
|
-
}
|
|
1668
|
-
case 5: {
|
|
1669
|
-
if (tag !== 42) {
|
|
1670
|
-
break;
|
|
1671
|
-
}
|
|
1672
|
-
message.appSec = ConfigResponse_AppSecConfig.decode(reader, reader.uint32());
|
|
1673
|
-
continue;
|
|
1674
|
-
}
|
|
1675
|
-
case 6: {
|
|
1676
|
-
if (tag !== 50) {
|
|
1677
|
-
break;
|
|
1665
|
+
if (tag === 24) {
|
|
1666
|
+
message.deviceIds.push(Long.fromString(reader.uint64().toString(), true));
|
|
1667
|
+
continue;
|
|
1678
1668
|
}
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1669
|
+
if (tag === 26) {
|
|
1670
|
+
const end2 = reader.uint32() + reader.pos;
|
|
1671
|
+
while (reader.pos < end2) {
|
|
1672
|
+
message.deviceIds.push(Long.fromString(reader.uint64().toString(), true));
|
|
1673
|
+
}
|
|
1674
|
+
continue;
|
|
1685
1675
|
}
|
|
1686
|
-
|
|
1687
|
-
continue;
|
|
1676
|
+
break;
|
|
1688
1677
|
}
|
|
1689
1678
|
}
|
|
1690
1679
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -1695,250 +1684,307 @@ export const ConfigResponse = {
|
|
|
1695
1684
|
return message;
|
|
1696
1685
|
},
|
|
1697
1686
|
create(base) {
|
|
1698
|
-
return
|
|
1687
|
+
return FleetOverviewRequest.fromPartial(base ?? {});
|
|
1699
1688
|
},
|
|
1700
1689
|
fromPartial(object) {
|
|
1701
|
-
const message =
|
|
1702
|
-
message.
|
|
1703
|
-
message.
|
|
1704
|
-
message.
|
|
1705
|
-
message.appDesign = (object.appDesign !== undefined && object.appDesign !== null)
|
|
1706
|
-
? ConfigResponse_AppDesignConfig.fromPartial(object.appDesign)
|
|
1707
|
-
: undefined;
|
|
1708
|
-
message.appSec = (object.appSec !== undefined && object.appSec !== null)
|
|
1709
|
-
? ConfigResponse_AppSecConfig.fromPartial(object.appSec)
|
|
1710
|
-
: undefined;
|
|
1711
|
-
message.strategy = (object.strategy !== undefined && object.strategy !== null)
|
|
1712
|
-
? AuthenticationStrategy.fromPartial(object.strategy)
|
|
1713
|
-
: undefined;
|
|
1714
|
-
message.organizationId = (object.organizationId !== undefined && object.organizationId !== null)
|
|
1715
|
-
? Long.fromValue(object.organizationId)
|
|
1716
|
-
: Long.UZERO;
|
|
1690
|
+
const message = createBaseFleetOverviewRequest();
|
|
1691
|
+
message.from = object.from ?? undefined;
|
|
1692
|
+
message.to = object.to ?? undefined;
|
|
1693
|
+
message.deviceIds = object.deviceIds?.map((e) => Long.fromValue(e)) || [];
|
|
1717
1694
|
return message;
|
|
1718
1695
|
},
|
|
1719
1696
|
};
|
|
1720
|
-
function
|
|
1697
|
+
function createBaseFleetOverviewResponse() {
|
|
1721
1698
|
return {
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
googleClientId: "",
|
|
1738
|
-
telegramBotUsername: "",
|
|
1739
|
-
mainDomain: "",
|
|
1740
|
-
favicon: "",
|
|
1699
|
+
approvedTotal: 0,
|
|
1700
|
+
pendingTotal: 0,
|
|
1701
|
+
pendingCount: 0,
|
|
1702
|
+
daily: [],
|
|
1703
|
+
byType: [],
|
|
1704
|
+
byDevice: [],
|
|
1705
|
+
openIssues: 0,
|
|
1706
|
+
criticalIssues: 0,
|
|
1707
|
+
servicesDueSoon: 0,
|
|
1708
|
+
servicesOverdue: 0,
|
|
1709
|
+
outOfService: 0,
|
|
1710
|
+
documentsExpiring: 0,
|
|
1711
|
+
documentsExpired: 0,
|
|
1712
|
+
firstExpenseDays: 0,
|
|
1713
|
+
cost: 0,
|
|
1741
1714
|
};
|
|
1742
1715
|
}
|
|
1743
|
-
export const
|
|
1716
|
+
export const FleetOverviewResponse = {
|
|
1744
1717
|
encode(message, writer = new BinaryWriter()) {
|
|
1745
|
-
if (message.
|
|
1746
|
-
writer.uint32(
|
|
1747
|
-
}
|
|
1748
|
-
if (message.logo !== "") {
|
|
1749
|
-
writer.uint32(18).string(message.logo);
|
|
1750
|
-
}
|
|
1751
|
-
if (message.webBackground !== "") {
|
|
1752
|
-
writer.uint32(26).string(message.webBackground);
|
|
1753
|
-
}
|
|
1754
|
-
if (message.primaryColor !== "") {
|
|
1755
|
-
writer.uint32(34).string(message.primaryColor);
|
|
1756
|
-
}
|
|
1757
|
-
if (message.appLogo !== "") {
|
|
1758
|
-
writer.uint32(42).string(message.appLogo);
|
|
1718
|
+
if (message.approvedTotal !== 0) {
|
|
1719
|
+
writer.uint32(9).double(message.approvedTotal);
|
|
1759
1720
|
}
|
|
1760
|
-
if (message.
|
|
1761
|
-
writer.uint32(
|
|
1721
|
+
if (message.pendingTotal !== 0) {
|
|
1722
|
+
writer.uint32(17).double(message.pendingTotal);
|
|
1762
1723
|
}
|
|
1763
|
-
if (message.
|
|
1764
|
-
writer.uint32(
|
|
1724
|
+
if (message.pendingCount !== 0) {
|
|
1725
|
+
writer.uint32(24).uint32(message.pendingCount);
|
|
1765
1726
|
}
|
|
1766
|
-
|
|
1767
|
-
writer.uint32(
|
|
1727
|
+
for (const v of message.daily) {
|
|
1728
|
+
FleetDailyTotal.encode(v, writer.uint32(34).fork()).join();
|
|
1768
1729
|
}
|
|
1769
|
-
|
|
1770
|
-
writer.uint32(
|
|
1730
|
+
for (const v of message.byType) {
|
|
1731
|
+
FleetTypeTotal.encode(v, writer.uint32(42).fork()).join();
|
|
1771
1732
|
}
|
|
1772
|
-
|
|
1773
|
-
writer.uint32(
|
|
1733
|
+
for (const v of message.byDevice) {
|
|
1734
|
+
FleetDeviceTotal.encode(v, writer.uint32(50).fork()).join();
|
|
1774
1735
|
}
|
|
1775
|
-
if (message.
|
|
1776
|
-
writer.uint32(
|
|
1736
|
+
if (message.openIssues !== 0) {
|
|
1737
|
+
writer.uint32(56).uint32(message.openIssues);
|
|
1777
1738
|
}
|
|
1778
|
-
if (message.
|
|
1779
|
-
writer.uint32(
|
|
1739
|
+
if (message.criticalIssues !== 0) {
|
|
1740
|
+
writer.uint32(64).uint32(message.criticalIssues);
|
|
1780
1741
|
}
|
|
1781
|
-
if (message.
|
|
1782
|
-
writer.uint32(
|
|
1742
|
+
if (message.servicesDueSoon !== 0) {
|
|
1743
|
+
writer.uint32(72).uint32(message.servicesDueSoon);
|
|
1783
1744
|
}
|
|
1784
|
-
if (message.
|
|
1785
|
-
writer.uint32(
|
|
1745
|
+
if (message.servicesOverdue !== 0) {
|
|
1746
|
+
writer.uint32(80).uint32(message.servicesOverdue);
|
|
1786
1747
|
}
|
|
1787
|
-
if (message.
|
|
1788
|
-
writer.uint32(
|
|
1748
|
+
if (message.outOfService !== 0) {
|
|
1749
|
+
writer.uint32(88).uint32(message.outOfService);
|
|
1789
1750
|
}
|
|
1790
|
-
if (message.
|
|
1791
|
-
writer.uint32(
|
|
1751
|
+
if (message.documentsExpiring !== 0) {
|
|
1752
|
+
writer.uint32(96).uint32(message.documentsExpiring);
|
|
1792
1753
|
}
|
|
1793
|
-
if (message.
|
|
1794
|
-
writer.uint32(
|
|
1754
|
+
if (message.documentsExpired !== 0) {
|
|
1755
|
+
writer.uint32(104).uint32(message.documentsExpired);
|
|
1795
1756
|
}
|
|
1796
|
-
if (message.
|
|
1797
|
-
writer.uint32(
|
|
1757
|
+
if (message.firstExpenseDays !== 0) {
|
|
1758
|
+
writer.uint32(112).uint32(message.firstExpenseDays);
|
|
1798
1759
|
}
|
|
1799
|
-
if (message.
|
|
1800
|
-
writer.uint32(
|
|
1760
|
+
if (message.cost !== 0) {
|
|
1761
|
+
writer.uint32(120).uint32(message.cost);
|
|
1801
1762
|
}
|
|
1802
1763
|
return writer;
|
|
1803
1764
|
},
|
|
1804
1765
|
decode(input, length) {
|
|
1805
1766
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1806
1767
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1807
|
-
const message =
|
|
1768
|
+
const message = createBaseFleetOverviewResponse();
|
|
1808
1769
|
while (reader.pos < end) {
|
|
1809
1770
|
const tag = reader.uint32();
|
|
1810
1771
|
switch (tag >>> 3) {
|
|
1811
1772
|
case 1: {
|
|
1812
|
-
if (tag !==
|
|
1773
|
+
if (tag !== 9) {
|
|
1813
1774
|
break;
|
|
1814
1775
|
}
|
|
1815
|
-
message.
|
|
1776
|
+
message.approvedTotal = reader.double();
|
|
1816
1777
|
continue;
|
|
1817
1778
|
}
|
|
1818
1779
|
case 2: {
|
|
1819
|
-
if (tag !==
|
|
1780
|
+
if (tag !== 17) {
|
|
1820
1781
|
break;
|
|
1821
1782
|
}
|
|
1822
|
-
message.
|
|
1783
|
+
message.pendingTotal = reader.double();
|
|
1823
1784
|
continue;
|
|
1824
1785
|
}
|
|
1825
1786
|
case 3: {
|
|
1826
|
-
if (tag !==
|
|
1787
|
+
if (tag !== 24) {
|
|
1827
1788
|
break;
|
|
1828
1789
|
}
|
|
1829
|
-
message.
|
|
1790
|
+
message.pendingCount = reader.uint32();
|
|
1830
1791
|
continue;
|
|
1831
1792
|
}
|
|
1832
1793
|
case 4: {
|
|
1833
1794
|
if (tag !== 34) {
|
|
1834
1795
|
break;
|
|
1835
1796
|
}
|
|
1836
|
-
message.
|
|
1797
|
+
message.daily.push(FleetDailyTotal.decode(reader, reader.uint32()));
|
|
1837
1798
|
continue;
|
|
1838
1799
|
}
|
|
1839
1800
|
case 5: {
|
|
1840
1801
|
if (tag !== 42) {
|
|
1841
1802
|
break;
|
|
1842
1803
|
}
|
|
1843
|
-
message.
|
|
1804
|
+
message.byType.push(FleetTypeTotal.decode(reader, reader.uint32()));
|
|
1844
1805
|
continue;
|
|
1845
1806
|
}
|
|
1846
1807
|
case 6: {
|
|
1847
1808
|
if (tag !== 50) {
|
|
1848
1809
|
break;
|
|
1849
1810
|
}
|
|
1850
|
-
message.
|
|
1811
|
+
message.byDevice.push(FleetDeviceTotal.decode(reader, reader.uint32()));
|
|
1851
1812
|
continue;
|
|
1852
1813
|
}
|
|
1853
1814
|
case 7: {
|
|
1854
|
-
if (tag !==
|
|
1815
|
+
if (tag !== 56) {
|
|
1855
1816
|
break;
|
|
1856
1817
|
}
|
|
1857
|
-
message.
|
|
1818
|
+
message.openIssues = reader.uint32();
|
|
1858
1819
|
continue;
|
|
1859
1820
|
}
|
|
1860
1821
|
case 8: {
|
|
1861
|
-
if (tag !==
|
|
1822
|
+
if (tag !== 64) {
|
|
1862
1823
|
break;
|
|
1863
1824
|
}
|
|
1864
|
-
message.
|
|
1825
|
+
message.criticalIssues = reader.uint32();
|
|
1865
1826
|
continue;
|
|
1866
1827
|
}
|
|
1867
1828
|
case 9: {
|
|
1868
|
-
if (tag !==
|
|
1829
|
+
if (tag !== 72) {
|
|
1869
1830
|
break;
|
|
1870
1831
|
}
|
|
1871
|
-
message.
|
|
1832
|
+
message.servicesDueSoon = reader.uint32();
|
|
1872
1833
|
continue;
|
|
1873
1834
|
}
|
|
1874
1835
|
case 10: {
|
|
1875
|
-
if (tag !==
|
|
1836
|
+
if (tag !== 80) {
|
|
1876
1837
|
break;
|
|
1877
1838
|
}
|
|
1878
|
-
message.
|
|
1839
|
+
message.servicesOverdue = reader.uint32();
|
|
1879
1840
|
continue;
|
|
1880
1841
|
}
|
|
1881
1842
|
case 11: {
|
|
1882
|
-
if (tag !==
|
|
1843
|
+
if (tag !== 88) {
|
|
1883
1844
|
break;
|
|
1884
1845
|
}
|
|
1885
|
-
message.
|
|
1846
|
+
message.outOfService = reader.uint32();
|
|
1886
1847
|
continue;
|
|
1887
1848
|
}
|
|
1888
1849
|
case 12: {
|
|
1889
|
-
if (tag !==
|
|
1850
|
+
if (tag !== 96) {
|
|
1890
1851
|
break;
|
|
1891
1852
|
}
|
|
1892
|
-
message.
|
|
1853
|
+
message.documentsExpiring = reader.uint32();
|
|
1893
1854
|
continue;
|
|
1894
1855
|
}
|
|
1895
1856
|
case 13: {
|
|
1896
|
-
if (tag !==
|
|
1857
|
+
if (tag !== 104) {
|
|
1897
1858
|
break;
|
|
1898
1859
|
}
|
|
1899
|
-
message.
|
|
1860
|
+
message.documentsExpired = reader.uint32();
|
|
1900
1861
|
continue;
|
|
1901
1862
|
}
|
|
1902
1863
|
case 14: {
|
|
1903
|
-
if (tag !==
|
|
1864
|
+
if (tag !== 112) {
|
|
1904
1865
|
break;
|
|
1905
1866
|
}
|
|
1906
|
-
message.
|
|
1867
|
+
message.firstExpenseDays = reader.uint32();
|
|
1907
1868
|
continue;
|
|
1908
1869
|
}
|
|
1909
1870
|
case 15: {
|
|
1910
|
-
if (tag !==
|
|
1871
|
+
if (tag !== 120) {
|
|
1911
1872
|
break;
|
|
1912
1873
|
}
|
|
1913
|
-
message.
|
|
1874
|
+
message.cost = reader.uint32();
|
|
1914
1875
|
continue;
|
|
1915
1876
|
}
|
|
1916
|
-
|
|
1917
|
-
|
|
1877
|
+
}
|
|
1878
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1879
|
+
break;
|
|
1880
|
+
}
|
|
1881
|
+
reader.skip(tag & 7);
|
|
1882
|
+
}
|
|
1883
|
+
return message;
|
|
1884
|
+
},
|
|
1885
|
+
create(base) {
|
|
1886
|
+
return FleetOverviewResponse.fromPartial(base ?? {});
|
|
1887
|
+
},
|
|
1888
|
+
fromPartial(object) {
|
|
1889
|
+
const message = createBaseFleetOverviewResponse();
|
|
1890
|
+
message.approvedTotal = object.approvedTotal ?? 0;
|
|
1891
|
+
message.pendingTotal = object.pendingTotal ?? 0;
|
|
1892
|
+
message.pendingCount = object.pendingCount ?? 0;
|
|
1893
|
+
message.daily = object.daily?.map((e) => FleetDailyTotal.fromPartial(e)) || [];
|
|
1894
|
+
message.byType = object.byType?.map((e) => FleetTypeTotal.fromPartial(e)) || [];
|
|
1895
|
+
message.byDevice = object.byDevice?.map((e) => FleetDeviceTotal.fromPartial(e)) || [];
|
|
1896
|
+
message.openIssues = object.openIssues ?? 0;
|
|
1897
|
+
message.criticalIssues = object.criticalIssues ?? 0;
|
|
1898
|
+
message.servicesDueSoon = object.servicesDueSoon ?? 0;
|
|
1899
|
+
message.servicesOverdue = object.servicesOverdue ?? 0;
|
|
1900
|
+
message.outOfService = object.outOfService ?? 0;
|
|
1901
|
+
message.documentsExpiring = object.documentsExpiring ?? 0;
|
|
1902
|
+
message.documentsExpired = object.documentsExpired ?? 0;
|
|
1903
|
+
message.firstExpenseDays = object.firstExpenseDays ?? 0;
|
|
1904
|
+
message.cost = object.cost ?? 0;
|
|
1905
|
+
return message;
|
|
1906
|
+
},
|
|
1907
|
+
};
|
|
1908
|
+
function createBaseFleetExpenseReportRequest() {
|
|
1909
|
+
return { from: undefined, to: undefined, deviceIds: [], types: [], vendorId: undefined };
|
|
1910
|
+
}
|
|
1911
|
+
export const FleetExpenseReportRequest = {
|
|
1912
|
+
encode(message, writer = new BinaryWriter()) {
|
|
1913
|
+
if (message.from !== undefined) {
|
|
1914
|
+
Timestamp.encode(toTimestamp(message.from), writer.uint32(10).fork()).join();
|
|
1915
|
+
}
|
|
1916
|
+
if (message.to !== undefined) {
|
|
1917
|
+
Timestamp.encode(toTimestamp(message.to), writer.uint32(18).fork()).join();
|
|
1918
|
+
}
|
|
1919
|
+
writer.uint32(26).fork();
|
|
1920
|
+
for (const v of message.deviceIds) {
|
|
1921
|
+
writer.uint64(v.toString());
|
|
1922
|
+
}
|
|
1923
|
+
writer.join();
|
|
1924
|
+
writer.uint32(34).fork();
|
|
1925
|
+
for (const v of message.types) {
|
|
1926
|
+
writer.int32(v);
|
|
1927
|
+
}
|
|
1928
|
+
writer.join();
|
|
1929
|
+
if (message.vendorId !== undefined) {
|
|
1930
|
+
writer.uint32(40).uint64(message.vendorId.toString());
|
|
1931
|
+
}
|
|
1932
|
+
return writer;
|
|
1933
|
+
},
|
|
1934
|
+
decode(input, length) {
|
|
1935
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1936
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1937
|
+
const message = createBaseFleetExpenseReportRequest();
|
|
1938
|
+
while (reader.pos < end) {
|
|
1939
|
+
const tag = reader.uint32();
|
|
1940
|
+
switch (tag >>> 3) {
|
|
1941
|
+
case 1: {
|
|
1942
|
+
if (tag !== 10) {
|
|
1918
1943
|
break;
|
|
1919
1944
|
}
|
|
1920
|
-
message.
|
|
1945
|
+
message.from = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
1921
1946
|
continue;
|
|
1922
1947
|
}
|
|
1923
|
-
case
|
|
1924
|
-
if (tag !==
|
|
1948
|
+
case 2: {
|
|
1949
|
+
if (tag !== 18) {
|
|
1925
1950
|
break;
|
|
1926
1951
|
}
|
|
1927
|
-
message.
|
|
1952
|
+
message.to = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
1928
1953
|
continue;
|
|
1929
1954
|
}
|
|
1930
|
-
case
|
|
1931
|
-
if (tag
|
|
1932
|
-
|
|
1955
|
+
case 3: {
|
|
1956
|
+
if (tag === 24) {
|
|
1957
|
+
message.deviceIds.push(Long.fromString(reader.uint64().toString(), true));
|
|
1958
|
+
continue;
|
|
1933
1959
|
}
|
|
1934
|
-
|
|
1935
|
-
|
|
1960
|
+
if (tag === 26) {
|
|
1961
|
+
const end2 = reader.uint32() + reader.pos;
|
|
1962
|
+
while (reader.pos < end2) {
|
|
1963
|
+
message.deviceIds.push(Long.fromString(reader.uint64().toString(), true));
|
|
1964
|
+
}
|
|
1965
|
+
continue;
|
|
1966
|
+
}
|
|
1967
|
+
break;
|
|
1936
1968
|
}
|
|
1937
|
-
case
|
|
1938
|
-
if (tag
|
|
1969
|
+
case 4: {
|
|
1970
|
+
if (tag === 32) {
|
|
1971
|
+
message.types.push(reader.int32());
|
|
1972
|
+
continue;
|
|
1973
|
+
}
|
|
1974
|
+
if (tag === 34) {
|
|
1975
|
+
const end2 = reader.uint32() + reader.pos;
|
|
1976
|
+
while (reader.pos < end2) {
|
|
1977
|
+
message.types.push(reader.int32());
|
|
1978
|
+
}
|
|
1979
|
+
continue;
|
|
1980
|
+
}
|
|
1981
|
+
break;
|
|
1982
|
+
}
|
|
1983
|
+
case 5: {
|
|
1984
|
+
if (tag !== 40) {
|
|
1939
1985
|
break;
|
|
1940
1986
|
}
|
|
1941
|
-
message.
|
|
1987
|
+
message.vendorId = Long.fromString(reader.uint64().toString(), true);
|
|
1942
1988
|
continue;
|
|
1943
1989
|
}
|
|
1944
1990
|
}
|
|
@@ -1950,133 +1996,1486 @@ export const ConfigResponse_AppDesignConfig = {
|
|
|
1950
1996
|
return message;
|
|
1951
1997
|
},
|
|
1952
1998
|
create(base) {
|
|
1953
|
-
return
|
|
1999
|
+
return FleetExpenseReportRequest.fromPartial(base ?? {});
|
|
1954
2000
|
},
|
|
1955
2001
|
fromPartial(object) {
|
|
1956
|
-
const message =
|
|
1957
|
-
message.
|
|
1958
|
-
message.
|
|
1959
|
-
message.
|
|
1960
|
-
message.
|
|
1961
|
-
message.
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
message.address = object.address ?? "";
|
|
1965
|
-
message.phone = object.phone ?? "";
|
|
1966
|
-
message.telegram = object.telegram ?? "";
|
|
1967
|
-
message.primaryIconColor = object.primaryIconColor ?? "";
|
|
1968
|
-
message.secondaryIconColor = object.secondaryIconColor ?? "";
|
|
1969
|
-
message.defaultRoleId = object.defaultRoleId ?? "";
|
|
1970
|
-
message.enableRegistration = object.enableRegistration ?? "";
|
|
1971
|
-
message.defaultRegisterOrganizationId = object.defaultRegisterOrganizationId ?? "";
|
|
1972
|
-
message.googleClientId = object.googleClientId ?? "";
|
|
1973
|
-
message.telegramBotUsername = object.telegramBotUsername ?? "";
|
|
1974
|
-
message.mainDomain = object.mainDomain ?? "";
|
|
1975
|
-
message.favicon = object.favicon ?? "";
|
|
2002
|
+
const message = createBaseFleetExpenseReportRequest();
|
|
2003
|
+
message.from = object.from ?? undefined;
|
|
2004
|
+
message.to = object.to ?? undefined;
|
|
2005
|
+
message.deviceIds = object.deviceIds?.map((e) => Long.fromValue(e)) || [];
|
|
2006
|
+
message.types = object.types?.map((e) => e) || [];
|
|
2007
|
+
message.vendorId = (object.vendorId !== undefined && object.vendorId !== null)
|
|
2008
|
+
? Long.fromValue(object.vendorId)
|
|
2009
|
+
: undefined;
|
|
1976
2010
|
return message;
|
|
1977
2011
|
},
|
|
1978
2012
|
};
|
|
1979
|
-
function
|
|
2013
|
+
function createBaseFleetExpenseReportResponse() {
|
|
1980
2014
|
return {
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
2015
|
+
approvedTotal: 0,
|
|
2016
|
+
pendingTotal: 0,
|
|
2017
|
+
pendingCount: 0,
|
|
2018
|
+
daily: [],
|
|
2019
|
+
byType: [],
|
|
2020
|
+
byDevice: [],
|
|
2021
|
+
fuel: [],
|
|
2022
|
+
totalLitres: 0,
|
|
2023
|
+
distanceKm: 0,
|
|
2024
|
+
kmPerL: undefined,
|
|
2025
|
+
costPerKm: undefined,
|
|
2026
|
+
cost: 0,
|
|
1989
2027
|
};
|
|
1990
2028
|
}
|
|
1991
|
-
export const
|
|
2029
|
+
export const FleetExpenseReportResponse = {
|
|
1992
2030
|
encode(message, writer = new BinaryWriter()) {
|
|
1993
|
-
if (message.
|
|
1994
|
-
writer.uint32(
|
|
2031
|
+
if (message.approvedTotal !== 0) {
|
|
2032
|
+
writer.uint32(9).double(message.approvedTotal);
|
|
1995
2033
|
}
|
|
1996
|
-
if (message.
|
|
1997
|
-
writer.uint32(
|
|
2034
|
+
if (message.pendingTotal !== 0) {
|
|
2035
|
+
writer.uint32(17).double(message.pendingTotal);
|
|
1998
2036
|
}
|
|
1999
|
-
if (message.
|
|
2000
|
-
writer.uint32(24).
|
|
2037
|
+
if (message.pendingCount !== 0) {
|
|
2038
|
+
writer.uint32(24).uint32(message.pendingCount);
|
|
2001
2039
|
}
|
|
2002
|
-
|
|
2003
|
-
writer.uint32(
|
|
2040
|
+
for (const v of message.daily) {
|
|
2041
|
+
FleetDailyTotal.encode(v, writer.uint32(34).fork()).join();
|
|
2004
2042
|
}
|
|
2005
|
-
|
|
2006
|
-
writer.uint32(
|
|
2043
|
+
for (const v of message.byType) {
|
|
2044
|
+
FleetTypeTotal.encode(v, writer.uint32(42).fork()).join();
|
|
2007
2045
|
}
|
|
2008
|
-
|
|
2009
|
-
writer.uint32(
|
|
2046
|
+
for (const v of message.byDevice) {
|
|
2047
|
+
FleetDeviceTotal.encode(v, writer.uint32(50).fork()).join();
|
|
2010
2048
|
}
|
|
2011
|
-
|
|
2012
|
-
writer.uint32(58).
|
|
2049
|
+
for (const v of message.fuel) {
|
|
2050
|
+
FleetExpenseReportResponse_FuelRow.encode(v, writer.uint32(58).fork()).join();
|
|
2013
2051
|
}
|
|
2014
|
-
if (message.
|
|
2015
|
-
writer.uint32(
|
|
2052
|
+
if (message.totalLitres !== 0) {
|
|
2053
|
+
writer.uint32(65).double(message.totalLitres);
|
|
2054
|
+
}
|
|
2055
|
+
if (message.distanceKm !== 0) {
|
|
2056
|
+
writer.uint32(73).double(message.distanceKm);
|
|
2057
|
+
}
|
|
2058
|
+
if (message.kmPerL !== undefined) {
|
|
2059
|
+
writer.uint32(81).double(message.kmPerL);
|
|
2060
|
+
}
|
|
2061
|
+
if (message.costPerKm !== undefined) {
|
|
2062
|
+
writer.uint32(89).double(message.costPerKm);
|
|
2063
|
+
}
|
|
2064
|
+
if (message.cost !== 0) {
|
|
2065
|
+
writer.uint32(96).uint32(message.cost);
|
|
2016
2066
|
}
|
|
2017
2067
|
return writer;
|
|
2018
2068
|
},
|
|
2019
2069
|
decode(input, length) {
|
|
2020
2070
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2021
2071
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2022
|
-
const message =
|
|
2072
|
+
const message = createBaseFleetExpenseReportResponse();
|
|
2023
2073
|
while (reader.pos < end) {
|
|
2024
2074
|
const tag = reader.uint32();
|
|
2025
2075
|
switch (tag >>> 3) {
|
|
2026
2076
|
case 1: {
|
|
2027
|
-
if (tag !==
|
|
2077
|
+
if (tag !== 9) {
|
|
2028
2078
|
break;
|
|
2029
2079
|
}
|
|
2030
|
-
message.
|
|
2080
|
+
message.approvedTotal = reader.double();
|
|
2031
2081
|
continue;
|
|
2032
2082
|
}
|
|
2033
2083
|
case 2: {
|
|
2034
|
-
if (tag !==
|
|
2084
|
+
if (tag !== 17) {
|
|
2035
2085
|
break;
|
|
2036
2086
|
}
|
|
2037
|
-
message.
|
|
2087
|
+
message.pendingTotal = reader.double();
|
|
2038
2088
|
continue;
|
|
2039
2089
|
}
|
|
2040
2090
|
case 3: {
|
|
2041
2091
|
if (tag !== 24) {
|
|
2042
2092
|
break;
|
|
2043
2093
|
}
|
|
2044
|
-
message.
|
|
2094
|
+
message.pendingCount = reader.uint32();
|
|
2045
2095
|
continue;
|
|
2046
2096
|
}
|
|
2047
2097
|
case 4: {
|
|
2048
|
-
if (tag !==
|
|
2098
|
+
if (tag !== 34) {
|
|
2099
|
+
break;
|
|
2100
|
+
}
|
|
2101
|
+
message.daily.push(FleetDailyTotal.decode(reader, reader.uint32()));
|
|
2102
|
+
continue;
|
|
2103
|
+
}
|
|
2104
|
+
case 5: {
|
|
2105
|
+
if (tag !== 42) {
|
|
2106
|
+
break;
|
|
2107
|
+
}
|
|
2108
|
+
message.byType.push(FleetTypeTotal.decode(reader, reader.uint32()));
|
|
2109
|
+
continue;
|
|
2110
|
+
}
|
|
2111
|
+
case 6: {
|
|
2112
|
+
if (tag !== 50) {
|
|
2113
|
+
break;
|
|
2114
|
+
}
|
|
2115
|
+
message.byDevice.push(FleetDeviceTotal.decode(reader, reader.uint32()));
|
|
2116
|
+
continue;
|
|
2117
|
+
}
|
|
2118
|
+
case 7: {
|
|
2119
|
+
if (tag !== 58) {
|
|
2120
|
+
break;
|
|
2121
|
+
}
|
|
2122
|
+
message.fuel.push(FleetExpenseReportResponse_FuelRow.decode(reader, reader.uint32()));
|
|
2123
|
+
continue;
|
|
2124
|
+
}
|
|
2125
|
+
case 8: {
|
|
2126
|
+
if (tag !== 65) {
|
|
2127
|
+
break;
|
|
2128
|
+
}
|
|
2129
|
+
message.totalLitres = reader.double();
|
|
2130
|
+
continue;
|
|
2131
|
+
}
|
|
2132
|
+
case 9: {
|
|
2133
|
+
if (tag !== 73) {
|
|
2134
|
+
break;
|
|
2135
|
+
}
|
|
2136
|
+
message.distanceKm = reader.double();
|
|
2137
|
+
continue;
|
|
2138
|
+
}
|
|
2139
|
+
case 10: {
|
|
2140
|
+
if (tag !== 81) {
|
|
2141
|
+
break;
|
|
2142
|
+
}
|
|
2143
|
+
message.kmPerL = reader.double();
|
|
2144
|
+
continue;
|
|
2145
|
+
}
|
|
2146
|
+
case 11: {
|
|
2147
|
+
if (tag !== 89) {
|
|
2148
|
+
break;
|
|
2149
|
+
}
|
|
2150
|
+
message.costPerKm = reader.double();
|
|
2151
|
+
continue;
|
|
2152
|
+
}
|
|
2153
|
+
case 12: {
|
|
2154
|
+
if (tag !== 96) {
|
|
2155
|
+
break;
|
|
2156
|
+
}
|
|
2157
|
+
message.cost = reader.uint32();
|
|
2158
|
+
continue;
|
|
2159
|
+
}
|
|
2160
|
+
}
|
|
2161
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2162
|
+
break;
|
|
2163
|
+
}
|
|
2164
|
+
reader.skip(tag & 7);
|
|
2165
|
+
}
|
|
2166
|
+
return message;
|
|
2167
|
+
},
|
|
2168
|
+
create(base) {
|
|
2169
|
+
return FleetExpenseReportResponse.fromPartial(base ?? {});
|
|
2170
|
+
},
|
|
2171
|
+
fromPartial(object) {
|
|
2172
|
+
const message = createBaseFleetExpenseReportResponse();
|
|
2173
|
+
message.approvedTotal = object.approvedTotal ?? 0;
|
|
2174
|
+
message.pendingTotal = object.pendingTotal ?? 0;
|
|
2175
|
+
message.pendingCount = object.pendingCount ?? 0;
|
|
2176
|
+
message.daily = object.daily?.map((e) => FleetDailyTotal.fromPartial(e)) || [];
|
|
2177
|
+
message.byType = object.byType?.map((e) => FleetTypeTotal.fromPartial(e)) || [];
|
|
2178
|
+
message.byDevice = object.byDevice?.map((e) => FleetDeviceTotal.fromPartial(e)) || [];
|
|
2179
|
+
message.fuel = object.fuel?.map((e) => FleetExpenseReportResponse_FuelRow.fromPartial(e)) || [];
|
|
2180
|
+
message.totalLitres = object.totalLitres ?? 0;
|
|
2181
|
+
message.distanceKm = object.distanceKm ?? 0;
|
|
2182
|
+
message.kmPerL = object.kmPerL ?? undefined;
|
|
2183
|
+
message.costPerKm = object.costPerKm ?? undefined;
|
|
2184
|
+
message.cost = object.cost ?? 0;
|
|
2185
|
+
return message;
|
|
2186
|
+
},
|
|
2187
|
+
};
|
|
2188
|
+
function createBaseFleetExpenseReportResponse_FuelRow() {
|
|
2189
|
+
return {
|
|
2190
|
+
expenseId: Long.UZERO,
|
|
2191
|
+
deviceId: Long.UZERO,
|
|
2192
|
+
occurredAt: undefined,
|
|
2193
|
+
vendorName: undefined,
|
|
2194
|
+
odometer: undefined,
|
|
2195
|
+
usageKm: undefined,
|
|
2196
|
+
litres: 0,
|
|
2197
|
+
amount: 0,
|
|
2198
|
+
kmPerL: undefined,
|
|
2199
|
+
costPerKm: undefined,
|
|
2200
|
+
};
|
|
2201
|
+
}
|
|
2202
|
+
export const FleetExpenseReportResponse_FuelRow = {
|
|
2203
|
+
encode(message, writer = new BinaryWriter()) {
|
|
2204
|
+
if (!message.expenseId.equals(Long.UZERO)) {
|
|
2205
|
+
writer.uint32(8).uint64(message.expenseId.toString());
|
|
2206
|
+
}
|
|
2207
|
+
if (!message.deviceId.equals(Long.UZERO)) {
|
|
2208
|
+
writer.uint32(16).uint64(message.deviceId.toString());
|
|
2209
|
+
}
|
|
2210
|
+
if (message.occurredAt !== undefined) {
|
|
2211
|
+
Timestamp.encode(toTimestamp(message.occurredAt), writer.uint32(26).fork()).join();
|
|
2212
|
+
}
|
|
2213
|
+
if (message.vendorName !== undefined) {
|
|
2214
|
+
writer.uint32(34).string(message.vendorName);
|
|
2215
|
+
}
|
|
2216
|
+
if (message.odometer !== undefined) {
|
|
2217
|
+
writer.uint32(40).uint64(message.odometer.toString());
|
|
2218
|
+
}
|
|
2219
|
+
if (message.usageKm !== undefined) {
|
|
2220
|
+
writer.uint32(49).double(message.usageKm);
|
|
2221
|
+
}
|
|
2222
|
+
if (message.litres !== 0) {
|
|
2223
|
+
writer.uint32(57).double(message.litres);
|
|
2224
|
+
}
|
|
2225
|
+
if (message.amount !== 0) {
|
|
2226
|
+
writer.uint32(65).double(message.amount);
|
|
2227
|
+
}
|
|
2228
|
+
if (message.kmPerL !== undefined) {
|
|
2229
|
+
writer.uint32(73).double(message.kmPerL);
|
|
2230
|
+
}
|
|
2231
|
+
if (message.costPerKm !== undefined) {
|
|
2232
|
+
writer.uint32(81).double(message.costPerKm);
|
|
2233
|
+
}
|
|
2234
|
+
return writer;
|
|
2235
|
+
},
|
|
2236
|
+
decode(input, length) {
|
|
2237
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2238
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2239
|
+
const message = createBaseFleetExpenseReportResponse_FuelRow();
|
|
2240
|
+
while (reader.pos < end) {
|
|
2241
|
+
const tag = reader.uint32();
|
|
2242
|
+
switch (tag >>> 3) {
|
|
2243
|
+
case 1: {
|
|
2244
|
+
if (tag !== 8) {
|
|
2245
|
+
break;
|
|
2246
|
+
}
|
|
2247
|
+
message.expenseId = Long.fromString(reader.uint64().toString(), true);
|
|
2248
|
+
continue;
|
|
2249
|
+
}
|
|
2250
|
+
case 2: {
|
|
2251
|
+
if (tag !== 16) {
|
|
2252
|
+
break;
|
|
2253
|
+
}
|
|
2254
|
+
message.deviceId = Long.fromString(reader.uint64().toString(), true);
|
|
2255
|
+
continue;
|
|
2256
|
+
}
|
|
2257
|
+
case 3: {
|
|
2258
|
+
if (tag !== 26) {
|
|
2259
|
+
break;
|
|
2260
|
+
}
|
|
2261
|
+
message.occurredAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
2262
|
+
continue;
|
|
2263
|
+
}
|
|
2264
|
+
case 4: {
|
|
2265
|
+
if (tag !== 34) {
|
|
2266
|
+
break;
|
|
2267
|
+
}
|
|
2268
|
+
message.vendorName = reader.string();
|
|
2269
|
+
continue;
|
|
2270
|
+
}
|
|
2271
|
+
case 5: {
|
|
2272
|
+
if (tag !== 40) {
|
|
2273
|
+
break;
|
|
2274
|
+
}
|
|
2275
|
+
message.odometer = Long.fromString(reader.uint64().toString(), true);
|
|
2276
|
+
continue;
|
|
2277
|
+
}
|
|
2278
|
+
case 6: {
|
|
2279
|
+
if (tag !== 49) {
|
|
2280
|
+
break;
|
|
2281
|
+
}
|
|
2282
|
+
message.usageKm = reader.double();
|
|
2283
|
+
continue;
|
|
2284
|
+
}
|
|
2285
|
+
case 7: {
|
|
2286
|
+
if (tag !== 57) {
|
|
2287
|
+
break;
|
|
2288
|
+
}
|
|
2289
|
+
message.litres = reader.double();
|
|
2290
|
+
continue;
|
|
2291
|
+
}
|
|
2292
|
+
case 8: {
|
|
2293
|
+
if (tag !== 65) {
|
|
2294
|
+
break;
|
|
2295
|
+
}
|
|
2296
|
+
message.amount = reader.double();
|
|
2297
|
+
continue;
|
|
2298
|
+
}
|
|
2299
|
+
case 9: {
|
|
2300
|
+
if (tag !== 73) {
|
|
2301
|
+
break;
|
|
2302
|
+
}
|
|
2303
|
+
message.kmPerL = reader.double();
|
|
2304
|
+
continue;
|
|
2305
|
+
}
|
|
2306
|
+
case 10: {
|
|
2307
|
+
if (tag !== 81) {
|
|
2308
|
+
break;
|
|
2309
|
+
}
|
|
2310
|
+
message.costPerKm = reader.double();
|
|
2311
|
+
continue;
|
|
2312
|
+
}
|
|
2313
|
+
}
|
|
2314
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2315
|
+
break;
|
|
2316
|
+
}
|
|
2317
|
+
reader.skip(tag & 7);
|
|
2318
|
+
}
|
|
2319
|
+
return message;
|
|
2320
|
+
},
|
|
2321
|
+
create(base) {
|
|
2322
|
+
return FleetExpenseReportResponse_FuelRow.fromPartial(base ?? {});
|
|
2323
|
+
},
|
|
2324
|
+
fromPartial(object) {
|
|
2325
|
+
const message = createBaseFleetExpenseReportResponse_FuelRow();
|
|
2326
|
+
message.expenseId = (object.expenseId !== undefined && object.expenseId !== null)
|
|
2327
|
+
? Long.fromValue(object.expenseId)
|
|
2328
|
+
: Long.UZERO;
|
|
2329
|
+
message.deviceId = (object.deviceId !== undefined && object.deviceId !== null)
|
|
2330
|
+
? Long.fromValue(object.deviceId)
|
|
2331
|
+
: Long.UZERO;
|
|
2332
|
+
message.occurredAt = object.occurredAt ?? undefined;
|
|
2333
|
+
message.vendorName = object.vendorName ?? undefined;
|
|
2334
|
+
message.odometer = (object.odometer !== undefined && object.odometer !== null)
|
|
2335
|
+
? Long.fromValue(object.odometer)
|
|
2336
|
+
: undefined;
|
|
2337
|
+
message.usageKm = object.usageKm ?? undefined;
|
|
2338
|
+
message.litres = object.litres ?? 0;
|
|
2339
|
+
message.amount = object.amount ?? 0;
|
|
2340
|
+
message.kmPerL = object.kmPerL ?? undefined;
|
|
2341
|
+
message.costPerKm = object.costPerKm ?? undefined;
|
|
2342
|
+
return message;
|
|
2343
|
+
},
|
|
2344
|
+
};
|
|
2345
|
+
function createBaseFleetDeviceSummaryRequest() {
|
|
2346
|
+
return { deviceId: Long.UZERO };
|
|
2347
|
+
}
|
|
2348
|
+
export const FleetDeviceSummaryRequest = {
|
|
2349
|
+
encode(message, writer = new BinaryWriter()) {
|
|
2350
|
+
if (!message.deviceId.equals(Long.UZERO)) {
|
|
2351
|
+
writer.uint32(8).uint64(message.deviceId.toString());
|
|
2352
|
+
}
|
|
2353
|
+
return writer;
|
|
2354
|
+
},
|
|
2355
|
+
decode(input, length) {
|
|
2356
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2357
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2358
|
+
const message = createBaseFleetDeviceSummaryRequest();
|
|
2359
|
+
while (reader.pos < end) {
|
|
2360
|
+
const tag = reader.uint32();
|
|
2361
|
+
switch (tag >>> 3) {
|
|
2362
|
+
case 1: {
|
|
2363
|
+
if (tag !== 8) {
|
|
2364
|
+
break;
|
|
2365
|
+
}
|
|
2366
|
+
message.deviceId = Long.fromString(reader.uint64().toString(), true);
|
|
2367
|
+
continue;
|
|
2368
|
+
}
|
|
2369
|
+
}
|
|
2370
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2371
|
+
break;
|
|
2372
|
+
}
|
|
2373
|
+
reader.skip(tag & 7);
|
|
2374
|
+
}
|
|
2375
|
+
return message;
|
|
2376
|
+
},
|
|
2377
|
+
create(base) {
|
|
2378
|
+
return FleetDeviceSummaryRequest.fromPartial(base ?? {});
|
|
2379
|
+
},
|
|
2380
|
+
fromPartial(object) {
|
|
2381
|
+
const message = createBaseFleetDeviceSummaryRequest();
|
|
2382
|
+
message.deviceId = (object.deviceId !== undefined && object.deviceId !== null)
|
|
2383
|
+
? Long.fromValue(object.deviceId)
|
|
2384
|
+
: Long.UZERO;
|
|
2385
|
+
return message;
|
|
2386
|
+
},
|
|
2387
|
+
};
|
|
2388
|
+
function createBaseFleetDeviceSummaryResponse() {
|
|
2389
|
+
return {
|
|
2390
|
+
device: undefined,
|
|
2391
|
+
deviceOdometer: undefined,
|
|
2392
|
+
realOdometer: undefined,
|
|
2393
|
+
offset: undefined,
|
|
2394
|
+
outOfService: undefined,
|
|
2395
|
+
nextService: undefined,
|
|
2396
|
+
openIssues: 0,
|
|
2397
|
+
expiringDocuments: 0,
|
|
2398
|
+
monthExpense: 0,
|
|
2399
|
+
inbox: [],
|
|
2400
|
+
cost: 0,
|
|
2401
|
+
};
|
|
2402
|
+
}
|
|
2403
|
+
export const FleetDeviceSummaryResponse = {
|
|
2404
|
+
encode(message, writer = new BinaryWriter()) {
|
|
2405
|
+
if (message.device !== undefined) {
|
|
2406
|
+
DeviceRepo.encode(message.device, writer.uint32(10).fork()).join();
|
|
2407
|
+
}
|
|
2408
|
+
if (message.deviceOdometer !== undefined) {
|
|
2409
|
+
writer.uint32(16).uint64(message.deviceOdometer.toString());
|
|
2410
|
+
}
|
|
2411
|
+
if (message.realOdometer !== undefined) {
|
|
2412
|
+
writer.uint32(24).uint64(message.realOdometer.toString());
|
|
2413
|
+
}
|
|
2414
|
+
if (message.offset !== undefined) {
|
|
2415
|
+
OdometerOffset.encode(message.offset, writer.uint32(34).fork()).join();
|
|
2416
|
+
}
|
|
2417
|
+
if (message.outOfService !== undefined) {
|
|
2418
|
+
OutOfService.encode(message.outOfService, writer.uint32(42).fork()).join();
|
|
2419
|
+
}
|
|
2420
|
+
if (message.nextService !== undefined) {
|
|
2421
|
+
Maintenance.encode(message.nextService, writer.uint32(50).fork()).join();
|
|
2422
|
+
}
|
|
2423
|
+
if (message.openIssues !== 0) {
|
|
2424
|
+
writer.uint32(56).uint32(message.openIssues);
|
|
2425
|
+
}
|
|
2426
|
+
if (message.expiringDocuments !== 0) {
|
|
2427
|
+
writer.uint32(64).uint32(message.expiringDocuments);
|
|
2428
|
+
}
|
|
2429
|
+
if (message.monthExpense !== 0) {
|
|
2430
|
+
writer.uint32(73).double(message.monthExpense);
|
|
2431
|
+
}
|
|
2432
|
+
for (const v of message.inbox) {
|
|
2433
|
+
FleetInboxItem.encode(v, writer.uint32(82).fork()).join();
|
|
2434
|
+
}
|
|
2435
|
+
if (message.cost !== 0) {
|
|
2436
|
+
writer.uint32(88).uint32(message.cost);
|
|
2437
|
+
}
|
|
2438
|
+
return writer;
|
|
2439
|
+
},
|
|
2440
|
+
decode(input, length) {
|
|
2441
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2442
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2443
|
+
const message = createBaseFleetDeviceSummaryResponse();
|
|
2444
|
+
while (reader.pos < end) {
|
|
2445
|
+
const tag = reader.uint32();
|
|
2446
|
+
switch (tag >>> 3) {
|
|
2447
|
+
case 1: {
|
|
2448
|
+
if (tag !== 10) {
|
|
2449
|
+
break;
|
|
2450
|
+
}
|
|
2451
|
+
message.device = DeviceRepo.decode(reader, reader.uint32());
|
|
2452
|
+
continue;
|
|
2453
|
+
}
|
|
2454
|
+
case 2: {
|
|
2455
|
+
if (tag !== 16) {
|
|
2456
|
+
break;
|
|
2457
|
+
}
|
|
2458
|
+
message.deviceOdometer = Long.fromString(reader.uint64().toString(), true);
|
|
2459
|
+
continue;
|
|
2460
|
+
}
|
|
2461
|
+
case 3: {
|
|
2462
|
+
if (tag !== 24) {
|
|
2463
|
+
break;
|
|
2464
|
+
}
|
|
2465
|
+
message.realOdometer = Long.fromString(reader.uint64().toString(), true);
|
|
2466
|
+
continue;
|
|
2467
|
+
}
|
|
2468
|
+
case 4: {
|
|
2469
|
+
if (tag !== 34) {
|
|
2470
|
+
break;
|
|
2471
|
+
}
|
|
2472
|
+
message.offset = OdometerOffset.decode(reader, reader.uint32());
|
|
2473
|
+
continue;
|
|
2474
|
+
}
|
|
2475
|
+
case 5: {
|
|
2476
|
+
if (tag !== 42) {
|
|
2477
|
+
break;
|
|
2478
|
+
}
|
|
2479
|
+
message.outOfService = OutOfService.decode(reader, reader.uint32());
|
|
2480
|
+
continue;
|
|
2481
|
+
}
|
|
2482
|
+
case 6: {
|
|
2483
|
+
if (tag !== 50) {
|
|
2484
|
+
break;
|
|
2485
|
+
}
|
|
2486
|
+
message.nextService = Maintenance.decode(reader, reader.uint32());
|
|
2487
|
+
continue;
|
|
2488
|
+
}
|
|
2489
|
+
case 7: {
|
|
2490
|
+
if (tag !== 56) {
|
|
2491
|
+
break;
|
|
2492
|
+
}
|
|
2493
|
+
message.openIssues = reader.uint32();
|
|
2494
|
+
continue;
|
|
2495
|
+
}
|
|
2496
|
+
case 8: {
|
|
2497
|
+
if (tag !== 64) {
|
|
2498
|
+
break;
|
|
2499
|
+
}
|
|
2500
|
+
message.expiringDocuments = reader.uint32();
|
|
2501
|
+
continue;
|
|
2502
|
+
}
|
|
2503
|
+
case 9: {
|
|
2504
|
+
if (tag !== 73) {
|
|
2505
|
+
break;
|
|
2506
|
+
}
|
|
2507
|
+
message.monthExpense = reader.double();
|
|
2508
|
+
continue;
|
|
2509
|
+
}
|
|
2510
|
+
case 10: {
|
|
2511
|
+
if (tag !== 82) {
|
|
2512
|
+
break;
|
|
2513
|
+
}
|
|
2514
|
+
message.inbox.push(FleetInboxItem.decode(reader, reader.uint32()));
|
|
2515
|
+
continue;
|
|
2516
|
+
}
|
|
2517
|
+
case 11: {
|
|
2518
|
+
if (tag !== 88) {
|
|
2519
|
+
break;
|
|
2520
|
+
}
|
|
2521
|
+
message.cost = reader.uint32();
|
|
2522
|
+
continue;
|
|
2523
|
+
}
|
|
2524
|
+
}
|
|
2525
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2526
|
+
break;
|
|
2527
|
+
}
|
|
2528
|
+
reader.skip(tag & 7);
|
|
2529
|
+
}
|
|
2530
|
+
return message;
|
|
2531
|
+
},
|
|
2532
|
+
create(base) {
|
|
2533
|
+
return FleetDeviceSummaryResponse.fromPartial(base ?? {});
|
|
2534
|
+
},
|
|
2535
|
+
fromPartial(object) {
|
|
2536
|
+
const message = createBaseFleetDeviceSummaryResponse();
|
|
2537
|
+
message.device = (object.device !== undefined && object.device !== null)
|
|
2538
|
+
? DeviceRepo.fromPartial(object.device)
|
|
2539
|
+
: undefined;
|
|
2540
|
+
message.deviceOdometer = (object.deviceOdometer !== undefined && object.deviceOdometer !== null)
|
|
2541
|
+
? Long.fromValue(object.deviceOdometer)
|
|
2542
|
+
: undefined;
|
|
2543
|
+
message.realOdometer = (object.realOdometer !== undefined && object.realOdometer !== null)
|
|
2544
|
+
? Long.fromValue(object.realOdometer)
|
|
2545
|
+
: undefined;
|
|
2546
|
+
message.offset = (object.offset !== undefined && object.offset !== null)
|
|
2547
|
+
? OdometerOffset.fromPartial(object.offset)
|
|
2548
|
+
: undefined;
|
|
2549
|
+
message.outOfService = (object.outOfService !== undefined && object.outOfService !== null)
|
|
2550
|
+
? OutOfService.fromPartial(object.outOfService)
|
|
2551
|
+
: undefined;
|
|
2552
|
+
message.nextService = (object.nextService !== undefined && object.nextService !== null)
|
|
2553
|
+
? Maintenance.fromPartial(object.nextService)
|
|
2554
|
+
: undefined;
|
|
2555
|
+
message.openIssues = object.openIssues ?? 0;
|
|
2556
|
+
message.expiringDocuments = object.expiringDocuments ?? 0;
|
|
2557
|
+
message.monthExpense = object.monthExpense ?? 0;
|
|
2558
|
+
message.inbox = object.inbox?.map((e) => FleetInboxItem.fromPartial(e)) || [];
|
|
2559
|
+
message.cost = object.cost ?? 0;
|
|
2560
|
+
return message;
|
|
2561
|
+
},
|
|
2562
|
+
};
|
|
2563
|
+
function createBaseAuthRequest() {
|
|
2564
|
+
return { credential: "" };
|
|
2565
|
+
}
|
|
2566
|
+
export const AuthRequest = {
|
|
2567
|
+
encode(message, writer = new BinaryWriter()) {
|
|
2568
|
+
if (message.credential !== "") {
|
|
2569
|
+
writer.uint32(10).string(message.credential);
|
|
2570
|
+
}
|
|
2571
|
+
return writer;
|
|
2572
|
+
},
|
|
2573
|
+
decode(input, length) {
|
|
2574
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2575
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2576
|
+
const message = createBaseAuthRequest();
|
|
2577
|
+
while (reader.pos < end) {
|
|
2578
|
+
const tag = reader.uint32();
|
|
2579
|
+
switch (tag >>> 3) {
|
|
2580
|
+
case 1: {
|
|
2581
|
+
if (tag !== 10) {
|
|
2582
|
+
break;
|
|
2583
|
+
}
|
|
2584
|
+
message.credential = reader.string();
|
|
2585
|
+
continue;
|
|
2586
|
+
}
|
|
2587
|
+
}
|
|
2588
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2589
|
+
break;
|
|
2590
|
+
}
|
|
2591
|
+
reader.skip(tag & 7);
|
|
2592
|
+
}
|
|
2593
|
+
return message;
|
|
2594
|
+
},
|
|
2595
|
+
create(base) {
|
|
2596
|
+
return AuthRequest.fromPartial(base ?? {});
|
|
2597
|
+
},
|
|
2598
|
+
fromPartial(object) {
|
|
2599
|
+
const message = createBaseAuthRequest();
|
|
2600
|
+
message.credential = object.credential ?? "";
|
|
2601
|
+
return message;
|
|
2602
|
+
},
|
|
2603
|
+
};
|
|
2604
|
+
function createBaseAuthResponse() {
|
|
2605
|
+
return { identity: undefined, accessToken: undefined, userRepo: undefined, cost: 0 };
|
|
2606
|
+
}
|
|
2607
|
+
export const AuthResponse = {
|
|
2608
|
+
encode(message, writer = new BinaryWriter()) {
|
|
2609
|
+
if (message.identity !== undefined) {
|
|
2610
|
+
Identity.encode(message.identity, writer.uint32(10).fork()).join();
|
|
2611
|
+
}
|
|
2612
|
+
if (message.accessToken !== undefined) {
|
|
2613
|
+
AccessToken.encode(message.accessToken, writer.uint32(18).fork()).join();
|
|
2614
|
+
}
|
|
2615
|
+
if (message.userRepo !== undefined) {
|
|
2616
|
+
UserRepo.encode(message.userRepo, writer.uint32(26).fork()).join();
|
|
2617
|
+
}
|
|
2618
|
+
if (message.cost !== 0) {
|
|
2619
|
+
writer.uint32(32).uint32(message.cost);
|
|
2620
|
+
}
|
|
2621
|
+
return writer;
|
|
2622
|
+
},
|
|
2623
|
+
decode(input, length) {
|
|
2624
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2625
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2626
|
+
const message = createBaseAuthResponse();
|
|
2627
|
+
while (reader.pos < end) {
|
|
2628
|
+
const tag = reader.uint32();
|
|
2629
|
+
switch (tag >>> 3) {
|
|
2630
|
+
case 1: {
|
|
2631
|
+
if (tag !== 10) {
|
|
2632
|
+
break;
|
|
2633
|
+
}
|
|
2634
|
+
message.identity = Identity.decode(reader, reader.uint32());
|
|
2635
|
+
continue;
|
|
2636
|
+
}
|
|
2637
|
+
case 2: {
|
|
2638
|
+
if (tag !== 18) {
|
|
2639
|
+
break;
|
|
2640
|
+
}
|
|
2641
|
+
message.accessToken = AccessToken.decode(reader, reader.uint32());
|
|
2642
|
+
continue;
|
|
2643
|
+
}
|
|
2644
|
+
case 3: {
|
|
2645
|
+
if (tag !== 26) {
|
|
2646
|
+
break;
|
|
2647
|
+
}
|
|
2648
|
+
message.userRepo = UserRepo.decode(reader, reader.uint32());
|
|
2649
|
+
continue;
|
|
2650
|
+
}
|
|
2651
|
+
case 4: {
|
|
2652
|
+
if (tag !== 32) {
|
|
2653
|
+
break;
|
|
2654
|
+
}
|
|
2655
|
+
message.cost = reader.uint32();
|
|
2656
|
+
continue;
|
|
2657
|
+
}
|
|
2658
|
+
}
|
|
2659
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2660
|
+
break;
|
|
2661
|
+
}
|
|
2662
|
+
reader.skip(tag & 7);
|
|
2663
|
+
}
|
|
2664
|
+
return message;
|
|
2665
|
+
},
|
|
2666
|
+
create(base) {
|
|
2667
|
+
return AuthResponse.fromPartial(base ?? {});
|
|
2668
|
+
},
|
|
2669
|
+
fromPartial(object) {
|
|
2670
|
+
const message = createBaseAuthResponse();
|
|
2671
|
+
message.identity = (object.identity !== undefined && object.identity !== null)
|
|
2672
|
+
? Identity.fromPartial(object.identity)
|
|
2673
|
+
: undefined;
|
|
2674
|
+
message.accessToken = (object.accessToken !== undefined && object.accessToken !== null)
|
|
2675
|
+
? AccessToken.fromPartial(object.accessToken)
|
|
2676
|
+
: undefined;
|
|
2677
|
+
message.userRepo = (object.userRepo !== undefined && object.userRepo !== null)
|
|
2678
|
+
? UserRepo.fromPartial(object.userRepo)
|
|
2679
|
+
: undefined;
|
|
2680
|
+
message.cost = object.cost ?? 0;
|
|
2681
|
+
return message;
|
|
2682
|
+
},
|
|
2683
|
+
};
|
|
2684
|
+
function createBaseIoRequest() {
|
|
2685
|
+
return { deviceId: undefined };
|
|
2686
|
+
}
|
|
2687
|
+
export const IoRequest = {
|
|
2688
|
+
encode(message, writer = new BinaryWriter()) {
|
|
2689
|
+
if (message.deviceId !== undefined) {
|
|
2690
|
+
writer.uint32(8).uint64(message.deviceId.toString());
|
|
2691
|
+
}
|
|
2692
|
+
return writer;
|
|
2693
|
+
},
|
|
2694
|
+
decode(input, length) {
|
|
2695
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2696
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2697
|
+
const message = createBaseIoRequest();
|
|
2698
|
+
while (reader.pos < end) {
|
|
2699
|
+
const tag = reader.uint32();
|
|
2700
|
+
switch (tag >>> 3) {
|
|
2701
|
+
case 1: {
|
|
2702
|
+
if (tag !== 8) {
|
|
2703
|
+
break;
|
|
2704
|
+
}
|
|
2705
|
+
message.deviceId = Long.fromString(reader.uint64().toString(), true);
|
|
2706
|
+
continue;
|
|
2707
|
+
}
|
|
2708
|
+
}
|
|
2709
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2710
|
+
break;
|
|
2711
|
+
}
|
|
2712
|
+
reader.skip(tag & 7);
|
|
2713
|
+
}
|
|
2714
|
+
return message;
|
|
2715
|
+
},
|
|
2716
|
+
create(base) {
|
|
2717
|
+
return IoRequest.fromPartial(base ?? {});
|
|
2718
|
+
},
|
|
2719
|
+
fromPartial(object) {
|
|
2720
|
+
const message = createBaseIoRequest();
|
|
2721
|
+
message.deviceId = (object.deviceId !== undefined && object.deviceId !== null)
|
|
2722
|
+
? Long.fromValue(object.deviceId)
|
|
2723
|
+
: undefined;
|
|
2724
|
+
return message;
|
|
2725
|
+
},
|
|
2726
|
+
};
|
|
2727
|
+
function createBaseIoResponse() {
|
|
2728
|
+
return { cost: 0, records: 0, ios: [] };
|
|
2729
|
+
}
|
|
2730
|
+
export const IoResponse = {
|
|
2731
|
+
encode(message, writer = new BinaryWriter()) {
|
|
2732
|
+
if (message.cost !== 0) {
|
|
2733
|
+
writer.uint32(8).uint32(message.cost);
|
|
2734
|
+
}
|
|
2735
|
+
if (message.records !== 0) {
|
|
2736
|
+
writer.uint32(16).uint32(message.records);
|
|
2737
|
+
}
|
|
2738
|
+
for (const v of message.ios) {
|
|
2739
|
+
SystemIo.encode(v, writer.uint32(26).fork()).join();
|
|
2740
|
+
}
|
|
2741
|
+
return writer;
|
|
2742
|
+
},
|
|
2743
|
+
decode(input, length) {
|
|
2744
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2745
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2746
|
+
const message = createBaseIoResponse();
|
|
2747
|
+
while (reader.pos < end) {
|
|
2748
|
+
const tag = reader.uint32();
|
|
2749
|
+
switch (tag >>> 3) {
|
|
2750
|
+
case 1: {
|
|
2751
|
+
if (tag !== 8) {
|
|
2752
|
+
break;
|
|
2753
|
+
}
|
|
2754
|
+
message.cost = reader.uint32();
|
|
2755
|
+
continue;
|
|
2756
|
+
}
|
|
2757
|
+
case 2: {
|
|
2758
|
+
if (tag !== 16) {
|
|
2759
|
+
break;
|
|
2760
|
+
}
|
|
2761
|
+
message.records = reader.uint32();
|
|
2762
|
+
continue;
|
|
2763
|
+
}
|
|
2764
|
+
case 3: {
|
|
2765
|
+
if (tag !== 26) {
|
|
2766
|
+
break;
|
|
2767
|
+
}
|
|
2768
|
+
message.ios.push(SystemIo.decode(reader, reader.uint32()));
|
|
2769
|
+
continue;
|
|
2770
|
+
}
|
|
2771
|
+
}
|
|
2772
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2773
|
+
break;
|
|
2774
|
+
}
|
|
2775
|
+
reader.skip(tag & 7);
|
|
2776
|
+
}
|
|
2777
|
+
return message;
|
|
2778
|
+
},
|
|
2779
|
+
create(base) {
|
|
2780
|
+
return IoResponse.fromPartial(base ?? {});
|
|
2781
|
+
},
|
|
2782
|
+
fromPartial(object) {
|
|
2783
|
+
const message = createBaseIoResponse();
|
|
2784
|
+
message.cost = object.cost ?? 0;
|
|
2785
|
+
message.records = object.records ?? 0;
|
|
2786
|
+
message.ios = object.ios?.map((e) => SystemIo.fromPartial(e)) || [];
|
|
2787
|
+
return message;
|
|
2788
|
+
},
|
|
2789
|
+
};
|
|
2790
|
+
function createBaseConfigRequest() {
|
|
2791
|
+
return { domain: undefined, partnerId: undefined, includeSecurityConfig: false };
|
|
2792
|
+
}
|
|
2793
|
+
export const ConfigRequest = {
|
|
2794
|
+
encode(message, writer = new BinaryWriter()) {
|
|
2795
|
+
if (message.domain !== undefined) {
|
|
2796
|
+
writer.uint32(10).string(message.domain);
|
|
2797
|
+
}
|
|
2798
|
+
if (message.partnerId !== undefined) {
|
|
2799
|
+
writer.uint32(16).uint64(message.partnerId.toString());
|
|
2800
|
+
}
|
|
2801
|
+
if (message.includeSecurityConfig !== false) {
|
|
2802
|
+
writer.uint32(24).bool(message.includeSecurityConfig);
|
|
2803
|
+
}
|
|
2804
|
+
return writer;
|
|
2805
|
+
},
|
|
2806
|
+
decode(input, length) {
|
|
2807
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2808
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2809
|
+
const message = createBaseConfigRequest();
|
|
2810
|
+
while (reader.pos < end) {
|
|
2811
|
+
const tag = reader.uint32();
|
|
2812
|
+
switch (tag >>> 3) {
|
|
2813
|
+
case 1: {
|
|
2814
|
+
if (tag !== 10) {
|
|
2815
|
+
break;
|
|
2816
|
+
}
|
|
2817
|
+
message.domain = reader.string();
|
|
2818
|
+
continue;
|
|
2819
|
+
}
|
|
2820
|
+
case 2: {
|
|
2821
|
+
if (tag !== 16) {
|
|
2822
|
+
break;
|
|
2823
|
+
}
|
|
2824
|
+
message.partnerId = Long.fromString(reader.uint64().toString(), true);
|
|
2825
|
+
continue;
|
|
2826
|
+
}
|
|
2827
|
+
case 3: {
|
|
2828
|
+
if (tag !== 24) {
|
|
2829
|
+
break;
|
|
2830
|
+
}
|
|
2831
|
+
message.includeSecurityConfig = reader.bool();
|
|
2832
|
+
continue;
|
|
2833
|
+
}
|
|
2834
|
+
}
|
|
2835
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2836
|
+
break;
|
|
2837
|
+
}
|
|
2838
|
+
reader.skip(tag & 7);
|
|
2839
|
+
}
|
|
2840
|
+
return message;
|
|
2841
|
+
},
|
|
2842
|
+
create(base) {
|
|
2843
|
+
return ConfigRequest.fromPartial(base ?? {});
|
|
2844
|
+
},
|
|
2845
|
+
fromPartial(object) {
|
|
2846
|
+
const message = createBaseConfigRequest();
|
|
2847
|
+
message.domain = object.domain ?? undefined;
|
|
2848
|
+
message.partnerId = (object.partnerId !== undefined && object.partnerId !== null)
|
|
2849
|
+
? Long.fromValue(object.partnerId)
|
|
2850
|
+
: undefined;
|
|
2851
|
+
message.includeSecurityConfig = object.includeSecurityConfig ?? false;
|
|
2852
|
+
return message;
|
|
2853
|
+
},
|
|
2854
|
+
};
|
|
2855
|
+
function createBaseConfigResponse() {
|
|
2856
|
+
return {
|
|
2857
|
+
cost: 0,
|
|
2858
|
+
records: 0,
|
|
2859
|
+
list: [],
|
|
2860
|
+
appDesign: undefined,
|
|
2861
|
+
appSec: undefined,
|
|
2862
|
+
strategy: undefined,
|
|
2863
|
+
organizationId: Long.UZERO,
|
|
2864
|
+
};
|
|
2865
|
+
}
|
|
2866
|
+
export const ConfigResponse = {
|
|
2867
|
+
encode(message, writer = new BinaryWriter()) {
|
|
2868
|
+
if (message.cost !== 0) {
|
|
2869
|
+
writer.uint32(8).uint32(message.cost);
|
|
2870
|
+
}
|
|
2871
|
+
if (message.records !== 0) {
|
|
2872
|
+
writer.uint32(16).uint32(message.records);
|
|
2873
|
+
}
|
|
2874
|
+
for (const v of message.list) {
|
|
2875
|
+
Config.encode(v, writer.uint32(26).fork()).join();
|
|
2876
|
+
}
|
|
2877
|
+
if (message.appDesign !== undefined) {
|
|
2878
|
+
ConfigResponse_AppDesignConfig.encode(message.appDesign, writer.uint32(34).fork()).join();
|
|
2879
|
+
}
|
|
2880
|
+
if (message.appSec !== undefined) {
|
|
2881
|
+
ConfigResponse_AppSecConfig.encode(message.appSec, writer.uint32(42).fork()).join();
|
|
2882
|
+
}
|
|
2883
|
+
if (message.strategy !== undefined) {
|
|
2884
|
+
AuthenticationStrategy.encode(message.strategy, writer.uint32(50).fork()).join();
|
|
2885
|
+
}
|
|
2886
|
+
if (!message.organizationId.equals(Long.UZERO)) {
|
|
2887
|
+
writer.uint32(56).uint64(message.organizationId.toString());
|
|
2888
|
+
}
|
|
2889
|
+
return writer;
|
|
2890
|
+
},
|
|
2891
|
+
decode(input, length) {
|
|
2892
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2893
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2894
|
+
const message = createBaseConfigResponse();
|
|
2895
|
+
while (reader.pos < end) {
|
|
2896
|
+
const tag = reader.uint32();
|
|
2897
|
+
switch (tag >>> 3) {
|
|
2898
|
+
case 1: {
|
|
2899
|
+
if (tag !== 8) {
|
|
2900
|
+
break;
|
|
2901
|
+
}
|
|
2902
|
+
message.cost = reader.uint32();
|
|
2903
|
+
continue;
|
|
2904
|
+
}
|
|
2905
|
+
case 2: {
|
|
2906
|
+
if (tag !== 16) {
|
|
2907
|
+
break;
|
|
2908
|
+
}
|
|
2909
|
+
message.records = reader.uint32();
|
|
2910
|
+
continue;
|
|
2911
|
+
}
|
|
2912
|
+
case 3: {
|
|
2913
|
+
if (tag !== 26) {
|
|
2914
|
+
break;
|
|
2915
|
+
}
|
|
2916
|
+
message.list.push(Config.decode(reader, reader.uint32()));
|
|
2917
|
+
continue;
|
|
2918
|
+
}
|
|
2919
|
+
case 4: {
|
|
2920
|
+
if (tag !== 34) {
|
|
2921
|
+
break;
|
|
2922
|
+
}
|
|
2923
|
+
message.appDesign = ConfigResponse_AppDesignConfig.decode(reader, reader.uint32());
|
|
2924
|
+
continue;
|
|
2925
|
+
}
|
|
2926
|
+
case 5: {
|
|
2927
|
+
if (tag !== 42) {
|
|
2928
|
+
break;
|
|
2929
|
+
}
|
|
2930
|
+
message.appSec = ConfigResponse_AppSecConfig.decode(reader, reader.uint32());
|
|
2931
|
+
continue;
|
|
2932
|
+
}
|
|
2933
|
+
case 6: {
|
|
2934
|
+
if (tag !== 50) {
|
|
2935
|
+
break;
|
|
2936
|
+
}
|
|
2937
|
+
message.strategy = AuthenticationStrategy.decode(reader, reader.uint32());
|
|
2938
|
+
continue;
|
|
2939
|
+
}
|
|
2940
|
+
case 7: {
|
|
2941
|
+
if (tag !== 56) {
|
|
2942
|
+
break;
|
|
2943
|
+
}
|
|
2944
|
+
message.organizationId = Long.fromString(reader.uint64().toString(), true);
|
|
2945
|
+
continue;
|
|
2946
|
+
}
|
|
2947
|
+
}
|
|
2948
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2949
|
+
break;
|
|
2950
|
+
}
|
|
2951
|
+
reader.skip(tag & 7);
|
|
2952
|
+
}
|
|
2953
|
+
return message;
|
|
2954
|
+
},
|
|
2955
|
+
create(base) {
|
|
2956
|
+
return ConfigResponse.fromPartial(base ?? {});
|
|
2957
|
+
},
|
|
2958
|
+
fromPartial(object) {
|
|
2959
|
+
const message = createBaseConfigResponse();
|
|
2960
|
+
message.cost = object.cost ?? 0;
|
|
2961
|
+
message.records = object.records ?? 0;
|
|
2962
|
+
message.list = object.list?.map((e) => Config.fromPartial(e)) || [];
|
|
2963
|
+
message.appDesign = (object.appDesign !== undefined && object.appDesign !== null)
|
|
2964
|
+
? ConfigResponse_AppDesignConfig.fromPartial(object.appDesign)
|
|
2965
|
+
: undefined;
|
|
2966
|
+
message.appSec = (object.appSec !== undefined && object.appSec !== null)
|
|
2967
|
+
? ConfigResponse_AppSecConfig.fromPartial(object.appSec)
|
|
2968
|
+
: undefined;
|
|
2969
|
+
message.strategy = (object.strategy !== undefined && object.strategy !== null)
|
|
2970
|
+
? AuthenticationStrategy.fromPartial(object.strategy)
|
|
2971
|
+
: undefined;
|
|
2972
|
+
message.organizationId = (object.organizationId !== undefined && object.organizationId !== null)
|
|
2973
|
+
? Long.fromValue(object.organizationId)
|
|
2974
|
+
: Long.UZERO;
|
|
2975
|
+
return message;
|
|
2976
|
+
},
|
|
2977
|
+
};
|
|
2978
|
+
function createBaseConfigResponse_AppDesignConfig() {
|
|
2979
|
+
return {
|
|
2980
|
+
appName: "",
|
|
2981
|
+
logo: "",
|
|
2982
|
+
webBackground: "",
|
|
2983
|
+
primaryColor: "",
|
|
2984
|
+
appLogo: "",
|
|
2985
|
+
goftino: "",
|
|
2986
|
+
appBackground: "",
|
|
2987
|
+
address: "",
|
|
2988
|
+
phone: "",
|
|
2989
|
+
telegram: "",
|
|
2990
|
+
primaryIconColor: "",
|
|
2991
|
+
secondaryIconColor: "",
|
|
2992
|
+
defaultRoleId: "",
|
|
2993
|
+
enableRegistration: "",
|
|
2994
|
+
defaultRegisterOrganizationId: "",
|
|
2995
|
+
googleClientId: "",
|
|
2996
|
+
telegramBotUsername: "",
|
|
2997
|
+
mainDomain: "",
|
|
2998
|
+
favicon: "",
|
|
2999
|
+
};
|
|
3000
|
+
}
|
|
3001
|
+
export const ConfigResponse_AppDesignConfig = {
|
|
3002
|
+
encode(message, writer = new BinaryWriter()) {
|
|
3003
|
+
if (message.appName !== "") {
|
|
3004
|
+
writer.uint32(10).string(message.appName);
|
|
3005
|
+
}
|
|
3006
|
+
if (message.logo !== "") {
|
|
3007
|
+
writer.uint32(18).string(message.logo);
|
|
3008
|
+
}
|
|
3009
|
+
if (message.webBackground !== "") {
|
|
3010
|
+
writer.uint32(26).string(message.webBackground);
|
|
3011
|
+
}
|
|
3012
|
+
if (message.primaryColor !== "") {
|
|
3013
|
+
writer.uint32(34).string(message.primaryColor);
|
|
3014
|
+
}
|
|
3015
|
+
if (message.appLogo !== "") {
|
|
3016
|
+
writer.uint32(42).string(message.appLogo);
|
|
3017
|
+
}
|
|
3018
|
+
if (message.goftino !== "") {
|
|
3019
|
+
writer.uint32(50).string(message.goftino);
|
|
3020
|
+
}
|
|
3021
|
+
if (message.appBackground !== "") {
|
|
3022
|
+
writer.uint32(58).string(message.appBackground);
|
|
3023
|
+
}
|
|
3024
|
+
if (message.address !== "") {
|
|
3025
|
+
writer.uint32(66).string(message.address);
|
|
3026
|
+
}
|
|
3027
|
+
if (message.phone !== "") {
|
|
3028
|
+
writer.uint32(74).string(message.phone);
|
|
3029
|
+
}
|
|
3030
|
+
if (message.telegram !== "") {
|
|
3031
|
+
writer.uint32(82).string(message.telegram);
|
|
3032
|
+
}
|
|
3033
|
+
if (message.primaryIconColor !== "") {
|
|
3034
|
+
writer.uint32(90).string(message.primaryIconColor);
|
|
3035
|
+
}
|
|
3036
|
+
if (message.secondaryIconColor !== "") {
|
|
3037
|
+
writer.uint32(98).string(message.secondaryIconColor);
|
|
3038
|
+
}
|
|
3039
|
+
if (message.defaultRoleId !== "") {
|
|
3040
|
+
writer.uint32(106).string(message.defaultRoleId);
|
|
3041
|
+
}
|
|
3042
|
+
if (message.enableRegistration !== "") {
|
|
3043
|
+
writer.uint32(114).string(message.enableRegistration);
|
|
3044
|
+
}
|
|
3045
|
+
if (message.defaultRegisterOrganizationId !== "") {
|
|
3046
|
+
writer.uint32(122).string(message.defaultRegisterOrganizationId);
|
|
3047
|
+
}
|
|
3048
|
+
if (message.googleClientId !== "") {
|
|
3049
|
+
writer.uint32(130).string(message.googleClientId);
|
|
3050
|
+
}
|
|
3051
|
+
if (message.telegramBotUsername !== "") {
|
|
3052
|
+
writer.uint32(138).string(message.telegramBotUsername);
|
|
3053
|
+
}
|
|
3054
|
+
if (message.mainDomain !== "") {
|
|
3055
|
+
writer.uint32(146).string(message.mainDomain);
|
|
3056
|
+
}
|
|
3057
|
+
if (message.favicon !== "") {
|
|
3058
|
+
writer.uint32(154).string(message.favicon);
|
|
3059
|
+
}
|
|
3060
|
+
return writer;
|
|
3061
|
+
},
|
|
3062
|
+
decode(input, length) {
|
|
3063
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
3064
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3065
|
+
const message = createBaseConfigResponse_AppDesignConfig();
|
|
3066
|
+
while (reader.pos < end) {
|
|
3067
|
+
const tag = reader.uint32();
|
|
3068
|
+
switch (tag >>> 3) {
|
|
3069
|
+
case 1: {
|
|
3070
|
+
if (tag !== 10) {
|
|
3071
|
+
break;
|
|
3072
|
+
}
|
|
3073
|
+
message.appName = reader.string();
|
|
3074
|
+
continue;
|
|
3075
|
+
}
|
|
3076
|
+
case 2: {
|
|
3077
|
+
if (tag !== 18) {
|
|
3078
|
+
break;
|
|
3079
|
+
}
|
|
3080
|
+
message.logo = reader.string();
|
|
3081
|
+
continue;
|
|
3082
|
+
}
|
|
3083
|
+
case 3: {
|
|
3084
|
+
if (tag !== 26) {
|
|
3085
|
+
break;
|
|
3086
|
+
}
|
|
3087
|
+
message.webBackground = reader.string();
|
|
3088
|
+
continue;
|
|
3089
|
+
}
|
|
3090
|
+
case 4: {
|
|
3091
|
+
if (tag !== 34) {
|
|
3092
|
+
break;
|
|
3093
|
+
}
|
|
3094
|
+
message.primaryColor = reader.string();
|
|
3095
|
+
continue;
|
|
3096
|
+
}
|
|
3097
|
+
case 5: {
|
|
3098
|
+
if (tag !== 42) {
|
|
3099
|
+
break;
|
|
3100
|
+
}
|
|
3101
|
+
message.appLogo = reader.string();
|
|
3102
|
+
continue;
|
|
3103
|
+
}
|
|
3104
|
+
case 6: {
|
|
3105
|
+
if (tag !== 50) {
|
|
3106
|
+
break;
|
|
3107
|
+
}
|
|
3108
|
+
message.goftino = reader.string();
|
|
3109
|
+
continue;
|
|
3110
|
+
}
|
|
3111
|
+
case 7: {
|
|
3112
|
+
if (tag !== 58) {
|
|
3113
|
+
break;
|
|
3114
|
+
}
|
|
3115
|
+
message.appBackground = reader.string();
|
|
3116
|
+
continue;
|
|
3117
|
+
}
|
|
3118
|
+
case 8: {
|
|
3119
|
+
if (tag !== 66) {
|
|
3120
|
+
break;
|
|
3121
|
+
}
|
|
3122
|
+
message.address = reader.string();
|
|
3123
|
+
continue;
|
|
3124
|
+
}
|
|
3125
|
+
case 9: {
|
|
3126
|
+
if (tag !== 74) {
|
|
3127
|
+
break;
|
|
3128
|
+
}
|
|
3129
|
+
message.phone = reader.string();
|
|
3130
|
+
continue;
|
|
3131
|
+
}
|
|
3132
|
+
case 10: {
|
|
3133
|
+
if (tag !== 82) {
|
|
3134
|
+
break;
|
|
3135
|
+
}
|
|
3136
|
+
message.telegram = reader.string();
|
|
3137
|
+
continue;
|
|
3138
|
+
}
|
|
3139
|
+
case 11: {
|
|
3140
|
+
if (tag !== 90) {
|
|
3141
|
+
break;
|
|
3142
|
+
}
|
|
3143
|
+
message.primaryIconColor = reader.string();
|
|
3144
|
+
continue;
|
|
3145
|
+
}
|
|
3146
|
+
case 12: {
|
|
3147
|
+
if (tag !== 98) {
|
|
3148
|
+
break;
|
|
3149
|
+
}
|
|
3150
|
+
message.secondaryIconColor = reader.string();
|
|
3151
|
+
continue;
|
|
3152
|
+
}
|
|
3153
|
+
case 13: {
|
|
3154
|
+
if (tag !== 106) {
|
|
3155
|
+
break;
|
|
3156
|
+
}
|
|
3157
|
+
message.defaultRoleId = reader.string();
|
|
3158
|
+
continue;
|
|
3159
|
+
}
|
|
3160
|
+
case 14: {
|
|
3161
|
+
if (tag !== 114) {
|
|
3162
|
+
break;
|
|
3163
|
+
}
|
|
3164
|
+
message.enableRegistration = reader.string();
|
|
3165
|
+
continue;
|
|
3166
|
+
}
|
|
3167
|
+
case 15: {
|
|
3168
|
+
if (tag !== 122) {
|
|
3169
|
+
break;
|
|
3170
|
+
}
|
|
3171
|
+
message.defaultRegisterOrganizationId = reader.string();
|
|
3172
|
+
continue;
|
|
3173
|
+
}
|
|
3174
|
+
case 16: {
|
|
3175
|
+
if (tag !== 130) {
|
|
3176
|
+
break;
|
|
3177
|
+
}
|
|
3178
|
+
message.googleClientId = reader.string();
|
|
3179
|
+
continue;
|
|
3180
|
+
}
|
|
3181
|
+
case 17: {
|
|
3182
|
+
if (tag !== 138) {
|
|
3183
|
+
break;
|
|
3184
|
+
}
|
|
3185
|
+
message.telegramBotUsername = reader.string();
|
|
3186
|
+
continue;
|
|
3187
|
+
}
|
|
3188
|
+
case 18: {
|
|
3189
|
+
if (tag !== 146) {
|
|
3190
|
+
break;
|
|
3191
|
+
}
|
|
3192
|
+
message.mainDomain = reader.string();
|
|
3193
|
+
continue;
|
|
3194
|
+
}
|
|
3195
|
+
case 19: {
|
|
3196
|
+
if (tag !== 154) {
|
|
3197
|
+
break;
|
|
3198
|
+
}
|
|
3199
|
+
message.favicon = reader.string();
|
|
3200
|
+
continue;
|
|
3201
|
+
}
|
|
3202
|
+
}
|
|
3203
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3204
|
+
break;
|
|
3205
|
+
}
|
|
3206
|
+
reader.skip(tag & 7);
|
|
3207
|
+
}
|
|
3208
|
+
return message;
|
|
3209
|
+
},
|
|
3210
|
+
create(base) {
|
|
3211
|
+
return ConfigResponse_AppDesignConfig.fromPartial(base ?? {});
|
|
3212
|
+
},
|
|
3213
|
+
fromPartial(object) {
|
|
3214
|
+
const message = createBaseConfigResponse_AppDesignConfig();
|
|
3215
|
+
message.appName = object.appName ?? "";
|
|
3216
|
+
message.logo = object.logo ?? "";
|
|
3217
|
+
message.webBackground = object.webBackground ?? "";
|
|
3218
|
+
message.primaryColor = object.primaryColor ?? "";
|
|
3219
|
+
message.appLogo = object.appLogo ?? "";
|
|
3220
|
+
message.goftino = object.goftino ?? "";
|
|
3221
|
+
message.appBackground = object.appBackground ?? "";
|
|
3222
|
+
message.address = object.address ?? "";
|
|
3223
|
+
message.phone = object.phone ?? "";
|
|
3224
|
+
message.telegram = object.telegram ?? "";
|
|
3225
|
+
message.primaryIconColor = object.primaryIconColor ?? "";
|
|
3226
|
+
message.secondaryIconColor = object.secondaryIconColor ?? "";
|
|
3227
|
+
message.defaultRoleId = object.defaultRoleId ?? "";
|
|
3228
|
+
message.enableRegistration = object.enableRegistration ?? "";
|
|
3229
|
+
message.defaultRegisterOrganizationId = object.defaultRegisterOrganizationId ?? "";
|
|
3230
|
+
message.googleClientId = object.googleClientId ?? "";
|
|
3231
|
+
message.telegramBotUsername = object.telegramBotUsername ?? "";
|
|
3232
|
+
message.mainDomain = object.mainDomain ?? "";
|
|
3233
|
+
message.favicon = object.favicon ?? "";
|
|
3234
|
+
return message;
|
|
3235
|
+
},
|
|
3236
|
+
};
|
|
3237
|
+
function createBaseConfigResponse_AppSecConfig() {
|
|
3238
|
+
return {
|
|
3239
|
+
maxLogs: undefined,
|
|
3240
|
+
maxSessions: undefined,
|
|
3241
|
+
maxOtpTries: undefined,
|
|
3242
|
+
minPasswordLength: undefined,
|
|
3243
|
+
credentialExpirationDays: undefined,
|
|
3244
|
+
forcedTwoStepVerification: false,
|
|
3245
|
+
googleClientSecret: undefined,
|
|
3246
|
+
telegramBotToken: undefined,
|
|
3247
|
+
};
|
|
3248
|
+
}
|
|
3249
|
+
export const ConfigResponse_AppSecConfig = {
|
|
3250
|
+
encode(message, writer = new BinaryWriter()) {
|
|
3251
|
+
if (message.maxLogs !== undefined) {
|
|
3252
|
+
writer.uint32(8).sint64(message.maxLogs.toString());
|
|
3253
|
+
}
|
|
3254
|
+
if (message.maxSessions !== undefined) {
|
|
3255
|
+
writer.uint32(16).sint64(message.maxSessions.toString());
|
|
3256
|
+
}
|
|
3257
|
+
if (message.maxOtpTries !== undefined) {
|
|
3258
|
+
writer.uint32(24).sint64(message.maxOtpTries.toString());
|
|
3259
|
+
}
|
|
3260
|
+
if (message.minPasswordLength !== undefined) {
|
|
3261
|
+
writer.uint32(32).sint64(message.minPasswordLength.toString());
|
|
3262
|
+
}
|
|
3263
|
+
if (message.credentialExpirationDays !== undefined) {
|
|
3264
|
+
writer.uint32(40).sint64(message.credentialExpirationDays.toString());
|
|
3265
|
+
}
|
|
3266
|
+
if (message.forcedTwoStepVerification !== false) {
|
|
3267
|
+
writer.uint32(48).bool(message.forcedTwoStepVerification);
|
|
3268
|
+
}
|
|
3269
|
+
if (message.googleClientSecret !== undefined) {
|
|
3270
|
+
writer.uint32(58).string(message.googleClientSecret);
|
|
3271
|
+
}
|
|
3272
|
+
if (message.telegramBotToken !== undefined) {
|
|
3273
|
+
writer.uint32(66).string(message.telegramBotToken);
|
|
3274
|
+
}
|
|
3275
|
+
return writer;
|
|
3276
|
+
},
|
|
3277
|
+
decode(input, length) {
|
|
3278
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
3279
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3280
|
+
const message = createBaseConfigResponse_AppSecConfig();
|
|
3281
|
+
while (reader.pos < end) {
|
|
3282
|
+
const tag = reader.uint32();
|
|
3283
|
+
switch (tag >>> 3) {
|
|
3284
|
+
case 1: {
|
|
3285
|
+
if (tag !== 8) {
|
|
3286
|
+
break;
|
|
3287
|
+
}
|
|
3288
|
+
message.maxLogs = Long.fromString(reader.sint64().toString());
|
|
3289
|
+
continue;
|
|
3290
|
+
}
|
|
3291
|
+
case 2: {
|
|
3292
|
+
if (tag !== 16) {
|
|
3293
|
+
break;
|
|
3294
|
+
}
|
|
3295
|
+
message.maxSessions = Long.fromString(reader.sint64().toString());
|
|
3296
|
+
continue;
|
|
3297
|
+
}
|
|
3298
|
+
case 3: {
|
|
3299
|
+
if (tag !== 24) {
|
|
3300
|
+
break;
|
|
3301
|
+
}
|
|
3302
|
+
message.maxOtpTries = Long.fromString(reader.sint64().toString());
|
|
3303
|
+
continue;
|
|
3304
|
+
}
|
|
3305
|
+
case 4: {
|
|
3306
|
+
if (tag !== 32) {
|
|
3307
|
+
break;
|
|
3308
|
+
}
|
|
3309
|
+
message.minPasswordLength = Long.fromString(reader.sint64().toString());
|
|
3310
|
+
continue;
|
|
3311
|
+
}
|
|
3312
|
+
case 5: {
|
|
3313
|
+
if (tag !== 40) {
|
|
3314
|
+
break;
|
|
3315
|
+
}
|
|
3316
|
+
message.credentialExpirationDays = Long.fromString(reader.sint64().toString());
|
|
3317
|
+
continue;
|
|
3318
|
+
}
|
|
3319
|
+
case 6: {
|
|
3320
|
+
if (tag !== 48) {
|
|
3321
|
+
break;
|
|
3322
|
+
}
|
|
3323
|
+
message.forcedTwoStepVerification = reader.bool();
|
|
3324
|
+
continue;
|
|
3325
|
+
}
|
|
3326
|
+
case 7: {
|
|
3327
|
+
if (tag !== 58) {
|
|
3328
|
+
break;
|
|
3329
|
+
}
|
|
3330
|
+
message.googleClientSecret = reader.string();
|
|
3331
|
+
continue;
|
|
3332
|
+
}
|
|
3333
|
+
case 8: {
|
|
3334
|
+
if (tag !== 66) {
|
|
3335
|
+
break;
|
|
3336
|
+
}
|
|
3337
|
+
message.telegramBotToken = reader.string();
|
|
3338
|
+
continue;
|
|
3339
|
+
}
|
|
3340
|
+
}
|
|
3341
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3342
|
+
break;
|
|
3343
|
+
}
|
|
3344
|
+
reader.skip(tag & 7);
|
|
3345
|
+
}
|
|
3346
|
+
return message;
|
|
3347
|
+
},
|
|
3348
|
+
create(base) {
|
|
3349
|
+
return ConfigResponse_AppSecConfig.fromPartial(base ?? {});
|
|
3350
|
+
},
|
|
3351
|
+
fromPartial(object) {
|
|
3352
|
+
const message = createBaseConfigResponse_AppSecConfig();
|
|
3353
|
+
message.maxLogs = (object.maxLogs !== undefined && object.maxLogs !== null)
|
|
3354
|
+
? Long.fromValue(object.maxLogs)
|
|
3355
|
+
: undefined;
|
|
3356
|
+
message.maxSessions = (object.maxSessions !== undefined && object.maxSessions !== null)
|
|
3357
|
+
? Long.fromValue(object.maxSessions)
|
|
3358
|
+
: undefined;
|
|
3359
|
+
message.maxOtpTries = (object.maxOtpTries !== undefined && object.maxOtpTries !== null)
|
|
3360
|
+
? Long.fromValue(object.maxOtpTries)
|
|
3361
|
+
: undefined;
|
|
3362
|
+
message.minPasswordLength = (object.minPasswordLength !== undefined && object.minPasswordLength !== null)
|
|
3363
|
+
? Long.fromValue(object.minPasswordLength)
|
|
3364
|
+
: undefined;
|
|
3365
|
+
message.credentialExpirationDays =
|
|
3366
|
+
(object.credentialExpirationDays !== undefined && object.credentialExpirationDays !== null)
|
|
3367
|
+
? Long.fromValue(object.credentialExpirationDays)
|
|
3368
|
+
: undefined;
|
|
3369
|
+
message.forcedTwoStepVerification = object.forcedTwoStepVerification ?? false;
|
|
3370
|
+
message.googleClientSecret = object.googleClientSecret ?? undefined;
|
|
3371
|
+
message.telegramBotToken = object.telegramBotToken ?? undefined;
|
|
3372
|
+
return message;
|
|
3373
|
+
},
|
|
3374
|
+
};
|
|
3375
|
+
function createBaseUserRequest() {
|
|
3376
|
+
return {
|
|
3377
|
+
disablePagination: false,
|
|
3378
|
+
page: undefined,
|
|
3379
|
+
pageSize: undefined,
|
|
3380
|
+
organizationId: undefined,
|
|
3381
|
+
search: undefined,
|
|
3382
|
+
sort: undefined,
|
|
3383
|
+
order: undefined,
|
|
3384
|
+
queryFilter: {},
|
|
3385
|
+
};
|
|
3386
|
+
}
|
|
3387
|
+
export const UserRequest = {
|
|
3388
|
+
encode(message, writer = new BinaryWriter()) {
|
|
3389
|
+
if (message.disablePagination !== false) {
|
|
3390
|
+
writer.uint32(8).bool(message.disablePagination);
|
|
3391
|
+
}
|
|
3392
|
+
if (message.page !== undefined) {
|
|
3393
|
+
writer.uint32(16).uint32(message.page);
|
|
3394
|
+
}
|
|
3395
|
+
if (message.pageSize !== undefined) {
|
|
3396
|
+
writer.uint32(24).uint32(message.pageSize);
|
|
3397
|
+
}
|
|
3398
|
+
if (message.organizationId !== undefined) {
|
|
3399
|
+
writer.uint32(32).uint64(message.organizationId.toString());
|
|
3400
|
+
}
|
|
3401
|
+
if (message.search !== undefined) {
|
|
3402
|
+
writer.uint32(42).string(message.search);
|
|
3403
|
+
}
|
|
3404
|
+
if (message.sort !== undefined) {
|
|
3405
|
+
writer.uint32(50).string(message.sort);
|
|
3406
|
+
}
|
|
3407
|
+
if (message.order !== undefined) {
|
|
3408
|
+
writer.uint32(58).string(message.order);
|
|
3409
|
+
}
|
|
3410
|
+
globalThis.Object.entries(message.queryFilter).forEach(([key, value]) => {
|
|
3411
|
+
UserRequest_QueryFilterEntry.encode({ key: key, value }, writer.uint32(66).fork()).join();
|
|
3412
|
+
});
|
|
3413
|
+
return writer;
|
|
3414
|
+
},
|
|
3415
|
+
decode(input, length) {
|
|
3416
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
3417
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3418
|
+
const message = createBaseUserRequest();
|
|
3419
|
+
while (reader.pos < end) {
|
|
3420
|
+
const tag = reader.uint32();
|
|
3421
|
+
switch (tag >>> 3) {
|
|
3422
|
+
case 1: {
|
|
3423
|
+
if (tag !== 8) {
|
|
2049
3424
|
break;
|
|
2050
3425
|
}
|
|
2051
|
-
message.
|
|
3426
|
+
message.disablePagination = reader.bool();
|
|
3427
|
+
continue;
|
|
3428
|
+
}
|
|
3429
|
+
case 2: {
|
|
3430
|
+
if (tag !== 16) {
|
|
3431
|
+
break;
|
|
3432
|
+
}
|
|
3433
|
+
message.page = reader.uint32();
|
|
3434
|
+
continue;
|
|
3435
|
+
}
|
|
3436
|
+
case 3: {
|
|
3437
|
+
if (tag !== 24) {
|
|
3438
|
+
break;
|
|
3439
|
+
}
|
|
3440
|
+
message.pageSize = reader.uint32();
|
|
3441
|
+
continue;
|
|
3442
|
+
}
|
|
3443
|
+
case 4: {
|
|
3444
|
+
if (tag !== 32) {
|
|
3445
|
+
break;
|
|
3446
|
+
}
|
|
3447
|
+
message.organizationId = Long.fromString(reader.uint64().toString(), true);
|
|
2052
3448
|
continue;
|
|
2053
3449
|
}
|
|
2054
3450
|
case 5: {
|
|
2055
|
-
if (tag !==
|
|
3451
|
+
if (tag !== 42) {
|
|
2056
3452
|
break;
|
|
2057
3453
|
}
|
|
2058
|
-
message.
|
|
3454
|
+
message.search = reader.string();
|
|
2059
3455
|
continue;
|
|
2060
3456
|
}
|
|
2061
3457
|
case 6: {
|
|
2062
|
-
if (tag !==
|
|
3458
|
+
if (tag !== 50) {
|
|
2063
3459
|
break;
|
|
2064
3460
|
}
|
|
2065
|
-
message.
|
|
3461
|
+
message.sort = reader.string();
|
|
2066
3462
|
continue;
|
|
2067
3463
|
}
|
|
2068
3464
|
case 7: {
|
|
2069
3465
|
if (tag !== 58) {
|
|
2070
3466
|
break;
|
|
2071
3467
|
}
|
|
2072
|
-
message.
|
|
3468
|
+
message.order = reader.string();
|
|
2073
3469
|
continue;
|
|
2074
3470
|
}
|
|
2075
3471
|
case 8: {
|
|
2076
3472
|
if (tag !== 66) {
|
|
2077
3473
|
break;
|
|
2078
3474
|
}
|
|
2079
|
-
|
|
3475
|
+
const entry8 = UserRequest_QueryFilterEntry.decode(reader, reader.uint32());
|
|
3476
|
+
if (entry8.value !== undefined) {
|
|
3477
|
+
message.queryFilter[entry8.key] = entry8.value;
|
|
3478
|
+
}
|
|
2080
3479
|
continue;
|
|
2081
3480
|
}
|
|
2082
3481
|
}
|
|
@@ -2088,45 +3487,215 @@ export const ConfigResponse_AppSecConfig = {
|
|
|
2088
3487
|
return message;
|
|
2089
3488
|
},
|
|
2090
3489
|
create(base) {
|
|
2091
|
-
return
|
|
3490
|
+
return UserRequest.fromPartial(base ?? {});
|
|
2092
3491
|
},
|
|
2093
3492
|
fromPartial(object) {
|
|
2094
|
-
const message =
|
|
2095
|
-
message.
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
message.
|
|
2099
|
-
? Long.fromValue(object.
|
|
2100
|
-
: undefined;
|
|
2101
|
-
message.maxOtpTries = (object.maxOtpTries !== undefined && object.maxOtpTries !== null)
|
|
2102
|
-
? Long.fromValue(object.maxOtpTries)
|
|
3493
|
+
const message = createBaseUserRequest();
|
|
3494
|
+
message.disablePagination = object.disablePagination ?? false;
|
|
3495
|
+
message.page = object.page ?? undefined;
|
|
3496
|
+
message.pageSize = object.pageSize ?? undefined;
|
|
3497
|
+
message.organizationId = (object.organizationId !== undefined && object.organizationId !== null)
|
|
3498
|
+
? Long.fromValue(object.organizationId)
|
|
2103
3499
|
: undefined;
|
|
2104
|
-
message.
|
|
2105
|
-
|
|
3500
|
+
message.search = object.search ?? undefined;
|
|
3501
|
+
message.sort = object.sort ?? undefined;
|
|
3502
|
+
message.order = object.order ?? undefined;
|
|
3503
|
+
message.queryFilter = globalThis.Object.entries(object.queryFilter ?? {}).reduce((acc, [key, value]) => {
|
|
3504
|
+
if (value !== undefined) {
|
|
3505
|
+
acc[key] = FilterScope.fromPartial(value);
|
|
3506
|
+
}
|
|
3507
|
+
return acc;
|
|
3508
|
+
}, {});
|
|
3509
|
+
return message;
|
|
3510
|
+
},
|
|
3511
|
+
};
|
|
3512
|
+
function createBaseUserRequest_QueryFilterEntry() {
|
|
3513
|
+
return { key: "", value: undefined };
|
|
3514
|
+
}
|
|
3515
|
+
export const UserRequest_QueryFilterEntry = {
|
|
3516
|
+
encode(message, writer = new BinaryWriter()) {
|
|
3517
|
+
if (message.key !== "") {
|
|
3518
|
+
writer.uint32(10).string(message.key);
|
|
3519
|
+
}
|
|
3520
|
+
if (message.value !== undefined) {
|
|
3521
|
+
FilterScope.encode(message.value, writer.uint32(18).fork()).join();
|
|
3522
|
+
}
|
|
3523
|
+
return writer;
|
|
3524
|
+
},
|
|
3525
|
+
decode(input, length) {
|
|
3526
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
3527
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3528
|
+
const message = createBaseUserRequest_QueryFilterEntry();
|
|
3529
|
+
while (reader.pos < end) {
|
|
3530
|
+
const tag = reader.uint32();
|
|
3531
|
+
switch (tag >>> 3) {
|
|
3532
|
+
case 1: {
|
|
3533
|
+
if (tag !== 10) {
|
|
3534
|
+
break;
|
|
3535
|
+
}
|
|
3536
|
+
message.key = reader.string();
|
|
3537
|
+
continue;
|
|
3538
|
+
}
|
|
3539
|
+
case 2: {
|
|
3540
|
+
if (tag !== 18) {
|
|
3541
|
+
break;
|
|
3542
|
+
}
|
|
3543
|
+
message.value = FilterScope.decode(reader, reader.uint32());
|
|
3544
|
+
continue;
|
|
3545
|
+
}
|
|
3546
|
+
}
|
|
3547
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3548
|
+
break;
|
|
3549
|
+
}
|
|
3550
|
+
reader.skip(tag & 7);
|
|
3551
|
+
}
|
|
3552
|
+
return message;
|
|
3553
|
+
},
|
|
3554
|
+
create(base) {
|
|
3555
|
+
return UserRequest_QueryFilterEntry.fromPartial(base ?? {});
|
|
3556
|
+
},
|
|
3557
|
+
fromPartial(object) {
|
|
3558
|
+
const message = createBaseUserRequest_QueryFilterEntry();
|
|
3559
|
+
message.key = object.key ?? "";
|
|
3560
|
+
message.value = (object.value !== undefined && object.value !== null)
|
|
3561
|
+
? FilterScope.fromPartial(object.value)
|
|
2106
3562
|
: undefined;
|
|
2107
|
-
message.credentialExpirationDays =
|
|
2108
|
-
(object.credentialExpirationDays !== undefined && object.credentialExpirationDays !== null)
|
|
2109
|
-
? Long.fromValue(object.credentialExpirationDays)
|
|
2110
|
-
: undefined;
|
|
2111
|
-
message.forcedTwoStepVerification = object.forcedTwoStepVerification ?? false;
|
|
2112
|
-
message.googleClientSecret = object.googleClientSecret ?? undefined;
|
|
2113
|
-
message.telegramBotToken = object.telegramBotToken ?? undefined;
|
|
2114
3563
|
return message;
|
|
2115
3564
|
},
|
|
2116
3565
|
};
|
|
2117
|
-
function
|
|
3566
|
+
function createBaseUserResponse() {
|
|
3567
|
+
return { currentPage: 0, from: 0, to: 0, lastPage: 0, perPage: 0, cost: Long.ZERO, total: 0, data: [] };
|
|
3568
|
+
}
|
|
3569
|
+
export const UserResponse = {
|
|
3570
|
+
encode(message, writer = new BinaryWriter()) {
|
|
3571
|
+
if (message.currentPage !== 0) {
|
|
3572
|
+
writer.uint32(8).uint32(message.currentPage);
|
|
3573
|
+
}
|
|
3574
|
+
if (message.from !== 0) {
|
|
3575
|
+
writer.uint32(16).uint32(message.from);
|
|
3576
|
+
}
|
|
3577
|
+
if (message.to !== 0) {
|
|
3578
|
+
writer.uint32(24).uint32(message.to);
|
|
3579
|
+
}
|
|
3580
|
+
if (message.lastPage !== 0) {
|
|
3581
|
+
writer.uint32(32).uint32(message.lastPage);
|
|
3582
|
+
}
|
|
3583
|
+
if (message.perPage !== 0) {
|
|
3584
|
+
writer.uint32(40).uint32(message.perPage);
|
|
3585
|
+
}
|
|
3586
|
+
if (!message.cost.equals(Long.ZERO)) {
|
|
3587
|
+
writer.uint32(48).sint64(message.cost.toString());
|
|
3588
|
+
}
|
|
3589
|
+
if (message.total !== 0) {
|
|
3590
|
+
writer.uint32(56).uint32(message.total);
|
|
3591
|
+
}
|
|
3592
|
+
for (const v of message.data) {
|
|
3593
|
+
UserRepo.encode(v, writer.uint32(66).fork()).join();
|
|
3594
|
+
}
|
|
3595
|
+
return writer;
|
|
3596
|
+
},
|
|
3597
|
+
decode(input, length) {
|
|
3598
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
3599
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3600
|
+
const message = createBaseUserResponse();
|
|
3601
|
+
while (reader.pos < end) {
|
|
3602
|
+
const tag = reader.uint32();
|
|
3603
|
+
switch (tag >>> 3) {
|
|
3604
|
+
case 1: {
|
|
3605
|
+
if (tag !== 8) {
|
|
3606
|
+
break;
|
|
3607
|
+
}
|
|
3608
|
+
message.currentPage = reader.uint32();
|
|
3609
|
+
continue;
|
|
3610
|
+
}
|
|
3611
|
+
case 2: {
|
|
3612
|
+
if (tag !== 16) {
|
|
3613
|
+
break;
|
|
3614
|
+
}
|
|
3615
|
+
message.from = reader.uint32();
|
|
3616
|
+
continue;
|
|
3617
|
+
}
|
|
3618
|
+
case 3: {
|
|
3619
|
+
if (tag !== 24) {
|
|
3620
|
+
break;
|
|
3621
|
+
}
|
|
3622
|
+
message.to = reader.uint32();
|
|
3623
|
+
continue;
|
|
3624
|
+
}
|
|
3625
|
+
case 4: {
|
|
3626
|
+
if (tag !== 32) {
|
|
3627
|
+
break;
|
|
3628
|
+
}
|
|
3629
|
+
message.lastPage = reader.uint32();
|
|
3630
|
+
continue;
|
|
3631
|
+
}
|
|
3632
|
+
case 5: {
|
|
3633
|
+
if (tag !== 40) {
|
|
3634
|
+
break;
|
|
3635
|
+
}
|
|
3636
|
+
message.perPage = reader.uint32();
|
|
3637
|
+
continue;
|
|
3638
|
+
}
|
|
3639
|
+
case 6: {
|
|
3640
|
+
if (tag !== 48) {
|
|
3641
|
+
break;
|
|
3642
|
+
}
|
|
3643
|
+
message.cost = Long.fromString(reader.sint64().toString());
|
|
3644
|
+
continue;
|
|
3645
|
+
}
|
|
3646
|
+
case 7: {
|
|
3647
|
+
if (tag !== 56) {
|
|
3648
|
+
break;
|
|
3649
|
+
}
|
|
3650
|
+
message.total = reader.uint32();
|
|
3651
|
+
continue;
|
|
3652
|
+
}
|
|
3653
|
+
case 8: {
|
|
3654
|
+
if (tag !== 66) {
|
|
3655
|
+
break;
|
|
3656
|
+
}
|
|
3657
|
+
message.data.push(UserRepo.decode(reader, reader.uint32()));
|
|
3658
|
+
continue;
|
|
3659
|
+
}
|
|
3660
|
+
}
|
|
3661
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3662
|
+
break;
|
|
3663
|
+
}
|
|
3664
|
+
reader.skip(tag & 7);
|
|
3665
|
+
}
|
|
3666
|
+
return message;
|
|
3667
|
+
},
|
|
3668
|
+
create(base) {
|
|
3669
|
+
return UserResponse.fromPartial(base ?? {});
|
|
3670
|
+
},
|
|
3671
|
+
fromPartial(object) {
|
|
3672
|
+
const message = createBaseUserResponse();
|
|
3673
|
+
message.currentPage = object.currentPage ?? 0;
|
|
3674
|
+
message.from = object.from ?? 0;
|
|
3675
|
+
message.to = object.to ?? 0;
|
|
3676
|
+
message.lastPage = object.lastPage ?? 0;
|
|
3677
|
+
message.perPage = object.perPage ?? 0;
|
|
3678
|
+
message.cost = (object.cost !== undefined && object.cost !== null) ? Long.fromValue(object.cost) : Long.ZERO;
|
|
3679
|
+
message.total = object.total ?? 0;
|
|
3680
|
+
message.data = object.data?.map((e) => UserRepo.fromPartial(e)) || [];
|
|
3681
|
+
return message;
|
|
3682
|
+
},
|
|
3683
|
+
};
|
|
3684
|
+
function createBaseDeviceRequest() {
|
|
2118
3685
|
return {
|
|
2119
3686
|
disablePagination: false,
|
|
2120
3687
|
page: undefined,
|
|
2121
3688
|
pageSize: undefined,
|
|
2122
3689
|
organizationId: undefined,
|
|
3690
|
+
trackerId: undefined,
|
|
2123
3691
|
search: undefined,
|
|
3692
|
+
includeDeviceStatus: false,
|
|
3693
|
+
queryFilter: {},
|
|
2124
3694
|
sort: undefined,
|
|
2125
3695
|
order: undefined,
|
|
2126
|
-
queryFilter: {},
|
|
2127
3696
|
};
|
|
2128
3697
|
}
|
|
2129
|
-
export const
|
|
3698
|
+
export const DeviceRequest = {
|
|
2130
3699
|
encode(message, writer = new BinaryWriter()) {
|
|
2131
3700
|
if (message.disablePagination !== false) {
|
|
2132
3701
|
writer.uint32(8).bool(message.disablePagination);
|
|
@@ -2140,24 +3709,30 @@ export const UserRequest = {
|
|
|
2140
3709
|
if (message.organizationId !== undefined) {
|
|
2141
3710
|
writer.uint32(32).uint64(message.organizationId.toString());
|
|
2142
3711
|
}
|
|
3712
|
+
if (message.trackerId !== undefined) {
|
|
3713
|
+
writer.uint32(40).uint64(message.trackerId.toString());
|
|
3714
|
+
}
|
|
2143
3715
|
if (message.search !== undefined) {
|
|
2144
|
-
writer.uint32(
|
|
3716
|
+
writer.uint32(50).string(message.search);
|
|
3717
|
+
}
|
|
3718
|
+
if (message.includeDeviceStatus !== false) {
|
|
3719
|
+
writer.uint32(56).bool(message.includeDeviceStatus);
|
|
2145
3720
|
}
|
|
3721
|
+
globalThis.Object.entries(message.queryFilter).forEach(([key, value]) => {
|
|
3722
|
+
DeviceRequest_QueryFilterEntry.encode({ key: key, value }, writer.uint32(66).fork()).join();
|
|
3723
|
+
});
|
|
2146
3724
|
if (message.sort !== undefined) {
|
|
2147
|
-
writer.uint32(
|
|
3725
|
+
writer.uint32(74).string(message.sort);
|
|
2148
3726
|
}
|
|
2149
3727
|
if (message.order !== undefined) {
|
|
2150
|
-
writer.uint32(
|
|
3728
|
+
writer.uint32(82).string(message.order);
|
|
2151
3729
|
}
|
|
2152
|
-
globalThis.Object.entries(message.queryFilter).forEach(([key, value]) => {
|
|
2153
|
-
UserRequest_QueryFilterEntry.encode({ key: key, value }, writer.uint32(66).fork()).join();
|
|
2154
|
-
});
|
|
2155
3730
|
return writer;
|
|
2156
3731
|
},
|
|
2157
3732
|
decode(input, length) {
|
|
2158
3733
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2159
3734
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2160
|
-
const message =
|
|
3735
|
+
const message = createBaseDeviceRequest();
|
|
2161
3736
|
while (reader.pos < end) {
|
|
2162
3737
|
const tag = reader.uint32();
|
|
2163
3738
|
switch (tag >>> 3) {
|
|
@@ -2190,36 +3765,50 @@ export const UserRequest = {
|
|
|
2190
3765
|
continue;
|
|
2191
3766
|
}
|
|
2192
3767
|
case 5: {
|
|
2193
|
-
if (tag !==
|
|
3768
|
+
if (tag !== 40) {
|
|
2194
3769
|
break;
|
|
2195
3770
|
}
|
|
2196
|
-
message.
|
|
3771
|
+
message.trackerId = Long.fromString(reader.uint64().toString(), true);
|
|
2197
3772
|
continue;
|
|
2198
3773
|
}
|
|
2199
3774
|
case 6: {
|
|
2200
3775
|
if (tag !== 50) {
|
|
2201
3776
|
break;
|
|
2202
3777
|
}
|
|
2203
|
-
message.
|
|
3778
|
+
message.search = reader.string();
|
|
2204
3779
|
continue;
|
|
2205
3780
|
}
|
|
2206
3781
|
case 7: {
|
|
2207
|
-
if (tag !==
|
|
3782
|
+
if (tag !== 56) {
|
|
2208
3783
|
break;
|
|
2209
3784
|
}
|
|
2210
|
-
message.
|
|
3785
|
+
message.includeDeviceStatus = reader.bool();
|
|
2211
3786
|
continue;
|
|
2212
3787
|
}
|
|
2213
3788
|
case 8: {
|
|
2214
3789
|
if (tag !== 66) {
|
|
2215
3790
|
break;
|
|
2216
3791
|
}
|
|
2217
|
-
const entry8 =
|
|
3792
|
+
const entry8 = DeviceRequest_QueryFilterEntry.decode(reader, reader.uint32());
|
|
2218
3793
|
if (entry8.value !== undefined) {
|
|
2219
3794
|
message.queryFilter[entry8.key] = entry8.value;
|
|
2220
3795
|
}
|
|
2221
3796
|
continue;
|
|
2222
3797
|
}
|
|
3798
|
+
case 9: {
|
|
3799
|
+
if (tag !== 74) {
|
|
3800
|
+
break;
|
|
3801
|
+
}
|
|
3802
|
+
message.sort = reader.string();
|
|
3803
|
+
continue;
|
|
3804
|
+
}
|
|
3805
|
+
case 10: {
|
|
3806
|
+
if (tag !== 82) {
|
|
3807
|
+
break;
|
|
3808
|
+
}
|
|
3809
|
+
message.order = reader.string();
|
|
3810
|
+
continue;
|
|
3811
|
+
}
|
|
2223
3812
|
}
|
|
2224
3813
|
if ((tag & 7) === 4 || tag === 0) {
|
|
2225
3814
|
break;
|
|
@@ -2229,32 +3818,36 @@ export const UserRequest = {
|
|
|
2229
3818
|
return message;
|
|
2230
3819
|
},
|
|
2231
3820
|
create(base) {
|
|
2232
|
-
return
|
|
3821
|
+
return DeviceRequest.fromPartial(base ?? {});
|
|
2233
3822
|
},
|
|
2234
3823
|
fromPartial(object) {
|
|
2235
|
-
const message =
|
|
3824
|
+
const message = createBaseDeviceRequest();
|
|
2236
3825
|
message.disablePagination = object.disablePagination ?? false;
|
|
2237
3826
|
message.page = object.page ?? undefined;
|
|
2238
3827
|
message.pageSize = object.pageSize ?? undefined;
|
|
2239
3828
|
message.organizationId = (object.organizationId !== undefined && object.organizationId !== null)
|
|
2240
3829
|
? Long.fromValue(object.organizationId)
|
|
2241
3830
|
: undefined;
|
|
3831
|
+
message.trackerId = (object.trackerId !== undefined && object.trackerId !== null)
|
|
3832
|
+
? Long.fromValue(object.trackerId)
|
|
3833
|
+
: undefined;
|
|
2242
3834
|
message.search = object.search ?? undefined;
|
|
2243
|
-
message.
|
|
2244
|
-
message.order = object.order ?? undefined;
|
|
3835
|
+
message.includeDeviceStatus = object.includeDeviceStatus ?? false;
|
|
2245
3836
|
message.queryFilter = globalThis.Object.entries(object.queryFilter ?? {}).reduce((acc, [key, value]) => {
|
|
2246
3837
|
if (value !== undefined) {
|
|
2247
3838
|
acc[key] = FilterScope.fromPartial(value);
|
|
2248
3839
|
}
|
|
2249
3840
|
return acc;
|
|
2250
3841
|
}, {});
|
|
3842
|
+
message.sort = object.sort ?? undefined;
|
|
3843
|
+
message.order = object.order ?? undefined;
|
|
2251
3844
|
return message;
|
|
2252
3845
|
},
|
|
2253
3846
|
};
|
|
2254
|
-
function
|
|
3847
|
+
function createBaseDeviceRequest_QueryFilterEntry() {
|
|
2255
3848
|
return { key: "", value: undefined };
|
|
2256
3849
|
}
|
|
2257
|
-
export const
|
|
3850
|
+
export const DeviceRequest_QueryFilterEntry = {
|
|
2258
3851
|
encode(message, writer = new BinaryWriter()) {
|
|
2259
3852
|
if (message.key !== "") {
|
|
2260
3853
|
writer.uint32(10).string(message.key);
|
|
@@ -2267,7 +3860,7 @@ export const UserRequest_QueryFilterEntry = {
|
|
|
2267
3860
|
decode(input, length) {
|
|
2268
3861
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2269
3862
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2270
|
-
const message =
|
|
3863
|
+
const message = createBaseDeviceRequest_QueryFilterEntry();
|
|
2271
3864
|
while (reader.pos < end) {
|
|
2272
3865
|
const tag = reader.uint32();
|
|
2273
3866
|
switch (tag >>> 3) {
|
|
@@ -2294,10 +3887,10 @@ export const UserRequest_QueryFilterEntry = {
|
|
|
2294
3887
|
return message;
|
|
2295
3888
|
},
|
|
2296
3889
|
create(base) {
|
|
2297
|
-
return
|
|
3890
|
+
return DeviceRequest_QueryFilterEntry.fromPartial(base ?? {});
|
|
2298
3891
|
},
|
|
2299
3892
|
fromPartial(object) {
|
|
2300
|
-
const message =
|
|
3893
|
+
const message = createBaseDeviceRequest_QueryFilterEntry();
|
|
2301
3894
|
message.key = object.key ?? "";
|
|
2302
3895
|
message.value = (object.value !== undefined && object.value !== null)
|
|
2303
3896
|
? FilterScope.fromPartial(object.value)
|
|
@@ -2305,10 +3898,10 @@ export const UserRequest_QueryFilterEntry = {
|
|
|
2305
3898
|
return message;
|
|
2306
3899
|
},
|
|
2307
3900
|
};
|
|
2308
|
-
function
|
|
3901
|
+
function createBaseDeviceResponse() {
|
|
2309
3902
|
return { currentPage: 0, from: 0, to: 0, lastPage: 0, perPage: 0, cost: Long.ZERO, total: 0, data: [] };
|
|
2310
3903
|
}
|
|
2311
|
-
export const
|
|
3904
|
+
export const DeviceResponse = {
|
|
2312
3905
|
encode(message, writer = new BinaryWriter()) {
|
|
2313
3906
|
if (message.currentPage !== 0) {
|
|
2314
3907
|
writer.uint32(8).uint32(message.currentPage);
|
|
@@ -2332,14 +3925,14 @@ export const UserResponse = {
|
|
|
2332
3925
|
writer.uint32(56).uint32(message.total);
|
|
2333
3926
|
}
|
|
2334
3927
|
for (const v of message.data) {
|
|
2335
|
-
|
|
3928
|
+
DeviceRepo.encode(v, writer.uint32(66).fork()).join();
|
|
2336
3929
|
}
|
|
2337
3930
|
return writer;
|
|
2338
3931
|
},
|
|
2339
3932
|
decode(input, length) {
|
|
2340
3933
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2341
3934
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2342
|
-
const message =
|
|
3935
|
+
const message = createBaseDeviceResponse();
|
|
2343
3936
|
while (reader.pos < end) {
|
|
2344
3937
|
const tag = reader.uint32();
|
|
2345
3938
|
switch (tag >>> 3) {
|
|
@@ -2396,7 +3989,7 @@ export const UserResponse = {
|
|
|
2396
3989
|
if (tag !== 66) {
|
|
2397
3990
|
break;
|
|
2398
3991
|
}
|
|
2399
|
-
message.data.push(
|
|
3992
|
+
message.data.push(DeviceRepo.decode(reader, reader.uint32()));
|
|
2400
3993
|
continue;
|
|
2401
3994
|
}
|
|
2402
3995
|
}
|
|
@@ -2408,10 +4001,10 @@ export const UserResponse = {
|
|
|
2408
4001
|
return message;
|
|
2409
4002
|
},
|
|
2410
4003
|
create(base) {
|
|
2411
|
-
return
|
|
4004
|
+
return DeviceResponse.fromPartial(base ?? {});
|
|
2412
4005
|
},
|
|
2413
4006
|
fromPartial(object) {
|
|
2414
|
-
const message =
|
|
4007
|
+
const message = createBaseDeviceResponse();
|
|
2415
4008
|
message.currentPage = object.currentPage ?? 0;
|
|
2416
4009
|
message.from = object.from ?? 0;
|
|
2417
4010
|
message.to = object.to ?? 0;
|
|
@@ -2419,25 +4012,29 @@ export const UserResponse = {
|
|
|
2419
4012
|
message.perPage = object.perPage ?? 0;
|
|
2420
4013
|
message.cost = (object.cost !== undefined && object.cost !== null) ? Long.fromValue(object.cost) : Long.ZERO;
|
|
2421
4014
|
message.total = object.total ?? 0;
|
|
2422
|
-
message.data = object.data?.map((e) =>
|
|
4015
|
+
message.data = object.data?.map((e) => DeviceRepo.fromPartial(e)) || [];
|
|
2423
4016
|
return message;
|
|
2424
4017
|
},
|
|
2425
4018
|
};
|
|
2426
|
-
function
|
|
4019
|
+
function createBaseRahdariDeviceRequest() {
|
|
2427
4020
|
return {
|
|
2428
4021
|
disablePagination: false,
|
|
2429
4022
|
page: undefined,
|
|
2430
4023
|
pageSize: undefined,
|
|
2431
4024
|
organizationId: undefined,
|
|
2432
|
-
trackerId: undefined,
|
|
2433
4025
|
search: undefined,
|
|
2434
4026
|
includeDeviceStatus: false,
|
|
2435
4027
|
queryFilter: {},
|
|
2436
4028
|
sort: undefined,
|
|
2437
4029
|
order: undefined,
|
|
4030
|
+
validityStatus: undefined,
|
|
4031
|
+
incompleteOnly: undefined,
|
|
4032
|
+
liveLocationStatus: undefined,
|
|
4033
|
+
includeStats: false,
|
|
4034
|
+
statsOnly: false,
|
|
2438
4035
|
};
|
|
2439
4036
|
}
|
|
2440
|
-
export const
|
|
4037
|
+
export const RahdariDeviceRequest = {
|
|
2441
4038
|
encode(message, writer = new BinaryWriter()) {
|
|
2442
4039
|
if (message.disablePagination !== false) {
|
|
2443
4040
|
writer.uint32(8).bool(message.disablePagination);
|
|
@@ -2451,30 +4048,42 @@ export const DeviceRequest = {
|
|
|
2451
4048
|
if (message.organizationId !== undefined) {
|
|
2452
4049
|
writer.uint32(32).uint64(message.organizationId.toString());
|
|
2453
4050
|
}
|
|
2454
|
-
if (message.trackerId !== undefined) {
|
|
2455
|
-
writer.uint32(40).uint64(message.trackerId.toString());
|
|
2456
|
-
}
|
|
2457
4051
|
if (message.search !== undefined) {
|
|
2458
|
-
writer.uint32(
|
|
4052
|
+
writer.uint32(42).string(message.search);
|
|
2459
4053
|
}
|
|
2460
4054
|
if (message.includeDeviceStatus !== false) {
|
|
2461
|
-
writer.uint32(
|
|
4055
|
+
writer.uint32(48).bool(message.includeDeviceStatus);
|
|
2462
4056
|
}
|
|
2463
4057
|
globalThis.Object.entries(message.queryFilter).forEach(([key, value]) => {
|
|
2464
|
-
|
|
4058
|
+
RahdariDeviceRequest_QueryFilterEntry.encode({ key: key, value }, writer.uint32(58).fork()).join();
|
|
2465
4059
|
});
|
|
2466
4060
|
if (message.sort !== undefined) {
|
|
2467
|
-
writer.uint32(
|
|
4061
|
+
writer.uint32(66).string(message.sort);
|
|
2468
4062
|
}
|
|
2469
4063
|
if (message.order !== undefined) {
|
|
2470
|
-
writer.uint32(
|
|
4064
|
+
writer.uint32(74).string(message.order);
|
|
4065
|
+
}
|
|
4066
|
+
if (message.validityStatus !== undefined) {
|
|
4067
|
+
writer.uint32(82).string(message.validityStatus);
|
|
4068
|
+
}
|
|
4069
|
+
if (message.incompleteOnly !== undefined) {
|
|
4070
|
+
writer.uint32(88).bool(message.incompleteOnly);
|
|
4071
|
+
}
|
|
4072
|
+
if (message.liveLocationStatus !== undefined) {
|
|
4073
|
+
writer.uint32(98).string(message.liveLocationStatus);
|
|
4074
|
+
}
|
|
4075
|
+
if (message.includeStats !== false) {
|
|
4076
|
+
writer.uint32(104).bool(message.includeStats);
|
|
4077
|
+
}
|
|
4078
|
+
if (message.statsOnly !== false) {
|
|
4079
|
+
writer.uint32(112).bool(message.statsOnly);
|
|
2471
4080
|
}
|
|
2472
4081
|
return writer;
|
|
2473
4082
|
},
|
|
2474
4083
|
decode(input, length) {
|
|
2475
4084
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2476
4085
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2477
|
-
const message =
|
|
4086
|
+
const message = createBaseRahdariDeviceRequest();
|
|
2478
4087
|
while (reader.pos < end) {
|
|
2479
4088
|
const tag = reader.uint32();
|
|
2480
4089
|
switch (tag >>> 3) {
|
|
@@ -2507,48 +4116,76 @@ export const DeviceRequest = {
|
|
|
2507
4116
|
continue;
|
|
2508
4117
|
}
|
|
2509
4118
|
case 5: {
|
|
2510
|
-
if (tag !==
|
|
4119
|
+
if (tag !== 42) {
|
|
2511
4120
|
break;
|
|
2512
4121
|
}
|
|
2513
|
-
message.
|
|
4122
|
+
message.search = reader.string();
|
|
2514
4123
|
continue;
|
|
2515
4124
|
}
|
|
2516
4125
|
case 6: {
|
|
2517
|
-
if (tag !==
|
|
4126
|
+
if (tag !== 48) {
|
|
2518
4127
|
break;
|
|
2519
4128
|
}
|
|
2520
|
-
message.
|
|
4129
|
+
message.includeDeviceStatus = reader.bool();
|
|
2521
4130
|
continue;
|
|
2522
4131
|
}
|
|
2523
4132
|
case 7: {
|
|
2524
|
-
if (tag !==
|
|
4133
|
+
if (tag !== 58) {
|
|
2525
4134
|
break;
|
|
2526
4135
|
}
|
|
2527
|
-
|
|
4136
|
+
const entry7 = RahdariDeviceRequest_QueryFilterEntry.decode(reader, reader.uint32());
|
|
4137
|
+
if (entry7.value !== undefined) {
|
|
4138
|
+
message.queryFilter[entry7.key] = entry7.value;
|
|
4139
|
+
}
|
|
2528
4140
|
continue;
|
|
2529
4141
|
}
|
|
2530
4142
|
case 8: {
|
|
2531
4143
|
if (tag !== 66) {
|
|
2532
4144
|
break;
|
|
2533
4145
|
}
|
|
2534
|
-
|
|
2535
|
-
if (entry8.value !== undefined) {
|
|
2536
|
-
message.queryFilter[entry8.key] = entry8.value;
|
|
2537
|
-
}
|
|
4146
|
+
message.sort = reader.string();
|
|
2538
4147
|
continue;
|
|
2539
4148
|
}
|
|
2540
4149
|
case 9: {
|
|
2541
4150
|
if (tag !== 74) {
|
|
2542
4151
|
break;
|
|
2543
4152
|
}
|
|
2544
|
-
message.
|
|
4153
|
+
message.order = reader.string();
|
|
2545
4154
|
continue;
|
|
2546
4155
|
}
|
|
2547
4156
|
case 10: {
|
|
2548
4157
|
if (tag !== 82) {
|
|
2549
4158
|
break;
|
|
2550
4159
|
}
|
|
2551
|
-
message.
|
|
4160
|
+
message.validityStatus = reader.string();
|
|
4161
|
+
continue;
|
|
4162
|
+
}
|
|
4163
|
+
case 11: {
|
|
4164
|
+
if (tag !== 88) {
|
|
4165
|
+
break;
|
|
4166
|
+
}
|
|
4167
|
+
message.incompleteOnly = reader.bool();
|
|
4168
|
+
continue;
|
|
4169
|
+
}
|
|
4170
|
+
case 12: {
|
|
4171
|
+
if (tag !== 98) {
|
|
4172
|
+
break;
|
|
4173
|
+
}
|
|
4174
|
+
message.liveLocationStatus = reader.string();
|
|
4175
|
+
continue;
|
|
4176
|
+
}
|
|
4177
|
+
case 13: {
|
|
4178
|
+
if (tag !== 104) {
|
|
4179
|
+
break;
|
|
4180
|
+
}
|
|
4181
|
+
message.includeStats = reader.bool();
|
|
4182
|
+
continue;
|
|
4183
|
+
}
|
|
4184
|
+
case 14: {
|
|
4185
|
+
if (tag !== 112) {
|
|
4186
|
+
break;
|
|
4187
|
+
}
|
|
4188
|
+
message.statsOnly = reader.bool();
|
|
2552
4189
|
continue;
|
|
2553
4190
|
}
|
|
2554
4191
|
}
|
|
@@ -2560,19 +4197,16 @@ export const DeviceRequest = {
|
|
|
2560
4197
|
return message;
|
|
2561
4198
|
},
|
|
2562
4199
|
create(base) {
|
|
2563
|
-
return
|
|
4200
|
+
return RahdariDeviceRequest.fromPartial(base ?? {});
|
|
2564
4201
|
},
|
|
2565
4202
|
fromPartial(object) {
|
|
2566
|
-
const message =
|
|
4203
|
+
const message = createBaseRahdariDeviceRequest();
|
|
2567
4204
|
message.disablePagination = object.disablePagination ?? false;
|
|
2568
4205
|
message.page = object.page ?? undefined;
|
|
2569
4206
|
message.pageSize = object.pageSize ?? undefined;
|
|
2570
4207
|
message.organizationId = (object.organizationId !== undefined && object.organizationId !== null)
|
|
2571
4208
|
? Long.fromValue(object.organizationId)
|
|
2572
4209
|
: undefined;
|
|
2573
|
-
message.trackerId = (object.trackerId !== undefined && object.trackerId !== null)
|
|
2574
|
-
? Long.fromValue(object.trackerId)
|
|
2575
|
-
: undefined;
|
|
2576
4210
|
message.search = object.search ?? undefined;
|
|
2577
4211
|
message.includeDeviceStatus = object.includeDeviceStatus ?? false;
|
|
2578
4212
|
message.queryFilter = globalThis.Object.entries(object.queryFilter ?? {}).reduce((acc, [key, value]) => {
|
|
@@ -2583,13 +4217,18 @@ export const DeviceRequest = {
|
|
|
2583
4217
|
}, {});
|
|
2584
4218
|
message.sort = object.sort ?? undefined;
|
|
2585
4219
|
message.order = object.order ?? undefined;
|
|
4220
|
+
message.validityStatus = object.validityStatus ?? undefined;
|
|
4221
|
+
message.incompleteOnly = object.incompleteOnly ?? undefined;
|
|
4222
|
+
message.liveLocationStatus = object.liveLocationStatus ?? undefined;
|
|
4223
|
+
message.includeStats = object.includeStats ?? false;
|
|
4224
|
+
message.statsOnly = object.statsOnly ?? false;
|
|
2586
4225
|
return message;
|
|
2587
4226
|
},
|
|
2588
4227
|
};
|
|
2589
|
-
function
|
|
4228
|
+
function createBaseRahdariDeviceRequest_QueryFilterEntry() {
|
|
2590
4229
|
return { key: "", value: undefined };
|
|
2591
4230
|
}
|
|
2592
|
-
export const
|
|
4231
|
+
export const RahdariDeviceRequest_QueryFilterEntry = {
|
|
2593
4232
|
encode(message, writer = new BinaryWriter()) {
|
|
2594
4233
|
if (message.key !== "") {
|
|
2595
4234
|
writer.uint32(10).string(message.key);
|
|
@@ -2602,7 +4241,7 @@ export const DeviceRequest_QueryFilterEntry = {
|
|
|
2602
4241
|
decode(input, length) {
|
|
2603
4242
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2604
4243
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2605
|
-
const message =
|
|
4244
|
+
const message = createBaseRahdariDeviceRequest_QueryFilterEntry();
|
|
2606
4245
|
while (reader.pos < end) {
|
|
2607
4246
|
const tag = reader.uint32();
|
|
2608
4247
|
switch (tag >>> 3) {
|
|
@@ -2629,10 +4268,10 @@ export const DeviceRequest_QueryFilterEntry = {
|
|
|
2629
4268
|
return message;
|
|
2630
4269
|
},
|
|
2631
4270
|
create(base) {
|
|
2632
|
-
return
|
|
4271
|
+
return RahdariDeviceRequest_QueryFilterEntry.fromPartial(base ?? {});
|
|
2633
4272
|
},
|
|
2634
4273
|
fromPartial(object) {
|
|
2635
|
-
const message =
|
|
4274
|
+
const message = createBaseRahdariDeviceRequest_QueryFilterEntry();
|
|
2636
4275
|
message.key = object.key ?? "";
|
|
2637
4276
|
message.value = (object.value !== undefined && object.value !== null)
|
|
2638
4277
|
? FilterScope.fromPartial(object.value)
|
|
@@ -2640,10 +4279,127 @@ export const DeviceRequest_QueryFilterEntry = {
|
|
|
2640
4279
|
return message;
|
|
2641
4280
|
},
|
|
2642
4281
|
};
|
|
2643
|
-
function
|
|
2644
|
-
return {
|
|
4282
|
+
function createBaseRahdariStats() {
|
|
4283
|
+
return { total: 0, active: 0, expiringSoon: 0, expired: 0, enabled: 0, incomplete: 0, liveLocation10m: 0 };
|
|
2645
4284
|
}
|
|
2646
|
-
export const
|
|
4285
|
+
export const RahdariStats = {
|
|
4286
|
+
encode(message, writer = new BinaryWriter()) {
|
|
4287
|
+
if (message.total !== 0) {
|
|
4288
|
+
writer.uint32(8).uint32(message.total);
|
|
4289
|
+
}
|
|
4290
|
+
if (message.active !== 0) {
|
|
4291
|
+
writer.uint32(16).uint32(message.active);
|
|
4292
|
+
}
|
|
4293
|
+
if (message.expiringSoon !== 0) {
|
|
4294
|
+
writer.uint32(24).uint32(message.expiringSoon);
|
|
4295
|
+
}
|
|
4296
|
+
if (message.expired !== 0) {
|
|
4297
|
+
writer.uint32(32).uint32(message.expired);
|
|
4298
|
+
}
|
|
4299
|
+
if (message.enabled !== 0) {
|
|
4300
|
+
writer.uint32(40).uint32(message.enabled);
|
|
4301
|
+
}
|
|
4302
|
+
if (message.incomplete !== 0) {
|
|
4303
|
+
writer.uint32(48).uint32(message.incomplete);
|
|
4304
|
+
}
|
|
4305
|
+
if (message.liveLocation10m !== 0) {
|
|
4306
|
+
writer.uint32(56).uint32(message.liveLocation10m);
|
|
4307
|
+
}
|
|
4308
|
+
return writer;
|
|
4309
|
+
},
|
|
4310
|
+
decode(input, length) {
|
|
4311
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
4312
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
4313
|
+
const message = createBaseRahdariStats();
|
|
4314
|
+
while (reader.pos < end) {
|
|
4315
|
+
const tag = reader.uint32();
|
|
4316
|
+
switch (tag >>> 3) {
|
|
4317
|
+
case 1: {
|
|
4318
|
+
if (tag !== 8) {
|
|
4319
|
+
break;
|
|
4320
|
+
}
|
|
4321
|
+
message.total = reader.uint32();
|
|
4322
|
+
continue;
|
|
4323
|
+
}
|
|
4324
|
+
case 2: {
|
|
4325
|
+
if (tag !== 16) {
|
|
4326
|
+
break;
|
|
4327
|
+
}
|
|
4328
|
+
message.active = reader.uint32();
|
|
4329
|
+
continue;
|
|
4330
|
+
}
|
|
4331
|
+
case 3: {
|
|
4332
|
+
if (tag !== 24) {
|
|
4333
|
+
break;
|
|
4334
|
+
}
|
|
4335
|
+
message.expiringSoon = reader.uint32();
|
|
4336
|
+
continue;
|
|
4337
|
+
}
|
|
4338
|
+
case 4: {
|
|
4339
|
+
if (tag !== 32) {
|
|
4340
|
+
break;
|
|
4341
|
+
}
|
|
4342
|
+
message.expired = reader.uint32();
|
|
4343
|
+
continue;
|
|
4344
|
+
}
|
|
4345
|
+
case 5: {
|
|
4346
|
+
if (tag !== 40) {
|
|
4347
|
+
break;
|
|
4348
|
+
}
|
|
4349
|
+
message.enabled = reader.uint32();
|
|
4350
|
+
continue;
|
|
4351
|
+
}
|
|
4352
|
+
case 6: {
|
|
4353
|
+
if (tag !== 48) {
|
|
4354
|
+
break;
|
|
4355
|
+
}
|
|
4356
|
+
message.incomplete = reader.uint32();
|
|
4357
|
+
continue;
|
|
4358
|
+
}
|
|
4359
|
+
case 7: {
|
|
4360
|
+
if (tag !== 56) {
|
|
4361
|
+
break;
|
|
4362
|
+
}
|
|
4363
|
+
message.liveLocation10m = reader.uint32();
|
|
4364
|
+
continue;
|
|
4365
|
+
}
|
|
4366
|
+
}
|
|
4367
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
4368
|
+
break;
|
|
4369
|
+
}
|
|
4370
|
+
reader.skip(tag & 7);
|
|
4371
|
+
}
|
|
4372
|
+
return message;
|
|
4373
|
+
},
|
|
4374
|
+
create(base) {
|
|
4375
|
+
return RahdariStats.fromPartial(base ?? {});
|
|
4376
|
+
},
|
|
4377
|
+
fromPartial(object) {
|
|
4378
|
+
const message = createBaseRahdariStats();
|
|
4379
|
+
message.total = object.total ?? 0;
|
|
4380
|
+
message.active = object.active ?? 0;
|
|
4381
|
+
message.expiringSoon = object.expiringSoon ?? 0;
|
|
4382
|
+
message.expired = object.expired ?? 0;
|
|
4383
|
+
message.enabled = object.enabled ?? 0;
|
|
4384
|
+
message.incomplete = object.incomplete ?? 0;
|
|
4385
|
+
message.liveLocation10m = object.liveLocation10m ?? 0;
|
|
4386
|
+
return message;
|
|
4387
|
+
},
|
|
4388
|
+
};
|
|
4389
|
+
function createBaseRahdariDeviceResponse() {
|
|
4390
|
+
return {
|
|
4391
|
+
currentPage: 0,
|
|
4392
|
+
from: 0,
|
|
4393
|
+
to: 0,
|
|
4394
|
+
lastPage: 0,
|
|
4395
|
+
perPage: 0,
|
|
4396
|
+
cost: Long.ZERO,
|
|
4397
|
+
total: 0,
|
|
4398
|
+
data: [],
|
|
4399
|
+
stats: undefined,
|
|
4400
|
+
};
|
|
4401
|
+
}
|
|
4402
|
+
export const RahdariDeviceResponse = {
|
|
2647
4403
|
encode(message, writer = new BinaryWriter()) {
|
|
2648
4404
|
if (message.currentPage !== 0) {
|
|
2649
4405
|
writer.uint32(8).uint32(message.currentPage);
|
|
@@ -2667,14 +4423,17 @@ export const DeviceResponse = {
|
|
|
2667
4423
|
writer.uint32(56).uint32(message.total);
|
|
2668
4424
|
}
|
|
2669
4425
|
for (const v of message.data) {
|
|
2670
|
-
|
|
4426
|
+
RahdariDeviceRepo.encode(v, writer.uint32(66).fork()).join();
|
|
4427
|
+
}
|
|
4428
|
+
if (message.stats !== undefined) {
|
|
4429
|
+
RahdariStats.encode(message.stats, writer.uint32(74).fork()).join();
|
|
2671
4430
|
}
|
|
2672
4431
|
return writer;
|
|
2673
4432
|
},
|
|
2674
4433
|
decode(input, length) {
|
|
2675
4434
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2676
4435
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2677
|
-
const message =
|
|
4436
|
+
const message = createBaseRahdariDeviceResponse();
|
|
2678
4437
|
while (reader.pos < end) {
|
|
2679
4438
|
const tag = reader.uint32();
|
|
2680
4439
|
switch (tag >>> 3) {
|
|
@@ -2731,7 +4490,14 @@ export const DeviceResponse = {
|
|
|
2731
4490
|
if (tag !== 66) {
|
|
2732
4491
|
break;
|
|
2733
4492
|
}
|
|
2734
|
-
message.data.push(
|
|
4493
|
+
message.data.push(RahdariDeviceRepo.decode(reader, reader.uint32()));
|
|
4494
|
+
continue;
|
|
4495
|
+
}
|
|
4496
|
+
case 9: {
|
|
4497
|
+
if (tag !== 74) {
|
|
4498
|
+
break;
|
|
4499
|
+
}
|
|
4500
|
+
message.stats = RahdariStats.decode(reader, reader.uint32());
|
|
2735
4501
|
continue;
|
|
2736
4502
|
}
|
|
2737
4503
|
}
|
|
@@ -2743,10 +4509,10 @@ export const DeviceResponse = {
|
|
|
2743
4509
|
return message;
|
|
2744
4510
|
},
|
|
2745
4511
|
create(base) {
|
|
2746
|
-
return
|
|
4512
|
+
return RahdariDeviceResponse.fromPartial(base ?? {});
|
|
2747
4513
|
},
|
|
2748
4514
|
fromPartial(object) {
|
|
2749
|
-
const message =
|
|
4515
|
+
const message = createBaseRahdariDeviceResponse();
|
|
2750
4516
|
message.currentPage = object.currentPage ?? 0;
|
|
2751
4517
|
message.from = object.from ?? 0;
|
|
2752
4518
|
message.to = object.to ?? 0;
|
|
@@ -2754,7 +4520,10 @@ export const DeviceResponse = {
|
|
|
2754
4520
|
message.perPage = object.perPage ?? 0;
|
|
2755
4521
|
message.cost = (object.cost !== undefined && object.cost !== null) ? Long.fromValue(object.cost) : Long.ZERO;
|
|
2756
4522
|
message.total = object.total ?? 0;
|
|
2757
|
-
message.data = object.data?.map((e) =>
|
|
4523
|
+
message.data = object.data?.map((e) => RahdariDeviceRepo.fromPartial(e)) || [];
|
|
4524
|
+
message.stats = (object.stats !== undefined && object.stats !== null)
|
|
4525
|
+
? RahdariStats.fromPartial(object.stats)
|
|
4526
|
+
: undefined;
|
|
2758
4527
|
return message;
|
|
2759
4528
|
},
|
|
2760
4529
|
};
|