@meshtrade/api-old 1.39.0 → 1.41.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.
Files changed (24) hide show
  1. package/dist/meshtrade/iam/role/v1/role.js +2 -0
  2. package/dist/meshtrade/iam/role/v1/role_pb.d.ts +2 -0
  3. package/dist/meshtrade/iam/role/v1/role_pb.js +2 -0
  4. package/dist/meshtrade/iam/user/v1/service_grpc_web_client_meshts.d.ts +1 -7
  5. package/dist/meshtrade/iam/user/v1/service_grpc_web_client_meshts.js +0 -8
  6. package/dist/meshtrade/iam/user/v1/service_grpc_web_pb.d.ts +0 -12
  7. package/dist/meshtrade/iam/user/v1/service_grpc_web_pb.js +0 -61
  8. package/dist/meshtrade/iam/user/v1/service_pb.d.ts +0 -67
  9. package/dist/meshtrade/iam/user/v1/service_pb.js +0 -567
  10. package/dist/meshtrade/iam/user/v1/user_pb.d.ts +32 -0
  11. package/dist/meshtrade/iam/user/v1/user_pb.js +270 -7
  12. package/dist/meshtrade/iam/user_profile/v1/index.d.ts +4 -0
  13. package/dist/meshtrade/iam/user_profile/v1/index.js +45 -0
  14. package/dist/meshtrade/iam/user_profile/v1/service_grpc_web_client_meshts.d.ts +53 -0
  15. package/dist/meshtrade/iam/user_profile/v1/service_grpc_web_client_meshts.js +96 -0
  16. package/dist/meshtrade/iam/user_profile/v1/service_grpc_web_pb.d.ts +68 -0
  17. package/dist/meshtrade/iam/user_profile/v1/service_grpc_web_pb.js +331 -0
  18. package/dist/meshtrade/iam/user_profile/v1/service_pb.d.ts +97 -0
  19. package/dist/meshtrade/iam/user_profile/v1/service_pb.js +812 -0
  20. package/dist/meshtrade/iam/user_profile/v1/user_profile_pb.d.ts +62 -0
  21. package/dist/meshtrade/iam/user_profile/v1/user_profile_pb.js +488 -0
  22. package/dist/meshtrade/trading/limit_order/v1/service_pb.d.ts +6 -0
  23. package/dist/meshtrade/trading/limit_order/v1/service_pb.js +64 -6
  24. package/package.json +1 -1
@@ -0,0 +1,62 @@
1
+ import * as jspb from 'google-protobuf'
2
+
3
+ import * as buf_validate_validate_pb from '../../../../buf/validate/validate_pb'; // proto import: "buf/validate/validate.proto"
4
+ import * as meshtrade_type_v1_token_pb from '../../../../meshtrade/type/v1/token_pb'; // proto import: "meshtrade/type/v1/token.proto"
5
+
6
+
7
+ export class UserProfile extends jspb.Message {
8
+ getName(): string;
9
+ setName(value: string): UserProfile;
10
+
11
+ getOwner(): string;
12
+ setOwner(value: string): UserProfile;
13
+
14
+ getOwnersList(): Array<string>;
15
+ setOwnersList(value: Array<string>): UserProfile;
16
+ clearOwnersList(): UserProfile;
17
+ addOwners(value: string, index?: number): UserProfile;
18
+
19
+ getUser(): string;
20
+ setUser(value: string): UserProfile;
21
+
22
+ getLocale(): string;
23
+ setLocale(value: string): UserProfile;
24
+
25
+ getProfilePictureUrl(): string;
26
+ setProfilePictureUrl(value: string): UserProfile;
27
+
28
+ getDisplayName(): string;
29
+ setDisplayName(value: string): UserProfile;
30
+
31
+ getDisplayCurrency(): meshtrade_type_v1_token_pb.Token | undefined;
32
+ setDisplayCurrency(value?: meshtrade_type_v1_token_pb.Token): UserProfile;
33
+ hasDisplayCurrency(): boolean;
34
+ clearDisplayCurrency(): UserProfile;
35
+
36
+ getReportingCurrency(): meshtrade_type_v1_token_pb.Token | undefined;
37
+ setReportingCurrency(value?: meshtrade_type_v1_token_pb.Token): UserProfile;
38
+ hasReportingCurrency(): boolean;
39
+ clearReportingCurrency(): UserProfile;
40
+
41
+ serializeBinary(): Uint8Array;
42
+ toObject(includeInstance?: boolean): UserProfile.AsObject;
43
+ static toObject(includeInstance: boolean, msg: UserProfile): UserProfile.AsObject;
44
+ static serializeBinaryToWriter(message: UserProfile, writer: jspb.BinaryWriter): void;
45
+ static deserializeBinary(bytes: Uint8Array): UserProfile;
46
+ static deserializeBinaryFromReader(message: UserProfile, reader: jspb.BinaryReader): UserProfile;
47
+ }
48
+
49
+ export namespace UserProfile {
50
+ export type AsObject = {
51
+ name: string,
52
+ owner: string,
53
+ ownersList: Array<string>,
54
+ user: string,
55
+ locale: string,
56
+ profilePictureUrl: string,
57
+ displayName: string,
58
+ displayCurrency?: meshtrade_type_v1_token_pb.Token.AsObject,
59
+ reportingCurrency?: meshtrade_type_v1_token_pb.Token.AsObject,
60
+ }
61
+ }
62
+
@@ -0,0 +1,488 @@
1
+ // source: meshtrade/iam/user_profile/v1/user_profile.proto
2
+ /**
3
+ * @fileoverview
4
+ * @enhanceable
5
+ * @suppress {missingRequire} reports error on implicit type usages.
6
+ * @suppress {messageConventions} JS Compiler reports an error if a variable or
7
+ * field starts with 'MSG_' and isn't a translatable message.
8
+ * @public
9
+ */
10
+ // GENERATED CODE -- DO NOT EDIT!
11
+ /* eslint-disable */
12
+ // @ts-nocheck
13
+
14
+ var jspb = require('google-protobuf');
15
+ var goog = jspb;
16
+ var global =
17
+ (typeof globalThis !== 'undefined' && globalThis) ||
18
+ (typeof window !== 'undefined' && window) ||
19
+ (typeof global !== 'undefined' && global) ||
20
+ (typeof self !== 'undefined' && self) ||
21
+ (function () { return this; }).call(null) ||
22
+ Function('return this')();
23
+
24
+ var buf_validate_validate_pb = require('../../../../buf/validate/validate_pb.js');
25
+ goog.object.extend(proto, buf_validate_validate_pb);
26
+ var meshtrade_type_v1_token_pb = require('../../../../meshtrade/type/v1/token_pb.js');
27
+ goog.object.extend(proto, meshtrade_type_v1_token_pb);
28
+ goog.exportSymbol('proto.meshtrade.iam.user_profile.v1.UserProfile', null, global);
29
+ /**
30
+ * Generated by JsPbCodeGenerator.
31
+ * @param {Array=} opt_data Optional initial data array, typically from a
32
+ * server response, or constructed directly in Javascript. The array is used
33
+ * in place and becomes part of the constructed object. It is not cloned.
34
+ * If no data is provided, the constructed object will be empty, but still
35
+ * valid.
36
+ * @extends {jspb.Message}
37
+ * @constructor
38
+ */
39
+ proto.meshtrade.iam.user_profile.v1.UserProfile = function(opt_data) {
40
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.meshtrade.iam.user_profile.v1.UserProfile.repeatedFields_, null);
41
+ };
42
+ goog.inherits(proto.meshtrade.iam.user_profile.v1.UserProfile, jspb.Message);
43
+ if (goog.DEBUG && !COMPILED) {
44
+ /**
45
+ * @public
46
+ * @override
47
+ */
48
+ proto.meshtrade.iam.user_profile.v1.UserProfile.displayName = 'proto.meshtrade.iam.user_profile.v1.UserProfile';
49
+ }
50
+
51
+ /**
52
+ * List of repeated fields within this message type.
53
+ * @private {!Array<number>}
54
+ * @const
55
+ */
56
+ proto.meshtrade.iam.user_profile.v1.UserProfile.repeatedFields_ = [3];
57
+
58
+
59
+
60
+ if (jspb.Message.GENERATE_TO_OBJECT) {
61
+ /**
62
+ * Creates an object representation of this proto.
63
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
64
+ * Optional fields that are not set will be set to undefined.
65
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
66
+ * For the list of reserved names please see:
67
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
68
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
69
+ * JSPB instance for transitional soy proto support:
70
+ * http://goto/soy-param-migration
71
+ * @return {!Object}
72
+ */
73
+ proto.meshtrade.iam.user_profile.v1.UserProfile.prototype.toObject = function(opt_includeInstance) {
74
+ return proto.meshtrade.iam.user_profile.v1.UserProfile.toObject(opt_includeInstance, this);
75
+ };
76
+
77
+
78
+ /**
79
+ * Static version of the {@see toObject} method.
80
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
81
+ * the JSPB instance for transitional soy proto support:
82
+ * http://goto/soy-param-migration
83
+ * @param {!proto.meshtrade.iam.user_profile.v1.UserProfile} msg The msg instance to transform.
84
+ * @return {!Object}
85
+ * @suppress {unusedLocalVariables} f is only used for nested messages
86
+ */
87
+ proto.meshtrade.iam.user_profile.v1.UserProfile.toObject = function(includeInstance, msg) {
88
+ var f, obj = {
89
+ name: jspb.Message.getFieldWithDefault(msg, 1, ""),
90
+ owner: jspb.Message.getFieldWithDefault(msg, 2, ""),
91
+ ownersList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
92
+ user: jspb.Message.getFieldWithDefault(msg, 4, ""),
93
+ locale: jspb.Message.getFieldWithDefault(msg, 5, ""),
94
+ profilePictureUrl: jspb.Message.getFieldWithDefault(msg, 6, ""),
95
+ displayName: jspb.Message.getFieldWithDefault(msg, 7, ""),
96
+ displayCurrency: (f = msg.getDisplayCurrency()) && meshtrade_type_v1_token_pb.Token.toObject(includeInstance, f),
97
+ reportingCurrency: (f = msg.getReportingCurrency()) && meshtrade_type_v1_token_pb.Token.toObject(includeInstance, f)
98
+ };
99
+
100
+ if (includeInstance) {
101
+ obj.$jspbMessageInstance = msg;
102
+ }
103
+ return obj;
104
+ };
105
+ }
106
+
107
+
108
+ /**
109
+ * Deserializes binary data (in protobuf wire format).
110
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
111
+ * @return {!proto.meshtrade.iam.user_profile.v1.UserProfile}
112
+ */
113
+ proto.meshtrade.iam.user_profile.v1.UserProfile.deserializeBinary = function(bytes) {
114
+ var reader = new jspb.BinaryReader(bytes);
115
+ var msg = new proto.meshtrade.iam.user_profile.v1.UserProfile;
116
+ return proto.meshtrade.iam.user_profile.v1.UserProfile.deserializeBinaryFromReader(msg, reader);
117
+ };
118
+
119
+
120
+ /**
121
+ * Deserializes binary data (in protobuf wire format) from the
122
+ * given reader into the given message object.
123
+ * @param {!proto.meshtrade.iam.user_profile.v1.UserProfile} msg The message object to deserialize into.
124
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
125
+ * @return {!proto.meshtrade.iam.user_profile.v1.UserProfile}
126
+ */
127
+ proto.meshtrade.iam.user_profile.v1.UserProfile.deserializeBinaryFromReader = function(msg, reader) {
128
+ while (reader.nextField()) {
129
+ if (reader.isEndGroup()) {
130
+ break;
131
+ }
132
+ var field = reader.getFieldNumber();
133
+ switch (field) {
134
+ case 1:
135
+ var value = /** @type {string} */ (reader.readString());
136
+ msg.setName(value);
137
+ break;
138
+ case 2:
139
+ var value = /** @type {string} */ (reader.readString());
140
+ msg.setOwner(value);
141
+ break;
142
+ case 3:
143
+ var value = /** @type {string} */ (reader.readString());
144
+ msg.addOwners(value);
145
+ break;
146
+ case 4:
147
+ var value = /** @type {string} */ (reader.readString());
148
+ msg.setUser(value);
149
+ break;
150
+ case 5:
151
+ var value = /** @type {string} */ (reader.readString());
152
+ msg.setLocale(value);
153
+ break;
154
+ case 6:
155
+ var value = /** @type {string} */ (reader.readString());
156
+ msg.setProfilePictureUrl(value);
157
+ break;
158
+ case 7:
159
+ var value = /** @type {string} */ (reader.readString());
160
+ msg.setDisplayName(value);
161
+ break;
162
+ case 8:
163
+ var value = new meshtrade_type_v1_token_pb.Token;
164
+ reader.readMessage(value,meshtrade_type_v1_token_pb.Token.deserializeBinaryFromReader);
165
+ msg.setDisplayCurrency(value);
166
+ break;
167
+ case 9:
168
+ var value = new meshtrade_type_v1_token_pb.Token;
169
+ reader.readMessage(value,meshtrade_type_v1_token_pb.Token.deserializeBinaryFromReader);
170
+ msg.setReportingCurrency(value);
171
+ break;
172
+ default:
173
+ reader.skipField();
174
+ break;
175
+ }
176
+ }
177
+ return msg;
178
+ };
179
+
180
+
181
+ /**
182
+ * Serializes the message to binary data (in protobuf wire format).
183
+ * @return {!Uint8Array}
184
+ */
185
+ proto.meshtrade.iam.user_profile.v1.UserProfile.prototype.serializeBinary = function() {
186
+ var writer = new jspb.BinaryWriter();
187
+ proto.meshtrade.iam.user_profile.v1.UserProfile.serializeBinaryToWriter(this, writer);
188
+ return writer.getResultBuffer();
189
+ };
190
+
191
+
192
+ /**
193
+ * Serializes the given message to binary data (in protobuf wire
194
+ * format), writing to the given BinaryWriter.
195
+ * @param {!proto.meshtrade.iam.user_profile.v1.UserProfile} message
196
+ * @param {!jspb.BinaryWriter} writer
197
+ * @suppress {unusedLocalVariables} f is only used for nested messages
198
+ */
199
+ proto.meshtrade.iam.user_profile.v1.UserProfile.serializeBinaryToWriter = function(message, writer) {
200
+ var f = undefined;
201
+ f = message.getName();
202
+ if (f.length > 0) {
203
+ writer.writeString(
204
+ 1,
205
+ f
206
+ );
207
+ }
208
+ f = message.getOwner();
209
+ if (f.length > 0) {
210
+ writer.writeString(
211
+ 2,
212
+ f
213
+ );
214
+ }
215
+ f = message.getOwnersList();
216
+ if (f.length > 0) {
217
+ writer.writeRepeatedString(
218
+ 3,
219
+ f
220
+ );
221
+ }
222
+ f = message.getUser();
223
+ if (f.length > 0) {
224
+ writer.writeString(
225
+ 4,
226
+ f
227
+ );
228
+ }
229
+ f = message.getLocale();
230
+ if (f.length > 0) {
231
+ writer.writeString(
232
+ 5,
233
+ f
234
+ );
235
+ }
236
+ f = message.getProfilePictureUrl();
237
+ if (f.length > 0) {
238
+ writer.writeString(
239
+ 6,
240
+ f
241
+ );
242
+ }
243
+ f = message.getDisplayName();
244
+ if (f.length > 0) {
245
+ writer.writeString(
246
+ 7,
247
+ f
248
+ );
249
+ }
250
+ f = message.getDisplayCurrency();
251
+ if (f != null) {
252
+ writer.writeMessage(
253
+ 8,
254
+ f,
255
+ meshtrade_type_v1_token_pb.Token.serializeBinaryToWriter
256
+ );
257
+ }
258
+ f = message.getReportingCurrency();
259
+ if (f != null) {
260
+ writer.writeMessage(
261
+ 9,
262
+ f,
263
+ meshtrade_type_v1_token_pb.Token.serializeBinaryToWriter
264
+ );
265
+ }
266
+ };
267
+
268
+
269
+ /**
270
+ * optional string name = 1;
271
+ * @return {string}
272
+ */
273
+ proto.meshtrade.iam.user_profile.v1.UserProfile.prototype.getName = function() {
274
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
275
+ };
276
+
277
+
278
+ /**
279
+ * @param {string} value
280
+ * @return {!proto.meshtrade.iam.user_profile.v1.UserProfile} returns this
281
+ */
282
+ proto.meshtrade.iam.user_profile.v1.UserProfile.prototype.setName = function(value) {
283
+ return jspb.Message.setProto3StringField(this, 1, value);
284
+ };
285
+
286
+
287
+ /**
288
+ * optional string owner = 2;
289
+ * @return {string}
290
+ */
291
+ proto.meshtrade.iam.user_profile.v1.UserProfile.prototype.getOwner = function() {
292
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
293
+ };
294
+
295
+
296
+ /**
297
+ * @param {string} value
298
+ * @return {!proto.meshtrade.iam.user_profile.v1.UserProfile} returns this
299
+ */
300
+ proto.meshtrade.iam.user_profile.v1.UserProfile.prototype.setOwner = function(value) {
301
+ return jspb.Message.setProto3StringField(this, 2, value);
302
+ };
303
+
304
+
305
+ /**
306
+ * repeated string owners = 3;
307
+ * @return {!Array<string>}
308
+ */
309
+ proto.meshtrade.iam.user_profile.v1.UserProfile.prototype.getOwnersList = function() {
310
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
311
+ };
312
+
313
+
314
+ /**
315
+ * @param {!Array<string>} value
316
+ * @return {!proto.meshtrade.iam.user_profile.v1.UserProfile} returns this
317
+ */
318
+ proto.meshtrade.iam.user_profile.v1.UserProfile.prototype.setOwnersList = function(value) {
319
+ return jspb.Message.setField(this, 3, value || []);
320
+ };
321
+
322
+
323
+ /**
324
+ * @param {string} value
325
+ * @param {number=} opt_index
326
+ * @return {!proto.meshtrade.iam.user_profile.v1.UserProfile} returns this
327
+ */
328
+ proto.meshtrade.iam.user_profile.v1.UserProfile.prototype.addOwners = function(value, opt_index) {
329
+ return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
330
+ };
331
+
332
+
333
+ /**
334
+ * Clears the list making it empty but non-null.
335
+ * @return {!proto.meshtrade.iam.user_profile.v1.UserProfile} returns this
336
+ */
337
+ proto.meshtrade.iam.user_profile.v1.UserProfile.prototype.clearOwnersList = function() {
338
+ return this.setOwnersList([]);
339
+ };
340
+
341
+
342
+ /**
343
+ * optional string user = 4;
344
+ * @return {string}
345
+ */
346
+ proto.meshtrade.iam.user_profile.v1.UserProfile.prototype.getUser = function() {
347
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
348
+ };
349
+
350
+
351
+ /**
352
+ * @param {string} value
353
+ * @return {!proto.meshtrade.iam.user_profile.v1.UserProfile} returns this
354
+ */
355
+ proto.meshtrade.iam.user_profile.v1.UserProfile.prototype.setUser = function(value) {
356
+ return jspb.Message.setProto3StringField(this, 4, value);
357
+ };
358
+
359
+
360
+ /**
361
+ * optional string locale = 5;
362
+ * @return {string}
363
+ */
364
+ proto.meshtrade.iam.user_profile.v1.UserProfile.prototype.getLocale = function() {
365
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
366
+ };
367
+
368
+
369
+ /**
370
+ * @param {string} value
371
+ * @return {!proto.meshtrade.iam.user_profile.v1.UserProfile} returns this
372
+ */
373
+ proto.meshtrade.iam.user_profile.v1.UserProfile.prototype.setLocale = function(value) {
374
+ return jspb.Message.setProto3StringField(this, 5, value);
375
+ };
376
+
377
+
378
+ /**
379
+ * optional string profile_picture_url = 6;
380
+ * @return {string}
381
+ */
382
+ proto.meshtrade.iam.user_profile.v1.UserProfile.prototype.getProfilePictureUrl = function() {
383
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
384
+ };
385
+
386
+
387
+ /**
388
+ * @param {string} value
389
+ * @return {!proto.meshtrade.iam.user_profile.v1.UserProfile} returns this
390
+ */
391
+ proto.meshtrade.iam.user_profile.v1.UserProfile.prototype.setProfilePictureUrl = function(value) {
392
+ return jspb.Message.setProto3StringField(this, 6, value);
393
+ };
394
+
395
+
396
+ /**
397
+ * optional string display_name = 7;
398
+ * @return {string}
399
+ */
400
+ proto.meshtrade.iam.user_profile.v1.UserProfile.prototype.getDisplayName = function() {
401
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
402
+ };
403
+
404
+
405
+ /**
406
+ * @param {string} value
407
+ * @return {!proto.meshtrade.iam.user_profile.v1.UserProfile} returns this
408
+ */
409
+ proto.meshtrade.iam.user_profile.v1.UserProfile.prototype.setDisplayName = function(value) {
410
+ return jspb.Message.setProto3StringField(this, 7, value);
411
+ };
412
+
413
+
414
+ /**
415
+ * optional meshtrade.type.v1.Token display_currency = 8;
416
+ * @return {?proto.meshtrade.type.v1.Token}
417
+ */
418
+ proto.meshtrade.iam.user_profile.v1.UserProfile.prototype.getDisplayCurrency = function() {
419
+ return /** @type{?proto.meshtrade.type.v1.Token} */ (
420
+ jspb.Message.getWrapperField(this, meshtrade_type_v1_token_pb.Token, 8));
421
+ };
422
+
423
+
424
+ /**
425
+ * @param {?proto.meshtrade.type.v1.Token|undefined} value
426
+ * @return {!proto.meshtrade.iam.user_profile.v1.UserProfile} returns this
427
+ */
428
+ proto.meshtrade.iam.user_profile.v1.UserProfile.prototype.setDisplayCurrency = function(value) {
429
+ return jspb.Message.setWrapperField(this, 8, value);
430
+ };
431
+
432
+
433
+ /**
434
+ * Clears the message field making it undefined.
435
+ * @return {!proto.meshtrade.iam.user_profile.v1.UserProfile} returns this
436
+ */
437
+ proto.meshtrade.iam.user_profile.v1.UserProfile.prototype.clearDisplayCurrency = function() {
438
+ return this.setDisplayCurrency(undefined);
439
+ };
440
+
441
+
442
+ /**
443
+ * Returns whether this field is set.
444
+ * @return {boolean}
445
+ */
446
+ proto.meshtrade.iam.user_profile.v1.UserProfile.prototype.hasDisplayCurrency = function() {
447
+ return jspb.Message.getField(this, 8) != null;
448
+ };
449
+
450
+
451
+ /**
452
+ * optional meshtrade.type.v1.Token reporting_currency = 9;
453
+ * @return {?proto.meshtrade.type.v1.Token}
454
+ */
455
+ proto.meshtrade.iam.user_profile.v1.UserProfile.prototype.getReportingCurrency = function() {
456
+ return /** @type{?proto.meshtrade.type.v1.Token} */ (
457
+ jspb.Message.getWrapperField(this, meshtrade_type_v1_token_pb.Token, 9));
458
+ };
459
+
460
+
461
+ /**
462
+ * @param {?proto.meshtrade.type.v1.Token|undefined} value
463
+ * @return {!proto.meshtrade.iam.user_profile.v1.UserProfile} returns this
464
+ */
465
+ proto.meshtrade.iam.user_profile.v1.UserProfile.prototype.setReportingCurrency = function(value) {
466
+ return jspb.Message.setWrapperField(this, 9, value);
467
+ };
468
+
469
+
470
+ /**
471
+ * Clears the message field making it undefined.
472
+ * @return {!proto.meshtrade.iam.user_profile.v1.UserProfile} returns this
473
+ */
474
+ proto.meshtrade.iam.user_profile.v1.UserProfile.prototype.clearReportingCurrency = function() {
475
+ return this.setReportingCurrency(undefined);
476
+ };
477
+
478
+
479
+ /**
480
+ * Returns whether this field is set.
481
+ * @return {boolean}
482
+ */
483
+ proto.meshtrade.iam.user_profile.v1.UserProfile.prototype.hasReportingCurrency = function() {
484
+ return jspb.Message.getField(this, 9) != null;
485
+ };
486
+
487
+
488
+ goog.object.extend(exports, proto.meshtrade.iam.user_profile.v1);
@@ -132,6 +132,11 @@ export class SearchLimitOrdersRequest extends jspb.Message {
132
132
  getAccount(): string;
133
133
  setAccount(value: string): SearchLimitOrdersRequest;
134
134
 
135
+ getStatesList(): Array<meshtrade_trading_limit_order_v1_limit_order_pb.LimitOrderState>;
136
+ setStatesList(value: Array<meshtrade_trading_limit_order_v1_limit_order_pb.LimitOrderState>): SearchLimitOrdersRequest;
137
+ clearStatesList(): SearchLimitOrdersRequest;
138
+ addStates(value: meshtrade_trading_limit_order_v1_limit_order_pb.LimitOrderState, index?: number): SearchLimitOrdersRequest;
139
+
135
140
  getLiveLedgerData(): boolean;
136
141
  setLiveLedgerData(value: boolean): SearchLimitOrdersRequest;
137
142
 
@@ -147,6 +152,7 @@ export namespace SearchLimitOrdersRequest {
147
152
  export type AsObject = {
148
153
  token: string,
149
154
  account: string,
155
+ statesList: Array<meshtrade_trading_limit_order_v1_limit_order_pb.LimitOrderState>,
150
156
  liveLedgerData: boolean,
151
157
  }
152
158
  }
@@ -174,7 +174,7 @@ if (goog.DEBUG && !COMPILED) {
174
174
  * @constructor
175
175
  */
176
176
  proto.meshtrade.trading.limit_order.v1.SearchLimitOrdersRequest = function(opt_data) {
177
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
177
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.meshtrade.trading.limit_order.v1.SearchLimitOrdersRequest.repeatedFields_, null);
178
178
  };
179
179
  goog.inherits(proto.meshtrade.trading.limit_order.v1.SearchLimitOrdersRequest, jspb.Message);
180
180
  if (goog.DEBUG && !COMPILED) {
@@ -1118,6 +1118,13 @@ proto.meshtrade.trading.limit_order.v1.ListLimitOrdersResponse.prototype.clearLi
1118
1118
 
1119
1119
 
1120
1120
 
1121
+ /**
1122
+ * List of repeated fields within this message type.
1123
+ * @private {!Array<number>}
1124
+ * @const
1125
+ */
1126
+ proto.meshtrade.trading.limit_order.v1.SearchLimitOrdersRequest.repeatedFields_ = [3];
1127
+
1121
1128
 
1122
1129
 
1123
1130
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -1151,7 +1158,8 @@ proto.meshtrade.trading.limit_order.v1.SearchLimitOrdersRequest.toObject = funct
1151
1158
  var f, obj = {
1152
1159
  token: jspb.Message.getFieldWithDefault(msg, 1, ""),
1153
1160
  account: jspb.Message.getFieldWithDefault(msg, 2, ""),
1154
- liveLedgerData: jspb.Message.getBooleanFieldWithDefault(msg, 3, false)
1161
+ statesList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
1162
+ liveLedgerData: jspb.Message.getBooleanFieldWithDefault(msg, 4, false)
1155
1163
  };
1156
1164
 
1157
1165
  if (includeInstance) {
@@ -1197,6 +1205,12 @@ proto.meshtrade.trading.limit_order.v1.SearchLimitOrdersRequest.deserializeBinar
1197
1205
  msg.setAccount(value);
1198
1206
  break;
1199
1207
  case 3:
1208
+ var values = /** @type {!Array<!proto.meshtrade.trading.limit_order.v1.LimitOrderState>} */ (reader.isDelimited() ? reader.readPackedEnum() : [reader.readEnum()]);
1209
+ for (var i = 0; i < values.length; i++) {
1210
+ msg.addStates(values[i]);
1211
+ }
1212
+ break;
1213
+ case 4:
1200
1214
  var value = /** @type {boolean} */ (reader.readBool());
1201
1215
  msg.setLiveLedgerData(value);
1202
1216
  break;
@@ -1243,10 +1257,17 @@ proto.meshtrade.trading.limit_order.v1.SearchLimitOrdersRequest.serializeBinaryT
1243
1257
  f
1244
1258
  );
1245
1259
  }
1260
+ f = message.getStatesList();
1261
+ if (f.length > 0) {
1262
+ writer.writePackedEnum(
1263
+ 3,
1264
+ f
1265
+ );
1266
+ }
1246
1267
  f = message.getLiveLedgerData();
1247
1268
  if (f) {
1248
1269
  writer.writeBool(
1249
- 3,
1270
+ 4,
1250
1271
  f
1251
1272
  );
1252
1273
  }
@@ -1290,11 +1311,48 @@ proto.meshtrade.trading.limit_order.v1.SearchLimitOrdersRequest.prototype.setAcc
1290
1311
 
1291
1312
 
1292
1313
  /**
1293
- * optional bool live_ledger_data = 3;
1314
+ * repeated LimitOrderState states = 3;
1315
+ * @return {!Array<!proto.meshtrade.trading.limit_order.v1.LimitOrderState>}
1316
+ */
1317
+ proto.meshtrade.trading.limit_order.v1.SearchLimitOrdersRequest.prototype.getStatesList = function() {
1318
+ return /** @type {!Array<!proto.meshtrade.trading.limit_order.v1.LimitOrderState>} */ (jspb.Message.getRepeatedField(this, 3));
1319
+ };
1320
+
1321
+
1322
+ /**
1323
+ * @param {!Array<!proto.meshtrade.trading.limit_order.v1.LimitOrderState>} value
1324
+ * @return {!proto.meshtrade.trading.limit_order.v1.SearchLimitOrdersRequest} returns this
1325
+ */
1326
+ proto.meshtrade.trading.limit_order.v1.SearchLimitOrdersRequest.prototype.setStatesList = function(value) {
1327
+ return jspb.Message.setField(this, 3, value || []);
1328
+ };
1329
+
1330
+
1331
+ /**
1332
+ * @param {!proto.meshtrade.trading.limit_order.v1.LimitOrderState} value
1333
+ * @param {number=} opt_index
1334
+ * @return {!proto.meshtrade.trading.limit_order.v1.SearchLimitOrdersRequest} returns this
1335
+ */
1336
+ proto.meshtrade.trading.limit_order.v1.SearchLimitOrdersRequest.prototype.addStates = function(value, opt_index) {
1337
+ return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
1338
+ };
1339
+
1340
+
1341
+ /**
1342
+ * Clears the list making it empty but non-null.
1343
+ * @return {!proto.meshtrade.trading.limit_order.v1.SearchLimitOrdersRequest} returns this
1344
+ */
1345
+ proto.meshtrade.trading.limit_order.v1.SearchLimitOrdersRequest.prototype.clearStatesList = function() {
1346
+ return this.setStatesList([]);
1347
+ };
1348
+
1349
+
1350
+ /**
1351
+ * optional bool live_ledger_data = 4;
1294
1352
  * @return {boolean}
1295
1353
  */
1296
1354
  proto.meshtrade.trading.limit_order.v1.SearchLimitOrdersRequest.prototype.getLiveLedgerData = function() {
1297
- return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
1355
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false));
1298
1356
  };
1299
1357
 
1300
1358
 
@@ -1303,7 +1361,7 @@ proto.meshtrade.trading.limit_order.v1.SearchLimitOrdersRequest.prototype.getLiv
1303
1361
  * @return {!proto.meshtrade.trading.limit_order.v1.SearchLimitOrdersRequest} returns this
1304
1362
  */
1305
1363
  proto.meshtrade.trading.limit_order.v1.SearchLimitOrdersRequest.prototype.setLiveLedgerData = function(value) {
1306
- return jspb.Message.setProto3BooleanField(this, 3, value);
1364
+ return jspb.Message.setProto3BooleanField(this, 4, value);
1307
1365
  };
1308
1366
 
1309
1367
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meshtrade/api-old",
3
- "version": "1.39.0",
3
+ "version": "1.41.0",
4
4
  "description": "Mesh Typescript SDK (Legacy)",
5
5
  "author": "Bernard Bussy <bernard@meshtrade.co>",
6
6
  "license": "UNLICENSED",