@fatehan/tsrp 1.6.43 → 1.6.46
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/logs.d.ts +65 -0
- package/dist/fatehan/activities/logs.d.ts.map +1 -0
- package/dist/fatehan/activities/logs.js +471 -0
- package/dist/fatehan/activities/workshift.d.ts +1 -0
- package/dist/fatehan/activities/workshift.d.ts.map +1 -1
- package/dist/fatehan/activities/workshift.js +12 -0
- package/dist/fatehan/devices/maintenance.d.ts +1 -1
- package/dist/fatehan/devices/maintenance.d.ts.map +1 -1
- package/dist/fatehan/devices/maintenance.js +6 -4
- 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 +63 -0
- package/dist/fatehan/packets/dataModel.d.ts +16 -0
- package/dist/fatehan/packets/dataModel.d.ts.map +1 -1
- package/dist/fatehan/packets/dataModel.js +192 -0
- package/dist/fatehan/services/api.d.ts +2 -0
- package/dist/fatehan/services/api.d.ts.map +1 -1
- package/dist/fatehan/services/api.js +28 -0
- package/dist/fatehan/stream/stream.d.ts +1 -0
- package/dist/fatehan/stream/stream.d.ts.map +1 -1
- package/dist/fatehan/stream/stream.js +14 -1
- package/dist/fatehan/trips/trip.d.ts +21 -0
- package/dist/fatehan/trips/trip.d.ts.map +1 -1
- package/dist/fatehan/trips/trip.js +241 -0
- package/package.json +1 -1
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
+
import Long from "long";
|
|
3
|
+
import { Duration } from "../google/protobuf/duration";
|
|
4
|
+
export declare const protobufPackage = "com.fatehan.logs";
|
|
5
|
+
export interface ActivityLog {
|
|
6
|
+
id: string;
|
|
7
|
+
userId: Long;
|
|
8
|
+
organizationId: Long;
|
|
9
|
+
partnerId: Long;
|
|
10
|
+
ip: string;
|
|
11
|
+
userAgent: string;
|
|
12
|
+
report: string;
|
|
13
|
+
startedAt: Date | undefined;
|
|
14
|
+
finishedAt: Date | undefined;
|
|
15
|
+
duration: Duration | undefined;
|
|
16
|
+
requestPayload: Uint8Array;
|
|
17
|
+
status: ActivityLog_Result;
|
|
18
|
+
result: string;
|
|
19
|
+
}
|
|
20
|
+
export declare enum ActivityLog_Result {
|
|
21
|
+
PENDING = 0,
|
|
22
|
+
SUCCEEDED = 1,
|
|
23
|
+
FAILED = 2,
|
|
24
|
+
UNRECOGNIZED = -1
|
|
25
|
+
}
|
|
26
|
+
export interface ActivityLogRequest {
|
|
27
|
+
userId: Long;
|
|
28
|
+
organizationId: Long;
|
|
29
|
+
partnerId?: Long | undefined;
|
|
30
|
+
from?: Date | undefined;
|
|
31
|
+
to?: Date | undefined;
|
|
32
|
+
report?: string | undefined;
|
|
33
|
+
ip?: string | undefined;
|
|
34
|
+
page: number;
|
|
35
|
+
perPage?: number | undefined;
|
|
36
|
+
}
|
|
37
|
+
export interface ActivityLogResponse {
|
|
38
|
+
total: Long;
|
|
39
|
+
records: number;
|
|
40
|
+
cost: number;
|
|
41
|
+
currentPage: Long;
|
|
42
|
+
lastPage: Long;
|
|
43
|
+
data: ActivityLog[];
|
|
44
|
+
}
|
|
45
|
+
export declare const ActivityLog: MessageFns<ActivityLog>;
|
|
46
|
+
export declare const ActivityLogRequest: MessageFns<ActivityLogRequest>;
|
|
47
|
+
export declare const ActivityLogResponse: MessageFns<ActivityLogResponse>;
|
|
48
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
49
|
+
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 {} ? {
|
|
50
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
51
|
+
} : Partial<T>;
|
|
52
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
53
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
54
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
55
|
+
} & {
|
|
56
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
57
|
+
};
|
|
58
|
+
export interface MessageFns<T> {
|
|
59
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
60
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
61
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
62
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
63
|
+
}
|
|
64
|
+
export {};
|
|
65
|
+
//# sourceMappingURL=logs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logs.d.ts","sourceRoot":"","sources":["../../../src/fatehan/activities/logs.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAGvD,eAAO,MAAM,eAAe,qBAAqB,CAAC;AAElD,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,IAAI,CAAC;IACb,cAAc,EAAE,IAAI,CAAC;IACrB,SAAS,EAAE,IAAI,CAAC;IAChB,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,IAAI,GAAG,SAAS,CAAC;IAC5B,UAAU,EAAE,IAAI,GAAG,SAAS,CAAC;IAC7B,QAAQ,EAAE,QAAQ,GAAG,SAAS,CAAC;IAC/B,cAAc,EAAE,UAAU,CAAC;IAC3B,MAAM,EAAE,kBAAkB,CAAC;IAC3B,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,oBAAY,kBAAk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471 @@
|
|
|
1
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
|
+
// versions:
|
|
3
|
+
// protoc-gen-ts_proto v2.11.8
|
|
4
|
+
// protoc v7.34.1
|
|
5
|
+
// source: activities/logs.proto
|
|
6
|
+
/* eslint-disable */
|
|
7
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
8
|
+
import Long from "long";
|
|
9
|
+
import { Duration } from "../google/protobuf/duration";
|
|
10
|
+
import { Timestamp } from "../google/protobuf/timestamp";
|
|
11
|
+
export const protobufPackage = "com.fatehan.logs";
|
|
12
|
+
export var ActivityLog_Result;
|
|
13
|
+
(function (ActivityLog_Result) {
|
|
14
|
+
ActivityLog_Result[ActivityLog_Result["PENDING"] = 0] = "PENDING";
|
|
15
|
+
ActivityLog_Result[ActivityLog_Result["SUCCEEDED"] = 1] = "SUCCEEDED";
|
|
16
|
+
ActivityLog_Result[ActivityLog_Result["FAILED"] = 2] = "FAILED";
|
|
17
|
+
ActivityLog_Result[ActivityLog_Result["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
18
|
+
})(ActivityLog_Result || (ActivityLog_Result = {}));
|
|
19
|
+
function createBaseActivityLog() {
|
|
20
|
+
return {
|
|
21
|
+
id: "",
|
|
22
|
+
userId: Long.UZERO,
|
|
23
|
+
organizationId: Long.UZERO,
|
|
24
|
+
partnerId: Long.UZERO,
|
|
25
|
+
ip: "",
|
|
26
|
+
userAgent: "",
|
|
27
|
+
report: "",
|
|
28
|
+
startedAt: undefined,
|
|
29
|
+
finishedAt: undefined,
|
|
30
|
+
duration: undefined,
|
|
31
|
+
requestPayload: new Uint8Array(0),
|
|
32
|
+
status: 0,
|
|
33
|
+
result: "",
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export const ActivityLog = {
|
|
37
|
+
encode(message, writer = new BinaryWriter()) {
|
|
38
|
+
if (message.id !== "") {
|
|
39
|
+
writer.uint32(10).string(message.id);
|
|
40
|
+
}
|
|
41
|
+
if (!message.userId.equals(Long.UZERO)) {
|
|
42
|
+
writer.uint32(16).uint64(message.userId.toString());
|
|
43
|
+
}
|
|
44
|
+
if (!message.organizationId.equals(Long.UZERO)) {
|
|
45
|
+
writer.uint32(24).uint64(message.organizationId.toString());
|
|
46
|
+
}
|
|
47
|
+
if (!message.partnerId.equals(Long.UZERO)) {
|
|
48
|
+
writer.uint32(32).uint64(message.partnerId.toString());
|
|
49
|
+
}
|
|
50
|
+
if (message.ip !== "") {
|
|
51
|
+
writer.uint32(42).string(message.ip);
|
|
52
|
+
}
|
|
53
|
+
if (message.userAgent !== "") {
|
|
54
|
+
writer.uint32(50).string(message.userAgent);
|
|
55
|
+
}
|
|
56
|
+
if (message.report !== "") {
|
|
57
|
+
writer.uint32(58).string(message.report);
|
|
58
|
+
}
|
|
59
|
+
if (message.startedAt !== undefined) {
|
|
60
|
+
Timestamp.encode(toTimestamp(message.startedAt), writer.uint32(66).fork()).join();
|
|
61
|
+
}
|
|
62
|
+
if (message.finishedAt !== undefined) {
|
|
63
|
+
Timestamp.encode(toTimestamp(message.finishedAt), writer.uint32(74).fork()).join();
|
|
64
|
+
}
|
|
65
|
+
if (message.duration !== undefined) {
|
|
66
|
+
Duration.encode(message.duration, writer.uint32(82).fork()).join();
|
|
67
|
+
}
|
|
68
|
+
if (message.requestPayload.length !== 0) {
|
|
69
|
+
writer.uint32(90).bytes(message.requestPayload);
|
|
70
|
+
}
|
|
71
|
+
if (message.status !== 0) {
|
|
72
|
+
writer.uint32(96).int32(message.status);
|
|
73
|
+
}
|
|
74
|
+
if (message.result !== "") {
|
|
75
|
+
writer.uint32(106).string(message.result);
|
|
76
|
+
}
|
|
77
|
+
return writer;
|
|
78
|
+
},
|
|
79
|
+
decode(input, length) {
|
|
80
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
81
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
82
|
+
const message = createBaseActivityLog();
|
|
83
|
+
while (reader.pos < end) {
|
|
84
|
+
const tag = reader.uint32();
|
|
85
|
+
switch (tag >>> 3) {
|
|
86
|
+
case 1: {
|
|
87
|
+
if (tag !== 10) {
|
|
88
|
+
break;
|
|
89
|
+
}
|
|
90
|
+
message.id = reader.string();
|
|
91
|
+
continue;
|
|
92
|
+
}
|
|
93
|
+
case 2: {
|
|
94
|
+
if (tag !== 16) {
|
|
95
|
+
break;
|
|
96
|
+
}
|
|
97
|
+
message.userId = Long.fromString(reader.uint64().toString(), true);
|
|
98
|
+
continue;
|
|
99
|
+
}
|
|
100
|
+
case 3: {
|
|
101
|
+
if (tag !== 24) {
|
|
102
|
+
break;
|
|
103
|
+
}
|
|
104
|
+
message.organizationId = Long.fromString(reader.uint64().toString(), true);
|
|
105
|
+
continue;
|
|
106
|
+
}
|
|
107
|
+
case 4: {
|
|
108
|
+
if (tag !== 32) {
|
|
109
|
+
break;
|
|
110
|
+
}
|
|
111
|
+
message.partnerId = Long.fromString(reader.uint64().toString(), true);
|
|
112
|
+
continue;
|
|
113
|
+
}
|
|
114
|
+
case 5: {
|
|
115
|
+
if (tag !== 42) {
|
|
116
|
+
break;
|
|
117
|
+
}
|
|
118
|
+
message.ip = reader.string();
|
|
119
|
+
continue;
|
|
120
|
+
}
|
|
121
|
+
case 6: {
|
|
122
|
+
if (tag !== 50) {
|
|
123
|
+
break;
|
|
124
|
+
}
|
|
125
|
+
message.userAgent = reader.string();
|
|
126
|
+
continue;
|
|
127
|
+
}
|
|
128
|
+
case 7: {
|
|
129
|
+
if (tag !== 58) {
|
|
130
|
+
break;
|
|
131
|
+
}
|
|
132
|
+
message.report = reader.string();
|
|
133
|
+
continue;
|
|
134
|
+
}
|
|
135
|
+
case 8: {
|
|
136
|
+
if (tag !== 66) {
|
|
137
|
+
break;
|
|
138
|
+
}
|
|
139
|
+
message.startedAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
140
|
+
continue;
|
|
141
|
+
}
|
|
142
|
+
case 9: {
|
|
143
|
+
if (tag !== 74) {
|
|
144
|
+
break;
|
|
145
|
+
}
|
|
146
|
+
message.finishedAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
147
|
+
continue;
|
|
148
|
+
}
|
|
149
|
+
case 10: {
|
|
150
|
+
if (tag !== 82) {
|
|
151
|
+
break;
|
|
152
|
+
}
|
|
153
|
+
message.duration = Duration.decode(reader, reader.uint32());
|
|
154
|
+
continue;
|
|
155
|
+
}
|
|
156
|
+
case 11: {
|
|
157
|
+
if (tag !== 90) {
|
|
158
|
+
break;
|
|
159
|
+
}
|
|
160
|
+
message.requestPayload = reader.bytes();
|
|
161
|
+
continue;
|
|
162
|
+
}
|
|
163
|
+
case 12: {
|
|
164
|
+
if (tag !== 96) {
|
|
165
|
+
break;
|
|
166
|
+
}
|
|
167
|
+
message.status = reader.int32();
|
|
168
|
+
continue;
|
|
169
|
+
}
|
|
170
|
+
case 13: {
|
|
171
|
+
if (tag !== 106) {
|
|
172
|
+
break;
|
|
173
|
+
}
|
|
174
|
+
message.result = reader.string();
|
|
175
|
+
continue;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
179
|
+
break;
|
|
180
|
+
}
|
|
181
|
+
reader.skip(tag & 7);
|
|
182
|
+
}
|
|
183
|
+
return message;
|
|
184
|
+
},
|
|
185
|
+
create(base) {
|
|
186
|
+
return ActivityLog.fromPartial(base ?? {});
|
|
187
|
+
},
|
|
188
|
+
fromPartial(object) {
|
|
189
|
+
const message = createBaseActivityLog();
|
|
190
|
+
message.id = object.id ?? "";
|
|
191
|
+
message.userId = (object.userId !== undefined && object.userId !== null)
|
|
192
|
+
? Long.fromValue(object.userId)
|
|
193
|
+
: Long.UZERO;
|
|
194
|
+
message.organizationId = (object.organizationId !== undefined && object.organizationId !== null)
|
|
195
|
+
? Long.fromValue(object.organizationId)
|
|
196
|
+
: Long.UZERO;
|
|
197
|
+
message.partnerId = (object.partnerId !== undefined && object.partnerId !== null)
|
|
198
|
+
? Long.fromValue(object.partnerId)
|
|
199
|
+
: Long.UZERO;
|
|
200
|
+
message.ip = object.ip ?? "";
|
|
201
|
+
message.userAgent = object.userAgent ?? "";
|
|
202
|
+
message.report = object.report ?? "";
|
|
203
|
+
message.startedAt = object.startedAt ?? undefined;
|
|
204
|
+
message.finishedAt = object.finishedAt ?? undefined;
|
|
205
|
+
message.duration = (object.duration !== undefined && object.duration !== null)
|
|
206
|
+
? Duration.fromPartial(object.duration)
|
|
207
|
+
: undefined;
|
|
208
|
+
message.requestPayload = object.requestPayload ?? new Uint8Array(0);
|
|
209
|
+
message.status = object.status ?? 0;
|
|
210
|
+
message.result = object.result ?? "";
|
|
211
|
+
return message;
|
|
212
|
+
},
|
|
213
|
+
};
|
|
214
|
+
function createBaseActivityLogRequest() {
|
|
215
|
+
return {
|
|
216
|
+
userId: Long.UZERO,
|
|
217
|
+
organizationId: Long.UZERO,
|
|
218
|
+
partnerId: undefined,
|
|
219
|
+
from: undefined,
|
|
220
|
+
to: undefined,
|
|
221
|
+
report: undefined,
|
|
222
|
+
ip: undefined,
|
|
223
|
+
page: 0,
|
|
224
|
+
perPage: undefined,
|
|
225
|
+
};
|
|
226
|
+
}
|
|
227
|
+
export const ActivityLogRequest = {
|
|
228
|
+
encode(message, writer = new BinaryWriter()) {
|
|
229
|
+
if (!message.userId.equals(Long.UZERO)) {
|
|
230
|
+
writer.uint32(8).uint64(message.userId.toString());
|
|
231
|
+
}
|
|
232
|
+
if (!message.organizationId.equals(Long.UZERO)) {
|
|
233
|
+
writer.uint32(16).uint64(message.organizationId.toString());
|
|
234
|
+
}
|
|
235
|
+
if (message.partnerId !== undefined) {
|
|
236
|
+
writer.uint32(24).uint64(message.partnerId.toString());
|
|
237
|
+
}
|
|
238
|
+
if (message.from !== undefined) {
|
|
239
|
+
Timestamp.encode(toTimestamp(message.from), writer.uint32(34).fork()).join();
|
|
240
|
+
}
|
|
241
|
+
if (message.to !== undefined) {
|
|
242
|
+
Timestamp.encode(toTimestamp(message.to), writer.uint32(42).fork()).join();
|
|
243
|
+
}
|
|
244
|
+
if (message.report !== undefined) {
|
|
245
|
+
writer.uint32(50).string(message.report);
|
|
246
|
+
}
|
|
247
|
+
if (message.ip !== undefined) {
|
|
248
|
+
writer.uint32(58).string(message.ip);
|
|
249
|
+
}
|
|
250
|
+
if (message.page !== 0) {
|
|
251
|
+
writer.uint32(64).uint32(message.page);
|
|
252
|
+
}
|
|
253
|
+
if (message.perPage !== undefined) {
|
|
254
|
+
writer.uint32(72).uint32(message.perPage);
|
|
255
|
+
}
|
|
256
|
+
return writer;
|
|
257
|
+
},
|
|
258
|
+
decode(input, length) {
|
|
259
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
260
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
261
|
+
const message = createBaseActivityLogRequest();
|
|
262
|
+
while (reader.pos < end) {
|
|
263
|
+
const tag = reader.uint32();
|
|
264
|
+
switch (tag >>> 3) {
|
|
265
|
+
case 1: {
|
|
266
|
+
if (tag !== 8) {
|
|
267
|
+
break;
|
|
268
|
+
}
|
|
269
|
+
message.userId = Long.fromString(reader.uint64().toString(), true);
|
|
270
|
+
continue;
|
|
271
|
+
}
|
|
272
|
+
case 2: {
|
|
273
|
+
if (tag !== 16) {
|
|
274
|
+
break;
|
|
275
|
+
}
|
|
276
|
+
message.organizationId = Long.fromString(reader.uint64().toString(), true);
|
|
277
|
+
continue;
|
|
278
|
+
}
|
|
279
|
+
case 3: {
|
|
280
|
+
if (tag !== 24) {
|
|
281
|
+
break;
|
|
282
|
+
}
|
|
283
|
+
message.partnerId = Long.fromString(reader.uint64().toString(), true);
|
|
284
|
+
continue;
|
|
285
|
+
}
|
|
286
|
+
case 4: {
|
|
287
|
+
if (tag !== 34) {
|
|
288
|
+
break;
|
|
289
|
+
}
|
|
290
|
+
message.from = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
291
|
+
continue;
|
|
292
|
+
}
|
|
293
|
+
case 5: {
|
|
294
|
+
if (tag !== 42) {
|
|
295
|
+
break;
|
|
296
|
+
}
|
|
297
|
+
message.to = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
298
|
+
continue;
|
|
299
|
+
}
|
|
300
|
+
case 6: {
|
|
301
|
+
if (tag !== 50) {
|
|
302
|
+
break;
|
|
303
|
+
}
|
|
304
|
+
message.report = reader.string();
|
|
305
|
+
continue;
|
|
306
|
+
}
|
|
307
|
+
case 7: {
|
|
308
|
+
if (tag !== 58) {
|
|
309
|
+
break;
|
|
310
|
+
}
|
|
311
|
+
message.ip = reader.string();
|
|
312
|
+
continue;
|
|
313
|
+
}
|
|
314
|
+
case 8: {
|
|
315
|
+
if (tag !== 64) {
|
|
316
|
+
break;
|
|
317
|
+
}
|
|
318
|
+
message.page = reader.uint32();
|
|
319
|
+
continue;
|
|
320
|
+
}
|
|
321
|
+
case 9: {
|
|
322
|
+
if (tag !== 72) {
|
|
323
|
+
break;
|
|
324
|
+
}
|
|
325
|
+
message.perPage = reader.uint32();
|
|
326
|
+
continue;
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
330
|
+
break;
|
|
331
|
+
}
|
|
332
|
+
reader.skip(tag & 7);
|
|
333
|
+
}
|
|
334
|
+
return message;
|
|
335
|
+
},
|
|
336
|
+
create(base) {
|
|
337
|
+
return ActivityLogRequest.fromPartial(base ?? {});
|
|
338
|
+
},
|
|
339
|
+
fromPartial(object) {
|
|
340
|
+
const message = createBaseActivityLogRequest();
|
|
341
|
+
message.userId = (object.userId !== undefined && object.userId !== null)
|
|
342
|
+
? Long.fromValue(object.userId)
|
|
343
|
+
: Long.UZERO;
|
|
344
|
+
message.organizationId = (object.organizationId !== undefined && object.organizationId !== null)
|
|
345
|
+
? Long.fromValue(object.organizationId)
|
|
346
|
+
: Long.UZERO;
|
|
347
|
+
message.partnerId = (object.partnerId !== undefined && object.partnerId !== null)
|
|
348
|
+
? Long.fromValue(object.partnerId)
|
|
349
|
+
: undefined;
|
|
350
|
+
message.from = object.from ?? undefined;
|
|
351
|
+
message.to = object.to ?? undefined;
|
|
352
|
+
message.report = object.report ?? undefined;
|
|
353
|
+
message.ip = object.ip ?? undefined;
|
|
354
|
+
message.page = object.page ?? 0;
|
|
355
|
+
message.perPage = object.perPage ?? undefined;
|
|
356
|
+
return message;
|
|
357
|
+
},
|
|
358
|
+
};
|
|
359
|
+
function createBaseActivityLogResponse() {
|
|
360
|
+
return { total: Long.UZERO, records: 0, cost: 0, currentPage: Long.UZERO, lastPage: Long.UZERO, data: [] };
|
|
361
|
+
}
|
|
362
|
+
export const ActivityLogResponse = {
|
|
363
|
+
encode(message, writer = new BinaryWriter()) {
|
|
364
|
+
if (!message.total.equals(Long.UZERO)) {
|
|
365
|
+
writer.uint32(8).uint64(message.total.toString());
|
|
366
|
+
}
|
|
367
|
+
if (message.records !== 0) {
|
|
368
|
+
writer.uint32(16).uint32(message.records);
|
|
369
|
+
}
|
|
370
|
+
if (message.cost !== 0) {
|
|
371
|
+
writer.uint32(24).uint32(message.cost);
|
|
372
|
+
}
|
|
373
|
+
if (!message.currentPage.equals(Long.UZERO)) {
|
|
374
|
+
writer.uint32(32).uint64(message.currentPage.toString());
|
|
375
|
+
}
|
|
376
|
+
if (!message.lastPage.equals(Long.UZERO)) {
|
|
377
|
+
writer.uint32(40).uint64(message.lastPage.toString());
|
|
378
|
+
}
|
|
379
|
+
for (const v of message.data) {
|
|
380
|
+
ActivityLog.encode(v, writer.uint32(50).fork()).join();
|
|
381
|
+
}
|
|
382
|
+
return writer;
|
|
383
|
+
},
|
|
384
|
+
decode(input, length) {
|
|
385
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
386
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
387
|
+
const message = createBaseActivityLogResponse();
|
|
388
|
+
while (reader.pos < end) {
|
|
389
|
+
const tag = reader.uint32();
|
|
390
|
+
switch (tag >>> 3) {
|
|
391
|
+
case 1: {
|
|
392
|
+
if (tag !== 8) {
|
|
393
|
+
break;
|
|
394
|
+
}
|
|
395
|
+
message.total = Long.fromString(reader.uint64().toString(), true);
|
|
396
|
+
continue;
|
|
397
|
+
}
|
|
398
|
+
case 2: {
|
|
399
|
+
if (tag !== 16) {
|
|
400
|
+
break;
|
|
401
|
+
}
|
|
402
|
+
message.records = reader.uint32();
|
|
403
|
+
continue;
|
|
404
|
+
}
|
|
405
|
+
case 3: {
|
|
406
|
+
if (tag !== 24) {
|
|
407
|
+
break;
|
|
408
|
+
}
|
|
409
|
+
message.cost = reader.uint32();
|
|
410
|
+
continue;
|
|
411
|
+
}
|
|
412
|
+
case 4: {
|
|
413
|
+
if (tag !== 32) {
|
|
414
|
+
break;
|
|
415
|
+
}
|
|
416
|
+
message.currentPage = Long.fromString(reader.uint64().toString(), true);
|
|
417
|
+
continue;
|
|
418
|
+
}
|
|
419
|
+
case 5: {
|
|
420
|
+
if (tag !== 40) {
|
|
421
|
+
break;
|
|
422
|
+
}
|
|
423
|
+
message.lastPage = Long.fromString(reader.uint64().toString(), true);
|
|
424
|
+
continue;
|
|
425
|
+
}
|
|
426
|
+
case 6: {
|
|
427
|
+
if (tag !== 50) {
|
|
428
|
+
break;
|
|
429
|
+
}
|
|
430
|
+
message.data.push(ActivityLog.decode(reader, reader.uint32()));
|
|
431
|
+
continue;
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
435
|
+
break;
|
|
436
|
+
}
|
|
437
|
+
reader.skip(tag & 7);
|
|
438
|
+
}
|
|
439
|
+
return message;
|
|
440
|
+
},
|
|
441
|
+
create(base) {
|
|
442
|
+
return ActivityLogResponse.fromPartial(base ?? {});
|
|
443
|
+
},
|
|
444
|
+
fromPartial(object) {
|
|
445
|
+
const message = createBaseActivityLogResponse();
|
|
446
|
+
message.total = (object.total !== undefined && object.total !== null) ? Long.fromValue(object.total) : Long.UZERO;
|
|
447
|
+
message.records = object.records ?? 0;
|
|
448
|
+
message.cost = object.cost ?? 0;
|
|
449
|
+
message.currentPage = (object.currentPage !== undefined && object.currentPage !== null)
|
|
450
|
+
? Long.fromValue(object.currentPage)
|
|
451
|
+
: Long.UZERO;
|
|
452
|
+
message.lastPage = (object.lastPage !== undefined && object.lastPage !== null)
|
|
453
|
+
? Long.fromValue(object.lastPage)
|
|
454
|
+
: Long.UZERO;
|
|
455
|
+
message.data = object.data?.map((e) => ActivityLog.fromPartial(e)) || [];
|
|
456
|
+
return message;
|
|
457
|
+
},
|
|
458
|
+
};
|
|
459
|
+
function toTimestamp(date) {
|
|
460
|
+
const seconds = numberToLong(Math.trunc(date.getTime() / 1_000));
|
|
461
|
+
const nanos = (date.getTime() % 1_000) * 1_000_000;
|
|
462
|
+
return { seconds, nanos };
|
|
463
|
+
}
|
|
464
|
+
function fromTimestamp(t) {
|
|
465
|
+
let millis = (t.seconds.toNumber() || 0) * 1_000;
|
|
466
|
+
millis += (t.nanos || 0) / 1_000_000;
|
|
467
|
+
return new globalThis.Date(millis);
|
|
468
|
+
}
|
|
469
|
+
function numberToLong(number) {
|
|
470
|
+
return Long.fromNumber(number);
|
|
471
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workshift.d.ts","sourceRoot":"","sources":["../../../src/fatehan/activities/workshift.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,SAAS;IACnB,MAAM,IAAI;IACV,OAAO,IAAI;IACX,MAAM,IAAI;IACV,KAAK,IAAI;IACT,MAAM,IAAI;IACV,QAAQ,IAAI;IACZ,QAAQ,IAAI;IACZ,YAAY,KAAK;CAClB;AAED,oBAAY,OAAO;IACjB,MAAM,IAAI;IACV,OAAO,IAAI;IACX,SAAS,I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,CAAC,IAAI,OAAO,CAAC,MAAM,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,GAAG,KAAK;CAAE,CAAC;AAkBnG,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,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"}
|
|
@@ -43,6 +43,7 @@ function createBaseWorkShift() {
|
|
|
43
43
|
finishedAt: undefined,
|
|
44
44
|
createdAt: undefined,
|
|
45
45
|
updatedAt: undefined,
|
|
46
|
+
summarizedAt: undefined,
|
|
46
47
|
};
|
|
47
48
|
}
|
|
48
49
|
export const WorkShift = {
|
|
@@ -80,6 +81,9 @@ export const WorkShift = {
|
|
|
80
81
|
if (message.updatedAt !== undefined) {
|
|
81
82
|
Timestamp.encode(toTimestamp(message.updatedAt), writer.uint32(90).fork()).join();
|
|
82
83
|
}
|
|
84
|
+
if (message.summarizedAt !== undefined) {
|
|
85
|
+
Timestamp.encode(toTimestamp(message.summarizedAt), writer.uint32(98).fork()).join();
|
|
86
|
+
}
|
|
83
87
|
return writer;
|
|
84
88
|
},
|
|
85
89
|
decode(input, length) {
|
|
@@ -166,6 +170,13 @@ export const WorkShift = {
|
|
|
166
170
|
message.updatedAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
167
171
|
continue;
|
|
168
172
|
}
|
|
173
|
+
case 12: {
|
|
174
|
+
if (tag !== 98) {
|
|
175
|
+
break;
|
|
176
|
+
}
|
|
177
|
+
message.summarizedAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
178
|
+
continue;
|
|
179
|
+
}
|
|
169
180
|
}
|
|
170
181
|
if ((tag & 7) === 4 || tag === 0) {
|
|
171
182
|
break;
|
|
@@ -200,6 +211,7 @@ export const WorkShift = {
|
|
|
200
211
|
message.finishedAt = object.finishedAt ?? undefined;
|
|
201
212
|
message.createdAt = object.createdAt ?? undefined;
|
|
202
213
|
message.updatedAt = object.updatedAt ?? undefined;
|
|
214
|
+
message.summarizedAt = object.summarizedAt ?? undefined;
|
|
203
215
|
return message;
|
|
204
216
|
},
|
|
205
217
|
};
|
|
@@ -37,7 +37,7 @@ export interface MaintenanceService {
|
|
|
37
37
|
updatedBy?: Long | undefined;
|
|
38
38
|
isDefault: boolean;
|
|
39
39
|
expireMileagePeriod?: Long | undefined;
|
|
40
|
-
expireDatePeriod?:
|
|
40
|
+
expireDatePeriod?: Long | undefined;
|
|
41
41
|
expireActiveDurationPeriod?: Long | undefined;
|
|
42
42
|
createdAt?: Date | undefined;
|
|
43
43
|
updatedAt?: Date | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"maintenance.d.ts","sourceRoot":"","sources":["../../../src/fatehan/devices/maintenance.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,IAAI,MAAM,MAAM,CAAC;AAGxB,eAAO,MAAM,eAAe,wBAAwB,CAAC;AAErD,oBAAY,iBAAiB;IAC3B,OAAO,IAAI;IACX,QAAQ,IAAI;IACZ,QAAQ,IAAI;IACZ,QAAQ,IAAI;IACZ,YAAY,KAAK;CAClB;AAED,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,IAAI,CAAC;IACT,QAAQ,EAAE,IAAI,CAAC;IACf,SAAS,EAAE,IAAI,CA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AAC,CAAC;CAAE,GACrD,OAAO,CAAC,CAAC,CAAC,CAAC;AAEf,KAAK,WAAW,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,MAAM,CAAC,GAAG,KAAK,CAAC;AACpD,MAAM,MAAM,KAAK,CAAC,CAAC,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,SAAS,OAAO,GAAG,CAAC,GACrD,CAAC,GAAG;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;CAAE,GAAG;KAAG,CAAC,IAAI,OAAO,CAAC,MAAM,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,GAAG,KAAK;CAAE,CAAC;AAkBnG,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,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"}
|
|
@@ -334,7 +334,7 @@ export const MaintenanceService = {
|
|
|
334
334
|
writer.uint32(56).uint64(message.expireMileagePeriod.toString());
|
|
335
335
|
}
|
|
336
336
|
if (message.expireDatePeriod !== undefined) {
|
|
337
|
-
|
|
337
|
+
writer.uint32(64).uint64(message.expireDatePeriod.toString());
|
|
338
338
|
}
|
|
339
339
|
if (message.expireActiveDurationPeriod !== undefined) {
|
|
340
340
|
writer.uint32(72).uint64(message.expireActiveDurationPeriod.toString());
|
|
@@ -404,10 +404,10 @@ export const MaintenanceService = {
|
|
|
404
404
|
continue;
|
|
405
405
|
}
|
|
406
406
|
case 8: {
|
|
407
|
-
if (tag !==
|
|
407
|
+
if (tag !== 64) {
|
|
408
408
|
break;
|
|
409
409
|
}
|
|
410
|
-
message.expireDatePeriod =
|
|
410
|
+
message.expireDatePeriod = Long.fromString(reader.uint64().toString(), true);
|
|
411
411
|
continue;
|
|
412
412
|
}
|
|
413
413
|
case 9: {
|
|
@@ -459,7 +459,9 @@ export const MaintenanceService = {
|
|
|
459
459
|
message.expireMileagePeriod = (object.expireMileagePeriod !== undefined && object.expireMileagePeriod !== null)
|
|
460
460
|
? Long.fromValue(object.expireMileagePeriod)
|
|
461
461
|
: undefined;
|
|
462
|
-
message.expireDatePeriod = object.expireDatePeriod
|
|
462
|
+
message.expireDatePeriod = (object.expireDatePeriod !== undefined && object.expireDatePeriod !== null)
|
|
463
|
+
? Long.fromValue(object.expireDatePeriod)
|
|
464
|
+
: undefined;
|
|
463
465
|
message.expireActiveDurationPeriod =
|
|
464
466
|
(object.expireActiveDurationPeriod !== undefined && object.expireActiveDurationPeriod !== null)
|
|
465
467
|
? Long.fromValue(object.expireActiveDurationPeriod)
|