@aldiokta/protocgen 1.1.8 → 1.1.9

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.8",
3
+ "version": "1.1.9",
4
4
  "description": "protocgen js generated for products v2",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -13,6 +13,28 @@ var prisca_v1_core_file_upload_file_upload_pb = require('../../../prisca/v1/core
13
13
  var prisca_v1_request_for_quotation_request_for_quotation_pb = require('../../../prisca/v1/request_for_quotation/request_for_quotation_pb.js');
14
14
  var prisca_v1_quotation_quotation_pb = require('../../../prisca/v1/quotation/quotation_pb.js');
15
15
 
16
+ function serialize_GetBiddingByIdRequest(arg) {
17
+ if (!(arg instanceof prisca_v1_bidding_bidding_pb.GetBiddingByIdRequest)) {
18
+ throw new Error('Expected argument of type GetBiddingByIdRequest');
19
+ }
20
+ return Buffer.from(arg.serializeBinary());
21
+ }
22
+
23
+ function deserialize_GetBiddingByIdRequest(buffer_arg) {
24
+ return prisca_v1_bidding_bidding_pb.GetBiddingByIdRequest.deserializeBinary(new Uint8Array(buffer_arg));
25
+ }
26
+
27
+ function serialize_GetBiddingByIdResponse(arg) {
28
+ if (!(arg instanceof prisca_v1_bidding_bidding_pb.GetBiddingByIdResponse)) {
29
+ throw new Error('Expected argument of type GetBiddingByIdResponse');
30
+ }
31
+ return Buffer.from(arg.serializeBinary());
32
+ }
33
+
34
+ function deserialize_GetBiddingByIdResponse(buffer_arg) {
35
+ return prisca_v1_bidding_bidding_pb.GetBiddingByIdResponse.deserializeBinary(new Uint8Array(buffer_arg));
36
+ }
37
+
16
38
  function serialize_GetBiddingDetailResponse(arg) {
17
39
  if (!(arg instanceof prisca_v1_bidding_bidding_pb.GetBiddingDetailResponse)) {
18
40
  throw new Error('Expected argument of type GetBiddingDetailResponse');
@@ -79,6 +101,17 @@ function deserialize_ResponseGetListBidding(buffer_arg) {
79
101
  return prisca_v1_bidding_bidding_pb.ResponseGetListBidding.deserializeBinary(new Uint8Array(buffer_arg));
80
102
  }
81
103
 
104
+ function serialize_UpdateBiddingReq(arg) {
105
+ if (!(arg instanceof prisca_v1_bidding_bidding_pb.UpdateBiddingReq)) {
106
+ throw new Error('Expected argument of type UpdateBiddingReq');
107
+ }
108
+ return Buffer.from(arg.serializeBinary());
109
+ }
110
+
111
+ function deserialize_UpdateBiddingReq(buffer_arg) {
112
+ return prisca_v1_bidding_bidding_pb.UpdateBiddingReq.deserializeBinary(new Uint8Array(buffer_arg));
113
+ }
114
+
82
115
 
83
116
  var BiddingServiceService = exports.BiddingServiceService = {
84
117
  createBidding: {
@@ -114,6 +147,28 @@ var BiddingServiceService = exports.BiddingServiceService = {
114
147
  responseSerialize: serialize_ResponseGetListBidding,
115
148
  responseDeserialize: deserialize_ResponseGetListBidding,
116
149
  },
150
+ updateBidding: {
151
+ path: '/BiddingService/UpdateBidding',
152
+ requestStream: false,
153
+ responseStream: false,
154
+ requestType: prisca_v1_bidding_bidding_pb.UpdateBiddingReq,
155
+ responseType: prisca_v1_bidding_bidding_pb.ResponseBidding,
156
+ requestSerialize: serialize_UpdateBiddingReq,
157
+ requestDeserialize: deserialize_UpdateBiddingReq,
158
+ responseSerialize: serialize_ResponseBidding,
159
+ responseDeserialize: deserialize_ResponseBidding,
160
+ },
161
+ getBiddingById: {
162
+ path: '/BiddingService/GetBiddingById',
163
+ requestStream: false,
164
+ responseStream: false,
165
+ requestType: prisca_v1_bidding_bidding_pb.GetBiddingByIdRequest,
166
+ responseType: prisca_v1_bidding_bidding_pb.GetBiddingByIdResponse,
167
+ requestSerialize: serialize_GetBiddingByIdRequest,
168
+ requestDeserialize: deserialize_GetBiddingByIdRequest,
169
+ responseSerialize: serialize_GetBiddingByIdResponse,
170
+ responseDeserialize: deserialize_GetBiddingByIdResponse,
171
+ },
117
172
  };
118
173
 
119
174
  exports.BiddingServiceClient = grpc.makeGenericClientConstructor(BiddingServiceService, 'BiddingService');