@aldiokta/protocgen 1.0.15 → 1.0.17

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.0.15",
3
+ "version": "1.0.17",
4
4
  "description": "protocgen js generated for products v2",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -0,0 +1,276 @@
1
+ // GENERATED CODE -- DO NOT EDIT!
2
+
3
+ 'use strict';
4
+ var grpc = require('@grpc/grpc-js');
5
+ var prisca_v1_core_location_location_pb = require('../../../../prisca/v1/core/location/location_pb.js');
6
+ var prisca_v1_global_meta_meta_pb = require('../../../../prisca/v1/global/meta/meta_pb.js');
7
+
8
+ function serialize_CountryGetByIdRequest(arg) {
9
+ if (!(arg instanceof prisca_v1_core_location_location_pb.CountryGetByIdRequest)) {
10
+ throw new Error('Expected argument of type CountryGetByIdRequest');
11
+ }
12
+ return Buffer.from(arg.serializeBinary());
13
+ }
14
+
15
+ function deserialize_CountryGetByIdRequest(buffer_arg) {
16
+ return prisca_v1_core_location_location_pb.CountryGetByIdRequest.deserializeBinary(new Uint8Array(buffer_arg));
17
+ }
18
+
19
+ function serialize_CountryGetByIdResponse(arg) {
20
+ if (!(arg instanceof prisca_v1_core_location_location_pb.CountryGetByIdResponse)) {
21
+ throw new Error('Expected argument of type CountryGetByIdResponse');
22
+ }
23
+ return Buffer.from(arg.serializeBinary());
24
+ }
25
+
26
+ function deserialize_CountryGetByIdResponse(buffer_arg) {
27
+ return prisca_v1_core_location_location_pb.CountryGetByIdResponse.deserializeBinary(new Uint8Array(buffer_arg));
28
+ }
29
+
30
+ function serialize_CreateCountryRequest(arg) {
31
+ if (!(arg instanceof prisca_v1_core_location_location_pb.CreateCountryRequest)) {
32
+ throw new Error('Expected argument of type CreateCountryRequest');
33
+ }
34
+ return Buffer.from(arg.serializeBinary());
35
+ }
36
+
37
+ function deserialize_CreateCountryRequest(buffer_arg) {
38
+ return prisca_v1_core_location_location_pb.CreateCountryRequest.deserializeBinary(new Uint8Array(buffer_arg));
39
+ }
40
+
41
+ function serialize_CreateCountryResponse(arg) {
42
+ if (!(arg instanceof prisca_v1_core_location_location_pb.CreateCountryResponse)) {
43
+ throw new Error('Expected argument of type CreateCountryResponse');
44
+ }
45
+ return Buffer.from(arg.serializeBinary());
46
+ }
47
+
48
+ function deserialize_CreateCountryResponse(buffer_arg) {
49
+ return prisca_v1_core_location_location_pb.CreateCountryResponse.deserializeBinary(new Uint8Array(buffer_arg));
50
+ }
51
+
52
+ function serialize_GetCityRequest(arg) {
53
+ if (!(arg instanceof prisca_v1_core_location_location_pb.GetCityRequest)) {
54
+ throw new Error('Expected argument of type GetCityRequest');
55
+ }
56
+ return Buffer.from(arg.serializeBinary());
57
+ }
58
+
59
+ function deserialize_GetCityRequest(buffer_arg) {
60
+ return prisca_v1_core_location_location_pb.GetCityRequest.deserializeBinary(new Uint8Array(buffer_arg));
61
+ }
62
+
63
+ function serialize_GetCityResponse(arg) {
64
+ if (!(arg instanceof prisca_v1_core_location_location_pb.GetCityResponse)) {
65
+ throw new Error('Expected argument of type GetCityResponse');
66
+ }
67
+ return Buffer.from(arg.serializeBinary());
68
+ }
69
+
70
+ function deserialize_GetCityResponse(buffer_arg) {
71
+ return prisca_v1_core_location_location_pb.GetCityResponse.deserializeBinary(new Uint8Array(buffer_arg));
72
+ }
73
+
74
+ function serialize_GetCountryRequest(arg) {
75
+ if (!(arg instanceof prisca_v1_core_location_location_pb.GetCountryRequest)) {
76
+ throw new Error('Expected argument of type GetCountryRequest');
77
+ }
78
+ return Buffer.from(arg.serializeBinary());
79
+ }
80
+
81
+ function deserialize_GetCountryRequest(buffer_arg) {
82
+ return prisca_v1_core_location_location_pb.GetCountryRequest.deserializeBinary(new Uint8Array(buffer_arg));
83
+ }
84
+
85
+ function serialize_GetCountryResponse(arg) {
86
+ if (!(arg instanceof prisca_v1_core_location_location_pb.GetCountryResponse)) {
87
+ throw new Error('Expected argument of type GetCountryResponse');
88
+ }
89
+ return Buffer.from(arg.serializeBinary());
90
+ }
91
+
92
+ function deserialize_GetCountryResponse(buffer_arg) {
93
+ return prisca_v1_core_location_location_pb.GetCountryResponse.deserializeBinary(new Uint8Array(buffer_arg));
94
+ }
95
+
96
+ function serialize_GetDistrictRequest(arg) {
97
+ if (!(arg instanceof prisca_v1_core_location_location_pb.GetDistrictRequest)) {
98
+ throw new Error('Expected argument of type GetDistrictRequest');
99
+ }
100
+ return Buffer.from(arg.serializeBinary());
101
+ }
102
+
103
+ function deserialize_GetDistrictRequest(buffer_arg) {
104
+ return prisca_v1_core_location_location_pb.GetDistrictRequest.deserializeBinary(new Uint8Array(buffer_arg));
105
+ }
106
+
107
+ function serialize_GetDistrictResponse(arg) {
108
+ if (!(arg instanceof prisca_v1_core_location_location_pb.GetDistrictResponse)) {
109
+ throw new Error('Expected argument of type GetDistrictResponse');
110
+ }
111
+ return Buffer.from(arg.serializeBinary());
112
+ }
113
+
114
+ function deserialize_GetDistrictResponse(buffer_arg) {
115
+ return prisca_v1_core_location_location_pb.GetDistrictResponse.deserializeBinary(new Uint8Array(buffer_arg));
116
+ }
117
+
118
+ function serialize_GetProvinceRequest(arg) {
119
+ if (!(arg instanceof prisca_v1_core_location_location_pb.GetProvinceRequest)) {
120
+ throw new Error('Expected argument of type GetProvinceRequest');
121
+ }
122
+ return Buffer.from(arg.serializeBinary());
123
+ }
124
+
125
+ function deserialize_GetProvinceRequest(buffer_arg) {
126
+ return prisca_v1_core_location_location_pb.GetProvinceRequest.deserializeBinary(new Uint8Array(buffer_arg));
127
+ }
128
+
129
+ function serialize_GetProvinceResponse(arg) {
130
+ if (!(arg instanceof prisca_v1_core_location_location_pb.GetProvinceResponse)) {
131
+ throw new Error('Expected argument of type GetProvinceResponse');
132
+ }
133
+ return Buffer.from(arg.serializeBinary());
134
+ }
135
+
136
+ function deserialize_GetProvinceResponse(buffer_arg) {
137
+ return prisca_v1_core_location_location_pb.GetProvinceResponse.deserializeBinary(new Uint8Array(buffer_arg));
138
+ }
139
+
140
+ function serialize_GetVillageRequest(arg) {
141
+ if (!(arg instanceof prisca_v1_core_location_location_pb.GetVillageRequest)) {
142
+ throw new Error('Expected argument of type GetVillageRequest');
143
+ }
144
+ return Buffer.from(arg.serializeBinary());
145
+ }
146
+
147
+ function deserialize_GetVillageRequest(buffer_arg) {
148
+ return prisca_v1_core_location_location_pb.GetVillageRequest.deserializeBinary(new Uint8Array(buffer_arg));
149
+ }
150
+
151
+ function serialize_GetVillageResponse(arg) {
152
+ if (!(arg instanceof prisca_v1_core_location_location_pb.GetVillageResponse)) {
153
+ throw new Error('Expected argument of type GetVillageResponse');
154
+ }
155
+ return Buffer.from(arg.serializeBinary());
156
+ }
157
+
158
+ function deserialize_GetVillageResponse(buffer_arg) {
159
+ return prisca_v1_core_location_location_pb.GetVillageResponse.deserializeBinary(new Uint8Array(buffer_arg));
160
+ }
161
+
162
+ function serialize_UpdateCountryRequest(arg) {
163
+ if (!(arg instanceof prisca_v1_core_location_location_pb.UpdateCountryRequest)) {
164
+ throw new Error('Expected argument of type UpdateCountryRequest');
165
+ }
166
+ return Buffer.from(arg.serializeBinary());
167
+ }
168
+
169
+ function deserialize_UpdateCountryRequest(buffer_arg) {
170
+ return prisca_v1_core_location_location_pb.UpdateCountryRequest.deserializeBinary(new Uint8Array(buffer_arg));
171
+ }
172
+
173
+ function serialize_UpdateCountryResponse(arg) {
174
+ if (!(arg instanceof prisca_v1_core_location_location_pb.UpdateCountryResponse)) {
175
+ throw new Error('Expected argument of type UpdateCountryResponse');
176
+ }
177
+ return Buffer.from(arg.serializeBinary());
178
+ }
179
+
180
+ function deserialize_UpdateCountryResponse(buffer_arg) {
181
+ return prisca_v1_core_location_location_pb.UpdateCountryResponse.deserializeBinary(new Uint8Array(buffer_arg));
182
+ }
183
+
184
+
185
+ var LocationServiceService = exports.LocationServiceService = {
186
+ getProvince: {
187
+ path: '/LocationService/GetProvince',
188
+ requestStream: false,
189
+ responseStream: false,
190
+ requestType: prisca_v1_core_location_location_pb.GetProvinceRequest,
191
+ responseType: prisca_v1_core_location_location_pb.GetProvinceResponse,
192
+ requestSerialize: serialize_GetProvinceRequest,
193
+ requestDeserialize: deserialize_GetProvinceRequest,
194
+ responseSerialize: serialize_GetProvinceResponse,
195
+ responseDeserialize: deserialize_GetProvinceResponse,
196
+ },
197
+ getCity: {
198
+ path: '/LocationService/GetCity',
199
+ requestStream: false,
200
+ responseStream: false,
201
+ requestType: prisca_v1_core_location_location_pb.GetCityRequest,
202
+ responseType: prisca_v1_core_location_location_pb.GetCityResponse,
203
+ requestSerialize: serialize_GetCityRequest,
204
+ requestDeserialize: deserialize_GetCityRequest,
205
+ responseSerialize: serialize_GetCityResponse,
206
+ responseDeserialize: deserialize_GetCityResponse,
207
+ },
208
+ getDistrict: {
209
+ path: '/LocationService/GetDistrict',
210
+ requestStream: false,
211
+ responseStream: false,
212
+ requestType: prisca_v1_core_location_location_pb.GetDistrictRequest,
213
+ responseType: prisca_v1_core_location_location_pb.GetDistrictResponse,
214
+ requestSerialize: serialize_GetDistrictRequest,
215
+ requestDeserialize: deserialize_GetDistrictRequest,
216
+ responseSerialize: serialize_GetDistrictResponse,
217
+ responseDeserialize: deserialize_GetDistrictResponse,
218
+ },
219
+ getVillage: {
220
+ path: '/LocationService/GetVillage',
221
+ requestStream: false,
222
+ responseStream: false,
223
+ requestType: prisca_v1_core_location_location_pb.GetVillageRequest,
224
+ responseType: prisca_v1_core_location_location_pb.GetVillageResponse,
225
+ requestSerialize: serialize_GetVillageRequest,
226
+ requestDeserialize: deserialize_GetVillageRequest,
227
+ responseSerialize: serialize_GetVillageResponse,
228
+ responseDeserialize: deserialize_GetVillageResponse,
229
+ },
230
+ getCountry: {
231
+ path: '/LocationService/GetCountry',
232
+ requestStream: false,
233
+ responseStream: false,
234
+ requestType: prisca_v1_core_location_location_pb.GetCountryRequest,
235
+ responseType: prisca_v1_core_location_location_pb.GetCountryResponse,
236
+ requestSerialize: serialize_GetCountryRequest,
237
+ requestDeserialize: deserialize_GetCountryRequest,
238
+ responseSerialize: serialize_GetCountryResponse,
239
+ responseDeserialize: deserialize_GetCountryResponse,
240
+ },
241
+ createCountry: {
242
+ path: '/LocationService/CreateCountry',
243
+ requestStream: false,
244
+ responseStream: false,
245
+ requestType: prisca_v1_core_location_location_pb.CreateCountryRequest,
246
+ responseType: prisca_v1_core_location_location_pb.CreateCountryResponse,
247
+ requestSerialize: serialize_CreateCountryRequest,
248
+ requestDeserialize: deserialize_CreateCountryRequest,
249
+ responseSerialize: serialize_CreateCountryResponse,
250
+ responseDeserialize: deserialize_CreateCountryResponse,
251
+ },
252
+ updateCountry: {
253
+ path: '/LocationService/UpdateCountry',
254
+ requestStream: false,
255
+ responseStream: false,
256
+ requestType: prisca_v1_core_location_location_pb.UpdateCountryRequest,
257
+ responseType: prisca_v1_core_location_location_pb.UpdateCountryResponse,
258
+ requestSerialize: serialize_UpdateCountryRequest,
259
+ requestDeserialize: deserialize_UpdateCountryRequest,
260
+ responseSerialize: serialize_UpdateCountryResponse,
261
+ responseDeserialize: deserialize_UpdateCountryResponse,
262
+ },
263
+ getCountryById: {
264
+ path: '/LocationService/GetCountryById',
265
+ requestStream: false,
266
+ responseStream: false,
267
+ requestType: prisca_v1_core_location_location_pb.CountryGetByIdRequest,
268
+ responseType: prisca_v1_core_location_location_pb.CountryGetByIdResponse,
269
+ requestSerialize: serialize_CountryGetByIdRequest,
270
+ requestDeserialize: deserialize_CountryGetByIdRequest,
271
+ responseSerialize: serialize_CountryGetByIdResponse,
272
+ responseDeserialize: deserialize_CountryGetByIdResponse,
273
+ },
274
+ };
275
+
276
+ exports.LocationServiceClient = grpc.makeGenericClientConstructor(LocationServiceService);