@fatehan/tsrp 1.6.15 → 1.6.17

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.
Files changed (88) hide show
  1. package/package.json +1 -1
  2. package/dist/fatehan/activities/workflow.d.ts +0 -219
  3. package/dist/fatehan/activities/workflow.d.ts.map +0 -1
  4. package/dist/fatehan/activities/workflow.js +0 -1941
  5. package/dist/fatehan/activities/workshift.d.ts +0 -140
  6. package/dist/fatehan/activities/workshift.d.ts.map +0 -1
  7. package/dist/fatehan/activities/workshift.js +0 -1244
  8. package/dist/fatehan/apis/client.d.ts +0 -246
  9. package/dist/fatehan/apis/client.d.ts.map +0 -1
  10. package/dist/fatehan/apis/client.js +0 -2572
  11. package/dist/fatehan/areas/area.d.ts +0 -96
  12. package/dist/fatehan/areas/area.d.ts.map +0 -1
  13. package/dist/fatehan/areas/area.js +0 -761
  14. package/dist/fatehan/devices/devices.d.ts +0 -256
  15. package/dist/fatehan/devices/devices.d.ts.map +0 -1
  16. package/dist/fatehan/devices/devices.js +0 -2730
  17. package/dist/fatehan/devices/maintenance.d.ts +0 -64
  18. package/dist/fatehan/devices/maintenance.d.ts.map +0 -1
  19. package/dist/fatehan/devices/maintenance.js +0 -484
  20. package/dist/fatehan/financial/financial.d.ts +0 -162
  21. package/dist/fatehan/financial/financial.d.ts.map +0 -1
  22. package/dist/fatehan/financial/financial.js +0 -1701
  23. package/dist/fatehan/google/protobuf/descriptor.d.ts +0 -1303
  24. package/dist/fatehan/google/protobuf/descriptor.d.ts.map +0 -1
  25. package/dist/fatehan/google/protobuf/descriptor.js +0 -3467
  26. package/dist/fatehan/google/protobuf/duration.d.ts +0 -99
  27. package/dist/fatehan/google/protobuf/duration.d.ts.map +0 -1
  28. package/dist/fatehan/google/protobuf/duration.js +0 -63
  29. package/dist/fatehan/google/protobuf/field_mask.d.ts +0 -228
  30. package/dist/fatehan/google/protobuf/field_mask.d.ts.map +0 -1
  31. package/dist/fatehan/google/protobuf/field_mask.js +0 -57
  32. package/dist/fatehan/google/protobuf/timestamp.d.ts +0 -129
  33. package/dist/fatehan/google/protobuf/timestamp.d.ts.map +0 -1
  34. package/dist/fatehan/google/protobuf/timestamp.js +0 -63
  35. package/dist/fatehan/identities/authentication.d.ts +0 -164
  36. package/dist/fatehan/identities/authentication.d.ts.map +0 -1
  37. package/dist/fatehan/identities/authentication.js +0 -1291
  38. package/dist/fatehan/identities/identities.d.ts +0 -969
  39. package/dist/fatehan/identities/identities.d.ts.map +0 -1
  40. package/dist/fatehan/identities/identities.js +0 -2993
  41. package/dist/fatehan/models/fusion.d.ts +0 -149
  42. package/dist/fatehan/models/fusion.d.ts.map +0 -1
  43. package/dist/fatehan/models/fusion.js +0 -1531
  44. package/dist/fatehan/models/models.d.ts +0 -162
  45. package/dist/fatehan/models/models.d.ts.map +0 -1
  46. package/dist/fatehan/models/models.js +0 -1486
  47. package/dist/fatehan/notifies/direct.d.ts +0 -85
  48. package/dist/fatehan/notifies/direct.d.ts.map +0 -1
  49. package/dist/fatehan/notifies/direct.js +0 -669
  50. package/dist/fatehan/notifies/notify.d.ts +0 -232
  51. package/dist/fatehan/notifies/notify.d.ts.map +0 -1
  52. package/dist/fatehan/notifies/notify.js +0 -1958
  53. package/dist/fatehan/packets/commands.d.ts +0 -150
  54. package/dist/fatehan/packets/commands.d.ts.map +0 -1
  55. package/dist/fatehan/packets/commands.js +0 -1364
  56. package/dist/fatehan/packets/dataModel.d.ts +0 -1610
  57. package/dist/fatehan/packets/dataModel.d.ts.map +0 -1
  58. package/dist/fatehan/packets/dataModel.js +0 -14947
  59. package/dist/fatehan/packets/dataModule.d.ts +0 -61
  60. package/dist/fatehan/packets/dataModule.d.ts.map +0 -1
  61. package/dist/fatehan/packets/dataModule.js +0 -386
  62. package/dist/fatehan/packets/forge.d.ts +0 -142
  63. package/dist/fatehan/packets/forge.d.ts.map +0 -1
  64. package/dist/fatehan/packets/forge.js +0 -1339
  65. package/dist/fatehan/services/api.d.ts +0 -1211
  66. package/dist/fatehan/services/api.d.ts.map +0 -1
  67. package/dist/fatehan/services/api.js +0 -12547
  68. package/dist/fatehan/services/repositories.d.ts +0 -78
  69. package/dist/fatehan/services/repositories.d.ts.map +0 -1
  70. package/dist/fatehan/services/repositories.js +0 -620
  71. package/dist/fatehan/stream/stream.d.ts +0 -224
  72. package/dist/fatehan/stream/stream.d.ts.map +0 -1
  73. package/dist/fatehan/stream/stream.js +0 -1416
  74. package/dist/fatehan/trips/trip.d.ts +0 -325
  75. package/dist/fatehan/trips/trip.d.ts.map +0 -1
  76. package/dist/fatehan/trips/trip.js +0 -1635
  77. package/dist/fatehan/utils/buf/validate/validate.d.ts +0 -3520
  78. package/dist/fatehan/utils/buf/validate/validate.d.ts.map +0 -1
  79. package/dist/fatehan/utils/buf/validate/validate.js +0 -4248
  80. package/dist/services.d.ts +0 -78
  81. package/dist/services.d.ts.map +0 -1
  82. package/dist/services.js +0 -242
  83. package/dist/store/system.io.d.ts +0 -6
  84. package/dist/store/system.io.d.ts.map +0 -1
  85. package/dist/store/system.io.js +0 -14
  86. package/dist/system.io.d.ts +0 -6
  87. package/dist/system.io.d.ts.map +0 -1
  88. package/dist/system.io.js +0 -208
@@ -1,61 +0,0 @@
1
- import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
- import Long from "long";
3
- export declare const protobufPackage = "com.fatehan.packets";
4
- export interface DataModule {
5
- modules: DataModule_ModuleList[];
6
- }
7
- export interface DataModule_ModuleList {
8
- tpms?: TirePressureMonitoringSystemModule | undefined;
9
- }
10
- export interface TirePressureMonitoringSystemModule {
11
- tireAxleKey?: number | undefined;
12
- pressureKey?: number | undefined;
13
- temperatureKey?: number | undefined;
14
- statusKey?: number | undefined;
15
- tireData: {
16
- [key: number]: TirePressureMonitoringSystemModule_TirePosition;
17
- };
18
- }
19
- export declare enum TirePressureMonitoringSystemModule_Position {
20
- RIGHT_OUT = 0,
21
- RIGHT_IN = 1,
22
- LEFT_IN = 2,
23
- LEFT_OUT = 3,
24
- UNRECOGNIZED = -1
25
- }
26
- export interface TirePressureMonitoringSystemModule_TirePosition {
27
- axle: number;
28
- tire: number;
29
- pressure?: number | undefined;
30
- temperature?: number | undefined;
31
- status?: number | undefined;
32
- updatedAt: Date | undefined;
33
- position: TirePressureMonitoringSystemModule_Position;
34
- }
35
- export interface TirePressureMonitoringSystemModule_TireDataEntry {
36
- key: number;
37
- value: TirePressureMonitoringSystemModule_TirePosition | undefined;
38
- }
39
- export declare const DataModule: MessageFns<DataModule>;
40
- export declare const DataModule_ModuleList: MessageFns<DataModule_ModuleList>;
41
- export declare const TirePressureMonitoringSystemModule: MessageFns<TirePressureMonitoringSystemModule>;
42
- export declare const TirePressureMonitoringSystemModule_TirePosition: MessageFns<TirePressureMonitoringSystemModule_TirePosition>;
43
- export declare const TirePressureMonitoringSystemModule_TireDataEntry: MessageFns<TirePressureMonitoringSystemModule_TireDataEntry>;
44
- type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
45
- 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 {} ? {
46
- [K in keyof T]?: DeepPartial<T[K]>;
47
- } : Partial<T>;
48
- type KeysOfUnion<T> = T extends T ? keyof T : never;
49
- export type Exact<P, I extends P> = P extends Builtin ? P : P & {
50
- [K in keyof P]: Exact<P[K], I[K]>;
51
- } & {
52
- [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
53
- };
54
- export interface MessageFns<T> {
55
- encode(message: T, writer?: BinaryWriter): BinaryWriter;
56
- decode(input: BinaryReader | Uint8Array, length?: number): T;
57
- create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
58
- fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
59
- }
60
- export {};
61
- //# sourceMappingURL=dataModule.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":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C,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"}
@@ -1,386 +0,0 @@
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: packets/dataModule.proto
6
- /* eslint-disable */
7
- import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
8
- import Long from "long";
9
- import { Timestamp } from "../google/protobuf/timestamp";
10
- export const protobufPackage = "com.fatehan.packets";
11
- export var TirePressureMonitoringSystemModule_Position;
12
- (function (TirePressureMonitoringSystemModule_Position) {
13
- TirePressureMonitoringSystemModule_Position[TirePressureMonitoringSystemModule_Position["RIGHT_OUT"] = 0] = "RIGHT_OUT";
14
- TirePressureMonitoringSystemModule_Position[TirePressureMonitoringSystemModule_Position["RIGHT_IN"] = 1] = "RIGHT_IN";
15
- TirePressureMonitoringSystemModule_Position[TirePressureMonitoringSystemModule_Position["LEFT_IN"] = 2] = "LEFT_IN";
16
- TirePressureMonitoringSystemModule_Position[TirePressureMonitoringSystemModule_Position["LEFT_OUT"] = 3] = "LEFT_OUT";
17
- TirePressureMonitoringSystemModule_Position[TirePressureMonitoringSystemModule_Position["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
18
- })(TirePressureMonitoringSystemModule_Position || (TirePressureMonitoringSystemModule_Position = {}));
19
- function createBaseDataModule() {
20
- return { modules: [] };
21
- }
22
- export const DataModule = {
23
- encode(message, writer = new BinaryWriter()) {
24
- for (const v of message.modules) {
25
- DataModule_ModuleList.encode(v, writer.uint32(10).fork()).join();
26
- }
27
- return writer;
28
- },
29
- decode(input, length) {
30
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
31
- const end = length === undefined ? reader.len : reader.pos + length;
32
- const message = createBaseDataModule();
33
- while (reader.pos < end) {
34
- const tag = reader.uint32();
35
- switch (tag >>> 3) {
36
- case 1: {
37
- if (tag !== 10) {
38
- break;
39
- }
40
- message.modules.push(DataModule_ModuleList.decode(reader, reader.uint32()));
41
- continue;
42
- }
43
- }
44
- if ((tag & 7) === 4 || tag === 0) {
45
- break;
46
- }
47
- reader.skip(tag & 7);
48
- }
49
- return message;
50
- },
51
- create(base) {
52
- return DataModule.fromPartial(base ?? {});
53
- },
54
- fromPartial(object) {
55
- const message = createBaseDataModule();
56
- message.modules = object.modules?.map((e) => DataModule_ModuleList.fromPartial(e)) || [];
57
- return message;
58
- },
59
- };
60
- function createBaseDataModule_ModuleList() {
61
- return { tpms: undefined };
62
- }
63
- export const DataModule_ModuleList = {
64
- encode(message, writer = new BinaryWriter()) {
65
- if (message.tpms !== undefined) {
66
- TirePressureMonitoringSystemModule.encode(message.tpms, writer.uint32(10).fork()).join();
67
- }
68
- return writer;
69
- },
70
- decode(input, length) {
71
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
72
- const end = length === undefined ? reader.len : reader.pos + length;
73
- const message = createBaseDataModule_ModuleList();
74
- while (reader.pos < end) {
75
- const tag = reader.uint32();
76
- switch (tag >>> 3) {
77
- case 1: {
78
- if (tag !== 10) {
79
- break;
80
- }
81
- message.tpms = TirePressureMonitoringSystemModule.decode(reader, reader.uint32());
82
- continue;
83
- }
84
- }
85
- if ((tag & 7) === 4 || tag === 0) {
86
- break;
87
- }
88
- reader.skip(tag & 7);
89
- }
90
- return message;
91
- },
92
- create(base) {
93
- return DataModule_ModuleList.fromPartial(base ?? {});
94
- },
95
- fromPartial(object) {
96
- const message = createBaseDataModule_ModuleList();
97
- message.tpms = (object.tpms !== undefined && object.tpms !== null)
98
- ? TirePressureMonitoringSystemModule.fromPartial(object.tpms)
99
- : undefined;
100
- return message;
101
- },
102
- };
103
- function createBaseTirePressureMonitoringSystemModule() {
104
- return {
105
- tireAxleKey: undefined,
106
- pressureKey: undefined,
107
- temperatureKey: undefined,
108
- statusKey: undefined,
109
- tireData: {},
110
- };
111
- }
112
- export const TirePressureMonitoringSystemModule = {
113
- encode(message, writer = new BinaryWriter()) {
114
- if (message.tireAxleKey !== undefined) {
115
- writer.uint32(8).uint32(message.tireAxleKey);
116
- }
117
- if (message.pressureKey !== undefined) {
118
- writer.uint32(16).uint32(message.pressureKey);
119
- }
120
- if (message.temperatureKey !== undefined) {
121
- writer.uint32(24).uint32(message.temperatureKey);
122
- }
123
- if (message.statusKey !== undefined) {
124
- writer.uint32(32).uint32(message.statusKey);
125
- }
126
- globalThis.Object.entries(message.tireData).forEach(([key, value]) => {
127
- TirePressureMonitoringSystemModule_TireDataEntry.encode({ key: key, value }, writer.uint32(42).fork())
128
- .join();
129
- });
130
- return writer;
131
- },
132
- decode(input, length) {
133
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
134
- const end = length === undefined ? reader.len : reader.pos + length;
135
- const message = createBaseTirePressureMonitoringSystemModule();
136
- while (reader.pos < end) {
137
- const tag = reader.uint32();
138
- switch (tag >>> 3) {
139
- case 1: {
140
- if (tag !== 8) {
141
- break;
142
- }
143
- message.tireAxleKey = reader.uint32();
144
- continue;
145
- }
146
- case 2: {
147
- if (tag !== 16) {
148
- break;
149
- }
150
- message.pressureKey = reader.uint32();
151
- continue;
152
- }
153
- case 3: {
154
- if (tag !== 24) {
155
- break;
156
- }
157
- message.temperatureKey = reader.uint32();
158
- continue;
159
- }
160
- case 4: {
161
- if (tag !== 32) {
162
- break;
163
- }
164
- message.statusKey = reader.uint32();
165
- continue;
166
- }
167
- case 5: {
168
- if (tag !== 42) {
169
- break;
170
- }
171
- const entry5 = TirePressureMonitoringSystemModule_TireDataEntry.decode(reader, reader.uint32());
172
- if (entry5.value !== undefined) {
173
- message.tireData[entry5.key] = entry5.value;
174
- }
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 TirePressureMonitoringSystemModule.fromPartial(base ?? {});
187
- },
188
- fromPartial(object) {
189
- const message = createBaseTirePressureMonitoringSystemModule();
190
- message.tireAxleKey = object.tireAxleKey ?? undefined;
191
- message.pressureKey = object.pressureKey ?? undefined;
192
- message.temperatureKey = object.temperatureKey ?? undefined;
193
- message.statusKey = object.statusKey ?? undefined;
194
- message.tireData =
195
- globalThis.Object.entries(object.tireData ?? {})
196
- .reduce((acc, [key, value]) => {
197
- if (value !== undefined) {
198
- acc[globalThis.Number(key)] = TirePressureMonitoringSystemModule_TirePosition.fromPartial(value);
199
- }
200
- return acc;
201
- }, {});
202
- return message;
203
- },
204
- };
205
- function createBaseTirePressureMonitoringSystemModule_TirePosition() {
206
- return {
207
- axle: 0,
208
- tire: 0,
209
- pressure: undefined,
210
- temperature: undefined,
211
- status: undefined,
212
- updatedAt: undefined,
213
- position: 0,
214
- };
215
- }
216
- export const TirePressureMonitoringSystemModule_TirePosition = {
217
- encode(message, writer = new BinaryWriter()) {
218
- if (message.axle !== 0) {
219
- writer.uint32(8).uint32(message.axle);
220
- }
221
- if (message.tire !== 0) {
222
- writer.uint32(16).uint32(message.tire);
223
- }
224
- if (message.pressure !== undefined) {
225
- writer.uint32(29).float(message.pressure);
226
- }
227
- if (message.temperature !== undefined) {
228
- writer.uint32(37).float(message.temperature);
229
- }
230
- if (message.status !== undefined) {
231
- writer.uint32(40).uint32(message.status);
232
- }
233
- if (message.updatedAt !== undefined) {
234
- Timestamp.encode(toTimestamp(message.updatedAt), writer.uint32(58).fork()).join();
235
- }
236
- if (message.position !== 0) {
237
- writer.uint32(48).int32(message.position);
238
- }
239
- return writer;
240
- },
241
- decode(input, length) {
242
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
243
- const end = length === undefined ? reader.len : reader.pos + length;
244
- const message = createBaseTirePressureMonitoringSystemModule_TirePosition();
245
- while (reader.pos < end) {
246
- const tag = reader.uint32();
247
- switch (tag >>> 3) {
248
- case 1: {
249
- if (tag !== 8) {
250
- break;
251
- }
252
- message.axle = reader.uint32();
253
- continue;
254
- }
255
- case 2: {
256
- if (tag !== 16) {
257
- break;
258
- }
259
- message.tire = reader.uint32();
260
- continue;
261
- }
262
- case 3: {
263
- if (tag !== 29) {
264
- break;
265
- }
266
- message.pressure = reader.float();
267
- continue;
268
- }
269
- case 4: {
270
- if (tag !== 37) {
271
- break;
272
- }
273
- message.temperature = reader.float();
274
- continue;
275
- }
276
- case 5: {
277
- if (tag !== 40) {
278
- break;
279
- }
280
- message.status = reader.uint32();
281
- continue;
282
- }
283
- case 7: {
284
- if (tag !== 58) {
285
- break;
286
- }
287
- message.updatedAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
288
- continue;
289
- }
290
- case 6: {
291
- if (tag !== 48) {
292
- break;
293
- }
294
- message.position = reader.int32();
295
- continue;
296
- }
297
- }
298
- if ((tag & 7) === 4 || tag === 0) {
299
- break;
300
- }
301
- reader.skip(tag & 7);
302
- }
303
- return message;
304
- },
305
- create(base) {
306
- return TirePressureMonitoringSystemModule_TirePosition.fromPartial(base ?? {});
307
- },
308
- fromPartial(object) {
309
- const message = createBaseTirePressureMonitoringSystemModule_TirePosition();
310
- message.axle = object.axle ?? 0;
311
- message.tire = object.tire ?? 0;
312
- message.pressure = object.pressure ?? undefined;
313
- message.temperature = object.temperature ?? undefined;
314
- message.status = object.status ?? undefined;
315
- message.updatedAt = object.updatedAt ?? undefined;
316
- message.position = object.position ?? 0;
317
- return message;
318
- },
319
- };
320
- function createBaseTirePressureMonitoringSystemModule_TireDataEntry() {
321
- return { key: 0, value: undefined };
322
- }
323
- export const TirePressureMonitoringSystemModule_TireDataEntry = {
324
- encode(message, writer = new BinaryWriter()) {
325
- if (message.key !== 0) {
326
- writer.uint32(8).uint32(message.key);
327
- }
328
- if (message.value !== undefined) {
329
- TirePressureMonitoringSystemModule_TirePosition.encode(message.value, writer.uint32(18).fork()).join();
330
- }
331
- return writer;
332
- },
333
- decode(input, length) {
334
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
335
- const end = length === undefined ? reader.len : reader.pos + length;
336
- const message = createBaseTirePressureMonitoringSystemModule_TireDataEntry();
337
- while (reader.pos < end) {
338
- const tag = reader.uint32();
339
- switch (tag >>> 3) {
340
- case 1: {
341
- if (tag !== 8) {
342
- break;
343
- }
344
- message.key = reader.uint32();
345
- continue;
346
- }
347
- case 2: {
348
- if (tag !== 18) {
349
- break;
350
- }
351
- message.value = TirePressureMonitoringSystemModule_TirePosition.decode(reader, reader.uint32());
352
- continue;
353
- }
354
- }
355
- if ((tag & 7) === 4 || tag === 0) {
356
- break;
357
- }
358
- reader.skip(tag & 7);
359
- }
360
- return message;
361
- },
362
- create(base) {
363
- return TirePressureMonitoringSystemModule_TireDataEntry.fromPartial(base ?? {});
364
- },
365
- fromPartial(object) {
366
- const message = createBaseTirePressureMonitoringSystemModule_TireDataEntry();
367
- message.key = object.key ?? 0;
368
- message.value = (object.value !== undefined && object.value !== null)
369
- ? TirePressureMonitoringSystemModule_TirePosition.fromPartial(object.value)
370
- : undefined;
371
- return message;
372
- },
373
- };
374
- function toTimestamp(date) {
375
- const seconds = numberToLong(Math.trunc(date.getTime() / 1_000));
376
- const nanos = (date.getTime() % 1_000) * 1_000_000;
377
- return { seconds, nanos };
378
- }
379
- function fromTimestamp(t) {
380
- let millis = (t.seconds.toNumber() || 0) * 1_000;
381
- millis += (t.nanos || 0) / 1_000_000;
382
- return new globalThis.Date(millis);
383
- }
384
- function numberToLong(number) {
385
- return Long.fromNumber(number);
386
- }
@@ -1,142 +0,0 @@
1
- import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
- import Long from "long";
3
- export declare const protobufPackage = "com.fatehan.packets";
4
- export interface RawStingWithProps {
5
- rawString: string;
6
- props: string[];
7
- }
8
- export interface ForgeException {
9
- message: string;
10
- stacktrace?: string | undefined;
11
- }
12
- export interface JTTPlaybackUpdate {
13
- logicalNumber: number;
14
- playbackControl: number;
15
- control: JTTPlaybackUpdate_Control[];
16
- }
17
- export interface JTTPlaybackUpdate_Control {
18
- fastForward: number;
19
- playbackPosition: Date | undefined;
20
- }
21
- export interface JTTQueryFileResponse {
22
- serialNo: number;
23
- files: JTTQueryFileResponse_File[];
24
- }
25
- export interface JTTQueryFileResponse_File {
26
- logicalNumber: number;
27
- startsAt: Date | undefined;
28
- finishesAt: Date | undefined;
29
- alarmSign: Long;
30
- audioVideoType: number;
31
- streamType: number;
32
- memoryType: number;
33
- fileSize: number;
34
- }
35
- export interface JTTLiveStatusUpdate {
36
- logicalNumber: number;
37
- packetLose: number;
38
- }
39
- export interface JTTLiveRequest {
40
- ip: string;
41
- tcp: number;
42
- udp: number;
43
- logicalNumber: number;
44
- typeOfData: number;
45
- streamType: number;
46
- }
47
- export interface JTTLiveUpdate {
48
- logicalNumber: number;
49
- controlInstruction: number;
50
- closeAudioVideo: number;
51
- switchStream: number;
52
- }
53
- export interface JTTQueryFileRequest {
54
- logicalNumber: number;
55
- startsAt: Date | undefined;
56
- finishesAt: Date | undefined;
57
- alarmSign: Long;
58
- audioVideoType: number;
59
- streamType: number;
60
- memoryType: number;
61
- }
62
- export interface JTTPlaybackRequest {
63
- ip: string;
64
- tcp: number;
65
- udp: number;
66
- logicalNumber: number;
67
- files: JTTPlaybackRequest_Files[];
68
- }
69
- export interface JTTPlaybackRequest_Files {
70
- audioVideoType: number;
71
- streamType: number;
72
- memoryType: number;
73
- playbackMethod: number;
74
- fastForwardRewind: number;
75
- startsAt: Date | undefined;
76
- finishesAt: Date | undefined;
77
- }
78
- export interface RequestAlertMediaUpload {
79
- ip: string;
80
- tcp: number;
81
- udp: number;
82
- alarmId: Uint8Array;
83
- deviceId: Long;
84
- gpsTime: Date | undefined;
85
- reserve: Uint8Array;
86
- }
87
- export interface R31AudioRequest {
88
- }
89
- export interface R31AudioUpload {
90
- timestamp: Date | undefined;
91
- sectionNo: number;
92
- }
93
- export interface R31AudioConfirmed {
94
- timestamp: Date | undefined;
95
- totalNo: number;
96
- totalServer: number;
97
- packageStatus: Uint8Array;
98
- }
99
- export interface R31AudioResponse {
100
- timestamp: Date | undefined;
101
- sectionNo: number;
102
- segmentation: Uint8Array;
103
- }
104
- export interface R31AudioUploadConfirmation {
105
- timestamp: Date | undefined;
106
- }
107
- export declare const RawStingWithProps: MessageFns<RawStingWithProps>;
108
- export declare const ForgeException: MessageFns<ForgeException>;
109
- export declare const JTTPlaybackUpdate: MessageFns<JTTPlaybackUpdate>;
110
- export declare const JTTPlaybackUpdate_Control: MessageFns<JTTPlaybackUpdate_Control>;
111
- export declare const JTTQueryFileResponse: MessageFns<JTTQueryFileResponse>;
112
- export declare const JTTQueryFileResponse_File: MessageFns<JTTQueryFileResponse_File>;
113
- export declare const JTTLiveStatusUpdate: MessageFns<JTTLiveStatusUpdate>;
114
- export declare const JTTLiveRequest: MessageFns<JTTLiveRequest>;
115
- export declare const JTTLiveUpdate: MessageFns<JTTLiveUpdate>;
116
- export declare const JTTQueryFileRequest: MessageFns<JTTQueryFileRequest>;
117
- export declare const JTTPlaybackRequest: MessageFns<JTTPlaybackRequest>;
118
- export declare const JTTPlaybackRequest_Files: MessageFns<JTTPlaybackRequest_Files>;
119
- export declare const RequestAlertMediaUpload: MessageFns<RequestAlertMediaUpload>;
120
- export declare const R31AudioRequest: MessageFns<R31AudioRequest>;
121
- export declare const R31AudioUpload: MessageFns<R31AudioUpload>;
122
- export declare const R31AudioConfirmed: MessageFns<R31AudioConfirmed>;
123
- export declare const R31AudioResponse: MessageFns<R31AudioResponse>;
124
- export declare const R31AudioUploadConfirmation: MessageFns<R31AudioUploadConfirmation>;
125
- type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
126
- 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 {} ? {
127
- [K in keyof T]?: DeepPartial<T[K]>;
128
- } : Partial<T>;
129
- type KeysOfUnion<T> = T extends T ? keyof T : never;
130
- export type Exact<P, I extends P> = P extends Builtin ? P : P & {
131
- [K in keyof P]: Exact<P[K], I[K]>;
132
- } & {
133
- [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
134
- };
135
- export interface MessageFns<T> {
136
- encode(message: T, writer?: BinaryWriter): BinaryWriter;
137
- decode(input: BinaryReader | Uint8Array, length?: number): T;
138
- create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
139
- fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
140
- }
141
- export {};
142
- //# sourceMappingURL=forge.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"forge.d.ts","sourceRoot":"","sources":["../../../src/fatehan/packets/forge.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,MAAM,WAAW,iBAAiB;IAChC,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,EAAE,CAAC;CACjB;AAED,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,C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