@aldiokta/protocgen 1.1.26 → 1.1.28
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 +55 -0
- package/prisca/v1/bidding/bidding_pb.js +1042 -63
- 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 +103 -3
- package/prisca/v1/core/auth/auth_pb.js +2519 -1181
- package/prisca/v1/core/file_upload/file_upload_pb.js +93 -3
- package/prisca/v1/core/item_transaction/item_transaction_pb.js +183 -33
- package/prisca/v1/core/line_of_activity/line_of_activity_pb.js +438 -46
- package/prisca/v1/core/line_of_approval/line_of_approval_pb.js +31 -1
- package/prisca/v1/core/location/location_pb.js +446 -57
- 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 +122 -2
- package/prisca/v1/core/transaction_builder/transaction_builder_grpc_pb.js +234 -168
- package/prisca/v1/core/transaction_builder/transaction_builder_pb.js +1987 -1775
- package/prisca/v1/delivery_order/delivery_order_pb.js +130 -70
- package/prisca/v1/good_receipt/good_receipt_grpc_pb.js +228 -1
- package/prisca/v1/good_receipt/good_receipt_pb.js +4779 -0
- package/prisca/v1/invoice/invoice_grpc_pb.js +174 -0
- package/prisca/v1/invoice/invoice_pb.js +4398 -0
- package/prisca/v1/purchase_order/purchase_order_grpc_pb.js +11 -0
- package/prisca/v1/purchase_order/purchase_order_pb.js +142 -22
- package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_pb.js +105 -75
- package/prisca/v1/purchasing_organization/purchasing_organization_pb.js +55 -177
- package/prisca/v1/quotation/quotation_pb.js +236 -26
- package/prisca/v1/request_for_quotation/request_for_quotation_grpc_pb.js +33 -0
- package/prisca/v1/request_for_quotation/request_for_quotation_pb.js +413 -28
- package/prisca/v1/vendor_domain/vendor_domain_grpc_pb.js +55 -0
- package/prisca/v1/vendor_domain/vendor_domain_pb.js +1076 -317
|
@@ -53,6 +53,28 @@ function deserialize_AssignRoleToUserResponse(buffer_arg) {
|
|
|
53
53
|
return prisca_v1_core_access_manager_access_manager_pb.AssignRoleToUserResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
+
function serialize_AuthorizeUserReq(arg) {
|
|
57
|
+
if (!(arg instanceof prisca_v1_core_access_manager_access_manager_pb.AuthorizeUserReq)) {
|
|
58
|
+
throw new Error('Expected argument of type AuthorizeUserReq');
|
|
59
|
+
}
|
|
60
|
+
return Buffer.from(arg.serializeBinary());
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
function deserialize_AuthorizeUserReq(buffer_arg) {
|
|
64
|
+
return prisca_v1_core_access_manager_access_manager_pb.AuthorizeUserReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
function serialize_AuthorizeUserRes(arg) {
|
|
68
|
+
if (!(arg instanceof prisca_v1_core_access_manager_access_manager_pb.AuthorizeUserRes)) {
|
|
69
|
+
throw new Error('Expected argument of type AuthorizeUserRes');
|
|
70
|
+
}
|
|
71
|
+
return Buffer.from(arg.serializeBinary());
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
function deserialize_AuthorizeUserRes(buffer_arg) {
|
|
75
|
+
return prisca_v1_core_access_manager_access_manager_pb.AuthorizeUserRes.deserializeBinary(new Uint8Array(buffer_arg));
|
|
76
|
+
}
|
|
77
|
+
|
|
56
78
|
function serialize_CreatePolicyRequest(arg) {
|
|
57
79
|
if (!(arg instanceof prisca_v1_core_access_manager_access_manager_pb.CreatePolicyRequest)) {
|
|
58
80
|
throw new Error('Expected argument of type CreatePolicyRequest');
|
|
@@ -539,6 +561,17 @@ var AccessManagerServiceService = exports.AccessManagerServiceService = {
|
|
|
539
561
|
responseSerialize: serialize_GetResourceByActionResponse,
|
|
540
562
|
responseDeserialize: deserialize_GetResourceByActionResponse,
|
|
541
563
|
},
|
|
564
|
+
isAuthorizeUser: {
|
|
565
|
+
path: '/AccessManagerService/IsAuthorizeUser',
|
|
566
|
+
requestStream: false,
|
|
567
|
+
responseStream: false,
|
|
568
|
+
requestType: prisca_v1_core_access_manager_access_manager_pb.AuthorizeUserReq,
|
|
569
|
+
responseType: prisca_v1_core_access_manager_access_manager_pb.AuthorizeUserRes,
|
|
570
|
+
requestSerialize: serialize_AuthorizeUserReq,
|
|
571
|
+
requestDeserialize: deserialize_AuthorizeUserReq,
|
|
572
|
+
responseSerialize: serialize_AuthorizeUserRes,
|
|
573
|
+
responseDeserialize: deserialize_AuthorizeUserRes,
|
|
574
|
+
},
|
|
542
575
|
};
|
|
543
576
|
|
|
544
577
|
exports.AccessManagerServiceClient = grpc.makeGenericClientConstructor(AccessManagerServiceService, 'AccessManagerService');
|
|
@@ -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.
|
|
@@ -8,6 +8,7 @@ var grpc = require('@grpc/grpc-js');
|
|
|
8
8
|
var prisca_v1_core_auth_auth_pb = require('../../../../prisca/v1/core/auth/auth_pb.js');
|
|
9
9
|
var prisca_v1_global_meta_meta_pb = require('../../../../prisca/v1/global/meta/meta_pb.js');
|
|
10
10
|
var prisca_v1_core_access_manager_access_manager_pb = require('../../../../prisca/v1/core/access_manager/access_manager_pb.js');
|
|
11
|
+
var prisca_v1_core_transaction_builder_transaction_builder_pb = require('../../../../prisca/v1/core/transaction_builder/transaction_builder_pb.js');
|
|
11
12
|
|
|
12
13
|
function serialize_AccessApiCredential(arg) {
|
|
13
14
|
if (!(arg instanceof prisca_v1_core_auth_auth_pb.AccessApiCredential)) {
|
|
@@ -97,6 +98,28 @@ function deserialize_CheckCompaniesRequest(buffer_arg) {
|
|
|
97
98
|
return prisca_v1_core_auth_auth_pb.CheckCompaniesRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
98
99
|
}
|
|
99
100
|
|
|
101
|
+
function serialize_CheckCompaniesResponse(arg) {
|
|
102
|
+
if (!(arg instanceof prisca_v1_core_auth_auth_pb.CheckCompaniesResponse)) {
|
|
103
|
+
throw new Error('Expected argument of type CheckCompaniesResponse');
|
|
104
|
+
}
|
|
105
|
+
return Buffer.from(arg.serializeBinary());
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
function deserialize_CheckCompaniesResponse(buffer_arg) {
|
|
109
|
+
return prisca_v1_core_auth_auth_pb.CheckCompaniesResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
function serialize_CreateUserAccountByVendorRequest(arg) {
|
|
113
|
+
if (!(arg instanceof prisca_v1_core_auth_auth_pb.CreateUserAccountByVendorRequest)) {
|
|
114
|
+
throw new Error('Expected argument of type CreateUserAccountByVendorRequest');
|
|
115
|
+
}
|
|
116
|
+
return Buffer.from(arg.serializeBinary());
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
function deserialize_CreateUserAccountByVendorRequest(buffer_arg) {
|
|
120
|
+
return prisca_v1_core_auth_auth_pb.CreateUserAccountByVendorRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
121
|
+
}
|
|
122
|
+
|
|
100
123
|
function serialize_CreateUserPayload(arg) {
|
|
101
124
|
if (!(arg instanceof prisca_v1_core_auth_auth_pb.CreateUserPayload)) {
|
|
102
125
|
throw new Error('Expected argument of type CreateUserPayload');
|
|
@@ -218,6 +241,28 @@ function deserialize_RequestForgotResponse(buffer_arg) {
|
|
|
218
241
|
return prisca_v1_core_auth_auth_pb.RequestForgotResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
219
242
|
}
|
|
220
243
|
|
|
244
|
+
function serialize_RequestRegisterVendorReq(arg) {
|
|
245
|
+
if (!(arg instanceof prisca_v1_core_auth_auth_pb.RequestRegisterVendorReq)) {
|
|
246
|
+
throw new Error('Expected argument of type RequestRegisterVendorReq');
|
|
247
|
+
}
|
|
248
|
+
return Buffer.from(arg.serializeBinary());
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
function deserialize_RequestRegisterVendorReq(buffer_arg) {
|
|
252
|
+
return prisca_v1_core_auth_auth_pb.RequestRegisterVendorReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
function serialize_RequestRegisterVendorResponse(arg) {
|
|
256
|
+
if (!(arg instanceof prisca_v1_core_auth_auth_pb.RequestRegisterVendorResponse)) {
|
|
257
|
+
throw new Error('Expected argument of type RequestRegisterVendorResponse');
|
|
258
|
+
}
|
|
259
|
+
return Buffer.from(arg.serializeBinary());
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
function deserialize_RequestRegisterVendorResponse(buffer_arg) {
|
|
263
|
+
return prisca_v1_core_auth_auth_pb.RequestRegisterVendorResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
264
|
+
}
|
|
265
|
+
|
|
221
266
|
function serialize_UpdateAccessPayload(arg) {
|
|
222
267
|
if (!(arg instanceof prisca_v1_core_auth_auth_pb.UpdateAccessPayload)) {
|
|
223
268
|
throw new Error('Expected argument of type UpdateAccessPayload');
|
|
@@ -251,6 +296,28 @@ function deserialize_UserResponse(buffer_arg) {
|
|
|
251
296
|
return prisca_v1_core_auth_auth_pb.UserResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
252
297
|
}
|
|
253
298
|
|
|
299
|
+
function serialize_ValidateTokenReq(arg) {
|
|
300
|
+
if (!(arg instanceof prisca_v1_core_auth_auth_pb.ValidateTokenReq)) {
|
|
301
|
+
throw new Error('Expected argument of type ValidateTokenReq');
|
|
302
|
+
}
|
|
303
|
+
return Buffer.from(arg.serializeBinary());
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
function deserialize_ValidateTokenReq(buffer_arg) {
|
|
307
|
+
return prisca_v1_core_auth_auth_pb.ValidateTokenReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
function serialize_ValidateTokenRes(arg) {
|
|
311
|
+
if (!(arg instanceof prisca_v1_core_auth_auth_pb.ValidateTokenRes)) {
|
|
312
|
+
throw new Error('Expected argument of type ValidateTokenRes');
|
|
313
|
+
}
|
|
314
|
+
return Buffer.from(arg.serializeBinary());
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
function deserialize_ValidateTokenRes(buffer_arg) {
|
|
318
|
+
return prisca_v1_core_auth_auth_pb.ValidateTokenRes.deserializeBinary(new Uint8Array(buffer_arg));
|
|
319
|
+
}
|
|
320
|
+
|
|
254
321
|
|
|
255
322
|
var AuthServiceService = exports.AuthServiceService = {
|
|
256
323
|
verifyToken: {
|
|
@@ -264,6 +331,17 @@ var AuthServiceService = exports.AuthServiceService = {
|
|
|
264
331
|
responseSerialize: serialize_UserResponse,
|
|
265
332
|
responseDeserialize: deserialize_UserResponse,
|
|
266
333
|
},
|
|
334
|
+
validateToken: {
|
|
335
|
+
path: '/AuthService/ValidateToken',
|
|
336
|
+
requestStream: false,
|
|
337
|
+
responseStream: false,
|
|
338
|
+
requestType: prisca_v1_core_auth_auth_pb.ValidateTokenReq,
|
|
339
|
+
responseType: prisca_v1_core_auth_auth_pb.ValidateTokenRes,
|
|
340
|
+
requestSerialize: serialize_ValidateTokenReq,
|
|
341
|
+
requestDeserialize: deserialize_ValidateTokenReq,
|
|
342
|
+
responseSerialize: serialize_ValidateTokenRes,
|
|
343
|
+
responseDeserialize: deserialize_ValidateTokenRes,
|
|
344
|
+
},
|
|
267
345
|
loginUser: {
|
|
268
346
|
path: '/AuthService/LoginUser',
|
|
269
347
|
requestStream: false,
|
|
@@ -297,6 +375,17 @@ var AuthServiceService = exports.AuthServiceService = {
|
|
|
297
375
|
responseSerialize: serialize_UserResponse,
|
|
298
376
|
responseDeserialize: deserialize_UserResponse,
|
|
299
377
|
},
|
|
378
|
+
createUserVendor: {
|
|
379
|
+
path: '/AuthService/CreateUserVendor',
|
|
380
|
+
requestStream: false,
|
|
381
|
+
responseStream: false,
|
|
382
|
+
requestType: prisca_v1_core_auth_auth_pb.CreateUserAccountByVendorRequest,
|
|
383
|
+
responseType: prisca_v1_core_auth_auth_pb.UserResponse,
|
|
384
|
+
requestSerialize: serialize_CreateUserAccountByVendorRequest,
|
|
385
|
+
requestDeserialize: deserialize_CreateUserAccountByVendorRequest,
|
|
386
|
+
responseSerialize: serialize_UserResponse,
|
|
387
|
+
responseDeserialize: deserialize_UserResponse,
|
|
388
|
+
},
|
|
300
389
|
updateUser: {
|
|
301
390
|
path: '/AuthService/UpdateUser',
|
|
302
391
|
requestStream: false,
|
|
@@ -379,11 +468,22 @@ var AuthServiceService = exports.AuthServiceService = {
|
|
|
379
468
|
requestStream: false,
|
|
380
469
|
responseStream: false,
|
|
381
470
|
requestType: prisca_v1_core_auth_auth_pb.CheckCompaniesRequest,
|
|
382
|
-
responseType: prisca_v1_core_auth_auth_pb.
|
|
471
|
+
responseType: prisca_v1_core_auth_auth_pb.CheckCompaniesResponse,
|
|
383
472
|
requestSerialize: serialize_CheckCompaniesRequest,
|
|
384
473
|
requestDeserialize: deserialize_CheckCompaniesRequest,
|
|
385
|
-
responseSerialize:
|
|
386
|
-
responseDeserialize:
|
|
474
|
+
responseSerialize: serialize_CheckCompaniesResponse,
|
|
475
|
+
responseDeserialize: deserialize_CheckCompaniesResponse,
|
|
476
|
+
},
|
|
477
|
+
requestRegisterVendor: {
|
|
478
|
+
path: '/AuthService/RequestRegisterVendor',
|
|
479
|
+
requestStream: false,
|
|
480
|
+
responseStream: false,
|
|
481
|
+
requestType: prisca_v1_core_auth_auth_pb.RequestRegisterVendorReq,
|
|
482
|
+
responseType: prisca_v1_core_auth_auth_pb.RequestRegisterVendorResponse,
|
|
483
|
+
requestSerialize: serialize_RequestRegisterVendorReq,
|
|
484
|
+
requestDeserialize: deserialize_RequestRegisterVendorReq,
|
|
485
|
+
responseSerialize: serialize_RequestRegisterVendorResponse,
|
|
486
|
+
responseDeserialize: deserialize_RequestRegisterVendorResponse,
|
|
387
487
|
},
|
|
388
488
|
requestForgotPassword: {
|
|
389
489
|
path: '/AuthService/RequestForgotPassword',
|