@aldiokta/protocgen 1.1.26 → 1.1.27

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.
@@ -2622,7 +2622,9 @@ createdAt: jspb.Message.getFieldWithDefault(msg, 9, ""),
2622
2622
  updatedAt: jspb.Message.getFieldWithDefault(msg, 10, ""),
2623
2623
  code: jspb.Message.getFieldWithDefault(msg, 11, ""),
2624
2624
  isGeneral: jspb.Message.getBooleanFieldWithDefault(msg, 12, false),
2625
- properties: jspb.Message.getFieldWithDefault(msg, 13, "")
2625
+ properties: jspb.Message.getFieldWithDefault(msg, 13, ""),
2626
+ unitOfMeasure: jspb.Message.getFieldWithDefault(msg, 14, ""),
2627
+ currency: jspb.Message.getFieldWithDefault(msg, 15, "")
2626
2628
  };
2627
2629
 
2628
2630
  if (includeInstance) {
@@ -2711,6 +2713,14 @@ proto.ItemTransactionPriceCondition.deserializeBinaryFromReader = function(msg,
2711
2713
  var value = /** @type {string} */ (reader.readString());
2712
2714
  msg.setProperties(value);
2713
2715
  break;
2716
+ case 14:
2717
+ var value = /** @type {string} */ (reader.readString());
2718
+ msg.setUnitOfMeasure(value);
2719
+ break;
2720
+ case 15:
2721
+ var value = /** @type {string} */ (reader.readString());
2722
+ msg.setCurrency(value);
2723
+ break;
2714
2724
  default:
2715
2725
  reader.skipField();
2716
2726
  break;
@@ -2831,6 +2841,20 @@ proto.ItemTransactionPriceCondition.serializeBinaryToWriter = function(message,
2831
2841
  f
2832
2842
  );
2833
2843
  }
2844
+ f = message.getUnitOfMeasure();
2845
+ if (f.length > 0) {
2846
+ writer.writeString(
2847
+ 14,
2848
+ f
2849
+ );
2850
+ }
2851
+ f = message.getCurrency();
2852
+ if (f.length > 0) {
2853
+ writer.writeString(
2854
+ 15,
2855
+ f
2856
+ );
2857
+ }
2834
2858
  };
2835
2859
 
2836
2860
 
@@ -3068,6 +3092,42 @@ proto.ItemTransactionPriceCondition.prototype.setProperties = function(value) {
3068
3092
  };
3069
3093
 
3070
3094
 
3095
+ /**
3096
+ * optional string unit_of_measure = 14;
3097
+ * @return {string}
3098
+ */
3099
+ proto.ItemTransactionPriceCondition.prototype.getUnitOfMeasure = function() {
3100
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, ""));
3101
+ };
3102
+
3103
+
3104
+ /**
3105
+ * @param {string} value
3106
+ * @return {!proto.ItemTransactionPriceCondition} returns this
3107
+ */
3108
+ proto.ItemTransactionPriceCondition.prototype.setUnitOfMeasure = function(value) {
3109
+ return jspb.Message.setProto3StringField(this, 14, value);
3110
+ };
3111
+
3112
+
3113
+ /**
3114
+ * optional string currency = 15;
3115
+ * @return {string}
3116
+ */
3117
+ proto.ItemTransactionPriceCondition.prototype.getCurrency = function() {
3118
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, ""));
3119
+ };
3120
+
3121
+
3122
+ /**
3123
+ * @param {string} value
3124
+ * @return {!proto.ItemTransactionPriceCondition} returns this
3125
+ */
3126
+ proto.ItemTransactionPriceCondition.prototype.setCurrency = function(value) {
3127
+ return jspb.Message.setProto3StringField(this, 15, value);
3128
+ };
3129
+
3130
+
3071
3131
 
3072
3132
  /**
3073
3133
  * List of repeated fields within this message type.
@@ -3131,7 +3191,9 @@ currency: jspb.Message.getFieldWithDefault(msg, 18, ""),
3131
3191
  referencesId: jspb.Message.getFieldWithDefault(msg, 19, ""),
3132
3192
  purchaseRequisitionTransactionNumber: jspb.Message.getFieldWithDefault(msg, 20, ""),
3133
3193
  itemTransactionServiceList: jspb.Message.toObjectList(msg.getItemTransactionServiceList(),
3134
- proto.BaseItemTransactionService.toObject, includeInstance)
3194
+ proto.BaseItemTransactionService.toObject, includeInstance),
3195
+ purchaseRequisitionQuantity: jspb.Message.getFieldWithDefault(msg, 22, ""),
3196
+ purchaseRequisitionPrice: jspb.Message.getFieldWithDefault(msg, 23, "")
3135
3197
  };
3136
3198
 
3137
3199
  if (includeInstance) {
@@ -3256,6 +3318,14 @@ proto.BaseItemTransaction.deserializeBinaryFromReader = function(msg, reader) {
3256
3318
  reader.readMessage(value,proto.BaseItemTransactionService.deserializeBinaryFromReader);
3257
3319
  msg.addItemTransactionService(value);
3258
3320
  break;
3321
+ case 22:
3322
+ var value = /** @type {string} */ (reader.readString());
3323
+ msg.setPurchaseRequisitionQuantity(value);
3324
+ break;
3325
+ case 23:
3326
+ var value = /** @type {string} */ (reader.readString());
3327
+ msg.setPurchaseRequisitionPrice(value);
3328
+ break;
3259
3329
  default:
3260
3330
  reader.skipField();
3261
3331
  break;
@@ -3436,6 +3506,20 @@ proto.BaseItemTransaction.serializeBinaryToWriter = function(message, writer) {
3436
3506
  proto.BaseItemTransactionService.serializeBinaryToWriter
3437
3507
  );
3438
3508
  }
3509
+ f = message.getPurchaseRequisitionQuantity();
3510
+ if (f.length > 0) {
3511
+ writer.writeString(
3512
+ 22,
3513
+ f
3514
+ );
3515
+ }
3516
+ f = message.getPurchaseRequisitionPrice();
3517
+ if (f.length > 0) {
3518
+ writer.writeString(
3519
+ 23,
3520
+ f
3521
+ );
3522
+ }
3439
3523
  };
3440
3524
 
3441
3525
 
@@ -3897,6 +3981,42 @@ proto.BaseItemTransaction.prototype.clearItemTransactionServiceList = function()
3897
3981
  };
3898
3982
 
3899
3983
 
3984
+ /**
3985
+ * optional string purchase_requisition_quantity = 22;
3986
+ * @return {string}
3987
+ */
3988
+ proto.BaseItemTransaction.prototype.getPurchaseRequisitionQuantity = function() {
3989
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 22, ""));
3990
+ };
3991
+
3992
+
3993
+ /**
3994
+ * @param {string} value
3995
+ * @return {!proto.BaseItemTransaction} returns this
3996
+ */
3997
+ proto.BaseItemTransaction.prototype.setPurchaseRequisitionQuantity = function(value) {
3998
+ return jspb.Message.setProto3StringField(this, 22, value);
3999
+ };
4000
+
4001
+
4002
+ /**
4003
+ * optional string purchase_requisition_price = 23;
4004
+ * @return {string}
4005
+ */
4006
+ proto.BaseItemTransaction.prototype.getPurchaseRequisitionPrice = function() {
4007
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 23, ""));
4008
+ };
4009
+
4010
+
4011
+ /**
4012
+ * @param {string} value
4013
+ * @return {!proto.BaseItemTransaction} returns this
4014
+ */
4015
+ proto.BaseItemTransaction.prototype.setPurchaseRequisitionPrice = function(value) {
4016
+ return jspb.Message.setProto3StringField(this, 23, value);
4017
+ };
4018
+
4019
+
3900
4020
 
3901
4021
  /**
3902
4022
  * List of repeated fields within this message type.
@@ -5037,7 +5157,9 @@ name: jspb.Message.getFieldWithDefault(msg, 5, ""),
5037
5157
  itemTransactionRef: jspb.Message.getFieldWithDefault(msg, 6, ""),
5038
5158
  code: jspb.Message.getFieldWithDefault(msg, 7, ""),
5039
5159
  isGeneral: jspb.Message.getBooleanFieldWithDefault(msg, 8, false),
5040
- properties: jspb.Message.getFieldWithDefault(msg, 9, "")
5160
+ properties: jspb.Message.getFieldWithDefault(msg, 9, ""),
5161
+ unitOfMeasure: jspb.Message.getFieldWithDefault(msg, 10, ""),
5162
+ currency: jspb.Message.getFieldWithDefault(msg, 11, "")
5041
5163
  };
5042
5164
 
5043
5165
  if (includeInstance) {
@@ -5110,6 +5232,14 @@ proto.BaseItemTransactionPriceCondition.deserializeBinaryFromReader = function(m
5110
5232
  var value = /** @type {string} */ (reader.readString());
5111
5233
  msg.setProperties(value);
5112
5234
  break;
5235
+ case 10:
5236
+ var value = /** @type {string} */ (reader.readString());
5237
+ msg.setUnitOfMeasure(value);
5238
+ break;
5239
+ case 11:
5240
+ var value = /** @type {string} */ (reader.readString());
5241
+ msg.setCurrency(value);
5242
+ break;
5113
5243
  default:
5114
5244
  reader.skipField();
5115
5245
  break;
@@ -5202,6 +5332,20 @@ proto.BaseItemTransactionPriceCondition.serializeBinaryToWriter = function(messa
5202
5332
  f
5203
5333
  );
5204
5334
  }
5335
+ f = message.getUnitOfMeasure();
5336
+ if (f.length > 0) {
5337
+ writer.writeString(
5338
+ 10,
5339
+ f
5340
+ );
5341
+ }
5342
+ f = message.getCurrency();
5343
+ if (f.length > 0) {
5344
+ writer.writeString(
5345
+ 11,
5346
+ f
5347
+ );
5348
+ }
5205
5349
  };
5206
5350
 
5207
5351
 
@@ -5367,4 +5511,40 @@ proto.BaseItemTransactionPriceCondition.prototype.setProperties = function(value
5367
5511
  };
5368
5512
 
5369
5513
 
5514
+ /**
5515
+ * optional string unit_of_measure = 10;
5516
+ * @return {string}
5517
+ */
5518
+ proto.BaseItemTransactionPriceCondition.prototype.getUnitOfMeasure = function() {
5519
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
5520
+ };
5521
+
5522
+
5523
+ /**
5524
+ * @param {string} value
5525
+ * @return {!proto.BaseItemTransactionPriceCondition} returns this
5526
+ */
5527
+ proto.BaseItemTransactionPriceCondition.prototype.setUnitOfMeasure = function(value) {
5528
+ return jspb.Message.setProto3StringField(this, 10, value);
5529
+ };
5530
+
5531
+
5532
+ /**
5533
+ * optional string currency = 11;
5534
+ * @return {string}
5535
+ */
5536
+ proto.BaseItemTransactionPriceCondition.prototype.getCurrency = function() {
5537
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
5538
+ };
5539
+
5540
+
5541
+ /**
5542
+ * @param {string} value
5543
+ * @return {!proto.BaseItemTransactionPriceCondition} returns this
5544
+ */
5545
+ proto.BaseItemTransactionPriceCondition.prototype.setCurrency = function(value) {
5546
+ return jspb.Message.setProto3StringField(this, 11, value);
5547
+ };
5548
+
5549
+
5370
5550
  goog.object.extend(exports, proto);
@@ -0,0 +1,188 @@
1
+ // GENERATED CODE -- DO NOT EDIT!
2
+
3
+ 'use strict';
4
+ var grpc = require('@grpc/grpc-js');
5
+ var prisca_v1_core_messaging_notification_pb = require('../../../../prisca/v1/core/messaging/notification_pb.js');
6
+ var prisca_v1_global_meta_meta_pb = require('../../../../prisca/v1/global/meta/meta_pb.js');
7
+
8
+ function serialize_CreateNotificationReq(arg) {
9
+ if (!(arg instanceof prisca_v1_core_messaging_notification_pb.CreateNotificationReq)) {
10
+ throw new Error('Expected argument of type CreateNotificationReq');
11
+ }
12
+ return Buffer.from(arg.serializeBinary());
13
+ }
14
+
15
+ function deserialize_CreateNotificationReq(buffer_arg) {
16
+ return prisca_v1_core_messaging_notification_pb.CreateNotificationReq.deserializeBinary(new Uint8Array(buffer_arg));
17
+ }
18
+
19
+ function serialize_CreateNotificationRes(arg) {
20
+ if (!(arg instanceof prisca_v1_core_messaging_notification_pb.CreateNotificationRes)) {
21
+ throw new Error('Expected argument of type CreateNotificationRes');
22
+ }
23
+ return Buffer.from(arg.serializeBinary());
24
+ }
25
+
26
+ function deserialize_CreateNotificationRes(buffer_arg) {
27
+ return prisca_v1_core_messaging_notification_pb.CreateNotificationRes.deserializeBinary(new Uint8Array(buffer_arg));
28
+ }
29
+
30
+ function serialize_DeleteNotificationEmployeeReq(arg) {
31
+ if (!(arg instanceof prisca_v1_core_messaging_notification_pb.DeleteNotificationEmployeeReq)) {
32
+ throw new Error('Expected argument of type DeleteNotificationEmployeeReq');
33
+ }
34
+ return Buffer.from(arg.serializeBinary());
35
+ }
36
+
37
+ function deserialize_DeleteNotificationEmployeeReq(buffer_arg) {
38
+ return prisca_v1_core_messaging_notification_pb.DeleteNotificationEmployeeReq.deserializeBinary(new Uint8Array(buffer_arg));
39
+ }
40
+
41
+ function serialize_DeleteNotificationEmployeeRes(arg) {
42
+ if (!(arg instanceof prisca_v1_core_messaging_notification_pb.DeleteNotificationEmployeeRes)) {
43
+ throw new Error('Expected argument of type DeleteNotificationEmployeeRes');
44
+ }
45
+ return Buffer.from(arg.serializeBinary());
46
+ }
47
+
48
+ function deserialize_DeleteNotificationEmployeeRes(buffer_arg) {
49
+ return prisca_v1_core_messaging_notification_pb.DeleteNotificationEmployeeRes.deserializeBinary(new Uint8Array(buffer_arg));
50
+ }
51
+
52
+ function serialize_EmptyMessage(arg) {
53
+ if (!(arg instanceof prisca_v1_core_messaging_notification_pb.EmptyMessage)) {
54
+ throw new Error('Expected argument of type EmptyMessage');
55
+ }
56
+ return Buffer.from(arg.serializeBinary());
57
+ }
58
+
59
+ function deserialize_EmptyMessage(buffer_arg) {
60
+ return prisca_v1_core_messaging_notification_pb.EmptyMessage.deserializeBinary(new Uint8Array(buffer_arg));
61
+ }
62
+
63
+ function serialize_GetListNotificationEmployeeReq(arg) {
64
+ if (!(arg instanceof prisca_v1_core_messaging_notification_pb.GetListNotificationEmployeeReq)) {
65
+ throw new Error('Expected argument of type GetListNotificationEmployeeReq');
66
+ }
67
+ return Buffer.from(arg.serializeBinary());
68
+ }
69
+
70
+ function deserialize_GetListNotificationEmployeeReq(buffer_arg) {
71
+ return prisca_v1_core_messaging_notification_pb.GetListNotificationEmployeeReq.deserializeBinary(new Uint8Array(buffer_arg));
72
+ }
73
+
74
+ function serialize_GetListNotificationEmployeeRes(arg) {
75
+ if (!(arg instanceof prisca_v1_core_messaging_notification_pb.GetListNotificationEmployeeRes)) {
76
+ throw new Error('Expected argument of type GetListNotificationEmployeeRes');
77
+ }
78
+ return Buffer.from(arg.serializeBinary());
79
+ }
80
+
81
+ function deserialize_GetListNotificationEmployeeRes(buffer_arg) {
82
+ return prisca_v1_core_messaging_notification_pb.GetListNotificationEmployeeRes.deserializeBinary(new Uint8Array(buffer_arg));
83
+ }
84
+
85
+ function serialize_NotificationEmployeeItem(arg) {
86
+ if (!(arg instanceof prisca_v1_core_messaging_notification_pb.NotificationEmployeeItem)) {
87
+ throw new Error('Expected argument of type NotificationEmployeeItem');
88
+ }
89
+ return Buffer.from(arg.serializeBinary());
90
+ }
91
+
92
+ function deserialize_NotificationEmployeeItem(buffer_arg) {
93
+ return prisca_v1_core_messaging_notification_pb.NotificationEmployeeItem.deserializeBinary(new Uint8Array(buffer_arg));
94
+ }
95
+
96
+ function serialize_ReferenceId(arg) {
97
+ if (!(arg instanceof prisca_v1_core_messaging_notification_pb.ReferenceId)) {
98
+ throw new Error('Expected argument of type ReferenceId');
99
+ }
100
+ return Buffer.from(arg.serializeBinary());
101
+ }
102
+
103
+ function deserialize_ReferenceId(buffer_arg) {
104
+ return prisca_v1_core_messaging_notification_pb.ReferenceId.deserializeBinary(new Uint8Array(buffer_arg));
105
+ }
106
+
107
+ function serialize_ReferenceIds(arg) {
108
+ if (!(arg instanceof prisca_v1_core_messaging_notification_pb.ReferenceIds)) {
109
+ throw new Error('Expected argument of type ReferenceIds');
110
+ }
111
+ return Buffer.from(arg.serializeBinary());
112
+ }
113
+
114
+ function deserialize_ReferenceIds(buffer_arg) {
115
+ return prisca_v1_core_messaging_notification_pb.ReferenceIds.deserializeBinary(new Uint8Array(buffer_arg));
116
+ }
117
+
118
+
119
+ var NotificationServiceService = exports.NotificationServiceService = {
120
+ createNotification: {
121
+ path: '/NotificationService/CreateNotification',
122
+ requestStream: false,
123
+ responseStream: false,
124
+ requestType: prisca_v1_core_messaging_notification_pb.CreateNotificationReq,
125
+ responseType: prisca_v1_core_messaging_notification_pb.CreateNotificationRes,
126
+ requestSerialize: serialize_CreateNotificationReq,
127
+ requestDeserialize: deserialize_CreateNotificationReq,
128
+ responseSerialize: serialize_CreateNotificationRes,
129
+ responseDeserialize: deserialize_CreateNotificationRes,
130
+ },
131
+ markAsReadNotificationEmployee: {
132
+ path: '/NotificationService/MarkAsReadNotificationEmployee',
133
+ requestStream: false,
134
+ responseStream: false,
135
+ requestType: prisca_v1_core_messaging_notification_pb.ReferenceIds,
136
+ responseType: prisca_v1_core_messaging_notification_pb.EmptyMessage,
137
+ requestSerialize: serialize_ReferenceIds,
138
+ requestDeserialize: deserialize_ReferenceIds,
139
+ responseSerialize: serialize_EmptyMessage,
140
+ responseDeserialize: deserialize_EmptyMessage,
141
+ },
142
+ markAsUnReadNotificationEmployee: {
143
+ path: '/NotificationService/MarkAsUnReadNotificationEmployee',
144
+ requestStream: false,
145
+ responseStream: false,
146
+ requestType: prisca_v1_core_messaging_notification_pb.ReferenceIds,
147
+ responseType: prisca_v1_core_messaging_notification_pb.EmptyMessage,
148
+ requestSerialize: serialize_ReferenceIds,
149
+ requestDeserialize: deserialize_ReferenceIds,
150
+ responseSerialize: serialize_EmptyMessage,
151
+ responseDeserialize: deserialize_EmptyMessage,
152
+ },
153
+ deleteNotificationEmployee: {
154
+ path: '/NotificationService/DeleteNotificationEmployee',
155
+ requestStream: false,
156
+ responseStream: false,
157
+ requestType: prisca_v1_core_messaging_notification_pb.DeleteNotificationEmployeeReq,
158
+ responseType: prisca_v1_core_messaging_notification_pb.DeleteNotificationEmployeeRes,
159
+ requestSerialize: serialize_DeleteNotificationEmployeeReq,
160
+ requestDeserialize: deserialize_DeleteNotificationEmployeeReq,
161
+ responseSerialize: serialize_DeleteNotificationEmployeeRes,
162
+ responseDeserialize: deserialize_DeleteNotificationEmployeeRes,
163
+ },
164
+ getListNotificationEmployee: {
165
+ path: '/NotificationService/GetListNotificationEmployee',
166
+ requestStream: false,
167
+ responseStream: false,
168
+ requestType: prisca_v1_core_messaging_notification_pb.GetListNotificationEmployeeReq,
169
+ responseType: prisca_v1_core_messaging_notification_pb.GetListNotificationEmployeeRes,
170
+ requestSerialize: serialize_GetListNotificationEmployeeReq,
171
+ requestDeserialize: deserialize_GetListNotificationEmployeeReq,
172
+ responseSerialize: serialize_GetListNotificationEmployeeRes,
173
+ responseDeserialize: deserialize_GetListNotificationEmployeeRes,
174
+ },
175
+ getNotificationEmployeeByReferenceId: {
176
+ path: '/NotificationService/GetNotificationEmployeeByReferenceId',
177
+ requestStream: false,
178
+ responseStream: false,
179
+ requestType: prisca_v1_core_messaging_notification_pb.ReferenceId,
180
+ responseType: prisca_v1_core_messaging_notification_pb.NotificationEmployeeItem,
181
+ requestSerialize: serialize_ReferenceId,
182
+ requestDeserialize: deserialize_ReferenceId,
183
+ responseSerialize: serialize_NotificationEmployeeItem,
184
+ responseDeserialize: deserialize_NotificationEmployeeItem,
185
+ },
186
+ };
187
+
188
+ exports.NotificationServiceClient = grpc.makeGenericClientConstructor(NotificationServiceService, 'NotificationService');