@fatehan/tsrp 1.4.44 → 1.4.46
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/activities/camera.d.ts +0 -2
- package/dist/fatehan/activities/camera.d.ts.map +1 -1
- package/dist/fatehan/activities/camera.js +0 -257
- package/dist/fatehan/activities/workflow.d.ts +20 -30
- package/dist/fatehan/activities/workflow.d.ts.map +1 -1
- package/dist/fatehan/activities/workflow.js +0 -718
- package/dist/fatehan/apis/client.d.ts +10 -12
- package/dist/fatehan/apis/client.d.ts.map +1 -1
- package/dist/fatehan/apis/client.js +23 -1015
- package/dist/fatehan/areas/area.d.ts +11 -15
- package/dist/fatehan/areas/area.d.ts.map +1 -1
- package/dist/fatehan/areas/area.js +0 -271
- package/dist/fatehan/devices/devices.d.ts +3 -7
- package/dist/fatehan/devices/devices.d.ts.map +1 -1
- package/dist/fatehan/devices/devices.js +0 -911
- package/dist/fatehan/devices/maintenance.d.ts +3 -7
- package/dist/fatehan/devices/maintenance.d.ts.map +1 -1
- package/dist/fatehan/devices/maintenance.js +0 -189
- package/dist/fatehan/financial/financial.d.ts +14 -16
- package/dist/fatehan/financial/financial.d.ts.map +1 -1
- package/dist/fatehan/financial/financial.js +0 -538
- package/dist/fatehan/google/protobuf/descriptor.d.ts +0 -42
- package/dist/fatehan/google/protobuf/descriptor.d.ts.map +1 -1
- package/dist/fatehan/google/protobuf/descriptor.js +0 -1864
- package/dist/fatehan/google/protobuf/duration.d.ts +0 -2
- package/dist/fatehan/google/protobuf/duration.d.ts.map +1 -1
- package/dist/fatehan/google/protobuf/duration.js +0 -19
- package/dist/fatehan/google/protobuf/field_mask.d.ts +0 -2
- package/dist/fatehan/google/protobuf/field_mask.d.ts.map +1 -1
- package/dist/fatehan/google/protobuf/field_mask.js +0 -12
- package/dist/fatehan/google/protobuf/timestamp.d.ts +0 -2
- package/dist/fatehan/google/protobuf/timestamp.d.ts.map +1 -1
- package/dist/fatehan/google/protobuf/timestamp.js +0 -19
- package/dist/fatehan/identities/authentication.d.ts +13 -15
- package/dist/fatehan/identities/authentication.d.ts.map +1 -1
- package/dist/fatehan/identities/authentication.js +0 -339
- package/dist/fatehan/identities/identities.d.ts +6 -12
- package/dist/fatehan/identities/identities.d.ts.map +1 -1
- package/dist/fatehan/identities/identities.js +0 -4069
- package/dist/fatehan/models/fusion.d.ts +5 -7
- package/dist/fatehan/models/fusion.d.ts.map +1 -1
- package/dist/fatehan/models/fusion.js +0 -494
- package/dist/fatehan/models/models.d.ts +6 -10
- package/dist/fatehan/models/models.d.ts.map +1 -1
- package/dist/fatehan/models/models.js +1 -554
- package/dist/fatehan/notifies/notify.d.ts +10 -24
- package/dist/fatehan/notifies/notify.d.ts.map +1 -1
- package/dist/fatehan/notifies/notify.js +0 -1096
- package/dist/fatehan/packets/dataModel.d.ts +18 -48
- package/dist/fatehan/packets/dataModel.d.ts.map +1 -1
- package/dist/fatehan/packets/dataModel.js +34 -7015
- package/dist/fatehan/packets/dataModule.d.ts +2 -6
- package/dist/fatehan/packets/dataModule.d.ts.map +1 -1
- package/dist/fatehan/packets/dataModule.js +0 -167
- package/dist/fatehan/packets/messages.d.ts +5 -9
- package/dist/fatehan/packets/messages.d.ts.map +1 -1
- package/dist/fatehan/packets/messages.js +0 -280
- package/dist/fatehan/reports/report.d.ts +87 -115
- package/dist/fatehan/reports/report.d.ts.map +1 -1
- package/dist/fatehan/reports/report.js +3 -3112
- package/dist/fatehan/services/api.d.ts +14 -14
- package/dist/fatehan/services/api.d.ts.map +1 -1
- package/dist/fatehan/services/api.js +29 -1254
- package/dist/fatehan/services/repositories.d.ts +6 -8
- package/dist/fatehan/services/repositories.d.ts.map +1 -1
- package/dist/fatehan/services/repositories.js +0 -191
- package/dist/fatehan/trips/trip.d.ts +18 -30
- package/dist/fatehan/trips/trip.d.ts.map +1 -1
- package/dist/fatehan/trips/trip.js +0 -1662
- package/dist/fatehan/utils/buf/validate/validate.d.ts +0 -6
- package/dist/fatehan/utils/buf/validate/validate.d.ts.map +1 -1
- package/dist/fatehan/utils/buf/validate/validate.js +0 -1318
- package/package.json +1 -1
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
/* eslint-disable */
|
|
7
7
|
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
8
8
|
import Long from "long";
|
|
9
|
-
import { Area
|
|
9
|
+
import { Area } from "../areas/area";
|
|
10
10
|
import { CommandAction, SystemIo } from "../devices/devices";
|
|
11
|
-
import { Maintenance
|
|
11
|
+
import { Maintenance } from "../devices/maintenance";
|
|
12
12
|
import { Currency, Order } from "../financial/financial";
|
|
13
13
|
import { AccessToken, Identity } from "../identities/authentication";
|
|
14
14
|
import { Permission, User } from "../identities/identities";
|
|
@@ -49,16 +49,6 @@ export const EventTemplateShowRequest = {
|
|
|
49
49
|
}
|
|
50
50
|
return message;
|
|
51
51
|
},
|
|
52
|
-
fromJSON(object) {
|
|
53
|
-
return { eventTemplateId: isSet(object.eventTemplateId) ? Long.fromValue(object.eventTemplateId) : Long.UZERO };
|
|
54
|
-
},
|
|
55
|
-
toJSON(message) {
|
|
56
|
-
const obj = {};
|
|
57
|
-
if (!message.eventTemplateId.equals(Long.UZERO)) {
|
|
58
|
-
obj.eventTemplateId = (message.eventTemplateId || Long.UZERO).toString();
|
|
59
|
-
}
|
|
60
|
-
return obj;
|
|
61
|
-
},
|
|
62
52
|
create(base) {
|
|
63
53
|
return EventTemplateShowRequest.fromPartial(base ?? {});
|
|
64
54
|
},
|
|
@@ -112,22 +102,6 @@ export const EventShowRequest = {
|
|
|
112
102
|
}
|
|
113
103
|
return message;
|
|
114
104
|
},
|
|
115
|
-
fromJSON(object) {
|
|
116
|
-
return {
|
|
117
|
-
eventId: isSet(object.eventId) ? Long.fromValue(object.eventId) : Long.UZERO,
|
|
118
|
-
deviceId: isSet(object.deviceId) ? Long.fromValue(object.deviceId) : Long.UZERO,
|
|
119
|
-
};
|
|
120
|
-
},
|
|
121
|
-
toJSON(message) {
|
|
122
|
-
const obj = {};
|
|
123
|
-
if (!message.eventId.equals(Long.UZERO)) {
|
|
124
|
-
obj.eventId = (message.eventId || Long.UZERO).toString();
|
|
125
|
-
}
|
|
126
|
-
if (!message.deviceId.equals(Long.UZERO)) {
|
|
127
|
-
obj.deviceId = (message.deviceId || Long.UZERO).toString();
|
|
128
|
-
}
|
|
129
|
-
return obj;
|
|
130
|
-
},
|
|
131
105
|
create(base) {
|
|
132
106
|
return EventShowRequest.fromPartial(base ?? {});
|
|
133
107
|
},
|
|
@@ -174,16 +148,6 @@ export const CommandActionShowRequest = {
|
|
|
174
148
|
}
|
|
175
149
|
return message;
|
|
176
150
|
},
|
|
177
|
-
fromJSON(object) {
|
|
178
|
-
return { commandActionId: isSet(object.commandActionId) ? Long.fromValue(object.commandActionId) : Long.UZERO };
|
|
179
|
-
},
|
|
180
|
-
toJSON(message) {
|
|
181
|
-
const obj = {};
|
|
182
|
-
if (!message.commandActionId.equals(Long.UZERO)) {
|
|
183
|
-
obj.commandActionId = (message.commandActionId || Long.UZERO).toString();
|
|
184
|
-
}
|
|
185
|
-
return obj;
|
|
186
|
-
},
|
|
187
151
|
create(base) {
|
|
188
152
|
return CommandActionShowRequest.fromPartial(base ?? {});
|
|
189
153
|
},
|
|
@@ -237,22 +201,6 @@ export const SubscriptionMethodShowRequest = {
|
|
|
237
201
|
}
|
|
238
202
|
return message;
|
|
239
203
|
},
|
|
240
|
-
fromJSON(object) {
|
|
241
|
-
return {
|
|
242
|
-
eventId: isSet(object.eventId) ? Long.fromValue(object.eventId) : Long.UZERO,
|
|
243
|
-
deviceId: isSet(object.deviceId) ? Long.fromValue(object.deviceId) : Long.UZERO,
|
|
244
|
-
};
|
|
245
|
-
},
|
|
246
|
-
toJSON(message) {
|
|
247
|
-
const obj = {};
|
|
248
|
-
if (!message.eventId.equals(Long.UZERO)) {
|
|
249
|
-
obj.eventId = (message.eventId || Long.UZERO).toString();
|
|
250
|
-
}
|
|
251
|
-
if (!message.deviceId.equals(Long.UZERO)) {
|
|
252
|
-
obj.deviceId = (message.deviceId || Long.UZERO).toString();
|
|
253
|
-
}
|
|
254
|
-
return obj;
|
|
255
|
-
},
|
|
256
204
|
create(base) {
|
|
257
205
|
return SubscriptionMethodShowRequest.fromPartial(base ?? {});
|
|
258
206
|
},
|
|
@@ -289,13 +237,6 @@ export const SubscriptionMethodIndexRequest = {
|
|
|
289
237
|
}
|
|
290
238
|
return message;
|
|
291
239
|
},
|
|
292
|
-
fromJSON(_) {
|
|
293
|
-
return {};
|
|
294
|
-
},
|
|
295
|
-
toJSON(_) {
|
|
296
|
-
const obj = {};
|
|
297
|
-
return obj;
|
|
298
|
-
},
|
|
299
240
|
create(base) {
|
|
300
241
|
return SubscriptionMethodIndexRequest.fromPartial(base ?? {});
|
|
301
242
|
},
|
|
@@ -336,16 +277,6 @@ export const EventTemplateDestroyRequest = {
|
|
|
336
277
|
}
|
|
337
278
|
return message;
|
|
338
279
|
},
|
|
339
|
-
fromJSON(object) {
|
|
340
|
-
return { eventId: isSet(object.eventId) ? Long.fromValue(object.eventId) : Long.UZERO };
|
|
341
|
-
},
|
|
342
|
-
toJSON(message) {
|
|
343
|
-
const obj = {};
|
|
344
|
-
if (!message.eventId.equals(Long.UZERO)) {
|
|
345
|
-
obj.eventId = (message.eventId || Long.UZERO).toString();
|
|
346
|
-
}
|
|
347
|
-
return obj;
|
|
348
|
-
},
|
|
349
280
|
create(base) {
|
|
350
281
|
return EventTemplateDestroyRequest.fromPartial(base ?? {});
|
|
351
282
|
},
|
|
@@ -389,16 +320,6 @@ export const EventTemplateDestroyResponse = {
|
|
|
389
320
|
}
|
|
390
321
|
return message;
|
|
391
322
|
},
|
|
392
|
-
fromJSON(object) {
|
|
393
|
-
return { status: isSet(object.status) ? globalThis.Boolean(object.status) : false };
|
|
394
|
-
},
|
|
395
|
-
toJSON(message) {
|
|
396
|
-
const obj = {};
|
|
397
|
-
if (message.status !== false) {
|
|
398
|
-
obj.status = message.status;
|
|
399
|
-
}
|
|
400
|
-
return obj;
|
|
401
|
-
},
|
|
402
323
|
create(base) {
|
|
403
324
|
return EventTemplateDestroyResponse.fromPartial(base ?? {});
|
|
404
325
|
},
|
|
@@ -450,22 +371,6 @@ export const EventDestroyRequest = {
|
|
|
450
371
|
}
|
|
451
372
|
return message;
|
|
452
373
|
},
|
|
453
|
-
fromJSON(object) {
|
|
454
|
-
return {
|
|
455
|
-
eventId: isSet(object.eventId) ? Long.fromValue(object.eventId) : Long.UZERO,
|
|
456
|
-
deviceId: isSet(object.deviceId) ? Long.fromValue(object.deviceId) : Long.UZERO,
|
|
457
|
-
};
|
|
458
|
-
},
|
|
459
|
-
toJSON(message) {
|
|
460
|
-
const obj = {};
|
|
461
|
-
if (!message.eventId.equals(Long.UZERO)) {
|
|
462
|
-
obj.eventId = (message.eventId || Long.UZERO).toString();
|
|
463
|
-
}
|
|
464
|
-
if (!message.deviceId.equals(Long.UZERO)) {
|
|
465
|
-
obj.deviceId = (message.deviceId || Long.UZERO).toString();
|
|
466
|
-
}
|
|
467
|
-
return obj;
|
|
468
|
-
},
|
|
469
374
|
create(base) {
|
|
470
375
|
return EventDestroyRequest.fromPartial(base ?? {});
|
|
471
376
|
},
|
|
@@ -512,16 +417,6 @@ export const EventDestroyResponse = {
|
|
|
512
417
|
}
|
|
513
418
|
return message;
|
|
514
419
|
},
|
|
515
|
-
fromJSON(object) {
|
|
516
|
-
return { status: isSet(object.status) ? globalThis.Boolean(object.status) : false };
|
|
517
|
-
},
|
|
518
|
-
toJSON(message) {
|
|
519
|
-
const obj = {};
|
|
520
|
-
if (message.status !== false) {
|
|
521
|
-
obj.status = message.status;
|
|
522
|
-
}
|
|
523
|
-
return obj;
|
|
524
|
-
},
|
|
525
420
|
create(base) {
|
|
526
421
|
return EventDestroyResponse.fromPartial(base ?? {});
|
|
527
422
|
},
|
|
@@ -633,46 +528,6 @@ export const EventTemplateIndexResponse = {
|
|
|
633
528
|
}
|
|
634
529
|
return message;
|
|
635
530
|
},
|
|
636
|
-
fromJSON(object) {
|
|
637
|
-
return {
|
|
638
|
-
currentPage: isSet(object.current_page) ? globalThis.Number(object.current_page) : 0,
|
|
639
|
-
from: isSet(object.from) ? globalThis.Number(object.from) : 0,
|
|
640
|
-
to: isSet(object.to) ? globalThis.Number(object.to) : 0,
|
|
641
|
-
lastPage: isSet(object.last_page) ? globalThis.Number(object.last_page) : 0,
|
|
642
|
-
perPage: isSet(object.per_page) ? globalThis.Number(object.per_page) : 0,
|
|
643
|
-
cost: isSet(object.cost) ? Long.fromValue(object.cost) : Long.ZERO,
|
|
644
|
-
total: isSet(object.total) ? globalThis.Number(object.total) : 0,
|
|
645
|
-
data: globalThis.Array.isArray(object?.data) ? object.data.map((e) => EventTemplate.fromJSON(e)) : [],
|
|
646
|
-
};
|
|
647
|
-
},
|
|
648
|
-
toJSON(message) {
|
|
649
|
-
const obj = {};
|
|
650
|
-
if (message.currentPage !== 0) {
|
|
651
|
-
obj.current_page = Math.round(message.currentPage);
|
|
652
|
-
}
|
|
653
|
-
if (message.from !== 0) {
|
|
654
|
-
obj.from = Math.round(message.from);
|
|
655
|
-
}
|
|
656
|
-
if (message.to !== 0) {
|
|
657
|
-
obj.to = Math.round(message.to);
|
|
658
|
-
}
|
|
659
|
-
if (message.lastPage !== 0) {
|
|
660
|
-
obj.last_page = Math.round(message.lastPage);
|
|
661
|
-
}
|
|
662
|
-
if (message.perPage !== 0) {
|
|
663
|
-
obj.per_page = Math.round(message.perPage);
|
|
664
|
-
}
|
|
665
|
-
if (!message.cost.equals(Long.ZERO)) {
|
|
666
|
-
obj.cost = (message.cost || Long.ZERO).toString();
|
|
667
|
-
}
|
|
668
|
-
if (message.total !== 0) {
|
|
669
|
-
obj.total = Math.round(message.total);
|
|
670
|
-
}
|
|
671
|
-
if (message.data?.length) {
|
|
672
|
-
obj.data = message.data.map((e) => EventTemplate.toJSON(e));
|
|
673
|
-
}
|
|
674
|
-
return obj;
|
|
675
|
-
},
|
|
676
531
|
create(base) {
|
|
677
532
|
return EventTemplateIndexResponse.fromPartial(base ?? {});
|
|
678
533
|
},
|
|
@@ -814,61 +669,6 @@ export const EventTemplateIndexRequest = {
|
|
|
814
669
|
}
|
|
815
670
|
return message;
|
|
816
671
|
},
|
|
817
|
-
fromJSON(object) {
|
|
818
|
-
return {
|
|
819
|
-
deviceId: isSet(object.device_id) ? Long.fromValue(object.device_id) : undefined,
|
|
820
|
-
disablePagination: isSet(object.disable_pagination) ? globalThis.Boolean(object.disable_pagination) : false,
|
|
821
|
-
search: isSet(object.search) ? globalThis.String(object.search) : undefined,
|
|
822
|
-
page: isSet(object.page) ? globalThis.Number(object.page) : undefined,
|
|
823
|
-
pageSize: isSet(object.page_size) ? globalThis.Number(object.page_size) : undefined,
|
|
824
|
-
organizationId: isSet(object.organization_id) ? Long.fromValue(object.organization_id) : undefined,
|
|
825
|
-
queryFilter: isObject(object.query_filter)
|
|
826
|
-
? Object.entries(object.query_filter).reduce((acc, [key, value]) => {
|
|
827
|
-
acc[key] = FilterScope.fromJSON(value);
|
|
828
|
-
return acc;
|
|
829
|
-
}, {})
|
|
830
|
-
: {},
|
|
831
|
-
sort: isSet(object.sort) ? globalThis.String(object.sort) : undefined,
|
|
832
|
-
order: isSet(object.order) ? globalThis.String(object.order) : undefined,
|
|
833
|
-
};
|
|
834
|
-
},
|
|
835
|
-
toJSON(message) {
|
|
836
|
-
const obj = {};
|
|
837
|
-
if (message.deviceId !== undefined) {
|
|
838
|
-
obj.device_id = (message.deviceId || Long.UZERO).toString();
|
|
839
|
-
}
|
|
840
|
-
if (message.disablePagination !== false) {
|
|
841
|
-
obj.disable_pagination = message.disablePagination;
|
|
842
|
-
}
|
|
843
|
-
if (message.search !== undefined) {
|
|
844
|
-
obj.search = message.search;
|
|
845
|
-
}
|
|
846
|
-
if (message.page !== undefined) {
|
|
847
|
-
obj.page = Math.round(message.page);
|
|
848
|
-
}
|
|
849
|
-
if (message.pageSize !== undefined) {
|
|
850
|
-
obj.page_size = Math.round(message.pageSize);
|
|
851
|
-
}
|
|
852
|
-
if (message.organizationId !== undefined) {
|
|
853
|
-
obj.organization_id = (message.organizationId || Long.UZERO).toString();
|
|
854
|
-
}
|
|
855
|
-
if (message.queryFilter) {
|
|
856
|
-
const entries = Object.entries(message.queryFilter);
|
|
857
|
-
if (entries.length > 0) {
|
|
858
|
-
obj.query_filter = {};
|
|
859
|
-
entries.forEach(([k, v]) => {
|
|
860
|
-
obj.query_filter[k] = FilterScope.toJSON(v);
|
|
861
|
-
});
|
|
862
|
-
}
|
|
863
|
-
}
|
|
864
|
-
if (message.sort !== undefined) {
|
|
865
|
-
obj.sort = message.sort;
|
|
866
|
-
}
|
|
867
|
-
if (message.order !== undefined) {
|
|
868
|
-
obj.order = message.order;
|
|
869
|
-
}
|
|
870
|
-
return obj;
|
|
871
|
-
},
|
|
872
672
|
create(base) {
|
|
873
673
|
return EventTemplateIndexRequest.fromPartial(base ?? {});
|
|
874
674
|
},
|
|
@@ -937,22 +737,6 @@ export const EventTemplateIndexRequest_QueryFilterEntry = {
|
|
|
937
737
|
}
|
|
938
738
|
return message;
|
|
939
739
|
},
|
|
940
|
-
fromJSON(object) {
|
|
941
|
-
return {
|
|
942
|
-
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
|
943
|
-
value: isSet(object.value) ? FilterScope.fromJSON(object.value) : undefined,
|
|
944
|
-
};
|
|
945
|
-
},
|
|
946
|
-
toJSON(message) {
|
|
947
|
-
const obj = {};
|
|
948
|
-
if (message.key !== "") {
|
|
949
|
-
obj.key = message.key;
|
|
950
|
-
}
|
|
951
|
-
if (message.value !== undefined) {
|
|
952
|
-
obj.value = FilterScope.toJSON(message.value);
|
|
953
|
-
}
|
|
954
|
-
return obj;
|
|
955
|
-
},
|
|
956
740
|
create(base) {
|
|
957
741
|
return EventTemplateIndexRequest_QueryFilterEntry.fromPartial(base ?? {});
|
|
958
742
|
},
|
|
@@ -997,16 +781,6 @@ export const EventIndexRequest = {
|
|
|
997
781
|
}
|
|
998
782
|
return message;
|
|
999
783
|
},
|
|
1000
|
-
fromJSON(object) {
|
|
1001
|
-
return { deviceId: isSet(object.device_id) ? Long.fromValue(object.device_id) : Long.UZERO };
|
|
1002
|
-
},
|
|
1003
|
-
toJSON(message) {
|
|
1004
|
-
const obj = {};
|
|
1005
|
-
if (!message.deviceId.equals(Long.UZERO)) {
|
|
1006
|
-
obj.device_id = (message.deviceId || Long.UZERO).toString();
|
|
1007
|
-
}
|
|
1008
|
-
return obj;
|
|
1009
|
-
},
|
|
1010
784
|
create(base) {
|
|
1011
785
|
return EventIndexRequest.fromPartial(base ?? {});
|
|
1012
786
|
},
|
|
@@ -1060,22 +834,6 @@ export const EventIndexResponse = {
|
|
|
1060
834
|
}
|
|
1061
835
|
return message;
|
|
1062
836
|
},
|
|
1063
|
-
fromJSON(object) {
|
|
1064
|
-
return {
|
|
1065
|
-
cost: isSet(object.cost) ? globalThis.Number(object.cost) : 0,
|
|
1066
|
-
events: globalThis.Array.isArray(object?.events) ? object.events.map((e) => Event.fromJSON(e)) : [],
|
|
1067
|
-
};
|
|
1068
|
-
},
|
|
1069
|
-
toJSON(message) {
|
|
1070
|
-
const obj = {};
|
|
1071
|
-
if (message.cost !== 0) {
|
|
1072
|
-
obj.cost = Math.round(message.cost);
|
|
1073
|
-
}
|
|
1074
|
-
if (message.events?.length) {
|
|
1075
|
-
obj.events = message.events.map((e) => Event.toJSON(e));
|
|
1076
|
-
}
|
|
1077
|
-
return obj;
|
|
1078
|
-
},
|
|
1079
837
|
create(base) {
|
|
1080
838
|
return EventIndexResponse.fromPartial(base ?? {});
|
|
1081
839
|
},
|
|
@@ -1137,24 +895,6 @@ export const MaintenanceIndexRequest = {
|
|
|
1137
895
|
}
|
|
1138
896
|
return message;
|
|
1139
897
|
},
|
|
1140
|
-
fromJSON(object) {
|
|
1141
|
-
return {
|
|
1142
|
-
deviceId: isSet(object.device_id) ? Long.fromValue(object.device_id) : Long.UZERO,
|
|
1143
|
-
status: globalThis.Array.isArray(object?.status)
|
|
1144
|
-
? object.status.map((e) => maintenanceStatusFromJSON(e))
|
|
1145
|
-
: [],
|
|
1146
|
-
};
|
|
1147
|
-
},
|
|
1148
|
-
toJSON(message) {
|
|
1149
|
-
const obj = {};
|
|
1150
|
-
if (!message.deviceId.equals(Long.UZERO)) {
|
|
1151
|
-
obj.device_id = (message.deviceId || Long.UZERO).toString();
|
|
1152
|
-
}
|
|
1153
|
-
if (message.status?.length) {
|
|
1154
|
-
obj.status = message.status.map((e) => maintenanceStatusToJSON(e));
|
|
1155
|
-
}
|
|
1156
|
-
return obj;
|
|
1157
|
-
},
|
|
1158
898
|
create(base) {
|
|
1159
899
|
return MaintenanceIndexRequest.fromPartial(base ?? {});
|
|
1160
900
|
},
|
|
@@ -1229,34 +969,6 @@ export const MaintenanceIndexResponse = {
|
|
|
1229
969
|
}
|
|
1230
970
|
return message;
|
|
1231
971
|
},
|
|
1232
|
-
fromJSON(object) {
|
|
1233
|
-
return {
|
|
1234
|
-
device: isSet(object.device) ? DeviceRepo.fromJSON(object.device) : undefined,
|
|
1235
|
-
maintenance: globalThis.Array.isArray(object?.maintenance)
|
|
1236
|
-
? object.maintenance.map((e) => Maintenance.fromJSON(e))
|
|
1237
|
-
: [],
|
|
1238
|
-
statistics: isSet(object.statistics)
|
|
1239
|
-
? MaintenanceIndexResponse_Statistics.fromJSON(object.statistics)
|
|
1240
|
-
: undefined,
|
|
1241
|
-
cost: isSet(object.cost) ? globalThis.Number(object.cost) : 0,
|
|
1242
|
-
};
|
|
1243
|
-
},
|
|
1244
|
-
toJSON(message) {
|
|
1245
|
-
const obj = {};
|
|
1246
|
-
if (message.device !== undefined) {
|
|
1247
|
-
obj.device = DeviceRepo.toJSON(message.device);
|
|
1248
|
-
}
|
|
1249
|
-
if (message.maintenance?.length) {
|
|
1250
|
-
obj.maintenance = message.maintenance.map((e) => Maintenance.toJSON(e));
|
|
1251
|
-
}
|
|
1252
|
-
if (message.statistics !== undefined) {
|
|
1253
|
-
obj.statistics = MaintenanceIndexResponse_Statistics.toJSON(message.statistics);
|
|
1254
|
-
}
|
|
1255
|
-
if (message.cost !== 0) {
|
|
1256
|
-
obj.cost = Math.round(message.cost);
|
|
1257
|
-
}
|
|
1258
|
-
return obj;
|
|
1259
|
-
},
|
|
1260
972
|
create(base) {
|
|
1261
973
|
return MaintenanceIndexResponse.fromPartial(base ?? {});
|
|
1262
974
|
},
|
|
@@ -1315,22 +1027,6 @@ export const MaintenanceIndexResponse_MostUsed = {
|
|
|
1315
1027
|
}
|
|
1316
1028
|
return message;
|
|
1317
1029
|
},
|
|
1318
|
-
fromJSON(object) {
|
|
1319
|
-
return {
|
|
1320
|
-
count: isSet(object.count) ? globalThis.Number(object.count) : 0,
|
|
1321
|
-
service: isSet(object.service) ? globalThis.String(object.service) : "",
|
|
1322
|
-
};
|
|
1323
|
-
},
|
|
1324
|
-
toJSON(message) {
|
|
1325
|
-
const obj = {};
|
|
1326
|
-
if (message.count !== 0) {
|
|
1327
|
-
obj.count = Math.round(message.count);
|
|
1328
|
-
}
|
|
1329
|
-
if (message.service !== "") {
|
|
1330
|
-
obj.service = message.service;
|
|
1331
|
-
}
|
|
1332
|
-
return obj;
|
|
1333
|
-
},
|
|
1334
1030
|
create(base) {
|
|
1335
1031
|
return MaintenanceIndexResponse_MostUsed.fromPartial(base ?? {});
|
|
1336
1032
|
},
|
|
@@ -1403,32 +1099,6 @@ export const MaintenanceIndexResponse_Statistics = {
|
|
|
1403
1099
|
}
|
|
1404
1100
|
return message;
|
|
1405
1101
|
},
|
|
1406
|
-
fromJSON(object) {
|
|
1407
|
-
return {
|
|
1408
|
-
completed: isSet(object.completed) ? globalThis.Number(object.completed) : 0,
|
|
1409
|
-
notCompleted: isSet(object.not_completed) ? globalThis.Number(object.not_completed) : 0,
|
|
1410
|
-
total: isSet(object.total) ? globalThis.Number(object.total) : 0,
|
|
1411
|
-
mostUsedServices: globalThis.Array.isArray(object?.most_used_services)
|
|
1412
|
-
? object.most_used_services.map((e) => MaintenanceIndexResponse_MostUsed.fromJSON(e))
|
|
1413
|
-
: [],
|
|
1414
|
-
};
|
|
1415
|
-
},
|
|
1416
|
-
toJSON(message) {
|
|
1417
|
-
const obj = {};
|
|
1418
|
-
if (message.completed !== 0) {
|
|
1419
|
-
obj.completed = Math.round(message.completed);
|
|
1420
|
-
}
|
|
1421
|
-
if (message.notCompleted !== 0) {
|
|
1422
|
-
obj.not_completed = Math.round(message.notCompleted);
|
|
1423
|
-
}
|
|
1424
|
-
if (message.total !== 0) {
|
|
1425
|
-
obj.total = Math.round(message.total);
|
|
1426
|
-
}
|
|
1427
|
-
if (message.mostUsedServices?.length) {
|
|
1428
|
-
obj.most_used_services = message.mostUsedServices.map((e) => MaintenanceIndexResponse_MostUsed.toJSON(e));
|
|
1429
|
-
}
|
|
1430
|
-
return obj;
|
|
1431
|
-
},
|
|
1432
1102
|
create(base) {
|
|
1433
1103
|
return MaintenanceIndexResponse_Statistics.fromPartial(base ?? {});
|
|
1434
1104
|
},
|
|
@@ -1474,16 +1144,6 @@ export const AuthRequest = {
|
|
|
1474
1144
|
}
|
|
1475
1145
|
return message;
|
|
1476
1146
|
},
|
|
1477
|
-
fromJSON(object) {
|
|
1478
|
-
return { credential: isSet(object.credential) ? globalThis.String(object.credential) : "" };
|
|
1479
|
-
},
|
|
1480
|
-
toJSON(message) {
|
|
1481
|
-
const obj = {};
|
|
1482
|
-
if (message.credential !== "") {
|
|
1483
|
-
obj.credential = message.credential;
|
|
1484
|
-
}
|
|
1485
|
-
return obj;
|
|
1486
|
-
},
|
|
1487
1147
|
create(base) {
|
|
1488
1148
|
return AuthRequest.fromPartial(base ?? {});
|
|
1489
1149
|
},
|
|
@@ -1555,30 +1215,6 @@ export const AuthResponse = {
|
|
|
1555
1215
|
}
|
|
1556
1216
|
return message;
|
|
1557
1217
|
},
|
|
1558
|
-
fromJSON(object) {
|
|
1559
|
-
return {
|
|
1560
|
-
identity: isSet(object.identity) ? Identity.fromJSON(object.identity) : undefined,
|
|
1561
|
-
accessToken: isSet(object.accessToken) ? AccessToken.fromJSON(object.accessToken) : undefined,
|
|
1562
|
-
userRepo: isSet(object.userRepo) ? UserRepo.fromJSON(object.userRepo) : undefined,
|
|
1563
|
-
cost: isSet(object.cost) ? globalThis.Number(object.cost) : 0,
|
|
1564
|
-
};
|
|
1565
|
-
},
|
|
1566
|
-
toJSON(message) {
|
|
1567
|
-
const obj = {};
|
|
1568
|
-
if (message.identity !== undefined) {
|
|
1569
|
-
obj.identity = Identity.toJSON(message.identity);
|
|
1570
|
-
}
|
|
1571
|
-
if (message.accessToken !== undefined) {
|
|
1572
|
-
obj.accessToken = AccessToken.toJSON(message.accessToken);
|
|
1573
|
-
}
|
|
1574
|
-
if (message.userRepo !== undefined) {
|
|
1575
|
-
obj.userRepo = UserRepo.toJSON(message.userRepo);
|
|
1576
|
-
}
|
|
1577
|
-
if (message.cost !== 0) {
|
|
1578
|
-
obj.cost = Math.round(message.cost);
|
|
1579
|
-
}
|
|
1580
|
-
return obj;
|
|
1581
|
-
},
|
|
1582
1218
|
create(base) {
|
|
1583
1219
|
return AuthResponse.fromPartial(base ?? {});
|
|
1584
1220
|
},
|
|
@@ -1629,16 +1265,6 @@ export const IoRequest = {
|
|
|
1629
1265
|
}
|
|
1630
1266
|
return message;
|
|
1631
1267
|
},
|
|
1632
|
-
fromJSON(object) {
|
|
1633
|
-
return { deviceId: isSet(object.device_id) ? Long.fromValue(object.device_id) : undefined };
|
|
1634
|
-
},
|
|
1635
|
-
toJSON(message) {
|
|
1636
|
-
const obj = {};
|
|
1637
|
-
if (message.deviceId !== undefined) {
|
|
1638
|
-
obj.device_id = (message.deviceId || Long.UZERO).toString();
|
|
1639
|
-
}
|
|
1640
|
-
return obj;
|
|
1641
|
-
},
|
|
1642
1268
|
create(base) {
|
|
1643
1269
|
return IoRequest.fromPartial(base ?? {});
|
|
1644
1270
|
},
|
|
@@ -1702,26 +1328,6 @@ export const IoResponse = {
|
|
|
1702
1328
|
}
|
|
1703
1329
|
return message;
|
|
1704
1330
|
},
|
|
1705
|
-
fromJSON(object) {
|
|
1706
|
-
return {
|
|
1707
|
-
cost: isSet(object.cost) ? globalThis.Number(object.cost) : 0,
|
|
1708
|
-
records: isSet(object.records) ? globalThis.Number(object.records) : 0,
|
|
1709
|
-
ios: globalThis.Array.isArray(object?.ios) ? object.ios.map((e) => SystemIo.fromJSON(e)) : [],
|
|
1710
|
-
};
|
|
1711
|
-
},
|
|
1712
|
-
toJSON(message) {
|
|
1713
|
-
const obj = {};
|
|
1714
|
-
if (message.cost !== 0) {
|
|
1715
|
-
obj.cost = Math.round(message.cost);
|
|
1716
|
-
}
|
|
1717
|
-
if (message.records !== 0) {
|
|
1718
|
-
obj.records = Math.round(message.records);
|
|
1719
|
-
}
|
|
1720
|
-
if (message.ios?.length) {
|
|
1721
|
-
obj.ios = message.ios.map((e) => SystemIo.toJSON(e));
|
|
1722
|
-
}
|
|
1723
|
-
return obj;
|
|
1724
|
-
},
|
|
1725
1331
|
create(base) {
|
|
1726
1332
|
return IoResponse.fromPartial(base ?? {});
|
|
1727
1333
|
},
|
|
@@ -1785,28 +1391,6 @@ export const ConfigRequest = {
|
|
|
1785
1391
|
}
|
|
1786
1392
|
return message;
|
|
1787
1393
|
},
|
|
1788
|
-
fromJSON(object) {
|
|
1789
|
-
return {
|
|
1790
|
-
domain: isSet(object.domain) ? globalThis.String(object.domain) : undefined,
|
|
1791
|
-
partnerId: isSet(object.partner_id) ? Long.fromValue(object.partner_id) : undefined,
|
|
1792
|
-
includeSecurityConfig: isSet(object.include_security_config)
|
|
1793
|
-
? globalThis.Boolean(object.include_security_config)
|
|
1794
|
-
: false,
|
|
1795
|
-
};
|
|
1796
|
-
},
|
|
1797
|
-
toJSON(message) {
|
|
1798
|
-
const obj = {};
|
|
1799
|
-
if (message.domain !== undefined) {
|
|
1800
|
-
obj.domain = message.domain;
|
|
1801
|
-
}
|
|
1802
|
-
if (message.partnerId !== undefined) {
|
|
1803
|
-
obj.partner_id = (message.partnerId || Long.UZERO).toString();
|
|
1804
|
-
}
|
|
1805
|
-
if (message.includeSecurityConfig !== false) {
|
|
1806
|
-
obj.include_security_config = message.includeSecurityConfig;
|
|
1807
|
-
}
|
|
1808
|
-
return obj;
|
|
1809
|
-
},
|
|
1810
1394
|
create(base) {
|
|
1811
1395
|
return ConfigRequest.fromPartial(base ?? {});
|
|
1812
1396
|
},
|
|
@@ -1892,34 +1476,6 @@ export const ConfigResponse = {
|
|
|
1892
1476
|
}
|
|
1893
1477
|
return message;
|
|
1894
1478
|
},
|
|
1895
|
-
fromJSON(object) {
|
|
1896
|
-
return {
|
|
1897
|
-
cost: isSet(object.cost) ? globalThis.Number(object.cost) : 0,
|
|
1898
|
-
records: isSet(object.records) ? globalThis.Number(object.records) : 0,
|
|
1899
|
-
list: globalThis.Array.isArray(object?.list) ? object.list.map((e) => Config.fromJSON(e)) : [],
|
|
1900
|
-
appDesign: isSet(object.appDesign) ? ConfigResponse_AppDesignConfig.fromJSON(object.appDesign) : undefined,
|
|
1901
|
-
appSec: isSet(object.appSec) ? ConfigResponse_AppSecConfig.fromJSON(object.appSec) : undefined,
|
|
1902
|
-
};
|
|
1903
|
-
},
|
|
1904
|
-
toJSON(message) {
|
|
1905
|
-
const obj = {};
|
|
1906
|
-
if (message.cost !== 0) {
|
|
1907
|
-
obj.cost = Math.round(message.cost);
|
|
1908
|
-
}
|
|
1909
|
-
if (message.records !== 0) {
|
|
1910
|
-
obj.records = Math.round(message.records);
|
|
1911
|
-
}
|
|
1912
|
-
if (message.list?.length) {
|
|
1913
|
-
obj.list = message.list.map((e) => Config.toJSON(e));
|
|
1914
|
-
}
|
|
1915
|
-
if (message.appDesign !== undefined) {
|
|
1916
|
-
obj.appDesign = ConfigResponse_AppDesignConfig.toJSON(message.appDesign);
|
|
1917
|
-
}
|
|
1918
|
-
if (message.appSec !== undefined) {
|
|
1919
|
-
obj.appSec = ConfigResponse_AppSecConfig.toJSON(message.appSec);
|
|
1920
|
-
}
|
|
1921
|
-
return obj;
|
|
1922
|
-
},
|
|
1923
1479
|
create(base) {
|
|
1924
1480
|
return ConfigResponse.fromPartial(base ?? {});
|
|
1925
1481
|
},
|
|
@@ -2169,92 +1725,6 @@ export const ConfigResponse_AppDesignConfig = {
|
|
|
2169
1725
|
}
|
|
2170
1726
|
return message;
|
|
2171
1727
|
},
|
|
2172
|
-
fromJSON(object) {
|
|
2173
|
-
return {
|
|
2174
|
-
appName: isSet(object.appName) ? globalThis.String(object.appName) : "",
|
|
2175
|
-
logo: isSet(object.logo) ? globalThis.String(object.logo) : "",
|
|
2176
|
-
webBackground: isSet(object.webBackground) ? globalThis.String(object.webBackground) : "",
|
|
2177
|
-
primaryColor: isSet(object.primaryColor) ? globalThis.String(object.primaryColor) : "",
|
|
2178
|
-
appLogo: isSet(object.appLogo) ? globalThis.String(object.appLogo) : "",
|
|
2179
|
-
goftino: isSet(object.goftino) ? globalThis.String(object.goftino) : "",
|
|
2180
|
-
appBackground: isSet(object.appBackground) ? globalThis.String(object.appBackground) : "",
|
|
2181
|
-
address: isSet(object.address) ? globalThis.String(object.address) : "",
|
|
2182
|
-
phone: isSet(object.phone) ? globalThis.String(object.phone) : "",
|
|
2183
|
-
telegram: isSet(object.telegram) ? globalThis.String(object.telegram) : "",
|
|
2184
|
-
primaryIconColor: isSet(object.primaryIconColor) ? globalThis.String(object.primaryIconColor) : "",
|
|
2185
|
-
secondaryIconColor: isSet(object.secondaryIconColor) ? globalThis.String(object.secondaryIconColor) : "",
|
|
2186
|
-
defaultRoleId: isSet(object.defaultRoleId) ? globalThis.String(object.defaultRoleId) : "",
|
|
2187
|
-
enableRegistration: isSet(object.enableRegistration) ? globalThis.String(object.enableRegistration) : "",
|
|
2188
|
-
defaultRegisterOrganizationId: isSet(object.defaultRegisterOrganizationId)
|
|
2189
|
-
? globalThis.String(object.defaultRegisterOrganizationId)
|
|
2190
|
-
: "",
|
|
2191
|
-
googleClientId: isSet(object.googleClientId) ? globalThis.String(object.googleClientId) : "",
|
|
2192
|
-
telegramBotUsername: isSet(object.telegramBotUsername) ? globalThis.String(object.telegramBotUsername) : "",
|
|
2193
|
-
mainDomain: isSet(object.mainDomain) ? globalThis.String(object.mainDomain) : "",
|
|
2194
|
-
favicon: isSet(object.favicon) ? globalThis.String(object.favicon) : "",
|
|
2195
|
-
};
|
|
2196
|
-
},
|
|
2197
|
-
toJSON(message) {
|
|
2198
|
-
const obj = {};
|
|
2199
|
-
if (message.appName !== "") {
|
|
2200
|
-
obj.appName = message.appName;
|
|
2201
|
-
}
|
|
2202
|
-
if (message.logo !== "") {
|
|
2203
|
-
obj.logo = message.logo;
|
|
2204
|
-
}
|
|
2205
|
-
if (message.webBackground !== "") {
|
|
2206
|
-
obj.webBackground = message.webBackground;
|
|
2207
|
-
}
|
|
2208
|
-
if (message.primaryColor !== "") {
|
|
2209
|
-
obj.primaryColor = message.primaryColor;
|
|
2210
|
-
}
|
|
2211
|
-
if (message.appLogo !== "") {
|
|
2212
|
-
obj.appLogo = message.appLogo;
|
|
2213
|
-
}
|
|
2214
|
-
if (message.goftino !== "") {
|
|
2215
|
-
obj.goftino = message.goftino;
|
|
2216
|
-
}
|
|
2217
|
-
if (message.appBackground !== "") {
|
|
2218
|
-
obj.appBackground = message.appBackground;
|
|
2219
|
-
}
|
|
2220
|
-
if (message.address !== "") {
|
|
2221
|
-
obj.address = message.address;
|
|
2222
|
-
}
|
|
2223
|
-
if (message.phone !== "") {
|
|
2224
|
-
obj.phone = message.phone;
|
|
2225
|
-
}
|
|
2226
|
-
if (message.telegram !== "") {
|
|
2227
|
-
obj.telegram = message.telegram;
|
|
2228
|
-
}
|
|
2229
|
-
if (message.primaryIconColor !== "") {
|
|
2230
|
-
obj.primaryIconColor = message.primaryIconColor;
|
|
2231
|
-
}
|
|
2232
|
-
if (message.secondaryIconColor !== "") {
|
|
2233
|
-
obj.secondaryIconColor = message.secondaryIconColor;
|
|
2234
|
-
}
|
|
2235
|
-
if (message.defaultRoleId !== "") {
|
|
2236
|
-
obj.defaultRoleId = message.defaultRoleId;
|
|
2237
|
-
}
|
|
2238
|
-
if (message.enableRegistration !== "") {
|
|
2239
|
-
obj.enableRegistration = message.enableRegistration;
|
|
2240
|
-
}
|
|
2241
|
-
if (message.defaultRegisterOrganizationId !== "") {
|
|
2242
|
-
obj.defaultRegisterOrganizationId = message.defaultRegisterOrganizationId;
|
|
2243
|
-
}
|
|
2244
|
-
if (message.googleClientId !== "") {
|
|
2245
|
-
obj.googleClientId = message.googleClientId;
|
|
2246
|
-
}
|
|
2247
|
-
if (message.telegramBotUsername !== "") {
|
|
2248
|
-
obj.telegramBotUsername = message.telegramBotUsername;
|
|
2249
|
-
}
|
|
2250
|
-
if (message.mainDomain !== "") {
|
|
2251
|
-
obj.mainDomain = message.mainDomain;
|
|
2252
|
-
}
|
|
2253
|
-
if (message.favicon !== "") {
|
|
2254
|
-
obj.favicon = message.favicon;
|
|
2255
|
-
}
|
|
2256
|
-
return obj;
|
|
2257
|
-
},
|
|
2258
1728
|
create(base) {
|
|
2259
1729
|
return ConfigResponse_AppDesignConfig.fromPartial(base ?? {});
|
|
2260
1730
|
},
|
|
@@ -2393,50 +1863,6 @@ export const ConfigResponse_AppSecConfig = {
|
|
|
2393
1863
|
}
|
|
2394
1864
|
return message;
|
|
2395
1865
|
},
|
|
2396
|
-
fromJSON(object) {
|
|
2397
|
-
return {
|
|
2398
|
-
maxLogs: isSet(object.maxLogs) ? Long.fromValue(object.maxLogs) : undefined,
|
|
2399
|
-
maxSessions: isSet(object.maxSessions) ? Long.fromValue(object.maxSessions) : undefined,
|
|
2400
|
-
maxOtpTries: isSet(object.maxOtpTries) ? Long.fromValue(object.maxOtpTries) : undefined,
|
|
2401
|
-
minPasswordLength: isSet(object.minPasswordLength) ? Long.fromValue(object.minPasswordLength) : undefined,
|
|
2402
|
-
credentialExpirationDays: isSet(object.credentialExpirationDays)
|
|
2403
|
-
? Long.fromValue(object.credentialExpirationDays)
|
|
2404
|
-
: undefined,
|
|
2405
|
-
forcedTwoStepVerification: isSet(object.forcedTwoStepVerification)
|
|
2406
|
-
? globalThis.Boolean(object.forcedTwoStepVerification)
|
|
2407
|
-
: false,
|
|
2408
|
-
googleClientSecret: isSet(object.googleClientSecret) ? globalThis.String(object.googleClientSecret) : undefined,
|
|
2409
|
-
telegramBotToken: isSet(object.telegramBotToken) ? globalThis.String(object.telegramBotToken) : undefined,
|
|
2410
|
-
};
|
|
2411
|
-
},
|
|
2412
|
-
toJSON(message) {
|
|
2413
|
-
const obj = {};
|
|
2414
|
-
if (message.maxLogs !== undefined) {
|
|
2415
|
-
obj.maxLogs = (message.maxLogs || Long.ZERO).toString();
|
|
2416
|
-
}
|
|
2417
|
-
if (message.maxSessions !== undefined) {
|
|
2418
|
-
obj.maxSessions = (message.maxSessions || Long.ZERO).toString();
|
|
2419
|
-
}
|
|
2420
|
-
if (message.maxOtpTries !== undefined) {
|
|
2421
|
-
obj.maxOtpTries = (message.maxOtpTries || Long.ZERO).toString();
|
|
2422
|
-
}
|
|
2423
|
-
if (message.minPasswordLength !== undefined) {
|
|
2424
|
-
obj.minPasswordLength = (message.minPasswordLength || Long.ZERO).toString();
|
|
2425
|
-
}
|
|
2426
|
-
if (message.credentialExpirationDays !== undefined) {
|
|
2427
|
-
obj.credentialExpirationDays = (message.credentialExpirationDays || Long.ZERO).toString();
|
|
2428
|
-
}
|
|
2429
|
-
if (message.forcedTwoStepVerification !== false) {
|
|
2430
|
-
obj.forcedTwoStepVerification = message.forcedTwoStepVerification;
|
|
2431
|
-
}
|
|
2432
|
-
if (message.googleClientSecret !== undefined) {
|
|
2433
|
-
obj.googleClientSecret = message.googleClientSecret;
|
|
2434
|
-
}
|
|
2435
|
-
if (message.telegramBotToken !== undefined) {
|
|
2436
|
-
obj.telegramBotToken = message.telegramBotToken;
|
|
2437
|
-
}
|
|
2438
|
-
return obj;
|
|
2439
|
-
},
|
|
2440
1866
|
create(base) {
|
|
2441
1867
|
return ConfigResponse_AppSecConfig.fromPartial(base ?? {});
|
|
2442
1868
|
},
|
|
@@ -2578,57 +2004,6 @@ export const UserRequest = {
|
|
|
2578
2004
|
}
|
|
2579
2005
|
return message;
|
|
2580
2006
|
},
|
|
2581
|
-
fromJSON(object) {
|
|
2582
|
-
return {
|
|
2583
|
-
disablePagination: isSet(object.disable_pagination) ? globalThis.Boolean(object.disable_pagination) : false,
|
|
2584
|
-
page: isSet(object.page) ? globalThis.Number(object.page) : undefined,
|
|
2585
|
-
pageSize: isSet(object.page_size) ? globalThis.Number(object.page_size) : undefined,
|
|
2586
|
-
organizationId: isSet(object.organization_id) ? Long.fromValue(object.organization_id) : undefined,
|
|
2587
|
-
search: isSet(object.search) ? globalThis.String(object.search) : undefined,
|
|
2588
|
-
sort: isSet(object.sort) ? globalThis.String(object.sort) : undefined,
|
|
2589
|
-
order: isSet(object.order) ? globalThis.String(object.order) : undefined,
|
|
2590
|
-
queryFilter: isObject(object.query_filter)
|
|
2591
|
-
? Object.entries(object.query_filter).reduce((acc, [key, value]) => {
|
|
2592
|
-
acc[key] = FilterScope.fromJSON(value);
|
|
2593
|
-
return acc;
|
|
2594
|
-
}, {})
|
|
2595
|
-
: {},
|
|
2596
|
-
};
|
|
2597
|
-
},
|
|
2598
|
-
toJSON(message) {
|
|
2599
|
-
const obj = {};
|
|
2600
|
-
if (message.disablePagination !== false) {
|
|
2601
|
-
obj.disable_pagination = message.disablePagination;
|
|
2602
|
-
}
|
|
2603
|
-
if (message.page !== undefined) {
|
|
2604
|
-
obj.page = Math.round(message.page);
|
|
2605
|
-
}
|
|
2606
|
-
if (message.pageSize !== undefined) {
|
|
2607
|
-
obj.page_size = Math.round(message.pageSize);
|
|
2608
|
-
}
|
|
2609
|
-
if (message.organizationId !== undefined) {
|
|
2610
|
-
obj.organization_id = (message.organizationId || Long.UZERO).toString();
|
|
2611
|
-
}
|
|
2612
|
-
if (message.search !== undefined) {
|
|
2613
|
-
obj.search = message.search;
|
|
2614
|
-
}
|
|
2615
|
-
if (message.sort !== undefined) {
|
|
2616
|
-
obj.sort = message.sort;
|
|
2617
|
-
}
|
|
2618
|
-
if (message.order !== undefined) {
|
|
2619
|
-
obj.order = message.order;
|
|
2620
|
-
}
|
|
2621
|
-
if (message.queryFilter) {
|
|
2622
|
-
const entries = Object.entries(message.queryFilter);
|
|
2623
|
-
if (entries.length > 0) {
|
|
2624
|
-
obj.query_filter = {};
|
|
2625
|
-
entries.forEach(([k, v]) => {
|
|
2626
|
-
obj.query_filter[k] = FilterScope.toJSON(v);
|
|
2627
|
-
});
|
|
2628
|
-
}
|
|
2629
|
-
}
|
|
2630
|
-
return obj;
|
|
2631
|
-
},
|
|
2632
2007
|
create(base) {
|
|
2633
2008
|
return UserRequest.fromPartial(base ?? {});
|
|
2634
2009
|
},
|
|
@@ -2694,22 +2069,6 @@ export const UserRequest_QueryFilterEntry = {
|
|
|
2694
2069
|
}
|
|
2695
2070
|
return message;
|
|
2696
2071
|
},
|
|
2697
|
-
fromJSON(object) {
|
|
2698
|
-
return {
|
|
2699
|
-
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
|
2700
|
-
value: isSet(object.value) ? FilterScope.fromJSON(object.value) : undefined,
|
|
2701
|
-
};
|
|
2702
|
-
},
|
|
2703
|
-
toJSON(message) {
|
|
2704
|
-
const obj = {};
|
|
2705
|
-
if (message.key !== "") {
|
|
2706
|
-
obj.key = message.key;
|
|
2707
|
-
}
|
|
2708
|
-
if (message.value !== undefined) {
|
|
2709
|
-
obj.value = FilterScope.toJSON(message.value);
|
|
2710
|
-
}
|
|
2711
|
-
return obj;
|
|
2712
|
-
},
|
|
2713
2072
|
create(base) {
|
|
2714
2073
|
return UserRequest_QueryFilterEntry.fromPartial(base ?? {});
|
|
2715
2074
|
},
|
|
@@ -2824,46 +2183,6 @@ export const UserResponse = {
|
|
|
2824
2183
|
}
|
|
2825
2184
|
return message;
|
|
2826
2185
|
},
|
|
2827
|
-
fromJSON(object) {
|
|
2828
|
-
return {
|
|
2829
|
-
currentPage: isSet(object.current_page) ? globalThis.Number(object.current_page) : 0,
|
|
2830
|
-
from: isSet(object.from) ? globalThis.Number(object.from) : 0,
|
|
2831
|
-
to: isSet(object.to) ? globalThis.Number(object.to) : 0,
|
|
2832
|
-
lastPage: isSet(object.last_page) ? globalThis.Number(object.last_page) : 0,
|
|
2833
|
-
perPage: isSet(object.per_page) ? globalThis.Number(object.per_page) : 0,
|
|
2834
|
-
cost: isSet(object.cost) ? Long.fromValue(object.cost) : Long.ZERO,
|
|
2835
|
-
total: isSet(object.total) ? globalThis.Number(object.total) : 0,
|
|
2836
|
-
data: globalThis.Array.isArray(object?.data) ? object.data.map((e) => UserRepo.fromJSON(e)) : [],
|
|
2837
|
-
};
|
|
2838
|
-
},
|
|
2839
|
-
toJSON(message) {
|
|
2840
|
-
const obj = {};
|
|
2841
|
-
if (message.currentPage !== 0) {
|
|
2842
|
-
obj.current_page = Math.round(message.currentPage);
|
|
2843
|
-
}
|
|
2844
|
-
if (message.from !== 0) {
|
|
2845
|
-
obj.from = Math.round(message.from);
|
|
2846
|
-
}
|
|
2847
|
-
if (message.to !== 0) {
|
|
2848
|
-
obj.to = Math.round(message.to);
|
|
2849
|
-
}
|
|
2850
|
-
if (message.lastPage !== 0) {
|
|
2851
|
-
obj.last_page = Math.round(message.lastPage);
|
|
2852
|
-
}
|
|
2853
|
-
if (message.perPage !== 0) {
|
|
2854
|
-
obj.per_page = Math.round(message.perPage);
|
|
2855
|
-
}
|
|
2856
|
-
if (!message.cost.equals(Long.ZERO)) {
|
|
2857
|
-
obj.cost = (message.cost || Long.ZERO).toString();
|
|
2858
|
-
}
|
|
2859
|
-
if (message.total !== 0) {
|
|
2860
|
-
obj.total = Math.round(message.total);
|
|
2861
|
-
}
|
|
2862
|
-
if (message.data?.length) {
|
|
2863
|
-
obj.data = message.data.map((e) => UserRepo.toJSON(e));
|
|
2864
|
-
}
|
|
2865
|
-
return obj;
|
|
2866
|
-
},
|
|
2867
2186
|
create(base) {
|
|
2868
2187
|
return UserResponse.fromPartial(base ?? {});
|
|
2869
2188
|
},
|
|
@@ -3016,67 +2335,6 @@ export const DeviceRequest = {
|
|
|
3016
2335
|
}
|
|
3017
2336
|
return message;
|
|
3018
2337
|
},
|
|
3019
|
-
fromJSON(object) {
|
|
3020
|
-
return {
|
|
3021
|
-
disablePagination: isSet(object.disable_pagination) ? globalThis.Boolean(object.disable_pagination) : false,
|
|
3022
|
-
page: isSet(object.page) ? globalThis.Number(object.page) : undefined,
|
|
3023
|
-
pageSize: isSet(object.page_size) ? globalThis.Number(object.page_size) : undefined,
|
|
3024
|
-
organizationId: isSet(object.organization_id) ? Long.fromValue(object.organization_id) : undefined,
|
|
3025
|
-
trackerId: isSet(object.tracker_id) ? Long.fromValue(object.tracker_id) : undefined,
|
|
3026
|
-
search: isSet(object.search) ? globalThis.String(object.search) : undefined,
|
|
3027
|
-
includeDeviceStatus: isSet(object.include_device_status)
|
|
3028
|
-
? globalThis.Boolean(object.include_device_status)
|
|
3029
|
-
: false,
|
|
3030
|
-
queryFilter: isObject(object.query_filter)
|
|
3031
|
-
? Object.entries(object.query_filter).reduce((acc, [key, value]) => {
|
|
3032
|
-
acc[key] = FilterScope.fromJSON(value);
|
|
3033
|
-
return acc;
|
|
3034
|
-
}, {})
|
|
3035
|
-
: {},
|
|
3036
|
-
sort: isSet(object.sort) ? globalThis.String(object.sort) : undefined,
|
|
3037
|
-
order: isSet(object.order) ? globalThis.String(object.order) : undefined,
|
|
3038
|
-
};
|
|
3039
|
-
},
|
|
3040
|
-
toJSON(message) {
|
|
3041
|
-
const obj = {};
|
|
3042
|
-
if (message.disablePagination !== false) {
|
|
3043
|
-
obj.disable_pagination = message.disablePagination;
|
|
3044
|
-
}
|
|
3045
|
-
if (message.page !== undefined) {
|
|
3046
|
-
obj.page = Math.round(message.page);
|
|
3047
|
-
}
|
|
3048
|
-
if (message.pageSize !== undefined) {
|
|
3049
|
-
obj.page_size = Math.round(message.pageSize);
|
|
3050
|
-
}
|
|
3051
|
-
if (message.organizationId !== undefined) {
|
|
3052
|
-
obj.organization_id = (message.organizationId || Long.UZERO).toString();
|
|
3053
|
-
}
|
|
3054
|
-
if (message.trackerId !== undefined) {
|
|
3055
|
-
obj.tracker_id = (message.trackerId || Long.UZERO).toString();
|
|
3056
|
-
}
|
|
3057
|
-
if (message.search !== undefined) {
|
|
3058
|
-
obj.search = message.search;
|
|
3059
|
-
}
|
|
3060
|
-
if (message.includeDeviceStatus !== false) {
|
|
3061
|
-
obj.include_device_status = message.includeDeviceStatus;
|
|
3062
|
-
}
|
|
3063
|
-
if (message.queryFilter) {
|
|
3064
|
-
const entries = Object.entries(message.queryFilter);
|
|
3065
|
-
if (entries.length > 0) {
|
|
3066
|
-
obj.query_filter = {};
|
|
3067
|
-
entries.forEach(([k, v]) => {
|
|
3068
|
-
obj.query_filter[k] = FilterScope.toJSON(v);
|
|
3069
|
-
});
|
|
3070
|
-
}
|
|
3071
|
-
}
|
|
3072
|
-
if (message.sort !== undefined) {
|
|
3073
|
-
obj.sort = message.sort;
|
|
3074
|
-
}
|
|
3075
|
-
if (message.order !== undefined) {
|
|
3076
|
-
obj.order = message.order;
|
|
3077
|
-
}
|
|
3078
|
-
return obj;
|
|
3079
|
-
},
|
|
3080
2338
|
create(base) {
|
|
3081
2339
|
return DeviceRequest.fromPartial(base ?? {});
|
|
3082
2340
|
},
|
|
@@ -3146,22 +2404,6 @@ export const DeviceRequest_QueryFilterEntry = {
|
|
|
3146
2404
|
}
|
|
3147
2405
|
return message;
|
|
3148
2406
|
},
|
|
3149
|
-
fromJSON(object) {
|
|
3150
|
-
return {
|
|
3151
|
-
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
|
3152
|
-
value: isSet(object.value) ? FilterScope.fromJSON(object.value) : undefined,
|
|
3153
|
-
};
|
|
3154
|
-
},
|
|
3155
|
-
toJSON(message) {
|
|
3156
|
-
const obj = {};
|
|
3157
|
-
if (message.key !== "") {
|
|
3158
|
-
obj.key = message.key;
|
|
3159
|
-
}
|
|
3160
|
-
if (message.value !== undefined) {
|
|
3161
|
-
obj.value = FilterScope.toJSON(message.value);
|
|
3162
|
-
}
|
|
3163
|
-
return obj;
|
|
3164
|
-
},
|
|
3165
2407
|
create(base) {
|
|
3166
2408
|
return DeviceRequest_QueryFilterEntry.fromPartial(base ?? {});
|
|
3167
2409
|
},
|
|
@@ -3276,46 +2518,6 @@ export const DeviceResponse = {
|
|
|
3276
2518
|
}
|
|
3277
2519
|
return message;
|
|
3278
2520
|
},
|
|
3279
|
-
fromJSON(object) {
|
|
3280
|
-
return {
|
|
3281
|
-
currentPage: isSet(object.current_page) ? globalThis.Number(object.current_page) : 0,
|
|
3282
|
-
from: isSet(object.from) ? globalThis.Number(object.from) : 0,
|
|
3283
|
-
to: isSet(object.to) ? globalThis.Number(object.to) : 0,
|
|
3284
|
-
lastPage: isSet(object.last_page) ? globalThis.Number(object.last_page) : 0,
|
|
3285
|
-
perPage: isSet(object.per_page) ? globalThis.Number(object.per_page) : 0,
|
|
3286
|
-
cost: isSet(object.cost) ? Long.fromValue(object.cost) : Long.ZERO,
|
|
3287
|
-
total: isSet(object.total) ? globalThis.Number(object.total) : 0,
|
|
3288
|
-
data: globalThis.Array.isArray(object?.data) ? object.data.map((e) => DeviceRepo.fromJSON(e)) : [],
|
|
3289
|
-
};
|
|
3290
|
-
},
|
|
3291
|
-
toJSON(message) {
|
|
3292
|
-
const obj = {};
|
|
3293
|
-
if (message.currentPage !== 0) {
|
|
3294
|
-
obj.current_page = Math.round(message.currentPage);
|
|
3295
|
-
}
|
|
3296
|
-
if (message.from !== 0) {
|
|
3297
|
-
obj.from = Math.round(message.from);
|
|
3298
|
-
}
|
|
3299
|
-
if (message.to !== 0) {
|
|
3300
|
-
obj.to = Math.round(message.to);
|
|
3301
|
-
}
|
|
3302
|
-
if (message.lastPage !== 0) {
|
|
3303
|
-
obj.last_page = Math.round(message.lastPage);
|
|
3304
|
-
}
|
|
3305
|
-
if (message.perPage !== 0) {
|
|
3306
|
-
obj.per_page = Math.round(message.perPage);
|
|
3307
|
-
}
|
|
3308
|
-
if (!message.cost.equals(Long.ZERO)) {
|
|
3309
|
-
obj.cost = (message.cost || Long.ZERO).toString();
|
|
3310
|
-
}
|
|
3311
|
-
if (message.total !== 0) {
|
|
3312
|
-
obj.total = Math.round(message.total);
|
|
3313
|
-
}
|
|
3314
|
-
if (message.data?.length) {
|
|
3315
|
-
obj.data = message.data.map((e) => DeviceRepo.toJSON(e));
|
|
3316
|
-
}
|
|
3317
|
-
return obj;
|
|
3318
|
-
},
|
|
3319
2521
|
create(base) {
|
|
3320
2522
|
return DeviceResponse.fromPartial(base ?? {});
|
|
3321
2523
|
},
|
|
@@ -3364,16 +2566,6 @@ export const DeviceShowRequest = {
|
|
|
3364
2566
|
}
|
|
3365
2567
|
return message;
|
|
3366
2568
|
},
|
|
3367
|
-
fromJSON(object) {
|
|
3368
|
-
return { id: isSet(object.id) ? Long.fromValue(object.id) : Long.UZERO };
|
|
3369
|
-
},
|
|
3370
|
-
toJSON(message) {
|
|
3371
|
-
const obj = {};
|
|
3372
|
-
if (!message.id.equals(Long.UZERO)) {
|
|
3373
|
-
obj.id = (message.id || Long.UZERO).toString();
|
|
3374
|
-
}
|
|
3375
|
-
return obj;
|
|
3376
|
-
},
|
|
3377
2569
|
create(base) {
|
|
3378
2570
|
return DeviceShowRequest.fromPartial(base ?? {});
|
|
3379
2571
|
},
|
|
@@ -3415,16 +2607,6 @@ export const DeviceShowResponse = {
|
|
|
3415
2607
|
}
|
|
3416
2608
|
return message;
|
|
3417
2609
|
},
|
|
3418
|
-
fromJSON(object) {
|
|
3419
|
-
return { device: isSet(object.device) ? DeviceRepo.fromJSON(object.device) : undefined };
|
|
3420
|
-
},
|
|
3421
|
-
toJSON(message) {
|
|
3422
|
-
const obj = {};
|
|
3423
|
-
if (message.device !== undefined) {
|
|
3424
|
-
obj.device = DeviceRepo.toJSON(message.device);
|
|
3425
|
-
}
|
|
3426
|
-
return obj;
|
|
3427
|
-
},
|
|
3428
2610
|
create(base) {
|
|
3429
2611
|
return DeviceShowResponse.fromPartial(base ?? {});
|
|
3430
2612
|
},
|
|
@@ -3468,16 +2650,6 @@ export const MeRequest = {
|
|
|
3468
2650
|
}
|
|
3469
2651
|
return message;
|
|
3470
2652
|
},
|
|
3471
|
-
fromJSON(object) {
|
|
3472
|
-
return { deviceId: isSet(object.device_id) ? Long.fromValue(object.device_id) : undefined };
|
|
3473
|
-
},
|
|
3474
|
-
toJSON(message) {
|
|
3475
|
-
const obj = {};
|
|
3476
|
-
if (message.deviceId !== undefined) {
|
|
3477
|
-
obj.device_id = (message.deviceId || Long.UZERO).toString();
|
|
3478
|
-
}
|
|
3479
|
-
return obj;
|
|
3480
|
-
},
|
|
3481
2653
|
create(base) {
|
|
3482
2654
|
return MeRequest.fromPartial(base ?? {});
|
|
3483
2655
|
},
|
|
@@ -3600,50 +2772,6 @@ export const MeResponse = {
|
|
|
3600
2772
|
}
|
|
3601
2773
|
return message;
|
|
3602
2774
|
},
|
|
3603
|
-
fromJSON(object) {
|
|
3604
|
-
return {
|
|
3605
|
-
user: isSet(object.user) ? User.fromJSON(object.user) : undefined,
|
|
3606
|
-
person: globalThis.Array.isArray(object?.persons) ? object.persons.map((e) => PersonRepo.fromJSON(e)) : [],
|
|
3607
|
-
currencies: globalThis.Array.isArray(object?.currencies)
|
|
3608
|
-
? object.currencies.map((e) => Currency.fromJSON(e))
|
|
3609
|
-
: [],
|
|
3610
|
-
permissions: globalThis.Array.isArray(object?.permissions)
|
|
3611
|
-
? object.permissions.map((e) => Permission.fromJSON(e))
|
|
3612
|
-
: [],
|
|
3613
|
-
device: isSet(object.device) ? DeviceRepo.fromJSON(object.device) : undefined,
|
|
3614
|
-
deviceCount: isSet(object.device_count) ? globalThis.Number(object.device_count) : undefined,
|
|
3615
|
-
cost: isSet(object.cost) ? Long.fromValue(object.cost) : Long.ZERO,
|
|
3616
|
-
errorMessage: isSet(object.error_message) ? globalThis.String(object.error_message) : undefined,
|
|
3617
|
-
};
|
|
3618
|
-
},
|
|
3619
|
-
toJSON(message) {
|
|
3620
|
-
const obj = {};
|
|
3621
|
-
if (message.user !== undefined) {
|
|
3622
|
-
obj.user = User.toJSON(message.user);
|
|
3623
|
-
}
|
|
3624
|
-
if (message.person?.length) {
|
|
3625
|
-
obj.persons = message.person.map((e) => PersonRepo.toJSON(e));
|
|
3626
|
-
}
|
|
3627
|
-
if (message.currencies?.length) {
|
|
3628
|
-
obj.currencies = message.currencies.map((e) => Currency.toJSON(e));
|
|
3629
|
-
}
|
|
3630
|
-
if (message.permissions?.length) {
|
|
3631
|
-
obj.permissions = message.permissions.map((e) => Permission.toJSON(e));
|
|
3632
|
-
}
|
|
3633
|
-
if (message.device !== undefined) {
|
|
3634
|
-
obj.device = DeviceRepo.toJSON(message.device);
|
|
3635
|
-
}
|
|
3636
|
-
if (message.deviceCount !== undefined) {
|
|
3637
|
-
obj.device_count = Math.round(message.deviceCount);
|
|
3638
|
-
}
|
|
3639
|
-
if (!message.cost.equals(Long.ZERO)) {
|
|
3640
|
-
obj.cost = (message.cost || Long.ZERO).toString();
|
|
3641
|
-
}
|
|
3642
|
-
if (message.errorMessage !== undefined) {
|
|
3643
|
-
obj.error_message = message.errorMessage;
|
|
3644
|
-
}
|
|
3645
|
-
return obj;
|
|
3646
|
-
},
|
|
3647
2775
|
create(base) {
|
|
3648
2776
|
return MeResponse.fromPartial(base ?? {});
|
|
3649
2777
|
},
|
|
@@ -3789,44 +2917,6 @@ export const AreaIndexRequest = {
|
|
|
3789
2917
|
}
|
|
3790
2918
|
return message;
|
|
3791
2919
|
},
|
|
3792
|
-
fromJSON(object) {
|
|
3793
|
-
return {
|
|
3794
|
-
disablePagination: isSet(object.disable_pagination) ? globalThis.Boolean(object.disable_pagination) : false,
|
|
3795
|
-
page: isSet(object.page) ? globalThis.Number(object.page) : undefined,
|
|
3796
|
-
pageSize: isSet(object.page_size) ? globalThis.Number(object.page_size) : undefined,
|
|
3797
|
-
organizationIds: globalThis.Array.isArray(object?.organization_ids)
|
|
3798
|
-
? object.organization_ids.map((e) => Long.fromValue(e))
|
|
3799
|
-
: [],
|
|
3800
|
-
areaIds: globalThis.Array.isArray(object?.ares_ids) ? object.ares_ids.map((e) => Long.fromValue(e)) : [],
|
|
3801
|
-
type: globalThis.Array.isArray(object?.type) ? object.type.map((e) => areaTypeFromJSON(e)) : [],
|
|
3802
|
-
search: isSet(object.search) ? globalThis.String(object.search) : undefined,
|
|
3803
|
-
};
|
|
3804
|
-
},
|
|
3805
|
-
toJSON(message) {
|
|
3806
|
-
const obj = {};
|
|
3807
|
-
if (message.disablePagination !== false) {
|
|
3808
|
-
obj.disable_pagination = message.disablePagination;
|
|
3809
|
-
}
|
|
3810
|
-
if (message.page !== undefined) {
|
|
3811
|
-
obj.page = Math.round(message.page);
|
|
3812
|
-
}
|
|
3813
|
-
if (message.pageSize !== undefined) {
|
|
3814
|
-
obj.page_size = Math.round(message.pageSize);
|
|
3815
|
-
}
|
|
3816
|
-
if (message.organizationIds?.length) {
|
|
3817
|
-
obj.organization_ids = message.organizationIds.map((e) => (e || Long.UZERO).toString());
|
|
3818
|
-
}
|
|
3819
|
-
if (message.areaIds?.length) {
|
|
3820
|
-
obj.ares_ids = message.areaIds.map((e) => (e || Long.UZERO).toString());
|
|
3821
|
-
}
|
|
3822
|
-
if (message.type?.length) {
|
|
3823
|
-
obj.type = message.type.map((e) => areaTypeToJSON(e));
|
|
3824
|
-
}
|
|
3825
|
-
if (message.search !== undefined) {
|
|
3826
|
-
obj.search = message.search;
|
|
3827
|
-
}
|
|
3828
|
-
return obj;
|
|
3829
|
-
},
|
|
3830
2920
|
create(base) {
|
|
3831
2921
|
return AreaIndexRequest.fromPartial(base ?? {});
|
|
3832
2922
|
},
|
|
@@ -3944,46 +3034,6 @@ export const AreaIndexResponse = {
|
|
|
3944
3034
|
}
|
|
3945
3035
|
return message;
|
|
3946
3036
|
},
|
|
3947
|
-
fromJSON(object) {
|
|
3948
|
-
return {
|
|
3949
|
-
currentPage: isSet(object.current_page) ? globalThis.Number(object.current_page) : 0,
|
|
3950
|
-
from: isSet(object.from) ? globalThis.Number(object.from) : 0,
|
|
3951
|
-
to: isSet(object.to) ? globalThis.Number(object.to) : 0,
|
|
3952
|
-
lastPage: isSet(object.last_page) ? globalThis.Number(object.last_page) : 0,
|
|
3953
|
-
perPage: isSet(object.per_page) ? globalThis.Number(object.per_page) : 0,
|
|
3954
|
-
cost: isSet(object.cost) ? Long.fromValue(object.cost) : Long.ZERO,
|
|
3955
|
-
total: isSet(object.total) ? globalThis.Number(object.total) : 0,
|
|
3956
|
-
data: globalThis.Array.isArray(object?.data) ? object.data.map((e) => Area.fromJSON(e)) : [],
|
|
3957
|
-
};
|
|
3958
|
-
},
|
|
3959
|
-
toJSON(message) {
|
|
3960
|
-
const obj = {};
|
|
3961
|
-
if (message.currentPage !== 0) {
|
|
3962
|
-
obj.current_page = Math.round(message.currentPage);
|
|
3963
|
-
}
|
|
3964
|
-
if (message.from !== 0) {
|
|
3965
|
-
obj.from = Math.round(message.from);
|
|
3966
|
-
}
|
|
3967
|
-
if (message.to !== 0) {
|
|
3968
|
-
obj.to = Math.round(message.to);
|
|
3969
|
-
}
|
|
3970
|
-
if (message.lastPage !== 0) {
|
|
3971
|
-
obj.last_page = Math.round(message.lastPage);
|
|
3972
|
-
}
|
|
3973
|
-
if (message.perPage !== 0) {
|
|
3974
|
-
obj.per_page = Math.round(message.perPage);
|
|
3975
|
-
}
|
|
3976
|
-
if (!message.cost.equals(Long.ZERO)) {
|
|
3977
|
-
obj.cost = (message.cost || Long.ZERO).toString();
|
|
3978
|
-
}
|
|
3979
|
-
if (message.total !== 0) {
|
|
3980
|
-
obj.total = Math.round(message.total);
|
|
3981
|
-
}
|
|
3982
|
-
if (message.data?.length) {
|
|
3983
|
-
obj.data = message.data.map((e) => Area.toJSON(e));
|
|
3984
|
-
}
|
|
3985
|
-
return obj;
|
|
3986
|
-
},
|
|
3987
3037
|
create(base) {
|
|
3988
3038
|
return AreaIndexResponse.fromPartial(base ?? {});
|
|
3989
3039
|
},
|
|
@@ -4122,54 +3172,6 @@ export const AlertAndNotifications = {
|
|
|
4122
3172
|
}
|
|
4123
3173
|
return message;
|
|
4124
3174
|
},
|
|
4125
|
-
fromJSON(object) {
|
|
4126
|
-
return {
|
|
4127
|
-
deviceId: isSet(object.device_id) ? Long.fromValue(object.device_id) : Long.UZERO,
|
|
4128
|
-
page: isSet(object.page) ? globalThis.Number(object.page) : 0,
|
|
4129
|
-
platform: isSet(object.platform) ? globalThis.String(object.platform) : "",
|
|
4130
|
-
total: isSet(object.total) ? globalThis.Number(object.total) : 0,
|
|
4131
|
-
lastPage: isSet(object.last_page) ? globalThis.Number(object.last_page) : 0,
|
|
4132
|
-
records: isSet(object.records) ? globalThis.Number(object.records) : 0,
|
|
4133
|
-
cost: isSet(object.cost) ? globalThis.Number(object.cost) : 0,
|
|
4134
|
-
alerts: globalThis.Array.isArray(object?.alerts)
|
|
4135
|
-
? object.alerts.map((e) => UserDeviceAlert.fromJSON(e))
|
|
4136
|
-
: [],
|
|
4137
|
-
notifications: globalThis.Array.isArray(object?.notifications)
|
|
4138
|
-
? object.notifications.map((e) => Notification.fromJSON(e))
|
|
4139
|
-
: [],
|
|
4140
|
-
};
|
|
4141
|
-
},
|
|
4142
|
-
toJSON(message) {
|
|
4143
|
-
const obj = {};
|
|
4144
|
-
if (!message.deviceId.equals(Long.UZERO)) {
|
|
4145
|
-
obj.device_id = (message.deviceId || Long.UZERO).toString();
|
|
4146
|
-
}
|
|
4147
|
-
if (message.page !== 0) {
|
|
4148
|
-
obj.page = Math.round(message.page);
|
|
4149
|
-
}
|
|
4150
|
-
if (message.platform !== "") {
|
|
4151
|
-
obj.platform = message.platform;
|
|
4152
|
-
}
|
|
4153
|
-
if (message.total !== 0) {
|
|
4154
|
-
obj.total = Math.round(message.total);
|
|
4155
|
-
}
|
|
4156
|
-
if (message.lastPage !== 0) {
|
|
4157
|
-
obj.last_page = Math.round(message.lastPage);
|
|
4158
|
-
}
|
|
4159
|
-
if (message.records !== 0) {
|
|
4160
|
-
obj.records = Math.round(message.records);
|
|
4161
|
-
}
|
|
4162
|
-
if (message.cost !== 0) {
|
|
4163
|
-
obj.cost = Math.round(message.cost);
|
|
4164
|
-
}
|
|
4165
|
-
if (message.alerts?.length) {
|
|
4166
|
-
obj.alerts = message.alerts.map((e) => UserDeviceAlert.toJSON(e));
|
|
4167
|
-
}
|
|
4168
|
-
if (message.notifications?.length) {
|
|
4169
|
-
obj.notifications = message.notifications.map((e) => Notification.toJSON(e));
|
|
4170
|
-
}
|
|
4171
|
-
return obj;
|
|
4172
|
-
},
|
|
4173
3175
|
create(base) {
|
|
4174
3176
|
return AlertAndNotifications.fromPartial(base ?? {});
|
|
4175
3177
|
},
|
|
@@ -4241,26 +3243,6 @@ export const FilterConditions = {
|
|
|
4241
3243
|
}
|
|
4242
3244
|
return message;
|
|
4243
3245
|
},
|
|
4244
|
-
fromJSON(object) {
|
|
4245
|
-
return {
|
|
4246
|
-
filterType: isSet(object.filterType) ? globalThis.String(object.filterType) : "",
|
|
4247
|
-
type: isSet(object.type) ? globalThis.String(object.type) : "",
|
|
4248
|
-
filter: isSet(object.filter) ? globalThis.String(object.filter) : "",
|
|
4249
|
-
};
|
|
4250
|
-
},
|
|
4251
|
-
toJSON(message) {
|
|
4252
|
-
const obj = {};
|
|
4253
|
-
if (message.filterType !== "") {
|
|
4254
|
-
obj.filterType = message.filterType;
|
|
4255
|
-
}
|
|
4256
|
-
if (message.type !== "") {
|
|
4257
|
-
obj.type = message.type;
|
|
4258
|
-
}
|
|
4259
|
-
if (message.filter !== "") {
|
|
4260
|
-
obj.filter = message.filter;
|
|
4261
|
-
}
|
|
4262
|
-
return obj;
|
|
4263
|
-
},
|
|
4264
3246
|
create(base) {
|
|
4265
3247
|
return FilterConditions.fromPartial(base ?? {});
|
|
4266
3248
|
},
|
|
@@ -4372,44 +3354,6 @@ export const FilterScope = {
|
|
|
4372
3354
|
}
|
|
4373
3355
|
return message;
|
|
4374
3356
|
},
|
|
4375
|
-
fromJSON(object) {
|
|
4376
|
-
return {
|
|
4377
|
-
filterType: isSet(object.filterType) ? globalThis.String(object.filterType) : "",
|
|
4378
|
-
operator: isSet(object.operator) ? globalThis.String(object.operator) : undefined,
|
|
4379
|
-
conditions: globalThis.Array.isArray(object?.conditions)
|
|
4380
|
-
? object.conditions.map((e) => FilterConditions.fromJSON(e))
|
|
4381
|
-
: [],
|
|
4382
|
-
filter: isSet(object.filter) ? globalThis.String(object.filter) : undefined,
|
|
4383
|
-
dateFrom: isSet(object.dateFrom) ? globalThis.String(object.dateFrom) : undefined,
|
|
4384
|
-
dateTo: isSet(object.dateTo) ? globalThis.String(object.dateTo) : undefined,
|
|
4385
|
-
type: isSet(object.type) ? globalThis.String(object.type) : undefined,
|
|
4386
|
-
};
|
|
4387
|
-
},
|
|
4388
|
-
toJSON(message) {
|
|
4389
|
-
const obj = {};
|
|
4390
|
-
if (message.filterType !== "") {
|
|
4391
|
-
obj.filterType = message.filterType;
|
|
4392
|
-
}
|
|
4393
|
-
if (message.operator !== undefined) {
|
|
4394
|
-
obj.operator = message.operator;
|
|
4395
|
-
}
|
|
4396
|
-
if (message.conditions?.length) {
|
|
4397
|
-
obj.conditions = message.conditions.map((e) => FilterConditions.toJSON(e));
|
|
4398
|
-
}
|
|
4399
|
-
if (message.filter !== undefined) {
|
|
4400
|
-
obj.filter = message.filter;
|
|
4401
|
-
}
|
|
4402
|
-
if (message.dateFrom !== undefined) {
|
|
4403
|
-
obj.dateFrom = message.dateFrom;
|
|
4404
|
-
}
|
|
4405
|
-
if (message.dateTo !== undefined) {
|
|
4406
|
-
obj.dateTo = message.dateTo;
|
|
4407
|
-
}
|
|
4408
|
-
if (message.type !== undefined) {
|
|
4409
|
-
obj.type = message.type;
|
|
4410
|
-
}
|
|
4411
|
-
return obj;
|
|
4412
|
-
},
|
|
4413
3357
|
create(base) {
|
|
4414
3358
|
return FilterScope.fromPartial(base ?? {});
|
|
4415
3359
|
},
|
|
@@ -4467,22 +3411,6 @@ export const SubmitOrderResponse = {
|
|
|
4467
3411
|
}
|
|
4468
3412
|
return message;
|
|
4469
3413
|
},
|
|
4470
|
-
fromJSON(object) {
|
|
4471
|
-
return {
|
|
4472
|
-
devices: globalThis.Array.isArray(object?.devices) ? object.devices.map((e) => DeviceRepo.fromJSON(e)) : [],
|
|
4473
|
-
order: isSet(object.order) ? Order.fromJSON(object.order) : undefined,
|
|
4474
|
-
};
|
|
4475
|
-
},
|
|
4476
|
-
toJSON(message) {
|
|
4477
|
-
const obj = {};
|
|
4478
|
-
if (message.devices?.length) {
|
|
4479
|
-
obj.devices = message.devices.map((e) => DeviceRepo.toJSON(e));
|
|
4480
|
-
}
|
|
4481
|
-
if (message.order !== undefined) {
|
|
4482
|
-
obj.order = Order.toJSON(message.order);
|
|
4483
|
-
}
|
|
4484
|
-
return obj;
|
|
4485
|
-
},
|
|
4486
3414
|
create(base) {
|
|
4487
3415
|
return SubmitOrderResponse.fromPartial(base ?? {});
|
|
4488
3416
|
},
|
|
@@ -4585,49 +3513,6 @@ export const CommandActionIndexRequest = {
|
|
|
4585
3513
|
}
|
|
4586
3514
|
return message;
|
|
4587
3515
|
},
|
|
4588
|
-
fromJSON(object) {
|
|
4589
|
-
return {
|
|
4590
|
-
disablePagination: isSet(object.disable_pagination) ? globalThis.Boolean(object.disable_pagination) : false,
|
|
4591
|
-
page: isSet(object.page) ? globalThis.Number(object.page) : undefined,
|
|
4592
|
-
pageSize: isSet(object.page_size) ? globalThis.Number(object.page_size) : undefined,
|
|
4593
|
-
queryFilter: isObject(object.query_filter)
|
|
4594
|
-
? Object.entries(object.query_filter).reduce((acc, [key, value]) => {
|
|
4595
|
-
acc[key] = FilterScope.fromJSON(value);
|
|
4596
|
-
return acc;
|
|
4597
|
-
}, {})
|
|
4598
|
-
: {},
|
|
4599
|
-
sort: isSet(object.sort) ? globalThis.String(object.sort) : undefined,
|
|
4600
|
-
order: isSet(object.order) ? globalThis.String(object.order) : undefined,
|
|
4601
|
-
};
|
|
4602
|
-
},
|
|
4603
|
-
toJSON(message) {
|
|
4604
|
-
const obj = {};
|
|
4605
|
-
if (message.disablePagination !== false) {
|
|
4606
|
-
obj.disable_pagination = message.disablePagination;
|
|
4607
|
-
}
|
|
4608
|
-
if (message.page !== undefined) {
|
|
4609
|
-
obj.page = Math.round(message.page);
|
|
4610
|
-
}
|
|
4611
|
-
if (message.pageSize !== undefined) {
|
|
4612
|
-
obj.page_size = Math.round(message.pageSize);
|
|
4613
|
-
}
|
|
4614
|
-
if (message.queryFilter) {
|
|
4615
|
-
const entries = Object.entries(message.queryFilter);
|
|
4616
|
-
if (entries.length > 0) {
|
|
4617
|
-
obj.query_filter = {};
|
|
4618
|
-
entries.forEach(([k, v]) => {
|
|
4619
|
-
obj.query_filter[k] = FilterScope.toJSON(v);
|
|
4620
|
-
});
|
|
4621
|
-
}
|
|
4622
|
-
}
|
|
4623
|
-
if (message.sort !== undefined) {
|
|
4624
|
-
obj.sort = message.sort;
|
|
4625
|
-
}
|
|
4626
|
-
if (message.order !== undefined) {
|
|
4627
|
-
obj.order = message.order;
|
|
4628
|
-
}
|
|
4629
|
-
return obj;
|
|
4630
|
-
},
|
|
4631
3516
|
create(base) {
|
|
4632
3517
|
return CommandActionIndexRequest.fromPartial(base ?? {});
|
|
4633
3518
|
},
|
|
@@ -4689,22 +3574,6 @@ export const CommandActionIndexRequest_QueryFilterEntry = {
|
|
|
4689
3574
|
}
|
|
4690
3575
|
return message;
|
|
4691
3576
|
},
|
|
4692
|
-
fromJSON(object) {
|
|
4693
|
-
return {
|
|
4694
|
-
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
|
4695
|
-
value: isSet(object.value) ? FilterScope.fromJSON(object.value) : undefined,
|
|
4696
|
-
};
|
|
4697
|
-
},
|
|
4698
|
-
toJSON(message) {
|
|
4699
|
-
const obj = {};
|
|
4700
|
-
if (message.key !== "") {
|
|
4701
|
-
obj.key = message.key;
|
|
4702
|
-
}
|
|
4703
|
-
if (message.value !== undefined) {
|
|
4704
|
-
obj.value = FilterScope.toJSON(message.value);
|
|
4705
|
-
}
|
|
4706
|
-
return obj;
|
|
4707
|
-
},
|
|
4708
3577
|
create(base) {
|
|
4709
3578
|
return CommandActionIndexRequest_QueryFilterEntry.fromPartial(base ?? {});
|
|
4710
3579
|
},
|
|
@@ -4819,46 +3688,6 @@ export const CommandActionIndexResponse = {
|
|
|
4819
3688
|
}
|
|
4820
3689
|
return message;
|
|
4821
3690
|
},
|
|
4822
|
-
fromJSON(object) {
|
|
4823
|
-
return {
|
|
4824
|
-
currentPage: isSet(object.current_page) ? globalThis.Number(object.current_page) : 0,
|
|
4825
|
-
from: isSet(object.from) ? globalThis.Number(object.from) : 0,
|
|
4826
|
-
to: isSet(object.to) ? globalThis.Number(object.to) : 0,
|
|
4827
|
-
lastPage: isSet(object.last_page) ? globalThis.Number(object.last_page) : 0,
|
|
4828
|
-
perPage: isSet(object.per_page) ? globalThis.Number(object.per_page) : 0,
|
|
4829
|
-
cost: isSet(object.cost) ? Long.fromValue(object.cost) : Long.ZERO,
|
|
4830
|
-
total: isSet(object.total) ? globalThis.Number(object.total) : 0,
|
|
4831
|
-
data: globalThis.Array.isArray(object?.data) ? object.data.map((e) => CommandAction.fromJSON(e)) : [],
|
|
4832
|
-
};
|
|
4833
|
-
},
|
|
4834
|
-
toJSON(message) {
|
|
4835
|
-
const obj = {};
|
|
4836
|
-
if (message.currentPage !== 0) {
|
|
4837
|
-
obj.current_page = Math.round(message.currentPage);
|
|
4838
|
-
}
|
|
4839
|
-
if (message.from !== 0) {
|
|
4840
|
-
obj.from = Math.round(message.from);
|
|
4841
|
-
}
|
|
4842
|
-
if (message.to !== 0) {
|
|
4843
|
-
obj.to = Math.round(message.to);
|
|
4844
|
-
}
|
|
4845
|
-
if (message.lastPage !== 0) {
|
|
4846
|
-
obj.last_page = Math.round(message.lastPage);
|
|
4847
|
-
}
|
|
4848
|
-
if (message.perPage !== 0) {
|
|
4849
|
-
obj.per_page = Math.round(message.perPage);
|
|
4850
|
-
}
|
|
4851
|
-
if (!message.cost.equals(Long.ZERO)) {
|
|
4852
|
-
obj.cost = (message.cost || Long.ZERO).toString();
|
|
4853
|
-
}
|
|
4854
|
-
if (message.total !== 0) {
|
|
4855
|
-
obj.total = Math.round(message.total);
|
|
4856
|
-
}
|
|
4857
|
-
if (message.data?.length) {
|
|
4858
|
-
obj.data = message.data.map((e) => CommandAction.toJSON(e));
|
|
4859
|
-
}
|
|
4860
|
-
return obj;
|
|
4861
|
-
},
|
|
4862
3691
|
create(base) {
|
|
4863
3692
|
return CommandActionIndexResponse.fromPartial(base ?? {});
|
|
4864
3693
|
},
|
|
@@ -4907,16 +3736,6 @@ export const CommandActionShowResponse = {
|
|
|
4907
3736
|
}
|
|
4908
3737
|
return message;
|
|
4909
3738
|
},
|
|
4910
|
-
fromJSON(object) {
|
|
4911
|
-
return { commandActionId: isSet(object.commandActionId) ? Long.fromValue(object.commandActionId) : Long.UZERO };
|
|
4912
|
-
},
|
|
4913
|
-
toJSON(message) {
|
|
4914
|
-
const obj = {};
|
|
4915
|
-
if (!message.commandActionId.equals(Long.UZERO)) {
|
|
4916
|
-
obj.commandActionId = (message.commandActionId || Long.UZERO).toString();
|
|
4917
|
-
}
|
|
4918
|
-
return obj;
|
|
4919
|
-
},
|
|
4920
3739
|
create(base) {
|
|
4921
3740
|
return CommandActionShowResponse.fromPartial(base ?? {});
|
|
4922
3741
|
},
|
|
@@ -4960,16 +3779,6 @@ export const CommandActionListRequest = {
|
|
|
4960
3779
|
}
|
|
4961
3780
|
return message;
|
|
4962
3781
|
},
|
|
4963
|
-
fromJSON(object) {
|
|
4964
|
-
return { trackerId: isSet(object.trackerId) ? Long.fromValue(object.trackerId) : Long.UZERO };
|
|
4965
|
-
},
|
|
4966
|
-
toJSON(message) {
|
|
4967
|
-
const obj = {};
|
|
4968
|
-
if (!message.trackerId.equals(Long.UZERO)) {
|
|
4969
|
-
obj.trackerId = (message.trackerId || Long.UZERO).toString();
|
|
4970
|
-
}
|
|
4971
|
-
return obj;
|
|
4972
|
-
},
|
|
4973
3782
|
create(base) {
|
|
4974
3783
|
return CommandActionListRequest.fromPartial(base ?? {});
|
|
4975
3784
|
},
|
|
@@ -4988,6 +3797,8 @@ function createBaseCommandActionModel() {
|
|
|
4988
3797
|
commandActionId: Long.UZERO,
|
|
4989
3798
|
commandName: "",
|
|
4990
3799
|
actionName: "",
|
|
3800
|
+
actionDescription: "",
|
|
3801
|
+
actionPicture: "",
|
|
4991
3802
|
sms: undefined,
|
|
4992
3803
|
gprs: undefined,
|
|
4993
3804
|
};
|
|
@@ -5009,11 +3820,17 @@ export const CommandActionModel = {
|
|
|
5009
3820
|
if (message.actionName !== "") {
|
|
5010
3821
|
writer.uint32(42).string(message.actionName);
|
|
5011
3822
|
}
|
|
3823
|
+
if (message.actionDescription !== "") {
|
|
3824
|
+
writer.uint32(50).string(message.actionDescription);
|
|
3825
|
+
}
|
|
3826
|
+
if (message.actionPicture !== "") {
|
|
3827
|
+
writer.uint32(58).string(message.actionPicture);
|
|
3828
|
+
}
|
|
5012
3829
|
if (message.sms !== undefined) {
|
|
5013
|
-
CommandFormat.encode(message.sms, writer.uint32(
|
|
3830
|
+
CommandFormat.encode(message.sms, writer.uint32(66).fork()).join();
|
|
5014
3831
|
}
|
|
5015
3832
|
if (message.gprs !== undefined) {
|
|
5016
|
-
CommandFormat.encode(message.gprs, writer.uint32(
|
|
3833
|
+
CommandFormat.encode(message.gprs, writer.uint32(74).fork()).join();
|
|
5017
3834
|
}
|
|
5018
3835
|
return writer;
|
|
5019
3836
|
},
|
|
@@ -5063,13 +3880,27 @@ export const CommandActionModel = {
|
|
|
5063
3880
|
if (tag !== 50) {
|
|
5064
3881
|
break;
|
|
5065
3882
|
}
|
|
5066
|
-
message.
|
|
3883
|
+
message.actionDescription = reader.string();
|
|
5067
3884
|
continue;
|
|
5068
3885
|
}
|
|
5069
3886
|
case 7: {
|
|
5070
3887
|
if (tag !== 58) {
|
|
5071
3888
|
break;
|
|
5072
3889
|
}
|
|
3890
|
+
message.actionPicture = reader.string();
|
|
3891
|
+
continue;
|
|
3892
|
+
}
|
|
3893
|
+
case 8: {
|
|
3894
|
+
if (tag !== 66) {
|
|
3895
|
+
break;
|
|
3896
|
+
}
|
|
3897
|
+
message.sms = CommandFormat.decode(reader, reader.uint32());
|
|
3898
|
+
continue;
|
|
3899
|
+
}
|
|
3900
|
+
case 9: {
|
|
3901
|
+
if (tag !== 74) {
|
|
3902
|
+
break;
|
|
3903
|
+
}
|
|
5073
3904
|
message.gprs = CommandFormat.decode(reader, reader.uint32());
|
|
5074
3905
|
continue;
|
|
5075
3906
|
}
|
|
@@ -5081,42 +3912,6 @@ export const CommandActionModel = {
|
|
|
5081
3912
|
}
|
|
5082
3913
|
return message;
|
|
5083
3914
|
},
|
|
5084
|
-
fromJSON(object) {
|
|
5085
|
-
return {
|
|
5086
|
-
commandId: isSet(object.command_id) ? Long.fromValue(object.command_id) : Long.UZERO,
|
|
5087
|
-
trackerId: isSet(object.tracker_id) ? Long.fromValue(object.tracker_id) : Long.UZERO,
|
|
5088
|
-
commandActionId: isSet(object.command_action_id) ? Long.fromValue(object.command_action_id) : Long.UZERO,
|
|
5089
|
-
commandName: isSet(object.command_name) ? globalThis.String(object.command_name) : "",
|
|
5090
|
-
actionName: isSet(object.action_name) ? globalThis.String(object.action_name) : "",
|
|
5091
|
-
sms: isSet(object.sms) ? CommandFormat.fromJSON(object.sms) : undefined,
|
|
5092
|
-
gprs: isSet(object.gprs) ? CommandFormat.fromJSON(object.gprs) : undefined,
|
|
5093
|
-
};
|
|
5094
|
-
},
|
|
5095
|
-
toJSON(message) {
|
|
5096
|
-
const obj = {};
|
|
5097
|
-
if (!message.commandId.equals(Long.UZERO)) {
|
|
5098
|
-
obj.command_id = (message.commandId || Long.UZERO).toString();
|
|
5099
|
-
}
|
|
5100
|
-
if (!message.trackerId.equals(Long.UZERO)) {
|
|
5101
|
-
obj.tracker_id = (message.trackerId || Long.UZERO).toString();
|
|
5102
|
-
}
|
|
5103
|
-
if (!message.commandActionId.equals(Long.UZERO)) {
|
|
5104
|
-
obj.command_action_id = (message.commandActionId || Long.UZERO).toString();
|
|
5105
|
-
}
|
|
5106
|
-
if (message.commandName !== "") {
|
|
5107
|
-
obj.command_name = message.commandName;
|
|
5108
|
-
}
|
|
5109
|
-
if (message.actionName !== "") {
|
|
5110
|
-
obj.action_name = message.actionName;
|
|
5111
|
-
}
|
|
5112
|
-
if (message.sms !== undefined) {
|
|
5113
|
-
obj.sms = CommandFormat.toJSON(message.sms);
|
|
5114
|
-
}
|
|
5115
|
-
if (message.gprs !== undefined) {
|
|
5116
|
-
obj.gprs = CommandFormat.toJSON(message.gprs);
|
|
5117
|
-
}
|
|
5118
|
-
return obj;
|
|
5119
|
-
},
|
|
5120
3915
|
create(base) {
|
|
5121
3916
|
return CommandActionModel.fromPartial(base ?? {});
|
|
5122
3917
|
},
|
|
@@ -5133,6 +3928,8 @@ export const CommandActionModel = {
|
|
|
5133
3928
|
: Long.UZERO;
|
|
5134
3929
|
message.commandName = object.commandName ?? "";
|
|
5135
3930
|
message.actionName = object.actionName ?? "";
|
|
3931
|
+
message.actionDescription = object.actionDescription ?? "";
|
|
3932
|
+
message.actionPicture = object.actionPicture ?? "";
|
|
5136
3933
|
message.sms = (object.sms !== undefined && object.sms !== null) ? CommandFormat.fromPartial(object.sms) : undefined;
|
|
5137
3934
|
message.gprs = (object.gprs !== undefined && object.gprs !== null)
|
|
5138
3935
|
? CommandFormat.fromPartial(object.gprs)
|
|
@@ -5182,22 +3979,6 @@ export const CommandActionListResponse = {
|
|
|
5182
3979
|
}
|
|
5183
3980
|
return message;
|
|
5184
3981
|
},
|
|
5185
|
-
fromJSON(object) {
|
|
5186
|
-
return {
|
|
5187
|
-
cost: isSet(object.cost) ? Long.fromValue(object.cost) : Long.ZERO,
|
|
5188
|
-
data: globalThis.Array.isArray(object?.data) ? object.data.map((e) => CommandActionModel.fromJSON(e)) : [],
|
|
5189
|
-
};
|
|
5190
|
-
},
|
|
5191
|
-
toJSON(message) {
|
|
5192
|
-
const obj = {};
|
|
5193
|
-
if (!message.cost.equals(Long.ZERO)) {
|
|
5194
|
-
obj.cost = (message.cost || Long.ZERO).toString();
|
|
5195
|
-
}
|
|
5196
|
-
if (message.data?.length) {
|
|
5197
|
-
obj.data = message.data.map((e) => CommandActionModel.toJSON(e));
|
|
5198
|
-
}
|
|
5199
|
-
return obj;
|
|
5200
|
-
},
|
|
5201
3982
|
create(base) {
|
|
5202
3983
|
return CommandActionListResponse.fromPartial(base ?? {});
|
|
5203
3984
|
},
|
|
@@ -5208,9 +3989,3 @@ export const CommandActionListResponse = {
|
|
|
5208
3989
|
return message;
|
|
5209
3990
|
},
|
|
5210
3991
|
};
|
|
5211
|
-
function isObject(value) {
|
|
5212
|
-
return typeof value === "object" && value !== null;
|
|
5213
|
-
}
|
|
5214
|
-
function isSet(value) {
|
|
5215
|
-
return value !== null && value !== undefined;
|
|
5216
|
-
}
|