@aldiokta/protocgen 1.1.60 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aldiokta/protocgen",
3
- "version": "1.1.60",
3
+ "version": "1.1.61",
4
4
  "description": "protocgen js generated for products v2",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -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
 
@@ -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,17 @@ 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
+
122
146
  function serialize_GetValidateBudget(arg) {
123
147
  if (!(arg instanceof prisca_v1_budget_planning_budget_planning_pb.GetValidateBudget)) {
124
148
  throw new Error('Expected argument of type GetValidateBudget');
@@ -130,6 +154,28 @@ function deserialize_GetValidateBudget(buffer_arg) {
130
154
  return prisca_v1_budget_planning_budget_planning_pb.GetValidateBudget.deserializeBinary(new Uint8Array(buffer_arg));
131
155
  }
132
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
+
133
179
  function serialize_ResponseValidateBudget(arg) {
134
180
  if (!(arg instanceof prisca_v1_budget_planning_budget_planning_pb.ResponseValidateBudget)) {
135
181
  throw new Error('Expected argument of type ResponseValidateBudget');
@@ -242,6 +288,39 @@ var BudgetPlanningServiceService = exports.BudgetPlanningServiceService = {
242
288
  responseSerialize: serialize_ResponseValidateBudget,
243
289
  responseDeserialize: deserialize_ResponseValidateBudget,
244
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
+ },
245
324
  };
246
325
 
247
326
  exports.BudgetPlanningServiceClient = grpc.makeGenericClientConstructor(BudgetPlanningServiceService, 'BudgetPlanningService');