@fatehan/tsrp 1.6.54 → 1.6.56

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.
@@ -387,6 +387,10 @@ function createBaseHeartbeatCache() {
387
387
  ai1: undefined,
388
388
  odysseyCommandId: undefined,
389
389
  scheduleAlert: undefined,
390
+ altitude: undefined,
391
+ cellId: undefined,
392
+ operatorCode: undefined,
393
+ areaCode: undefined,
390
394
  };
391
395
  }
392
396
  export const HeartbeatCache = {
@@ -427,6 +431,18 @@ export const HeartbeatCache = {
427
431
  if (message.scheduleAlert !== undefined) {
428
432
  writer.uint32(96).int32(message.scheduleAlert);
429
433
  }
434
+ if (message.altitude !== undefined) {
435
+ writer.uint32(104).uint32(message.altitude);
436
+ }
437
+ if (message.cellId !== undefined) {
438
+ writer.uint32(112).uint32(message.cellId);
439
+ }
440
+ if (message.operatorCode !== undefined) {
441
+ writer.uint32(120).uint32(message.operatorCode);
442
+ }
443
+ if (message.areaCode !== undefined) {
444
+ writer.uint32(128).uint32(message.areaCode);
445
+ }
430
446
  return writer;
431
447
  },
432
448
  decode(input, length) {
@@ -520,6 +536,34 @@ export const HeartbeatCache = {
520
536
  message.scheduleAlert = reader.int32();
521
537
  continue;
522
538
  }
539
+ case 13: {
540
+ if (tag !== 104) {
541
+ break;
542
+ }
543
+ message.altitude = reader.uint32();
544
+ continue;
545
+ }
546
+ case 14: {
547
+ if (tag !== 112) {
548
+ break;
549
+ }
550
+ message.cellId = reader.uint32();
551
+ continue;
552
+ }
553
+ case 15: {
554
+ if (tag !== 120) {
555
+ break;
556
+ }
557
+ message.operatorCode = reader.uint32();
558
+ continue;
559
+ }
560
+ case 16: {
561
+ if (tag !== 128) {
562
+ break;
563
+ }
564
+ message.areaCode = reader.uint32();
565
+ continue;
566
+ }
523
567
  }
524
568
  if ((tag & 7) === 4 || tag === 0) {
525
569
  break;
@@ -551,6 +595,10 @@ export const HeartbeatCache = {
551
595
  ? Long.fromValue(object.odysseyCommandId)
552
596
  : undefined;
553
597
  message.scheduleAlert = object.scheduleAlert ?? undefined;
598
+ message.altitude = object.altitude ?? undefined;
599
+ message.cellId = object.cellId ?? undefined;
600
+ message.operatorCode = object.operatorCode ?? undefined;
601
+ message.areaCode = object.areaCode ?? undefined;
554
602
  return message;
555
603
  },
556
604
  };
@@ -6,6 +6,7 @@ export interface DataModule {
6
6
  }
7
7
  export interface DataModule_ModuleList {
8
8
  tpms?: TirePressureMonitoringSystemModule | undefined;
9
+ rahdari?: RahdariModule | undefined;
9
10
  }
10
11
  export interface TirePressureMonitoringSystemModule {
11
12
  tireAxleKey?: number | undefined;
@@ -36,11 +37,34 @@ export interface TirePressureMonitoringSystemModule_TireDataEntry {
36
37
  key: number;
37
38
  value: TirePressureMonitoringSystemModule_TirePosition | undefined;
38
39
  }
40
+ export interface RahdariModule {
41
+ enabled?: boolean | undefined;
42
+ apiKey?: string | undefined;
43
+ baseUrl?: string | undefined;
44
+ nationality?: string | undefined;
45
+ type?: string | undefined;
46
+ usage?: string | undefined;
47
+ hasPlateNumber?: boolean | undefined;
48
+ plateNumberFirst?: string | undefined;
49
+ plateNumberCharacter?: string | undefined;
50
+ plateNumberLast?: string | undefined;
51
+ plateNumberSerial?: string | undefined;
52
+ otherPlateNumber?: string | undefined;
53
+ transitNumber?: string | undefined;
54
+ vin?: string | undefined;
55
+ chassisNumber?: string | undefined;
56
+ simCardNumber?: string | undefined;
57
+ mcc?: number | undefined;
58
+ mnc?: number | undefined;
59
+ lac?: number | undefined;
60
+ cid?: Long | undefined;
61
+ }
39
62
  export declare const DataModule: MessageFns<DataModule>;
40
63
  export declare const DataModule_ModuleList: MessageFns<DataModule_ModuleList>;
41
64
  export declare const TirePressureMonitoringSystemModule: MessageFns<TirePressureMonitoringSystemModule>;
42
65
  export declare const TirePressureMonitoringSystemModule_TirePosition: MessageFns<TirePressureMonitoringSystemModule_TirePosition>;
43
66
  export declare const TirePressureMonitoringSystemModule_TireDataEntry: MessageFns<TirePressureMonitoringSystemModule_TireDataEntry>;
67
+ export declare const RahdariModule: MessageFns<RahdariModule>;
44
68
  type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
45
69
  export type DeepPartial<T> = T extends Builtin ? T : T extends Long ? string | number | Long : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
46
70
  [K in keyof T]?: DeepPartial<T[K]>;
@@ -1 +1 @@
1
- {"version":3,"file":"dataModule.d.ts","sourceRoot":"","sources":["../../../src/fatehan/packets/dataModule.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,IAAI,MAAM,MAAM,CAAC;AAGxB,eAAO,MAAM,eAAe,wBAAwB,CAAC;AAErD,MAAM,WAAW,UAAU;IACzB,OAAO,EAAE,qBAAqB,EAAE,CAAC;CAClC;AAED,MAAM,WAAW,qBAAqB;IACpC,IAAI,CAAC,EAAE,kCAAkC,GAAG,SAAS,CAAC;CACvD;AAED,MAAM,WAAW,kCAAkC;IACjD,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,QAAQ,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,+CAA+C,CAAA;KAAE,CAAC;CAC9E;AAED,oBAAY,2CAA2C;IACrD,SAAS,IAAI;IACb,QAAQ,IAAI;IACZ,OAAO,IAAI;IACX,QAAQ,IAAI;IACZ,YAAY,KAAK;CAClB;AAED,MAAM,WAAW,+CAA+C;IAC9D,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS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,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;IACxD,WAAW,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC;CAC/D"}
@@ -58,13 +58,16 @@ export const DataModule = {
58
58
  },
59
59
  };
60
60
  function createBaseDataModule_ModuleList() {
61
- return { tpms: undefined };
61
+ return { tpms: undefined, rahdari: undefined };
62
62
  }
63
63
  export const DataModule_ModuleList = {
64
64
  encode(message, writer = new BinaryWriter()) {
65
65
  if (message.tpms !== undefined) {
66
66
  TirePressureMonitoringSystemModule.encode(message.tpms, writer.uint32(10).fork()).join();
67
67
  }
68
+ if (message.rahdari !== undefined) {
69
+ RahdariModule.encode(message.rahdari, writer.uint32(18).fork()).join();
70
+ }
68
71
  return writer;
69
72
  },
70
73
  decode(input, length) {
@@ -81,6 +84,13 @@ export const DataModule_ModuleList = {
81
84
  message.tpms = TirePressureMonitoringSystemModule.decode(reader, reader.uint32());
82
85
  continue;
83
86
  }
87
+ case 2: {
88
+ if (tag !== 18) {
89
+ break;
90
+ }
91
+ message.rahdari = RahdariModule.decode(reader, reader.uint32());
92
+ continue;
93
+ }
84
94
  }
85
95
  if ((tag & 7) === 4 || tag === 0) {
86
96
  break;
@@ -97,6 +107,9 @@ export const DataModule_ModuleList = {
97
107
  message.tpms = (object.tpms !== undefined && object.tpms !== null)
98
108
  ? TirePressureMonitoringSystemModule.fromPartial(object.tpms)
99
109
  : undefined;
110
+ message.rahdari = (object.rahdari !== undefined && object.rahdari !== null)
111
+ ? RahdariModule.fromPartial(object.rahdari)
112
+ : undefined;
100
113
  return message;
101
114
  },
102
115
  };
@@ -371,6 +384,277 @@ export const TirePressureMonitoringSystemModule_TireDataEntry = {
371
384
  return message;
372
385
  },
373
386
  };
387
+ function createBaseRahdariModule() {
388
+ return {
389
+ enabled: undefined,
390
+ apiKey: undefined,
391
+ baseUrl: undefined,
392
+ nationality: undefined,
393
+ type: undefined,
394
+ usage: undefined,
395
+ hasPlateNumber: undefined,
396
+ plateNumberFirst: undefined,
397
+ plateNumberCharacter: undefined,
398
+ plateNumberLast: undefined,
399
+ plateNumberSerial: undefined,
400
+ otherPlateNumber: undefined,
401
+ transitNumber: undefined,
402
+ vin: undefined,
403
+ chassisNumber: undefined,
404
+ simCardNumber: undefined,
405
+ mcc: undefined,
406
+ mnc: undefined,
407
+ lac: undefined,
408
+ cid: undefined,
409
+ };
410
+ }
411
+ export const RahdariModule = {
412
+ encode(message, writer = new BinaryWriter()) {
413
+ if (message.enabled !== undefined) {
414
+ writer.uint32(8).bool(message.enabled);
415
+ }
416
+ if (message.apiKey !== undefined) {
417
+ writer.uint32(18).string(message.apiKey);
418
+ }
419
+ if (message.baseUrl !== undefined) {
420
+ writer.uint32(26).string(message.baseUrl);
421
+ }
422
+ if (message.nationality !== undefined) {
423
+ writer.uint32(34).string(message.nationality);
424
+ }
425
+ if (message.type !== undefined) {
426
+ writer.uint32(42).string(message.type);
427
+ }
428
+ if (message.usage !== undefined) {
429
+ writer.uint32(50).string(message.usage);
430
+ }
431
+ if (message.hasPlateNumber !== undefined) {
432
+ writer.uint32(56).bool(message.hasPlateNumber);
433
+ }
434
+ if (message.plateNumberFirst !== undefined) {
435
+ writer.uint32(66).string(message.plateNumberFirst);
436
+ }
437
+ if (message.plateNumberCharacter !== undefined) {
438
+ writer.uint32(74).string(message.plateNumberCharacter);
439
+ }
440
+ if (message.plateNumberLast !== undefined) {
441
+ writer.uint32(82).string(message.plateNumberLast);
442
+ }
443
+ if (message.plateNumberSerial !== undefined) {
444
+ writer.uint32(90).string(message.plateNumberSerial);
445
+ }
446
+ if (message.otherPlateNumber !== undefined) {
447
+ writer.uint32(98).string(message.otherPlateNumber);
448
+ }
449
+ if (message.transitNumber !== undefined) {
450
+ writer.uint32(106).string(message.transitNumber);
451
+ }
452
+ if (message.vin !== undefined) {
453
+ writer.uint32(114).string(message.vin);
454
+ }
455
+ if (message.chassisNumber !== undefined) {
456
+ writer.uint32(122).string(message.chassisNumber);
457
+ }
458
+ if (message.simCardNumber !== undefined) {
459
+ writer.uint32(130).string(message.simCardNumber);
460
+ }
461
+ if (message.mcc !== undefined) {
462
+ writer.uint32(136).uint32(message.mcc);
463
+ }
464
+ if (message.mnc !== undefined) {
465
+ writer.uint32(144).uint32(message.mnc);
466
+ }
467
+ if (message.lac !== undefined) {
468
+ writer.uint32(152).uint32(message.lac);
469
+ }
470
+ if (message.cid !== undefined) {
471
+ writer.uint32(160).uint64(message.cid.toString());
472
+ }
473
+ return writer;
474
+ },
475
+ decode(input, length) {
476
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
477
+ const end = length === undefined ? reader.len : reader.pos + length;
478
+ const message = createBaseRahdariModule();
479
+ while (reader.pos < end) {
480
+ const tag = reader.uint32();
481
+ switch (tag >>> 3) {
482
+ case 1: {
483
+ if (tag !== 8) {
484
+ break;
485
+ }
486
+ message.enabled = reader.bool();
487
+ continue;
488
+ }
489
+ case 2: {
490
+ if (tag !== 18) {
491
+ break;
492
+ }
493
+ message.apiKey = reader.string();
494
+ continue;
495
+ }
496
+ case 3: {
497
+ if (tag !== 26) {
498
+ break;
499
+ }
500
+ message.baseUrl = reader.string();
501
+ continue;
502
+ }
503
+ case 4: {
504
+ if (tag !== 34) {
505
+ break;
506
+ }
507
+ message.nationality = reader.string();
508
+ continue;
509
+ }
510
+ case 5: {
511
+ if (tag !== 42) {
512
+ break;
513
+ }
514
+ message.type = reader.string();
515
+ continue;
516
+ }
517
+ case 6: {
518
+ if (tag !== 50) {
519
+ break;
520
+ }
521
+ message.usage = reader.string();
522
+ continue;
523
+ }
524
+ case 7: {
525
+ if (tag !== 56) {
526
+ break;
527
+ }
528
+ message.hasPlateNumber = reader.bool();
529
+ continue;
530
+ }
531
+ case 8: {
532
+ if (tag !== 66) {
533
+ break;
534
+ }
535
+ message.plateNumberFirst = reader.string();
536
+ continue;
537
+ }
538
+ case 9: {
539
+ if (tag !== 74) {
540
+ break;
541
+ }
542
+ message.plateNumberCharacter = reader.string();
543
+ continue;
544
+ }
545
+ case 10: {
546
+ if (tag !== 82) {
547
+ break;
548
+ }
549
+ message.plateNumberLast = reader.string();
550
+ continue;
551
+ }
552
+ case 11: {
553
+ if (tag !== 90) {
554
+ break;
555
+ }
556
+ message.plateNumberSerial = reader.string();
557
+ continue;
558
+ }
559
+ case 12: {
560
+ if (tag !== 98) {
561
+ break;
562
+ }
563
+ message.otherPlateNumber = reader.string();
564
+ continue;
565
+ }
566
+ case 13: {
567
+ if (tag !== 106) {
568
+ break;
569
+ }
570
+ message.transitNumber = reader.string();
571
+ continue;
572
+ }
573
+ case 14: {
574
+ if (tag !== 114) {
575
+ break;
576
+ }
577
+ message.vin = reader.string();
578
+ continue;
579
+ }
580
+ case 15: {
581
+ if (tag !== 122) {
582
+ break;
583
+ }
584
+ message.chassisNumber = reader.string();
585
+ continue;
586
+ }
587
+ case 16: {
588
+ if (tag !== 130) {
589
+ break;
590
+ }
591
+ message.simCardNumber = reader.string();
592
+ continue;
593
+ }
594
+ case 17: {
595
+ if (tag !== 136) {
596
+ break;
597
+ }
598
+ message.mcc = reader.uint32();
599
+ continue;
600
+ }
601
+ case 18: {
602
+ if (tag !== 144) {
603
+ break;
604
+ }
605
+ message.mnc = reader.uint32();
606
+ continue;
607
+ }
608
+ case 19: {
609
+ if (tag !== 152) {
610
+ break;
611
+ }
612
+ message.lac = reader.uint32();
613
+ continue;
614
+ }
615
+ case 20: {
616
+ if (tag !== 160) {
617
+ break;
618
+ }
619
+ message.cid = Long.fromString(reader.uint64().toString(), true);
620
+ continue;
621
+ }
622
+ }
623
+ if ((tag & 7) === 4 || tag === 0) {
624
+ break;
625
+ }
626
+ reader.skip(tag & 7);
627
+ }
628
+ return message;
629
+ },
630
+ create(base) {
631
+ return RahdariModule.fromPartial(base ?? {});
632
+ },
633
+ fromPartial(object) {
634
+ const message = createBaseRahdariModule();
635
+ message.enabled = object.enabled ?? undefined;
636
+ message.apiKey = object.apiKey ?? undefined;
637
+ message.baseUrl = object.baseUrl ?? undefined;
638
+ message.nationality = object.nationality ?? undefined;
639
+ message.type = object.type ?? undefined;
640
+ message.usage = object.usage ?? undefined;
641
+ message.hasPlateNumber = object.hasPlateNumber ?? undefined;
642
+ message.plateNumberFirst = object.plateNumberFirst ?? undefined;
643
+ message.plateNumberCharacter = object.plateNumberCharacter ?? undefined;
644
+ message.plateNumberLast = object.plateNumberLast ?? undefined;
645
+ message.plateNumberSerial = object.plateNumberSerial ?? undefined;
646
+ message.otherPlateNumber = object.otherPlateNumber ?? undefined;
647
+ message.transitNumber = object.transitNumber ?? undefined;
648
+ message.vin = object.vin ?? undefined;
649
+ message.chassisNumber = object.chassisNumber ?? undefined;
650
+ message.simCardNumber = object.simCardNumber ?? undefined;
651
+ message.mcc = object.mcc ?? undefined;
652
+ message.mnc = object.mnc ?? undefined;
653
+ message.lac = object.lac ?? undefined;
654
+ message.cid = (object.cid !== undefined && object.cid !== null) ? Long.fromValue(object.cid) : undefined;
655
+ return message;
656
+ },
657
+ };
374
658
  function toTimestamp(date) {
375
659
  const seconds = numberToLong(Math.trunc(date.getTime() / 1_000));
376
660
  const nanos = (date.getTime() % 1_000) * 1_000_000;
@@ -2,7 +2,7 @@ import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
2
  import Long from "long";
3
3
  import { WorkflowStat, WorkflowTask } from "../activities/workflow";
4
4
  import { WorkShift, WorkShiftTemplate } from "../activities/workshift";
5
- import { Area, AreaType, Point, WorkCycle } from "../areas/area";
5
+ import { Area, AreaType, Point, WorkCycle, WorkCycle_Method } from "../areas/area";
6
6
  import { CommandAction, SystemIo } from "../devices/devices";
7
7
  import { Maintenance, MaintenanceStatus } from "../devices/maintenance";
8
8
  import { Currency, Order, Wallet } from "../financial/financial";
@@ -519,6 +519,8 @@ export interface WorkCycleRequest {
519
519
  areaStopSeconds: number;
520
520
  source: WorkCycleRequest_Source;
521
521
  shiftId?: Long | undefined;
522
+ /** Unset = use each device's configured method. SENSOR only applies to devices that have a sensor configured. */
523
+ method?: WorkCycle_Method | undefined;
522
524
  }
523
525
  export declare enum WorkCycleRequest_Source {
524
526
  FUSION = 0,
@@ -572,6 +574,7 @@ export interface TripPerformanceRequest {
572
574
  groupByDatetime: TripPerformanceRequest_GroupBy;
573
575
  hourly: boolean;
574
576
  orgId?: Long | undefined;
577
+ shiftId?: Long | undefined;
575
578
  }
576
579
  export declare enum TripPerformanceRequest_GroupBy {
577
580
  ALL = 0,
@@ -943,6 +946,7 @@ export interface RouteReviewRequest {
943
946
  stopType: StopCalculateIo;
944
947
  deviceId: Long;
945
948
  includeTrip: boolean;
949
+ shiftId?: Long | undefined;
946
950
  }
947
951
  export interface RouteReviewResponse {
948
952
  routeList: Data[];