@fatehan/tsrp 1.3.27 → 1.3.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/fatehan/activities/workflow.d.ts +5 -13
- package/dist/fatehan/activities/workflow.d.ts.map +1 -1
- package/dist/fatehan/activities/workflow.js +100 -237
- package/dist/fatehan/identities/identities.d.ts +13 -0
- package/dist/fatehan/identities/identities.d.ts.map +1 -1
- package/dist/fatehan/identities/identities.js +203 -1
- package/dist/fatehan/models/models.d.ts +5 -0
- package/dist/fatehan/models/models.d.ts.map +1 -1
- package/dist/fatehan/models/models.js +70 -1
- package/dist/fatehan/packets/dataModel.d.ts +2 -0
- package/dist/fatehan/packets/dataModel.d.ts.map +1 -1
- package/dist/fatehan/packets/dataModel.js +7 -0
- package/package.json +7 -3
|
@@ -41,6 +41,9 @@ export interface WorkflowTask {
|
|
|
41
41
|
expiresAt?: Date | undefined;
|
|
42
42
|
createdAt?: Date | undefined;
|
|
43
43
|
updatedAt?: Date | undefined;
|
|
44
|
+
createdBy?: Long | undefined;
|
|
45
|
+
confirmedAt?: Date | undefined;
|
|
46
|
+
rejectedAt?: Date | undefined;
|
|
44
47
|
}
|
|
45
48
|
export interface Flow {
|
|
46
49
|
continuous: boolean;
|
|
@@ -77,17 +80,6 @@ export interface PayambarBackground {
|
|
|
77
80
|
idlingDuration: number;
|
|
78
81
|
parkingDuration: number;
|
|
79
82
|
towingDuration: number;
|
|
80
|
-
items: PayambarBackground_Item[];
|
|
81
|
-
}
|
|
82
|
-
export interface PayambarBackground_Item {
|
|
83
|
-
latitude: number;
|
|
84
|
-
longitude: number;
|
|
85
|
-
fuelLevel?: number | undefined;
|
|
86
|
-
ble03Custom01?: Uint8Array | undefined;
|
|
87
|
-
ble03Custom02?: number | undefined;
|
|
88
|
-
ble03Custom03?: number | undefined;
|
|
89
|
-
ble03Custom04?: number | undefined;
|
|
90
|
-
ble03Custom05?: number | undefined;
|
|
91
83
|
}
|
|
92
84
|
export interface TaneshBackground {
|
|
93
85
|
mainAreaId: Long;
|
|
@@ -95,12 +87,13 @@ export interface TaneshBackground {
|
|
|
95
87
|
outside?: TaneshBackground_Item | undefined;
|
|
96
88
|
}
|
|
97
89
|
export interface TaneshBackground_Item {
|
|
98
|
-
mileage?: number | undefined;
|
|
99
90
|
duration: number;
|
|
100
91
|
movingDuration: number;
|
|
101
92
|
idlingDuration: number;
|
|
102
93
|
parkingDuration: number;
|
|
103
94
|
towingDuration: number;
|
|
95
|
+
totalMileageAtStart?: Long | undefined;
|
|
96
|
+
totalMileageAtFinish?: Long | undefined;
|
|
104
97
|
}
|
|
105
98
|
export interface AreaModule {
|
|
106
99
|
starts: AreaEvent;
|
|
@@ -183,7 +176,6 @@ export declare const FlowEvent: MessageFns<FlowEvent>;
|
|
|
183
176
|
export declare const FlowModule: MessageFns<FlowModule>;
|
|
184
177
|
export declare const DefaultBackground: MessageFns<DefaultBackground>;
|
|
185
178
|
export declare const PayambarBackground: MessageFns<PayambarBackground>;
|
|
186
|
-
export declare const PayambarBackground_Item: MessageFns<PayambarBackground_Item>;
|
|
187
179
|
export declare const TaneshBackground: MessageFns<TaneshBackground>;
|
|
188
180
|
export declare const TaneshBackground_Item: MessageFns<TaneshBackground_Item>;
|
|
189
181
|
export declare const AreaModule: MessageFns<AreaModule>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow.d.ts","sourceRoot":"","sources":["../../../src/fatehan/activities/workflow.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,IAAI,MAAM,MAAM,CAAC;AAGxB,eAAO,MAAM,eAAe,2BAA2B,CAAC;AAExD,oBAAY,YAAY;IACtB,OAAO,IAAI;IACX,OAAO,IAAI;IACX,QAAQ,IAAI;IACZ,OAAO,IAAI;IACX,YAAY,KAAK;CAClB;AAED,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,GAA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C,CAAC,CAAC,CAAC,CAAC;CAAE,GAAG;KAAG,CAAC,IAAI,OAAO,CAAC,MAAM,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,GAAG,KAAK;CAAE,CAAC;AAgCnG,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.NotificationTrigger = exports.TaneshReport = exports.PayambarReport = exports.DefaultReport = exports.DeviceModule = exports.AreaModule = exports.TaneshBackground_Item = exports.TaneshBackground = exports.
|
|
11
|
+
exports.NotificationTrigger = exports.TaneshReport = exports.PayambarReport = exports.DefaultReport = exports.DeviceModule = exports.AreaModule = exports.TaneshBackground_Item = exports.TaneshBackground = exports.PayambarBackground = exports.DefaultBackground = exports.FlowModule = exports.FlowEvent = exports.Flow = exports.WorkflowTask = exports.Workflow = exports.NotificationTrigger_Via = exports.FlowEvent_TriggerEvent = exports.AreaEvent = exports.WorkflowStat = exports.protobufPackage = void 0;
|
|
12
12
|
exports.workflowStatFromJSON = workflowStatFromJSON;
|
|
13
13
|
exports.workflowStatToJSON = workflowStatToJSON;
|
|
14
14
|
exports.areaEventFromJSON = areaEventFromJSON;
|
|
@@ -362,6 +362,9 @@ function createBaseWorkflowTask() {
|
|
|
362
362
|
expiresAt: undefined,
|
|
363
363
|
createdAt: undefined,
|
|
364
364
|
updatedAt: undefined,
|
|
365
|
+
createdBy: undefined,
|
|
366
|
+
confirmedAt: undefined,
|
|
367
|
+
rejectedAt: undefined,
|
|
365
368
|
};
|
|
366
369
|
}
|
|
367
370
|
exports.WorkflowTask = {
|
|
@@ -402,6 +405,15 @@ exports.WorkflowTask = {
|
|
|
402
405
|
if (message.updatedAt !== undefined) {
|
|
403
406
|
timestamp_1.Timestamp.encode(toTimestamp(message.updatedAt), writer.uint32(74).fork()).join();
|
|
404
407
|
}
|
|
408
|
+
if (message.createdBy !== undefined) {
|
|
409
|
+
writer.uint32(104).uint64(message.createdBy.toString());
|
|
410
|
+
}
|
|
411
|
+
if (message.confirmedAt !== undefined) {
|
|
412
|
+
timestamp_1.Timestamp.encode(toTimestamp(message.confirmedAt), writer.uint32(114).fork()).join();
|
|
413
|
+
}
|
|
414
|
+
if (message.rejectedAt !== undefined) {
|
|
415
|
+
timestamp_1.Timestamp.encode(toTimestamp(message.rejectedAt), writer.uint32(122).fork()).join();
|
|
416
|
+
}
|
|
405
417
|
return writer;
|
|
406
418
|
},
|
|
407
419
|
decode(input, length) {
|
|
@@ -495,6 +507,27 @@ exports.WorkflowTask = {
|
|
|
495
507
|
message.updatedAt = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
|
|
496
508
|
continue;
|
|
497
509
|
}
|
|
510
|
+
case 13: {
|
|
511
|
+
if (tag !== 104) {
|
|
512
|
+
break;
|
|
513
|
+
}
|
|
514
|
+
message.createdBy = long_1.default.fromString(reader.uint64().toString(), true);
|
|
515
|
+
continue;
|
|
516
|
+
}
|
|
517
|
+
case 14: {
|
|
518
|
+
if (tag !== 114) {
|
|
519
|
+
break;
|
|
520
|
+
}
|
|
521
|
+
message.confirmedAt = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
|
|
522
|
+
continue;
|
|
523
|
+
}
|
|
524
|
+
case 15: {
|
|
525
|
+
if (tag !== 122) {
|
|
526
|
+
break;
|
|
527
|
+
}
|
|
528
|
+
message.rejectedAt = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
|
|
529
|
+
continue;
|
|
530
|
+
}
|
|
498
531
|
}
|
|
499
532
|
if ((tag & 7) === 4 || tag === 0) {
|
|
500
533
|
break;
|
|
@@ -517,6 +550,9 @@ exports.WorkflowTask = {
|
|
|
517
550
|
expiresAt: isSet(object.expires_at) ? fromJsonTimestamp(object.expires_at) : undefined,
|
|
518
551
|
createdAt: isSet(object.created_at) ? fromJsonTimestamp(object.created_at) : undefined,
|
|
519
552
|
updatedAt: isSet(object.updated_at) ? fromJsonTimestamp(object.updated_at) : undefined,
|
|
553
|
+
createdBy: isSet(object.created_by) ? long_1.default.fromValue(object.created_by) : undefined,
|
|
554
|
+
confirmedAt: isSet(object.confirmed_at) ? fromJsonTimestamp(object.confirmed_at) : undefined,
|
|
555
|
+
rejectedAt: isSet(object.rejected_at) ? fromJsonTimestamp(object.rejected_at) : undefined,
|
|
520
556
|
};
|
|
521
557
|
},
|
|
522
558
|
toJSON(message) {
|
|
@@ -557,13 +593,22 @@ exports.WorkflowTask = {
|
|
|
557
593
|
if (message.updatedAt !== undefined) {
|
|
558
594
|
obj.updated_at = message.updatedAt.toISOString();
|
|
559
595
|
}
|
|
596
|
+
if (message.createdBy !== undefined) {
|
|
597
|
+
obj.created_by = (message.createdBy || long_1.default.UZERO).toString();
|
|
598
|
+
}
|
|
599
|
+
if (message.confirmedAt !== undefined) {
|
|
600
|
+
obj.confirmed_at = message.confirmedAt.toISOString();
|
|
601
|
+
}
|
|
602
|
+
if (message.rejectedAt !== undefined) {
|
|
603
|
+
obj.rejected_at = message.rejectedAt.toISOString();
|
|
604
|
+
}
|
|
560
605
|
return obj;
|
|
561
606
|
},
|
|
562
607
|
create(base) {
|
|
563
608
|
return exports.WorkflowTask.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
564
609
|
},
|
|
565
610
|
fromPartial(object) {
|
|
566
|
-
var _a, _b, _c, _d, _e, _f;
|
|
611
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
567
612
|
const message = createBaseWorkflowTask();
|
|
568
613
|
message.id = (object.id !== undefined && object.id !== null) ? long_1.default.fromValue(object.id) : long_1.default.UZERO;
|
|
569
614
|
message.organizationId = (object.organizationId !== undefined && object.organizationId !== null)
|
|
@@ -585,6 +630,11 @@ exports.WorkflowTask = {
|
|
|
585
630
|
message.expiresAt = (_d = object.expiresAt) !== null && _d !== void 0 ? _d : undefined;
|
|
586
631
|
message.createdAt = (_e = object.createdAt) !== null && _e !== void 0 ? _e : undefined;
|
|
587
632
|
message.updatedAt = (_f = object.updatedAt) !== null && _f !== void 0 ? _f : undefined;
|
|
633
|
+
message.createdBy = (object.createdBy !== undefined && object.createdBy !== null)
|
|
634
|
+
? long_1.default.fromValue(object.createdBy)
|
|
635
|
+
: undefined;
|
|
636
|
+
message.confirmedAt = (_g = object.confirmedAt) !== null && _g !== void 0 ? _g : undefined;
|
|
637
|
+
message.rejectedAt = (_h = object.rejectedAt) !== null && _h !== void 0 ? _h : undefined;
|
|
588
638
|
return message;
|
|
589
639
|
},
|
|
590
640
|
};
|
|
@@ -1007,7 +1057,7 @@ exports.DefaultBackground = {
|
|
|
1007
1057
|
},
|
|
1008
1058
|
};
|
|
1009
1059
|
function createBasePayambarBackground() {
|
|
1010
|
-
return { movingDuration: 0, idlingDuration: 0, parkingDuration: 0, towingDuration: 0
|
|
1060
|
+
return { movingDuration: 0, idlingDuration: 0, parkingDuration: 0, towingDuration: 0 };
|
|
1011
1061
|
}
|
|
1012
1062
|
exports.PayambarBackground = {
|
|
1013
1063
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
@@ -1023,9 +1073,6 @@ exports.PayambarBackground = {
|
|
|
1023
1073
|
if (message.towingDuration !== 0) {
|
|
1024
1074
|
writer.uint32(40).uint32(message.towingDuration);
|
|
1025
1075
|
}
|
|
1026
|
-
for (const v of message.items) {
|
|
1027
|
-
exports.PayambarBackground_Item.encode(v, writer.uint32(10).fork()).join();
|
|
1028
|
-
}
|
|
1029
1076
|
return writer;
|
|
1030
1077
|
},
|
|
1031
1078
|
decode(input, length) {
|
|
@@ -1063,13 +1110,6 @@ exports.PayambarBackground = {
|
|
|
1063
1110
|
message.towingDuration = reader.uint32();
|
|
1064
1111
|
continue;
|
|
1065
1112
|
}
|
|
1066
|
-
case 1: {
|
|
1067
|
-
if (tag !== 10) {
|
|
1068
|
-
break;
|
|
1069
|
-
}
|
|
1070
|
-
message.items.push(exports.PayambarBackground_Item.decode(reader, reader.uint32()));
|
|
1071
|
-
continue;
|
|
1072
|
-
}
|
|
1073
1113
|
}
|
|
1074
1114
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1075
1115
|
break;
|
|
@@ -1084,13 +1124,9 @@ exports.PayambarBackground = {
|
|
|
1084
1124
|
idlingDuration: isSet(object.idling_duration) ? globalThis.Number(object.idling_duration) : 0,
|
|
1085
1125
|
parkingDuration: isSet(object.parking_duration) ? globalThis.Number(object.parking_duration) : 0,
|
|
1086
1126
|
towingDuration: isSet(object.towing_duration) ? globalThis.Number(object.towing_duration) : 0,
|
|
1087
|
-
items: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.items)
|
|
1088
|
-
? object.items.map((e) => exports.PayambarBackground_Item.fromJSON(e))
|
|
1089
|
-
: [],
|
|
1090
1127
|
};
|
|
1091
1128
|
},
|
|
1092
1129
|
toJSON(message) {
|
|
1093
|
-
var _a;
|
|
1094
1130
|
const obj = {};
|
|
1095
1131
|
if (message.movingDuration !== 0) {
|
|
1096
1132
|
obj.moving_duration = Math.round(message.movingDuration);
|
|
@@ -1104,190 +1140,18 @@ exports.PayambarBackground = {
|
|
|
1104
1140
|
if (message.towingDuration !== 0) {
|
|
1105
1141
|
obj.towing_duration = Math.round(message.towingDuration);
|
|
1106
1142
|
}
|
|
1107
|
-
if ((_a = message.items) === null || _a === void 0 ? void 0 : _a.length) {
|
|
1108
|
-
obj.items = message.items.map((e) => exports.PayambarBackground_Item.toJSON(e));
|
|
1109
|
-
}
|
|
1110
1143
|
return obj;
|
|
1111
1144
|
},
|
|
1112
1145
|
create(base) {
|
|
1113
1146
|
return exports.PayambarBackground.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1114
1147
|
},
|
|
1115
1148
|
fromPartial(object) {
|
|
1116
|
-
var _a, _b, _c, _d
|
|
1149
|
+
var _a, _b, _c, _d;
|
|
1117
1150
|
const message = createBasePayambarBackground();
|
|
1118
1151
|
message.movingDuration = (_a = object.movingDuration) !== null && _a !== void 0 ? _a : 0;
|
|
1119
1152
|
message.idlingDuration = (_b = object.idlingDuration) !== null && _b !== void 0 ? _b : 0;
|
|
1120
1153
|
message.parkingDuration = (_c = object.parkingDuration) !== null && _c !== void 0 ? _c : 0;
|
|
1121
1154
|
message.towingDuration = (_d = object.towingDuration) !== null && _d !== void 0 ? _d : 0;
|
|
1122
|
-
message.items = ((_e = object.items) === null || _e === void 0 ? void 0 : _e.map((e) => exports.PayambarBackground_Item.fromPartial(e))) || [];
|
|
1123
|
-
return message;
|
|
1124
|
-
},
|
|
1125
|
-
};
|
|
1126
|
-
function createBasePayambarBackground_Item() {
|
|
1127
|
-
return {
|
|
1128
|
-
latitude: 0,
|
|
1129
|
-
longitude: 0,
|
|
1130
|
-
fuelLevel: undefined,
|
|
1131
|
-
ble03Custom01: undefined,
|
|
1132
|
-
ble03Custom02: undefined,
|
|
1133
|
-
ble03Custom03: undefined,
|
|
1134
|
-
ble03Custom04: undefined,
|
|
1135
|
-
ble03Custom05: undefined,
|
|
1136
|
-
};
|
|
1137
|
-
}
|
|
1138
|
-
exports.PayambarBackground_Item = {
|
|
1139
|
-
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1140
|
-
if (message.latitude !== 0) {
|
|
1141
|
-
writer.uint32(13).float(message.latitude);
|
|
1142
|
-
}
|
|
1143
|
-
if (message.longitude !== 0) {
|
|
1144
|
-
writer.uint32(21).float(message.longitude);
|
|
1145
|
-
}
|
|
1146
|
-
if (message.fuelLevel !== undefined) {
|
|
1147
|
-
writer.uint32(24).uint32(message.fuelLevel);
|
|
1148
|
-
}
|
|
1149
|
-
if (message.ble03Custom01 !== undefined) {
|
|
1150
|
-
writer.uint32(34).bytes(message.ble03Custom01);
|
|
1151
|
-
}
|
|
1152
|
-
if (message.ble03Custom02 !== undefined) {
|
|
1153
|
-
writer.uint32(40).uint32(message.ble03Custom02);
|
|
1154
|
-
}
|
|
1155
|
-
if (message.ble03Custom03 !== undefined) {
|
|
1156
|
-
writer.uint32(48).uint32(message.ble03Custom03);
|
|
1157
|
-
}
|
|
1158
|
-
if (message.ble03Custom04 !== undefined) {
|
|
1159
|
-
writer.uint32(56).uint32(message.ble03Custom04);
|
|
1160
|
-
}
|
|
1161
|
-
if (message.ble03Custom05 !== undefined) {
|
|
1162
|
-
writer.uint32(64).uint32(message.ble03Custom05);
|
|
1163
|
-
}
|
|
1164
|
-
return writer;
|
|
1165
|
-
},
|
|
1166
|
-
decode(input, length) {
|
|
1167
|
-
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1168
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1169
|
-
const message = createBasePayambarBackground_Item();
|
|
1170
|
-
while (reader.pos < end) {
|
|
1171
|
-
const tag = reader.uint32();
|
|
1172
|
-
switch (tag >>> 3) {
|
|
1173
|
-
case 1: {
|
|
1174
|
-
if (tag !== 13) {
|
|
1175
|
-
break;
|
|
1176
|
-
}
|
|
1177
|
-
message.latitude = reader.float();
|
|
1178
|
-
continue;
|
|
1179
|
-
}
|
|
1180
|
-
case 2: {
|
|
1181
|
-
if (tag !== 21) {
|
|
1182
|
-
break;
|
|
1183
|
-
}
|
|
1184
|
-
message.longitude = reader.float();
|
|
1185
|
-
continue;
|
|
1186
|
-
}
|
|
1187
|
-
case 3: {
|
|
1188
|
-
if (tag !== 24) {
|
|
1189
|
-
break;
|
|
1190
|
-
}
|
|
1191
|
-
message.fuelLevel = reader.uint32();
|
|
1192
|
-
continue;
|
|
1193
|
-
}
|
|
1194
|
-
case 4: {
|
|
1195
|
-
if (tag !== 34) {
|
|
1196
|
-
break;
|
|
1197
|
-
}
|
|
1198
|
-
message.ble03Custom01 = reader.bytes();
|
|
1199
|
-
continue;
|
|
1200
|
-
}
|
|
1201
|
-
case 5: {
|
|
1202
|
-
if (tag !== 40) {
|
|
1203
|
-
break;
|
|
1204
|
-
}
|
|
1205
|
-
message.ble03Custom02 = reader.uint32();
|
|
1206
|
-
continue;
|
|
1207
|
-
}
|
|
1208
|
-
case 6: {
|
|
1209
|
-
if (tag !== 48) {
|
|
1210
|
-
break;
|
|
1211
|
-
}
|
|
1212
|
-
message.ble03Custom03 = reader.uint32();
|
|
1213
|
-
continue;
|
|
1214
|
-
}
|
|
1215
|
-
case 7: {
|
|
1216
|
-
if (tag !== 56) {
|
|
1217
|
-
break;
|
|
1218
|
-
}
|
|
1219
|
-
message.ble03Custom04 = reader.uint32();
|
|
1220
|
-
continue;
|
|
1221
|
-
}
|
|
1222
|
-
case 8: {
|
|
1223
|
-
if (tag !== 64) {
|
|
1224
|
-
break;
|
|
1225
|
-
}
|
|
1226
|
-
message.ble03Custom05 = reader.uint32();
|
|
1227
|
-
continue;
|
|
1228
|
-
}
|
|
1229
|
-
}
|
|
1230
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1231
|
-
break;
|
|
1232
|
-
}
|
|
1233
|
-
reader.skip(tag & 7);
|
|
1234
|
-
}
|
|
1235
|
-
return message;
|
|
1236
|
-
},
|
|
1237
|
-
fromJSON(object) {
|
|
1238
|
-
return {
|
|
1239
|
-
latitude: isSet(object.latitude) ? globalThis.Number(object.latitude) : 0,
|
|
1240
|
-
longitude: isSet(object.longitude) ? globalThis.Number(object.longitude) : 0,
|
|
1241
|
-
fuelLevel: isSet(object.fuel_level) ? globalThis.Number(object.fuel_level) : undefined,
|
|
1242
|
-
ble03Custom01: isSet(object.ble_03_custom_01) ? bytesFromBase64(object.ble_03_custom_01) : undefined,
|
|
1243
|
-
ble03Custom02: isSet(object.ble_03_custom_02) ? globalThis.Number(object.ble_03_custom_02) : undefined,
|
|
1244
|
-
ble03Custom03: isSet(object.ble_03_custom_03) ? globalThis.Number(object.ble_03_custom_03) : undefined,
|
|
1245
|
-
ble03Custom04: isSet(object.ble_03_custom_04) ? globalThis.Number(object.ble_03_custom_04) : undefined,
|
|
1246
|
-
ble03Custom05: isSet(object.ble_03_custom_05) ? globalThis.Number(object.ble_03_custom_05) : undefined,
|
|
1247
|
-
};
|
|
1248
|
-
},
|
|
1249
|
-
toJSON(message) {
|
|
1250
|
-
const obj = {};
|
|
1251
|
-
if (message.latitude !== 0) {
|
|
1252
|
-
obj.latitude = message.latitude;
|
|
1253
|
-
}
|
|
1254
|
-
if (message.longitude !== 0) {
|
|
1255
|
-
obj.longitude = message.longitude;
|
|
1256
|
-
}
|
|
1257
|
-
if (message.fuelLevel !== undefined) {
|
|
1258
|
-
obj.fuel_level = Math.round(message.fuelLevel);
|
|
1259
|
-
}
|
|
1260
|
-
if (message.ble03Custom01 !== undefined) {
|
|
1261
|
-
obj.ble_03_custom_01 = base64FromBytes(message.ble03Custom01);
|
|
1262
|
-
}
|
|
1263
|
-
if (message.ble03Custom02 !== undefined) {
|
|
1264
|
-
obj.ble_03_custom_02 = Math.round(message.ble03Custom02);
|
|
1265
|
-
}
|
|
1266
|
-
if (message.ble03Custom03 !== undefined) {
|
|
1267
|
-
obj.ble_03_custom_03 = Math.round(message.ble03Custom03);
|
|
1268
|
-
}
|
|
1269
|
-
if (message.ble03Custom04 !== undefined) {
|
|
1270
|
-
obj.ble_03_custom_04 = Math.round(message.ble03Custom04);
|
|
1271
|
-
}
|
|
1272
|
-
if (message.ble03Custom05 !== undefined) {
|
|
1273
|
-
obj.ble_03_custom_05 = Math.round(message.ble03Custom05);
|
|
1274
|
-
}
|
|
1275
|
-
return obj;
|
|
1276
|
-
},
|
|
1277
|
-
create(base) {
|
|
1278
|
-
return exports.PayambarBackground_Item.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1279
|
-
},
|
|
1280
|
-
fromPartial(object) {
|
|
1281
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1282
|
-
const message = createBasePayambarBackground_Item();
|
|
1283
|
-
message.latitude = (_a = object.latitude) !== null && _a !== void 0 ? _a : 0;
|
|
1284
|
-
message.longitude = (_b = object.longitude) !== null && _b !== void 0 ? _b : 0;
|
|
1285
|
-
message.fuelLevel = (_c = object.fuelLevel) !== null && _c !== void 0 ? _c : undefined;
|
|
1286
|
-
message.ble03Custom01 = (_d = object.ble03Custom01) !== null && _d !== void 0 ? _d : undefined;
|
|
1287
|
-
message.ble03Custom02 = (_e = object.ble03Custom02) !== null && _e !== void 0 ? _e : undefined;
|
|
1288
|
-
message.ble03Custom03 = (_f = object.ble03Custom03) !== null && _f !== void 0 ? _f : undefined;
|
|
1289
|
-
message.ble03Custom04 = (_g = object.ble03Custom04) !== null && _g !== void 0 ? _g : undefined;
|
|
1290
|
-
message.ble03Custom05 = (_h = object.ble03Custom05) !== null && _h !== void 0 ? _h : undefined;
|
|
1291
1155
|
return message;
|
|
1292
1156
|
},
|
|
1293
1157
|
};
|
|
@@ -1382,19 +1246,17 @@ exports.TaneshBackground = {
|
|
|
1382
1246
|
};
|
|
1383
1247
|
function createBaseTaneshBackground_Item() {
|
|
1384
1248
|
return {
|
|
1385
|
-
mileage: undefined,
|
|
1386
1249
|
duration: 0,
|
|
1387
1250
|
movingDuration: 0,
|
|
1388
1251
|
idlingDuration: 0,
|
|
1389
1252
|
parkingDuration: 0,
|
|
1390
1253
|
towingDuration: 0,
|
|
1254
|
+
totalMileageAtStart: undefined,
|
|
1255
|
+
totalMileageAtFinish: undefined,
|
|
1391
1256
|
};
|
|
1392
1257
|
}
|
|
1393
1258
|
exports.TaneshBackground_Item = {
|
|
1394
1259
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1395
|
-
if (message.mileage !== undefined) {
|
|
1396
|
-
writer.uint32(8).uint32(message.mileage);
|
|
1397
|
-
}
|
|
1398
1260
|
if (message.duration !== 0) {
|
|
1399
1261
|
writer.uint32(16).uint32(message.duration);
|
|
1400
1262
|
}
|
|
@@ -1410,6 +1272,12 @@ exports.TaneshBackground_Item = {
|
|
|
1410
1272
|
if (message.towingDuration !== 0) {
|
|
1411
1273
|
writer.uint32(48).uint32(message.towingDuration);
|
|
1412
1274
|
}
|
|
1275
|
+
if (message.totalMileageAtStart !== undefined) {
|
|
1276
|
+
writer.uint32(56).uint64(message.totalMileageAtStart.toString());
|
|
1277
|
+
}
|
|
1278
|
+
if (message.totalMileageAtFinish !== undefined) {
|
|
1279
|
+
writer.uint32(64).uint64(message.totalMileageAtFinish.toString());
|
|
1280
|
+
}
|
|
1413
1281
|
return writer;
|
|
1414
1282
|
},
|
|
1415
1283
|
decode(input, length) {
|
|
@@ -1419,13 +1287,6 @@ exports.TaneshBackground_Item = {
|
|
|
1419
1287
|
while (reader.pos < end) {
|
|
1420
1288
|
const tag = reader.uint32();
|
|
1421
1289
|
switch (tag >>> 3) {
|
|
1422
|
-
case 1: {
|
|
1423
|
-
if (tag !== 8) {
|
|
1424
|
-
break;
|
|
1425
|
-
}
|
|
1426
|
-
message.mileage = reader.uint32();
|
|
1427
|
-
continue;
|
|
1428
|
-
}
|
|
1429
1290
|
case 2: {
|
|
1430
1291
|
if (tag !== 16) {
|
|
1431
1292
|
break;
|
|
@@ -1461,6 +1322,20 @@ exports.TaneshBackground_Item = {
|
|
|
1461
1322
|
message.towingDuration = reader.uint32();
|
|
1462
1323
|
continue;
|
|
1463
1324
|
}
|
|
1325
|
+
case 7: {
|
|
1326
|
+
if (tag !== 56) {
|
|
1327
|
+
break;
|
|
1328
|
+
}
|
|
1329
|
+
message.totalMileageAtStart = long_1.default.fromString(reader.uint64().toString(), true);
|
|
1330
|
+
continue;
|
|
1331
|
+
}
|
|
1332
|
+
case 8: {
|
|
1333
|
+
if (tag !== 64) {
|
|
1334
|
+
break;
|
|
1335
|
+
}
|
|
1336
|
+
message.totalMileageAtFinish = long_1.default.fromString(reader.uint64().toString(), true);
|
|
1337
|
+
continue;
|
|
1338
|
+
}
|
|
1464
1339
|
}
|
|
1465
1340
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1466
1341
|
break;
|
|
@@ -1471,19 +1346,21 @@ exports.TaneshBackground_Item = {
|
|
|
1471
1346
|
},
|
|
1472
1347
|
fromJSON(object) {
|
|
1473
1348
|
return {
|
|
1474
|
-
mileage: isSet(object.mileage) ? globalThis.Number(object.mileage) : undefined,
|
|
1475
1349
|
duration: isSet(object.duration) ? globalThis.Number(object.duration) : 0,
|
|
1476
1350
|
movingDuration: isSet(object.moving_duration) ? globalThis.Number(object.moving_duration) : 0,
|
|
1477
1351
|
idlingDuration: isSet(object.idling_duration) ? globalThis.Number(object.idling_duration) : 0,
|
|
1478
1352
|
parkingDuration: isSet(object.parking_duration) ? globalThis.Number(object.parking_duration) : 0,
|
|
1479
1353
|
towingDuration: isSet(object.towing_duration) ? globalThis.Number(object.towing_duration) : 0,
|
|
1354
|
+
totalMileageAtStart: isSet(object.total_mileage_at_start)
|
|
1355
|
+
? long_1.default.fromValue(object.total_mileage_at_start)
|
|
1356
|
+
: undefined,
|
|
1357
|
+
totalMileageAtFinish: isSet(object.total_mileage_at_finish)
|
|
1358
|
+
? long_1.default.fromValue(object.total_mileage_at_finish)
|
|
1359
|
+
: undefined,
|
|
1480
1360
|
};
|
|
1481
1361
|
},
|
|
1482
1362
|
toJSON(message) {
|
|
1483
1363
|
const obj = {};
|
|
1484
|
-
if (message.mileage !== undefined) {
|
|
1485
|
-
obj.mileage = Math.round(message.mileage);
|
|
1486
|
-
}
|
|
1487
1364
|
if (message.duration !== 0) {
|
|
1488
1365
|
obj.duration = Math.round(message.duration);
|
|
1489
1366
|
}
|
|
@@ -1499,20 +1376,31 @@ exports.TaneshBackground_Item = {
|
|
|
1499
1376
|
if (message.towingDuration !== 0) {
|
|
1500
1377
|
obj.towing_duration = Math.round(message.towingDuration);
|
|
1501
1378
|
}
|
|
1379
|
+
if (message.totalMileageAtStart !== undefined) {
|
|
1380
|
+
obj.total_mileage_at_start = (message.totalMileageAtStart || long_1.default.UZERO).toString();
|
|
1381
|
+
}
|
|
1382
|
+
if (message.totalMileageAtFinish !== undefined) {
|
|
1383
|
+
obj.total_mileage_at_finish = (message.totalMileageAtFinish || long_1.default.UZERO).toString();
|
|
1384
|
+
}
|
|
1502
1385
|
return obj;
|
|
1503
1386
|
},
|
|
1504
1387
|
create(base) {
|
|
1505
1388
|
return exports.TaneshBackground_Item.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1506
1389
|
},
|
|
1507
1390
|
fromPartial(object) {
|
|
1508
|
-
var _a, _b, _c, _d, _e
|
|
1391
|
+
var _a, _b, _c, _d, _e;
|
|
1509
1392
|
const message = createBaseTaneshBackground_Item();
|
|
1510
|
-
message.
|
|
1511
|
-
message.
|
|
1512
|
-
message.
|
|
1513
|
-
message.
|
|
1514
|
-
message.
|
|
1515
|
-
message.
|
|
1393
|
+
message.duration = (_a = object.duration) !== null && _a !== void 0 ? _a : 0;
|
|
1394
|
+
message.movingDuration = (_b = object.movingDuration) !== null && _b !== void 0 ? _b : 0;
|
|
1395
|
+
message.idlingDuration = (_c = object.idlingDuration) !== null && _c !== void 0 ? _c : 0;
|
|
1396
|
+
message.parkingDuration = (_d = object.parkingDuration) !== null && _d !== void 0 ? _d : 0;
|
|
1397
|
+
message.towingDuration = (_e = object.towingDuration) !== null && _e !== void 0 ? _e : 0;
|
|
1398
|
+
message.totalMileageAtStart = (object.totalMileageAtStart !== undefined && object.totalMileageAtStart !== null)
|
|
1399
|
+
? long_1.default.fromValue(object.totalMileageAtStart)
|
|
1400
|
+
: undefined;
|
|
1401
|
+
message.totalMileageAtFinish = (object.totalMileageAtFinish !== undefined && object.totalMileageAtFinish !== null)
|
|
1402
|
+
? long_1.default.fromValue(object.totalMileageAtFinish)
|
|
1403
|
+
: undefined;
|
|
1516
1404
|
return message;
|
|
1517
1405
|
},
|
|
1518
1406
|
};
|
|
@@ -2550,31 +2438,6 @@ exports.NotificationTrigger = {
|
|
|
2550
2438
|
return message;
|
|
2551
2439
|
},
|
|
2552
2440
|
};
|
|
2553
|
-
function bytesFromBase64(b64) {
|
|
2554
|
-
if (globalThis.Buffer) {
|
|
2555
|
-
return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
|
|
2556
|
-
}
|
|
2557
|
-
else {
|
|
2558
|
-
const bin = globalThis.atob(b64);
|
|
2559
|
-
const arr = new Uint8Array(bin.length);
|
|
2560
|
-
for (let i = 0; i < bin.length; ++i) {
|
|
2561
|
-
arr[i] = bin.charCodeAt(i);
|
|
2562
|
-
}
|
|
2563
|
-
return arr;
|
|
2564
|
-
}
|
|
2565
|
-
}
|
|
2566
|
-
function base64FromBytes(arr) {
|
|
2567
|
-
if (globalThis.Buffer) {
|
|
2568
|
-
return globalThis.Buffer.from(arr).toString("base64");
|
|
2569
|
-
}
|
|
2570
|
-
else {
|
|
2571
|
-
const bin = [];
|
|
2572
|
-
arr.forEach((byte) => {
|
|
2573
|
-
bin.push(globalThis.String.fromCharCode(byte));
|
|
2574
|
-
});
|
|
2575
|
-
return globalThis.btoa(bin.join(""));
|
|
2576
|
-
}
|
|
2577
|
-
}
|
|
2578
2441
|
function toTimestamp(date) {
|
|
2579
2442
|
const seconds = numberToLong(Math.trunc(date.getTime() / 1000));
|
|
2580
2443
|
const nanos = (date.getTime() % 1000) * 1000000;
|
|
@@ -709,6 +709,8 @@ export declare enum PermissionEnum {
|
|
|
709
709
|
WORKFLOW_TASK_SUB = 646,
|
|
710
710
|
WORKFLOW_TASK_ME = 647,
|
|
711
711
|
TRIP_WORK_FLOW_TASK_REJECT = 648,
|
|
712
|
+
MONITORING = 649,
|
|
713
|
+
DEBUGGING = 650,
|
|
712
714
|
UNRECOGNIZED = -1
|
|
713
715
|
}
|
|
714
716
|
export declare function permissionEnumFromJSON(object: any): PermissionEnum;
|
|
@@ -855,6 +857,16 @@ export interface PersonalAccessToken {
|
|
|
855
857
|
createdAt?: Date | undefined;
|
|
856
858
|
updatedAt?: Date | undefined;
|
|
857
859
|
}
|
|
860
|
+
export interface GoMoJWT {
|
|
861
|
+
userId: Long;
|
|
862
|
+
identityId: Long;
|
|
863
|
+
organizationId: Long;
|
|
864
|
+
personId: Long;
|
|
865
|
+
roleId: Long;
|
|
866
|
+
name?: string | undefined;
|
|
867
|
+
picture?: string | undefined;
|
|
868
|
+
permissions: PermissionEnum[];
|
|
869
|
+
}
|
|
858
870
|
export declare const Auth: MessageFns<Auth>;
|
|
859
871
|
export declare const User: MessageFns<User>;
|
|
860
872
|
export declare const Person: MessageFns<Person>;
|
|
@@ -865,6 +877,7 @@ export declare const Driver: MessageFns<Driver>;
|
|
|
865
877
|
export declare const Receiver: MessageFns<Receiver>;
|
|
866
878
|
export declare const Receiver_Token: MessageFns<Receiver_Token>;
|
|
867
879
|
export declare const PersonalAccessToken: MessageFns<PersonalAccessToken>;
|
|
880
|
+
export declare const GoMoJWT: MessageFns<GoMoJWT>;
|
|
868
881
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
869
882
|
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 {} ? {
|
|
870
883
|
[K in keyof T]?: DeepPartial<T[K]>;
|