@aldiokta/protocgen 1.1.25 → 1.1.27
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/prisca/v1/bidding/bidding_grpc_pb.js +22 -0
- package/prisca/v1/bidding/bidding_pb.js +421 -3
- package/prisca/v1/core/access_manager/access_manager_grpc_pb.js +33 -0
- package/prisca/v1/core/access_manager/access_manager_pb.js +385 -0
- package/prisca/v1/core/auth/auth_grpc_pb.js +102 -3
- package/prisca/v1/core/auth/auth_pb.js +2602 -1054
- package/prisca/v1/core/item_transaction/item_transaction_pb.js +2036 -816
- package/prisca/v1/core/messaging/notification_grpc_pb.js +188 -0
- package/prisca/v1/core/messaging/notification_pb.js +2780 -0
- package/prisca/v1/core/price_condition/price_condition_pb.js +62 -2
- package/prisca/v1/core/transaction_builder/transaction_builder_pb.js +31 -1
- package/prisca/v1/delivery_order/delivery_order_pb.js +109 -49
- package/prisca/v1/good_receipt/good_receipt_grpc_pb.js +227 -1
- package/prisca/v1/good_receipt/good_receipt_pb.js +4525 -0
- package/prisca/v1/purchase_order/purchase_order_pb.js +121 -1
- package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_pb.js +31 -1
- package/prisca/v1/quotation/quotation_pb.js +130 -10
- package/prisca/v1/vendor_domain/vendor_domain_grpc_pb.js +55 -0
- package/prisca/v1/vendor_domain/vendor_domain_pb.js +609 -0
|
@@ -31,6 +31,8 @@ goog.exportSymbol('proto.AssignPolicyToRoleRequest', null, global);
|
|
|
31
31
|
goog.exportSymbol('proto.AssignPolicyToRoleResponse', null, global);
|
|
32
32
|
goog.exportSymbol('proto.AssignRoleToUserRequest', null, global);
|
|
33
33
|
goog.exportSymbol('proto.AssignRoleToUserResponse', null, global);
|
|
34
|
+
goog.exportSymbol('proto.AuthorizeUserReq', null, global);
|
|
35
|
+
goog.exportSymbol('proto.AuthorizeUserRes', null, global);
|
|
34
36
|
goog.exportSymbol('proto.BasePolicy', null, global);
|
|
35
37
|
goog.exportSymbol('proto.BaseRole', null, global);
|
|
36
38
|
goog.exportSymbol('proto.CreatePolicyRequest', null, global);
|
|
@@ -425,6 +427,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
425
427
|
*/
|
|
426
428
|
proto.AssignPolicyToRoleRequest.displayName = 'proto.AssignPolicyToRoleRequest';
|
|
427
429
|
}
|
|
430
|
+
/**
|
|
431
|
+
* Generated by JsPbCodeGenerator.
|
|
432
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
433
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
434
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
435
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
436
|
+
* valid.
|
|
437
|
+
* @extends {jspb.Message}
|
|
438
|
+
* @constructor
|
|
439
|
+
*/
|
|
440
|
+
proto.AuthorizeUserReq = function(opt_data) {
|
|
441
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
442
|
+
};
|
|
443
|
+
goog.inherits(proto.AuthorizeUserReq, jspb.Message);
|
|
444
|
+
if (goog.DEBUG && !COMPILED) {
|
|
445
|
+
/**
|
|
446
|
+
* @public
|
|
447
|
+
* @override
|
|
448
|
+
*/
|
|
449
|
+
proto.AuthorizeUserReq.displayName = 'proto.AuthorizeUserReq';
|
|
450
|
+
}
|
|
428
451
|
/**
|
|
429
452
|
* Generated by JsPbCodeGenerator.
|
|
430
453
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -572,6 +595,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
572
595
|
*/
|
|
573
596
|
proto.AssignPolicyToRoleResponse.displayName = 'proto.AssignPolicyToRoleResponse';
|
|
574
597
|
}
|
|
598
|
+
/**
|
|
599
|
+
* Generated by JsPbCodeGenerator.
|
|
600
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
601
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
602
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
603
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
604
|
+
* valid.
|
|
605
|
+
* @extends {jspb.Message}
|
|
606
|
+
* @constructor
|
|
607
|
+
*/
|
|
608
|
+
proto.AuthorizeUserRes = function(opt_data) {
|
|
609
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
610
|
+
};
|
|
611
|
+
goog.inherits(proto.AuthorizeUserRes, jspb.Message);
|
|
612
|
+
if (goog.DEBUG && !COMPILED) {
|
|
613
|
+
/**
|
|
614
|
+
* @public
|
|
615
|
+
* @override
|
|
616
|
+
*/
|
|
617
|
+
proto.AuthorizeUserRes.displayName = 'proto.AuthorizeUserRes';
|
|
618
|
+
}
|
|
575
619
|
/**
|
|
576
620
|
* Generated by JsPbCodeGenerator.
|
|
577
621
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -4448,6 +4492,196 @@ proto.AssignPolicyToRoleRequest.prototype.setRoleReferencesId = function(value)
|
|
|
4448
4492
|
|
|
4449
4493
|
|
|
4450
4494
|
|
|
4495
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
4496
|
+
/**
|
|
4497
|
+
* Creates an object representation of this proto.
|
|
4498
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
4499
|
+
* Optional fields that are not set will be set to undefined.
|
|
4500
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
4501
|
+
* For the list of reserved names please see:
|
|
4502
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
4503
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
4504
|
+
* JSPB instance for transitional soy proto support:
|
|
4505
|
+
* http://goto/soy-param-migration
|
|
4506
|
+
* @return {!Object}
|
|
4507
|
+
*/
|
|
4508
|
+
proto.AuthorizeUserReq.prototype.toObject = function(opt_includeInstance) {
|
|
4509
|
+
return proto.AuthorizeUserReq.toObject(opt_includeInstance, this);
|
|
4510
|
+
};
|
|
4511
|
+
|
|
4512
|
+
|
|
4513
|
+
/**
|
|
4514
|
+
* Static version of the {@see toObject} method.
|
|
4515
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
4516
|
+
* the JSPB instance for transitional soy proto support:
|
|
4517
|
+
* http://goto/soy-param-migration
|
|
4518
|
+
* @param {!proto.AuthorizeUserReq} msg The msg instance to transform.
|
|
4519
|
+
* @return {!Object}
|
|
4520
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4521
|
+
*/
|
|
4522
|
+
proto.AuthorizeUserReq.toObject = function(includeInstance, msg) {
|
|
4523
|
+
var f, obj = {
|
|
4524
|
+
userId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
4525
|
+
module: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
4526
|
+
action: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
4527
|
+
};
|
|
4528
|
+
|
|
4529
|
+
if (includeInstance) {
|
|
4530
|
+
obj.$jspbMessageInstance = msg;
|
|
4531
|
+
}
|
|
4532
|
+
return obj;
|
|
4533
|
+
};
|
|
4534
|
+
}
|
|
4535
|
+
|
|
4536
|
+
|
|
4537
|
+
/**
|
|
4538
|
+
* Deserializes binary data (in protobuf wire format).
|
|
4539
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
4540
|
+
* @return {!proto.AuthorizeUserReq}
|
|
4541
|
+
*/
|
|
4542
|
+
proto.AuthorizeUserReq.deserializeBinary = function(bytes) {
|
|
4543
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
4544
|
+
var msg = new proto.AuthorizeUserReq;
|
|
4545
|
+
return proto.AuthorizeUserReq.deserializeBinaryFromReader(msg, reader);
|
|
4546
|
+
};
|
|
4547
|
+
|
|
4548
|
+
|
|
4549
|
+
/**
|
|
4550
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
4551
|
+
* given reader into the given message object.
|
|
4552
|
+
* @param {!proto.AuthorizeUserReq} msg The message object to deserialize into.
|
|
4553
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
4554
|
+
* @return {!proto.AuthorizeUserReq}
|
|
4555
|
+
*/
|
|
4556
|
+
proto.AuthorizeUserReq.deserializeBinaryFromReader = function(msg, reader) {
|
|
4557
|
+
while (reader.nextField()) {
|
|
4558
|
+
if (reader.isEndGroup()) {
|
|
4559
|
+
break;
|
|
4560
|
+
}
|
|
4561
|
+
var field = reader.getFieldNumber();
|
|
4562
|
+
switch (field) {
|
|
4563
|
+
case 1:
|
|
4564
|
+
var value = /** @type {string} */ (reader.readString());
|
|
4565
|
+
msg.setUserId(value);
|
|
4566
|
+
break;
|
|
4567
|
+
case 2:
|
|
4568
|
+
var value = /** @type {string} */ (reader.readString());
|
|
4569
|
+
msg.setModule(value);
|
|
4570
|
+
break;
|
|
4571
|
+
case 3:
|
|
4572
|
+
var value = /** @type {string} */ (reader.readString());
|
|
4573
|
+
msg.setAction(value);
|
|
4574
|
+
break;
|
|
4575
|
+
default:
|
|
4576
|
+
reader.skipField();
|
|
4577
|
+
break;
|
|
4578
|
+
}
|
|
4579
|
+
}
|
|
4580
|
+
return msg;
|
|
4581
|
+
};
|
|
4582
|
+
|
|
4583
|
+
|
|
4584
|
+
/**
|
|
4585
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
4586
|
+
* @return {!Uint8Array}
|
|
4587
|
+
*/
|
|
4588
|
+
proto.AuthorizeUserReq.prototype.serializeBinary = function() {
|
|
4589
|
+
var writer = new jspb.BinaryWriter();
|
|
4590
|
+
proto.AuthorizeUserReq.serializeBinaryToWriter(this, writer);
|
|
4591
|
+
return writer.getResultBuffer();
|
|
4592
|
+
};
|
|
4593
|
+
|
|
4594
|
+
|
|
4595
|
+
/**
|
|
4596
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
4597
|
+
* format), writing to the given BinaryWriter.
|
|
4598
|
+
* @param {!proto.AuthorizeUserReq} message
|
|
4599
|
+
* @param {!jspb.BinaryWriter} writer
|
|
4600
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4601
|
+
*/
|
|
4602
|
+
proto.AuthorizeUserReq.serializeBinaryToWriter = function(message, writer) {
|
|
4603
|
+
var f = undefined;
|
|
4604
|
+
f = message.getUserId();
|
|
4605
|
+
if (f.length > 0) {
|
|
4606
|
+
writer.writeString(
|
|
4607
|
+
1,
|
|
4608
|
+
f
|
|
4609
|
+
);
|
|
4610
|
+
}
|
|
4611
|
+
f = message.getModule();
|
|
4612
|
+
if (f.length > 0) {
|
|
4613
|
+
writer.writeString(
|
|
4614
|
+
2,
|
|
4615
|
+
f
|
|
4616
|
+
);
|
|
4617
|
+
}
|
|
4618
|
+
f = message.getAction();
|
|
4619
|
+
if (f.length > 0) {
|
|
4620
|
+
writer.writeString(
|
|
4621
|
+
3,
|
|
4622
|
+
f
|
|
4623
|
+
);
|
|
4624
|
+
}
|
|
4625
|
+
};
|
|
4626
|
+
|
|
4627
|
+
|
|
4628
|
+
/**
|
|
4629
|
+
* optional string user_id = 1;
|
|
4630
|
+
* @return {string}
|
|
4631
|
+
*/
|
|
4632
|
+
proto.AuthorizeUserReq.prototype.getUserId = function() {
|
|
4633
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
4634
|
+
};
|
|
4635
|
+
|
|
4636
|
+
|
|
4637
|
+
/**
|
|
4638
|
+
* @param {string} value
|
|
4639
|
+
* @return {!proto.AuthorizeUserReq} returns this
|
|
4640
|
+
*/
|
|
4641
|
+
proto.AuthorizeUserReq.prototype.setUserId = function(value) {
|
|
4642
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
4643
|
+
};
|
|
4644
|
+
|
|
4645
|
+
|
|
4646
|
+
/**
|
|
4647
|
+
* optional string module = 2;
|
|
4648
|
+
* @return {string}
|
|
4649
|
+
*/
|
|
4650
|
+
proto.AuthorizeUserReq.prototype.getModule = function() {
|
|
4651
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
4652
|
+
};
|
|
4653
|
+
|
|
4654
|
+
|
|
4655
|
+
/**
|
|
4656
|
+
* @param {string} value
|
|
4657
|
+
* @return {!proto.AuthorizeUserReq} returns this
|
|
4658
|
+
*/
|
|
4659
|
+
proto.AuthorizeUserReq.prototype.setModule = function(value) {
|
|
4660
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
4661
|
+
};
|
|
4662
|
+
|
|
4663
|
+
|
|
4664
|
+
/**
|
|
4665
|
+
* optional string action = 3;
|
|
4666
|
+
* @return {string}
|
|
4667
|
+
*/
|
|
4668
|
+
proto.AuthorizeUserReq.prototype.getAction = function() {
|
|
4669
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
4670
|
+
};
|
|
4671
|
+
|
|
4672
|
+
|
|
4673
|
+
/**
|
|
4674
|
+
* @param {string} value
|
|
4675
|
+
* @return {!proto.AuthorizeUserReq} returns this
|
|
4676
|
+
*/
|
|
4677
|
+
proto.AuthorizeUserReq.prototype.setAction = function(value) {
|
|
4678
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
4679
|
+
};
|
|
4680
|
+
|
|
4681
|
+
|
|
4682
|
+
|
|
4683
|
+
|
|
4684
|
+
|
|
4451
4685
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
4452
4686
|
/**
|
|
4453
4687
|
* Creates an object representation of this proto.
|
|
@@ -5808,6 +6042,157 @@ proto.AssignPolicyToRoleResponse.prototype.hasMeta = function() {
|
|
|
5808
6042
|
|
|
5809
6043
|
|
|
5810
6044
|
|
|
6045
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
6046
|
+
/**
|
|
6047
|
+
* Creates an object representation of this proto.
|
|
6048
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
6049
|
+
* Optional fields that are not set will be set to undefined.
|
|
6050
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
6051
|
+
* For the list of reserved names please see:
|
|
6052
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
6053
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
6054
|
+
* JSPB instance for transitional soy proto support:
|
|
6055
|
+
* http://goto/soy-param-migration
|
|
6056
|
+
* @return {!Object}
|
|
6057
|
+
*/
|
|
6058
|
+
proto.AuthorizeUserRes.prototype.toObject = function(opt_includeInstance) {
|
|
6059
|
+
return proto.AuthorizeUserRes.toObject(opt_includeInstance, this);
|
|
6060
|
+
};
|
|
6061
|
+
|
|
6062
|
+
|
|
6063
|
+
/**
|
|
6064
|
+
* Static version of the {@see toObject} method.
|
|
6065
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
6066
|
+
* the JSPB instance for transitional soy proto support:
|
|
6067
|
+
* http://goto/soy-param-migration
|
|
6068
|
+
* @param {!proto.AuthorizeUserRes} msg The msg instance to transform.
|
|
6069
|
+
* @return {!Object}
|
|
6070
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
6071
|
+
*/
|
|
6072
|
+
proto.AuthorizeUserRes.toObject = function(includeInstance, msg) {
|
|
6073
|
+
var f, obj = {
|
|
6074
|
+
meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
|
|
6075
|
+
};
|
|
6076
|
+
|
|
6077
|
+
if (includeInstance) {
|
|
6078
|
+
obj.$jspbMessageInstance = msg;
|
|
6079
|
+
}
|
|
6080
|
+
return obj;
|
|
6081
|
+
};
|
|
6082
|
+
}
|
|
6083
|
+
|
|
6084
|
+
|
|
6085
|
+
/**
|
|
6086
|
+
* Deserializes binary data (in protobuf wire format).
|
|
6087
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
6088
|
+
* @return {!proto.AuthorizeUserRes}
|
|
6089
|
+
*/
|
|
6090
|
+
proto.AuthorizeUserRes.deserializeBinary = function(bytes) {
|
|
6091
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
6092
|
+
var msg = new proto.AuthorizeUserRes;
|
|
6093
|
+
return proto.AuthorizeUserRes.deserializeBinaryFromReader(msg, reader);
|
|
6094
|
+
};
|
|
6095
|
+
|
|
6096
|
+
|
|
6097
|
+
/**
|
|
6098
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
6099
|
+
* given reader into the given message object.
|
|
6100
|
+
* @param {!proto.AuthorizeUserRes} msg The message object to deserialize into.
|
|
6101
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
6102
|
+
* @return {!proto.AuthorizeUserRes}
|
|
6103
|
+
*/
|
|
6104
|
+
proto.AuthorizeUserRes.deserializeBinaryFromReader = function(msg, reader) {
|
|
6105
|
+
while (reader.nextField()) {
|
|
6106
|
+
if (reader.isEndGroup()) {
|
|
6107
|
+
break;
|
|
6108
|
+
}
|
|
6109
|
+
var field = reader.getFieldNumber();
|
|
6110
|
+
switch (field) {
|
|
6111
|
+
case 1:
|
|
6112
|
+
var value = new prisca_v1_global_meta_meta_pb.Meta;
|
|
6113
|
+
reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
|
|
6114
|
+
msg.setMeta(value);
|
|
6115
|
+
break;
|
|
6116
|
+
default:
|
|
6117
|
+
reader.skipField();
|
|
6118
|
+
break;
|
|
6119
|
+
}
|
|
6120
|
+
}
|
|
6121
|
+
return msg;
|
|
6122
|
+
};
|
|
6123
|
+
|
|
6124
|
+
|
|
6125
|
+
/**
|
|
6126
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
6127
|
+
* @return {!Uint8Array}
|
|
6128
|
+
*/
|
|
6129
|
+
proto.AuthorizeUserRes.prototype.serializeBinary = function() {
|
|
6130
|
+
var writer = new jspb.BinaryWriter();
|
|
6131
|
+
proto.AuthorizeUserRes.serializeBinaryToWriter(this, writer);
|
|
6132
|
+
return writer.getResultBuffer();
|
|
6133
|
+
};
|
|
6134
|
+
|
|
6135
|
+
|
|
6136
|
+
/**
|
|
6137
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
6138
|
+
* format), writing to the given BinaryWriter.
|
|
6139
|
+
* @param {!proto.AuthorizeUserRes} message
|
|
6140
|
+
* @param {!jspb.BinaryWriter} writer
|
|
6141
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
6142
|
+
*/
|
|
6143
|
+
proto.AuthorizeUserRes.serializeBinaryToWriter = function(message, writer) {
|
|
6144
|
+
var f = undefined;
|
|
6145
|
+
f = message.getMeta();
|
|
6146
|
+
if (f != null) {
|
|
6147
|
+
writer.writeMessage(
|
|
6148
|
+
1,
|
|
6149
|
+
f,
|
|
6150
|
+
prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
|
|
6151
|
+
);
|
|
6152
|
+
}
|
|
6153
|
+
};
|
|
6154
|
+
|
|
6155
|
+
|
|
6156
|
+
/**
|
|
6157
|
+
* optional prisca.v1.global.meta.Meta meta = 1;
|
|
6158
|
+
* @return {?proto.prisca.v1.global.meta.Meta}
|
|
6159
|
+
*/
|
|
6160
|
+
proto.AuthorizeUserRes.prototype.getMeta = function() {
|
|
6161
|
+
return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
|
|
6162
|
+
jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 1));
|
|
6163
|
+
};
|
|
6164
|
+
|
|
6165
|
+
|
|
6166
|
+
/**
|
|
6167
|
+
* @param {?proto.prisca.v1.global.meta.Meta|undefined} value
|
|
6168
|
+
* @return {!proto.AuthorizeUserRes} returns this
|
|
6169
|
+
*/
|
|
6170
|
+
proto.AuthorizeUserRes.prototype.setMeta = function(value) {
|
|
6171
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
6172
|
+
};
|
|
6173
|
+
|
|
6174
|
+
|
|
6175
|
+
/**
|
|
6176
|
+
* Clears the message field making it undefined.
|
|
6177
|
+
* @return {!proto.AuthorizeUserRes} returns this
|
|
6178
|
+
*/
|
|
6179
|
+
proto.AuthorizeUserRes.prototype.clearMeta = function() {
|
|
6180
|
+
return this.setMeta(undefined);
|
|
6181
|
+
};
|
|
6182
|
+
|
|
6183
|
+
|
|
6184
|
+
/**
|
|
6185
|
+
* Returns whether this field is set.
|
|
6186
|
+
* @return {boolean}
|
|
6187
|
+
*/
|
|
6188
|
+
proto.AuthorizeUserRes.prototype.hasMeta = function() {
|
|
6189
|
+
return jspb.Message.getField(this, 1) != null;
|
|
6190
|
+
};
|
|
6191
|
+
|
|
6192
|
+
|
|
6193
|
+
|
|
6194
|
+
|
|
6195
|
+
|
|
5811
6196
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
5812
6197
|
/**
|
|
5813
6198
|
* Creates an object representation of this proto.
|
|
@@ -97,6 +97,28 @@ function deserialize_CheckCompaniesRequest(buffer_arg) {
|
|
|
97
97
|
return prisca_v1_core_auth_auth_pb.CheckCompaniesRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
98
98
|
}
|
|
99
99
|
|
|
100
|
+
function serialize_CheckCompaniesResponse(arg) {
|
|
101
|
+
if (!(arg instanceof prisca_v1_core_auth_auth_pb.CheckCompaniesResponse)) {
|
|
102
|
+
throw new Error('Expected argument of type CheckCompaniesResponse');
|
|
103
|
+
}
|
|
104
|
+
return Buffer.from(arg.serializeBinary());
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
function deserialize_CheckCompaniesResponse(buffer_arg) {
|
|
108
|
+
return prisca_v1_core_auth_auth_pb.CheckCompaniesResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
function serialize_CreateUserAccountByVendorRequest(arg) {
|
|
112
|
+
if (!(arg instanceof prisca_v1_core_auth_auth_pb.CreateUserAccountByVendorRequest)) {
|
|
113
|
+
throw new Error('Expected argument of type CreateUserAccountByVendorRequest');
|
|
114
|
+
}
|
|
115
|
+
return Buffer.from(arg.serializeBinary());
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
function deserialize_CreateUserAccountByVendorRequest(buffer_arg) {
|
|
119
|
+
return prisca_v1_core_auth_auth_pb.CreateUserAccountByVendorRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
120
|
+
}
|
|
121
|
+
|
|
100
122
|
function serialize_CreateUserPayload(arg) {
|
|
101
123
|
if (!(arg instanceof prisca_v1_core_auth_auth_pb.CreateUserPayload)) {
|
|
102
124
|
throw new Error('Expected argument of type CreateUserPayload');
|
|
@@ -218,6 +240,28 @@ function deserialize_RequestForgotResponse(buffer_arg) {
|
|
|
218
240
|
return prisca_v1_core_auth_auth_pb.RequestForgotResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
219
241
|
}
|
|
220
242
|
|
|
243
|
+
function serialize_RequestRegisterVendorReq(arg) {
|
|
244
|
+
if (!(arg instanceof prisca_v1_core_auth_auth_pb.RequestRegisterVendorReq)) {
|
|
245
|
+
throw new Error('Expected argument of type RequestRegisterVendorReq');
|
|
246
|
+
}
|
|
247
|
+
return Buffer.from(arg.serializeBinary());
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
function deserialize_RequestRegisterVendorReq(buffer_arg) {
|
|
251
|
+
return prisca_v1_core_auth_auth_pb.RequestRegisterVendorReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
function serialize_RequestRegisterVendorResponse(arg) {
|
|
255
|
+
if (!(arg instanceof prisca_v1_core_auth_auth_pb.RequestRegisterVendorResponse)) {
|
|
256
|
+
throw new Error('Expected argument of type RequestRegisterVendorResponse');
|
|
257
|
+
}
|
|
258
|
+
return Buffer.from(arg.serializeBinary());
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
function deserialize_RequestRegisterVendorResponse(buffer_arg) {
|
|
262
|
+
return prisca_v1_core_auth_auth_pb.RequestRegisterVendorResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
263
|
+
}
|
|
264
|
+
|
|
221
265
|
function serialize_UpdateAccessPayload(arg) {
|
|
222
266
|
if (!(arg instanceof prisca_v1_core_auth_auth_pb.UpdateAccessPayload)) {
|
|
223
267
|
throw new Error('Expected argument of type UpdateAccessPayload');
|
|
@@ -251,6 +295,28 @@ function deserialize_UserResponse(buffer_arg) {
|
|
|
251
295
|
return prisca_v1_core_auth_auth_pb.UserResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
252
296
|
}
|
|
253
297
|
|
|
298
|
+
function serialize_ValidateTokenReq(arg) {
|
|
299
|
+
if (!(arg instanceof prisca_v1_core_auth_auth_pb.ValidateTokenReq)) {
|
|
300
|
+
throw new Error('Expected argument of type ValidateTokenReq');
|
|
301
|
+
}
|
|
302
|
+
return Buffer.from(arg.serializeBinary());
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
function deserialize_ValidateTokenReq(buffer_arg) {
|
|
306
|
+
return prisca_v1_core_auth_auth_pb.ValidateTokenReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
function serialize_ValidateTokenRes(arg) {
|
|
310
|
+
if (!(arg instanceof prisca_v1_core_auth_auth_pb.ValidateTokenRes)) {
|
|
311
|
+
throw new Error('Expected argument of type ValidateTokenRes');
|
|
312
|
+
}
|
|
313
|
+
return Buffer.from(arg.serializeBinary());
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
function deserialize_ValidateTokenRes(buffer_arg) {
|
|
317
|
+
return prisca_v1_core_auth_auth_pb.ValidateTokenRes.deserializeBinary(new Uint8Array(buffer_arg));
|
|
318
|
+
}
|
|
319
|
+
|
|
254
320
|
|
|
255
321
|
var AuthServiceService = exports.AuthServiceService = {
|
|
256
322
|
verifyToken: {
|
|
@@ -264,6 +330,17 @@ var AuthServiceService = exports.AuthServiceService = {
|
|
|
264
330
|
responseSerialize: serialize_UserResponse,
|
|
265
331
|
responseDeserialize: deserialize_UserResponse,
|
|
266
332
|
},
|
|
333
|
+
validateToken: {
|
|
334
|
+
path: '/AuthService/ValidateToken',
|
|
335
|
+
requestStream: false,
|
|
336
|
+
responseStream: false,
|
|
337
|
+
requestType: prisca_v1_core_auth_auth_pb.ValidateTokenReq,
|
|
338
|
+
responseType: prisca_v1_core_auth_auth_pb.ValidateTokenRes,
|
|
339
|
+
requestSerialize: serialize_ValidateTokenReq,
|
|
340
|
+
requestDeserialize: deserialize_ValidateTokenReq,
|
|
341
|
+
responseSerialize: serialize_ValidateTokenRes,
|
|
342
|
+
responseDeserialize: deserialize_ValidateTokenRes,
|
|
343
|
+
},
|
|
267
344
|
loginUser: {
|
|
268
345
|
path: '/AuthService/LoginUser',
|
|
269
346
|
requestStream: false,
|
|
@@ -297,6 +374,17 @@ var AuthServiceService = exports.AuthServiceService = {
|
|
|
297
374
|
responseSerialize: serialize_UserResponse,
|
|
298
375
|
responseDeserialize: deserialize_UserResponse,
|
|
299
376
|
},
|
|
377
|
+
createUserVendor: {
|
|
378
|
+
path: '/AuthService/CreateUserVendor',
|
|
379
|
+
requestStream: false,
|
|
380
|
+
responseStream: false,
|
|
381
|
+
requestType: prisca_v1_core_auth_auth_pb.CreateUserAccountByVendorRequest,
|
|
382
|
+
responseType: prisca_v1_core_auth_auth_pb.UserResponse,
|
|
383
|
+
requestSerialize: serialize_CreateUserAccountByVendorRequest,
|
|
384
|
+
requestDeserialize: deserialize_CreateUserAccountByVendorRequest,
|
|
385
|
+
responseSerialize: serialize_UserResponse,
|
|
386
|
+
responseDeserialize: deserialize_UserResponse,
|
|
387
|
+
},
|
|
300
388
|
updateUser: {
|
|
301
389
|
path: '/AuthService/UpdateUser',
|
|
302
390
|
requestStream: false,
|
|
@@ -379,11 +467,22 @@ var AuthServiceService = exports.AuthServiceService = {
|
|
|
379
467
|
requestStream: false,
|
|
380
468
|
responseStream: false,
|
|
381
469
|
requestType: prisca_v1_core_auth_auth_pb.CheckCompaniesRequest,
|
|
382
|
-
responseType: prisca_v1_core_auth_auth_pb.
|
|
470
|
+
responseType: prisca_v1_core_auth_auth_pb.CheckCompaniesResponse,
|
|
383
471
|
requestSerialize: serialize_CheckCompaniesRequest,
|
|
384
472
|
requestDeserialize: deserialize_CheckCompaniesRequest,
|
|
385
|
-
responseSerialize:
|
|
386
|
-
responseDeserialize:
|
|
473
|
+
responseSerialize: serialize_CheckCompaniesResponse,
|
|
474
|
+
responseDeserialize: deserialize_CheckCompaniesResponse,
|
|
475
|
+
},
|
|
476
|
+
requestRegisterVendor: {
|
|
477
|
+
path: '/AuthService/RequestRegisterVendor',
|
|
478
|
+
requestStream: false,
|
|
479
|
+
responseStream: false,
|
|
480
|
+
requestType: prisca_v1_core_auth_auth_pb.RequestRegisterVendorReq,
|
|
481
|
+
responseType: prisca_v1_core_auth_auth_pb.RequestRegisterVendorResponse,
|
|
482
|
+
requestSerialize: serialize_RequestRegisterVendorReq,
|
|
483
|
+
requestDeserialize: deserialize_RequestRegisterVendorReq,
|
|
484
|
+
responseSerialize: serialize_RequestRegisterVendorResponse,
|
|
485
|
+
responseDeserialize: deserialize_RequestRegisterVendorResponse,
|
|
387
486
|
},
|
|
388
487
|
requestForgotPassword: {
|
|
389
488
|
path: '/AuthService/RequestForgotPassword',
|