@fatehan/tsrp 1.1.4 → 1.1.6
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/services/api.d.ts +0 -1
- package/dist/fatehan/services/api.d.ts.map +1 -1
- package/dist/fatehan/services/api.js +4 -54
- package/dist/fatehan/services/repositories.d.ts +5 -4
- package/dist/fatehan/services/repositories.d.ts.map +1 -1
- package/dist/fatehan/services/repositories.js +53 -35
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../src/fatehan/services/api.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACrC,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../src/fatehan/services/api.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACrC,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAExD,eAAO,MAAM,eAAe,yBAAyB,CAAC;AAEtD,MAAM,WAAW,aAAa;IAC5B,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,SAAS,CAAC,EAAE,IAAI,GAAG,SAAS,C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C,CAAC,CAAC,CAAC,CAAC;CAAE,GACrD,OAAO,CAAC,CAAC,CAAC,CAAC;AAEf,KAAK,WAAW,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,MAAM,CAAC,GAAG,KAAK,CAAC;AACpD,MAAM,MAAM,KAAK,CAAC,CAAC,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,SAAS,OAAO,GAAG,CAAC,GACrD,CAAC,GAAG;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;CAAE,GAAG;KAAG,CAAC,IAAI,OAAO,CAAC,MAAM,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,GAAG,KAAK;CAAE,CAAC;AAUnG,MAAM,WAAW,UAAU,CAAC,CAAC;IAC3B,MAAM,CAAC,OAAO,EAAE,CAAC,EAAE,MAAM,CAAC,EAAE,YAAY,GAAG,YAAY,CAAC;IACxD,MAAM,CAAC,KAAK,EAAE,YAAY,GAAG,UAAU,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC;IAC7D,QAAQ,CAAC,MAAM,EAAE,GAAG,GAAG,CAAC,CAAC;IACzB,MAAM,CAAC,OAAO,EAAE,CAAC,GAAG,OAAO,CAAC;IAC5B,MAAM,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;IACxD,WAAW,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC;CAC/D"}
|
|
@@ -14,7 +14,6 @@ const wire_1 = require("@bufbuild/protobuf/wire");
|
|
|
14
14
|
const long_1 = __importDefault(require("long"));
|
|
15
15
|
const area_1 = require("../areas/area");
|
|
16
16
|
const financial_1 = require("../financial/financial");
|
|
17
|
-
const timestamp_1 = require("../google/protobuf/timestamp");
|
|
18
17
|
const identities_1 = require("../identities/identities");
|
|
19
18
|
const models_1 = require("../models/models");
|
|
20
19
|
const repositories_1 = require("./repositories");
|
|
@@ -472,17 +471,7 @@ exports.DeviceRequest_QueryFilterEntry = {
|
|
|
472
471
|
},
|
|
473
472
|
};
|
|
474
473
|
function createBaseDeviceResponse() {
|
|
475
|
-
return {
|
|
476
|
-
currentPage: 0,
|
|
477
|
-
from: 0,
|
|
478
|
-
to: 0,
|
|
479
|
-
lastPage: 0,
|
|
480
|
-
perPage: 0,
|
|
481
|
-
cost: long_1.default.ZERO,
|
|
482
|
-
total: 0,
|
|
483
|
-
serverTime: undefined,
|
|
484
|
-
data: [],
|
|
485
|
-
};
|
|
474
|
+
return { currentPage: 0, from: 0, to: 0, lastPage: 0, perPage: 0, cost: long_1.default.ZERO, total: 0, data: [] };
|
|
486
475
|
}
|
|
487
476
|
exports.DeviceResponse = {
|
|
488
477
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
@@ -507,11 +496,8 @@ exports.DeviceResponse = {
|
|
|
507
496
|
if (message.total !== 0) {
|
|
508
497
|
writer.uint32(56).uint32(message.total);
|
|
509
498
|
}
|
|
510
|
-
if (message.serverTime !== undefined) {
|
|
511
|
-
timestamp_1.Timestamp.encode(toTimestamp(message.serverTime), writer.uint32(66).fork()).join();
|
|
512
|
-
}
|
|
513
499
|
for (const v of message.data) {
|
|
514
|
-
repositories_1.DeviceRepo.encode(v, writer.uint32(
|
|
500
|
+
repositories_1.DeviceRepo.encode(v, writer.uint32(66).fork()).join();
|
|
515
501
|
}
|
|
516
502
|
return writer;
|
|
517
503
|
},
|
|
@@ -575,13 +561,6 @@ exports.DeviceResponse = {
|
|
|
575
561
|
if (tag !== 66) {
|
|
576
562
|
break;
|
|
577
563
|
}
|
|
578
|
-
message.serverTime = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
|
|
579
|
-
continue;
|
|
580
|
-
}
|
|
581
|
-
case 9: {
|
|
582
|
-
if (tag !== 74) {
|
|
583
|
-
break;
|
|
584
|
-
}
|
|
585
564
|
message.data.push(repositories_1.DeviceRepo.decode(reader, reader.uint32()));
|
|
586
565
|
continue;
|
|
587
566
|
}
|
|
@@ -602,7 +581,6 @@ exports.DeviceResponse = {
|
|
|
602
581
|
perPage: isSet(object.per_page) ? globalThis.Number(object.per_page) : 0,
|
|
603
582
|
cost: isSet(object.cost) ? long_1.default.fromValue(object.cost) : long_1.default.ZERO,
|
|
604
583
|
total: isSet(object.total) ? globalThis.Number(object.total) : 0,
|
|
605
|
-
serverTime: isSet(object.server_time) ? fromJsonTimestamp(object.server_time) : undefined,
|
|
606
584
|
data: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.data) ? object.data.map((e) => repositories_1.DeviceRepo.fromJSON(e)) : [],
|
|
607
585
|
};
|
|
608
586
|
},
|
|
@@ -630,9 +608,6 @@ exports.DeviceResponse = {
|
|
|
630
608
|
if (message.total !== 0) {
|
|
631
609
|
obj.total = Math.round(message.total);
|
|
632
610
|
}
|
|
633
|
-
if (message.serverTime !== undefined) {
|
|
634
|
-
obj.server_time = message.serverTime.toISOString();
|
|
635
|
-
}
|
|
636
611
|
if ((_a = message.data) === null || _a === void 0 ? void 0 : _a.length) {
|
|
637
612
|
obj.data = message.data.map((e) => repositories_1.DeviceRepo.toJSON(e));
|
|
638
613
|
}
|
|
@@ -642,7 +617,7 @@ exports.DeviceResponse = {
|
|
|
642
617
|
return exports.DeviceResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
643
618
|
},
|
|
644
619
|
fromPartial(object) {
|
|
645
|
-
var _a, _b, _c, _d, _e, _f, _g
|
|
620
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
646
621
|
const message = createBaseDeviceResponse();
|
|
647
622
|
message.currentPage = (_a = object.currentPage) !== null && _a !== void 0 ? _a : 0;
|
|
648
623
|
message.from = (_b = object.from) !== null && _b !== void 0 ? _b : 0;
|
|
@@ -651,8 +626,7 @@ exports.DeviceResponse = {
|
|
|
651
626
|
message.perPage = (_e = object.perPage) !== null && _e !== void 0 ? _e : 0;
|
|
652
627
|
message.cost = (object.cost !== undefined && object.cost !== null) ? long_1.default.fromValue(object.cost) : long_1.default.ZERO;
|
|
653
628
|
message.total = (_f = object.total) !== null && _f !== void 0 ? _f : 0;
|
|
654
|
-
message.
|
|
655
|
-
message.data = ((_h = object.data) === null || _h === void 0 ? void 0 : _h.map((e) => repositories_1.DeviceRepo.fromPartial(e))) || [];
|
|
629
|
+
message.data = ((_g = object.data) === null || _g === void 0 ? void 0 : _g.map((e) => repositories_1.DeviceRepo.fromPartial(e))) || [];
|
|
656
630
|
return message;
|
|
657
631
|
},
|
|
658
632
|
};
|
|
@@ -1386,30 +1360,6 @@ exports.FilterScope = {
|
|
|
1386
1360
|
return message;
|
|
1387
1361
|
},
|
|
1388
1362
|
};
|
|
1389
|
-
function toTimestamp(date) {
|
|
1390
|
-
const seconds = numberToLong(Math.trunc(date.getTime() / 1000));
|
|
1391
|
-
const nanos = (date.getTime() % 1000) * 1000000;
|
|
1392
|
-
return { seconds, nanos };
|
|
1393
|
-
}
|
|
1394
|
-
function fromTimestamp(t) {
|
|
1395
|
-
let millis = (t.seconds.toNumber() || 0) * 1000;
|
|
1396
|
-
millis += (t.nanos || 0) / 1000000;
|
|
1397
|
-
return new globalThis.Date(millis);
|
|
1398
|
-
}
|
|
1399
|
-
function fromJsonTimestamp(o) {
|
|
1400
|
-
if (o instanceof globalThis.Date) {
|
|
1401
|
-
return o;
|
|
1402
|
-
}
|
|
1403
|
-
else if (typeof o === "string") {
|
|
1404
|
-
return new globalThis.Date(o);
|
|
1405
|
-
}
|
|
1406
|
-
else {
|
|
1407
|
-
return fromTimestamp(timestamp_1.Timestamp.fromJSON(o));
|
|
1408
|
-
}
|
|
1409
|
-
}
|
|
1410
|
-
function numberToLong(number) {
|
|
1411
|
-
return long_1.default.fromNumber(number);
|
|
1412
|
-
}
|
|
1413
1363
|
function isObject(value) {
|
|
1414
1364
|
return typeof value === "object" && value !== null;
|
|
1415
1365
|
}
|
|
@@ -9,16 +9,17 @@ export interface DeviceRepo {
|
|
|
9
9
|
device?: Device | undefined;
|
|
10
10
|
icon?: DeviceIcon | undefined;
|
|
11
11
|
tracker?: Tracker | undefined;
|
|
12
|
-
|
|
12
|
+
carRepo?: CarRepo | undefined;
|
|
13
13
|
deviceStatus?: DeviceStatus | undefined;
|
|
14
14
|
userDeviceIo: SystemIo[];
|
|
15
|
-
|
|
15
|
+
ownerRepo?: UserRepo | undefined;
|
|
16
16
|
organization?: Organization | undefined;
|
|
17
|
+
subscribed: boolean;
|
|
17
18
|
}
|
|
18
19
|
export interface CarRepo {
|
|
19
20
|
car?: Car | undefined;
|
|
20
|
-
|
|
21
|
-
|
|
21
|
+
driverRepo?: DriverRepo | undefined;
|
|
22
|
+
carModelRepo?: CarModelRepo | undefined;
|
|
22
23
|
}
|
|
23
24
|
export interface PersonRepo {
|
|
24
25
|
person?: Person | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"repositories.d.ts","sourceRoot":"","sources":["../../../src/fatehan/services/repositories.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AACpG,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAChD,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAC;AAC9E,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEpD,eAAO,MAAM,eAAe,yBAAyB,CAAC;AAEtD,MAA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AAC,EAAE,CAAC,CAAC,EAAE,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;IACxD,WAAW,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC;CAC/D"}
|
|
@@ -18,11 +18,12 @@ function createBaseDeviceRepo() {
|
|
|
18
18
|
device: undefined,
|
|
19
19
|
icon: undefined,
|
|
20
20
|
tracker: undefined,
|
|
21
|
-
|
|
21
|
+
carRepo: undefined,
|
|
22
22
|
deviceStatus: undefined,
|
|
23
23
|
userDeviceIo: [],
|
|
24
|
-
|
|
24
|
+
ownerRepo: undefined,
|
|
25
25
|
organization: undefined,
|
|
26
|
+
subscribed: false,
|
|
26
27
|
};
|
|
27
28
|
}
|
|
28
29
|
exports.DeviceRepo = {
|
|
@@ -36,8 +37,8 @@ exports.DeviceRepo = {
|
|
|
36
37
|
if (message.tracker !== undefined) {
|
|
37
38
|
devices_1.Tracker.encode(message.tracker, writer.uint32(26).fork()).join();
|
|
38
39
|
}
|
|
39
|
-
if (message.
|
|
40
|
-
exports.CarRepo.encode(message.
|
|
40
|
+
if (message.carRepo !== undefined) {
|
|
41
|
+
exports.CarRepo.encode(message.carRepo, writer.uint32(34).fork()).join();
|
|
41
42
|
}
|
|
42
43
|
if (message.deviceStatus !== undefined) {
|
|
43
44
|
dataModel_1.DeviceStatus.encode(message.deviceStatus, writer.uint32(42).fork()).join();
|
|
@@ -45,12 +46,15 @@ exports.DeviceRepo = {
|
|
|
45
46
|
for (const v of message.userDeviceIo) {
|
|
46
47
|
devices_1.SystemIo.encode(v, writer.uint32(50).fork()).join();
|
|
47
48
|
}
|
|
48
|
-
if (message.
|
|
49
|
-
exports.UserRepo.encode(message.
|
|
49
|
+
if (message.ownerRepo !== undefined) {
|
|
50
|
+
exports.UserRepo.encode(message.ownerRepo, writer.uint32(58).fork()).join();
|
|
50
51
|
}
|
|
51
52
|
if (message.organization !== undefined) {
|
|
52
53
|
identities_1.Organization.encode(message.organization, writer.uint32(66).fork()).join();
|
|
53
54
|
}
|
|
55
|
+
if (message.subscribed !== false) {
|
|
56
|
+
writer.uint32(72).bool(message.subscribed);
|
|
57
|
+
}
|
|
54
58
|
return writer;
|
|
55
59
|
},
|
|
56
60
|
decode(input, length) {
|
|
@@ -85,7 +89,7 @@ exports.DeviceRepo = {
|
|
|
85
89
|
if (tag !== 34) {
|
|
86
90
|
break;
|
|
87
91
|
}
|
|
88
|
-
message.
|
|
92
|
+
message.carRepo = exports.CarRepo.decode(reader, reader.uint32());
|
|
89
93
|
continue;
|
|
90
94
|
}
|
|
91
95
|
case 5: {
|
|
@@ -106,7 +110,7 @@ exports.DeviceRepo = {
|
|
|
106
110
|
if (tag !== 58) {
|
|
107
111
|
break;
|
|
108
112
|
}
|
|
109
|
-
message.
|
|
113
|
+
message.ownerRepo = exports.UserRepo.decode(reader, reader.uint32());
|
|
110
114
|
continue;
|
|
111
115
|
}
|
|
112
116
|
case 8: {
|
|
@@ -116,6 +120,13 @@ exports.DeviceRepo = {
|
|
|
116
120
|
message.organization = identities_1.Organization.decode(reader, reader.uint32());
|
|
117
121
|
continue;
|
|
118
122
|
}
|
|
123
|
+
case 9: {
|
|
124
|
+
if (tag !== 72) {
|
|
125
|
+
break;
|
|
126
|
+
}
|
|
127
|
+
message.subscribed = reader.bool();
|
|
128
|
+
continue;
|
|
129
|
+
}
|
|
119
130
|
}
|
|
120
131
|
if ((tag & 7) === 4 || tag === 0) {
|
|
121
132
|
break;
|
|
@@ -129,13 +140,14 @@ exports.DeviceRepo = {
|
|
|
129
140
|
device: isSet(object.device) ? devices_1.Device.fromJSON(object.device) : undefined,
|
|
130
141
|
icon: isSet(object.icon) ? devices_1.DeviceIcon.fromJSON(object.icon) : undefined,
|
|
131
142
|
tracker: isSet(object.tracker) ? devices_1.Tracker.fromJSON(object.tracker) : undefined,
|
|
132
|
-
|
|
143
|
+
carRepo: isSet(object.car_repo) ? exports.CarRepo.fromJSON(object.car_repo) : undefined,
|
|
133
144
|
deviceStatus: isSet(object.device_status) ? dataModel_1.DeviceStatus.fromJSON(object.device_status) : undefined,
|
|
134
145
|
userDeviceIo: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.user_device_io)
|
|
135
146
|
? object.user_device_io.map((e) => devices_1.SystemIo.fromJSON(e))
|
|
136
147
|
: [],
|
|
137
|
-
|
|
148
|
+
ownerRepo: isSet(object.owner_repo) ? exports.UserRepo.fromJSON(object.owner_repo) : undefined,
|
|
138
149
|
organization: isSet(object.organization) ? identities_1.Organization.fromJSON(object.organization) : undefined,
|
|
150
|
+
subscribed: isSet(object.subscribed) ? globalThis.Boolean(object.subscribed) : false,
|
|
139
151
|
};
|
|
140
152
|
},
|
|
141
153
|
toJSON(message) {
|
|
@@ -150,8 +162,8 @@ exports.DeviceRepo = {
|
|
|
150
162
|
if (message.tracker !== undefined) {
|
|
151
163
|
obj.tracker = devices_1.Tracker.toJSON(message.tracker);
|
|
152
164
|
}
|
|
153
|
-
if (message.
|
|
154
|
-
obj.
|
|
165
|
+
if (message.carRepo !== undefined) {
|
|
166
|
+
obj.car_repo = exports.CarRepo.toJSON(message.carRepo);
|
|
155
167
|
}
|
|
156
168
|
if (message.deviceStatus !== undefined) {
|
|
157
169
|
obj.device_status = dataModel_1.DeviceStatus.toJSON(message.deviceStatus);
|
|
@@ -159,19 +171,22 @@ exports.DeviceRepo = {
|
|
|
159
171
|
if ((_a = message.userDeviceIo) === null || _a === void 0 ? void 0 : _a.length) {
|
|
160
172
|
obj.user_device_io = message.userDeviceIo.map((e) => devices_1.SystemIo.toJSON(e));
|
|
161
173
|
}
|
|
162
|
-
if (message.
|
|
163
|
-
obj.
|
|
174
|
+
if (message.ownerRepo !== undefined) {
|
|
175
|
+
obj.owner_repo = exports.UserRepo.toJSON(message.ownerRepo);
|
|
164
176
|
}
|
|
165
177
|
if (message.organization !== undefined) {
|
|
166
178
|
obj.organization = identities_1.Organization.toJSON(message.organization);
|
|
167
179
|
}
|
|
180
|
+
if (message.subscribed !== false) {
|
|
181
|
+
obj.subscribed = message.subscribed;
|
|
182
|
+
}
|
|
168
183
|
return obj;
|
|
169
184
|
},
|
|
170
185
|
create(base) {
|
|
171
186
|
return exports.DeviceRepo.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
172
187
|
},
|
|
173
188
|
fromPartial(object) {
|
|
174
|
-
var _a;
|
|
189
|
+
var _a, _b;
|
|
175
190
|
const message = createBaseDeviceRepo();
|
|
176
191
|
message.device = (object.device !== undefined && object.device !== null)
|
|
177
192
|
? devices_1.Device.fromPartial(object.device)
|
|
@@ -182,33 +197,36 @@ exports.DeviceRepo = {
|
|
|
182
197
|
message.tracker = (object.tracker !== undefined && object.tracker !== null)
|
|
183
198
|
? devices_1.Tracker.fromPartial(object.tracker)
|
|
184
199
|
: undefined;
|
|
185
|
-
message.
|
|
200
|
+
message.carRepo = (object.carRepo !== undefined && object.carRepo !== null)
|
|
201
|
+
? exports.CarRepo.fromPartial(object.carRepo)
|
|
202
|
+
: undefined;
|
|
186
203
|
message.deviceStatus = (object.deviceStatus !== undefined && object.deviceStatus !== null)
|
|
187
204
|
? dataModel_1.DeviceStatus.fromPartial(object.deviceStatus)
|
|
188
205
|
: undefined;
|
|
189
206
|
message.userDeviceIo = ((_a = object.userDeviceIo) === null || _a === void 0 ? void 0 : _a.map((e) => devices_1.SystemIo.fromPartial(e))) || [];
|
|
190
|
-
message.
|
|
191
|
-
? exports.UserRepo.fromPartial(object.
|
|
207
|
+
message.ownerRepo = (object.ownerRepo !== undefined && object.ownerRepo !== null)
|
|
208
|
+
? exports.UserRepo.fromPartial(object.ownerRepo)
|
|
192
209
|
: undefined;
|
|
193
210
|
message.organization = (object.organization !== undefined && object.organization !== null)
|
|
194
211
|
? identities_1.Organization.fromPartial(object.organization)
|
|
195
212
|
: undefined;
|
|
213
|
+
message.subscribed = (_b = object.subscribed) !== null && _b !== void 0 ? _b : false;
|
|
196
214
|
return message;
|
|
197
215
|
},
|
|
198
216
|
};
|
|
199
217
|
function createBaseCarRepo() {
|
|
200
|
-
return { car: undefined,
|
|
218
|
+
return { car: undefined, driverRepo: undefined, carModelRepo: undefined };
|
|
201
219
|
}
|
|
202
220
|
exports.CarRepo = {
|
|
203
221
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
204
222
|
if (message.car !== undefined) {
|
|
205
223
|
devices_1.Car.encode(message.car, writer.uint32(10).fork()).join();
|
|
206
224
|
}
|
|
207
|
-
if (message.
|
|
208
|
-
exports.DriverRepo.encode(message.
|
|
225
|
+
if (message.driverRepo !== undefined) {
|
|
226
|
+
exports.DriverRepo.encode(message.driverRepo, writer.uint32(18).fork()).join();
|
|
209
227
|
}
|
|
210
|
-
if (message.
|
|
211
|
-
exports.CarModelRepo.encode(message.
|
|
228
|
+
if (message.carModelRepo !== undefined) {
|
|
229
|
+
exports.CarModelRepo.encode(message.carModelRepo, writer.uint32(26).fork()).join();
|
|
212
230
|
}
|
|
213
231
|
return writer;
|
|
214
232
|
},
|
|
@@ -230,14 +248,14 @@ exports.CarRepo = {
|
|
|
230
248
|
if (tag !== 18) {
|
|
231
249
|
break;
|
|
232
250
|
}
|
|
233
|
-
message.
|
|
251
|
+
message.driverRepo = exports.DriverRepo.decode(reader, reader.uint32());
|
|
234
252
|
continue;
|
|
235
253
|
}
|
|
236
254
|
case 3: {
|
|
237
255
|
if (tag !== 26) {
|
|
238
256
|
break;
|
|
239
257
|
}
|
|
240
|
-
message.
|
|
258
|
+
message.carModelRepo = exports.CarModelRepo.decode(reader, reader.uint32());
|
|
241
259
|
continue;
|
|
242
260
|
}
|
|
243
261
|
}
|
|
@@ -251,8 +269,8 @@ exports.CarRepo = {
|
|
|
251
269
|
fromJSON(object) {
|
|
252
270
|
return {
|
|
253
271
|
car: isSet(object.object) ? devices_1.Car.fromJSON(object.object) : undefined,
|
|
254
|
-
|
|
255
|
-
|
|
272
|
+
driverRepo: isSet(object.driver_repo) ? exports.DriverRepo.fromJSON(object.driver_repo) : undefined,
|
|
273
|
+
carModelRepo: isSet(object.car_model_repo) ? exports.CarModelRepo.fromJSON(object.car_model_repo) : undefined,
|
|
256
274
|
};
|
|
257
275
|
},
|
|
258
276
|
toJSON(message) {
|
|
@@ -260,11 +278,11 @@ exports.CarRepo = {
|
|
|
260
278
|
if (message.car !== undefined) {
|
|
261
279
|
obj.object = devices_1.Car.toJSON(message.car);
|
|
262
280
|
}
|
|
263
|
-
if (message.
|
|
264
|
-
obj.
|
|
281
|
+
if (message.driverRepo !== undefined) {
|
|
282
|
+
obj.driver_repo = exports.DriverRepo.toJSON(message.driverRepo);
|
|
265
283
|
}
|
|
266
|
-
if (message.
|
|
267
|
-
obj.
|
|
284
|
+
if (message.carModelRepo !== undefined) {
|
|
285
|
+
obj.car_model_repo = exports.CarModelRepo.toJSON(message.carModelRepo);
|
|
268
286
|
}
|
|
269
287
|
return obj;
|
|
270
288
|
},
|
|
@@ -274,11 +292,11 @@ exports.CarRepo = {
|
|
|
274
292
|
fromPartial(object) {
|
|
275
293
|
const message = createBaseCarRepo();
|
|
276
294
|
message.car = (object.car !== undefined && object.car !== null) ? devices_1.Car.fromPartial(object.car) : undefined;
|
|
277
|
-
message.
|
|
278
|
-
? exports.DriverRepo.fromPartial(object.
|
|
295
|
+
message.driverRepo = (object.driverRepo !== undefined && object.driverRepo !== null)
|
|
296
|
+
? exports.DriverRepo.fromPartial(object.driverRepo)
|
|
279
297
|
: undefined;
|
|
280
|
-
message.
|
|
281
|
-
? exports.CarModelRepo.fromPartial(object.
|
|
298
|
+
message.carModelRepo = (object.carModelRepo !== undefined && object.carModelRepo !== null)
|
|
299
|
+
? exports.CarModelRepo.fromPartial(object.carModelRepo)
|
|
282
300
|
: undefined;
|
|
283
301
|
return message;
|
|
284
302
|
},
|