protobuf-platform 1.2.494 → 1.2.497

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.
@@ -107,6 +107,9 @@ message CreateWithdrawalTransferResponse {
107
107
  string tx_signature = 4;
108
108
  string network_code = 5;
109
109
  string asset_code = 6;
110
+ bool reconciliation_required = 7;
111
+ bool already_executed = 8;
112
+ optional string broadcast_at = 9;
110
113
  }
111
114
 
112
115
  message ReadWithdrawalTransferRequest {
@@ -127,4 +130,6 @@ message ReadWithdrawalTransferResponse {
127
130
  string amount_decimal = 9;
128
131
  string error_code = 10;
129
132
  string error_message = 11;
133
+ bool reconciliation_required = 12;
134
+ optional string broadcast_at = 13;
130
135
  }
@@ -3332,7 +3332,10 @@ proto.crypto.CreateWithdrawalTransferResponse.toObject = function(includeInstanc
3332
3332
  status: jspb.Message.getFieldWithDefault(msg, 3, ""),
3333
3333
  txSignature: jspb.Message.getFieldWithDefault(msg, 4, ""),
3334
3334
  networkCode: jspb.Message.getFieldWithDefault(msg, 5, ""),
3335
- assetCode: jspb.Message.getFieldWithDefault(msg, 6, "")
3335
+ assetCode: jspb.Message.getFieldWithDefault(msg, 6, ""),
3336
+ reconciliationRequired: jspb.Message.getBooleanFieldWithDefault(msg, 7, false),
3337
+ alreadyExecuted: jspb.Message.getBooleanFieldWithDefault(msg, 8, false),
3338
+ broadcastAt: jspb.Message.getFieldWithDefault(msg, 9, "")
3336
3339
  };
3337
3340
 
3338
3341
  if (includeInstance) {
@@ -3393,6 +3396,18 @@ proto.crypto.CreateWithdrawalTransferResponse.deserializeBinaryFromReader = func
3393
3396
  var value = /** @type {string} */ (reader.readString());
3394
3397
  msg.setAssetCode(value);
3395
3398
  break;
3399
+ case 7:
3400
+ var value = /** @type {boolean} */ (reader.readBool());
3401
+ msg.setReconciliationRequired(value);
3402
+ break;
3403
+ case 8:
3404
+ var value = /** @type {boolean} */ (reader.readBool());
3405
+ msg.setAlreadyExecuted(value);
3406
+ break;
3407
+ case 9:
3408
+ var value = /** @type {string} */ (reader.readString());
3409
+ msg.setBroadcastAt(value);
3410
+ break;
3396
3411
  default:
3397
3412
  reader.skipField();
3398
3413
  break;
@@ -3464,6 +3479,27 @@ proto.crypto.CreateWithdrawalTransferResponse.serializeBinaryToWriter = function
3464
3479
  f
3465
3480
  );
3466
3481
  }
3482
+ f = message.getReconciliationRequired();
3483
+ if (f) {
3484
+ writer.writeBool(
3485
+ 7,
3486
+ f
3487
+ );
3488
+ }
3489
+ f = message.getAlreadyExecuted();
3490
+ if (f) {
3491
+ writer.writeBool(
3492
+ 8,
3493
+ f
3494
+ );
3495
+ }
3496
+ f = /** @type {string} */ (jspb.Message.getField(message, 9));
3497
+ if (f != null) {
3498
+ writer.writeString(
3499
+ 9,
3500
+ f
3501
+ );
3502
+ }
3467
3503
  };
3468
3504
 
3469
3505
 
@@ -3575,6 +3611,78 @@ proto.crypto.CreateWithdrawalTransferResponse.prototype.setAssetCode = function(
3575
3611
  };
3576
3612
 
3577
3613
 
3614
+ /**
3615
+ * optional bool reconciliation_required = 7;
3616
+ * @return {boolean}
3617
+ */
3618
+ proto.crypto.CreateWithdrawalTransferResponse.prototype.getReconciliationRequired = function() {
3619
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false));
3620
+ };
3621
+
3622
+
3623
+ /**
3624
+ * @param {boolean} value
3625
+ * @return {!proto.crypto.CreateWithdrawalTransferResponse} returns this
3626
+ */
3627
+ proto.crypto.CreateWithdrawalTransferResponse.prototype.setReconciliationRequired = function(value) {
3628
+ return jspb.Message.setProto3BooleanField(this, 7, value);
3629
+ };
3630
+
3631
+
3632
+ /**
3633
+ * optional bool already_executed = 8;
3634
+ * @return {boolean}
3635
+ */
3636
+ proto.crypto.CreateWithdrawalTransferResponse.prototype.getAlreadyExecuted = function() {
3637
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 8, false));
3638
+ };
3639
+
3640
+
3641
+ /**
3642
+ * @param {boolean} value
3643
+ * @return {!proto.crypto.CreateWithdrawalTransferResponse} returns this
3644
+ */
3645
+ proto.crypto.CreateWithdrawalTransferResponse.prototype.setAlreadyExecuted = function(value) {
3646
+ return jspb.Message.setProto3BooleanField(this, 8, value);
3647
+ };
3648
+
3649
+
3650
+ /**
3651
+ * optional string broadcast_at = 9;
3652
+ * @return {string}
3653
+ */
3654
+ proto.crypto.CreateWithdrawalTransferResponse.prototype.getBroadcastAt = function() {
3655
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
3656
+ };
3657
+
3658
+
3659
+ /**
3660
+ * @param {string} value
3661
+ * @return {!proto.crypto.CreateWithdrawalTransferResponse} returns this
3662
+ */
3663
+ proto.crypto.CreateWithdrawalTransferResponse.prototype.setBroadcastAt = function(value) {
3664
+ return jspb.Message.setField(this, 9, value);
3665
+ };
3666
+
3667
+
3668
+ /**
3669
+ * Clears the field making it undefined.
3670
+ * @return {!proto.crypto.CreateWithdrawalTransferResponse} returns this
3671
+ */
3672
+ proto.crypto.CreateWithdrawalTransferResponse.prototype.clearBroadcastAt = function() {
3673
+ return jspb.Message.setField(this, 9, undefined);
3674
+ };
3675
+
3676
+
3677
+ /**
3678
+ * Returns whether this field is set.
3679
+ * @return {boolean}
3680
+ */
3681
+ proto.crypto.CreateWithdrawalTransferResponse.prototype.hasBroadcastAt = function() {
3682
+ return jspb.Message.getField(this, 9) != null;
3683
+ };
3684
+
3685
+
3578
3686
 
3579
3687
 
3580
3688
 
@@ -3807,7 +3915,9 @@ proto.crypto.ReadWithdrawalTransferResponse.toObject = function(includeInstance,
3807
3915
  amountRaw: jspb.Message.getFieldWithDefault(msg, 8, ""),
3808
3916
  amountDecimal: jspb.Message.getFieldWithDefault(msg, 9, ""),
3809
3917
  errorCode: jspb.Message.getFieldWithDefault(msg, 10, ""),
3810
- errorMessage: jspb.Message.getFieldWithDefault(msg, 11, "")
3918
+ errorMessage: jspb.Message.getFieldWithDefault(msg, 11, ""),
3919
+ reconciliationRequired: jspb.Message.getBooleanFieldWithDefault(msg, 12, false),
3920
+ broadcastAt: jspb.Message.getFieldWithDefault(msg, 13, "")
3811
3921
  };
3812
3922
 
3813
3923
  if (includeInstance) {
@@ -3888,6 +3998,14 @@ proto.crypto.ReadWithdrawalTransferResponse.deserializeBinaryFromReader = functi
3888
3998
  var value = /** @type {string} */ (reader.readString());
3889
3999
  msg.setErrorMessage(value);
3890
4000
  break;
4001
+ case 12:
4002
+ var value = /** @type {boolean} */ (reader.readBool());
4003
+ msg.setReconciliationRequired(value);
4004
+ break;
4005
+ case 13:
4006
+ var value = /** @type {string} */ (reader.readString());
4007
+ msg.setBroadcastAt(value);
4008
+ break;
3891
4009
  default:
3892
4010
  reader.skipField();
3893
4011
  break;
@@ -3994,6 +4112,20 @@ proto.crypto.ReadWithdrawalTransferResponse.serializeBinaryToWriter = function(m
3994
4112
  f
3995
4113
  );
3996
4114
  }
4115
+ f = message.getReconciliationRequired();
4116
+ if (f) {
4117
+ writer.writeBool(
4118
+ 12,
4119
+ f
4120
+ );
4121
+ }
4122
+ f = /** @type {string} */ (jspb.Message.getField(message, 13));
4123
+ if (f != null) {
4124
+ writer.writeString(
4125
+ 13,
4126
+ f
4127
+ );
4128
+ }
3997
4129
  };
3998
4130
 
3999
4131
 
@@ -4195,4 +4327,58 @@ proto.crypto.ReadWithdrawalTransferResponse.prototype.setErrorMessage = function
4195
4327
  };
4196
4328
 
4197
4329
 
4330
+ /**
4331
+ * optional bool reconciliation_required = 12;
4332
+ * @return {boolean}
4333
+ */
4334
+ proto.crypto.ReadWithdrawalTransferResponse.prototype.getReconciliationRequired = function() {
4335
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 12, false));
4336
+ };
4337
+
4338
+
4339
+ /**
4340
+ * @param {boolean} value
4341
+ * @return {!proto.crypto.ReadWithdrawalTransferResponse} returns this
4342
+ */
4343
+ proto.crypto.ReadWithdrawalTransferResponse.prototype.setReconciliationRequired = function(value) {
4344
+ return jspb.Message.setProto3BooleanField(this, 12, value);
4345
+ };
4346
+
4347
+
4348
+ /**
4349
+ * optional string broadcast_at = 13;
4350
+ * @return {string}
4351
+ */
4352
+ proto.crypto.ReadWithdrawalTransferResponse.prototype.getBroadcastAt = function() {
4353
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
4354
+ };
4355
+
4356
+
4357
+ /**
4358
+ * @param {string} value
4359
+ * @return {!proto.crypto.ReadWithdrawalTransferResponse} returns this
4360
+ */
4361
+ proto.crypto.ReadWithdrawalTransferResponse.prototype.setBroadcastAt = function(value) {
4362
+ return jspb.Message.setField(this, 13, value);
4363
+ };
4364
+
4365
+
4366
+ /**
4367
+ * Clears the field making it undefined.
4368
+ * @return {!proto.crypto.ReadWithdrawalTransferResponse} returns this
4369
+ */
4370
+ proto.crypto.ReadWithdrawalTransferResponse.prototype.clearBroadcastAt = function() {
4371
+ return jspb.Message.setField(this, 13, undefined);
4372
+ };
4373
+
4374
+
4375
+ /**
4376
+ * Returns whether this field is set.
4377
+ * @return {boolean}
4378
+ */
4379
+ proto.crypto.ReadWithdrawalTransferResponse.prototype.hasBroadcastAt = function() {
4380
+ return jspb.Message.getField(this, 13) != null;
4381
+ };
4382
+
4383
+
4198
4384
  goog.object.extend(exports, proto.crypto);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.494",
3
+ "version": "1.2.497",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/user/user.proto CHANGED
@@ -31,6 +31,7 @@ service User {
31
31
  rpc getSingleRole(GetRoleRequest) returns (Role);
32
32
  rpc createSingleRole(CreateRoleRequest) returns (Role);
33
33
  rpc updateSingleRole(UpdateRoleRequest) returns (Role);
34
+ rpc deactivateSingleRole(GetRoleRequest) returns (Role);
34
35
  //CRUD
35
36
  rpc readListUsers(PaginationRequest) returns (UsersResponse);
36
37
  rpc updateSingleUser(UserRequest) returns (UserDataResponse);
@@ -691,6 +692,8 @@ message Role {
691
692
  string title = 2;
692
693
  optional string description = 3;
693
694
  optional string permissions = 4;
695
+ bool is_active = 5;
696
+ bool is_system = 6;
694
697
  }
695
698
  message GetRoleRequest { int32 id = 1; }
696
699
  message CreateRoleRequest {
@@ -2175,6 +2175,17 @@ addPermissionToUserRole: {
2175
2175
  responseSerialize: serialize_user_Role,
2176
2176
  responseDeserialize: deserialize_user_Role,
2177
2177
  },
2178
+ deactivateSingleRole: {
2179
+ path: '/user.User/deactivateSingleRole',
2180
+ requestStream: false,
2181
+ responseStream: false,
2182
+ requestType: user_pb.GetRoleRequest,
2183
+ responseType: user_pb.Role,
2184
+ requestSerialize: serialize_user_GetRoleRequest,
2185
+ requestDeserialize: deserialize_user_GetRoleRequest,
2186
+ responseSerialize: serialize_user_Role,
2187
+ responseDeserialize: deserialize_user_Role,
2188
+ },
2178
2189
  // CRUD
2179
2190
  readListUsers: {
2180
2191
  path: '/user.User/readListUsers',
package/user/user_pb.js CHANGED
@@ -27835,7 +27835,9 @@ proto.user.Role.toObject = function(includeInstance, msg) {
27835
27835
  id: jspb.Message.getFieldWithDefault(msg, 1, 0),
27836
27836
  title: jspb.Message.getFieldWithDefault(msg, 2, ""),
27837
27837
  description: jspb.Message.getFieldWithDefault(msg, 3, ""),
27838
- permissions: jspb.Message.getFieldWithDefault(msg, 4, "")
27838
+ permissions: jspb.Message.getFieldWithDefault(msg, 4, ""),
27839
+ isActive: jspb.Message.getBooleanFieldWithDefault(msg, 5, false),
27840
+ isSystem: jspb.Message.getBooleanFieldWithDefault(msg, 6, false)
27839
27841
  };
27840
27842
 
27841
27843
  if (includeInstance) {
@@ -27888,6 +27890,14 @@ proto.user.Role.deserializeBinaryFromReader = function(msg, reader) {
27888
27890
  var value = /** @type {string} */ (reader.readString());
27889
27891
  msg.setPermissions(value);
27890
27892
  break;
27893
+ case 5:
27894
+ var value = /** @type {boolean} */ (reader.readBool());
27895
+ msg.setIsActive(value);
27896
+ break;
27897
+ case 6:
27898
+ var value = /** @type {boolean} */ (reader.readBool());
27899
+ msg.setIsSystem(value);
27900
+ break;
27891
27901
  default:
27892
27902
  reader.skipField();
27893
27903
  break;
@@ -27945,6 +27955,20 @@ proto.user.Role.serializeBinaryToWriter = function(message, writer) {
27945
27955
  f
27946
27956
  );
27947
27957
  }
27958
+ f = message.getIsActive();
27959
+ if (f) {
27960
+ writer.writeBool(
27961
+ 5,
27962
+ f
27963
+ );
27964
+ }
27965
+ f = message.getIsSystem();
27966
+ if (f) {
27967
+ writer.writeBool(
27968
+ 6,
27969
+ f
27970
+ );
27971
+ }
27948
27972
  };
27949
27973
 
27950
27974
 
@@ -28056,6 +28080,42 @@ proto.user.Role.prototype.hasPermissions = function() {
28056
28080
  };
28057
28081
 
28058
28082
 
28083
+ /**
28084
+ * optional bool is_active = 5;
28085
+ * @return {boolean}
28086
+ */
28087
+ proto.user.Role.prototype.getIsActive = function() {
28088
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false));
28089
+ };
28090
+
28091
+
28092
+ /**
28093
+ * @param {boolean} value
28094
+ * @return {!proto.user.Role} returns this
28095
+ */
28096
+ proto.user.Role.prototype.setIsActive = function(value) {
28097
+ return jspb.Message.setProto3BooleanField(this, 5, value);
28098
+ };
28099
+
28100
+
28101
+ /**
28102
+ * optional bool is_system = 6;
28103
+ * @return {boolean}
28104
+ */
28105
+ proto.user.Role.prototype.getIsSystem = function() {
28106
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false));
28107
+ };
28108
+
28109
+
28110
+ /**
28111
+ * @param {boolean} value
28112
+ * @return {!proto.user.Role} returns this
28113
+ */
28114
+ proto.user.Role.prototype.setIsSystem = function(value) {
28115
+ return jspb.Message.setProto3BooleanField(this, 6, value);
28116
+ };
28117
+
28118
+
28059
28119
 
28060
28120
 
28061
28121