@brokerize/client 1.0.3 → 1.1.1

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`.
@@ -3899,6 +3899,15 @@ declare function DemoAccountFromJSONTyped(json: any, ignoreDiscriminator: boolea
3899
3899
  * @interface DemoAccountSettings
3900
3900
  */
3901
3901
  declare interface DemoAccountSettings {
3902
+ /**
3903
+ * Set an `authMethodStyle` to test different auth method behaviors. The following values are currently supported:
3904
+ * - `default`: the broker will have various methods with different flows
3905
+ * - `lazy`: the demo account reveals the complete list of auth methods only after the first session TAN challenge request. This also sets `allOperationsRequireSessionTan` to `true` for the account.
3906
+ * - `one-decoupled`: the account will have *one auth method* with flow `DECOUPLED` (also sets `allOperationsRequireSessionTan=true`)
3907
+ * @type {string}
3908
+ * @memberof DemoAccountSettings
3909
+ */
3910
+ authMethodStyle?: string;
3902
3911
  /**
3903
3912
  * Set this to `true` to create a single depot instead of the default two
3904
3913
  * @type {boolean}
@@ -3912,6 +3921,7 @@ declare interface DemoAccountSettings {
3912
3921
  * This also sets `allOperationsRequireSessionTan` to `true` for the account.
3913
3922
  * @type {boolean}
3914
3923
  * @memberof DemoAccountSettings
3924
+ * @deprecated
3915
3925
  */
3916
3926
  lazyAuthMethods?: boolean;
3917
3927
  /**
@@ -6467,6 +6477,12 @@ declare interface GetQuoteParams {
6467
6477
  * @memberof GetQuoteParams
6468
6478
  */
6469
6479
  isin: string;
6480
+ /**
6481
+ * If a list of sellPositions has been provided in `PrepareTrade`, this must contain the selected position id to sell from
6482
+ * @type {string}
6483
+ * @memberof GetQuoteParams
6484
+ */
6485
+ sellPositionId?: string;
6470
6486
  /**
6471
6487
  *
6472
6488
  * @type {number}
@@ -7469,10 +7485,10 @@ declare interface ObtainToken200Response {
7469
7485
  expiresIn: number;
7470
7486
  /**
7471
7487
  *
7472
- * @type {any}
7488
+ * @type {string}
7473
7489
  * @memberof ObtainToken200Response
7474
7490
  */
7475
- refreshToken: any | null;
7491
+ refreshToken: string;
7476
7492
  /**
7477
7493
  *
7478
7494
  * @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`.
@@ -14,6 +14,15 @@
14
14
  * @interface DemoAccountSettings
15
15
  */
16
16
  export interface DemoAccountSettings {
17
+ /**
18
+ * Set an `authMethodStyle` to test different auth method behaviors. The following values are currently supported:
19
+ * - `default`: the broker will have various methods with different flows
20
+ * - `lazy`: the demo account reveals the complete list of auth methods only after the first session TAN challenge request. This also sets `allOperationsRequireSessionTan` to `true` for the account.
21
+ * - `one-decoupled`: the account will have *one auth method* with flow `DECOUPLED` (also sets `allOperationsRequireSessionTan=true`)
22
+ * @type {string}
23
+ * @memberof DemoAccountSettings
24
+ */
25
+ authMethodStyle?: string;
17
26
  /**
18
27
  * Set this to `true` to create a single depot instead of the default two
19
28
  * @type {boolean}
@@ -27,6 +36,7 @@ export interface DemoAccountSettings {
27
36
  * This also sets `allOperationsRequireSessionTan` to `true` for the account.
28
37
  * @type {boolean}
29
38
  * @memberof DemoAccountSettings
39
+ * @deprecated
30
40
  */
31
41
  lazyAuthMethods?: boolean;
32
42
  /**
@@ -19,6 +19,9 @@ export function DemoAccountSettingsFromJSONTyped(json, ignoreDiscriminator) {
19
19
  return json;
20
20
  }
21
21
  return {
22
+ authMethodStyle: !exists(json, "authMethodStyle")
23
+ ? undefined
24
+ : json["authMethodStyle"],
22
25
  isSinglePortfolio: !exists(json, "isSinglePortfolio")
23
26
  ? undefined
24
27
  : json["isSinglePortfolio"],
@@ -39,6 +42,7 @@ export function DemoAccountSettingsToJSONRecursive(value, ignoreParent = false)
39
42
  return null;
40
43
  }
41
44
  return {
45
+ authMethodStyle: value.authMethodStyle,
42
46
  isSinglePortfolio: value.isSinglePortfolio,
43
47
  lazyAuthMethods: value.lazyAuthMethods,
44
48
  seedOrders: value.seedOrders,
@@ -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.1",
4
4
  "description": "Client for the brokerize.com API",
5
5
  "keywords": [],
6
6
  "homepage": "https://github.com/brokerize/client-js#readme",