@aldiokta/protocgen 1.1.62 → 1.1.64

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.
@@ -983,7 +983,8 @@ biddingEndDate: jspb.Message.getFieldWithDefault(msg, 42, ""),
983
983
  requestForQuotationMethod: jspb.Message.getFieldWithDefault(msg, 43, ""),
984
984
  maxSubmissionDate: jspb.Message.getFieldWithDefault(msg, 44, ""),
985
985
  companies: (f = msg.getCompanies()) && prisca_v1_core_company_company_pb.BaseCompany.toObject(includeInstance, f),
986
- department: jspb.Message.getFieldWithDefault(msg, 46, "")
986
+ department: jspb.Message.getFieldWithDefault(msg, 46, ""),
987
+ documentType: jspb.Message.getFieldWithDefault(msg, 47, "")
987
988
  };
988
989
 
989
990
  if (includeInstance) {
@@ -1211,6 +1212,10 @@ proto.Quotation.deserializeBinaryFromReader = function(msg, reader) {
1211
1212
  var value = /** @type {string} */ (reader.readStringRequireUtf8());
1212
1213
  msg.setDepartment(value);
1213
1214
  break;
1215
+ case 47:
1216
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1217
+ msg.setDocumentType(value);
1218
+ break;
1214
1219
  default:
1215
1220
  reader.skipField();
1216
1221
  break;
@@ -1569,6 +1574,13 @@ proto.Quotation.serializeBinaryToWriter = function(message, writer) {
1569
1574
  f
1570
1575
  );
1571
1576
  }
1577
+ f = message.getDocumentType();
1578
+ if (f.length > 0) {
1579
+ writer.writeString(
1580
+ 47,
1581
+ f
1582
+ );
1583
+ }
1572
1584
  };
1573
1585
 
1574
1586
 
@@ -2535,6 +2547,24 @@ proto.Quotation.prototype.setDepartment = function(value) {
2535
2547
  };
2536
2548
 
2537
2549
 
2550
+ /**
2551
+ * optional string document_type = 47;
2552
+ * @return {string}
2553
+ */
2554
+ proto.Quotation.prototype.getDocumentType = function() {
2555
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 47, ""));
2556
+ };
2557
+
2558
+
2559
+ /**
2560
+ * @param {string} value
2561
+ * @return {!proto.Quotation} returns this
2562
+ */
2563
+ proto.Quotation.prototype.setDocumentType = function(value) {
2564
+ return jspb.Message.setProto3StringField(this, 47, value);
2565
+ };
2566
+
2567
+
2538
2568
 
2539
2569
  /**
2540
2570
  * List of repeated fields within this message type.
@@ -2604,7 +2634,7 @@ fullfiledQuotation: jspb.Message.getFieldWithDefault(msg, 26, 0),
2604
2634
  termOfPayment: jspb.Message.getFieldWithDefault(msg, 27, ""),
2605
2635
  purchasingOrganization: jspb.Message.getFieldWithDefault(msg, 28, ""),
2606
2636
  purchasingGroup: jspb.Message.getFieldWithDefault(msg, 29, ""),
2607
- purchaseRequisitionType: jspb.Message.getFieldWithDefault(msg, 30, ""),
2637
+ documentType: jspb.Message.getFieldWithDefault(msg, 30, ""),
2608
2638
  biddingDate: jspb.Message.getFieldWithDefault(msg, 31, ""),
2609
2639
  requestForQuotationMethod: jspb.Message.getFieldWithDefault(msg, 32, "")
2610
2640
  };
@@ -2764,7 +2794,7 @@ proto.Bidding.deserializeBinaryFromReader = function(msg, reader) {
2764
2794
  break;
2765
2795
  case 30:
2766
2796
  var value = /** @type {string} */ (reader.readStringRequireUtf8());
2767
- msg.setPurchaseRequisitionType(value);
2797
+ msg.setDocumentType(value);
2768
2798
  break;
2769
2799
  case 31:
2770
2800
  var value = /** @type {string} */ (reader.readStringRequireUtf8());
@@ -3009,7 +3039,7 @@ proto.Bidding.serializeBinaryToWriter = function(message, writer) {
3009
3039
  f
3010
3040
  );
3011
3041
  }
3012
- f = message.getPurchaseRequisitionType();
3042
+ f = message.getDocumentType();
3013
3043
  if (f.length > 0) {
3014
3044
  writer.writeString(
3015
3045
  30,
@@ -3614,10 +3644,10 @@ proto.Bidding.prototype.setPurchasingGroup = function(value) {
3614
3644
 
3615
3645
 
3616
3646
  /**
3617
- * optional string purchase_requisition_type = 30;
3647
+ * optional string document_type = 30;
3618
3648
  * @return {string}
3619
3649
  */
3620
- proto.Bidding.prototype.getPurchaseRequisitionType = function() {
3650
+ proto.Bidding.prototype.getDocumentType = function() {
3621
3651
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 30, ""));
3622
3652
  };
3623
3653
 
@@ -3626,7 +3656,7 @@ proto.Bidding.prototype.getPurchaseRequisitionType = function() {
3626
3656
  * @param {string} value
3627
3657
  * @return {!proto.Bidding} returns this
3628
3658
  */
3629
- proto.Bidding.prototype.setPurchaseRequisitionType = function(value) {
3659
+ proto.Bidding.prototype.setDocumentType = function(value) {
3630
3660
  return jspb.Message.setProto3StringField(this, 30, value);
3631
3661
  };
3632
3662
 
@@ -3942,7 +3972,7 @@ itemTransactionsList: jspb.Message.toObjectList(msg.getItemTransactionsList(),
3942
3972
  status: jspb.Message.getFieldWithDefault(msg, 14, ""),
3943
3973
  purchaseRequisitionTransactionNumber: jspb.Message.getFieldWithDefault(msg, 15, ""),
3944
3974
  groupReferences: jspb.Message.getFieldWithDefault(msg, 16, ""),
3945
- purchaseRequisitionType: jspb.Message.getFieldWithDefault(msg, 17, ""),
3975
+ documentType: jspb.Message.getFieldWithDefault(msg, 17, ""),
3946
3976
  purchasingOrganization: jspb.Message.getFieldWithDefault(msg, 18, ""),
3947
3977
  purchasingGroup: jspb.Message.getFieldWithDefault(msg, 19, ""),
3948
3978
  biddingDate: jspb.Message.getFieldWithDefault(msg, 20, ""),
@@ -4043,7 +4073,7 @@ proto.RequestBiddingBase.deserializeBinaryFromReader = function(msg, reader) {
4043
4073
  break;
4044
4074
  case 17:
4045
4075
  var value = /** @type {string} */ (reader.readStringRequireUtf8());
4046
- msg.setPurchaseRequisitionType(value);
4076
+ msg.setDocumentType(value);
4047
4077
  break;
4048
4078
  case 18:
4049
4079
  var value = /** @type {string} */ (reader.readStringRequireUtf8());
@@ -4190,7 +4220,7 @@ proto.RequestBiddingBase.serializeBinaryToWriter = function(message, writer) {
4190
4220
  f
4191
4221
  );
4192
4222
  }
4193
- f = message.getPurchaseRequisitionType();
4223
+ f = message.getDocumentType();
4194
4224
  if (f.length > 0) {
4195
4225
  writer.writeString(
4196
4226
  17,
@@ -4521,10 +4551,10 @@ proto.RequestBiddingBase.prototype.setGroupReferences = function(value) {
4521
4551
 
4522
4552
 
4523
4553
  /**
4524
- * optional string purchase_requisition_type = 17;
4554
+ * optional string document_type = 17;
4525
4555
  * @return {string}
4526
4556
  */
4527
- proto.RequestBiddingBase.prototype.getPurchaseRequisitionType = function() {
4557
+ proto.RequestBiddingBase.prototype.getDocumentType = function() {
4528
4558
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 17, ""));
4529
4559
  };
4530
4560
 
@@ -4533,7 +4563,7 @@ proto.RequestBiddingBase.prototype.getPurchaseRequisitionType = function() {
4533
4563
  * @param {string} value
4534
4564
  * @return {!proto.RequestBiddingBase} returns this
4535
4565
  */
4536
- proto.RequestBiddingBase.prototype.setPurchaseRequisitionType = function(value) {
4566
+ proto.RequestBiddingBase.prototype.setDocumentType = function(value) {
4537
4567
  return jspb.Message.setProto3StringField(this, 17, value);
4538
4568
  };
4539
4569
 
@@ -100,6 +100,28 @@ function deserialize_GetMaterialByIdResponse(buffer_arg) {
100
100
  return prisca_v1_core_material_material_pb.GetMaterialByIdResponse.deserializeBinary(new Uint8Array(buffer_arg));
101
101
  }
102
102
 
103
+ function serialize_SyncMaterialsToAccurateRequest(arg) {
104
+ if (!(arg instanceof prisca_v1_core_material_material_pb.SyncMaterialsToAccurateRequest)) {
105
+ throw new Error('Expected argument of type SyncMaterialsToAccurateRequest');
106
+ }
107
+ return Buffer.from(arg.serializeBinary());
108
+ }
109
+
110
+ function deserialize_SyncMaterialsToAccurateRequest(buffer_arg) {
111
+ return prisca_v1_core_material_material_pb.SyncMaterialsToAccurateRequest.deserializeBinary(new Uint8Array(buffer_arg));
112
+ }
113
+
114
+ function serialize_SyncMaterialsToAccurateResponse(arg) {
115
+ if (!(arg instanceof prisca_v1_core_material_material_pb.SyncMaterialsToAccurateResponse)) {
116
+ throw new Error('Expected argument of type SyncMaterialsToAccurateResponse');
117
+ }
118
+ return Buffer.from(arg.serializeBinary());
119
+ }
120
+
121
+ function deserialize_SyncMaterialsToAccurateResponse(buffer_arg) {
122
+ return prisca_v1_core_material_material_pb.SyncMaterialsToAccurateResponse.deserializeBinary(new Uint8Array(buffer_arg));
123
+ }
124
+
103
125
  function serialize_UpdateMaterialRequest(arg) {
104
126
  if (!(arg instanceof prisca_v1_core_material_material_pb.UpdateMaterialRequest)) {
105
127
  throw new Error('Expected argument of type UpdateMaterialRequest');
@@ -179,6 +201,17 @@ var MaterialServiceService = exports.MaterialServiceService = {
179
201
  responseSerialize: serialize_GetListMaterialResponse,
180
202
  responseDeserialize: deserialize_GetListMaterialResponse,
181
203
  },
204
+ syncMaterialsToAccurate: {
205
+ path: '/MaterialService/SyncMaterialsToAccurate',
206
+ requestStream: false,
207
+ responseStream: false,
208
+ requestType: prisca_v1_core_material_material_pb.SyncMaterialsToAccurateRequest,
209
+ responseType: prisca_v1_core_material_material_pb.SyncMaterialsToAccurateResponse,
210
+ requestSerialize: serialize_SyncMaterialsToAccurateRequest,
211
+ requestDeserialize: deserialize_SyncMaterialsToAccurateRequest,
212
+ responseSerialize: serialize_SyncMaterialsToAccurateResponse,
213
+ responseDeserialize: deserialize_SyncMaterialsToAccurateResponse,
214
+ },
182
215
  };
183
216
 
184
217
  exports.MaterialServiceClient = grpc.makeGenericClientConstructor(MaterialServiceService, 'MaterialService');