@fatehan/tsrp 1.5.14 → 1.6.6
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 +1 -0
- package/dist/fatehan/activities/workflow.d.ts.map +1 -1
- package/dist/fatehan/activities/workflow.js +13 -1
- package/dist/fatehan/activities/workshift.js +1 -1
- package/dist/fatehan/apis/client.js +1 -1
- package/dist/fatehan/areas/area.js +1 -1
- package/dist/fatehan/devices/devices.js +1 -1
- package/dist/fatehan/devices/maintenance.js +1 -1
- package/dist/fatehan/financial/financial.js +1 -1
- package/dist/fatehan/google/protobuf/duration.js +1 -1
- package/dist/fatehan/google/protobuf/timestamp.js +1 -1
- package/dist/fatehan/identities/authentication.d.ts +1 -0
- package/dist/fatehan/identities/authentication.d.ts.map +1 -1
- package/dist/fatehan/identities/authentication.js +13 -1
- package/dist/fatehan/identities/identities.d.ts +11 -8
- package/dist/fatehan/identities/identities.d.ts.map +1 -1
- package/dist/fatehan/identities/identities.js +12 -9
- package/dist/fatehan/models/fusion.js +1 -1
- package/dist/fatehan/models/models.d.ts +6 -6
- package/dist/fatehan/models/models.d.ts.map +1 -1
- package/dist/fatehan/models/models.js +64 -64
- package/dist/fatehan/notifies/direct.js +1 -1
- package/dist/fatehan/notifies/notify.js +1 -1
- package/dist/fatehan/packets/commands.js +1 -1
- package/dist/fatehan/packets/dataModel.d.ts +8 -2
- package/dist/fatehan/packets/dataModel.d.ts.map +1 -1
- package/dist/fatehan/packets/dataModel.js +73 -23
- package/dist/fatehan/packets/dataModule.js +1 -1
- package/dist/fatehan/packets/forge.d.ts +25 -0
- package/dist/fatehan/packets/forge.d.ts.map +1 -1
- package/dist/fatehan/packets/forge.js +261 -1
- package/dist/fatehan/services/api.js +1 -1
- package/dist/fatehan/services/repositories.js +1 -1
- package/dist/fatehan/stream/stream.js +1 -1
- package/dist/fatehan/trips/trip.js +1 -1
- package/package.json +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
2
|
// versions:
|
|
3
|
-
// protoc-gen-ts_proto v2.11.
|
|
3
|
+
// protoc-gen-ts_proto v2.11.8
|
|
4
4
|
// protoc v7.34.1
|
|
5
5
|
// source: packets/dataModel.proto
|
|
6
6
|
/* eslint-disable */
|
|
@@ -8,7 +8,7 @@ import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
|
8
8
|
import Long from "long";
|
|
9
9
|
import { Timestamp } from "../google/protobuf/timestamp";
|
|
10
10
|
import { DataModule } from "./dataModule";
|
|
11
|
-
import { ForgeException, JTTLiveRequest, JTTLiveStatusUpdate, JTTLiveUpdate, JTTPlaybackRequest, JTTPlaybackUpdate, JTTQueryFileRequest, JTTQueryFileResponse, RawStingWithProps, RequestAlertMediaUpload, } from "./forge";
|
|
11
|
+
import { ForgeException, JTTLiveRequest, JTTLiveStatusUpdate, JTTLiveUpdate, JTTPlaybackRequest, JTTPlaybackUpdate, JTTQueryFileRequest, JTTQueryFileResponse, R31AudioConfirmed, R31AudioRequest, R31AudioResponse, R31AudioUpload, R31AudioUploadConfirmation, RawStingWithProps, RequestAlertMediaUpload, } from "./forge";
|
|
12
12
|
export const protobufPackage = "com.fatehan.packets";
|
|
13
13
|
export var Alert;
|
|
14
14
|
(function (Alert) {
|
|
@@ -13372,7 +13372,6 @@ function createBaseTask() {
|
|
|
13372
13372
|
imei: Long.UZERO,
|
|
13373
13373
|
deviceData: undefined,
|
|
13374
13374
|
protocol: 0,
|
|
13375
|
-
workShiftIds: [],
|
|
13376
13375
|
};
|
|
13377
13376
|
}
|
|
13378
13377
|
export const Task = {
|
|
@@ -13395,11 +13394,6 @@ export const Task = {
|
|
|
13395
13394
|
if (message.protocol !== 0) {
|
|
13396
13395
|
writer.uint32(48).int32(message.protocol);
|
|
13397
13396
|
}
|
|
13398
|
-
writer.uint32(58).fork();
|
|
13399
|
-
for (const v of message.workShiftIds) {
|
|
13400
|
-
writer.uint64(v.toString());
|
|
13401
|
-
}
|
|
13402
|
-
writer.join();
|
|
13403
13397
|
return writer;
|
|
13404
13398
|
},
|
|
13405
13399
|
decode(input, length) {
|
|
@@ -13454,20 +13448,6 @@ export const Task = {
|
|
|
13454
13448
|
message.protocol = reader.int32();
|
|
13455
13449
|
continue;
|
|
13456
13450
|
}
|
|
13457
|
-
case 7: {
|
|
13458
|
-
if (tag === 56) {
|
|
13459
|
-
message.workShiftIds.push(Long.fromString(reader.uint64().toString(), true));
|
|
13460
|
-
continue;
|
|
13461
|
-
}
|
|
13462
|
-
if (tag === 58) {
|
|
13463
|
-
const end2 = reader.uint32() + reader.pos;
|
|
13464
|
-
while (reader.pos < end2) {
|
|
13465
|
-
message.workShiftIds.push(Long.fromString(reader.uint64().toString(), true));
|
|
13466
|
-
}
|
|
13467
|
-
continue;
|
|
13468
|
-
}
|
|
13469
|
-
break;
|
|
13470
|
-
}
|
|
13471
13451
|
}
|
|
13472
13452
|
if ((tag & 7) === 4 || tag === 0) {
|
|
13473
13453
|
break;
|
|
@@ -13496,7 +13476,6 @@ export const Task = {
|
|
|
13496
13476
|
? DeviceData.fromPartial(object.deviceData)
|
|
13497
13477
|
: undefined;
|
|
13498
13478
|
message.protocol = object.protocol ?? 0;
|
|
13499
|
-
message.workShiftIds = object.workShiftIds?.map((e) => Long.fromValue(e)) || [];
|
|
13500
13479
|
return message;
|
|
13501
13480
|
},
|
|
13502
13481
|
};
|
|
@@ -14100,6 +14079,8 @@ function createBaseForgeDecoder() {
|
|
|
14100
14079
|
exception: undefined,
|
|
14101
14080
|
jttLiveStatusUpdate: undefined,
|
|
14102
14081
|
jttQueryFileResponse: undefined,
|
|
14082
|
+
r31AudioResponse: undefined,
|
|
14083
|
+
r31AudioUploadConfirmation: undefined,
|
|
14103
14084
|
};
|
|
14104
14085
|
}
|
|
14105
14086
|
export const ForgeDecoder = {
|
|
@@ -14125,6 +14106,12 @@ export const ForgeDecoder = {
|
|
|
14125
14106
|
if (message.jttQueryFileResponse !== undefined) {
|
|
14126
14107
|
JTTQueryFileResponse.encode(message.jttQueryFileResponse, writer.uint32(178).fork()).join();
|
|
14127
14108
|
}
|
|
14109
|
+
if (message.r31AudioResponse !== undefined) {
|
|
14110
|
+
R31AudioResponse.encode(message.r31AudioResponse, writer.uint32(186).fork()).join();
|
|
14111
|
+
}
|
|
14112
|
+
if (message.r31AudioUploadConfirmation !== undefined) {
|
|
14113
|
+
R31AudioUploadConfirmation.encode(message.r31AudioUploadConfirmation, writer.uint32(194).fork()).join();
|
|
14114
|
+
}
|
|
14128
14115
|
return writer;
|
|
14129
14116
|
},
|
|
14130
14117
|
decode(input, length) {
|
|
@@ -14183,6 +14170,20 @@ export const ForgeDecoder = {
|
|
|
14183
14170
|
message.jttQueryFileResponse = JTTQueryFileResponse.decode(reader, reader.uint32());
|
|
14184
14171
|
continue;
|
|
14185
14172
|
}
|
|
14173
|
+
case 23: {
|
|
14174
|
+
if (tag !== 186) {
|
|
14175
|
+
break;
|
|
14176
|
+
}
|
|
14177
|
+
message.r31AudioResponse = R31AudioResponse.decode(reader, reader.uint32());
|
|
14178
|
+
continue;
|
|
14179
|
+
}
|
|
14180
|
+
case 24: {
|
|
14181
|
+
if (tag !== 194) {
|
|
14182
|
+
break;
|
|
14183
|
+
}
|
|
14184
|
+
message.r31AudioUploadConfirmation = R31AudioUploadConfirmation.decode(reader, reader.uint32());
|
|
14185
|
+
continue;
|
|
14186
|
+
}
|
|
14186
14187
|
}
|
|
14187
14188
|
if ((tag & 7) === 4 || tag === 0) {
|
|
14188
14189
|
break;
|
|
@@ -14211,6 +14212,13 @@ export const ForgeDecoder = {
|
|
|
14211
14212
|
message.jttQueryFileResponse = (object.jttQueryFileResponse !== undefined && object.jttQueryFileResponse !== null)
|
|
14212
14213
|
? JTTQueryFileResponse.fromPartial(object.jttQueryFileResponse)
|
|
14213
14214
|
: undefined;
|
|
14215
|
+
message.r31AudioResponse = (object.r31AudioResponse !== undefined && object.r31AudioResponse !== null)
|
|
14216
|
+
? R31AudioResponse.fromPartial(object.r31AudioResponse)
|
|
14217
|
+
: undefined;
|
|
14218
|
+
message.r31AudioUploadConfirmation =
|
|
14219
|
+
(object.r31AudioUploadConfirmation !== undefined && object.r31AudioUploadConfirmation !== null)
|
|
14220
|
+
? R31AudioUploadConfirmation.fromPartial(object.r31AudioUploadConfirmation)
|
|
14221
|
+
: undefined;
|
|
14214
14222
|
return message;
|
|
14215
14223
|
},
|
|
14216
14224
|
};
|
|
@@ -14227,6 +14235,9 @@ function createBaseForgeEncoder() {
|
|
|
14227
14235
|
jttPlaybackRequest: undefined,
|
|
14228
14236
|
jttPlaybackUpdate: undefined,
|
|
14229
14237
|
jttMediaUploadRequest: undefined,
|
|
14238
|
+
r31AudioRequest: undefined,
|
|
14239
|
+
r31AudioUpload: undefined,
|
|
14240
|
+
r31AudioConfirmed: undefined,
|
|
14230
14241
|
};
|
|
14231
14242
|
}
|
|
14232
14243
|
export const ForgeEncoder = {
|
|
@@ -14264,6 +14275,15 @@ export const ForgeEncoder = {
|
|
|
14264
14275
|
if (message.jttMediaUploadRequest !== undefined) {
|
|
14265
14276
|
RequestAlertMediaUpload.encode(message.jttMediaUploadRequest, writer.uint32(210).fork()).join();
|
|
14266
14277
|
}
|
|
14278
|
+
if (message.r31AudioRequest !== undefined) {
|
|
14279
|
+
R31AudioRequest.encode(message.r31AudioRequest, writer.uint32(218).fork()).join();
|
|
14280
|
+
}
|
|
14281
|
+
if (message.r31AudioUpload !== undefined) {
|
|
14282
|
+
R31AudioUpload.encode(message.r31AudioUpload, writer.uint32(226).fork()).join();
|
|
14283
|
+
}
|
|
14284
|
+
if (message.r31AudioConfirmed !== undefined) {
|
|
14285
|
+
R31AudioConfirmed.encode(message.r31AudioConfirmed, writer.uint32(234).fork()).join();
|
|
14286
|
+
}
|
|
14267
14287
|
return writer;
|
|
14268
14288
|
},
|
|
14269
14289
|
decode(input, length) {
|
|
@@ -14350,6 +14370,27 @@ export const ForgeEncoder = {
|
|
|
14350
14370
|
message.jttMediaUploadRequest = RequestAlertMediaUpload.decode(reader, reader.uint32());
|
|
14351
14371
|
continue;
|
|
14352
14372
|
}
|
|
14373
|
+
case 27: {
|
|
14374
|
+
if (tag !== 218) {
|
|
14375
|
+
break;
|
|
14376
|
+
}
|
|
14377
|
+
message.r31AudioRequest = R31AudioRequest.decode(reader, reader.uint32());
|
|
14378
|
+
continue;
|
|
14379
|
+
}
|
|
14380
|
+
case 28: {
|
|
14381
|
+
if (tag !== 226) {
|
|
14382
|
+
break;
|
|
14383
|
+
}
|
|
14384
|
+
message.r31AudioUpload = R31AudioUpload.decode(reader, reader.uint32());
|
|
14385
|
+
continue;
|
|
14386
|
+
}
|
|
14387
|
+
case 29: {
|
|
14388
|
+
if (tag !== 234) {
|
|
14389
|
+
break;
|
|
14390
|
+
}
|
|
14391
|
+
message.r31AudioConfirmed = R31AudioConfirmed.decode(reader, reader.uint32());
|
|
14392
|
+
continue;
|
|
14393
|
+
}
|
|
14353
14394
|
}
|
|
14354
14395
|
if ((tag & 7) === 4 || tag === 0) {
|
|
14355
14396
|
break;
|
|
@@ -14391,6 +14432,15 @@ export const ForgeEncoder = {
|
|
|
14391
14432
|
(object.jttMediaUploadRequest !== undefined && object.jttMediaUploadRequest !== null)
|
|
14392
14433
|
? RequestAlertMediaUpload.fromPartial(object.jttMediaUploadRequest)
|
|
14393
14434
|
: undefined;
|
|
14435
|
+
message.r31AudioRequest = (object.r31AudioRequest !== undefined && object.r31AudioRequest !== null)
|
|
14436
|
+
? R31AudioRequest.fromPartial(object.r31AudioRequest)
|
|
14437
|
+
: undefined;
|
|
14438
|
+
message.r31AudioUpload = (object.r31AudioUpload !== undefined && object.r31AudioUpload !== null)
|
|
14439
|
+
? R31AudioUpload.fromPartial(object.r31AudioUpload)
|
|
14440
|
+
: undefined;
|
|
14441
|
+
message.r31AudioConfirmed = (object.r31AudioConfirmed !== undefined && object.r31AudioConfirmed !== null)
|
|
14442
|
+
? R31AudioConfirmed.fromPartial(object.r31AudioConfirmed)
|
|
14443
|
+
: undefined;
|
|
14394
14444
|
return message;
|
|
14395
14445
|
},
|
|
14396
14446
|
};
|
|
@@ -84,6 +84,26 @@ export interface RequestAlertMediaUpload {
|
|
|
84
84
|
gpsTime: Date | undefined;
|
|
85
85
|
reserve: Uint8Array;
|
|
86
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
|
+
}
|
|
87
107
|
export declare const RawStingWithProps: MessageFns<RawStingWithProps>;
|
|
88
108
|
export declare const ForgeException: MessageFns<ForgeException>;
|
|
89
109
|
export declare const JTTPlaybackUpdate: MessageFns<JTTPlaybackUpdate>;
|
|
@@ -97,6 +117,11 @@ export declare const JTTQueryFileRequest: MessageFns<JTTQueryFileRequest>;
|
|
|
97
117
|
export declare const JTTPlaybackRequest: MessageFns<JTTPlaybackRequest>;
|
|
98
118
|
export declare const JTTPlaybackRequest_Files: MessageFns<JTTPlaybackRequest_Files>;
|
|
99
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>;
|
|
100
125
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
101
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 {} ? {
|
|
102
127
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
@@ -1 +1 @@
|
|
|
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,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACjC;AAED,MAAM,WAAW,iBAAiB;IAChC,aAAa,EAAE,MAAM,CAAC;IACtB,eAAe,EAAE,MAAM,CAAC;IACxB,OAAO,EAAE,yBAAyB,EAAE,CAAC;CACtC;AAED,MAAM,WAAW,yBAAyB;IACxC,WAAW,EAAE,MAAM,CAAC;IACpB,gBAAgB,EAAE,IAAI,GAAG,SAAS,CAAC;CACpC;AAED,MAAM,WAAW,oBAAoB;IACnC,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,yBAAyB,EAAE,CAAC;CACpC;AAED,MAAM,WAAW,yBAAyB;IACxC,aAAa,EAAE,MAAM,CAAC;IACtB,QAAQ,E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1
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
2
|
// versions:
|
|
3
|
-
// protoc-gen-ts_proto v2.11.
|
|
3
|
+
// protoc-gen-ts_proto v2.11.8
|
|
4
4
|
// protoc v7.34.1
|
|
5
5
|
// source: packets/forge.proto
|
|
6
6
|
/* eslint-disable */
|
|
@@ -1064,6 +1064,266 @@ export const RequestAlertMediaUpload = {
|
|
|
1064
1064
|
return message;
|
|
1065
1065
|
},
|
|
1066
1066
|
};
|
|
1067
|
+
function createBaseR31AudioRequest() {
|
|
1068
|
+
return {};
|
|
1069
|
+
}
|
|
1070
|
+
export const R31AudioRequest = {
|
|
1071
|
+
encode(_, writer = new BinaryWriter()) {
|
|
1072
|
+
return writer;
|
|
1073
|
+
},
|
|
1074
|
+
decode(input, length) {
|
|
1075
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1076
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1077
|
+
const message = createBaseR31AudioRequest();
|
|
1078
|
+
while (reader.pos < end) {
|
|
1079
|
+
const tag = reader.uint32();
|
|
1080
|
+
switch (tag >>> 3) {
|
|
1081
|
+
}
|
|
1082
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1083
|
+
break;
|
|
1084
|
+
}
|
|
1085
|
+
reader.skip(tag & 7);
|
|
1086
|
+
}
|
|
1087
|
+
return message;
|
|
1088
|
+
},
|
|
1089
|
+
create(base) {
|
|
1090
|
+
return R31AudioRequest.fromPartial(base ?? {});
|
|
1091
|
+
},
|
|
1092
|
+
fromPartial(_) {
|
|
1093
|
+
const message = createBaseR31AudioRequest();
|
|
1094
|
+
return message;
|
|
1095
|
+
},
|
|
1096
|
+
};
|
|
1097
|
+
function createBaseR31AudioUpload() {
|
|
1098
|
+
return { timestamp: undefined, sectionNo: 0 };
|
|
1099
|
+
}
|
|
1100
|
+
export const R31AudioUpload = {
|
|
1101
|
+
encode(message, writer = new BinaryWriter()) {
|
|
1102
|
+
if (message.timestamp !== undefined) {
|
|
1103
|
+
Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(10).fork()).join();
|
|
1104
|
+
}
|
|
1105
|
+
if (message.sectionNo !== 0) {
|
|
1106
|
+
writer.uint32(16).uint32(message.sectionNo);
|
|
1107
|
+
}
|
|
1108
|
+
return writer;
|
|
1109
|
+
},
|
|
1110
|
+
decode(input, length) {
|
|
1111
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1112
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1113
|
+
const message = createBaseR31AudioUpload();
|
|
1114
|
+
while (reader.pos < end) {
|
|
1115
|
+
const tag = reader.uint32();
|
|
1116
|
+
switch (tag >>> 3) {
|
|
1117
|
+
case 1: {
|
|
1118
|
+
if (tag !== 10) {
|
|
1119
|
+
break;
|
|
1120
|
+
}
|
|
1121
|
+
message.timestamp = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
1122
|
+
continue;
|
|
1123
|
+
}
|
|
1124
|
+
case 2: {
|
|
1125
|
+
if (tag !== 16) {
|
|
1126
|
+
break;
|
|
1127
|
+
}
|
|
1128
|
+
message.sectionNo = reader.uint32();
|
|
1129
|
+
continue;
|
|
1130
|
+
}
|
|
1131
|
+
}
|
|
1132
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1133
|
+
break;
|
|
1134
|
+
}
|
|
1135
|
+
reader.skip(tag & 7);
|
|
1136
|
+
}
|
|
1137
|
+
return message;
|
|
1138
|
+
},
|
|
1139
|
+
create(base) {
|
|
1140
|
+
return R31AudioUpload.fromPartial(base ?? {});
|
|
1141
|
+
},
|
|
1142
|
+
fromPartial(object) {
|
|
1143
|
+
const message = createBaseR31AudioUpload();
|
|
1144
|
+
message.timestamp = object.timestamp ?? undefined;
|
|
1145
|
+
message.sectionNo = object.sectionNo ?? 0;
|
|
1146
|
+
return message;
|
|
1147
|
+
},
|
|
1148
|
+
};
|
|
1149
|
+
function createBaseR31AudioConfirmed() {
|
|
1150
|
+
return { timestamp: undefined, totalNo: 0, totalServer: 0, packageStatus: new Uint8Array(0) };
|
|
1151
|
+
}
|
|
1152
|
+
export const R31AudioConfirmed = {
|
|
1153
|
+
encode(message, writer = new BinaryWriter()) {
|
|
1154
|
+
if (message.timestamp !== undefined) {
|
|
1155
|
+
Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(10).fork()).join();
|
|
1156
|
+
}
|
|
1157
|
+
if (message.totalNo !== 0) {
|
|
1158
|
+
writer.uint32(16).uint32(message.totalNo);
|
|
1159
|
+
}
|
|
1160
|
+
if (message.totalServer !== 0) {
|
|
1161
|
+
writer.uint32(24).uint32(message.totalServer);
|
|
1162
|
+
}
|
|
1163
|
+
if (message.packageStatus.length !== 0) {
|
|
1164
|
+
writer.uint32(34).bytes(message.packageStatus);
|
|
1165
|
+
}
|
|
1166
|
+
return writer;
|
|
1167
|
+
},
|
|
1168
|
+
decode(input, length) {
|
|
1169
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1170
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1171
|
+
const message = createBaseR31AudioConfirmed();
|
|
1172
|
+
while (reader.pos < end) {
|
|
1173
|
+
const tag = reader.uint32();
|
|
1174
|
+
switch (tag >>> 3) {
|
|
1175
|
+
case 1: {
|
|
1176
|
+
if (tag !== 10) {
|
|
1177
|
+
break;
|
|
1178
|
+
}
|
|
1179
|
+
message.timestamp = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
1180
|
+
continue;
|
|
1181
|
+
}
|
|
1182
|
+
case 2: {
|
|
1183
|
+
if (tag !== 16) {
|
|
1184
|
+
break;
|
|
1185
|
+
}
|
|
1186
|
+
message.totalNo = reader.uint32();
|
|
1187
|
+
continue;
|
|
1188
|
+
}
|
|
1189
|
+
case 3: {
|
|
1190
|
+
if (tag !== 24) {
|
|
1191
|
+
break;
|
|
1192
|
+
}
|
|
1193
|
+
message.totalServer = reader.uint32();
|
|
1194
|
+
continue;
|
|
1195
|
+
}
|
|
1196
|
+
case 4: {
|
|
1197
|
+
if (tag !== 34) {
|
|
1198
|
+
break;
|
|
1199
|
+
}
|
|
1200
|
+
message.packageStatus = reader.bytes();
|
|
1201
|
+
continue;
|
|
1202
|
+
}
|
|
1203
|
+
}
|
|
1204
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1205
|
+
break;
|
|
1206
|
+
}
|
|
1207
|
+
reader.skip(tag & 7);
|
|
1208
|
+
}
|
|
1209
|
+
return message;
|
|
1210
|
+
},
|
|
1211
|
+
create(base) {
|
|
1212
|
+
return R31AudioConfirmed.fromPartial(base ?? {});
|
|
1213
|
+
},
|
|
1214
|
+
fromPartial(object) {
|
|
1215
|
+
const message = createBaseR31AudioConfirmed();
|
|
1216
|
+
message.timestamp = object.timestamp ?? undefined;
|
|
1217
|
+
message.totalNo = object.totalNo ?? 0;
|
|
1218
|
+
message.totalServer = object.totalServer ?? 0;
|
|
1219
|
+
message.packageStatus = object.packageStatus ?? new Uint8Array(0);
|
|
1220
|
+
return message;
|
|
1221
|
+
},
|
|
1222
|
+
};
|
|
1223
|
+
function createBaseR31AudioResponse() {
|
|
1224
|
+
return { timestamp: undefined, sectionNo: 0, segmentation: new Uint8Array(0) };
|
|
1225
|
+
}
|
|
1226
|
+
export const R31AudioResponse = {
|
|
1227
|
+
encode(message, writer = new BinaryWriter()) {
|
|
1228
|
+
if (message.timestamp !== undefined) {
|
|
1229
|
+
Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(10).fork()).join();
|
|
1230
|
+
}
|
|
1231
|
+
if (message.sectionNo !== 0) {
|
|
1232
|
+
writer.uint32(16).uint32(message.sectionNo);
|
|
1233
|
+
}
|
|
1234
|
+
if (message.segmentation.length !== 0) {
|
|
1235
|
+
writer.uint32(26).bytes(message.segmentation);
|
|
1236
|
+
}
|
|
1237
|
+
return writer;
|
|
1238
|
+
},
|
|
1239
|
+
decode(input, length) {
|
|
1240
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1241
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1242
|
+
const message = createBaseR31AudioResponse();
|
|
1243
|
+
while (reader.pos < end) {
|
|
1244
|
+
const tag = reader.uint32();
|
|
1245
|
+
switch (tag >>> 3) {
|
|
1246
|
+
case 1: {
|
|
1247
|
+
if (tag !== 10) {
|
|
1248
|
+
break;
|
|
1249
|
+
}
|
|
1250
|
+
message.timestamp = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
1251
|
+
continue;
|
|
1252
|
+
}
|
|
1253
|
+
case 2: {
|
|
1254
|
+
if (tag !== 16) {
|
|
1255
|
+
break;
|
|
1256
|
+
}
|
|
1257
|
+
message.sectionNo = reader.uint32();
|
|
1258
|
+
continue;
|
|
1259
|
+
}
|
|
1260
|
+
case 3: {
|
|
1261
|
+
if (tag !== 26) {
|
|
1262
|
+
break;
|
|
1263
|
+
}
|
|
1264
|
+
message.segmentation = reader.bytes();
|
|
1265
|
+
continue;
|
|
1266
|
+
}
|
|
1267
|
+
}
|
|
1268
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1269
|
+
break;
|
|
1270
|
+
}
|
|
1271
|
+
reader.skip(tag & 7);
|
|
1272
|
+
}
|
|
1273
|
+
return message;
|
|
1274
|
+
},
|
|
1275
|
+
create(base) {
|
|
1276
|
+
return R31AudioResponse.fromPartial(base ?? {});
|
|
1277
|
+
},
|
|
1278
|
+
fromPartial(object) {
|
|
1279
|
+
const message = createBaseR31AudioResponse();
|
|
1280
|
+
message.timestamp = object.timestamp ?? undefined;
|
|
1281
|
+
message.sectionNo = object.sectionNo ?? 0;
|
|
1282
|
+
message.segmentation = object.segmentation ?? new Uint8Array(0);
|
|
1283
|
+
return message;
|
|
1284
|
+
},
|
|
1285
|
+
};
|
|
1286
|
+
function createBaseR31AudioUploadConfirmation() {
|
|
1287
|
+
return { timestamp: undefined };
|
|
1288
|
+
}
|
|
1289
|
+
export const R31AudioUploadConfirmation = {
|
|
1290
|
+
encode(message, writer = new BinaryWriter()) {
|
|
1291
|
+
if (message.timestamp !== undefined) {
|
|
1292
|
+
Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(10).fork()).join();
|
|
1293
|
+
}
|
|
1294
|
+
return writer;
|
|
1295
|
+
},
|
|
1296
|
+
decode(input, length) {
|
|
1297
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1298
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1299
|
+
const message = createBaseR31AudioUploadConfirmation();
|
|
1300
|
+
while (reader.pos < end) {
|
|
1301
|
+
const tag = reader.uint32();
|
|
1302
|
+
switch (tag >>> 3) {
|
|
1303
|
+
case 1: {
|
|
1304
|
+
if (tag !== 10) {
|
|
1305
|
+
break;
|
|
1306
|
+
}
|
|
1307
|
+
message.timestamp = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
1308
|
+
continue;
|
|
1309
|
+
}
|
|
1310
|
+
}
|
|
1311
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1312
|
+
break;
|
|
1313
|
+
}
|
|
1314
|
+
reader.skip(tag & 7);
|
|
1315
|
+
}
|
|
1316
|
+
return message;
|
|
1317
|
+
},
|
|
1318
|
+
create(base) {
|
|
1319
|
+
return R31AudioUploadConfirmation.fromPartial(base ?? {});
|
|
1320
|
+
},
|
|
1321
|
+
fromPartial(object) {
|
|
1322
|
+
const message = createBaseR31AudioUploadConfirmation();
|
|
1323
|
+
message.timestamp = object.timestamp ?? undefined;
|
|
1324
|
+
return message;
|
|
1325
|
+
},
|
|
1326
|
+
};
|
|
1067
1327
|
function toTimestamp(date) {
|
|
1068
1328
|
const seconds = numberToLong(Math.trunc(date.getTime() / 1_000));
|
|
1069
1329
|
const nanos = (date.getTime() % 1_000) * 1_000_000;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fatehan/tsrp",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.6",
|
|
4
4
|
"description": "fatehan communication protocol",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"@types/long": "^5.0.0",
|
|
35
35
|
"@types/node": "^25.6.0",
|
|
36
36
|
"ts-node": "^10.9.2",
|
|
37
|
-
"ts-proto": "^2.11.
|
|
37
|
+
"ts-proto": "^2.11.7",
|
|
38
38
|
"typescript": "^6.0.3",
|
|
39
39
|
"vitest": "^4.1.5"
|
|
40
40
|
},
|