@meshtrade/api-old 1.30.0 → 1.31.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.
- package/dist/meshtrade/compliance/client/v1/client_pb.d.ts +10 -4
- package/dist/meshtrade/compliance/client/v1/client_pb.js +115 -59
- package/dist/meshtrade/iam/api_user/v1/api_user_pb.d.ts +6 -0
- package/dist/meshtrade/iam/api_user/v1/api_user_pb.js +74 -25
- package/dist/meshtrade/iam/group/v1/group_pb.d.ts +6 -0
- package/dist/meshtrade/iam/group/v1/group_pb.js +57 -1
- package/dist/meshtrade/iam/user/v1/user_pb.d.ts +6 -0
- package/dist/meshtrade/iam/user/v1/user_pb.js +62 -13
- package/dist/meshtrade/studio/instrument/v1/instrument_pb.d.ts +6 -0
- package/dist/meshtrade/studio/instrument/v1/instrument_pb.js +57 -1
- package/dist/meshtrade/trading/limit_order/v1/limit_order_pb.d.ts +6 -0
- package/dist/meshtrade/trading/limit_order/v1/limit_order_pb.js +104 -48
- package/dist/meshtrade/wallet/account/v1/account_pb.d.ts +6 -0
- package/dist/meshtrade/wallet/account/v1/account_pb.js +50 -1
- package/package.json +3 -2
|
@@ -39,7 +39,7 @@ goog.exportSymbol('proto.meshtrade.trading.limit_order.v1.LimitOrderStatus', nul
|
|
|
39
39
|
* @constructor
|
|
40
40
|
*/
|
|
41
41
|
proto.meshtrade.trading.limit_order.v1.LimitOrder = function(opt_data) {
|
|
42
|
-
jspb.Message.initialize(this, opt_data, 0, -1,
|
|
42
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.meshtrade.trading.limit_order.v1.LimitOrder.repeatedFields_, null);
|
|
43
43
|
};
|
|
44
44
|
goog.inherits(proto.meshtrade.trading.limit_order.v1.LimitOrder, jspb.Message);
|
|
45
45
|
if (goog.DEBUG && !COMPILED) {
|
|
@@ -50,6 +50,13 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
50
50
|
proto.meshtrade.trading.limit_order.v1.LimitOrder.displayName = 'proto.meshtrade.trading.limit_order.v1.LimitOrder';
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
+
/**
|
|
54
|
+
* List of repeated fields within this message type.
|
|
55
|
+
* @private {!Array<number>}
|
|
56
|
+
* @const
|
|
57
|
+
*/
|
|
58
|
+
proto.meshtrade.trading.limit_order.v1.LimitOrder.repeatedFields_ = [3];
|
|
59
|
+
|
|
53
60
|
|
|
54
61
|
|
|
55
62
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -83,14 +90,15 @@ proto.meshtrade.trading.limit_order.v1.LimitOrder.toObject = function(includeIns
|
|
|
83
90
|
var f, obj = {
|
|
84
91
|
name: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
85
92
|
owner: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
93
|
+
ownersList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
|
|
94
|
+
account: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
95
|
+
externalReference: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
96
|
+
side: jspb.Message.getFieldWithDefault(msg, 7, 0),
|
|
89
97
|
limitPrice: (f = msg.getLimitPrice()) && meshtrade_type_v1_amount_pb.Amount.toObject(includeInstance, f),
|
|
90
98
|
quantity: (f = msg.getQuantity()) && meshtrade_type_v1_amount_pb.Amount.toObject(includeInstance, f),
|
|
91
99
|
fillPrice: (f = msg.getFillPrice()) && meshtrade_type_v1_amount_pb.Amount.toObject(includeInstance, f),
|
|
92
100
|
filledQuantity: (f = msg.getFilledQuantity()) && meshtrade_type_v1_amount_pb.Amount.toObject(includeInstance, f),
|
|
93
|
-
status: jspb.Message.getFieldWithDefault(msg,
|
|
101
|
+
status: jspb.Message.getFieldWithDefault(msg, 12, 0)
|
|
94
102
|
};
|
|
95
103
|
|
|
96
104
|
if (includeInstance) {
|
|
@@ -137,37 +145,41 @@ proto.meshtrade.trading.limit_order.v1.LimitOrder.deserializeBinaryFromReader =
|
|
|
137
145
|
break;
|
|
138
146
|
case 3:
|
|
139
147
|
var value = /** @type {string} */ (reader.readString());
|
|
140
|
-
msg.
|
|
148
|
+
msg.addOwners(value);
|
|
141
149
|
break;
|
|
142
150
|
case 5:
|
|
143
151
|
var value = /** @type {string} */ (reader.readString());
|
|
144
|
-
msg.
|
|
152
|
+
msg.setAccount(value);
|
|
145
153
|
break;
|
|
146
154
|
case 6:
|
|
155
|
+
var value = /** @type {string} */ (reader.readString());
|
|
156
|
+
msg.setExternalReference(value);
|
|
157
|
+
break;
|
|
158
|
+
case 7:
|
|
147
159
|
var value = /** @type {!proto.meshtrade.trading.limit_order.v1.LimitOrderSide} */ (reader.readEnum());
|
|
148
160
|
msg.setSide(value);
|
|
149
161
|
break;
|
|
150
|
-
case
|
|
162
|
+
case 8:
|
|
151
163
|
var value = new meshtrade_type_v1_amount_pb.Amount;
|
|
152
164
|
reader.readMessage(value,meshtrade_type_v1_amount_pb.Amount.deserializeBinaryFromReader);
|
|
153
165
|
msg.setLimitPrice(value);
|
|
154
166
|
break;
|
|
155
|
-
case
|
|
167
|
+
case 9:
|
|
156
168
|
var value = new meshtrade_type_v1_amount_pb.Amount;
|
|
157
169
|
reader.readMessage(value,meshtrade_type_v1_amount_pb.Amount.deserializeBinaryFromReader);
|
|
158
170
|
msg.setQuantity(value);
|
|
159
171
|
break;
|
|
160
|
-
case
|
|
172
|
+
case 10:
|
|
161
173
|
var value = new meshtrade_type_v1_amount_pb.Amount;
|
|
162
174
|
reader.readMessage(value,meshtrade_type_v1_amount_pb.Amount.deserializeBinaryFromReader);
|
|
163
175
|
msg.setFillPrice(value);
|
|
164
176
|
break;
|
|
165
|
-
case
|
|
177
|
+
case 11:
|
|
166
178
|
var value = new meshtrade_type_v1_amount_pb.Amount;
|
|
167
179
|
reader.readMessage(value,meshtrade_type_v1_amount_pb.Amount.deserializeBinaryFromReader);
|
|
168
180
|
msg.setFilledQuantity(value);
|
|
169
181
|
break;
|
|
170
|
-
case
|
|
182
|
+
case 12:
|
|
171
183
|
var value = /** @type {!proto.meshtrade.trading.limit_order.v1.LimitOrderStatus} */ (reader.readEnum());
|
|
172
184
|
msg.setStatus(value);
|
|
173
185
|
break;
|
|
@@ -214,31 +226,38 @@ proto.meshtrade.trading.limit_order.v1.LimitOrder.serializeBinaryToWriter = func
|
|
|
214
226
|
f
|
|
215
227
|
);
|
|
216
228
|
}
|
|
229
|
+
f = message.getOwnersList();
|
|
230
|
+
if (f.length > 0) {
|
|
231
|
+
writer.writeRepeatedString(
|
|
232
|
+
3,
|
|
233
|
+
f
|
|
234
|
+
);
|
|
235
|
+
}
|
|
217
236
|
f = message.getAccount();
|
|
218
237
|
if (f.length > 0) {
|
|
219
238
|
writer.writeString(
|
|
220
|
-
|
|
239
|
+
5,
|
|
221
240
|
f
|
|
222
241
|
);
|
|
223
242
|
}
|
|
224
243
|
f = message.getExternalReference();
|
|
225
244
|
if (f.length > 0) {
|
|
226
245
|
writer.writeString(
|
|
227
|
-
|
|
246
|
+
6,
|
|
228
247
|
f
|
|
229
248
|
);
|
|
230
249
|
}
|
|
231
250
|
f = message.getSide();
|
|
232
251
|
if (f !== 0.0) {
|
|
233
252
|
writer.writeEnum(
|
|
234
|
-
|
|
253
|
+
7,
|
|
235
254
|
f
|
|
236
255
|
);
|
|
237
256
|
}
|
|
238
257
|
f = message.getLimitPrice();
|
|
239
258
|
if (f != null) {
|
|
240
259
|
writer.writeMessage(
|
|
241
|
-
|
|
260
|
+
8,
|
|
242
261
|
f,
|
|
243
262
|
meshtrade_type_v1_amount_pb.Amount.serializeBinaryToWriter
|
|
244
263
|
);
|
|
@@ -246,7 +265,7 @@ proto.meshtrade.trading.limit_order.v1.LimitOrder.serializeBinaryToWriter = func
|
|
|
246
265
|
f = message.getQuantity();
|
|
247
266
|
if (f != null) {
|
|
248
267
|
writer.writeMessage(
|
|
249
|
-
|
|
268
|
+
9,
|
|
250
269
|
f,
|
|
251
270
|
meshtrade_type_v1_amount_pb.Amount.serializeBinaryToWriter
|
|
252
271
|
);
|
|
@@ -254,7 +273,7 @@ proto.meshtrade.trading.limit_order.v1.LimitOrder.serializeBinaryToWriter = func
|
|
|
254
273
|
f = message.getFillPrice();
|
|
255
274
|
if (f != null) {
|
|
256
275
|
writer.writeMessage(
|
|
257
|
-
|
|
276
|
+
10,
|
|
258
277
|
f,
|
|
259
278
|
meshtrade_type_v1_amount_pb.Amount.serializeBinaryToWriter
|
|
260
279
|
);
|
|
@@ -262,7 +281,7 @@ proto.meshtrade.trading.limit_order.v1.LimitOrder.serializeBinaryToWriter = func
|
|
|
262
281
|
f = message.getFilledQuantity();
|
|
263
282
|
if (f != null) {
|
|
264
283
|
writer.writeMessage(
|
|
265
|
-
|
|
284
|
+
11,
|
|
266
285
|
f,
|
|
267
286
|
meshtrade_type_v1_amount_pb.Amount.serializeBinaryToWriter
|
|
268
287
|
);
|
|
@@ -270,7 +289,7 @@ proto.meshtrade.trading.limit_order.v1.LimitOrder.serializeBinaryToWriter = func
|
|
|
270
289
|
f = message.getStatus();
|
|
271
290
|
if (f !== 0.0) {
|
|
272
291
|
writer.writeEnum(
|
|
273
|
-
|
|
292
|
+
12,
|
|
274
293
|
f
|
|
275
294
|
);
|
|
276
295
|
}
|
|
@@ -314,11 +333,48 @@ proto.meshtrade.trading.limit_order.v1.LimitOrder.prototype.setOwner = function(
|
|
|
314
333
|
|
|
315
334
|
|
|
316
335
|
/**
|
|
317
|
-
*
|
|
336
|
+
* repeated string owners = 3;
|
|
337
|
+
* @return {!Array<string>}
|
|
338
|
+
*/
|
|
339
|
+
proto.meshtrade.trading.limit_order.v1.LimitOrder.prototype.getOwnersList = function() {
|
|
340
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
|
|
341
|
+
};
|
|
342
|
+
|
|
343
|
+
|
|
344
|
+
/**
|
|
345
|
+
* @param {!Array<string>} value
|
|
346
|
+
* @return {!proto.meshtrade.trading.limit_order.v1.LimitOrder} returns this
|
|
347
|
+
*/
|
|
348
|
+
proto.meshtrade.trading.limit_order.v1.LimitOrder.prototype.setOwnersList = function(value) {
|
|
349
|
+
return jspb.Message.setField(this, 3, value || []);
|
|
350
|
+
};
|
|
351
|
+
|
|
352
|
+
|
|
353
|
+
/**
|
|
354
|
+
* @param {string} value
|
|
355
|
+
* @param {number=} opt_index
|
|
356
|
+
* @return {!proto.meshtrade.trading.limit_order.v1.LimitOrder} returns this
|
|
357
|
+
*/
|
|
358
|
+
proto.meshtrade.trading.limit_order.v1.LimitOrder.prototype.addOwners = function(value, opt_index) {
|
|
359
|
+
return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
|
|
360
|
+
};
|
|
361
|
+
|
|
362
|
+
|
|
363
|
+
/**
|
|
364
|
+
* Clears the list making it empty but non-null.
|
|
365
|
+
* @return {!proto.meshtrade.trading.limit_order.v1.LimitOrder} returns this
|
|
366
|
+
*/
|
|
367
|
+
proto.meshtrade.trading.limit_order.v1.LimitOrder.prototype.clearOwnersList = function() {
|
|
368
|
+
return this.setOwnersList([]);
|
|
369
|
+
};
|
|
370
|
+
|
|
371
|
+
|
|
372
|
+
/**
|
|
373
|
+
* optional string account = 5;
|
|
318
374
|
* @return {string}
|
|
319
375
|
*/
|
|
320
376
|
proto.meshtrade.trading.limit_order.v1.LimitOrder.prototype.getAccount = function() {
|
|
321
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this,
|
|
377
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
322
378
|
};
|
|
323
379
|
|
|
324
380
|
|
|
@@ -327,16 +383,16 @@ proto.meshtrade.trading.limit_order.v1.LimitOrder.prototype.getAccount = functio
|
|
|
327
383
|
* @return {!proto.meshtrade.trading.limit_order.v1.LimitOrder} returns this
|
|
328
384
|
*/
|
|
329
385
|
proto.meshtrade.trading.limit_order.v1.LimitOrder.prototype.setAccount = function(value) {
|
|
330
|
-
return jspb.Message.setProto3StringField(this,
|
|
386
|
+
return jspb.Message.setProto3StringField(this, 5, value);
|
|
331
387
|
};
|
|
332
388
|
|
|
333
389
|
|
|
334
390
|
/**
|
|
335
|
-
* optional string external_reference =
|
|
391
|
+
* optional string external_reference = 6;
|
|
336
392
|
* @return {string}
|
|
337
393
|
*/
|
|
338
394
|
proto.meshtrade.trading.limit_order.v1.LimitOrder.prototype.getExternalReference = function() {
|
|
339
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this,
|
|
395
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
340
396
|
};
|
|
341
397
|
|
|
342
398
|
|
|
@@ -345,16 +401,16 @@ proto.meshtrade.trading.limit_order.v1.LimitOrder.prototype.getExternalReference
|
|
|
345
401
|
* @return {!proto.meshtrade.trading.limit_order.v1.LimitOrder} returns this
|
|
346
402
|
*/
|
|
347
403
|
proto.meshtrade.trading.limit_order.v1.LimitOrder.prototype.setExternalReference = function(value) {
|
|
348
|
-
return jspb.Message.setProto3StringField(this,
|
|
404
|
+
return jspb.Message.setProto3StringField(this, 6, value);
|
|
349
405
|
};
|
|
350
406
|
|
|
351
407
|
|
|
352
408
|
/**
|
|
353
|
-
* optional LimitOrderSide side =
|
|
409
|
+
* optional LimitOrderSide side = 7;
|
|
354
410
|
* @return {!proto.meshtrade.trading.limit_order.v1.LimitOrderSide}
|
|
355
411
|
*/
|
|
356
412
|
proto.meshtrade.trading.limit_order.v1.LimitOrder.prototype.getSide = function() {
|
|
357
|
-
return /** @type {!proto.meshtrade.trading.limit_order.v1.LimitOrderSide} */ (jspb.Message.getFieldWithDefault(this,
|
|
413
|
+
return /** @type {!proto.meshtrade.trading.limit_order.v1.LimitOrderSide} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
|
|
358
414
|
};
|
|
359
415
|
|
|
360
416
|
|
|
@@ -363,17 +419,17 @@ proto.meshtrade.trading.limit_order.v1.LimitOrder.prototype.getSide = function()
|
|
|
363
419
|
* @return {!proto.meshtrade.trading.limit_order.v1.LimitOrder} returns this
|
|
364
420
|
*/
|
|
365
421
|
proto.meshtrade.trading.limit_order.v1.LimitOrder.prototype.setSide = function(value) {
|
|
366
|
-
return jspb.Message.setProto3EnumField(this,
|
|
422
|
+
return jspb.Message.setProto3EnumField(this, 7, value);
|
|
367
423
|
};
|
|
368
424
|
|
|
369
425
|
|
|
370
426
|
/**
|
|
371
|
-
* optional meshtrade.type.v1.Amount limit_price =
|
|
427
|
+
* optional meshtrade.type.v1.Amount limit_price = 8;
|
|
372
428
|
* @return {?proto.meshtrade.type.v1.Amount}
|
|
373
429
|
*/
|
|
374
430
|
proto.meshtrade.trading.limit_order.v1.LimitOrder.prototype.getLimitPrice = function() {
|
|
375
431
|
return /** @type{?proto.meshtrade.type.v1.Amount} */ (
|
|
376
|
-
jspb.Message.getWrapperField(this, meshtrade_type_v1_amount_pb.Amount,
|
|
432
|
+
jspb.Message.getWrapperField(this, meshtrade_type_v1_amount_pb.Amount, 8));
|
|
377
433
|
};
|
|
378
434
|
|
|
379
435
|
|
|
@@ -382,7 +438,7 @@ proto.meshtrade.trading.limit_order.v1.LimitOrder.prototype.getLimitPrice = func
|
|
|
382
438
|
* @return {!proto.meshtrade.trading.limit_order.v1.LimitOrder} returns this
|
|
383
439
|
*/
|
|
384
440
|
proto.meshtrade.trading.limit_order.v1.LimitOrder.prototype.setLimitPrice = function(value) {
|
|
385
|
-
return jspb.Message.setWrapperField(this,
|
|
441
|
+
return jspb.Message.setWrapperField(this, 8, value);
|
|
386
442
|
};
|
|
387
443
|
|
|
388
444
|
|
|
@@ -400,17 +456,17 @@ proto.meshtrade.trading.limit_order.v1.LimitOrder.prototype.clearLimitPrice = fu
|
|
|
400
456
|
* @return {boolean}
|
|
401
457
|
*/
|
|
402
458
|
proto.meshtrade.trading.limit_order.v1.LimitOrder.prototype.hasLimitPrice = function() {
|
|
403
|
-
return jspb.Message.getField(this,
|
|
459
|
+
return jspb.Message.getField(this, 8) != null;
|
|
404
460
|
};
|
|
405
461
|
|
|
406
462
|
|
|
407
463
|
/**
|
|
408
|
-
* optional meshtrade.type.v1.Amount quantity =
|
|
464
|
+
* optional meshtrade.type.v1.Amount quantity = 9;
|
|
409
465
|
* @return {?proto.meshtrade.type.v1.Amount}
|
|
410
466
|
*/
|
|
411
467
|
proto.meshtrade.trading.limit_order.v1.LimitOrder.prototype.getQuantity = function() {
|
|
412
468
|
return /** @type{?proto.meshtrade.type.v1.Amount} */ (
|
|
413
|
-
jspb.Message.getWrapperField(this, meshtrade_type_v1_amount_pb.Amount,
|
|
469
|
+
jspb.Message.getWrapperField(this, meshtrade_type_v1_amount_pb.Amount, 9));
|
|
414
470
|
};
|
|
415
471
|
|
|
416
472
|
|
|
@@ -419,7 +475,7 @@ proto.meshtrade.trading.limit_order.v1.LimitOrder.prototype.getQuantity = functi
|
|
|
419
475
|
* @return {!proto.meshtrade.trading.limit_order.v1.LimitOrder} returns this
|
|
420
476
|
*/
|
|
421
477
|
proto.meshtrade.trading.limit_order.v1.LimitOrder.prototype.setQuantity = function(value) {
|
|
422
|
-
return jspb.Message.setWrapperField(this,
|
|
478
|
+
return jspb.Message.setWrapperField(this, 9, value);
|
|
423
479
|
};
|
|
424
480
|
|
|
425
481
|
|
|
@@ -437,17 +493,17 @@ proto.meshtrade.trading.limit_order.v1.LimitOrder.prototype.clearQuantity = func
|
|
|
437
493
|
* @return {boolean}
|
|
438
494
|
*/
|
|
439
495
|
proto.meshtrade.trading.limit_order.v1.LimitOrder.prototype.hasQuantity = function() {
|
|
440
|
-
return jspb.Message.getField(this,
|
|
496
|
+
return jspb.Message.getField(this, 9) != null;
|
|
441
497
|
};
|
|
442
498
|
|
|
443
499
|
|
|
444
500
|
/**
|
|
445
|
-
* optional meshtrade.type.v1.Amount fill_price =
|
|
501
|
+
* optional meshtrade.type.v1.Amount fill_price = 10;
|
|
446
502
|
* @return {?proto.meshtrade.type.v1.Amount}
|
|
447
503
|
*/
|
|
448
504
|
proto.meshtrade.trading.limit_order.v1.LimitOrder.prototype.getFillPrice = function() {
|
|
449
505
|
return /** @type{?proto.meshtrade.type.v1.Amount} */ (
|
|
450
|
-
jspb.Message.getWrapperField(this, meshtrade_type_v1_amount_pb.Amount,
|
|
506
|
+
jspb.Message.getWrapperField(this, meshtrade_type_v1_amount_pb.Amount, 10));
|
|
451
507
|
};
|
|
452
508
|
|
|
453
509
|
|
|
@@ -456,7 +512,7 @@ proto.meshtrade.trading.limit_order.v1.LimitOrder.prototype.getFillPrice = funct
|
|
|
456
512
|
* @return {!proto.meshtrade.trading.limit_order.v1.LimitOrder} returns this
|
|
457
513
|
*/
|
|
458
514
|
proto.meshtrade.trading.limit_order.v1.LimitOrder.prototype.setFillPrice = function(value) {
|
|
459
|
-
return jspb.Message.setWrapperField(this,
|
|
515
|
+
return jspb.Message.setWrapperField(this, 10, value);
|
|
460
516
|
};
|
|
461
517
|
|
|
462
518
|
|
|
@@ -474,17 +530,17 @@ proto.meshtrade.trading.limit_order.v1.LimitOrder.prototype.clearFillPrice = fun
|
|
|
474
530
|
* @return {boolean}
|
|
475
531
|
*/
|
|
476
532
|
proto.meshtrade.trading.limit_order.v1.LimitOrder.prototype.hasFillPrice = function() {
|
|
477
|
-
return jspb.Message.getField(this,
|
|
533
|
+
return jspb.Message.getField(this, 10) != null;
|
|
478
534
|
};
|
|
479
535
|
|
|
480
536
|
|
|
481
537
|
/**
|
|
482
|
-
* optional meshtrade.type.v1.Amount filled_quantity =
|
|
538
|
+
* optional meshtrade.type.v1.Amount filled_quantity = 11;
|
|
483
539
|
* @return {?proto.meshtrade.type.v1.Amount}
|
|
484
540
|
*/
|
|
485
541
|
proto.meshtrade.trading.limit_order.v1.LimitOrder.prototype.getFilledQuantity = function() {
|
|
486
542
|
return /** @type{?proto.meshtrade.type.v1.Amount} */ (
|
|
487
|
-
jspb.Message.getWrapperField(this, meshtrade_type_v1_amount_pb.Amount,
|
|
543
|
+
jspb.Message.getWrapperField(this, meshtrade_type_v1_amount_pb.Amount, 11));
|
|
488
544
|
};
|
|
489
545
|
|
|
490
546
|
|
|
@@ -493,7 +549,7 @@ proto.meshtrade.trading.limit_order.v1.LimitOrder.prototype.getFilledQuantity =
|
|
|
493
549
|
* @return {!proto.meshtrade.trading.limit_order.v1.LimitOrder} returns this
|
|
494
550
|
*/
|
|
495
551
|
proto.meshtrade.trading.limit_order.v1.LimitOrder.prototype.setFilledQuantity = function(value) {
|
|
496
|
-
return jspb.Message.setWrapperField(this,
|
|
552
|
+
return jspb.Message.setWrapperField(this, 11, value);
|
|
497
553
|
};
|
|
498
554
|
|
|
499
555
|
|
|
@@ -511,16 +567,16 @@ proto.meshtrade.trading.limit_order.v1.LimitOrder.prototype.clearFilledQuantity
|
|
|
511
567
|
* @return {boolean}
|
|
512
568
|
*/
|
|
513
569
|
proto.meshtrade.trading.limit_order.v1.LimitOrder.prototype.hasFilledQuantity = function() {
|
|
514
|
-
return jspb.Message.getField(this,
|
|
570
|
+
return jspb.Message.getField(this, 11) != null;
|
|
515
571
|
};
|
|
516
572
|
|
|
517
573
|
|
|
518
574
|
/**
|
|
519
|
-
* optional LimitOrderStatus status =
|
|
575
|
+
* optional LimitOrderStatus status = 12;
|
|
520
576
|
* @return {!proto.meshtrade.trading.limit_order.v1.LimitOrderStatus}
|
|
521
577
|
*/
|
|
522
578
|
proto.meshtrade.trading.limit_order.v1.LimitOrder.prototype.getStatus = function() {
|
|
523
|
-
return /** @type {!proto.meshtrade.trading.limit_order.v1.LimitOrderStatus} */ (jspb.Message.getFieldWithDefault(this,
|
|
579
|
+
return /** @type {!proto.meshtrade.trading.limit_order.v1.LimitOrderStatus} */ (jspb.Message.getFieldWithDefault(this, 12, 0));
|
|
524
580
|
};
|
|
525
581
|
|
|
526
582
|
|
|
@@ -529,7 +585,7 @@ proto.meshtrade.trading.limit_order.v1.LimitOrder.prototype.getStatus = function
|
|
|
529
585
|
* @return {!proto.meshtrade.trading.limit_order.v1.LimitOrder} returns this
|
|
530
586
|
*/
|
|
531
587
|
proto.meshtrade.trading.limit_order.v1.LimitOrder.prototype.setStatus = function(value) {
|
|
532
|
-
return jspb.Message.setProto3EnumField(this,
|
|
588
|
+
return jspb.Message.setProto3EnumField(this, 12, value);
|
|
533
589
|
};
|
|
534
590
|
|
|
535
591
|
|
|
@@ -15,6 +15,11 @@ export class Account extends jspb.Message {
|
|
|
15
15
|
getOwner(): string;
|
|
16
16
|
setOwner(value: string): Account;
|
|
17
17
|
|
|
18
|
+
getOwnersList(): Array<string>;
|
|
19
|
+
setOwnersList(value: Array<string>): Account;
|
|
20
|
+
clearOwnersList(): Account;
|
|
21
|
+
addOwners(value: string, index?: number): Account;
|
|
22
|
+
|
|
18
23
|
getNumber(): string;
|
|
19
24
|
setNumber(value: string): Account;
|
|
20
25
|
|
|
@@ -57,6 +62,7 @@ export namespace Account {
|
|
|
57
62
|
export type AsObject = {
|
|
58
63
|
name: string,
|
|
59
64
|
owner: string,
|
|
65
|
+
ownersList: Array<string>,
|
|
60
66
|
number: string,
|
|
61
67
|
ledgerId: string,
|
|
62
68
|
ledger: meshtrade_type_v1_ledger_pb.Ledger,
|
|
@@ -128,7 +128,7 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
128
128
|
* @private {!Array<number>}
|
|
129
129
|
* @const
|
|
130
130
|
*/
|
|
131
|
-
proto.meshtrade.wallet.account.v1.Account.repeatedFields_ = [11,12];
|
|
131
|
+
proto.meshtrade.wallet.account.v1.Account.repeatedFields_ = [3,11,12];
|
|
132
132
|
|
|
133
133
|
|
|
134
134
|
|
|
@@ -163,6 +163,7 @@ proto.meshtrade.wallet.account.v1.Account.toObject = function(includeInstance, m
|
|
|
163
163
|
var f, obj = {
|
|
164
164
|
name: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
165
165
|
owner: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
166
|
+
ownersList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
|
|
166
167
|
number: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
167
168
|
ledgerId: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
168
169
|
ledger: jspb.Message.getFieldWithDefault(msg, 7, 0),
|
|
@@ -217,6 +218,10 @@ proto.meshtrade.wallet.account.v1.Account.deserializeBinaryFromReader = function
|
|
|
217
218
|
var value = /** @type {string} */ (reader.readString());
|
|
218
219
|
msg.setOwner(value);
|
|
219
220
|
break;
|
|
221
|
+
case 3:
|
|
222
|
+
var value = /** @type {string} */ (reader.readString());
|
|
223
|
+
msg.addOwners(value);
|
|
224
|
+
break;
|
|
220
225
|
case 5:
|
|
221
226
|
var value = /** @type {string} */ (reader.readString());
|
|
222
227
|
msg.setNumber(value);
|
|
@@ -295,6 +300,13 @@ proto.meshtrade.wallet.account.v1.Account.serializeBinaryToWriter = function(mes
|
|
|
295
300
|
f
|
|
296
301
|
);
|
|
297
302
|
}
|
|
303
|
+
f = message.getOwnersList();
|
|
304
|
+
if (f.length > 0) {
|
|
305
|
+
writer.writeRepeatedString(
|
|
306
|
+
3,
|
|
307
|
+
f
|
|
308
|
+
);
|
|
309
|
+
}
|
|
298
310
|
f = message.getNumber();
|
|
299
311
|
if (f.length > 0) {
|
|
300
312
|
writer.writeString(
|
|
@@ -393,6 +405,43 @@ proto.meshtrade.wallet.account.v1.Account.prototype.setOwner = function(value) {
|
|
|
393
405
|
};
|
|
394
406
|
|
|
395
407
|
|
|
408
|
+
/**
|
|
409
|
+
* repeated string owners = 3;
|
|
410
|
+
* @return {!Array<string>}
|
|
411
|
+
*/
|
|
412
|
+
proto.meshtrade.wallet.account.v1.Account.prototype.getOwnersList = function() {
|
|
413
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
|
|
414
|
+
};
|
|
415
|
+
|
|
416
|
+
|
|
417
|
+
/**
|
|
418
|
+
* @param {!Array<string>} value
|
|
419
|
+
* @return {!proto.meshtrade.wallet.account.v1.Account} returns this
|
|
420
|
+
*/
|
|
421
|
+
proto.meshtrade.wallet.account.v1.Account.prototype.setOwnersList = function(value) {
|
|
422
|
+
return jspb.Message.setField(this, 3, value || []);
|
|
423
|
+
};
|
|
424
|
+
|
|
425
|
+
|
|
426
|
+
/**
|
|
427
|
+
* @param {string} value
|
|
428
|
+
* @param {number=} opt_index
|
|
429
|
+
* @return {!proto.meshtrade.wallet.account.v1.Account} returns this
|
|
430
|
+
*/
|
|
431
|
+
proto.meshtrade.wallet.account.v1.Account.prototype.addOwners = function(value, opt_index) {
|
|
432
|
+
return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
|
|
433
|
+
};
|
|
434
|
+
|
|
435
|
+
|
|
436
|
+
/**
|
|
437
|
+
* Clears the list making it empty but non-null.
|
|
438
|
+
* @return {!proto.meshtrade.wallet.account.v1.Account} returns this
|
|
439
|
+
*/
|
|
440
|
+
proto.meshtrade.wallet.account.v1.Account.prototype.clearOwnersList = function() {
|
|
441
|
+
return this.setOwnersList([]);
|
|
442
|
+
};
|
|
443
|
+
|
|
444
|
+
|
|
396
445
|
/**
|
|
397
446
|
* optional string number = 5;
|
|
398
447
|
* @return {string}
|
package/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@meshtrade/api-old",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.31.0",
|
|
4
4
|
"description": "Mesh Typescript SDK (Legacy)",
|
|
5
5
|
"author": "Bernard Bussy <bernard@meshtrade.co>",
|
|
6
|
+
"license": "UNLICENSED",
|
|
6
7
|
"keywords": [
|
|
7
8
|
"api",
|
|
8
9
|
"meshtrade",
|
|
@@ -159,7 +160,7 @@
|
|
|
159
160
|
"scripts": {
|
|
160
161
|
"clean": "rimraf ./dist",
|
|
161
162
|
"copy-proto": "copyfiles -u 1 \"src/**/*.js\" \"src/**/*.d.ts\" dist",
|
|
162
|
-
"build:ts": "tsc",
|
|
163
|
+
"build:ts": "tsc --project tsconfig.build.json",
|
|
163
164
|
"build": "yarn run clean && yarn run copy-proto && yarn run build:ts",
|
|
164
165
|
"lint": "eslint . --ext .ts",
|
|
165
166
|
"test": "jest"
|