@fatehan/tsrp 1.0.40 → 1.0.42
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/apis/client.d.ts +358 -0
- package/dist/fatehan/apis/client.d.ts.map +1 -0
- package/dist/fatehan/apis/client.js +5360 -0
- package/dist/fatehan/areas/area.js +6 -6
- package/dist/fatehan/google/protobuf/timestamp.js +2 -2
- package/dist/fatehan/models/fusion.js +9 -9
- package/dist/fatehan/models/models.d.ts +27 -27
- package/dist/fatehan/models/models.d.ts.map +1 -1
- package/dist/fatehan/models/models.js +316 -310
- package/dist/fatehan/models/operation.d.ts +13 -0
- package/dist/fatehan/models/operation.d.ts.map +1 -1
- package/dist/fatehan/models/operation.js +232 -7
- package/dist/fatehan/notifies/notify.d.ts +1 -0
- package/dist/fatehan/notifies/notify.d.ts.map +1 -1
- package/dist/fatehan/notifies/notify.js +30 -12
- package/dist/fatehan/packets/dataModel.js +54 -54
- package/dist/fatehan/packets/messages.js +9 -9
- package/dist/fatehan/reports/report.js +88 -88
- package/dist/fatehan/trips/trip.js +19 -19
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.test.js +12 -9
- package/dist/system.io.d.ts +2 -2
- package/dist/system.io.d.ts.map +1 -1
- package/dist/system.io.js +38 -38
- package/package.json +2 -2
- package/readme.md +1 -1
|
@@ -1,67 +1,24 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v2.7.
|
|
4
|
+
// protoc-gen-ts_proto v2.7.5
|
|
5
5
|
// protoc v6.31.1
|
|
6
6
|
// source: models/models.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
8
8
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
9
9
|
};
|
|
10
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
-
exports.
|
|
12
|
-
exports.systemIoTypeFromJSON = systemIoTypeFromJSON;
|
|
13
|
-
exports.systemIoTypeToJSON = systemIoTypeToJSON;
|
|
11
|
+
exports.Config = exports.ShownIo = exports.SystemIo_UnknownEntry = exports.SystemIo = exports.SystemIoStyle = exports.TrialLog = exports.ChargeLog = exports.DeviceStatusList = exports.PersonalAccessToken = exports.Person = exports.SinotrackCache = exports.HeartbeatCache = exports.IoList_ItemsEntry = exports.IoList = exports.Gallery = exports.SystemIo_SystemIoType = exports.ChargeLog_Type = exports.protobufPackage = void 0;
|
|
14
12
|
exports.chargeLog_TypeFromJSON = chargeLog_TypeFromJSON;
|
|
15
13
|
exports.chargeLog_TypeToJSON = chargeLog_TypeToJSON;
|
|
14
|
+
exports.systemIo_SystemIoTypeFromJSON = systemIo_SystemIoTypeFromJSON;
|
|
15
|
+
exports.systemIo_SystemIoTypeToJSON = systemIo_SystemIoTypeToJSON;
|
|
16
16
|
/* eslint-disable */
|
|
17
17
|
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
18
18
|
const long_1 = __importDefault(require("long"));
|
|
19
19
|
const timestamp_1 = require("../google/protobuf/timestamp");
|
|
20
20
|
const dataModel_1 = require("../packets/dataModel");
|
|
21
21
|
exports.protobufPackage = "com.fatehan.models";
|
|
22
|
-
var SystemIoType;
|
|
23
|
-
(function (SystemIoType) {
|
|
24
|
-
SystemIoType[SystemIoType["STRING"] = 0] = "STRING";
|
|
25
|
-
SystemIoType[SystemIoType["BOOLEAN"] = 1] = "BOOLEAN";
|
|
26
|
-
SystemIoType[SystemIoType["NUMERIC"] = 2] = "NUMERIC";
|
|
27
|
-
SystemIoType[SystemIoType["FLOAT"] = 3] = "FLOAT";
|
|
28
|
-
SystemIoType[SystemIoType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
29
|
-
})(SystemIoType || (exports.SystemIoType = SystemIoType = {}));
|
|
30
|
-
function systemIoTypeFromJSON(object) {
|
|
31
|
-
switch (object) {
|
|
32
|
-
case 0:
|
|
33
|
-
case "STRING":
|
|
34
|
-
return SystemIoType.STRING;
|
|
35
|
-
case 1:
|
|
36
|
-
case "BOOLEAN":
|
|
37
|
-
return SystemIoType.BOOLEAN;
|
|
38
|
-
case 2:
|
|
39
|
-
case "NUMERIC":
|
|
40
|
-
return SystemIoType.NUMERIC;
|
|
41
|
-
case 3:
|
|
42
|
-
case "FLOAT":
|
|
43
|
-
return SystemIoType.FLOAT;
|
|
44
|
-
case -1:
|
|
45
|
-
case "UNRECOGNIZED":
|
|
46
|
-
default:
|
|
47
|
-
return SystemIoType.UNRECOGNIZED;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
function systemIoTypeToJSON(object) {
|
|
51
|
-
switch (object) {
|
|
52
|
-
case SystemIoType.STRING:
|
|
53
|
-
return "STRING";
|
|
54
|
-
case SystemIoType.BOOLEAN:
|
|
55
|
-
return "BOOLEAN";
|
|
56
|
-
case SystemIoType.NUMERIC:
|
|
57
|
-
return "NUMERIC";
|
|
58
|
-
case SystemIoType.FLOAT:
|
|
59
|
-
return "FLOAT";
|
|
60
|
-
case SystemIoType.UNRECOGNIZED:
|
|
61
|
-
default:
|
|
62
|
-
return "UNRECOGNIZED";
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
22
|
var ChargeLog_Type;
|
|
66
23
|
(function (ChargeLog_Type) {
|
|
67
24
|
ChargeLog_Type[ChargeLog_Type["None"] = 0] = "None";
|
|
@@ -123,6 +80,49 @@ function chargeLog_TypeToJSON(object) {
|
|
|
123
80
|
return "UNRECOGNIZED";
|
|
124
81
|
}
|
|
125
82
|
}
|
|
83
|
+
var SystemIo_SystemIoType;
|
|
84
|
+
(function (SystemIo_SystemIoType) {
|
|
85
|
+
SystemIo_SystemIoType[SystemIo_SystemIoType["STRING"] = 0] = "STRING";
|
|
86
|
+
SystemIo_SystemIoType[SystemIo_SystemIoType["BOOLEAN"] = 1] = "BOOLEAN";
|
|
87
|
+
SystemIo_SystemIoType[SystemIo_SystemIoType["NUMERIC"] = 2] = "NUMERIC";
|
|
88
|
+
SystemIo_SystemIoType[SystemIo_SystemIoType["FLOAT"] = 3] = "FLOAT";
|
|
89
|
+
SystemIo_SystemIoType[SystemIo_SystemIoType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
90
|
+
})(SystemIo_SystemIoType || (exports.SystemIo_SystemIoType = SystemIo_SystemIoType = {}));
|
|
91
|
+
function systemIo_SystemIoTypeFromJSON(object) {
|
|
92
|
+
switch (object) {
|
|
93
|
+
case 0:
|
|
94
|
+
case "STRING":
|
|
95
|
+
return SystemIo_SystemIoType.STRING;
|
|
96
|
+
case 1:
|
|
97
|
+
case "BOOLEAN":
|
|
98
|
+
return SystemIo_SystemIoType.BOOLEAN;
|
|
99
|
+
case 2:
|
|
100
|
+
case "NUMERIC":
|
|
101
|
+
return SystemIo_SystemIoType.NUMERIC;
|
|
102
|
+
case 3:
|
|
103
|
+
case "FLOAT":
|
|
104
|
+
return SystemIo_SystemIoType.FLOAT;
|
|
105
|
+
case -1:
|
|
106
|
+
case "UNRECOGNIZED":
|
|
107
|
+
default:
|
|
108
|
+
return SystemIo_SystemIoType.UNRECOGNIZED;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
function systemIo_SystemIoTypeToJSON(object) {
|
|
112
|
+
switch (object) {
|
|
113
|
+
case SystemIo_SystemIoType.STRING:
|
|
114
|
+
return "STRING";
|
|
115
|
+
case SystemIo_SystemIoType.BOOLEAN:
|
|
116
|
+
return "BOOLEAN";
|
|
117
|
+
case SystemIo_SystemIoType.NUMERIC:
|
|
118
|
+
return "NUMERIC";
|
|
119
|
+
case SystemIo_SystemIoType.FLOAT:
|
|
120
|
+
return "FLOAT";
|
|
121
|
+
case SystemIo_SystemIoType.UNRECOGNIZED:
|
|
122
|
+
default:
|
|
123
|
+
return "UNRECOGNIZED";
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
126
|
function createBaseGallery() {
|
|
127
127
|
return {
|
|
128
128
|
id: long_1.default.UZERO,
|
|
@@ -177,7 +177,7 @@ exports.Gallery = {
|
|
|
177
177
|
},
|
|
178
178
|
decode(input, length) {
|
|
179
179
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
180
|
-
|
|
180
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
181
181
|
const message = createBaseGallery();
|
|
182
182
|
while (reader.pos < end) {
|
|
183
183
|
const tag = reader.uint32();
|
|
@@ -355,7 +355,7 @@ exports.IoList = {
|
|
|
355
355
|
},
|
|
356
356
|
decode(input, length) {
|
|
357
357
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
358
|
-
|
|
358
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
359
359
|
const message = createBaseIoList();
|
|
360
360
|
while (reader.pos < end) {
|
|
361
361
|
const tag = reader.uint32();
|
|
@@ -431,7 +431,7 @@ exports.IoList_ItemsEntry = {
|
|
|
431
431
|
},
|
|
432
432
|
decode(input, length) {
|
|
433
433
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
434
|
-
|
|
434
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
435
435
|
const message = createBaseIoList_ItemsEntry();
|
|
436
436
|
while (reader.pos < end) {
|
|
437
437
|
const tag = reader.uint32();
|
|
@@ -543,7 +543,7 @@ exports.HeartbeatCache = {
|
|
|
543
543
|
},
|
|
544
544
|
decode(input, length) {
|
|
545
545
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
546
|
-
|
|
546
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
547
547
|
const message = createBaseHeartbeatCache();
|
|
548
548
|
while (reader.pos < end) {
|
|
549
549
|
const tag = reader.uint32();
|
|
@@ -747,7 +747,7 @@ exports.SinotrackCache = {
|
|
|
747
747
|
},
|
|
748
748
|
decode(input, length) {
|
|
749
749
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
750
|
-
|
|
750
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
751
751
|
const message = createBaseSinotrackCache();
|
|
752
752
|
while (reader.pos < end) {
|
|
753
753
|
const tag = reader.uint32();
|
|
@@ -935,7 +935,7 @@ exports.Person = {
|
|
|
935
935
|
},
|
|
936
936
|
decode(input, length) {
|
|
937
937
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
938
|
-
|
|
938
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
939
939
|
const message = createBasePerson();
|
|
940
940
|
while (reader.pos < end) {
|
|
941
941
|
const tag = reader.uint32();
|
|
@@ -1305,7 +1305,7 @@ exports.PersonalAccessToken = {
|
|
|
1305
1305
|
},
|
|
1306
1306
|
decode(input, length) {
|
|
1307
1307
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1308
|
-
|
|
1308
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1309
1309
|
const message = createBasePersonalAccessToken();
|
|
1310
1310
|
while (reader.pos < end) {
|
|
1311
1311
|
const tag = reader.uint32();
|
|
@@ -1549,7 +1549,7 @@ exports.DeviceStatusList = {
|
|
|
1549
1549
|
},
|
|
1550
1550
|
decode(input, length) {
|
|
1551
1551
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1552
|
-
|
|
1552
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1553
1553
|
const message = createBaseDeviceStatusList();
|
|
1554
1554
|
while (reader.pos < end) {
|
|
1555
1555
|
const tag = reader.uint32();
|
|
@@ -1690,7 +1690,7 @@ exports.ChargeLog = {
|
|
|
1690
1690
|
},
|
|
1691
1691
|
decode(input, length) {
|
|
1692
1692
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1693
|
-
|
|
1693
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1694
1694
|
const message = createBaseChargeLog();
|
|
1695
1695
|
while (reader.pos < end) {
|
|
1696
1696
|
const tag = reader.uint32();
|
|
@@ -1936,7 +1936,7 @@ exports.TrialLog = {
|
|
|
1936
1936
|
},
|
|
1937
1937
|
decode(input, length) {
|
|
1938
1938
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1939
|
-
|
|
1939
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1940
1940
|
const message = createBaseTrialLog();
|
|
1941
1941
|
while (reader.pos < end) {
|
|
1942
1942
|
const tag = reader.uint32();
|
|
@@ -2020,7 +2020,7 @@ exports.SystemIoStyle = {
|
|
|
2020
2020
|
},
|
|
2021
2021
|
decode(input, length) {
|
|
2022
2022
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2023
|
-
|
|
2023
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2024
2024
|
const message = createBaseSystemIoStyle();
|
|
2025
2025
|
while (reader.pos < end) {
|
|
2026
2026
|
const tag = reader.uint32();
|
|
@@ -2089,8 +2089,10 @@ exports.SystemIoStyle = {
|
|
|
2089
2089
|
function createBaseSystemIo() {
|
|
2090
2090
|
return {
|
|
2091
2091
|
id: long_1.default.UZERO,
|
|
2092
|
-
key: "",
|
|
2093
2092
|
name: "",
|
|
2093
|
+
deviceId: undefined,
|
|
2094
|
+
organizationId: undefined,
|
|
2095
|
+
formula: "",
|
|
2094
2096
|
type: 0,
|
|
2095
2097
|
unit: undefined,
|
|
2096
2098
|
description: undefined,
|
|
@@ -2111,56 +2113,62 @@ exports.SystemIo = {
|
|
|
2111
2113
|
if (!message.id.equals(long_1.default.UZERO)) {
|
|
2112
2114
|
writer.uint32(8).uint64(message.id.toString());
|
|
2113
2115
|
}
|
|
2114
|
-
if (message.key !== "") {
|
|
2115
|
-
writer.uint32(18).string(message.key);
|
|
2116
|
-
}
|
|
2117
2116
|
if (message.name !== "") {
|
|
2118
|
-
writer.uint32(
|
|
2117
|
+
writer.uint32(18).string(message.name);
|
|
2118
|
+
}
|
|
2119
|
+
if (message.deviceId !== undefined) {
|
|
2120
|
+
writer.uint32(24).uint64(message.deviceId.toString());
|
|
2121
|
+
}
|
|
2122
|
+
if (message.organizationId !== undefined) {
|
|
2123
|
+
writer.uint32(32).uint64(message.organizationId.toString());
|
|
2124
|
+
}
|
|
2125
|
+
if (message.formula !== "") {
|
|
2126
|
+
writer.uint32(42).string(message.formula);
|
|
2119
2127
|
}
|
|
2120
2128
|
if (message.type !== 0) {
|
|
2121
|
-
writer.uint32(
|
|
2129
|
+
writer.uint32(48).int32(message.type);
|
|
2122
2130
|
}
|
|
2123
2131
|
if (message.unit !== undefined) {
|
|
2124
|
-
writer.uint32(
|
|
2132
|
+
writer.uint32(58).string(message.unit);
|
|
2125
2133
|
}
|
|
2126
2134
|
if (message.description !== undefined) {
|
|
2127
|
-
writer.uint32(
|
|
2135
|
+
writer.uint32(66).string(message.description);
|
|
2128
2136
|
}
|
|
2129
2137
|
if (message.activeStyle !== undefined) {
|
|
2130
|
-
exports.SystemIoStyle.encode(message.activeStyle, writer.uint32(
|
|
2138
|
+
exports.SystemIoStyle.encode(message.activeStyle, writer.uint32(74).fork()).join();
|
|
2131
2139
|
}
|
|
2132
2140
|
if (message.inactiveStyle !== undefined) {
|
|
2133
|
-
exports.SystemIoStyle.encode(message.inactiveStyle, writer.uint32(
|
|
2141
|
+
exports.SystemIoStyle.encode(message.inactiveStyle, writer.uint32(82).fork()).join();
|
|
2134
2142
|
}
|
|
2135
2143
|
if (message.active !== false) {
|
|
2136
|
-
writer.uint32(
|
|
2144
|
+
writer.uint32(88).bool(message.active);
|
|
2137
2145
|
}
|
|
2138
2146
|
if (message.graphable !== false) {
|
|
2139
|
-
writer.uint32(
|
|
2147
|
+
writer.uint32(96).bool(message.graphable);
|
|
2140
2148
|
}
|
|
2141
2149
|
if (message.sord !== 0) {
|
|
2142
|
-
writer.uint32(
|
|
2150
|
+
writer.uint32(104).uint32(message.sord);
|
|
2143
2151
|
}
|
|
2144
2152
|
for (const v of message.hidden) {
|
|
2145
|
-
writer.uint32(
|
|
2153
|
+
writer.uint32(114).string(v);
|
|
2146
2154
|
}
|
|
2147
2155
|
Object.entries(message.unknown).forEach(([key, value]) => {
|
|
2148
|
-
exports.SystemIo_UnknownEntry.encode({ key: key, value }, writer.uint32(
|
|
2156
|
+
exports.SystemIo_UnknownEntry.encode({ key: key, value }, writer.uint32(122).fork()).join();
|
|
2149
2157
|
});
|
|
2150
2158
|
if (message.createdBy !== undefined) {
|
|
2151
|
-
writer.uint32(
|
|
2159
|
+
writer.uint32(128).uint64(message.createdBy.toString());
|
|
2152
2160
|
}
|
|
2153
2161
|
if (message.createdAt !== undefined) {
|
|
2154
|
-
timestamp_1.Timestamp.encode(toTimestamp(message.createdAt), writer.uint32(
|
|
2162
|
+
timestamp_1.Timestamp.encode(toTimestamp(message.createdAt), writer.uint32(138).fork()).join();
|
|
2155
2163
|
}
|
|
2156
2164
|
if (message.updatedAt !== undefined) {
|
|
2157
|
-
timestamp_1.Timestamp.encode(toTimestamp(message.updatedAt), writer.uint32(
|
|
2165
|
+
timestamp_1.Timestamp.encode(toTimestamp(message.updatedAt), writer.uint32(146).fork()).join();
|
|
2158
2166
|
}
|
|
2159
2167
|
return writer;
|
|
2160
2168
|
},
|
|
2161
2169
|
decode(input, length) {
|
|
2162
2170
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2163
|
-
|
|
2171
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2164
2172
|
const message = createBaseSystemIo();
|
|
2165
2173
|
while (reader.pos < end) {
|
|
2166
2174
|
const tag = reader.uint32();
|
|
@@ -2176,107 +2184,121 @@ exports.SystemIo = {
|
|
|
2176
2184
|
if (tag !== 18) {
|
|
2177
2185
|
break;
|
|
2178
2186
|
}
|
|
2179
|
-
message.key = reader.string();
|
|
2180
|
-
continue;
|
|
2181
|
-
}
|
|
2182
|
-
case 3: {
|
|
2183
|
-
if (tag !== 26) {
|
|
2184
|
-
break;
|
|
2185
|
-
}
|
|
2186
2187
|
message.name = reader.string();
|
|
2187
2188
|
continue;
|
|
2188
2189
|
}
|
|
2189
|
-
case
|
|
2190
|
-
if (tag !==
|
|
2190
|
+
case 3: {
|
|
2191
|
+
if (tag !== 24) {
|
|
2191
2192
|
break;
|
|
2192
2193
|
}
|
|
2193
|
-
message.
|
|
2194
|
+
message.deviceId = long_1.default.fromString(reader.uint64().toString(), true);
|
|
2194
2195
|
continue;
|
|
2195
2196
|
}
|
|
2196
2197
|
case 4: {
|
|
2197
|
-
if (tag !==
|
|
2198
|
+
if (tag !== 32) {
|
|
2198
2199
|
break;
|
|
2199
2200
|
}
|
|
2200
|
-
message.
|
|
2201
|
+
message.organizationId = long_1.default.fromString(reader.uint64().toString(), true);
|
|
2201
2202
|
continue;
|
|
2202
2203
|
}
|
|
2203
2204
|
case 5: {
|
|
2204
2205
|
if (tag !== 42) {
|
|
2205
2206
|
break;
|
|
2206
2207
|
}
|
|
2207
|
-
message.
|
|
2208
|
+
message.formula = reader.string();
|
|
2208
2209
|
continue;
|
|
2209
2210
|
}
|
|
2210
2211
|
case 6: {
|
|
2211
|
-
if (tag !==
|
|
2212
|
+
if (tag !== 48) {
|
|
2212
2213
|
break;
|
|
2213
2214
|
}
|
|
2214
|
-
message.
|
|
2215
|
+
message.type = reader.int32();
|
|
2215
2216
|
continue;
|
|
2216
2217
|
}
|
|
2217
2218
|
case 7: {
|
|
2218
2219
|
if (tag !== 58) {
|
|
2219
2220
|
break;
|
|
2220
2221
|
}
|
|
2221
|
-
message.
|
|
2222
|
+
message.unit = reader.string();
|
|
2222
2223
|
continue;
|
|
2223
2224
|
}
|
|
2224
2225
|
case 8: {
|
|
2225
|
-
if (tag !==
|
|
2226
|
+
if (tag !== 66) {
|
|
2226
2227
|
break;
|
|
2227
2228
|
}
|
|
2228
|
-
message.
|
|
2229
|
+
message.description = reader.string();
|
|
2229
2230
|
continue;
|
|
2230
2231
|
}
|
|
2231
2232
|
case 9: {
|
|
2232
|
-
if (tag !==
|
|
2233
|
+
if (tag !== 74) {
|
|
2233
2234
|
break;
|
|
2234
2235
|
}
|
|
2235
|
-
message.
|
|
2236
|
+
message.activeStyle = exports.SystemIoStyle.decode(reader, reader.uint32());
|
|
2236
2237
|
continue;
|
|
2237
2238
|
}
|
|
2238
2239
|
case 10: {
|
|
2239
|
-
if (tag !==
|
|
2240
|
+
if (tag !== 82) {
|
|
2240
2241
|
break;
|
|
2241
2242
|
}
|
|
2242
|
-
message.
|
|
2243
|
+
message.inactiveStyle = exports.SystemIoStyle.decode(reader, reader.uint32());
|
|
2243
2244
|
continue;
|
|
2244
2245
|
}
|
|
2245
2246
|
case 11: {
|
|
2246
|
-
if (tag !==
|
|
2247
|
+
if (tag !== 88) {
|
|
2247
2248
|
break;
|
|
2248
2249
|
}
|
|
2249
|
-
message.
|
|
2250
|
+
message.active = reader.bool();
|
|
2250
2251
|
continue;
|
|
2251
2252
|
}
|
|
2252
2253
|
case 12: {
|
|
2253
|
-
if (tag !==
|
|
2254
|
+
if (tag !== 96) {
|
|
2254
2255
|
break;
|
|
2255
2256
|
}
|
|
2256
|
-
|
|
2257
|
-
if (entry12.value !== undefined) {
|
|
2258
|
-
message.unknown[entry12.key] = entry12.value;
|
|
2259
|
-
}
|
|
2257
|
+
message.graphable = reader.bool();
|
|
2260
2258
|
continue;
|
|
2261
2259
|
}
|
|
2262
2260
|
case 13: {
|
|
2263
2261
|
if (tag !== 104) {
|
|
2264
2262
|
break;
|
|
2265
2263
|
}
|
|
2266
|
-
message.
|
|
2264
|
+
message.sord = reader.uint32();
|
|
2267
2265
|
continue;
|
|
2268
2266
|
}
|
|
2269
2267
|
case 14: {
|
|
2270
2268
|
if (tag !== 114) {
|
|
2271
2269
|
break;
|
|
2272
2270
|
}
|
|
2273
|
-
message.
|
|
2271
|
+
message.hidden.push(reader.string());
|
|
2274
2272
|
continue;
|
|
2275
2273
|
}
|
|
2276
2274
|
case 15: {
|
|
2277
2275
|
if (tag !== 122) {
|
|
2278
2276
|
break;
|
|
2279
2277
|
}
|
|
2278
|
+
const entry15 = exports.SystemIo_UnknownEntry.decode(reader, reader.uint32());
|
|
2279
|
+
if (entry15.value !== undefined) {
|
|
2280
|
+
message.unknown[entry15.key] = entry15.value;
|
|
2281
|
+
}
|
|
2282
|
+
continue;
|
|
2283
|
+
}
|
|
2284
|
+
case 16: {
|
|
2285
|
+
if (tag !== 128) {
|
|
2286
|
+
break;
|
|
2287
|
+
}
|
|
2288
|
+
message.createdBy = long_1.default.fromString(reader.uint64().toString(), true);
|
|
2289
|
+
continue;
|
|
2290
|
+
}
|
|
2291
|
+
case 17: {
|
|
2292
|
+
if (tag !== 138) {
|
|
2293
|
+
break;
|
|
2294
|
+
}
|
|
2295
|
+
message.createdAt = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
|
|
2296
|
+
continue;
|
|
2297
|
+
}
|
|
2298
|
+
case 18: {
|
|
2299
|
+
if (tag !== 146) {
|
|
2300
|
+
break;
|
|
2301
|
+
}
|
|
2280
2302
|
message.updatedAt = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
|
|
2281
2303
|
continue;
|
|
2282
2304
|
}
|
|
@@ -2291,9 +2313,11 @@ exports.SystemIo = {
|
|
|
2291
2313
|
fromJSON(object) {
|
|
2292
2314
|
return {
|
|
2293
2315
|
id: isSet(object.id) ? long_1.default.fromValue(object.id) : long_1.default.UZERO,
|
|
2294
|
-
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
|
2295
2316
|
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
2296
|
-
|
|
2317
|
+
deviceId: isSet(object.device_id) ? long_1.default.fromValue(object.device_id) : undefined,
|
|
2318
|
+
organizationId: isSet(object.organization_id) ? long_1.default.fromValue(object.organization_id) : undefined,
|
|
2319
|
+
formula: isSet(object.formula) ? globalThis.String(object.formula) : "",
|
|
2320
|
+
type: isSet(object.type) ? systemIo_SystemIoTypeFromJSON(object.type) : 0,
|
|
2297
2321
|
unit: isSet(object.unit) ? globalThis.String(object.unit) : undefined,
|
|
2298
2322
|
description: isSet(object.description) ? globalThis.String(object.description) : undefined,
|
|
2299
2323
|
activeStyle: isSet(object.active_style) ? exports.SystemIoStyle.fromJSON(object.active_style) : undefined,
|
|
@@ -2319,14 +2343,20 @@ exports.SystemIo = {
|
|
|
2319
2343
|
if (!message.id.equals(long_1.default.UZERO)) {
|
|
2320
2344
|
obj.id = (message.id || long_1.default.UZERO).toString();
|
|
2321
2345
|
}
|
|
2322
|
-
if (message.key !== "") {
|
|
2323
|
-
obj.key = message.key;
|
|
2324
|
-
}
|
|
2325
2346
|
if (message.name !== "") {
|
|
2326
2347
|
obj.name = message.name;
|
|
2327
2348
|
}
|
|
2349
|
+
if (message.deviceId !== undefined) {
|
|
2350
|
+
obj.device_id = (message.deviceId || long_1.default.UZERO).toString();
|
|
2351
|
+
}
|
|
2352
|
+
if (message.organizationId !== undefined) {
|
|
2353
|
+
obj.organization_id = (message.organizationId || long_1.default.UZERO).toString();
|
|
2354
|
+
}
|
|
2355
|
+
if (message.formula !== "") {
|
|
2356
|
+
obj.formula = message.formula;
|
|
2357
|
+
}
|
|
2328
2358
|
if (message.type !== 0) {
|
|
2329
|
-
obj.type =
|
|
2359
|
+
obj.type = systemIo_SystemIoTypeToJSON(message.type);
|
|
2330
2360
|
}
|
|
2331
2361
|
if (message.unit !== undefined) {
|
|
2332
2362
|
obj.unit = message.unit;
|
|
@@ -2379,8 +2409,14 @@ exports.SystemIo = {
|
|
|
2379
2409
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
2380
2410
|
const message = createBaseSystemIo();
|
|
2381
2411
|
message.id = (object.id !== undefined && object.id !== null) ? long_1.default.fromValue(object.id) : long_1.default.UZERO;
|
|
2382
|
-
message.
|
|
2383
|
-
message.
|
|
2412
|
+
message.name = (_a = object.name) !== null && _a !== void 0 ? _a : "";
|
|
2413
|
+
message.deviceId = (object.deviceId !== undefined && object.deviceId !== null)
|
|
2414
|
+
? long_1.default.fromValue(object.deviceId)
|
|
2415
|
+
: undefined;
|
|
2416
|
+
message.organizationId = (object.organizationId !== undefined && object.organizationId !== null)
|
|
2417
|
+
? long_1.default.fromValue(object.organizationId)
|
|
2418
|
+
: undefined;
|
|
2419
|
+
message.formula = (_b = object.formula) !== null && _b !== void 0 ? _b : "";
|
|
2384
2420
|
message.type = (_c = object.type) !== null && _c !== void 0 ? _c : 0;
|
|
2385
2421
|
message.unit = (_d = object.unit) !== null && _d !== void 0 ? _d : undefined;
|
|
2386
2422
|
message.description = (_e = object.description) !== null && _e !== void 0 ? _e : undefined;
|
|
@@ -2423,7 +2459,7 @@ exports.SystemIo_UnknownEntry = {
|
|
|
2423
2459
|
},
|
|
2424
2460
|
decode(input, length) {
|
|
2425
2461
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2426
|
-
|
|
2462
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2427
2463
|
const message = createBaseSystemIo_UnknownEntry();
|
|
2428
2464
|
while (reader.pos < end) {
|
|
2429
2465
|
const tag = reader.uint32();
|
|
@@ -2477,162 +2513,107 @@ exports.SystemIo_UnknownEntry = {
|
|
|
2477
2513
|
return message;
|
|
2478
2514
|
},
|
|
2479
2515
|
};
|
|
2480
|
-
function
|
|
2516
|
+
function createBaseShownIo() {
|
|
2481
2517
|
return {
|
|
2482
|
-
id: long_1.default.UZERO,
|
|
2483
|
-
deviceId: long_1.default.UZERO,
|
|
2484
|
-
organizationId: long_1.default.UZERO,
|
|
2485
2518
|
name: "",
|
|
2519
|
+
style: undefined,
|
|
2486
2520
|
unit: undefined,
|
|
2487
|
-
type: 0,
|
|
2488
2521
|
description: undefined,
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
createdAt: undefined,
|
|
2494
|
-
updatedAt: undefined,
|
|
2522
|
+
value: "",
|
|
2523
|
+
active: false,
|
|
2524
|
+
graphable: false,
|
|
2525
|
+
sord: 0,
|
|
2495
2526
|
};
|
|
2496
2527
|
}
|
|
2497
|
-
exports.
|
|
2528
|
+
exports.ShownIo = {
|
|
2498
2529
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2499
|
-
if (!message.id.equals(long_1.default.UZERO)) {
|
|
2500
|
-
writer.uint32(8).uint64(message.id.toString());
|
|
2501
|
-
}
|
|
2502
|
-
if (!message.deviceId.equals(long_1.default.UZERO)) {
|
|
2503
|
-
writer.uint32(16).uint64(message.deviceId.toString());
|
|
2504
|
-
}
|
|
2505
|
-
if (!message.organizationId.equals(long_1.default.UZERO)) {
|
|
2506
|
-
writer.uint32(80).uint64(message.organizationId.toString());
|
|
2507
|
-
}
|
|
2508
2530
|
if (message.name !== "") {
|
|
2509
|
-
writer.uint32(
|
|
2531
|
+
writer.uint32(10).string(message.name);
|
|
2510
2532
|
}
|
|
2511
|
-
if (message.
|
|
2512
|
-
writer.uint32(
|
|
2533
|
+
if (message.style !== undefined) {
|
|
2534
|
+
exports.SystemIoStyle.encode(message.style, writer.uint32(18).fork()).join();
|
|
2513
2535
|
}
|
|
2514
|
-
if (message.
|
|
2515
|
-
writer.uint32(
|
|
2536
|
+
if (message.unit !== undefined) {
|
|
2537
|
+
writer.uint32(26).string(message.unit);
|
|
2516
2538
|
}
|
|
2517
2539
|
if (message.description !== undefined) {
|
|
2518
|
-
writer.uint32(
|
|
2519
|
-
}
|
|
2520
|
-
if (message.formula !== "") {
|
|
2521
|
-
writer.uint32(90).string(message.formula);
|
|
2522
|
-
}
|
|
2523
|
-
if (message.activeStyle !== undefined) {
|
|
2524
|
-
exports.SystemIoStyle.encode(message.activeStyle, writer.uint32(98).fork()).join();
|
|
2540
|
+
writer.uint32(34).string(message.description);
|
|
2525
2541
|
}
|
|
2526
|
-
if (message.
|
|
2527
|
-
|
|
2542
|
+
if (message.value !== "") {
|
|
2543
|
+
writer.uint32(42).string(message.value);
|
|
2528
2544
|
}
|
|
2529
|
-
if (message.
|
|
2530
|
-
writer.uint32(
|
|
2545
|
+
if (message.active !== false) {
|
|
2546
|
+
writer.uint32(48).bool(message.active);
|
|
2531
2547
|
}
|
|
2532
|
-
if (message.
|
|
2533
|
-
|
|
2548
|
+
if (message.graphable !== false) {
|
|
2549
|
+
writer.uint32(56).bool(message.graphable);
|
|
2534
2550
|
}
|
|
2535
|
-
if (message.
|
|
2536
|
-
|
|
2551
|
+
if (message.sord !== 0) {
|
|
2552
|
+
writer.uint32(64).uint32(message.sord);
|
|
2537
2553
|
}
|
|
2538
2554
|
return writer;
|
|
2539
2555
|
},
|
|
2540
2556
|
decode(input, length) {
|
|
2541
2557
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2542
|
-
|
|
2543
|
-
const message =
|
|
2558
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2559
|
+
const message = createBaseShownIo();
|
|
2544
2560
|
while (reader.pos < end) {
|
|
2545
2561
|
const tag = reader.uint32();
|
|
2546
2562
|
switch (tag >>> 3) {
|
|
2547
2563
|
case 1: {
|
|
2548
|
-
if (tag !==
|
|
2564
|
+
if (tag !== 10) {
|
|
2549
2565
|
break;
|
|
2550
2566
|
}
|
|
2551
|
-
message.
|
|
2567
|
+
message.name = reader.string();
|
|
2552
2568
|
continue;
|
|
2553
2569
|
}
|
|
2554
2570
|
case 2: {
|
|
2555
|
-
if (tag !==
|
|
2556
|
-
break;
|
|
2557
|
-
}
|
|
2558
|
-
message.deviceId = long_1.default.fromString(reader.uint64().toString(), true);
|
|
2559
|
-
continue;
|
|
2560
|
-
}
|
|
2561
|
-
case 10: {
|
|
2562
|
-
if (tag !== 80) {
|
|
2571
|
+
if (tag !== 18) {
|
|
2563
2572
|
break;
|
|
2564
2573
|
}
|
|
2565
|
-
message.
|
|
2574
|
+
message.style = exports.SystemIoStyle.decode(reader, reader.uint32());
|
|
2566
2575
|
continue;
|
|
2567
2576
|
}
|
|
2568
2577
|
case 3: {
|
|
2569
2578
|
if (tag !== 26) {
|
|
2570
2579
|
break;
|
|
2571
2580
|
}
|
|
2572
|
-
message.
|
|
2581
|
+
message.unit = reader.string();
|
|
2573
2582
|
continue;
|
|
2574
2583
|
}
|
|
2575
2584
|
case 4: {
|
|
2576
2585
|
if (tag !== 34) {
|
|
2577
2586
|
break;
|
|
2578
2587
|
}
|
|
2579
|
-
message.
|
|
2588
|
+
message.description = reader.string();
|
|
2580
2589
|
continue;
|
|
2581
2590
|
}
|
|
2582
2591
|
case 5: {
|
|
2583
|
-
if (tag !==
|
|
2592
|
+
if (tag !== 42) {
|
|
2584
2593
|
break;
|
|
2585
2594
|
}
|
|
2586
|
-
message.
|
|
2595
|
+
message.value = reader.string();
|
|
2587
2596
|
continue;
|
|
2588
2597
|
}
|
|
2589
2598
|
case 6: {
|
|
2590
|
-
if (tag !==
|
|
2591
|
-
break;
|
|
2592
|
-
}
|
|
2593
|
-
message.description = reader.string();
|
|
2594
|
-
continue;
|
|
2595
|
-
}
|
|
2596
|
-
case 11: {
|
|
2597
|
-
if (tag !== 90) {
|
|
2598
|
-
break;
|
|
2599
|
-
}
|
|
2600
|
-
message.formula = reader.string();
|
|
2601
|
-
continue;
|
|
2602
|
-
}
|
|
2603
|
-
case 12: {
|
|
2604
|
-
if (tag !== 98) {
|
|
2605
|
-
break;
|
|
2606
|
-
}
|
|
2607
|
-
message.activeStyle = exports.SystemIoStyle.decode(reader, reader.uint32());
|
|
2608
|
-
continue;
|
|
2609
|
-
}
|
|
2610
|
-
case 13: {
|
|
2611
|
-
if (tag !== 106) {
|
|
2599
|
+
if (tag !== 48) {
|
|
2612
2600
|
break;
|
|
2613
2601
|
}
|
|
2614
|
-
message.
|
|
2602
|
+
message.active = reader.bool();
|
|
2615
2603
|
continue;
|
|
2616
2604
|
}
|
|
2617
2605
|
case 7: {
|
|
2618
2606
|
if (tag !== 56) {
|
|
2619
2607
|
break;
|
|
2620
2608
|
}
|
|
2621
|
-
message.
|
|
2609
|
+
message.graphable = reader.bool();
|
|
2622
2610
|
continue;
|
|
2623
2611
|
}
|
|
2624
2612
|
case 8: {
|
|
2625
|
-
if (tag !==
|
|
2626
|
-
break;
|
|
2627
|
-
}
|
|
2628
|
-
message.createdAt = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
|
|
2629
|
-
continue;
|
|
2630
|
-
}
|
|
2631
|
-
case 9: {
|
|
2632
|
-
if (tag !== 74) {
|
|
2613
|
+
if (tag !== 64) {
|
|
2633
2614
|
break;
|
|
2634
2615
|
}
|
|
2635
|
-
message.
|
|
2616
|
+
message.sord = reader.uint32();
|
|
2636
2617
|
continue;
|
|
2637
2618
|
}
|
|
2638
2619
|
}
|
|
@@ -2645,160 +2626,166 @@ exports.DeviceIo = {
|
|
|
2645
2626
|
},
|
|
2646
2627
|
fromJSON(object) {
|
|
2647
2628
|
return {
|
|
2648
|
-
id: isSet(object.id) ? long_1.default.fromValue(object.id) : long_1.default.UZERO,
|
|
2649
|
-
deviceId: isSet(object.device_id) ? long_1.default.fromValue(object.device_id) : long_1.default.UZERO,
|
|
2650
|
-
organizationId: isSet(object.organization_id) ? long_1.default.fromValue(object.organization_id) : long_1.default.UZERO,
|
|
2651
2629
|
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
2630
|
+
style: isSet(object.style) ? exports.SystemIoStyle.fromJSON(object.style) : undefined,
|
|
2652
2631
|
unit: isSet(object.unit) ? globalThis.String(object.unit) : undefined,
|
|
2653
|
-
type: isSet(object.type) ? systemIoTypeFromJSON(object.type) : 0,
|
|
2654
2632
|
description: isSet(object.description) ? globalThis.String(object.description) : undefined,
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
createdAt: isSet(object.created_at) ? fromJsonTimestamp(object.created_at) : undefined,
|
|
2660
|
-
updatedAt: isSet(object.updated_at) ? fromJsonTimestamp(object.updated_at) : undefined,
|
|
2633
|
+
value: isSet(object.value) ? globalThis.String(object.value) : "",
|
|
2634
|
+
active: isSet(object.active) ? globalThis.Boolean(object.active) : false,
|
|
2635
|
+
graphable: isSet(object.graphable) ? globalThis.Boolean(object.graphable) : false,
|
|
2636
|
+
sord: isSet(object.sord) ? globalThis.Number(object.sord) : 0,
|
|
2661
2637
|
};
|
|
2662
2638
|
},
|
|
2663
2639
|
toJSON(message) {
|
|
2664
2640
|
const obj = {};
|
|
2665
|
-
if (!message.id.equals(long_1.default.UZERO)) {
|
|
2666
|
-
obj.id = (message.id || long_1.default.UZERO).toString();
|
|
2667
|
-
}
|
|
2668
|
-
if (!message.deviceId.equals(long_1.default.UZERO)) {
|
|
2669
|
-
obj.device_id = (message.deviceId || long_1.default.UZERO).toString();
|
|
2670
|
-
}
|
|
2671
|
-
if (!message.organizationId.equals(long_1.default.UZERO)) {
|
|
2672
|
-
obj.organization_id = (message.organizationId || long_1.default.UZERO).toString();
|
|
2673
|
-
}
|
|
2674
2641
|
if (message.name !== "") {
|
|
2675
2642
|
obj.name = message.name;
|
|
2676
2643
|
}
|
|
2644
|
+
if (message.style !== undefined) {
|
|
2645
|
+
obj.style = exports.SystemIoStyle.toJSON(message.style);
|
|
2646
|
+
}
|
|
2677
2647
|
if (message.unit !== undefined) {
|
|
2678
2648
|
obj.unit = message.unit;
|
|
2679
2649
|
}
|
|
2680
|
-
if (message.type !== 0) {
|
|
2681
|
-
obj.type = systemIoTypeToJSON(message.type);
|
|
2682
|
-
}
|
|
2683
2650
|
if (message.description !== undefined) {
|
|
2684
2651
|
obj.description = message.description;
|
|
2685
2652
|
}
|
|
2686
|
-
if (message.
|
|
2687
|
-
obj.
|
|
2688
|
-
}
|
|
2689
|
-
if (message.activeStyle !== undefined) {
|
|
2690
|
-
obj.active_style = exports.SystemIoStyle.toJSON(message.activeStyle);
|
|
2691
|
-
}
|
|
2692
|
-
if (message.inactiveStyle !== undefined) {
|
|
2693
|
-
obj.inactive_style = exports.SystemIoStyle.toJSON(message.inactiveStyle);
|
|
2653
|
+
if (message.value !== "") {
|
|
2654
|
+
obj.value = message.value;
|
|
2694
2655
|
}
|
|
2695
|
-
if (message.
|
|
2696
|
-
obj.
|
|
2656
|
+
if (message.active !== false) {
|
|
2657
|
+
obj.active = message.active;
|
|
2697
2658
|
}
|
|
2698
|
-
if (message.
|
|
2699
|
-
obj.
|
|
2659
|
+
if (message.graphable !== false) {
|
|
2660
|
+
obj.graphable = message.graphable;
|
|
2700
2661
|
}
|
|
2701
|
-
if (message.
|
|
2702
|
-
obj.
|
|
2662
|
+
if (message.sord !== 0) {
|
|
2663
|
+
obj.sord = Math.round(message.sord);
|
|
2703
2664
|
}
|
|
2704
2665
|
return obj;
|
|
2705
2666
|
},
|
|
2706
2667
|
create(base) {
|
|
2707
|
-
return exports.
|
|
2668
|
+
return exports.ShownIo.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
2708
2669
|
},
|
|
2709
2670
|
fromPartial(object) {
|
|
2710
2671
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
2711
|
-
const message =
|
|
2712
|
-
message.id = (object.id !== undefined && object.id !== null) ? long_1.default.fromValue(object.id) : long_1.default.UZERO;
|
|
2713
|
-
message.deviceId = (object.deviceId !== undefined && object.deviceId !== null)
|
|
2714
|
-
? long_1.default.fromValue(object.deviceId)
|
|
2715
|
-
: long_1.default.UZERO;
|
|
2716
|
-
message.organizationId = (object.organizationId !== undefined && object.organizationId !== null)
|
|
2717
|
-
? long_1.default.fromValue(object.organizationId)
|
|
2718
|
-
: long_1.default.UZERO;
|
|
2672
|
+
const message = createBaseShownIo();
|
|
2719
2673
|
message.name = (_a = object.name) !== null && _a !== void 0 ? _a : "";
|
|
2720
|
-
message.
|
|
2721
|
-
|
|
2722
|
-
message.description = (_d = object.description) !== null && _d !== void 0 ? _d : undefined;
|
|
2723
|
-
message.formula = (_e = object.formula) !== null && _e !== void 0 ? _e : "";
|
|
2724
|
-
message.activeStyle = (object.activeStyle !== undefined && object.activeStyle !== null)
|
|
2725
|
-
? exports.SystemIoStyle.fromPartial(object.activeStyle)
|
|
2726
|
-
: undefined;
|
|
2727
|
-
message.inactiveStyle = (object.inactiveStyle !== undefined && object.inactiveStyle !== null)
|
|
2728
|
-
? exports.SystemIoStyle.fromPartial(object.inactiveStyle)
|
|
2729
|
-
: undefined;
|
|
2730
|
-
message.createdBy = (object.createdBy !== undefined && object.createdBy !== null)
|
|
2731
|
-
? long_1.default.fromValue(object.createdBy)
|
|
2674
|
+
message.style = (object.style !== undefined && object.style !== null)
|
|
2675
|
+
? exports.SystemIoStyle.fromPartial(object.style)
|
|
2732
2676
|
: undefined;
|
|
2733
|
-
message.
|
|
2734
|
-
message.
|
|
2677
|
+
message.unit = (_b = object.unit) !== null && _b !== void 0 ? _b : undefined;
|
|
2678
|
+
message.description = (_c = object.description) !== null && _c !== void 0 ? _c : undefined;
|
|
2679
|
+
message.value = (_d = object.value) !== null && _d !== void 0 ? _d : "";
|
|
2680
|
+
message.active = (_e = object.active) !== null && _e !== void 0 ? _e : false;
|
|
2681
|
+
message.graphable = (_f = object.graphable) !== null && _f !== void 0 ? _f : false;
|
|
2682
|
+
message.sord = (_g = object.sord) !== null && _g !== void 0 ? _g : 0;
|
|
2735
2683
|
return message;
|
|
2736
2684
|
},
|
|
2737
2685
|
};
|
|
2738
|
-
function
|
|
2739
|
-
return {
|
|
2686
|
+
function createBaseConfig() {
|
|
2687
|
+
return {
|
|
2688
|
+
id: 0,
|
|
2689
|
+
organizationId: long_1.default.UZERO,
|
|
2690
|
+
createdBy: undefined,
|
|
2691
|
+
updatedBy: undefined,
|
|
2692
|
+
key: "",
|
|
2693
|
+
value: "",
|
|
2694
|
+
createdAt: undefined,
|
|
2695
|
+
updatedAt: undefined,
|
|
2696
|
+
};
|
|
2740
2697
|
}
|
|
2741
|
-
exports.
|
|
2698
|
+
exports.Config = {
|
|
2742
2699
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2743
|
-
if (message.
|
|
2744
|
-
writer.uint32(
|
|
2700
|
+
if (message.id !== 0) {
|
|
2701
|
+
writer.uint32(8).uint32(message.id);
|
|
2745
2702
|
}
|
|
2746
|
-
if (message.
|
|
2747
|
-
|
|
2703
|
+
if (!message.organizationId.equals(long_1.default.UZERO)) {
|
|
2704
|
+
writer.uint32(16).uint64(message.organizationId.toString());
|
|
2748
2705
|
}
|
|
2749
|
-
if (message.
|
|
2750
|
-
writer.uint32(
|
|
2706
|
+
if (message.createdBy !== undefined) {
|
|
2707
|
+
writer.uint32(24).uint64(message.createdBy.toString());
|
|
2751
2708
|
}
|
|
2752
|
-
if (message.
|
|
2753
|
-
writer.uint32(
|
|
2709
|
+
if (message.updatedBy !== undefined) {
|
|
2710
|
+
writer.uint32(32).uint64(message.updatedBy.toString());
|
|
2711
|
+
}
|
|
2712
|
+
if (message.key !== "") {
|
|
2713
|
+
writer.uint32(42).string(message.key);
|
|
2754
2714
|
}
|
|
2755
2715
|
if (message.value !== "") {
|
|
2756
|
-
writer.uint32(
|
|
2716
|
+
writer.uint32(50).string(message.value);
|
|
2717
|
+
}
|
|
2718
|
+
if (message.createdAt !== undefined) {
|
|
2719
|
+
timestamp_1.Timestamp.encode(toTimestamp(message.createdAt), writer.uint32(58).fork()).join();
|
|
2720
|
+
}
|
|
2721
|
+
if (message.updatedAt !== undefined) {
|
|
2722
|
+
timestamp_1.Timestamp.encode(toTimestamp(message.updatedAt), writer.uint32(66).fork()).join();
|
|
2757
2723
|
}
|
|
2758
2724
|
return writer;
|
|
2759
2725
|
},
|
|
2760
2726
|
decode(input, length) {
|
|
2761
2727
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2762
|
-
|
|
2763
|
-
const message =
|
|
2728
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2729
|
+
const message = createBaseConfig();
|
|
2764
2730
|
while (reader.pos < end) {
|
|
2765
2731
|
const tag = reader.uint32();
|
|
2766
2732
|
switch (tag >>> 3) {
|
|
2767
2733
|
case 1: {
|
|
2768
|
-
if (tag !==
|
|
2734
|
+
if (tag !== 8) {
|
|
2769
2735
|
break;
|
|
2770
2736
|
}
|
|
2771
|
-
message.
|
|
2737
|
+
message.id = reader.uint32();
|
|
2772
2738
|
continue;
|
|
2773
2739
|
}
|
|
2774
2740
|
case 2: {
|
|
2775
|
-
if (tag !==
|
|
2741
|
+
if (tag !== 16) {
|
|
2776
2742
|
break;
|
|
2777
2743
|
}
|
|
2778
|
-
message.
|
|
2744
|
+
message.organizationId = long_1.default.fromString(reader.uint64().toString(), true);
|
|
2779
2745
|
continue;
|
|
2780
2746
|
}
|
|
2781
2747
|
case 3: {
|
|
2782
|
-
if (tag !==
|
|
2748
|
+
if (tag !== 24) {
|
|
2783
2749
|
break;
|
|
2784
2750
|
}
|
|
2785
|
-
message.
|
|
2751
|
+
message.createdBy = long_1.default.fromString(reader.uint64().toString(), true);
|
|
2786
2752
|
continue;
|
|
2787
2753
|
}
|
|
2788
2754
|
case 4: {
|
|
2789
|
-
if (tag !==
|
|
2755
|
+
if (tag !== 32) {
|
|
2790
2756
|
break;
|
|
2791
2757
|
}
|
|
2792
|
-
message.
|
|
2758
|
+
message.updatedBy = long_1.default.fromString(reader.uint64().toString(), true);
|
|
2793
2759
|
continue;
|
|
2794
2760
|
}
|
|
2795
2761
|
case 5: {
|
|
2796
2762
|
if (tag !== 42) {
|
|
2797
2763
|
break;
|
|
2798
2764
|
}
|
|
2765
|
+
message.key = reader.string();
|
|
2766
|
+
continue;
|
|
2767
|
+
}
|
|
2768
|
+
case 6: {
|
|
2769
|
+
if (tag !== 50) {
|
|
2770
|
+
break;
|
|
2771
|
+
}
|
|
2799
2772
|
message.value = reader.string();
|
|
2800
2773
|
continue;
|
|
2801
2774
|
}
|
|
2775
|
+
case 7: {
|
|
2776
|
+
if (tag !== 58) {
|
|
2777
|
+
break;
|
|
2778
|
+
}
|
|
2779
|
+
message.createdAt = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
|
|
2780
|
+
continue;
|
|
2781
|
+
}
|
|
2782
|
+
case 8: {
|
|
2783
|
+
if (tag !== 66) {
|
|
2784
|
+
break;
|
|
2785
|
+
}
|
|
2786
|
+
message.updatedAt = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
|
|
2787
|
+
continue;
|
|
2788
|
+
}
|
|
2802
2789
|
}
|
|
2803
2790
|
if ((tag & 7) === 4 || tag === 0) {
|
|
2804
2791
|
break;
|
|
@@ -2809,45 +2796,64 @@ exports.ShownIo = {
|
|
|
2809
2796
|
},
|
|
2810
2797
|
fromJSON(object) {
|
|
2811
2798
|
return {
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
|
|
2799
|
+
id: isSet(object.id) ? globalThis.Number(object.id) : 0,
|
|
2800
|
+
organizationId: isSet(object.organization_id) ? long_1.default.fromValue(object.organization_id) : long_1.default.UZERO,
|
|
2801
|
+
createdBy: isSet(object.created_by) ? long_1.default.fromValue(object.created_by) : undefined,
|
|
2802
|
+
updatedBy: isSet(object.updated_by) ? long_1.default.fromValue(object.updated_by) : undefined,
|
|
2803
|
+
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
|
2816
2804
|
value: isSet(object.value) ? globalThis.String(object.value) : "",
|
|
2805
|
+
createdAt: isSet(object.created_at) ? fromJsonTimestamp(object.created_at) : undefined,
|
|
2806
|
+
updatedAt: isSet(object.updated_at) ? fromJsonTimestamp(object.updated_at) : undefined,
|
|
2817
2807
|
};
|
|
2818
2808
|
},
|
|
2819
2809
|
toJSON(message) {
|
|
2820
2810
|
const obj = {};
|
|
2821
|
-
if (message.
|
|
2822
|
-
obj.
|
|
2811
|
+
if (message.id !== 0) {
|
|
2812
|
+
obj.id = Math.round(message.id);
|
|
2823
2813
|
}
|
|
2824
|
-
if (message.
|
|
2825
|
-
obj.
|
|
2814
|
+
if (!message.organizationId.equals(long_1.default.UZERO)) {
|
|
2815
|
+
obj.organization_id = (message.organizationId || long_1.default.UZERO).toString();
|
|
2826
2816
|
}
|
|
2827
|
-
if (message.
|
|
2828
|
-
obj.
|
|
2817
|
+
if (message.createdBy !== undefined) {
|
|
2818
|
+
obj.created_by = (message.createdBy || long_1.default.UZERO).toString();
|
|
2829
2819
|
}
|
|
2830
|
-
if (message.
|
|
2831
|
-
obj.
|
|
2820
|
+
if (message.updatedBy !== undefined) {
|
|
2821
|
+
obj.updated_by = (message.updatedBy || long_1.default.UZERO).toString();
|
|
2822
|
+
}
|
|
2823
|
+
if (message.key !== "") {
|
|
2824
|
+
obj.key = message.key;
|
|
2832
2825
|
}
|
|
2833
2826
|
if (message.value !== "") {
|
|
2834
2827
|
obj.value = message.value;
|
|
2835
2828
|
}
|
|
2829
|
+
if (message.createdAt !== undefined) {
|
|
2830
|
+
obj.created_at = message.createdAt.toISOString();
|
|
2831
|
+
}
|
|
2832
|
+
if (message.updatedAt !== undefined) {
|
|
2833
|
+
obj.updated_at = message.updatedAt.toISOString();
|
|
2834
|
+
}
|
|
2836
2835
|
return obj;
|
|
2837
2836
|
},
|
|
2838
2837
|
create(base) {
|
|
2839
|
-
return exports.
|
|
2838
|
+
return exports.Config.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
2840
2839
|
},
|
|
2841
2840
|
fromPartial(object) {
|
|
2842
|
-
var _a, _b, _c, _d;
|
|
2843
|
-
const message =
|
|
2844
|
-
message.
|
|
2845
|
-
message.
|
|
2846
|
-
?
|
|
2841
|
+
var _a, _b, _c, _d, _e;
|
|
2842
|
+
const message = createBaseConfig();
|
|
2843
|
+
message.id = (_a = object.id) !== null && _a !== void 0 ? _a : 0;
|
|
2844
|
+
message.organizationId = (object.organizationId !== undefined && object.organizationId !== null)
|
|
2845
|
+
? long_1.default.fromValue(object.organizationId)
|
|
2846
|
+
: long_1.default.UZERO;
|
|
2847
|
+
message.createdBy = (object.createdBy !== undefined && object.createdBy !== null)
|
|
2848
|
+
? long_1.default.fromValue(object.createdBy)
|
|
2847
2849
|
: undefined;
|
|
2848
|
-
message.
|
|
2849
|
-
|
|
2850
|
-
|
|
2850
|
+
message.updatedBy = (object.updatedBy !== undefined && object.updatedBy !== null)
|
|
2851
|
+
? long_1.default.fromValue(object.updatedBy)
|
|
2852
|
+
: undefined;
|
|
2853
|
+
message.key = (_b = object.key) !== null && _b !== void 0 ? _b : "";
|
|
2854
|
+
message.value = (_c = object.value) !== null && _c !== void 0 ? _c : "";
|
|
2855
|
+
message.createdAt = (_d = object.createdAt) !== null && _d !== void 0 ? _d : undefined;
|
|
2856
|
+
message.updatedAt = (_e = object.updatedAt) !== null && _e !== void 0 ? _e : undefined;
|
|
2851
2857
|
return message;
|
|
2852
2858
|
},
|
|
2853
2859
|
};
|