@fatehan/tsrp 1.1.8 → 1.1.9
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 +1 -5
- package/dist/api.d.ts.map +1 -1
- package/dist/api.js +0 -46
- package/dist/fatehan/activities/workflow.d.ts +61 -29
- package/dist/fatehan/activities/workflow.d.ts.map +1 -1
- package/dist/fatehan/activities/workflow.js +463 -167
- package/dist/fatehan/identities/identities.d.ts +31 -0
- package/dist/fatehan/identities/identities.d.ts.map +1 -1
- package/dist/fatehan/identities/identities.js +472 -1
- package/dist/fatehan/models/models.d.ts +0 -19
- package/dist/fatehan/models/models.d.ts.map +1 -1
- package/dist/fatehan/models/models.js +1 -301
- package/dist/fatehan/notifies/notify.d.ts +2 -6
- package/dist/fatehan/notifies/notify.d.ts.map +1 -1
- package/dist/fatehan/notifies/notify.js +13 -91
- package/dist/fatehan/reports/report.d.ts +24 -0
- package/dist/fatehan/reports/report.d.ts.map +1 -1
- package/dist/fatehan/reports/report.js +354 -3
- package/dist/fatehan/services/api.d.ts +0 -29
- package/dist/fatehan/services/api.d.ts.map +1 -1
- package/dist/fatehan/services/api.js +1 -406
- package/dist/report.d.ts +2 -2
- package/dist/report.d.ts.map +1 -1
- package/dist/report.js +15 -3
- package/package.json +1 -1
- package/readme.md +3 -15
|
@@ -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.Config = exports.LiveLocationRelated = exports.LiveLocation = exports.TrialLog = exports.ChargeLog = exports.DeviceStatusList = exports.
|
|
11
|
+
exports.Config = exports.LiveLocationRelated = exports.LiveLocation = exports.TrialLog = exports.ChargeLog = exports.DeviceStatusList = exports.SinotrackCache = exports.HeartbeatCache = exports.IoList_ItemsEntry = exports.IoList = exports.Gallery = exports.ChargeLog_Type = exports.protobufPackage = void 0;
|
|
12
12
|
exports.chargeLog_TypeFromJSON = chargeLog_TypeFromJSON;
|
|
13
13
|
exports.chargeLog_TypeToJSON = chargeLog_TypeToJSON;
|
|
14
14
|
/* eslint-disable */
|
|
@@ -796,306 +796,6 @@ exports.SinotrackCache = {
|
|
|
796
796
|
return message;
|
|
797
797
|
},
|
|
798
798
|
};
|
|
799
|
-
function createBasePersonalAccessToken() {
|
|
800
|
-
return {
|
|
801
|
-
id: long_1.default.UZERO,
|
|
802
|
-
tokenableType: "",
|
|
803
|
-
tokenableId: long_1.default.UZERO,
|
|
804
|
-
name: "",
|
|
805
|
-
token: "",
|
|
806
|
-
abilities: undefined,
|
|
807
|
-
fcm: undefined,
|
|
808
|
-
ip: undefined,
|
|
809
|
-
domain: undefined,
|
|
810
|
-
partnerId: undefined,
|
|
811
|
-
userAgent: undefined,
|
|
812
|
-
deviceType: "",
|
|
813
|
-
lastUsedAt: undefined,
|
|
814
|
-
expiresAt: undefined,
|
|
815
|
-
createdAt: undefined,
|
|
816
|
-
updatedAt: undefined,
|
|
817
|
-
};
|
|
818
|
-
}
|
|
819
|
-
exports.PersonalAccessToken = {
|
|
820
|
-
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
821
|
-
if (!message.id.equals(long_1.default.UZERO)) {
|
|
822
|
-
writer.uint32(8).uint64(message.id.toString());
|
|
823
|
-
}
|
|
824
|
-
if (message.tokenableType !== "") {
|
|
825
|
-
writer.uint32(18).string(message.tokenableType);
|
|
826
|
-
}
|
|
827
|
-
if (!message.tokenableId.equals(long_1.default.UZERO)) {
|
|
828
|
-
writer.uint32(24).uint64(message.tokenableId.toString());
|
|
829
|
-
}
|
|
830
|
-
if (message.name !== "") {
|
|
831
|
-
writer.uint32(34).string(message.name);
|
|
832
|
-
}
|
|
833
|
-
if (message.token !== "") {
|
|
834
|
-
writer.uint32(42).string(message.token);
|
|
835
|
-
}
|
|
836
|
-
if (message.abilities !== undefined) {
|
|
837
|
-
writer.uint32(50).string(message.abilities);
|
|
838
|
-
}
|
|
839
|
-
if (message.fcm !== undefined) {
|
|
840
|
-
writer.uint32(58).string(message.fcm);
|
|
841
|
-
}
|
|
842
|
-
if (message.ip !== undefined) {
|
|
843
|
-
writer.uint32(66).string(message.ip);
|
|
844
|
-
}
|
|
845
|
-
if (message.domain !== undefined) {
|
|
846
|
-
writer.uint32(74).string(message.domain);
|
|
847
|
-
}
|
|
848
|
-
if (message.partnerId !== undefined) {
|
|
849
|
-
writer.uint32(80).uint64(message.partnerId.toString());
|
|
850
|
-
}
|
|
851
|
-
if (message.userAgent !== undefined) {
|
|
852
|
-
writer.uint32(90).string(message.userAgent);
|
|
853
|
-
}
|
|
854
|
-
if (message.deviceType !== "") {
|
|
855
|
-
writer.uint32(98).string(message.deviceType);
|
|
856
|
-
}
|
|
857
|
-
if (message.lastUsedAt !== undefined) {
|
|
858
|
-
timestamp_1.Timestamp.encode(toTimestamp(message.lastUsedAt), writer.uint32(106).fork()).join();
|
|
859
|
-
}
|
|
860
|
-
if (message.expiresAt !== undefined) {
|
|
861
|
-
timestamp_1.Timestamp.encode(toTimestamp(message.expiresAt), writer.uint32(114).fork()).join();
|
|
862
|
-
}
|
|
863
|
-
if (message.createdAt !== undefined) {
|
|
864
|
-
timestamp_1.Timestamp.encode(toTimestamp(message.createdAt), writer.uint32(122).fork()).join();
|
|
865
|
-
}
|
|
866
|
-
if (message.updatedAt !== undefined) {
|
|
867
|
-
timestamp_1.Timestamp.encode(toTimestamp(message.updatedAt), writer.uint32(130).fork()).join();
|
|
868
|
-
}
|
|
869
|
-
return writer;
|
|
870
|
-
},
|
|
871
|
-
decode(input, length) {
|
|
872
|
-
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
873
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
874
|
-
const message = createBasePersonalAccessToken();
|
|
875
|
-
while (reader.pos < end) {
|
|
876
|
-
const tag = reader.uint32();
|
|
877
|
-
switch (tag >>> 3) {
|
|
878
|
-
case 1: {
|
|
879
|
-
if (tag !== 8) {
|
|
880
|
-
break;
|
|
881
|
-
}
|
|
882
|
-
message.id = long_1.default.fromString(reader.uint64().toString(), true);
|
|
883
|
-
continue;
|
|
884
|
-
}
|
|
885
|
-
case 2: {
|
|
886
|
-
if (tag !== 18) {
|
|
887
|
-
break;
|
|
888
|
-
}
|
|
889
|
-
message.tokenableType = reader.string();
|
|
890
|
-
continue;
|
|
891
|
-
}
|
|
892
|
-
case 3: {
|
|
893
|
-
if (tag !== 24) {
|
|
894
|
-
break;
|
|
895
|
-
}
|
|
896
|
-
message.tokenableId = long_1.default.fromString(reader.uint64().toString(), true);
|
|
897
|
-
continue;
|
|
898
|
-
}
|
|
899
|
-
case 4: {
|
|
900
|
-
if (tag !== 34) {
|
|
901
|
-
break;
|
|
902
|
-
}
|
|
903
|
-
message.name = reader.string();
|
|
904
|
-
continue;
|
|
905
|
-
}
|
|
906
|
-
case 5: {
|
|
907
|
-
if (tag !== 42) {
|
|
908
|
-
break;
|
|
909
|
-
}
|
|
910
|
-
message.token = reader.string();
|
|
911
|
-
continue;
|
|
912
|
-
}
|
|
913
|
-
case 6: {
|
|
914
|
-
if (tag !== 50) {
|
|
915
|
-
break;
|
|
916
|
-
}
|
|
917
|
-
message.abilities = reader.string();
|
|
918
|
-
continue;
|
|
919
|
-
}
|
|
920
|
-
case 7: {
|
|
921
|
-
if (tag !== 58) {
|
|
922
|
-
break;
|
|
923
|
-
}
|
|
924
|
-
message.fcm = reader.string();
|
|
925
|
-
continue;
|
|
926
|
-
}
|
|
927
|
-
case 8: {
|
|
928
|
-
if (tag !== 66) {
|
|
929
|
-
break;
|
|
930
|
-
}
|
|
931
|
-
message.ip = reader.string();
|
|
932
|
-
continue;
|
|
933
|
-
}
|
|
934
|
-
case 9: {
|
|
935
|
-
if (tag !== 74) {
|
|
936
|
-
break;
|
|
937
|
-
}
|
|
938
|
-
message.domain = reader.string();
|
|
939
|
-
continue;
|
|
940
|
-
}
|
|
941
|
-
case 10: {
|
|
942
|
-
if (tag !== 80) {
|
|
943
|
-
break;
|
|
944
|
-
}
|
|
945
|
-
message.partnerId = long_1.default.fromString(reader.uint64().toString(), true);
|
|
946
|
-
continue;
|
|
947
|
-
}
|
|
948
|
-
case 11: {
|
|
949
|
-
if (tag !== 90) {
|
|
950
|
-
break;
|
|
951
|
-
}
|
|
952
|
-
message.userAgent = reader.string();
|
|
953
|
-
continue;
|
|
954
|
-
}
|
|
955
|
-
case 12: {
|
|
956
|
-
if (tag !== 98) {
|
|
957
|
-
break;
|
|
958
|
-
}
|
|
959
|
-
message.deviceType = reader.string();
|
|
960
|
-
continue;
|
|
961
|
-
}
|
|
962
|
-
case 13: {
|
|
963
|
-
if (tag !== 106) {
|
|
964
|
-
break;
|
|
965
|
-
}
|
|
966
|
-
message.lastUsedAt = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
|
|
967
|
-
continue;
|
|
968
|
-
}
|
|
969
|
-
case 14: {
|
|
970
|
-
if (tag !== 114) {
|
|
971
|
-
break;
|
|
972
|
-
}
|
|
973
|
-
message.expiresAt = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
|
|
974
|
-
continue;
|
|
975
|
-
}
|
|
976
|
-
case 15: {
|
|
977
|
-
if (tag !== 122) {
|
|
978
|
-
break;
|
|
979
|
-
}
|
|
980
|
-
message.createdAt = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
|
|
981
|
-
continue;
|
|
982
|
-
}
|
|
983
|
-
case 16: {
|
|
984
|
-
if (tag !== 130) {
|
|
985
|
-
break;
|
|
986
|
-
}
|
|
987
|
-
message.updatedAt = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
|
|
988
|
-
continue;
|
|
989
|
-
}
|
|
990
|
-
}
|
|
991
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
992
|
-
break;
|
|
993
|
-
}
|
|
994
|
-
reader.skip(tag & 7);
|
|
995
|
-
}
|
|
996
|
-
return message;
|
|
997
|
-
},
|
|
998
|
-
fromJSON(object) {
|
|
999
|
-
return {
|
|
1000
|
-
id: isSet(object.id) ? long_1.default.fromValue(object.id) : long_1.default.UZERO,
|
|
1001
|
-
tokenableType: isSet(object.tokenable_type) ? globalThis.String(object.tokenable_type) : "",
|
|
1002
|
-
tokenableId: isSet(object.tokenable_id) ? long_1.default.fromValue(object.tokenable_id) : long_1.default.UZERO,
|
|
1003
|
-
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
1004
|
-
token: isSet(object.token) ? globalThis.String(object.token) : "",
|
|
1005
|
-
abilities: isSet(object.abilities) ? globalThis.String(object.abilities) : undefined,
|
|
1006
|
-
fcm: isSet(object.fcm) ? globalThis.String(object.fcm) : undefined,
|
|
1007
|
-
ip: isSet(object.ip) ? globalThis.String(object.ip) : undefined,
|
|
1008
|
-
domain: isSet(object.domain) ? globalThis.String(object.domain) : undefined,
|
|
1009
|
-
partnerId: isSet(object.partner_id) ? long_1.default.fromValue(object.partner_id) : undefined,
|
|
1010
|
-
userAgent: isSet(object.user_agent) ? globalThis.String(object.user_agent) : undefined,
|
|
1011
|
-
deviceType: isSet(object.device_type) ? globalThis.String(object.device_type) : "",
|
|
1012
|
-
lastUsedAt: isSet(object.last_used_at) ? fromJsonTimestamp(object.last_used_at) : undefined,
|
|
1013
|
-
expiresAt: isSet(object.expires_at) ? fromJsonTimestamp(object.expires_at) : undefined,
|
|
1014
|
-
createdAt: isSet(object.created_at) ? fromJsonTimestamp(object.created_at) : undefined,
|
|
1015
|
-
updatedAt: isSet(object.updated_at) ? fromJsonTimestamp(object.updated_at) : undefined,
|
|
1016
|
-
};
|
|
1017
|
-
},
|
|
1018
|
-
toJSON(message) {
|
|
1019
|
-
const obj = {};
|
|
1020
|
-
if (!message.id.equals(long_1.default.UZERO)) {
|
|
1021
|
-
obj.id = (message.id || long_1.default.UZERO).toString();
|
|
1022
|
-
}
|
|
1023
|
-
if (message.tokenableType !== "") {
|
|
1024
|
-
obj.tokenable_type = message.tokenableType;
|
|
1025
|
-
}
|
|
1026
|
-
if (!message.tokenableId.equals(long_1.default.UZERO)) {
|
|
1027
|
-
obj.tokenable_id = (message.tokenableId || long_1.default.UZERO).toString();
|
|
1028
|
-
}
|
|
1029
|
-
if (message.name !== "") {
|
|
1030
|
-
obj.name = message.name;
|
|
1031
|
-
}
|
|
1032
|
-
if (message.token !== "") {
|
|
1033
|
-
obj.token = message.token;
|
|
1034
|
-
}
|
|
1035
|
-
if (message.abilities !== undefined) {
|
|
1036
|
-
obj.abilities = message.abilities;
|
|
1037
|
-
}
|
|
1038
|
-
if (message.fcm !== undefined) {
|
|
1039
|
-
obj.fcm = message.fcm;
|
|
1040
|
-
}
|
|
1041
|
-
if (message.ip !== undefined) {
|
|
1042
|
-
obj.ip = message.ip;
|
|
1043
|
-
}
|
|
1044
|
-
if (message.domain !== undefined) {
|
|
1045
|
-
obj.domain = message.domain;
|
|
1046
|
-
}
|
|
1047
|
-
if (message.partnerId !== undefined) {
|
|
1048
|
-
obj.partner_id = (message.partnerId || long_1.default.UZERO).toString();
|
|
1049
|
-
}
|
|
1050
|
-
if (message.userAgent !== undefined) {
|
|
1051
|
-
obj.user_agent = message.userAgent;
|
|
1052
|
-
}
|
|
1053
|
-
if (message.deviceType !== "") {
|
|
1054
|
-
obj.device_type = message.deviceType;
|
|
1055
|
-
}
|
|
1056
|
-
if (message.lastUsedAt !== undefined) {
|
|
1057
|
-
obj.last_used_at = message.lastUsedAt.toISOString();
|
|
1058
|
-
}
|
|
1059
|
-
if (message.expiresAt !== undefined) {
|
|
1060
|
-
obj.expires_at = message.expiresAt.toISOString();
|
|
1061
|
-
}
|
|
1062
|
-
if (message.createdAt !== undefined) {
|
|
1063
|
-
obj.created_at = message.createdAt.toISOString();
|
|
1064
|
-
}
|
|
1065
|
-
if (message.updatedAt !== undefined) {
|
|
1066
|
-
obj.updated_at = message.updatedAt.toISOString();
|
|
1067
|
-
}
|
|
1068
|
-
return obj;
|
|
1069
|
-
},
|
|
1070
|
-
create(base) {
|
|
1071
|
-
return exports.PersonalAccessToken.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1072
|
-
},
|
|
1073
|
-
fromPartial(object) {
|
|
1074
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
1075
|
-
const message = createBasePersonalAccessToken();
|
|
1076
|
-
message.id = (object.id !== undefined && object.id !== null) ? long_1.default.fromValue(object.id) : long_1.default.UZERO;
|
|
1077
|
-
message.tokenableType = (_a = object.tokenableType) !== null && _a !== void 0 ? _a : "";
|
|
1078
|
-
message.tokenableId = (object.tokenableId !== undefined && object.tokenableId !== null)
|
|
1079
|
-
? long_1.default.fromValue(object.tokenableId)
|
|
1080
|
-
: long_1.default.UZERO;
|
|
1081
|
-
message.name = (_b = object.name) !== null && _b !== void 0 ? _b : "";
|
|
1082
|
-
message.token = (_c = object.token) !== null && _c !== void 0 ? _c : "";
|
|
1083
|
-
message.abilities = (_d = object.abilities) !== null && _d !== void 0 ? _d : undefined;
|
|
1084
|
-
message.fcm = (_e = object.fcm) !== null && _e !== void 0 ? _e : undefined;
|
|
1085
|
-
message.ip = (_f = object.ip) !== null && _f !== void 0 ? _f : undefined;
|
|
1086
|
-
message.domain = (_g = object.domain) !== null && _g !== void 0 ? _g : undefined;
|
|
1087
|
-
message.partnerId = (object.partnerId !== undefined && object.partnerId !== null)
|
|
1088
|
-
? long_1.default.fromValue(object.partnerId)
|
|
1089
|
-
: undefined;
|
|
1090
|
-
message.userAgent = (_h = object.userAgent) !== null && _h !== void 0 ? _h : undefined;
|
|
1091
|
-
message.deviceType = (_j = object.deviceType) !== null && _j !== void 0 ? _j : "";
|
|
1092
|
-
message.lastUsedAt = (_k = object.lastUsedAt) !== null && _k !== void 0 ? _k : undefined;
|
|
1093
|
-
message.expiresAt = (_l = object.expiresAt) !== null && _l !== void 0 ? _l : undefined;
|
|
1094
|
-
message.createdAt = (_m = object.createdAt) !== null && _m !== void 0 ? _m : undefined;
|
|
1095
|
-
message.updatedAt = (_o = object.updatedAt) !== null && _o !== void 0 ? _o : undefined;
|
|
1096
|
-
return message;
|
|
1097
|
-
},
|
|
1098
|
-
};
|
|
1099
799
|
function createBaseDeviceStatusList() {
|
|
1100
800
|
return { cost: 0, accepted: 0, list: [] };
|
|
1101
801
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
2
|
import Long from "long";
|
|
3
|
+
import { Receiver } from "../identities/identities";
|
|
3
4
|
import { Alert } from "../packets/dataModel";
|
|
4
5
|
export declare const protobufPackage = "com.fatehan.notifies";
|
|
5
6
|
export declare enum Via {
|
|
@@ -18,6 +19,7 @@ export declare enum ObjectType {
|
|
|
18
19
|
DEVICE = 1,
|
|
19
20
|
USER = 2,
|
|
20
21
|
OPERATION = 3,
|
|
22
|
+
WORKFLOW_TASK = 4,
|
|
21
23
|
UNRECOGNIZED = -1
|
|
22
24
|
}
|
|
23
25
|
export declare function objectTypeFromJSON(object: any): ObjectType;
|
|
@@ -82,11 +84,6 @@ export interface UserDeviceAlert_TimingEntry {
|
|
|
82
84
|
export interface UserDeviceAlertList {
|
|
83
85
|
list: UserDeviceAlert[];
|
|
84
86
|
}
|
|
85
|
-
export interface Receiver {
|
|
86
|
-
phone?: Long | undefined;
|
|
87
|
-
email?: string | undefined;
|
|
88
|
-
token: string[];
|
|
89
|
-
}
|
|
90
87
|
export interface Notify {
|
|
91
88
|
title: string;
|
|
92
89
|
body: string;
|
|
@@ -152,7 +149,6 @@ export declare const UserDeviceAlert_ConditionList: MessageFns<UserDeviceAlert_C
|
|
|
152
149
|
export declare const UserDeviceAlert_ConditionEntry: MessageFns<UserDeviceAlert_ConditionEntry>;
|
|
153
150
|
export declare const UserDeviceAlert_TimingEntry: MessageFns<UserDeviceAlert_TimingEntry>;
|
|
154
151
|
export declare const UserDeviceAlertList: MessageFns<UserDeviceAlertList>;
|
|
155
|
-
export declare const Receiver: MessageFns<Receiver>;
|
|
156
152
|
export declare const Notify: MessageFns<Notify>;
|
|
157
153
|
export declare const Notify_DataEntry: MessageFns<Notify_DataEntry>;
|
|
158
154
|
export declare const Notification: MessageFns<Notification>;
|
|
@@ -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;AAExB,OAAO,EAAE,KAAK,EAA8B,MAAM,sBAAsB,CAAC;AAEzE,eAAO,MAAM,eAAe,yBAAyB,CAAC;AAEtD,oBAAY,GAAG;IACb,IAAI,IAAI;IACR,GAAG,IAAI;IACP,GAAG,IAAI;IACP,KAAK,IAAI;IACT,QAAQ,IAAI;IACZ,IAAI,IAAI;IACR,YAAY,KAAK;CAClB;AAED,wBAAgB,WAAW,CAAC,MAAM,EAAE,GAAG,GAAG,GAAG,CAyB5C;AAED,wBAAgB,SAAS,CAAC,MAAM,EAAE,GAAG,GAAG,MAAM,CAkB7C;AAED,oBAAY,UAAU;IACpB,OAAO,IAAI;IACX,MAAM,IAAI;IACV,IAAI,IAAI;IACR,SAAS,IAAI;IACb,YAAY,KAAK;CAClB;AAED,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,GAAG,GAAG,UAAU,
|
|
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;AAExB,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACpD,OAAO,EAAE,KAAK,EAA8B,MAAM,sBAAsB,CAAC;AAEzE,eAAO,MAAM,eAAe,yBA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AG,CAAC,IAAI,OAAO,CAAC,MAAM,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,GAAG,KAAK;CAAE,CAAC;AAoCnG,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"}
|
|
@@ -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.AlertModel = exports.Notification_DataEntry = exports.Notification = exports.Notify_DataEntry = exports.Notify = exports.
|
|
11
|
+
exports.AlertModel = exports.Notification_DataEntry = exports.Notification = exports.Notify_DataEntry = exports.Notify = 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;
|
|
@@ -19,6 +19,7 @@ exports.notifyJob_PriorityToJSON = notifyJob_PriorityToJSON;
|
|
|
19
19
|
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
20
20
|
const long_1 = __importDefault(require("long"));
|
|
21
21
|
const timestamp_1 = require("../google/protobuf/timestamp");
|
|
22
|
+
const identities_1 = require("../identities/identities");
|
|
22
23
|
const dataModel_1 = require("../packets/dataModel");
|
|
23
24
|
exports.protobufPackage = "com.fatehan.notifies";
|
|
24
25
|
var Via;
|
|
@@ -82,6 +83,7 @@ var ObjectType;
|
|
|
82
83
|
ObjectType[ObjectType["DEVICE"] = 1] = "DEVICE";
|
|
83
84
|
ObjectType[ObjectType["USER"] = 2] = "USER";
|
|
84
85
|
ObjectType[ObjectType["OPERATION"] = 3] = "OPERATION";
|
|
86
|
+
ObjectType[ObjectType["WORKFLOW_TASK"] = 4] = "WORKFLOW_TASK";
|
|
85
87
|
ObjectType[ObjectType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
86
88
|
})(ObjectType || (exports.ObjectType = ObjectType = {}));
|
|
87
89
|
function objectTypeFromJSON(object) {
|
|
@@ -98,6 +100,9 @@ function objectTypeFromJSON(object) {
|
|
|
98
100
|
case 3:
|
|
99
101
|
case "OPERATION":
|
|
100
102
|
return ObjectType.OPERATION;
|
|
103
|
+
case 4:
|
|
104
|
+
case "WORKFLOW_TASK":
|
|
105
|
+
return ObjectType.WORKFLOW_TASK;
|
|
101
106
|
case -1:
|
|
102
107
|
case "UNRECOGNIZED":
|
|
103
108
|
default:
|
|
@@ -114,6 +119,8 @@ function objectTypeToJSON(object) {
|
|
|
114
119
|
return "USER";
|
|
115
120
|
case ObjectType.OPERATION:
|
|
116
121
|
return "OPERATION";
|
|
122
|
+
case ObjectType.WORKFLOW_TASK:
|
|
123
|
+
return "WORKFLOW_TASK";
|
|
117
124
|
case ObjectType.UNRECOGNIZED:
|
|
118
125
|
default:
|
|
119
126
|
return "UNRECOGNIZED";
|
|
@@ -1049,91 +1056,6 @@ exports.UserDeviceAlertList = {
|
|
|
1049
1056
|
return message;
|
|
1050
1057
|
},
|
|
1051
1058
|
};
|
|
1052
|
-
function createBaseReceiver() {
|
|
1053
|
-
return { phone: undefined, email: undefined, token: [] };
|
|
1054
|
-
}
|
|
1055
|
-
exports.Receiver = {
|
|
1056
|
-
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1057
|
-
if (message.phone !== undefined) {
|
|
1058
|
-
writer.uint32(8).uint64(message.phone.toString());
|
|
1059
|
-
}
|
|
1060
|
-
if (message.email !== undefined) {
|
|
1061
|
-
writer.uint32(18).string(message.email);
|
|
1062
|
-
}
|
|
1063
|
-
for (const v of message.token) {
|
|
1064
|
-
writer.uint32(26).string(v);
|
|
1065
|
-
}
|
|
1066
|
-
return writer;
|
|
1067
|
-
},
|
|
1068
|
-
decode(input, length) {
|
|
1069
|
-
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1070
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1071
|
-
const message = createBaseReceiver();
|
|
1072
|
-
while (reader.pos < end) {
|
|
1073
|
-
const tag = reader.uint32();
|
|
1074
|
-
switch (tag >>> 3) {
|
|
1075
|
-
case 1: {
|
|
1076
|
-
if (tag !== 8) {
|
|
1077
|
-
break;
|
|
1078
|
-
}
|
|
1079
|
-
message.phone = long_1.default.fromString(reader.uint64().toString(), true);
|
|
1080
|
-
continue;
|
|
1081
|
-
}
|
|
1082
|
-
case 2: {
|
|
1083
|
-
if (tag !== 18) {
|
|
1084
|
-
break;
|
|
1085
|
-
}
|
|
1086
|
-
message.email = reader.string();
|
|
1087
|
-
continue;
|
|
1088
|
-
}
|
|
1089
|
-
case 3: {
|
|
1090
|
-
if (tag !== 26) {
|
|
1091
|
-
break;
|
|
1092
|
-
}
|
|
1093
|
-
message.token.push(reader.string());
|
|
1094
|
-
continue;
|
|
1095
|
-
}
|
|
1096
|
-
}
|
|
1097
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1098
|
-
break;
|
|
1099
|
-
}
|
|
1100
|
-
reader.skip(tag & 7);
|
|
1101
|
-
}
|
|
1102
|
-
return message;
|
|
1103
|
-
},
|
|
1104
|
-
fromJSON(object) {
|
|
1105
|
-
return {
|
|
1106
|
-
phone: isSet(object.phone) ? long_1.default.fromValue(object.phone) : undefined,
|
|
1107
|
-
email: isSet(object.email) ? globalThis.String(object.email) : undefined,
|
|
1108
|
-
token: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.token) ? object.token.map((e) => globalThis.String(e)) : [],
|
|
1109
|
-
};
|
|
1110
|
-
},
|
|
1111
|
-
toJSON(message) {
|
|
1112
|
-
var _a;
|
|
1113
|
-
const obj = {};
|
|
1114
|
-
if (message.phone !== undefined) {
|
|
1115
|
-
obj.phone = (message.phone || long_1.default.UZERO).toString();
|
|
1116
|
-
}
|
|
1117
|
-
if (message.email !== undefined) {
|
|
1118
|
-
obj.email = message.email;
|
|
1119
|
-
}
|
|
1120
|
-
if ((_a = message.token) === null || _a === void 0 ? void 0 : _a.length) {
|
|
1121
|
-
obj.token = message.token;
|
|
1122
|
-
}
|
|
1123
|
-
return obj;
|
|
1124
|
-
},
|
|
1125
|
-
create(base) {
|
|
1126
|
-
return exports.Receiver.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1127
|
-
},
|
|
1128
|
-
fromPartial(object) {
|
|
1129
|
-
var _a, _b;
|
|
1130
|
-
const message = createBaseReceiver();
|
|
1131
|
-
message.phone = (object.phone !== undefined && object.phone !== null) ? long_1.default.fromValue(object.phone) : undefined;
|
|
1132
|
-
message.email = (_a = object.email) !== null && _a !== void 0 ? _a : undefined;
|
|
1133
|
-
message.token = ((_b = object.token) === null || _b === void 0 ? void 0 : _b.map((e) => e)) || [];
|
|
1134
|
-
return message;
|
|
1135
|
-
},
|
|
1136
|
-
};
|
|
1137
1059
|
function createBaseNotify() {
|
|
1138
1060
|
return {
|
|
1139
1061
|
title: "",
|
|
@@ -1166,7 +1088,7 @@ exports.Notify = {
|
|
|
1166
1088
|
writer.uint32(42).string(message.icon);
|
|
1167
1089
|
}
|
|
1168
1090
|
if (message.receiver !== undefined) {
|
|
1169
|
-
|
|
1091
|
+
identities_1.Receiver.encode(message.receiver, writer.uint32(50).fork()).join();
|
|
1170
1092
|
}
|
|
1171
1093
|
if (message.objectId !== undefined) {
|
|
1172
1094
|
writer.uint32(56).uint64(message.objectId.toString());
|
|
@@ -1228,7 +1150,7 @@ exports.Notify = {
|
|
|
1228
1150
|
if (tag !== 50) {
|
|
1229
1151
|
break;
|
|
1230
1152
|
}
|
|
1231
|
-
message.receiver =
|
|
1153
|
+
message.receiver = identities_1.Receiver.decode(reader, reader.uint32());
|
|
1232
1154
|
continue;
|
|
1233
1155
|
}
|
|
1234
1156
|
case 7: {
|
|
@@ -1277,7 +1199,7 @@ exports.Notify = {
|
|
|
1277
1199
|
sound: isSet(object.sound) ? long_1.default.fromValue(object.sound) : undefined,
|
|
1278
1200
|
image: isSet(object.image) ? globalThis.String(object.image) : undefined,
|
|
1279
1201
|
icon: isSet(object.icon) ? globalThis.String(object.icon) : undefined,
|
|
1280
|
-
receiver: isSet(object.receiver) ?
|
|
1202
|
+
receiver: isSet(object.receiver) ? identities_1.Receiver.fromJSON(object.receiver) : undefined,
|
|
1281
1203
|
objectId: isSet(object.object_id) ? long_1.default.fromValue(object.object_id) : undefined,
|
|
1282
1204
|
objectType: isSet(object.object_type) ? objectTypeFromJSON(object.object_type) : 0,
|
|
1283
1205
|
timestamp: isSet(object.timestamp) ? fromJsonTimestamp(object.timestamp) : undefined,
|
|
@@ -1307,7 +1229,7 @@ exports.Notify = {
|
|
|
1307
1229
|
obj.icon = message.icon;
|
|
1308
1230
|
}
|
|
1309
1231
|
if (message.receiver !== undefined) {
|
|
1310
|
-
obj.receiver =
|
|
1232
|
+
obj.receiver = identities_1.Receiver.toJSON(message.receiver);
|
|
1311
1233
|
}
|
|
1312
1234
|
if (message.objectId !== undefined) {
|
|
1313
1235
|
obj.object_id = (message.objectId || long_1.default.UZERO).toString();
|
|
@@ -1341,7 +1263,7 @@ exports.Notify = {
|
|
|
1341
1263
|
message.image = (_c = object.image) !== null && _c !== void 0 ? _c : undefined;
|
|
1342
1264
|
message.icon = (_d = object.icon) !== null && _d !== void 0 ? _d : undefined;
|
|
1343
1265
|
message.receiver = (object.receiver !== undefined && object.receiver !== null)
|
|
1344
|
-
?
|
|
1266
|
+
? identities_1.Receiver.fromPartial(object.receiver)
|
|
1345
1267
|
: undefined;
|
|
1346
1268
|
message.objectId = (object.objectId !== undefined && object.objectId !== null)
|
|
1347
1269
|
? long_1.default.fromValue(object.objectId)
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
2
|
import Long from "long";
|
|
3
|
+
import { WorkflowStat, WorkflowTask } from "../activities/workflow";
|
|
3
4
|
import { Area, Point, WorkCycle } from "../areas/area";
|
|
4
5
|
import { SystemIo } from "../devices/devices";
|
|
5
6
|
import { Data, Log } from "../packets/dataModel";
|
|
@@ -29,6 +30,27 @@ export declare enum StopCalculateIo {
|
|
|
29
30
|
}
|
|
30
31
|
export declare function stopCalculateIoFromJSON(object: any): StopCalculateIo;
|
|
31
32
|
export declare function stopCalculateIoToJSON(object: StopCalculateIo): string;
|
|
33
|
+
export interface WorkflowRequest {
|
|
34
|
+
organizationId?: Long | undefined;
|
|
35
|
+
workflowId?: Long | undefined;
|
|
36
|
+
deviceId?: Long | undefined;
|
|
37
|
+
status?: WorkflowStat | undefined;
|
|
38
|
+
startedAt?: Date | undefined;
|
|
39
|
+
finishedAt?: Date | undefined;
|
|
40
|
+
disablePagination: boolean;
|
|
41
|
+
page?: number | undefined;
|
|
42
|
+
perPage?: number | undefined;
|
|
43
|
+
}
|
|
44
|
+
export interface WorkflowResponse {
|
|
45
|
+
currentPage: number;
|
|
46
|
+
from: number;
|
|
47
|
+
to: number;
|
|
48
|
+
lastPage: number;
|
|
49
|
+
perPage: number;
|
|
50
|
+
cost: Long;
|
|
51
|
+
total: number;
|
|
52
|
+
data: WorkflowTask[];
|
|
53
|
+
}
|
|
32
54
|
export interface SystemIoRequest {
|
|
33
55
|
}
|
|
34
56
|
export interface SystemIoResponse {
|
|
@@ -766,6 +788,8 @@ export interface TripsSummaryResponse {
|
|
|
766
788
|
startedAt?: Date | undefined;
|
|
767
789
|
finishedAt?: Date | undefined;
|
|
768
790
|
}
|
|
791
|
+
export declare const WorkflowRequest: MessageFns<WorkflowRequest>;
|
|
792
|
+
export declare const WorkflowResponse: MessageFns<WorkflowResponse>;
|
|
769
793
|
export declare const SystemIoRequest: MessageFns<SystemIoRequest>;
|
|
770
794
|
export declare const SystemIoResponse: MessageFns<SystemIoResponse>;
|
|
771
795
|
export declare const ChartRequest: MessageFns<ChartRequest>;
|