@aldiokta/protocgen 1.1.63 → 1.1.64

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.
@@ -983,7 +983,8 @@ biddingEndDate: jspb.Message.getFieldWithDefault(msg, 42, ""),
983
983
  requestForQuotationMethod: jspb.Message.getFieldWithDefault(msg, 43, ""),
984
984
  maxSubmissionDate: jspb.Message.getFieldWithDefault(msg, 44, ""),
985
985
  companies: (f = msg.getCompanies()) && prisca_v1_core_company_company_pb.BaseCompany.toObject(includeInstance, f),
986
- department: jspb.Message.getFieldWithDefault(msg, 46, "")
986
+ department: jspb.Message.getFieldWithDefault(msg, 46, ""),
987
+ documentType: jspb.Message.getFieldWithDefault(msg, 47, "")
987
988
  };
988
989
 
989
990
  if (includeInstance) {
@@ -1211,6 +1212,10 @@ proto.Quotation.deserializeBinaryFromReader = function(msg, reader) {
1211
1212
  var value = /** @type {string} */ (reader.readStringRequireUtf8());
1212
1213
  msg.setDepartment(value);
1213
1214
  break;
1215
+ case 47:
1216
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1217
+ msg.setDocumentType(value);
1218
+ break;
1214
1219
  default:
1215
1220
  reader.skipField();
1216
1221
  break;
@@ -1569,6 +1574,13 @@ proto.Quotation.serializeBinaryToWriter = function(message, writer) {
1569
1574
  f
1570
1575
  );
1571
1576
  }
1577
+ f = message.getDocumentType();
1578
+ if (f.length > 0) {
1579
+ writer.writeString(
1580
+ 47,
1581
+ f
1582
+ );
1583
+ }
1572
1584
  };
1573
1585
 
1574
1586
 
@@ -2535,6 +2547,24 @@ proto.Quotation.prototype.setDepartment = function(value) {
2535
2547
  };
2536
2548
 
2537
2549
 
2550
+ /**
2551
+ * optional string document_type = 47;
2552
+ * @return {string}
2553
+ */
2554
+ proto.Quotation.prototype.getDocumentType = function() {
2555
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 47, ""));
2556
+ };
2557
+
2558
+
2559
+ /**
2560
+ * @param {string} value
2561
+ * @return {!proto.Quotation} returns this
2562
+ */
2563
+ proto.Quotation.prototype.setDocumentType = function(value) {
2564
+ return jspb.Message.setProto3StringField(this, 47, value);
2565
+ };
2566
+
2567
+
2538
2568
 
2539
2569
  /**
2540
2570
  * List of repeated fields within this message type.
@@ -2604,7 +2634,7 @@ fullfiledQuotation: jspb.Message.getFieldWithDefault(msg, 26, 0),
2604
2634
  termOfPayment: jspb.Message.getFieldWithDefault(msg, 27, ""),
2605
2635
  purchasingOrganization: jspb.Message.getFieldWithDefault(msg, 28, ""),
2606
2636
  purchasingGroup: jspb.Message.getFieldWithDefault(msg, 29, ""),
2607
- purchaseRequisitionType: jspb.Message.getFieldWithDefault(msg, 30, ""),
2637
+ documentType: jspb.Message.getFieldWithDefault(msg, 30, ""),
2608
2638
  biddingDate: jspb.Message.getFieldWithDefault(msg, 31, ""),
2609
2639
  requestForQuotationMethod: jspb.Message.getFieldWithDefault(msg, 32, "")
2610
2640
  };
@@ -2764,7 +2794,7 @@ proto.Bidding.deserializeBinaryFromReader = function(msg, reader) {
2764
2794
  break;
2765
2795
  case 30:
2766
2796
  var value = /** @type {string} */ (reader.readStringRequireUtf8());
2767
- msg.setPurchaseRequisitionType(value);
2797
+ msg.setDocumentType(value);
2768
2798
  break;
2769
2799
  case 31:
2770
2800
  var value = /** @type {string} */ (reader.readStringRequireUtf8());
@@ -3009,7 +3039,7 @@ proto.Bidding.serializeBinaryToWriter = function(message, writer) {
3009
3039
  f
3010
3040
  );
3011
3041
  }
3012
- f = message.getPurchaseRequisitionType();
3042
+ f = message.getDocumentType();
3013
3043
  if (f.length > 0) {
3014
3044
  writer.writeString(
3015
3045
  30,
@@ -3614,10 +3644,10 @@ proto.Bidding.prototype.setPurchasingGroup = function(value) {
3614
3644
 
3615
3645
 
3616
3646
  /**
3617
- * optional string purchase_requisition_type = 30;
3647
+ * optional string document_type = 30;
3618
3648
  * @return {string}
3619
3649
  */
3620
- proto.Bidding.prototype.getPurchaseRequisitionType = function() {
3650
+ proto.Bidding.prototype.getDocumentType = function() {
3621
3651
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 30, ""));
3622
3652
  };
3623
3653
 
@@ -3626,7 +3656,7 @@ proto.Bidding.prototype.getPurchaseRequisitionType = function() {
3626
3656
  * @param {string} value
3627
3657
  * @return {!proto.Bidding} returns this
3628
3658
  */
3629
- proto.Bidding.prototype.setPurchaseRequisitionType = function(value) {
3659
+ proto.Bidding.prototype.setDocumentType = function(value) {
3630
3660
  return jspb.Message.setProto3StringField(this, 30, value);
3631
3661
  };
3632
3662
 
@@ -3942,7 +3972,7 @@ itemTransactionsList: jspb.Message.toObjectList(msg.getItemTransactionsList(),
3942
3972
  status: jspb.Message.getFieldWithDefault(msg, 14, ""),
3943
3973
  purchaseRequisitionTransactionNumber: jspb.Message.getFieldWithDefault(msg, 15, ""),
3944
3974
  groupReferences: jspb.Message.getFieldWithDefault(msg, 16, ""),
3945
- purchaseRequisitionType: jspb.Message.getFieldWithDefault(msg, 17, ""),
3975
+ documentType: jspb.Message.getFieldWithDefault(msg, 17, ""),
3946
3976
  purchasingOrganization: jspb.Message.getFieldWithDefault(msg, 18, ""),
3947
3977
  purchasingGroup: jspb.Message.getFieldWithDefault(msg, 19, ""),
3948
3978
  biddingDate: jspb.Message.getFieldWithDefault(msg, 20, ""),
@@ -4043,7 +4073,7 @@ proto.RequestBiddingBase.deserializeBinaryFromReader = function(msg, reader) {
4043
4073
  break;
4044
4074
  case 17:
4045
4075
  var value = /** @type {string} */ (reader.readStringRequireUtf8());
4046
- msg.setPurchaseRequisitionType(value);
4076
+ msg.setDocumentType(value);
4047
4077
  break;
4048
4078
  case 18:
4049
4079
  var value = /** @type {string} */ (reader.readStringRequireUtf8());
@@ -4190,7 +4220,7 @@ proto.RequestBiddingBase.serializeBinaryToWriter = function(message, writer) {
4190
4220
  f
4191
4221
  );
4192
4222
  }
4193
- f = message.getPurchaseRequisitionType();
4223
+ f = message.getDocumentType();
4194
4224
  if (f.length > 0) {
4195
4225
  writer.writeString(
4196
4226
  17,
@@ -4521,10 +4551,10 @@ proto.RequestBiddingBase.prototype.setGroupReferences = function(value) {
4521
4551
 
4522
4552
 
4523
4553
  /**
4524
- * optional string purchase_requisition_type = 17;
4554
+ * optional string document_type = 17;
4525
4555
  * @return {string}
4526
4556
  */
4527
- proto.RequestBiddingBase.prototype.getPurchaseRequisitionType = function() {
4557
+ proto.RequestBiddingBase.prototype.getDocumentType = function() {
4528
4558
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 17, ""));
4529
4559
  };
4530
4560
 
@@ -4533,7 +4563,7 @@ proto.RequestBiddingBase.prototype.getPurchaseRequisitionType = function() {
4533
4563
  * @param {string} value
4534
4564
  * @return {!proto.RequestBiddingBase} returns this
4535
4565
  */
4536
- proto.RequestBiddingBase.prototype.setPurchaseRequisitionType = function(value) {
4566
+ proto.RequestBiddingBase.prototype.setDocumentType = function(value) {
4537
4567
  return jspb.Message.setProto3StringField(this, 17, value);
4538
4568
  };
4539
4569
 
@@ -0,0 +1,211 @@
1
+ // GENERATED CODE -- DO NOT EDIT!
2
+
3
+ 'use strict';
4
+ var grpc = require('@grpc/grpc-js');
5
+ var prisca_v1_core_messaging_notification_event_pb = require('../../../../prisca/v1/core/messaging/notification_event_pb.js');
6
+ var prisca_v1_global_meta_meta_pb = require('../../../../prisca/v1/global/meta/meta_pb.js');
7
+ var prisca_v1_core_messaging_notification_pb = require('../../../../prisca/v1/core/messaging/notification_pb.js');
8
+
9
+ function serialize_CreateNotificationEventReq(arg) {
10
+ if (!(arg instanceof prisca_v1_core_messaging_notification_event_pb.CreateNotificationEventReq)) {
11
+ throw new Error('Expected argument of type CreateNotificationEventReq');
12
+ }
13
+ return Buffer.from(arg.serializeBinary());
14
+ }
15
+
16
+ function deserialize_CreateNotificationEventReq(buffer_arg) {
17
+ return prisca_v1_core_messaging_notification_event_pb.CreateNotificationEventReq.deserializeBinary(new Uint8Array(buffer_arg));
18
+ }
19
+
20
+ function serialize_EmptyMessage(arg) {
21
+ if (!(arg instanceof prisca_v1_core_messaging_notification_pb.EmptyMessage)) {
22
+ throw new Error('Expected argument of type EmptyMessage');
23
+ }
24
+ return Buffer.from(arg.serializeBinary());
25
+ }
26
+
27
+ function deserialize_EmptyMessage(buffer_arg) {
28
+ return prisca_v1_core_messaging_notification_pb.EmptyMessage.deserializeBinary(new Uint8Array(buffer_arg));
29
+ }
30
+
31
+ function serialize_GetEventByCodeReq(arg) {
32
+ if (!(arg instanceof prisca_v1_core_messaging_notification_event_pb.GetEventByCodeReq)) {
33
+ throw new Error('Expected argument of type GetEventByCodeReq');
34
+ }
35
+ return Buffer.from(arg.serializeBinary());
36
+ }
37
+
38
+ function deserialize_GetEventByCodeReq(buffer_arg) {
39
+ return prisca_v1_core_messaging_notification_event_pb.GetEventByCodeReq.deserializeBinary(new Uint8Array(buffer_arg));
40
+ }
41
+
42
+ function serialize_GetListNotificationEventsReq(arg) {
43
+ if (!(arg instanceof prisca_v1_core_messaging_notification_event_pb.GetListNotificationEventsReq)) {
44
+ throw new Error('Expected argument of type GetListNotificationEventsReq');
45
+ }
46
+ return Buffer.from(arg.serializeBinary());
47
+ }
48
+
49
+ function deserialize_GetListNotificationEventsReq(buffer_arg) {
50
+ return prisca_v1_core_messaging_notification_event_pb.GetListNotificationEventsReq.deserializeBinary(new Uint8Array(buffer_arg));
51
+ }
52
+
53
+ function serialize_GetListNotificationEventsRes(arg) {
54
+ if (!(arg instanceof prisca_v1_core_messaging_notification_event_pb.GetListNotificationEventsRes)) {
55
+ throw new Error('Expected argument of type GetListNotificationEventsRes');
56
+ }
57
+ return Buffer.from(arg.serializeBinary());
58
+ }
59
+
60
+ function deserialize_GetListNotificationEventsRes(buffer_arg) {
61
+ return prisca_v1_core_messaging_notification_event_pb.GetListNotificationEventsRes.deserializeBinary(new Uint8Array(buffer_arg));
62
+ }
63
+
64
+ function serialize_NotificationEventChannelItem(arg) {
65
+ if (!(arg instanceof prisca_v1_core_messaging_notification_event_pb.NotificationEventChannelItem)) {
66
+ throw new Error('Expected argument of type NotificationEventChannelItem');
67
+ }
68
+ return Buffer.from(arg.serializeBinary());
69
+ }
70
+
71
+ function deserialize_NotificationEventChannelItem(buffer_arg) {
72
+ return prisca_v1_core_messaging_notification_event_pb.NotificationEventChannelItem.deserializeBinary(new Uint8Array(buffer_arg));
73
+ }
74
+
75
+ function serialize_NotificationEventDetailItem(arg) {
76
+ if (!(arg instanceof prisca_v1_core_messaging_notification_event_pb.NotificationEventDetailItem)) {
77
+ throw new Error('Expected argument of type NotificationEventDetailItem');
78
+ }
79
+ return Buffer.from(arg.serializeBinary());
80
+ }
81
+
82
+ function deserialize_NotificationEventDetailItem(buffer_arg) {
83
+ return prisca_v1_core_messaging_notification_event_pb.NotificationEventDetailItem.deserializeBinary(new Uint8Array(buffer_arg));
84
+ }
85
+
86
+ function serialize_NotificationEventItem(arg) {
87
+ if (!(arg instanceof prisca_v1_core_messaging_notification_event_pb.NotificationEventItem)) {
88
+ throw new Error('Expected argument of type NotificationEventItem');
89
+ }
90
+ return Buffer.from(arg.serializeBinary());
91
+ }
92
+
93
+ function deserialize_NotificationEventItem(buffer_arg) {
94
+ return prisca_v1_core_messaging_notification_event_pb.NotificationEventItem.deserializeBinary(new Uint8Array(buffer_arg));
95
+ }
96
+
97
+ function serialize_ReferenceId(arg) {
98
+ if (!(arg instanceof prisca_v1_core_messaging_notification_pb.ReferenceId)) {
99
+ throw new Error('Expected argument of type ReferenceId');
100
+ }
101
+ return Buffer.from(arg.serializeBinary());
102
+ }
103
+
104
+ function deserialize_ReferenceId(buffer_arg) {
105
+ return prisca_v1_core_messaging_notification_pb.ReferenceId.deserializeBinary(new Uint8Array(buffer_arg));
106
+ }
107
+
108
+ function serialize_UpdateNotificationEventReq(arg) {
109
+ if (!(arg instanceof prisca_v1_core_messaging_notification_event_pb.UpdateNotificationEventReq)) {
110
+ throw new Error('Expected argument of type UpdateNotificationEventReq');
111
+ }
112
+ return Buffer.from(arg.serializeBinary());
113
+ }
114
+
115
+ function deserialize_UpdateNotificationEventReq(buffer_arg) {
116
+ return prisca_v1_core_messaging_notification_event_pb.UpdateNotificationEventReq.deserializeBinary(new Uint8Array(buffer_arg));
117
+ }
118
+
119
+ function serialize_UpsertEventChannelReq(arg) {
120
+ if (!(arg instanceof prisca_v1_core_messaging_notification_event_pb.UpsertEventChannelReq)) {
121
+ throw new Error('Expected argument of type UpsertEventChannelReq');
122
+ }
123
+ return Buffer.from(arg.serializeBinary());
124
+ }
125
+
126
+ function deserialize_UpsertEventChannelReq(buffer_arg) {
127
+ return prisca_v1_core_messaging_notification_event_pb.UpsertEventChannelReq.deserializeBinary(new Uint8Array(buffer_arg));
128
+ }
129
+
130
+
131
+ var NotificationEventServiceService = exports.NotificationEventServiceService = {
132
+ createEvent: {
133
+ path: '/NotificationEventService/CreateEvent',
134
+ requestStream: false,
135
+ responseStream: false,
136
+ requestType: prisca_v1_core_messaging_notification_event_pb.CreateNotificationEventReq,
137
+ responseType: prisca_v1_core_messaging_notification_event_pb.NotificationEventItem,
138
+ requestSerialize: serialize_CreateNotificationEventReq,
139
+ requestDeserialize: deserialize_CreateNotificationEventReq,
140
+ responseSerialize: serialize_NotificationEventItem,
141
+ responseDeserialize: deserialize_NotificationEventItem,
142
+ },
143
+ updateEvent: {
144
+ path: '/NotificationEventService/UpdateEvent',
145
+ requestStream: false,
146
+ responseStream: false,
147
+ requestType: prisca_v1_core_messaging_notification_event_pb.UpdateNotificationEventReq,
148
+ responseType: prisca_v1_core_messaging_notification_event_pb.NotificationEventItem,
149
+ requestSerialize: serialize_UpdateNotificationEventReq,
150
+ requestDeserialize: deserialize_UpdateNotificationEventReq,
151
+ responseSerialize: serialize_NotificationEventItem,
152
+ responseDeserialize: deserialize_NotificationEventItem,
153
+ },
154
+ getListEvents: {
155
+ path: '/NotificationEventService/GetListEvents',
156
+ requestStream: false,
157
+ responseStream: false,
158
+ requestType: prisca_v1_core_messaging_notification_event_pb.GetListNotificationEventsReq,
159
+ responseType: prisca_v1_core_messaging_notification_event_pb.GetListNotificationEventsRes,
160
+ requestSerialize: serialize_GetListNotificationEventsReq,
161
+ requestDeserialize: deserialize_GetListNotificationEventsReq,
162
+ responseSerialize: serialize_GetListNotificationEventsRes,
163
+ responseDeserialize: deserialize_GetListNotificationEventsRes,
164
+ },
165
+ getEventByCode: {
166
+ path: '/NotificationEventService/GetEventByCode',
167
+ requestStream: false,
168
+ responseStream: false,
169
+ requestType: prisca_v1_core_messaging_notification_event_pb.GetEventByCodeReq,
170
+ responseType: prisca_v1_core_messaging_notification_event_pb.NotificationEventDetailItem,
171
+ requestSerialize: serialize_GetEventByCodeReq,
172
+ requestDeserialize: deserialize_GetEventByCodeReq,
173
+ responseSerialize: serialize_NotificationEventDetailItem,
174
+ responseDeserialize: deserialize_NotificationEventDetailItem,
175
+ },
176
+ getEventByReferenceId: {
177
+ path: '/NotificationEventService/GetEventByReferenceId',
178
+ requestStream: false,
179
+ responseStream: false,
180
+ requestType: prisca_v1_core_messaging_notification_pb.ReferenceId,
181
+ responseType: prisca_v1_core_messaging_notification_event_pb.NotificationEventDetailItem,
182
+ requestSerialize: serialize_ReferenceId,
183
+ requestDeserialize: deserialize_ReferenceId,
184
+ responseSerialize: serialize_NotificationEventDetailItem,
185
+ responseDeserialize: deserialize_NotificationEventDetailItem,
186
+ },
187
+ deleteEvent: {
188
+ path: '/NotificationEventService/DeleteEvent',
189
+ requestStream: false,
190
+ responseStream: false,
191
+ requestType: prisca_v1_core_messaging_notification_pb.ReferenceId,
192
+ responseType: prisca_v1_core_messaging_notification_pb.EmptyMessage,
193
+ requestSerialize: serialize_ReferenceId,
194
+ requestDeserialize: deserialize_ReferenceId,
195
+ responseSerialize: serialize_EmptyMessage,
196
+ responseDeserialize: deserialize_EmptyMessage,
197
+ },
198
+ upsertEventChannel: {
199
+ path: '/NotificationEventService/UpsertEventChannel',
200
+ requestStream: false,
201
+ responseStream: false,
202
+ requestType: prisca_v1_core_messaging_notification_event_pb.UpsertEventChannelReq,
203
+ responseType: prisca_v1_core_messaging_notification_event_pb.NotificationEventChannelItem,
204
+ requestSerialize: serialize_UpsertEventChannelReq,
205
+ requestDeserialize: deserialize_UpsertEventChannelReq,
206
+ responseSerialize: serialize_NotificationEventChannelItem,
207
+ responseDeserialize: deserialize_NotificationEventChannelItem,
208
+ },
209
+ };
210
+
211
+ exports.NotificationEventServiceClient = grpc.makeGenericClientConstructor(NotificationEventServiceService, 'NotificationEventService');