@aldiokta/protocgen 1.1.51 → 1.1.53

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.
Files changed (54) hide show
  1. package/package.json +1 -1
  2. package/prisca/v1/bidding/bidding_grpc_pb.js +23 -0
  3. package/prisca/v1/bidding/bidding_pb.js +463 -2
  4. package/prisca/v1/budget/budget_grpc_pb.js +213 -0
  5. package/prisca/v1/budget/budget_pb.js +3008 -0
  6. package/prisca/v1/budget_activity/budget_activity_grpc_pb.js +212 -0
  7. package/prisca/v1/budget_activity/budget_activity_pb.js +2886 -0
  8. package/prisca/v1/budget_categories/budget_categories_grpc_pb.js +212 -0
  9. package/prisca/v1/budget_categories/budget_categories_pb.js +2916 -0
  10. package/prisca/v1/budget_planning/budget_planning_grpc_pb.js +214 -0
  11. package/prisca/v1/budget_planning/budget_planning_pb.js +3682 -0
  12. package/prisca/v1/business_fields/business_fields_grpc_pb.js +33 -0
  13. package/prisca/v1/business_fields/business_fields_pb.js +356 -0
  14. package/prisca/v1/core/access_api/access_api_grpc_pb.js +204 -0
  15. package/prisca/v1/core/access_api/access_api_pb.js +3024 -0
  16. package/prisca/v1/core/access_manager/access_manager_grpc_pb.js +66 -0
  17. package/prisca/v1/core/access_manager/access_manager_pb.js +1758 -19
  18. package/prisca/v1/core/attribute/attribute_grpc_pb.js +474 -0
  19. package/prisca/v1/core/attribute/attribute_pb.js +6550 -0
  20. package/prisca/v1/core/auth/auth_grpc_pb.js +22 -0
  21. package/prisca/v1/core/auth/auth_pb.js +152 -0
  22. package/prisca/v1/core/commodity/commodity_grpc_pb.js +156 -0
  23. package/prisca/v1/core/commodity/commodity_pb.js +1988 -0
  24. package/prisca/v1/core/employee/employee_grpc_pb.js +14 -3
  25. package/prisca/v1/core/employee/employee_pb.js +203 -0
  26. package/prisca/v1/core/identity_provider/identity_provider_grpc_pb.js +156 -0
  27. package/prisca/v1/core/identity_provider/identity_provider_pb.js +2018 -0
  28. package/prisca/v1/core/item_transaction/item_transaction_pb.js +102 -12
  29. package/prisca/v1/core/line_of_approval_delegation/line_of_approval_delegation_pb.js +65 -35
  30. package/prisca/v1/core/material/material_grpc_pb.js +2 -0
  31. package/prisca/v1/core/material/material_pb.js +420 -2
  32. package/prisca/v1/core/messaging/email_template_grpc_pb.js +33 -0
  33. package/prisca/v1/core/messaging/email_template_pb.js +385 -0
  34. package/prisca/v1/core/number_range/number_range_grpc_pb.js +33 -0
  35. package/prisca/v1/core/number_range/number_range_pb.js +385 -0
  36. package/prisca/v1/core/report/report_pb.js +31 -1
  37. package/prisca/v1/core/tax_code/tax_code_pb.js +14 -14
  38. package/prisca/v1/core/transaction_builder/transaction_builder_grpc_pb.js +33 -0
  39. package/prisca/v1/core/transaction_builder/transaction_builder_pb.js +364 -0
  40. package/prisca/v1/core/users/users_grpc_pb.js +1 -0
  41. package/prisca/v1/core/users/users_pb.js +2 -0
  42. package/prisca/v1/delivery_order/delivery_order_grpc_pb.js +33 -0
  43. package/prisca/v1/delivery_order/delivery_order_pb.js +31 -1
  44. package/prisca/v1/good_receipt/good_receipt_grpc_pb.js +33 -0
  45. package/prisca/v1/good_receipt/good_receipt_pb.js +36 -6
  46. package/prisca/v1/invoice/invoice_grpc_pb.js +33 -0
  47. package/prisca/v1/purchase_order/purchase_order_grpc_pb.js +33 -0
  48. package/prisca/v1/purchase_order/purchase_order_pb.js +717 -29
  49. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_grpc_pb.js +35 -0
  50. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_pb.js +112 -57
  51. package/prisca/v1/quotation/quotation_pb.js +55 -2
  52. package/prisca/v1/request_for_quotation/request_for_quotation_pb.js +0 -123
  53. package/prisca/v1/vendor_domain/vendor_domain_grpc_pb.js +34 -0
  54. package/prisca/v1/vendor_domain/vendor_domain_pb.js +1365 -0
@@ -209,6 +209,17 @@ function deserialize_LoginRequest(buffer_arg) {
209
209
  return prisca_v1_core_auth_auth_pb.LoginRequest.deserializeBinary(new Uint8Array(buffer_arg));
210
210
  }
211
211
 
212
+ function serialize_LoginRequestAccessKey(arg) {
213
+ if (!(arg instanceof prisca_v1_core_auth_auth_pb.LoginRequestAccessKey)) {
214
+ throw new Error('Expected argument of type LoginRequestAccessKey');
215
+ }
216
+ return Buffer.from(arg.serializeBinary());
217
+ }
218
+
219
+ function deserialize_LoginRequestAccessKey(buffer_arg) {
220
+ return prisca_v1_core_auth_auth_pb.LoginRequestAccessKey.deserializeBinary(new Uint8Array(buffer_arg));
221
+ }
222
+
212
223
  function serialize_LoginRequestVendor(arg) {
213
224
  if (!(arg instanceof prisca_v1_core_auth_auth_pb.LoginRequestVendor)) {
214
225
  throw new Error('Expected argument of type LoginRequestVendor');
@@ -354,6 +365,17 @@ var AuthServiceService = exports.AuthServiceService = {
354
365
  responseSerialize: serialize_UserResponse,
355
366
  responseDeserialize: deserialize_UserResponse,
356
367
  },
368
+ generateTokenByAccessKey: {
369
+ path: '/AuthService/GenerateTokenByAccessKey',
370
+ requestStream: false,
371
+ responseStream: false,
372
+ requestType: prisca_v1_core_auth_auth_pb.LoginRequestAccessKey,
373
+ responseType: prisca_v1_core_auth_auth_pb.UserResponse,
374
+ requestSerialize: serialize_LoginRequestAccessKey,
375
+ requestDeserialize: deserialize_LoginRequestAccessKey,
376
+ responseSerialize: serialize_UserResponse,
377
+ responseDeserialize: deserialize_UserResponse,
378
+ },
357
379
  loginUserVendor: {
358
380
  path: '/AuthService/LoginUserVendor',
359
381
  requestStream: false,
@@ -41,6 +41,7 @@ goog.exportSymbol('proto.GetListUserRequest', null, global);
41
41
  goog.exportSymbol('proto.GetListUserResponse', null, global);
42
42
  goog.exportSymbol('proto.ListAccessResponse', null, global);
43
43
  goog.exportSymbol('proto.LoginRequest', null, global);
44
+ goog.exportSymbol('proto.LoginRequestAccessKey', null, global);
44
45
  goog.exportSymbol('proto.LoginRequestVendor', null, global);
45
46
  goog.exportSymbol('proto.RequestForgotPasswordReq', null, global);
46
47
  goog.exportSymbol('proto.RequestForgotResponse', null, global);
@@ -156,6 +157,27 @@ if (goog.DEBUG && !COMPILED) {
156
157
  */
157
158
  proto.LoginRequestVendor.displayName = 'proto.LoginRequestVendor';
158
159
  }
160
+ /**
161
+ * Generated by JsPbCodeGenerator.
162
+ * @param {Array=} opt_data Optional initial data array, typically from a
163
+ * server response, or constructed directly in Javascript. The array is used
164
+ * in place and becomes part of the constructed object. It is not cloned.
165
+ * If no data is provided, the constructed object will be empty, but still
166
+ * valid.
167
+ * @extends {jspb.Message}
168
+ * @constructor
169
+ */
170
+ proto.LoginRequestAccessKey = function(opt_data) {
171
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
172
+ };
173
+ goog.inherits(proto.LoginRequestAccessKey, jspb.Message);
174
+ if (goog.DEBUG && !COMPILED) {
175
+ /**
176
+ * @public
177
+ * @override
178
+ */
179
+ proto.LoginRequestAccessKey.displayName = 'proto.LoginRequestAccessKey';
180
+ }
159
181
  /**
160
182
  * Generated by JsPbCodeGenerator.
161
183
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -1403,6 +1425,136 @@ proto.LoginRequestVendor.prototype.setVendorReferencesId = function(value) {
1403
1425
 
1404
1426
 
1405
1427
 
1428
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1429
+ /**
1430
+ * Creates an object representation of this proto.
1431
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1432
+ * Optional fields that are not set will be set to undefined.
1433
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1434
+ * For the list of reserved names please see:
1435
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1436
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1437
+ * JSPB instance for transitional soy proto support:
1438
+ * http://goto/soy-param-migration
1439
+ * @return {!Object}
1440
+ */
1441
+ proto.LoginRequestAccessKey.prototype.toObject = function(opt_includeInstance) {
1442
+ return proto.LoginRequestAccessKey.toObject(opt_includeInstance, this);
1443
+ };
1444
+
1445
+
1446
+ /**
1447
+ * Static version of the {@see toObject} method.
1448
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1449
+ * the JSPB instance for transitional soy proto support:
1450
+ * http://goto/soy-param-migration
1451
+ * @param {!proto.LoginRequestAccessKey} msg The msg instance to transform.
1452
+ * @return {!Object}
1453
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1454
+ */
1455
+ proto.LoginRequestAccessKey.toObject = function(includeInstance, msg) {
1456
+ var f, obj = {
1457
+ secretKey: jspb.Message.getFieldWithDefault(msg, 1, "")
1458
+ };
1459
+
1460
+ if (includeInstance) {
1461
+ obj.$jspbMessageInstance = msg;
1462
+ }
1463
+ return obj;
1464
+ };
1465
+ }
1466
+
1467
+
1468
+ /**
1469
+ * Deserializes binary data (in protobuf wire format).
1470
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1471
+ * @return {!proto.LoginRequestAccessKey}
1472
+ */
1473
+ proto.LoginRequestAccessKey.deserializeBinary = function(bytes) {
1474
+ var reader = new jspb.BinaryReader(bytes);
1475
+ var msg = new proto.LoginRequestAccessKey;
1476
+ return proto.LoginRequestAccessKey.deserializeBinaryFromReader(msg, reader);
1477
+ };
1478
+
1479
+
1480
+ /**
1481
+ * Deserializes binary data (in protobuf wire format) from the
1482
+ * given reader into the given message object.
1483
+ * @param {!proto.LoginRequestAccessKey} msg The message object to deserialize into.
1484
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1485
+ * @return {!proto.LoginRequestAccessKey}
1486
+ */
1487
+ proto.LoginRequestAccessKey.deserializeBinaryFromReader = function(msg, reader) {
1488
+ while (reader.nextField()) {
1489
+ if (reader.isEndGroup()) {
1490
+ break;
1491
+ }
1492
+ var field = reader.getFieldNumber();
1493
+ switch (field) {
1494
+ case 1:
1495
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1496
+ msg.setSecretKey(value);
1497
+ break;
1498
+ default:
1499
+ reader.skipField();
1500
+ break;
1501
+ }
1502
+ }
1503
+ return msg;
1504
+ };
1505
+
1506
+
1507
+ /**
1508
+ * Serializes the message to binary data (in protobuf wire format).
1509
+ * @return {!Uint8Array}
1510
+ */
1511
+ proto.LoginRequestAccessKey.prototype.serializeBinary = function() {
1512
+ var writer = new jspb.BinaryWriter();
1513
+ proto.LoginRequestAccessKey.serializeBinaryToWriter(this, writer);
1514
+ return writer.getResultBuffer();
1515
+ };
1516
+
1517
+
1518
+ /**
1519
+ * Serializes the given message to binary data (in protobuf wire
1520
+ * format), writing to the given BinaryWriter.
1521
+ * @param {!proto.LoginRequestAccessKey} message
1522
+ * @param {!jspb.BinaryWriter} writer
1523
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1524
+ */
1525
+ proto.LoginRequestAccessKey.serializeBinaryToWriter = function(message, writer) {
1526
+ var f = undefined;
1527
+ f = message.getSecretKey();
1528
+ if (f.length > 0) {
1529
+ writer.writeString(
1530
+ 1,
1531
+ f
1532
+ );
1533
+ }
1534
+ };
1535
+
1536
+
1537
+ /**
1538
+ * optional string secret_key = 1;
1539
+ * @return {string}
1540
+ */
1541
+ proto.LoginRequestAccessKey.prototype.getSecretKey = function() {
1542
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1543
+ };
1544
+
1545
+
1546
+ /**
1547
+ * @param {string} value
1548
+ * @return {!proto.LoginRequestAccessKey} returns this
1549
+ */
1550
+ proto.LoginRequestAccessKey.prototype.setSecretKey = function(value) {
1551
+ return jspb.Message.setProto3StringField(this, 1, value);
1552
+ };
1553
+
1554
+
1555
+
1556
+
1557
+
1406
1558
  if (jspb.Message.GENERATE_TO_OBJECT) {
1407
1559
  /**
1408
1560
  * Creates an object representation of this proto.
@@ -0,0 +1,156 @@
1
+ // GENERATED CODE -- DO NOT EDIT!
2
+
3
+ 'use strict';
4
+ var grpc = require('@grpc/grpc-js');
5
+ var prisca_v1_core_commodity_commodity_pb = require('../../../../prisca/v1/core/commodity/commodity_pb.js');
6
+ var prisca_v1_global_meta_meta_pb = require('../../../../prisca/v1/global/meta/meta_pb.js');
7
+ var prisca_v1_core_company_company_pb = require('../../../../prisca/v1/core/company/company_pb.js');
8
+
9
+ function serialize_Commodity(arg) {
10
+ if (!(arg instanceof prisca_v1_core_commodity_commodity_pb.Commodity)) {
11
+ throw new Error('Expected argument of type Commodity');
12
+ }
13
+ return Buffer.from(arg.serializeBinary());
14
+ }
15
+
16
+ function deserialize_Commodity(buffer_arg) {
17
+ return prisca_v1_core_commodity_commodity_pb.Commodity.deserializeBinary(new Uint8Array(buffer_arg));
18
+ }
19
+
20
+ function serialize_CommodityGetByIdRequest(arg) {
21
+ if (!(arg instanceof prisca_v1_core_commodity_commodity_pb.CommodityGetByIdRequest)) {
22
+ throw new Error('Expected argument of type CommodityGetByIdRequest');
23
+ }
24
+ return Buffer.from(arg.serializeBinary());
25
+ }
26
+
27
+ function deserialize_CommodityGetByIdRequest(buffer_arg) {
28
+ return prisca_v1_core_commodity_commodity_pb.CommodityGetByIdRequest.deserializeBinary(new Uint8Array(buffer_arg));
29
+ }
30
+
31
+ function serialize_CreateCommodityRequest(arg) {
32
+ if (!(arg instanceof prisca_v1_core_commodity_commodity_pb.CreateCommodityRequest)) {
33
+ throw new Error('Expected argument of type CreateCommodityRequest');
34
+ }
35
+ return Buffer.from(arg.serializeBinary());
36
+ }
37
+
38
+ function deserialize_CreateCommodityRequest(buffer_arg) {
39
+ return prisca_v1_core_commodity_commodity_pb.CreateCommodityRequest.deserializeBinary(new Uint8Array(buffer_arg));
40
+ }
41
+
42
+ function serialize_DeleteCommodityRequest(arg) {
43
+ if (!(arg instanceof prisca_v1_core_commodity_commodity_pb.DeleteCommodityRequest)) {
44
+ throw new Error('Expected argument of type DeleteCommodityRequest');
45
+ }
46
+ return Buffer.from(arg.serializeBinary());
47
+ }
48
+
49
+ function deserialize_DeleteCommodityRequest(buffer_arg) {
50
+ return prisca_v1_core_commodity_commodity_pb.DeleteCommodityRequest.deserializeBinary(new Uint8Array(buffer_arg));
51
+ }
52
+
53
+ function serialize_DeleteCommodityResponse(arg) {
54
+ if (!(arg instanceof prisca_v1_core_commodity_commodity_pb.DeleteCommodityResponse)) {
55
+ throw new Error('Expected argument of type DeleteCommodityResponse');
56
+ }
57
+ return Buffer.from(arg.serializeBinary());
58
+ }
59
+
60
+ function deserialize_DeleteCommodityResponse(buffer_arg) {
61
+ return prisca_v1_core_commodity_commodity_pb.DeleteCommodityResponse.deserializeBinary(new Uint8Array(buffer_arg));
62
+ }
63
+
64
+ function serialize_GetListCommodityRequest(arg) {
65
+ if (!(arg instanceof prisca_v1_core_commodity_commodity_pb.GetListCommodityRequest)) {
66
+ throw new Error('Expected argument of type GetListCommodityRequest');
67
+ }
68
+ return Buffer.from(arg.serializeBinary());
69
+ }
70
+
71
+ function deserialize_GetListCommodityRequest(buffer_arg) {
72
+ return prisca_v1_core_commodity_commodity_pb.GetListCommodityRequest.deserializeBinary(new Uint8Array(buffer_arg));
73
+ }
74
+
75
+ function serialize_GetListCommodityResponse(arg) {
76
+ if (!(arg instanceof prisca_v1_core_commodity_commodity_pb.GetListCommodityResponse)) {
77
+ throw new Error('Expected argument of type GetListCommodityResponse');
78
+ }
79
+ return Buffer.from(arg.serializeBinary());
80
+ }
81
+
82
+ function deserialize_GetListCommodityResponse(buffer_arg) {
83
+ return prisca_v1_core_commodity_commodity_pb.GetListCommodityResponse.deserializeBinary(new Uint8Array(buffer_arg));
84
+ }
85
+
86
+ function serialize_UpdateCommodityRequest(arg) {
87
+ if (!(arg instanceof prisca_v1_core_commodity_commodity_pb.UpdateCommodityRequest)) {
88
+ throw new Error('Expected argument of type UpdateCommodityRequest');
89
+ }
90
+ return Buffer.from(arg.serializeBinary());
91
+ }
92
+
93
+ function deserialize_UpdateCommodityRequest(buffer_arg) {
94
+ return prisca_v1_core_commodity_commodity_pb.UpdateCommodityRequest.deserializeBinary(new Uint8Array(buffer_arg));
95
+ }
96
+
97
+
98
+ var CommodityServiceService = exports.CommodityServiceService = {
99
+ createCommodity: {
100
+ path: '/CommodityService/CreateCommodity',
101
+ requestStream: false,
102
+ responseStream: false,
103
+ requestType: prisca_v1_core_commodity_commodity_pb.CreateCommodityRequest,
104
+ responseType: prisca_v1_core_commodity_commodity_pb.Commodity,
105
+ requestSerialize: serialize_CreateCommodityRequest,
106
+ requestDeserialize: deserialize_CreateCommodityRequest,
107
+ responseSerialize: serialize_Commodity,
108
+ responseDeserialize: deserialize_Commodity,
109
+ },
110
+ getCommodityById: {
111
+ path: '/CommodityService/GetCommodityById',
112
+ requestStream: false,
113
+ responseStream: false,
114
+ requestType: prisca_v1_core_commodity_commodity_pb.CommodityGetByIdRequest,
115
+ responseType: prisca_v1_core_commodity_commodity_pb.Commodity,
116
+ requestSerialize: serialize_CommodityGetByIdRequest,
117
+ requestDeserialize: deserialize_CommodityGetByIdRequest,
118
+ responseSerialize: serialize_Commodity,
119
+ responseDeserialize: deserialize_Commodity,
120
+ },
121
+ updateCommodity: {
122
+ path: '/CommodityService/UpdateCommodity',
123
+ requestStream: false,
124
+ responseStream: false,
125
+ requestType: prisca_v1_core_commodity_commodity_pb.UpdateCommodityRequest,
126
+ responseType: prisca_v1_core_commodity_commodity_pb.Commodity,
127
+ requestSerialize: serialize_UpdateCommodityRequest,
128
+ requestDeserialize: deserialize_UpdateCommodityRequest,
129
+ responseSerialize: serialize_Commodity,
130
+ responseDeserialize: deserialize_Commodity,
131
+ },
132
+ deleteCommodity: {
133
+ path: '/CommodityService/DeleteCommodity',
134
+ requestStream: false,
135
+ responseStream: false,
136
+ requestType: prisca_v1_core_commodity_commodity_pb.DeleteCommodityRequest,
137
+ responseType: prisca_v1_core_commodity_commodity_pb.DeleteCommodityResponse,
138
+ requestSerialize: serialize_DeleteCommodityRequest,
139
+ requestDeserialize: deserialize_DeleteCommodityRequest,
140
+ responseSerialize: serialize_DeleteCommodityResponse,
141
+ responseDeserialize: deserialize_DeleteCommodityResponse,
142
+ },
143
+ getListCommodity: {
144
+ path: '/CommodityService/GetListCommodity',
145
+ requestStream: false,
146
+ responseStream: false,
147
+ requestType: prisca_v1_core_commodity_commodity_pb.GetListCommodityRequest,
148
+ responseType: prisca_v1_core_commodity_commodity_pb.GetListCommodityResponse,
149
+ requestSerialize: serialize_GetListCommodityRequest,
150
+ requestDeserialize: deserialize_GetListCommodityRequest,
151
+ responseSerialize: serialize_GetListCommodityResponse,
152
+ responseDeserialize: deserialize_GetListCommodityResponse,
153
+ },
154
+ };
155
+
156
+ exports.CommodityServiceClient = grpc.makeGenericClientConstructor(CommodityServiceService, 'CommodityService');