@fatehan/tsrp 1.0.45 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api.d.ts +10 -0
- package/dist/api.d.ts.map +1 -0
- package/dist/api.js +51 -0
- package/dist/api.test.d.ts +2 -0
- package/dist/api.test.d.ts.map +1 -0
- package/dist/api.test.js +20 -0
- package/dist/fatehan/apis/client.d.ts +213 -266
- package/dist/fatehan/apis/client.d.ts.map +1 -1
- package/dist/fatehan/apis/client.js +2277 -3223
- package/dist/fatehan/areas/area.d.ts +14 -0
- package/dist/fatehan/areas/area.d.ts.map +1 -1
- package/dist/fatehan/areas/area.js +212 -1
- package/dist/fatehan/devices/devices.d.ts +278 -0
- package/dist/fatehan/devices/devices.d.ts.map +1 -0
- package/dist/fatehan/devices/devices.js +3564 -0
- package/dist/fatehan/financial/financial.d.ts +45 -0
- package/dist/fatehan/financial/financial.d.ts.map +1 -0
- package/dist/fatehan/financial/financial.js +385 -0
- package/dist/fatehan/identities/identities.d.ts +154 -0
- package/dist/fatehan/identities/identities.d.ts.map +1 -0
- package/dist/fatehan/identities/identities.js +2068 -0
- package/dist/fatehan/models/models.d.ts +14 -80
- package/dist/fatehan/models/models.d.ts.map +1 -1
- package/dist/fatehan/models/models.js +478 -1401
- package/dist/fatehan/notifies/notify.d.ts +27 -0
- package/dist/fatehan/notifies/notify.d.ts.map +1 -1
- package/dist/fatehan/notifies/notify.js +419 -7
- package/dist/fatehan/reports/report.d.ts +1 -1
- package/dist/fatehan/reports/report.d.ts.map +1 -1
- package/dist/fatehan/reports/report.js +6 -6
- package/dist/fatehan/services/api.d.ts +60 -0
- package/dist/fatehan/services/api.d.ts.map +1 -0
- package/dist/fatehan/services/api.js +529 -0
- package/dist/fatehan/services/repositories.d.ts +49 -0
- package/dist/fatehan/services/repositories.d.ts.map +1 -0
- package/dist/fatehan/services/repositories.js +358 -0
- package/dist/index.test.js +3 -4
- package/dist/report.d.ts +24 -0
- package/dist/report.d.ts.map +1 -0
- package/dist/report.js +248 -0
- package/dist/report.test.d.ts +2 -0
- package/dist/report.test.d.ts.map +1 -0
- package/dist/report.test.js +382 -0
- package/dist/store/system.io.d.ts +1 -1
- package/dist/store/system.io.d.ts.map +1 -1
- package/dist/system.io.d.ts +1 -1
- package/dist/system.io.d.ts.map +1 -1
- package/dist/system.io.js +10 -14
- package/package.json +4 -4
|
@@ -50,6 +50,9 @@ export interface UserDeviceAlert {
|
|
|
50
50
|
condition: {
|
|
51
51
|
[key: number]: UserDeviceAlert_ConditionList;
|
|
52
52
|
};
|
|
53
|
+
timing: {
|
|
54
|
+
[key: number]: UserDeviceAlert_ConditionList;
|
|
55
|
+
};
|
|
53
56
|
status: boolean;
|
|
54
57
|
format: string;
|
|
55
58
|
alert: Alert;
|
|
@@ -72,6 +75,10 @@ export interface UserDeviceAlert_ConditionEntry {
|
|
|
72
75
|
key: number;
|
|
73
76
|
value?: UserDeviceAlert_ConditionList | undefined;
|
|
74
77
|
}
|
|
78
|
+
export interface UserDeviceAlert_TimingEntry {
|
|
79
|
+
key: number;
|
|
80
|
+
value?: UserDeviceAlert_ConditionList | undefined;
|
|
81
|
+
}
|
|
75
82
|
export interface UserDeviceAlertList {
|
|
76
83
|
list: UserDeviceAlert[];
|
|
77
84
|
}
|
|
@@ -120,17 +127,37 @@ export interface Notification_DataEntry {
|
|
|
120
127
|
key: string;
|
|
121
128
|
value: string;
|
|
122
129
|
}
|
|
130
|
+
export interface AlertModel {
|
|
131
|
+
id: Long;
|
|
132
|
+
organizationId: Long;
|
|
133
|
+
alertId: Long;
|
|
134
|
+
alertType: Long;
|
|
135
|
+
unit?: string | undefined;
|
|
136
|
+
value?: Long | undefined;
|
|
137
|
+
message: string;
|
|
138
|
+
name: string;
|
|
139
|
+
minValue?: string | undefined;
|
|
140
|
+
maxValue?: string | undefined;
|
|
141
|
+
picture?: string | undefined;
|
|
142
|
+
createdBy?: Long | undefined;
|
|
143
|
+
updatedBy?: Long | undefined;
|
|
144
|
+
createdAt?: Date | undefined;
|
|
145
|
+
updatedAt?: Date | undefined;
|
|
146
|
+
objectType?: string | undefined;
|
|
147
|
+
}
|
|
123
148
|
export declare const NotifyJob: MessageFns<NotifyJob>;
|
|
124
149
|
export declare const UserDeviceAlert: MessageFns<UserDeviceAlert>;
|
|
125
150
|
export declare const UserDeviceAlert_Condition: MessageFns<UserDeviceAlert_Condition>;
|
|
126
151
|
export declare const UserDeviceAlert_ConditionList: MessageFns<UserDeviceAlert_ConditionList>;
|
|
127
152
|
export declare const UserDeviceAlert_ConditionEntry: MessageFns<UserDeviceAlert_ConditionEntry>;
|
|
153
|
+
export declare const UserDeviceAlert_TimingEntry: MessageFns<UserDeviceAlert_TimingEntry>;
|
|
128
154
|
export declare const UserDeviceAlertList: MessageFns<UserDeviceAlertList>;
|
|
129
155
|
export declare const Receiver: MessageFns<Receiver>;
|
|
130
156
|
export declare const Notify: MessageFns<Notify>;
|
|
131
157
|
export declare const Notify_DataEntry: MessageFns<Notify_DataEntry>;
|
|
132
158
|
export declare const Notification: MessageFns<Notification>;
|
|
133
159
|
export declare const Notification_DataEntry: MessageFns<Notification_DataEntry>;
|
|
160
|
+
export declare const AlertModel: MessageFns<AlertModel>;
|
|
134
161
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
135
162
|
export type DeepPartial<T> = T extends Builtin ? T : T extends Long ? string | number | Long : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
136
163
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notify.d.ts","sourceRoot":"","sources":["../../../src/fatehan/notifies/notify.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,IAAI,MAAM,MAAM,CAAC;AAEx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AC,CAAC,EAAE,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC;CAC/D"}
|
|
@@ -8,7 +8,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.Notification_DataEntry = exports.Notification = exports.Notify_DataEntry = exports.Notify = exports.Receiver = exports.UserDeviceAlertList = exports.UserDeviceAlert_ConditionEntry = exports.UserDeviceAlert_ConditionList = exports.UserDeviceAlert_Condition = exports.UserDeviceAlert = exports.NotifyJob = exports.NotifyJob_Priority = exports.ObjectType = exports.Via = exports.protobufPackage = void 0;
|
|
11
|
+
exports.AlertModel = exports.Notification_DataEntry = exports.Notification = exports.Notify_DataEntry = exports.Notify = exports.Receiver = exports.UserDeviceAlertList = exports.UserDeviceAlert_TimingEntry = exports.UserDeviceAlert_ConditionEntry = exports.UserDeviceAlert_ConditionList = exports.UserDeviceAlert_Condition = exports.UserDeviceAlert = exports.NotifyJob = exports.NotifyJob_Priority = exports.ObjectType = exports.Via = exports.protobufPackage = void 0;
|
|
12
12
|
exports.viaFromJSON = viaFromJSON;
|
|
13
13
|
exports.viaToJSON = viaToJSON;
|
|
14
14
|
exports.objectTypeFromJSON = objectTypeFromJSON;
|
|
@@ -366,6 +366,7 @@ function createBaseUserDeviceAlert() {
|
|
|
366
366
|
organizationId: long_1.default.UZERO,
|
|
367
367
|
alertId: long_1.default.UZERO,
|
|
368
368
|
condition: {},
|
|
369
|
+
timing: {},
|
|
369
370
|
status: false,
|
|
370
371
|
format: "",
|
|
371
372
|
alert: 0,
|
|
@@ -394,6 +395,9 @@ exports.UserDeviceAlert = {
|
|
|
394
395
|
Object.entries(message.condition).forEach(([key, value]) => {
|
|
395
396
|
exports.UserDeviceAlert_ConditionEntry.encode({ key: key, value }, writer.uint32(50).fork()).join();
|
|
396
397
|
});
|
|
398
|
+
Object.entries(message.timing).forEach(([key, value]) => {
|
|
399
|
+
exports.UserDeviceAlert_TimingEntry.encode({ key: key, value }, writer.uint32(114).fork()).join();
|
|
400
|
+
});
|
|
397
401
|
if (message.status !== false) {
|
|
398
402
|
writer.uint32(56).bool(message.status);
|
|
399
403
|
}
|
|
@@ -466,6 +470,16 @@ exports.UserDeviceAlert = {
|
|
|
466
470
|
}
|
|
467
471
|
continue;
|
|
468
472
|
}
|
|
473
|
+
case 14: {
|
|
474
|
+
if (tag !== 114) {
|
|
475
|
+
break;
|
|
476
|
+
}
|
|
477
|
+
const entry14 = exports.UserDeviceAlert_TimingEntry.decode(reader, reader.uint32());
|
|
478
|
+
if (entry14.value !== undefined) {
|
|
479
|
+
message.timing[entry14.key] = entry14.value;
|
|
480
|
+
}
|
|
481
|
+
continue;
|
|
482
|
+
}
|
|
469
483
|
case 7: {
|
|
470
484
|
if (tag !== 56) {
|
|
471
485
|
break;
|
|
@@ -529,6 +543,12 @@ exports.UserDeviceAlert = {
|
|
|
529
543
|
return acc;
|
|
530
544
|
}, {})
|
|
531
545
|
: {},
|
|
546
|
+
timing: isObject(object.timing)
|
|
547
|
+
? Object.entries(object.timing).reduce((acc, [key, value]) => {
|
|
548
|
+
acc[globalThis.Number(key)] = exports.UserDeviceAlert_ConditionList.fromJSON(value);
|
|
549
|
+
return acc;
|
|
550
|
+
}, {})
|
|
551
|
+
: {},
|
|
532
552
|
status: isSet(object.status) ? globalThis.Boolean(object.status) : false,
|
|
533
553
|
format: isSet(object.format) ? globalThis.String(object.format) : "",
|
|
534
554
|
alert: isSet(object.alert) ? (0, dataModel_1.alertFromJSON)(object.alert) : 0,
|
|
@@ -563,6 +583,15 @@ exports.UserDeviceAlert = {
|
|
|
563
583
|
});
|
|
564
584
|
}
|
|
565
585
|
}
|
|
586
|
+
if (message.timing) {
|
|
587
|
+
const entries = Object.entries(message.timing);
|
|
588
|
+
if (entries.length > 0) {
|
|
589
|
+
obj.timing = {};
|
|
590
|
+
entries.forEach(([k, v]) => {
|
|
591
|
+
obj.timing[k] = exports.UserDeviceAlert_ConditionList.toJSON(v);
|
|
592
|
+
});
|
|
593
|
+
}
|
|
594
|
+
}
|
|
566
595
|
if (message.status !== false) {
|
|
567
596
|
obj.status = message.status;
|
|
568
597
|
}
|
|
@@ -587,7 +616,7 @@ exports.UserDeviceAlert = {
|
|
|
587
616
|
return exports.UserDeviceAlert.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
588
617
|
},
|
|
589
618
|
fromPartial(object) {
|
|
590
|
-
var _a, _b, _c, _d, _e, _f;
|
|
619
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
591
620
|
const message = createBaseUserDeviceAlert();
|
|
592
621
|
message.id = (object.id !== undefined && object.id !== null) ? long_1.default.fromValue(object.id) : long_1.default.UZERO;
|
|
593
622
|
message.userId = (object.userId !== undefined && object.userId !== null)
|
|
@@ -608,11 +637,17 @@ exports.UserDeviceAlert = {
|
|
|
608
637
|
}
|
|
609
638
|
return acc;
|
|
610
639
|
}, {});
|
|
611
|
-
message.
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
640
|
+
message.timing = Object.entries((_b = object.timing) !== null && _b !== void 0 ? _b : {}).reduce((acc, [key, value]) => {
|
|
641
|
+
if (value !== undefined) {
|
|
642
|
+
acc[globalThis.Number(key)] = exports.UserDeviceAlert_ConditionList.fromPartial(value);
|
|
643
|
+
}
|
|
644
|
+
return acc;
|
|
645
|
+
}, {});
|
|
646
|
+
message.status = (_c = object.status) !== null && _c !== void 0 ? _c : false;
|
|
647
|
+
message.format = (_d = object.format) !== null && _d !== void 0 ? _d : "";
|
|
648
|
+
message.alert = (_e = object.alert) !== null && _e !== void 0 ? _e : 0;
|
|
649
|
+
message.unit = (_f = object.unit) !== null && _f !== void 0 ? _f : undefined;
|
|
650
|
+
message.objectType = (_g = object.objectType) !== null && _g !== void 0 ? _g : undefined;
|
|
616
651
|
message.objectId = (object.objectId !== undefined && object.objectId !== null)
|
|
617
652
|
? long_1.default.fromValue(object.objectId)
|
|
618
653
|
: undefined;
|
|
@@ -888,6 +923,77 @@ exports.UserDeviceAlert_ConditionEntry = {
|
|
|
888
923
|
return message;
|
|
889
924
|
},
|
|
890
925
|
};
|
|
926
|
+
function createBaseUserDeviceAlert_TimingEntry() {
|
|
927
|
+
return { key: 0, value: undefined };
|
|
928
|
+
}
|
|
929
|
+
exports.UserDeviceAlert_TimingEntry = {
|
|
930
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
931
|
+
if (message.key !== 0) {
|
|
932
|
+
writer.uint32(8).uint32(message.key);
|
|
933
|
+
}
|
|
934
|
+
if (message.value !== undefined) {
|
|
935
|
+
exports.UserDeviceAlert_ConditionList.encode(message.value, writer.uint32(18).fork()).join();
|
|
936
|
+
}
|
|
937
|
+
return writer;
|
|
938
|
+
},
|
|
939
|
+
decode(input, length) {
|
|
940
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
941
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
942
|
+
const message = createBaseUserDeviceAlert_TimingEntry();
|
|
943
|
+
while (reader.pos < end) {
|
|
944
|
+
const tag = reader.uint32();
|
|
945
|
+
switch (tag >>> 3) {
|
|
946
|
+
case 1: {
|
|
947
|
+
if (tag !== 8) {
|
|
948
|
+
break;
|
|
949
|
+
}
|
|
950
|
+
message.key = reader.uint32();
|
|
951
|
+
continue;
|
|
952
|
+
}
|
|
953
|
+
case 2: {
|
|
954
|
+
if (tag !== 18) {
|
|
955
|
+
break;
|
|
956
|
+
}
|
|
957
|
+
message.value = exports.UserDeviceAlert_ConditionList.decode(reader, reader.uint32());
|
|
958
|
+
continue;
|
|
959
|
+
}
|
|
960
|
+
}
|
|
961
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
962
|
+
break;
|
|
963
|
+
}
|
|
964
|
+
reader.skip(tag & 7);
|
|
965
|
+
}
|
|
966
|
+
return message;
|
|
967
|
+
},
|
|
968
|
+
fromJSON(object) {
|
|
969
|
+
return {
|
|
970
|
+
key: isSet(object.key) ? globalThis.Number(object.key) : 0,
|
|
971
|
+
value: isSet(object.value) ? exports.UserDeviceAlert_ConditionList.fromJSON(object.value) : undefined,
|
|
972
|
+
};
|
|
973
|
+
},
|
|
974
|
+
toJSON(message) {
|
|
975
|
+
const obj = {};
|
|
976
|
+
if (message.key !== 0) {
|
|
977
|
+
obj.key = Math.round(message.key);
|
|
978
|
+
}
|
|
979
|
+
if (message.value !== undefined) {
|
|
980
|
+
obj.value = exports.UserDeviceAlert_ConditionList.toJSON(message.value);
|
|
981
|
+
}
|
|
982
|
+
return obj;
|
|
983
|
+
},
|
|
984
|
+
create(base) {
|
|
985
|
+
return exports.UserDeviceAlert_TimingEntry.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
986
|
+
},
|
|
987
|
+
fromPartial(object) {
|
|
988
|
+
var _a;
|
|
989
|
+
const message = createBaseUserDeviceAlert_TimingEntry();
|
|
990
|
+
message.key = (_a = object.key) !== null && _a !== void 0 ? _a : 0;
|
|
991
|
+
message.value = (object.value !== undefined && object.value !== null)
|
|
992
|
+
? exports.UserDeviceAlert_ConditionList.fromPartial(object.value)
|
|
993
|
+
: undefined;
|
|
994
|
+
return message;
|
|
995
|
+
},
|
|
996
|
+
};
|
|
891
997
|
function createBaseUserDeviceAlertList() {
|
|
892
998
|
return { list: [] };
|
|
893
999
|
}
|
|
@@ -1688,6 +1794,312 @@ exports.Notification_DataEntry = {
|
|
|
1688
1794
|
return message;
|
|
1689
1795
|
},
|
|
1690
1796
|
};
|
|
1797
|
+
function createBaseAlertModel() {
|
|
1798
|
+
return {
|
|
1799
|
+
id: long_1.default.UZERO,
|
|
1800
|
+
organizationId: long_1.default.UZERO,
|
|
1801
|
+
alertId: long_1.default.UZERO,
|
|
1802
|
+
alertType: long_1.default.UZERO,
|
|
1803
|
+
unit: undefined,
|
|
1804
|
+
value: undefined,
|
|
1805
|
+
message: "",
|
|
1806
|
+
name: "",
|
|
1807
|
+
minValue: undefined,
|
|
1808
|
+
maxValue: undefined,
|
|
1809
|
+
picture: undefined,
|
|
1810
|
+
createdBy: undefined,
|
|
1811
|
+
updatedBy: undefined,
|
|
1812
|
+
createdAt: undefined,
|
|
1813
|
+
updatedAt: undefined,
|
|
1814
|
+
objectType: undefined,
|
|
1815
|
+
};
|
|
1816
|
+
}
|
|
1817
|
+
exports.AlertModel = {
|
|
1818
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1819
|
+
if (!message.id.equals(long_1.default.UZERO)) {
|
|
1820
|
+
writer.uint32(8).uint64(message.id.toString());
|
|
1821
|
+
}
|
|
1822
|
+
if (!message.organizationId.equals(long_1.default.UZERO)) {
|
|
1823
|
+
writer.uint32(16).uint64(message.organizationId.toString());
|
|
1824
|
+
}
|
|
1825
|
+
if (!message.alertId.equals(long_1.default.UZERO)) {
|
|
1826
|
+
writer.uint32(24).uint64(message.alertId.toString());
|
|
1827
|
+
}
|
|
1828
|
+
if (!message.alertType.equals(long_1.default.UZERO)) {
|
|
1829
|
+
writer.uint32(32).uint64(message.alertType.toString());
|
|
1830
|
+
}
|
|
1831
|
+
if (message.unit !== undefined) {
|
|
1832
|
+
writer.uint32(42).string(message.unit);
|
|
1833
|
+
}
|
|
1834
|
+
if (message.value !== undefined) {
|
|
1835
|
+
writer.uint32(48).uint64(message.value.toString());
|
|
1836
|
+
}
|
|
1837
|
+
if (message.message !== "") {
|
|
1838
|
+
writer.uint32(58).string(message.message);
|
|
1839
|
+
}
|
|
1840
|
+
if (message.name !== "") {
|
|
1841
|
+
writer.uint32(66).string(message.name);
|
|
1842
|
+
}
|
|
1843
|
+
if (message.minValue !== undefined) {
|
|
1844
|
+
writer.uint32(74).string(message.minValue);
|
|
1845
|
+
}
|
|
1846
|
+
if (message.maxValue !== undefined) {
|
|
1847
|
+
writer.uint32(82).string(message.maxValue);
|
|
1848
|
+
}
|
|
1849
|
+
if (message.picture !== undefined) {
|
|
1850
|
+
writer.uint32(90).string(message.picture);
|
|
1851
|
+
}
|
|
1852
|
+
if (message.createdBy !== undefined) {
|
|
1853
|
+
writer.uint32(96).uint64(message.createdBy.toString());
|
|
1854
|
+
}
|
|
1855
|
+
if (message.updatedBy !== undefined) {
|
|
1856
|
+
writer.uint32(104).uint64(message.updatedBy.toString());
|
|
1857
|
+
}
|
|
1858
|
+
if (message.createdAt !== undefined) {
|
|
1859
|
+
timestamp_1.Timestamp.encode(toTimestamp(message.createdAt), writer.uint32(114).fork()).join();
|
|
1860
|
+
}
|
|
1861
|
+
if (message.updatedAt !== undefined) {
|
|
1862
|
+
timestamp_1.Timestamp.encode(toTimestamp(message.updatedAt), writer.uint32(122).fork()).join();
|
|
1863
|
+
}
|
|
1864
|
+
if (message.objectType !== undefined) {
|
|
1865
|
+
writer.uint32(130).string(message.objectType);
|
|
1866
|
+
}
|
|
1867
|
+
return writer;
|
|
1868
|
+
},
|
|
1869
|
+
decode(input, length) {
|
|
1870
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1871
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1872
|
+
const message = createBaseAlertModel();
|
|
1873
|
+
while (reader.pos < end) {
|
|
1874
|
+
const tag = reader.uint32();
|
|
1875
|
+
switch (tag >>> 3) {
|
|
1876
|
+
case 1: {
|
|
1877
|
+
if (tag !== 8) {
|
|
1878
|
+
break;
|
|
1879
|
+
}
|
|
1880
|
+
message.id = long_1.default.fromString(reader.uint64().toString(), true);
|
|
1881
|
+
continue;
|
|
1882
|
+
}
|
|
1883
|
+
case 2: {
|
|
1884
|
+
if (tag !== 16) {
|
|
1885
|
+
break;
|
|
1886
|
+
}
|
|
1887
|
+
message.organizationId = long_1.default.fromString(reader.uint64().toString(), true);
|
|
1888
|
+
continue;
|
|
1889
|
+
}
|
|
1890
|
+
case 3: {
|
|
1891
|
+
if (tag !== 24) {
|
|
1892
|
+
break;
|
|
1893
|
+
}
|
|
1894
|
+
message.alertId = long_1.default.fromString(reader.uint64().toString(), true);
|
|
1895
|
+
continue;
|
|
1896
|
+
}
|
|
1897
|
+
case 4: {
|
|
1898
|
+
if (tag !== 32) {
|
|
1899
|
+
break;
|
|
1900
|
+
}
|
|
1901
|
+
message.alertType = long_1.default.fromString(reader.uint64().toString(), true);
|
|
1902
|
+
continue;
|
|
1903
|
+
}
|
|
1904
|
+
case 5: {
|
|
1905
|
+
if (tag !== 42) {
|
|
1906
|
+
break;
|
|
1907
|
+
}
|
|
1908
|
+
message.unit = reader.string();
|
|
1909
|
+
continue;
|
|
1910
|
+
}
|
|
1911
|
+
case 6: {
|
|
1912
|
+
if (tag !== 48) {
|
|
1913
|
+
break;
|
|
1914
|
+
}
|
|
1915
|
+
message.value = long_1.default.fromString(reader.uint64().toString(), true);
|
|
1916
|
+
continue;
|
|
1917
|
+
}
|
|
1918
|
+
case 7: {
|
|
1919
|
+
if (tag !== 58) {
|
|
1920
|
+
break;
|
|
1921
|
+
}
|
|
1922
|
+
message.message = reader.string();
|
|
1923
|
+
continue;
|
|
1924
|
+
}
|
|
1925
|
+
case 8: {
|
|
1926
|
+
if (tag !== 66) {
|
|
1927
|
+
break;
|
|
1928
|
+
}
|
|
1929
|
+
message.name = reader.string();
|
|
1930
|
+
continue;
|
|
1931
|
+
}
|
|
1932
|
+
case 9: {
|
|
1933
|
+
if (tag !== 74) {
|
|
1934
|
+
break;
|
|
1935
|
+
}
|
|
1936
|
+
message.minValue = reader.string();
|
|
1937
|
+
continue;
|
|
1938
|
+
}
|
|
1939
|
+
case 10: {
|
|
1940
|
+
if (tag !== 82) {
|
|
1941
|
+
break;
|
|
1942
|
+
}
|
|
1943
|
+
message.maxValue = reader.string();
|
|
1944
|
+
continue;
|
|
1945
|
+
}
|
|
1946
|
+
case 11: {
|
|
1947
|
+
if (tag !== 90) {
|
|
1948
|
+
break;
|
|
1949
|
+
}
|
|
1950
|
+
message.picture = reader.string();
|
|
1951
|
+
continue;
|
|
1952
|
+
}
|
|
1953
|
+
case 12: {
|
|
1954
|
+
if (tag !== 96) {
|
|
1955
|
+
break;
|
|
1956
|
+
}
|
|
1957
|
+
message.createdBy = long_1.default.fromString(reader.uint64().toString(), true);
|
|
1958
|
+
continue;
|
|
1959
|
+
}
|
|
1960
|
+
case 13: {
|
|
1961
|
+
if (tag !== 104) {
|
|
1962
|
+
break;
|
|
1963
|
+
}
|
|
1964
|
+
message.updatedBy = long_1.default.fromString(reader.uint64().toString(), true);
|
|
1965
|
+
continue;
|
|
1966
|
+
}
|
|
1967
|
+
case 14: {
|
|
1968
|
+
if (tag !== 114) {
|
|
1969
|
+
break;
|
|
1970
|
+
}
|
|
1971
|
+
message.createdAt = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
|
|
1972
|
+
continue;
|
|
1973
|
+
}
|
|
1974
|
+
case 15: {
|
|
1975
|
+
if (tag !== 122) {
|
|
1976
|
+
break;
|
|
1977
|
+
}
|
|
1978
|
+
message.updatedAt = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
|
|
1979
|
+
continue;
|
|
1980
|
+
}
|
|
1981
|
+
case 16: {
|
|
1982
|
+
if (tag !== 130) {
|
|
1983
|
+
break;
|
|
1984
|
+
}
|
|
1985
|
+
message.objectType = reader.string();
|
|
1986
|
+
continue;
|
|
1987
|
+
}
|
|
1988
|
+
}
|
|
1989
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1990
|
+
break;
|
|
1991
|
+
}
|
|
1992
|
+
reader.skip(tag & 7);
|
|
1993
|
+
}
|
|
1994
|
+
return message;
|
|
1995
|
+
},
|
|
1996
|
+
fromJSON(object) {
|
|
1997
|
+
return {
|
|
1998
|
+
id: isSet(object.id) ? long_1.default.fromValue(object.id) : long_1.default.UZERO,
|
|
1999
|
+
organizationId: isSet(object.organizationId) ? long_1.default.fromValue(object.organizationId) : long_1.default.UZERO,
|
|
2000
|
+
alertId: isSet(object.alertId) ? long_1.default.fromValue(object.alertId) : long_1.default.UZERO,
|
|
2001
|
+
alertType: isSet(object.alertType) ? long_1.default.fromValue(object.alertType) : long_1.default.UZERO,
|
|
2002
|
+
unit: isSet(object.unit) ? globalThis.String(object.unit) : undefined,
|
|
2003
|
+
value: isSet(object.value) ? long_1.default.fromValue(object.value) : undefined,
|
|
2004
|
+
message: isSet(object.message) ? globalThis.String(object.message) : "",
|
|
2005
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
2006
|
+
minValue: isSet(object.minValue) ? globalThis.String(object.minValue) : undefined,
|
|
2007
|
+
maxValue: isSet(object.maxValue) ? globalThis.String(object.maxValue) : undefined,
|
|
2008
|
+
picture: isSet(object.picture) ? globalThis.String(object.picture) : undefined,
|
|
2009
|
+
createdBy: isSet(object.createdBy) ? long_1.default.fromValue(object.createdBy) : undefined,
|
|
2010
|
+
updatedBy: isSet(object.updatedBy) ? long_1.default.fromValue(object.updatedBy) : undefined,
|
|
2011
|
+
createdAt: isSet(object.createdAt) ? fromJsonTimestamp(object.createdAt) : undefined,
|
|
2012
|
+
updatedAt: isSet(object.updatedAt) ? fromJsonTimestamp(object.updatedAt) : undefined,
|
|
2013
|
+
objectType: isSet(object.objectType) ? globalThis.String(object.objectType) : undefined,
|
|
2014
|
+
};
|
|
2015
|
+
},
|
|
2016
|
+
toJSON(message) {
|
|
2017
|
+
const obj = {};
|
|
2018
|
+
if (!message.id.equals(long_1.default.UZERO)) {
|
|
2019
|
+
obj.id = (message.id || long_1.default.UZERO).toString();
|
|
2020
|
+
}
|
|
2021
|
+
if (!message.organizationId.equals(long_1.default.UZERO)) {
|
|
2022
|
+
obj.organizationId = (message.organizationId || long_1.default.UZERO).toString();
|
|
2023
|
+
}
|
|
2024
|
+
if (!message.alertId.equals(long_1.default.UZERO)) {
|
|
2025
|
+
obj.alertId = (message.alertId || long_1.default.UZERO).toString();
|
|
2026
|
+
}
|
|
2027
|
+
if (!message.alertType.equals(long_1.default.UZERO)) {
|
|
2028
|
+
obj.alertType = (message.alertType || long_1.default.UZERO).toString();
|
|
2029
|
+
}
|
|
2030
|
+
if (message.unit !== undefined) {
|
|
2031
|
+
obj.unit = message.unit;
|
|
2032
|
+
}
|
|
2033
|
+
if (message.value !== undefined) {
|
|
2034
|
+
obj.value = (message.value || long_1.default.UZERO).toString();
|
|
2035
|
+
}
|
|
2036
|
+
if (message.message !== "") {
|
|
2037
|
+
obj.message = message.message;
|
|
2038
|
+
}
|
|
2039
|
+
if (message.name !== "") {
|
|
2040
|
+
obj.name = message.name;
|
|
2041
|
+
}
|
|
2042
|
+
if (message.minValue !== undefined) {
|
|
2043
|
+
obj.minValue = message.minValue;
|
|
2044
|
+
}
|
|
2045
|
+
if (message.maxValue !== undefined) {
|
|
2046
|
+
obj.maxValue = message.maxValue;
|
|
2047
|
+
}
|
|
2048
|
+
if (message.picture !== undefined) {
|
|
2049
|
+
obj.picture = message.picture;
|
|
2050
|
+
}
|
|
2051
|
+
if (message.createdBy !== undefined) {
|
|
2052
|
+
obj.createdBy = (message.createdBy || long_1.default.UZERO).toString();
|
|
2053
|
+
}
|
|
2054
|
+
if (message.updatedBy !== undefined) {
|
|
2055
|
+
obj.updatedBy = (message.updatedBy || long_1.default.UZERO).toString();
|
|
2056
|
+
}
|
|
2057
|
+
if (message.createdAt !== undefined) {
|
|
2058
|
+
obj.createdAt = message.createdAt.toISOString();
|
|
2059
|
+
}
|
|
2060
|
+
if (message.updatedAt !== undefined) {
|
|
2061
|
+
obj.updatedAt = message.updatedAt.toISOString();
|
|
2062
|
+
}
|
|
2063
|
+
if (message.objectType !== undefined) {
|
|
2064
|
+
obj.objectType = message.objectType;
|
|
2065
|
+
}
|
|
2066
|
+
return obj;
|
|
2067
|
+
},
|
|
2068
|
+
create(base) {
|
|
2069
|
+
return exports.AlertModel.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
2070
|
+
},
|
|
2071
|
+
fromPartial(object) {
|
|
2072
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
2073
|
+
const message = createBaseAlertModel();
|
|
2074
|
+
message.id = (object.id !== undefined && object.id !== null) ? long_1.default.fromValue(object.id) : long_1.default.UZERO;
|
|
2075
|
+
message.organizationId = (object.organizationId !== undefined && object.organizationId !== null)
|
|
2076
|
+
? long_1.default.fromValue(object.organizationId)
|
|
2077
|
+
: long_1.default.UZERO;
|
|
2078
|
+
message.alertId = (object.alertId !== undefined && object.alertId !== null)
|
|
2079
|
+
? long_1.default.fromValue(object.alertId)
|
|
2080
|
+
: long_1.default.UZERO;
|
|
2081
|
+
message.alertType = (object.alertType !== undefined && object.alertType !== null)
|
|
2082
|
+
? long_1.default.fromValue(object.alertType)
|
|
2083
|
+
: long_1.default.UZERO;
|
|
2084
|
+
message.unit = (_a = object.unit) !== null && _a !== void 0 ? _a : undefined;
|
|
2085
|
+
message.value = (object.value !== undefined && object.value !== null) ? long_1.default.fromValue(object.value) : undefined;
|
|
2086
|
+
message.message = (_b = object.message) !== null && _b !== void 0 ? _b : "";
|
|
2087
|
+
message.name = (_c = object.name) !== null && _c !== void 0 ? _c : "";
|
|
2088
|
+
message.minValue = (_d = object.minValue) !== null && _d !== void 0 ? _d : undefined;
|
|
2089
|
+
message.maxValue = (_e = object.maxValue) !== null && _e !== void 0 ? _e : undefined;
|
|
2090
|
+
message.picture = (_f = object.picture) !== null && _f !== void 0 ? _f : undefined;
|
|
2091
|
+
message.createdBy = (object.createdBy !== undefined && object.createdBy !== null)
|
|
2092
|
+
? long_1.default.fromValue(object.createdBy)
|
|
2093
|
+
: undefined;
|
|
2094
|
+
message.updatedBy = (object.updatedBy !== undefined && object.updatedBy !== null)
|
|
2095
|
+
? long_1.default.fromValue(object.updatedBy)
|
|
2096
|
+
: undefined;
|
|
2097
|
+
message.createdAt = (_g = object.createdAt) !== null && _g !== void 0 ? _g : undefined;
|
|
2098
|
+
message.updatedAt = (_h = object.updatedAt) !== null && _h !== void 0 ? _h : undefined;
|
|
2099
|
+
message.objectType = (_j = object.objectType) !== null && _j !== void 0 ? _j : undefined;
|
|
2100
|
+
return message;
|
|
2101
|
+
},
|
|
2102
|
+
};
|
|
1691
2103
|
function toTimestamp(date) {
|
|
1692
2104
|
const seconds = numberToLong(Math.trunc(date.getTime() / 1000));
|
|
1693
2105
|
const nanos = (date.getTime() % 1000) * 1000000;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
2
|
import Long from "long";
|
|
3
3
|
import { Area, Point, WorkCycle } from "../areas/area";
|
|
4
|
-
import { SystemIo } from "../
|
|
4
|
+
import { SystemIo } from "../devices/devices";
|
|
5
5
|
import { Data, Log } from "../packets/dataModel";
|
|
6
6
|
import { Command } from "../packets/messages";
|
|
7
7
|
import { FusionTrip, Trip, TripDurationStat, TripPoint } from "../trips/trip";
|