@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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
2
|
// versions:
|
|
3
|
-
// protoc-gen-ts_proto v2.7.
|
|
3
|
+
// protoc-gen-ts_proto v2.7.5
|
|
4
4
|
// protoc v6.31.1
|
|
5
5
|
// source: apis/client.proto
|
|
6
6
|
/* eslint-disable */
|
|
@@ -27,7 +27,7 @@ export const MessageOnly = {
|
|
|
27
27
|
},
|
|
28
28
|
decode(input, length) {
|
|
29
29
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
30
|
-
|
|
30
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
31
31
|
const message = createBaseMessageOnly();
|
|
32
32
|
while (reader.pos < end) {
|
|
33
33
|
const tag = reader.uint32();
|
|
@@ -47,16 +47,6 @@ export const MessageOnly = {
|
|
|
47
47
|
}
|
|
48
48
|
return message;
|
|
49
49
|
},
|
|
50
|
-
fromJSON(object) {
|
|
51
|
-
return { message: isSet(object.message) ? globalThis.String(object.message) : "" };
|
|
52
|
-
},
|
|
53
|
-
toJSON(message) {
|
|
54
|
-
const obj = {};
|
|
55
|
-
if (message.message !== "") {
|
|
56
|
-
obj.message = message.message;
|
|
57
|
-
}
|
|
58
|
-
return obj;
|
|
59
|
-
},
|
|
60
50
|
create(base) {
|
|
61
51
|
return MessageOnly.fromPartial(base ?? {});
|
|
62
52
|
},
|
|
@@ -120,7 +110,7 @@ export const UserPagination = {
|
|
|
120
110
|
},
|
|
121
111
|
decode(input, length) {
|
|
122
112
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
123
|
-
|
|
113
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
124
114
|
const message = createBaseUserPagination();
|
|
125
115
|
while (reader.pos < end) {
|
|
126
116
|
const tag = reader.uint32();
|
|
@@ -210,58 +200,6 @@ export const UserPagination = {
|
|
|
210
200
|
}
|
|
211
201
|
return message;
|
|
212
202
|
},
|
|
213
|
-
fromJSON(object) {
|
|
214
|
-
return {
|
|
215
|
-
currentPage: isSet(object.current_page) ? globalThis.Number(object.current_page) : 0,
|
|
216
|
-
firstPageUrl: isSet(object.first_page_url) ? globalThis.String(object.first_page_url) : "",
|
|
217
|
-
lastPageUrl: isSet(object.last_page_url) ? globalThis.String(object.last_page_url) : "",
|
|
218
|
-
nextPageUrl: isSet(object.next_page_url) ? globalThis.String(object.next_page_url) : "",
|
|
219
|
-
prevPageUrl: isSet(object.prev_page_url) ? globalThis.String(object.prev_page_url) : "",
|
|
220
|
-
path: isSet(object.path) ? globalThis.String(object.path) : "",
|
|
221
|
-
from: isSet(object.from) ? globalThis.Number(object.from) : 0,
|
|
222
|
-
lastPage: isSet(object.last_page) ? globalThis.Number(object.last_page) : 0,
|
|
223
|
-
perPage: isSet(object.per_page) ? globalThis.Number(object.per_page) : 0,
|
|
224
|
-
to: isSet(object.to) ? globalThis.Number(object.to) : 0,
|
|
225
|
-
data: globalThis.Array.isArray(object?.data) ? object.data.map((e) => User.fromJSON(e)) : [],
|
|
226
|
-
};
|
|
227
|
-
},
|
|
228
|
-
toJSON(message) {
|
|
229
|
-
const obj = {};
|
|
230
|
-
if (message.currentPage !== 0) {
|
|
231
|
-
obj.current_page = Math.round(message.currentPage);
|
|
232
|
-
}
|
|
233
|
-
if (message.firstPageUrl !== "") {
|
|
234
|
-
obj.first_page_url = message.firstPageUrl;
|
|
235
|
-
}
|
|
236
|
-
if (message.lastPageUrl !== "") {
|
|
237
|
-
obj.last_page_url = message.lastPageUrl;
|
|
238
|
-
}
|
|
239
|
-
if (message.nextPageUrl !== "") {
|
|
240
|
-
obj.next_page_url = message.nextPageUrl;
|
|
241
|
-
}
|
|
242
|
-
if (message.prevPageUrl !== "") {
|
|
243
|
-
obj.prev_page_url = message.prevPageUrl;
|
|
244
|
-
}
|
|
245
|
-
if (message.path !== "") {
|
|
246
|
-
obj.path = message.path;
|
|
247
|
-
}
|
|
248
|
-
if (message.from !== 0) {
|
|
249
|
-
obj.from = Math.round(message.from);
|
|
250
|
-
}
|
|
251
|
-
if (message.lastPage !== 0) {
|
|
252
|
-
obj.last_page = Math.round(message.lastPage);
|
|
253
|
-
}
|
|
254
|
-
if (message.perPage !== 0) {
|
|
255
|
-
obj.per_page = Math.round(message.perPage);
|
|
256
|
-
}
|
|
257
|
-
if (message.to !== 0) {
|
|
258
|
-
obj.to = Math.round(message.to);
|
|
259
|
-
}
|
|
260
|
-
if (message.data?.length) {
|
|
261
|
-
obj.data = message.data.map((e) => User.toJSON(e));
|
|
262
|
-
}
|
|
263
|
-
return obj;
|
|
264
|
-
},
|
|
265
203
|
create(base) {
|
|
266
204
|
return UserPagination.fromPartial(base ?? {});
|
|
267
205
|
},
|
|
@@ -308,7 +246,7 @@ export const VersionCheck = {
|
|
|
308
246
|
},
|
|
309
247
|
decode(input, length) {
|
|
310
248
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
311
|
-
|
|
249
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
312
250
|
const message = createBaseVersionCheck();
|
|
313
251
|
while (reader.pos < end) {
|
|
314
252
|
const tag = reader.uint32();
|
|
@@ -363,38 +301,6 @@ export const VersionCheck = {
|
|
|
363
301
|
}
|
|
364
302
|
return message;
|
|
365
303
|
},
|
|
366
|
-
fromJSON(object) {
|
|
367
|
-
return {
|
|
368
|
-
status: isSet(object.status) ? globalThis.Boolean(object.status) : false,
|
|
369
|
-
message: isSet(object.message) ? globalThis.String(object.message) : "",
|
|
370
|
-
currentVersion: isSet(object.current_version) ? globalThis.String(object.current_version) : "",
|
|
371
|
-
forceUpdate: isSet(object.force_update) ? globalThis.Boolean(object.force_update) : false,
|
|
372
|
-
partnerVersion: isSet(object.partner_version) ? globalThis.String(object.partner_version) : "",
|
|
373
|
-
userVersion: isSet(object.user_version) ? globalThis.String(object.user_version) : "",
|
|
374
|
-
};
|
|
375
|
-
},
|
|
376
|
-
toJSON(message) {
|
|
377
|
-
const obj = {};
|
|
378
|
-
if (message.status !== false) {
|
|
379
|
-
obj.status = message.status;
|
|
380
|
-
}
|
|
381
|
-
if (message.message !== "") {
|
|
382
|
-
obj.message = message.message;
|
|
383
|
-
}
|
|
384
|
-
if (message.currentVersion !== "") {
|
|
385
|
-
obj.current_version = message.currentVersion;
|
|
386
|
-
}
|
|
387
|
-
if (message.forceUpdate !== false) {
|
|
388
|
-
obj.force_update = message.forceUpdate;
|
|
389
|
-
}
|
|
390
|
-
if (message.partnerVersion !== "") {
|
|
391
|
-
obj.partner_version = message.partnerVersion;
|
|
392
|
-
}
|
|
393
|
-
if (message.userVersion !== "") {
|
|
394
|
-
obj.user_version = message.userVersion;
|
|
395
|
-
}
|
|
396
|
-
return obj;
|
|
397
|
-
},
|
|
398
304
|
create(base) {
|
|
399
305
|
return VersionCheck.fromPartial(base ?? {});
|
|
400
306
|
},
|
|
@@ -436,7 +342,7 @@ export const Me = {
|
|
|
436
342
|
},
|
|
437
343
|
decode(input, length) {
|
|
438
344
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
439
|
-
|
|
345
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
440
346
|
const message = createBaseMe();
|
|
441
347
|
while (reader.pos < end) {
|
|
442
348
|
const tag = reader.uint32();
|
|
@@ -491,42 +397,6 @@ export const Me = {
|
|
|
491
397
|
}
|
|
492
398
|
return message;
|
|
493
399
|
},
|
|
494
|
-
fromJSON(object) {
|
|
495
|
-
return {
|
|
496
|
-
user: isSet(object.user) ? User.fromJSON(object.user) : undefined,
|
|
497
|
-
person: globalThis.Array.isArray(object?.persons) ? object.persons.map((e) => Person.fromJSON(e)) : [],
|
|
498
|
-
currencies: globalThis.Array.isArray(object?.currencies)
|
|
499
|
-
? object.currencies.map((e) => Currency.fromJSON(e))
|
|
500
|
-
: [],
|
|
501
|
-
permissions: globalThis.Array.isArray(object?.permissions)
|
|
502
|
-
? object.permissions.map((e) => Permission.fromJSON(e))
|
|
503
|
-
: [],
|
|
504
|
-
device: isSet(object.device) ? Device.fromJSON(object.device) : undefined,
|
|
505
|
-
deviceCount: isSet(object.device_count) ? globalThis.Number(object.device_count) : undefined,
|
|
506
|
-
};
|
|
507
|
-
},
|
|
508
|
-
toJSON(message) {
|
|
509
|
-
const obj = {};
|
|
510
|
-
if (message.user !== undefined) {
|
|
511
|
-
obj.user = User.toJSON(message.user);
|
|
512
|
-
}
|
|
513
|
-
if (message.person?.length) {
|
|
514
|
-
obj.persons = message.person.map((e) => Person.toJSON(e));
|
|
515
|
-
}
|
|
516
|
-
if (message.currencies?.length) {
|
|
517
|
-
obj.currencies = message.currencies.map((e) => Currency.toJSON(e));
|
|
518
|
-
}
|
|
519
|
-
if (message.permissions?.length) {
|
|
520
|
-
obj.permissions = message.permissions.map((e) => Permission.toJSON(e));
|
|
521
|
-
}
|
|
522
|
-
if (message.device !== undefined) {
|
|
523
|
-
obj.device = Device.toJSON(message.device);
|
|
524
|
-
}
|
|
525
|
-
if (message.deviceCount !== undefined) {
|
|
526
|
-
obj.device_count = Math.round(message.deviceCount);
|
|
527
|
-
}
|
|
528
|
-
return obj;
|
|
529
|
-
},
|
|
530
400
|
create(base) {
|
|
531
401
|
return Me.fromPartial(base ?? {});
|
|
532
402
|
},
|
|
@@ -597,7 +467,7 @@ export const DevicePagination = {
|
|
|
597
467
|
},
|
|
598
468
|
decode(input, length) {
|
|
599
469
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
600
|
-
|
|
470
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
601
471
|
const message = createBaseDevicePagination();
|
|
602
472
|
while (reader.pos < end) {
|
|
603
473
|
const tag = reader.uint32();
|
|
@@ -687,58 +557,6 @@ export const DevicePagination = {
|
|
|
687
557
|
}
|
|
688
558
|
return message;
|
|
689
559
|
},
|
|
690
|
-
fromJSON(object) {
|
|
691
|
-
return {
|
|
692
|
-
currentPage: isSet(object.current_page) ? globalThis.Number(object.current_page) : 0,
|
|
693
|
-
firstPageUrl: isSet(object.first_page_url) ? globalThis.String(object.first_page_url) : "",
|
|
694
|
-
lastPageUrl: isSet(object.last_page_url) ? globalThis.String(object.last_page_url) : "",
|
|
695
|
-
nextPageUrl: isSet(object.next_page_url) ? globalThis.String(object.next_page_url) : "",
|
|
696
|
-
prevPageUrl: isSet(object.prev_page_url) ? globalThis.String(object.prev_page_url) : "",
|
|
697
|
-
path: isSet(object.path) ? globalThis.String(object.path) : "",
|
|
698
|
-
from: isSet(object.from) ? globalThis.Number(object.from) : 0,
|
|
699
|
-
lastPage: isSet(object.last_page) ? globalThis.Number(object.last_page) : 0,
|
|
700
|
-
perPage: isSet(object.per_page) ? globalThis.Number(object.per_page) : 0,
|
|
701
|
-
to: isSet(object.to) ? globalThis.Number(object.to) : 0,
|
|
702
|
-
data: globalThis.Array.isArray(object?.data) ? object.data.map((e) => Device.fromJSON(e)) : [],
|
|
703
|
-
};
|
|
704
|
-
},
|
|
705
|
-
toJSON(message) {
|
|
706
|
-
const obj = {};
|
|
707
|
-
if (message.currentPage !== 0) {
|
|
708
|
-
obj.current_page = Math.round(message.currentPage);
|
|
709
|
-
}
|
|
710
|
-
if (message.firstPageUrl !== "") {
|
|
711
|
-
obj.first_page_url = message.firstPageUrl;
|
|
712
|
-
}
|
|
713
|
-
if (message.lastPageUrl !== "") {
|
|
714
|
-
obj.last_page_url = message.lastPageUrl;
|
|
715
|
-
}
|
|
716
|
-
if (message.nextPageUrl !== "") {
|
|
717
|
-
obj.next_page_url = message.nextPageUrl;
|
|
718
|
-
}
|
|
719
|
-
if (message.prevPageUrl !== "") {
|
|
720
|
-
obj.prev_page_url = message.prevPageUrl;
|
|
721
|
-
}
|
|
722
|
-
if (message.path !== "") {
|
|
723
|
-
obj.path = message.path;
|
|
724
|
-
}
|
|
725
|
-
if (message.from !== 0) {
|
|
726
|
-
obj.from = Math.round(message.from);
|
|
727
|
-
}
|
|
728
|
-
if (message.lastPage !== 0) {
|
|
729
|
-
obj.last_page = Math.round(message.lastPage);
|
|
730
|
-
}
|
|
731
|
-
if (message.perPage !== 0) {
|
|
732
|
-
obj.per_page = Math.round(message.perPage);
|
|
733
|
-
}
|
|
734
|
-
if (message.to !== 0) {
|
|
735
|
-
obj.to = Math.round(message.to);
|
|
736
|
-
}
|
|
737
|
-
if (message.data?.length) {
|
|
738
|
-
obj.data = message.data.map((e) => Device.toJSON(e));
|
|
739
|
-
}
|
|
740
|
-
return obj;
|
|
741
|
-
},
|
|
742
560
|
create(base) {
|
|
743
561
|
return DevicePagination.fromPartial(base ?? {});
|
|
744
562
|
},
|
|
@@ -800,7 +618,7 @@ export const Config = {
|
|
|
800
618
|
},
|
|
801
619
|
decode(input, length) {
|
|
802
620
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
803
|
-
|
|
621
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
804
622
|
const message = createBaseConfig();
|
|
805
623
|
while (reader.pos < end) {
|
|
806
624
|
const tag = reader.uint32();
|
|
@@ -869,46 +687,6 @@ export const Config = {
|
|
|
869
687
|
}
|
|
870
688
|
return message;
|
|
871
689
|
},
|
|
872
|
-
fromJSON(object) {
|
|
873
|
-
return {
|
|
874
|
-
id: isSet(object.id) ? globalThis.Number(object.id) : 0,
|
|
875
|
-
organizationId: isSet(object.organization_id) ? Long.fromValue(object.organization_id) : Long.UZERO,
|
|
876
|
-
createdBy: isSet(object.created_by) ? Long.fromValue(object.created_by) : undefined,
|
|
877
|
-
updatedBy: isSet(object.updated_by) ? Long.fromValue(object.updated_by) : undefined,
|
|
878
|
-
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
|
879
|
-
value: isSet(object.value) ? globalThis.String(object.value) : "",
|
|
880
|
-
createdAt: isSet(object.created_at) ? fromJsonTimestamp(object.created_at) : undefined,
|
|
881
|
-
updatedAt: isSet(object.updated_at) ? fromJsonTimestamp(object.updated_at) : undefined,
|
|
882
|
-
};
|
|
883
|
-
},
|
|
884
|
-
toJSON(message) {
|
|
885
|
-
const obj = {};
|
|
886
|
-
if (message.id !== 0) {
|
|
887
|
-
obj.id = Math.round(message.id);
|
|
888
|
-
}
|
|
889
|
-
if (!message.organizationId.equals(Long.UZERO)) {
|
|
890
|
-
obj.organization_id = (message.organizationId || Long.UZERO).toString();
|
|
891
|
-
}
|
|
892
|
-
if (message.createdBy !== undefined) {
|
|
893
|
-
obj.created_by = (message.createdBy || Long.UZERO).toString();
|
|
894
|
-
}
|
|
895
|
-
if (message.updatedBy !== undefined) {
|
|
896
|
-
obj.updated_by = (message.updatedBy || Long.UZERO).toString();
|
|
897
|
-
}
|
|
898
|
-
if (message.key !== "") {
|
|
899
|
-
obj.key = message.key;
|
|
900
|
-
}
|
|
901
|
-
if (message.value !== "") {
|
|
902
|
-
obj.value = message.value;
|
|
903
|
-
}
|
|
904
|
-
if (message.createdAt !== undefined) {
|
|
905
|
-
obj.created_at = message.createdAt.toISOString();
|
|
906
|
-
}
|
|
907
|
-
if (message.updatedAt !== undefined) {
|
|
908
|
-
obj.updated_at = message.updatedAt.toISOString();
|
|
909
|
-
}
|
|
910
|
-
return obj;
|
|
911
|
-
},
|
|
912
690
|
create(base) {
|
|
913
691
|
return Config.fromPartial(base ?? {});
|
|
914
692
|
},
|
|
@@ -943,7 +721,7 @@ export const ConfigList = {
|
|
|
943
721
|
},
|
|
944
722
|
decode(input, length) {
|
|
945
723
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
946
|
-
|
|
724
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
947
725
|
const message = createBaseConfigList();
|
|
948
726
|
while (reader.pos < end) {
|
|
949
727
|
const tag = reader.uint32();
|
|
@@ -963,18 +741,6 @@ export const ConfigList = {
|
|
|
963
741
|
}
|
|
964
742
|
return message;
|
|
965
743
|
},
|
|
966
|
-
fromJSON(object) {
|
|
967
|
-
return {
|
|
968
|
-
configs: globalThis.Array.isArray(object?.configs) ? object.configs.map((e) => Config.fromJSON(e)) : [],
|
|
969
|
-
};
|
|
970
|
-
},
|
|
971
|
-
toJSON(message) {
|
|
972
|
-
const obj = {};
|
|
973
|
-
if (message.configs?.length) {
|
|
974
|
-
obj.configs = message.configs.map((e) => Config.toJSON(e));
|
|
975
|
-
}
|
|
976
|
-
return obj;
|
|
977
|
-
},
|
|
978
744
|
create(base) {
|
|
979
745
|
return ConfigList.fromPartial(base ?? {});
|
|
980
746
|
},
|
|
@@ -1038,7 +804,7 @@ export const TransactionPagination = {
|
|
|
1038
804
|
},
|
|
1039
805
|
decode(input, length) {
|
|
1040
806
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1041
|
-
|
|
807
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1042
808
|
const message = createBaseTransactionPagination();
|
|
1043
809
|
while (reader.pos < end) {
|
|
1044
810
|
const tag = reader.uint32();
|
|
@@ -1128,58 +894,6 @@ export const TransactionPagination = {
|
|
|
1128
894
|
}
|
|
1129
895
|
return message;
|
|
1130
896
|
},
|
|
1131
|
-
fromJSON(object) {
|
|
1132
|
-
return {
|
|
1133
|
-
currentPage: isSet(object.current_page) ? globalThis.Number(object.current_page) : 0,
|
|
1134
|
-
firstPageUrl: isSet(object.first_page_url) ? globalThis.String(object.first_page_url) : "",
|
|
1135
|
-
lastPageUrl: isSet(object.last_page_url) ? globalThis.String(object.last_page_url) : "",
|
|
1136
|
-
nextPageUrl: isSet(object.next_page_url) ? globalThis.String(object.next_page_url) : "",
|
|
1137
|
-
prevPageUrl: isSet(object.prev_page_url) ? globalThis.String(object.prev_page_url) : "",
|
|
1138
|
-
path: isSet(object.path) ? globalThis.String(object.path) : "",
|
|
1139
|
-
from: isSet(object.from) ? globalThis.Number(object.from) : 0,
|
|
1140
|
-
lastPage: isSet(object.last_page) ? globalThis.Number(object.last_page) : 0,
|
|
1141
|
-
perPage: isSet(object.per_page) ? globalThis.Number(object.per_page) : 0,
|
|
1142
|
-
to: isSet(object.to) ? globalThis.Number(object.to) : 0,
|
|
1143
|
-
data: globalThis.Array.isArray(object?.data) ? object.data.map((e) => Transaction.fromJSON(e)) : [],
|
|
1144
|
-
};
|
|
1145
|
-
},
|
|
1146
|
-
toJSON(message) {
|
|
1147
|
-
const obj = {};
|
|
1148
|
-
if (message.currentPage !== 0) {
|
|
1149
|
-
obj.current_page = Math.round(message.currentPage);
|
|
1150
|
-
}
|
|
1151
|
-
if (message.firstPageUrl !== "") {
|
|
1152
|
-
obj.first_page_url = message.firstPageUrl;
|
|
1153
|
-
}
|
|
1154
|
-
if (message.lastPageUrl !== "") {
|
|
1155
|
-
obj.last_page_url = message.lastPageUrl;
|
|
1156
|
-
}
|
|
1157
|
-
if (message.nextPageUrl !== "") {
|
|
1158
|
-
obj.next_page_url = message.nextPageUrl;
|
|
1159
|
-
}
|
|
1160
|
-
if (message.prevPageUrl !== "") {
|
|
1161
|
-
obj.prev_page_url = message.prevPageUrl;
|
|
1162
|
-
}
|
|
1163
|
-
if (message.path !== "") {
|
|
1164
|
-
obj.path = message.path;
|
|
1165
|
-
}
|
|
1166
|
-
if (message.from !== 0) {
|
|
1167
|
-
obj.from = Math.round(message.from);
|
|
1168
|
-
}
|
|
1169
|
-
if (message.lastPage !== 0) {
|
|
1170
|
-
obj.last_page = Math.round(message.lastPage);
|
|
1171
|
-
}
|
|
1172
|
-
if (message.perPage !== 0) {
|
|
1173
|
-
obj.per_page = Math.round(message.perPage);
|
|
1174
|
-
}
|
|
1175
|
-
if (message.to !== 0) {
|
|
1176
|
-
obj.to = Math.round(message.to);
|
|
1177
|
-
}
|
|
1178
|
-
if (message.data?.length) {
|
|
1179
|
-
obj.data = message.data.map((e) => Transaction.toJSON(e));
|
|
1180
|
-
}
|
|
1181
|
-
return obj;
|
|
1182
|
-
},
|
|
1183
897
|
create(base) {
|
|
1184
898
|
return TransactionPagination.fromPartial(base ?? {});
|
|
1185
899
|
},
|
|
@@ -1273,7 +987,7 @@ export const Transaction = {
|
|
|
1273
987
|
},
|
|
1274
988
|
decode(input, length) {
|
|
1275
989
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1276
|
-
|
|
990
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1277
991
|
const message = createBaseTransaction();
|
|
1278
992
|
while (reader.pos < end) {
|
|
1279
993
|
const tag = reader.uint32();
|
|
@@ -1398,78 +1112,6 @@ export const Transaction = {
|
|
|
1398
1112
|
}
|
|
1399
1113
|
return message;
|
|
1400
1114
|
},
|
|
1401
|
-
fromJSON(object) {
|
|
1402
|
-
return {
|
|
1403
|
-
id: isSet(object.id) ? Long.fromValue(object.id) : Long.UZERO,
|
|
1404
|
-
organizationId: isSet(object.organization_id) ? Long.fromValue(object.organization_id) : Long.UZERO,
|
|
1405
|
-
fromUserId: isSet(object.from_user_id) ? Long.fromValue(object.from_user_id) : undefined,
|
|
1406
|
-
createdBy: isSet(object.created_by) ? Long.fromValue(object.created_by) : undefined,
|
|
1407
|
-
updatedBy: isSet(object.updated_by) ? Long.fromValue(object.updated_by) : undefined,
|
|
1408
|
-
transactionReason: isSet(object.transaction_reason) ? globalThis.String(object.transaction_reason) : undefined,
|
|
1409
|
-
picture: isSet(object.picture) ? globalThis.String(object.picture) : undefined,
|
|
1410
|
-
description: isSet(object.description) ? globalThis.String(object.description) : undefined,
|
|
1411
|
-
fromCurrencyId: isSet(object.from_currency_id) ? Long.fromValue(object.from_currency_id) : Long.UZERO,
|
|
1412
|
-
toCurrencyId: isSet(object.to_currency_id) ? Long.fromValue(object.to_currency_id) : Long.UZERO,
|
|
1413
|
-
price: isSet(object.price) ? globalThis.String(object.price) : "",
|
|
1414
|
-
type: isSet(object.type) ? globalThis.String(object.type) : "",
|
|
1415
|
-
createdAt: isSet(object.created_at) ? fromJsonTimestamp(object.created_at) : undefined,
|
|
1416
|
-
updatedAt: isSet(object.updated_at) ? fromJsonTimestamp(object.updated_at) : undefined,
|
|
1417
|
-
currency: isSet(object.currency) ? Currency.fromJSON(object.currency) : undefined,
|
|
1418
|
-
organization: isSet(object.organization) ? Organization.fromJSON(object.organization) : undefined,
|
|
1419
|
-
};
|
|
1420
|
-
},
|
|
1421
|
-
toJSON(message) {
|
|
1422
|
-
const obj = {};
|
|
1423
|
-
if (!message.id.equals(Long.UZERO)) {
|
|
1424
|
-
obj.id = (message.id || Long.UZERO).toString();
|
|
1425
|
-
}
|
|
1426
|
-
if (!message.organizationId.equals(Long.UZERO)) {
|
|
1427
|
-
obj.organization_id = (message.organizationId || Long.UZERO).toString();
|
|
1428
|
-
}
|
|
1429
|
-
if (message.fromUserId !== undefined) {
|
|
1430
|
-
obj.from_user_id = (message.fromUserId || Long.UZERO).toString();
|
|
1431
|
-
}
|
|
1432
|
-
if (message.createdBy !== undefined) {
|
|
1433
|
-
obj.created_by = (message.createdBy || Long.UZERO).toString();
|
|
1434
|
-
}
|
|
1435
|
-
if (message.updatedBy !== undefined) {
|
|
1436
|
-
obj.updated_by = (message.updatedBy || Long.UZERO).toString();
|
|
1437
|
-
}
|
|
1438
|
-
if (message.transactionReason !== undefined) {
|
|
1439
|
-
obj.transaction_reason = message.transactionReason;
|
|
1440
|
-
}
|
|
1441
|
-
if (message.picture !== undefined) {
|
|
1442
|
-
obj.picture = message.picture;
|
|
1443
|
-
}
|
|
1444
|
-
if (message.description !== undefined) {
|
|
1445
|
-
obj.description = message.description;
|
|
1446
|
-
}
|
|
1447
|
-
if (!message.fromCurrencyId.equals(Long.UZERO)) {
|
|
1448
|
-
obj.from_currency_id = (message.fromCurrencyId || Long.UZERO).toString();
|
|
1449
|
-
}
|
|
1450
|
-
if (!message.toCurrencyId.equals(Long.UZERO)) {
|
|
1451
|
-
obj.to_currency_id = (message.toCurrencyId || Long.UZERO).toString();
|
|
1452
|
-
}
|
|
1453
|
-
if (message.price !== "") {
|
|
1454
|
-
obj.price = message.price;
|
|
1455
|
-
}
|
|
1456
|
-
if (message.type !== "") {
|
|
1457
|
-
obj.type = message.type;
|
|
1458
|
-
}
|
|
1459
|
-
if (message.createdAt !== undefined) {
|
|
1460
|
-
obj.created_at = message.createdAt.toISOString();
|
|
1461
|
-
}
|
|
1462
|
-
if (message.updatedAt !== undefined) {
|
|
1463
|
-
obj.updated_at = message.updatedAt.toISOString();
|
|
1464
|
-
}
|
|
1465
|
-
if (message.currency !== undefined) {
|
|
1466
|
-
obj.currency = Currency.toJSON(message.currency);
|
|
1467
|
-
}
|
|
1468
|
-
if (message.organization !== undefined) {
|
|
1469
|
-
obj.organization = Organization.toJSON(message.organization);
|
|
1470
|
-
}
|
|
1471
|
-
return obj;
|
|
1472
|
-
},
|
|
1473
1115
|
create(base) {
|
|
1474
1116
|
return Transaction.fromPartial(base ?? {});
|
|
1475
1117
|
},
|
|
@@ -1525,7 +1167,7 @@ export const Channel = {
|
|
|
1525
1167
|
},
|
|
1526
1168
|
decode(input, length) {
|
|
1527
1169
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1528
|
-
|
|
1170
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1529
1171
|
const message = createBaseChannel();
|
|
1530
1172
|
while (reader.pos < end) {
|
|
1531
1173
|
const tag = reader.uint32();
|
|
@@ -1552,22 +1194,6 @@ export const Channel = {
|
|
|
1552
1194
|
}
|
|
1553
1195
|
return message;
|
|
1554
1196
|
},
|
|
1555
|
-
fromJSON(object) {
|
|
1556
|
-
return {
|
|
1557
|
-
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
1558
|
-
count: isSet(object.count) ? Long.fromValue(object.count) : Long.UZERO,
|
|
1559
|
-
};
|
|
1560
|
-
},
|
|
1561
|
-
toJSON(message) {
|
|
1562
|
-
const obj = {};
|
|
1563
|
-
if (message.name !== "") {
|
|
1564
|
-
obj.name = message.name;
|
|
1565
|
-
}
|
|
1566
|
-
if (!message.count.equals(Long.UZERO)) {
|
|
1567
|
-
obj.count = (message.count || Long.UZERO).toString();
|
|
1568
|
-
}
|
|
1569
|
-
return obj;
|
|
1570
|
-
},
|
|
1571
1197
|
create(base) {
|
|
1572
1198
|
return Channel.fromPartial(base ?? {});
|
|
1573
1199
|
},
|
|
@@ -1599,7 +1225,7 @@ export const Statistics = {
|
|
|
1599
1225
|
},
|
|
1600
1226
|
decode(input, length) {
|
|
1601
1227
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1602
|
-
|
|
1228
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1603
1229
|
const message = createBaseStatistics();
|
|
1604
1230
|
while (reader.pos < end) {
|
|
1605
1231
|
const tag = reader.uint32();
|
|
@@ -1640,32 +1266,6 @@ export const Statistics = {
|
|
|
1640
1266
|
}
|
|
1641
1267
|
return message;
|
|
1642
1268
|
},
|
|
1643
|
-
fromJSON(object) {
|
|
1644
|
-
return {
|
|
1645
|
-
total: isSet(object.total) ? Long.fromValue(object.total) : Long.UZERO,
|
|
1646
|
-
read: isSet(object.read) ? Long.fromValue(object.read) : Long.UZERO,
|
|
1647
|
-
unread: isSet(object.unread) ? Long.fromValue(object.unread) : Long.UZERO,
|
|
1648
|
-
channelsUsed: globalThis.Array.isArray(object?.channels_used)
|
|
1649
|
-
? object.channels_used.map((e) => Channel.fromJSON(e))
|
|
1650
|
-
: [],
|
|
1651
|
-
};
|
|
1652
|
-
},
|
|
1653
|
-
toJSON(message) {
|
|
1654
|
-
const obj = {};
|
|
1655
|
-
if (!message.total.equals(Long.UZERO)) {
|
|
1656
|
-
obj.total = (message.total || Long.UZERO).toString();
|
|
1657
|
-
}
|
|
1658
|
-
if (!message.read.equals(Long.UZERO)) {
|
|
1659
|
-
obj.read = (message.read || Long.UZERO).toString();
|
|
1660
|
-
}
|
|
1661
|
-
if (!message.unread.equals(Long.UZERO)) {
|
|
1662
|
-
obj.unread = (message.unread || Long.UZERO).toString();
|
|
1663
|
-
}
|
|
1664
|
-
if (message.channelsUsed?.length) {
|
|
1665
|
-
obj.channels_used = message.channelsUsed.map((e) => Channel.toJSON(e));
|
|
1666
|
-
}
|
|
1667
|
-
return obj;
|
|
1668
|
-
},
|
|
1669
1269
|
create(base) {
|
|
1670
1270
|
return Statistics.fromPartial(base ?? {});
|
|
1671
1271
|
},
|
|
@@ -1695,7 +1295,7 @@ export const TopRepeatedNotification = {
|
|
|
1695
1295
|
},
|
|
1696
1296
|
decode(input, length) {
|
|
1697
1297
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1698
|
-
|
|
1298
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1699
1299
|
const message = createBaseTopRepeatedNotification();
|
|
1700
1300
|
while (reader.pos < end) {
|
|
1701
1301
|
const tag = reader.uint32();
|
|
@@ -1722,22 +1322,6 @@ export const TopRepeatedNotification = {
|
|
|
1722
1322
|
}
|
|
1723
1323
|
return message;
|
|
1724
1324
|
},
|
|
1725
|
-
fromJSON(object) {
|
|
1726
|
-
return {
|
|
1727
|
-
title: isSet(object.title) ? globalThis.String(object.title) : "",
|
|
1728
|
-
count: isSet(object.count) ? Long.fromValue(object.count) : Long.UZERO,
|
|
1729
|
-
};
|
|
1730
|
-
},
|
|
1731
|
-
toJSON(message) {
|
|
1732
|
-
const obj = {};
|
|
1733
|
-
if (message.title !== "") {
|
|
1734
|
-
obj.title = message.title;
|
|
1735
|
-
}
|
|
1736
|
-
if (!message.count.equals(Long.UZERO)) {
|
|
1737
|
-
obj.count = (message.count || Long.UZERO).toString();
|
|
1738
|
-
}
|
|
1739
|
-
return obj;
|
|
1740
|
-
},
|
|
1741
1325
|
create(base) {
|
|
1742
1326
|
return TopRepeatedNotification.fromPartial(base ?? {});
|
|
1743
1327
|
},
|
|
@@ -1836,7 +1420,7 @@ export const NotificationFull = {
|
|
|
1836
1420
|
},
|
|
1837
1421
|
decode(input, length) {
|
|
1838
1422
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1839
|
-
|
|
1423
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1840
1424
|
const message = createBaseNotificationFull();
|
|
1841
1425
|
while (reader.pos < end) {
|
|
1842
1426
|
const tag = reader.uint32();
|
|
@@ -1989,90 +1573,6 @@ export const NotificationFull = {
|
|
|
1989
1573
|
}
|
|
1990
1574
|
return message;
|
|
1991
1575
|
},
|
|
1992
|
-
fromJSON(object) {
|
|
1993
|
-
return {
|
|
1994
|
-
uuid: isSet(object.uuid) ? globalThis.String(object.uuid) : "",
|
|
1995
|
-
userId: isSet(object.user_id) ? Long.fromValue(object.user_id) : Long.UZERO,
|
|
1996
|
-
objectId: isSet(object.object_id) ? Long.fromValue(object.object_id) : undefined,
|
|
1997
|
-
objectType: isSet(object.object_type) ? globalThis.String(object.object_type) : undefined,
|
|
1998
|
-
title: isSet(object.title) ? globalThis.String(object.title) : "",
|
|
1999
|
-
body: isSet(object.body) ? globalThis.String(object.body) : undefined,
|
|
2000
|
-
alertId: isSet(object.alert_id) ? Long.fromValue(object.alert_id) : undefined,
|
|
2001
|
-
userAlertId: isSet(object.user_alert_id) ? Long.fromValue(object.user_alert_id) : undefined,
|
|
2002
|
-
alert: isSet(object.alert) ? globalThis.Number(object.alert) : 0,
|
|
2003
|
-
via: globalThis.Array.isArray(object?.via) ? object.via.map((e) => globalThis.Number(e)) : [],
|
|
2004
|
-
image: isSet(object.image) ? globalThis.String(object.image) : undefined,
|
|
2005
|
-
sound: isSet(object.sound) ? Long.fromValue(object.sound) : undefined,
|
|
2006
|
-
readAt: isSet(object.read_at) ? fromJsonTimestamp(object.read_at) : undefined,
|
|
2007
|
-
createdAt: isSet(object.created_at) ? fromJsonTimestamp(object.created_at) : undefined,
|
|
2008
|
-
updatedAt: isSet(object.updated_at) ? fromJsonTimestamp(object.updated_at) : undefined,
|
|
2009
|
-
alertModel: isSet(object.alert_model) ? AlertModel.fromJSON(object.alert_model) : undefined,
|
|
2010
|
-
userAlert: isSet(object.user_alert) ? UserDeviceAlert.fromJSON(object.user_alert) : undefined,
|
|
2011
|
-
data: isSet(object.data) ? NotificationFull_RawData.fromJSON(object.data) : undefined,
|
|
2012
|
-
channels: globalThis.Array.isArray(object?.channels) ? object.channels.map((e) => Channel.fromJSON(e)) : [],
|
|
2013
|
-
};
|
|
2014
|
-
},
|
|
2015
|
-
toJSON(message) {
|
|
2016
|
-
const obj = {};
|
|
2017
|
-
if (message.uuid !== "") {
|
|
2018
|
-
obj.uuid = message.uuid;
|
|
2019
|
-
}
|
|
2020
|
-
if (!message.userId.equals(Long.UZERO)) {
|
|
2021
|
-
obj.user_id = (message.userId || Long.UZERO).toString();
|
|
2022
|
-
}
|
|
2023
|
-
if (message.objectId !== undefined) {
|
|
2024
|
-
obj.object_id = (message.objectId || Long.UZERO).toString();
|
|
2025
|
-
}
|
|
2026
|
-
if (message.objectType !== undefined) {
|
|
2027
|
-
obj.object_type = message.objectType;
|
|
2028
|
-
}
|
|
2029
|
-
if (message.title !== "") {
|
|
2030
|
-
obj.title = message.title;
|
|
2031
|
-
}
|
|
2032
|
-
if (message.body !== undefined) {
|
|
2033
|
-
obj.body = message.body;
|
|
2034
|
-
}
|
|
2035
|
-
if (message.alertId !== undefined) {
|
|
2036
|
-
obj.alert_id = (message.alertId || Long.UZERO).toString();
|
|
2037
|
-
}
|
|
2038
|
-
if (message.userAlertId !== undefined) {
|
|
2039
|
-
obj.user_alert_id = (message.userAlertId || Long.UZERO).toString();
|
|
2040
|
-
}
|
|
2041
|
-
if (message.alert !== 0) {
|
|
2042
|
-
obj.alert = Math.round(message.alert);
|
|
2043
|
-
}
|
|
2044
|
-
if (message.via?.length) {
|
|
2045
|
-
obj.via = message.via.map((e) => Math.round(e));
|
|
2046
|
-
}
|
|
2047
|
-
if (message.image !== undefined) {
|
|
2048
|
-
obj.image = message.image;
|
|
2049
|
-
}
|
|
2050
|
-
if (message.sound !== undefined) {
|
|
2051
|
-
obj.sound = (message.sound || Long.UZERO).toString();
|
|
2052
|
-
}
|
|
2053
|
-
if (message.readAt !== undefined) {
|
|
2054
|
-
obj.read_at = message.readAt.toISOString();
|
|
2055
|
-
}
|
|
2056
|
-
if (message.createdAt !== undefined) {
|
|
2057
|
-
obj.created_at = message.createdAt.toISOString();
|
|
2058
|
-
}
|
|
2059
|
-
if (message.updatedAt !== undefined) {
|
|
2060
|
-
obj.updated_at = message.updatedAt.toISOString();
|
|
2061
|
-
}
|
|
2062
|
-
if (message.alertModel !== undefined) {
|
|
2063
|
-
obj.alert_model = AlertModel.toJSON(message.alertModel);
|
|
2064
|
-
}
|
|
2065
|
-
if (message.userAlert !== undefined) {
|
|
2066
|
-
obj.user_alert = UserDeviceAlert.toJSON(message.userAlert);
|
|
2067
|
-
}
|
|
2068
|
-
if (message.data !== undefined) {
|
|
2069
|
-
obj.data = NotificationFull_RawData.toJSON(message.data);
|
|
2070
|
-
}
|
|
2071
|
-
if (message.channels?.length) {
|
|
2072
|
-
obj.channels = message.channels.map((e) => Channel.toJSON(e));
|
|
2073
|
-
}
|
|
2074
|
-
return obj;
|
|
2075
|
-
},
|
|
2076
1576
|
create(base) {
|
|
2077
1577
|
return NotificationFull.fromPartial(base ?? {});
|
|
2078
1578
|
},
|
|
@@ -2152,7 +1652,7 @@ export const NotificationFull_RawData = {
|
|
|
2152
1652
|
},
|
|
2153
1653
|
decode(input, length) {
|
|
2154
1654
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2155
|
-
|
|
1655
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2156
1656
|
const message = createBaseNotificationFull_RawData();
|
|
2157
1657
|
while (reader.pos < end) {
|
|
2158
1658
|
const tag = reader.uint32();
|
|
@@ -2214,42 +1714,6 @@ export const NotificationFull_RawData = {
|
|
|
2214
1714
|
}
|
|
2215
1715
|
return message;
|
|
2216
1716
|
},
|
|
2217
|
-
fromJSON(object) {
|
|
2218
|
-
return {
|
|
2219
|
-
latitude: isSet(object.latitude) ? globalThis.Number(object.latitude) : undefined,
|
|
2220
|
-
longitude: isSet(object.longitude) ? globalThis.Number(object.longitude) : undefined,
|
|
2221
|
-
areaId: isSet(object.area_id) ? Long.fromValue(object.area_id) : undefined,
|
|
2222
|
-
areaName: isSet(object.area_name) ? globalThis.String(object.area_name) : undefined,
|
|
2223
|
-
deviceId: isSet(object.device_id) ? Long.fromValue(object.device_id) : undefined,
|
|
2224
|
-
alertValue: isSet(object.alert_value) ? Long.fromValue(object.alert_value) : undefined,
|
|
2225
|
-
gpsTime: isSet(object.gps_time) ? fromJsonTimestamp(object.gps_time) : undefined,
|
|
2226
|
-
};
|
|
2227
|
-
},
|
|
2228
|
-
toJSON(message) {
|
|
2229
|
-
const obj = {};
|
|
2230
|
-
if (message.latitude !== undefined) {
|
|
2231
|
-
obj.latitude = message.latitude;
|
|
2232
|
-
}
|
|
2233
|
-
if (message.longitude !== undefined) {
|
|
2234
|
-
obj.longitude = message.longitude;
|
|
2235
|
-
}
|
|
2236
|
-
if (message.areaId !== undefined) {
|
|
2237
|
-
obj.area_id = (message.areaId || Long.UZERO).toString();
|
|
2238
|
-
}
|
|
2239
|
-
if (message.areaName !== undefined) {
|
|
2240
|
-
obj.area_name = message.areaName;
|
|
2241
|
-
}
|
|
2242
|
-
if (message.deviceId !== undefined) {
|
|
2243
|
-
obj.device_id = (message.deviceId || Long.UZERO).toString();
|
|
2244
|
-
}
|
|
2245
|
-
if (message.alertValue !== undefined) {
|
|
2246
|
-
obj.alert_value = (message.alertValue || Long.ZERO).toString();
|
|
2247
|
-
}
|
|
2248
|
-
if (message.gpsTime !== undefined) {
|
|
2249
|
-
obj.gps_time = message.gpsTime.toISOString();
|
|
2250
|
-
}
|
|
2251
|
-
return obj;
|
|
2252
|
-
},
|
|
2253
1717
|
create(base) {
|
|
2254
1718
|
return NotificationFull_RawData.fromPartial(base ?? {});
|
|
2255
1719
|
},
|
|
@@ -2325,7 +1789,7 @@ export const NotificationPagination = {
|
|
|
2325
1789
|
},
|
|
2326
1790
|
decode(input, length) {
|
|
2327
1791
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2328
|
-
|
|
1792
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2329
1793
|
const message = createBaseNotificationPagination();
|
|
2330
1794
|
while (reader.pos < end) {
|
|
2331
1795
|
const tag = reader.uint32();
|
|
@@ -2415,58 +1879,6 @@ export const NotificationPagination = {
|
|
|
2415
1879
|
}
|
|
2416
1880
|
return message;
|
|
2417
1881
|
},
|
|
2418
|
-
fromJSON(object) {
|
|
2419
|
-
return {
|
|
2420
|
-
currentPage: isSet(object.current_page) ? globalThis.Number(object.current_page) : 0,
|
|
2421
|
-
firstPageUrl: isSet(object.first_page_url) ? globalThis.String(object.first_page_url) : "",
|
|
2422
|
-
lastPageUrl: isSet(object.last_page_url) ? globalThis.String(object.last_page_url) : "",
|
|
2423
|
-
nextPageUrl: isSet(object.next_page_url) ? globalThis.String(object.next_page_url) : "",
|
|
2424
|
-
prevPageUrl: isSet(object.prev_page_url) ? globalThis.String(object.prev_page_url) : "",
|
|
2425
|
-
path: isSet(object.path) ? globalThis.String(object.path) : "",
|
|
2426
|
-
from: isSet(object.from) ? globalThis.Number(object.from) : 0,
|
|
2427
|
-
lastPage: isSet(object.last_page) ? globalThis.Number(object.last_page) : 0,
|
|
2428
|
-
perPage: isSet(object.per_page) ? globalThis.Number(object.per_page) : 0,
|
|
2429
|
-
to: isSet(object.to) ? globalThis.Number(object.to) : 0,
|
|
2430
|
-
data: globalThis.Array.isArray(object?.data) ? object.data.map((e) => NotificationFull.fromJSON(e)) : [],
|
|
2431
|
-
};
|
|
2432
|
-
},
|
|
2433
|
-
toJSON(message) {
|
|
2434
|
-
const obj = {};
|
|
2435
|
-
if (message.currentPage !== 0) {
|
|
2436
|
-
obj.current_page = Math.round(message.currentPage);
|
|
2437
|
-
}
|
|
2438
|
-
if (message.firstPageUrl !== "") {
|
|
2439
|
-
obj.first_page_url = message.firstPageUrl;
|
|
2440
|
-
}
|
|
2441
|
-
if (message.lastPageUrl !== "") {
|
|
2442
|
-
obj.last_page_url = message.lastPageUrl;
|
|
2443
|
-
}
|
|
2444
|
-
if (message.nextPageUrl !== "") {
|
|
2445
|
-
obj.next_page_url = message.nextPageUrl;
|
|
2446
|
-
}
|
|
2447
|
-
if (message.prevPageUrl !== "") {
|
|
2448
|
-
obj.prev_page_url = message.prevPageUrl;
|
|
2449
|
-
}
|
|
2450
|
-
if (message.path !== "") {
|
|
2451
|
-
obj.path = message.path;
|
|
2452
|
-
}
|
|
2453
|
-
if (message.from !== 0) {
|
|
2454
|
-
obj.from = Math.round(message.from);
|
|
2455
|
-
}
|
|
2456
|
-
if (message.lastPage !== 0) {
|
|
2457
|
-
obj.last_page = Math.round(message.lastPage);
|
|
2458
|
-
}
|
|
2459
|
-
if (message.perPage !== 0) {
|
|
2460
|
-
obj.per_page = Math.round(message.perPage);
|
|
2461
|
-
}
|
|
2462
|
-
if (message.to !== 0) {
|
|
2463
|
-
obj.to = Math.round(message.to);
|
|
2464
|
-
}
|
|
2465
|
-
if (message.data?.length) {
|
|
2466
|
-
obj.data = message.data.map((e) => NotificationFull.toJSON(e));
|
|
2467
|
-
}
|
|
2468
|
-
return obj;
|
|
2469
|
-
},
|
|
2470
1882
|
create(base) {
|
|
2471
1883
|
return NotificationPagination.fromPartial(base ?? {});
|
|
2472
1884
|
},
|
|
@@ -2540,7 +1952,7 @@ export const SessionPagination = {
|
|
|
2540
1952
|
},
|
|
2541
1953
|
decode(input, length) {
|
|
2542
1954
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2543
|
-
|
|
1955
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2544
1956
|
const message = createBaseSessionPagination();
|
|
2545
1957
|
while (reader.pos < end) {
|
|
2546
1958
|
const tag = reader.uint32();
|
|
@@ -2630,58 +2042,6 @@ export const SessionPagination = {
|
|
|
2630
2042
|
}
|
|
2631
2043
|
return message;
|
|
2632
2044
|
},
|
|
2633
|
-
fromJSON(object) {
|
|
2634
|
-
return {
|
|
2635
|
-
currentPage: isSet(object.current_page) ? globalThis.Number(object.current_page) : 0,
|
|
2636
|
-
firstPageUrl: isSet(object.first_page_url) ? globalThis.String(object.first_page_url) : "",
|
|
2637
|
-
lastPageUrl: isSet(object.last_page_url) ? globalThis.String(object.last_page_url) : "",
|
|
2638
|
-
nextPageUrl: isSet(object.next_page_url) ? globalThis.String(object.next_page_url) : "",
|
|
2639
|
-
prevPageUrl: isSet(object.prev_page_url) ? globalThis.String(object.prev_page_url) : "",
|
|
2640
|
-
path: isSet(object.path) ? globalThis.String(object.path) : "",
|
|
2641
|
-
from: isSet(object.from) ? globalThis.Number(object.from) : 0,
|
|
2642
|
-
lastPage: isSet(object.last_page) ? globalThis.Number(object.last_page) : 0,
|
|
2643
|
-
perPage: isSet(object.per_page) ? globalThis.Number(object.per_page) : 0,
|
|
2644
|
-
to: isSet(object.to) ? globalThis.Number(object.to) : 0,
|
|
2645
|
-
data: globalThis.Array.isArray(object?.data) ? object.data.map((e) => Session.fromJSON(e)) : [],
|
|
2646
|
-
};
|
|
2647
|
-
},
|
|
2648
|
-
toJSON(message) {
|
|
2649
|
-
const obj = {};
|
|
2650
|
-
if (message.currentPage !== 0) {
|
|
2651
|
-
obj.current_page = Math.round(message.currentPage);
|
|
2652
|
-
}
|
|
2653
|
-
if (message.firstPageUrl !== "") {
|
|
2654
|
-
obj.first_page_url = message.firstPageUrl;
|
|
2655
|
-
}
|
|
2656
|
-
if (message.lastPageUrl !== "") {
|
|
2657
|
-
obj.last_page_url = message.lastPageUrl;
|
|
2658
|
-
}
|
|
2659
|
-
if (message.nextPageUrl !== "") {
|
|
2660
|
-
obj.next_page_url = message.nextPageUrl;
|
|
2661
|
-
}
|
|
2662
|
-
if (message.prevPageUrl !== "") {
|
|
2663
|
-
obj.prev_page_url = message.prevPageUrl;
|
|
2664
|
-
}
|
|
2665
|
-
if (message.path !== "") {
|
|
2666
|
-
obj.path = message.path;
|
|
2667
|
-
}
|
|
2668
|
-
if (message.from !== 0) {
|
|
2669
|
-
obj.from = Math.round(message.from);
|
|
2670
|
-
}
|
|
2671
|
-
if (message.lastPage !== 0) {
|
|
2672
|
-
obj.last_page = Math.round(message.lastPage);
|
|
2673
|
-
}
|
|
2674
|
-
if (message.perPage !== 0) {
|
|
2675
|
-
obj.per_page = Math.round(message.perPage);
|
|
2676
|
-
}
|
|
2677
|
-
if (message.to !== 0) {
|
|
2678
|
-
obj.to = Math.round(message.to);
|
|
2679
|
-
}
|
|
2680
|
-
if (message.data?.length) {
|
|
2681
|
-
obj.data = message.data.map((e) => Session.toJSON(e));
|
|
2682
|
-
}
|
|
2683
|
-
return obj;
|
|
2684
|
-
},
|
|
2685
2045
|
create(base) {
|
|
2686
2046
|
return SessionPagination.fromPartial(base ?? {});
|
|
2687
2047
|
},
|
|
@@ -2755,7 +2115,7 @@ export const TrackerPagination = {
|
|
|
2755
2115
|
},
|
|
2756
2116
|
decode(input, length) {
|
|
2757
2117
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2758
|
-
|
|
2118
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2759
2119
|
const message = createBaseTrackerPagination();
|
|
2760
2120
|
while (reader.pos < end) {
|
|
2761
2121
|
const tag = reader.uint32();
|
|
@@ -2845,58 +2205,6 @@ export const TrackerPagination = {
|
|
|
2845
2205
|
}
|
|
2846
2206
|
return message;
|
|
2847
2207
|
},
|
|
2848
|
-
fromJSON(object) {
|
|
2849
|
-
return {
|
|
2850
|
-
currentPage: isSet(object.current_page) ? globalThis.Number(object.current_page) : 0,
|
|
2851
|
-
firstPageUrl: isSet(object.first_page_url) ? globalThis.String(object.first_page_url) : "",
|
|
2852
|
-
lastPageUrl: isSet(object.last_page_url) ? globalThis.String(object.last_page_url) : "",
|
|
2853
|
-
nextPageUrl: isSet(object.next_page_url) ? globalThis.String(object.next_page_url) : "",
|
|
2854
|
-
prevPageUrl: isSet(object.prev_page_url) ? globalThis.String(object.prev_page_url) : "",
|
|
2855
|
-
path: isSet(object.path) ? globalThis.String(object.path) : "",
|
|
2856
|
-
from: isSet(object.from) ? globalThis.Number(object.from) : 0,
|
|
2857
|
-
lastPage: isSet(object.last_page) ? globalThis.Number(object.last_page) : 0,
|
|
2858
|
-
perPage: isSet(object.per_page) ? globalThis.Number(object.per_page) : 0,
|
|
2859
|
-
to: isSet(object.to) ? globalThis.Number(object.to) : 0,
|
|
2860
|
-
data: globalThis.Array.isArray(object?.data) ? object.data.map((e) => Tracker.fromJSON(e)) : [],
|
|
2861
|
-
};
|
|
2862
|
-
},
|
|
2863
|
-
toJSON(message) {
|
|
2864
|
-
const obj = {};
|
|
2865
|
-
if (message.currentPage !== 0) {
|
|
2866
|
-
obj.current_page = Math.round(message.currentPage);
|
|
2867
|
-
}
|
|
2868
|
-
if (message.firstPageUrl !== "") {
|
|
2869
|
-
obj.first_page_url = message.firstPageUrl;
|
|
2870
|
-
}
|
|
2871
|
-
if (message.lastPageUrl !== "") {
|
|
2872
|
-
obj.last_page_url = message.lastPageUrl;
|
|
2873
|
-
}
|
|
2874
|
-
if (message.nextPageUrl !== "") {
|
|
2875
|
-
obj.next_page_url = message.nextPageUrl;
|
|
2876
|
-
}
|
|
2877
|
-
if (message.prevPageUrl !== "") {
|
|
2878
|
-
obj.prev_page_url = message.prevPageUrl;
|
|
2879
|
-
}
|
|
2880
|
-
if (message.path !== "") {
|
|
2881
|
-
obj.path = message.path;
|
|
2882
|
-
}
|
|
2883
|
-
if (message.from !== 0) {
|
|
2884
|
-
obj.from = Math.round(message.from);
|
|
2885
|
-
}
|
|
2886
|
-
if (message.lastPage !== 0) {
|
|
2887
|
-
obj.last_page = Math.round(message.lastPage);
|
|
2888
|
-
}
|
|
2889
|
-
if (message.perPage !== 0) {
|
|
2890
|
-
obj.per_page = Math.round(message.perPage);
|
|
2891
|
-
}
|
|
2892
|
-
if (message.to !== 0) {
|
|
2893
|
-
obj.to = Math.round(message.to);
|
|
2894
|
-
}
|
|
2895
|
-
if (message.data?.length) {
|
|
2896
|
-
obj.data = message.data.map((e) => Tracker.toJSON(e));
|
|
2897
|
-
}
|
|
2898
|
-
return obj;
|
|
2899
|
-
},
|
|
2900
2208
|
create(base) {
|
|
2901
2209
|
return TrackerPagination.fromPartial(base ?? {});
|
|
2902
2210
|
},
|
|
@@ -2994,7 +2302,7 @@ export const Session = {
|
|
|
2994
2302
|
},
|
|
2995
2303
|
decode(input, length) {
|
|
2996
2304
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2997
|
-
|
|
2305
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2998
2306
|
const message = createBaseSession();
|
|
2999
2307
|
while (reader.pos < end) {
|
|
3000
2308
|
const tag = reader.uint32();
|
|
@@ -3126,84 +2434,6 @@ export const Session = {
|
|
|
3126
2434
|
}
|
|
3127
2435
|
return message;
|
|
3128
2436
|
},
|
|
3129
|
-
fromJSON(object) {
|
|
3130
|
-
return {
|
|
3131
|
-
id: isSet(object.id) ? Long.fromValue(object.id) : Long.UZERO,
|
|
3132
|
-
tokenableType: isSet(object.tokenable_type) ? globalThis.String(object.tokenable_type) : "",
|
|
3133
|
-
tokenableId: isSet(object.tokenable_id) ? Long.fromValue(object.tokenable_id) : Long.UZERO,
|
|
3134
|
-
name: isSet(object.name) ? globalThis.String(object.name) : undefined,
|
|
3135
|
-
abilities: globalThis.Array.isArray(object?.abilities)
|
|
3136
|
-
? object.abilities.map((e) => globalThis.String(e))
|
|
3137
|
-
: [],
|
|
3138
|
-
fcm: isSet(object.fcm) ? globalThis.String(object.fcm) : undefined,
|
|
3139
|
-
ip: isSet(object.ip) ? globalThis.String(object.ip) : undefined,
|
|
3140
|
-
domain: isSet(object.domain) ? globalThis.String(object.domain) : undefined,
|
|
3141
|
-
partnerId: isSet(object.partner_id) ? Long.fromValue(object.partner_id) : undefined,
|
|
3142
|
-
userAgent: isSet(object.user_agent) ? globalThis.String(object.user_agent) : undefined,
|
|
3143
|
-
deviceType: isSet(object.device_type) ? globalThis.String(object.device_type) : undefined,
|
|
3144
|
-
lastUsedAt: isSet(object.last_used_at) ? fromJsonTimestamp(object.last_used_at) : undefined,
|
|
3145
|
-
expiresAt: isSet(object.expires_at) ? fromJsonTimestamp(object.expires_at) : undefined,
|
|
3146
|
-
createdAt: isSet(object.created_at) ? fromJsonTimestamp(object.created_at) : undefined,
|
|
3147
|
-
updatedAt: isSet(object.updated_at) ? fromJsonTimestamp(object.updated_at) : undefined,
|
|
3148
|
-
currentSession: isSet(object.current_session) ? globalThis.Boolean(object.current_session) : false,
|
|
3149
|
-
isExpired: isSet(object.is_expired) ? globalThis.Boolean(object.is_expired) : false,
|
|
3150
|
-
};
|
|
3151
|
-
},
|
|
3152
|
-
toJSON(message) {
|
|
3153
|
-
const obj = {};
|
|
3154
|
-
if (!message.id.equals(Long.UZERO)) {
|
|
3155
|
-
obj.id = (message.id || Long.UZERO).toString();
|
|
3156
|
-
}
|
|
3157
|
-
if (message.tokenableType !== "") {
|
|
3158
|
-
obj.tokenable_type = message.tokenableType;
|
|
3159
|
-
}
|
|
3160
|
-
if (!message.tokenableId.equals(Long.UZERO)) {
|
|
3161
|
-
obj.tokenable_id = (message.tokenableId || Long.UZERO).toString();
|
|
3162
|
-
}
|
|
3163
|
-
if (message.name !== undefined) {
|
|
3164
|
-
obj.name = message.name;
|
|
3165
|
-
}
|
|
3166
|
-
if (message.abilities?.length) {
|
|
3167
|
-
obj.abilities = message.abilities;
|
|
3168
|
-
}
|
|
3169
|
-
if (message.fcm !== undefined) {
|
|
3170
|
-
obj.fcm = message.fcm;
|
|
3171
|
-
}
|
|
3172
|
-
if (message.ip !== undefined) {
|
|
3173
|
-
obj.ip = message.ip;
|
|
3174
|
-
}
|
|
3175
|
-
if (message.domain !== undefined) {
|
|
3176
|
-
obj.domain = message.domain;
|
|
3177
|
-
}
|
|
3178
|
-
if (message.partnerId !== undefined) {
|
|
3179
|
-
obj.partner_id = (message.partnerId || Long.UZERO).toString();
|
|
3180
|
-
}
|
|
3181
|
-
if (message.userAgent !== undefined) {
|
|
3182
|
-
obj.user_agent = message.userAgent;
|
|
3183
|
-
}
|
|
3184
|
-
if (message.deviceType !== undefined) {
|
|
3185
|
-
obj.device_type = message.deviceType;
|
|
3186
|
-
}
|
|
3187
|
-
if (message.lastUsedAt !== undefined) {
|
|
3188
|
-
obj.last_used_at = message.lastUsedAt.toISOString();
|
|
3189
|
-
}
|
|
3190
|
-
if (message.expiresAt !== undefined) {
|
|
3191
|
-
obj.expires_at = message.expiresAt.toISOString();
|
|
3192
|
-
}
|
|
3193
|
-
if (message.createdAt !== undefined) {
|
|
3194
|
-
obj.created_at = message.createdAt.toISOString();
|
|
3195
|
-
}
|
|
3196
|
-
if (message.updatedAt !== undefined) {
|
|
3197
|
-
obj.updated_at = message.updatedAt.toISOString();
|
|
3198
|
-
}
|
|
3199
|
-
if (message.currentSession !== false) {
|
|
3200
|
-
obj.current_session = message.currentSession;
|
|
3201
|
-
}
|
|
3202
|
-
if (message.isExpired !== false) {
|
|
3203
|
-
obj.is_expired = message.isExpired;
|
|
3204
|
-
}
|
|
3205
|
-
return obj;
|
|
3206
|
-
},
|
|
3207
2437
|
create(base) {
|
|
3208
2438
|
return Session.fromPartial(base ?? {});
|
|
3209
2439
|
},
|
|
@@ -3287,7 +2517,7 @@ export const CommandPagination = {
|
|
|
3287
2517
|
},
|
|
3288
2518
|
decode(input, length) {
|
|
3289
2519
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
3290
|
-
|
|
2520
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3291
2521
|
const message = createBaseCommandPagination();
|
|
3292
2522
|
while (reader.pos < end) {
|
|
3293
2523
|
const tag = reader.uint32();
|
|
@@ -3377,58 +2607,6 @@ export const CommandPagination = {
|
|
|
3377
2607
|
}
|
|
3378
2608
|
return message;
|
|
3379
2609
|
},
|
|
3380
|
-
fromJSON(object) {
|
|
3381
|
-
return {
|
|
3382
|
-
currentPage: isSet(object.current_page) ? globalThis.Number(object.current_page) : 0,
|
|
3383
|
-
firstPageUrl: isSet(object.first_page_url) ? globalThis.String(object.first_page_url) : "",
|
|
3384
|
-
lastPageUrl: isSet(object.last_page_url) ? globalThis.String(object.last_page_url) : "",
|
|
3385
|
-
nextPageUrl: isSet(object.next_page_url) ? globalThis.String(object.next_page_url) : "",
|
|
3386
|
-
prevPageUrl: isSet(object.prev_page_url) ? globalThis.String(object.prev_page_url) : "",
|
|
3387
|
-
path: isSet(object.path) ? globalThis.String(object.path) : "",
|
|
3388
|
-
from: isSet(object.from) ? globalThis.Number(object.from) : 0,
|
|
3389
|
-
lastPage: isSet(object.last_page) ? globalThis.Number(object.last_page) : 0,
|
|
3390
|
-
perPage: isSet(object.per_page) ? globalThis.Number(object.per_page) : 0,
|
|
3391
|
-
to: isSet(object.to) ? globalThis.Number(object.to) : 0,
|
|
3392
|
-
data: globalThis.Array.isArray(object?.data) ? object.data.map((e) => CommandStruct.fromJSON(e)) : [],
|
|
3393
|
-
};
|
|
3394
|
-
},
|
|
3395
|
-
toJSON(message) {
|
|
3396
|
-
const obj = {};
|
|
3397
|
-
if (message.currentPage !== 0) {
|
|
3398
|
-
obj.current_page = Math.round(message.currentPage);
|
|
3399
|
-
}
|
|
3400
|
-
if (message.firstPageUrl !== "") {
|
|
3401
|
-
obj.first_page_url = message.firstPageUrl;
|
|
3402
|
-
}
|
|
3403
|
-
if (message.lastPageUrl !== "") {
|
|
3404
|
-
obj.last_page_url = message.lastPageUrl;
|
|
3405
|
-
}
|
|
3406
|
-
if (message.nextPageUrl !== "") {
|
|
3407
|
-
obj.next_page_url = message.nextPageUrl;
|
|
3408
|
-
}
|
|
3409
|
-
if (message.prevPageUrl !== "") {
|
|
3410
|
-
obj.prev_page_url = message.prevPageUrl;
|
|
3411
|
-
}
|
|
3412
|
-
if (message.path !== "") {
|
|
3413
|
-
obj.path = message.path;
|
|
3414
|
-
}
|
|
3415
|
-
if (message.from !== 0) {
|
|
3416
|
-
obj.from = Math.round(message.from);
|
|
3417
|
-
}
|
|
3418
|
-
if (message.lastPage !== 0) {
|
|
3419
|
-
obj.last_page = Math.round(message.lastPage);
|
|
3420
|
-
}
|
|
3421
|
-
if (message.perPage !== 0) {
|
|
3422
|
-
obj.per_page = Math.round(message.perPage);
|
|
3423
|
-
}
|
|
3424
|
-
if (message.to !== 0) {
|
|
3425
|
-
obj.to = Math.round(message.to);
|
|
3426
|
-
}
|
|
3427
|
-
if (message.data?.length) {
|
|
3428
|
-
obj.data = message.data.map((e) => CommandStruct.toJSON(e));
|
|
3429
|
-
}
|
|
3430
|
-
return obj;
|
|
3431
|
-
},
|
|
3432
2610
|
create(base) {
|
|
3433
2611
|
return CommandPagination.fromPartial(base ?? {});
|
|
3434
2612
|
},
|
|
@@ -3502,7 +2680,7 @@ export const LiveLocationPagination = {
|
|
|
3502
2680
|
},
|
|
3503
2681
|
decode(input, length) {
|
|
3504
2682
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
3505
|
-
|
|
2683
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3506
2684
|
const message = createBaseLiveLocationPagination();
|
|
3507
2685
|
while (reader.pos < end) {
|
|
3508
2686
|
const tag = reader.uint32();
|
|
@@ -3592,58 +2770,6 @@ export const LiveLocationPagination = {
|
|
|
3592
2770
|
}
|
|
3593
2771
|
return message;
|
|
3594
2772
|
},
|
|
3595
|
-
fromJSON(object) {
|
|
3596
|
-
return {
|
|
3597
|
-
currentPage: isSet(object.current_page) ? globalThis.Number(object.current_page) : 0,
|
|
3598
|
-
firstPageUrl: isSet(object.first_page_url) ? globalThis.String(object.first_page_url) : "",
|
|
3599
|
-
lastPageUrl: isSet(object.last_page_url) ? globalThis.String(object.last_page_url) : "",
|
|
3600
|
-
nextPageUrl: isSet(object.next_page_url) ? globalThis.String(object.next_page_url) : "",
|
|
3601
|
-
prevPageUrl: isSet(object.prev_page_url) ? globalThis.String(object.prev_page_url) : "",
|
|
3602
|
-
path: isSet(object.path) ? globalThis.String(object.path) : "",
|
|
3603
|
-
from: isSet(object.from) ? globalThis.Number(object.from) : 0,
|
|
3604
|
-
lastPage: isSet(object.last_page) ? globalThis.Number(object.last_page) : 0,
|
|
3605
|
-
perPage: isSet(object.per_page) ? globalThis.Number(object.per_page) : 0,
|
|
3606
|
-
to: isSet(object.to) ? globalThis.Number(object.to) : 0,
|
|
3607
|
-
data: globalThis.Array.isArray(object?.data) ? object.data.map((e) => LiveLocation.fromJSON(e)) : [],
|
|
3608
|
-
};
|
|
3609
|
-
},
|
|
3610
|
-
toJSON(message) {
|
|
3611
|
-
const obj = {};
|
|
3612
|
-
if (message.currentPage !== 0) {
|
|
3613
|
-
obj.current_page = Math.round(message.currentPage);
|
|
3614
|
-
}
|
|
3615
|
-
if (message.firstPageUrl !== "") {
|
|
3616
|
-
obj.first_page_url = message.firstPageUrl;
|
|
3617
|
-
}
|
|
3618
|
-
if (message.lastPageUrl !== "") {
|
|
3619
|
-
obj.last_page_url = message.lastPageUrl;
|
|
3620
|
-
}
|
|
3621
|
-
if (message.nextPageUrl !== "") {
|
|
3622
|
-
obj.next_page_url = message.nextPageUrl;
|
|
3623
|
-
}
|
|
3624
|
-
if (message.prevPageUrl !== "") {
|
|
3625
|
-
obj.prev_page_url = message.prevPageUrl;
|
|
3626
|
-
}
|
|
3627
|
-
if (message.path !== "") {
|
|
3628
|
-
obj.path = message.path;
|
|
3629
|
-
}
|
|
3630
|
-
if (message.from !== 0) {
|
|
3631
|
-
obj.from = Math.round(message.from);
|
|
3632
|
-
}
|
|
3633
|
-
if (message.lastPage !== 0) {
|
|
3634
|
-
obj.last_page = Math.round(message.lastPage);
|
|
3635
|
-
}
|
|
3636
|
-
if (message.perPage !== 0) {
|
|
3637
|
-
obj.per_page = Math.round(message.perPage);
|
|
3638
|
-
}
|
|
3639
|
-
if (message.to !== 0) {
|
|
3640
|
-
obj.to = Math.round(message.to);
|
|
3641
|
-
}
|
|
3642
|
-
if (message.data?.length) {
|
|
3643
|
-
obj.data = message.data.map((e) => LiveLocation.toJSON(e));
|
|
3644
|
-
}
|
|
3645
|
-
return obj;
|
|
3646
|
-
},
|
|
3647
2773
|
create(base) {
|
|
3648
2774
|
return LiveLocationPagination.fromPartial(base ?? {});
|
|
3649
2775
|
},
|
|
@@ -3717,7 +2843,7 @@ export const MaintenancePagination = {
|
|
|
3717
2843
|
},
|
|
3718
2844
|
decode(input, length) {
|
|
3719
2845
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
3720
|
-
|
|
2846
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3721
2847
|
const message = createBaseMaintenancePagination();
|
|
3722
2848
|
while (reader.pos < end) {
|
|
3723
2849
|
const tag = reader.uint32();
|
|
@@ -3807,58 +2933,6 @@ export const MaintenancePagination = {
|
|
|
3807
2933
|
}
|
|
3808
2934
|
return message;
|
|
3809
2935
|
},
|
|
3810
|
-
fromJSON(object) {
|
|
3811
|
-
return {
|
|
3812
|
-
currentPage: isSet(object.current_page) ? globalThis.Number(object.current_page) : 0,
|
|
3813
|
-
firstPageUrl: isSet(object.first_page_url) ? globalThis.String(object.first_page_url) : "",
|
|
3814
|
-
lastPageUrl: isSet(object.last_page_url) ? globalThis.String(object.last_page_url) : "",
|
|
3815
|
-
nextPageUrl: isSet(object.next_page_url) ? globalThis.String(object.next_page_url) : "",
|
|
3816
|
-
prevPageUrl: isSet(object.prev_page_url) ? globalThis.String(object.prev_page_url) : "",
|
|
3817
|
-
path: isSet(object.path) ? globalThis.String(object.path) : "",
|
|
3818
|
-
from: isSet(object.from) ? globalThis.Number(object.from) : 0,
|
|
3819
|
-
lastPage: isSet(object.last_page) ? globalThis.Number(object.last_page) : 0,
|
|
3820
|
-
perPage: isSet(object.per_page) ? globalThis.Number(object.per_page) : 0,
|
|
3821
|
-
to: isSet(object.to) ? globalThis.Number(object.to) : 0,
|
|
3822
|
-
data: globalThis.Array.isArray(object?.data) ? object.data.map((e) => Maintenance.fromJSON(e)) : [],
|
|
3823
|
-
};
|
|
3824
|
-
},
|
|
3825
|
-
toJSON(message) {
|
|
3826
|
-
const obj = {};
|
|
3827
|
-
if (message.currentPage !== 0) {
|
|
3828
|
-
obj.current_page = Math.round(message.currentPage);
|
|
3829
|
-
}
|
|
3830
|
-
if (message.firstPageUrl !== "") {
|
|
3831
|
-
obj.first_page_url = message.firstPageUrl;
|
|
3832
|
-
}
|
|
3833
|
-
if (message.lastPageUrl !== "") {
|
|
3834
|
-
obj.last_page_url = message.lastPageUrl;
|
|
3835
|
-
}
|
|
3836
|
-
if (message.nextPageUrl !== "") {
|
|
3837
|
-
obj.next_page_url = message.nextPageUrl;
|
|
3838
|
-
}
|
|
3839
|
-
if (message.prevPageUrl !== "") {
|
|
3840
|
-
obj.prev_page_url = message.prevPageUrl;
|
|
3841
|
-
}
|
|
3842
|
-
if (message.path !== "") {
|
|
3843
|
-
obj.path = message.path;
|
|
3844
|
-
}
|
|
3845
|
-
if (message.from !== 0) {
|
|
3846
|
-
obj.from = Math.round(message.from);
|
|
3847
|
-
}
|
|
3848
|
-
if (message.lastPage !== 0) {
|
|
3849
|
-
obj.last_page = Math.round(message.lastPage);
|
|
3850
|
-
}
|
|
3851
|
-
if (message.perPage !== 0) {
|
|
3852
|
-
obj.per_page = Math.round(message.perPage);
|
|
3853
|
-
}
|
|
3854
|
-
if (message.to !== 0) {
|
|
3855
|
-
obj.to = Math.round(message.to);
|
|
3856
|
-
}
|
|
3857
|
-
if (message.data?.length) {
|
|
3858
|
-
obj.data = message.data.map((e) => Maintenance.toJSON(e));
|
|
3859
|
-
}
|
|
3860
|
-
return obj;
|
|
3861
|
-
},
|
|
3862
2936
|
create(base) {
|
|
3863
2937
|
return MaintenancePagination.fromPartial(base ?? {});
|
|
3864
2938
|
},
|
|
@@ -3932,7 +3006,7 @@ export const ServicePagination = {
|
|
|
3932
3006
|
},
|
|
3933
3007
|
decode(input, length) {
|
|
3934
3008
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
3935
|
-
|
|
3009
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3936
3010
|
const message = createBaseServicePagination();
|
|
3937
3011
|
while (reader.pos < end) {
|
|
3938
3012
|
const tag = reader.uint32();
|
|
@@ -4022,58 +3096,6 @@ export const ServicePagination = {
|
|
|
4022
3096
|
}
|
|
4023
3097
|
return message;
|
|
4024
3098
|
},
|
|
4025
|
-
fromJSON(object) {
|
|
4026
|
-
return {
|
|
4027
|
-
currentPage: isSet(object.current_page) ? globalThis.Number(object.current_page) : 0,
|
|
4028
|
-
firstPageUrl: isSet(object.first_page_url) ? globalThis.String(object.first_page_url) : "",
|
|
4029
|
-
lastPageUrl: isSet(object.last_page_url) ? globalThis.String(object.last_page_url) : "",
|
|
4030
|
-
nextPageUrl: isSet(object.next_page_url) ? globalThis.String(object.next_page_url) : "",
|
|
4031
|
-
prevPageUrl: isSet(object.prev_page_url) ? globalThis.String(object.prev_page_url) : "",
|
|
4032
|
-
path: isSet(object.path) ? globalThis.String(object.path) : "",
|
|
4033
|
-
from: isSet(object.from) ? globalThis.Number(object.from) : 0,
|
|
4034
|
-
lastPage: isSet(object.last_page) ? globalThis.Number(object.last_page) : 0,
|
|
4035
|
-
perPage: isSet(object.per_page) ? globalThis.Number(object.per_page) : 0,
|
|
4036
|
-
to: isSet(object.to) ? globalThis.Number(object.to) : 0,
|
|
4037
|
-
data: globalThis.Array.isArray(object?.data) ? object.data.map((e) => MaintenanceService.fromJSON(e)) : [],
|
|
4038
|
-
};
|
|
4039
|
-
},
|
|
4040
|
-
toJSON(message) {
|
|
4041
|
-
const obj = {};
|
|
4042
|
-
if (message.currentPage !== 0) {
|
|
4043
|
-
obj.current_page = Math.round(message.currentPage);
|
|
4044
|
-
}
|
|
4045
|
-
if (message.firstPageUrl !== "") {
|
|
4046
|
-
obj.first_page_url = message.firstPageUrl;
|
|
4047
|
-
}
|
|
4048
|
-
if (message.lastPageUrl !== "") {
|
|
4049
|
-
obj.last_page_url = message.lastPageUrl;
|
|
4050
|
-
}
|
|
4051
|
-
if (message.nextPageUrl !== "") {
|
|
4052
|
-
obj.next_page_url = message.nextPageUrl;
|
|
4053
|
-
}
|
|
4054
|
-
if (message.prevPageUrl !== "") {
|
|
4055
|
-
obj.prev_page_url = message.prevPageUrl;
|
|
4056
|
-
}
|
|
4057
|
-
if (message.path !== "") {
|
|
4058
|
-
obj.path = message.path;
|
|
4059
|
-
}
|
|
4060
|
-
if (message.from !== 0) {
|
|
4061
|
-
obj.from = Math.round(message.from);
|
|
4062
|
-
}
|
|
4063
|
-
if (message.lastPage !== 0) {
|
|
4064
|
-
obj.last_page = Math.round(message.lastPage);
|
|
4065
|
-
}
|
|
4066
|
-
if (message.perPage !== 0) {
|
|
4067
|
-
obj.per_page = Math.round(message.perPage);
|
|
4068
|
-
}
|
|
4069
|
-
if (message.to !== 0) {
|
|
4070
|
-
obj.to = Math.round(message.to);
|
|
4071
|
-
}
|
|
4072
|
-
if (message.data?.length) {
|
|
4073
|
-
obj.data = message.data.map((e) => MaintenanceService.toJSON(e));
|
|
4074
|
-
}
|
|
4075
|
-
return obj;
|
|
4076
|
-
},
|
|
4077
3099
|
create(base) {
|
|
4078
3100
|
return ServicePagination.fromPartial(base ?? {});
|
|
4079
3101
|
},
|
|
@@ -4103,20 +3125,6 @@ function fromTimestamp(t) {
|
|
|
4103
3125
|
millis += (t.nanos || 0) / 1_000_000;
|
|
4104
3126
|
return new globalThis.Date(millis);
|
|
4105
3127
|
}
|
|
4106
|
-
function fromJsonTimestamp(o) {
|
|
4107
|
-
if (o instanceof globalThis.Date) {
|
|
4108
|
-
return o;
|
|
4109
|
-
}
|
|
4110
|
-
else if (typeof o === "string") {
|
|
4111
|
-
return new globalThis.Date(o);
|
|
4112
|
-
}
|
|
4113
|
-
else {
|
|
4114
|
-
return fromTimestamp(Timestamp.fromJSON(o));
|
|
4115
|
-
}
|
|
4116
|
-
}
|
|
4117
3128
|
function numberToLong(number) {
|
|
4118
3129
|
return Long.fromNumber(number);
|
|
4119
3130
|
}
|
|
4120
|
-
function isSet(value) {
|
|
4121
|
-
return value !== null && value !== undefined;
|
|
4122
|
-
}
|