@aldiokta/protocgen 1.1.63 → 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.
@@ -19,8 +19,6 @@ var prisca_v1_global_meta_meta_pb = require('../../../prisca/v1/global/meta/meta
19
19
  goog.object.extend(proto, prisca_v1_global_meta_meta_pb);
20
20
  var prisca_v1_core_transaction_builder_transaction_builder_pb = require('../../../prisca/v1/core/transaction_builder/transaction_builder_pb.js');
21
21
  goog.object.extend(proto, prisca_v1_core_transaction_builder_transaction_builder_pb);
22
- var prisca_v1_document_type_document_type_pb = require('../../../prisca/v1/document_type/document_type_pb.js');
23
- goog.object.extend(proto, prisca_v1_document_type_document_type_pb);
24
22
  var prisca_v1_core_employee_employee_pb = require('../../../prisca/v1/core/employee/employee_pb.js');
25
23
  goog.object.extend(proto, prisca_v1_core_employee_employee_pb);
26
24
  var prisca_v1_core_file_upload_file_upload_pb = require('../../../prisca/v1/core/file_upload/file_upload_pb.js');
@@ -1146,9 +1144,8 @@ groupReferences: jspb.Message.getFieldWithDefault(msg, 16, ""),
1146
1144
  isExpired: jspb.Message.getBooleanFieldWithDefault(msg, 17, false),
1147
1145
  createdAt: jspb.Message.getFieldWithDefault(msg, 18, ""),
1148
1146
  updatedAt: jspb.Message.getFieldWithDefault(msg, 19, ""),
1149
- documentTypeRef: jspb.Message.getFieldWithDefault(msg, 20, ""),
1147
+ documentType: jspb.Message.getFieldWithDefault(msg, 20, ""),
1150
1148
  numberRangeSequence: jspb.Message.getFieldWithDefault(msg, 21, ""),
1151
- documentType: (f = msg.getDocumentType()) && prisca_v1_document_type_document_type_pb.DocumentType.toObject(includeInstance, f),
1152
1149
  status: jspb.Message.getFieldWithDefault(msg, 23, ""),
1153
1150
  createdBy: jspb.Message.getFieldWithDefault(msg, 24, ""),
1154
1151
  updatedBy: jspb.Message.getFieldWithDefault(msg, 25, ""),
@@ -1273,17 +1270,12 @@ proto.PurchaseRequisitionTrx.deserializeBinaryFromReader = function(msg, reader)
1273
1270
  break;
1274
1271
  case 20:
1275
1272
  var value = /** @type {string} */ (reader.readStringRequireUtf8());
1276
- msg.setDocumentTypeRef(value);
1273
+ msg.setDocumentType(value);
1277
1274
  break;
1278
1275
  case 21:
1279
1276
  var value = /** @type {string} */ (reader.readStringRequireUtf8());
1280
1277
  msg.setNumberRangeSequence(value);
1281
1278
  break;
1282
- case 22:
1283
- var value = new prisca_v1_document_type_document_type_pb.DocumentType;
1284
- reader.readMessage(value,prisca_v1_document_type_document_type_pb.DocumentType.deserializeBinaryFromReader);
1285
- msg.setDocumentType(value);
1286
- break;
1287
1279
  case 23:
1288
1280
  var value = /** @type {string} */ (reader.readStringRequireUtf8());
1289
1281
  msg.setStatus(value);
@@ -1482,7 +1474,7 @@ proto.PurchaseRequisitionTrx.serializeBinaryToWriter = function(message, writer)
1482
1474
  f
1483
1475
  );
1484
1476
  }
1485
- f = message.getDocumentTypeRef();
1477
+ f = message.getDocumentType();
1486
1478
  if (f.length > 0) {
1487
1479
  writer.writeString(
1488
1480
  20,
@@ -1496,14 +1488,6 @@ proto.PurchaseRequisitionTrx.serializeBinaryToWriter = function(message, writer)
1496
1488
  f
1497
1489
  );
1498
1490
  }
1499
- f = message.getDocumentType();
1500
- if (f != null) {
1501
- writer.writeMessage(
1502
- 22,
1503
- f,
1504
- prisca_v1_document_type_document_type_pb.DocumentType.serializeBinaryToWriter
1505
- );
1506
- }
1507
1491
  f = message.getStatus();
1508
1492
  if (f.length > 0) {
1509
1493
  writer.writeString(
@@ -1929,10 +1913,10 @@ proto.PurchaseRequisitionTrx.prototype.setUpdatedAt = function(value) {
1929
1913
 
1930
1914
 
1931
1915
  /**
1932
- * optional string document_type_ref = 20;
1916
+ * optional string document_type = 20;
1933
1917
  * @return {string}
1934
1918
  */
1935
- proto.PurchaseRequisitionTrx.prototype.getDocumentTypeRef = function() {
1919
+ proto.PurchaseRequisitionTrx.prototype.getDocumentType = function() {
1936
1920
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 20, ""));
1937
1921
  };
1938
1922
 
@@ -1941,7 +1925,7 @@ proto.PurchaseRequisitionTrx.prototype.getDocumentTypeRef = function() {
1941
1925
  * @param {string} value
1942
1926
  * @return {!proto.PurchaseRequisitionTrx} returns this
1943
1927
  */
1944
- proto.PurchaseRequisitionTrx.prototype.setDocumentTypeRef = function(value) {
1928
+ proto.PurchaseRequisitionTrx.prototype.setDocumentType = function(value) {
1945
1929
  return jspb.Message.setProto3StringField(this, 20, value);
1946
1930
  };
1947
1931
 
@@ -1964,43 +1948,6 @@ proto.PurchaseRequisitionTrx.prototype.setNumberRangeSequence = function(value)
1964
1948
  };
1965
1949
 
1966
1950
 
1967
- /**
1968
- * optional DocumentType document_type = 22;
1969
- * @return {?proto.DocumentType}
1970
- */
1971
- proto.PurchaseRequisitionTrx.prototype.getDocumentType = function() {
1972
- return /** @type{?proto.DocumentType} */ (
1973
- jspb.Message.getWrapperField(this, prisca_v1_document_type_document_type_pb.DocumentType, 22));
1974
- };
1975
-
1976
-
1977
- /**
1978
- * @param {?proto.DocumentType|undefined} value
1979
- * @return {!proto.PurchaseRequisitionTrx} returns this
1980
- */
1981
- proto.PurchaseRequisitionTrx.prototype.setDocumentType = function(value) {
1982
- return jspb.Message.setWrapperField(this, 22, value);
1983
- };
1984
-
1985
-
1986
- /**
1987
- * Clears the message field making it undefined.
1988
- * @return {!proto.PurchaseRequisitionTrx} returns this
1989
- */
1990
- proto.PurchaseRequisitionTrx.prototype.clearDocumentType = function() {
1991
- return this.setDocumentType(undefined);
1992
- };
1993
-
1994
-
1995
- /**
1996
- * Returns whether this field is set.
1997
- * @return {boolean}
1998
- */
1999
- proto.PurchaseRequisitionTrx.prototype.hasDocumentType = function() {
2000
- return jspb.Message.getField(this, 22) != null;
2001
- };
2002
-
2003
-
2004
1951
  /**
2005
1952
  * optional string status = 23;
2006
1953
  * @return {string}
@@ -2256,7 +2203,7 @@ purchasingGroup: jspb.Message.getFieldWithDefault(msg, 11, ""),
2256
2203
  customTransaction: jspb.Message.getFieldWithDefault(msg, 12, ""),
2257
2204
  itemTransactionsList: jspb.Message.toObjectList(msg.getItemTransactionsList(),
2258
2205
  prisca_v1_core_item_transaction_item_transaction_pb.BaseItemTransaction.toObject, includeInstance),
2259
- documentTypeRef: jspb.Message.getFieldWithDefault(msg, 14, ""),
2206
+ documentType: jspb.Message.getFieldWithDefault(msg, 14, ""),
2260
2207
  companiesReferencesId: jspb.Message.getFieldWithDefault(msg, 15, ""),
2261
2208
  status: jspb.Message.getFieldWithDefault(msg, 16, ""),
2262
2209
  justification: jspb.Message.getFieldWithDefault(msg, 17, ""),
@@ -2354,7 +2301,7 @@ proto.BasePurchaseRequisitionTrx.deserializeBinaryFromReader = function(msg, rea
2354
2301
  break;
2355
2302
  case 14:
2356
2303
  var value = /** @type {string} */ (reader.readStringRequireUtf8());
2357
- msg.setDocumentTypeRef(value);
2304
+ msg.setDocumentType(value);
2358
2305
  break;
2359
2306
  case 15:
2360
2307
  var value = /** @type {string} */ (reader.readStringRequireUtf8());
@@ -2498,7 +2445,7 @@ proto.BasePurchaseRequisitionTrx.serializeBinaryToWriter = function(message, wri
2498
2445
  prisca_v1_core_item_transaction_item_transaction_pb.BaseItemTransaction.serializeBinaryToWriter
2499
2446
  );
2500
2447
  }
2501
- f = message.getDocumentTypeRef();
2448
+ f = message.getDocumentType();
2502
2449
  if (f.length > 0) {
2503
2450
  writer.writeString(
2504
2451
  14,
@@ -2799,10 +2746,10 @@ proto.BasePurchaseRequisitionTrx.prototype.clearItemTransactionsList = function(
2799
2746
 
2800
2747
 
2801
2748
  /**
2802
- * optional string document_type_ref = 14;
2749
+ * optional string document_type = 14;
2803
2750
  * @return {string}
2804
2751
  */
2805
- proto.BasePurchaseRequisitionTrx.prototype.getDocumentTypeRef = function() {
2752
+ proto.BasePurchaseRequisitionTrx.prototype.getDocumentType = function() {
2806
2753
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, ""));
2807
2754
  };
2808
2755
 
@@ -2811,7 +2758,7 @@ proto.BasePurchaseRequisitionTrx.prototype.getDocumentTypeRef = function() {
2811
2758
  * @param {string} value
2812
2759
  * @return {!proto.BasePurchaseRequisitionTrx} returns this
2813
2760
  */
2814
- proto.BasePurchaseRequisitionTrx.prototype.setDocumentTypeRef = function(value) {
2761
+ proto.BasePurchaseRequisitionTrx.prototype.setDocumentType = function(value) {
2815
2762
  return jspb.Message.setProto3StringField(this, 14, value);
2816
2763
  };
2817
2764
 
@@ -2979,7 +2926,7 @@ purchasingGroup: jspb.Message.getFieldWithDefault(msg, 11, ""),
2979
2926
  customTransaction: jspb.Message.getFieldWithDefault(msg, 12, ""),
2980
2927
  itemTransactionsList: jspb.Message.toObjectList(msg.getItemTransactionsList(),
2981
2928
  prisca_v1_core_item_transaction_item_transaction_pb.BaseItemTransaction.toObject, includeInstance),
2982
- documentTypeRef: jspb.Message.getFieldWithDefault(msg, 14, ""),
2929
+ documentType: jspb.Message.getFieldWithDefault(msg, 14, ""),
2983
2930
  status: jspb.Message.getFieldWithDefault(msg, 15, ""),
2984
2931
  groupReferences: jspb.Message.getFieldWithDefault(msg, 16, ""),
2985
2932
  referencesId: jspb.Message.getFieldWithDefault(msg, 17, ""),
@@ -3079,7 +3026,7 @@ proto.BaseUpdatePurchaseRequisitionTrx.deserializeBinaryFromReader = function(ms
3079
3026
  break;
3080
3027
  case 14:
3081
3028
  var value = /** @type {string} */ (reader.readStringRequireUtf8());
3082
- msg.setDocumentTypeRef(value);
3029
+ msg.setDocumentType(value);
3083
3030
  break;
3084
3031
  case 15:
3085
3032
  var value = /** @type {string} */ (reader.readStringRequireUtf8());
@@ -3231,7 +3178,7 @@ proto.BaseUpdatePurchaseRequisitionTrx.serializeBinaryToWriter = function(messag
3231
3178
  prisca_v1_core_item_transaction_item_transaction_pb.BaseItemTransaction.serializeBinaryToWriter
3232
3179
  );
3233
3180
  }
3234
- f = message.getDocumentTypeRef();
3181
+ f = message.getDocumentType();
3235
3182
  if (f.length > 0) {
3236
3183
  writer.writeString(
3237
3184
  14,
@@ -3546,10 +3493,10 @@ proto.BaseUpdatePurchaseRequisitionTrx.prototype.clearItemTransactionsList = fun
3546
3493
 
3547
3494
 
3548
3495
  /**
3549
- * optional string document_type_ref = 14;
3496
+ * optional string document_type = 14;
3550
3497
  * @return {string}
3551
3498
  */
3552
- proto.BaseUpdatePurchaseRequisitionTrx.prototype.getDocumentTypeRef = function() {
3499
+ proto.BaseUpdatePurchaseRequisitionTrx.prototype.getDocumentType = function() {
3553
3500
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, ""));
3554
3501
  };
3555
3502
 
@@ -3558,7 +3505,7 @@ proto.BaseUpdatePurchaseRequisitionTrx.prototype.getDocumentTypeRef = function()
3558
3505
  * @param {string} value
3559
3506
  * @return {!proto.BaseUpdatePurchaseRequisitionTrx} returns this
3560
3507
  */
3561
- proto.BaseUpdatePurchaseRequisitionTrx.prototype.setDocumentTypeRef = function(value) {
3508
+ proto.BaseUpdatePurchaseRequisitionTrx.prototype.setDocumentType = function(value) {
3562
3509
  return jspb.Message.setProto3StringField(this, 14, value);
3563
3510
  };
3564
3511
 
@@ -68,6 +68,28 @@ function deserialize_GetQuotationDetailResponse(buffer_arg) {
68
68
  return prisca_v1_quotation_quotation_pb.GetQuotationDetailResponse.deserializeBinary(new Uint8Array(buffer_arg));
69
69
  }
70
70
 
71
+ function serialize_SetJustificationRequest(arg) {
72
+ if (!(arg instanceof prisca_v1_quotation_quotation_pb.SetJustificationRequest)) {
73
+ throw new Error('Expected argument of type SetJustificationRequest');
74
+ }
75
+ return Buffer.from(arg.serializeBinary());
76
+ }
77
+
78
+ function deserialize_SetJustificationRequest(buffer_arg) {
79
+ return prisca_v1_quotation_quotation_pb.SetJustificationRequest.deserializeBinary(new Uint8Array(buffer_arg));
80
+ }
81
+
82
+ function serialize_SetJustificationResponse(arg) {
83
+ if (!(arg instanceof prisca_v1_quotation_quotation_pb.SetJustificationResponse)) {
84
+ throw new Error('Expected argument of type SetJustificationResponse');
85
+ }
86
+ return Buffer.from(arg.serializeBinary());
87
+ }
88
+
89
+ function deserialize_SetJustificationResponse(buffer_arg) {
90
+ return prisca_v1_quotation_quotation_pb.SetJustificationResponse.deserializeBinary(new Uint8Array(buffer_arg));
91
+ }
92
+
71
93
  function serialize_SetQuotationRequest(arg) {
72
94
  if (!(arg instanceof prisca_v1_quotation_quotation_pb.SetQuotationRequest)) {
73
95
  throw new Error('Expected argument of type SetQuotationRequest');
@@ -235,6 +257,17 @@ var QuotationServiceService = exports.QuotationServiceService = {
235
257
  responseSerialize: serialize_SetVisibleResponse,
236
258
  responseDeserialize: deserialize_SetVisibleResponse,
237
259
  },
260
+ setJustification: {
261
+ path: '/QuotationService/SetJustification',
262
+ requestStream: false,
263
+ responseStream: false,
264
+ requestType: prisca_v1_quotation_quotation_pb.SetJustificationRequest,
265
+ responseType: prisca_v1_quotation_quotation_pb.SetJustificationResponse,
266
+ requestSerialize: serialize_SetJustificationRequest,
267
+ requestDeserialize: deserialize_SetJustificationRequest,
268
+ responseSerialize: serialize_SetJustificationResponse,
269
+ responseDeserialize: deserialize_SetJustificationResponse,
270
+ },
238
271
  };
239
272
 
240
273
  exports.QuotationServiceClient = grpc.makeGenericClientConstructor(QuotationServiceService, 'QuotationService');