@aldiokta/protocgen 1.1.6 → 1.1.7

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.
@@ -81,7 +81,7 @@ if (goog.DEBUG && !COMPILED) {
81
81
  * @constructor
82
82
  */
83
83
  proto.ActivityRequest = function(opt_data) {
84
- jspb.Message.initialize(this, opt_data, 0, -1, proto.ActivityRequest.repeatedFields_, null);
84
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
85
85
  };
86
86
  goog.inherits(proto.ActivityRequest, jspb.Message);
87
87
  if (goog.DEBUG && !COMPILED) {
@@ -544,13 +544,6 @@ proto.Activity.prototype.setNote = function(value) {
544
544
 
545
545
 
546
546
 
547
- /**
548
- * List of repeated fields within this message type.
549
- * @private {!Array<number>}
550
- * @const
551
- */
552
- proto.ActivityRequest.repeatedFields_ = [1];
553
-
554
547
 
555
548
 
556
549
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -582,9 +575,8 @@ proto.ActivityRequest.prototype.toObject = function(opt_includeInstance) {
582
575
  */
583
576
  proto.ActivityRequest.toObject = function(includeInstance, msg) {
584
577
  var f, obj = {
585
- documentsRequestList: jspb.Message.toObjectList(msg.getDocumentsRequestList(),
586
- proto.DocumentRequest.toObject, includeInstance),
587
- type: jspb.Message.getFieldWithDefault(msg, 2, "")
578
+ documentType: jspb.Message.getFieldWithDefault(msg, 1, ""),
579
+ docReferencesId: jspb.Message.getFieldWithDefault(msg, 2, "")
588
580
  };
589
581
 
590
582
  if (includeInstance) {
@@ -622,13 +614,12 @@ proto.ActivityRequest.deserializeBinaryFromReader = function(msg, reader) {
622
614
  var field = reader.getFieldNumber();
623
615
  switch (field) {
624
616
  case 1:
625
- var value = new proto.DocumentRequest;
626
- reader.readMessage(value,proto.DocumentRequest.deserializeBinaryFromReader);
627
- msg.addDocumentsRequest(value);
617
+ var value = /** @type {string} */ (reader.readString());
618
+ msg.setDocumentType(value);
628
619
  break;
629
620
  case 2:
630
621
  var value = /** @type {string} */ (reader.readString());
631
- msg.setType(value);
622
+ msg.setDocReferencesId(value);
632
623
  break;
633
624
  default:
634
625
  reader.skipField();
@@ -659,15 +650,14 @@ proto.ActivityRequest.prototype.serializeBinary = function() {
659
650
  */
660
651
  proto.ActivityRequest.serializeBinaryToWriter = function(message, writer) {
661
652
  var f = undefined;
662
- f = message.getDocumentsRequestList();
653
+ f = message.getDocumentType();
663
654
  if (f.length > 0) {
664
- writer.writeRepeatedMessage(
655
+ writer.writeString(
665
656
  1,
666
- f,
667
- proto.DocumentRequest.serializeBinaryToWriter
657
+ f
668
658
  );
669
659
  }
670
- f = message.getType();
660
+ f = message.getDocReferencesId();
671
661
  if (f.length > 0) {
672
662
  writer.writeString(
673
663
  2,
@@ -678,48 +668,28 @@ proto.ActivityRequest.serializeBinaryToWriter = function(message, writer) {
678
668
 
679
669
 
680
670
  /**
681
- * repeated DocumentRequest documents_request = 1;
682
- * @return {!Array<!proto.DocumentRequest>}
683
- */
684
- proto.ActivityRequest.prototype.getDocumentsRequestList = function() {
685
- return /** @type{!Array<!proto.DocumentRequest>} */ (
686
- jspb.Message.getRepeatedWrapperField(this, proto.DocumentRequest, 1));
687
- };
688
-
689
-
690
- /**
691
- * @param {!Array<!proto.DocumentRequest>} value
692
- * @return {!proto.ActivityRequest} returns this
693
- */
694
- proto.ActivityRequest.prototype.setDocumentsRequestList = function(value) {
695
- return jspb.Message.setRepeatedWrapperField(this, 1, value);
696
- };
697
-
698
-
699
- /**
700
- * @param {!proto.DocumentRequest=} opt_value
701
- * @param {number=} opt_index
702
- * @return {!proto.DocumentRequest}
671
+ * optional string document_type = 1;
672
+ * @return {string}
703
673
  */
704
- proto.ActivityRequest.prototype.addDocumentsRequest = function(opt_value, opt_index) {
705
- return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.DocumentRequest, opt_index);
674
+ proto.ActivityRequest.prototype.getDocumentType = function() {
675
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
706
676
  };
707
677
 
708
678
 
709
679
  /**
710
- * Clears the list making it empty but non-null.
680
+ * @param {string} value
711
681
  * @return {!proto.ActivityRequest} returns this
712
682
  */
713
- proto.ActivityRequest.prototype.clearDocumentsRequestList = function() {
714
- return this.setDocumentsRequestList([]);
683
+ proto.ActivityRequest.prototype.setDocumentType = function(value) {
684
+ return jspb.Message.setProto3StringField(this, 1, value);
715
685
  };
716
686
 
717
687
 
718
688
  /**
719
- * optional string type = 2;
689
+ * optional string doc_references_id = 2;
720
690
  * @return {string}
721
691
  */
722
- proto.ActivityRequest.prototype.getType = function() {
692
+ proto.ActivityRequest.prototype.getDocReferencesId = function() {
723
693
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
724
694
  };
725
695
 
@@ -728,7 +698,7 @@ proto.ActivityRequest.prototype.getType = function() {
728
698
  * @param {string} value
729
699
  * @return {!proto.ActivityRequest} returns this
730
700
  */
731
- proto.ActivityRequest.prototype.setType = function(value) {
701
+ proto.ActivityRequest.prototype.setDocReferencesId = function(value) {
732
702
  return jspb.Message.setProto3StringField(this, 2, value);
733
703
  };
734
704
 
@@ -0,0 +1,146 @@
1
+ // GENERATED CODE -- DO NOT EDIT!
2
+
3
+ 'use strict';
4
+ var grpc = require('@grpc/grpc-js');
5
+ var prisca_v1_core_price_condition_price_condition_pb = require('../../../../prisca/v1/core/price_condition/price_condition_pb.js');
6
+ var prisca_v1_global_meta_meta_pb = require('../../../../prisca/v1/global/meta/meta_pb.js');
7
+ var prisca_v1_core_company_company_pb = require('../../../../prisca/v1/core/company/company_pb.js');
8
+ var prisca_v1_core_employee_employee_pb = require('../../../../prisca/v1/core/employee/employee_pb.js');
9
+
10
+ function serialize_CreatePriceConditionRequest(arg) {
11
+ if (!(arg instanceof prisca_v1_core_price_condition_price_condition_pb.CreatePriceConditionRequest)) {
12
+ throw new Error('Expected argument of type CreatePriceConditionRequest');
13
+ }
14
+ return Buffer.from(arg.serializeBinary());
15
+ }
16
+
17
+ function deserialize_CreatePriceConditionRequest(buffer_arg) {
18
+ return prisca_v1_core_price_condition_price_condition_pb.CreatePriceConditionRequest.deserializeBinary(new Uint8Array(buffer_arg));
19
+ }
20
+
21
+ function serialize_CreatePriceConditionResponse(arg) {
22
+ if (!(arg instanceof prisca_v1_core_price_condition_price_condition_pb.CreatePriceConditionResponse)) {
23
+ throw new Error('Expected argument of type CreatePriceConditionResponse');
24
+ }
25
+ return Buffer.from(arg.serializeBinary());
26
+ }
27
+
28
+ function deserialize_CreatePriceConditionResponse(buffer_arg) {
29
+ return prisca_v1_core_price_condition_price_condition_pb.CreatePriceConditionResponse.deserializeBinary(new Uint8Array(buffer_arg));
30
+ }
31
+
32
+ function serialize_GetByIdPriceConditionRequest(arg) {
33
+ if (!(arg instanceof prisca_v1_core_price_condition_price_condition_pb.GetByIdPriceConditionRequest)) {
34
+ throw new Error('Expected argument of type GetByIdPriceConditionRequest');
35
+ }
36
+ return Buffer.from(arg.serializeBinary());
37
+ }
38
+
39
+ function deserialize_GetByIdPriceConditionRequest(buffer_arg) {
40
+ return prisca_v1_core_price_condition_price_condition_pb.GetByIdPriceConditionRequest.deserializeBinary(new Uint8Array(buffer_arg));
41
+ }
42
+
43
+ function serialize_GetByIdPriceConditionResponse(arg) {
44
+ if (!(arg instanceof prisca_v1_core_price_condition_price_condition_pb.GetByIdPriceConditionResponse)) {
45
+ throw new Error('Expected argument of type GetByIdPriceConditionResponse');
46
+ }
47
+ return Buffer.from(arg.serializeBinary());
48
+ }
49
+
50
+ function deserialize_GetByIdPriceConditionResponse(buffer_arg) {
51
+ return prisca_v1_core_price_condition_price_condition_pb.GetByIdPriceConditionResponse.deserializeBinary(new Uint8Array(buffer_arg));
52
+ }
53
+
54
+ function serialize_GetListPriceConditionRequest(arg) {
55
+ if (!(arg instanceof prisca_v1_core_price_condition_price_condition_pb.GetListPriceConditionRequest)) {
56
+ throw new Error('Expected argument of type GetListPriceConditionRequest');
57
+ }
58
+ return Buffer.from(arg.serializeBinary());
59
+ }
60
+
61
+ function deserialize_GetListPriceConditionRequest(buffer_arg) {
62
+ return prisca_v1_core_price_condition_price_condition_pb.GetListPriceConditionRequest.deserializeBinary(new Uint8Array(buffer_arg));
63
+ }
64
+
65
+ function serialize_GetListPriceConditionResponse(arg) {
66
+ if (!(arg instanceof prisca_v1_core_price_condition_price_condition_pb.GetListPriceConditionResponse)) {
67
+ throw new Error('Expected argument of type GetListPriceConditionResponse');
68
+ }
69
+ return Buffer.from(arg.serializeBinary());
70
+ }
71
+
72
+ function deserialize_GetListPriceConditionResponse(buffer_arg) {
73
+ return prisca_v1_core_price_condition_price_condition_pb.GetListPriceConditionResponse.deserializeBinary(new Uint8Array(buffer_arg));
74
+ }
75
+
76
+ function serialize_UpdatePriceConditionRequest(arg) {
77
+ if (!(arg instanceof prisca_v1_core_price_condition_price_condition_pb.UpdatePriceConditionRequest)) {
78
+ throw new Error('Expected argument of type UpdatePriceConditionRequest');
79
+ }
80
+ return Buffer.from(arg.serializeBinary());
81
+ }
82
+
83
+ function deserialize_UpdatePriceConditionRequest(buffer_arg) {
84
+ return prisca_v1_core_price_condition_price_condition_pb.UpdatePriceConditionRequest.deserializeBinary(new Uint8Array(buffer_arg));
85
+ }
86
+
87
+ function serialize_UpdatePriceConditionResponse(arg) {
88
+ if (!(arg instanceof prisca_v1_core_price_condition_price_condition_pb.UpdatePriceConditionResponse)) {
89
+ throw new Error('Expected argument of type UpdatePriceConditionResponse');
90
+ }
91
+ return Buffer.from(arg.serializeBinary());
92
+ }
93
+
94
+ function deserialize_UpdatePriceConditionResponse(buffer_arg) {
95
+ return prisca_v1_core_price_condition_price_condition_pb.UpdatePriceConditionResponse.deserializeBinary(new Uint8Array(buffer_arg));
96
+ }
97
+
98
+
99
+ var PriceConditionServiceService = exports.PriceConditionServiceService = {
100
+ createPriceCondition: {
101
+ path: '/PriceConditionService/CreatePriceCondition',
102
+ requestStream: false,
103
+ responseStream: false,
104
+ requestType: prisca_v1_core_price_condition_price_condition_pb.CreatePriceConditionRequest,
105
+ responseType: prisca_v1_core_price_condition_price_condition_pb.CreatePriceConditionResponse,
106
+ requestSerialize: serialize_CreatePriceConditionRequest,
107
+ requestDeserialize: deserialize_CreatePriceConditionRequest,
108
+ responseSerialize: serialize_CreatePriceConditionResponse,
109
+ responseDeserialize: deserialize_CreatePriceConditionResponse,
110
+ },
111
+ getByIdPriceCondition: {
112
+ path: '/PriceConditionService/GetByIdPriceCondition',
113
+ requestStream: false,
114
+ responseStream: false,
115
+ requestType: prisca_v1_core_price_condition_price_condition_pb.GetByIdPriceConditionRequest,
116
+ responseType: prisca_v1_core_price_condition_price_condition_pb.GetByIdPriceConditionResponse,
117
+ requestSerialize: serialize_GetByIdPriceConditionRequest,
118
+ requestDeserialize: deserialize_GetByIdPriceConditionRequest,
119
+ responseSerialize: serialize_GetByIdPriceConditionResponse,
120
+ responseDeserialize: deserialize_GetByIdPriceConditionResponse,
121
+ },
122
+ updatePriceCondition: {
123
+ path: '/PriceConditionService/UpdatePriceCondition',
124
+ requestStream: false,
125
+ responseStream: false,
126
+ requestType: prisca_v1_core_price_condition_price_condition_pb.UpdatePriceConditionRequest,
127
+ responseType: prisca_v1_core_price_condition_price_condition_pb.UpdatePriceConditionResponse,
128
+ requestSerialize: serialize_UpdatePriceConditionRequest,
129
+ requestDeserialize: deserialize_UpdatePriceConditionRequest,
130
+ responseSerialize: serialize_UpdatePriceConditionResponse,
131
+ responseDeserialize: deserialize_UpdatePriceConditionResponse,
132
+ },
133
+ getListPriceCondition: {
134
+ path: '/PriceConditionService/GetListPriceCondition',
135
+ requestStream: false,
136
+ responseStream: false,
137
+ requestType: prisca_v1_core_price_condition_price_condition_pb.GetListPriceConditionRequest,
138
+ responseType: prisca_v1_core_price_condition_price_condition_pb.GetListPriceConditionResponse,
139
+ requestSerialize: serialize_GetListPriceConditionRequest,
140
+ requestDeserialize: deserialize_GetListPriceConditionRequest,
141
+ responseSerialize: serialize_GetListPriceConditionResponse,
142
+ responseDeserialize: deserialize_GetListPriceConditionResponse,
143
+ },
144
+ };
145
+
146
+ exports.PriceConditionServiceClient = grpc.makeGenericClientConstructor(PriceConditionServiceService, 'PriceConditionService');