@fivenet-app/gen 0.9.3-1 → 0.9.3

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 CHANGED
@@ -1,15 +1,11 @@
1
1
  {
2
2
  "name": "@fivenet-app/gen",
3
3
  "private": false,
4
- "version": "0.9.3-1",
4
+ "version": "0.9.3",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "repository": {
8
8
  "type": "git",
9
9
  "url": "git+https://github.com/fivenet-app/fivenet.git"
10
- },
11
- "devDependencies": {
12
- "@protobuf-ts/plugin": "2.9.4",
13
- "google-protobuf": "3.21.4"
14
10
  }
15
11
  }
@@ -144,9 +144,9 @@ export interface RegisterAccountRequest {
144
144
  */
145
145
  resetToken: boolean;
146
146
  /**
147
- * @generated from protobuf field: optional int32 last_char_id = 3;
147
+ * @generated from protobuf field: optional int32 char_id = 3;
148
148
  */
149
- lastCharId?: number;
149
+ charId?: number;
150
150
  }
151
151
  /**
152
152
  * @generated from protobuf message services.sync.RegisterAccountResponse
@@ -494,7 +494,7 @@ class RegisterAccountRequest$Type extends MessageType<RegisterAccountRequest> {
494
494
  super("services.sync.RegisterAccountRequest", [
495
495
  { no: 1, name: "identifier", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { maxLen: "64" } } } },
496
496
  { no: 2, name: "reset_token", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
497
- { no: 3, name: "last_char_id", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/, options: { "validate.rules": { int32: { gt: 0 } } } }
497
+ { no: 3, name: "char_id", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/, options: { "validate.rules": { int32: { gt: 0 } } } }
498
498
  ]);
499
499
  }
500
500
  create(value?: PartialMessage<RegisterAccountRequest>): RegisterAccountRequest {
@@ -516,8 +516,8 @@ class RegisterAccountRequest$Type extends MessageType<RegisterAccountRequest> {
516
516
  case /* bool reset_token */ 2:
517
517
  message.resetToken = reader.bool();
518
518
  break;
519
- case /* optional int32 last_char_id */ 3:
520
- message.lastCharId = reader.int32();
519
+ case /* optional int32 char_id */ 3:
520
+ message.charId = reader.int32();
521
521
  break;
522
522
  default:
523
523
  let u = options.readUnknownField;
@@ -537,9 +537,9 @@ class RegisterAccountRequest$Type extends MessageType<RegisterAccountRequest> {
537
537
  /* bool reset_token = 2; */
538
538
  if (message.resetToken !== false)
539
539
  writer.tag(2, WireType.Varint).bool(message.resetToken);
540
- /* optional int32 last_char_id = 3; */
541
- if (message.lastCharId !== undefined)
542
- writer.tag(3, WireType.Varint).int32(message.lastCharId);
540
+ /* optional int32 char_id = 3; */
541
+ if (message.charId !== undefined)
542
+ writer.tag(3, WireType.Varint).int32(message.charId);
543
543
  let u = options.writeUnknownFields;
544
544
  if (u !== false)
545
545
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);