@fatehan/tsrp 1.3.24 → 1.3.26
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 +24 -0
- package/dist/fatehan/activities/workflow.d.ts.map +1 -1
- package/dist/fatehan/activities/workflow.js +363 -1
- package/dist/fatehan/identities/authentication.d.ts +11 -0
- package/dist/fatehan/identities/authentication.d.ts.map +1 -1
- package/dist/fatehan/identities/authentication.js +169 -3
- package/dist/fatehan/identities/identities.d.ts +2 -1
- package/dist/fatehan/identities/identities.d.ts.map +1 -1
- package/dist/fatehan/identities/identities.js +11 -5
- package/dist/fatehan/models/models.d.ts +4 -0
- package/dist/fatehan/models/models.d.ts.map +1 -1
- package/dist/fatehan/models/models.js +33 -1
- package/dist/fatehan/services/api.d.ts +11 -0
- package/dist/fatehan/services/api.d.ts.map +1 -1
- package/dist/fatehan/services/api.js +189 -4
- package/package.json +2 -2
|
@@ -49,8 +49,10 @@ export interface Flow {
|
|
|
49
49
|
modules: FlowModule[];
|
|
50
50
|
defaultReport?: DefaultReport | undefined;
|
|
51
51
|
payambarReport?: PayambarReport | undefined;
|
|
52
|
+
taneshReport?: TaneshReport | undefined;
|
|
52
53
|
defaultBackground?: DefaultBackground | undefined;
|
|
53
54
|
payambarBackground?: PayambarBackground | undefined;
|
|
55
|
+
taneshBackground?: TaneshBackground | undefined;
|
|
54
56
|
}
|
|
55
57
|
export interface FlowEvent {
|
|
56
58
|
event: FlowEvent_TriggerEvent;
|
|
@@ -87,6 +89,19 @@ export interface PayambarBackground_Item {
|
|
|
87
89
|
ble03Custom04?: number | undefined;
|
|
88
90
|
ble03Custom05?: number | undefined;
|
|
89
91
|
}
|
|
92
|
+
export interface TaneshBackground {
|
|
93
|
+
mainAreaId: Long;
|
|
94
|
+
inside?: TaneshBackground_Item | undefined;
|
|
95
|
+
outside?: TaneshBackground_Item | undefined;
|
|
96
|
+
}
|
|
97
|
+
export interface TaneshBackground_Item {
|
|
98
|
+
mileage?: number | undefined;
|
|
99
|
+
duration: number;
|
|
100
|
+
movingDuration: number;
|
|
101
|
+
idlingDuration: number;
|
|
102
|
+
parkingDuration: number;
|
|
103
|
+
towingDuration: number;
|
|
104
|
+
}
|
|
90
105
|
export interface AreaModule {
|
|
91
106
|
starts: AreaEvent;
|
|
92
107
|
finishes: AreaEvent;
|
|
@@ -141,6 +156,12 @@ export interface PayambarReport {
|
|
|
141
156
|
duration: number;
|
|
142
157
|
fuelUsage: number;
|
|
143
158
|
}
|
|
159
|
+
export interface TaneshReport {
|
|
160
|
+
startedAt?: Date | undefined;
|
|
161
|
+
finishedAt?: Date | undefined;
|
|
162
|
+
mileage: number;
|
|
163
|
+
duration: number;
|
|
164
|
+
}
|
|
144
165
|
export interface NotificationTrigger {
|
|
145
166
|
userId: Long;
|
|
146
167
|
title: string;
|
|
@@ -163,10 +184,13 @@ export declare const FlowModule: MessageFns<FlowModule>;
|
|
|
163
184
|
export declare const DefaultBackground: MessageFns<DefaultBackground>;
|
|
164
185
|
export declare const PayambarBackground: MessageFns<PayambarBackground>;
|
|
165
186
|
export declare const PayambarBackground_Item: MessageFns<PayambarBackground_Item>;
|
|
187
|
+
export declare const TaneshBackground: MessageFns<TaneshBackground>;
|
|
188
|
+
export declare const TaneshBackground_Item: MessageFns<TaneshBackground_Item>;
|
|
166
189
|
export declare const AreaModule: MessageFns<AreaModule>;
|
|
167
190
|
export declare const DeviceModule: MessageFns<DeviceModule>;
|
|
168
191
|
export declare const DefaultReport: MessageFns<DefaultReport>;
|
|
169
192
|
export declare const PayambarReport: MessageFns<PayambarReport>;
|
|
193
|
+
export declare const TaneshReport: MessageFns<TaneshReport>;
|
|
170
194
|
export declare const NotificationTrigger: MessageFns<NotificationTrigger>;
|
|
171
195
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
172
196
|
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 {} ? {
|
|
@@ -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,GAAG,GAAG,YAAY,CAmB9D;AAED,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,YAAY,GAAG,MAAM,CAc/D;AAED,oBAAY,SAAS;IACnB,IAAI,IAAI;IACR,KAAK,IAAI;IACT,IAAI,IAAI;IACR,YAAY,KAAK;CAClB;AAED,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,GAAG,GAAG,SAAS,CAgBxD;AAED,wBAAgB,eAAe,CAAC,MAAM,EAAE,SAAS,GAAG,MAAM,CAYzD;AAED,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,IAAI,CAAC;IACT,cAAc,EAAE,IAAI,CAAC;IACrB,SAAS,EAAE,IAAI,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,IAAI,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC;IACxB,SAAS,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC;IAC7B,SAAS,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC;CAC9B;AAED,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,IAAI,CAAC;IACT,cAAc,EAAE,IAAI,CAAC;IACrB,UAAU,EAA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AC,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.PayambarReport = exports.DefaultReport = exports.DeviceModule = exports.AreaModule = exports.PayambarBackground_Item = 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;
|
|
11
|
+
exports.NotificationTrigger = exports.TaneshReport = exports.PayambarReport = exports.DefaultReport = exports.DeviceModule = exports.AreaModule = exports.TaneshBackground_Item = exports.TaneshBackground = exports.PayambarBackground_Item = 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;
|
|
@@ -596,8 +596,10 @@ function createBaseFlow() {
|
|
|
596
596
|
modules: [],
|
|
597
597
|
defaultReport: undefined,
|
|
598
598
|
payambarReport: undefined,
|
|
599
|
+
taneshReport: undefined,
|
|
599
600
|
defaultBackground: undefined,
|
|
600
601
|
payambarBackground: undefined,
|
|
602
|
+
taneshBackground: undefined,
|
|
601
603
|
};
|
|
602
604
|
}
|
|
603
605
|
exports.Flow = {
|
|
@@ -620,12 +622,18 @@ exports.Flow = {
|
|
|
620
622
|
if (message.payambarReport !== undefined) {
|
|
621
623
|
exports.PayambarReport.encode(message.payambarReport, writer.uint32(338).fork()).join();
|
|
622
624
|
}
|
|
625
|
+
if (message.taneshReport !== undefined) {
|
|
626
|
+
exports.TaneshReport.encode(message.taneshReport, writer.uint32(346).fork()).join();
|
|
627
|
+
}
|
|
623
628
|
if (message.defaultBackground !== undefined) {
|
|
624
629
|
exports.DefaultBackground.encode(message.defaultBackground, writer.uint32(490).fork()).join();
|
|
625
630
|
}
|
|
626
631
|
if (message.payambarBackground !== undefined) {
|
|
627
632
|
exports.PayambarBackground.encode(message.payambarBackground, writer.uint32(498).fork()).join();
|
|
628
633
|
}
|
|
634
|
+
if (message.taneshBackground !== undefined) {
|
|
635
|
+
exports.TaneshBackground.encode(message.taneshBackground, writer.uint32(506).fork()).join();
|
|
636
|
+
}
|
|
629
637
|
return writer;
|
|
630
638
|
},
|
|
631
639
|
decode(input, length) {
|
|
@@ -677,6 +685,13 @@ exports.Flow = {
|
|
|
677
685
|
message.payambarReport = exports.PayambarReport.decode(reader, reader.uint32());
|
|
678
686
|
continue;
|
|
679
687
|
}
|
|
688
|
+
case 43: {
|
|
689
|
+
if (tag !== 346) {
|
|
690
|
+
break;
|
|
691
|
+
}
|
|
692
|
+
message.taneshReport = exports.TaneshReport.decode(reader, reader.uint32());
|
|
693
|
+
continue;
|
|
694
|
+
}
|
|
680
695
|
case 61: {
|
|
681
696
|
if (tag !== 490) {
|
|
682
697
|
break;
|
|
@@ -691,6 +706,13 @@ exports.Flow = {
|
|
|
691
706
|
message.payambarBackground = exports.PayambarBackground.decode(reader, reader.uint32());
|
|
692
707
|
continue;
|
|
693
708
|
}
|
|
709
|
+
case 63: {
|
|
710
|
+
if (tag !== 506) {
|
|
711
|
+
break;
|
|
712
|
+
}
|
|
713
|
+
message.taneshBackground = exports.TaneshBackground.decode(reader, reader.uint32());
|
|
714
|
+
continue;
|
|
715
|
+
}
|
|
694
716
|
}
|
|
695
717
|
if ((tag & 7) === 4 || tag === 0) {
|
|
696
718
|
break;
|
|
@@ -707,12 +729,16 @@ exports.Flow = {
|
|
|
707
729
|
modules: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.modules) ? object.modules.map((e) => exports.FlowModule.fromJSON(e)) : [],
|
|
708
730
|
defaultReport: isSet(object.default_report) ? exports.DefaultReport.fromJSON(object.default_report) : undefined,
|
|
709
731
|
payambarReport: isSet(object.payambar_report) ? exports.PayambarReport.fromJSON(object.payambar_report) : undefined,
|
|
732
|
+
taneshReport: isSet(object.tanesh_report) ? exports.TaneshReport.fromJSON(object.tanesh_report) : undefined,
|
|
710
733
|
defaultBackground: isSet(object.default_background)
|
|
711
734
|
? exports.DefaultBackground.fromJSON(object.default_background)
|
|
712
735
|
: undefined,
|
|
713
736
|
payambarBackground: isSet(object.payambar_background)
|
|
714
737
|
? exports.PayambarBackground.fromJSON(object.payambar_background)
|
|
715
738
|
: undefined,
|
|
739
|
+
taneshBackground: isSet(object.tanesh_background)
|
|
740
|
+
? exports.TaneshBackground.fromJSON(object.tanesh_background)
|
|
741
|
+
: undefined,
|
|
716
742
|
};
|
|
717
743
|
},
|
|
718
744
|
toJSON(message) {
|
|
@@ -736,12 +762,18 @@ exports.Flow = {
|
|
|
736
762
|
if (message.payambarReport !== undefined) {
|
|
737
763
|
obj.payambar_report = exports.PayambarReport.toJSON(message.payambarReport);
|
|
738
764
|
}
|
|
765
|
+
if (message.taneshReport !== undefined) {
|
|
766
|
+
obj.tanesh_report = exports.TaneshReport.toJSON(message.taneshReport);
|
|
767
|
+
}
|
|
739
768
|
if (message.defaultBackground !== undefined) {
|
|
740
769
|
obj.default_background = exports.DefaultBackground.toJSON(message.defaultBackground);
|
|
741
770
|
}
|
|
742
771
|
if (message.payambarBackground !== undefined) {
|
|
743
772
|
obj.payambar_background = exports.PayambarBackground.toJSON(message.payambarBackground);
|
|
744
773
|
}
|
|
774
|
+
if (message.taneshBackground !== undefined) {
|
|
775
|
+
obj.tanesh_background = exports.TaneshBackground.toJSON(message.taneshBackground);
|
|
776
|
+
}
|
|
745
777
|
return obj;
|
|
746
778
|
},
|
|
747
779
|
create(base) {
|
|
@@ -762,12 +794,18 @@ exports.Flow = {
|
|
|
762
794
|
message.payambarReport = (object.payambarReport !== undefined && object.payambarReport !== null)
|
|
763
795
|
? exports.PayambarReport.fromPartial(object.payambarReport)
|
|
764
796
|
: undefined;
|
|
797
|
+
message.taneshReport = (object.taneshReport !== undefined && object.taneshReport !== null)
|
|
798
|
+
? exports.TaneshReport.fromPartial(object.taneshReport)
|
|
799
|
+
: undefined;
|
|
765
800
|
message.defaultBackground = (object.defaultBackground !== undefined && object.defaultBackground !== null)
|
|
766
801
|
? exports.DefaultBackground.fromPartial(object.defaultBackground)
|
|
767
802
|
: undefined;
|
|
768
803
|
message.payambarBackground = (object.payambarBackground !== undefined && object.payambarBackground !== null)
|
|
769
804
|
? exports.PayambarBackground.fromPartial(object.payambarBackground)
|
|
770
805
|
: undefined;
|
|
806
|
+
message.taneshBackground = (object.taneshBackground !== undefined && object.taneshBackground !== null)
|
|
807
|
+
? exports.TaneshBackground.fromPartial(object.taneshBackground)
|
|
808
|
+
: undefined;
|
|
771
809
|
return message;
|
|
772
810
|
},
|
|
773
811
|
};
|
|
@@ -1253,6 +1291,231 @@ exports.PayambarBackground_Item = {
|
|
|
1253
1291
|
return message;
|
|
1254
1292
|
},
|
|
1255
1293
|
};
|
|
1294
|
+
function createBaseTaneshBackground() {
|
|
1295
|
+
return { mainAreaId: long_1.default.UZERO, inside: undefined, outside: undefined };
|
|
1296
|
+
}
|
|
1297
|
+
exports.TaneshBackground = {
|
|
1298
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1299
|
+
if (!message.mainAreaId.equals(long_1.default.UZERO)) {
|
|
1300
|
+
writer.uint32(8).uint64(message.mainAreaId.toString());
|
|
1301
|
+
}
|
|
1302
|
+
if (message.inside !== undefined) {
|
|
1303
|
+
exports.TaneshBackground_Item.encode(message.inside, writer.uint32(18).fork()).join();
|
|
1304
|
+
}
|
|
1305
|
+
if (message.outside !== undefined) {
|
|
1306
|
+
exports.TaneshBackground_Item.encode(message.outside, writer.uint32(26).fork()).join();
|
|
1307
|
+
}
|
|
1308
|
+
return writer;
|
|
1309
|
+
},
|
|
1310
|
+
decode(input, length) {
|
|
1311
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1312
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1313
|
+
const message = createBaseTaneshBackground();
|
|
1314
|
+
while (reader.pos < end) {
|
|
1315
|
+
const tag = reader.uint32();
|
|
1316
|
+
switch (tag >>> 3) {
|
|
1317
|
+
case 1: {
|
|
1318
|
+
if (tag !== 8) {
|
|
1319
|
+
break;
|
|
1320
|
+
}
|
|
1321
|
+
message.mainAreaId = long_1.default.fromString(reader.uint64().toString(), true);
|
|
1322
|
+
continue;
|
|
1323
|
+
}
|
|
1324
|
+
case 2: {
|
|
1325
|
+
if (tag !== 18) {
|
|
1326
|
+
break;
|
|
1327
|
+
}
|
|
1328
|
+
message.inside = exports.TaneshBackground_Item.decode(reader, reader.uint32());
|
|
1329
|
+
continue;
|
|
1330
|
+
}
|
|
1331
|
+
case 3: {
|
|
1332
|
+
if (tag !== 26) {
|
|
1333
|
+
break;
|
|
1334
|
+
}
|
|
1335
|
+
message.outside = exports.TaneshBackground_Item.decode(reader, reader.uint32());
|
|
1336
|
+
continue;
|
|
1337
|
+
}
|
|
1338
|
+
}
|
|
1339
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1340
|
+
break;
|
|
1341
|
+
}
|
|
1342
|
+
reader.skip(tag & 7);
|
|
1343
|
+
}
|
|
1344
|
+
return message;
|
|
1345
|
+
},
|
|
1346
|
+
fromJSON(object) {
|
|
1347
|
+
return {
|
|
1348
|
+
mainAreaId: isSet(object.main_area_id) ? long_1.default.fromValue(object.main_area_id) : long_1.default.UZERO,
|
|
1349
|
+
inside: isSet(object.inside) ? exports.TaneshBackground_Item.fromJSON(object.inside) : undefined,
|
|
1350
|
+
outside: isSet(object.outside) ? exports.TaneshBackground_Item.fromJSON(object.outside) : undefined,
|
|
1351
|
+
};
|
|
1352
|
+
},
|
|
1353
|
+
toJSON(message) {
|
|
1354
|
+
const obj = {};
|
|
1355
|
+
if (!message.mainAreaId.equals(long_1.default.UZERO)) {
|
|
1356
|
+
obj.main_area_id = (message.mainAreaId || long_1.default.UZERO).toString();
|
|
1357
|
+
}
|
|
1358
|
+
if (message.inside !== undefined) {
|
|
1359
|
+
obj.inside = exports.TaneshBackground_Item.toJSON(message.inside);
|
|
1360
|
+
}
|
|
1361
|
+
if (message.outside !== undefined) {
|
|
1362
|
+
obj.outside = exports.TaneshBackground_Item.toJSON(message.outside);
|
|
1363
|
+
}
|
|
1364
|
+
return obj;
|
|
1365
|
+
},
|
|
1366
|
+
create(base) {
|
|
1367
|
+
return exports.TaneshBackground.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1368
|
+
},
|
|
1369
|
+
fromPartial(object) {
|
|
1370
|
+
const message = createBaseTaneshBackground();
|
|
1371
|
+
message.mainAreaId = (object.mainAreaId !== undefined && object.mainAreaId !== null)
|
|
1372
|
+
? long_1.default.fromValue(object.mainAreaId)
|
|
1373
|
+
: long_1.default.UZERO;
|
|
1374
|
+
message.inside = (object.inside !== undefined && object.inside !== null)
|
|
1375
|
+
? exports.TaneshBackground_Item.fromPartial(object.inside)
|
|
1376
|
+
: undefined;
|
|
1377
|
+
message.outside = (object.outside !== undefined && object.outside !== null)
|
|
1378
|
+
? exports.TaneshBackground_Item.fromPartial(object.outside)
|
|
1379
|
+
: undefined;
|
|
1380
|
+
return message;
|
|
1381
|
+
},
|
|
1382
|
+
};
|
|
1383
|
+
function createBaseTaneshBackground_Item() {
|
|
1384
|
+
return {
|
|
1385
|
+
mileage: undefined,
|
|
1386
|
+
duration: 0,
|
|
1387
|
+
movingDuration: 0,
|
|
1388
|
+
idlingDuration: 0,
|
|
1389
|
+
parkingDuration: 0,
|
|
1390
|
+
towingDuration: 0,
|
|
1391
|
+
};
|
|
1392
|
+
}
|
|
1393
|
+
exports.TaneshBackground_Item = {
|
|
1394
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1395
|
+
if (message.mileage !== undefined) {
|
|
1396
|
+
writer.uint32(8).uint32(message.mileage);
|
|
1397
|
+
}
|
|
1398
|
+
if (message.duration !== 0) {
|
|
1399
|
+
writer.uint32(16).uint32(message.duration);
|
|
1400
|
+
}
|
|
1401
|
+
if (message.movingDuration !== 0) {
|
|
1402
|
+
writer.uint32(24).uint32(message.movingDuration);
|
|
1403
|
+
}
|
|
1404
|
+
if (message.idlingDuration !== 0) {
|
|
1405
|
+
writer.uint32(32).uint32(message.idlingDuration);
|
|
1406
|
+
}
|
|
1407
|
+
if (message.parkingDuration !== 0) {
|
|
1408
|
+
writer.uint32(40).uint32(message.parkingDuration);
|
|
1409
|
+
}
|
|
1410
|
+
if (message.towingDuration !== 0) {
|
|
1411
|
+
writer.uint32(48).uint32(message.towingDuration);
|
|
1412
|
+
}
|
|
1413
|
+
return writer;
|
|
1414
|
+
},
|
|
1415
|
+
decode(input, length) {
|
|
1416
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1417
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1418
|
+
const message = createBaseTaneshBackground_Item();
|
|
1419
|
+
while (reader.pos < end) {
|
|
1420
|
+
const tag = reader.uint32();
|
|
1421
|
+
switch (tag >>> 3) {
|
|
1422
|
+
case 1: {
|
|
1423
|
+
if (tag !== 8) {
|
|
1424
|
+
break;
|
|
1425
|
+
}
|
|
1426
|
+
message.mileage = reader.uint32();
|
|
1427
|
+
continue;
|
|
1428
|
+
}
|
|
1429
|
+
case 2: {
|
|
1430
|
+
if (tag !== 16) {
|
|
1431
|
+
break;
|
|
1432
|
+
}
|
|
1433
|
+
message.duration = reader.uint32();
|
|
1434
|
+
continue;
|
|
1435
|
+
}
|
|
1436
|
+
case 3: {
|
|
1437
|
+
if (tag !== 24) {
|
|
1438
|
+
break;
|
|
1439
|
+
}
|
|
1440
|
+
message.movingDuration = reader.uint32();
|
|
1441
|
+
continue;
|
|
1442
|
+
}
|
|
1443
|
+
case 4: {
|
|
1444
|
+
if (tag !== 32) {
|
|
1445
|
+
break;
|
|
1446
|
+
}
|
|
1447
|
+
message.idlingDuration = reader.uint32();
|
|
1448
|
+
continue;
|
|
1449
|
+
}
|
|
1450
|
+
case 5: {
|
|
1451
|
+
if (tag !== 40) {
|
|
1452
|
+
break;
|
|
1453
|
+
}
|
|
1454
|
+
message.parkingDuration = reader.uint32();
|
|
1455
|
+
continue;
|
|
1456
|
+
}
|
|
1457
|
+
case 6: {
|
|
1458
|
+
if (tag !== 48) {
|
|
1459
|
+
break;
|
|
1460
|
+
}
|
|
1461
|
+
message.towingDuration = reader.uint32();
|
|
1462
|
+
continue;
|
|
1463
|
+
}
|
|
1464
|
+
}
|
|
1465
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1466
|
+
break;
|
|
1467
|
+
}
|
|
1468
|
+
reader.skip(tag & 7);
|
|
1469
|
+
}
|
|
1470
|
+
return message;
|
|
1471
|
+
},
|
|
1472
|
+
fromJSON(object) {
|
|
1473
|
+
return {
|
|
1474
|
+
mileage: isSet(object.mileage) ? globalThis.Number(object.mileage) : undefined,
|
|
1475
|
+
duration: isSet(object.duration) ? globalThis.Number(object.duration) : 0,
|
|
1476
|
+
movingDuration: isSet(object.moving_duration) ? globalThis.Number(object.moving_duration) : 0,
|
|
1477
|
+
idlingDuration: isSet(object.idling_duration) ? globalThis.Number(object.idling_duration) : 0,
|
|
1478
|
+
parkingDuration: isSet(object.parking_duration) ? globalThis.Number(object.parking_duration) : 0,
|
|
1479
|
+
towingDuration: isSet(object.towing_duration) ? globalThis.Number(object.towing_duration) : 0,
|
|
1480
|
+
};
|
|
1481
|
+
},
|
|
1482
|
+
toJSON(message) {
|
|
1483
|
+
const obj = {};
|
|
1484
|
+
if (message.mileage !== undefined) {
|
|
1485
|
+
obj.mileage = Math.round(message.mileage);
|
|
1486
|
+
}
|
|
1487
|
+
if (message.duration !== 0) {
|
|
1488
|
+
obj.duration = Math.round(message.duration);
|
|
1489
|
+
}
|
|
1490
|
+
if (message.movingDuration !== 0) {
|
|
1491
|
+
obj.moving_duration = Math.round(message.movingDuration);
|
|
1492
|
+
}
|
|
1493
|
+
if (message.idlingDuration !== 0) {
|
|
1494
|
+
obj.idling_duration = Math.round(message.idlingDuration);
|
|
1495
|
+
}
|
|
1496
|
+
if (message.parkingDuration !== 0) {
|
|
1497
|
+
obj.parking_duration = Math.round(message.parkingDuration);
|
|
1498
|
+
}
|
|
1499
|
+
if (message.towingDuration !== 0) {
|
|
1500
|
+
obj.towing_duration = Math.round(message.towingDuration);
|
|
1501
|
+
}
|
|
1502
|
+
return obj;
|
|
1503
|
+
},
|
|
1504
|
+
create(base) {
|
|
1505
|
+
return exports.TaneshBackground_Item.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1506
|
+
},
|
|
1507
|
+
fromPartial(object) {
|
|
1508
|
+
var _a, _b, _c, _d, _e, _f;
|
|
1509
|
+
const message = createBaseTaneshBackground_Item();
|
|
1510
|
+
message.mileage = (_a = object.mileage) !== null && _a !== void 0 ? _a : undefined;
|
|
1511
|
+
message.duration = (_b = object.duration) !== null && _b !== void 0 ? _b : 0;
|
|
1512
|
+
message.movingDuration = (_c = object.movingDuration) !== null && _c !== void 0 ? _c : 0;
|
|
1513
|
+
message.idlingDuration = (_d = object.idlingDuration) !== null && _d !== void 0 ? _d : 0;
|
|
1514
|
+
message.parkingDuration = (_e = object.parkingDuration) !== null && _e !== void 0 ? _e : 0;
|
|
1515
|
+
message.towingDuration = (_f = object.towingDuration) !== null && _f !== void 0 ? _f : 0;
|
|
1516
|
+
return message;
|
|
1517
|
+
},
|
|
1518
|
+
};
|
|
1256
1519
|
function createBaseAreaModule() {
|
|
1257
1520
|
return {
|
|
1258
1521
|
starts: 0,
|
|
@@ -2102,6 +2365,105 @@ exports.PayambarReport = {
|
|
|
2102
2365
|
return message;
|
|
2103
2366
|
},
|
|
2104
2367
|
};
|
|
2368
|
+
function createBaseTaneshReport() {
|
|
2369
|
+
return { startedAt: undefined, finishedAt: undefined, mileage: 0, duration: 0 };
|
|
2370
|
+
}
|
|
2371
|
+
exports.TaneshReport = {
|
|
2372
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2373
|
+
if (message.startedAt !== undefined) {
|
|
2374
|
+
timestamp_1.Timestamp.encode(toTimestamp(message.startedAt), writer.uint32(10).fork()).join();
|
|
2375
|
+
}
|
|
2376
|
+
if (message.finishedAt !== undefined) {
|
|
2377
|
+
timestamp_1.Timestamp.encode(toTimestamp(message.finishedAt), writer.uint32(18).fork()).join();
|
|
2378
|
+
}
|
|
2379
|
+
if (message.mileage !== 0) {
|
|
2380
|
+
writer.uint32(24).uint32(message.mileage);
|
|
2381
|
+
}
|
|
2382
|
+
if (message.duration !== 0) {
|
|
2383
|
+
writer.uint32(32).uint32(message.duration);
|
|
2384
|
+
}
|
|
2385
|
+
return writer;
|
|
2386
|
+
},
|
|
2387
|
+
decode(input, length) {
|
|
2388
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2389
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2390
|
+
const message = createBaseTaneshReport();
|
|
2391
|
+
while (reader.pos < end) {
|
|
2392
|
+
const tag = reader.uint32();
|
|
2393
|
+
switch (tag >>> 3) {
|
|
2394
|
+
case 1: {
|
|
2395
|
+
if (tag !== 10) {
|
|
2396
|
+
break;
|
|
2397
|
+
}
|
|
2398
|
+
message.startedAt = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
|
|
2399
|
+
continue;
|
|
2400
|
+
}
|
|
2401
|
+
case 2: {
|
|
2402
|
+
if (tag !== 18) {
|
|
2403
|
+
break;
|
|
2404
|
+
}
|
|
2405
|
+
message.finishedAt = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
|
|
2406
|
+
continue;
|
|
2407
|
+
}
|
|
2408
|
+
case 3: {
|
|
2409
|
+
if (tag !== 24) {
|
|
2410
|
+
break;
|
|
2411
|
+
}
|
|
2412
|
+
message.mileage = reader.uint32();
|
|
2413
|
+
continue;
|
|
2414
|
+
}
|
|
2415
|
+
case 4: {
|
|
2416
|
+
if (tag !== 32) {
|
|
2417
|
+
break;
|
|
2418
|
+
}
|
|
2419
|
+
message.duration = reader.uint32();
|
|
2420
|
+
continue;
|
|
2421
|
+
}
|
|
2422
|
+
}
|
|
2423
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2424
|
+
break;
|
|
2425
|
+
}
|
|
2426
|
+
reader.skip(tag & 7);
|
|
2427
|
+
}
|
|
2428
|
+
return message;
|
|
2429
|
+
},
|
|
2430
|
+
fromJSON(object) {
|
|
2431
|
+
return {
|
|
2432
|
+
startedAt: isSet(object.started_at) ? fromJsonTimestamp(object.started_at) : undefined,
|
|
2433
|
+
finishedAt: isSet(object.finished_at) ? fromJsonTimestamp(object.finished_at) : undefined,
|
|
2434
|
+
mileage: isSet(object.mileage) ? globalThis.Number(object.mileage) : 0,
|
|
2435
|
+
duration: isSet(object.duration) ? globalThis.Number(object.duration) : 0,
|
|
2436
|
+
};
|
|
2437
|
+
},
|
|
2438
|
+
toJSON(message) {
|
|
2439
|
+
const obj = {};
|
|
2440
|
+
if (message.startedAt !== undefined) {
|
|
2441
|
+
obj.started_at = message.startedAt.toISOString();
|
|
2442
|
+
}
|
|
2443
|
+
if (message.finishedAt !== undefined) {
|
|
2444
|
+
obj.finished_at = message.finishedAt.toISOString();
|
|
2445
|
+
}
|
|
2446
|
+
if (message.mileage !== 0) {
|
|
2447
|
+
obj.mileage = Math.round(message.mileage);
|
|
2448
|
+
}
|
|
2449
|
+
if (message.duration !== 0) {
|
|
2450
|
+
obj.duration = Math.round(message.duration);
|
|
2451
|
+
}
|
|
2452
|
+
return obj;
|
|
2453
|
+
},
|
|
2454
|
+
create(base) {
|
|
2455
|
+
return exports.TaneshReport.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
2456
|
+
},
|
|
2457
|
+
fromPartial(object) {
|
|
2458
|
+
var _a, _b, _c, _d;
|
|
2459
|
+
const message = createBaseTaneshReport();
|
|
2460
|
+
message.startedAt = (_a = object.startedAt) !== null && _a !== void 0 ? _a : undefined;
|
|
2461
|
+
message.finishedAt = (_b = object.finishedAt) !== null && _b !== void 0 ? _b : undefined;
|
|
2462
|
+
message.mileage = (_c = object.mileage) !== null && _c !== void 0 ? _c : 0;
|
|
2463
|
+
message.duration = (_d = object.duration) !== null && _d !== void 0 ? _d : 0;
|
|
2464
|
+
return message;
|
|
2465
|
+
},
|
|
2466
|
+
};
|
|
2105
2467
|
function createBaseNotificationTrigger() {
|
|
2106
2468
|
return { userId: long_1.default.UZERO, title: "", body: undefined };
|
|
2107
2469
|
}
|
|
@@ -28,6 +28,8 @@ export interface Identity {
|
|
|
28
28
|
phoneHash: Uint8Array;
|
|
29
29
|
encryptedEmail?: Uint8Array | undefined;
|
|
30
30
|
emailHash?: Uint8Array | undefined;
|
|
31
|
+
telegramUsername?: string | undefined;
|
|
32
|
+
telegramId?: Long | undefined;
|
|
31
33
|
}
|
|
32
34
|
export interface AccessToken {
|
|
33
35
|
id: Long;
|
|
@@ -58,6 +60,14 @@ export interface Credential {
|
|
|
58
60
|
created: Long;
|
|
59
61
|
token: Long;
|
|
60
62
|
domain: string;
|
|
63
|
+
passwordVerified: boolean;
|
|
64
|
+
}
|
|
65
|
+
export interface Password {
|
|
66
|
+
id: Long;
|
|
67
|
+
identityId: Long;
|
|
68
|
+
password: string;
|
|
69
|
+
expiresAt?: Date | undefined;
|
|
70
|
+
createdAt?: Date | undefined;
|
|
61
71
|
}
|
|
62
72
|
export declare const LogoutRequest: MessageFns<LogoutRequest>;
|
|
63
73
|
export declare const LogoutResponse: MessageFns<LogoutResponse>;
|
|
@@ -67,6 +77,7 @@ export declare const Identity: MessageFns<Identity>;
|
|
|
67
77
|
export declare const AccessToken: MessageFns<AccessToken>;
|
|
68
78
|
export declare const OtpRequest: MessageFns<OtpRequest>;
|
|
69
79
|
export declare const Credential: MessageFns<Credential>;
|
|
80
|
+
export declare const Password: MessageFns<Password>;
|
|
70
81
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
71
82
|
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 {} ? {
|
|
72
83
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authentication.d.ts","sourceRoot":"","sources":["../../../src/fatehan/identities/authentication.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,IAAI,MAAM,MAAM,CAAC;AAGxB,eAAO,MAAM,eAAe,2BAA2B,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