@aldiokta/protocgen 1.1.59 → 1.1.61
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/budget_grpc_pb.js +1 -0
- package/prisca/v1/budget/budget_pb.js +54 -1
- package/prisca/v1/budget_configuration/budget_configuration_pb.js +6 -6
- package/prisca/v1/budget_planning/budget_planning_grpc_pb.js +112 -0
- package/prisca/v1/budget_planning/budget_planning_pb.js +6233 -1770
- package/prisca/v1/core/item_transaction/item_transaction_pb.js +123 -3
- package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_pb.js +208 -118
package/package.json
CHANGED
|
@@ -7,6 +7,7 @@ var prisca_v1_global_meta_meta_pb = require('../../../prisca/v1/global/meta/meta
|
|
|
7
7
|
var prisca_v1_core_company_company_pb = require('../../../prisca/v1/core/company/company_pb.js');
|
|
8
8
|
var prisca_v1_core_transaction_builder_transaction_builder_pb = require('../../../prisca/v1/core/transaction_builder/transaction_builder_pb.js');
|
|
9
9
|
var prisca_v1_budget_planning_budget_planning_pb = require('../../../prisca/v1/budget_planning/budget_planning_pb.js');
|
|
10
|
+
var prisca_v1_core_organization_organization_pb = require('../../../prisca/v1/core/organization/organization_pb.js');
|
|
10
11
|
|
|
11
12
|
function serialize_BudgetGetByIdRequest(arg) {
|
|
12
13
|
if (!(arg instanceof prisca_v1_budget_budget_pb.BudgetGetByIdRequest)) {
|
|
@@ -23,6 +23,8 @@ var prisca_v1_core_transaction_builder_transaction_builder_pb = require('../../.
|
|
|
23
23
|
goog.object.extend(proto, prisca_v1_core_transaction_builder_transaction_builder_pb);
|
|
24
24
|
var prisca_v1_budget_planning_budget_planning_pb = require('../../../prisca/v1/budget_planning/budget_planning_pb.js');
|
|
25
25
|
goog.object.extend(proto, prisca_v1_budget_planning_budget_planning_pb);
|
|
26
|
+
var prisca_v1_core_organization_organization_pb = require('../../../prisca/v1/core/organization/organization_pb.js');
|
|
27
|
+
goog.object.extend(proto, prisca_v1_core_organization_organization_pb);
|
|
26
28
|
goog.exportSymbol('proto.Budget', null, global);
|
|
27
29
|
goog.exportSymbol('proto.BudgetGetByIdRequest', null, global);
|
|
28
30
|
goog.exportSymbol('proto.BudgetGetByIdResponse', null, global);
|
|
@@ -361,7 +363,8 @@ updatedBy: jspb.Message.getFieldWithDefault(msg, 10, ""),
|
|
|
361
363
|
deletedAt: jspb.Message.getFieldWithDefault(msg, 11, ""),
|
|
362
364
|
year: jspb.Message.getFieldWithDefault(msg, 12, ""),
|
|
363
365
|
budgetPlanningList: jspb.Message.toObjectList(msg.getBudgetPlanningList(),
|
|
364
|
-
prisca_v1_budget_planning_budget_planning_pb.BudgetPlanning.toObject, includeInstance)
|
|
366
|
+
prisca_v1_budget_planning_budget_planning_pb.BudgetPlanning.toObject, includeInstance),
|
|
367
|
+
organization: (f = msg.getOrganization()) && prisca_v1_core_organization_organization_pb.Organization.toObject(includeInstance, f)
|
|
365
368
|
};
|
|
366
369
|
|
|
367
370
|
if (includeInstance) {
|
|
@@ -451,6 +454,11 @@ proto.Budget.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
451
454
|
reader.readMessage(value,prisca_v1_budget_planning_budget_planning_pb.BudgetPlanning.deserializeBinaryFromReader);
|
|
452
455
|
msg.addBudgetPlanning(value);
|
|
453
456
|
break;
|
|
457
|
+
case 14:
|
|
458
|
+
var value = new prisca_v1_core_organization_organization_pb.Organization;
|
|
459
|
+
reader.readMessage(value,prisca_v1_core_organization_organization_pb.Organization.deserializeBinaryFromReader);
|
|
460
|
+
msg.setOrganization(value);
|
|
461
|
+
break;
|
|
454
462
|
default:
|
|
455
463
|
reader.skipField();
|
|
456
464
|
break;
|
|
@@ -572,6 +580,14 @@ proto.Budget.serializeBinaryToWriter = function(message, writer) {
|
|
|
572
580
|
prisca_v1_budget_planning_budget_planning_pb.BudgetPlanning.serializeBinaryToWriter
|
|
573
581
|
);
|
|
574
582
|
}
|
|
583
|
+
f = message.getOrganization();
|
|
584
|
+
if (f != null) {
|
|
585
|
+
writer.writeMessage(
|
|
586
|
+
14,
|
|
587
|
+
f,
|
|
588
|
+
prisca_v1_core_organization_organization_pb.Organization.serializeBinaryToWriter
|
|
589
|
+
);
|
|
590
|
+
}
|
|
575
591
|
};
|
|
576
592
|
|
|
577
593
|
|
|
@@ -829,6 +845,43 @@ proto.Budget.prototype.clearBudgetPlanningList = function() {
|
|
|
829
845
|
};
|
|
830
846
|
|
|
831
847
|
|
|
848
|
+
/**
|
|
849
|
+
* optional Organization organization = 14;
|
|
850
|
+
* @return {?proto.Organization}
|
|
851
|
+
*/
|
|
852
|
+
proto.Budget.prototype.getOrganization = function() {
|
|
853
|
+
return /** @type{?proto.Organization} */ (
|
|
854
|
+
jspb.Message.getWrapperField(this, prisca_v1_core_organization_organization_pb.Organization, 14));
|
|
855
|
+
};
|
|
856
|
+
|
|
857
|
+
|
|
858
|
+
/**
|
|
859
|
+
* @param {?proto.Organization|undefined} value
|
|
860
|
+
* @return {!proto.Budget} returns this
|
|
861
|
+
*/
|
|
862
|
+
proto.Budget.prototype.setOrganization = function(value) {
|
|
863
|
+
return jspb.Message.setWrapperField(this, 14, value);
|
|
864
|
+
};
|
|
865
|
+
|
|
866
|
+
|
|
867
|
+
/**
|
|
868
|
+
* Clears the message field making it undefined.
|
|
869
|
+
* @return {!proto.Budget} returns this
|
|
870
|
+
*/
|
|
871
|
+
proto.Budget.prototype.clearOrganization = function() {
|
|
872
|
+
return this.setOrganization(undefined);
|
|
873
|
+
};
|
|
874
|
+
|
|
875
|
+
|
|
876
|
+
/**
|
|
877
|
+
* Returns whether this field is set.
|
|
878
|
+
* @return {boolean}
|
|
879
|
+
*/
|
|
880
|
+
proto.Budget.prototype.hasOrganization = function() {
|
|
881
|
+
return jspb.Message.getField(this, 14) != null;
|
|
882
|
+
};
|
|
883
|
+
|
|
884
|
+
|
|
832
885
|
|
|
833
886
|
|
|
834
887
|
|
|
@@ -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
|
|
|
@@ -8,6 +8,8 @@ var prisca_v1_core_company_company_pb = require('../../../prisca/v1/core/company
|
|
|
8
8
|
var prisca_v1_core_transaction_builder_transaction_builder_pb = require('../../../prisca/v1/core/transaction_builder/transaction_builder_pb.js');
|
|
9
9
|
var prisca_v1_budget_activity_budget_activity_pb = require('../../../prisca/v1/budget_activity/budget_activity_pb.js');
|
|
10
10
|
var prisca_v1_budget_categories_budget_categories_pb = require('../../../prisca/v1/budget_categories/budget_categories_pb.js');
|
|
11
|
+
var prisca_v1_general_ledger_account_general_ledger_account_pb = require('../../../prisca/v1/general_ledger_account/general_ledger_account_pb.js');
|
|
12
|
+
var prisca_v1_core_item_transaction_item_transaction_pb = require('../../../prisca/v1/core/item_transaction/item_transaction_pb.js');
|
|
11
13
|
|
|
12
14
|
function serialize_BudgetPlanningGetByIdRequest(arg) {
|
|
13
15
|
if (!(arg instanceof prisca_v1_budget_planning_budget_planning_pb.BudgetPlanningGetByIdRequest)) {
|
|
@@ -31,6 +33,17 @@ function deserialize_BudgetPlanningGetByIdResponse(buffer_arg) {
|
|
|
31
33
|
return prisca_v1_budget_planning_budget_planning_pb.BudgetPlanningGetByIdResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
32
34
|
}
|
|
33
35
|
|
|
36
|
+
function serialize_CheckAvailableBudgetRequest(arg) {
|
|
37
|
+
if (!(arg instanceof prisca_v1_budget_planning_budget_planning_pb.CheckAvailableBudgetRequest)) {
|
|
38
|
+
throw new Error('Expected argument of type CheckAvailableBudgetRequest');
|
|
39
|
+
}
|
|
40
|
+
return Buffer.from(arg.serializeBinary());
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
function deserialize_CheckAvailableBudgetRequest(buffer_arg) {
|
|
44
|
+
return prisca_v1_budget_planning_budget_planning_pb.CheckAvailableBudgetRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
45
|
+
}
|
|
46
|
+
|
|
34
47
|
function serialize_CreateBudgetPlanningRequest(arg) {
|
|
35
48
|
if (!(arg instanceof prisca_v1_budget_planning_budget_planning_pb.CreateBudgetPlanningRequest)) {
|
|
36
49
|
throw new Error('Expected argument of type CreateBudgetPlanningRequest');
|
|
@@ -119,6 +132,61 @@ function deserialize_GetListBudgetPlanningResponse(buffer_arg) {
|
|
|
119
132
|
return prisca_v1_budget_planning_budget_planning_pb.GetListBudgetPlanningResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
120
133
|
}
|
|
121
134
|
|
|
135
|
+
function serialize_GetReportBudgetRequest(arg) {
|
|
136
|
+
if (!(arg instanceof prisca_v1_budget_planning_budget_planning_pb.GetReportBudgetRequest)) {
|
|
137
|
+
throw new Error('Expected argument of type GetReportBudgetRequest');
|
|
138
|
+
}
|
|
139
|
+
return Buffer.from(arg.serializeBinary());
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
function deserialize_GetReportBudgetRequest(buffer_arg) {
|
|
143
|
+
return prisca_v1_budget_planning_budget_planning_pb.GetReportBudgetRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
function serialize_GetValidateBudget(arg) {
|
|
147
|
+
if (!(arg instanceof prisca_v1_budget_planning_budget_planning_pb.GetValidateBudget)) {
|
|
148
|
+
throw new Error('Expected argument of type GetValidateBudget');
|
|
149
|
+
}
|
|
150
|
+
return Buffer.from(arg.serializeBinary());
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
function deserialize_GetValidateBudget(buffer_arg) {
|
|
154
|
+
return prisca_v1_budget_planning_budget_planning_pb.GetValidateBudget.deserializeBinary(new Uint8Array(buffer_arg));
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
function serialize_GetYearReportResponse(arg) {
|
|
158
|
+
if (!(arg instanceof prisca_v1_budget_planning_budget_planning_pb.GetYearReportResponse)) {
|
|
159
|
+
throw new Error('Expected argument of type GetYearReportResponse');
|
|
160
|
+
}
|
|
161
|
+
return Buffer.from(arg.serializeBinary());
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
function deserialize_GetYearReportResponse(buffer_arg) {
|
|
165
|
+
return prisca_v1_budget_planning_budget_planning_pb.GetYearReportResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
function serialize_ReportBudgetTransactionMonth(arg) {
|
|
169
|
+
if (!(arg instanceof prisca_v1_budget_planning_budget_planning_pb.ReportBudgetTransactionMonth)) {
|
|
170
|
+
throw new Error('Expected argument of type ReportBudgetTransactionMonth');
|
|
171
|
+
}
|
|
172
|
+
return Buffer.from(arg.serializeBinary());
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
function deserialize_ReportBudgetTransactionMonth(buffer_arg) {
|
|
176
|
+
return prisca_v1_budget_planning_budget_planning_pb.ReportBudgetTransactionMonth.deserializeBinary(new Uint8Array(buffer_arg));
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
function serialize_ResponseValidateBudget(arg) {
|
|
180
|
+
if (!(arg instanceof prisca_v1_budget_planning_budget_planning_pb.ResponseValidateBudget)) {
|
|
181
|
+
throw new Error('Expected argument of type ResponseValidateBudget');
|
|
182
|
+
}
|
|
183
|
+
return Buffer.from(arg.serializeBinary());
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
function deserialize_ResponseValidateBudget(buffer_arg) {
|
|
187
|
+
return prisca_v1_budget_planning_budget_planning_pb.ResponseValidateBudget.deserializeBinary(new Uint8Array(buffer_arg));
|
|
188
|
+
}
|
|
189
|
+
|
|
122
190
|
function serialize_UpdateBudgetPlanningRequest(arg) {
|
|
123
191
|
if (!(arg instanceof prisca_v1_budget_planning_budget_planning_pb.UpdateBudgetPlanningRequest)) {
|
|
124
192
|
throw new Error('Expected argument of type UpdateBudgetPlanningRequest');
|
|
@@ -209,6 +277,50 @@ var BudgetPlanningServiceService = exports.BudgetPlanningServiceService = {
|
|
|
209
277
|
responseSerialize: serialize_GetListBudgetPlanningResponse,
|
|
210
278
|
responseDeserialize: deserialize_GetListBudgetPlanningResponse,
|
|
211
279
|
},
|
|
280
|
+
getValidateBudgetPlanning: {
|
|
281
|
+
path: '/BudgetPlanningService/GetValidateBudgetPlanning',
|
|
282
|
+
requestStream: false,
|
|
283
|
+
responseStream: false,
|
|
284
|
+
requestType: prisca_v1_budget_planning_budget_planning_pb.GetValidateBudget,
|
|
285
|
+
responseType: prisca_v1_budget_planning_budget_planning_pb.ResponseValidateBudget,
|
|
286
|
+
requestSerialize: serialize_GetValidateBudget,
|
|
287
|
+
requestDeserialize: deserialize_GetValidateBudget,
|
|
288
|
+
responseSerialize: serialize_ResponseValidateBudget,
|
|
289
|
+
responseDeserialize: deserialize_ResponseValidateBudget,
|
|
290
|
+
},
|
|
291
|
+
getReport: {
|
|
292
|
+
path: '/BudgetPlanningService/GetReport',
|
|
293
|
+
requestStream: false,
|
|
294
|
+
responseStream: false,
|
|
295
|
+
requestType: prisca_v1_budget_planning_budget_planning_pb.GetValidateBudget,
|
|
296
|
+
responseType: prisca_v1_budget_planning_budget_planning_pb.ReportBudgetTransactionMonth,
|
|
297
|
+
requestSerialize: serialize_GetValidateBudget,
|
|
298
|
+
requestDeserialize: deserialize_GetValidateBudget,
|
|
299
|
+
responseSerialize: serialize_ReportBudgetTransactionMonth,
|
|
300
|
+
responseDeserialize: deserialize_ReportBudgetTransactionMonth,
|
|
301
|
+
},
|
|
302
|
+
getYearReport: {
|
|
303
|
+
path: '/BudgetPlanningService/GetYearReport',
|
|
304
|
+
requestStream: false,
|
|
305
|
+
responseStream: false,
|
|
306
|
+
requestType: prisca_v1_budget_planning_budget_planning_pb.GetReportBudgetRequest,
|
|
307
|
+
responseType: prisca_v1_budget_planning_budget_planning_pb.GetYearReportResponse,
|
|
308
|
+
requestSerialize: serialize_GetReportBudgetRequest,
|
|
309
|
+
requestDeserialize: deserialize_GetReportBudgetRequest,
|
|
310
|
+
responseSerialize: serialize_GetYearReportResponse,
|
|
311
|
+
responseDeserialize: deserialize_GetYearReportResponse,
|
|
312
|
+
},
|
|
313
|
+
checkAvailableBudget: {
|
|
314
|
+
path: '/BudgetPlanningService/CheckAvailableBudget',
|
|
315
|
+
requestStream: false,
|
|
316
|
+
responseStream: false,
|
|
317
|
+
requestType: prisca_v1_budget_planning_budget_planning_pb.CheckAvailableBudgetRequest,
|
|
318
|
+
responseType: prisca_v1_budget_planning_budget_planning_pb.ResponseValidateBudget,
|
|
319
|
+
requestSerialize: serialize_CheckAvailableBudgetRequest,
|
|
320
|
+
requestDeserialize: deserialize_CheckAvailableBudgetRequest,
|
|
321
|
+
responseSerialize: serialize_ResponseValidateBudget,
|
|
322
|
+
responseDeserialize: deserialize_ResponseValidateBudget,
|
|
323
|
+
},
|
|
212
324
|
};
|
|
213
325
|
|
|
214
326
|
exports.BudgetPlanningServiceClient = grpc.makeGenericClientConstructor(BudgetPlanningServiceService, 'BudgetPlanningService');
|