@meshtrade/api-old 1.32.0 → 1.33.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.
@@ -45,8 +45,8 @@ export class LimitOrder extends jspb.Message {
45
45
  hasFilledQuantity(): boolean;
46
46
  clearFilledQuantity(): LimitOrder;
47
47
 
48
- getStatus(): LimitOrderStatus;
49
- setStatus(value: LimitOrderStatus): LimitOrder;
48
+ getState(): LimitOrderState;
49
+ setState(value: LimitOrderState): LimitOrder;
50
50
 
51
51
  serializeBinary(): Uint8Array;
52
52
  toObject(includeInstance?: boolean): LimitOrder.AsObject;
@@ -68,7 +68,7 @@ export namespace LimitOrder {
68
68
  quantity?: meshtrade_type_v1_amount_pb.Amount.AsObject,
69
69
  fillPrice?: meshtrade_type_v1_amount_pb.Amount.AsObject,
70
70
  filledQuantity?: meshtrade_type_v1_amount_pb.Amount.AsObject,
71
- status: LimitOrderStatus,
71
+ state: LimitOrderState,
72
72
  }
73
73
  }
74
74
 
@@ -77,7 +77,7 @@ export enum LimitOrderSide {
77
77
  LIMIT_ORDER_SIDE_BUY = 1,
78
78
  LIMIT_ORDER_SIDE_SELL = 2,
79
79
  }
80
- export enum LimitOrderStatus {
80
+ export enum LimitOrderState {
81
81
  LIMIT_ORDER_STATUS_UNSPECIFIED = 0,
82
82
  LIMIT_ORDER_STATUS_SUBMISSION_IN_PROGRESS = 1,
83
83
  LIMIT_ORDER_STATUS_SUBMISSION_FAILED = 2,
@@ -27,7 +27,7 @@ var meshtrade_type_v1_amount_pb = require('../../../../meshtrade/type/v1/amount_
27
27
  goog.object.extend(proto, meshtrade_type_v1_amount_pb);
28
28
  goog.exportSymbol('proto.meshtrade.trading.limit_order.v1.LimitOrder', null, global);
29
29
  goog.exportSymbol('proto.meshtrade.trading.limit_order.v1.LimitOrderSide', null, global);
30
- goog.exportSymbol('proto.meshtrade.trading.limit_order.v1.LimitOrderStatus', null, global);
30
+ goog.exportSymbol('proto.meshtrade.trading.limit_order.v1.LimitOrderState', null, global);
31
31
  /**
32
32
  * Generated by JsPbCodeGenerator.
33
33
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -98,7 +98,7 @@ limitPrice: (f = msg.getLimitPrice()) && meshtrade_type_v1_amount_pb.Amount.toOb
98
98
  quantity: (f = msg.getQuantity()) && meshtrade_type_v1_amount_pb.Amount.toObject(includeInstance, f),
99
99
  fillPrice: (f = msg.getFillPrice()) && meshtrade_type_v1_amount_pb.Amount.toObject(includeInstance, f),
100
100
  filledQuantity: (f = msg.getFilledQuantity()) && meshtrade_type_v1_amount_pb.Amount.toObject(includeInstance, f),
101
- status: jspb.Message.getFieldWithDefault(msg, 12, 0)
101
+ state: jspb.Message.getFieldWithDefault(msg, 12, 0)
102
102
  };
103
103
 
104
104
  if (includeInstance) {
@@ -180,8 +180,8 @@ proto.meshtrade.trading.limit_order.v1.LimitOrder.deserializeBinaryFromReader =
180
180
  msg.setFilledQuantity(value);
181
181
  break;
182
182
  case 12:
183
- var value = /** @type {!proto.meshtrade.trading.limit_order.v1.LimitOrderStatus} */ (reader.readEnum());
184
- msg.setStatus(value);
183
+ var value = /** @type {!proto.meshtrade.trading.limit_order.v1.LimitOrderState} */ (reader.readEnum());
184
+ msg.setState(value);
185
185
  break;
186
186
  default:
187
187
  reader.skipField();
@@ -286,7 +286,7 @@ proto.meshtrade.trading.limit_order.v1.LimitOrder.serializeBinaryToWriter = func
286
286
  meshtrade_type_v1_amount_pb.Amount.serializeBinaryToWriter
287
287
  );
288
288
  }
289
- f = message.getStatus();
289
+ f = message.getState();
290
290
  if (f !== 0.0) {
291
291
  writer.writeEnum(
292
292
  12,
@@ -572,19 +572,19 @@ proto.meshtrade.trading.limit_order.v1.LimitOrder.prototype.hasFilledQuantity =
572
572
 
573
573
 
574
574
  /**
575
- * optional LimitOrderStatus status = 12;
576
- * @return {!proto.meshtrade.trading.limit_order.v1.LimitOrderStatus}
575
+ * optional LimitOrderState state = 12;
576
+ * @return {!proto.meshtrade.trading.limit_order.v1.LimitOrderState}
577
577
  */
578
- proto.meshtrade.trading.limit_order.v1.LimitOrder.prototype.getStatus = function() {
579
- return /** @type {!proto.meshtrade.trading.limit_order.v1.LimitOrderStatus} */ (jspb.Message.getFieldWithDefault(this, 12, 0));
578
+ proto.meshtrade.trading.limit_order.v1.LimitOrder.prototype.getState = function() {
579
+ return /** @type {!proto.meshtrade.trading.limit_order.v1.LimitOrderState} */ (jspb.Message.getFieldWithDefault(this, 12, 0));
580
580
  };
581
581
 
582
582
 
583
583
  /**
584
- * @param {!proto.meshtrade.trading.limit_order.v1.LimitOrderStatus} value
584
+ * @param {!proto.meshtrade.trading.limit_order.v1.LimitOrderState} value
585
585
  * @return {!proto.meshtrade.trading.limit_order.v1.LimitOrder} returns this
586
586
  */
587
- proto.meshtrade.trading.limit_order.v1.LimitOrder.prototype.setStatus = function(value) {
587
+ proto.meshtrade.trading.limit_order.v1.LimitOrder.prototype.setState = function(value) {
588
588
  return jspb.Message.setProto3EnumField(this, 12, value);
589
589
  };
590
590
 
@@ -601,7 +601,7 @@ proto.meshtrade.trading.limit_order.v1.LimitOrderSide = {
601
601
  /**
602
602
  * @enum {number}
603
603
  */
604
- proto.meshtrade.trading.limit_order.v1.LimitOrderStatus = {
604
+ proto.meshtrade.trading.limit_order.v1.LimitOrderState = {
605
605
  LIMIT_ORDER_STATUS_UNSPECIFIED: 0,
606
606
  LIMIT_ORDER_STATUS_SUBMISSION_IN_PROGRESS: 1,
607
607
  LIMIT_ORDER_STATUS_SUBMISSION_FAILED: 2,
@@ -178,6 +178,9 @@ export class MonitorLimitOrderRequest extends jspb.Message {
178
178
  getExternalReference(): string;
179
179
  setExternalReference(value: string): MonitorLimitOrderRequest;
180
180
 
181
+ getLiveLedgerData(): boolean;
182
+ setLiveLedgerData(value: boolean): MonitorLimitOrderRequest;
183
+
181
184
  getIdentifierCase(): MonitorLimitOrderRequest.IdentifierCase;
182
185
 
183
186
  serializeBinary(): Uint8Array;
@@ -192,6 +195,7 @@ export namespace MonitorLimitOrderRequest {
192
195
  export type AsObject = {
193
196
  name: string,
194
197
  externalReference: string,
198
+ liveLedgerData: boolean,
195
199
  }
196
200
 
197
201
  export enum IdentifierCase {
@@ -1526,7 +1526,8 @@ proto.meshtrade.trading.limit_order.v1.MonitorLimitOrderRequest.prototype.toObje
1526
1526
  proto.meshtrade.trading.limit_order.v1.MonitorLimitOrderRequest.toObject = function(includeInstance, msg) {
1527
1527
  var f, obj = {
1528
1528
  name: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f,
1529
- externalReference: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f
1529
+ externalReference: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f,
1530
+ liveLedgerData: jspb.Message.getBooleanFieldWithDefault(msg, 3, false)
1530
1531
  };
1531
1532
 
1532
1533
  if (includeInstance) {
@@ -1571,6 +1572,10 @@ proto.meshtrade.trading.limit_order.v1.MonitorLimitOrderRequest.deserializeBinar
1571
1572
  var value = /** @type {string} */ (reader.readString());
1572
1573
  msg.setExternalReference(value);
1573
1574
  break;
1575
+ case 3:
1576
+ var value = /** @type {boolean} */ (reader.readBool());
1577
+ msg.setLiveLedgerData(value);
1578
+ break;
1574
1579
  default:
1575
1580
  reader.skipField();
1576
1581
  break;
@@ -1614,6 +1619,13 @@ proto.meshtrade.trading.limit_order.v1.MonitorLimitOrderRequest.serializeBinaryT
1614
1619
  f
1615
1620
  );
1616
1621
  }
1622
+ f = message.getLiveLedgerData();
1623
+ if (f) {
1624
+ writer.writeBool(
1625
+ 3,
1626
+ f
1627
+ );
1628
+ }
1617
1629
  };
1618
1630
 
1619
1631
 
@@ -1689,4 +1701,22 @@ proto.meshtrade.trading.limit_order.v1.MonitorLimitOrderRequest.prototype.hasExt
1689
1701
  };
1690
1702
 
1691
1703
 
1704
+ /**
1705
+ * optional bool live_ledger_data = 3;
1706
+ * @return {boolean}
1707
+ */
1708
+ proto.meshtrade.trading.limit_order.v1.MonitorLimitOrderRequest.prototype.getLiveLedgerData = function() {
1709
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
1710
+ };
1711
+
1712
+
1713
+ /**
1714
+ * @param {boolean} value
1715
+ * @return {!proto.meshtrade.trading.limit_order.v1.MonitorLimitOrderRequest} returns this
1716
+ */
1717
+ proto.meshtrade.trading.limit_order.v1.MonitorLimitOrderRequest.prototype.setLiveLedgerData = function(value) {
1718
+ return jspb.Message.setProto3BooleanField(this, 3, value);
1719
+ };
1720
+
1721
+
1692
1722
  goog.object.extend(exports, proto.meshtrade.trading.limit_order.v1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meshtrade/api-old",
3
- "version": "1.32.0",
3
+ "version": "1.33.0",
4
4
  "description": "Mesh Typescript SDK (Legacy)",
5
5
  "author": "Bernard Bussy <bernard@meshtrade.co>",
6
6
  "license": "UNLICENSED",
@@ -76,10 +76,10 @@
76
76
  "require": "./dist/meshtrade/studio/instrument/v1/index.js",
77
77
  "import": "./dist/meshtrade/studio/instrument/v1/index.js"
78
78
  },
79
- "./option/v1": {
80
- "types": "./dist/meshtrade/option/v1/index.d.ts",
81
- "require": "./dist/meshtrade/option/v1/index.js",
82
- "import": "./dist/meshtrade/option/v1/index.js"
79
+ "./option/method_options/v1": {
80
+ "types": "./dist/meshtrade/option/method_options/v1/index.d.ts",
81
+ "require": "./dist/meshtrade/option/method_options/v1/index.js",
82
+ "import": "./dist/meshtrade/option/method_options/v1/index.js"
83
83
  },
84
84
  "./*": {
85
85
  "types": "./dist/meshtrade/*",
@@ -125,8 +125,8 @@
125
125
  "studio/instrument/v1": [
126
126
  "dist/meshtrade/studio/instrument/v1/index.d.ts"
127
127
  ],
128
- "option/v1": [
129
- "dist/meshtrade/option/v1/index.d.ts"
128
+ "option/method_options/v1": [
129
+ "dist/meshtrade/option/method_options/v1/index.d.ts"
130
130
  ],
131
131
  "*": [
132
132
  "dist/meshtrade/*"