protobuf-platform 1.0.276 → 1.0.278

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,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.0.276",
3
+ "version": "1.0.278",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/user/user.proto CHANGED
@@ -86,6 +86,15 @@ message RegistrationRequest {
86
86
  optional bool email_subscription = 11;
87
87
  optional int32 affiliate_id = 12;
88
88
  optional string promo_code = 13;
89
+ optional string user_ip = 14;
90
+ optional string nick_name = 15;
91
+ optional string gender = 16;
92
+ optional string nationality = 17;
93
+ optional string address = 18;
94
+ optional string phone = 19;
95
+ optional string postal_code = 20;
96
+ optional string referral = 21;
97
+ optional string device = 22;
89
98
  }
90
99
  message LoggedInResponse {
91
100
  int32 id = 1;
@@ -101,7 +110,8 @@ message LoggedInResponse {
101
110
  message LoginRequest {
102
111
  string email = 1;
103
112
  string password = 2;
104
- optional int32 is_admin = 5;
113
+ optional int32 is_admin = 3;
114
+ optional string user_ip = 4;
105
115
  }
106
116
  message UserDataRequest {
107
117
  int32 id = 1;
package/user/user_pb.js CHANGED
@@ -2446,7 +2446,16 @@ proto.user.RegistrationRequest.toObject = function(includeInstance, msg) {
2446
2446
  locale: jspb.Message.getFieldWithDefault(msg, 10, ""),
2447
2447
  emailSubscription: jspb.Message.getBooleanFieldWithDefault(msg, 11, false),
2448
2448
  affiliateId: jspb.Message.getFieldWithDefault(msg, 12, 0),
2449
- promoCode: jspb.Message.getFieldWithDefault(msg, 13, "")
2449
+ promoCode: jspb.Message.getFieldWithDefault(msg, 13, ""),
2450
+ userIp: jspb.Message.getFieldWithDefault(msg, 14, ""),
2451
+ nickName: jspb.Message.getFieldWithDefault(msg, 15, ""),
2452
+ gender: jspb.Message.getFieldWithDefault(msg, 16, ""),
2453
+ nationality: jspb.Message.getFieldWithDefault(msg, 17, ""),
2454
+ address: jspb.Message.getFieldWithDefault(msg, 18, ""),
2455
+ phone: jspb.Message.getFieldWithDefault(msg, 19, ""),
2456
+ postalCode: jspb.Message.getFieldWithDefault(msg, 20, ""),
2457
+ referral: jspb.Message.getFieldWithDefault(msg, 21, ""),
2458
+ device: jspb.Message.getFieldWithDefault(msg, 22, "")
2450
2459
  };
2451
2460
 
2452
2461
  if (includeInstance) {
@@ -2535,6 +2544,42 @@ proto.user.RegistrationRequest.deserializeBinaryFromReader = function(msg, reade
2535
2544
  var value = /** @type {string} */ (reader.readString());
2536
2545
  msg.setPromoCode(value);
2537
2546
  break;
2547
+ case 14:
2548
+ var value = /** @type {string} */ (reader.readString());
2549
+ msg.setUserIp(value);
2550
+ break;
2551
+ case 15:
2552
+ var value = /** @type {string} */ (reader.readString());
2553
+ msg.setNickName(value);
2554
+ break;
2555
+ case 16:
2556
+ var value = /** @type {string} */ (reader.readString());
2557
+ msg.setGender(value);
2558
+ break;
2559
+ case 17:
2560
+ var value = /** @type {string} */ (reader.readString());
2561
+ msg.setNationality(value);
2562
+ break;
2563
+ case 18:
2564
+ var value = /** @type {string} */ (reader.readString());
2565
+ msg.setAddress(value);
2566
+ break;
2567
+ case 19:
2568
+ var value = /** @type {string} */ (reader.readString());
2569
+ msg.setPhone(value);
2570
+ break;
2571
+ case 20:
2572
+ var value = /** @type {string} */ (reader.readString());
2573
+ msg.setPostalCode(value);
2574
+ break;
2575
+ case 21:
2576
+ var value = /** @type {string} */ (reader.readString());
2577
+ msg.setReferral(value);
2578
+ break;
2579
+ case 22:
2580
+ var value = /** @type {string} */ (reader.readString());
2581
+ msg.setDevice(value);
2582
+ break;
2538
2583
  default:
2539
2584
  reader.skipField();
2540
2585
  break;
@@ -2655,6 +2700,69 @@ proto.user.RegistrationRequest.serializeBinaryToWriter = function(message, write
2655
2700
  f
2656
2701
  );
2657
2702
  }
2703
+ f = /** @type {string} */ (jspb.Message.getField(message, 14));
2704
+ if (f != null) {
2705
+ writer.writeString(
2706
+ 14,
2707
+ f
2708
+ );
2709
+ }
2710
+ f = /** @type {string} */ (jspb.Message.getField(message, 15));
2711
+ if (f != null) {
2712
+ writer.writeString(
2713
+ 15,
2714
+ f
2715
+ );
2716
+ }
2717
+ f = /** @type {string} */ (jspb.Message.getField(message, 16));
2718
+ if (f != null) {
2719
+ writer.writeString(
2720
+ 16,
2721
+ f
2722
+ );
2723
+ }
2724
+ f = /** @type {string} */ (jspb.Message.getField(message, 17));
2725
+ if (f != null) {
2726
+ writer.writeString(
2727
+ 17,
2728
+ f
2729
+ );
2730
+ }
2731
+ f = /** @type {string} */ (jspb.Message.getField(message, 18));
2732
+ if (f != null) {
2733
+ writer.writeString(
2734
+ 18,
2735
+ f
2736
+ );
2737
+ }
2738
+ f = /** @type {string} */ (jspb.Message.getField(message, 19));
2739
+ if (f != null) {
2740
+ writer.writeString(
2741
+ 19,
2742
+ f
2743
+ );
2744
+ }
2745
+ f = /** @type {string} */ (jspb.Message.getField(message, 20));
2746
+ if (f != null) {
2747
+ writer.writeString(
2748
+ 20,
2749
+ f
2750
+ );
2751
+ }
2752
+ f = /** @type {string} */ (jspb.Message.getField(message, 21));
2753
+ if (f != null) {
2754
+ writer.writeString(
2755
+ 21,
2756
+ f
2757
+ );
2758
+ }
2759
+ f = /** @type {string} */ (jspb.Message.getField(message, 22));
2760
+ if (f != null) {
2761
+ writer.writeString(
2762
+ 22,
2763
+ f
2764
+ );
2765
+ }
2658
2766
  };
2659
2767
 
2660
2768
 
@@ -3072,6 +3180,330 @@ proto.user.RegistrationRequest.prototype.hasPromoCode = function() {
3072
3180
  };
3073
3181
 
3074
3182
 
3183
+ /**
3184
+ * optional string user_ip = 14;
3185
+ * @return {string}
3186
+ */
3187
+ proto.user.RegistrationRequest.prototype.getUserIp = function() {
3188
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, ""));
3189
+ };
3190
+
3191
+
3192
+ /**
3193
+ * @param {string} value
3194
+ * @return {!proto.user.RegistrationRequest} returns this
3195
+ */
3196
+ proto.user.RegistrationRequest.prototype.setUserIp = function(value) {
3197
+ return jspb.Message.setField(this, 14, value);
3198
+ };
3199
+
3200
+
3201
+ /**
3202
+ * Clears the field making it undefined.
3203
+ * @return {!proto.user.RegistrationRequest} returns this
3204
+ */
3205
+ proto.user.RegistrationRequest.prototype.clearUserIp = function() {
3206
+ return jspb.Message.setField(this, 14, undefined);
3207
+ };
3208
+
3209
+
3210
+ /**
3211
+ * Returns whether this field is set.
3212
+ * @return {boolean}
3213
+ */
3214
+ proto.user.RegistrationRequest.prototype.hasUserIp = function() {
3215
+ return jspb.Message.getField(this, 14) != null;
3216
+ };
3217
+
3218
+
3219
+ /**
3220
+ * optional string nick_name = 15;
3221
+ * @return {string}
3222
+ */
3223
+ proto.user.RegistrationRequest.prototype.getNickName = function() {
3224
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, ""));
3225
+ };
3226
+
3227
+
3228
+ /**
3229
+ * @param {string} value
3230
+ * @return {!proto.user.RegistrationRequest} returns this
3231
+ */
3232
+ proto.user.RegistrationRequest.prototype.setNickName = function(value) {
3233
+ return jspb.Message.setField(this, 15, value);
3234
+ };
3235
+
3236
+
3237
+ /**
3238
+ * Clears the field making it undefined.
3239
+ * @return {!proto.user.RegistrationRequest} returns this
3240
+ */
3241
+ proto.user.RegistrationRequest.prototype.clearNickName = function() {
3242
+ return jspb.Message.setField(this, 15, undefined);
3243
+ };
3244
+
3245
+
3246
+ /**
3247
+ * Returns whether this field is set.
3248
+ * @return {boolean}
3249
+ */
3250
+ proto.user.RegistrationRequest.prototype.hasNickName = function() {
3251
+ return jspb.Message.getField(this, 15) != null;
3252
+ };
3253
+
3254
+
3255
+ /**
3256
+ * optional string gender = 16;
3257
+ * @return {string}
3258
+ */
3259
+ proto.user.RegistrationRequest.prototype.getGender = function() {
3260
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, ""));
3261
+ };
3262
+
3263
+
3264
+ /**
3265
+ * @param {string} value
3266
+ * @return {!proto.user.RegistrationRequest} returns this
3267
+ */
3268
+ proto.user.RegistrationRequest.prototype.setGender = function(value) {
3269
+ return jspb.Message.setField(this, 16, value);
3270
+ };
3271
+
3272
+
3273
+ /**
3274
+ * Clears the field making it undefined.
3275
+ * @return {!proto.user.RegistrationRequest} returns this
3276
+ */
3277
+ proto.user.RegistrationRequest.prototype.clearGender = function() {
3278
+ return jspb.Message.setField(this, 16, undefined);
3279
+ };
3280
+
3281
+
3282
+ /**
3283
+ * Returns whether this field is set.
3284
+ * @return {boolean}
3285
+ */
3286
+ proto.user.RegistrationRequest.prototype.hasGender = function() {
3287
+ return jspb.Message.getField(this, 16) != null;
3288
+ };
3289
+
3290
+
3291
+ /**
3292
+ * optional string nationality = 17;
3293
+ * @return {string}
3294
+ */
3295
+ proto.user.RegistrationRequest.prototype.getNationality = function() {
3296
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 17, ""));
3297
+ };
3298
+
3299
+
3300
+ /**
3301
+ * @param {string} value
3302
+ * @return {!proto.user.RegistrationRequest} returns this
3303
+ */
3304
+ proto.user.RegistrationRequest.prototype.setNationality = function(value) {
3305
+ return jspb.Message.setField(this, 17, value);
3306
+ };
3307
+
3308
+
3309
+ /**
3310
+ * Clears the field making it undefined.
3311
+ * @return {!proto.user.RegistrationRequest} returns this
3312
+ */
3313
+ proto.user.RegistrationRequest.prototype.clearNationality = function() {
3314
+ return jspb.Message.setField(this, 17, undefined);
3315
+ };
3316
+
3317
+
3318
+ /**
3319
+ * Returns whether this field is set.
3320
+ * @return {boolean}
3321
+ */
3322
+ proto.user.RegistrationRequest.prototype.hasNationality = function() {
3323
+ return jspb.Message.getField(this, 17) != null;
3324
+ };
3325
+
3326
+
3327
+ /**
3328
+ * optional string address = 18;
3329
+ * @return {string}
3330
+ */
3331
+ proto.user.RegistrationRequest.prototype.getAddress = function() {
3332
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 18, ""));
3333
+ };
3334
+
3335
+
3336
+ /**
3337
+ * @param {string} value
3338
+ * @return {!proto.user.RegistrationRequest} returns this
3339
+ */
3340
+ proto.user.RegistrationRequest.prototype.setAddress = function(value) {
3341
+ return jspb.Message.setField(this, 18, value);
3342
+ };
3343
+
3344
+
3345
+ /**
3346
+ * Clears the field making it undefined.
3347
+ * @return {!proto.user.RegistrationRequest} returns this
3348
+ */
3349
+ proto.user.RegistrationRequest.prototype.clearAddress = function() {
3350
+ return jspb.Message.setField(this, 18, undefined);
3351
+ };
3352
+
3353
+
3354
+ /**
3355
+ * Returns whether this field is set.
3356
+ * @return {boolean}
3357
+ */
3358
+ proto.user.RegistrationRequest.prototype.hasAddress = function() {
3359
+ return jspb.Message.getField(this, 18) != null;
3360
+ };
3361
+
3362
+
3363
+ /**
3364
+ * optional string phone = 19;
3365
+ * @return {string}
3366
+ */
3367
+ proto.user.RegistrationRequest.prototype.getPhone = function() {
3368
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 19, ""));
3369
+ };
3370
+
3371
+
3372
+ /**
3373
+ * @param {string} value
3374
+ * @return {!proto.user.RegistrationRequest} returns this
3375
+ */
3376
+ proto.user.RegistrationRequest.prototype.setPhone = function(value) {
3377
+ return jspb.Message.setField(this, 19, value);
3378
+ };
3379
+
3380
+
3381
+ /**
3382
+ * Clears the field making it undefined.
3383
+ * @return {!proto.user.RegistrationRequest} returns this
3384
+ */
3385
+ proto.user.RegistrationRequest.prototype.clearPhone = function() {
3386
+ return jspb.Message.setField(this, 19, undefined);
3387
+ };
3388
+
3389
+
3390
+ /**
3391
+ * Returns whether this field is set.
3392
+ * @return {boolean}
3393
+ */
3394
+ proto.user.RegistrationRequest.prototype.hasPhone = function() {
3395
+ return jspb.Message.getField(this, 19) != null;
3396
+ };
3397
+
3398
+
3399
+ /**
3400
+ * optional string postal_code = 20;
3401
+ * @return {string}
3402
+ */
3403
+ proto.user.RegistrationRequest.prototype.getPostalCode = function() {
3404
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 20, ""));
3405
+ };
3406
+
3407
+
3408
+ /**
3409
+ * @param {string} value
3410
+ * @return {!proto.user.RegistrationRequest} returns this
3411
+ */
3412
+ proto.user.RegistrationRequest.prototype.setPostalCode = function(value) {
3413
+ return jspb.Message.setField(this, 20, value);
3414
+ };
3415
+
3416
+
3417
+ /**
3418
+ * Clears the field making it undefined.
3419
+ * @return {!proto.user.RegistrationRequest} returns this
3420
+ */
3421
+ proto.user.RegistrationRequest.prototype.clearPostalCode = function() {
3422
+ return jspb.Message.setField(this, 20, undefined);
3423
+ };
3424
+
3425
+
3426
+ /**
3427
+ * Returns whether this field is set.
3428
+ * @return {boolean}
3429
+ */
3430
+ proto.user.RegistrationRequest.prototype.hasPostalCode = function() {
3431
+ return jspb.Message.getField(this, 20) != null;
3432
+ };
3433
+
3434
+
3435
+ /**
3436
+ * optional string referral = 21;
3437
+ * @return {string}
3438
+ */
3439
+ proto.user.RegistrationRequest.prototype.getReferral = function() {
3440
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 21, ""));
3441
+ };
3442
+
3443
+
3444
+ /**
3445
+ * @param {string} value
3446
+ * @return {!proto.user.RegistrationRequest} returns this
3447
+ */
3448
+ proto.user.RegistrationRequest.prototype.setReferral = function(value) {
3449
+ return jspb.Message.setField(this, 21, value);
3450
+ };
3451
+
3452
+
3453
+ /**
3454
+ * Clears the field making it undefined.
3455
+ * @return {!proto.user.RegistrationRequest} returns this
3456
+ */
3457
+ proto.user.RegistrationRequest.prototype.clearReferral = function() {
3458
+ return jspb.Message.setField(this, 21, undefined);
3459
+ };
3460
+
3461
+
3462
+ /**
3463
+ * Returns whether this field is set.
3464
+ * @return {boolean}
3465
+ */
3466
+ proto.user.RegistrationRequest.prototype.hasReferral = function() {
3467
+ return jspb.Message.getField(this, 21) != null;
3468
+ };
3469
+
3470
+
3471
+ /**
3472
+ * optional string device = 22;
3473
+ * @return {string}
3474
+ */
3475
+ proto.user.RegistrationRequest.prototype.getDevice = function() {
3476
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 22, ""));
3477
+ };
3478
+
3479
+
3480
+ /**
3481
+ * @param {string} value
3482
+ * @return {!proto.user.RegistrationRequest} returns this
3483
+ */
3484
+ proto.user.RegistrationRequest.prototype.setDevice = function(value) {
3485
+ return jspb.Message.setField(this, 22, value);
3486
+ };
3487
+
3488
+
3489
+ /**
3490
+ * Clears the field making it undefined.
3491
+ * @return {!proto.user.RegistrationRequest} returns this
3492
+ */
3493
+ proto.user.RegistrationRequest.prototype.clearDevice = function() {
3494
+ return jspb.Message.setField(this, 22, undefined);
3495
+ };
3496
+
3497
+
3498
+ /**
3499
+ * Returns whether this field is set.
3500
+ * @return {boolean}
3501
+ */
3502
+ proto.user.RegistrationRequest.prototype.hasDevice = function() {
3503
+ return jspb.Message.getField(this, 22) != null;
3504
+ };
3505
+
3506
+
3075
3507
 
3076
3508
 
3077
3509
 
@@ -3476,7 +3908,8 @@ proto.user.LoginRequest.toObject = function(includeInstance, msg) {
3476
3908
  var f, obj = {
3477
3909
  email: jspb.Message.getFieldWithDefault(msg, 1, ""),
3478
3910
  password: jspb.Message.getFieldWithDefault(msg, 2, ""),
3479
- isAdmin: jspb.Message.getFieldWithDefault(msg, 5, 0)
3911
+ isAdmin: jspb.Message.getFieldWithDefault(msg, 3, 0),
3912
+ userIp: jspb.Message.getFieldWithDefault(msg, 4, "")
3480
3913
  };
3481
3914
 
3482
3915
  if (includeInstance) {
@@ -3521,10 +3954,14 @@ proto.user.LoginRequest.deserializeBinaryFromReader = function(msg, reader) {
3521
3954
  var value = /** @type {string} */ (reader.readString());
3522
3955
  msg.setPassword(value);
3523
3956
  break;
3524
- case 5:
3957
+ case 3:
3525
3958
  var value = /** @type {number} */ (reader.readInt32());
3526
3959
  msg.setIsAdmin(value);
3527
3960
  break;
3961
+ case 4:
3962
+ var value = /** @type {string} */ (reader.readString());
3963
+ msg.setUserIp(value);
3964
+ break;
3528
3965
  default:
3529
3966
  reader.skipField();
3530
3967
  break;
@@ -3568,10 +4005,17 @@ proto.user.LoginRequest.serializeBinaryToWriter = function(message, writer) {
3568
4005
  f
3569
4006
  );
3570
4007
  }
3571
- f = /** @type {number} */ (jspb.Message.getField(message, 5));
4008
+ f = /** @type {number} */ (jspb.Message.getField(message, 3));
3572
4009
  if (f != null) {
3573
4010
  writer.writeInt32(
3574
- 5,
4011
+ 3,
4012
+ f
4013
+ );
4014
+ }
4015
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
4016
+ if (f != null) {
4017
+ writer.writeString(
4018
+ 4,
3575
4019
  f
3576
4020
  );
3577
4021
  }
@@ -3615,11 +4059,11 @@ proto.user.LoginRequest.prototype.setPassword = function(value) {
3615
4059
 
3616
4060
 
3617
4061
  /**
3618
- * optional int32 is_admin = 5;
4062
+ * optional int32 is_admin = 3;
3619
4063
  * @return {number}
3620
4064
  */
3621
4065
  proto.user.LoginRequest.prototype.getIsAdmin = function() {
3622
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
4066
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
3623
4067
  };
3624
4068
 
3625
4069
 
@@ -3628,7 +4072,7 @@ proto.user.LoginRequest.prototype.getIsAdmin = function() {
3628
4072
  * @return {!proto.user.LoginRequest} returns this
3629
4073
  */
3630
4074
  proto.user.LoginRequest.prototype.setIsAdmin = function(value) {
3631
- return jspb.Message.setField(this, 5, value);
4075
+ return jspb.Message.setField(this, 3, value);
3632
4076
  };
3633
4077
 
3634
4078
 
@@ -3637,7 +4081,7 @@ proto.user.LoginRequest.prototype.setIsAdmin = function(value) {
3637
4081
  * @return {!proto.user.LoginRequest} returns this
3638
4082
  */
3639
4083
  proto.user.LoginRequest.prototype.clearIsAdmin = function() {
3640
- return jspb.Message.setField(this, 5, undefined);
4084
+ return jspb.Message.setField(this, 3, undefined);
3641
4085
  };
3642
4086
 
3643
4087
 
@@ -3646,7 +4090,43 @@ proto.user.LoginRequest.prototype.clearIsAdmin = function() {
3646
4090
  * @return {boolean}
3647
4091
  */
3648
4092
  proto.user.LoginRequest.prototype.hasIsAdmin = function() {
3649
- return jspb.Message.getField(this, 5) != null;
4093
+ return jspb.Message.getField(this, 3) != null;
4094
+ };
4095
+
4096
+
4097
+ /**
4098
+ * optional string user_ip = 4;
4099
+ * @return {string}
4100
+ */
4101
+ proto.user.LoginRequest.prototype.getUserIp = function() {
4102
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
4103
+ };
4104
+
4105
+
4106
+ /**
4107
+ * @param {string} value
4108
+ * @return {!proto.user.LoginRequest} returns this
4109
+ */
4110
+ proto.user.LoginRequest.prototype.setUserIp = function(value) {
4111
+ return jspb.Message.setField(this, 4, value);
4112
+ };
4113
+
4114
+
4115
+ /**
4116
+ * Clears the field making it undefined.
4117
+ * @return {!proto.user.LoginRequest} returns this
4118
+ */
4119
+ proto.user.LoginRequest.prototype.clearUserIp = function() {
4120
+ return jspb.Message.setField(this, 4, undefined);
4121
+ };
4122
+
4123
+
4124
+ /**
4125
+ * Returns whether this field is set.
4126
+ * @return {boolean}
4127
+ */
4128
+ proto.user.LoginRequest.prototype.hasUserIp = function() {
4129
+ return jspb.Message.getField(this, 4) != null;
3650
4130
  };
3651
4131
 
3652
4132