@aldiokta/protocgen 1.1.58 → 1.1.60
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/budget_configuration/budget_configuration_pb.js +6 -6
- package/prisca/v1/budget_planning/budget_planning_grpc_pb.js +33 -0
- package/prisca/v1/budget_planning/budget_planning_pb.js +445 -0
- package/prisca/v1/core/access_manager/access_manager_pb.js +27 -25
- package/prisca/v1/core/item_transaction/item_transaction_pb.js +31 -1
package/package.json
CHANGED
|
@@ -342,7 +342,7 @@ proto.BudgetConfiguration.toObject = function(includeInstance, msg) {
|
|
|
342
342
|
id: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
343
343
|
referencesId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
344
344
|
companiesReferencesId: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
345
|
-
|
|
345
|
+
budgetActual: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
346
346
|
budgetConsume: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
347
347
|
budgetToleranceDefault: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
348
348
|
createdAt: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
@@ -400,7 +400,7 @@ proto.BudgetConfiguration.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
400
400
|
break;
|
|
401
401
|
case 4:
|
|
402
402
|
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
403
|
-
msg.
|
|
403
|
+
msg.setBudgetActual(value);
|
|
404
404
|
break;
|
|
405
405
|
case 5:
|
|
406
406
|
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
@@ -480,7 +480,7 @@ proto.BudgetConfiguration.serializeBinaryToWriter = function(message, writer) {
|
|
|
480
480
|
f
|
|
481
481
|
);
|
|
482
482
|
}
|
|
483
|
-
f = message.
|
|
483
|
+
f = message.getBudgetActual();
|
|
484
484
|
if (f.length > 0) {
|
|
485
485
|
writer.writeString(
|
|
486
486
|
4,
|
|
@@ -594,10 +594,10 @@ proto.BudgetConfiguration.prototype.setCompaniesReferencesId = function(value) {
|
|
|
594
594
|
|
|
595
595
|
|
|
596
596
|
/**
|
|
597
|
-
* optional string
|
|
597
|
+
* optional string budget_actual = 4;
|
|
598
598
|
* @return {string}
|
|
599
599
|
*/
|
|
600
|
-
proto.BudgetConfiguration.prototype.
|
|
600
|
+
proto.BudgetConfiguration.prototype.getBudgetActual = function() {
|
|
601
601
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
602
602
|
};
|
|
603
603
|
|
|
@@ -606,7 +606,7 @@ proto.BudgetConfiguration.prototype.getBudgetCommitment = function() {
|
|
|
606
606
|
* @param {string} value
|
|
607
607
|
* @return {!proto.BudgetConfiguration} returns this
|
|
608
608
|
*/
|
|
609
|
-
proto.BudgetConfiguration.prototype.
|
|
609
|
+
proto.BudgetConfiguration.prototype.setBudgetActual = function(value) {
|
|
610
610
|
return jspb.Message.setProto3StringField(this, 4, value);
|
|
611
611
|
};
|
|
612
612
|
|
|
@@ -119,6 +119,28 @@ function deserialize_GetListBudgetPlanningResponse(buffer_arg) {
|
|
|
119
119
|
return prisca_v1_budget_planning_budget_planning_pb.GetListBudgetPlanningResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
120
120
|
}
|
|
121
121
|
|
|
122
|
+
function serialize_GetValidateBudget(arg) {
|
|
123
|
+
if (!(arg instanceof prisca_v1_budget_planning_budget_planning_pb.GetValidateBudget)) {
|
|
124
|
+
throw new Error('Expected argument of type GetValidateBudget');
|
|
125
|
+
}
|
|
126
|
+
return Buffer.from(arg.serializeBinary());
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
function deserialize_GetValidateBudget(buffer_arg) {
|
|
130
|
+
return prisca_v1_budget_planning_budget_planning_pb.GetValidateBudget.deserializeBinary(new Uint8Array(buffer_arg));
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
function serialize_ResponseValidateBudget(arg) {
|
|
134
|
+
if (!(arg instanceof prisca_v1_budget_planning_budget_planning_pb.ResponseValidateBudget)) {
|
|
135
|
+
throw new Error('Expected argument of type ResponseValidateBudget');
|
|
136
|
+
}
|
|
137
|
+
return Buffer.from(arg.serializeBinary());
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
function deserialize_ResponseValidateBudget(buffer_arg) {
|
|
141
|
+
return prisca_v1_budget_planning_budget_planning_pb.ResponseValidateBudget.deserializeBinary(new Uint8Array(buffer_arg));
|
|
142
|
+
}
|
|
143
|
+
|
|
122
144
|
function serialize_UpdateBudgetPlanningRequest(arg) {
|
|
123
145
|
if (!(arg instanceof prisca_v1_budget_planning_budget_planning_pb.UpdateBudgetPlanningRequest)) {
|
|
124
146
|
throw new Error('Expected argument of type UpdateBudgetPlanningRequest');
|
|
@@ -209,6 +231,17 @@ var BudgetPlanningServiceService = exports.BudgetPlanningServiceService = {
|
|
|
209
231
|
responseSerialize: serialize_GetListBudgetPlanningResponse,
|
|
210
232
|
responseDeserialize: deserialize_GetListBudgetPlanningResponse,
|
|
211
233
|
},
|
|
234
|
+
getValidateBudgetPlanning: {
|
|
235
|
+
path: '/BudgetPlanningService/GetValidateBudgetPlanning',
|
|
236
|
+
requestStream: false,
|
|
237
|
+
responseStream: false,
|
|
238
|
+
requestType: prisca_v1_budget_planning_budget_planning_pb.GetValidateBudget,
|
|
239
|
+
responseType: prisca_v1_budget_planning_budget_planning_pb.ResponseValidateBudget,
|
|
240
|
+
requestSerialize: serialize_GetValidateBudget,
|
|
241
|
+
requestDeserialize: deserialize_GetValidateBudget,
|
|
242
|
+
responseSerialize: serialize_ResponseValidateBudget,
|
|
243
|
+
responseDeserialize: deserialize_ResponseValidateBudget,
|
|
244
|
+
},
|
|
212
245
|
};
|
|
213
246
|
|
|
214
247
|
exports.BudgetPlanningServiceClient = grpc.makeGenericClientConstructor(BudgetPlanningServiceService, 'BudgetPlanningService');
|
|
@@ -36,6 +36,8 @@ goog.exportSymbol('proto.DeleteBulkBudgetPlanningRequest', null, global);
|
|
|
36
36
|
goog.exportSymbol('proto.DeleteBulkBudgetPlanningResponse', null, global);
|
|
37
37
|
goog.exportSymbol('proto.GetListBudgetPlanningRequest', null, global);
|
|
38
38
|
goog.exportSymbol('proto.GetListBudgetPlanningResponse', null, global);
|
|
39
|
+
goog.exportSymbol('proto.GetValidateBudget', null, global);
|
|
40
|
+
goog.exportSymbol('proto.ResponseValidateBudget', null, global);
|
|
39
41
|
goog.exportSymbol('proto.UpdateBudgetPlanningRequest', null, global);
|
|
40
42
|
goog.exportSymbol('proto.UpdateBudgetPlanningResponse', null, global);
|
|
41
43
|
/**
|
|
@@ -59,6 +61,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
59
61
|
*/
|
|
60
62
|
proto.BudgetPlanning.displayName = 'proto.BudgetPlanning';
|
|
61
63
|
}
|
|
64
|
+
/**
|
|
65
|
+
* Generated by JsPbCodeGenerator.
|
|
66
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
67
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
68
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
69
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
70
|
+
* valid.
|
|
71
|
+
* @extends {jspb.Message}
|
|
72
|
+
* @constructor
|
|
73
|
+
*/
|
|
74
|
+
proto.GetValidateBudget = function(opt_data) {
|
|
75
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
76
|
+
};
|
|
77
|
+
goog.inherits(proto.GetValidateBudget, jspb.Message);
|
|
78
|
+
if (goog.DEBUG && !COMPILED) {
|
|
79
|
+
/**
|
|
80
|
+
* @public
|
|
81
|
+
* @override
|
|
82
|
+
*/
|
|
83
|
+
proto.GetValidateBudget.displayName = 'proto.GetValidateBudget';
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Generated by JsPbCodeGenerator.
|
|
87
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
88
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
89
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
90
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
91
|
+
* valid.
|
|
92
|
+
* @extends {jspb.Message}
|
|
93
|
+
* @constructor
|
|
94
|
+
*/
|
|
95
|
+
proto.ResponseValidateBudget = function(opt_data) {
|
|
96
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
97
|
+
};
|
|
98
|
+
goog.inherits(proto.ResponseValidateBudget, jspb.Message);
|
|
99
|
+
if (goog.DEBUG && !COMPILED) {
|
|
100
|
+
/**
|
|
101
|
+
* @public
|
|
102
|
+
* @override
|
|
103
|
+
*/
|
|
104
|
+
proto.ResponseValidateBudget.displayName = 'proto.ResponseValidateBudget';
|
|
105
|
+
}
|
|
62
106
|
/**
|
|
63
107
|
* Generated by JsPbCodeGenerator.
|
|
64
108
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -1506,6 +1550,407 @@ proto.BudgetPlanning.prototype.hasBudgetActivity = function() {
|
|
|
1506
1550
|
|
|
1507
1551
|
|
|
1508
1552
|
|
|
1553
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1554
|
+
/**
|
|
1555
|
+
* Creates an object representation of this proto.
|
|
1556
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1557
|
+
* Optional fields that are not set will be set to undefined.
|
|
1558
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1559
|
+
* For the list of reserved names please see:
|
|
1560
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1561
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1562
|
+
* JSPB instance for transitional soy proto support:
|
|
1563
|
+
* http://goto/soy-param-migration
|
|
1564
|
+
* @return {!Object}
|
|
1565
|
+
*/
|
|
1566
|
+
proto.GetValidateBudget.prototype.toObject = function(opt_includeInstance) {
|
|
1567
|
+
return proto.GetValidateBudget.toObject(opt_includeInstance, this);
|
|
1568
|
+
};
|
|
1569
|
+
|
|
1570
|
+
|
|
1571
|
+
/**
|
|
1572
|
+
* Static version of the {@see toObject} method.
|
|
1573
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1574
|
+
* the JSPB instance for transitional soy proto support:
|
|
1575
|
+
* http://goto/soy-param-migration
|
|
1576
|
+
* @param {!proto.GetValidateBudget} msg The msg instance to transform.
|
|
1577
|
+
* @return {!Object}
|
|
1578
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1579
|
+
*/
|
|
1580
|
+
proto.GetValidateBudget.toObject = function(includeInstance, msg) {
|
|
1581
|
+
var f, obj = {
|
|
1582
|
+
budgetCode: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
1583
|
+
createdDate: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
1584
|
+
};
|
|
1585
|
+
|
|
1586
|
+
if (includeInstance) {
|
|
1587
|
+
obj.$jspbMessageInstance = msg;
|
|
1588
|
+
}
|
|
1589
|
+
return obj;
|
|
1590
|
+
};
|
|
1591
|
+
}
|
|
1592
|
+
|
|
1593
|
+
|
|
1594
|
+
/**
|
|
1595
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1596
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1597
|
+
* @return {!proto.GetValidateBudget}
|
|
1598
|
+
*/
|
|
1599
|
+
proto.GetValidateBudget.deserializeBinary = function(bytes) {
|
|
1600
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1601
|
+
var msg = new proto.GetValidateBudget;
|
|
1602
|
+
return proto.GetValidateBudget.deserializeBinaryFromReader(msg, reader);
|
|
1603
|
+
};
|
|
1604
|
+
|
|
1605
|
+
|
|
1606
|
+
/**
|
|
1607
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1608
|
+
* given reader into the given message object.
|
|
1609
|
+
* @param {!proto.GetValidateBudget} msg The message object to deserialize into.
|
|
1610
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1611
|
+
* @return {!proto.GetValidateBudget}
|
|
1612
|
+
*/
|
|
1613
|
+
proto.GetValidateBudget.deserializeBinaryFromReader = function(msg, reader) {
|
|
1614
|
+
while (reader.nextField()) {
|
|
1615
|
+
if (reader.isEndGroup()) {
|
|
1616
|
+
break;
|
|
1617
|
+
}
|
|
1618
|
+
var field = reader.getFieldNumber();
|
|
1619
|
+
switch (field) {
|
|
1620
|
+
case 1:
|
|
1621
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
1622
|
+
msg.setBudgetCode(value);
|
|
1623
|
+
break;
|
|
1624
|
+
case 2:
|
|
1625
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
1626
|
+
msg.setCreatedDate(value);
|
|
1627
|
+
break;
|
|
1628
|
+
default:
|
|
1629
|
+
reader.skipField();
|
|
1630
|
+
break;
|
|
1631
|
+
}
|
|
1632
|
+
}
|
|
1633
|
+
return msg;
|
|
1634
|
+
};
|
|
1635
|
+
|
|
1636
|
+
|
|
1637
|
+
/**
|
|
1638
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1639
|
+
* @return {!Uint8Array}
|
|
1640
|
+
*/
|
|
1641
|
+
proto.GetValidateBudget.prototype.serializeBinary = function() {
|
|
1642
|
+
var writer = new jspb.BinaryWriter();
|
|
1643
|
+
proto.GetValidateBudget.serializeBinaryToWriter(this, writer);
|
|
1644
|
+
return writer.getResultBuffer();
|
|
1645
|
+
};
|
|
1646
|
+
|
|
1647
|
+
|
|
1648
|
+
/**
|
|
1649
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1650
|
+
* format), writing to the given BinaryWriter.
|
|
1651
|
+
* @param {!proto.GetValidateBudget} message
|
|
1652
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1653
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1654
|
+
*/
|
|
1655
|
+
proto.GetValidateBudget.serializeBinaryToWriter = function(message, writer) {
|
|
1656
|
+
var f = undefined;
|
|
1657
|
+
f = message.getBudgetCode();
|
|
1658
|
+
if (f.length > 0) {
|
|
1659
|
+
writer.writeString(
|
|
1660
|
+
1,
|
|
1661
|
+
f
|
|
1662
|
+
);
|
|
1663
|
+
}
|
|
1664
|
+
f = message.getCreatedDate();
|
|
1665
|
+
if (f.length > 0) {
|
|
1666
|
+
writer.writeString(
|
|
1667
|
+
2,
|
|
1668
|
+
f
|
|
1669
|
+
);
|
|
1670
|
+
}
|
|
1671
|
+
};
|
|
1672
|
+
|
|
1673
|
+
|
|
1674
|
+
/**
|
|
1675
|
+
* optional string budget_code = 1;
|
|
1676
|
+
* @return {string}
|
|
1677
|
+
*/
|
|
1678
|
+
proto.GetValidateBudget.prototype.getBudgetCode = function() {
|
|
1679
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
1680
|
+
};
|
|
1681
|
+
|
|
1682
|
+
|
|
1683
|
+
/**
|
|
1684
|
+
* @param {string} value
|
|
1685
|
+
* @return {!proto.GetValidateBudget} returns this
|
|
1686
|
+
*/
|
|
1687
|
+
proto.GetValidateBudget.prototype.setBudgetCode = function(value) {
|
|
1688
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
1689
|
+
};
|
|
1690
|
+
|
|
1691
|
+
|
|
1692
|
+
/**
|
|
1693
|
+
* optional string created_date = 2;
|
|
1694
|
+
* @return {string}
|
|
1695
|
+
*/
|
|
1696
|
+
proto.GetValidateBudget.prototype.getCreatedDate = function() {
|
|
1697
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
1698
|
+
};
|
|
1699
|
+
|
|
1700
|
+
|
|
1701
|
+
/**
|
|
1702
|
+
* @param {string} value
|
|
1703
|
+
* @return {!proto.GetValidateBudget} returns this
|
|
1704
|
+
*/
|
|
1705
|
+
proto.GetValidateBudget.prototype.setCreatedDate = function(value) {
|
|
1706
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
1707
|
+
};
|
|
1708
|
+
|
|
1709
|
+
|
|
1710
|
+
|
|
1711
|
+
|
|
1712
|
+
|
|
1713
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1714
|
+
/**
|
|
1715
|
+
* Creates an object representation of this proto.
|
|
1716
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1717
|
+
* Optional fields that are not set will be set to undefined.
|
|
1718
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1719
|
+
* For the list of reserved names please see:
|
|
1720
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1721
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1722
|
+
* JSPB instance for transitional soy proto support:
|
|
1723
|
+
* http://goto/soy-param-migration
|
|
1724
|
+
* @return {!Object}
|
|
1725
|
+
*/
|
|
1726
|
+
proto.ResponseValidateBudget.prototype.toObject = function(opt_includeInstance) {
|
|
1727
|
+
return proto.ResponseValidateBudget.toObject(opt_includeInstance, this);
|
|
1728
|
+
};
|
|
1729
|
+
|
|
1730
|
+
|
|
1731
|
+
/**
|
|
1732
|
+
* Static version of the {@see toObject} method.
|
|
1733
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1734
|
+
* the JSPB instance for transitional soy proto support:
|
|
1735
|
+
* http://goto/soy-param-migration
|
|
1736
|
+
* @param {!proto.ResponseValidateBudget} msg The msg instance to transform.
|
|
1737
|
+
* @return {!Object}
|
|
1738
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1739
|
+
*/
|
|
1740
|
+
proto.ResponseValidateBudget.toObject = function(includeInstance, msg) {
|
|
1741
|
+
var f, obj = {
|
|
1742
|
+
year: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
1743
|
+
code: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
1744
|
+
remaining: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
1745
|
+
meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
|
|
1746
|
+
};
|
|
1747
|
+
|
|
1748
|
+
if (includeInstance) {
|
|
1749
|
+
obj.$jspbMessageInstance = msg;
|
|
1750
|
+
}
|
|
1751
|
+
return obj;
|
|
1752
|
+
};
|
|
1753
|
+
}
|
|
1754
|
+
|
|
1755
|
+
|
|
1756
|
+
/**
|
|
1757
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1758
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1759
|
+
* @return {!proto.ResponseValidateBudget}
|
|
1760
|
+
*/
|
|
1761
|
+
proto.ResponseValidateBudget.deserializeBinary = function(bytes) {
|
|
1762
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1763
|
+
var msg = new proto.ResponseValidateBudget;
|
|
1764
|
+
return proto.ResponseValidateBudget.deserializeBinaryFromReader(msg, reader);
|
|
1765
|
+
};
|
|
1766
|
+
|
|
1767
|
+
|
|
1768
|
+
/**
|
|
1769
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1770
|
+
* given reader into the given message object.
|
|
1771
|
+
* @param {!proto.ResponseValidateBudget} msg The message object to deserialize into.
|
|
1772
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1773
|
+
* @return {!proto.ResponseValidateBudget}
|
|
1774
|
+
*/
|
|
1775
|
+
proto.ResponseValidateBudget.deserializeBinaryFromReader = function(msg, reader) {
|
|
1776
|
+
while (reader.nextField()) {
|
|
1777
|
+
if (reader.isEndGroup()) {
|
|
1778
|
+
break;
|
|
1779
|
+
}
|
|
1780
|
+
var field = reader.getFieldNumber();
|
|
1781
|
+
switch (field) {
|
|
1782
|
+
case 1:
|
|
1783
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
1784
|
+
msg.setYear(value);
|
|
1785
|
+
break;
|
|
1786
|
+
case 2:
|
|
1787
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
1788
|
+
msg.setCode(value);
|
|
1789
|
+
break;
|
|
1790
|
+
case 3:
|
|
1791
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
1792
|
+
msg.setRemaining(value);
|
|
1793
|
+
break;
|
|
1794
|
+
case 4:
|
|
1795
|
+
var value = new prisca_v1_global_meta_meta_pb.Meta;
|
|
1796
|
+
reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
|
|
1797
|
+
msg.setMeta(value);
|
|
1798
|
+
break;
|
|
1799
|
+
default:
|
|
1800
|
+
reader.skipField();
|
|
1801
|
+
break;
|
|
1802
|
+
}
|
|
1803
|
+
}
|
|
1804
|
+
return msg;
|
|
1805
|
+
};
|
|
1806
|
+
|
|
1807
|
+
|
|
1808
|
+
/**
|
|
1809
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1810
|
+
* @return {!Uint8Array}
|
|
1811
|
+
*/
|
|
1812
|
+
proto.ResponseValidateBudget.prototype.serializeBinary = function() {
|
|
1813
|
+
var writer = new jspb.BinaryWriter();
|
|
1814
|
+
proto.ResponseValidateBudget.serializeBinaryToWriter(this, writer);
|
|
1815
|
+
return writer.getResultBuffer();
|
|
1816
|
+
};
|
|
1817
|
+
|
|
1818
|
+
|
|
1819
|
+
/**
|
|
1820
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1821
|
+
* format), writing to the given BinaryWriter.
|
|
1822
|
+
* @param {!proto.ResponseValidateBudget} message
|
|
1823
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1824
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1825
|
+
*/
|
|
1826
|
+
proto.ResponseValidateBudget.serializeBinaryToWriter = function(message, writer) {
|
|
1827
|
+
var f = undefined;
|
|
1828
|
+
f = message.getYear();
|
|
1829
|
+
if (f.length > 0) {
|
|
1830
|
+
writer.writeString(
|
|
1831
|
+
1,
|
|
1832
|
+
f
|
|
1833
|
+
);
|
|
1834
|
+
}
|
|
1835
|
+
f = message.getCode();
|
|
1836
|
+
if (f.length > 0) {
|
|
1837
|
+
writer.writeString(
|
|
1838
|
+
2,
|
|
1839
|
+
f
|
|
1840
|
+
);
|
|
1841
|
+
}
|
|
1842
|
+
f = message.getRemaining();
|
|
1843
|
+
if (f.length > 0) {
|
|
1844
|
+
writer.writeString(
|
|
1845
|
+
3,
|
|
1846
|
+
f
|
|
1847
|
+
);
|
|
1848
|
+
}
|
|
1849
|
+
f = message.getMeta();
|
|
1850
|
+
if (f != null) {
|
|
1851
|
+
writer.writeMessage(
|
|
1852
|
+
4,
|
|
1853
|
+
f,
|
|
1854
|
+
prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
|
|
1855
|
+
);
|
|
1856
|
+
}
|
|
1857
|
+
};
|
|
1858
|
+
|
|
1859
|
+
|
|
1860
|
+
/**
|
|
1861
|
+
* optional string year = 1;
|
|
1862
|
+
* @return {string}
|
|
1863
|
+
*/
|
|
1864
|
+
proto.ResponseValidateBudget.prototype.getYear = function() {
|
|
1865
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
1866
|
+
};
|
|
1867
|
+
|
|
1868
|
+
|
|
1869
|
+
/**
|
|
1870
|
+
* @param {string} value
|
|
1871
|
+
* @return {!proto.ResponseValidateBudget} returns this
|
|
1872
|
+
*/
|
|
1873
|
+
proto.ResponseValidateBudget.prototype.setYear = function(value) {
|
|
1874
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
1875
|
+
};
|
|
1876
|
+
|
|
1877
|
+
|
|
1878
|
+
/**
|
|
1879
|
+
* optional string code = 2;
|
|
1880
|
+
* @return {string}
|
|
1881
|
+
*/
|
|
1882
|
+
proto.ResponseValidateBudget.prototype.getCode = function() {
|
|
1883
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
1884
|
+
};
|
|
1885
|
+
|
|
1886
|
+
|
|
1887
|
+
/**
|
|
1888
|
+
* @param {string} value
|
|
1889
|
+
* @return {!proto.ResponseValidateBudget} returns this
|
|
1890
|
+
*/
|
|
1891
|
+
proto.ResponseValidateBudget.prototype.setCode = function(value) {
|
|
1892
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
1893
|
+
};
|
|
1894
|
+
|
|
1895
|
+
|
|
1896
|
+
/**
|
|
1897
|
+
* optional string remaining = 3;
|
|
1898
|
+
* @return {string}
|
|
1899
|
+
*/
|
|
1900
|
+
proto.ResponseValidateBudget.prototype.getRemaining = function() {
|
|
1901
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
1902
|
+
};
|
|
1903
|
+
|
|
1904
|
+
|
|
1905
|
+
/**
|
|
1906
|
+
* @param {string} value
|
|
1907
|
+
* @return {!proto.ResponseValidateBudget} returns this
|
|
1908
|
+
*/
|
|
1909
|
+
proto.ResponseValidateBudget.prototype.setRemaining = function(value) {
|
|
1910
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
1911
|
+
};
|
|
1912
|
+
|
|
1913
|
+
|
|
1914
|
+
/**
|
|
1915
|
+
* optional prisca.v1.global.meta.Meta meta = 4;
|
|
1916
|
+
* @return {?proto.prisca.v1.global.meta.Meta}
|
|
1917
|
+
*/
|
|
1918
|
+
proto.ResponseValidateBudget.prototype.getMeta = function() {
|
|
1919
|
+
return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
|
|
1920
|
+
jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 4));
|
|
1921
|
+
};
|
|
1922
|
+
|
|
1923
|
+
|
|
1924
|
+
/**
|
|
1925
|
+
* @param {?proto.prisca.v1.global.meta.Meta|undefined} value
|
|
1926
|
+
* @return {!proto.ResponseValidateBudget} returns this
|
|
1927
|
+
*/
|
|
1928
|
+
proto.ResponseValidateBudget.prototype.setMeta = function(value) {
|
|
1929
|
+
return jspb.Message.setWrapperField(this, 4, value);
|
|
1930
|
+
};
|
|
1931
|
+
|
|
1932
|
+
|
|
1933
|
+
/**
|
|
1934
|
+
* Clears the message field making it undefined.
|
|
1935
|
+
* @return {!proto.ResponseValidateBudget} returns this
|
|
1936
|
+
*/
|
|
1937
|
+
proto.ResponseValidateBudget.prototype.clearMeta = function() {
|
|
1938
|
+
return this.setMeta(undefined);
|
|
1939
|
+
};
|
|
1940
|
+
|
|
1941
|
+
|
|
1942
|
+
/**
|
|
1943
|
+
* Returns whether this field is set.
|
|
1944
|
+
* @return {boolean}
|
|
1945
|
+
*/
|
|
1946
|
+
proto.ResponseValidateBudget.prototype.hasMeta = function() {
|
|
1947
|
+
return jspb.Message.getField(this, 4) != null;
|
|
1948
|
+
};
|
|
1949
|
+
|
|
1950
|
+
|
|
1951
|
+
|
|
1952
|
+
|
|
1953
|
+
|
|
1509
1954
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1510
1955
|
/**
|
|
1511
1956
|
* Creates an object representation of this proto.
|
|
@@ -1578,7 +1578,7 @@ proto.PoliciesResponse.prototype.setUpdatedAt = function(value) {
|
|
|
1578
1578
|
* @private {!Array<number>}
|
|
1579
1579
|
* @const
|
|
1580
1580
|
*/
|
|
1581
|
-
proto.Statement.repeatedFields_ = [2];
|
|
1581
|
+
proto.Statement.repeatedFields_ = [2,3];
|
|
1582
1582
|
|
|
1583
1583
|
|
|
1584
1584
|
|
|
@@ -1614,7 +1614,8 @@ proto.Statement.toObject = function(includeInstance, msg) {
|
|
|
1614
1614
|
name: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
1615
1615
|
actionsList: jspb.Message.toObjectList(msg.getActionsList(),
|
|
1616
1616
|
proto.Action.toObject, includeInstance),
|
|
1617
|
-
|
|
1617
|
+
resourceList: jspb.Message.toObjectList(msg.getResourceList(),
|
|
1618
|
+
proto.ResourceFilter.toObject, includeInstance)
|
|
1618
1619
|
};
|
|
1619
1620
|
|
|
1620
1621
|
if (includeInstance) {
|
|
@@ -1661,9 +1662,9 @@ proto.Statement.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
1661
1662
|
msg.addActions(value);
|
|
1662
1663
|
break;
|
|
1663
1664
|
case 3:
|
|
1664
|
-
var value = new proto.
|
|
1665
|
-
reader.readMessage(value,proto.
|
|
1666
|
-
msg.
|
|
1665
|
+
var value = new proto.ResourceFilter;
|
|
1666
|
+
reader.readMessage(value,proto.ResourceFilter.deserializeBinaryFromReader);
|
|
1667
|
+
msg.addResource(value);
|
|
1667
1668
|
break;
|
|
1668
1669
|
default:
|
|
1669
1670
|
reader.skipField();
|
|
@@ -1709,12 +1710,12 @@ proto.Statement.serializeBinaryToWriter = function(message, writer) {
|
|
|
1709
1710
|
proto.Action.serializeBinaryToWriter
|
|
1710
1711
|
);
|
|
1711
1712
|
}
|
|
1712
|
-
f = message.
|
|
1713
|
-
if (f
|
|
1714
|
-
writer.
|
|
1713
|
+
f = message.getResourceList();
|
|
1714
|
+
if (f.length > 0) {
|
|
1715
|
+
writer.writeRepeatedMessage(
|
|
1715
1716
|
3,
|
|
1716
1717
|
f,
|
|
1717
|
-
proto.
|
|
1718
|
+
proto.ResourceFilter.serializeBinaryToWriter
|
|
1718
1719
|
);
|
|
1719
1720
|
}
|
|
1720
1721
|
};
|
|
@@ -1777,39 +1778,40 @@ proto.Statement.prototype.clearActionsList = function() {
|
|
|
1777
1778
|
|
|
1778
1779
|
|
|
1779
1780
|
/**
|
|
1780
|
-
*
|
|
1781
|
-
* @return {
|
|
1781
|
+
* repeated ResourceFilter resource = 3;
|
|
1782
|
+
* @return {!Array<!proto.ResourceFilter>}
|
|
1782
1783
|
*/
|
|
1783
|
-
proto.Statement.prototype.
|
|
1784
|
-
return /** @type{
|
|
1785
|
-
jspb.Message.
|
|
1784
|
+
proto.Statement.prototype.getResourceList = function() {
|
|
1785
|
+
return /** @type{!Array<!proto.ResourceFilter>} */ (
|
|
1786
|
+
jspb.Message.getRepeatedWrapperField(this, proto.ResourceFilter, 3));
|
|
1786
1787
|
};
|
|
1787
1788
|
|
|
1788
1789
|
|
|
1789
1790
|
/**
|
|
1790
|
-
* @param {
|
|
1791
|
+
* @param {!Array<!proto.ResourceFilter>} value
|
|
1791
1792
|
* @return {!proto.Statement} returns this
|
|
1792
1793
|
*/
|
|
1793
|
-
proto.Statement.prototype.
|
|
1794
|
-
return jspb.Message.
|
|
1794
|
+
proto.Statement.prototype.setResourceList = function(value) {
|
|
1795
|
+
return jspb.Message.setRepeatedWrapperField(this, 3, value);
|
|
1795
1796
|
};
|
|
1796
1797
|
|
|
1797
1798
|
|
|
1798
1799
|
/**
|
|
1799
|
-
*
|
|
1800
|
-
* @
|
|
1800
|
+
* @param {!proto.ResourceFilter=} opt_value
|
|
1801
|
+
* @param {number=} opt_index
|
|
1802
|
+
* @return {!proto.ResourceFilter}
|
|
1801
1803
|
*/
|
|
1802
|
-
proto.Statement.prototype.
|
|
1803
|
-
return this.
|
|
1804
|
+
proto.Statement.prototype.addResource = function(opt_value, opt_index) {
|
|
1805
|
+
return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.ResourceFilter, opt_index);
|
|
1804
1806
|
};
|
|
1805
1807
|
|
|
1806
1808
|
|
|
1807
1809
|
/**
|
|
1808
|
-
*
|
|
1809
|
-
* @return {
|
|
1810
|
+
* Clears the list making it empty but non-null.
|
|
1811
|
+
* @return {!proto.Statement} returns this
|
|
1810
1812
|
*/
|
|
1811
|
-
proto.Statement.prototype.
|
|
1812
|
-
return
|
|
1813
|
+
proto.Statement.prototype.clearResourceList = function() {
|
|
1814
|
+
return this.setResourceList([]);
|
|
1813
1815
|
};
|
|
1814
1816
|
|
|
1815
1817
|
|
|
@@ -369,7 +369,8 @@ createdBy: jspb.Message.getFieldWithDefault(msg, 41, ""),
|
|
|
369
369
|
updatedBy: jspb.Message.getFieldWithDefault(msg, 42, ""),
|
|
370
370
|
createdByEmployee: (f = msg.getCreatedByEmployee()) && prisca_v1_core_employee_employee_pb.Employee.toObject(includeInstance, f),
|
|
371
371
|
updatedByEmployee: (f = msg.getUpdatedByEmployee()) && prisca_v1_core_employee_employee_pb.Employee.toObject(includeInstance, f),
|
|
372
|
-
itemCategory: jspb.Message.getFieldWithDefault(msg, 45, "")
|
|
372
|
+
itemCategory: jspb.Message.getFieldWithDefault(msg, 45, ""),
|
|
373
|
+
budgetCode: jspb.Message.getFieldWithDefault(msg, 46, "")
|
|
373
374
|
};
|
|
374
375
|
|
|
375
376
|
if (includeInstance) {
|
|
@@ -588,6 +589,10 @@ proto.ItemTransaction.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
588
589
|
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
589
590
|
msg.setItemCategory(value);
|
|
590
591
|
break;
|
|
592
|
+
case 46:
|
|
593
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
594
|
+
msg.setBudgetCode(value);
|
|
595
|
+
break;
|
|
591
596
|
default:
|
|
592
597
|
reader.skipField();
|
|
593
598
|
break;
|
|
@@ -931,6 +936,13 @@ proto.ItemTransaction.serializeBinaryToWriter = function(message, writer) {
|
|
|
931
936
|
f
|
|
932
937
|
);
|
|
933
938
|
}
|
|
939
|
+
f = message.getBudgetCode();
|
|
940
|
+
if (f.length > 0) {
|
|
941
|
+
writer.writeString(
|
|
942
|
+
46,
|
|
943
|
+
f
|
|
944
|
+
);
|
|
945
|
+
}
|
|
934
946
|
};
|
|
935
947
|
|
|
936
948
|
|
|
@@ -1844,6 +1856,24 @@ proto.ItemTransaction.prototype.setItemCategory = function(value) {
|
|
|
1844
1856
|
};
|
|
1845
1857
|
|
|
1846
1858
|
|
|
1859
|
+
/**
|
|
1860
|
+
* optional string budget_code = 46;
|
|
1861
|
+
* @return {string}
|
|
1862
|
+
*/
|
|
1863
|
+
proto.ItemTransaction.prototype.getBudgetCode = function() {
|
|
1864
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 46, ""));
|
|
1865
|
+
};
|
|
1866
|
+
|
|
1867
|
+
|
|
1868
|
+
/**
|
|
1869
|
+
* @param {string} value
|
|
1870
|
+
* @return {!proto.ItemTransaction} returns this
|
|
1871
|
+
*/
|
|
1872
|
+
proto.ItemTransaction.prototype.setBudgetCode = function(value) {
|
|
1873
|
+
return jspb.Message.setProto3StringField(this, 46, value);
|
|
1874
|
+
};
|
|
1875
|
+
|
|
1876
|
+
|
|
1847
1877
|
|
|
1848
1878
|
/**
|
|
1849
1879
|
* List of repeated fields within this message type.
|