@nanolink/mirrors 1.0.0

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.
@@ -0,0 +1,1044 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TempSubscriptions = exports.RequiredMirrors = exports.Subscriptions = void 0;
4
+ const commonFields = 'id:idStr version createdDateTime';
5
+ const commonReferenceFields = 'groupId groupName groupPath labels canAnonymize tokenCount';
6
+ const lastLogFields = 'id eventCode stamp serviceDataId userId comment';
7
+ const serviceDataCommonFields = `id createdDateTime servicePlanId userId lastServiceDate lastLog {${lastLogFields}}`;
8
+ const mCommonFields = 'type total deleteId deleteVersion';
9
+ const mServiceCommonFields = `name description createdDate createdBy ${commonFields}`;
10
+ exports.Subscriptions = {
11
+ references: `
12
+ subscription References($version:Int!) {
13
+ mreference_getbulk(version: $version, subscribe:true)
14
+ {
15
+ ${mCommonFields}
16
+ data {
17
+ __typename
18
+ ... on QMUser {
19
+ ${commonFields}
20
+ ${commonReferenceFields}
21
+ mobilePhoneNumber
22
+ mobileCountryCode
23
+ firstName
24
+ middleName
25
+ lastName
26
+ fullName
27
+ email
28
+ documents {
29
+ id name url createdDate mimeType fileName
30
+ }
31
+ serviceData {
32
+ __typename
33
+ ... on QMServiceDataOneshot { ${serviceDataCommonFields} due dueSlackInDays }
34
+ ... on QMServiceDataPeriodic { ${serviceDataCommonFields} startDate lastServiceDate period intervalType due dueSlackInDays }
35
+ ... on QMServiceDataWarranty { ${serviceDataCommonFields} purchaseDate warrantyInMonths due dueSlackInDays }
36
+ ... on QMServiceDataTrackerStateInt { ${serviceDataCommonFields} dueSlackSeconds : dueSlack nextDueSeconds : nextDue trackerVID }
37
+ ... on QMServiceDataTrackerStateDouble { ${serviceDataCommonFields} dueSlackKM : dueSlack nextDueKM : nextDue trackerVID }
38
+ },
39
+ isAzureADUser
40
+ authProvider
41
+ externalKeys
42
+ externalIds { key value }
43
+ externalBag
44
+ deleted
45
+ }
46
+ ... on QMAsset {
47
+ ${commonFields}
48
+ ${commonReferenceFields}
49
+ brand
50
+ model
51
+ keyWords
52
+ description
53
+ serial
54
+ documents {
55
+ id name url createdDate mimeType fileName
56
+ }
57
+ serviceData {
58
+ __typename
59
+ ... on QMServiceDataOneshot { ${serviceDataCommonFields} due dueSlackInDays }
60
+ ... on QMServiceDataPeriodic { ${serviceDataCommonFields} startDate lastServiceDate period intervalType due dueSlackInDays }
61
+ ... on QMServiceDataWarranty { ${serviceDataCommonFields} purchaseDate warrantyInMonths due dueSlackInDays }
62
+ ... on QMServiceDataTrackerStateInt { ${serviceDataCommonFields} dueSlackSeconds : dueSlack nextDueSeconds : nextDue trackerVID }
63
+ ... on QMServiceDataTrackerStateDouble { ${serviceDataCommonFields} dueSlackKM : dueSlack nextDueKM : nextDue trackerVID }
64
+ }
65
+ externalKeys
66
+ externalIds { key value }
67
+ externalBag
68
+ deleted
69
+ }
70
+ ... on QMVehicle {
71
+ ${commonFields}
72
+ ${commonReferenceFields}
73
+ documents {
74
+ id name url createdDate mimeType fileName
75
+ }
76
+ serviceData {
77
+ __typename
78
+ ... on QMServiceDataOneshot { ${serviceDataCommonFields} due dueSlackInDays }
79
+ ... on QMServiceDataPeriodic { ${serviceDataCommonFields} startDate lastServiceDate period intervalType due dueSlackInDays }
80
+ ... on QMServiceDataWarranty { ${serviceDataCommonFields} purchaseDate warrantyInMonths due dueSlackInDays }
81
+ ... on QMServiceDataTrackerStateInt { ${serviceDataCommonFields} dueSlackSeconds : dueSlack nextDueSeconds : nextDue trackerVID }
82
+ ... on QMServiceDataTrackerStateDouble { ${serviceDataCommonFields} dueSlackKM : dueSlack nextDueKM : nextDue trackerVID }
83
+ }
84
+ externalKeys
85
+ externalIds { key value }
86
+ externalBag
87
+ deleted
88
+ registration
89
+ registrationStatus
90
+ vin
91
+ brand
92
+ brandId
93
+ model
94
+ modelId
95
+ serial
96
+ modelYear
97
+ keyWords
98
+ description
99
+ variant
100
+ variantId
101
+ vVersion
102
+ vVersionId
103
+ bodyType
104
+ usage
105
+ extended {
106
+ category
107
+ ecTypeApproval
108
+ euVariant
109
+ euVersion
110
+ extraEquipment
111
+ firstRegistrationDate
112
+ fuelType
113
+ kind
114
+ lastInspectionDate
115
+ lastInspectionKind
116
+ lastInspectionResult
117
+ leasingPeriodEnd
118
+ leasingPeriodStart
119
+ mileage
120
+ mileageAnnualAverage
121
+ ncapFive
122
+ registrationStatusUpdatedAt
123
+ status
124
+ statusUpdatedAt
125
+ weight {
126
+ technicalTotalWeight
127
+ totalWeight
128
+ vehicleWeight
129
+ driveableWeightMinimum
130
+ driveableWeightMaximum
131
+ vValueAirSuspension
132
+ vValueMechanicalSuspension
133
+ roadTrainWeight
134
+ couplingDevice
135
+ couplingDeviceLoadMaximum
136
+ trailerWithBrakesWeightMaximum
137
+ trailerWithoutBrakesWeightMaximum
138
+ trailerTotalWeightMaximum
139
+ division
140
+ }
141
+ age {
142
+ years
143
+ months
144
+ }
145
+ axle {
146
+ axles
147
+ axleTrack
148
+ pullingAxlesString
149
+ driveShaftPressureMaximum
150
+ trailerAllowedPressureMaximum
151
+ }
152
+ body {
153
+ doors
154
+ vinPlacement
155
+ trackWidthFront
156
+ trackWidthRear
157
+ passengers
158
+ seatsMinimum
159
+ seatsMaximum
160
+ standingPassengersMinimum
161
+ standingPassengersMaximum
162
+ rimsAndTires
163
+ color
164
+ }
165
+ periodicTaxes {
166
+ taxes {
167
+ name
168
+ amount
169
+ paymentFrequency
170
+ }
171
+ totalAmount
172
+ paymentFrequency
173
+ }
174
+ leasingPeriods {
175
+ leasingPeriodStart
176
+ leasingPeriodEnd
177
+ }
178
+ permits {
179
+ id
180
+ name
181
+ comment
182
+ validFrom
183
+ validTo
184
+ }
185
+ manufacturer {
186
+ name
187
+ region
188
+ country
189
+ }
190
+ drivingLicense {
191
+ category
192
+ }
193
+ emission {
194
+ co2
195
+ co
196
+ hcPlusNox
197
+ nox
198
+ particles
199
+ particleFilter
200
+ smokeDensity
201
+ smokeDensityEngineSpeed
202
+ energyClass
203
+ euronorm
204
+ }
205
+ engine {
206
+ fuelEfficiency
207
+ electricityEfficiency
208
+ topSpeed
209
+ fuelType
210
+ cylinders
211
+ engineCode
212
+ engineDisplacement
213
+ enginePower
214
+ horsepower
215
+ powerToWeightRatio
216
+ }
217
+ equipment {
218
+ id
219
+ name
220
+ quantity
221
+ }
222
+ inspections {
223
+ id
224
+ vehicleId
225
+ registration
226
+ vin
227
+ date
228
+ result
229
+ mileage
230
+ pdf
231
+ }
232
+ }
233
+ }
234
+ ... on QMSite {
235
+ ${commonFields}
236
+ ${commonReferenceFields}
237
+ name
238
+ type
239
+ geoArea {
240
+ longitude
241
+ latitude
242
+ }
243
+ documents {
244
+ id name url createdDate mimeType fileName
245
+ }
246
+ serviceData {
247
+ __typename
248
+ ... on QMServiceDataOneshot { ${serviceDataCommonFields} due dueSlackInDays }
249
+ ... on QMServiceDataPeriodic { ${serviceDataCommonFields} startDate lastServiceDate period intervalType due dueSlackInDays }
250
+ ... on QMServiceDataWarranty { ${serviceDataCommonFields} purchaseDate warrantyInMonths due dueSlackInDays }
251
+ ... on QMServiceDataTrackerStateInt { ${serviceDataCommonFields} dueSlackSeconds : dueSlack nextDueSeconds : nextDue trackerVID }
252
+ ... on QMServiceDataTrackerStateDouble { ${serviceDataCommonFields} dueSlackKM : dueSlack nextDueKM : nextDue trackerVID }
253
+ }
254
+ externalKeys
255
+ externalIds { key value }
256
+ externalBag
257
+ deleted
258
+ }
259
+ }
260
+ }
261
+ }`,
262
+ trackers: `
263
+ subscription Trackers($version:Int!) {
264
+ mtrackers_getbulk(version: $version, subscribe:true)
265
+ {
266
+ ${mCommonFields}
267
+ data
268
+ {
269
+ ${commonFields}
270
+ objId: id
271
+ vID
272
+ pID
273
+ key
274
+ type
275
+ model
276
+ revision
277
+ trackerName
278
+ referenceId
279
+ deleted
280
+ }
281
+ }
282
+ }`,
283
+ groups: `
284
+ subscription Groups($version:Int!)
285
+ {
286
+ mcommon_getgroups(version: $version, subscribe: true)
287
+ {
288
+ ${mCommonFields}
289
+ data {
290
+ id:idStr
291
+ version
292
+ parentId
293
+ name
294
+ level
295
+ type
296
+ }
297
+ }
298
+ }`,
299
+ servicePlans: `
300
+ subscription Service($version: Int!)
301
+ {
302
+ mservice_get(version: $version, subscribe: true)
303
+ {
304
+ ${mCommonFields}
305
+ data {
306
+ __typename
307
+ ... on QMServicePlanOneshot
308
+ {
309
+ ${mServiceCommonFields}
310
+ dueSlackInDays
311
+ deleted
312
+ }
313
+ ... on QMServicePlanPeriodic {
314
+ ${mServiceCommonFields}
315
+ dueSlackInDays
316
+ period
317
+ intervalType
318
+ deleted
319
+ }
320
+ ... on QMServicePlanWarranty {
321
+ ${mServiceCommonFields}
322
+ dueSlackInDays
323
+ warrantyInMonths
324
+ deleted
325
+ }
326
+ ... on QMServicePlanKM {
327
+ ${mServiceCommonFields}
328
+ dueSlackKM : dueSlack
329
+ intervalKM : interval
330
+ deleted
331
+ }
332
+ ... on QMServicePlanWorkSeconds {
333
+ ${mServiceCommonFields}
334
+ dueSlackSeconds : dueSlack
335
+ intervalSeconds : interval
336
+ deleted
337
+ }
338
+ }
339
+ }
340
+ }`,
341
+ trackerLinks: `
342
+ subscription BLELinks($opVersion: String)
343
+ {
344
+ otrackers_getlinksbulk(opversion: $opVersion, subscribe: true, subscriberssiupdates: true)
345
+ {
346
+ ${mCommonFields}
347
+ data {
348
+ id
349
+ createdDateTime: creationTime
350
+ receiverVID
351
+ rSSI
352
+ transmitterVID
353
+ opVersion
354
+ deleted
355
+ disabled
356
+ }
357
+ }
358
+ }`,
359
+ referenceLinks: `
360
+ subscription ReferenceLink($version: Int!, $opVersion: String)
361
+ {
362
+ oreference_getlinks(version: $version, opversion: $opVersion, subscribe: true)
363
+ {
364
+ ${mCommonFields}
365
+ data {
366
+ id
367
+ type
368
+ createdDateTime: creationTime
369
+ referenceId1
370
+ referenceId2
371
+ autoGenerated
372
+ version,
373
+ opVersion,
374
+ deleted
375
+ }
376
+ }
377
+ }`,
378
+ lostTransmitters: `
379
+ subscription lostTransmitters($opVersion: String) {
380
+ otrackers_losttransmitters(
381
+ subscribe: true
382
+ opversion: $opVersion
383
+ ) {
384
+ type
385
+ total
386
+ deleteId
387
+ data {
388
+ id:transmitterVID
389
+ opVersion
390
+ transmitterReferenceGroupId
391
+ transmitterReferenceType
392
+ transmitterReferenceGroupPath
393
+ lostBy {
394
+ transmitterVID
395
+ receiverVID
396
+ startTime
397
+ endTime
398
+ locationInfo {
399
+ date
400
+ speed
401
+ bearing
402
+ accuracy
403
+ altitude
404
+ longitude
405
+ latitude
406
+ }
407
+ receiverTrackerType
408
+ }
409
+ }
410
+ deleteVersion
411
+ }
412
+ }
413
+ `,
414
+ reports: `
415
+ subscription Reports($version: Int!) {
416
+ mreports_getreport(version: $version, subscribe: true)
417
+ {
418
+ ${mCommonFields}
419
+ data {
420
+ id
421
+ name
422
+ description
423
+ route
424
+ version
425
+ }
426
+ }
427
+ }
428
+ `,
429
+ jobs: `subscription jobs($version: Int!) {
430
+ mjob_get(version:$version, subscribe: true) {
431
+ ${mCommonFields}
432
+ data {
433
+ id
434
+ createdDateTime
435
+ name
436
+ description
437
+ version
438
+ disabled
439
+ deleted
440
+ trigger {
441
+ __typename
442
+ ... on QMJobTriggerAssetFound {
443
+ assetId
444
+ }
445
+ ... on QMJobTriggerOneshot {
446
+ when
447
+ }
448
+ ... on QMJobTriggerScheduleTimeOfDay {
449
+ startTime
450
+ period
451
+ lastRun
452
+ interval
453
+ }
454
+ ... on QMJobTriggerMonitor
455
+ {
456
+ initialCount
457
+ initialCheck
458
+ url
459
+ }
460
+ ... on QMJobTriggerReferenceLost
461
+ {
462
+ referenceId
463
+ trackerVID
464
+ }
465
+ }
466
+ action {
467
+ __typename
468
+ ... on QMJobActionAssetFoundMail {
469
+ actionType
470
+ assetId
471
+ references
472
+ groups
473
+ }
474
+ ... on QMJobActionReport {
475
+ actionType
476
+ reports {
477
+ reportId
478
+ args {name value }
479
+ }
480
+ groups
481
+ references
482
+ dontSendEmptyReport
483
+ }
484
+ ... on QMJobActionSMS {
485
+ actionType
486
+ userId
487
+ }
488
+ }
489
+ }
490
+ }
491
+ }`,
492
+ cycles: `subscription cycles($version: Int!) {
493
+ mcycle_getcycles(version: $version, subscribe: true) {
494
+ ${mCommonFields}
495
+ data {
496
+ id
497
+ name
498
+ isActive
499
+ labelFilter
500
+ startStepId
501
+ stopStepId
502
+ cancelStepId
503
+ deleted
504
+ version
505
+ steps {
506
+ stepId
507
+ name
508
+ estimateDurationInSeconds
509
+ displayOrder
510
+ onlyOnce
511
+ enterRules {
512
+ __typename
513
+ ... on QMFlowRuleOnExitSteps {
514
+ ruleId
515
+ exitStepIds
516
+ }
517
+ ... on QMTrackingEnterRuleReferenceLink {
518
+ ruleId
519
+ referenceIds
520
+ gracePeriodInSeconds
521
+ whenActive
522
+ }
523
+ ... on QMEnterRuleOnReferenceCreate {
524
+ ruleId
525
+ }
526
+ ... on QMFlowForeignEnterRuleOnEnter {
527
+ foreignCycleRelations{
528
+ foreignCycleId
529
+ foreignStepId
530
+ }
531
+ ruleId
532
+ }
533
+ ... on QMTrackingEnterRuleNearestReferenceLink {
534
+ referenceIds
535
+ ruleId
536
+ gracePeriodInSeconds
537
+ }
538
+ }
539
+ exitRules {
540
+ __typename
541
+ ... on QMFlowRuleOnEnterSteps {
542
+ ruleId
543
+ enterStepIds
544
+ }
545
+ ... on QMTrackingExitRuleReferenceLink {
546
+ ruleId
547
+ referenceIds
548
+ gracePeriodInSeconds
549
+ whenActive
550
+ }
551
+ ... on QMFlowForeignExitRuleOnEnter {
552
+ foreignCycleRelations {
553
+ foreignCycleId
554
+ foreignStepId
555
+ }
556
+ ruleId
557
+ }
558
+ ... on QMTrackingExitRuleNearestReferenceLink {
559
+ referenceIds
560
+ ruleId
561
+ gracePeriodInSeconds
562
+ }
563
+ }
564
+ }
565
+ }
566
+ }
567
+ }`,
568
+ meshDiagnostics: `
569
+ subscription meshdiagnostics($opVersion: String) {
570
+ otrackers_meshdiagnostics(
571
+ opversion: $opVersion,
572
+ subscribe: true
573
+ ) {
574
+ type
575
+ total
576
+ deleteId
577
+ data {
578
+ id: vID
579
+ vID
580
+ stamp
581
+ opVersion
582
+ advertiserCost
583
+ errorCodes
584
+ nextHopAddress
585
+ nextHopVID
586
+ nextHopPower
587
+ nextHopQuality
588
+ nextHopRSSI
589
+ qualityIndicator
590
+ routersInNeighborhood
591
+ sinkAddress
592
+ sinkVID
593
+ }
594
+ deleteVersion
595
+ }
596
+ }
597
+ `,
598
+ gps: `
599
+ subscription getpositionbulk($opVersion: String) {
600
+ otrackers_getpositionsbulk(
601
+ includeInitial: true
602
+ subscribe: true
603
+ opversion: $opVersion
604
+ ) {
605
+ type
606
+ total
607
+ deleteId
608
+ data {
609
+ opVersion
610
+ referenceGroupId
611
+ referenceType
612
+ referenceGroupPath
613
+ stamp
614
+ locationInfo {
615
+ date
616
+ speed
617
+ bearing
618
+ accuracy
619
+ altitude
620
+ longitude
621
+ latitude
622
+ }
623
+ isFixed
624
+ id:trackerVID
625
+ }
626
+ deleteVersion
627
+ }
628
+ }
629
+ `,
630
+ linkconnected: `subscription linkconnected($opVersion: String) {
631
+ otrackers_linkconnectedbulk(subscribe: true, includeInitial: true, opVersion: $opVersion) {
632
+ type
633
+ total
634
+ deleteId
635
+ data{
636
+ id: vID
637
+ opVersion
638
+ when
639
+ }
640
+ deleteVersion
641
+ }
642
+ }`,
643
+ connected: `subscription connected($opVersion: String) {
644
+ otrackers_connectedbulk(subscribe: true, includeInitial: true, opVersion: $opVersion) {
645
+ type
646
+ total
647
+ deleteId
648
+ data{
649
+ id: vID
650
+ opVersion
651
+ when
652
+ }
653
+ deleteVersion
654
+ }
655
+ }`,
656
+ voltage: `subscription voltage($opVersion: String) {
657
+ otrackers_infoanybulk(subscribe: true, includeInitial: true, fields:[EXTERNAL_VOLTAGE], opVersion: $opVersion) {
658
+ type
659
+ total
660
+ deleteId
661
+ deleteVersion
662
+ data {
663
+ id: vID
664
+ opVersion
665
+ field
666
+ value
667
+ stamp
668
+ }
669
+ }
670
+ }`,
671
+ internalvoltage: `subscription internalvoltage($opVersion: String) {
672
+ otrackers_infoanybulk(subscribe: true, includeInitial: true, fields:[INTERNAL_VOLTAGE, BATTERY_LEVEL], opVersion: $opVersion) {
673
+ type
674
+ total
675
+ deleteId
676
+ deleteVersion
677
+ data {
678
+ id: vID
679
+ opVersion
680
+ field
681
+ value
682
+ stamp
683
+ }
684
+ }
685
+ }`,
686
+ unplug: `subscription unplug($opVersion: String) {
687
+ otrackers_infoanybulk(subscribe: true, includeInitial: true, fields:[UNPLUG], opVersion: $opVersion) {
688
+ type
689
+ total
690
+ deleteId
691
+ deleteVersion
692
+ data {
693
+ id: vID
694
+ opVersion
695
+ field
696
+ value
697
+ stamp
698
+ }
699
+ }
700
+ }`,
701
+ temperature: `subscription temperature($opVersion: String) {
702
+ otrackers_infoanybulk(subscribe: true, includeInitial: true, fields:[TEMPERATURE], opVersion: $opVersion) {
703
+ type
704
+ total
705
+ deleteId
706
+ deleteVersion
707
+ data {
708
+ id: vID
709
+ opVersion
710
+ value
711
+ stamp
712
+ }
713
+ }
714
+ }`,
715
+ meshscanner: `subscription temperature($opVersion: String) {
716
+ otrackers_infoanybulk(subscribe: true, includeInitial: true, fields:[MESH_GATE_ON], opVersion: $opVersion) {
717
+ type
718
+ total
719
+ deleteId
720
+ deleteVersion
721
+ data {
722
+ id: vID
723
+ opVersion
724
+ value
725
+ stamp
726
+ }
727
+ }
728
+ }`,
729
+ meshdisconnectslasthour: `subscription disconnects($opVersion: String) {
730
+ otrackers_infoanybulk(subscribe: true, includeInitial: true, fields:[DISCONNECTED_IN_THE_LAST_HOUR], opVersion: $opVersion) {
731
+ type
732
+ total
733
+ deleteId
734
+ deleteVersion
735
+ data {
736
+ id: vID
737
+ opVersion
738
+ value
739
+ stamp
740
+ }
741
+ }
742
+ }`,
743
+ activecounter: `subscription activecounter($opVersion: String) {
744
+ otrackers_infoanybulk(subscribe: true, includeInitial: true, fields:[ACTIVE_COUNTER], opVersion: $opVersion) {
745
+ type
746
+ total
747
+ deleteId
748
+ deleteVersion
749
+ data {
750
+ id: vID
751
+ opVersion
752
+ value
753
+ stamp
754
+ }
755
+ }
756
+ }`,
757
+ workseconds: `subscription workseconds($opVersion: String) {
758
+ otrackers_infoanybulk(subscribe: true, includeInitial: true, fields:[WORK_SECONDS], opVersion: $opVersion) {
759
+ type
760
+ total
761
+ deleteId
762
+ deleteVersion
763
+ data {
764
+ id: vID
765
+ opVersion
766
+ value
767
+ stamp
768
+ }
769
+ }
770
+ }`,
771
+ calculatedodometer: `subscription calculatedodometer($opVersion: String) {
772
+ otrackers_infoanybulk(subscribe: true, includeInitial: true, fields:[CALCULATED_ODOMETER], opVersion: $opVersion) {
773
+ type
774
+ total
775
+ deleteId
776
+ deleteVersion
777
+ data {
778
+ id: vID
779
+ opVersion
780
+ value
781
+ stamp
782
+ }
783
+ }
784
+ }`,
785
+ batterypercent: `subscription batterypercent($opVersion: String) {
786
+ otrackers_infoanybulk(subscribe: true, includeInitial: true, fields:[BATTERY_PERCENT], opVersion: $opVersion) {
787
+ type
788
+ total
789
+ deleteId
790
+ deleteVersion
791
+ data {
792
+ id: vID
793
+ opVersion
794
+ value
795
+ stamp
796
+ }
797
+ }
798
+ }`,
799
+ workignition: `subscription workignition($opVersion: String) {
800
+ otrackers_infoanybulk(subscribe: true, includeInitial: true, fields:[WORK_IGNITION], opVersion: $opVersion) {
801
+ type
802
+ total
803
+ deleteId
804
+ deleteVersion
805
+ data {
806
+ id: vID
807
+ opVersion
808
+ field
809
+ value
810
+ stamp
811
+ }
812
+ }
813
+ }`,
814
+ tripignition: `subscription tripignition($opVersion: String) {
815
+ otrackers_infoanybulk(subscribe: true, includeInitial: true, fields:[TRIP_IGNITION], opVersion: $opVersion) {
816
+ type
817
+ total
818
+ deleteId
819
+ deleteVersion
820
+ data {
821
+ id: vID
822
+ opVersion
823
+ field
824
+ value
825
+ stamp
826
+ }
827
+ }
828
+ }`,
829
+ activecycles: `subscription activecycles($opVersion: String){
830
+ ocycle_activecycles(
831
+ includeInitial: true
832
+ subscribe: true
833
+ opversion: $opVersion
834
+ ) {
835
+ type
836
+ total
837
+ deleteId
838
+ data {
839
+ id
840
+ cycleId
841
+ startedAt
842
+ finishedAt
843
+ status
844
+ referenceId
845
+ opVersion
846
+ }
847
+ deleteVersion
848
+ }
849
+ }`,
850
+ activesteps: `subscription activesteps($opVersion: String) {
851
+ ocycle_activesteps(
852
+ includeInitial: true
853
+ subscribe: true
854
+ opversion: $opVersion
855
+ ) {
856
+ type
857
+ total
858
+ deleteId
859
+ data {
860
+ id
861
+ stepId
862
+ name
863
+ estimateDurationInSeconds
864
+ displayOrder
865
+ cycleStateId
866
+ enterStamp
867
+ exitStamp
868
+ timeSpentInSeconds
869
+ opVersion
870
+ }
871
+ deleteVersion
872
+ },
873
+ }
874
+ `,
875
+ referenceGeoLinks: `subscription referenceGeoLinks($opversion: String){
876
+ oreference_getreferencegeolinksBulk(
877
+ opversion: $opversion
878
+ subscribe: true
879
+ ) {
880
+ type
881
+ total
882
+ deleteId
883
+ data {
884
+ id
885
+ creationTime
886
+ siteId
887
+ referenceId
888
+ opVersion
889
+ deleted
890
+ }
891
+ deleteVersion
892
+ }
893
+ }`,
894
+ trips: `subscription trips($opVersion: String) {
895
+ otrip_trips(opversion: $opVersion, subscribe: true) {
896
+ type
897
+ total
898
+ deleteId
899
+ data {
900
+ id: vID
901
+ vID
902
+ start
903
+ stop
904
+ routeDistanceInMeters
905
+ opVersion
906
+ referenceGroupId
907
+ referenceType
908
+ referenceGroupPath
909
+ startPoint: startWayPoint {
910
+ date
911
+ speed
912
+ longitude
913
+ latitude
914
+ }
915
+ endPoint: endWayPoint {
916
+ date
917
+ speed
918
+ longitude
919
+ latitude
920
+ }
921
+ wayPoints: waypoints {
922
+ date
923
+ latitude
924
+ longitude
925
+ speed
926
+ }
927
+ }
928
+ deleteVersion
929
+ }
930
+ }`,
931
+ messages: `
932
+ subscription Messages($version:Int!) {
933
+ message_getweb(version: $version) {
934
+ ${mCommonFields}
935
+ data {
936
+ id
937
+ multiId
938
+ version
939
+ createdAt
940
+ from { id fullName mobilePhoneNumber mobileCountryCode email language }
941
+ to { id fullName mobilePhoneNumber mobileCountryCode email language }
942
+ title
943
+ content
944
+ shortContent
945
+ attachmentUrl
946
+ type
947
+ status
948
+ transportTypes
949
+ emailStatus { success errorMessage }
950
+ smsStatus { success errorMessage }
951
+ additionalInfo
952
+ emailTemplate
953
+ deleted
954
+ }
955
+ }
956
+ }
957
+ `,
958
+ // trips2: `subscription trips($opVersion: String) {
959
+ // otrip_trips2(subscribe: true, opversion: $opVersion) {
960
+ // type
961
+ // total
962
+ // deleteId
963
+ // data {
964
+ // id: trackerVID
965
+ // opVersion
966
+ // trips {
967
+ // start {
968
+ // timestamp
969
+ // time
970
+ // latitude
971
+ // longitude
972
+ // }
973
+ // end {
974
+ // timestamp
975
+ // time
976
+ // latitude
977
+ // longitude
978
+ // }
979
+ // distance
980
+ // completed
981
+ // }
982
+ // }
983
+ // deleteVersion
984
+ // }
985
+ // }`
986
+ };
987
+ exports.RequiredMirrors = {
988
+ systemSettings: `subscription systemsetting($version: Int!) {
989
+ mcommon_systemsettings(version: $version, subscribe: true) {
990
+ type
991
+ total
992
+ deleteId
993
+ data {
994
+ version
995
+ id: groupName
996
+ settings {
997
+ id
998
+ name
999
+ level
1000
+ parent
1001
+ valueOrigin
1002
+ value {
1003
+ isVisible
1004
+ hasChildren
1005
+ settingValue
1006
+ type
1007
+ }
1008
+ inputHtml
1009
+ }
1010
+ }
1011
+ deleteVersion
1012
+ }
1013
+ }`,
1014
+ settings: `
1015
+ subscription settings($version: Int!){
1016
+ mcommon_settings(version: $version, subscribe: true) {
1017
+ type
1018
+ total
1019
+ deleteId
1020
+ data {
1021
+ id: groupId
1022
+ version
1023
+ groupName
1024
+ settings {
1025
+ id
1026
+ name
1027
+ level
1028
+ parent
1029
+ valueOrigin
1030
+ value {
1031
+ isVisible
1032
+ hasChildren
1033
+ settingValue
1034
+ type
1035
+ }
1036
+ inputHtml
1037
+ }
1038
+ }
1039
+ deleteVersion
1040
+ }
1041
+ }`
1042
+ };
1043
+ exports.TempSubscriptions = {};
1044
+ //# sourceMappingURL=mirrors.js.map