@fatehan/tsrp 1.4.6 → 1.4.8
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 +32 -0
- package/dist/fatehan/activities/workflow.d.ts.map +1 -1
- package/dist/fatehan/activities/workflow.js +440 -1
- package/dist/fatehan/financial/financial.d.ts +52 -0
- package/dist/fatehan/financial/financial.d.ts.map +1 -1
- package/dist/fatehan/financial/financial.js +823 -1
- package/dist/fatehan/reports/report.d.ts +1 -0
- package/dist/fatehan/reports/report.d.ts.map +1 -1
- package/dist/fatehan/reports/report.js +16 -0
- package/dist/fatehan/services/api.d.ts +63 -3
- package/dist/fatehan/services/api.d.ts.map +1 -1
- package/dist/fatehan/services/api.js +1004 -140
- package/dist/fatehan/services/repositories.d.ts +34 -1
- package/dist/fatehan/services/repositories.d.ts.map +1 -1
- package/dist/fatehan/services/repositories.js +487 -1
- package/package.json +1 -1
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
2
|
import Long from "long";
|
|
3
|
+
import { Area } from "../areas/area";
|
|
4
|
+
import { Device } from "../devices/devices";
|
|
3
5
|
export declare const protobufPackage = "com.fatehan.activities";
|
|
4
6
|
export declare enum WorkflowStat {
|
|
5
7
|
PENDING = 0,
|
|
@@ -123,6 +125,8 @@ export interface AreaModule {
|
|
|
123
125
|
towingDuration: number;
|
|
124
126
|
/** these are only accepted when both starts and finishes are not none * */
|
|
125
127
|
minimumAcceptedDuration?: number | undefined;
|
|
128
|
+
/** these fields are available only on reporting * */
|
|
129
|
+
area?: Area | undefined;
|
|
126
130
|
}
|
|
127
131
|
export interface DeviceModule {
|
|
128
132
|
starts: AreaEvent;
|
|
@@ -141,6 +145,8 @@ export interface DeviceModule {
|
|
|
141
145
|
duration: number;
|
|
142
146
|
/** these are only accepted when both starts and finishes are not none * */
|
|
143
147
|
minimumAcceptedDuration?: number | undefined;
|
|
148
|
+
/** these fields are available only on reporting * */
|
|
149
|
+
device?: Device | undefined;
|
|
144
150
|
}
|
|
145
151
|
export interface DefaultReport {
|
|
146
152
|
duration: number;
|
|
@@ -175,6 +181,29 @@ export declare enum NotificationTrigger_Via {
|
|
|
175
181
|
}
|
|
176
182
|
export declare function notificationTrigger_ViaFromJSON(object: any): NotificationTrigger_Via;
|
|
177
183
|
export declare function notificationTrigger_ViaToJSON(object: NotificationTrigger_Via): string;
|
|
184
|
+
export interface WorkflowDetail {
|
|
185
|
+
id: Long;
|
|
186
|
+
workflowId: Long;
|
|
187
|
+
organizationId: Long;
|
|
188
|
+
workflowTaskId: Long;
|
|
189
|
+
operationName?: string | undefined;
|
|
190
|
+
tanesh?: WorkflowDetail_Tanesh | undefined;
|
|
191
|
+
payambar?: WorkflowDetail_Payambar | undefined;
|
|
192
|
+
startedAt?: Date | undefined;
|
|
193
|
+
finishedAt?: Date | undefined;
|
|
194
|
+
}
|
|
195
|
+
export interface WorkflowDetail_Tanesh {
|
|
196
|
+
workTime?: number | undefined;
|
|
197
|
+
description?: string | undefined;
|
|
198
|
+
permitPicture?: string | undefined;
|
|
199
|
+
totalNightly?: number | undefined;
|
|
200
|
+
workOverTime?: number | undefined;
|
|
201
|
+
workNightOverTime?: number | undefined;
|
|
202
|
+
workOverTimeHoliday?: number | undefined;
|
|
203
|
+
workNightOverTimeHoliday?: number | undefined;
|
|
204
|
+
}
|
|
205
|
+
export interface WorkflowDetail_Payambar {
|
|
206
|
+
}
|
|
178
207
|
export declare const Workflow: MessageFns<Workflow>;
|
|
179
208
|
export declare const WorkflowTask: MessageFns<WorkflowTask>;
|
|
180
209
|
export declare const Flow: MessageFns<Flow>;
|
|
@@ -192,6 +221,9 @@ export declare const DefaultReport: MessageFns<DefaultReport>;
|
|
|
192
221
|
export declare const PayambarReport: MessageFns<PayambarReport>;
|
|
193
222
|
export declare const TaneshReport: MessageFns<TaneshReport>;
|
|
194
223
|
export declare const NotificationTrigger: MessageFns<NotificationTrigger>;
|
|
224
|
+
export declare const WorkflowDetail: MessageFns<WorkflowDetail>;
|
|
225
|
+
export declare const WorkflowDetail_Tanesh: MessageFns<WorkflowDetail_Tanesh>;
|
|
226
|
+
export declare const WorkflowDetail_Payambar: MessageFns<WorkflowDetail_Payambar>;
|
|
195
227
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
196
228
|
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 {} ? {
|
|
197
229
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
@@ -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;
|
|
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;AACxB,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACrC,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAG5C,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,oBA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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.PayambarBackground = exports.DefaultBackground = exports.FlowModule = exports.FlowEvent = exports.DefaultStatus = exports.TaneshStatus = exports.Flow = exports.WorkflowTask = exports.Workflow = exports.NotificationTrigger_Via = exports.FlowEvent_TriggerEvent = exports.AreaEvent = exports.WorkflowStat = exports.protobufPackage = void 0;
|
|
11
|
+
exports.WorkflowDetail_Payambar = exports.WorkflowDetail_Tanesh = exports.WorkflowDetail = 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.DefaultStatus = exports.TaneshStatus = 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;
|
|
@@ -20,6 +20,8 @@ exports.notificationTrigger_ViaToJSON = notificationTrigger_ViaToJSON;
|
|
|
20
20
|
/* eslint-disable */
|
|
21
21
|
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
22
22
|
const long_1 = __importDefault(require("long"));
|
|
23
|
+
const area_1 = require("../areas/area");
|
|
24
|
+
const devices_1 = require("../devices/devices");
|
|
23
25
|
const timestamp_1 = require("../google/protobuf/timestamp");
|
|
24
26
|
exports.protobufPackage = "com.fatehan.activities";
|
|
25
27
|
var WorkflowStat;
|
|
@@ -1535,6 +1537,7 @@ function createBaseAreaModule() {
|
|
|
1535
1537
|
parkingDuration: 0,
|
|
1536
1538
|
towingDuration: 0,
|
|
1537
1539
|
minimumAcceptedDuration: undefined,
|
|
1540
|
+
area: undefined,
|
|
1538
1541
|
};
|
|
1539
1542
|
}
|
|
1540
1543
|
exports.AreaModule = {
|
|
@@ -1596,6 +1599,9 @@ exports.AreaModule = {
|
|
|
1596
1599
|
if (message.minimumAcceptedDuration !== undefined) {
|
|
1597
1600
|
writer.uint32(104).uint32(message.minimumAcceptedDuration);
|
|
1598
1601
|
}
|
|
1602
|
+
if (message.area !== undefined) {
|
|
1603
|
+
area_1.Area.encode(message.area, writer.uint32(114).fork()).join();
|
|
1604
|
+
}
|
|
1599
1605
|
return writer;
|
|
1600
1606
|
},
|
|
1601
1607
|
decode(input, length) {
|
|
@@ -1738,6 +1744,13 @@ exports.AreaModule = {
|
|
|
1738
1744
|
message.minimumAcceptedDuration = reader.uint32();
|
|
1739
1745
|
continue;
|
|
1740
1746
|
}
|
|
1747
|
+
case 14: {
|
|
1748
|
+
if (tag !== 114) {
|
|
1749
|
+
break;
|
|
1750
|
+
}
|
|
1751
|
+
message.area = area_1.Area.decode(reader, reader.uint32());
|
|
1752
|
+
continue;
|
|
1753
|
+
}
|
|
1741
1754
|
}
|
|
1742
1755
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1743
1756
|
break;
|
|
@@ -1777,6 +1790,7 @@ exports.AreaModule = {
|
|
|
1777
1790
|
minimumAcceptedDuration: isSet(object.minimum_accepted_duration)
|
|
1778
1791
|
? globalThis.Number(object.minimum_accepted_duration)
|
|
1779
1792
|
: undefined,
|
|
1793
|
+
area: isSet(object.area) ? area_1.Area.fromJSON(object.area) : undefined,
|
|
1780
1794
|
};
|
|
1781
1795
|
},
|
|
1782
1796
|
toJSON(message) {
|
|
@@ -1838,6 +1852,9 @@ exports.AreaModule = {
|
|
|
1838
1852
|
if (message.minimumAcceptedDuration !== undefined) {
|
|
1839
1853
|
obj.minimum_accepted_duration = Math.round(message.minimumAcceptedDuration);
|
|
1840
1854
|
}
|
|
1855
|
+
if (message.area !== undefined) {
|
|
1856
|
+
obj.area = area_1.Area.toJSON(message.area);
|
|
1857
|
+
}
|
|
1841
1858
|
return obj;
|
|
1842
1859
|
},
|
|
1843
1860
|
create(base) {
|
|
@@ -1871,6 +1888,7 @@ exports.AreaModule = {
|
|
|
1871
1888
|
message.parkingDuration = (_p = object.parkingDuration) !== null && _p !== void 0 ? _p : 0;
|
|
1872
1889
|
message.towingDuration = (_q = object.towingDuration) !== null && _q !== void 0 ? _q : 0;
|
|
1873
1890
|
message.minimumAcceptedDuration = (_r = object.minimumAcceptedDuration) !== null && _r !== void 0 ? _r : undefined;
|
|
1891
|
+
message.area = (object.area !== undefined && object.area !== null) ? area_1.Area.fromPartial(object.area) : undefined;
|
|
1874
1892
|
return message;
|
|
1875
1893
|
},
|
|
1876
1894
|
};
|
|
@@ -1890,6 +1908,7 @@ function createBaseDeviceModule() {
|
|
|
1890
1908
|
countSpeed: 0,
|
|
1891
1909
|
duration: 0,
|
|
1892
1910
|
minimumAcceptedDuration: undefined,
|
|
1911
|
+
device: undefined,
|
|
1893
1912
|
};
|
|
1894
1913
|
}
|
|
1895
1914
|
exports.DeviceModule = {
|
|
@@ -1936,6 +1955,9 @@ exports.DeviceModule = {
|
|
|
1936
1955
|
if (message.minimumAcceptedDuration !== undefined) {
|
|
1937
1956
|
writer.uint32(104).uint32(message.minimumAcceptedDuration);
|
|
1938
1957
|
}
|
|
1958
|
+
if (message.device !== undefined) {
|
|
1959
|
+
devices_1.Device.encode(message.device, writer.uint32(122).fork()).join();
|
|
1960
|
+
}
|
|
1939
1961
|
return writer;
|
|
1940
1962
|
},
|
|
1941
1963
|
decode(input, length) {
|
|
@@ -2043,6 +2065,13 @@ exports.DeviceModule = {
|
|
|
2043
2065
|
message.minimumAcceptedDuration = reader.uint32();
|
|
2044
2066
|
continue;
|
|
2045
2067
|
}
|
|
2068
|
+
case 15: {
|
|
2069
|
+
if (tag !== 122) {
|
|
2070
|
+
break;
|
|
2071
|
+
}
|
|
2072
|
+
message.device = devices_1.Device.decode(reader, reader.uint32());
|
|
2073
|
+
continue;
|
|
2074
|
+
}
|
|
2046
2075
|
}
|
|
2047
2076
|
if ((tag & 7) === 4 || tag === 0) {
|
|
2048
2077
|
break;
|
|
@@ -2073,6 +2102,7 @@ exports.DeviceModule = {
|
|
|
2073
2102
|
minimumAcceptedDuration: isSet(object.minimum_accepted_duration)
|
|
2074
2103
|
? globalThis.Number(object.minimum_accepted_duration)
|
|
2075
2104
|
: undefined,
|
|
2105
|
+
device: isSet(object.device) ? devices_1.Device.fromJSON(object.device) : undefined,
|
|
2076
2106
|
};
|
|
2077
2107
|
},
|
|
2078
2108
|
toJSON(message) {
|
|
@@ -2119,6 +2149,9 @@ exports.DeviceModule = {
|
|
|
2119
2149
|
if (message.minimumAcceptedDuration !== undefined) {
|
|
2120
2150
|
obj.minimum_accepted_duration = Math.round(message.minimumAcceptedDuration);
|
|
2121
2151
|
}
|
|
2152
|
+
if (message.device !== undefined) {
|
|
2153
|
+
obj.device = devices_1.Device.toJSON(message.device);
|
|
2154
|
+
}
|
|
2122
2155
|
return obj;
|
|
2123
2156
|
},
|
|
2124
2157
|
create(base) {
|
|
@@ -2147,6 +2180,9 @@ exports.DeviceModule = {
|
|
|
2147
2180
|
message.countSpeed = (_j = object.countSpeed) !== null && _j !== void 0 ? _j : 0;
|
|
2148
2181
|
message.duration = (_k = object.duration) !== null && _k !== void 0 ? _k : 0;
|
|
2149
2182
|
message.minimumAcceptedDuration = (_l = object.minimumAcceptedDuration) !== null && _l !== void 0 ? _l : undefined;
|
|
2183
|
+
message.device = (object.device !== undefined && object.device !== null)
|
|
2184
|
+
? devices_1.Device.fromPartial(object.device)
|
|
2185
|
+
: undefined;
|
|
2150
2186
|
return message;
|
|
2151
2187
|
},
|
|
2152
2188
|
};
|
|
@@ -2548,6 +2584,409 @@ exports.NotificationTrigger = {
|
|
|
2548
2584
|
return message;
|
|
2549
2585
|
},
|
|
2550
2586
|
};
|
|
2587
|
+
function createBaseWorkflowDetail() {
|
|
2588
|
+
return {
|
|
2589
|
+
id: long_1.default.UZERO,
|
|
2590
|
+
workflowId: long_1.default.UZERO,
|
|
2591
|
+
organizationId: long_1.default.UZERO,
|
|
2592
|
+
workflowTaskId: long_1.default.UZERO,
|
|
2593
|
+
operationName: undefined,
|
|
2594
|
+
tanesh: undefined,
|
|
2595
|
+
payambar: undefined,
|
|
2596
|
+
startedAt: undefined,
|
|
2597
|
+
finishedAt: undefined,
|
|
2598
|
+
};
|
|
2599
|
+
}
|
|
2600
|
+
exports.WorkflowDetail = {
|
|
2601
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2602
|
+
if (!message.id.equals(long_1.default.UZERO)) {
|
|
2603
|
+
writer.uint32(8).uint64(message.id.toString());
|
|
2604
|
+
}
|
|
2605
|
+
if (!message.workflowId.equals(long_1.default.UZERO)) {
|
|
2606
|
+
writer.uint32(16).uint64(message.workflowId.toString());
|
|
2607
|
+
}
|
|
2608
|
+
if (!message.organizationId.equals(long_1.default.UZERO)) {
|
|
2609
|
+
writer.uint32(24).uint64(message.organizationId.toString());
|
|
2610
|
+
}
|
|
2611
|
+
if (!message.workflowTaskId.equals(long_1.default.UZERO)) {
|
|
2612
|
+
writer.uint32(32).uint64(message.workflowTaskId.toString());
|
|
2613
|
+
}
|
|
2614
|
+
if (message.operationName !== undefined) {
|
|
2615
|
+
writer.uint32(42).string(message.operationName);
|
|
2616
|
+
}
|
|
2617
|
+
if (message.tanesh !== undefined) {
|
|
2618
|
+
exports.WorkflowDetail_Tanesh.encode(message.tanesh, writer.uint32(90).fork()).join();
|
|
2619
|
+
}
|
|
2620
|
+
if (message.payambar !== undefined) {
|
|
2621
|
+
exports.WorkflowDetail_Payambar.encode(message.payambar, writer.uint32(98).fork()).join();
|
|
2622
|
+
}
|
|
2623
|
+
if (message.startedAt !== undefined) {
|
|
2624
|
+
timestamp_1.Timestamp.encode(toTimestamp(message.startedAt), writer.uint32(106).fork()).join();
|
|
2625
|
+
}
|
|
2626
|
+
if (message.finishedAt !== undefined) {
|
|
2627
|
+
timestamp_1.Timestamp.encode(toTimestamp(message.finishedAt), writer.uint32(114).fork()).join();
|
|
2628
|
+
}
|
|
2629
|
+
return writer;
|
|
2630
|
+
},
|
|
2631
|
+
decode(input, length) {
|
|
2632
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2633
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2634
|
+
const message = createBaseWorkflowDetail();
|
|
2635
|
+
while (reader.pos < end) {
|
|
2636
|
+
const tag = reader.uint32();
|
|
2637
|
+
switch (tag >>> 3) {
|
|
2638
|
+
case 1: {
|
|
2639
|
+
if (tag !== 8) {
|
|
2640
|
+
break;
|
|
2641
|
+
}
|
|
2642
|
+
message.id = long_1.default.fromString(reader.uint64().toString(), true);
|
|
2643
|
+
continue;
|
|
2644
|
+
}
|
|
2645
|
+
case 2: {
|
|
2646
|
+
if (tag !== 16) {
|
|
2647
|
+
break;
|
|
2648
|
+
}
|
|
2649
|
+
message.workflowId = long_1.default.fromString(reader.uint64().toString(), true);
|
|
2650
|
+
continue;
|
|
2651
|
+
}
|
|
2652
|
+
case 3: {
|
|
2653
|
+
if (tag !== 24) {
|
|
2654
|
+
break;
|
|
2655
|
+
}
|
|
2656
|
+
message.organizationId = long_1.default.fromString(reader.uint64().toString(), true);
|
|
2657
|
+
continue;
|
|
2658
|
+
}
|
|
2659
|
+
case 4: {
|
|
2660
|
+
if (tag !== 32) {
|
|
2661
|
+
break;
|
|
2662
|
+
}
|
|
2663
|
+
message.workflowTaskId = long_1.default.fromString(reader.uint64().toString(), true);
|
|
2664
|
+
continue;
|
|
2665
|
+
}
|
|
2666
|
+
case 5: {
|
|
2667
|
+
if (tag !== 42) {
|
|
2668
|
+
break;
|
|
2669
|
+
}
|
|
2670
|
+
message.operationName = reader.string();
|
|
2671
|
+
continue;
|
|
2672
|
+
}
|
|
2673
|
+
case 11: {
|
|
2674
|
+
if (tag !== 90) {
|
|
2675
|
+
break;
|
|
2676
|
+
}
|
|
2677
|
+
message.tanesh = exports.WorkflowDetail_Tanesh.decode(reader, reader.uint32());
|
|
2678
|
+
continue;
|
|
2679
|
+
}
|
|
2680
|
+
case 12: {
|
|
2681
|
+
if (tag !== 98) {
|
|
2682
|
+
break;
|
|
2683
|
+
}
|
|
2684
|
+
message.payambar = exports.WorkflowDetail_Payambar.decode(reader, reader.uint32());
|
|
2685
|
+
continue;
|
|
2686
|
+
}
|
|
2687
|
+
case 13: {
|
|
2688
|
+
if (tag !== 106) {
|
|
2689
|
+
break;
|
|
2690
|
+
}
|
|
2691
|
+
message.startedAt = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
|
|
2692
|
+
continue;
|
|
2693
|
+
}
|
|
2694
|
+
case 14: {
|
|
2695
|
+
if (tag !== 114) {
|
|
2696
|
+
break;
|
|
2697
|
+
}
|
|
2698
|
+
message.finishedAt = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
|
|
2699
|
+
continue;
|
|
2700
|
+
}
|
|
2701
|
+
}
|
|
2702
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2703
|
+
break;
|
|
2704
|
+
}
|
|
2705
|
+
reader.skip(tag & 7);
|
|
2706
|
+
}
|
|
2707
|
+
return message;
|
|
2708
|
+
},
|
|
2709
|
+
fromJSON(object) {
|
|
2710
|
+
return {
|
|
2711
|
+
id: isSet(object.id) ? long_1.default.fromValue(object.id) : long_1.default.UZERO,
|
|
2712
|
+
workflowId: isSet(object.workflowId) ? long_1.default.fromValue(object.workflowId) : long_1.default.UZERO,
|
|
2713
|
+
organizationId: isSet(object.organizationId) ? long_1.default.fromValue(object.organizationId) : long_1.default.UZERO,
|
|
2714
|
+
workflowTaskId: isSet(object.workflowTaskId) ? long_1.default.fromValue(object.workflowTaskId) : long_1.default.UZERO,
|
|
2715
|
+
operationName: isSet(object.operationName) ? globalThis.String(object.operationName) : undefined,
|
|
2716
|
+
tanesh: isSet(object.tanesh) ? exports.WorkflowDetail_Tanesh.fromJSON(object.tanesh) : undefined,
|
|
2717
|
+
payambar: isSet(object.payambar) ? exports.WorkflowDetail_Payambar.fromJSON(object.payambar) : undefined,
|
|
2718
|
+
startedAt: isSet(object.started_at) ? fromJsonTimestamp(object.started_at) : undefined,
|
|
2719
|
+
finishedAt: isSet(object.finished_at) ? fromJsonTimestamp(object.finished_at) : undefined,
|
|
2720
|
+
};
|
|
2721
|
+
},
|
|
2722
|
+
toJSON(message) {
|
|
2723
|
+
const obj = {};
|
|
2724
|
+
if (!message.id.equals(long_1.default.UZERO)) {
|
|
2725
|
+
obj.id = (message.id || long_1.default.UZERO).toString();
|
|
2726
|
+
}
|
|
2727
|
+
if (!message.workflowId.equals(long_1.default.UZERO)) {
|
|
2728
|
+
obj.workflowId = (message.workflowId || long_1.default.UZERO).toString();
|
|
2729
|
+
}
|
|
2730
|
+
if (!message.organizationId.equals(long_1.default.UZERO)) {
|
|
2731
|
+
obj.organizationId = (message.organizationId || long_1.default.UZERO).toString();
|
|
2732
|
+
}
|
|
2733
|
+
if (!message.workflowTaskId.equals(long_1.default.UZERO)) {
|
|
2734
|
+
obj.workflowTaskId = (message.workflowTaskId || long_1.default.UZERO).toString();
|
|
2735
|
+
}
|
|
2736
|
+
if (message.operationName !== undefined) {
|
|
2737
|
+
obj.operationName = message.operationName;
|
|
2738
|
+
}
|
|
2739
|
+
if (message.tanesh !== undefined) {
|
|
2740
|
+
obj.tanesh = exports.WorkflowDetail_Tanesh.toJSON(message.tanesh);
|
|
2741
|
+
}
|
|
2742
|
+
if (message.payambar !== undefined) {
|
|
2743
|
+
obj.payambar = exports.WorkflowDetail_Payambar.toJSON(message.payambar);
|
|
2744
|
+
}
|
|
2745
|
+
if (message.startedAt !== undefined) {
|
|
2746
|
+
obj.started_at = message.startedAt.toISOString();
|
|
2747
|
+
}
|
|
2748
|
+
if (message.finishedAt !== undefined) {
|
|
2749
|
+
obj.finished_at = message.finishedAt.toISOString();
|
|
2750
|
+
}
|
|
2751
|
+
return obj;
|
|
2752
|
+
},
|
|
2753
|
+
create(base) {
|
|
2754
|
+
return exports.WorkflowDetail.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
2755
|
+
},
|
|
2756
|
+
fromPartial(object) {
|
|
2757
|
+
var _a, _b, _c;
|
|
2758
|
+
const message = createBaseWorkflowDetail();
|
|
2759
|
+
message.id = (object.id !== undefined && object.id !== null) ? long_1.default.fromValue(object.id) : long_1.default.UZERO;
|
|
2760
|
+
message.workflowId = (object.workflowId !== undefined && object.workflowId !== null)
|
|
2761
|
+
? long_1.default.fromValue(object.workflowId)
|
|
2762
|
+
: long_1.default.UZERO;
|
|
2763
|
+
message.organizationId = (object.organizationId !== undefined && object.organizationId !== null)
|
|
2764
|
+
? long_1.default.fromValue(object.organizationId)
|
|
2765
|
+
: long_1.default.UZERO;
|
|
2766
|
+
message.workflowTaskId = (object.workflowTaskId !== undefined && object.workflowTaskId !== null)
|
|
2767
|
+
? long_1.default.fromValue(object.workflowTaskId)
|
|
2768
|
+
: long_1.default.UZERO;
|
|
2769
|
+
message.operationName = (_a = object.operationName) !== null && _a !== void 0 ? _a : undefined;
|
|
2770
|
+
message.tanesh = (object.tanesh !== undefined && object.tanesh !== null)
|
|
2771
|
+
? exports.WorkflowDetail_Tanesh.fromPartial(object.tanesh)
|
|
2772
|
+
: undefined;
|
|
2773
|
+
message.payambar = (object.payambar !== undefined && object.payambar !== null)
|
|
2774
|
+
? exports.WorkflowDetail_Payambar.fromPartial(object.payambar)
|
|
2775
|
+
: undefined;
|
|
2776
|
+
message.startedAt = (_b = object.startedAt) !== null && _b !== void 0 ? _b : undefined;
|
|
2777
|
+
message.finishedAt = (_c = object.finishedAt) !== null && _c !== void 0 ? _c : undefined;
|
|
2778
|
+
return message;
|
|
2779
|
+
},
|
|
2780
|
+
};
|
|
2781
|
+
function createBaseWorkflowDetail_Tanesh() {
|
|
2782
|
+
return {
|
|
2783
|
+
workTime: undefined,
|
|
2784
|
+
description: undefined,
|
|
2785
|
+
permitPicture: undefined,
|
|
2786
|
+
totalNightly: undefined,
|
|
2787
|
+
workOverTime: undefined,
|
|
2788
|
+
workNightOverTime: undefined,
|
|
2789
|
+
workOverTimeHoliday: undefined,
|
|
2790
|
+
workNightOverTimeHoliday: undefined,
|
|
2791
|
+
};
|
|
2792
|
+
}
|
|
2793
|
+
exports.WorkflowDetail_Tanesh = {
|
|
2794
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2795
|
+
if (message.workTime !== undefined) {
|
|
2796
|
+
writer.uint32(8).uint32(message.workTime);
|
|
2797
|
+
}
|
|
2798
|
+
if (message.description !== undefined) {
|
|
2799
|
+
writer.uint32(18).string(message.description);
|
|
2800
|
+
}
|
|
2801
|
+
if (message.permitPicture !== undefined) {
|
|
2802
|
+
writer.uint32(26).string(message.permitPicture);
|
|
2803
|
+
}
|
|
2804
|
+
if (message.totalNightly !== undefined) {
|
|
2805
|
+
writer.uint32(32).uint32(message.totalNightly);
|
|
2806
|
+
}
|
|
2807
|
+
if (message.workOverTime !== undefined) {
|
|
2808
|
+
writer.uint32(40).uint32(message.workOverTime);
|
|
2809
|
+
}
|
|
2810
|
+
if (message.workNightOverTime !== undefined) {
|
|
2811
|
+
writer.uint32(48).uint32(message.workNightOverTime);
|
|
2812
|
+
}
|
|
2813
|
+
if (message.workOverTimeHoliday !== undefined) {
|
|
2814
|
+
writer.uint32(56).uint32(message.workOverTimeHoliday);
|
|
2815
|
+
}
|
|
2816
|
+
if (message.workNightOverTimeHoliday !== undefined) {
|
|
2817
|
+
writer.uint32(64).uint32(message.workNightOverTimeHoliday);
|
|
2818
|
+
}
|
|
2819
|
+
return writer;
|
|
2820
|
+
},
|
|
2821
|
+
decode(input, length) {
|
|
2822
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2823
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2824
|
+
const message = createBaseWorkflowDetail_Tanesh();
|
|
2825
|
+
while (reader.pos < end) {
|
|
2826
|
+
const tag = reader.uint32();
|
|
2827
|
+
switch (tag >>> 3) {
|
|
2828
|
+
case 1: {
|
|
2829
|
+
if (tag !== 8) {
|
|
2830
|
+
break;
|
|
2831
|
+
}
|
|
2832
|
+
message.workTime = reader.uint32();
|
|
2833
|
+
continue;
|
|
2834
|
+
}
|
|
2835
|
+
case 2: {
|
|
2836
|
+
if (tag !== 18) {
|
|
2837
|
+
break;
|
|
2838
|
+
}
|
|
2839
|
+
message.description = reader.string();
|
|
2840
|
+
continue;
|
|
2841
|
+
}
|
|
2842
|
+
case 3: {
|
|
2843
|
+
if (tag !== 26) {
|
|
2844
|
+
break;
|
|
2845
|
+
}
|
|
2846
|
+
message.permitPicture = reader.string();
|
|
2847
|
+
continue;
|
|
2848
|
+
}
|
|
2849
|
+
case 4: {
|
|
2850
|
+
if (tag !== 32) {
|
|
2851
|
+
break;
|
|
2852
|
+
}
|
|
2853
|
+
message.totalNightly = reader.uint32();
|
|
2854
|
+
continue;
|
|
2855
|
+
}
|
|
2856
|
+
case 5: {
|
|
2857
|
+
if (tag !== 40) {
|
|
2858
|
+
break;
|
|
2859
|
+
}
|
|
2860
|
+
message.workOverTime = reader.uint32();
|
|
2861
|
+
continue;
|
|
2862
|
+
}
|
|
2863
|
+
case 6: {
|
|
2864
|
+
if (tag !== 48) {
|
|
2865
|
+
break;
|
|
2866
|
+
}
|
|
2867
|
+
message.workNightOverTime = reader.uint32();
|
|
2868
|
+
continue;
|
|
2869
|
+
}
|
|
2870
|
+
case 7: {
|
|
2871
|
+
if (tag !== 56) {
|
|
2872
|
+
break;
|
|
2873
|
+
}
|
|
2874
|
+
message.workOverTimeHoliday = reader.uint32();
|
|
2875
|
+
continue;
|
|
2876
|
+
}
|
|
2877
|
+
case 8: {
|
|
2878
|
+
if (tag !== 64) {
|
|
2879
|
+
break;
|
|
2880
|
+
}
|
|
2881
|
+
message.workNightOverTimeHoliday = reader.uint32();
|
|
2882
|
+
continue;
|
|
2883
|
+
}
|
|
2884
|
+
}
|
|
2885
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2886
|
+
break;
|
|
2887
|
+
}
|
|
2888
|
+
reader.skip(tag & 7);
|
|
2889
|
+
}
|
|
2890
|
+
return message;
|
|
2891
|
+
},
|
|
2892
|
+
fromJSON(object) {
|
|
2893
|
+
return {
|
|
2894
|
+
workTime: isSet(object.workTime) ? globalThis.Number(object.workTime) : undefined,
|
|
2895
|
+
description: isSet(object.description) ? globalThis.String(object.description) : undefined,
|
|
2896
|
+
permitPicture: isSet(object.permit_picture) ? globalThis.String(object.permit_picture) : undefined,
|
|
2897
|
+
totalNightly: isSet(object.totalNightly) ? globalThis.Number(object.totalNightly) : undefined,
|
|
2898
|
+
workOverTime: isSet(object.workOverTime) ? globalThis.Number(object.workOverTime) : undefined,
|
|
2899
|
+
workNightOverTime: isSet(object.workNightOverTime) ? globalThis.Number(object.workNightOverTime) : undefined,
|
|
2900
|
+
workOverTimeHoliday: isSet(object.workOverTimeHoliday)
|
|
2901
|
+
? globalThis.Number(object.workOverTimeHoliday)
|
|
2902
|
+
: undefined,
|
|
2903
|
+
workNightOverTimeHoliday: isSet(object.workNightOverTimeHoliday)
|
|
2904
|
+
? globalThis.Number(object.workNightOverTimeHoliday)
|
|
2905
|
+
: undefined,
|
|
2906
|
+
};
|
|
2907
|
+
},
|
|
2908
|
+
toJSON(message) {
|
|
2909
|
+
const obj = {};
|
|
2910
|
+
if (message.workTime !== undefined) {
|
|
2911
|
+
obj.workTime = Math.round(message.workTime);
|
|
2912
|
+
}
|
|
2913
|
+
if (message.description !== undefined) {
|
|
2914
|
+
obj.description = message.description;
|
|
2915
|
+
}
|
|
2916
|
+
if (message.permitPicture !== undefined) {
|
|
2917
|
+
obj.permit_picture = message.permitPicture;
|
|
2918
|
+
}
|
|
2919
|
+
if (message.totalNightly !== undefined) {
|
|
2920
|
+
obj.totalNightly = Math.round(message.totalNightly);
|
|
2921
|
+
}
|
|
2922
|
+
if (message.workOverTime !== undefined) {
|
|
2923
|
+
obj.workOverTime = Math.round(message.workOverTime);
|
|
2924
|
+
}
|
|
2925
|
+
if (message.workNightOverTime !== undefined) {
|
|
2926
|
+
obj.workNightOverTime = Math.round(message.workNightOverTime);
|
|
2927
|
+
}
|
|
2928
|
+
if (message.workOverTimeHoliday !== undefined) {
|
|
2929
|
+
obj.workOverTimeHoliday = Math.round(message.workOverTimeHoliday);
|
|
2930
|
+
}
|
|
2931
|
+
if (message.workNightOverTimeHoliday !== undefined) {
|
|
2932
|
+
obj.workNightOverTimeHoliday = Math.round(message.workNightOverTimeHoliday);
|
|
2933
|
+
}
|
|
2934
|
+
return obj;
|
|
2935
|
+
},
|
|
2936
|
+
create(base) {
|
|
2937
|
+
return exports.WorkflowDetail_Tanesh.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
2938
|
+
},
|
|
2939
|
+
fromPartial(object) {
|
|
2940
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
2941
|
+
const message = createBaseWorkflowDetail_Tanesh();
|
|
2942
|
+
message.workTime = (_a = object.workTime) !== null && _a !== void 0 ? _a : undefined;
|
|
2943
|
+
message.description = (_b = object.description) !== null && _b !== void 0 ? _b : undefined;
|
|
2944
|
+
message.permitPicture = (_c = object.permitPicture) !== null && _c !== void 0 ? _c : undefined;
|
|
2945
|
+
message.totalNightly = (_d = object.totalNightly) !== null && _d !== void 0 ? _d : undefined;
|
|
2946
|
+
message.workOverTime = (_e = object.workOverTime) !== null && _e !== void 0 ? _e : undefined;
|
|
2947
|
+
message.workNightOverTime = (_f = object.workNightOverTime) !== null && _f !== void 0 ? _f : undefined;
|
|
2948
|
+
message.workOverTimeHoliday = (_g = object.workOverTimeHoliday) !== null && _g !== void 0 ? _g : undefined;
|
|
2949
|
+
message.workNightOverTimeHoliday = (_h = object.workNightOverTimeHoliday) !== null && _h !== void 0 ? _h : undefined;
|
|
2950
|
+
return message;
|
|
2951
|
+
},
|
|
2952
|
+
};
|
|
2953
|
+
function createBaseWorkflowDetail_Payambar() {
|
|
2954
|
+
return {};
|
|
2955
|
+
}
|
|
2956
|
+
exports.WorkflowDetail_Payambar = {
|
|
2957
|
+
encode(_, writer = new wire_1.BinaryWriter()) {
|
|
2958
|
+
return writer;
|
|
2959
|
+
},
|
|
2960
|
+
decode(input, length) {
|
|
2961
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2962
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2963
|
+
const message = createBaseWorkflowDetail_Payambar();
|
|
2964
|
+
while (reader.pos < end) {
|
|
2965
|
+
const tag = reader.uint32();
|
|
2966
|
+
switch (tag >>> 3) {
|
|
2967
|
+
}
|
|
2968
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2969
|
+
break;
|
|
2970
|
+
}
|
|
2971
|
+
reader.skip(tag & 7);
|
|
2972
|
+
}
|
|
2973
|
+
return message;
|
|
2974
|
+
},
|
|
2975
|
+
fromJSON(_) {
|
|
2976
|
+
return {};
|
|
2977
|
+
},
|
|
2978
|
+
toJSON(_) {
|
|
2979
|
+
const obj = {};
|
|
2980
|
+
return obj;
|
|
2981
|
+
},
|
|
2982
|
+
create(base) {
|
|
2983
|
+
return exports.WorkflowDetail_Payambar.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
2984
|
+
},
|
|
2985
|
+
fromPartial(_) {
|
|
2986
|
+
const message = createBaseWorkflowDetail_Payambar();
|
|
2987
|
+
return message;
|
|
2988
|
+
},
|
|
2989
|
+
};
|
|
2551
2990
|
function toTimestamp(date) {
|
|
2552
2991
|
const seconds = numberToLong(Math.trunc(date.getTime() / 1000));
|
|
2553
2992
|
const nanos = (date.getTime() % 1000) * 1000000;
|