@brokerize/client 1.0.3 → 1.1.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/client.d.ts CHANGED
@@ -729,7 +729,7 @@ declare function AuthMethodChallengeResponseToJSONRecursive(value?: AuthMethodCh
729
729
  * Do not edit the class manually.
730
730
  */
731
731
  /**
732
- * With the `DECOUPLED` flow, the operation is created right away wiuthout creating a challenge first. The operation's
732
+ * With the `DECOUPLED` flow, the operation is created right away without creating a challenge first. The operation's
733
733
  * response will include a `decoupledOperationId` which can be subscribed to using `GetDecoupledOperationStatus` and via
734
734
  * a WebSocket subscription. Also, the operation can be cancelled by the user using `CancelDecoupledOperation`. Currently
735
735
  * this flow is only implemented for `EnableSessionTan`.
@@ -6467,6 +6467,12 @@ declare interface GetQuoteParams {
6467
6467
  * @memberof GetQuoteParams
6468
6468
  */
6469
6469
  isin: string;
6470
+ /**
6471
+ * If a list of sellPositions has been provided in `PrepareTrade`, this must contain the selected position id to sell from
6472
+ * @type {string}
6473
+ * @memberof GetQuoteParams
6474
+ */
6475
+ sellPositionId?: string;
6470
6476
  /**
6471
6477
  *
6472
6478
  * @type {number}
@@ -7469,10 +7475,10 @@ declare interface ObtainToken200Response {
7469
7475
  expiresIn: number;
7470
7476
  /**
7471
7477
  *
7472
- * @type {any}
7478
+ * @type {string}
7473
7479
  * @memberof ObtainToken200Response
7474
7480
  */
7475
- refreshToken: any | null;
7481
+ refreshToken: string;
7476
7482
  /**
7477
7483
  *
7478
7484
  * @type {number}
@@ -9,7 +9,7 @@
9
9
  * Do not edit the class manually.
10
10
  */
11
11
  /**
12
- * With the `DECOUPLED` flow, the operation is created right away wiuthout creating a challenge first. The operation's
12
+ * With the `DECOUPLED` flow, the operation is created right away without creating a challenge first. The operation's
13
13
  * response will include a `decoupledOperationId` which can be subscribed to using `GetDecoupledOperationStatus` and via
14
14
  * a WebSocket subscription. Also, the operation can be cancelled by the user using `CancelDecoupledOperation`. Currently
15
15
  * this flow is only implemented for `EnableSessionTan`.
@@ -48,6 +48,12 @@ export interface GetQuoteParams {
48
48
  * @memberof GetQuoteParams
49
49
  */
50
50
  isin: string;
51
+ /**
52
+ * If a list of sellPositions has been provided in `PrepareTrade`, this must contain the selected position id to sell from
53
+ * @type {string}
54
+ * @memberof GetQuoteParams
55
+ */
56
+ sellPositionId?: string;
51
57
  /**
52
58
  *
53
59
  * @type {number}
@@ -29,6 +29,9 @@ export function GetQuoteParamsFromJSONTyped(json, ignoreDiscriminator) {
29
29
  : json["cashAccountId"],
30
30
  direction: DirectionFromJSON(json["direction"]),
31
31
  isin: json["isin"],
32
+ sellPositionId: !exists(json, "sellPositionId")
33
+ ? undefined
34
+ : json["sellPositionId"],
32
35
  size: json["size"],
33
36
  sizeUnit: !exists(json, "sizeUnit") ? undefined : json["sizeUnit"],
34
37
  };
@@ -46,6 +49,7 @@ export function GetQuoteParamsToJSONRecursive(value, ignoreParent = false) {
46
49
  cashAccountId: value.cashAccountId,
47
50
  direction: DirectionToJSON(value.direction),
48
51
  isin: value.isin,
52
+ sellPositionId: value.sellPositionId,
49
53
  size: value.size,
50
54
  sizeUnit: value.sizeUnit,
51
55
  };
@@ -28,10 +28,10 @@ export interface ObtainToken200Response {
28
28
  expiresIn: number;
29
29
  /**
30
30
  *
31
- * @type {any}
31
+ * @type {string}
32
32
  * @memberof ObtainToken200Response
33
33
  */
34
- refreshToken: any | null;
34
+ refreshToken: string;
35
35
  /**
36
36
  *
37
37
  * @type {number}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brokerize/client",
3
- "version": "1.0.3",
3
+ "version": "1.1.0",
4
4
  "description": "Client for the brokerize.com API",
5
5
  "keywords": [],
6
6
  "homepage": "https://github.com/brokerize/client-js#readme",