@aldiokta/protocgen 1.1.33 → 1.1.34

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aldiokta/protocgen",
3
- "version": "1.1.33",
3
+ "version": "1.1.34",
4
4
  "description": "protocgen js generated for products v2",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -745,7 +745,8 @@ changeType: jspb.Message.getFieldWithDefault(msg, 3, ""),
745
745
  description: jspb.Message.getFieldWithDefault(msg, 4, ""),
746
746
  employees: jspb.Message.getFieldWithDefault(msg, 5, ""),
747
747
  createdAt: jspb.Message.getFieldWithDefault(msg, 6, ""),
748
- updatedAt: jspb.Message.getFieldWithDefault(msg, 7, "")
748
+ updatedAt: jspb.Message.getFieldWithDefault(msg, 7, ""),
749
+ subkey: jspb.Message.getFieldWithDefault(msg, 8, "")
749
750
  };
750
751
 
751
752
  if (includeInstance) {
@@ -810,6 +811,10 @@ proto.Activity.deserializeBinaryFromReader = function(msg, reader) {
810
811
  var value = /** @type {string} */ (reader.readStringRequireUtf8());
811
812
  msg.setUpdatedAt(value);
812
813
  break;
814
+ case 8:
815
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
816
+ msg.setSubkey(value);
817
+ break;
813
818
  default:
814
819
  reader.skipField();
815
820
  break;
@@ -888,6 +893,13 @@ proto.Activity.serializeBinaryToWriter = function(message, writer) {
888
893
  f
889
894
  );
890
895
  }
896
+ f = message.getSubkey();
897
+ if (f.length > 0) {
898
+ writer.writeString(
899
+ 8,
900
+ f
901
+ );
902
+ }
891
903
  };
892
904
 
893
905
 
@@ -1017,6 +1029,24 @@ proto.Activity.prototype.setUpdatedAt = function(value) {
1017
1029
  };
1018
1030
 
1019
1031
 
1032
+ /**
1033
+ * optional string subkey = 8;
1034
+ * @return {string}
1035
+ */
1036
+ proto.Activity.prototype.getSubkey = function() {
1037
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
1038
+ };
1039
+
1040
+
1041
+ /**
1042
+ * @param {string} value
1043
+ * @return {!proto.Activity} returns this
1044
+ */
1045
+ proto.Activity.prototype.setSubkey = function(value) {
1046
+ return jspb.Message.setProto3StringField(this, 8, value);
1047
+ };
1048
+
1049
+
1020
1050
 
1021
1051
 
1022
1052
 
@@ -372,7 +372,8 @@ employees: (f = msg.getEmployees()) && prisca_v1_core_employee_employee_pb.Emplo
372
372
  approvalNote: jspb.Message.getFieldWithDefault(msg, 11, ""),
373
373
  companiesReferencesId: jspb.Message.getFieldWithDefault(msg, 12, ""),
374
374
  groupReference: jspb.Message.getFieldWithDefault(msg, 13, ""),
375
- sequence: jspb.Message.getFieldWithDefault(msg, 14, 0)
375
+ sequence: jspb.Message.getFieldWithDefault(msg, 14, 0),
376
+ editAccess: jspb.Message.getFieldWithDefault(msg, 15, "")
376
377
  };
377
378
 
378
379
  if (includeInstance) {
@@ -466,6 +467,10 @@ proto.LineOfApproval.deserializeBinaryFromReader = function(msg, reader) {
466
467
  var value = /** @type {number} */ (reader.readInt32());
467
468
  msg.setSequence(value);
468
469
  break;
470
+ case 15:
471
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
472
+ msg.setEditAccess(value);
473
+ break;
469
474
  default:
470
475
  reader.skipField();
471
476
  break;
@@ -594,6 +599,13 @@ proto.LineOfApproval.serializeBinaryToWriter = function(message, writer) {
594
599
  f
595
600
  );
596
601
  }
602
+ f = message.getEditAccess();
603
+ if (f.length > 0) {
604
+ writer.writeString(
605
+ 15,
606
+ f
607
+ );
608
+ }
597
609
  };
598
610
 
599
611
 
@@ -868,6 +880,24 @@ proto.LineOfApproval.prototype.setSequence = function(value) {
868
880
  };
869
881
 
870
882
 
883
+ /**
884
+ * optional string edit_access = 15;
885
+ * @return {string}
886
+ */
887
+ proto.LineOfApproval.prototype.getEditAccess = function() {
888
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, ""));
889
+ };
890
+
891
+
892
+ /**
893
+ * @param {string} value
894
+ * @return {!proto.LineOfApproval} returns this
895
+ */
896
+ proto.LineOfApproval.prototype.setEditAccess = function(value) {
897
+ return jspb.Message.setProto3StringField(this, 15, value);
898
+ };
899
+
900
+
871
901
 
872
902
 
873
903
 
@@ -2041,7 +2041,8 @@ workflowConditionList: jspb.Message.toObjectList(msg.getWorkflowConditionList(),
2041
2041
  proto.WorkflowCondition.toObject, includeInstance),
2042
2042
  rolesRefId: jspb.Message.getFieldWithDefault(msg, 17, 0),
2043
2043
  roles: (f = msg.getRoles()) && prisca_v1_core_recipient_roles_recipient_roles_pb.RecipientRoles.toObject(includeInstance, f),
2044
- workflowStepsRecipients: (f = msg.getWorkflowStepsRecipients()) && proto.WorkflowStepsRecipients.toObject(includeInstance, f)
2044
+ workflowStepsRecipients: (f = msg.getWorkflowStepsRecipients()) && proto.WorkflowStepsRecipients.toObject(includeInstance, f),
2045
+ editAccess: jspb.Message.getFieldWithDefault(msg, 20, "")
2045
2046
  };
2046
2047
 
2047
2048
  if (includeInstance) {
@@ -2158,6 +2159,10 @@ proto.WorkflowSteps.deserializeBinaryFromReader = function(msg, reader) {
2158
2159
  reader.readMessage(value,proto.WorkflowStepsRecipients.deserializeBinaryFromReader);
2159
2160
  msg.setWorkflowStepsRecipients(value);
2160
2161
  break;
2162
+ case 20:
2163
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
2164
+ msg.setEditAccess(value);
2165
+ break;
2161
2166
  default:
2162
2167
  reader.skipField();
2163
2168
  break;
@@ -2324,6 +2329,13 @@ proto.WorkflowSteps.serializeBinaryToWriter = function(message, writer) {
2324
2329
  proto.WorkflowStepsRecipients.serializeBinaryToWriter
2325
2330
  );
2326
2331
  }
2332
+ f = message.getEditAccess();
2333
+ if (f.length > 0) {
2334
+ writer.writeString(
2335
+ 20,
2336
+ f
2337
+ );
2338
+ }
2327
2339
  };
2328
2340
 
2329
2341
 
@@ -2747,6 +2759,24 @@ proto.WorkflowSteps.prototype.hasWorkflowStepsRecipients = function() {
2747
2759
  };
2748
2760
 
2749
2761
 
2762
+ /**
2763
+ * optional string edit_access = 20;
2764
+ * @return {string}
2765
+ */
2766
+ proto.WorkflowSteps.prototype.getEditAccess = function() {
2767
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 20, ""));
2768
+ };
2769
+
2770
+
2771
+ /**
2772
+ * @param {string} value
2773
+ * @return {!proto.WorkflowSteps} returns this
2774
+ */
2775
+ proto.WorkflowSteps.prototype.setEditAccess = function(value) {
2776
+ return jspb.Message.setProto3StringField(this, 20, value);
2777
+ };
2778
+
2779
+
2750
2780
 
2751
2781
 
2752
2782
 
@@ -4810,7 +4840,8 @@ deadlinesList: jspb.Message.toObjectList(msg.getDeadlinesList(),
4810
4840
  workflowConditionList: jspb.Message.toObjectList(msg.getWorkflowConditionList(),
4811
4841
  proto.BaseWorkflowConditionRequest.toObject, includeInstance),
4812
4842
  workflowStepsRecipients: (f = msg.getWorkflowStepsRecipients()) && proto.BaseWorkflowStepsRecipientRequest.toObject(includeInstance, f),
4813
- rolesRefId: jspb.Message.getFieldWithDefault(msg, 16, 0)
4843
+ rolesRefId: jspb.Message.getFieldWithDefault(msg, 16, 0),
4844
+ editAccess: jspb.Message.getFieldWithDefault(msg, 17, "")
4814
4845
  };
4815
4846
 
4816
4847
  if (includeInstance) {
@@ -4902,6 +4933,10 @@ proto.BaseWorkflowStepsRequest.deserializeBinaryFromReader = function(msg, reade
4902
4933
  var value = /** @type {number} */ (reader.readInt32());
4903
4934
  msg.setRolesRefId(value);
4904
4935
  break;
4936
+ case 17:
4937
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
4938
+ msg.setEditAccess(value);
4939
+ break;
4905
4940
  default:
4906
4941
  reader.skipField();
4907
4942
  break;
@@ -5025,6 +5060,13 @@ proto.BaseWorkflowStepsRequest.serializeBinaryToWriter = function(message, write
5025
5060
  f
5026
5061
  );
5027
5062
  }
5063
+ f = message.getEditAccess();
5064
+ if (f.length > 0) {
5065
+ writer.writeString(
5066
+ 17,
5067
+ f
5068
+ );
5069
+ }
5028
5070
  };
5029
5071
 
5030
5072
 
@@ -5321,6 +5363,24 @@ proto.BaseWorkflowStepsRequest.prototype.setRolesRefId = function(value) {
5321
5363
  };
5322
5364
 
5323
5365
 
5366
+ /**
5367
+ * optional string edit_access = 17;
5368
+ * @return {string}
5369
+ */
5370
+ proto.BaseWorkflowStepsRequest.prototype.getEditAccess = function() {
5371
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 17, ""));
5372
+ };
5373
+
5374
+
5375
+ /**
5376
+ * @param {string} value
5377
+ * @return {!proto.BaseWorkflowStepsRequest} returns this
5378
+ */
5379
+ proto.BaseWorkflowStepsRequest.prototype.setEditAccess = function(value) {
5380
+ return jspb.Message.setProto3StringField(this, 17, value);
5381
+ };
5382
+
5383
+
5324
5384
 
5325
5385
  /**
5326
5386
  * List of repeated fields within this message type.
@@ -90,6 +90,17 @@ function deserialize_GetListInvoiceRes(buffer_arg) {
90
90
  return prisca_v1_invoice_invoice_pb.GetListInvoiceRes.deserializeBinary(new Uint8Array(buffer_arg));
91
91
  }
92
92
 
93
+ function serialize_UpdateInvoiceForCompanyReq(arg) {
94
+ if (!(arg instanceof prisca_v1_invoice_invoice_pb.UpdateInvoiceForCompanyReq)) {
95
+ throw new Error('Expected argument of type UpdateInvoiceForCompanyReq');
96
+ }
97
+ return Buffer.from(arg.serializeBinary());
98
+ }
99
+
100
+ function deserialize_UpdateInvoiceForCompanyReq(buffer_arg) {
101
+ return prisca_v1_invoice_invoice_pb.UpdateInvoiceForCompanyReq.deserializeBinary(new Uint8Array(buffer_arg));
102
+ }
103
+
93
104
  function serialize_UpdateInvoiceReq(arg) {
94
105
  if (!(arg instanceof prisca_v1_invoice_invoice_pb.UpdateInvoiceReq)) {
95
106
  throw new Error('Expected argument of type UpdateInvoiceReq');
@@ -112,6 +123,17 @@ function deserialize_UpdateInvoiceRes(buffer_arg) {
112
123
  return prisca_v1_invoice_invoice_pb.UpdateInvoiceRes.deserializeBinary(new Uint8Array(buffer_arg));
113
124
  }
114
125
 
126
+ function serialize_UpdateInvoiceStatusReq(arg) {
127
+ if (!(arg instanceof prisca_v1_invoice_invoice_pb.UpdateInvoiceStatusReq)) {
128
+ throw new Error('Expected argument of type UpdateInvoiceStatusReq');
129
+ }
130
+ return Buffer.from(arg.serializeBinary());
131
+ }
132
+
133
+ function deserialize_UpdateInvoiceStatusReq(buffer_arg) {
134
+ return prisca_v1_invoice_invoice_pb.UpdateInvoiceStatusReq.deserializeBinary(new Uint8Array(buffer_arg));
135
+ }
136
+
115
137
 
116
138
  var InvoiceServiceService = exports.InvoiceServiceService = {
117
139
  createInvoice: {
@@ -136,6 +158,28 @@ var InvoiceServiceService = exports.InvoiceServiceService = {
136
158
  responseSerialize: serialize_UpdateInvoiceRes,
137
159
  responseDeserialize: deserialize_UpdateInvoiceRes,
138
160
  },
161
+ updateInvoiceForCompany: {
162
+ path: '/InvoiceService/UpdateInvoiceForCompany',
163
+ requestStream: false,
164
+ responseStream: false,
165
+ requestType: prisca_v1_invoice_invoice_pb.UpdateInvoiceForCompanyReq,
166
+ responseType: prisca_v1_invoice_invoice_pb.UpdateInvoiceRes,
167
+ requestSerialize: serialize_UpdateInvoiceForCompanyReq,
168
+ requestDeserialize: deserialize_UpdateInvoiceForCompanyReq,
169
+ responseSerialize: serialize_UpdateInvoiceRes,
170
+ responseDeserialize: deserialize_UpdateInvoiceRes,
171
+ },
172
+ updateInvoiceStatus: {
173
+ path: '/InvoiceService/UpdateInvoiceStatus',
174
+ requestStream: false,
175
+ responseStream: false,
176
+ requestType: prisca_v1_invoice_invoice_pb.UpdateInvoiceStatusReq,
177
+ responseType: prisca_v1_invoice_invoice_pb.UpdateInvoiceRes,
178
+ requestSerialize: serialize_UpdateInvoiceStatusReq,
179
+ requestDeserialize: deserialize_UpdateInvoiceStatusReq,
180
+ responseSerialize: serialize_UpdateInvoiceRes,
181
+ responseDeserialize: deserialize_UpdateInvoiceRes,
182
+ },
139
183
  getInvoiceById: {
140
184
  path: '/InvoiceService/GetInvoiceById',
141
185
  requestStream: false,
@@ -46,8 +46,10 @@ goog.exportSymbol('proto.GetListInvoiceRes', null, global);
46
46
  goog.exportSymbol('proto.ItemGoodReceipt', null, global);
47
47
  goog.exportSymbol('proto.ItemInvoiceReference', null, global);
48
48
  goog.exportSymbol('proto.ItemPurchaseOrder', null, global);
49
+ goog.exportSymbol('proto.UpdateInvoiceForCompanyReq', null, global);
49
50
  goog.exportSymbol('proto.UpdateInvoiceReq', null, global);
50
51
  goog.exportSymbol('proto.UpdateInvoiceRes', null, global);
52
+ goog.exportSymbol('proto.UpdateInvoiceStatusReq', null, global);
51
53
  /**
52
54
  * Generated by JsPbCodeGenerator.
53
55
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -111,6 +113,27 @@ if (goog.DEBUG && !COMPILED) {
111
113
  */
112
114
  proto.CreateInvoiceRes.displayName = 'proto.CreateInvoiceRes';
113
115
  }
116
+ /**
117
+ * Generated by JsPbCodeGenerator.
118
+ * @param {Array=} opt_data Optional initial data array, typically from a
119
+ * server response, or constructed directly in Javascript. The array is used
120
+ * in place and becomes part of the constructed object. It is not cloned.
121
+ * If no data is provided, the constructed object will be empty, but still
122
+ * valid.
123
+ * @extends {jspb.Message}
124
+ * @constructor
125
+ */
126
+ proto.UpdateInvoiceForCompanyReq = function(opt_data) {
127
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.UpdateInvoiceForCompanyReq.repeatedFields_, null);
128
+ };
129
+ goog.inherits(proto.UpdateInvoiceForCompanyReq, jspb.Message);
130
+ if (goog.DEBUG && !COMPILED) {
131
+ /**
132
+ * @public
133
+ * @override
134
+ */
135
+ proto.UpdateInvoiceForCompanyReq.displayName = 'proto.UpdateInvoiceForCompanyReq';
136
+ }
114
137
  /**
115
138
  * Generated by JsPbCodeGenerator.
116
139
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -132,6 +155,27 @@ if (goog.DEBUG && !COMPILED) {
132
155
  */
133
156
  proto.UpdateInvoiceReq.displayName = 'proto.UpdateInvoiceReq';
134
157
  }
158
+ /**
159
+ * Generated by JsPbCodeGenerator.
160
+ * @param {Array=} opt_data Optional initial data array, typically from a
161
+ * server response, or constructed directly in Javascript. The array is used
162
+ * in place and becomes part of the constructed object. It is not cloned.
163
+ * If no data is provided, the constructed object will be empty, but still
164
+ * valid.
165
+ * @extends {jspb.Message}
166
+ * @constructor
167
+ */
168
+ proto.UpdateInvoiceStatusReq = function(opt_data) {
169
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
170
+ };
171
+ goog.inherits(proto.UpdateInvoiceStatusReq, jspb.Message);
172
+ if (goog.DEBUG && !COMPILED) {
173
+ /**
174
+ * @public
175
+ * @override
176
+ */
177
+ proto.UpdateInvoiceStatusReq.displayName = 'proto.UpdateInvoiceStatusReq';
178
+ }
135
179
  /**
136
180
  * Generated by JsPbCodeGenerator.
137
181
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -1343,6 +1387,256 @@ proto.CreateInvoiceRes.prototype.hasMeta = function() {
1343
1387
 
1344
1388
 
1345
1389
 
1390
+ /**
1391
+ * List of repeated fields within this message type.
1392
+ * @private {!Array<number>}
1393
+ * @const
1394
+ */
1395
+ proto.UpdateInvoiceForCompanyReq.repeatedFields_ = [4];
1396
+
1397
+
1398
+
1399
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1400
+ /**
1401
+ * Creates an object representation of this proto.
1402
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1403
+ * Optional fields that are not set will be set to undefined.
1404
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1405
+ * For the list of reserved names please see:
1406
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1407
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1408
+ * JSPB instance for transitional soy proto support:
1409
+ * http://goto/soy-param-migration
1410
+ * @return {!Object}
1411
+ */
1412
+ proto.UpdateInvoiceForCompanyReq.prototype.toObject = function(opt_includeInstance) {
1413
+ return proto.UpdateInvoiceForCompanyReq.toObject(opt_includeInstance, this);
1414
+ };
1415
+
1416
+
1417
+ /**
1418
+ * Static version of the {@see toObject} method.
1419
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1420
+ * the JSPB instance for transitional soy proto support:
1421
+ * http://goto/soy-param-migration
1422
+ * @param {!proto.UpdateInvoiceForCompanyReq} msg The msg instance to transform.
1423
+ * @return {!Object}
1424
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1425
+ */
1426
+ proto.UpdateInvoiceForCompanyReq.toObject = function(includeInstance, msg) {
1427
+ var f, obj = {
1428
+ referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
1429
+ termOfPayment: jspb.Message.getFieldWithDefault(msg, 2, ""),
1430
+ dueDate: jspb.Message.getFieldWithDefault(msg, 3, ""),
1431
+ itemTransactionsList: jspb.Message.toObjectList(msg.getItemTransactionsList(),
1432
+ prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction.toObject, includeInstance)
1433
+ };
1434
+
1435
+ if (includeInstance) {
1436
+ obj.$jspbMessageInstance = msg;
1437
+ }
1438
+ return obj;
1439
+ };
1440
+ }
1441
+
1442
+
1443
+ /**
1444
+ * Deserializes binary data (in protobuf wire format).
1445
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1446
+ * @return {!proto.UpdateInvoiceForCompanyReq}
1447
+ */
1448
+ proto.UpdateInvoiceForCompanyReq.deserializeBinary = function(bytes) {
1449
+ var reader = new jspb.BinaryReader(bytes);
1450
+ var msg = new proto.UpdateInvoiceForCompanyReq;
1451
+ return proto.UpdateInvoiceForCompanyReq.deserializeBinaryFromReader(msg, reader);
1452
+ };
1453
+
1454
+
1455
+ /**
1456
+ * Deserializes binary data (in protobuf wire format) from the
1457
+ * given reader into the given message object.
1458
+ * @param {!proto.UpdateInvoiceForCompanyReq} msg The message object to deserialize into.
1459
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1460
+ * @return {!proto.UpdateInvoiceForCompanyReq}
1461
+ */
1462
+ proto.UpdateInvoiceForCompanyReq.deserializeBinaryFromReader = function(msg, reader) {
1463
+ while (reader.nextField()) {
1464
+ if (reader.isEndGroup()) {
1465
+ break;
1466
+ }
1467
+ var field = reader.getFieldNumber();
1468
+ switch (field) {
1469
+ case 1:
1470
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1471
+ msg.setReferencesId(value);
1472
+ break;
1473
+ case 2:
1474
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1475
+ msg.setTermOfPayment(value);
1476
+ break;
1477
+ case 3:
1478
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1479
+ msg.setDueDate(value);
1480
+ break;
1481
+ case 4:
1482
+ var value = new prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction;
1483
+ reader.readMessage(value,prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction.deserializeBinaryFromReader);
1484
+ msg.addItemTransactions(value);
1485
+ break;
1486
+ default:
1487
+ reader.skipField();
1488
+ break;
1489
+ }
1490
+ }
1491
+ return msg;
1492
+ };
1493
+
1494
+
1495
+ /**
1496
+ * Serializes the message to binary data (in protobuf wire format).
1497
+ * @return {!Uint8Array}
1498
+ */
1499
+ proto.UpdateInvoiceForCompanyReq.prototype.serializeBinary = function() {
1500
+ var writer = new jspb.BinaryWriter();
1501
+ proto.UpdateInvoiceForCompanyReq.serializeBinaryToWriter(this, writer);
1502
+ return writer.getResultBuffer();
1503
+ };
1504
+
1505
+
1506
+ /**
1507
+ * Serializes the given message to binary data (in protobuf wire
1508
+ * format), writing to the given BinaryWriter.
1509
+ * @param {!proto.UpdateInvoiceForCompanyReq} message
1510
+ * @param {!jspb.BinaryWriter} writer
1511
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1512
+ */
1513
+ proto.UpdateInvoiceForCompanyReq.serializeBinaryToWriter = function(message, writer) {
1514
+ var f = undefined;
1515
+ f = message.getReferencesId();
1516
+ if (f.length > 0) {
1517
+ writer.writeString(
1518
+ 1,
1519
+ f
1520
+ );
1521
+ }
1522
+ f = message.getTermOfPayment();
1523
+ if (f.length > 0) {
1524
+ writer.writeString(
1525
+ 2,
1526
+ f
1527
+ );
1528
+ }
1529
+ f = message.getDueDate();
1530
+ if (f.length > 0) {
1531
+ writer.writeString(
1532
+ 3,
1533
+ f
1534
+ );
1535
+ }
1536
+ f = message.getItemTransactionsList();
1537
+ if (f.length > 0) {
1538
+ writer.writeRepeatedMessage(
1539
+ 4,
1540
+ f,
1541
+ prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction.serializeBinaryToWriter
1542
+ );
1543
+ }
1544
+ };
1545
+
1546
+
1547
+ /**
1548
+ * optional string references_id = 1;
1549
+ * @return {string}
1550
+ */
1551
+ proto.UpdateInvoiceForCompanyReq.prototype.getReferencesId = function() {
1552
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1553
+ };
1554
+
1555
+
1556
+ /**
1557
+ * @param {string} value
1558
+ * @return {!proto.UpdateInvoiceForCompanyReq} returns this
1559
+ */
1560
+ proto.UpdateInvoiceForCompanyReq.prototype.setReferencesId = function(value) {
1561
+ return jspb.Message.setProto3StringField(this, 1, value);
1562
+ };
1563
+
1564
+
1565
+ /**
1566
+ * optional string term_of_payment = 2;
1567
+ * @return {string}
1568
+ */
1569
+ proto.UpdateInvoiceForCompanyReq.prototype.getTermOfPayment = function() {
1570
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1571
+ };
1572
+
1573
+
1574
+ /**
1575
+ * @param {string} value
1576
+ * @return {!proto.UpdateInvoiceForCompanyReq} returns this
1577
+ */
1578
+ proto.UpdateInvoiceForCompanyReq.prototype.setTermOfPayment = function(value) {
1579
+ return jspb.Message.setProto3StringField(this, 2, value);
1580
+ };
1581
+
1582
+
1583
+ /**
1584
+ * optional string due_date = 3;
1585
+ * @return {string}
1586
+ */
1587
+ proto.UpdateInvoiceForCompanyReq.prototype.getDueDate = function() {
1588
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1589
+ };
1590
+
1591
+
1592
+ /**
1593
+ * @param {string} value
1594
+ * @return {!proto.UpdateInvoiceForCompanyReq} returns this
1595
+ */
1596
+ proto.UpdateInvoiceForCompanyReq.prototype.setDueDate = function(value) {
1597
+ return jspb.Message.setProto3StringField(this, 3, value);
1598
+ };
1599
+
1600
+
1601
+ /**
1602
+ * repeated ItemTransaction item_transactions = 4;
1603
+ * @return {!Array<!proto.ItemTransaction>}
1604
+ */
1605
+ proto.UpdateInvoiceForCompanyReq.prototype.getItemTransactionsList = function() {
1606
+ return /** @type{!Array<!proto.ItemTransaction>} */ (
1607
+ jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction, 4));
1608
+ };
1609
+
1610
+
1611
+ /**
1612
+ * @param {!Array<!proto.ItemTransaction>} value
1613
+ * @return {!proto.UpdateInvoiceForCompanyReq} returns this
1614
+ */
1615
+ proto.UpdateInvoiceForCompanyReq.prototype.setItemTransactionsList = function(value) {
1616
+ return jspb.Message.setRepeatedWrapperField(this, 4, value);
1617
+ };
1618
+
1619
+
1620
+ /**
1621
+ * @param {!proto.ItemTransaction=} opt_value
1622
+ * @param {number=} opt_index
1623
+ * @return {!proto.ItemTransaction}
1624
+ */
1625
+ proto.UpdateInvoiceForCompanyReq.prototype.addItemTransactions = function(opt_value, opt_index) {
1626
+ return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.ItemTransaction, opt_index);
1627
+ };
1628
+
1629
+
1630
+ /**
1631
+ * Clears the list making it empty but non-null.
1632
+ * @return {!proto.UpdateInvoiceForCompanyReq} returns this
1633
+ */
1634
+ proto.UpdateInvoiceForCompanyReq.prototype.clearItemTransactionsList = function() {
1635
+ return this.setItemTransactionsList([]);
1636
+ };
1637
+
1638
+
1639
+
1346
1640
 
1347
1641
 
1348
1642
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -1526,6 +1820,166 @@ proto.UpdateInvoiceReq.prototype.hasBaseInvoice = function() {
1526
1820
 
1527
1821
 
1528
1822
 
1823
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1824
+ /**
1825
+ * Creates an object representation of this proto.
1826
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1827
+ * Optional fields that are not set will be set to undefined.
1828
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1829
+ * For the list of reserved names please see:
1830
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1831
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1832
+ * JSPB instance for transitional soy proto support:
1833
+ * http://goto/soy-param-migration
1834
+ * @return {!Object}
1835
+ */
1836
+ proto.UpdateInvoiceStatusReq.prototype.toObject = function(opt_includeInstance) {
1837
+ return proto.UpdateInvoiceStatusReq.toObject(opt_includeInstance, this);
1838
+ };
1839
+
1840
+
1841
+ /**
1842
+ * Static version of the {@see toObject} method.
1843
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1844
+ * the JSPB instance for transitional soy proto support:
1845
+ * http://goto/soy-param-migration
1846
+ * @param {!proto.UpdateInvoiceStatusReq} msg The msg instance to transform.
1847
+ * @return {!Object}
1848
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1849
+ */
1850
+ proto.UpdateInvoiceStatusReq.toObject = function(includeInstance, msg) {
1851
+ var f, obj = {
1852
+ status: jspb.Message.getFieldWithDefault(msg, 1, ""),
1853
+ referencesId: jspb.Message.getFieldWithDefault(msg, 2, "")
1854
+ };
1855
+
1856
+ if (includeInstance) {
1857
+ obj.$jspbMessageInstance = msg;
1858
+ }
1859
+ return obj;
1860
+ };
1861
+ }
1862
+
1863
+
1864
+ /**
1865
+ * Deserializes binary data (in protobuf wire format).
1866
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1867
+ * @return {!proto.UpdateInvoiceStatusReq}
1868
+ */
1869
+ proto.UpdateInvoiceStatusReq.deserializeBinary = function(bytes) {
1870
+ var reader = new jspb.BinaryReader(bytes);
1871
+ var msg = new proto.UpdateInvoiceStatusReq;
1872
+ return proto.UpdateInvoiceStatusReq.deserializeBinaryFromReader(msg, reader);
1873
+ };
1874
+
1875
+
1876
+ /**
1877
+ * Deserializes binary data (in protobuf wire format) from the
1878
+ * given reader into the given message object.
1879
+ * @param {!proto.UpdateInvoiceStatusReq} msg The message object to deserialize into.
1880
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1881
+ * @return {!proto.UpdateInvoiceStatusReq}
1882
+ */
1883
+ proto.UpdateInvoiceStatusReq.deserializeBinaryFromReader = function(msg, reader) {
1884
+ while (reader.nextField()) {
1885
+ if (reader.isEndGroup()) {
1886
+ break;
1887
+ }
1888
+ var field = reader.getFieldNumber();
1889
+ switch (field) {
1890
+ case 1:
1891
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1892
+ msg.setStatus(value);
1893
+ break;
1894
+ case 2:
1895
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1896
+ msg.setReferencesId(value);
1897
+ break;
1898
+ default:
1899
+ reader.skipField();
1900
+ break;
1901
+ }
1902
+ }
1903
+ return msg;
1904
+ };
1905
+
1906
+
1907
+ /**
1908
+ * Serializes the message to binary data (in protobuf wire format).
1909
+ * @return {!Uint8Array}
1910
+ */
1911
+ proto.UpdateInvoiceStatusReq.prototype.serializeBinary = function() {
1912
+ var writer = new jspb.BinaryWriter();
1913
+ proto.UpdateInvoiceStatusReq.serializeBinaryToWriter(this, writer);
1914
+ return writer.getResultBuffer();
1915
+ };
1916
+
1917
+
1918
+ /**
1919
+ * Serializes the given message to binary data (in protobuf wire
1920
+ * format), writing to the given BinaryWriter.
1921
+ * @param {!proto.UpdateInvoiceStatusReq} message
1922
+ * @param {!jspb.BinaryWriter} writer
1923
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1924
+ */
1925
+ proto.UpdateInvoiceStatusReq.serializeBinaryToWriter = function(message, writer) {
1926
+ var f = undefined;
1927
+ f = message.getStatus();
1928
+ if (f.length > 0) {
1929
+ writer.writeString(
1930
+ 1,
1931
+ f
1932
+ );
1933
+ }
1934
+ f = message.getReferencesId();
1935
+ if (f.length > 0) {
1936
+ writer.writeString(
1937
+ 2,
1938
+ f
1939
+ );
1940
+ }
1941
+ };
1942
+
1943
+
1944
+ /**
1945
+ * optional string status = 1;
1946
+ * @return {string}
1947
+ */
1948
+ proto.UpdateInvoiceStatusReq.prototype.getStatus = function() {
1949
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1950
+ };
1951
+
1952
+
1953
+ /**
1954
+ * @param {string} value
1955
+ * @return {!proto.UpdateInvoiceStatusReq} returns this
1956
+ */
1957
+ proto.UpdateInvoiceStatusReq.prototype.setStatus = function(value) {
1958
+ return jspb.Message.setProto3StringField(this, 1, value);
1959
+ };
1960
+
1961
+
1962
+ /**
1963
+ * optional string references_id = 2;
1964
+ * @return {string}
1965
+ */
1966
+ proto.UpdateInvoiceStatusReq.prototype.getReferencesId = function() {
1967
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1968
+ };
1969
+
1970
+
1971
+ /**
1972
+ * @param {string} value
1973
+ * @return {!proto.UpdateInvoiceStatusReq} returns this
1974
+ */
1975
+ proto.UpdateInvoiceStatusReq.prototype.setReferencesId = function(value) {
1976
+ return jspb.Message.setProto3StringField(this, 2, value);
1977
+ };
1978
+
1979
+
1980
+
1981
+
1982
+
1529
1983
  if (jspb.Message.GENERATE_TO_OBJECT) {
1530
1984
  /**
1531
1985
  * Creates an object representation of this proto.
@@ -4367,7 +4367,9 @@ purchaseRequisitionNumber: jspb.Message.getFieldWithDefault(msg, 40, ""),
4367
4367
  invoicesList: jspb.Message.toObjectList(msg.getInvoicesList(),
4368
4368
  proto.Invoice.toObject, includeInstance),
4369
4369
  goodReceiptsList: jspb.Message.toObjectList(msg.getGoodReceiptsList(),
4370
- proto.GoodReceipt.toObject, includeInstance)
4370
+ proto.GoodReceipt.toObject, includeInstance),
4371
+ documentType: (f = msg.getDocumentType()) && prisca_v1_document_type_document_type_pb.DocumentType.toObject(includeInstance, f),
4372
+ documentTypeReferences: jspb.Message.getFieldWithDefault(msg, 44, "")
4371
4373
  };
4372
4374
 
4373
4375
  if (includeInstance) {
@@ -4580,6 +4582,15 @@ proto.PurchaseOrder.deserializeBinaryFromReader = function(msg, reader) {
4580
4582
  reader.readMessage(value,proto.GoodReceipt.deserializeBinaryFromReader);
4581
4583
  msg.addGoodReceipts(value);
4582
4584
  break;
4585
+ case 43:
4586
+ var value = new prisca_v1_document_type_document_type_pb.DocumentType;
4587
+ reader.readMessage(value,prisca_v1_document_type_document_type_pb.DocumentType.deserializeBinaryFromReader);
4588
+ msg.setDocumentType(value);
4589
+ break;
4590
+ case 44:
4591
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
4592
+ msg.setDocumentTypeReferences(value);
4593
+ break;
4583
4594
  default:
4584
4595
  reader.skipField();
4585
4596
  break;
@@ -4911,6 +4922,21 @@ proto.PurchaseOrder.serializeBinaryToWriter = function(message, writer) {
4911
4922
  proto.GoodReceipt.serializeBinaryToWriter
4912
4923
  );
4913
4924
  }
4925
+ f = message.getDocumentType();
4926
+ if (f != null) {
4927
+ writer.writeMessage(
4928
+ 43,
4929
+ f,
4930
+ prisca_v1_document_type_document_type_pb.DocumentType.serializeBinaryToWriter
4931
+ );
4932
+ }
4933
+ f = message.getDocumentTypeReferences();
4934
+ if (f.length > 0) {
4935
+ writer.writeString(
4936
+ 44,
4937
+ f
4938
+ );
4939
+ }
4914
4940
  };
4915
4941
 
4916
4942
 
@@ -5826,6 +5852,61 @@ proto.PurchaseOrder.prototype.clearGoodReceiptsList = function() {
5826
5852
  };
5827
5853
 
5828
5854
 
5855
+ /**
5856
+ * optional DocumentType document_type = 43;
5857
+ * @return {?proto.DocumentType}
5858
+ */
5859
+ proto.PurchaseOrder.prototype.getDocumentType = function() {
5860
+ return /** @type{?proto.DocumentType} */ (
5861
+ jspb.Message.getWrapperField(this, prisca_v1_document_type_document_type_pb.DocumentType, 43));
5862
+ };
5863
+
5864
+
5865
+ /**
5866
+ * @param {?proto.DocumentType|undefined} value
5867
+ * @return {!proto.PurchaseOrder} returns this
5868
+ */
5869
+ proto.PurchaseOrder.prototype.setDocumentType = function(value) {
5870
+ return jspb.Message.setWrapperField(this, 43, value);
5871
+ };
5872
+
5873
+
5874
+ /**
5875
+ * Clears the message field making it undefined.
5876
+ * @return {!proto.PurchaseOrder} returns this
5877
+ */
5878
+ proto.PurchaseOrder.prototype.clearDocumentType = function() {
5879
+ return this.setDocumentType(undefined);
5880
+ };
5881
+
5882
+
5883
+ /**
5884
+ * Returns whether this field is set.
5885
+ * @return {boolean}
5886
+ */
5887
+ proto.PurchaseOrder.prototype.hasDocumentType = function() {
5888
+ return jspb.Message.getField(this, 43) != null;
5889
+ };
5890
+
5891
+
5892
+ /**
5893
+ * optional string document_type_references = 44;
5894
+ * @return {string}
5895
+ */
5896
+ proto.PurchaseOrder.prototype.getDocumentTypeReferences = function() {
5897
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 44, ""));
5898
+ };
5899
+
5900
+
5901
+ /**
5902
+ * @param {string} value
5903
+ * @return {!proto.PurchaseOrder} returns this
5904
+ */
5905
+ proto.PurchaseOrder.prototype.setDocumentTypeReferences = function(value) {
5906
+ return jspb.Message.setProto3StringField(this, 44, value);
5907
+ };
5908
+
5909
+
5829
5910
 
5830
5911
  /**
5831
5912
  * List of repeated fields within this message type.
@@ -650,7 +650,8 @@ filesList: jspb.Message.toObjectList(msg.getFilesList(),
650
650
  prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.toObject, includeInstance),
651
651
  vendorDescription: jspb.Message.getFieldWithDefault(msg, 33, ""),
652
652
  isSendToVendor: jspb.Message.getBooleanFieldWithDefault(msg, 34, false),
653
- lineOfApprovalReferencesId: jspb.Message.getFieldWithDefault(msg, 35, "")
653
+ lineOfApprovalReferencesId: jspb.Message.getFieldWithDefault(msg, 35, ""),
654
+ vendorNumber: jspb.Message.getFieldWithDefault(msg, 36, "")
654
655
  };
655
656
 
656
657
  if (includeInstance) {
@@ -833,6 +834,10 @@ proto.Vendor.deserializeBinaryFromReader = function(msg, reader) {
833
834
  var value = /** @type {string} */ (reader.readStringRequireUtf8());
834
835
  msg.setLineOfApprovalReferencesId(value);
835
836
  break;
837
+ case 36:
838
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
839
+ msg.setVendorNumber(value);
840
+ break;
836
841
  default:
837
842
  reader.skipField();
838
843
  break;
@@ -1113,6 +1118,13 @@ proto.Vendor.serializeBinaryToWriter = function(message, writer) {
1113
1118
  f
1114
1119
  );
1115
1120
  }
1121
+ f = message.getVendorNumber();
1122
+ if (f.length > 0) {
1123
+ writer.writeString(
1124
+ 36,
1125
+ f
1126
+ );
1127
+ }
1116
1128
  };
1117
1129
 
1118
1130
 
@@ -1866,6 +1878,24 @@ proto.Vendor.prototype.setLineOfApprovalReferencesId = function(value) {
1866
1878
  };
1867
1879
 
1868
1880
 
1881
+ /**
1882
+ * optional string vendor_number = 36;
1883
+ * @return {string}
1884
+ */
1885
+ proto.Vendor.prototype.getVendorNumber = function() {
1886
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 36, ""));
1887
+ };
1888
+
1889
+
1890
+ /**
1891
+ * @param {string} value
1892
+ * @return {!proto.Vendor} returns this
1893
+ */
1894
+ proto.Vendor.prototype.setVendorNumber = function(value) {
1895
+ return jspb.Message.setProto3StringField(this, 36, value);
1896
+ };
1897
+
1898
+
1869
1899
 
1870
1900
 
1871
1901