@i4you/proto-files 1.0.5-beta.4 → 1.0.5-beta.5

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.
@@ -1,66 +1,39 @@
1
1
  import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
2
  import { type CallOptions, type ChannelCredentials, Client, type ClientOptions, type ClientUnaryCall, type handleUnaryCall, type Metadata, type ServiceError, type UntypedServiceImplementation } from "@grpc/grpc-js";
3
3
  export declare const protobufPackage = "discovery.v1";
4
- export interface GetUserRequest {
5
- id: Buffer;
6
- }
7
- export interface GetUserResponse {
8
- id: Buffer;
9
- name: string;
10
- email: string;
11
- phone: string;
12
- address: string;
13
- createdAt: string;
14
- updatedAt: string;
15
- }
16
- export interface Match {
17
- userId: string;
18
- matchedUserId: string;
19
- matchedAt: string;
20
- }
21
- export interface GetMatchesRequest {
22
- id: string;
23
- }
24
- export interface GetMatchesResponse {
25
- matches: Match[];
26
- }
27
- export declare const GetUserRequest: MessageFns<GetUserRequest>;
28
- export declare const GetUserResponse: MessageFns<GetUserResponse>;
29
- export declare const Match: MessageFns<Match>;
30
- export declare const GetMatchesRequest: MessageFns<GetMatchesRequest>;
31
- export declare const GetMatchesResponse: MessageFns<GetMatchesResponse>;
4
+ export interface GetPotentialMatchesRequest {
5
+ showMe: string;
6
+ minAge: number;
7
+ maxAge: number;
8
+ maxDistance: number;
9
+ locationLat: number;
10
+ locationLng: number;
11
+ lookingFor: string;
12
+ }
13
+ export interface GetPotentialMatchesResponse {
14
+ matches: string[];
15
+ }
16
+ export declare const GetPotentialMatchesRequest: MessageFns<GetPotentialMatchesRequest>;
17
+ export declare const GetPotentialMatchesResponse: MessageFns<GetPotentialMatchesResponse>;
32
18
  export type DiscoverServiceService = typeof DiscoverServiceService;
33
19
  export declare const DiscoverServiceService: {
34
- readonly getUser: {
35
- readonly path: "/discovery.v1.DiscoverService/GetUser";
36
- readonly requestStream: false;
37
- readonly responseStream: false;
38
- readonly requestSerialize: (value: GetUserRequest) => Buffer;
39
- readonly requestDeserialize: (value: Buffer) => GetUserRequest;
40
- readonly responseSerialize: (value: GetUserResponse) => Buffer;
41
- readonly responseDeserialize: (value: Buffer) => GetUserResponse;
42
- };
43
- readonly getMatches: {
44
- readonly path: "/discovery.v1.DiscoverService/GetMatches";
20
+ readonly getPotentialMatches: {
21
+ readonly path: "/discovery.v1.DiscoverService/GetPotentialMatches";
45
22
  readonly requestStream: false;
46
23
  readonly responseStream: false;
47
- readonly requestSerialize: (value: GetMatchesRequest) => Buffer;
48
- readonly requestDeserialize: (value: Buffer) => GetMatchesRequest;
49
- readonly responseSerialize: (value: GetMatchesResponse) => Buffer;
50
- readonly responseDeserialize: (value: Buffer) => GetMatchesResponse;
24
+ readonly requestSerialize: (value: GetPotentialMatchesRequest) => Buffer;
25
+ readonly requestDeserialize: (value: Buffer) => GetPotentialMatchesRequest;
26
+ readonly responseSerialize: (value: GetPotentialMatchesResponse) => Buffer;
27
+ readonly responseDeserialize: (value: Buffer) => GetPotentialMatchesResponse;
51
28
  };
52
29
  };
53
30
  export interface DiscoverServiceServer extends UntypedServiceImplementation {
54
- getUser: handleUnaryCall<GetUserRequest, GetUserResponse>;
55
- getMatches: handleUnaryCall<GetMatchesRequest, GetMatchesResponse>;
31
+ getPotentialMatches: handleUnaryCall<GetPotentialMatchesRequest, GetPotentialMatchesResponse>;
56
32
  }
57
33
  export interface DiscoverServiceClient extends Client {
58
- getUser(request: GetUserRequest, callback: (error: ServiceError | null, response: GetUserResponse) => void): ClientUnaryCall;
59
- getUser(request: GetUserRequest, metadata: Metadata, callback: (error: ServiceError | null, response: GetUserResponse) => void): ClientUnaryCall;
60
- getUser(request: GetUserRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: GetUserResponse) => void): ClientUnaryCall;
61
- getMatches(request: GetMatchesRequest, callback: (error: ServiceError | null, response: GetMatchesResponse) => void): ClientUnaryCall;
62
- getMatches(request: GetMatchesRequest, metadata: Metadata, callback: (error: ServiceError | null, response: GetMatchesResponse) => void): ClientUnaryCall;
63
- getMatches(request: GetMatchesRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: GetMatchesResponse) => void): ClientUnaryCall;
34
+ getPotentialMatches(request: GetPotentialMatchesRequest, callback: (error: ServiceError | null, response: GetPotentialMatchesResponse) => void): ClientUnaryCall;
35
+ getPotentialMatches(request: GetPotentialMatchesRequest, metadata: Metadata, callback: (error: ServiceError | null, response: GetPotentialMatchesResponse) => void): ClientUnaryCall;
36
+ getPotentialMatches(request: GetPotentialMatchesRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: GetPotentialMatchesResponse) => void): ClientUnaryCall;
64
37
  }
65
38
  export declare const DiscoverServiceClient: {
66
39
  new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): DiscoverServiceClient;
@@ -1 +1 @@
1
- {"version":3,"file":"discovery.d.ts","sourceRoot":"","sources":["../../../generated/discovery/v1/discovery.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,EACL,KAAK,WAAW,EAChB,KAAK,kBAAkB,EACvB,MAAM,EACN,KAAK,aAAa,EAClB,KAAK,eAAe,EACpB,KAAK,eAAe,EAEpB,KAAK,QAAQ,EACb,KAAK,YAAY,EACjB,KAAK,4BAA4B,EAClC,MAAM,eAAe,CAAC;AAEvB,eAAO,MAAM,eAAe,iBAAiB,CAAC;AAE9C,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE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C,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;IACxD,WAAW,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC;CAC/D"}
@@ -7,242 +7,88 @@
7
7
  import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
8
8
  import { makeGenericClientConstructor, } from "@grpc/grpc-js";
9
9
  export const protobufPackage = "discovery.v1";
10
- function createBaseGetUserRequest() {
11
- return { id: Buffer.alloc(0) };
10
+ function createBaseGetPotentialMatchesRequest() {
11
+ return { showMe: "", minAge: 0, maxAge: 0, maxDistance: 0, locationLat: 0, locationLng: 0, lookingFor: "" };
12
12
  }
13
- export const GetUserRequest = {
13
+ export const GetPotentialMatchesRequest = {
14
14
  encode(message, writer = new BinaryWriter()) {
15
- if (message.id.length !== 0) {
16
- writer.uint32(10).bytes(message.id);
15
+ if (message.showMe !== "") {
16
+ writer.uint32(18).string(message.showMe);
17
17
  }
18
- return writer;
19
- },
20
- decode(input, length) {
21
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
22
- const end = length === undefined ? reader.len : reader.pos + length;
23
- const message = createBaseGetUserRequest();
24
- while (reader.pos < end) {
25
- const tag = reader.uint32();
26
- switch (tag >>> 3) {
27
- case 1: {
28
- if (tag !== 10) {
29
- break;
30
- }
31
- message.id = Buffer.from(reader.bytes());
32
- continue;
33
- }
34
- }
35
- if ((tag & 7) === 4 || tag === 0) {
36
- break;
37
- }
38
- reader.skip(tag & 7);
39
- }
40
- return message;
41
- },
42
- fromJSON(object) {
43
- return { id: isSet(object.id) ? Buffer.from(bytesFromBase64(object.id)) : Buffer.alloc(0) };
44
- },
45
- toJSON(message) {
46
- const obj = {};
47
- if (message.id.length !== 0) {
48
- obj.id = base64FromBytes(message.id);
49
- }
50
- return obj;
51
- },
52
- create(base) {
53
- return GetUserRequest.fromPartial(base ?? {});
54
- },
55
- fromPartial(object) {
56
- const message = createBaseGetUserRequest();
57
- message.id = object.id ?? Buffer.alloc(0);
58
- return message;
59
- },
60
- };
61
- function createBaseGetUserResponse() {
62
- return { id: Buffer.alloc(0), name: "", email: "", phone: "", address: "", createdAt: "", updatedAt: "" };
63
- }
64
- export const GetUserResponse = {
65
- encode(message, writer = new BinaryWriter()) {
66
- if (message.id.length !== 0) {
67
- writer.uint32(10).bytes(message.id);
68
- }
69
- if (message.name !== "") {
70
- writer.uint32(18).string(message.name);
18
+ if (message.minAge !== 0) {
19
+ writer.uint32(24).int32(message.minAge);
71
20
  }
72
- if (message.email !== "") {
73
- writer.uint32(26).string(message.email);
21
+ if (message.maxAge !== 0) {
22
+ writer.uint32(32).int32(message.maxAge);
74
23
  }
75
- if (message.phone !== "") {
76
- writer.uint32(34).string(message.phone);
24
+ if (message.maxDistance !== 0) {
25
+ writer.uint32(40).int32(message.maxDistance);
77
26
  }
78
- if (message.address !== "") {
79
- writer.uint32(42).string(message.address);
27
+ if (message.locationLat !== 0) {
28
+ writer.uint32(49).double(message.locationLat);
80
29
  }
81
- if (message.createdAt !== "") {
82
- writer.uint32(50).string(message.createdAt);
30
+ if (message.locationLng !== 0) {
31
+ writer.uint32(57).double(message.locationLng);
83
32
  }
84
- if (message.updatedAt !== "") {
85
- writer.uint32(58).string(message.updatedAt);
33
+ if (message.lookingFor !== "") {
34
+ writer.uint32(66).string(message.lookingFor);
86
35
  }
87
36
  return writer;
88
37
  },
89
38
  decode(input, length) {
90
39
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
91
40
  const end = length === undefined ? reader.len : reader.pos + length;
92
- const message = createBaseGetUserResponse();
41
+ const message = createBaseGetPotentialMatchesRequest();
93
42
  while (reader.pos < end) {
94
43
  const tag = reader.uint32();
95
44
  switch (tag >>> 3) {
96
- case 1: {
97
- if (tag !== 10) {
98
- break;
99
- }
100
- message.id = Buffer.from(reader.bytes());
101
- continue;
102
- }
103
45
  case 2: {
104
46
  if (tag !== 18) {
105
47
  break;
106
48
  }
107
- message.name = reader.string();
49
+ message.showMe = reader.string();
108
50
  continue;
109
51
  }
110
52
  case 3: {
111
- if (tag !== 26) {
53
+ if (tag !== 24) {
112
54
  break;
113
55
  }
114
- message.email = reader.string();
56
+ message.minAge = reader.int32();
115
57
  continue;
116
58
  }
117
59
  case 4: {
118
- if (tag !== 34) {
60
+ if (tag !== 32) {
119
61
  break;
120
62
  }
121
- message.phone = reader.string();
63
+ message.maxAge = reader.int32();
122
64
  continue;
123
65
  }
124
66
  case 5: {
125
- if (tag !== 42) {
67
+ if (tag !== 40) {
126
68
  break;
127
69
  }
128
- message.address = reader.string();
70
+ message.maxDistance = reader.int32();
129
71
  continue;
130
72
  }
131
73
  case 6: {
132
- if (tag !== 50) {
74
+ if (tag !== 49) {
133
75
  break;
134
76
  }
135
- message.createdAt = reader.string();
77
+ message.locationLat = reader.double();
136
78
  continue;
137
79
  }
138
80
  case 7: {
139
- if (tag !== 58) {
140
- break;
141
- }
142
- message.updatedAt = reader.string();
143
- continue;
144
- }
145
- }
146
- if ((tag & 7) === 4 || tag === 0) {
147
- break;
148
- }
149
- reader.skip(tag & 7);
150
- }
151
- return message;
152
- },
153
- fromJSON(object) {
154
- return {
155
- id: isSet(object.id) ? Buffer.from(bytesFromBase64(object.id)) : Buffer.alloc(0),
156
- name: isSet(object.name) ? globalThis.String(object.name) : "",
157
- email: isSet(object.email) ? globalThis.String(object.email) : "",
158
- phone: isSet(object.phone) ? globalThis.String(object.phone) : "",
159
- address: isSet(object.address) ? globalThis.String(object.address) : "",
160
- createdAt: isSet(object.createdAt) ? globalThis.String(object.createdAt) : "",
161
- updatedAt: isSet(object.updatedAt) ? globalThis.String(object.updatedAt) : "",
162
- };
163
- },
164
- toJSON(message) {
165
- const obj = {};
166
- if (message.id.length !== 0) {
167
- obj.id = base64FromBytes(message.id);
168
- }
169
- if (message.name !== "") {
170
- obj.name = message.name;
171
- }
172
- if (message.email !== "") {
173
- obj.email = message.email;
174
- }
175
- if (message.phone !== "") {
176
- obj.phone = message.phone;
177
- }
178
- if (message.address !== "") {
179
- obj.address = message.address;
180
- }
181
- if (message.createdAt !== "") {
182
- obj.createdAt = message.createdAt;
183
- }
184
- if (message.updatedAt !== "") {
185
- obj.updatedAt = message.updatedAt;
186
- }
187
- return obj;
188
- },
189
- create(base) {
190
- return GetUserResponse.fromPartial(base ?? {});
191
- },
192
- fromPartial(object) {
193
- const message = createBaseGetUserResponse();
194
- message.id = object.id ?? Buffer.alloc(0);
195
- message.name = object.name ?? "";
196
- message.email = object.email ?? "";
197
- message.phone = object.phone ?? "";
198
- message.address = object.address ?? "";
199
- message.createdAt = object.createdAt ?? "";
200
- message.updatedAt = object.updatedAt ?? "";
201
- return message;
202
- },
203
- };
204
- function createBaseMatch() {
205
- return { userId: "", matchedUserId: "", matchedAt: "" };
206
- }
207
- export const Match = {
208
- encode(message, writer = new BinaryWriter()) {
209
- if (message.userId !== "") {
210
- writer.uint32(10).string(message.userId);
211
- }
212
- if (message.matchedUserId !== "") {
213
- writer.uint32(18).string(message.matchedUserId);
214
- }
215
- if (message.matchedAt !== "") {
216
- writer.uint32(26).string(message.matchedAt);
217
- }
218
- return writer;
219
- },
220
- decode(input, length) {
221
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
222
- const end = length === undefined ? reader.len : reader.pos + length;
223
- const message = createBaseMatch();
224
- while (reader.pos < end) {
225
- const tag = reader.uint32();
226
- switch (tag >>> 3) {
227
- case 1: {
228
- if (tag !== 10) {
81
+ if (tag !== 57) {
229
82
  break;
230
83
  }
231
- message.userId = reader.string();
84
+ message.locationLng = reader.double();
232
85
  continue;
233
86
  }
234
- case 2: {
235
- if (tag !== 18) {
87
+ case 8: {
88
+ if (tag !== 66) {
236
89
  break;
237
90
  }
238
- message.matchedUserId = reader.string();
239
- continue;
240
- }
241
- case 3: {
242
- if (tag !== 26) {
243
- break;
244
- }
245
- message.matchedAt = reader.string();
91
+ message.lookingFor = reader.string();
246
92
  continue;
247
93
  }
248
94
  }
@@ -255,100 +101,69 @@ export const Match = {
255
101
  },
256
102
  fromJSON(object) {
257
103
  return {
258
- userId: isSet(object.userId) ? globalThis.String(object.userId) : "",
259
- matchedUserId: isSet(object.matchedUserId) ? globalThis.String(object.matchedUserId) : "",
260
- matchedAt: isSet(object.matchedAt) ? globalThis.String(object.matchedAt) : "",
104
+ showMe: isSet(object.showMe) ? globalThis.String(object.showMe) : "",
105
+ minAge: isSet(object.minAge) ? globalThis.Number(object.minAge) : 0,
106
+ maxAge: isSet(object.maxAge) ? globalThis.Number(object.maxAge) : 0,
107
+ maxDistance: isSet(object.maxDistance) ? globalThis.Number(object.maxDistance) : 0,
108
+ locationLat: isSet(object.locationLat) ? globalThis.Number(object.locationLat) : 0,
109
+ locationLng: isSet(object.locationLng) ? globalThis.Number(object.locationLng) : 0,
110
+ lookingFor: isSet(object.lookingFor) ? globalThis.String(object.lookingFor) : "",
261
111
  };
262
112
  },
263
113
  toJSON(message) {
264
114
  const obj = {};
265
- if (message.userId !== "") {
266
- obj.userId = message.userId;
115
+ if (message.showMe !== "") {
116
+ obj.showMe = message.showMe;
267
117
  }
268
- if (message.matchedUserId !== "") {
269
- obj.matchedUserId = message.matchedUserId;
118
+ if (message.minAge !== 0) {
119
+ obj.minAge = Math.round(message.minAge);
270
120
  }
271
- if (message.matchedAt !== "") {
272
- obj.matchedAt = message.matchedAt;
121
+ if (message.maxAge !== 0) {
122
+ obj.maxAge = Math.round(message.maxAge);
273
123
  }
274
- return obj;
275
- },
276
- create(base) {
277
- return Match.fromPartial(base ?? {});
278
- },
279
- fromPartial(object) {
280
- const message = createBaseMatch();
281
- message.userId = object.userId ?? "";
282
- message.matchedUserId = object.matchedUserId ?? "";
283
- message.matchedAt = object.matchedAt ?? "";
284
- return message;
285
- },
286
- };
287
- function createBaseGetMatchesRequest() {
288
- return { id: "" };
289
- }
290
- export const GetMatchesRequest = {
291
- encode(message, writer = new BinaryWriter()) {
292
- if (message.id !== "") {
293
- writer.uint32(10).string(message.id);
124
+ if (message.maxDistance !== 0) {
125
+ obj.maxDistance = Math.round(message.maxDistance);
294
126
  }
295
- return writer;
296
- },
297
- decode(input, length) {
298
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
299
- const end = length === undefined ? reader.len : reader.pos + length;
300
- const message = createBaseGetMatchesRequest();
301
- while (reader.pos < end) {
302
- const tag = reader.uint32();
303
- switch (tag >>> 3) {
304
- case 1: {
305
- if (tag !== 10) {
306
- break;
307
- }
308
- message.id = reader.string();
309
- continue;
310
- }
311
- }
312
- if ((tag & 7) === 4 || tag === 0) {
313
- break;
314
- }
315
- reader.skip(tag & 7);
127
+ if (message.locationLat !== 0) {
128
+ obj.locationLat = message.locationLat;
316
129
  }
317
- return message;
318
- },
319
- fromJSON(object) {
320
- return { id: isSet(object.id) ? globalThis.String(object.id) : "" };
321
- },
322
- toJSON(message) {
323
- const obj = {};
324
- if (message.id !== "") {
325
- obj.id = message.id;
130
+ if (message.locationLng !== 0) {
131
+ obj.locationLng = message.locationLng;
132
+ }
133
+ if (message.lookingFor !== "") {
134
+ obj.lookingFor = message.lookingFor;
326
135
  }
327
136
  return obj;
328
137
  },
329
138
  create(base) {
330
- return GetMatchesRequest.fromPartial(base ?? {});
139
+ return GetPotentialMatchesRequest.fromPartial(base ?? {});
331
140
  },
332
141
  fromPartial(object) {
333
- const message = createBaseGetMatchesRequest();
334
- message.id = object.id ?? "";
142
+ const message = createBaseGetPotentialMatchesRequest();
143
+ message.showMe = object.showMe ?? "";
144
+ message.minAge = object.minAge ?? 0;
145
+ message.maxAge = object.maxAge ?? 0;
146
+ message.maxDistance = object.maxDistance ?? 0;
147
+ message.locationLat = object.locationLat ?? 0;
148
+ message.locationLng = object.locationLng ?? 0;
149
+ message.lookingFor = object.lookingFor ?? "";
335
150
  return message;
336
151
  },
337
152
  };
338
- function createBaseGetMatchesResponse() {
153
+ function createBaseGetPotentialMatchesResponse() {
339
154
  return { matches: [] };
340
155
  }
341
- export const GetMatchesResponse = {
156
+ export const GetPotentialMatchesResponse = {
342
157
  encode(message, writer = new BinaryWriter()) {
343
158
  for (const v of message.matches) {
344
- Match.encode(v, writer.uint32(10).fork()).join();
159
+ writer.uint32(10).string(v);
345
160
  }
346
161
  return writer;
347
162
  },
348
163
  decode(input, length) {
349
164
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
350
165
  const end = length === undefined ? reader.len : reader.pos + length;
351
- const message = createBaseGetMatchesResponse();
166
+ const message = createBaseGetPotentialMatchesResponse();
352
167
  while (reader.pos < end) {
353
168
  const tag = reader.uint32();
354
169
  switch (tag >>> 3) {
@@ -356,7 +171,7 @@ export const GetMatchesResponse = {
356
171
  if (tag !== 10) {
357
172
  break;
358
173
  }
359
- message.matches.push(Match.decode(reader, reader.uint32()));
174
+ message.matches.push(reader.string());
360
175
  continue;
361
176
  }
362
177
  }
@@ -369,52 +184,37 @@ export const GetMatchesResponse = {
369
184
  },
370
185
  fromJSON(object) {
371
186
  return {
372
- matches: globalThis.Array.isArray(object?.matches) ? object.matches.map((e) => Match.fromJSON(e)) : [],
187
+ matches: globalThis.Array.isArray(object?.matches) ? object.matches.map((e) => globalThis.String(e)) : [],
373
188
  };
374
189
  },
375
190
  toJSON(message) {
376
191
  const obj = {};
377
192
  if (message.matches?.length) {
378
- obj.matches = message.matches.map((e) => Match.toJSON(e));
193
+ obj.matches = message.matches;
379
194
  }
380
195
  return obj;
381
196
  },
382
197
  create(base) {
383
- return GetMatchesResponse.fromPartial(base ?? {});
198
+ return GetPotentialMatchesResponse.fromPartial(base ?? {});
384
199
  },
385
200
  fromPartial(object) {
386
- const message = createBaseGetMatchesResponse();
387
- message.matches = object.matches?.map((e) => Match.fromPartial(e)) || [];
201
+ const message = createBaseGetPotentialMatchesResponse();
202
+ message.matches = object.matches?.map((e) => e) || [];
388
203
  return message;
389
204
  },
390
205
  };
391
206
  export const DiscoverServiceService = {
392
- getUser: {
393
- path: "/discovery.v1.DiscoverService/GetUser",
394
- requestStream: false,
395
- responseStream: false,
396
- requestSerialize: (value) => Buffer.from(GetUserRequest.encode(value).finish()),
397
- requestDeserialize: (value) => GetUserRequest.decode(value),
398
- responseSerialize: (value) => Buffer.from(GetUserResponse.encode(value).finish()),
399
- responseDeserialize: (value) => GetUserResponse.decode(value),
400
- },
401
- getMatches: {
402
- path: "/discovery.v1.DiscoverService/GetMatches",
207
+ getPotentialMatches: {
208
+ path: "/discovery.v1.DiscoverService/GetPotentialMatches",
403
209
  requestStream: false,
404
210
  responseStream: false,
405
- requestSerialize: (value) => Buffer.from(GetMatchesRequest.encode(value).finish()),
406
- requestDeserialize: (value) => GetMatchesRequest.decode(value),
407
- responseSerialize: (value) => Buffer.from(GetMatchesResponse.encode(value).finish()),
408
- responseDeserialize: (value) => GetMatchesResponse.decode(value),
211
+ requestSerialize: (value) => Buffer.from(GetPotentialMatchesRequest.encode(value).finish()),
212
+ requestDeserialize: (value) => GetPotentialMatchesRequest.decode(value),
213
+ responseSerialize: (value) => Buffer.from(GetPotentialMatchesResponse.encode(value).finish()),
214
+ responseDeserialize: (value) => GetPotentialMatchesResponse.decode(value),
409
215
  },
410
216
  };
411
217
  export const DiscoverServiceClient = makeGenericClientConstructor(DiscoverServiceService, "discovery.v1.DiscoverService");
412
- function bytesFromBase64(b64) {
413
- return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
414
- }
415
- function base64FromBytes(arr) {
416
- return globalThis.Buffer.from(arr).toString("base64");
417
- }
418
218
  function isSet(value) {
419
219
  return value !== null && value !== undefined;
420
220
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@i4you/proto-files",
3
- "version": "1.0.5-beta.4",
3
+ "version": "1.0.5-beta.5",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "exports": {