@fatehan/tsrp 1.5.14 → 1.6.0
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.js +1 -1
- package/dist/fatehan/identities/identities.js +1 -1
- 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.7
|
|
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.0",
|
|
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
|
},
|