@fivenet-app/gen 0.9.3-3 → 0.9.3-4
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/package.json +1 -1
- package/resources/sync/data.ts +21 -9
- package/resources/users/activity.ts +12 -12
package/package.json
CHANGED
package/resources/sync/data.ts
CHANGED
|
@@ -69,9 +69,9 @@ export interface DataUserLocations {
|
|
|
69
69
|
*/
|
|
70
70
|
users: UserLocation[];
|
|
71
71
|
/**
|
|
72
|
-
* @generated from protobuf field: optional bool
|
|
72
|
+
* @generated from protobuf field: optional bool clear_all = 2;
|
|
73
73
|
*/
|
|
74
|
-
|
|
74
|
+
clearAll?: boolean;
|
|
75
75
|
}
|
|
76
76
|
/**
|
|
77
77
|
* @generated from protobuf message resources.sync.UserLocation
|
|
@@ -93,6 +93,10 @@ export interface UserLocation {
|
|
|
93
93
|
* @generated from protobuf field: bool hidden = 4;
|
|
94
94
|
*/
|
|
95
95
|
hidden: boolean;
|
|
96
|
+
/**
|
|
97
|
+
* @generated from protobuf field: bool remove = 5;
|
|
98
|
+
*/
|
|
99
|
+
remove: boolean;
|
|
96
100
|
}
|
|
97
101
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
98
102
|
class DataStatus$Type extends MessageType<DataStatus> {
|
|
@@ -334,7 +338,7 @@ class DataUserLocations$Type extends MessageType<DataUserLocations> {
|
|
|
334
338
|
constructor() {
|
|
335
339
|
super("resources.sync.DataUserLocations", [
|
|
336
340
|
{ no: 1, name: "users", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => UserLocation, options: { "validate.rules": { repeated: { maxItems: "2000" } } } },
|
|
337
|
-
{ no: 2, name: "
|
|
341
|
+
{ no: 2, name: "clear_all", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }
|
|
338
342
|
]);
|
|
339
343
|
}
|
|
340
344
|
create(value?: PartialMessage<DataUserLocations>): DataUserLocations {
|
|
@@ -352,8 +356,8 @@ class DataUserLocations$Type extends MessageType<DataUserLocations> {
|
|
|
352
356
|
case /* repeated resources.sync.UserLocation users */ 1:
|
|
353
357
|
message.users.push(UserLocation.internalBinaryRead(reader, reader.uint32(), options));
|
|
354
358
|
break;
|
|
355
|
-
case /* optional bool
|
|
356
|
-
message.
|
|
359
|
+
case /* optional bool clear_all */ 2:
|
|
360
|
+
message.clearAll = reader.bool();
|
|
357
361
|
break;
|
|
358
362
|
default:
|
|
359
363
|
let u = options.readUnknownField;
|
|
@@ -370,9 +374,9 @@ class DataUserLocations$Type extends MessageType<DataUserLocations> {
|
|
|
370
374
|
/* repeated resources.sync.UserLocation users = 1; */
|
|
371
375
|
for (let i = 0; i < message.users.length; i++)
|
|
372
376
|
UserLocation.internalBinaryWrite(message.users[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
373
|
-
/* optional bool
|
|
374
|
-
if (message.
|
|
375
|
-
writer.tag(2, WireType.Varint).bool(message.
|
|
377
|
+
/* optional bool clear_all = 2; */
|
|
378
|
+
if (message.clearAll !== undefined)
|
|
379
|
+
writer.tag(2, WireType.Varint).bool(message.clearAll);
|
|
376
380
|
let u = options.writeUnknownFields;
|
|
377
381
|
if (u !== false)
|
|
378
382
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -390,7 +394,8 @@ class UserLocation$Type extends MessageType<UserLocation> {
|
|
|
390
394
|
{ no: 1, name: "identifier", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "64" } } } },
|
|
391
395
|
{ no: 2, name: "job", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "20" } } } },
|
|
392
396
|
{ no: 3, name: "coords", kind: "message", T: () => Coords, options: { "validate.rules": { message: { required: true } } } },
|
|
393
|
-
{ no: 4, name: "hidden", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
397
|
+
{ no: 4, name: "hidden", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
398
|
+
{ no: 5, name: "remove", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
394
399
|
]);
|
|
395
400
|
}
|
|
396
401
|
create(value?: PartialMessage<UserLocation>): UserLocation {
|
|
@@ -398,6 +403,7 @@ class UserLocation$Type extends MessageType<UserLocation> {
|
|
|
398
403
|
message.identifier = "";
|
|
399
404
|
message.job = "";
|
|
400
405
|
message.hidden = false;
|
|
406
|
+
message.remove = false;
|
|
401
407
|
if (value !== undefined)
|
|
402
408
|
reflectionMergePartial<UserLocation>(this, message, value);
|
|
403
409
|
return message;
|
|
@@ -419,6 +425,9 @@ class UserLocation$Type extends MessageType<UserLocation> {
|
|
|
419
425
|
case /* bool hidden */ 4:
|
|
420
426
|
message.hidden = reader.bool();
|
|
421
427
|
break;
|
|
428
|
+
case /* bool remove */ 5:
|
|
429
|
+
message.remove = reader.bool();
|
|
430
|
+
break;
|
|
422
431
|
default:
|
|
423
432
|
let u = options.readUnknownField;
|
|
424
433
|
if (u === "throw")
|
|
@@ -443,6 +452,9 @@ class UserLocation$Type extends MessageType<UserLocation> {
|
|
|
443
452
|
/* bool hidden = 4; */
|
|
444
453
|
if (message.hidden !== false)
|
|
445
454
|
writer.tag(4, WireType.Varint).bool(message.hidden);
|
|
455
|
+
/* bool remove = 5; */
|
|
456
|
+
if (message.remove !== false)
|
|
457
|
+
writer.tag(5, WireType.Varint).bool(message.remove);
|
|
446
458
|
let u = options.writeUnknownFields;
|
|
447
459
|
if (u !== false)
|
|
448
460
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -188,11 +188,11 @@ export interface UserWantedChange {
|
|
|
188
188
|
*/
|
|
189
189
|
export interface UserTrafficInfractionPointsChange {
|
|
190
190
|
/**
|
|
191
|
-
* @generated from protobuf field:
|
|
191
|
+
* @generated from protobuf field: uint32 old = 1;
|
|
192
192
|
*/
|
|
193
193
|
old: number;
|
|
194
194
|
/**
|
|
195
|
-
* @generated from protobuf field:
|
|
195
|
+
* @generated from protobuf field: uint32 new = 2;
|
|
196
196
|
*/
|
|
197
197
|
new: number;
|
|
198
198
|
}
|
|
@@ -778,8 +778,8 @@ export const UserWantedChange = new UserWantedChange$Type();
|
|
|
778
778
|
class UserTrafficInfractionPointsChange$Type extends MessageType<UserTrafficInfractionPointsChange> {
|
|
779
779
|
constructor() {
|
|
780
780
|
super("resources.users.UserTrafficInfractionPointsChange", [
|
|
781
|
-
{ no: 1, name: "old", kind: "scalar", T:
|
|
782
|
-
{ no: 2, name: "new", kind: "scalar", T:
|
|
781
|
+
{ no: 1, name: "old", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
|
|
782
|
+
{ no: 2, name: "new", kind: "scalar", T: 13 /*ScalarType.UINT32*/ }
|
|
783
783
|
]);
|
|
784
784
|
}
|
|
785
785
|
create(value?: PartialMessage<UserTrafficInfractionPointsChange>): UserTrafficInfractionPointsChange {
|
|
@@ -795,11 +795,11 @@ class UserTrafficInfractionPointsChange$Type extends MessageType<UserTrafficInfr
|
|
|
795
795
|
while (reader.pos < end) {
|
|
796
796
|
let [fieldNo, wireType] = reader.tag();
|
|
797
797
|
switch (fieldNo) {
|
|
798
|
-
case /*
|
|
799
|
-
message.old = reader.
|
|
798
|
+
case /* uint32 old */ 1:
|
|
799
|
+
message.old = reader.uint32();
|
|
800
800
|
break;
|
|
801
|
-
case /*
|
|
802
|
-
message.new = reader.
|
|
801
|
+
case /* uint32 new */ 2:
|
|
802
|
+
message.new = reader.uint32();
|
|
803
803
|
break;
|
|
804
804
|
default:
|
|
805
805
|
let u = options.readUnknownField;
|
|
@@ -813,12 +813,12 @@ class UserTrafficInfractionPointsChange$Type extends MessageType<UserTrafficInfr
|
|
|
813
813
|
return message;
|
|
814
814
|
}
|
|
815
815
|
internalBinaryWrite(message: UserTrafficInfractionPointsChange, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
816
|
-
/*
|
|
816
|
+
/* uint32 old = 1; */
|
|
817
817
|
if (message.old !== 0)
|
|
818
|
-
writer.tag(1, WireType.Varint).
|
|
819
|
-
/*
|
|
818
|
+
writer.tag(1, WireType.Varint).uint32(message.old);
|
|
819
|
+
/* uint32 new = 2; */
|
|
820
820
|
if (message.new !== 0)
|
|
821
|
-
writer.tag(2, WireType.Varint).
|
|
821
|
+
writer.tag(2, WireType.Varint).uint32(message.new);
|
|
822
822
|
let u = options.writeUnknownFields;
|
|
823
823
|
if (u !== false)
|
|
824
824
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|