@meshtrade/api-old 1.43.0 → 1.44.0

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.
@@ -2,7 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getConfigFromOpts = getConfigFromOpts;
4
4
  function getConfigFromOpts(config) {
5
- const apiServerURL = config?.apiServerURL ?? "http://localhost:10000";
5
+ const apiServerURL = config?.apiServerURL ??
6
+ "https://production-service-mesh-api-gateway-lb-frontend.mesh.trade";
6
7
  return {
7
8
  apiServerURL,
8
9
  };
@@ -1,4 +1,4 @@
1
- import { AssignRolesToUserRequest, CreateUserRequest, GetUserByEmailRequest, GetUserRequest, ListUsersRequest, ListUsersResponse, RevokeRolesFromUserRequest, UpdateUserRequest } from "./service_pb";
1
+ import { AssignRolesToUserRequest, CreateUserRequest, GetUserByEmailRequest, GetUserRequest, ListUsersRequest, ListUsersResponse, RevokeRolesFromUserRequest, SearchUsersRequest, SearchUsersResponse, UpdateUserRequest } from "./service_pb";
2
2
  import { User } from "./user_pb";
3
3
  import { UnaryInterceptor } from "grpc-web";
4
4
  import { ConfigOpts } from "../../../common/config";
@@ -56,6 +56,12 @@ export declare class UserServiceGrpcWebClientV1 {
56
56
  * @returns {Promise<ListUsersResponse>} A promise that resolves with the list of users.
57
57
  */
58
58
  listUsers(request: ListUsersRequest): Promise<ListUsersResponse>;
59
+ /**
60
+ * Searches for users.
61
+ * @param {SearchUsersRequest} request - The request object for searchusers.
62
+ * @returns {Promise<SearchUsersResponse>} A promise that resolves with the search results.
63
+ */
64
+ searchUsers(request: SearchUsersRequest): Promise<SearchUsersResponse>;
59
65
  /**
60
66
  * Creates a new user.
61
67
  * @param {CreateUserRequest} request - The request object for createuser.
@@ -100,6 +100,14 @@ class UserServiceGrpcWebClientV1 {
100
100
  listUsers(request) {
101
101
  return this._service.listUsers(request);
102
102
  }
103
+ /**
104
+ * Searches for users.
105
+ * @param {SearchUsersRequest} request - The request object for searchusers.
106
+ * @returns {Promise<SearchUsersResponse>} A promise that resolves with the search results.
107
+ */
108
+ searchUsers(request) {
109
+ return this._service.searchUsers(request);
110
+ }
103
111
  /**
104
112
  * Creates a new user.
105
113
  * @param {CreateUserRequest} request - The request object for createuser.
@@ -44,6 +44,13 @@ export class UserServiceClient {
44
44
  response: meshtrade_iam_user_v1_service_pb.ListUsersResponse) => void
45
45
  ): grpcWeb.ClientReadableStream<meshtrade_iam_user_v1_service_pb.ListUsersResponse>;
46
46
 
47
+ searchUsers(
48
+ request: meshtrade_iam_user_v1_service_pb.SearchUsersRequest,
49
+ metadata: grpcWeb.Metadata | undefined,
50
+ callback: (err: grpcWeb.RpcError,
51
+ response: meshtrade_iam_user_v1_service_pb.SearchUsersResponse) => void
52
+ ): grpcWeb.ClientReadableStream<meshtrade_iam_user_v1_service_pb.SearchUsersResponse>;
53
+
47
54
  createUser(
48
55
  request: meshtrade_iam_user_v1_service_pb.CreateUserRequest,
49
56
  metadata: grpcWeb.Metadata | undefined,
@@ -90,6 +97,11 @@ export class UserServicePromiseClient {
90
97
  metadata?: grpcWeb.Metadata
91
98
  ): Promise<meshtrade_iam_user_v1_service_pb.ListUsersResponse>;
92
99
 
100
+ searchUsers(
101
+ request: meshtrade_iam_user_v1_service_pb.SearchUsersRequest,
102
+ metadata?: grpcWeb.Metadata
103
+ ): Promise<meshtrade_iam_user_v1_service_pb.SearchUsersResponse>;
104
+
93
105
  createUser(
94
106
  request: meshtrade_iam_user_v1_service_pb.CreateUserRequest,
95
107
  metadata?: grpcWeb.Metadata
@@ -390,6 +390,67 @@ proto.meshtrade.iam.user.v1.UserServicePromiseClient.prototype.listUsers =
390
390
  };
391
391
 
392
392
 
393
+ /**
394
+ * @const
395
+ * @type {!grpc.web.MethodDescriptor<
396
+ * !proto.meshtrade.iam.user.v1.SearchUsersRequest,
397
+ * !proto.meshtrade.iam.user.v1.SearchUsersResponse>}
398
+ */
399
+ const methodDescriptor_UserService_SearchUsers = new grpc.web.MethodDescriptor(
400
+ '/meshtrade.iam.user.v1.UserService/SearchUsers',
401
+ grpc.web.MethodType.UNARY,
402
+ proto.meshtrade.iam.user.v1.SearchUsersRequest,
403
+ proto.meshtrade.iam.user.v1.SearchUsersResponse,
404
+ /**
405
+ * @param {!proto.meshtrade.iam.user.v1.SearchUsersRequest} request
406
+ * @return {!Uint8Array}
407
+ */
408
+ function(request) {
409
+ return request.serializeBinary();
410
+ },
411
+ proto.meshtrade.iam.user.v1.SearchUsersResponse.deserializeBinary
412
+ );
413
+
414
+
415
+ /**
416
+ * @param {!proto.meshtrade.iam.user.v1.SearchUsersRequest} request The
417
+ * request proto
418
+ * @param {?Object<string, string>} metadata User defined
419
+ * call metadata
420
+ * @param {function(?grpc.web.RpcError, ?proto.meshtrade.iam.user.v1.SearchUsersResponse)}
421
+ * callback The callback function(error, response)
422
+ * @return {!grpc.web.ClientReadableStream<!proto.meshtrade.iam.user.v1.SearchUsersResponse>|undefined}
423
+ * The XHR Node Readable Stream
424
+ */
425
+ proto.meshtrade.iam.user.v1.UserServiceClient.prototype.searchUsers =
426
+ function(request, metadata, callback) {
427
+ return this.client_.rpcCall(this.hostname_ +
428
+ '/meshtrade.iam.user.v1.UserService/SearchUsers',
429
+ request,
430
+ metadata || {},
431
+ methodDescriptor_UserService_SearchUsers,
432
+ callback);
433
+ };
434
+
435
+
436
+ /**
437
+ * @param {!proto.meshtrade.iam.user.v1.SearchUsersRequest} request The
438
+ * request proto
439
+ * @param {?Object<string, string>=} metadata User defined
440
+ * call metadata
441
+ * @return {!Promise<!proto.meshtrade.iam.user.v1.SearchUsersResponse>}
442
+ * Promise that resolves to the response
443
+ */
444
+ proto.meshtrade.iam.user.v1.UserServicePromiseClient.prototype.searchUsers =
445
+ function(request, metadata) {
446
+ return this.client_.unaryCall(this.hostname_ +
447
+ '/meshtrade.iam.user.v1.UserService/SearchUsers',
448
+ request,
449
+ metadata || {},
450
+ methodDescriptor_UserService_SearchUsers);
451
+ };
452
+
453
+
393
454
  /**
394
455
  * @const
395
456
  * @type {!grpc.web.MethodDescriptor<
@@ -153,6 +153,44 @@ export namespace ListUsersResponse {
153
153
  }
154
154
  }
155
155
 
156
+ export class SearchUsersRequest extends jspb.Message {
157
+ getEmail(): string;
158
+ setEmail(value: string): SearchUsersRequest;
159
+
160
+ serializeBinary(): Uint8Array;
161
+ toObject(includeInstance?: boolean): SearchUsersRequest.AsObject;
162
+ static toObject(includeInstance: boolean, msg: SearchUsersRequest): SearchUsersRequest.AsObject;
163
+ static serializeBinaryToWriter(message: SearchUsersRequest, writer: jspb.BinaryWriter): void;
164
+ static deserializeBinary(bytes: Uint8Array): SearchUsersRequest;
165
+ static deserializeBinaryFromReader(message: SearchUsersRequest, reader: jspb.BinaryReader): SearchUsersRequest;
166
+ }
167
+
168
+ export namespace SearchUsersRequest {
169
+ export type AsObject = {
170
+ email: string,
171
+ }
172
+ }
173
+
174
+ export class SearchUsersResponse extends jspb.Message {
175
+ getUsersList(): Array<meshtrade_iam_user_v1_user_pb.User>;
176
+ setUsersList(value: Array<meshtrade_iam_user_v1_user_pb.User>): SearchUsersResponse;
177
+ clearUsersList(): SearchUsersResponse;
178
+ addUsers(value?: meshtrade_iam_user_v1_user_pb.User, index?: number): meshtrade_iam_user_v1_user_pb.User;
179
+
180
+ serializeBinary(): Uint8Array;
181
+ toObject(includeInstance?: boolean): SearchUsersResponse.AsObject;
182
+ static toObject(includeInstance: boolean, msg: SearchUsersResponse): SearchUsersResponse.AsObject;
183
+ static serializeBinaryToWriter(message: SearchUsersResponse, writer: jspb.BinaryWriter): void;
184
+ static deserializeBinary(bytes: Uint8Array): SearchUsersResponse;
185
+ static deserializeBinaryFromReader(message: SearchUsersResponse, reader: jspb.BinaryReader): SearchUsersResponse;
186
+ }
187
+
188
+ export namespace SearchUsersResponse {
189
+ export type AsObject = {
190
+ usersList: Array<meshtrade_iam_user_v1_user_pb.User.AsObject>,
191
+ }
192
+ }
193
+
156
194
  export class CreateUserRequest extends jspb.Message {
157
195
  getUser(): meshtrade_iam_user_v1_user_pb.User | undefined;
158
196
  setUser(value?: meshtrade_iam_user_v1_user_pb.User): CreateUserRequest;
@@ -37,6 +37,8 @@ goog.exportSymbol('proto.meshtrade.iam.user.v1.ListUsersRequest', null, global);
37
37
  goog.exportSymbol('proto.meshtrade.iam.user.v1.ListUsersRequest.Sorting', null, global);
38
38
  goog.exportSymbol('proto.meshtrade.iam.user.v1.ListUsersResponse', null, global);
39
39
  goog.exportSymbol('proto.meshtrade.iam.user.v1.RevokeRolesFromUserRequest', null, global);
40
+ goog.exportSymbol('proto.meshtrade.iam.user.v1.SearchUsersRequest', null, global);
41
+ goog.exportSymbol('proto.meshtrade.iam.user.v1.SearchUsersResponse', null, global);
40
42
  goog.exportSymbol('proto.meshtrade.iam.user.v1.UpdateUserRequest', null, global);
41
43
  /**
42
44
  * Generated by JsPbCodeGenerator.
@@ -185,6 +187,48 @@ if (goog.DEBUG && !COMPILED) {
185
187
  */
186
188
  proto.meshtrade.iam.user.v1.ListUsersResponse.displayName = 'proto.meshtrade.iam.user.v1.ListUsersResponse';
187
189
  }
190
+ /**
191
+ * Generated by JsPbCodeGenerator.
192
+ * @param {Array=} opt_data Optional initial data array, typically from a
193
+ * server response, or constructed directly in Javascript. The array is used
194
+ * in place and becomes part of the constructed object. It is not cloned.
195
+ * If no data is provided, the constructed object will be empty, but still
196
+ * valid.
197
+ * @extends {jspb.Message}
198
+ * @constructor
199
+ */
200
+ proto.meshtrade.iam.user.v1.SearchUsersRequest = function(opt_data) {
201
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
202
+ };
203
+ goog.inherits(proto.meshtrade.iam.user.v1.SearchUsersRequest, jspb.Message);
204
+ if (goog.DEBUG && !COMPILED) {
205
+ /**
206
+ * @public
207
+ * @override
208
+ */
209
+ proto.meshtrade.iam.user.v1.SearchUsersRequest.displayName = 'proto.meshtrade.iam.user.v1.SearchUsersRequest';
210
+ }
211
+ /**
212
+ * Generated by JsPbCodeGenerator.
213
+ * @param {Array=} opt_data Optional initial data array, typically from a
214
+ * server response, or constructed directly in Javascript. The array is used
215
+ * in place and becomes part of the constructed object. It is not cloned.
216
+ * If no data is provided, the constructed object will be empty, but still
217
+ * valid.
218
+ * @extends {jspb.Message}
219
+ * @constructor
220
+ */
221
+ proto.meshtrade.iam.user.v1.SearchUsersResponse = function(opt_data) {
222
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.meshtrade.iam.user.v1.SearchUsersResponse.repeatedFields_, null);
223
+ };
224
+ goog.inherits(proto.meshtrade.iam.user.v1.SearchUsersResponse, jspb.Message);
225
+ if (goog.DEBUG && !COMPILED) {
226
+ /**
227
+ * @public
228
+ * @override
229
+ */
230
+ proto.meshtrade.iam.user.v1.SearchUsersResponse.displayName = 'proto.meshtrade.iam.user.v1.SearchUsersResponse';
231
+ }
188
232
  /**
189
233
  * Generated by JsPbCodeGenerator.
190
234
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -1333,6 +1377,296 @@ proto.meshtrade.iam.user.v1.ListUsersResponse.prototype.clearUsersList = functio
1333
1377
 
1334
1378
 
1335
1379
 
1380
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1381
+ /**
1382
+ * Creates an object representation of this proto.
1383
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1384
+ * Optional fields that are not set will be set to undefined.
1385
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1386
+ * For the list of reserved names please see:
1387
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1388
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1389
+ * JSPB instance for transitional soy proto support:
1390
+ * http://goto/soy-param-migration
1391
+ * @return {!Object}
1392
+ */
1393
+ proto.meshtrade.iam.user.v1.SearchUsersRequest.prototype.toObject = function(opt_includeInstance) {
1394
+ return proto.meshtrade.iam.user.v1.SearchUsersRequest.toObject(opt_includeInstance, this);
1395
+ };
1396
+
1397
+
1398
+ /**
1399
+ * Static version of the {@see toObject} method.
1400
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1401
+ * the JSPB instance for transitional soy proto support:
1402
+ * http://goto/soy-param-migration
1403
+ * @param {!proto.meshtrade.iam.user.v1.SearchUsersRequest} msg The msg instance to transform.
1404
+ * @return {!Object}
1405
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1406
+ */
1407
+ proto.meshtrade.iam.user.v1.SearchUsersRequest.toObject = function(includeInstance, msg) {
1408
+ var f, obj = {
1409
+ email: jspb.Message.getFieldWithDefault(msg, 1, "")
1410
+ };
1411
+
1412
+ if (includeInstance) {
1413
+ obj.$jspbMessageInstance = msg;
1414
+ }
1415
+ return obj;
1416
+ };
1417
+ }
1418
+
1419
+
1420
+ /**
1421
+ * Deserializes binary data (in protobuf wire format).
1422
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1423
+ * @return {!proto.meshtrade.iam.user.v1.SearchUsersRequest}
1424
+ */
1425
+ proto.meshtrade.iam.user.v1.SearchUsersRequest.deserializeBinary = function(bytes) {
1426
+ var reader = new jspb.BinaryReader(bytes);
1427
+ var msg = new proto.meshtrade.iam.user.v1.SearchUsersRequest;
1428
+ return proto.meshtrade.iam.user.v1.SearchUsersRequest.deserializeBinaryFromReader(msg, reader);
1429
+ };
1430
+
1431
+
1432
+ /**
1433
+ * Deserializes binary data (in protobuf wire format) from the
1434
+ * given reader into the given message object.
1435
+ * @param {!proto.meshtrade.iam.user.v1.SearchUsersRequest} msg The message object to deserialize into.
1436
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1437
+ * @return {!proto.meshtrade.iam.user.v1.SearchUsersRequest}
1438
+ */
1439
+ proto.meshtrade.iam.user.v1.SearchUsersRequest.deserializeBinaryFromReader = function(msg, reader) {
1440
+ while (reader.nextField()) {
1441
+ if (reader.isEndGroup()) {
1442
+ break;
1443
+ }
1444
+ var field = reader.getFieldNumber();
1445
+ switch (field) {
1446
+ case 1:
1447
+ var value = /** @type {string} */ (reader.readString());
1448
+ msg.setEmail(value);
1449
+ break;
1450
+ default:
1451
+ reader.skipField();
1452
+ break;
1453
+ }
1454
+ }
1455
+ return msg;
1456
+ };
1457
+
1458
+
1459
+ /**
1460
+ * Serializes the message to binary data (in protobuf wire format).
1461
+ * @return {!Uint8Array}
1462
+ */
1463
+ proto.meshtrade.iam.user.v1.SearchUsersRequest.prototype.serializeBinary = function() {
1464
+ var writer = new jspb.BinaryWriter();
1465
+ proto.meshtrade.iam.user.v1.SearchUsersRequest.serializeBinaryToWriter(this, writer);
1466
+ return writer.getResultBuffer();
1467
+ };
1468
+
1469
+
1470
+ /**
1471
+ * Serializes the given message to binary data (in protobuf wire
1472
+ * format), writing to the given BinaryWriter.
1473
+ * @param {!proto.meshtrade.iam.user.v1.SearchUsersRequest} message
1474
+ * @param {!jspb.BinaryWriter} writer
1475
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1476
+ */
1477
+ proto.meshtrade.iam.user.v1.SearchUsersRequest.serializeBinaryToWriter = function(message, writer) {
1478
+ var f = undefined;
1479
+ f = message.getEmail();
1480
+ if (f.length > 0) {
1481
+ writer.writeString(
1482
+ 1,
1483
+ f
1484
+ );
1485
+ }
1486
+ };
1487
+
1488
+
1489
+ /**
1490
+ * optional string email = 1;
1491
+ * @return {string}
1492
+ */
1493
+ proto.meshtrade.iam.user.v1.SearchUsersRequest.prototype.getEmail = function() {
1494
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1495
+ };
1496
+
1497
+
1498
+ /**
1499
+ * @param {string} value
1500
+ * @return {!proto.meshtrade.iam.user.v1.SearchUsersRequest} returns this
1501
+ */
1502
+ proto.meshtrade.iam.user.v1.SearchUsersRequest.prototype.setEmail = function(value) {
1503
+ return jspb.Message.setProto3StringField(this, 1, value);
1504
+ };
1505
+
1506
+
1507
+
1508
+ /**
1509
+ * List of repeated fields within this message type.
1510
+ * @private {!Array<number>}
1511
+ * @const
1512
+ */
1513
+ proto.meshtrade.iam.user.v1.SearchUsersResponse.repeatedFields_ = [1];
1514
+
1515
+
1516
+
1517
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1518
+ /**
1519
+ * Creates an object representation of this proto.
1520
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1521
+ * Optional fields that are not set will be set to undefined.
1522
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1523
+ * For the list of reserved names please see:
1524
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1525
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1526
+ * JSPB instance for transitional soy proto support:
1527
+ * http://goto/soy-param-migration
1528
+ * @return {!Object}
1529
+ */
1530
+ proto.meshtrade.iam.user.v1.SearchUsersResponse.prototype.toObject = function(opt_includeInstance) {
1531
+ return proto.meshtrade.iam.user.v1.SearchUsersResponse.toObject(opt_includeInstance, this);
1532
+ };
1533
+
1534
+
1535
+ /**
1536
+ * Static version of the {@see toObject} method.
1537
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1538
+ * the JSPB instance for transitional soy proto support:
1539
+ * http://goto/soy-param-migration
1540
+ * @param {!proto.meshtrade.iam.user.v1.SearchUsersResponse} msg The msg instance to transform.
1541
+ * @return {!Object}
1542
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1543
+ */
1544
+ proto.meshtrade.iam.user.v1.SearchUsersResponse.toObject = function(includeInstance, msg) {
1545
+ var f, obj = {
1546
+ usersList: jspb.Message.toObjectList(msg.getUsersList(),
1547
+ meshtrade_iam_user_v1_user_pb.User.toObject, includeInstance)
1548
+ };
1549
+
1550
+ if (includeInstance) {
1551
+ obj.$jspbMessageInstance = msg;
1552
+ }
1553
+ return obj;
1554
+ };
1555
+ }
1556
+
1557
+
1558
+ /**
1559
+ * Deserializes binary data (in protobuf wire format).
1560
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1561
+ * @return {!proto.meshtrade.iam.user.v1.SearchUsersResponse}
1562
+ */
1563
+ proto.meshtrade.iam.user.v1.SearchUsersResponse.deserializeBinary = function(bytes) {
1564
+ var reader = new jspb.BinaryReader(bytes);
1565
+ var msg = new proto.meshtrade.iam.user.v1.SearchUsersResponse;
1566
+ return proto.meshtrade.iam.user.v1.SearchUsersResponse.deserializeBinaryFromReader(msg, reader);
1567
+ };
1568
+
1569
+
1570
+ /**
1571
+ * Deserializes binary data (in protobuf wire format) from the
1572
+ * given reader into the given message object.
1573
+ * @param {!proto.meshtrade.iam.user.v1.SearchUsersResponse} msg The message object to deserialize into.
1574
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1575
+ * @return {!proto.meshtrade.iam.user.v1.SearchUsersResponse}
1576
+ */
1577
+ proto.meshtrade.iam.user.v1.SearchUsersResponse.deserializeBinaryFromReader = function(msg, reader) {
1578
+ while (reader.nextField()) {
1579
+ if (reader.isEndGroup()) {
1580
+ break;
1581
+ }
1582
+ var field = reader.getFieldNumber();
1583
+ switch (field) {
1584
+ case 1:
1585
+ var value = new meshtrade_iam_user_v1_user_pb.User;
1586
+ reader.readMessage(value,meshtrade_iam_user_v1_user_pb.User.deserializeBinaryFromReader);
1587
+ msg.addUsers(value);
1588
+ break;
1589
+ default:
1590
+ reader.skipField();
1591
+ break;
1592
+ }
1593
+ }
1594
+ return msg;
1595
+ };
1596
+
1597
+
1598
+ /**
1599
+ * Serializes the message to binary data (in protobuf wire format).
1600
+ * @return {!Uint8Array}
1601
+ */
1602
+ proto.meshtrade.iam.user.v1.SearchUsersResponse.prototype.serializeBinary = function() {
1603
+ var writer = new jspb.BinaryWriter();
1604
+ proto.meshtrade.iam.user.v1.SearchUsersResponse.serializeBinaryToWriter(this, writer);
1605
+ return writer.getResultBuffer();
1606
+ };
1607
+
1608
+
1609
+ /**
1610
+ * Serializes the given message to binary data (in protobuf wire
1611
+ * format), writing to the given BinaryWriter.
1612
+ * @param {!proto.meshtrade.iam.user.v1.SearchUsersResponse} message
1613
+ * @param {!jspb.BinaryWriter} writer
1614
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1615
+ */
1616
+ proto.meshtrade.iam.user.v1.SearchUsersResponse.serializeBinaryToWriter = function(message, writer) {
1617
+ var f = undefined;
1618
+ f = message.getUsersList();
1619
+ if (f.length > 0) {
1620
+ writer.writeRepeatedMessage(
1621
+ 1,
1622
+ f,
1623
+ meshtrade_iam_user_v1_user_pb.User.serializeBinaryToWriter
1624
+ );
1625
+ }
1626
+ };
1627
+
1628
+
1629
+ /**
1630
+ * repeated User users = 1;
1631
+ * @return {!Array<!proto.meshtrade.iam.user.v1.User>}
1632
+ */
1633
+ proto.meshtrade.iam.user.v1.SearchUsersResponse.prototype.getUsersList = function() {
1634
+ return /** @type{!Array<!proto.meshtrade.iam.user.v1.User>} */ (
1635
+ jspb.Message.getRepeatedWrapperField(this, meshtrade_iam_user_v1_user_pb.User, 1));
1636
+ };
1637
+
1638
+
1639
+ /**
1640
+ * @param {!Array<!proto.meshtrade.iam.user.v1.User>} value
1641
+ * @return {!proto.meshtrade.iam.user.v1.SearchUsersResponse} returns this
1642
+ */
1643
+ proto.meshtrade.iam.user.v1.SearchUsersResponse.prototype.setUsersList = function(value) {
1644
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
1645
+ };
1646
+
1647
+
1648
+ /**
1649
+ * @param {!proto.meshtrade.iam.user.v1.User=} opt_value
1650
+ * @param {number=} opt_index
1651
+ * @return {!proto.meshtrade.iam.user.v1.User}
1652
+ */
1653
+ proto.meshtrade.iam.user.v1.SearchUsersResponse.prototype.addUsers = function(opt_value, opt_index) {
1654
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.meshtrade.iam.user.v1.User, opt_index);
1655
+ };
1656
+
1657
+
1658
+ /**
1659
+ * Clears the list making it empty but non-null.
1660
+ * @return {!proto.meshtrade.iam.user.v1.SearchUsersResponse} returns this
1661
+ */
1662
+ proto.meshtrade.iam.user.v1.SearchUsersResponse.prototype.clearUsersList = function() {
1663
+ return this.setUsersList([]);
1664
+ };
1665
+
1666
+
1667
+
1668
+
1669
+
1336
1670
  if (jspb.Message.GENERATE_TO_OBJECT) {
1337
1671
  /**
1338
1672
  * Creates an object representation of this proto.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meshtrade/api-old",
3
- "version": "1.43.0",
3
+ "version": "1.44.0",
4
4
  "description": "Mesh Typescript SDK (Legacy)",
5
5
  "author": "Bernard Bussy <bernard@meshtrade.co>",
6
6
  "license": "UNLICENSED",